@aws-sdk/client-connect 3.460.0 → 3.461.0
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/README.md +104 -0
- package/dist-cjs/Connect.js +26 -0
- package/dist-cjs/commands/AssociateAnalyticsDataSetCommand.js +51 -0
- package/dist-cjs/commands/AssociateFlowCommand.js +51 -0
- package/dist-cjs/commands/BatchAssociateAnalyticsDataSetCommand.js +51 -0
- package/dist-cjs/commands/BatchDisassociateAnalyticsDataSetCommand.js +51 -0
- package/dist-cjs/commands/DisassociateAnalyticsDataSetCommand.js +51 -0
- package/dist-cjs/commands/DisassociateFlowCommand.js +51 -0
- package/dist-cjs/commands/GetFlowAssociationCommand.js +51 -0
- package/dist-cjs/commands/ImportPhoneNumberCommand.js +51 -0
- package/dist-cjs/commands/ListAnalyticsDataAssociationsCommand.js +51 -0
- package/dist-cjs/commands/ListFlowAssociationsCommand.js +51 -0
- package/dist-cjs/commands/ListRealtimeContactAnalysisSegmentsV2Command.js +51 -0
- package/dist-cjs/commands/SendChatIntegrationEventCommand.js +51 -0
- package/dist-cjs/commands/StartWebRTCContactCommand.js +52 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/models/models_0.js +11 -10
- package/dist-cjs/models/models_1.js +81 -51
- package/dist-cjs/models/models_2.js +72 -1
- package/dist-cjs/pagination/ListFlowAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1056 -31
- package/dist-es/Connect.js +26 -0
- package/dist-es/commands/AssociateAnalyticsDataSetCommand.js +47 -0
- package/dist-es/commands/AssociateFlowCommand.js +47 -0
- package/dist-es/commands/BatchAssociateAnalyticsDataSetCommand.js +47 -0
- package/dist-es/commands/BatchDisassociateAnalyticsDataSetCommand.js +47 -0
- package/dist-es/commands/DisassociateAnalyticsDataSetCommand.js +47 -0
- package/dist-es/commands/DisassociateFlowCommand.js +47 -0
- package/dist-es/commands/GetFlowAssociationCommand.js +47 -0
- package/dist-es/commands/ImportPhoneNumberCommand.js +47 -0
- package/dist-es/commands/ListAnalyticsDataAssociationsCommand.js +47 -0
- package/dist-es/commands/ListFlowAssociationsCommand.js +47 -0
- package/dist-es/commands/ListRealtimeContactAnalysisSegmentsV2Command.js +47 -0
- package/dist-es/commands/SendChatIntegrationEventCommand.js +47 -0
- package/dist-es/commands/StartWebRTCContactCommand.js +48 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/models_0.js +9 -8
- package/dist-es/models/models_1.js +79 -47
- package/dist-es/models/models_2.js +65 -0
- package/dist-es/pagination/ListFlowAssociationsPaginator.js +25 -0
- package/dist-es/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1019 -21
- package/dist-types/Connect.d.ts +91 -0
- package/dist-types/ConnectClient.d.ts +15 -2
- package/dist-types/commands/AssociateAnalyticsDataSetCommand.d.ts +95 -0
- package/dist-types/commands/AssociateFlowCommand.d.ts +92 -0
- package/dist-types/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +107 -0
- package/dist-types/commands/BatchDisassociateAnalyticsDataSetCommand.d.ts +102 -0
- package/dist-types/commands/CreateRuleCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserCommand.d.ts +1 -3
- package/dist-types/commands/DescribePhoneNumberCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuickConnectCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRoutingProfileCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleCommand.d.ts +2 -2
- package/dist-types/commands/DescribeSecurityProfileCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTrafficDistributionGroupCommand.d.ts +1 -2
- package/dist-types/commands/DescribeUserCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateAnalyticsDataSetCommand.d.ts +89 -0
- package/dist-types/commands/DisassociateFlowCommand.d.ts +91 -0
- package/dist-types/commands/GetFlowAssociationCommand.d.ts +95 -0
- package/dist-types/commands/ImportPhoneNumberCommand.d.ts +100 -0
- package/dist-types/commands/ListAnalyticsDataAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/ListFlowAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/ListPhoneNumbersCommand.d.ts +2 -2
- package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +4 -2
- package/dist-types/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +185 -0
- package/dist-types/commands/ListRulesCommand.d.ts +2 -2
- package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
- package/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +2 -2
- package/dist-types/commands/SendChatIntegrationEventCommand.d.ts +125 -0
- package/dist-types/commands/StartChatContactCommand.d.ts +1 -1
- package/dist-types/commands/StartContactEvaluationCommand.d.ts +1 -1
- package/dist-types/commands/StartContactRecordingCommand.d.ts +1 -1
- package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +1 -1
- package/dist-types/commands/StartTaskContactCommand.d.ts +1 -1
- package/dist-types/commands/StartWebRTCContactCommand.d.ts +137 -0
- package/dist-types/commands/StopContactCommand.d.ts +1 -1
- package/dist-types/commands/StopContactRecordingCommand.d.ts +1 -1
- package/dist-types/commands/StopContactStreamingCommand.d.ts +1 -1
- package/dist-types/commands/SubmitContactEvaluationCommand.d.ts +1 -1
- package/dist-types/commands/SuspendContactRecordingCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TransferContactCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactEvaluationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +271 -381
- package/dist-types/models/models_1.d.ts +3355 -3077
- package/dist-types/models/models_2.d.ts +1427 -2
- package/dist-types/pagination/ListFlowAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/Connect.d.ts +233 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +78 -0
- package/dist-types/ts3.4/commands/AssociateAnalyticsDataSetCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateFlowCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchDisassociateAnalyticsDataSetCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeQuickConnectCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeRoutingProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSecurityProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTrafficDistributionGroupCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DisassociateAnalyticsDataSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateFlowCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetFlowAssociationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ImportPhoneNumberCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAnalyticsDataAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListFlowAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +42 -0
- package/dist-types/ts3.4/commands/SendChatIntegrationEventCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartChatContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContactEvaluationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContactRecordingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContactStreamingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartOutboundVoiceContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTaskContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartWebRTCContactCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StopContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopContactRecordingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopContactStreamingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SubmitContactEvaluationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SuspendContactRecordingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TransferContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactEvaluationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +69 -94
- package/dist-types/ts3.4/models/models_1.d.ts +388 -256
- package/dist-types/ts3.4/models/models_2.d.ts +334 -0
- package/dist-types/ts3.4/pagination/ListFlowAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ConnectServiceException as __BaseException } from "../models/ConnectServiceException";
|
|
6
6
|
import { AccessDeniedException, ContactFlowNotPublishedException, DuplicateResourceException, EvaluationAnswerData, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, TooManyRequestsException, } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
import { EvaluationFormItem, } from "../models/models_2";
|
|
7
|
+
import { MaximumResultReturnedException, OutputTypeNotFoundException, UserNotFoundException, } from "../models/models_1";
|
|
8
|
+
import { ContactNotFoundException, DestinationNotAllowedException, EvaluationFormItem, OutboundContactNotPermittedException, } from "../models/models_2";
|
|
9
9
|
export const se_ActivateEvaluationFormCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
@@ -29,6 +29,29 @@ export const se_ActivateEvaluationFormCommand = async (input, context) => {
|
|
|
29
29
|
body,
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
+
export const se_AssociateAnalyticsDataSetCommand = async (input, context) => {
|
|
33
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/json",
|
|
36
|
+
};
|
|
37
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
38
|
+
"/analytics-data/instance/{InstanceId}/association";
|
|
39
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
40
|
+
let body;
|
|
41
|
+
body = JSON.stringify(take(input, {
|
|
42
|
+
DataSetId: [],
|
|
43
|
+
TargetAccountId: [],
|
|
44
|
+
}));
|
|
45
|
+
return new __HttpRequest({
|
|
46
|
+
protocol,
|
|
47
|
+
hostname,
|
|
48
|
+
port,
|
|
49
|
+
method: "PUT",
|
|
50
|
+
headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
32
55
|
export const se_AssociateApprovedOriginCommand = async (input, context) => {
|
|
33
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
57
|
const headers = {
|
|
@@ -95,6 +118,29 @@ export const se_AssociateDefaultVocabularyCommand = async (input, context) => {
|
|
|
95
118
|
body,
|
|
96
119
|
});
|
|
97
120
|
};
|
|
121
|
+
export const se_AssociateFlowCommand = async (input, context) => {
|
|
122
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/json",
|
|
125
|
+
};
|
|
126
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/flow-associations/{InstanceId}";
|
|
127
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(take(input, {
|
|
130
|
+
FlowId: [],
|
|
131
|
+
ResourceId: [],
|
|
132
|
+
ResourceType: [],
|
|
133
|
+
}));
|
|
134
|
+
return new __HttpRequest({
|
|
135
|
+
protocol,
|
|
136
|
+
hostname,
|
|
137
|
+
port,
|
|
138
|
+
method: "PUT",
|
|
139
|
+
headers,
|
|
140
|
+
path: resolvedPath,
|
|
141
|
+
body,
|
|
142
|
+
});
|
|
143
|
+
};
|
|
98
144
|
export const se_AssociateInstanceStorageConfigCommand = async (input, context) => {
|
|
99
145
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
100
146
|
const headers = {
|
|
@@ -272,6 +318,52 @@ export const se_AssociateTrafficDistributionGroupUserCommand = async (input, con
|
|
|
272
318
|
body,
|
|
273
319
|
});
|
|
274
320
|
};
|
|
321
|
+
export const se_BatchAssociateAnalyticsDataSetCommand = async (input, context) => {
|
|
322
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
323
|
+
const headers = {
|
|
324
|
+
"content-type": "application/json",
|
|
325
|
+
};
|
|
326
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
327
|
+
"/analytics-data/instance/{InstanceId}/associations";
|
|
328
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
329
|
+
let body;
|
|
330
|
+
body = JSON.stringify(take(input, {
|
|
331
|
+
DataSetIds: (_) => _json(_),
|
|
332
|
+
TargetAccountId: [],
|
|
333
|
+
}));
|
|
334
|
+
return new __HttpRequest({
|
|
335
|
+
protocol,
|
|
336
|
+
hostname,
|
|
337
|
+
port,
|
|
338
|
+
method: "PUT",
|
|
339
|
+
headers,
|
|
340
|
+
path: resolvedPath,
|
|
341
|
+
body,
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
export const se_BatchDisassociateAnalyticsDataSetCommand = async (input, context) => {
|
|
345
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
346
|
+
const headers = {
|
|
347
|
+
"content-type": "application/json",
|
|
348
|
+
};
|
|
349
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
350
|
+
"/analytics-data/instance/{InstanceId}/associations";
|
|
351
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify(take(input, {
|
|
354
|
+
DataSetIds: (_) => _json(_),
|
|
355
|
+
TargetAccountId: [],
|
|
356
|
+
}));
|
|
357
|
+
return new __HttpRequest({
|
|
358
|
+
protocol,
|
|
359
|
+
hostname,
|
|
360
|
+
port,
|
|
361
|
+
method: "POST",
|
|
362
|
+
headers,
|
|
363
|
+
path: resolvedPath,
|
|
364
|
+
body,
|
|
365
|
+
});
|
|
366
|
+
};
|
|
275
367
|
export const se_BatchGetFlowAssociationCommand = async (input, context) => {
|
|
276
368
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
369
|
const headers = {
|
|
@@ -1730,6 +1822,29 @@ export const se_DescribeVocabularyCommand = async (input, context) => {
|
|
|
1730
1822
|
body,
|
|
1731
1823
|
});
|
|
1732
1824
|
};
|
|
1825
|
+
export const se_DisassociateAnalyticsDataSetCommand = async (input, context) => {
|
|
1826
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1827
|
+
const headers = {
|
|
1828
|
+
"content-type": "application/json",
|
|
1829
|
+
};
|
|
1830
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1831
|
+
"/analytics-data/instance/{InstanceId}/association";
|
|
1832
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1833
|
+
let body;
|
|
1834
|
+
body = JSON.stringify(take(input, {
|
|
1835
|
+
DataSetId: [],
|
|
1836
|
+
TargetAccountId: [],
|
|
1837
|
+
}));
|
|
1838
|
+
return new __HttpRequest({
|
|
1839
|
+
protocol,
|
|
1840
|
+
hostname,
|
|
1841
|
+
port,
|
|
1842
|
+
method: "POST",
|
|
1843
|
+
headers,
|
|
1844
|
+
path: resolvedPath,
|
|
1845
|
+
body,
|
|
1846
|
+
});
|
|
1847
|
+
};
|
|
1733
1848
|
export const se_DisassociateApprovedOriginCommand = async (input, context) => {
|
|
1734
1849
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1735
1850
|
const headers = {};
|
|
@@ -1772,6 +1887,25 @@ export const se_DisassociateBotCommand = async (input, context) => {
|
|
|
1772
1887
|
body,
|
|
1773
1888
|
});
|
|
1774
1889
|
};
|
|
1890
|
+
export const se_DisassociateFlowCommand = async (input, context) => {
|
|
1891
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1892
|
+
const headers = {};
|
|
1893
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1894
|
+
"/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}";
|
|
1895
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1896
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
1897
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceType", () => input.ResourceType, "{ResourceType}", false);
|
|
1898
|
+
let body;
|
|
1899
|
+
return new __HttpRequest({
|
|
1900
|
+
protocol,
|
|
1901
|
+
hostname,
|
|
1902
|
+
port,
|
|
1903
|
+
method: "DELETE",
|
|
1904
|
+
headers,
|
|
1905
|
+
path: resolvedPath,
|
|
1906
|
+
body,
|
|
1907
|
+
});
|
|
1908
|
+
};
|
|
1775
1909
|
export const se_DisassociateInstanceStorageConfigCommand = async (input, context) => {
|
|
1776
1910
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1777
1911
|
const headers = {};
|
|
@@ -2047,6 +2181,25 @@ export const se_GetFederationTokenCommand = async (input, context) => {
|
|
|
2047
2181
|
body,
|
|
2048
2182
|
});
|
|
2049
2183
|
};
|
|
2184
|
+
export const se_GetFlowAssociationCommand = async (input, context) => {
|
|
2185
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2186
|
+
const headers = {};
|
|
2187
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2188
|
+
"/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}";
|
|
2189
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2190
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
2191
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceType", () => input.ResourceType, "{ResourceType}", false);
|
|
2192
|
+
let body;
|
|
2193
|
+
return new __HttpRequest({
|
|
2194
|
+
protocol,
|
|
2195
|
+
hostname,
|
|
2196
|
+
port,
|
|
2197
|
+
method: "GET",
|
|
2198
|
+
headers,
|
|
2199
|
+
path: resolvedPath,
|
|
2200
|
+
body,
|
|
2201
|
+
});
|
|
2202
|
+
};
|
|
2050
2203
|
export const se_GetMetricDataCommand = async (input, context) => {
|
|
2051
2204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2052
2205
|
const headers = {
|
|
@@ -2157,6 +2310,30 @@ export const se_GetTrafficDistributionCommand = async (input, context) => {
|
|
|
2157
2310
|
body,
|
|
2158
2311
|
});
|
|
2159
2312
|
};
|
|
2313
|
+
export const se_ImportPhoneNumberCommand = async (input, context) => {
|
|
2314
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2315
|
+
const headers = {
|
|
2316
|
+
"content-type": "application/json",
|
|
2317
|
+
};
|
|
2318
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/import";
|
|
2319
|
+
let body;
|
|
2320
|
+
body = JSON.stringify(take(input, {
|
|
2321
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2322
|
+
InstanceId: [],
|
|
2323
|
+
PhoneNumberDescription: [],
|
|
2324
|
+
SourcePhoneNumberArn: [],
|
|
2325
|
+
Tags: (_) => _json(_),
|
|
2326
|
+
}));
|
|
2327
|
+
return new __HttpRequest({
|
|
2328
|
+
protocol,
|
|
2329
|
+
hostname,
|
|
2330
|
+
port,
|
|
2331
|
+
method: "POST",
|
|
2332
|
+
headers,
|
|
2333
|
+
path: resolvedPath,
|
|
2334
|
+
body,
|
|
2335
|
+
});
|
|
2336
|
+
};
|
|
2160
2337
|
export const se_ListAgentStatusesCommand = async (input, context) => {
|
|
2161
2338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2162
2339
|
const headers = {};
|
|
@@ -2182,6 +2359,29 @@ export const se_ListAgentStatusesCommand = async (input, context) => {
|
|
|
2182
2359
|
body,
|
|
2183
2360
|
});
|
|
2184
2361
|
};
|
|
2362
|
+
export const se_ListAnalyticsDataAssociationsCommand = async (input, context) => {
|
|
2363
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2364
|
+
const headers = {};
|
|
2365
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2366
|
+
"/analytics-data/instance/{InstanceId}/association";
|
|
2367
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2368
|
+
const query = map({
|
|
2369
|
+
DataSetId: [, input.DataSetId],
|
|
2370
|
+
nextToken: [, input.NextToken],
|
|
2371
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2372
|
+
});
|
|
2373
|
+
let body;
|
|
2374
|
+
return new __HttpRequest({
|
|
2375
|
+
protocol,
|
|
2376
|
+
hostname,
|
|
2377
|
+
port,
|
|
2378
|
+
method: "GET",
|
|
2379
|
+
headers,
|
|
2380
|
+
path: resolvedPath,
|
|
2381
|
+
query,
|
|
2382
|
+
body,
|
|
2383
|
+
});
|
|
2384
|
+
};
|
|
2185
2385
|
export const se_ListApprovedOriginsCommand = async (input, context) => {
|
|
2186
2386
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2187
2387
|
const headers = {};
|
|
@@ -2387,6 +2587,28 @@ export const se_ListEvaluationFormVersionsCommand = async (input, context) => {
|
|
|
2387
2587
|
body,
|
|
2388
2588
|
});
|
|
2389
2589
|
};
|
|
2590
|
+
export const se_ListFlowAssociationsCommand = async (input, context) => {
|
|
2591
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2592
|
+
const headers = {};
|
|
2593
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/flow-associations-summary/{InstanceId}";
|
|
2594
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2595
|
+
const query = map({
|
|
2596
|
+
ResourceType: [, input.ResourceType],
|
|
2597
|
+
nextToken: [, input.NextToken],
|
|
2598
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2599
|
+
});
|
|
2600
|
+
let body;
|
|
2601
|
+
return new __HttpRequest({
|
|
2602
|
+
protocol,
|
|
2603
|
+
hostname,
|
|
2604
|
+
port,
|
|
2605
|
+
method: "GET",
|
|
2606
|
+
headers,
|
|
2607
|
+
path: resolvedPath,
|
|
2608
|
+
query,
|
|
2609
|
+
body,
|
|
2610
|
+
});
|
|
2611
|
+
};
|
|
2390
2612
|
export const se_ListHoursOfOperationsCommand = async (input, context) => {
|
|
2391
2613
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2392
2614
|
const headers = {};
|
|
@@ -2683,6 +2905,32 @@ export const se_ListQuickConnectsCommand = async (input, context) => {
|
|
|
2683
2905
|
body,
|
|
2684
2906
|
});
|
|
2685
2907
|
};
|
|
2908
|
+
export const se_ListRealtimeContactAnalysisSegmentsV2Command = async (input, context) => {
|
|
2909
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2910
|
+
const headers = {
|
|
2911
|
+
"content-type": "application/json",
|
|
2912
|
+
};
|
|
2913
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2914
|
+
"/contact/list-real-time-analysis-segments-v2/{InstanceId}/{ContactId}";
|
|
2915
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2916
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
|
|
2917
|
+
let body;
|
|
2918
|
+
body = JSON.stringify(take(input, {
|
|
2919
|
+
MaxResults: [],
|
|
2920
|
+
NextToken: [],
|
|
2921
|
+
OutputType: [],
|
|
2922
|
+
SegmentTypes: (_) => _json(_),
|
|
2923
|
+
}));
|
|
2924
|
+
return new __HttpRequest({
|
|
2925
|
+
protocol,
|
|
2926
|
+
hostname,
|
|
2927
|
+
port,
|
|
2928
|
+
method: "POST",
|
|
2929
|
+
headers,
|
|
2930
|
+
path: resolvedPath,
|
|
2931
|
+
body,
|
|
2932
|
+
});
|
|
2933
|
+
};
|
|
2686
2934
|
export const se_ListRoutingProfileQueuesCommand = async (input, context) => {
|
|
2687
2935
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2688
2936
|
const headers = {};
|
|
@@ -3384,6 +3632,30 @@ export const se_SearchVocabulariesCommand = async (input, context) => {
|
|
|
3384
3632
|
body,
|
|
3385
3633
|
});
|
|
3386
3634
|
};
|
|
3635
|
+
export const se_SendChatIntegrationEventCommand = async (input, context) => {
|
|
3636
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3637
|
+
const headers = {
|
|
3638
|
+
"content-type": "application/json",
|
|
3639
|
+
};
|
|
3640
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/chat-integration-event";
|
|
3641
|
+
let body;
|
|
3642
|
+
body = JSON.stringify(take(input, {
|
|
3643
|
+
DestinationId: [],
|
|
3644
|
+
Event: (_) => _json(_),
|
|
3645
|
+
NewSessionDetails: (_) => _json(_),
|
|
3646
|
+
SourceId: [],
|
|
3647
|
+
Subtype: [],
|
|
3648
|
+
}));
|
|
3649
|
+
return new __HttpRequest({
|
|
3650
|
+
protocol,
|
|
3651
|
+
hostname,
|
|
3652
|
+
port,
|
|
3653
|
+
method: "POST",
|
|
3654
|
+
headers,
|
|
3655
|
+
path: resolvedPath,
|
|
3656
|
+
body,
|
|
3657
|
+
});
|
|
3658
|
+
};
|
|
3387
3659
|
export const se_StartChatContactCommand = async (input, context) => {
|
|
3388
3660
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3389
3661
|
const headers = {
|
|
@@ -3543,6 +3815,34 @@ export const se_StartTaskContactCommand = async (input, context) => {
|
|
|
3543
3815
|
body,
|
|
3544
3816
|
});
|
|
3545
3817
|
};
|
|
3818
|
+
export const se_StartWebRTCContactCommand = async (input, context) => {
|
|
3819
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3820
|
+
const headers = {
|
|
3821
|
+
"content-type": "application/json",
|
|
3822
|
+
};
|
|
3823
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/webrtc";
|
|
3824
|
+
let body;
|
|
3825
|
+
body = JSON.stringify(take(input, {
|
|
3826
|
+
AllowedCapabilities: (_) => _json(_),
|
|
3827
|
+
Attributes: (_) => _json(_),
|
|
3828
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
3829
|
+
ContactFlowId: [],
|
|
3830
|
+
Description: [],
|
|
3831
|
+
InstanceId: [],
|
|
3832
|
+
ParticipantDetails: (_) => _json(_),
|
|
3833
|
+
References: (_) => _json(_),
|
|
3834
|
+
RelatedContactId: [],
|
|
3835
|
+
}));
|
|
3836
|
+
return new __HttpRequest({
|
|
3837
|
+
protocol,
|
|
3838
|
+
hostname,
|
|
3839
|
+
port,
|
|
3840
|
+
method: "PUT",
|
|
3841
|
+
headers,
|
|
3842
|
+
path: resolvedPath,
|
|
3843
|
+
body,
|
|
3844
|
+
});
|
|
3845
|
+
};
|
|
3546
3846
|
export const se_StopContactCommand = async (input, context) => {
|
|
3547
3847
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3548
3848
|
const headers = {
|
|
@@ -4791,14 +5091,62 @@ const de_ActivateEvaluationFormCommandError = async (output, context) => {
|
|
|
4791
5091
|
});
|
|
4792
5092
|
}
|
|
4793
5093
|
};
|
|
4794
|
-
export const
|
|
5094
|
+
export const de_AssociateAnalyticsDataSetCommand = async (output, context) => {
|
|
4795
5095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4796
|
-
return
|
|
5096
|
+
return de_AssociateAnalyticsDataSetCommandError(output, context);
|
|
4797
5097
|
}
|
|
4798
5098
|
const contents = map({
|
|
4799
5099
|
$metadata: deserializeMetadata(output),
|
|
4800
5100
|
});
|
|
4801
|
-
await
|
|
5101
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5102
|
+
const doc = take(data, {
|
|
5103
|
+
DataSetId: __expectString,
|
|
5104
|
+
ResourceShareArn: __expectString,
|
|
5105
|
+
ResourceShareId: __expectString,
|
|
5106
|
+
TargetAccountId: __expectString,
|
|
5107
|
+
});
|
|
5108
|
+
Object.assign(contents, doc);
|
|
5109
|
+
return contents;
|
|
5110
|
+
};
|
|
5111
|
+
const de_AssociateAnalyticsDataSetCommandError = async (output, context) => {
|
|
5112
|
+
const parsedOutput = {
|
|
5113
|
+
...output,
|
|
5114
|
+
body: await parseErrorBody(output.body, context),
|
|
5115
|
+
};
|
|
5116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5117
|
+
switch (errorCode) {
|
|
5118
|
+
case "InternalServiceException":
|
|
5119
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5120
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5121
|
+
case "InvalidParameterException":
|
|
5122
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5123
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5124
|
+
case "InvalidRequestException":
|
|
5125
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5126
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5127
|
+
case "ResourceNotFoundException":
|
|
5128
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5130
|
+
case "ThrottlingException":
|
|
5131
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5133
|
+
default:
|
|
5134
|
+
const parsedBody = parsedOutput.body;
|
|
5135
|
+
return throwDefaultError({
|
|
5136
|
+
output,
|
|
5137
|
+
parsedBody,
|
|
5138
|
+
errorCode,
|
|
5139
|
+
});
|
|
5140
|
+
}
|
|
5141
|
+
};
|
|
5142
|
+
export const de_AssociateApprovedOriginCommand = async (output, context) => {
|
|
5143
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5144
|
+
return de_AssociateApprovedOriginCommandError(output, context);
|
|
5145
|
+
}
|
|
5146
|
+
const contents = map({
|
|
5147
|
+
$metadata: deserializeMetadata(output),
|
|
5148
|
+
});
|
|
5149
|
+
await collectBody(output.body, context);
|
|
4802
5150
|
return contents;
|
|
4803
5151
|
};
|
|
4804
5152
|
const de_AssociateApprovedOriginCommandError = async (output, context) => {
|
|
@@ -4926,6 +5274,50 @@ const de_AssociateDefaultVocabularyCommandError = async (output, context) => {
|
|
|
4926
5274
|
});
|
|
4927
5275
|
}
|
|
4928
5276
|
};
|
|
5277
|
+
export const de_AssociateFlowCommand = async (output, context) => {
|
|
5278
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5279
|
+
return de_AssociateFlowCommandError(output, context);
|
|
5280
|
+
}
|
|
5281
|
+
const contents = map({
|
|
5282
|
+
$metadata: deserializeMetadata(output),
|
|
5283
|
+
});
|
|
5284
|
+
await collectBody(output.body, context);
|
|
5285
|
+
return contents;
|
|
5286
|
+
};
|
|
5287
|
+
const de_AssociateFlowCommandError = async (output, context) => {
|
|
5288
|
+
const parsedOutput = {
|
|
5289
|
+
...output,
|
|
5290
|
+
body: await parseErrorBody(output.body, context),
|
|
5291
|
+
};
|
|
5292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5293
|
+
switch (errorCode) {
|
|
5294
|
+
case "AccessDeniedException":
|
|
5295
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5296
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5297
|
+
case "InternalServiceException":
|
|
5298
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5299
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5300
|
+
case "InvalidParameterException":
|
|
5301
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5302
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5303
|
+
case "InvalidRequestException":
|
|
5304
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5305
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5306
|
+
case "ResourceNotFoundException":
|
|
5307
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5308
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5309
|
+
case "ThrottlingException":
|
|
5310
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5311
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5312
|
+
default:
|
|
5313
|
+
const parsedBody = parsedOutput.body;
|
|
5314
|
+
return throwDefaultError({
|
|
5315
|
+
output,
|
|
5316
|
+
parsedBody,
|
|
5317
|
+
errorCode,
|
|
5318
|
+
});
|
|
5319
|
+
}
|
|
5320
|
+
};
|
|
4929
5321
|
export const de_AssociateInstanceStorageConfigCommand = async (output, context) => {
|
|
4930
5322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4931
5323
|
return de_AssociateInstanceStorageConfigCommandError(output, context);
|
|
@@ -5289,6 +5681,98 @@ const de_AssociateTrafficDistributionGroupUserCommandError = async (output, cont
|
|
|
5289
5681
|
});
|
|
5290
5682
|
}
|
|
5291
5683
|
};
|
|
5684
|
+
export const de_BatchAssociateAnalyticsDataSetCommand = async (output, context) => {
|
|
5685
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5686
|
+
return de_BatchAssociateAnalyticsDataSetCommandError(output, context);
|
|
5687
|
+
}
|
|
5688
|
+
const contents = map({
|
|
5689
|
+
$metadata: deserializeMetadata(output),
|
|
5690
|
+
});
|
|
5691
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5692
|
+
const doc = take(data, {
|
|
5693
|
+
Created: _json,
|
|
5694
|
+
Errors: _json,
|
|
5695
|
+
});
|
|
5696
|
+
Object.assign(contents, doc);
|
|
5697
|
+
return contents;
|
|
5698
|
+
};
|
|
5699
|
+
const de_BatchAssociateAnalyticsDataSetCommandError = async (output, context) => {
|
|
5700
|
+
const parsedOutput = {
|
|
5701
|
+
...output,
|
|
5702
|
+
body: await parseErrorBody(output.body, context),
|
|
5703
|
+
};
|
|
5704
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5705
|
+
switch (errorCode) {
|
|
5706
|
+
case "InternalServiceException":
|
|
5707
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5708
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5709
|
+
case "InvalidParameterException":
|
|
5710
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5711
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5712
|
+
case "InvalidRequestException":
|
|
5713
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5714
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5715
|
+
case "ResourceNotFoundException":
|
|
5716
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5717
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5718
|
+
case "ThrottlingException":
|
|
5719
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5720
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5721
|
+
default:
|
|
5722
|
+
const parsedBody = parsedOutput.body;
|
|
5723
|
+
return throwDefaultError({
|
|
5724
|
+
output,
|
|
5725
|
+
parsedBody,
|
|
5726
|
+
errorCode,
|
|
5727
|
+
});
|
|
5728
|
+
}
|
|
5729
|
+
};
|
|
5730
|
+
export const de_BatchDisassociateAnalyticsDataSetCommand = async (output, context) => {
|
|
5731
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5732
|
+
return de_BatchDisassociateAnalyticsDataSetCommandError(output, context);
|
|
5733
|
+
}
|
|
5734
|
+
const contents = map({
|
|
5735
|
+
$metadata: deserializeMetadata(output),
|
|
5736
|
+
});
|
|
5737
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5738
|
+
const doc = take(data, {
|
|
5739
|
+
Deleted: _json,
|
|
5740
|
+
Errors: _json,
|
|
5741
|
+
});
|
|
5742
|
+
Object.assign(contents, doc);
|
|
5743
|
+
return contents;
|
|
5744
|
+
};
|
|
5745
|
+
const de_BatchDisassociateAnalyticsDataSetCommandError = async (output, context) => {
|
|
5746
|
+
const parsedOutput = {
|
|
5747
|
+
...output,
|
|
5748
|
+
body: await parseErrorBody(output.body, context),
|
|
5749
|
+
};
|
|
5750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5751
|
+
switch (errorCode) {
|
|
5752
|
+
case "InternalServiceException":
|
|
5753
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5754
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5755
|
+
case "InvalidParameterException":
|
|
5756
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5757
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5758
|
+
case "InvalidRequestException":
|
|
5759
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5760
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5761
|
+
case "ResourceNotFoundException":
|
|
5762
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5763
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5764
|
+
case "ThrottlingException":
|
|
5765
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5766
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5767
|
+
default:
|
|
5768
|
+
const parsedBody = parsedOutput.body;
|
|
5769
|
+
return throwDefaultError({
|
|
5770
|
+
output,
|
|
5771
|
+
parsedBody,
|
|
5772
|
+
errorCode,
|
|
5773
|
+
});
|
|
5774
|
+
}
|
|
5775
|
+
};
|
|
5292
5776
|
export const de_BatchGetFlowAssociationCommand = async (output, context) => {
|
|
5293
5777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5294
5778
|
return de_BatchGetFlowAssociationCommandError(output, context);
|
|
@@ -8588,6 +9072,47 @@ const de_DescribeVocabularyCommandError = async (output, context) => {
|
|
|
8588
9072
|
});
|
|
8589
9073
|
}
|
|
8590
9074
|
};
|
|
9075
|
+
export const de_DisassociateAnalyticsDataSetCommand = async (output, context) => {
|
|
9076
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9077
|
+
return de_DisassociateAnalyticsDataSetCommandError(output, context);
|
|
9078
|
+
}
|
|
9079
|
+
const contents = map({
|
|
9080
|
+
$metadata: deserializeMetadata(output),
|
|
9081
|
+
});
|
|
9082
|
+
await collectBody(output.body, context);
|
|
9083
|
+
return contents;
|
|
9084
|
+
};
|
|
9085
|
+
const de_DisassociateAnalyticsDataSetCommandError = async (output, context) => {
|
|
9086
|
+
const parsedOutput = {
|
|
9087
|
+
...output,
|
|
9088
|
+
body: await parseErrorBody(output.body, context),
|
|
9089
|
+
};
|
|
9090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9091
|
+
switch (errorCode) {
|
|
9092
|
+
case "InternalServiceException":
|
|
9093
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9094
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
9095
|
+
case "InvalidParameterException":
|
|
9096
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
9097
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
9098
|
+
case "InvalidRequestException":
|
|
9099
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
9100
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
9101
|
+
case "ResourceNotFoundException":
|
|
9102
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
9103
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
9104
|
+
case "ThrottlingException":
|
|
9105
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
9106
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
9107
|
+
default:
|
|
9108
|
+
const parsedBody = parsedOutput.body;
|
|
9109
|
+
return throwDefaultError({
|
|
9110
|
+
output,
|
|
9111
|
+
parsedBody,
|
|
9112
|
+
errorCode,
|
|
9113
|
+
});
|
|
9114
|
+
}
|
|
9115
|
+
};
|
|
8591
9116
|
export const de_DisassociateApprovedOriginCommand = async (output, context) => {
|
|
8592
9117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8593
9118
|
return de_DisassociateApprovedOriginCommandError(output, context);
|
|
@@ -8667,6 +9192,50 @@ const de_DisassociateBotCommandError = async (output, context) => {
|
|
|
8667
9192
|
});
|
|
8668
9193
|
}
|
|
8669
9194
|
};
|
|
9195
|
+
export const de_DisassociateFlowCommand = async (output, context) => {
|
|
9196
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9197
|
+
return de_DisassociateFlowCommandError(output, context);
|
|
9198
|
+
}
|
|
9199
|
+
const contents = map({
|
|
9200
|
+
$metadata: deserializeMetadata(output),
|
|
9201
|
+
});
|
|
9202
|
+
await collectBody(output.body, context);
|
|
9203
|
+
return contents;
|
|
9204
|
+
};
|
|
9205
|
+
const de_DisassociateFlowCommandError = async (output, context) => {
|
|
9206
|
+
const parsedOutput = {
|
|
9207
|
+
...output,
|
|
9208
|
+
body: await parseErrorBody(output.body, context),
|
|
9209
|
+
};
|
|
9210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9211
|
+
switch (errorCode) {
|
|
9212
|
+
case "AccessDeniedException":
|
|
9213
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
9214
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
9215
|
+
case "InternalServiceException":
|
|
9216
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9217
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
9218
|
+
case "InvalidParameterException":
|
|
9219
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
9220
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
9221
|
+
case "InvalidRequestException":
|
|
9222
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
9223
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
9224
|
+
case "ResourceNotFoundException":
|
|
9225
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
9226
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
9227
|
+
case "ThrottlingException":
|
|
9228
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
9229
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
9230
|
+
default:
|
|
9231
|
+
const parsedBody = parsedOutput.body;
|
|
9232
|
+
return throwDefaultError({
|
|
9233
|
+
output,
|
|
9234
|
+
parsedBody,
|
|
9235
|
+
errorCode,
|
|
9236
|
+
});
|
|
9237
|
+
}
|
|
9238
|
+
};
|
|
8670
9239
|
export const de_DisassociateInstanceStorageConfigCommand = async (output, context) => {
|
|
8671
9240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8672
9241
|
return de_DisassociateInstanceStorageConfigCommandError(output, context);
|
|
@@ -9227,6 +9796,56 @@ const de_GetFederationTokenCommandError = async (output, context) => {
|
|
|
9227
9796
|
});
|
|
9228
9797
|
}
|
|
9229
9798
|
};
|
|
9799
|
+
export const de_GetFlowAssociationCommand = async (output, context) => {
|
|
9800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9801
|
+
return de_GetFlowAssociationCommandError(output, context);
|
|
9802
|
+
}
|
|
9803
|
+
const contents = map({
|
|
9804
|
+
$metadata: deserializeMetadata(output),
|
|
9805
|
+
});
|
|
9806
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
9807
|
+
const doc = take(data, {
|
|
9808
|
+
FlowId: __expectString,
|
|
9809
|
+
ResourceId: __expectString,
|
|
9810
|
+
ResourceType: __expectString,
|
|
9811
|
+
});
|
|
9812
|
+
Object.assign(contents, doc);
|
|
9813
|
+
return contents;
|
|
9814
|
+
};
|
|
9815
|
+
const de_GetFlowAssociationCommandError = async (output, context) => {
|
|
9816
|
+
const parsedOutput = {
|
|
9817
|
+
...output,
|
|
9818
|
+
body: await parseErrorBody(output.body, context),
|
|
9819
|
+
};
|
|
9820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9821
|
+
switch (errorCode) {
|
|
9822
|
+
case "AccessDeniedException":
|
|
9823
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
9824
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
9825
|
+
case "InternalServiceException":
|
|
9826
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9827
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
9828
|
+
case "InvalidParameterException":
|
|
9829
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
9830
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
9831
|
+
case "InvalidRequestException":
|
|
9832
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
9833
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
9834
|
+
case "ResourceNotFoundException":
|
|
9835
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
9836
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
9837
|
+
case "ThrottlingException":
|
|
9838
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
9839
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
9840
|
+
default:
|
|
9841
|
+
const parsedBody = parsedOutput.body;
|
|
9842
|
+
return throwDefaultError({
|
|
9843
|
+
output,
|
|
9844
|
+
parsedBody,
|
|
9845
|
+
errorCode,
|
|
9846
|
+
});
|
|
9847
|
+
}
|
|
9848
|
+
};
|
|
9230
9849
|
export const de_GetMetricDataCommand = async (output, context) => {
|
|
9231
9850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9232
9851
|
return de_GetMetricDataCommandError(output, context);
|
|
@@ -9423,37 +10042,132 @@ const de_GetTaskTemplateCommandError = async (output, context) => {
|
|
|
9423
10042
|
});
|
|
9424
10043
|
}
|
|
9425
10044
|
};
|
|
9426
|
-
export const de_GetTrafficDistributionCommand = async (output, context) => {
|
|
10045
|
+
export const de_GetTrafficDistributionCommand = async (output, context) => {
|
|
10046
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10047
|
+
return de_GetTrafficDistributionCommandError(output, context);
|
|
10048
|
+
}
|
|
10049
|
+
const contents = map({
|
|
10050
|
+
$metadata: deserializeMetadata(output),
|
|
10051
|
+
});
|
|
10052
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10053
|
+
const doc = take(data, {
|
|
10054
|
+
AgentConfig: _json,
|
|
10055
|
+
Arn: __expectString,
|
|
10056
|
+
Id: __expectString,
|
|
10057
|
+
SignInConfig: _json,
|
|
10058
|
+
TelephonyConfig: _json,
|
|
10059
|
+
});
|
|
10060
|
+
Object.assign(contents, doc);
|
|
10061
|
+
return contents;
|
|
10062
|
+
};
|
|
10063
|
+
const de_GetTrafficDistributionCommandError = async (output, context) => {
|
|
10064
|
+
const parsedOutput = {
|
|
10065
|
+
...output,
|
|
10066
|
+
body: await parseErrorBody(output.body, context),
|
|
10067
|
+
};
|
|
10068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10069
|
+
switch (errorCode) {
|
|
10070
|
+
case "AccessDeniedException":
|
|
10071
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10072
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
10073
|
+
case "InternalServiceException":
|
|
10074
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10075
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10076
|
+
case "InvalidRequestException":
|
|
10077
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10078
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
10079
|
+
case "ResourceNotFoundException":
|
|
10080
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10082
|
+
case "ThrottlingException":
|
|
10083
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10084
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10085
|
+
default:
|
|
10086
|
+
const parsedBody = parsedOutput.body;
|
|
10087
|
+
return throwDefaultError({
|
|
10088
|
+
output,
|
|
10089
|
+
parsedBody,
|
|
10090
|
+
errorCode,
|
|
10091
|
+
});
|
|
10092
|
+
}
|
|
10093
|
+
};
|
|
10094
|
+
export const de_ImportPhoneNumberCommand = async (output, context) => {
|
|
10095
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10096
|
+
return de_ImportPhoneNumberCommandError(output, context);
|
|
10097
|
+
}
|
|
10098
|
+
const contents = map({
|
|
10099
|
+
$metadata: deserializeMetadata(output),
|
|
10100
|
+
});
|
|
10101
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10102
|
+
const doc = take(data, {
|
|
10103
|
+
PhoneNumberArn: __expectString,
|
|
10104
|
+
PhoneNumberId: __expectString,
|
|
10105
|
+
});
|
|
10106
|
+
Object.assign(contents, doc);
|
|
10107
|
+
return contents;
|
|
10108
|
+
};
|
|
10109
|
+
const de_ImportPhoneNumberCommandError = async (output, context) => {
|
|
10110
|
+
const parsedOutput = {
|
|
10111
|
+
...output,
|
|
10112
|
+
body: await parseErrorBody(output.body, context),
|
|
10113
|
+
};
|
|
10114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10115
|
+
switch (errorCode) {
|
|
10116
|
+
case "AccessDeniedException":
|
|
10117
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10118
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
10119
|
+
case "IdempotencyException":
|
|
10120
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
10121
|
+
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
10122
|
+
case "InternalServiceException":
|
|
10123
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10124
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10125
|
+
case "InvalidParameterException":
|
|
10126
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10127
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
10128
|
+
case "ResourceNotFoundException":
|
|
10129
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10131
|
+
case "ThrottlingException":
|
|
10132
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10134
|
+
default:
|
|
10135
|
+
const parsedBody = parsedOutput.body;
|
|
10136
|
+
return throwDefaultError({
|
|
10137
|
+
output,
|
|
10138
|
+
parsedBody,
|
|
10139
|
+
errorCode,
|
|
10140
|
+
});
|
|
10141
|
+
}
|
|
10142
|
+
};
|
|
10143
|
+
export const de_ListAgentStatusesCommand = async (output, context) => {
|
|
9427
10144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9428
|
-
return
|
|
10145
|
+
return de_ListAgentStatusesCommandError(output, context);
|
|
9429
10146
|
}
|
|
9430
10147
|
const contents = map({
|
|
9431
10148
|
$metadata: deserializeMetadata(output),
|
|
9432
10149
|
});
|
|
9433
10150
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
9434
10151
|
const doc = take(data, {
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
Id: __expectString,
|
|
9438
|
-
SignInConfig: _json,
|
|
9439
|
-
TelephonyConfig: _json,
|
|
10152
|
+
AgentStatusSummaryList: (_) => de_AgentStatusSummaryList(_, context),
|
|
10153
|
+
NextToken: __expectString,
|
|
9440
10154
|
});
|
|
9441
10155
|
Object.assign(contents, doc);
|
|
9442
10156
|
return contents;
|
|
9443
10157
|
};
|
|
9444
|
-
const
|
|
10158
|
+
const de_ListAgentStatusesCommandError = async (output, context) => {
|
|
9445
10159
|
const parsedOutput = {
|
|
9446
10160
|
...output,
|
|
9447
10161
|
body: await parseErrorBody(output.body, context),
|
|
9448
10162
|
};
|
|
9449
10163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9450
10164
|
switch (errorCode) {
|
|
9451
|
-
case "AccessDeniedException":
|
|
9452
|
-
case "com.amazonaws.connect#AccessDeniedException":
|
|
9453
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
9454
10165
|
case "InternalServiceException":
|
|
9455
10166
|
case "com.amazonaws.connect#InternalServiceException":
|
|
9456
10167
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10168
|
+
case "InvalidParameterException":
|
|
10169
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10170
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
9457
10171
|
case "InvalidRequestException":
|
|
9458
10172
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
9459
10173
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
@@ -9472,22 +10186,22 @@ const de_GetTrafficDistributionCommandError = async (output, context) => {
|
|
|
9472
10186
|
});
|
|
9473
10187
|
}
|
|
9474
10188
|
};
|
|
9475
|
-
export const
|
|
10189
|
+
export const de_ListAnalyticsDataAssociationsCommand = async (output, context) => {
|
|
9476
10190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9477
|
-
return
|
|
10191
|
+
return de_ListAnalyticsDataAssociationsCommandError(output, context);
|
|
9478
10192
|
}
|
|
9479
10193
|
const contents = map({
|
|
9480
10194
|
$metadata: deserializeMetadata(output),
|
|
9481
10195
|
});
|
|
9482
10196
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
9483
10197
|
const doc = take(data, {
|
|
9484
|
-
AgentStatusSummaryList: (_) => de_AgentStatusSummaryList(_, context),
|
|
9485
10198
|
NextToken: __expectString,
|
|
10199
|
+
Results: _json,
|
|
9486
10200
|
});
|
|
9487
10201
|
Object.assign(contents, doc);
|
|
9488
10202
|
return contents;
|
|
9489
10203
|
};
|
|
9490
|
-
const
|
|
10204
|
+
const de_ListAnalyticsDataAssociationsCommandError = async (output, context) => {
|
|
9491
10205
|
const parsedOutput = {
|
|
9492
10206
|
...output,
|
|
9493
10207
|
body: await parseErrorBody(output.body, context),
|
|
@@ -9920,6 +10634,55 @@ const de_ListEvaluationFormVersionsCommandError = async (output, context) => {
|
|
|
9920
10634
|
});
|
|
9921
10635
|
}
|
|
9922
10636
|
};
|
|
10637
|
+
export const de_ListFlowAssociationsCommand = async (output, context) => {
|
|
10638
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10639
|
+
return de_ListFlowAssociationsCommandError(output, context);
|
|
10640
|
+
}
|
|
10641
|
+
const contents = map({
|
|
10642
|
+
$metadata: deserializeMetadata(output),
|
|
10643
|
+
});
|
|
10644
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10645
|
+
const doc = take(data, {
|
|
10646
|
+
FlowAssociationSummaryList: _json,
|
|
10647
|
+
NextToken: __expectString,
|
|
10648
|
+
});
|
|
10649
|
+
Object.assign(contents, doc);
|
|
10650
|
+
return contents;
|
|
10651
|
+
};
|
|
10652
|
+
const de_ListFlowAssociationsCommandError = async (output, context) => {
|
|
10653
|
+
const parsedOutput = {
|
|
10654
|
+
...output,
|
|
10655
|
+
body: await parseErrorBody(output.body, context),
|
|
10656
|
+
};
|
|
10657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10658
|
+
switch (errorCode) {
|
|
10659
|
+
case "AccessDeniedException":
|
|
10660
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10661
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
10662
|
+
case "InternalServiceException":
|
|
10663
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10664
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10665
|
+
case "InvalidParameterException":
|
|
10666
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10667
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
10668
|
+
case "InvalidRequestException":
|
|
10669
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10670
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
10671
|
+
case "ResourceNotFoundException":
|
|
10672
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10673
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10674
|
+
case "ThrottlingException":
|
|
10675
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10676
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10677
|
+
default:
|
|
10678
|
+
const parsedBody = parsedOutput.body;
|
|
10679
|
+
return throwDefaultError({
|
|
10680
|
+
output,
|
|
10681
|
+
parsedBody,
|
|
10682
|
+
errorCode,
|
|
10683
|
+
});
|
|
10684
|
+
}
|
|
10685
|
+
};
|
|
9923
10686
|
export const de_ListHoursOfOperationsCommand = async (output, context) => {
|
|
9924
10687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9925
10688
|
return de_ListHoursOfOperationsCommandError(output, context);
|
|
@@ -10508,6 +11271,57 @@ const de_ListQuickConnectsCommandError = async (output, context) => {
|
|
|
10508
11271
|
});
|
|
10509
11272
|
}
|
|
10510
11273
|
};
|
|
11274
|
+
export const de_ListRealtimeContactAnalysisSegmentsV2Command = async (output, context) => {
|
|
11275
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11276
|
+
return de_ListRealtimeContactAnalysisSegmentsV2CommandError(output, context);
|
|
11277
|
+
}
|
|
11278
|
+
const contents = map({
|
|
11279
|
+
$metadata: deserializeMetadata(output),
|
|
11280
|
+
});
|
|
11281
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
11282
|
+
const doc = take(data, {
|
|
11283
|
+
Channel: __expectString,
|
|
11284
|
+
NextToken: __expectString,
|
|
11285
|
+
Segments: (_) => de_RealtimeContactAnalysisSegments(_, context),
|
|
11286
|
+
Status: __expectString,
|
|
11287
|
+
});
|
|
11288
|
+
Object.assign(contents, doc);
|
|
11289
|
+
return contents;
|
|
11290
|
+
};
|
|
11291
|
+
const de_ListRealtimeContactAnalysisSegmentsV2CommandError = async (output, context) => {
|
|
11292
|
+
const parsedOutput = {
|
|
11293
|
+
...output,
|
|
11294
|
+
body: await parseErrorBody(output.body, context),
|
|
11295
|
+
};
|
|
11296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11297
|
+
switch (errorCode) {
|
|
11298
|
+
case "AccessDeniedException":
|
|
11299
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
11300
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
11301
|
+
case "InternalServiceException":
|
|
11302
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11303
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
11304
|
+
case "InvalidRequestException":
|
|
11305
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
11306
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11307
|
+
case "OutputTypeNotFoundException":
|
|
11308
|
+
case "com.amazonaws.connect#OutputTypeNotFoundException":
|
|
11309
|
+
throw await de_OutputTypeNotFoundExceptionRes(parsedOutput, context);
|
|
11310
|
+
case "ResourceNotFoundException":
|
|
11311
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11312
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11313
|
+
case "ThrottlingException":
|
|
11314
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
11315
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11316
|
+
default:
|
|
11317
|
+
const parsedBody = parsedOutput.body;
|
|
11318
|
+
return throwDefaultError({
|
|
11319
|
+
output,
|
|
11320
|
+
parsedBody,
|
|
11321
|
+
errorCode,
|
|
11322
|
+
});
|
|
11323
|
+
}
|
|
11324
|
+
};
|
|
10511
11325
|
export const de_ListRoutingProfileQueuesCommand = async (output, context) => {
|
|
10512
11326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10513
11327
|
return de_ListRoutingProfileQueuesCommandError(output, context);
|
|
@@ -11946,6 +12760,52 @@ const de_SearchVocabulariesCommandError = async (output, context) => {
|
|
|
11946
12760
|
});
|
|
11947
12761
|
}
|
|
11948
12762
|
};
|
|
12763
|
+
export const de_SendChatIntegrationEventCommand = async (output, context) => {
|
|
12764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12765
|
+
return de_SendChatIntegrationEventCommandError(output, context);
|
|
12766
|
+
}
|
|
12767
|
+
const contents = map({
|
|
12768
|
+
$metadata: deserializeMetadata(output),
|
|
12769
|
+
});
|
|
12770
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
12771
|
+
const doc = take(data, {
|
|
12772
|
+
InitialContactId: __expectString,
|
|
12773
|
+
NewChatCreated: __expectBoolean,
|
|
12774
|
+
});
|
|
12775
|
+
Object.assign(contents, doc);
|
|
12776
|
+
return contents;
|
|
12777
|
+
};
|
|
12778
|
+
const de_SendChatIntegrationEventCommandError = async (output, context) => {
|
|
12779
|
+
const parsedOutput = {
|
|
12780
|
+
...output,
|
|
12781
|
+
body: await parseErrorBody(output.body, context),
|
|
12782
|
+
};
|
|
12783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12784
|
+
switch (errorCode) {
|
|
12785
|
+
case "AccessDeniedException":
|
|
12786
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12787
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
12788
|
+
case "InternalServiceException":
|
|
12789
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12790
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
12791
|
+
case "InvalidRequestException":
|
|
12792
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12793
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12794
|
+
case "ResourceNotFoundException":
|
|
12795
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12796
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
12797
|
+
case "ThrottlingException":
|
|
12798
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12799
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12800
|
+
default:
|
|
12801
|
+
const parsedBody = parsedOutput.body;
|
|
12802
|
+
return throwDefaultError({
|
|
12803
|
+
output,
|
|
12804
|
+
parsedBody,
|
|
12805
|
+
errorCode,
|
|
12806
|
+
});
|
|
12807
|
+
}
|
|
12808
|
+
};
|
|
11949
12809
|
export const de_StartChatContactCommand = async (output, context) => {
|
|
11950
12810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11951
12811
|
return de_StartChatContactCommandError(output, context);
|
|
@@ -12225,6 +13085,54 @@ const de_StartTaskContactCommandError = async (output, context) => {
|
|
|
12225
13085
|
});
|
|
12226
13086
|
}
|
|
12227
13087
|
};
|
|
13088
|
+
export const de_StartWebRTCContactCommand = async (output, context) => {
|
|
13089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13090
|
+
return de_StartWebRTCContactCommandError(output, context);
|
|
13091
|
+
}
|
|
13092
|
+
const contents = map({
|
|
13093
|
+
$metadata: deserializeMetadata(output),
|
|
13094
|
+
});
|
|
13095
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
13096
|
+
const doc = take(data, {
|
|
13097
|
+
ConnectionData: _json,
|
|
13098
|
+
ContactId: __expectString,
|
|
13099
|
+
ParticipantId: __expectString,
|
|
13100
|
+
ParticipantToken: __expectString,
|
|
13101
|
+
});
|
|
13102
|
+
Object.assign(contents, doc);
|
|
13103
|
+
return contents;
|
|
13104
|
+
};
|
|
13105
|
+
const de_StartWebRTCContactCommandError = async (output, context) => {
|
|
13106
|
+
const parsedOutput = {
|
|
13107
|
+
...output,
|
|
13108
|
+
body: await parseErrorBody(output.body, context),
|
|
13109
|
+
};
|
|
13110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13111
|
+
switch (errorCode) {
|
|
13112
|
+
case "InternalServiceException":
|
|
13113
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13114
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13115
|
+
case "InvalidParameterException":
|
|
13116
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13117
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13118
|
+
case "InvalidRequestException":
|
|
13119
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13120
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13121
|
+
case "LimitExceededException":
|
|
13122
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
13123
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
13124
|
+
case "ResourceNotFoundException":
|
|
13125
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13127
|
+
default:
|
|
13128
|
+
const parsedBody = parsedOutput.body;
|
|
13129
|
+
return throwDefaultError({
|
|
13130
|
+
output,
|
|
13131
|
+
parsedBody,
|
|
13132
|
+
errorCode,
|
|
13133
|
+
});
|
|
13134
|
+
}
|
|
13135
|
+
};
|
|
12228
13136
|
export const de_StopContactCommand = async (output, context) => {
|
|
12229
13137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12230
13138
|
return de_StopContactCommandError(output, context);
|
|
@@ -14624,6 +15532,19 @@ const de_OutboundContactNotPermittedExceptionRes = async (parsedOutput, context)
|
|
|
14624
15532
|
});
|
|
14625
15533
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
14626
15534
|
};
|
|
15535
|
+
const de_OutputTypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
15536
|
+
const contents = map({});
|
|
15537
|
+
const data = parsedOutput.body;
|
|
15538
|
+
const doc = take(data, {
|
|
15539
|
+
Message: __expectString,
|
|
15540
|
+
});
|
|
15541
|
+
Object.assign(contents, doc);
|
|
15542
|
+
const exception = new OutputTypeNotFoundException({
|
|
15543
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
15544
|
+
...contents,
|
|
15545
|
+
});
|
|
15546
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
15547
|
+
};
|
|
14627
15548
|
const de_PropertyValidationExceptionRes = async (parsedOutput, context) => {
|
|
14628
15549
|
const contents = map({});
|
|
14629
15550
|
const data = parsedOutput.body;
|
|
@@ -15599,6 +16520,83 @@ const de_QuickConnectSummaryList = (output, context) => {
|
|
|
15599
16520
|
});
|
|
15600
16521
|
return retVal;
|
|
15601
16522
|
};
|
|
16523
|
+
const de_RealtimeContactAnalysisSegment = (output, context) => {
|
|
16524
|
+
if (output.Attachments != null) {
|
|
16525
|
+
return {
|
|
16526
|
+
Attachments: de_RealTimeContactAnalysisSegmentAttachments(output.Attachments, context),
|
|
16527
|
+
};
|
|
16528
|
+
}
|
|
16529
|
+
if (output.Categories != null) {
|
|
16530
|
+
return {
|
|
16531
|
+
Categories: _json(output.Categories),
|
|
16532
|
+
};
|
|
16533
|
+
}
|
|
16534
|
+
if (output.Event != null) {
|
|
16535
|
+
return {
|
|
16536
|
+
Event: de_RealTimeContactAnalysisSegmentEvent(output.Event, context),
|
|
16537
|
+
};
|
|
16538
|
+
}
|
|
16539
|
+
if (output.Issues != null) {
|
|
16540
|
+
return {
|
|
16541
|
+
Issues: _json(output.Issues),
|
|
16542
|
+
};
|
|
16543
|
+
}
|
|
16544
|
+
if (output.Transcript != null) {
|
|
16545
|
+
return {
|
|
16546
|
+
Transcript: de_RealTimeContactAnalysisSegmentTranscript(output.Transcript, context),
|
|
16547
|
+
};
|
|
16548
|
+
}
|
|
16549
|
+
return { $unknown: Object.entries(output)[0] };
|
|
16550
|
+
};
|
|
16551
|
+
const de_RealTimeContactAnalysisSegmentAttachments = (output, context) => {
|
|
16552
|
+
return take(output, {
|
|
16553
|
+
Attachments: _json,
|
|
16554
|
+
DisplayName: __expectString,
|
|
16555
|
+
Id: __expectString,
|
|
16556
|
+
ParticipantId: __expectString,
|
|
16557
|
+
ParticipantRole: __expectString,
|
|
16558
|
+
Time: (_) => de_RealTimeContactAnalysisTimeData(__expectUnion(_), context),
|
|
16559
|
+
});
|
|
16560
|
+
};
|
|
16561
|
+
const de_RealTimeContactAnalysisSegmentEvent = (output, context) => {
|
|
16562
|
+
return take(output, {
|
|
16563
|
+
DisplayName: __expectString,
|
|
16564
|
+
EventType: __expectString,
|
|
16565
|
+
Id: __expectString,
|
|
16566
|
+
ParticipantId: __expectString,
|
|
16567
|
+
ParticipantRole: __expectString,
|
|
16568
|
+
Time: (_) => de_RealTimeContactAnalysisTimeData(__expectUnion(_), context),
|
|
16569
|
+
});
|
|
16570
|
+
};
|
|
16571
|
+
const de_RealtimeContactAnalysisSegments = (output, context) => {
|
|
16572
|
+
const retVal = (output || [])
|
|
16573
|
+
.filter((e) => e != null)
|
|
16574
|
+
.map((entry) => {
|
|
16575
|
+
return de_RealtimeContactAnalysisSegment(__expectUnion(entry), context);
|
|
16576
|
+
});
|
|
16577
|
+
return retVal;
|
|
16578
|
+
};
|
|
16579
|
+
const de_RealTimeContactAnalysisSegmentTranscript = (output, context) => {
|
|
16580
|
+
return take(output, {
|
|
16581
|
+
Content: __expectString,
|
|
16582
|
+
ContentType: __expectString,
|
|
16583
|
+
DisplayName: __expectString,
|
|
16584
|
+
Id: __expectString,
|
|
16585
|
+
ParticipantId: __expectString,
|
|
16586
|
+
ParticipantRole: __expectString,
|
|
16587
|
+
Redaction: _json,
|
|
16588
|
+
Sentiment: __expectString,
|
|
16589
|
+
Time: (_) => de_RealTimeContactAnalysisTimeData(__expectUnion(_), context),
|
|
16590
|
+
});
|
|
16591
|
+
};
|
|
16592
|
+
const de_RealTimeContactAnalysisTimeData = (output, context) => {
|
|
16593
|
+
if (output.AbsoluteTime != null) {
|
|
16594
|
+
return {
|
|
16595
|
+
AbsoluteTime: __expectNonNull(__parseRfc3339DateTimeWithOffset(output.AbsoluteTime)),
|
|
16596
|
+
};
|
|
16597
|
+
}
|
|
16598
|
+
return { $unknown: Object.entries(output)[0] };
|
|
16599
|
+
};
|
|
15602
16600
|
const de_RoutingProfile = (output, context) => {
|
|
15603
16601
|
return take(output, {
|
|
15604
16602
|
AgentAvailabilityTimer: __expectString,
|