diff --git a/packages/@azure/arm-consumption/README.md b/packages/@azure/arm-consumption/README.md index 733d35a9c5cf..7844ef11700c 100644 --- a/packages/@azure/arm-consumption/README.md +++ b/packages/@azure/arm-consumption/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ConsumptionManagementClient. ### How to Install -``` +```bash npm install @azure/arm-consumption ``` @@ -19,13 +19,13 @@ npm install @azure/arm-consumption ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -52,7 +52,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` diff --git a/packages/@azure/arm-consumption/lib/models/index.ts b/packages/@azure/arm-consumption/lib/models/index.ts index a0df6be94f6f..22fcb2a28587 100644 --- a/packages/@azure/arm-consumption/lib/models/index.ts +++ b/packages/@azure/arm-consumption/lib/models/index.ts @@ -641,7 +641,7 @@ export interface ReservationSummary extends Resource { readonly reservationId?: string; /** * @member {string} [skuName] This is the ARM Sku name. It can be used to - * join with the servicetype field in additoinalinfo in usage records. + * join with the serviceType field in additional info in usage records. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -723,7 +723,7 @@ export interface ReservationDetail extends Resource { readonly reservationId?: string; /** * @member {string} [skuName] This is the ARM Sku name. It can be used to - * join with the servicetype field in additoinalinfo in usage records. + * join with the serviceType field in additional info in usage records. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -757,7 +757,7 @@ export interface ReservationDetail extends Resource { readonly instanceId?: string; /** * @member {number} [totalReservedQuantity] This is the total count of - * instances that are reserved for the reservationid. + * instances that are reserved for the reservationId. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -834,7 +834,7 @@ export interface ReservationRecommendation { */ readonly costWithNoReservedInstances?: number; /** - * @member {number} [recommendedQuantity] Recomended quality for reserved + * @member {number} [recommendedQuantity] Recommended quality for reserved * instances. * **NOTE: This property will not be serialized. It can only be populated by * the server.** @@ -909,7 +909,7 @@ export interface ProxyResource extends BaseResource { readonly type?: string; /** * @member {string} [eTag] eTag of the resource. To handle concurrent update - * scenarion, this field will be used to determine whether the user is + * scenario, this field will be used to determine whether the user is * updating the latest version or not. */ eTag?: string; @@ -1064,7 +1064,7 @@ export interface Budget extends ProxyResource { * budget. The start date must be first of the month and should be less than * the end date. Budget start date must be on or after June 1, 2017. Future * start date should not be more than three months. Past start date should - * be selected within the timegrain preiod. There are no restrictions on the + * be selected within the timegrain period. There are no restrictions on the * end date. */ timePeriod: BudgetTimePeriod; diff --git a/packages/@azure/arm-consumption/lib/operations/marketplaces.ts b/packages/@azure/arm-consumption/lib/operations/marketplaces.ts index b324d9f44a8f..83bcf9ad0ed4 100644 --- a/packages/@azure/arm-consumption/lib/operations/marketplaces.ts +++ b/packages/@azure/arm-consumption/lib/operations/marketplaces.ts @@ -52,7 +52,7 @@ export class Marketplaces { } /** - * Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are + * Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are * available via this API only for May 1, 2014 or later. * @param billingPeriodName Billing Period Name. * @param [options] The optional parameters @@ -358,7 +358,7 @@ export class Marketplaces { } /** - * Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are + * Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are * available via this API only for May 1, 2014 or later. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters diff --git a/packages/@azure/arm-consumption/lib/operations/reservationRecommendations.ts b/packages/@azure/arm-consumption/lib/operations/reservationRecommendations.ts index 3f4787a580a9..861bbe4243b1 100644 --- a/packages/@azure/arm-consumption/lib/operations/reservationRecommendations.ts +++ b/packages/@azure/arm-consumption/lib/operations/reservationRecommendations.ts @@ -27,7 +27,7 @@ export class ReservationRecommendations { } /** - * List of recomendations for purchasing reserved instances. + * List of recommendations for purchasing reserved instances. * @param [options] The optional parameters * @returns Promise */ @@ -51,7 +51,7 @@ export class ReservationRecommendations { } /** - * List of recomendations for purchasing reserved instances. + * List of recommendations for purchasing reserved instances. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise diff --git a/packages/@azure/arm-consumption/package.json b/packages/@azure/arm-consumption/package.json index 9db02eb107a7..f5f3d8104a1f 100644 --- a/packages/@azure/arm-consumption/package.json +++ b/packages/@azure/arm-consumption/package.json @@ -4,8 +4,8 @@ "description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-consumption", diff --git a/packages/@azure/arm-consumption/rollup.config.js b/packages/@azure/arm-consumption/rollup.config.js index e434910415dd..c28e7f73316a 100644 --- a/packages/@azure/arm-consumption/rollup.config.js +++ b/packages/@azure/arm-consumption/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/consumptionManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/consumptionManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-consumption.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;