@azure/arm-support 2.2.0-beta.1 → 2.2.0-beta.2
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.
- package/CHANGELOG.md +140 -1
- package/LICENSE +1 -1
- package/dist/index.js +1514 -1067
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/chatTranscriptsGetSample.js +1 -1
- package/dist-esm/samples-dev/chatTranscriptsListSample.js +6 -11
- package/dist-esm/samples-dev/chatTranscriptsListSample.js.map +1 -1
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.js +1 -1
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{supportTicketChatTranscriptsNoSubscriptionListSample.js → chatTranscriptsNoSubscriptionListSample.js} +7 -12
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/communicationsCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/communicationsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/communicationsCreateSample.js +2 -2
- package/dist-esm/samples-dev/communicationsGetSample.js +1 -1
- package/dist-esm/samples-dev/communicationsListSample.js +13 -28
- package/dist-esm/samples-dev/communicationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.js +2 -2
- package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.js +1 -1
- package/dist-esm/samples-dev/communicationsNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{supportTicketCommunicationsNoSubscriptionListSample.js → communicationsNoSubscriptionListSample.js} +16 -35
- package/dist-esm/samples-dev/communicationsNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.js +3 -3
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/fileWorkspacesGetSample.js +1 -1
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js +1 -1
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js +1 -1
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/filesCreateSample.js +4 -4
- package/dist-esm/samples-dev/filesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/filesGetSample.js +1 -1
- package/dist-esm/samples-dev/filesListSample.js +4 -9
- package/dist-esm/samples-dev/filesListSample.js.map +1 -1
- package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.js +2 -2
- package/dist-esm/samples-dev/filesNoSubscriptionGetSample.js +1 -1
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.js +4 -9
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.js.map +1 -1
- package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.js +2 -2
- package/dist-esm/samples-dev/filesUploadSample.js +2 -2
- package/dist-esm/samples-dev/lookUpResourceIdPostSample.d.ts +2 -0
- package/dist-esm/samples-dev/lookUpResourceIdPostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/lookUpResourceIdPostSample.js +39 -0
- package/dist-esm/samples-dev/lookUpResourceIdPostSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +4 -9
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/problemClassificationsClassifyProblemsSample.d.ts +2 -0
- package/dist-esm/samples-dev/problemClassificationsClassifyProblemsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/problemClassificationsClassifyProblemsSample.js +42 -0
- package/dist-esm/samples-dev/problemClassificationsClassifyProblemsSample.js.map +1 -0
- package/dist-esm/samples-dev/problemClassificationsGetSample.js +1 -1
- package/dist-esm/samples-dev/problemClassificationsListSample.js +4 -9
- package/dist-esm/samples-dev/problemClassificationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/problemClassificationsNoSubscriptionClassifyProblemsSample.d.ts +2 -0
- package/dist-esm/samples-dev/problemClassificationsNoSubscriptionClassifyProblemsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/problemClassificationsNoSubscriptionClassifyProblemsSample.js +37 -0
- package/dist-esm/samples-dev/problemClassificationsNoSubscriptionClassifyProblemsSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceClassificationsClassifyServicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceClassificationsClassifyServicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceClassificationsClassifyServicesSample.js +41 -0
- package/dist-esm/samples-dev/serviceClassificationsClassifyServicesSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceClassificationsNoSubscriptionClassifyServicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceClassificationsNoSubscriptionClassifyServicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceClassificationsNoSubscriptionClassifyServicesSample.js +39 -0
- package/dist-esm/samples-dev/serviceClassificationsNoSubscriptionClassifyServicesSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesGetSample.js +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +4 -9
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/supportTicketsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsCreateSample.js +92 -92
- package/dist-esm/samples-dev/supportTicketsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsGetSample.js +1 -1
- package/dist-esm/samples-dev/supportTicketsListSample.js +29 -64
- package/dist-esm/samples-dev/supportTicketsListSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.js +10 -10
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js +46 -81
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.js +7 -7
- package/dist-esm/samples-dev/supportTicketsUpdateSample.js +13 -13
- package/dist-esm/samples-dev/supportTicketsUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/microsoftSupport.d.ts +6 -4
- package/dist-esm/src/microsoftSupport.d.ts.map +1 -1
- package/dist-esm/src/microsoftSupport.js +15 -11
- package/dist-esm/src/microsoftSupport.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +180 -23
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +9 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +696 -430
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +91 -66
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/chatTranscripts.js +19 -24
- package/dist-esm/src/operations/chatTranscripts.js.map +1 -1
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts +23 -1
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.js +122 -5
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.js.map +1 -1
- package/dist-esm/src/operations/communications.d.ts.map +1 -1
- package/dist-esm/src/operations/communications.js +38 -43
- package/dist-esm/src/operations/communications.js.map +1 -1
- package/dist-esm/src/operations/communicationsNoSubscription.d.ts +33 -1
- package/dist-esm/src/operations/communicationsNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/communicationsNoSubscription.js +150 -24
- package/dist-esm/src/operations/communicationsNoSubscription.js.map +1 -1
- package/dist-esm/src/operations/fileWorkspaces.js +10 -10
- package/dist-esm/src/operations/fileWorkspaces.js.map +1 -1
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.js +8 -8
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.js.map +1 -1
- package/dist-esm/src/operations/files.js +28 -33
- package/dist-esm/src/operations/files.js.map +1 -1
- package/dist-esm/src/operations/filesNoSubscription.js +27 -32
- package/dist-esm/src/operations/filesNoSubscription.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +4 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +4 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/lookUpResourceId.d.ts +19 -0
- package/dist-esm/src/operations/lookUpResourceId.d.ts.map +1 -0
- package/dist-esm/src/operations/lookUpResourceId.js +49 -0
- package/dist-esm/src/operations/lookUpResourceId.js.map +1 -0
- package/dist-esm/src/operations/operations.js +8 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/problemClassifications.d.ts +11 -2
- package/dist-esm/src/operations/problemClassifications.d.ts.map +1 -1
- package/dist-esm/src/operations/problemClassifications.js +51 -19
- package/dist-esm/src/operations/problemClassifications.js.map +1 -1
- package/dist-esm/src/operations/problemClassificationsNoSubscription.d.ts +21 -0
- package/dist-esm/src/operations/problemClassificationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/problemClassificationsNoSubscription.js +55 -0
- package/dist-esm/src/operations/problemClassificationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/serviceClassifications.d.ts +19 -0
- package/dist-esm/src/operations/serviceClassifications.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceClassifications.js +49 -0
- package/dist-esm/src/operations/serviceClassifications.js.map +1 -0
- package/dist-esm/src/operations/serviceClassificationsNoSubscription.d.ts +19 -0
- package/dist-esm/src/operations/serviceClassificationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceClassificationsNoSubscription.js +49 -0
- package/dist-esm/src/operations/serviceClassificationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +2 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +14 -18
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/supportTickets.d.ts.map +1 -1
- package/dist-esm/src/operations/supportTickets.js +40 -45
- package/dist-esm/src/operations/supportTickets.js.map +1 -1
- package/dist-esm/src/operations/supportTicketsNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/supportTicketsNoSubscription.js +36 -41
- package/dist-esm/src/operations/supportTicketsNoSubscription.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts +8 -1
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts +13 -1
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +4 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/lookUpResourceId.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/lookUpResourceId.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{supportTicketCommunicationsNoSubscription.js → lookUpResourceId.js} +1 -1
- package/dist-esm/src/operationsInterfaces/lookUpResourceId.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts +11 -2
- package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/problemClassificationsNoSubscription.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/problemClassificationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{supportTicketChatTranscriptsNoSubscription.js → problemClassificationsNoSubscription.js} +1 -1
- package/dist-esm/src/operationsInterfaces/problemClassificationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceClassifications.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/serviceClassifications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceClassifications.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceClassifications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceClassificationsNoSubscription.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/serviceClassificationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceClassificationsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceClassificationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +2 -1
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/support_operations_test.spec.js +4 -9
- package/dist-esm/test/support_operations_test.spec.js.map +1 -1
- package/package.json +11 -16
- package/review/arm-support.api.md +166 -39
- package/src/lroImpl.ts +3 -3
- package/src/microsoftSupport.ts +43 -36
- package/src/models/index.ts +228 -41
- package/src/models/mappers.ts +735 -452
- package/src/models/parameters.ts +100 -68
- package/src/operations/chatTranscripts.ts +29 -31
- package/src/operations/chatTranscriptsNoSubscription.ts +148 -11
- package/src/operations/communications.ts +62 -67
- package/src/operations/communicationsNoSubscription.ts +190 -47
- package/src/operations/fileWorkspaces.ts +17 -19
- package/src/operations/fileWorkspacesNoSubscription.ts +15 -14
- package/src/operations/files.ts +44 -48
- package/src/operations/filesNoSubscription.ts +42 -45
- package/src/operations/index.ts +4 -2
- package/src/operations/lookUpResourceId.ts +67 -0
- package/src/operations/operations.ts +10 -10
- package/src/operations/problemClassifications.ts +69 -23
- package/src/operations/problemClassificationsNoSubscription.ts +76 -0
- package/src/operations/serviceClassifications.ts +67 -0
- package/src/operations/serviceClassificationsNoSubscription.ts +69 -0
- package/src/operations/services.ts +18 -17
- package/src/operations/supportTickets.ts +65 -71
- package/src/operations/supportTicketsNoSubscription.ts +58 -58
- package/src/operationsInterfaces/chatTranscripts.ts +3 -3
- package/src/operationsInterfaces/chatTranscriptsNoSubscription.ts +15 -2
- package/src/operationsInterfaces/communications.ts +6 -6
- package/src/operationsInterfaces/communicationsNoSubscription.ts +23 -6
- package/src/operationsInterfaces/fileWorkspaces.ts +3 -3
- package/src/operationsInterfaces/fileWorkspacesNoSubscription.ts +3 -3
- package/src/operationsInterfaces/files.ts +5 -5
- package/src/operationsInterfaces/filesNoSubscription.ts +5 -5
- package/src/operationsInterfaces/index.ts +4 -2
- package/src/operationsInterfaces/lookUpResourceId.ts +26 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/problemClassifications.ts +20 -4
- package/src/operationsInterfaces/problemClassificationsNoSubscription.ts +29 -0
- package/src/operationsInterfaces/serviceClassifications.ts +26 -0
- package/src/operationsInterfaces/serviceClassificationsNoSubscription.ts +26 -0
- package/src/operationsInterfaces/services.ts +5 -4
- package/src/operationsInterfaces/supportTickets.ts +7 -7
- package/src/operationsInterfaces/supportTicketsNoSubscription.ts +7 -7
- package/src/pagingHelper.ts +1 -1
- package/types/arm-support.d.ts +291 -67
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts +0 -2
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.js.map +0 -1
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts +0 -2
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.js.map +0 -1
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts +0 -35
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts.map +0 -1
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js +0 -145
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js.map +0 -1
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts +0 -45
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts.map +0 -1
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js +0 -155
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts +0 -12
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts +0 -17
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.js.map +0 -1
- package/src/operations/supportTicketChatTranscriptsNoSubscription.ts +0 -170
- package/src/operations/supportTicketCommunicationsNoSubscription.ts +0 -180
- package/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.ts +0 -27
- package/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.ts +0 -32
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
-
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
/// <reference lib="esnext.asynciterable" />
|
|
14
|
-
/** Class containing SupportTicketChatTranscriptsNoSubscription operations. */
|
|
15
|
-
export class SupportTicketChatTranscriptsNoSubscriptionImpl {
|
|
16
|
-
/**
|
|
17
|
-
* Initialize a new instance of the class SupportTicketChatTranscriptsNoSubscription class.
|
|
18
|
-
* @param client Reference to the service client
|
|
19
|
-
*/
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Lists all chat transcripts for a support ticket
|
|
25
|
-
* @param supportTicketName Support ticket name
|
|
26
|
-
* @param options The options parameters.
|
|
27
|
-
*/
|
|
28
|
-
list(supportTicketName, options) {
|
|
29
|
-
const iter = this.listPagingAll(supportTicketName, options);
|
|
30
|
-
return {
|
|
31
|
-
next() {
|
|
32
|
-
return iter.next();
|
|
33
|
-
},
|
|
34
|
-
[Symbol.asyncIterator]() {
|
|
35
|
-
return this;
|
|
36
|
-
},
|
|
37
|
-
byPage: (settings) => {
|
|
38
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
39
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
-
}
|
|
41
|
-
return this.listPagingPage(supportTicketName, options, settings);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
listPagingPage(supportTicketName, options, settings) {
|
|
46
|
-
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
47
|
-
let result;
|
|
48
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
49
|
-
if (!continuationToken) {
|
|
50
|
-
result = yield __await(this._list(supportTicketName, options));
|
|
51
|
-
let page = result.value || [];
|
|
52
|
-
continuationToken = result.nextLink;
|
|
53
|
-
setContinuationToken(page, continuationToken);
|
|
54
|
-
yield yield __await(page);
|
|
55
|
-
}
|
|
56
|
-
while (continuationToken) {
|
|
57
|
-
result = yield __await(this._listNext(supportTicketName, continuationToken, options));
|
|
58
|
-
continuationToken = result.nextLink;
|
|
59
|
-
let page = result.value || [];
|
|
60
|
-
setContinuationToken(page, continuationToken);
|
|
61
|
-
yield yield __await(page);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
listPagingAll(supportTicketName, options) {
|
|
66
|
-
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
67
|
-
var _a, e_1, _b, _c;
|
|
68
|
-
try {
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
try {
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
finally {
|
|
77
|
-
_d = true;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Lists all chat transcripts for a support ticket
|
|
92
|
-
* @param supportTicketName Support ticket name
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
_list(supportTicketName, options) {
|
|
96
|
-
return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* ListNext
|
|
100
|
-
* @param supportTicketName Support ticket name
|
|
101
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
102
|
-
* @param options The options parameters.
|
|
103
|
-
*/
|
|
104
|
-
_listNext(supportTicketName, nextLink, options) {
|
|
105
|
-
return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// Operation Specifications
|
|
109
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
110
|
-
const listOperationSpec = {
|
|
111
|
-
path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts",
|
|
112
|
-
httpMethod: "GET",
|
|
113
|
-
responses: {
|
|
114
|
-
200: {
|
|
115
|
-
bodyMapper: Mappers.ChatTranscriptsListResult
|
|
116
|
-
},
|
|
117
|
-
default: {
|
|
118
|
-
bodyMapper: Mappers.ErrorResponse
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
queryParameters: [Parameters.apiVersion],
|
|
122
|
-
urlParameters: [Parameters.$host, Parameters.supportTicketName],
|
|
123
|
-
headerParameters: [Parameters.accept],
|
|
124
|
-
serializer
|
|
125
|
-
};
|
|
126
|
-
const listNextOperationSpec = {
|
|
127
|
-
path: "{nextLink}",
|
|
128
|
-
httpMethod: "GET",
|
|
129
|
-
responses: {
|
|
130
|
-
200: {
|
|
131
|
-
bodyMapper: Mappers.ChatTranscriptsListResult
|
|
132
|
-
},
|
|
133
|
-
default: {
|
|
134
|
-
bodyMapper: Mappers.ErrorResponse
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
urlParameters: [
|
|
138
|
-
Parameters.$host,
|
|
139
|
-
Parameters.supportTicketName,
|
|
140
|
-
Parameters.nextLink
|
|
141
|
-
],
|
|
142
|
-
headerParameters: [Parameters.accept],
|
|
143
|
-
serializer
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=supportTicketChatTranscriptsNoSubscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketChatTranscriptsNoSubscription.js","sourceRoot":"","sources":["../../../src/operations/supportTicketChatTranscriptsNoSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8EAA8E;AAC9E,MAAM,OAAO,8CAA8C;IAIzD;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAsE;QAEtE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,O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T,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { SupportTicketCommunicationsNoSubscription } from "../operationsInterfaces";
|
|
3
|
-
import { MicrosoftSupport } from "../microsoftSupport";
|
|
4
|
-
import { CommunicationDetails, SupportTicketCommunicationsNoSubscriptionListOptionalParams } from "../models";
|
|
5
|
-
/** Class containing SupportTicketCommunicationsNoSubscription operations. */
|
|
6
|
-
export declare class SupportTicketCommunicationsNoSubscriptionImpl implements SupportTicketCommunicationsNoSubscription {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class SupportTicketCommunicationsNoSubscription class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: MicrosoftSupport);
|
|
13
|
-
/**
|
|
14
|
-
* Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
|
|
15
|
-
* filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
|
|
16
|
-
* parameter. The only type of communication supported today is _Web_. Output will be a paged result
|
|
17
|
-
* with _nextLink_, using which you can retrieve the next set of Communication results.
|
|
18
|
-
* <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
|
|
19
|
-
* created more than 18 months ago, a request for data might cause an error.
|
|
20
|
-
* @param supportTicketName Support ticket name
|
|
21
|
-
* @param options The options parameters.
|
|
22
|
-
*/
|
|
23
|
-
list(supportTicketName: string, options?: SupportTicketCommunicationsNoSubscriptionListOptionalParams): PagedAsyncIterableIterator<CommunicationDetails>;
|
|
24
|
-
private listPagingPage;
|
|
25
|
-
private listPagingAll;
|
|
26
|
-
/**
|
|
27
|
-
* Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
|
|
28
|
-
* filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
|
|
29
|
-
* parameter. The only type of communication supported today is _Web_. Output will be a paged result
|
|
30
|
-
* with _nextLink_, using which you can retrieve the next set of Communication results.
|
|
31
|
-
* <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
|
|
32
|
-
* created more than 18 months ago, a request for data might cause an error.
|
|
33
|
-
* @param supportTicketName Support ticket name
|
|
34
|
-
* @param options The options parameters.
|
|
35
|
-
*/
|
|
36
|
-
private _list;
|
|
37
|
-
/**
|
|
38
|
-
* ListNext
|
|
39
|
-
* @param supportTicketName Support ticket name
|
|
40
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
41
|
-
* @param options The options parameters.
|
|
42
|
-
*/
|
|
43
|
-
private _listNext;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=supportTicketCommunicationsNoSubscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketCommunicationsNoSubscription.d.ts","sourceRoot":"","sources":["../../../src/operations/supportTicketCommunicationsNoSubscription.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,yCAAyC,EAAE,MAAM,yBAAyB,CAAC;AAIpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,oBAAoB,EAEpB,2DAA2D,EAG5D,MAAM,WAAW,CAAC;AAGnB,6EAA6E;AAC7E,qBAAa,6CACX,YAAW,yCAAyC;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,2DAA2D,GACpE,0BAA0B,CAAC,oBAAoB,CAAC;YAkBpC,cAAc;YA2Bd,aAAa;IAS5B;;;;;;;;;OASG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
-
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
/// <reference lib="esnext.asynciterable" />
|
|
14
|
-
/** Class containing SupportTicketCommunicationsNoSubscription operations. */
|
|
15
|
-
export class SupportTicketCommunicationsNoSubscriptionImpl {
|
|
16
|
-
/**
|
|
17
|
-
* Initialize a new instance of the class SupportTicketCommunicationsNoSubscription class.
|
|
18
|
-
* @param client Reference to the service client
|
|
19
|
-
*/
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
|
|
25
|
-
* filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
|
|
26
|
-
* parameter. The only type of communication supported today is _Web_. Output will be a paged result
|
|
27
|
-
* with _nextLink_, using which you can retrieve the next set of Communication results.
|
|
28
|
-
* <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
|
|
29
|
-
* created more than 18 months ago, a request for data might cause an error.
|
|
30
|
-
* @param supportTicketName Support ticket name
|
|
31
|
-
* @param options The options parameters.
|
|
32
|
-
*/
|
|
33
|
-
list(supportTicketName, options) {
|
|
34
|
-
const iter = this.listPagingAll(supportTicketName, options);
|
|
35
|
-
return {
|
|
36
|
-
next() {
|
|
37
|
-
return iter.next();
|
|
38
|
-
},
|
|
39
|
-
[Symbol.asyncIterator]() {
|
|
40
|
-
return this;
|
|
41
|
-
},
|
|
42
|
-
byPage: (settings) => {
|
|
43
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
44
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
|
-
}
|
|
46
|
-
return this.listPagingPage(supportTicketName, options, settings);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
listPagingPage(supportTicketName, options, settings) {
|
|
51
|
-
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
52
|
-
let result;
|
|
53
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
54
|
-
if (!continuationToken) {
|
|
55
|
-
result = yield __await(this._list(supportTicketName, options));
|
|
56
|
-
let page = result.value || [];
|
|
57
|
-
continuationToken = result.nextLink;
|
|
58
|
-
setContinuationToken(page, continuationToken);
|
|
59
|
-
yield yield __await(page);
|
|
60
|
-
}
|
|
61
|
-
while (continuationToken) {
|
|
62
|
-
result = yield __await(this._listNext(supportTicketName, continuationToken, options));
|
|
63
|
-
continuationToken = result.nextLink;
|
|
64
|
-
let page = result.value || [];
|
|
65
|
-
setContinuationToken(page, continuationToken);
|
|
66
|
-
yield yield __await(page);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
listPagingAll(supportTicketName, options) {
|
|
71
|
-
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
72
|
-
var _a, e_1, _b, _c;
|
|
73
|
-
try {
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
try {
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
finally {
|
|
82
|
-
_d = true;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
87
|
-
finally {
|
|
88
|
-
try {
|
|
89
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
90
|
-
}
|
|
91
|
-
finally { if (e_1) throw e_1.error; }
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
|
|
97
|
-
* filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
|
|
98
|
-
* parameter. The only type of communication supported today is _Web_. Output will be a paged result
|
|
99
|
-
* with _nextLink_, using which you can retrieve the next set of Communication results.
|
|
100
|
-
* <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
|
|
101
|
-
* created more than 18 months ago, a request for data might cause an error.
|
|
102
|
-
* @param supportTicketName Support ticket name
|
|
103
|
-
* @param options The options parameters.
|
|
104
|
-
*/
|
|
105
|
-
_list(supportTicketName, options) {
|
|
106
|
-
return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* ListNext
|
|
110
|
-
* @param supportTicketName Support ticket name
|
|
111
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
112
|
-
* @param options The options parameters.
|
|
113
|
-
*/
|
|
114
|
-
_listNext(supportTicketName, nextLink, options) {
|
|
115
|
-
return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// Operation Specifications
|
|
119
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
120
|
-
const listOperationSpec = {
|
|
121
|
-
path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications",
|
|
122
|
-
httpMethod: "GET",
|
|
123
|
-
responses: {
|
|
124
|
-
200: {
|
|
125
|
-
bodyMapper: Mappers.CommunicationsListResult
|
|
126
|
-
},
|
|
127
|
-
default: {
|
|
128
|
-
bodyMapper: Mappers.ErrorResponse
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],
|
|
132
|
-
urlParameters: [Parameters.$host, Parameters.supportTicketName],
|
|
133
|
-
headerParameters: [Parameters.accept],
|
|
134
|
-
serializer
|
|
135
|
-
};
|
|
136
|
-
const listNextOperationSpec = {
|
|
137
|
-
path: "{nextLink}",
|
|
138
|
-
httpMethod: "GET",
|
|
139
|
-
responses: {
|
|
140
|
-
200: {
|
|
141
|
-
bodyMapper: Mappers.CommunicationsListResult
|
|
142
|
-
},
|
|
143
|
-
default: {
|
|
144
|
-
bodyMapper: Mappers.ErrorResponse
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
urlParameters: [
|
|
148
|
-
Parameters.$host,
|
|
149
|
-
Parameters.supportTicketName,
|
|
150
|
-
Parameters.nextLink
|
|
151
|
-
],
|
|
152
|
-
headerParameters: [Parameters.accept],
|
|
153
|
-
serializer
|
|
154
|
-
};
|
|
155
|
-
//# sourceMappingURL=supportTicketCommunicationsNoSubscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketCommunicationsNoSubscription.js","sourceRoot":"","sources":["../../../src/operations/supportTicketCommunicationsNoSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK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K,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,gFAAgF;IAClF,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,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3E,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,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,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { ChatTranscriptDetails, SupportTicketChatTranscriptsNoSubscriptionListOptionalParams } from "../models";
|
|
3
|
-
/** Interface representing a SupportTicketChatTranscriptsNoSubscription. */
|
|
4
|
-
export interface SupportTicketChatTranscriptsNoSubscription {
|
|
5
|
-
/**
|
|
6
|
-
* Lists all chat transcripts for a support ticket
|
|
7
|
-
* @param supportTicketName Support ticket name
|
|
8
|
-
* @param options The options parameters.
|
|
9
|
-
*/
|
|
10
|
-
list(supportTicketName: string, options?: SupportTicketChatTranscriptsNoSubscriptionListOptionalParams): PagedAsyncIterableIterator<ChatTranscriptDetails>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=supportTicketChatTranscriptsNoSubscription.d.ts.map
|
package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketChatTranscriptsNoSubscription.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,4DAA4D,EAC7D,MAAM,WAAW,CAAC;AAGnB,2EAA2E;AAC3E,MAAM,WAAW,0CAA0C;IACzD;;;;OAIG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,4DAA4D,GACrE,0BAA0B,CAAC,qBAAqB,CAAC,CAAC;CACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketChatTranscriptsNoSubscription.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { CommunicationDetails, SupportTicketCommunicationsNoSubscriptionListOptionalParams } from "../models";
|
|
3
|
-
/** Interface representing a SupportTicketCommunicationsNoSubscription. */
|
|
4
|
-
export interface SupportTicketCommunicationsNoSubscription {
|
|
5
|
-
/**
|
|
6
|
-
* Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
|
|
7
|
-
* filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
|
|
8
|
-
* parameter. The only type of communication supported today is _Web_. Output will be a paged result
|
|
9
|
-
* with _nextLink_, using which you can retrieve the next set of Communication results.
|
|
10
|
-
* <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
|
|
11
|
-
* created more than 18 months ago, a request for data might cause an error.
|
|
12
|
-
* @param supportTicketName Support ticket name
|
|
13
|
-
* @param options The options parameters.
|
|
14
|
-
*/
|
|
15
|
-
list(supportTicketName: string, options?: SupportTicketCommunicationsNoSubscriptionListOptionalParams): PagedAsyncIterableIterator<CommunicationDetails>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=supportTicketCommunicationsNoSubscription.d.ts.map
|
package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketCommunicationsNoSubscription.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/supportTicketCommunicationsNoSubscription.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,2DAA2D,EAC5D,MAAM,WAAW,CAAC;AAGnB,0EAA0E;AAC1E,MAAM,WAAW,yCAAyC;IACxD;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,2DAA2D,GACpE,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;CACrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketCommunicationsNoSubscription.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/supportTicketCommunicationsNoSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { SupportTicketChatTranscriptsNoSubscription } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { MicrosoftSupport } from "../microsoftSupport";
|
|
16
|
-
import {
|
|
17
|
-
ChatTranscriptDetails,
|
|
18
|
-
SupportTicketChatTranscriptsNoSubscriptionListNextOptionalParams,
|
|
19
|
-
SupportTicketChatTranscriptsNoSubscriptionListOptionalParams,
|
|
20
|
-
SupportTicketChatTranscriptsNoSubscriptionListResponse,
|
|
21
|
-
SupportTicketChatTranscriptsNoSubscriptionListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing SupportTicketChatTranscriptsNoSubscription operations. */
|
|
26
|
-
export class SupportTicketChatTranscriptsNoSubscriptionImpl
|
|
27
|
-
implements SupportTicketChatTranscriptsNoSubscription {
|
|
28
|
-
private readonly client: MicrosoftSupport;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Initialize a new instance of the class SupportTicketChatTranscriptsNoSubscription class.
|
|
32
|
-
* @param client Reference to the service client
|
|
33
|
-
*/
|
|
34
|
-
constructor(client: MicrosoftSupport) {
|
|
35
|
-
this.client = client;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Lists all chat transcripts for a support ticket
|
|
40
|
-
* @param supportTicketName Support ticket name
|
|
41
|
-
* @param options The options parameters.
|
|
42
|
-
*/
|
|
43
|
-
public list(
|
|
44
|
-
supportTicketName: string,
|
|
45
|
-
options?: SupportTicketChatTranscriptsNoSubscriptionListOptionalParams
|
|
46
|
-
): PagedAsyncIterableIterator<ChatTranscriptDetails> {
|
|
47
|
-
const iter = this.listPagingAll(supportTicketName, options);
|
|
48
|
-
return {
|
|
49
|
-
next() {
|
|
50
|
-
return iter.next();
|
|
51
|
-
},
|
|
52
|
-
[Symbol.asyncIterator]() {
|
|
53
|
-
return this;
|
|
54
|
-
},
|
|
55
|
-
byPage: (settings?: PageSettings) => {
|
|
56
|
-
if (settings?.maxPageSize) {
|
|
57
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
58
|
-
}
|
|
59
|
-
return this.listPagingPage(supportTicketName, options, settings);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
private async *listPagingPage(
|
|
65
|
-
supportTicketName: string,
|
|
66
|
-
options?: SupportTicketChatTranscriptsNoSubscriptionListOptionalParams,
|
|
67
|
-
settings?: PageSettings
|
|
68
|
-
): AsyncIterableIterator<ChatTranscriptDetails[]> {
|
|
69
|
-
let result: SupportTicketChatTranscriptsNoSubscriptionListResponse;
|
|
70
|
-
let continuationToken = settings?.continuationToken;
|
|
71
|
-
if (!continuationToken) {
|
|
72
|
-
result = await this._list(supportTicketName, options);
|
|
73
|
-
let page = result.value || [];
|
|
74
|
-
continuationToken = result.nextLink;
|
|
75
|
-
setContinuationToken(page, continuationToken);
|
|
76
|
-
yield page;
|
|
77
|
-
}
|
|
78
|
-
while (continuationToken) {
|
|
79
|
-
result = await this._listNext(
|
|
80
|
-
supportTicketName,
|
|
81
|
-
continuationToken,
|
|
82
|
-
options
|
|
83
|
-
);
|
|
84
|
-
continuationToken = result.nextLink;
|
|
85
|
-
let page = result.value || [];
|
|
86
|
-
setContinuationToken(page, continuationToken);
|
|
87
|
-
yield page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private async *listPagingAll(
|
|
92
|
-
supportTicketName: string,
|
|
93
|
-
options?: SupportTicketChatTranscriptsNoSubscriptionListOptionalParams
|
|
94
|
-
): AsyncIterableIterator<ChatTranscriptDetails> {
|
|
95
|
-
for await (const page of this.listPagingPage(supportTicketName, options)) {
|
|
96
|
-
yield* page;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Lists all chat transcripts for a support ticket
|
|
102
|
-
* @param supportTicketName Support ticket name
|
|
103
|
-
* @param options The options parameters.
|
|
104
|
-
*/
|
|
105
|
-
private _list(
|
|
106
|
-
supportTicketName: string,
|
|
107
|
-
options?: SupportTicketChatTranscriptsNoSubscriptionListOptionalParams
|
|
108
|
-
): Promise<SupportTicketChatTranscriptsNoSubscriptionListResponse> {
|
|
109
|
-
return this.client.sendOperationRequest(
|
|
110
|
-
{ supportTicketName, options },
|
|
111
|
-
listOperationSpec
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* ListNext
|
|
117
|
-
* @param supportTicketName Support ticket name
|
|
118
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
119
|
-
* @param options The options parameters.
|
|
120
|
-
*/
|
|
121
|
-
private _listNext(
|
|
122
|
-
supportTicketName: string,
|
|
123
|
-
nextLink: string,
|
|
124
|
-
options?: SupportTicketChatTranscriptsNoSubscriptionListNextOptionalParams
|
|
125
|
-
): Promise<SupportTicketChatTranscriptsNoSubscriptionListNextResponse> {
|
|
126
|
-
return this.client.sendOperationRequest(
|
|
127
|
-
{ supportTicketName, nextLink, options },
|
|
128
|
-
listNextOperationSpec
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
// Operation Specifications
|
|
133
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
134
|
-
|
|
135
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path:
|
|
137
|
-
"/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts",
|
|
138
|
-
httpMethod: "GET",
|
|
139
|
-
responses: {
|
|
140
|
-
200: {
|
|
141
|
-
bodyMapper: Mappers.ChatTranscriptsListResult
|
|
142
|
-
},
|
|
143
|
-
default: {
|
|
144
|
-
bodyMapper: Mappers.ErrorResponse
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
queryParameters: [Parameters.apiVersion],
|
|
148
|
-
urlParameters: [Parameters.$host, Parameters.supportTicketName],
|
|
149
|
-
headerParameters: [Parameters.accept],
|
|
150
|
-
serializer
|
|
151
|
-
};
|
|
152
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
153
|
-
path: "{nextLink}",
|
|
154
|
-
httpMethod: "GET",
|
|
155
|
-
responses: {
|
|
156
|
-
200: {
|
|
157
|
-
bodyMapper: Mappers.ChatTranscriptsListResult
|
|
158
|
-
},
|
|
159
|
-
default: {
|
|
160
|
-
bodyMapper: Mappers.ErrorResponse
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
urlParameters: [
|
|
164
|
-
Parameters.$host,
|
|
165
|
-
Parameters.supportTicketName,
|
|
166
|
-
Parameters.nextLink
|
|
167
|
-
],
|
|
168
|
-
headerParameters: [Parameters.accept],
|
|
169
|
-
serializer
|
|
170
|
-
};
|