@azure/arm-support 3.0.1-alpha.20250718.1 → 3.0.1-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 (139) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/microsoftSupport.js +26 -5
  4. package/dist/browser/microsoftSupport.js.map +1 -1
  5. package/dist/browser/models/mappers.js +28 -12
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/chatTranscripts.js +23 -40
  8. package/dist/browser/operations/chatTranscripts.js.map +1 -1
  9. package/dist/browser/operations/chatTranscriptsNoSubscription.js +23 -40
  10. package/dist/browser/operations/chatTranscriptsNoSubscription.js.map +1 -1
  11. package/dist/browser/operations/communications.js +34 -46
  12. package/dist/browser/operations/communications.js.map +1 -1
  13. package/dist/browser/operations/communicationsNoSubscription.js +34 -46
  14. package/dist/browser/operations/communicationsNoSubscription.js.map +1 -1
  15. package/dist/browser/operations/fileWorkspaces.js +1 -0
  16. package/dist/browser/operations/fileWorkspaces.js.map +1 -1
  17. package/dist/browser/operations/fileWorkspacesNoSubscription.js +1 -0
  18. package/dist/browser/operations/fileWorkspacesNoSubscription.js.map +1 -1
  19. package/dist/browser/operations/files.js +23 -40
  20. package/dist/browser/operations/files.js.map +1 -1
  21. package/dist/browser/operations/filesNoSubscription.js +23 -40
  22. package/dist/browser/operations/filesNoSubscription.js.map +1 -1
  23. package/dist/browser/operations/operations.js +10 -27
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/problemClassifications.js +10 -27
  26. package/dist/browser/operations/problemClassifications.js.map +1 -1
  27. package/dist/browser/operations/services.js +10 -27
  28. package/dist/browser/operations/services.js.map +1 -1
  29. package/dist/browser/operations/supportTickets.js +34 -46
  30. package/dist/browser/operations/supportTickets.js.map +1 -1
  31. package/dist/browser/operations/supportTicketsNoSubscription.js +34 -46
  32. package/dist/browser/operations/supportTicketsNoSubscription.js.map +1 -1
  33. package/dist/browser/pagingHelper.js +2 -4
  34. package/dist/browser/pagingHelper.js.map +1 -1
  35. package/dist/commonjs/lroImpl.js +7 -3
  36. package/dist/commonjs/lroImpl.js.map +1 -1
  37. package/dist/commonjs/microsoftSupport.js +26 -5
  38. package/dist/commonjs/microsoftSupport.js.map +1 -1
  39. package/dist/commonjs/models/mappers.js +28 -12
  40. package/dist/commonjs/models/mappers.js.map +1 -1
  41. package/dist/commonjs/operations/chatTranscripts.js +23 -39
  42. package/dist/commonjs/operations/chatTranscripts.js.map +1 -1
  43. package/dist/commonjs/operations/chatTranscriptsNoSubscription.js +23 -39
  44. package/dist/commonjs/operations/chatTranscriptsNoSubscription.js.map +1 -1
  45. package/dist/commonjs/operations/communications.js +34 -45
  46. package/dist/commonjs/operations/communications.js.map +1 -1
  47. package/dist/commonjs/operations/communicationsNoSubscription.js +34 -45
  48. package/dist/commonjs/operations/communicationsNoSubscription.js.map +1 -1
  49. package/dist/commonjs/operations/fileWorkspaces.js +1 -0
  50. package/dist/commonjs/operations/fileWorkspaces.js.map +1 -1
  51. package/dist/commonjs/operations/fileWorkspacesNoSubscription.js +1 -0
  52. package/dist/commonjs/operations/fileWorkspacesNoSubscription.js.map +1 -1
  53. package/dist/commonjs/operations/files.js +23 -39
  54. package/dist/commonjs/operations/files.js.map +1 -1
  55. package/dist/commonjs/operations/filesNoSubscription.js +23 -39
  56. package/dist/commonjs/operations/filesNoSubscription.js.map +1 -1
  57. package/dist/commonjs/operations/operations.js +10 -26
  58. package/dist/commonjs/operations/operations.js.map +1 -1
  59. package/dist/commonjs/operations/problemClassifications.js +10 -26
  60. package/dist/commonjs/operations/problemClassifications.js.map +1 -1
  61. package/dist/commonjs/operations/services.js +10 -26
  62. package/dist/commonjs/operations/services.js.map +1 -1
  63. package/dist/commonjs/operations/supportTickets.js +34 -45
  64. package/dist/commonjs/operations/supportTickets.js.map +1 -1
  65. package/dist/commonjs/operations/supportTicketsNoSubscription.js +34 -45
  66. package/dist/commonjs/operations/supportTicketsNoSubscription.js.map +1 -1
  67. package/dist/commonjs/pagingHelper.js +2 -4
  68. package/dist/commonjs/pagingHelper.js.map +1 -1
  69. package/dist/commonjs/tsdoc-metadata.json +11 -11
  70. package/dist/esm/lroImpl.js +7 -3
  71. package/dist/esm/lroImpl.js.map +1 -1
  72. package/dist/esm/microsoftSupport.js +26 -5
  73. package/dist/esm/microsoftSupport.js.map +1 -1
  74. package/dist/esm/models/mappers.js +28 -12
  75. package/dist/esm/models/mappers.js.map +1 -1
  76. package/dist/esm/operations/chatTranscripts.js +23 -40
  77. package/dist/esm/operations/chatTranscripts.js.map +1 -1
  78. package/dist/esm/operations/chatTranscriptsNoSubscription.js +23 -40
  79. package/dist/esm/operations/chatTranscriptsNoSubscription.js.map +1 -1
  80. package/dist/esm/operations/communications.js +34 -46
  81. package/dist/esm/operations/communications.js.map +1 -1
  82. package/dist/esm/operations/communicationsNoSubscription.js +34 -46
  83. package/dist/esm/operations/communicationsNoSubscription.js.map +1 -1
  84. package/dist/esm/operations/fileWorkspaces.js +1 -0
  85. package/dist/esm/operations/fileWorkspaces.js.map +1 -1
  86. package/dist/esm/operations/fileWorkspacesNoSubscription.js +1 -0
  87. package/dist/esm/operations/fileWorkspacesNoSubscription.js.map +1 -1
  88. package/dist/esm/operations/files.js +23 -40
  89. package/dist/esm/operations/files.js.map +1 -1
  90. package/dist/esm/operations/filesNoSubscription.js +23 -40
  91. package/dist/esm/operations/filesNoSubscription.js.map +1 -1
  92. package/dist/esm/operations/operations.js +10 -27
  93. package/dist/esm/operations/operations.js.map +1 -1
  94. package/dist/esm/operations/problemClassifications.js +10 -27
  95. package/dist/esm/operations/problemClassifications.js.map +1 -1
  96. package/dist/esm/operations/services.js +10 -27
  97. package/dist/esm/operations/services.js.map +1 -1
  98. package/dist/esm/operations/supportTickets.js +34 -46
  99. package/dist/esm/operations/supportTickets.js.map +1 -1
  100. package/dist/esm/operations/supportTicketsNoSubscription.js +34 -46
  101. package/dist/esm/operations/supportTicketsNoSubscription.js.map +1 -1
  102. package/dist/esm/pagingHelper.js +2 -4
  103. package/dist/esm/pagingHelper.js.map +1 -1
  104. package/dist/react-native/lroImpl.js +7 -3
  105. package/dist/react-native/lroImpl.js.map +1 -1
  106. package/dist/react-native/microsoftSupport.js +26 -5
  107. package/dist/react-native/microsoftSupport.js.map +1 -1
  108. package/dist/react-native/models/mappers.js +28 -12
  109. package/dist/react-native/models/mappers.js.map +1 -1
  110. package/dist/react-native/operations/chatTranscripts.js +23 -40
  111. package/dist/react-native/operations/chatTranscripts.js.map +1 -1
  112. package/dist/react-native/operations/chatTranscriptsNoSubscription.js +23 -40
  113. package/dist/react-native/operations/chatTranscriptsNoSubscription.js.map +1 -1
  114. package/dist/react-native/operations/communications.js +34 -46
  115. package/dist/react-native/operations/communications.js.map +1 -1
  116. package/dist/react-native/operations/communicationsNoSubscription.js +34 -46
  117. package/dist/react-native/operations/communicationsNoSubscription.js.map +1 -1
  118. package/dist/react-native/operations/fileWorkspaces.js +1 -0
  119. package/dist/react-native/operations/fileWorkspaces.js.map +1 -1
  120. package/dist/react-native/operations/fileWorkspacesNoSubscription.js +1 -0
  121. package/dist/react-native/operations/fileWorkspacesNoSubscription.js.map +1 -1
  122. package/dist/react-native/operations/files.js +23 -40
  123. package/dist/react-native/operations/files.js.map +1 -1
  124. package/dist/react-native/operations/filesNoSubscription.js +23 -40
  125. package/dist/react-native/operations/filesNoSubscription.js.map +1 -1
  126. package/dist/react-native/operations/operations.js +10 -27
  127. package/dist/react-native/operations/operations.js.map +1 -1
  128. package/dist/react-native/operations/problemClassifications.js +10 -27
  129. package/dist/react-native/operations/problemClassifications.js.map +1 -1
  130. package/dist/react-native/operations/services.js +10 -27
  131. package/dist/react-native/operations/services.js.map +1 -1
  132. package/dist/react-native/operations/supportTickets.js +34 -46
  133. package/dist/react-native/operations/supportTickets.js.map +1 -1
  134. package/dist/react-native/operations/supportTicketsNoSubscription.js +34 -46
  135. package/dist/react-native/operations/supportTicketsNoSubscription.js.map +1 -1
  136. package/dist/react-native/pagingHelper.js +2 -4
  137. package/dist/react-native/pagingHelper.js.map +1 -1
  138. package/package.json +2 -2
  139. package/review/arm-support-node.api.md +889 -889
@@ -1 +1 @@
1
- {"version":3,"file":"supportTicketsNoSubscription.js","sourceRoot":"","sources":["../../../src/operations/supportTicketsNoSubscription.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmB9C,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,OAAwD;QAExD,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,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,C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,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,wBAAwB;SAC7C;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 { SupportTicketsNoSubscription } 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 { MicrosoftSupport } from \"../microsoftSupport.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SupportTicketDetails,\n SupportTicketsNoSubscriptionListNextOptionalParams,\n SupportTicketsNoSubscriptionListOptionalParams,\n SupportTicketsNoSubscriptionListResponse,\n CheckNameAvailabilityInput,\n SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams,\n SupportTicketsNoSubscriptionCheckNameAvailabilityResponse,\n SupportTicketsNoSubscriptionGetOptionalParams,\n SupportTicketsNoSubscriptionGetResponse,\n UpdateSupportTicket,\n SupportTicketsNoSubscriptionUpdateOptionalParams,\n SupportTicketsNoSubscriptionUpdateResponse,\n SupportTicketsNoSubscriptionCreateOptionalParams,\n SupportTicketsNoSubscriptionCreateResponse,\n SupportTicketsNoSubscriptionListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SupportTicketsNoSubscription operations. */\nexport class SupportTicketsNoSubscriptionImpl\n implements SupportTicketsNoSubscription\n{\n private readonly client: MicrosoftSupport;\n\n /**\n * Initialize a new instance of the class SupportTicketsNoSubscription class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftSupport) {\n this.client = client;\n }\n\n /**\n * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,\n * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter\n * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next\n * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket\n * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.\n * @param options The options parameters.\n */\n public list(\n options?: SupportTicketsNoSubscriptionListOptionalParams,\n ): PagedAsyncIterableIterator<SupportTicketDetails> {\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?: SupportTicketsNoSubscriptionListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SupportTicketDetails[]> {\n let result: SupportTicketsNoSubscriptionListResponse;\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?: SupportTicketsNoSubscriptionListOptionalParams,\n ): AsyncIterableIterator<SupportTicketDetails> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Check the availability of a resource name. This API should be used to check the uniqueness of the\n * name for support ticket creation for the selected subscription.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,\n * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter\n * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next\n * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket\n * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.\n * @param options The options parameters.\n */\n private _list(\n options?: SupportTicketsNoSubscriptionListOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets details for a specific support ticket. Support ticket data is available for 18 months after\n * ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an\n * error.\n * @param supportTicketName Support ticket name.\n * @param options The options parameters.\n */\n get(\n supportTicketName: string,\n options?: SupportTicketsNoSubscriptionGetOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionGetResponse> {\n return this.client.sendOperationRequest(\n { supportTicketName, options },\n getOperationSpec,\n );\n }\n\n /**\n * This API allows you to update the severity level, ticket status, and your contact information in the\n * support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively\n * being worked upon by an Azure support engineer. In such a case, contact your support engineer to\n * request severity update by adding a new communication using the Communications API.\n * @param supportTicketName Support ticket name.\n * @param updateSupportTicket UpdateSupportTicket object.\n * @param options The options parameters.\n */\n update(\n supportTicketName: string,\n updateSupportTicket: UpdateSupportTicket,\n options?: SupportTicketsNoSubscriptionUpdateOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionUpdateResponse> {\n return this.client.sendOperationRequest(\n { supportTicketName, updateSupportTicket, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Creates a new support ticket for Billing, and Subscription Management issues. Learn the\n * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call\n * the Services and ProblemClassifications API to get the most recent set of services and problem\n * categories required for support ticket creation.<br/><br/>Adding attachments is not currently\n * supported via the API. To add a file to an existing support ticket, visit the [Manage support\n * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)\n * page in the Azure portal, select the support ticket, and use the file upload control to add a new\n * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not\n * supported via the API. The Azure support engineer working on your ticket will reach out to you for\n * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>\n * @param supportTicketName Support ticket name.\n * @param createSupportTicketParameters Support ticket request payload.\n * @param options The options parameters.\n */\n async beginCreate(\n supportTicketName: string,\n createSupportTicketParameters: SupportTicketDetails,\n options?: SupportTicketsNoSubscriptionCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SupportTicketsNoSubscriptionCreateResponse>,\n SupportTicketsNoSubscriptionCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SupportTicketsNoSubscriptionCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { supportTicketName, createSupportTicketParameters, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n SupportTicketsNoSubscriptionCreateResponse,\n OperationState<SupportTicketsNoSubscriptionCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new support ticket for Billing, and Subscription Management issues. Learn the\n * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call\n * the Services and ProblemClassifications API to get the most recent set of services and problem\n * categories required for support ticket creation.<br/><br/>Adding attachments is not currently\n * supported via the API. To add a file to an existing support ticket, visit the [Manage support\n * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)\n * page in the Azure portal, select the support ticket, and use the file upload control to add a new\n * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not\n * supported via the API. The Azure support engineer working on your ticket will reach out to you for\n * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>\n * @param supportTicketName Support ticket name.\n * @param createSupportTicketParameters Support ticket request payload.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n supportTicketName: string,\n createSupportTicketParameters: SupportTicketDetails,\n options?: SupportTicketsNoSubscriptionCreateOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionCreateResponse> {\n const poller = await this.beginCreate(\n supportTicketName,\n createSupportTicketParameters,\n options,\n );\n return poller.pollUntilDone();\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?: SupportTicketsNoSubscriptionListNextOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionListNextResponse> {\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 checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateSupportTicket,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 201: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 202: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 204: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.createSupportTicketParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketsListResult,\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":"supportTicketsNoSubscription.js","sourceRoot":"","sources":["../../../src/operations/supportTicketsNoSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACj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["/*\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 { SupportTicketsNoSubscription } 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 { MicrosoftSupport } from \"../microsoftSupport.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SupportTicketDetails,\n SupportTicketsNoSubscriptionListNextOptionalParams,\n SupportTicketsNoSubscriptionListOptionalParams,\n SupportTicketsNoSubscriptionListResponse,\n CheckNameAvailabilityInput,\n SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams,\n SupportTicketsNoSubscriptionCheckNameAvailabilityResponse,\n SupportTicketsNoSubscriptionGetOptionalParams,\n SupportTicketsNoSubscriptionGetResponse,\n UpdateSupportTicket,\n SupportTicketsNoSubscriptionUpdateOptionalParams,\n SupportTicketsNoSubscriptionUpdateResponse,\n SupportTicketsNoSubscriptionCreateOptionalParams,\n SupportTicketsNoSubscriptionCreateResponse,\n SupportTicketsNoSubscriptionListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SupportTicketsNoSubscription operations. */\nexport class SupportTicketsNoSubscriptionImpl\n implements SupportTicketsNoSubscription\n{\n private readonly client: MicrosoftSupport;\n\n /**\n * Initialize a new instance of the class SupportTicketsNoSubscription class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftSupport) {\n this.client = client;\n }\n\n /**\n * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,\n * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter\n * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next\n * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket\n * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.\n * @param options The options parameters.\n */\n public list(\n options?: SupportTicketsNoSubscriptionListOptionalParams,\n ): PagedAsyncIterableIterator<SupportTicketDetails> {\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?: SupportTicketsNoSubscriptionListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SupportTicketDetails[]> {\n let result: SupportTicketsNoSubscriptionListResponse;\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?: SupportTicketsNoSubscriptionListOptionalParams,\n ): AsyncIterableIterator<SupportTicketDetails> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Check the availability of a resource name. This API should be used to check the uniqueness of the\n * name for support ticket creation for the selected subscription.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,\n * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter\n * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next\n * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket\n * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.\n * @param options The options parameters.\n */\n private _list(\n options?: SupportTicketsNoSubscriptionListOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets details for a specific support ticket. Support ticket data is available for 18 months after\n * ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an\n * error.\n * @param supportTicketName Support ticket name.\n * @param options The options parameters.\n */\n get(\n supportTicketName: string,\n options?: SupportTicketsNoSubscriptionGetOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionGetResponse> {\n return this.client.sendOperationRequest(\n { supportTicketName, options },\n getOperationSpec,\n );\n }\n\n /**\n * This API allows you to update the severity level, ticket status, and your contact information in the\n * support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively\n * being worked upon by an Azure support engineer. In such a case, contact your support engineer to\n * request severity update by adding a new communication using the Communications API.\n * @param supportTicketName Support ticket name.\n * @param updateSupportTicket UpdateSupportTicket object.\n * @param options The options parameters.\n */\n update(\n supportTicketName: string,\n updateSupportTicket: UpdateSupportTicket,\n options?: SupportTicketsNoSubscriptionUpdateOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionUpdateResponse> {\n return this.client.sendOperationRequest(\n { supportTicketName, updateSupportTicket, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Creates a new support ticket for Billing, and Subscription Management issues. Learn the\n * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call\n * the Services and ProblemClassifications API to get the most recent set of services and problem\n * categories required for support ticket creation.<br/><br/>Adding attachments is not currently\n * supported via the API. To add a file to an existing support ticket, visit the [Manage support\n * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)\n * page in the Azure portal, select the support ticket, and use the file upload control to add a new\n * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not\n * supported via the API. The Azure support engineer working on your ticket will reach out to you for\n * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>\n * @param supportTicketName Support ticket name.\n * @param createSupportTicketParameters Support ticket request payload.\n * @param options The options parameters.\n */\n async beginCreate(\n supportTicketName: string,\n createSupportTicketParameters: SupportTicketDetails,\n options?: SupportTicketsNoSubscriptionCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SupportTicketsNoSubscriptionCreateResponse>,\n SupportTicketsNoSubscriptionCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SupportTicketsNoSubscriptionCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { supportTicketName, createSupportTicketParameters, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n SupportTicketsNoSubscriptionCreateResponse,\n OperationState<SupportTicketsNoSubscriptionCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new support ticket for Billing, and Subscription Management issues. Learn the\n * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call\n * the Services and ProblemClassifications API to get the most recent set of services and problem\n * categories required for support ticket creation.<br/><br/>Adding attachments is not currently\n * supported via the API. To add a file to an existing support ticket, visit the [Manage support\n * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)\n * page in the Azure portal, select the support ticket, and use the file upload control to add a new\n * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not\n * supported via the API. The Azure support engineer working on your ticket will reach out to you for\n * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>\n * @param supportTicketName Support ticket name.\n * @param createSupportTicketParameters Support ticket request payload.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n supportTicketName: string,\n createSupportTicketParameters: SupportTicketDetails,\n options?: SupportTicketsNoSubscriptionCreateOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionCreateResponse> {\n const poller = await this.beginCreate(\n supportTicketName,\n createSupportTicketParameters,\n options,\n );\n return poller.pollUntilDone();\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?: SupportTicketsNoSubscriptionListNextOptionalParams,\n ): Promise<SupportTicketsNoSubscriptionListNextResponse> {\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 checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateSupportTicket,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Support/supportTickets/{supportTicketName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 201: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 202: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n 204: {\n bodyMapper: Mappers.SupportTicketDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.createSupportTicketParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.supportTicketName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportTicketsListResult,\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"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createLroSpec = createLroSpec;
4
- const tslib_1 = require("tslib");
5
4
  function createLroSpec(inputs) {
6
5
  const { args, spec, sendOperationFn } = inputs;
7
6
  return {
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
9
8
  requestPath: spec.path,
10
9
  sendInitialRequest: () => sendOperationFn(args, spec),
11
10
  sendPollRequest: (path, options) => {
12
- const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
13
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
+ const { requestBody, ...restSpec } = spec;
12
+ return sendOperationFn(args, {
13
+ ...restSpec,
14
+ httpMethod: "GET",
15
+ path,
16
+ abortSignal: options?.abortSignal,
17
+ });
14
18
  },
15
19
  };
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
@@ -13,8 +13,10 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class MicrosoftSupport extends coreClient.ServiceClient {
16
+ $host;
17
+ apiVersion;
18
+ subscriptionId;
16
19
  constructor(credentials, subscriptionIdOrOptions, options) {
17
- var _a, _b, _c;
18
20
  if (credentials === undefined) {
19
21
  throw new Error("'credentials' cannot be null");
20
22
  }
@@ -37,12 +39,17 @@ class MicrosoftSupport extends coreClient.ServiceClient {
37
39
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
40
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
41
  : `${packageDetails}`;
40
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ const optionsWithDefaults = {
43
+ ...defaults,
44
+ ...options,
45
+ userAgentOptions: {
41
46
  userAgentPrefix,
42
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
47
+ },
48
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
49
+ };
43
50
  super(optionsWithDefaults);
44
51
  let bearerTokenAuthenticationPolicyFound = false;
45
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
46
53
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
54
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
55
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -56,7 +63,8 @@ class MicrosoftSupport extends coreClient.ServiceClient {
56
63
  });
57
64
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
65
  credential: credentials,
59
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
66
+ scopes: optionsWithDefaults.credentialScopes ??
67
+ `${optionsWithDefaults.endpoint}/.default`,
60
68
  challengeCallbacks: {
61
69
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
62
70
  },
@@ -107,6 +115,19 @@ class MicrosoftSupport extends coreClient.ServiceClient {
107
115
  };
108
116
  this.pipeline.addPolicy(apiVersionPolicy);
109
117
  }
118
+ operations;
119
+ services;
120
+ problemClassifications;
121
+ supportTickets;
122
+ supportTicketsNoSubscription;
123
+ communications;
124
+ communicationsNoSubscription;
125
+ chatTranscripts;
126
+ chatTranscriptsNoSubscription;
127
+ fileWorkspaces;
128
+ fileWorkspacesNoSubscription;
129
+ files;
130
+ filesNoSubscription;
110
131
  }
111
132
  exports.MicrosoftSupport = MicrosoftSupport;
112
133
  //# sourceMappingURL=microsoftSupport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"microsoftSupport.js","sourceRoot":"","sources":["../../src/microsoftSupport.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAc+B;AAkB/B,MAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAoB5D,YACE,WAAqC,EACrC,uBAAiE,EACjE,OAAwC;;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,4BAA4B,CAAC;QACpD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,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OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAeF;AAtKD,4CAsKC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ServicesImpl,\n ProblemClassificationsImpl,\n SupportTicketsImpl,\n SupportTicketsNoSubscriptionImpl,\n CommunicationsImpl,\n CommunicationsNoSubscriptionImpl,\n ChatTranscriptsImpl,\n ChatTranscriptsNoSubscriptionImpl,\n FileWorkspacesImpl,\n FileWorkspacesNoSubscriptionImpl,\n FilesImpl,\n FilesNoSubscriptionImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Services,\n ProblemClassifications,\n SupportTickets,\n SupportTicketsNoSubscription,\n Communications,\n CommunicationsNoSubscription,\n ChatTranscripts,\n ChatTranscriptsNoSubscription,\n FileWorkspaces,\n FileWorkspacesNoSubscription,\n Files,\n FilesNoSubscription,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftSupportOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftSupport extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MicrosoftSupport class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftSupportOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MicrosoftSupportOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MicrosoftSupportOptionalParams | string,\n options?: MicrosoftSupportOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MicrosoftSupportOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-support/3.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-04-01\";\n this.operations = new OperationsImpl(this);\n this.services = new ServicesImpl(this);\n this.problemClassifications = new ProblemClassificationsImpl(this);\n this.supportTickets = new SupportTicketsImpl(this);\n this.supportTicketsNoSubscription = new SupportTicketsNoSubscriptionImpl(\n this,\n );\n this.communications = new CommunicationsImpl(this);\n this.communicationsNoSubscription = new CommunicationsNoSubscriptionImpl(\n this,\n );\n this.chatTranscripts = new ChatTranscriptsImpl(this);\n this.chatTranscriptsNoSubscription = new ChatTranscriptsNoSubscriptionImpl(\n this,\n );\n this.fileWorkspaces = new FileWorkspacesImpl(this);\n this.fileWorkspacesNoSubscription = new FileWorkspacesNoSubscriptionImpl(\n this,\n );\n this.files = new FilesImpl(this);\n this.filesNoSubscription = new FilesNoSubscriptionImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n services: Services;\n problemClassifications: ProblemClassifications;\n supportTickets: SupportTickets;\n supportTicketsNoSubscription: SupportTicketsNoSubscription;\n communications: Communications;\n communicationsNoSubscription: CommunicationsNoSubscription;\n chatTranscripts: ChatTranscripts;\n chatTranscriptsNoSubscription: ChatTranscriptsNoSubscription;\n fileWorkspaces: FileWorkspaces;\n fileWorkspacesNoSubscription: FileWorkspacesNoSubscription;\n files: Files;\n filesNoSubscription: FilesNoSubscription;\n}\n"]}
1
+ {"version":3,"file":"microsoftSupport.js","sourceRoot":"","sources":["../../src/microsoftSupport.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAc+B;AAkB/B,MAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAAiE,EACjE,OAAwC;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,E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,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,sBAAsB,CAAyB;IAC/C,cAAc,CAAiB;IAC/B,4BAA4B,CAA+B;IAC3D,cAAc,CAAiB;IAC/B,4BAA4B,CAA+B;IAC3D,eAAe,CAAkB;IACjC,6BAA6B,CAAgC;IAC7D,cAAc,CAAiB;IAC/B,4BAA4B,CAA+B;IAC3D,KAAK,CAAQ;IACb,mBAAmB,CAAsB;CAC1C;AAtKD,4CAsKC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ServicesImpl,\n ProblemClassificationsImpl,\n SupportTicketsImpl,\n SupportTicketsNoSubscriptionImpl,\n CommunicationsImpl,\n CommunicationsNoSubscriptionImpl,\n ChatTranscriptsImpl,\n ChatTranscriptsNoSubscriptionImpl,\n FileWorkspacesImpl,\n FileWorkspacesNoSubscriptionImpl,\n FilesImpl,\n FilesNoSubscriptionImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Services,\n ProblemClassifications,\n SupportTickets,\n SupportTicketsNoSubscription,\n Communications,\n CommunicationsNoSubscription,\n ChatTranscripts,\n ChatTranscriptsNoSubscription,\n FileWorkspaces,\n FileWorkspacesNoSubscription,\n Files,\n FilesNoSubscription,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftSupportOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftSupport extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MicrosoftSupport class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftSupportOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MicrosoftSupportOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MicrosoftSupportOptionalParams | string,\n options?: MicrosoftSupportOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MicrosoftSupportOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-support/3.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-04-01\";\n this.operations = new OperationsImpl(this);\n this.services = new ServicesImpl(this);\n this.problemClassifications = new ProblemClassificationsImpl(this);\n this.supportTickets = new SupportTicketsImpl(this);\n this.supportTicketsNoSubscription = new SupportTicketsNoSubscriptionImpl(\n this,\n );\n this.communications = new CommunicationsImpl(this);\n this.communicationsNoSubscription = new CommunicationsNoSubscriptionImpl(\n this,\n );\n this.chatTranscripts = new ChatTranscriptsImpl(this);\n this.chatTranscriptsNoSubscription = new ChatTranscriptsNoSubscriptionImpl(\n this,\n );\n this.fileWorkspaces = new FileWorkspacesImpl(this);\n this.fileWorkspacesNoSubscription = new FileWorkspacesNoSubscriptionImpl(\n this,\n );\n this.files = new FilesImpl(this);\n this.filesNoSubscription = new FilesNoSubscriptionImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n services: Services;\n problemClassifications: ProblemClassifications;\n supportTickets: SupportTickets;\n supportTicketsNoSubscription: SupportTicketsNoSubscription;\n communications: Communications;\n communicationsNoSubscription: CommunicationsNoSubscription;\n chatTranscripts: ChatTranscripts;\n chatTranscriptsNoSubscription: ChatTranscriptsNoSubscription;\n fileWorkspaces: FileWorkspaces;\n fileWorkspacesNoSubscription: FileWorkspacesNoSubscription;\n files: Files;\n filesNoSubscription: FilesNoSubscription;\n}\n"]}
@@ -1238,14 +1238,18 @@ exports.ProxyResource = {
1238
1238
  type: {
1239
1239
  name: "Composite",
1240
1240
  className: "ProxyResource",
1241
- modelProperties: Object.assign({}, exports.Resource.type.modelProperties),
1241
+ modelProperties: {
1242
+ ...exports.Resource.type.modelProperties,
1243
+ },
1242
1244
  },
1243
1245
  };
1244
1246
  exports.ChatTranscriptDetails = {
1245
1247
  type: {
1246
1248
  name: "Composite",
1247
1249
  className: "ChatTranscriptDetails",
1248
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { messages: {
1250
+ modelProperties: {
1251
+ ...exports.ProxyResource.type.modelProperties,
1252
+ messages: {
1249
1253
  serializedName: "properties.messages",
1250
1254
  type: {
1251
1255
  name: "Sequence",
@@ -1256,60 +1260,72 @@ exports.ChatTranscriptDetails = {
1256
1260
  },
1257
1261
  },
1258
1262
  },
1259
- }, startTime: {
1263
+ },
1264
+ startTime: {
1260
1265
  serializedName: "properties.startTime",
1261
1266
  readOnly: true,
1262
1267
  type: {
1263
1268
  name: "DateTime",
1264
1269
  },
1265
- } }),
1270
+ },
1271
+ },
1266
1272
  },
1267
1273
  };
1268
1274
  exports.FileWorkspaceDetails = {
1269
1275
  type: {
1270
1276
  name: "Composite",
1271
1277
  className: "FileWorkspaceDetails",
1272
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { createdOn: {
1278
+ modelProperties: {
1279
+ ...exports.ProxyResource.type.modelProperties,
1280
+ createdOn: {
1273
1281
  serializedName: "properties.createdOn",
1274
1282
  readOnly: true,
1275
1283
  type: {
1276
1284
  name: "DateTime",
1277
1285
  },
1278
- }, expirationTime: {
1286
+ },
1287
+ expirationTime: {
1279
1288
  serializedName: "properties.expirationTime",
1280
1289
  readOnly: true,
1281
1290
  type: {
1282
1291
  name: "DateTime",
1283
1292
  },
1284
- } }),
1293
+ },
1294
+ },
1285
1295
  },
1286
1296
  };
1287
1297
  exports.FileDetails = {
1288
1298
  type: {
1289
1299
  name: "Composite",
1290
1300
  className: "FileDetails",
1291
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { createdOn: {
1301
+ modelProperties: {
1302
+ ...exports.ProxyResource.type.modelProperties,
1303
+ createdOn: {
1292
1304
  serializedName: "properties.createdOn",
1293
1305
  readOnly: true,
1294
1306
  type: {
1295
1307
  name: "DateTime",
1296
1308
  },
1297
- }, chunkSize: {
1309
+ },
1310
+ chunkSize: {
1298
1311
  serializedName: "properties.chunkSize",
1299
1312
  type: {
1300
1313
  name: "Number",
1301
1314
  },
1302
- }, fileSize: {
1315
+ },
1316
+ fileSize: {
1303
1317
  serializedName: "properties.fileSize",
1304
1318
  type: {
1305
1319
  name: "Number",
1306
1320
  },
1307
- }, numberOfChunks: {
1321
+ },
1322
+ numberOfChunks: {
1308
1323
  serializedName: "properties.numberOfChunks",
1309
1324
  type: {
1310
1325
  name: "Number",
1311
1326
  },
1312
- } }),
1327
+ },
1328
+ },
1313
1329
  },
1314
1330
  };
1315
1331
  exports.SupportTicketsNoSubscriptionCreateHeaders = {