@aws-sdk/client-connect 3.696.0 → 3.699.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 +88 -0
- package/dist-cjs/index.js +968 -115
- package/dist-es/Connect.js +22 -0
- package/dist-es/commands/CreateContactCommand.js +23 -0
- package/dist-es/commands/CreateEmailAddressCommand.js +23 -0
- package/dist-es/commands/DeleteEmailAddressCommand.js +22 -0
- package/dist-es/commands/DescribeContactCommand.js +1 -1
- package/dist-es/commands/DescribeEmailAddressCommand.js +23 -0
- package/dist-es/commands/ListAssociatedContactsCommand.js +22 -0
- package/dist-es/commands/SearchEmailAddressesCommand.js +23 -0
- package/dist-es/commands/SendOutboundEmailCommand.js +23 -0
- package/dist-es/commands/StartEmailContactCommand.js +23 -0
- package/dist-es/commands/StartOutboundEmailContactCommand.js +23 -0
- package/dist-es/commands/UpdateEmailAddressMetadataCommand.js +23 -0
- package/dist-es/commands/UpdateQueueOutboundEmailConfigCommand.js +22 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +72 -24
- package/dist-es/models/models_1.js +24 -45
- package/dist-es/models/models_2.js +162 -17
- package/dist-es/models/models_3.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +417 -6
- package/dist-types/Connect.d.ts +77 -0
- package/dist-types/ConnectClient.d.ts +13 -2
- package/dist-types/commands/AssociateFlowCommand.d.ts +1 -1
- package/dist-types/commands/AssociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/AssociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetAttachedFileMetadataCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetFlowAssociationCommand.d.ts +2 -2
- package/dist-types/commands/BatchPutContactCommand.d.ts +2 -2
- package/dist-types/commands/CreateContactCommand.d.ts +128 -0
- package/dist-types/commands/CreateEmailAddressCommand.d.ts +109 -0
- package/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
- package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/commands/CreateQueueCommand.d.ts +3 -0
- package/dist-types/commands/CreateRoutingProfileCommand.d.ts +2 -2
- package/dist-types/commands/CreateRuleCommand.d.ts +5 -2
- package/dist-types/commands/CreateTaskTemplateCommand.d.ts +2 -1
- package/dist-types/commands/DeleteEmailAddressCommand.d.ts +91 -0
- package/dist-types/commands/DeleteViewVersionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteVocabularyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAgentStatusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAuthenticationProfileCommand.d.ts +1 -1
- package/dist-types/commands/DescribeContactCommand.d.ts +29 -4
- package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEmailAddressCommand.d.ts +99 -0
- package/dist-types/commands/DescribeEvaluationFormCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQueueCommand.d.ts +3 -0
- package/dist-types/commands/DescribeRoutingProfileCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleCommand.d.ts +5 -2
- package/dist-types/commands/DisassociateFlowCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/GetAttachedFileCommand.d.ts +1 -1
- package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +2 -2
- package/dist-types/commands/GetCurrentUserDataCommand.d.ts +2 -2
- package/dist-types/commands/GetFlowAssociationCommand.d.ts +2 -2
- package/dist-types/commands/GetMetricDataCommand.d.ts +2 -2
- package/dist-types/commands/GetTaskTemplateCommand.d.ts +2 -1
- package/dist-types/commands/ListAssociatedContactsCommand.d.ts +102 -0
- package/dist-types/commands/ListContactReferencesCommand.d.ts +7 -2
- package/dist-types/commands/ListFlowAssociationsCommand.d.ts +2 -2
- package/dist-types/commands/ListInstanceStorageConfigsCommand.d.ts +1 -1
- package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -2
- package/dist-types/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +2 -1
- package/dist-types/commands/ListRoutingProfileQueuesCommand.d.ts +2 -2
- package/dist-types/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListRulesCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfileApplicationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -2
- package/dist-types/commands/SearchAgentStatusesCommand.d.ts +2 -1
- package/dist-types/commands/SearchContactFlowModulesCommand.d.ts +2 -1
- package/dist-types/commands/SearchContactFlowsCommand.d.ts +2 -1
- package/dist-types/commands/SearchContactsCommand.d.ts +20 -4
- package/dist-types/commands/SearchEmailAddressesCommand.d.ts +146 -0
- package/dist-types/commands/SearchHoursOfOperationsCommand.d.ts +2 -1
- package/dist-types/commands/SearchPredefinedAttributesCommand.d.ts +2 -1
- package/dist-types/commands/SearchPromptsCommand.d.ts +2 -1
- package/dist-types/commands/SearchQueuesCommand.d.ts +5 -1
- package/dist-types/commands/SearchQuickConnectsCommand.d.ts +2 -1
- package/dist-types/commands/SearchRoutingProfilesCommand.d.ts +3 -2
- package/dist-types/commands/SearchSecurityProfilesCommand.d.ts +2 -1
- package/dist-types/commands/SearchUserHierarchyGroupsCommand.d.ts +2 -1
- package/dist-types/commands/SearchUsersCommand.d.ts +2 -1
- package/dist-types/commands/SendOutboundEmailCommand.d.ts +130 -0
- package/dist-types/commands/StartAttachedFileUploadCommand.d.ts +1 -1
- package/dist-types/commands/StartEmailContactCommand.d.ts +150 -0
- package/dist-types/commands/StartOutboundChatContactCommand.d.ts +2 -2
- package/dist-types/commands/StartOutboundEmailContactCommand.d.ts +128 -0
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +5 -2
- package/dist-types/commands/StartTaskContactCommand.d.ts +10 -2
- package/dist-types/commands/StartWebRTCContactCommand.d.ts +5 -2
- package/dist-types/commands/UpdateContactCommand.d.ts +10 -2
- package/dist-types/commands/UpdateContactRoutingDataCommand.d.ts +2 -1
- package/dist-types/commands/UpdateEmailAddressMetadataCommand.d.ts +97 -0
- package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +2 -1
- package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueOutboundEmailConfigCommand.d.ts +94 -0
- package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRuleCommand.d.ts +5 -2
- package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +4 -2
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +389 -335
- package/dist-types/models/models_1.d.ts +560 -663
- package/dist-types/models/models_2.d.ts +3752 -3728
- package/dist-types/models/models_3.d.ts +1351 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
- package/dist-types/ts3.4/Connect.d.ts +187 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateContactCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateEmailAddressCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteEmailAddressCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteVocabularyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeAgentStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeAuthenticationProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeContactCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeEmailAddressCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssociatedContactsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityKeysCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfileApplicationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchEmailAddressesCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/SearchHoursOfOperationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchPredefinedAttributesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchPromptsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchQueuesCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SearchQuickConnectsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchRoutingProfilesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchSecurityProfilesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchUserHierarchyGroupsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SendOutboundEmailCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartEmailContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartOutboundEmailContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateContactRoutingDataCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/UpdateEmailAddressMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/UpdateQueueOutboundEmailConfigCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +143 -95
- package/dist-types/ts3.4/models/models_1.d.ts +160 -230
- package/dist-types/ts3.4/models/models_2.d.ts +451 -290
- package/dist-types/ts3.4/models/models_3.d.ts +325 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
- package/package.json +4 -4
|
@@ -3,9 +3,9 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
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, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, 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
|
-
import { AccessDeniedException, DuplicateResourceException, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, TooManyRequestsException, } from "../models/models_0";
|
|
7
|
-
import { ContactFlowNotPublishedException, EvaluationAnswerData,
|
|
8
|
-
import {
|
|
6
|
+
import { AccessDeniedException, ConflictException, DuplicateResourceException, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, TooManyRequestsException, } from "../models/models_0";
|
|
7
|
+
import { ContactFlowNotPublishedException, EvaluationAnswerData, UserNotFoundException, } from "../models/models_1";
|
|
8
|
+
import { ConditionalOperationFailedException, ContactNotFoundException, DestinationNotAllowedException, EvaluationFormItem, MaximumResultReturnedException, OutboundContactNotPermittedException, OutputTypeNotFoundException, } from "../models/models_2";
|
|
9
9
|
export const se_ActivateEvaluationFormCommand = async (input, context) => {
|
|
10
10
|
const b = rb(input, context);
|
|
11
11
|
const headers = {
|
|
@@ -354,6 +354,31 @@ export const se_CreateAgentStatusCommand = async (input, context) => {
|
|
|
354
354
|
b.m("PUT").h(headers).b(body);
|
|
355
355
|
return b.build();
|
|
356
356
|
};
|
|
357
|
+
export const se_CreateContactCommand = async (input, context) => {
|
|
358
|
+
const b = rb(input, context);
|
|
359
|
+
const headers = {
|
|
360
|
+
"content-type": "application/json",
|
|
361
|
+
};
|
|
362
|
+
b.bp("/contact/create-contact");
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify(take(input, {
|
|
365
|
+
Attributes: (_) => _json(_),
|
|
366
|
+
Channel: [],
|
|
367
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
368
|
+
Description: [],
|
|
369
|
+
ExpiryDurationInMinutes: [],
|
|
370
|
+
InitiateAs: [],
|
|
371
|
+
InitiationMethod: [],
|
|
372
|
+
InstanceId: [],
|
|
373
|
+
Name: [],
|
|
374
|
+
References: (_) => _json(_),
|
|
375
|
+
RelatedContactId: [],
|
|
376
|
+
SegmentAttributes: (_) => _json(_),
|
|
377
|
+
UserInfo: (_) => _json(_),
|
|
378
|
+
}));
|
|
379
|
+
b.m("PUT").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
};
|
|
357
382
|
export const se_CreateContactFlowCommand = async (input, context) => {
|
|
358
383
|
const b = rb(input, context);
|
|
359
384
|
const headers = {
|
|
@@ -409,6 +434,24 @@ export const se_CreateContactFlowVersionCommand = async (input, context) => {
|
|
|
409
434
|
b.m("PUT").h(headers).b(body);
|
|
410
435
|
return b.build();
|
|
411
436
|
};
|
|
437
|
+
export const se_CreateEmailAddressCommand = async (input, context) => {
|
|
438
|
+
const b = rb(input, context);
|
|
439
|
+
const headers = {
|
|
440
|
+
"content-type": "application/json",
|
|
441
|
+
};
|
|
442
|
+
b.bp("/email-addresses/{InstanceId}");
|
|
443
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify(take(input, {
|
|
446
|
+
ClientToken: [],
|
|
447
|
+
Description: [],
|
|
448
|
+
DisplayName: [],
|
|
449
|
+
EmailAddress: [],
|
|
450
|
+
Tags: (_) => _json(_),
|
|
451
|
+
}));
|
|
452
|
+
b.m("PUT").h(headers).b(body);
|
|
453
|
+
return b.build();
|
|
454
|
+
};
|
|
412
455
|
export const se_CreateEvaluationFormCommand = async (input, context) => {
|
|
413
456
|
const b = rb(input, context);
|
|
414
457
|
const headers = {
|
|
@@ -562,6 +605,7 @@ export const se_CreateQueueCommand = async (input, context) => {
|
|
|
562
605
|
MaxContacts: [],
|
|
563
606
|
Name: [],
|
|
564
607
|
OutboundCallerConfig: (_) => _json(_),
|
|
608
|
+
OutboundEmailConfig: (_) => _json(_),
|
|
565
609
|
QuickConnectIds: (_) => _json(_),
|
|
566
610
|
Tags: (_) => _json(_),
|
|
567
611
|
}));
|
|
@@ -662,6 +706,7 @@ export const se_CreateTaskTemplateCommand = async (input, context) => {
|
|
|
662
706
|
Description: [],
|
|
663
707
|
Fields: (_) => _json(_),
|
|
664
708
|
Name: [],
|
|
709
|
+
SelfAssignFlowId: [],
|
|
665
710
|
Status: [],
|
|
666
711
|
}));
|
|
667
712
|
b.m("PUT").h(headers).b(body);
|
|
@@ -849,6 +894,16 @@ export const se_DeleteContactFlowModuleCommand = async (input, context) => {
|
|
|
849
894
|
b.m("DELETE").h(headers).b(body);
|
|
850
895
|
return b.build();
|
|
851
896
|
};
|
|
897
|
+
export const se_DeleteEmailAddressCommand = async (input, context) => {
|
|
898
|
+
const b = rb(input, context);
|
|
899
|
+
const headers = {};
|
|
900
|
+
b.bp("/email-addresses/{InstanceId}/{EmailAddressId}");
|
|
901
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
902
|
+
b.p("EmailAddressId", () => input.EmailAddressId, "{EmailAddressId}", false);
|
|
903
|
+
let body;
|
|
904
|
+
b.m("DELETE").h(headers).b(body);
|
|
905
|
+
return b.build();
|
|
906
|
+
};
|
|
852
907
|
export const se_DeleteEvaluationFormCommand = async (input, context) => {
|
|
853
908
|
const b = rb(input, context);
|
|
854
909
|
const headers = {};
|
|
@@ -1102,6 +1157,16 @@ export const se_DescribeContactFlowModuleCommand = async (input, context) => {
|
|
|
1102
1157
|
b.m("GET").h(headers).b(body);
|
|
1103
1158
|
return b.build();
|
|
1104
1159
|
};
|
|
1160
|
+
export const se_DescribeEmailAddressCommand = async (input, context) => {
|
|
1161
|
+
const b = rb(input, context);
|
|
1162
|
+
const headers = {};
|
|
1163
|
+
b.bp("/email-addresses/{InstanceId}/{EmailAddressId}");
|
|
1164
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1165
|
+
b.p("EmailAddressId", () => input.EmailAddressId, "{EmailAddressId}", false);
|
|
1166
|
+
let body;
|
|
1167
|
+
b.m("GET").h(headers).b(body);
|
|
1168
|
+
return b.build();
|
|
1169
|
+
};
|
|
1105
1170
|
export const se_DescribeEvaluationFormCommand = async (input, context) => {
|
|
1106
1171
|
const b = rb(input, context);
|
|
1107
1172
|
const headers = {};
|
|
@@ -1690,6 +1755,20 @@ export const se_ListApprovedOriginsCommand = async (input, context) => {
|
|
|
1690
1755
|
b.m("GET").h(headers).q(query).b(body);
|
|
1691
1756
|
return b.build();
|
|
1692
1757
|
};
|
|
1758
|
+
export const se_ListAssociatedContactsCommand = async (input, context) => {
|
|
1759
|
+
const b = rb(input, context);
|
|
1760
|
+
const headers = {};
|
|
1761
|
+
b.bp("/contact/associated/{InstanceId}");
|
|
1762
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1763
|
+
const query = map({
|
|
1764
|
+
[_cI]: [, __expectNonNull(input[_CI], `ContactId`)],
|
|
1765
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1766
|
+
[_nT]: [, input[_NT]],
|
|
1767
|
+
});
|
|
1768
|
+
let body;
|
|
1769
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1770
|
+
return b.build();
|
|
1771
|
+
};
|
|
1693
1772
|
export const se_ListAuthenticationProfilesCommand = async (input, context) => {
|
|
1694
1773
|
const b = rb(input, context);
|
|
1695
1774
|
const headers = {};
|
|
@@ -2477,6 +2556,23 @@ export const se_SearchContactsCommand = async (input, context) => {
|
|
|
2477
2556
|
b.m("POST").h(headers).b(body);
|
|
2478
2557
|
return b.build();
|
|
2479
2558
|
};
|
|
2559
|
+
export const se_SearchEmailAddressesCommand = async (input, context) => {
|
|
2560
|
+
const b = rb(input, context);
|
|
2561
|
+
const headers = {
|
|
2562
|
+
"content-type": "application/json",
|
|
2563
|
+
};
|
|
2564
|
+
b.bp("/search-email-addresses");
|
|
2565
|
+
let body;
|
|
2566
|
+
body = JSON.stringify(take(input, {
|
|
2567
|
+
InstanceId: [],
|
|
2568
|
+
MaxResults: [],
|
|
2569
|
+
NextToken: [],
|
|
2570
|
+
SearchCriteria: (_) => se_EmailAddressSearchCriteria(_, context),
|
|
2571
|
+
SearchFilter: (_) => _json(_),
|
|
2572
|
+
}));
|
|
2573
|
+
b.m("POST").h(headers).b(body);
|
|
2574
|
+
return b.build();
|
|
2575
|
+
};
|
|
2480
2576
|
export const se_SearchHoursOfOperationsCommand = async (input, context) => {
|
|
2481
2577
|
const b = rb(input, context);
|
|
2482
2578
|
const headers = {
|
|
@@ -2681,6 +2777,26 @@ export const se_SendChatIntegrationEventCommand = async (input, context) => {
|
|
|
2681
2777
|
b.m("POST").h(headers).b(body);
|
|
2682
2778
|
return b.build();
|
|
2683
2779
|
};
|
|
2780
|
+
export const se_SendOutboundEmailCommand = async (input, context) => {
|
|
2781
|
+
const b = rb(input, context);
|
|
2782
|
+
const headers = {
|
|
2783
|
+
"content-type": "application/json",
|
|
2784
|
+
};
|
|
2785
|
+
b.bp("/instance/{InstanceId}/outbound-email");
|
|
2786
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2787
|
+
let body;
|
|
2788
|
+
body = JSON.stringify(take(input, {
|
|
2789
|
+
AdditionalRecipients: (_) => _json(_),
|
|
2790
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2791
|
+
DestinationEmailAddress: (_) => _json(_),
|
|
2792
|
+
EmailMessage: (_) => _json(_),
|
|
2793
|
+
FromEmailAddress: (_) => _json(_),
|
|
2794
|
+
SourceCampaign: (_) => _json(_),
|
|
2795
|
+
TrafficType: [],
|
|
2796
|
+
}));
|
|
2797
|
+
b.m("PUT").h(headers).b(body);
|
|
2798
|
+
return b.build();
|
|
2799
|
+
};
|
|
2684
2800
|
export const se_StartAttachedFileUploadCommand = async (input, context) => {
|
|
2685
2801
|
const b = rb(input, context);
|
|
2686
2802
|
const headers = {
|
|
@@ -2775,6 +2891,32 @@ export const se_StartContactStreamingCommand = async (input, context) => {
|
|
|
2775
2891
|
b.m("POST").h(headers).b(body);
|
|
2776
2892
|
return b.build();
|
|
2777
2893
|
};
|
|
2894
|
+
export const se_StartEmailContactCommand = async (input, context) => {
|
|
2895
|
+
const b = rb(input, context);
|
|
2896
|
+
const headers = {
|
|
2897
|
+
"content-type": "application/json",
|
|
2898
|
+
};
|
|
2899
|
+
b.bp("/contact/email");
|
|
2900
|
+
let body;
|
|
2901
|
+
body = JSON.stringify(take(input, {
|
|
2902
|
+
AdditionalRecipients: (_) => _json(_),
|
|
2903
|
+
Attachments: (_) => _json(_),
|
|
2904
|
+
Attributes: (_) => _json(_),
|
|
2905
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2906
|
+
ContactFlowId: [],
|
|
2907
|
+
Description: [],
|
|
2908
|
+
DestinationEmailAddress: [],
|
|
2909
|
+
EmailMessage: (_) => _json(_),
|
|
2910
|
+
FromEmailAddress: (_) => _json(_),
|
|
2911
|
+
InstanceId: [],
|
|
2912
|
+
Name: [],
|
|
2913
|
+
References: (_) => _json(_),
|
|
2914
|
+
RelatedContactId: [],
|
|
2915
|
+
SegmentAttributes: (_) => _json(_),
|
|
2916
|
+
}));
|
|
2917
|
+
b.m("PUT").h(headers).b(body);
|
|
2918
|
+
return b.build();
|
|
2919
|
+
};
|
|
2778
2920
|
export const se_StartOutboundChatContactCommand = async (input, context) => {
|
|
2779
2921
|
const b = rb(input, context);
|
|
2780
2922
|
const headers = {
|
|
@@ -2799,6 +2941,25 @@ export const se_StartOutboundChatContactCommand = async (input, context) => {
|
|
|
2799
2941
|
b.m("PUT").h(headers).b(body);
|
|
2800
2942
|
return b.build();
|
|
2801
2943
|
};
|
|
2944
|
+
export const se_StartOutboundEmailContactCommand = async (input, context) => {
|
|
2945
|
+
const b = rb(input, context);
|
|
2946
|
+
const headers = {
|
|
2947
|
+
"content-type": "application/json",
|
|
2948
|
+
};
|
|
2949
|
+
b.bp("/contact/outbound-email");
|
|
2950
|
+
let body;
|
|
2951
|
+
body = JSON.stringify(take(input, {
|
|
2952
|
+
AdditionalRecipients: (_) => _json(_),
|
|
2953
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2954
|
+
ContactId: [],
|
|
2955
|
+
DestinationEmailAddress: (_) => _json(_),
|
|
2956
|
+
EmailMessage: (_) => _json(_),
|
|
2957
|
+
FromEmailAddress: (_) => _json(_),
|
|
2958
|
+
InstanceId: [],
|
|
2959
|
+
}));
|
|
2960
|
+
b.m("PUT").h(headers).b(body);
|
|
2961
|
+
return b.build();
|
|
2962
|
+
};
|
|
2802
2963
|
export const se_StartOutboundVoiceContactCommand = async (input, context) => {
|
|
2803
2964
|
const b = rb(input, context);
|
|
2804
2965
|
const headers = {
|
|
@@ -2859,6 +3020,7 @@ export const se_StartTaskContactCommand = async (input, context) => {
|
|
|
2859
3020
|
References: (_) => _json(_),
|
|
2860
3021
|
RelatedContactId: [],
|
|
2861
3022
|
ScheduledTime: (_) => _.getTime() / 1000,
|
|
3023
|
+
SegmentAttributes: (_) => _json(_),
|
|
2862
3024
|
TaskTemplateId: [],
|
|
2863
3025
|
}));
|
|
2864
3026
|
b.m("PUT").h(headers).b(body);
|
|
@@ -3084,6 +3246,7 @@ export const se_UpdateContactCommand = async (input, context) => {
|
|
|
3084
3246
|
Description: [],
|
|
3085
3247
|
Name: [],
|
|
3086
3248
|
References: (_) => _json(_),
|
|
3249
|
+
SegmentAttributes: (_) => _json(_),
|
|
3087
3250
|
}));
|
|
3088
3251
|
b.m("POST").h(headers).b(body);
|
|
3089
3252
|
return b.build();
|
|
@@ -3231,6 +3394,23 @@ export const se_UpdateContactScheduleCommand = async (input, context) => {
|
|
|
3231
3394
|
b.m("POST").h(headers).b(body);
|
|
3232
3395
|
return b.build();
|
|
3233
3396
|
};
|
|
3397
|
+
export const se_UpdateEmailAddressMetadataCommand = async (input, context) => {
|
|
3398
|
+
const b = rb(input, context);
|
|
3399
|
+
const headers = {
|
|
3400
|
+
"content-type": "application/json",
|
|
3401
|
+
};
|
|
3402
|
+
b.bp("/email-addresses/{InstanceId}/{EmailAddressId}");
|
|
3403
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3404
|
+
b.p("EmailAddressId", () => input.EmailAddressId, "{EmailAddressId}", false);
|
|
3405
|
+
let body;
|
|
3406
|
+
body = JSON.stringify(take(input, {
|
|
3407
|
+
ClientToken: [],
|
|
3408
|
+
Description: [],
|
|
3409
|
+
DisplayName: [],
|
|
3410
|
+
}));
|
|
3411
|
+
b.m("POST").h(headers).b(body);
|
|
3412
|
+
return b.build();
|
|
3413
|
+
};
|
|
3234
3414
|
export const se_UpdateEvaluationFormCommand = async (input, context) => {
|
|
3235
3415
|
const b = rb(input, context);
|
|
3236
3416
|
const headers = {
|
|
@@ -3442,6 +3622,21 @@ export const se_UpdateQueueOutboundCallerConfigCommand = async (input, context)
|
|
|
3442
3622
|
b.m("POST").h(headers).b(body);
|
|
3443
3623
|
return b.build();
|
|
3444
3624
|
};
|
|
3625
|
+
export const se_UpdateQueueOutboundEmailConfigCommand = async (input, context) => {
|
|
3626
|
+
const b = rb(input, context);
|
|
3627
|
+
const headers = {
|
|
3628
|
+
"content-type": "application/json",
|
|
3629
|
+
};
|
|
3630
|
+
b.bp("/queues/{InstanceId}/{QueueId}/outbound-email-config");
|
|
3631
|
+
b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3632
|
+
b.p("QueueId", () => input.QueueId, "{QueueId}", false);
|
|
3633
|
+
let body;
|
|
3634
|
+
body = JSON.stringify(take(input, {
|
|
3635
|
+
OutboundEmailConfig: (_) => _json(_),
|
|
3636
|
+
}));
|
|
3637
|
+
b.m("POST").h(headers).b(body);
|
|
3638
|
+
return b.build();
|
|
3639
|
+
};
|
|
3445
3640
|
export const se_UpdateQueueStatusCommand = async (input, context) => {
|
|
3446
3641
|
const b = rb(input, context);
|
|
3447
3642
|
const headers = {
|
|
@@ -3619,6 +3814,7 @@ export const se_UpdateTaskTemplateCommand = async (input, context) => {
|
|
|
3619
3814
|
Description: [],
|
|
3620
3815
|
Fields: (_) => _json(_),
|
|
3621
3816
|
Name: [],
|
|
3817
|
+
SelfAssignFlowId: [],
|
|
3622
3818
|
Status: [],
|
|
3623
3819
|
}));
|
|
3624
3820
|
b.m("POST").h(headers).b(body);
|
|
@@ -4076,6 +4272,21 @@ export const de_CreateAgentStatusCommand = async (output, context) => {
|
|
|
4076
4272
|
Object.assign(contents, doc);
|
|
4077
4273
|
return contents;
|
|
4078
4274
|
};
|
|
4275
|
+
export const de_CreateContactCommand = async (output, context) => {
|
|
4276
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4277
|
+
return de_CommandError(output, context);
|
|
4278
|
+
}
|
|
4279
|
+
const contents = map({
|
|
4280
|
+
$metadata: deserializeMetadata(output),
|
|
4281
|
+
});
|
|
4282
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4283
|
+
const doc = take(data, {
|
|
4284
|
+
ContactArn: __expectString,
|
|
4285
|
+
ContactId: __expectString,
|
|
4286
|
+
});
|
|
4287
|
+
Object.assign(contents, doc);
|
|
4288
|
+
return contents;
|
|
4289
|
+
};
|
|
4079
4290
|
export const de_CreateContactFlowCommand = async (output, context) => {
|
|
4080
4291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4081
4292
|
return de_CommandError(output, context);
|
|
@@ -4122,6 +4333,21 @@ export const de_CreateContactFlowVersionCommand = async (output, context) => {
|
|
|
4122
4333
|
Object.assign(contents, doc);
|
|
4123
4334
|
return contents;
|
|
4124
4335
|
};
|
|
4336
|
+
export const de_CreateEmailAddressCommand = async (output, context) => {
|
|
4337
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4338
|
+
return de_CommandError(output, context);
|
|
4339
|
+
}
|
|
4340
|
+
const contents = map({
|
|
4341
|
+
$metadata: deserializeMetadata(output),
|
|
4342
|
+
});
|
|
4343
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4344
|
+
const doc = take(data, {
|
|
4345
|
+
EmailAddressArn: __expectString,
|
|
4346
|
+
EmailAddressId: __expectString,
|
|
4347
|
+
});
|
|
4348
|
+
Object.assign(contents, doc);
|
|
4349
|
+
return contents;
|
|
4350
|
+
};
|
|
4125
4351
|
export const de_CreateEvaluationFormCommand = async (output, context) => {
|
|
4126
4352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4127
4353
|
return de_CommandError(output, context);
|
|
@@ -4486,6 +4712,16 @@ export const de_DeleteContactFlowModuleCommand = async (output, context) => {
|
|
|
4486
4712
|
await collectBody(output.body, context);
|
|
4487
4713
|
return contents;
|
|
4488
4714
|
};
|
|
4715
|
+
export const de_DeleteEmailAddressCommand = async (output, context) => {
|
|
4716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4717
|
+
return de_CommandError(output, context);
|
|
4718
|
+
}
|
|
4719
|
+
const contents = map({
|
|
4720
|
+
$metadata: deserializeMetadata(output),
|
|
4721
|
+
});
|
|
4722
|
+
await collectBody(output.body, context);
|
|
4723
|
+
return contents;
|
|
4724
|
+
};
|
|
4489
4725
|
export const de_DeleteEvaluationFormCommand = async (output, context) => {
|
|
4490
4726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4491
4727
|
return de_CommandError(output, context);
|
|
@@ -4767,6 +5003,27 @@ export const de_DescribeContactFlowModuleCommand = async (output, context) => {
|
|
|
4767
5003
|
Object.assign(contents, doc);
|
|
4768
5004
|
return contents;
|
|
4769
5005
|
};
|
|
5006
|
+
export const de_DescribeEmailAddressCommand = async (output, context) => {
|
|
5007
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5008
|
+
return de_CommandError(output, context);
|
|
5009
|
+
}
|
|
5010
|
+
const contents = map({
|
|
5011
|
+
$metadata: deserializeMetadata(output),
|
|
5012
|
+
});
|
|
5013
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5014
|
+
const doc = take(data, {
|
|
5015
|
+
CreateTimestamp: __expectString,
|
|
5016
|
+
Description: __expectString,
|
|
5017
|
+
DisplayName: __expectString,
|
|
5018
|
+
EmailAddress: __expectString,
|
|
5019
|
+
EmailAddressArn: __expectString,
|
|
5020
|
+
EmailAddressId: __expectString,
|
|
5021
|
+
ModifiedTimestamp: __expectString,
|
|
5022
|
+
Tags: _json,
|
|
5023
|
+
});
|
|
5024
|
+
Object.assign(contents, doc);
|
|
5025
|
+
return contents;
|
|
5026
|
+
};
|
|
4770
5027
|
export const de_DescribeEvaluationFormCommand = async (output, context) => {
|
|
4771
5028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4772
5029
|
return de_CommandError(output, context);
|
|
@@ -5344,6 +5601,7 @@ export const de_GetTaskTemplateCommand = async (output, context) => {
|
|
|
5344
5601
|
InstanceId: __expectString,
|
|
5345
5602
|
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5346
5603
|
Name: __expectString,
|
|
5604
|
+
SelfAssignFlowId: __expectString,
|
|
5347
5605
|
Status: __expectString,
|
|
5348
5606
|
Tags: _json,
|
|
5349
5607
|
});
|
|
@@ -5428,6 +5686,21 @@ export const de_ListApprovedOriginsCommand = async (output, context) => {
|
|
|
5428
5686
|
Object.assign(contents, doc);
|
|
5429
5687
|
return contents;
|
|
5430
5688
|
};
|
|
5689
|
+
export const de_ListAssociatedContactsCommand = async (output, context) => {
|
|
5690
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5691
|
+
return de_CommandError(output, context);
|
|
5692
|
+
}
|
|
5693
|
+
const contents = map({
|
|
5694
|
+
$metadata: deserializeMetadata(output),
|
|
5695
|
+
});
|
|
5696
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5697
|
+
const doc = take(data, {
|
|
5698
|
+
ContactSummaryList: (_) => de_AssociatedContactSummaryList(_, context),
|
|
5699
|
+
NextToken: __expectString,
|
|
5700
|
+
});
|
|
5701
|
+
Object.assign(contents, doc);
|
|
5702
|
+
return contents;
|
|
5703
|
+
};
|
|
5431
5704
|
export const de_ListAuthenticationProfilesCommand = async (output, context) => {
|
|
5432
5705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5433
5706
|
return de_CommandError(output, context);
|
|
@@ -6243,6 +6516,22 @@ export const de_SearchContactsCommand = async (output, context) => {
|
|
|
6243
6516
|
Object.assign(contents, doc);
|
|
6244
6517
|
return contents;
|
|
6245
6518
|
};
|
|
6519
|
+
export const de_SearchEmailAddressesCommand = async (output, context) => {
|
|
6520
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6521
|
+
return de_CommandError(output, context);
|
|
6522
|
+
}
|
|
6523
|
+
const contents = map({
|
|
6524
|
+
$metadata: deserializeMetadata(output),
|
|
6525
|
+
});
|
|
6526
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6527
|
+
const doc = take(data, {
|
|
6528
|
+
ApproximateTotalCount: __expectLong,
|
|
6529
|
+
EmailAddresses: _json,
|
|
6530
|
+
NextToken: __expectString,
|
|
6531
|
+
});
|
|
6532
|
+
Object.assign(contents, doc);
|
|
6533
|
+
return contents;
|
|
6534
|
+
};
|
|
6246
6535
|
export const de_SearchHoursOfOperationsCommand = async (output, context) => {
|
|
6247
6536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6248
6537
|
return de_CommandError(output, context);
|
|
@@ -6432,6 +6721,16 @@ export const de_SendChatIntegrationEventCommand = async (output, context) => {
|
|
|
6432
6721
|
Object.assign(contents, doc);
|
|
6433
6722
|
return contents;
|
|
6434
6723
|
};
|
|
6724
|
+
export const de_SendOutboundEmailCommand = async (output, context) => {
|
|
6725
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6726
|
+
return de_CommandError(output, context);
|
|
6727
|
+
}
|
|
6728
|
+
const contents = map({
|
|
6729
|
+
$metadata: deserializeMetadata(output),
|
|
6730
|
+
});
|
|
6731
|
+
await collectBody(output.body, context);
|
|
6732
|
+
return contents;
|
|
6733
|
+
};
|
|
6435
6734
|
export const de_StartAttachedFileUploadCommand = async (output, context) => {
|
|
6436
6735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6437
6736
|
return de_CommandError(output, context);
|
|
@@ -6507,6 +6806,20 @@ export const de_StartContactStreamingCommand = async (output, context) => {
|
|
|
6507
6806
|
Object.assign(contents, doc);
|
|
6508
6807
|
return contents;
|
|
6509
6808
|
};
|
|
6809
|
+
export const de_StartEmailContactCommand = async (output, context) => {
|
|
6810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6811
|
+
return de_CommandError(output, context);
|
|
6812
|
+
}
|
|
6813
|
+
const contents = map({
|
|
6814
|
+
$metadata: deserializeMetadata(output),
|
|
6815
|
+
});
|
|
6816
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6817
|
+
const doc = take(data, {
|
|
6818
|
+
ContactId: __expectString,
|
|
6819
|
+
});
|
|
6820
|
+
Object.assign(contents, doc);
|
|
6821
|
+
return contents;
|
|
6822
|
+
};
|
|
6510
6823
|
export const de_StartOutboundChatContactCommand = async (output, context) => {
|
|
6511
6824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6512
6825
|
return de_CommandError(output, context);
|
|
@@ -6521,6 +6834,20 @@ export const de_StartOutboundChatContactCommand = async (output, context) => {
|
|
|
6521
6834
|
Object.assign(contents, doc);
|
|
6522
6835
|
return contents;
|
|
6523
6836
|
};
|
|
6837
|
+
export const de_StartOutboundEmailContactCommand = async (output, context) => {
|
|
6838
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6839
|
+
return de_CommandError(output, context);
|
|
6840
|
+
}
|
|
6841
|
+
const contents = map({
|
|
6842
|
+
$metadata: deserializeMetadata(output),
|
|
6843
|
+
});
|
|
6844
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6845
|
+
const doc = take(data, {
|
|
6846
|
+
ContactId: __expectString,
|
|
6847
|
+
});
|
|
6848
|
+
Object.assign(contents, doc);
|
|
6849
|
+
return contents;
|
|
6850
|
+
};
|
|
6524
6851
|
export const de_StartOutboundVoiceContactCommand = async (output, context) => {
|
|
6525
6852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6526
6853
|
return de_CommandError(output, context);
|
|
@@ -6811,6 +7138,21 @@ export const de_UpdateContactScheduleCommand = async (output, context) => {
|
|
|
6811
7138
|
await collectBody(output.body, context);
|
|
6812
7139
|
return contents;
|
|
6813
7140
|
};
|
|
7141
|
+
export const de_UpdateEmailAddressMetadataCommand = async (output, context) => {
|
|
7142
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7143
|
+
return de_CommandError(output, context);
|
|
7144
|
+
}
|
|
7145
|
+
const contents = map({
|
|
7146
|
+
$metadata: deserializeMetadata(output),
|
|
7147
|
+
});
|
|
7148
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7149
|
+
const doc = take(data, {
|
|
7150
|
+
EmailAddressArn: __expectString,
|
|
7151
|
+
EmailAddressId: __expectString,
|
|
7152
|
+
});
|
|
7153
|
+
Object.assign(contents, doc);
|
|
7154
|
+
return contents;
|
|
7155
|
+
};
|
|
6814
7156
|
export const de_UpdateEvaluationFormCommand = async (output, context) => {
|
|
6815
7157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6816
7158
|
return de_CommandError(output, context);
|
|
@@ -6957,6 +7299,16 @@ export const de_UpdateQueueOutboundCallerConfigCommand = async (output, context)
|
|
|
6957
7299
|
await collectBody(output.body, context);
|
|
6958
7300
|
return contents;
|
|
6959
7301
|
};
|
|
7302
|
+
export const de_UpdateQueueOutboundEmailConfigCommand = async (output, context) => {
|
|
7303
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7304
|
+
return de_CommandError(output, context);
|
|
7305
|
+
}
|
|
7306
|
+
const contents = map({
|
|
7307
|
+
$metadata: deserializeMetadata(output),
|
|
7308
|
+
});
|
|
7309
|
+
await collectBody(output.body, context);
|
|
7310
|
+
return contents;
|
|
7311
|
+
};
|
|
6960
7312
|
export const de_UpdateQueueStatusCommand = async (output, context) => {
|
|
6961
7313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6962
7314
|
return de_CommandError(output, context);
|
|
@@ -7077,6 +7429,7 @@ export const de_UpdateTaskTemplateCommand = async (output, context) => {
|
|
|
7077
7429
|
InstanceId: __expectString,
|
|
7078
7430
|
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
7079
7431
|
Name: __expectString,
|
|
7432
|
+
SelfAssignFlowId: __expectString,
|
|
7080
7433
|
Status: __expectString,
|
|
7081
7434
|
});
|
|
7082
7435
|
Object.assign(contents, doc);
|
|
@@ -7236,6 +7589,9 @@ const de_CommandError = async (output, context) => {
|
|
|
7236
7589
|
case "DuplicateResourceException":
|
|
7237
7590
|
case "com.amazonaws.connect#DuplicateResourceException":
|
|
7238
7591
|
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
7592
|
+
case "ConflictException":
|
|
7593
|
+
case "com.amazonaws.connect#ConflictException":
|
|
7594
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7239
7595
|
case "InvalidContactFlowException":
|
|
7240
7596
|
case "com.amazonaws.connect#InvalidContactFlowException":
|
|
7241
7597
|
throw await de_InvalidContactFlowExceptionRes(parsedOutput, context);
|
|
@@ -7263,9 +7619,6 @@ const de_CommandError = async (output, context) => {
|
|
|
7263
7619
|
case "OutputTypeNotFoundException":
|
|
7264
7620
|
case "com.amazonaws.connect#OutputTypeNotFoundException":
|
|
7265
7621
|
throw await de_OutputTypeNotFoundExceptionRes(parsedOutput, context);
|
|
7266
|
-
case "ConflictException":
|
|
7267
|
-
case "com.amazonaws.connect#ConflictException":
|
|
7268
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7269
7622
|
case "MaximumResultReturnedException":
|
|
7270
7623
|
case "com.amazonaws.connect#MaximumResultReturnedException":
|
|
7271
7624
|
throw await de_MaximumResultReturnedExceptionRes(parsedOutput, context);
|
|
@@ -7278,6 +7631,9 @@ const de_CommandError = async (output, context) => {
|
|
|
7278
7631
|
case "ContactNotFoundException":
|
|
7279
7632
|
case "com.amazonaws.connect#ContactNotFoundException":
|
|
7280
7633
|
throw await de_ContactNotFoundExceptionRes(parsedOutput, context);
|
|
7634
|
+
case "ConditionalOperationFailedException":
|
|
7635
|
+
case "com.amazonaws.connect#ConditionalOperationFailedException":
|
|
7636
|
+
throw await de_ConditionalOperationFailedExceptionRes(parsedOutput, context);
|
|
7281
7637
|
default:
|
|
7282
7638
|
const parsedBody = parsedOutput.body;
|
|
7283
7639
|
return throwDefaultError({
|
|
@@ -7301,6 +7657,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
7301
7657
|
});
|
|
7302
7658
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
7303
7659
|
};
|
|
7660
|
+
const de_ConditionalOperationFailedExceptionRes = async (parsedOutput, context) => {
|
|
7661
|
+
const contents = map({});
|
|
7662
|
+
const data = parsedOutput.body;
|
|
7663
|
+
const doc = take(data, {
|
|
7664
|
+
Message: __expectString,
|
|
7665
|
+
});
|
|
7666
|
+
Object.assign(contents, doc);
|
|
7667
|
+
const exception = new ConditionalOperationFailedException({
|
|
7668
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7669
|
+
...contents,
|
|
7670
|
+
});
|
|
7671
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
7672
|
+
};
|
|
7304
7673
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
7305
7674
|
const contents = map({});
|
|
7306
7675
|
const data = parsedOutput.body;
|
|
@@ -7570,6 +7939,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
7570
7939
|
const data = parsedOutput.body;
|
|
7571
7940
|
const doc = take(data, {
|
|
7572
7941
|
Message: __expectString,
|
|
7942
|
+
Reason: (_) => _json(__expectUnion(_)),
|
|
7573
7943
|
});
|
|
7574
7944
|
Object.assign(contents, doc);
|
|
7575
7945
|
const exception = new ServiceQuotaExceededException({
|
|
@@ -7677,6 +8047,20 @@ const se_CreateCaseActionDefinition = (input, context) => {
|
|
|
7677
8047
|
TemplateId: [],
|
|
7678
8048
|
});
|
|
7679
8049
|
};
|
|
8050
|
+
const se_EmailAddressSearchConditionList = (input, context) => {
|
|
8051
|
+
return input
|
|
8052
|
+
.filter((e) => e != null)
|
|
8053
|
+
.map((entry) => {
|
|
8054
|
+
return se_EmailAddressSearchCriteria(entry, context);
|
|
8055
|
+
});
|
|
8056
|
+
};
|
|
8057
|
+
const se_EmailAddressSearchCriteria = (input, context) => {
|
|
8058
|
+
return take(input, {
|
|
8059
|
+
AndConditions: (_) => se_EmailAddressSearchConditionList(_, context),
|
|
8060
|
+
OrConditions: (_) => se_EmailAddressSearchConditionList(_, context),
|
|
8061
|
+
StringCondition: _json,
|
|
8062
|
+
});
|
|
8063
|
+
};
|
|
7680
8064
|
const se_EvaluationAnswerData = (input, context) => {
|
|
7681
8065
|
return EvaluationAnswerData.visit(input, {
|
|
7682
8066
|
NotApplicable: (value) => ({ NotApplicable: value }),
|
|
@@ -8090,6 +8474,27 @@ const de_AgentStatusSummaryList = (output, context) => {
|
|
|
8090
8474
|
});
|
|
8091
8475
|
return retVal;
|
|
8092
8476
|
};
|
|
8477
|
+
const de_AssociatedContactSummary = (output, context) => {
|
|
8478
|
+
return take(output, {
|
|
8479
|
+
Channel: __expectString,
|
|
8480
|
+
ContactArn: __expectString,
|
|
8481
|
+
ContactId: __expectString,
|
|
8482
|
+
DisconnectTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8483
|
+
InitialContactId: __expectString,
|
|
8484
|
+
InitiationMethod: __expectString,
|
|
8485
|
+
InitiationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8486
|
+
PreviousContactId: __expectString,
|
|
8487
|
+
RelatedContactId: __expectString,
|
|
8488
|
+
});
|
|
8489
|
+
};
|
|
8490
|
+
const de_AssociatedContactSummaryList = (output, context) => {
|
|
8491
|
+
const retVal = (output || [])
|
|
8492
|
+
.filter((e) => e != null)
|
|
8493
|
+
.map((entry) => {
|
|
8494
|
+
return de_AssociatedContactSummary(entry, context);
|
|
8495
|
+
});
|
|
8496
|
+
return retVal;
|
|
8497
|
+
};
|
|
8093
8498
|
const de_AttributeCondition = (output, context) => {
|
|
8094
8499
|
return take(output, {
|
|
8095
8500
|
ComparisonOperator: __expectString,
|
|
@@ -8141,13 +8546,16 @@ const de_AuthenticationProfileSummaryList = (output, context) => {
|
|
|
8141
8546
|
};
|
|
8142
8547
|
const de_Contact = (output, context) => {
|
|
8143
8548
|
return take(output, {
|
|
8549
|
+
AdditionalEmailRecipients: _json,
|
|
8144
8550
|
AgentInfo: (_) => de_AgentInfo(_, context),
|
|
8145
8551
|
AnsweringMachineDetectionStatus: __expectString,
|
|
8146
8552
|
Arn: __expectString,
|
|
8147
8553
|
Campaign: _json,
|
|
8148
8554
|
Channel: __expectString,
|
|
8149
8555
|
ConnectedToSystemTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8556
|
+
ContactAssociationId: __expectString,
|
|
8150
8557
|
Customer: _json,
|
|
8558
|
+
CustomerEndpoint: _json,
|
|
8151
8559
|
CustomerVoiceActivity: (_) => de_CustomerVoiceActivity(_, context),
|
|
8152
8560
|
Description: __expectString,
|
|
8153
8561
|
DisconnectDetails: _json,
|
|
@@ -8169,6 +8577,7 @@ const de_Contact = (output, context) => {
|
|
|
8169
8577
|
RoutingCriteria: (_) => de_RoutingCriteria(_, context),
|
|
8170
8578
|
ScheduledTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8171
8579
|
SegmentAttributes: _json,
|
|
8580
|
+
SystemEndpoint: _json,
|
|
8172
8581
|
Tags: _json,
|
|
8173
8582
|
TotalPauseCount: __expectInt32,
|
|
8174
8583
|
TotalPauseDurationInSeconds: __expectInt32,
|
|
@@ -8223,6 +8632,7 @@ const de_ContactSearchSummary = (output, context) => {
|
|
|
8223
8632
|
PreviousContactId: __expectString,
|
|
8224
8633
|
QueueInfo: (_) => de_ContactSearchSummaryQueueInfo(_, context),
|
|
8225
8634
|
ScheduledTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8635
|
+
SegmentAttributes: _json,
|
|
8226
8636
|
});
|
|
8227
8637
|
};
|
|
8228
8638
|
const de_ContactSearchSummaryAgentInfo = (output, context) => {
|
|
@@ -8826,6 +9236,7 @@ const de_Queue = (output, context) => {
|
|
|
8826
9236
|
MaxContacts: __expectInt32,
|
|
8827
9237
|
Name: __expectString,
|
|
8828
9238
|
OutboundCallerConfig: _json,
|
|
9239
|
+
OutboundEmailConfig: _json,
|
|
8829
9240
|
QueueArn: __expectString,
|
|
8830
9241
|
QueueId: __expectString,
|
|
8831
9242
|
Status: __expectString,
|