@aws-sdk/client-connect 3.474.0 → 3.476.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 +16 -0
- package/dist-cjs/Connect.js +4 -0
- package/dist-cjs/commands/PauseContactCommand.js +51 -0
- package/dist-cjs/commands/ResumeContactCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +7 -5
- package/dist-cjs/models/models_1.js +19 -6
- package/dist-cjs/models/models_2.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +281 -10
- package/dist-es/Connect.js +4 -0
- package/dist-es/commands/PauseContactCommand.js +47 -0
- package/dist-es/commands/ResumeContactCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +6 -4
- package/dist-es/models/models_1.js +17 -5
- package/dist-es/models/models_2.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +271 -4
- package/dist-types/Connect.d.ts +14 -0
- package/dist-types/ConnectClient.d.ts +4 -2
- package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/commands/CreateRuleCommand.d.ts +30 -2
- package/dist-types/commands/DescribeContactCommand.d.ts +5 -0
- package/dist-types/commands/DescribePromptCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQueueCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleCommand.d.ts +30 -2
- package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListRulesCommand.d.ts +3 -3
- package/dist-types/commands/PauseContactCommand.d.ts +97 -0
- package/dist-types/commands/ResumeContactCommand.d.ts +94 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +1 -2
- package/dist-types/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +9 -0
- package/dist-types/commands/UpdateRuleCommand.d.ts +29 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +132 -149
- package/dist-types/models/models_1.d.ts +225 -307
- package/dist-types/models/models_2.d.ts +336 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Connect.d.ts +34 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribePromptCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PauseContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -37
- package/dist-types/ts3.4/models/models_1.d.ts +56 -65
- package/dist-types/ts3.4/models/models_2.d.ts +72 -5
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +4 -4
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateViewVersionCommand = exports.se_CreateViewCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreatePromptCommand = exports.se_CreatePersistentContactAssociationCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_BatchPutContactCommand = exports.se_BatchGetFlowAssociationCommand = exports.se_BatchDisassociateAnalyticsDataSetCommand = exports.se_BatchAssociateAnalyticsDataSetCommand = exports.se_AssociateTrafficDistributionGroupUserCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateFlowCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_AssociateAnalyticsDataSetCommand = exports.se_ActivateEvaluationFormCommand = void 0;
|
|
4
4
|
exports.se_DismissUserContactCommand = exports.se_DisassociateTrafficDistributionGroupUserCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateFlowCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DisassociateAnalyticsDataSetCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeViewCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePromptCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteViewVersionCommand = exports.se_DeleteViewCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteRoutingProfileCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteQueueCommand = exports.se_DeletePromptCommand = void 0;
|
|
5
5
|
exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupUsersCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityProfileApplicationsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListRealtimeContactAnalysisSegmentsV2Command = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListFlowAssociationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAnalyticsDataAssociationsCommand = exports.se_ListAgentStatusesCommand = exports.se_ImportPhoneNumberCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFlowAssociationCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = void 0;
|
|
6
|
+
exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_UntagContactCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_TagContactCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartWebRTCContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SendChatIntegrationEventCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchResourceTagsCommand = exports.se_SearchQuickConnectsCommand = exports.se_SearchQueuesCommand = exports.se_SearchPromptsCommand = exports.se_SearchHoursOfOperationsCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ResumeContactCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_PauseContactCommand = exports.se_MonitorContactCommand = exports.se_ListViewVersionsCommand = exports.se_ListViewsCommand = exports.se_ListUsersCommand = void 0;
|
|
7
|
+
exports.de_ClaimPhoneNumberCommand = exports.de_BatchPutContactCommand = exports.de_BatchGetFlowAssociationCommand = exports.de_BatchDisassociateAnalyticsDataSetCommand = exports.de_BatchAssociateAnalyticsDataSetCommand = exports.de_AssociateTrafficDistributionGroupUserCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateFlowCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_AssociateAnalyticsDataSetCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateViewMetadataCommand = exports.se_UpdateViewContentCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberMetadataCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = void 0;
|
|
8
|
+
exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteViewVersionCommand = exports.de_DeleteViewCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteRoutingProfileCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteQueueCommand = exports.de_DeletePromptCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateViewVersionCommand = exports.de_CreateViewCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreatePromptCommand = exports.de_CreatePersistentContactAssociationCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = void 0;
|
|
9
|
+
exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAnalyticsDataAssociationsCommand = exports.de_ListAgentStatusesCommand = exports.de_ImportPhoneNumberCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFlowAssociationCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateTrafficDistributionGroupUserCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateFlowCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DisassociateAnalyticsDataSetCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeViewCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePromptCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = void 0;
|
|
10
|
+
exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchResourceTagsCommand = exports.de_SearchQuickConnectsCommand = exports.de_SearchQueuesCommand = exports.de_SearchPromptsCommand = exports.de_SearchHoursOfOperationsCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ResumeContactCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_PauseContactCommand = exports.de_MonitorContactCommand = exports.de_ListViewVersionsCommand = exports.de_ListViewsCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupUsersCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityProfileApplicationsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListRealtimeContactAnalysisSegmentsV2Command = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListFlowAssociationsCommand = exports.de_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = void 0;
|
|
11
|
+
exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = exports.de_UpdatePhoneNumberMetadataCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_UntagContactCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_TagContactCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartWebRTCContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SendChatIntegrationEventCommand = exports.de_SearchVocabulariesCommand = void 0;
|
|
12
|
+
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = void 0;
|
|
13
13
|
const core_1 = require("@aws-sdk/core");
|
|
14
14
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
15
15
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -814,7 +814,7 @@ const se_CreateRuleCommand = async (input, context) => {
|
|
|
814
814
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
815
815
|
let body;
|
|
816
816
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
817
|
-
Actions: (_) => (
|
|
817
|
+
Actions: (_) => se_RuleActions(_, context),
|
|
818
818
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
819
819
|
Function: [],
|
|
820
820
|
Name: [],
|
|
@@ -3469,6 +3469,29 @@ const se_MonitorContactCommand = async (input, context) => {
|
|
|
3469
3469
|
});
|
|
3470
3470
|
};
|
|
3471
3471
|
exports.se_MonitorContactCommand = se_MonitorContactCommand;
|
|
3472
|
+
const se_PauseContactCommand = async (input, context) => {
|
|
3473
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3474
|
+
const headers = {
|
|
3475
|
+
"content-type": "application/json",
|
|
3476
|
+
};
|
|
3477
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/pause";
|
|
3478
|
+
let body;
|
|
3479
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
3480
|
+
ContactFlowId: [],
|
|
3481
|
+
ContactId: [],
|
|
3482
|
+
InstanceId: [],
|
|
3483
|
+
}));
|
|
3484
|
+
return new protocol_http_1.HttpRequest({
|
|
3485
|
+
protocol,
|
|
3486
|
+
hostname,
|
|
3487
|
+
port,
|
|
3488
|
+
method: "POST",
|
|
3489
|
+
headers,
|
|
3490
|
+
path: resolvedPath,
|
|
3491
|
+
body,
|
|
3492
|
+
});
|
|
3493
|
+
};
|
|
3494
|
+
exports.se_PauseContactCommand = se_PauseContactCommand;
|
|
3472
3495
|
const se_PutUserStatusCommand = async (input, context) => {
|
|
3473
3496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3474
3497
|
const headers = {
|
|
@@ -3537,6 +3560,29 @@ const se_ReplicateInstanceCommand = async (input, context) => {
|
|
|
3537
3560
|
});
|
|
3538
3561
|
};
|
|
3539
3562
|
exports.se_ReplicateInstanceCommand = se_ReplicateInstanceCommand;
|
|
3563
|
+
const se_ResumeContactCommand = async (input, context) => {
|
|
3564
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3565
|
+
const headers = {
|
|
3566
|
+
"content-type": "application/json",
|
|
3567
|
+
};
|
|
3568
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume";
|
|
3569
|
+
let body;
|
|
3570
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
3571
|
+
ContactFlowId: [],
|
|
3572
|
+
ContactId: [],
|
|
3573
|
+
InstanceId: [],
|
|
3574
|
+
}));
|
|
3575
|
+
return new protocol_http_1.HttpRequest({
|
|
3576
|
+
protocol,
|
|
3577
|
+
hostname,
|
|
3578
|
+
port,
|
|
3579
|
+
method: "POST",
|
|
3580
|
+
headers,
|
|
3581
|
+
path: resolvedPath,
|
|
3582
|
+
body,
|
|
3583
|
+
});
|
|
3584
|
+
};
|
|
3585
|
+
exports.se_ResumeContactCommand = se_ResumeContactCommand;
|
|
3540
3586
|
const se_ResumeContactRecordingCommand = async (input, context) => {
|
|
3541
3587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3542
3588
|
const headers = {
|
|
@@ -3954,9 +4000,13 @@ const se_StartOutboundVoiceContactCommand = async (input, context) => {
|
|
|
3954
4000
|
CampaignId: [],
|
|
3955
4001
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3956
4002
|
ContactFlowId: [],
|
|
4003
|
+
Description: [],
|
|
3957
4004
|
DestinationPhoneNumber: [],
|
|
3958
4005
|
InstanceId: [],
|
|
4006
|
+
Name: [],
|
|
3959
4007
|
QueueId: [],
|
|
4008
|
+
References: (_) => (0, smithy_client_1._json)(_),
|
|
4009
|
+
RelatedContactId: [],
|
|
3960
4010
|
SourcePhoneNumber: [],
|
|
3961
4011
|
TrafficType: [],
|
|
3962
4012
|
}));
|
|
@@ -5022,7 +5072,7 @@ const se_UpdateRuleCommand = async (input, context) => {
|
|
|
5022
5072
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
5023
5073
|
let body;
|
|
5024
5074
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
5025
|
-
Actions: (_) => (
|
|
5075
|
+
Actions: (_) => se_RuleActions(_, context),
|
|
5026
5076
|
Function: [],
|
|
5027
5077
|
Name: [],
|
|
5028
5078
|
PublishStatus: [],
|
|
@@ -12557,6 +12607,57 @@ const de_MonitorContactCommandError = async (output, context) => {
|
|
|
12557
12607
|
});
|
|
12558
12608
|
}
|
|
12559
12609
|
};
|
|
12610
|
+
const de_PauseContactCommand = async (output, context) => {
|
|
12611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12612
|
+
return de_PauseContactCommandError(output, context);
|
|
12613
|
+
}
|
|
12614
|
+
const contents = (0, smithy_client_1.map)({
|
|
12615
|
+
$metadata: deserializeMetadata(output),
|
|
12616
|
+
});
|
|
12617
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
12618
|
+
return contents;
|
|
12619
|
+
};
|
|
12620
|
+
exports.de_PauseContactCommand = de_PauseContactCommand;
|
|
12621
|
+
const de_PauseContactCommandError = async (output, context) => {
|
|
12622
|
+
const parsedOutput = {
|
|
12623
|
+
...output,
|
|
12624
|
+
body: await parseErrorBody(output.body, context),
|
|
12625
|
+
};
|
|
12626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12627
|
+
switch (errorCode) {
|
|
12628
|
+
case "AccessDeniedException":
|
|
12629
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12630
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
12631
|
+
case "ConflictException":
|
|
12632
|
+
case "com.amazonaws.connect#ConflictException":
|
|
12633
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
12634
|
+
case "InternalServiceException":
|
|
12635
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12636
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
12637
|
+
case "InvalidParameterException":
|
|
12638
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12639
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
12640
|
+
case "InvalidRequestException":
|
|
12641
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12642
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12643
|
+
case "LimitExceededException":
|
|
12644
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
12645
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
12646
|
+
case "ResourceNotFoundException":
|
|
12647
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
12649
|
+
case "ThrottlingException":
|
|
12650
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12651
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12652
|
+
default:
|
|
12653
|
+
const parsedBody = parsedOutput.body;
|
|
12654
|
+
return throwDefaultError({
|
|
12655
|
+
output,
|
|
12656
|
+
parsedBody,
|
|
12657
|
+
errorCode,
|
|
12658
|
+
});
|
|
12659
|
+
}
|
|
12660
|
+
};
|
|
12560
12661
|
const de_PutUserStatusCommand = async (output, context) => {
|
|
12561
12662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12562
12663
|
return de_PutUserStatusCommandError(output, context);
|
|
@@ -12706,6 +12807,54 @@ const de_ReplicateInstanceCommandError = async (output, context) => {
|
|
|
12706
12807
|
});
|
|
12707
12808
|
}
|
|
12708
12809
|
};
|
|
12810
|
+
const de_ResumeContactCommand = async (output, context) => {
|
|
12811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12812
|
+
return de_ResumeContactCommandError(output, context);
|
|
12813
|
+
}
|
|
12814
|
+
const contents = (0, smithy_client_1.map)({
|
|
12815
|
+
$metadata: deserializeMetadata(output),
|
|
12816
|
+
});
|
|
12817
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
12818
|
+
return contents;
|
|
12819
|
+
};
|
|
12820
|
+
exports.de_ResumeContactCommand = de_ResumeContactCommand;
|
|
12821
|
+
const de_ResumeContactCommandError = async (output, context) => {
|
|
12822
|
+
const parsedOutput = {
|
|
12823
|
+
...output,
|
|
12824
|
+
body: await parseErrorBody(output.body, context),
|
|
12825
|
+
};
|
|
12826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12827
|
+
switch (errorCode) {
|
|
12828
|
+
case "AccessDeniedException":
|
|
12829
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12830
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
12831
|
+
case "ConflictException":
|
|
12832
|
+
case "com.amazonaws.connect#ConflictException":
|
|
12833
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
12834
|
+
case "InternalServiceException":
|
|
12835
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12836
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
12837
|
+
case "InvalidParameterException":
|
|
12838
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12839
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
12840
|
+
case "InvalidRequestException":
|
|
12841
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12842
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12843
|
+
case "ResourceNotFoundException":
|
|
12844
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12845
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
12846
|
+
case "ThrottlingException":
|
|
12847
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12848
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12849
|
+
default:
|
|
12850
|
+
const parsedBody = parsedOutput.body;
|
|
12851
|
+
return throwDefaultError({
|
|
12852
|
+
output,
|
|
12853
|
+
parsedBody,
|
|
12854
|
+
errorCode,
|
|
12855
|
+
});
|
|
12856
|
+
}
|
|
12857
|
+
};
|
|
12709
12858
|
const de_ResumeContactRecordingCommand = async (output, context) => {
|
|
12710
12859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12711
12860
|
return de_ResumeContactRecordingCommandError(output, context);
|
|
@@ -15962,6 +16111,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
15962
16111
|
});
|
|
15963
16112
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
15964
16113
|
};
|
|
16114
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
16115
|
+
const contents = (0, smithy_client_1.map)({});
|
|
16116
|
+
const data = parsedOutput.body;
|
|
16117
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
16118
|
+
Message: smithy_client_1.expectString,
|
|
16119
|
+
});
|
|
16120
|
+
Object.assign(contents, doc);
|
|
16121
|
+
const exception = new models_1_1.ConflictException({
|
|
16122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
16123
|
+
...contents,
|
|
16124
|
+
});
|
|
16125
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16126
|
+
};
|
|
15965
16127
|
const de_ContactFlowNotPublishedExceptionRes = async (parsedOutput, context) => {
|
|
15966
16128
|
const contents = (0, smithy_client_1.map)({});
|
|
15967
16129
|
const data = parsedOutput.body;
|
|
@@ -16264,6 +16426,12 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
16264
16426
|
});
|
|
16265
16427
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16266
16428
|
};
|
|
16429
|
+
const se_CreateCaseActionDefinition = (input, context) => {
|
|
16430
|
+
return (0, smithy_client_1.take)(input, {
|
|
16431
|
+
Fields: (_) => se_FieldValues(_, context),
|
|
16432
|
+
TemplateId: [],
|
|
16433
|
+
});
|
|
16434
|
+
};
|
|
16267
16435
|
const se_EvaluationAnswerData = (input, context) => {
|
|
16268
16436
|
return models_0_1.EvaluationAnswerData.visit(input, {
|
|
16269
16437
|
NotApplicable: (value) => ({ NotApplicable: value }),
|
|
@@ -16320,6 +16488,27 @@ const se_EvaluationFormSection = (input, context) => {
|
|
|
16320
16488
|
Weight: smithy_client_1.serializeFloat,
|
|
16321
16489
|
});
|
|
16322
16490
|
};
|
|
16491
|
+
const se_FieldValue = (input, context) => {
|
|
16492
|
+
return (0, smithy_client_1.take)(input, {
|
|
16493
|
+
Id: [],
|
|
16494
|
+
Value: (_) => se_FieldValueUnion(_, context),
|
|
16495
|
+
});
|
|
16496
|
+
};
|
|
16497
|
+
const se_FieldValues = (input, context) => {
|
|
16498
|
+
return input
|
|
16499
|
+
.filter((e) => e != null)
|
|
16500
|
+
.map((entry) => {
|
|
16501
|
+
return se_FieldValue(entry, context);
|
|
16502
|
+
});
|
|
16503
|
+
};
|
|
16504
|
+
const se_FieldValueUnion = (input, context) => {
|
|
16505
|
+
return (0, smithy_client_1.take)(input, {
|
|
16506
|
+
BooleanValue: [],
|
|
16507
|
+
DoubleValue: smithy_client_1.serializeFloat,
|
|
16508
|
+
EmptyValue: smithy_client_1._json,
|
|
16509
|
+
StringValue: [],
|
|
16510
|
+
});
|
|
16511
|
+
};
|
|
16323
16512
|
const se_HistoricalMetric = (input, context) => {
|
|
16324
16513
|
return (0, smithy_client_1.take)(input, {
|
|
16325
16514
|
Name: [],
|
|
@@ -16420,6 +16609,25 @@ const se_RoutingProfileSearchCriteria = (input, context) => {
|
|
|
16420
16609
|
StringCondition: smithy_client_1._json,
|
|
16421
16610
|
});
|
|
16422
16611
|
};
|
|
16612
|
+
const se_RuleAction = (input, context) => {
|
|
16613
|
+
return (0, smithy_client_1.take)(input, {
|
|
16614
|
+
ActionType: [],
|
|
16615
|
+
AssignContactCategoryAction: smithy_client_1._json,
|
|
16616
|
+
CreateCaseAction: (_) => se_CreateCaseActionDefinition(_, context),
|
|
16617
|
+
EndAssociatedTasksAction: smithy_client_1._json,
|
|
16618
|
+
EventBridgeAction: smithy_client_1._json,
|
|
16619
|
+
SendNotificationAction: smithy_client_1._json,
|
|
16620
|
+
TaskAction: smithy_client_1._json,
|
|
16621
|
+
UpdateCaseAction: (_) => se_UpdateCaseActionDefinition(_, context),
|
|
16622
|
+
});
|
|
16623
|
+
};
|
|
16624
|
+
const se_RuleActions = (input, context) => {
|
|
16625
|
+
return input
|
|
16626
|
+
.filter((e) => e != null)
|
|
16627
|
+
.map((entry) => {
|
|
16628
|
+
return se_RuleAction(entry, context);
|
|
16629
|
+
});
|
|
16630
|
+
};
|
|
16423
16631
|
const se_SecurityProfileSearchConditionList = (input, context) => {
|
|
16424
16632
|
return input
|
|
16425
16633
|
.filter((e) => e != null)
|
|
@@ -16453,6 +16661,11 @@ const se_ThresholdV2 = (input, context) => {
|
|
|
16453
16661
|
ThresholdValue: smithy_client_1.serializeFloat,
|
|
16454
16662
|
});
|
|
16455
16663
|
};
|
|
16664
|
+
const se_UpdateCaseActionDefinition = (input, context) => {
|
|
16665
|
+
return (0, smithy_client_1.take)(input, {
|
|
16666
|
+
Fields: (_) => se_FieldValues(_, context),
|
|
16667
|
+
});
|
|
16668
|
+
};
|
|
16456
16669
|
const se_UserSearchConditionList = (input, context) => {
|
|
16457
16670
|
return input
|
|
16458
16671
|
.filter((e) => e != null)
|
|
@@ -16489,6 +16702,7 @@ const de_AgentContactReferenceList = (output, context) => {
|
|
|
16489
16702
|
};
|
|
16490
16703
|
const de_AgentInfo = (output, context) => {
|
|
16491
16704
|
return (0, smithy_client_1.take)(output, {
|
|
16705
|
+
AgentPauseDurationInSeconds: smithy_client_1.expectInt32,
|
|
16492
16706
|
ConnectedToAgentTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16493
16707
|
Id: smithy_client_1.expectString,
|
|
16494
16708
|
});
|
|
@@ -16543,6 +16757,8 @@ const de_Contact = (output, context) => {
|
|
|
16543
16757
|
InitialContactId: smithy_client_1.expectString,
|
|
16544
16758
|
InitiationMethod: smithy_client_1.expectString,
|
|
16545
16759
|
InitiationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16760
|
+
LastPausedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16761
|
+
LastResumedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16546
16762
|
LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16547
16763
|
Name: smithy_client_1.expectString,
|
|
16548
16764
|
PreviousContactId: smithy_client_1.expectString,
|
|
@@ -16550,9 +16766,17 @@ const de_Contact = (output, context) => {
|
|
|
16550
16766
|
RelatedContactId: smithy_client_1.expectString,
|
|
16551
16767
|
ScheduledTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16552
16768
|
Tags: smithy_client_1._json,
|
|
16769
|
+
TotalPauseCount: smithy_client_1.expectInt32,
|
|
16770
|
+
TotalPauseDurationInSeconds: smithy_client_1.expectInt32,
|
|
16553
16771
|
WisdomInfo: smithy_client_1._json,
|
|
16554
16772
|
});
|
|
16555
16773
|
};
|
|
16774
|
+
const de_CreateCaseActionDefinition = (output, context) => {
|
|
16775
|
+
return (0, smithy_client_1.take)(output, {
|
|
16776
|
+
Fields: (_) => de_FieldValues(_, context),
|
|
16777
|
+
TemplateId: smithy_client_1.expectString,
|
|
16778
|
+
});
|
|
16779
|
+
};
|
|
16556
16780
|
const de_Credentials = (output, context) => {
|
|
16557
16781
|
return (0, smithy_client_1.take)(output, {
|
|
16558
16782
|
AccessToken: smithy_client_1.expectString,
|
|
@@ -16789,6 +17013,28 @@ const de_EvaluationSummaryList = (output, context) => {
|
|
|
16789
17013
|
});
|
|
16790
17014
|
return retVal;
|
|
16791
17015
|
};
|
|
17016
|
+
const de_FieldValue = (output, context) => {
|
|
17017
|
+
return (0, smithy_client_1.take)(output, {
|
|
17018
|
+
Id: smithy_client_1.expectString,
|
|
17019
|
+
Value: (_) => de_FieldValueUnion(_, context),
|
|
17020
|
+
});
|
|
17021
|
+
};
|
|
17022
|
+
const de_FieldValues = (output, context) => {
|
|
17023
|
+
const retVal = (output || [])
|
|
17024
|
+
.filter((e) => e != null)
|
|
17025
|
+
.map((entry) => {
|
|
17026
|
+
return de_FieldValue(entry, context);
|
|
17027
|
+
});
|
|
17028
|
+
return retVal;
|
|
17029
|
+
};
|
|
17030
|
+
const de_FieldValueUnion = (output, context) => {
|
|
17031
|
+
return (0, smithy_client_1.take)(output, {
|
|
17032
|
+
BooleanValue: smithy_client_1.expectBoolean,
|
|
17033
|
+
DoubleValue: smithy_client_1.limitedParseDouble,
|
|
17034
|
+
EmptyValue: smithy_client_1._json,
|
|
17035
|
+
StringValue: smithy_client_1.expectString,
|
|
17036
|
+
});
|
|
17037
|
+
};
|
|
16792
17038
|
const de_HierarchyGroup = (output, context) => {
|
|
16793
17039
|
return (0, smithy_client_1.take)(output, {
|
|
16794
17040
|
Arn: smithy_client_1.expectString,
|
|
@@ -17243,7 +17489,7 @@ const de_RoutingProfileSummaryList = (output, context) => {
|
|
|
17243
17489
|
};
|
|
17244
17490
|
const de_Rule = (output, context) => {
|
|
17245
17491
|
return (0, smithy_client_1.take)(output, {
|
|
17246
|
-
Actions:
|
|
17492
|
+
Actions: (_) => de_RuleActions(_, context),
|
|
17247
17493
|
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
17248
17494
|
Function: smithy_client_1.expectString,
|
|
17249
17495
|
LastUpdatedBy: smithy_client_1.expectString,
|
|
@@ -17256,6 +17502,26 @@ const de_Rule = (output, context) => {
|
|
|
17256
17502
|
TriggerEventSource: smithy_client_1._json,
|
|
17257
17503
|
});
|
|
17258
17504
|
};
|
|
17505
|
+
const de_RuleAction = (output, context) => {
|
|
17506
|
+
return (0, smithy_client_1.take)(output, {
|
|
17507
|
+
ActionType: smithy_client_1.expectString,
|
|
17508
|
+
AssignContactCategoryAction: smithy_client_1._json,
|
|
17509
|
+
CreateCaseAction: (_) => de_CreateCaseActionDefinition(_, context),
|
|
17510
|
+
EndAssociatedTasksAction: smithy_client_1._json,
|
|
17511
|
+
EventBridgeAction: smithy_client_1._json,
|
|
17512
|
+
SendNotificationAction: smithy_client_1._json,
|
|
17513
|
+
TaskAction: smithy_client_1._json,
|
|
17514
|
+
UpdateCaseAction: (_) => de_UpdateCaseActionDefinition(_, context),
|
|
17515
|
+
});
|
|
17516
|
+
};
|
|
17517
|
+
const de_RuleActions = (output, context) => {
|
|
17518
|
+
const retVal = (output || [])
|
|
17519
|
+
.filter((e) => e != null)
|
|
17520
|
+
.map((entry) => {
|
|
17521
|
+
return de_RuleAction(entry, context);
|
|
17522
|
+
});
|
|
17523
|
+
return retVal;
|
|
17524
|
+
};
|
|
17259
17525
|
const de_RuleSummary = (output, context) => {
|
|
17260
17526
|
return (0, smithy_client_1.take)(output, {
|
|
17261
17527
|
ActionSummaries: smithy_client_1._json,
|
|
@@ -17361,6 +17627,11 @@ const de_ThresholdV2 = (output, context) => {
|
|
|
17361
17627
|
ThresholdValue: smithy_client_1.limitedParseDouble,
|
|
17362
17628
|
});
|
|
17363
17629
|
};
|
|
17630
|
+
const de_UpdateCaseActionDefinition = (output, context) => {
|
|
17631
|
+
return (0, smithy_client_1.take)(output, {
|
|
17632
|
+
Fields: (_) => de_FieldValues(_, context),
|
|
17633
|
+
});
|
|
17634
|
+
};
|
|
17364
17635
|
const de_User = (output, context) => {
|
|
17365
17636
|
return (0, smithy_client_1.take)(output, {
|
|
17366
17637
|
Arn: smithy_client_1.expectString,
|
package/dist-es/Connect.js
CHANGED
|
@@ -153,9 +153,11 @@ import { ListUsersCommand } from "./commands/ListUsersCommand";
|
|
|
153
153
|
import { ListViewsCommand } from "./commands/ListViewsCommand";
|
|
154
154
|
import { ListViewVersionsCommand, } from "./commands/ListViewVersionsCommand";
|
|
155
155
|
import { MonitorContactCommand, } from "./commands/MonitorContactCommand";
|
|
156
|
+
import { PauseContactCommand, } from "./commands/PauseContactCommand";
|
|
156
157
|
import { PutUserStatusCommand, } from "./commands/PutUserStatusCommand";
|
|
157
158
|
import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
|
|
158
159
|
import { ReplicateInstanceCommand, } from "./commands/ReplicateInstanceCommand";
|
|
160
|
+
import { ResumeContactCommand, } from "./commands/ResumeContactCommand";
|
|
159
161
|
import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
|
|
160
162
|
import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
|
|
161
163
|
import { SearchHoursOfOperationsCommand, } from "./commands/SearchHoursOfOperationsCommand";
|
|
@@ -384,9 +386,11 @@ const commands = {
|
|
|
384
386
|
ListViewsCommand,
|
|
385
387
|
ListViewVersionsCommand,
|
|
386
388
|
MonitorContactCommand,
|
|
389
|
+
PauseContactCommand,
|
|
387
390
|
PutUserStatusCommand,
|
|
388
391
|
ReleasePhoneNumberCommand,
|
|
389
392
|
ReplicateInstanceCommand,
|
|
393
|
+
ResumeContactCommand,
|
|
390
394
|
ResumeContactRecordingCommand,
|
|
391
395
|
SearchAvailablePhoneNumbersCommand,
|
|
392
396
|
SearchHoursOfOperationsCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_PauseContactCommand, se_PauseContactCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PauseContactCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PauseContactCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "PauseContactCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "PauseContact",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_PauseContactCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_PauseContactCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ResumeContactCommand, se_ResumeContactCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ResumeContactCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ResumeContactCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "ResumeContactCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "ResumeContact",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ResumeContactCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ResumeContactCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -152,9 +152,11 @@ export * from "./ListUsersCommand";
|
|
|
152
152
|
export * from "./ListViewVersionsCommand";
|
|
153
153
|
export * from "./ListViewsCommand";
|
|
154
154
|
export * from "./MonitorContactCommand";
|
|
155
|
+
export * from "./PauseContactCommand";
|
|
155
156
|
export * from "./PutUserStatusCommand";
|
|
156
157
|
export * from "./ReleasePhoneNumberCommand";
|
|
157
158
|
export * from "./ReplicateInstanceCommand";
|
|
159
|
+
export * from "./ResumeContactCommand";
|
|
158
160
|
export * from "./ResumeContactRecordingCommand";
|
|
159
161
|
export * from "./SearchAvailablePhoneNumbersCommand";
|
|
160
162
|
export * from "./SearchHoursOfOperationsCommand";
|