@azure/arm-marketplaceordering 3.1.2-alpha.20250718.1 → 3.1.2-alpha.20250730.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/browser/marketplaceOrderingAgreements.js +15 -5
  2. package/dist/browser/marketplaceOrderingAgreements.js.map +1 -1
  3. package/dist/browser/models/mappers.js +23 -11
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/marketplaceAgreements.js +1 -0
  6. package/dist/browser/operations/marketplaceAgreements.js.map +1 -1
  7. package/dist/browser/operations/operations.js +23 -40
  8. package/dist/browser/operations/operations.js.map +1 -1
  9. package/dist/browser/pagingHelper.js +2 -4
  10. package/dist/browser/pagingHelper.js.map +1 -1
  11. package/dist/commonjs/marketplaceOrderingAgreements.js +15 -5
  12. package/dist/commonjs/marketplaceOrderingAgreements.js.map +1 -1
  13. package/dist/commonjs/models/mappers.js +23 -11
  14. package/dist/commonjs/models/mappers.js.map +1 -1
  15. package/dist/commonjs/operations/marketplaceAgreements.js +1 -0
  16. package/dist/commonjs/operations/marketplaceAgreements.js.map +1 -1
  17. package/dist/commonjs/operations/operations.js +23 -39
  18. package/dist/commonjs/operations/operations.js.map +1 -1
  19. package/dist/commonjs/pagingHelper.js +2 -4
  20. package/dist/commonjs/pagingHelper.js.map +1 -1
  21. package/dist/commonjs/tsdoc-metadata.json +11 -11
  22. package/dist/esm/marketplaceOrderingAgreements.js +15 -5
  23. package/dist/esm/marketplaceOrderingAgreements.js.map +1 -1
  24. package/dist/esm/models/mappers.js +23 -11
  25. package/dist/esm/models/mappers.js.map +1 -1
  26. package/dist/esm/operations/marketplaceAgreements.js +1 -0
  27. package/dist/esm/operations/marketplaceAgreements.js.map +1 -1
  28. package/dist/esm/operations/operations.js +23 -40
  29. package/dist/esm/operations/operations.js.map +1 -1
  30. package/dist/esm/pagingHelper.js +2 -4
  31. package/dist/esm/pagingHelper.js.map +1 -1
  32. package/dist/react-native/marketplaceOrderingAgreements.js +15 -5
  33. package/dist/react-native/marketplaceOrderingAgreements.js.map +1 -1
  34. package/dist/react-native/models/mappers.js +23 -11
  35. package/dist/react-native/models/mappers.js.map +1 -1
  36. package/dist/react-native/operations/marketplaceAgreements.js +1 -0
  37. package/dist/react-native/operations/marketplaceAgreements.js.map +1 -1
  38. package/dist/react-native/operations/operations.js +23 -40
  39. package/dist/react-native/operations/operations.js.map +1 -1
  40. package/dist/react-native/pagingHelper.js +2 -4
  41. package/dist/react-native/pagingHelper.js.map +1 -1
  42. package/package.json +2 -2
  43. package/review/arm-marketplaceordering-node.api.md +190 -190
@@ -1 +1 @@
1
- {"version":3,"file":"marketplaceAgreements.js","sourceRoot":"","sources":["../../../src/operations/marketplaceAgreements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,SAAoB,EACpB,WAAmB,EACnB,OAAe,EACf,MAAc,EACd,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EACpD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,SAAoB,EACpB,WAAmB,EACnB,OAAe,EACf,MAAc,EACd,UAA0B,EAC1B,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE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AO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE;iBACtE;aACF;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { MarketplaceAgreements } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MarketplaceOrderingAgreements } from \"../marketplaceOrderingAgreements.js\";\nimport {\n OfferType,\n MarketplaceAgreementsGetOptionalParams,\n MarketplaceAgreementsGetResponse,\n AgreementTerms,\n MarketplaceAgreementsCreateOptionalParams,\n MarketplaceAgreementsCreateResponse,\n MarketplaceAgreementsSignOptionalParams,\n MarketplaceAgreementsSignResponse,\n MarketplaceAgreementsCancelOptionalParams,\n MarketplaceAgreementsCancelResponse,\n MarketplaceAgreementsGetAgreementOptionalParams,\n MarketplaceAgreementsGetAgreementResponse,\n MarketplaceAgreementsListOptionalParams,\n MarketplaceAgreementsListResponse\n} from \"../models/index.js\";\n\n/** Class containing MarketplaceAgreements operations. */\nexport class MarketplaceAgreementsImpl implements MarketplaceAgreements {\n private readonly client: MarketplaceOrderingAgreements;\n\n /**\n * Initialize a new instance of the class MarketplaceAgreements class.\n * @param client Reference to the service client\n */\n constructor(client: MarketplaceOrderingAgreements) {\n this.client = client;\n }\n\n /**\n * Get marketplace terms.\n * @param offerType Offer Type, currently only virtualmachine type is supported.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n get(\n offerType: OfferType,\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsGetOptionalParams\n ): Promise<MarketplaceAgreementsGetResponse> {\n return this.client.sendOperationRequest(\n { offerType, publisherId, offerId, planId, options },\n getOperationSpec\n );\n }\n\n /**\n * Save marketplace terms.\n * @param offerType Offer Type, currently only virtualmachine type is supported.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param parameters Parameters supplied to the Create Marketplace Terms operation.\n * @param options The options parameters.\n */\n create(\n offerType: OfferType,\n publisherId: string,\n offerId: string,\n planId: string,\n parameters: AgreementTerms,\n options?: MarketplaceAgreementsCreateOptionalParams\n ): Promise<MarketplaceAgreementsCreateResponse> {\n return this.client.sendOperationRequest(\n { offerType, publisherId, offerId, planId, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Sign marketplace terms.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n sign(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsSignOptionalParams\n ): Promise<MarketplaceAgreementsSignResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n signOperationSpec\n );\n }\n\n /**\n * Cancel marketplace terms.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n cancel(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsCancelOptionalParams\n ): Promise<MarketplaceAgreementsCancelResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n cancelOperationSpec\n );\n }\n\n /**\n * Get marketplace agreement.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n getAgreement(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsGetAgreementOptionalParams\n ): Promise<MarketplaceAgreementsGetAgreementResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n getAgreementOperationSpec\n );\n }\n\n /**\n * List marketplace agreements in the subscription.\n * @param options The options parameters.\n */\n list(\n options?: MarketplaceAgreementsListOptionalParams\n ): Promise<MarketplaceAgreementsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.offerType,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.offerType,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst signOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAgreementOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"AgreementTerms\" } }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"marketplaceAgreements.js","sourceRoot":"","sources":["../../../src/operations/marketplaceAgreements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,SAAoB,EACpB,WAAmB,EACnB,OAAe,EACf,MAAc,EACd,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EACpD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,SAAoB,EACpB,WAAmB,EACnB,OAAe,EACf,MAAc,EACd,UAA0B,EAC1B,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,EAChE,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,WAAmB,EACn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AAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { MarketplaceAgreements } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MarketplaceOrderingAgreements } from \"../marketplaceOrderingAgreements.js\";\nimport {\n OfferType,\n MarketplaceAgreementsGetOptionalParams,\n MarketplaceAgreementsGetResponse,\n AgreementTerms,\n MarketplaceAgreementsCreateOptionalParams,\n MarketplaceAgreementsCreateResponse,\n MarketplaceAgreementsSignOptionalParams,\n MarketplaceAgreementsSignResponse,\n MarketplaceAgreementsCancelOptionalParams,\n MarketplaceAgreementsCancelResponse,\n MarketplaceAgreementsGetAgreementOptionalParams,\n MarketplaceAgreementsGetAgreementResponse,\n MarketplaceAgreementsListOptionalParams,\n MarketplaceAgreementsListResponse\n} from \"../models/index.js\";\n\n/** Class containing MarketplaceAgreements operations. */\nexport class MarketplaceAgreementsImpl implements MarketplaceAgreements {\n private readonly client: MarketplaceOrderingAgreements;\n\n /**\n * Initialize a new instance of the class MarketplaceAgreements class.\n * @param client Reference to the service client\n */\n constructor(client: MarketplaceOrderingAgreements) {\n this.client = client;\n }\n\n /**\n * Get marketplace terms.\n * @param offerType Offer Type, currently only virtualmachine type is supported.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n get(\n offerType: OfferType,\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsGetOptionalParams\n ): Promise<MarketplaceAgreementsGetResponse> {\n return this.client.sendOperationRequest(\n { offerType, publisherId, offerId, planId, options },\n getOperationSpec\n );\n }\n\n /**\n * Save marketplace terms.\n * @param offerType Offer Type, currently only virtualmachine type is supported.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param parameters Parameters supplied to the Create Marketplace Terms operation.\n * @param options The options parameters.\n */\n create(\n offerType: OfferType,\n publisherId: string,\n offerId: string,\n planId: string,\n parameters: AgreementTerms,\n options?: MarketplaceAgreementsCreateOptionalParams\n ): Promise<MarketplaceAgreementsCreateResponse> {\n return this.client.sendOperationRequest(\n { offerType, publisherId, offerId, planId, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Sign marketplace terms.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n sign(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsSignOptionalParams\n ): Promise<MarketplaceAgreementsSignResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n signOperationSpec\n );\n }\n\n /**\n * Cancel marketplace terms.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n cancel(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsCancelOptionalParams\n ): Promise<MarketplaceAgreementsCancelResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n cancelOperationSpec\n );\n }\n\n /**\n * Get marketplace agreement.\n * @param publisherId Publisher identifier string of image being deployed.\n * @param offerId Offer identifier string of image being deployed.\n * @param planId Plan identifier string of image being deployed.\n * @param options The options parameters.\n */\n getAgreement(\n publisherId: string,\n offerId: string,\n planId: string,\n options?: MarketplaceAgreementsGetAgreementOptionalParams\n ): Promise<MarketplaceAgreementsGetAgreementResponse> {\n return this.client.sendOperationRequest(\n { publisherId, offerId, planId, options },\n getAgreementOperationSpec\n );\n }\n\n /**\n * List marketplace agreements in the subscription.\n * @param options The options parameters.\n */\n list(\n options?: MarketplaceAgreementsListOptionalParams\n ): Promise<MarketplaceAgreementsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.offerType,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.offerType,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst signOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAgreementOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgreementTerms\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"AgreementTerms\" } }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Operations operations. */
15
14
  export class OperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Operations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class OperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Lists all of the available Microsoft.MarketplaceOrdering REST API operations.
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAG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MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MarketplaceOrderingAgreements } from \"../marketplaceOrderingAgreements.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MarketplaceOrderingAgreements;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MarketplaceOrderingAgreements) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.MarketplaceOrdering REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.MarketplaceOrdering REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MarketplaceOrdering/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,QAAuB;QAEvB,IAAI,MAA8B,CAAC;QACnC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;Y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;IAClD,IAAI,EAAE,qDAAqD;IAC3D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MarketplaceOrderingAgreements } from \"../marketplaceOrderingAgreements.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MarketplaceOrderingAgreements;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MarketplaceOrderingAgreements) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.MarketplaceOrdering REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.MarketplaceOrdering REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MarketplaceOrdering/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MarketplaceOrderingAgreements.",
6
- "version": "3.1.2-alpha.20250718.1",
6
+ "version": "3.1.2-alpha.20250730.1",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "type": "module",
92
92
  "tshy": {
93
- "project": "./tsconfig.src.json",
93
+ "project": "../../../tsconfig.src.build.json",
94
94
  "exports": {
95
95
  "./package.json": "./package.json",
96
96
  ".": "./src/index.ts"
@@ -1,190 +1,190 @@
1
- ## API Report File for "@azure/arm-marketplaceordering"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import * as coreAuth from '@azure/core-auth';
8
- import * as coreClient from '@azure/core-client';
9
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
-
11
- // @public
12
- export interface AgreementTerms extends Resource {
13
- accepted?: boolean;
14
- licenseTextLink?: string;
15
- marketplaceTermsLink?: string;
16
- plan?: string;
17
- privacyPolicyLink?: string;
18
- product?: string;
19
- publisher?: string;
20
- retrieveDatetime?: string;
21
- signature?: string;
22
- readonly systemData?: SystemData;
23
- }
24
-
25
- // @public
26
- export type CreatedByType = string;
27
-
28
- // @public
29
- export interface ErrorResponse {
30
- error?: ErrorResponseError;
31
- }
32
-
33
- // @public
34
- export interface ErrorResponseError {
35
- readonly code?: string;
36
- readonly message?: string;
37
- }
38
-
39
- // @public
40
- export function getContinuationToken(page: unknown): string | undefined;
41
-
42
- // @public
43
- export enum KnownCreatedByType {
44
- Application = "Application",
45
- Key = "Key",
46
- ManagedIdentity = "ManagedIdentity",
47
- User = "User"
48
- }
49
-
50
- // @public
51
- export enum KnownOfferType {
52
- Virtualmachine = "virtualmachine"
53
- }
54
-
55
- // @public
56
- export interface MarketplaceAgreements {
57
- cancel(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsCancelOptionalParams): Promise<MarketplaceAgreementsCancelResponse>;
58
- create(offerType: OfferType, publisherId: string, offerId: string, planId: string, parameters: AgreementTerms, options?: MarketplaceAgreementsCreateOptionalParams): Promise<MarketplaceAgreementsCreateResponse>;
59
- get(offerType: OfferType, publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsGetOptionalParams): Promise<MarketplaceAgreementsGetResponse>;
60
- getAgreement(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsGetAgreementOptionalParams): Promise<MarketplaceAgreementsGetAgreementResponse>;
61
- list(options?: MarketplaceAgreementsListOptionalParams): Promise<MarketplaceAgreementsListResponse>;
62
- sign(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsSignOptionalParams): Promise<MarketplaceAgreementsSignResponse>;
63
- }
64
-
65
- // @public
66
- export interface MarketplaceAgreementsCancelOptionalParams extends coreClient.OperationOptions {
67
- }
68
-
69
- // @public
70
- export type MarketplaceAgreementsCancelResponse = AgreementTerms;
71
-
72
- // @public
73
- export interface MarketplaceAgreementsCreateOptionalParams extends coreClient.OperationOptions {
74
- }
75
-
76
- // @public
77
- export type MarketplaceAgreementsCreateResponse = AgreementTerms;
78
-
79
- // @public
80
- export interface MarketplaceAgreementsGetAgreementOptionalParams extends coreClient.OperationOptions {
81
- }
82
-
83
- // @public
84
- export type MarketplaceAgreementsGetAgreementResponse = AgreementTerms;
85
-
86
- // @public
87
- export interface MarketplaceAgreementsGetOptionalParams extends coreClient.OperationOptions {
88
- }
89
-
90
- // @public
91
- export type MarketplaceAgreementsGetResponse = AgreementTerms;
92
-
93
- // @public
94
- export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions {
95
- }
96
-
97
- // @public
98
- export type MarketplaceAgreementsListResponse = AgreementTerms[];
99
-
100
- // @public
101
- export interface MarketplaceAgreementsSignOptionalParams extends coreClient.OperationOptions {
102
- }
103
-
104
- // @public
105
- export type MarketplaceAgreementsSignResponse = AgreementTerms;
106
-
107
- // @public (undocumented)
108
- export class MarketplaceOrderingAgreements extends coreClient.ServiceClient {
109
- // (undocumented)
110
- $host: string;
111
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MarketplaceOrderingAgreementsOptionalParams);
112
- // (undocumented)
113
- apiVersion: string;
114
- // (undocumented)
115
- marketplaceAgreements: MarketplaceAgreements;
116
- // (undocumented)
117
- operations: Operations;
118
- // (undocumented)
119
- subscriptionId: string;
120
- }
121
-
122
- // @public
123
- export interface MarketplaceOrderingAgreementsOptionalParams extends coreClient.ServiceClientOptions {
124
- $host?: string;
125
- apiVersion?: string;
126
- endpoint?: string;
127
- }
128
-
129
- // @public
130
- export type OfferType = string;
131
-
132
- // @public
133
- export interface Operation {
134
- display?: OperationDisplay;
135
- name?: string;
136
- }
137
-
138
- // @public
139
- export interface OperationDisplay {
140
- description?: string;
141
- operation?: string;
142
- provider?: string;
143
- resource?: string;
144
- }
145
-
146
- // @public
147
- export interface OperationListResult {
148
- readonly nextLink?: string;
149
- value?: Operation[];
150
- }
151
-
152
- // @public
153
- export interface Operations {
154
- list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
155
- }
156
-
157
- // @public
158
- export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
159
- }
160
-
161
- // @public
162
- export type OperationsListNextResponse = OperationListResult;
163
-
164
- // @public
165
- export interface OperationsListOptionalParams extends coreClient.OperationOptions {
166
- }
167
-
168
- // @public
169
- export type OperationsListResponse = OperationListResult;
170
-
171
- // @public
172
- export interface Resource {
173
- readonly id?: string;
174
- readonly name?: string;
175
- readonly type?: string;
176
- }
177
-
178
- // @public
179
- export interface SystemData {
180
- createdAt?: Date;
181
- createdBy?: string;
182
- createdByType?: CreatedByType;
183
- lastModifiedAt?: Date;
184
- lastModifiedBy?: string;
185
- lastModifiedByType?: CreatedByType;
186
- }
187
-
188
- // (No @packageDocumentation comment for this package)
189
-
190
- ```
1
+ ## API Report File for "@azure/arm-marketplaceordering"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export interface AgreementTerms extends Resource {
13
+ accepted?: boolean;
14
+ licenseTextLink?: string;
15
+ marketplaceTermsLink?: string;
16
+ plan?: string;
17
+ privacyPolicyLink?: string;
18
+ product?: string;
19
+ publisher?: string;
20
+ retrieveDatetime?: string;
21
+ signature?: string;
22
+ readonly systemData?: SystemData;
23
+ }
24
+
25
+ // @public
26
+ export type CreatedByType = string;
27
+
28
+ // @public
29
+ export interface ErrorResponse {
30
+ error?: ErrorResponseError;
31
+ }
32
+
33
+ // @public
34
+ export interface ErrorResponseError {
35
+ readonly code?: string;
36
+ readonly message?: string;
37
+ }
38
+
39
+ // @public
40
+ export function getContinuationToken(page: unknown): string | undefined;
41
+
42
+ // @public
43
+ export enum KnownCreatedByType {
44
+ Application = "Application",
45
+ Key = "Key",
46
+ ManagedIdentity = "ManagedIdentity",
47
+ User = "User"
48
+ }
49
+
50
+ // @public
51
+ export enum KnownOfferType {
52
+ Virtualmachine = "virtualmachine"
53
+ }
54
+
55
+ // @public
56
+ export interface MarketplaceAgreements {
57
+ cancel(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsCancelOptionalParams): Promise<MarketplaceAgreementsCancelResponse>;
58
+ create(offerType: OfferType, publisherId: string, offerId: string, planId: string, parameters: AgreementTerms, options?: MarketplaceAgreementsCreateOptionalParams): Promise<MarketplaceAgreementsCreateResponse>;
59
+ get(offerType: OfferType, publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsGetOptionalParams): Promise<MarketplaceAgreementsGetResponse>;
60
+ getAgreement(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsGetAgreementOptionalParams): Promise<MarketplaceAgreementsGetAgreementResponse>;
61
+ list(options?: MarketplaceAgreementsListOptionalParams): Promise<MarketplaceAgreementsListResponse>;
62
+ sign(publisherId: string, offerId: string, planId: string, options?: MarketplaceAgreementsSignOptionalParams): Promise<MarketplaceAgreementsSignResponse>;
63
+ }
64
+
65
+ // @public
66
+ export interface MarketplaceAgreementsCancelOptionalParams extends coreClient.OperationOptions {
67
+ }
68
+
69
+ // @public
70
+ export type MarketplaceAgreementsCancelResponse = AgreementTerms;
71
+
72
+ // @public
73
+ export interface MarketplaceAgreementsCreateOptionalParams extends coreClient.OperationOptions {
74
+ }
75
+
76
+ // @public
77
+ export type MarketplaceAgreementsCreateResponse = AgreementTerms;
78
+
79
+ // @public
80
+ export interface MarketplaceAgreementsGetAgreementOptionalParams extends coreClient.OperationOptions {
81
+ }
82
+
83
+ // @public
84
+ export type MarketplaceAgreementsGetAgreementResponse = AgreementTerms;
85
+
86
+ // @public
87
+ export interface MarketplaceAgreementsGetOptionalParams extends coreClient.OperationOptions {
88
+ }
89
+
90
+ // @public
91
+ export type MarketplaceAgreementsGetResponse = AgreementTerms;
92
+
93
+ // @public
94
+ export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions {
95
+ }
96
+
97
+ // @public
98
+ export type MarketplaceAgreementsListResponse = AgreementTerms[];
99
+
100
+ // @public
101
+ export interface MarketplaceAgreementsSignOptionalParams extends coreClient.OperationOptions {
102
+ }
103
+
104
+ // @public
105
+ export type MarketplaceAgreementsSignResponse = AgreementTerms;
106
+
107
+ // @public (undocumented)
108
+ export class MarketplaceOrderingAgreements extends coreClient.ServiceClient {
109
+ // (undocumented)
110
+ $host: string;
111
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MarketplaceOrderingAgreementsOptionalParams);
112
+ // (undocumented)
113
+ apiVersion: string;
114
+ // (undocumented)
115
+ marketplaceAgreements: MarketplaceAgreements;
116
+ // (undocumented)
117
+ operations: Operations;
118
+ // (undocumented)
119
+ subscriptionId: string;
120
+ }
121
+
122
+ // @public
123
+ export interface MarketplaceOrderingAgreementsOptionalParams extends coreClient.ServiceClientOptions {
124
+ $host?: string;
125
+ apiVersion?: string;
126
+ endpoint?: string;
127
+ }
128
+
129
+ // @public
130
+ export type OfferType = string;
131
+
132
+ // @public
133
+ export interface Operation {
134
+ display?: OperationDisplay;
135
+ name?: string;
136
+ }
137
+
138
+ // @public
139
+ export interface OperationDisplay {
140
+ description?: string;
141
+ operation?: string;
142
+ provider?: string;
143
+ resource?: string;
144
+ }
145
+
146
+ // @public
147
+ export interface OperationListResult {
148
+ readonly nextLink?: string;
149
+ value?: Operation[];
150
+ }
151
+
152
+ // @public
153
+ export interface Operations {
154
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
155
+ }
156
+
157
+ // @public
158
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
159
+ }
160
+
161
+ // @public
162
+ export type OperationsListNextResponse = OperationListResult;
163
+
164
+ // @public
165
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
166
+ }
167
+
168
+ // @public
169
+ export type OperationsListResponse = OperationListResult;
170
+
171
+ // @public
172
+ export interface Resource {
173
+ readonly id?: string;
174
+ readonly name?: string;
175
+ readonly type?: string;
176
+ }
177
+
178
+ // @public
179
+ export interface SystemData {
180
+ createdAt?: Date;
181
+ createdBy?: string;
182
+ createdByType?: CreatedByType;
183
+ lastModifiedAt?: Date;
184
+ lastModifiedBy?: string;
185
+ lastModifiedByType?: CreatedByType;
186
+ }
187
+
188
+ // (No @packageDocumentation comment for this package)
189
+
190
+ ```