@aws-sdk/client-connect 3.42.0 → 3.43.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/CHANGELOG.md +11 -0
- package/README.md +2 -4
- package/dist-cjs/Connect.js +120 -0
- package/dist-cjs/commands/CreateContactFlowModuleCommand.js +36 -0
- package/dist-cjs/commands/DeleteContactFlowCommand.js +36 -0
- package/dist-cjs/commands/DeleteContactFlowModuleCommand.js +36 -0
- package/dist-cjs/commands/DescribeContactFlowModuleCommand.js +36 -0
- package/dist-cjs/commands/ListContactFlowModulesCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAgentStatusCommand.js +2 -2
- package/dist-cjs/commands/UpdateContactAttributesCommand.js +3 -3
- package/dist-cjs/commands/UpdateContactCommand.js +3 -3
- package/dist-cjs/commands/UpdateContactFlowContentCommand.js +2 -2
- package/dist-cjs/commands/UpdateContactFlowMetadataCommand.js +36 -0
- package/dist-cjs/commands/UpdateContactFlowModuleContentCommand.js +36 -0
- package/dist-cjs/commands/UpdateContactFlowModuleMetadataCommand.js +36 -0
- package/dist-cjs/commands/UpdateContactFlowNameCommand.js +2 -2
- package/dist-cjs/commands/UpdateContactScheduleCommand.js +3 -3
- package/dist-cjs/commands/UpdateHoursOfOperationCommand.js +2 -2
- package/dist-cjs/commands/UpdateInstanceAttributeCommand.js +2 -2
- package/dist-cjs/commands/UpdateInstanceStorageConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateQueueHoursOfOperationCommand.js +2 -2
- package/dist-cjs/commands/UpdateQueueMaxContactsCommand.js +2 -2
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +99 -102
- package/dist-cjs/models/models_1.js +127 -1
- package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1271 -167
- package/dist-es/Connect.js +120 -0
- package/dist-es/commands/CreateContactFlowModuleCommand.js +39 -0
- package/dist-es/commands/DeleteContactFlowCommand.js +39 -0
- package/dist-es/commands/DeleteContactFlowModuleCommand.js +39 -0
- package/dist-es/commands/DescribeContactFlowModuleCommand.js +39 -0
- package/dist-es/commands/ListContactFlowModulesCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateAgentStatusCommand.js +1 -1
- package/dist-es/commands/UpdateContactAttributesCommand.js +1 -1
- package/dist-es/commands/UpdateContactCommand.js +1 -1
- package/dist-es/commands/UpdateContactFlowContentCommand.js +1 -1
- package/dist-es/commands/UpdateContactFlowMetadataCommand.js +39 -0
- package/dist-es/commands/UpdateContactFlowModuleContentCommand.js +39 -0
- package/dist-es/commands/UpdateContactFlowModuleMetadataCommand.js +39 -0
- package/dist-es/commands/UpdateContactFlowNameCommand.js +1 -1
- package/dist-es/commands/UpdateContactScheduleCommand.js +1 -1
- package/dist-es/commands/UpdateHoursOfOperationCommand.js +1 -1
- package/dist-es/commands/UpdateInstanceAttributeCommand.js +1 -1
- package/dist-es/commands/UpdateInstanceStorageConfigCommand.js +1 -1
- package/dist-es/commands/UpdateQueueHoursOfOperationCommand.js +1 -1
- package/dist-es/commands/UpdateQueueMaxContactsCommand.js +1 -1
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +67 -64
- package/dist-es/models/models_1.js +84 -0
- package/dist-es/pagination/ListContactFlowModulesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +1423 -192
- package/dist-types/Connect.d.ts +78 -21
- package/dist-types/ConnectClient.d.ts +13 -7
- package/dist-types/commands/CreateContactFlowModuleCommand.d.ts +35 -0
- package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteContactFlowCommand.d.ts +35 -0
- package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +35 -0
- package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeContactCommand.d.ts +2 -1
- package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +35 -0
- package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +2 -1
- package/dist-types/commands/ListBotsCommand.d.ts +2 -2
- package/dist-types/commands/ListContactFlowModulesCommand.d.ts +35 -0
- package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +2 -3
- package/dist-types/commands/StartTaskContactCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactCommand.d.ts +2 -2
- package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +35 -0
- package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +35 -0
- package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +35 -0
- package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactScheduleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +3 -2
- package/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +307 -363
- package/dist-types/models/models_1.d.ts +429 -1
- package/dist-types/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/Connect.d.ts +40 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/CreateContactFlowModuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteContactFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteContactFlowModuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeContactFlowModuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListContactFlowModulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactScheduleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +174 -198
- package/dist-types/ts3.4/models/models_1.d.ts +255 -1
- package/dist-types/ts3.4/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +2 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
4
|
+
exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = void 0;
|
|
8
9
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
9
10
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
11
|
const uuid_1 = require("uuid");
|
|
@@ -362,6 +363,42 @@ const serializeAws_restJson1CreateContactFlowCommand = async (input, context) =>
|
|
|
362
363
|
});
|
|
363
364
|
};
|
|
364
365
|
exports.serializeAws_restJson1CreateContactFlowCommand = serializeAws_restJson1CreateContactFlowCommand;
|
|
366
|
+
const serializeAws_restJson1CreateContactFlowModuleCommand = async (input, context) => {
|
|
367
|
+
var _a;
|
|
368
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flow-modules/{InstanceId}";
|
|
373
|
+
if (input.InstanceId !== undefined) {
|
|
374
|
+
const labelValue = input.InstanceId;
|
|
375
|
+
if (labelValue.length <= 0) {
|
|
376
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
377
|
+
}
|
|
378
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
382
|
+
}
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify({
|
|
385
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
386
|
+
...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
|
|
387
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
388
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
389
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
390
|
+
});
|
|
391
|
+
return new protocol_http_1.HttpRequest({
|
|
392
|
+
protocol,
|
|
393
|
+
hostname,
|
|
394
|
+
port,
|
|
395
|
+
method: "PUT",
|
|
396
|
+
headers,
|
|
397
|
+
path: resolvedPath,
|
|
398
|
+
body,
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
exports.serializeAws_restJson1CreateContactFlowModuleCommand = serializeAws_restJson1CreateContactFlowModuleCommand;
|
|
365
402
|
const serializeAws_restJson1CreateHoursOfOperationCommand = async (input, context) => {
|
|
366
403
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
404
|
const headers = {
|
|
@@ -752,6 +789,80 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
|
|
|
752
789
|
});
|
|
753
790
|
};
|
|
754
791
|
exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = serializeAws_restJson1CreateUserHierarchyGroupCommand;
|
|
792
|
+
const serializeAws_restJson1DeleteContactFlowCommand = async (input, context) => {
|
|
793
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
794
|
+
const headers = {};
|
|
795
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
796
|
+
"/contact-flows/{InstanceId}/{ContactFlowId}";
|
|
797
|
+
if (input.InstanceId !== undefined) {
|
|
798
|
+
const labelValue = input.InstanceId;
|
|
799
|
+
if (labelValue.length <= 0) {
|
|
800
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
801
|
+
}
|
|
802
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
806
|
+
}
|
|
807
|
+
if (input.ContactFlowId !== undefined) {
|
|
808
|
+
const labelValue = input.ContactFlowId;
|
|
809
|
+
if (labelValue.length <= 0) {
|
|
810
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowId.");
|
|
811
|
+
}
|
|
812
|
+
resolvedPath = resolvedPath.replace("{ContactFlowId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
throw new Error("No value provided for input HTTP label: ContactFlowId.");
|
|
816
|
+
}
|
|
817
|
+
let body;
|
|
818
|
+
return new protocol_http_1.HttpRequest({
|
|
819
|
+
protocol,
|
|
820
|
+
hostname,
|
|
821
|
+
port,
|
|
822
|
+
method: "DELETE",
|
|
823
|
+
headers,
|
|
824
|
+
path: resolvedPath,
|
|
825
|
+
body,
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
exports.serializeAws_restJson1DeleteContactFlowCommand = serializeAws_restJson1DeleteContactFlowCommand;
|
|
829
|
+
const serializeAws_restJson1DeleteContactFlowModuleCommand = async (input, context) => {
|
|
830
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
831
|
+
const headers = {};
|
|
832
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
833
|
+
"/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
|
|
834
|
+
if (input.InstanceId !== undefined) {
|
|
835
|
+
const labelValue = input.InstanceId;
|
|
836
|
+
if (labelValue.length <= 0) {
|
|
837
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
838
|
+
}
|
|
839
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
840
|
+
}
|
|
841
|
+
else {
|
|
842
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
843
|
+
}
|
|
844
|
+
if (input.ContactFlowModuleId !== undefined) {
|
|
845
|
+
const labelValue = input.ContactFlowModuleId;
|
|
846
|
+
if (labelValue.length <= 0) {
|
|
847
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
|
|
848
|
+
}
|
|
849
|
+
resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
850
|
+
}
|
|
851
|
+
else {
|
|
852
|
+
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
853
|
+
}
|
|
854
|
+
let body;
|
|
855
|
+
return new protocol_http_1.HttpRequest({
|
|
856
|
+
protocol,
|
|
857
|
+
hostname,
|
|
858
|
+
port,
|
|
859
|
+
method: "DELETE",
|
|
860
|
+
headers,
|
|
861
|
+
path: resolvedPath,
|
|
862
|
+
body,
|
|
863
|
+
});
|
|
864
|
+
};
|
|
865
|
+
exports.serializeAws_restJson1DeleteContactFlowModuleCommand = serializeAws_restJson1DeleteContactFlowModuleCommand;
|
|
755
866
|
const serializeAws_restJson1DeleteHoursOfOperationCommand = async (input, context) => {
|
|
756
867
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
757
868
|
const headers = {};
|
|
@@ -1156,6 +1267,43 @@ const serializeAws_restJson1DescribeContactFlowCommand = async (input, context)
|
|
|
1156
1267
|
});
|
|
1157
1268
|
};
|
|
1158
1269
|
exports.serializeAws_restJson1DescribeContactFlowCommand = serializeAws_restJson1DescribeContactFlowCommand;
|
|
1270
|
+
const serializeAws_restJson1DescribeContactFlowModuleCommand = async (input, context) => {
|
|
1271
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1272
|
+
const headers = {};
|
|
1273
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1274
|
+
"/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
|
|
1275
|
+
if (input.InstanceId !== undefined) {
|
|
1276
|
+
const labelValue = input.InstanceId;
|
|
1277
|
+
if (labelValue.length <= 0) {
|
|
1278
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
1279
|
+
}
|
|
1280
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
1284
|
+
}
|
|
1285
|
+
if (input.ContactFlowModuleId !== undefined) {
|
|
1286
|
+
const labelValue = input.ContactFlowModuleId;
|
|
1287
|
+
if (labelValue.length <= 0) {
|
|
1288
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
|
|
1289
|
+
}
|
|
1290
|
+
resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1291
|
+
}
|
|
1292
|
+
else {
|
|
1293
|
+
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
1294
|
+
}
|
|
1295
|
+
let body;
|
|
1296
|
+
return new protocol_http_1.HttpRequest({
|
|
1297
|
+
protocol,
|
|
1298
|
+
hostname,
|
|
1299
|
+
port,
|
|
1300
|
+
method: "GET",
|
|
1301
|
+
headers,
|
|
1302
|
+
path: resolvedPath,
|
|
1303
|
+
body,
|
|
1304
|
+
});
|
|
1305
|
+
};
|
|
1306
|
+
exports.serializeAws_restJson1DescribeContactFlowModuleCommand = serializeAws_restJson1DescribeContactFlowModuleCommand;
|
|
1159
1307
|
const serializeAws_restJson1DescribeHoursOfOperationCommand = async (input, context) => {
|
|
1160
1308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1161
1309
|
const headers = {};
|
|
@@ -2080,6 +2228,39 @@ const serializeAws_restJson1ListBotsCommand = async (input, context) => {
|
|
|
2080
2228
|
});
|
|
2081
2229
|
};
|
|
2082
2230
|
exports.serializeAws_restJson1ListBotsCommand = serializeAws_restJson1ListBotsCommand;
|
|
2231
|
+
const serializeAws_restJson1ListContactFlowModulesCommand = async (input, context) => {
|
|
2232
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2233
|
+
const headers = {};
|
|
2234
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2235
|
+
"/contact-flow-modules-summary/{InstanceId}";
|
|
2236
|
+
if (input.InstanceId !== undefined) {
|
|
2237
|
+
const labelValue = input.InstanceId;
|
|
2238
|
+
if (labelValue.length <= 0) {
|
|
2239
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
2240
|
+
}
|
|
2241
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2242
|
+
}
|
|
2243
|
+
else {
|
|
2244
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2245
|
+
}
|
|
2246
|
+
const query = {
|
|
2247
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
2248
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
2249
|
+
...(input.ContactFlowModuleState !== undefined && { state: input.ContactFlowModuleState }),
|
|
2250
|
+
};
|
|
2251
|
+
let body;
|
|
2252
|
+
return new protocol_http_1.HttpRequest({
|
|
2253
|
+
protocol,
|
|
2254
|
+
hostname,
|
|
2255
|
+
port,
|
|
2256
|
+
method: "GET",
|
|
2257
|
+
headers,
|
|
2258
|
+
path: resolvedPath,
|
|
2259
|
+
query,
|
|
2260
|
+
body,
|
|
2261
|
+
});
|
|
2262
|
+
};
|
|
2263
|
+
exports.serializeAws_restJson1ListContactFlowModulesCommand = serializeAws_restJson1ListContactFlowModulesCommand;
|
|
2083
2264
|
const serializeAws_restJson1ListContactFlowsCommand = async (input, context) => {
|
|
2084
2265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2085
2266
|
const headers = {};
|
|
@@ -3349,13 +3530,13 @@ const serializeAws_restJson1UpdateContactFlowContentCommand = async (input, cont
|
|
|
3349
3530
|
});
|
|
3350
3531
|
};
|
|
3351
3532
|
exports.serializeAws_restJson1UpdateContactFlowContentCommand = serializeAws_restJson1UpdateContactFlowContentCommand;
|
|
3352
|
-
const
|
|
3533
|
+
const serializeAws_restJson1UpdateContactFlowMetadataCommand = async (input, context) => {
|
|
3353
3534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3354
3535
|
const headers = {
|
|
3355
3536
|
"content-type": "application/json",
|
|
3356
3537
|
};
|
|
3357
3538
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3358
|
-
"/contact-flows/{InstanceId}/{ContactFlowId}/
|
|
3539
|
+
"/contact-flows/{InstanceId}/{ContactFlowId}/metadata";
|
|
3359
3540
|
if (input.InstanceId !== undefined) {
|
|
3360
3541
|
const labelValue = input.InstanceId;
|
|
3361
3542
|
if (labelValue.length <= 0) {
|
|
@@ -3378,6 +3559,8 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
|
|
|
3378
3559
|
}
|
|
3379
3560
|
let body;
|
|
3380
3561
|
body = JSON.stringify({
|
|
3562
|
+
...(input.ContactFlowState !== undefined &&
|
|
3563
|
+
input.ContactFlowState !== null && { ContactFlowState: input.ContactFlowState }),
|
|
3381
3564
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
3382
3565
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3383
3566
|
});
|
|
@@ -3391,19 +3574,37 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
|
|
|
3391
3574
|
body,
|
|
3392
3575
|
});
|
|
3393
3576
|
};
|
|
3394
|
-
exports.
|
|
3395
|
-
const
|
|
3577
|
+
exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = serializeAws_restJson1UpdateContactFlowMetadataCommand;
|
|
3578
|
+
const serializeAws_restJson1UpdateContactFlowModuleContentCommand = async (input, context) => {
|
|
3396
3579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3397
3580
|
const headers = {
|
|
3398
3581
|
"content-type": "application/json",
|
|
3399
3582
|
};
|
|
3400
|
-
|
|
3583
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3584
|
+
"/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/content";
|
|
3585
|
+
if (input.InstanceId !== undefined) {
|
|
3586
|
+
const labelValue = input.InstanceId;
|
|
3587
|
+
if (labelValue.length <= 0) {
|
|
3588
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3589
|
+
}
|
|
3590
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3591
|
+
}
|
|
3592
|
+
else {
|
|
3593
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3594
|
+
}
|
|
3595
|
+
if (input.ContactFlowModuleId !== undefined) {
|
|
3596
|
+
const labelValue = input.ContactFlowModuleId;
|
|
3597
|
+
if (labelValue.length <= 0) {
|
|
3598
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
|
|
3599
|
+
}
|
|
3600
|
+
resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3601
|
+
}
|
|
3602
|
+
else {
|
|
3603
|
+
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
3604
|
+
}
|
|
3401
3605
|
let body;
|
|
3402
3606
|
body = JSON.stringify({
|
|
3403
|
-
...(input.
|
|
3404
|
-
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
|
|
3405
|
-
...(input.ScheduledTime !== undefined &&
|
|
3406
|
-
input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
3607
|
+
...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
|
|
3407
3608
|
});
|
|
3408
3609
|
return new protocol_http_1.HttpRequest({
|
|
3409
3610
|
protocol,
|
|
@@ -3415,14 +3616,14 @@ const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context
|
|
|
3415
3616
|
body,
|
|
3416
3617
|
});
|
|
3417
3618
|
};
|
|
3418
|
-
exports.
|
|
3419
|
-
const
|
|
3619
|
+
exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = serializeAws_restJson1UpdateContactFlowModuleContentCommand;
|
|
3620
|
+
const serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (input, context) => {
|
|
3420
3621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3421
3622
|
const headers = {
|
|
3422
3623
|
"content-type": "application/json",
|
|
3423
3624
|
};
|
|
3424
3625
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3425
|
-
"/
|
|
3626
|
+
"/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/metadata";
|
|
3426
3627
|
if (input.InstanceId !== undefined) {
|
|
3427
3628
|
const labelValue = input.InstanceId;
|
|
3428
3629
|
if (labelValue.length <= 0) {
|
|
@@ -3433,23 +3634,21 @@ const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, contex
|
|
|
3433
3634
|
else {
|
|
3434
3635
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3435
3636
|
}
|
|
3436
|
-
if (input.
|
|
3437
|
-
const labelValue = input.
|
|
3637
|
+
if (input.ContactFlowModuleId !== undefined) {
|
|
3638
|
+
const labelValue = input.ContactFlowModuleId;
|
|
3438
3639
|
if (labelValue.length <= 0) {
|
|
3439
|
-
throw new Error("Empty value provided for input HTTP label:
|
|
3640
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
|
|
3440
3641
|
}
|
|
3441
|
-
resolvedPath = resolvedPath.replace("{
|
|
3642
|
+
resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3442
3643
|
}
|
|
3443
3644
|
else {
|
|
3444
|
-
throw new Error("No value provided for input HTTP label:
|
|
3645
|
+
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
3445
3646
|
}
|
|
3446
3647
|
let body;
|
|
3447
3648
|
body = JSON.stringify({
|
|
3448
|
-
...(input.Config !== undefined &&
|
|
3449
|
-
input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
|
|
3450
3649
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
3451
3650
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3452
|
-
...(input.
|
|
3651
|
+
...(input.State !== undefined && input.State !== null && { State: input.State }),
|
|
3453
3652
|
});
|
|
3454
3653
|
return new protocol_http_1.HttpRequest({
|
|
3455
3654
|
protocol,
|
|
@@ -3461,14 +3660,14 @@ const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, contex
|
|
|
3461
3660
|
body,
|
|
3462
3661
|
});
|
|
3463
3662
|
};
|
|
3464
|
-
exports.
|
|
3465
|
-
const
|
|
3663
|
+
exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = serializeAws_restJson1UpdateContactFlowModuleMetadataCommand;
|
|
3664
|
+
const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context) => {
|
|
3466
3665
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3467
3666
|
const headers = {
|
|
3468
3667
|
"content-type": "application/json",
|
|
3469
3668
|
};
|
|
3470
3669
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3471
|
-
"/
|
|
3670
|
+
"/contact-flows/{InstanceId}/{ContactFlowId}/name";
|
|
3472
3671
|
if (input.InstanceId !== undefined) {
|
|
3473
3672
|
const labelValue = input.InstanceId;
|
|
3474
3673
|
if (labelValue.length <= 0) {
|
|
@@ -3479,19 +3678,20 @@ const serializeAws_restJson1UpdateInstanceAttributeCommand = async (input, conte
|
|
|
3479
3678
|
else {
|
|
3480
3679
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3481
3680
|
}
|
|
3482
|
-
if (input.
|
|
3483
|
-
const labelValue = input.
|
|
3681
|
+
if (input.ContactFlowId !== undefined) {
|
|
3682
|
+
const labelValue = input.ContactFlowId;
|
|
3484
3683
|
if (labelValue.length <= 0) {
|
|
3485
|
-
throw new Error("Empty value provided for input HTTP label:
|
|
3684
|
+
throw new Error("Empty value provided for input HTTP label: ContactFlowId.");
|
|
3486
3685
|
}
|
|
3487
|
-
resolvedPath = resolvedPath.replace("{
|
|
3686
|
+
resolvedPath = resolvedPath.replace("{ContactFlowId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3488
3687
|
}
|
|
3489
3688
|
else {
|
|
3490
|
-
throw new Error("No value provided for input HTTP label:
|
|
3689
|
+
throw new Error("No value provided for input HTTP label: ContactFlowId.");
|
|
3491
3690
|
}
|
|
3492
3691
|
let body;
|
|
3493
3692
|
body = JSON.stringify({
|
|
3494
|
-
...(input.
|
|
3693
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
3694
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3495
3695
|
});
|
|
3496
3696
|
return new protocol_http_1.HttpRequest({
|
|
3497
3697
|
protocol,
|
|
@@ -3503,43 +3703,19 @@ const serializeAws_restJson1UpdateInstanceAttributeCommand = async (input, conte
|
|
|
3503
3703
|
body,
|
|
3504
3704
|
});
|
|
3505
3705
|
};
|
|
3506
|
-
exports.
|
|
3507
|
-
const
|
|
3706
|
+
exports.serializeAws_restJson1UpdateContactFlowNameCommand = serializeAws_restJson1UpdateContactFlowNameCommand;
|
|
3707
|
+
const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context) => {
|
|
3508
3708
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3509
3709
|
const headers = {
|
|
3510
3710
|
"content-type": "application/json",
|
|
3511
3711
|
};
|
|
3512
|
-
|
|
3513
|
-
"/instance/{InstanceId}/storage-config/{AssociationId}";
|
|
3514
|
-
if (input.InstanceId !== undefined) {
|
|
3515
|
-
const labelValue = input.InstanceId;
|
|
3516
|
-
if (labelValue.length <= 0) {
|
|
3517
|
-
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3518
|
-
}
|
|
3519
|
-
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3520
|
-
}
|
|
3521
|
-
else {
|
|
3522
|
-
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3523
|
-
}
|
|
3524
|
-
if (input.AssociationId !== undefined) {
|
|
3525
|
-
const labelValue = input.AssociationId;
|
|
3526
|
-
if (labelValue.length <= 0) {
|
|
3527
|
-
throw new Error("Empty value provided for input HTTP label: AssociationId.");
|
|
3528
|
-
}
|
|
3529
|
-
resolvedPath = resolvedPath.replace("{AssociationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3530
|
-
}
|
|
3531
|
-
else {
|
|
3532
|
-
throw new Error("No value provided for input HTTP label: AssociationId.");
|
|
3533
|
-
}
|
|
3534
|
-
const query = {
|
|
3535
|
-
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
3536
|
-
};
|
|
3712
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule";
|
|
3537
3713
|
let body;
|
|
3538
3714
|
body = JSON.stringify({
|
|
3539
|
-
...(input.
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3715
|
+
...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
|
|
3716
|
+
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
|
|
3717
|
+
...(input.ScheduledTime !== undefined &&
|
|
3718
|
+
input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
3543
3719
|
});
|
|
3544
3720
|
return new protocol_http_1.HttpRequest({
|
|
3545
3721
|
protocol,
|
|
@@ -3548,18 +3724,154 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
|
|
|
3548
3724
|
method: "POST",
|
|
3549
3725
|
headers,
|
|
3550
3726
|
path: resolvedPath,
|
|
3551
|
-
query,
|
|
3552
3727
|
body,
|
|
3553
3728
|
});
|
|
3554
3729
|
};
|
|
3555
|
-
exports.
|
|
3556
|
-
const
|
|
3730
|
+
exports.serializeAws_restJson1UpdateContactScheduleCommand = serializeAws_restJson1UpdateContactScheduleCommand;
|
|
3731
|
+
const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, context) => {
|
|
3557
3732
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3558
3733
|
const headers = {
|
|
3559
3734
|
"content-type": "application/json",
|
|
3560
3735
|
};
|
|
3561
3736
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3562
|
-
"/
|
|
3737
|
+
"/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
|
|
3738
|
+
if (input.InstanceId !== undefined) {
|
|
3739
|
+
const labelValue = input.InstanceId;
|
|
3740
|
+
if (labelValue.length <= 0) {
|
|
3741
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3742
|
+
}
|
|
3743
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3744
|
+
}
|
|
3745
|
+
else {
|
|
3746
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3747
|
+
}
|
|
3748
|
+
if (input.HoursOfOperationId !== undefined) {
|
|
3749
|
+
const labelValue = input.HoursOfOperationId;
|
|
3750
|
+
if (labelValue.length <= 0) {
|
|
3751
|
+
throw new Error("Empty value provided for input HTTP label: HoursOfOperationId.");
|
|
3752
|
+
}
|
|
3753
|
+
resolvedPath = resolvedPath.replace("{HoursOfOperationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3754
|
+
}
|
|
3755
|
+
else {
|
|
3756
|
+
throw new Error("No value provided for input HTTP label: HoursOfOperationId.");
|
|
3757
|
+
}
|
|
3758
|
+
let body;
|
|
3759
|
+
body = JSON.stringify({
|
|
3760
|
+
...(input.Config !== undefined &&
|
|
3761
|
+
input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
|
|
3762
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
3763
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3764
|
+
...(input.TimeZone !== undefined && input.TimeZone !== null && { TimeZone: input.TimeZone }),
|
|
3765
|
+
});
|
|
3766
|
+
return new protocol_http_1.HttpRequest({
|
|
3767
|
+
protocol,
|
|
3768
|
+
hostname,
|
|
3769
|
+
port,
|
|
3770
|
+
method: "POST",
|
|
3771
|
+
headers,
|
|
3772
|
+
path: resolvedPath,
|
|
3773
|
+
body,
|
|
3774
|
+
});
|
|
3775
|
+
};
|
|
3776
|
+
exports.serializeAws_restJson1UpdateHoursOfOperationCommand = serializeAws_restJson1UpdateHoursOfOperationCommand;
|
|
3777
|
+
const serializeAws_restJson1UpdateInstanceAttributeCommand = async (input, context) => {
|
|
3778
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3779
|
+
const headers = {
|
|
3780
|
+
"content-type": "application/json",
|
|
3781
|
+
};
|
|
3782
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3783
|
+
"/instance/{InstanceId}/attribute/{AttributeType}";
|
|
3784
|
+
if (input.InstanceId !== undefined) {
|
|
3785
|
+
const labelValue = input.InstanceId;
|
|
3786
|
+
if (labelValue.length <= 0) {
|
|
3787
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3788
|
+
}
|
|
3789
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3790
|
+
}
|
|
3791
|
+
else {
|
|
3792
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3793
|
+
}
|
|
3794
|
+
if (input.AttributeType !== undefined) {
|
|
3795
|
+
const labelValue = input.AttributeType;
|
|
3796
|
+
if (labelValue.length <= 0) {
|
|
3797
|
+
throw new Error("Empty value provided for input HTTP label: AttributeType.");
|
|
3798
|
+
}
|
|
3799
|
+
resolvedPath = resolvedPath.replace("{AttributeType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3800
|
+
}
|
|
3801
|
+
else {
|
|
3802
|
+
throw new Error("No value provided for input HTTP label: AttributeType.");
|
|
3803
|
+
}
|
|
3804
|
+
let body;
|
|
3805
|
+
body = JSON.stringify({
|
|
3806
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3807
|
+
});
|
|
3808
|
+
return new protocol_http_1.HttpRequest({
|
|
3809
|
+
protocol,
|
|
3810
|
+
hostname,
|
|
3811
|
+
port,
|
|
3812
|
+
method: "POST",
|
|
3813
|
+
headers,
|
|
3814
|
+
path: resolvedPath,
|
|
3815
|
+
body,
|
|
3816
|
+
});
|
|
3817
|
+
};
|
|
3818
|
+
exports.serializeAws_restJson1UpdateInstanceAttributeCommand = serializeAws_restJson1UpdateInstanceAttributeCommand;
|
|
3819
|
+
const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, context) => {
|
|
3820
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3821
|
+
const headers = {
|
|
3822
|
+
"content-type": "application/json",
|
|
3823
|
+
};
|
|
3824
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3825
|
+
"/instance/{InstanceId}/storage-config/{AssociationId}";
|
|
3826
|
+
if (input.InstanceId !== undefined) {
|
|
3827
|
+
const labelValue = input.InstanceId;
|
|
3828
|
+
if (labelValue.length <= 0) {
|
|
3829
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3830
|
+
}
|
|
3831
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3832
|
+
}
|
|
3833
|
+
else {
|
|
3834
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3835
|
+
}
|
|
3836
|
+
if (input.AssociationId !== undefined) {
|
|
3837
|
+
const labelValue = input.AssociationId;
|
|
3838
|
+
if (labelValue.length <= 0) {
|
|
3839
|
+
throw new Error("Empty value provided for input HTTP label: AssociationId.");
|
|
3840
|
+
}
|
|
3841
|
+
resolvedPath = resolvedPath.replace("{AssociationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3842
|
+
}
|
|
3843
|
+
else {
|
|
3844
|
+
throw new Error("No value provided for input HTTP label: AssociationId.");
|
|
3845
|
+
}
|
|
3846
|
+
const query = {
|
|
3847
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
3848
|
+
};
|
|
3849
|
+
let body;
|
|
3850
|
+
body = JSON.stringify({
|
|
3851
|
+
...(input.StorageConfig !== undefined &&
|
|
3852
|
+
input.StorageConfig !== null && {
|
|
3853
|
+
StorageConfig: serializeAws_restJson1InstanceStorageConfig(input.StorageConfig, context),
|
|
3854
|
+
}),
|
|
3855
|
+
});
|
|
3856
|
+
return new protocol_http_1.HttpRequest({
|
|
3857
|
+
protocol,
|
|
3858
|
+
hostname,
|
|
3859
|
+
port,
|
|
3860
|
+
method: "POST",
|
|
3861
|
+
headers,
|
|
3862
|
+
path: resolvedPath,
|
|
3863
|
+
query,
|
|
3864
|
+
body,
|
|
3865
|
+
});
|
|
3866
|
+
};
|
|
3867
|
+
exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = serializeAws_restJson1UpdateInstanceStorageConfigCommand;
|
|
3868
|
+
const serializeAws_restJson1UpdateQueueHoursOfOperationCommand = async (input, context) => {
|
|
3869
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3870
|
+
const headers = {
|
|
3871
|
+
"content-type": "application/json",
|
|
3872
|
+
};
|
|
3873
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3874
|
+
"/queues/{InstanceId}/{QueueId}/hours-of-operation";
|
|
3563
3875
|
if (input.InstanceId !== undefined) {
|
|
3564
3876
|
const labelValue = input.InstanceId;
|
|
3565
3877
|
if (labelValue.length <= 0) {
|
|
@@ -5287,6 +5599,130 @@ const deserializeAws_restJson1CreateContactFlowCommandError = async (output, con
|
|
|
5287
5599
|
delete response.Message;
|
|
5288
5600
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5289
5601
|
};
|
|
5602
|
+
const deserializeAws_restJson1CreateContactFlowModuleCommand = async (output, context) => {
|
|
5603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5604
|
+
return deserializeAws_restJson1CreateContactFlowModuleCommandError(output, context);
|
|
5605
|
+
}
|
|
5606
|
+
const contents = {
|
|
5607
|
+
$metadata: deserializeMetadata(output),
|
|
5608
|
+
Arn: undefined,
|
|
5609
|
+
Id: undefined,
|
|
5610
|
+
};
|
|
5611
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5612
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
5613
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
5614
|
+
}
|
|
5615
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
5616
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
5617
|
+
}
|
|
5618
|
+
return Promise.resolve(contents);
|
|
5619
|
+
};
|
|
5620
|
+
exports.deserializeAws_restJson1CreateContactFlowModuleCommand = deserializeAws_restJson1CreateContactFlowModuleCommand;
|
|
5621
|
+
const deserializeAws_restJson1CreateContactFlowModuleCommandError = async (output, context) => {
|
|
5622
|
+
const parsedOutput = {
|
|
5623
|
+
...output,
|
|
5624
|
+
body: await parseBody(output.body, context),
|
|
5625
|
+
};
|
|
5626
|
+
let response;
|
|
5627
|
+
let errorCode = "UnknownError";
|
|
5628
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5629
|
+
switch (errorCode) {
|
|
5630
|
+
case "AccessDeniedException":
|
|
5631
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5632
|
+
response = {
|
|
5633
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5634
|
+
name: errorCode,
|
|
5635
|
+
$metadata: deserializeMetadata(output),
|
|
5636
|
+
};
|
|
5637
|
+
break;
|
|
5638
|
+
case "DuplicateResourceException":
|
|
5639
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
5640
|
+
response = {
|
|
5641
|
+
...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
|
|
5642
|
+
name: errorCode,
|
|
5643
|
+
$metadata: deserializeMetadata(output),
|
|
5644
|
+
};
|
|
5645
|
+
break;
|
|
5646
|
+
case "IdempotencyException":
|
|
5647
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
5648
|
+
response = {
|
|
5649
|
+
...(await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context)),
|
|
5650
|
+
name: errorCode,
|
|
5651
|
+
$metadata: deserializeMetadata(output),
|
|
5652
|
+
};
|
|
5653
|
+
break;
|
|
5654
|
+
case "InternalServiceException":
|
|
5655
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5656
|
+
response = {
|
|
5657
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
5658
|
+
name: errorCode,
|
|
5659
|
+
$metadata: deserializeMetadata(output),
|
|
5660
|
+
};
|
|
5661
|
+
break;
|
|
5662
|
+
case "InvalidContactFlowModuleException":
|
|
5663
|
+
case "com.amazonaws.connect#InvalidContactFlowModuleException":
|
|
5664
|
+
response = {
|
|
5665
|
+
...(await deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse(parsedOutput, context)),
|
|
5666
|
+
name: errorCode,
|
|
5667
|
+
$metadata: deserializeMetadata(output),
|
|
5668
|
+
};
|
|
5669
|
+
break;
|
|
5670
|
+
case "InvalidParameterException":
|
|
5671
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5672
|
+
response = {
|
|
5673
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
5674
|
+
name: errorCode,
|
|
5675
|
+
$metadata: deserializeMetadata(output),
|
|
5676
|
+
};
|
|
5677
|
+
break;
|
|
5678
|
+
case "InvalidRequestException":
|
|
5679
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5680
|
+
response = {
|
|
5681
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
5682
|
+
name: errorCode,
|
|
5683
|
+
$metadata: deserializeMetadata(output),
|
|
5684
|
+
};
|
|
5685
|
+
break;
|
|
5686
|
+
case "LimitExceededException":
|
|
5687
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
5688
|
+
response = {
|
|
5689
|
+
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
5690
|
+
name: errorCode,
|
|
5691
|
+
$metadata: deserializeMetadata(output),
|
|
5692
|
+
};
|
|
5693
|
+
break;
|
|
5694
|
+
case "ResourceNotFoundException":
|
|
5695
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5696
|
+
response = {
|
|
5697
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5698
|
+
name: errorCode,
|
|
5699
|
+
$metadata: deserializeMetadata(output),
|
|
5700
|
+
};
|
|
5701
|
+
break;
|
|
5702
|
+
case "ThrottlingException":
|
|
5703
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5704
|
+
response = {
|
|
5705
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5706
|
+
name: errorCode,
|
|
5707
|
+
$metadata: deserializeMetadata(output),
|
|
5708
|
+
};
|
|
5709
|
+
break;
|
|
5710
|
+
default:
|
|
5711
|
+
const parsedBody = parsedOutput.body;
|
|
5712
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5713
|
+
response = {
|
|
5714
|
+
...parsedBody,
|
|
5715
|
+
name: `${errorCode}`,
|
|
5716
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5717
|
+
$fault: "client",
|
|
5718
|
+
$metadata: deserializeMetadata(output),
|
|
5719
|
+
};
|
|
5720
|
+
}
|
|
5721
|
+
const message = response.message || response.Message || errorCode;
|
|
5722
|
+
response.message = message;
|
|
5723
|
+
delete response.Message;
|
|
5724
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5725
|
+
};
|
|
5290
5726
|
const deserializeAws_restJson1CreateHoursOfOperationCommand = async (output, context) => {
|
|
5291
5727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5292
5728
|
return deserializeAws_restJson1CreateHoursOfOperationCommandError(output, context);
|
|
@@ -6239,9 +6675,9 @@ const deserializeAws_restJson1CreateUserHierarchyGroupCommandError = async (outp
|
|
|
6239
6675
|
delete response.Message;
|
|
6240
6676
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
6241
6677
|
};
|
|
6242
|
-
const
|
|
6678
|
+
const deserializeAws_restJson1DeleteContactFlowCommand = async (output, context) => {
|
|
6243
6679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6244
|
-
return
|
|
6680
|
+
return deserializeAws_restJson1DeleteContactFlowCommandError(output, context);
|
|
6245
6681
|
}
|
|
6246
6682
|
const contents = {
|
|
6247
6683
|
$metadata: deserializeMetadata(output),
|
|
@@ -6249,8 +6685,8 @@ const deserializeAws_restJson1DeleteHoursOfOperationCommand = async (output, con
|
|
|
6249
6685
|
await collectBody(output.body, context);
|
|
6250
6686
|
return Promise.resolve(contents);
|
|
6251
6687
|
};
|
|
6252
|
-
exports.
|
|
6253
|
-
const
|
|
6688
|
+
exports.deserializeAws_restJson1DeleteContactFlowCommand = deserializeAws_restJson1DeleteContactFlowCommand;
|
|
6689
|
+
const deserializeAws_restJson1DeleteContactFlowCommandError = async (output, context) => {
|
|
6254
6690
|
const parsedOutput = {
|
|
6255
6691
|
...output,
|
|
6256
6692
|
body: await parseBody(output.body, context),
|
|
@@ -6259,7 +6695,175 @@ const deserializeAws_restJson1DeleteHoursOfOperationCommandError = async (output
|
|
|
6259
6695
|
let errorCode = "UnknownError";
|
|
6260
6696
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6261
6697
|
switch (errorCode) {
|
|
6262
|
-
case "
|
|
6698
|
+
case "AccessDeniedException":
|
|
6699
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
6700
|
+
response = {
|
|
6701
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6702
|
+
name: errorCode,
|
|
6703
|
+
$metadata: deserializeMetadata(output),
|
|
6704
|
+
};
|
|
6705
|
+
break;
|
|
6706
|
+
case "InternalServiceException":
|
|
6707
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6708
|
+
response = {
|
|
6709
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
6710
|
+
name: errorCode,
|
|
6711
|
+
$metadata: deserializeMetadata(output),
|
|
6712
|
+
};
|
|
6713
|
+
break;
|
|
6714
|
+
case "InvalidParameterException":
|
|
6715
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6716
|
+
response = {
|
|
6717
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
6718
|
+
name: errorCode,
|
|
6719
|
+
$metadata: deserializeMetadata(output),
|
|
6720
|
+
};
|
|
6721
|
+
break;
|
|
6722
|
+
case "InvalidRequestException":
|
|
6723
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
6724
|
+
response = {
|
|
6725
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6726
|
+
name: errorCode,
|
|
6727
|
+
$metadata: deserializeMetadata(output),
|
|
6728
|
+
};
|
|
6729
|
+
break;
|
|
6730
|
+
case "ResourceNotFoundException":
|
|
6731
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6732
|
+
response = {
|
|
6733
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6734
|
+
name: errorCode,
|
|
6735
|
+
$metadata: deserializeMetadata(output),
|
|
6736
|
+
};
|
|
6737
|
+
break;
|
|
6738
|
+
case "ThrottlingException":
|
|
6739
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
6740
|
+
response = {
|
|
6741
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6742
|
+
name: errorCode,
|
|
6743
|
+
$metadata: deserializeMetadata(output),
|
|
6744
|
+
};
|
|
6745
|
+
break;
|
|
6746
|
+
default:
|
|
6747
|
+
const parsedBody = parsedOutput.body;
|
|
6748
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6749
|
+
response = {
|
|
6750
|
+
...parsedBody,
|
|
6751
|
+
name: `${errorCode}`,
|
|
6752
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6753
|
+
$fault: "client",
|
|
6754
|
+
$metadata: deserializeMetadata(output),
|
|
6755
|
+
};
|
|
6756
|
+
}
|
|
6757
|
+
const message = response.message || response.Message || errorCode;
|
|
6758
|
+
response.message = message;
|
|
6759
|
+
delete response.Message;
|
|
6760
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
6761
|
+
};
|
|
6762
|
+
const deserializeAws_restJson1DeleteContactFlowModuleCommand = async (output, context) => {
|
|
6763
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6764
|
+
return deserializeAws_restJson1DeleteContactFlowModuleCommandError(output, context);
|
|
6765
|
+
}
|
|
6766
|
+
const contents = {
|
|
6767
|
+
$metadata: deserializeMetadata(output),
|
|
6768
|
+
};
|
|
6769
|
+
await collectBody(output.body, context);
|
|
6770
|
+
return Promise.resolve(contents);
|
|
6771
|
+
};
|
|
6772
|
+
exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = deserializeAws_restJson1DeleteContactFlowModuleCommand;
|
|
6773
|
+
const deserializeAws_restJson1DeleteContactFlowModuleCommandError = async (output, context) => {
|
|
6774
|
+
const parsedOutput = {
|
|
6775
|
+
...output,
|
|
6776
|
+
body: await parseBody(output.body, context),
|
|
6777
|
+
};
|
|
6778
|
+
let response;
|
|
6779
|
+
let errorCode = "UnknownError";
|
|
6780
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6781
|
+
switch (errorCode) {
|
|
6782
|
+
case "AccessDeniedException":
|
|
6783
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
6784
|
+
response = {
|
|
6785
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6786
|
+
name: errorCode,
|
|
6787
|
+
$metadata: deserializeMetadata(output),
|
|
6788
|
+
};
|
|
6789
|
+
break;
|
|
6790
|
+
case "InternalServiceException":
|
|
6791
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6792
|
+
response = {
|
|
6793
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
6794
|
+
name: errorCode,
|
|
6795
|
+
$metadata: deserializeMetadata(output),
|
|
6796
|
+
};
|
|
6797
|
+
break;
|
|
6798
|
+
case "InvalidParameterException":
|
|
6799
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6800
|
+
response = {
|
|
6801
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
6802
|
+
name: errorCode,
|
|
6803
|
+
$metadata: deserializeMetadata(output),
|
|
6804
|
+
};
|
|
6805
|
+
break;
|
|
6806
|
+
case "InvalidRequestException":
|
|
6807
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
6808
|
+
response = {
|
|
6809
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6810
|
+
name: errorCode,
|
|
6811
|
+
$metadata: deserializeMetadata(output),
|
|
6812
|
+
};
|
|
6813
|
+
break;
|
|
6814
|
+
case "ResourceNotFoundException":
|
|
6815
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6816
|
+
response = {
|
|
6817
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6818
|
+
name: errorCode,
|
|
6819
|
+
$metadata: deserializeMetadata(output),
|
|
6820
|
+
};
|
|
6821
|
+
break;
|
|
6822
|
+
case "ThrottlingException":
|
|
6823
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
6824
|
+
response = {
|
|
6825
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6826
|
+
name: errorCode,
|
|
6827
|
+
$metadata: deserializeMetadata(output),
|
|
6828
|
+
};
|
|
6829
|
+
break;
|
|
6830
|
+
default:
|
|
6831
|
+
const parsedBody = parsedOutput.body;
|
|
6832
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6833
|
+
response = {
|
|
6834
|
+
...parsedBody,
|
|
6835
|
+
name: `${errorCode}`,
|
|
6836
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6837
|
+
$fault: "client",
|
|
6838
|
+
$metadata: deserializeMetadata(output),
|
|
6839
|
+
};
|
|
6840
|
+
}
|
|
6841
|
+
const message = response.message || response.Message || errorCode;
|
|
6842
|
+
response.message = message;
|
|
6843
|
+
delete response.Message;
|
|
6844
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
6845
|
+
};
|
|
6846
|
+
const deserializeAws_restJson1DeleteHoursOfOperationCommand = async (output, context) => {
|
|
6847
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6848
|
+
return deserializeAws_restJson1DeleteHoursOfOperationCommandError(output, context);
|
|
6849
|
+
}
|
|
6850
|
+
const contents = {
|
|
6851
|
+
$metadata: deserializeMetadata(output),
|
|
6852
|
+
};
|
|
6853
|
+
await collectBody(output.body, context);
|
|
6854
|
+
return Promise.resolve(contents);
|
|
6855
|
+
};
|
|
6856
|
+
exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = deserializeAws_restJson1DeleteHoursOfOperationCommand;
|
|
6857
|
+
const deserializeAws_restJson1DeleteHoursOfOperationCommandError = async (output, context) => {
|
|
6858
|
+
const parsedOutput = {
|
|
6859
|
+
...output,
|
|
6860
|
+
body: await parseBody(output.body, context),
|
|
6861
|
+
};
|
|
6862
|
+
let response;
|
|
6863
|
+
let errorCode = "UnknownError";
|
|
6864
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6865
|
+
switch (errorCode) {
|
|
6866
|
+
case "InternalServiceException":
|
|
6263
6867
|
case "com.amazonaws.connect#InternalServiceException":
|
|
6264
6868
|
response = {
|
|
6265
6869
|
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
@@ -7087,6 +7691,94 @@ const deserializeAws_restJson1DescribeContactFlowCommandError = async (output, c
|
|
|
7087
7691
|
delete response.Message;
|
|
7088
7692
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7089
7693
|
};
|
|
7694
|
+
const deserializeAws_restJson1DescribeContactFlowModuleCommand = async (output, context) => {
|
|
7695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7696
|
+
return deserializeAws_restJson1DescribeContactFlowModuleCommandError(output, context);
|
|
7697
|
+
}
|
|
7698
|
+
const contents = {
|
|
7699
|
+
$metadata: deserializeMetadata(output),
|
|
7700
|
+
ContactFlowModule: undefined,
|
|
7701
|
+
};
|
|
7702
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7703
|
+
if (data.ContactFlowModule !== undefined && data.ContactFlowModule !== null) {
|
|
7704
|
+
contents.ContactFlowModule = deserializeAws_restJson1ContactFlowModule(data.ContactFlowModule, context);
|
|
7705
|
+
}
|
|
7706
|
+
return Promise.resolve(contents);
|
|
7707
|
+
};
|
|
7708
|
+
exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = deserializeAws_restJson1DescribeContactFlowModuleCommand;
|
|
7709
|
+
const deserializeAws_restJson1DescribeContactFlowModuleCommandError = async (output, context) => {
|
|
7710
|
+
const parsedOutput = {
|
|
7711
|
+
...output,
|
|
7712
|
+
body: await parseBody(output.body, context),
|
|
7713
|
+
};
|
|
7714
|
+
let response;
|
|
7715
|
+
let errorCode = "UnknownError";
|
|
7716
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7717
|
+
switch (errorCode) {
|
|
7718
|
+
case "AccessDeniedException":
|
|
7719
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
7720
|
+
response = {
|
|
7721
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
7722
|
+
name: errorCode,
|
|
7723
|
+
$metadata: deserializeMetadata(output),
|
|
7724
|
+
};
|
|
7725
|
+
break;
|
|
7726
|
+
case "InternalServiceException":
|
|
7727
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7728
|
+
response = {
|
|
7729
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
7730
|
+
name: errorCode,
|
|
7731
|
+
$metadata: deserializeMetadata(output),
|
|
7732
|
+
};
|
|
7733
|
+
break;
|
|
7734
|
+
case "InvalidParameterException":
|
|
7735
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7736
|
+
response = {
|
|
7737
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
7738
|
+
name: errorCode,
|
|
7739
|
+
$metadata: deserializeMetadata(output),
|
|
7740
|
+
};
|
|
7741
|
+
break;
|
|
7742
|
+
case "InvalidRequestException":
|
|
7743
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
7744
|
+
response = {
|
|
7745
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
7746
|
+
name: errorCode,
|
|
7747
|
+
$metadata: deserializeMetadata(output),
|
|
7748
|
+
};
|
|
7749
|
+
break;
|
|
7750
|
+
case "ResourceNotFoundException":
|
|
7751
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7752
|
+
response = {
|
|
7753
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
7754
|
+
name: errorCode,
|
|
7755
|
+
$metadata: deserializeMetadata(output),
|
|
7756
|
+
};
|
|
7757
|
+
break;
|
|
7758
|
+
case "ThrottlingException":
|
|
7759
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7760
|
+
response = {
|
|
7761
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
7762
|
+
name: errorCode,
|
|
7763
|
+
$metadata: deserializeMetadata(output),
|
|
7764
|
+
};
|
|
7765
|
+
break;
|
|
7766
|
+
default:
|
|
7767
|
+
const parsedBody = parsedOutput.body;
|
|
7768
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
7769
|
+
response = {
|
|
7770
|
+
...parsedBody,
|
|
7771
|
+
name: `${errorCode}`,
|
|
7772
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7773
|
+
$fault: "client",
|
|
7774
|
+
$metadata: deserializeMetadata(output),
|
|
7775
|
+
};
|
|
7776
|
+
}
|
|
7777
|
+
const message = response.message || response.Message || errorCode;
|
|
7778
|
+
response.message = message;
|
|
7779
|
+
delete response.Message;
|
|
7780
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
7781
|
+
};
|
|
7090
7782
|
const deserializeAws_restJson1DescribeHoursOfOperationCommand = async (output, context) => {
|
|
7091
7783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7092
7784
|
return deserializeAws_restJson1DescribeHoursOfOperationCommandError(output, context);
|
|
@@ -9119,26 +9811,26 @@ const deserializeAws_restJson1ListBotsCommandError = async (output, context) =>
|
|
|
9119
9811
|
delete response.Message;
|
|
9120
9812
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
9121
9813
|
};
|
|
9122
|
-
const
|
|
9814
|
+
const deserializeAws_restJson1ListContactFlowModulesCommand = async (output, context) => {
|
|
9123
9815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9124
|
-
return
|
|
9816
|
+
return deserializeAws_restJson1ListContactFlowModulesCommandError(output, context);
|
|
9125
9817
|
}
|
|
9126
9818
|
const contents = {
|
|
9127
9819
|
$metadata: deserializeMetadata(output),
|
|
9128
|
-
|
|
9820
|
+
ContactFlowModulesSummaryList: undefined,
|
|
9129
9821
|
NextToken: undefined,
|
|
9130
9822
|
};
|
|
9131
9823
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9132
|
-
if (data.
|
|
9133
|
-
contents.
|
|
9824
|
+
if (data.ContactFlowModulesSummaryList !== undefined && data.ContactFlowModulesSummaryList !== null) {
|
|
9825
|
+
contents.ContactFlowModulesSummaryList = deserializeAws_restJson1ContactFlowModulesSummaryList(data.ContactFlowModulesSummaryList, context);
|
|
9134
9826
|
}
|
|
9135
9827
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
9136
9828
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
9137
9829
|
}
|
|
9138
9830
|
return Promise.resolve(contents);
|
|
9139
9831
|
};
|
|
9140
|
-
exports.
|
|
9141
|
-
const
|
|
9832
|
+
exports.deserializeAws_restJson1ListContactFlowModulesCommand = deserializeAws_restJson1ListContactFlowModulesCommand;
|
|
9833
|
+
const deserializeAws_restJson1ListContactFlowModulesCommandError = async (output, context) => {
|
|
9142
9834
|
const parsedOutput = {
|
|
9143
9835
|
...output,
|
|
9144
9836
|
body: await parseBody(output.body, context),
|
|
@@ -9147,9 +9839,101 @@ const deserializeAws_restJson1ListContactFlowsCommandError = async (output, cont
|
|
|
9147
9839
|
let errorCode = "UnknownError";
|
|
9148
9840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9149
9841
|
switch (errorCode) {
|
|
9150
|
-
case "
|
|
9151
|
-
case "com.amazonaws.connect#
|
|
9152
|
-
response = {
|
|
9842
|
+
case "AccessDeniedException":
|
|
9843
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
9844
|
+
response = {
|
|
9845
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
9846
|
+
name: errorCode,
|
|
9847
|
+
$metadata: deserializeMetadata(output),
|
|
9848
|
+
};
|
|
9849
|
+
break;
|
|
9850
|
+
case "InternalServiceException":
|
|
9851
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9852
|
+
response = {
|
|
9853
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
9854
|
+
name: errorCode,
|
|
9855
|
+
$metadata: deserializeMetadata(output),
|
|
9856
|
+
};
|
|
9857
|
+
break;
|
|
9858
|
+
case "InvalidParameterException":
|
|
9859
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
9860
|
+
response = {
|
|
9861
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
9862
|
+
name: errorCode,
|
|
9863
|
+
$metadata: deserializeMetadata(output),
|
|
9864
|
+
};
|
|
9865
|
+
break;
|
|
9866
|
+
case "InvalidRequestException":
|
|
9867
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
9868
|
+
response = {
|
|
9869
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
9870
|
+
name: errorCode,
|
|
9871
|
+
$metadata: deserializeMetadata(output),
|
|
9872
|
+
};
|
|
9873
|
+
break;
|
|
9874
|
+
case "ResourceNotFoundException":
|
|
9875
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
9876
|
+
response = {
|
|
9877
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
9878
|
+
name: errorCode,
|
|
9879
|
+
$metadata: deserializeMetadata(output),
|
|
9880
|
+
};
|
|
9881
|
+
break;
|
|
9882
|
+
case "ThrottlingException":
|
|
9883
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
9884
|
+
response = {
|
|
9885
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
9886
|
+
name: errorCode,
|
|
9887
|
+
$metadata: deserializeMetadata(output),
|
|
9888
|
+
};
|
|
9889
|
+
break;
|
|
9890
|
+
default:
|
|
9891
|
+
const parsedBody = parsedOutput.body;
|
|
9892
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
9893
|
+
response = {
|
|
9894
|
+
...parsedBody,
|
|
9895
|
+
name: `${errorCode}`,
|
|
9896
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
9897
|
+
$fault: "client",
|
|
9898
|
+
$metadata: deserializeMetadata(output),
|
|
9899
|
+
};
|
|
9900
|
+
}
|
|
9901
|
+
const message = response.message || response.Message || errorCode;
|
|
9902
|
+
response.message = message;
|
|
9903
|
+
delete response.Message;
|
|
9904
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
9905
|
+
};
|
|
9906
|
+
const deserializeAws_restJson1ListContactFlowsCommand = async (output, context) => {
|
|
9907
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9908
|
+
return deserializeAws_restJson1ListContactFlowsCommandError(output, context);
|
|
9909
|
+
}
|
|
9910
|
+
const contents = {
|
|
9911
|
+
$metadata: deserializeMetadata(output),
|
|
9912
|
+
ContactFlowSummaryList: undefined,
|
|
9913
|
+
NextToken: undefined,
|
|
9914
|
+
};
|
|
9915
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9916
|
+
if (data.ContactFlowSummaryList !== undefined && data.ContactFlowSummaryList !== null) {
|
|
9917
|
+
contents.ContactFlowSummaryList = deserializeAws_restJson1ContactFlowSummaryList(data.ContactFlowSummaryList, context);
|
|
9918
|
+
}
|
|
9919
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
9920
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
9921
|
+
}
|
|
9922
|
+
return Promise.resolve(contents);
|
|
9923
|
+
};
|
|
9924
|
+
exports.deserializeAws_restJson1ListContactFlowsCommand = deserializeAws_restJson1ListContactFlowsCommand;
|
|
9925
|
+
const deserializeAws_restJson1ListContactFlowsCommandError = async (output, context) => {
|
|
9926
|
+
const parsedOutput = {
|
|
9927
|
+
...output,
|
|
9928
|
+
body: await parseBody(output.body, context),
|
|
9929
|
+
};
|
|
9930
|
+
let response;
|
|
9931
|
+
let errorCode = "UnknownError";
|
|
9932
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9933
|
+
switch (errorCode) {
|
|
9934
|
+
case "InternalServiceException":
|
|
9935
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9936
|
+
response = {
|
|
9153
9937
|
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
9154
9938
|
name: errorCode,
|
|
9155
9939
|
$metadata: deserializeMetadata(output),
|
|
@@ -11507,14 +12291,210 @@ const deserializeAws_restJson1StopContactCommandError = async (output, context)
|
|
|
11507
12291
|
let errorCode = "UnknownError";
|
|
11508
12292
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11509
12293
|
switch (errorCode) {
|
|
11510
|
-
case "ContactNotFoundException":
|
|
11511
|
-
case "com.amazonaws.connect#ContactNotFoundException":
|
|
11512
|
-
response = {
|
|
11513
|
-
...(await deserializeAws_restJson1ContactNotFoundExceptionResponse(parsedOutput, context)),
|
|
11514
|
-
name: errorCode,
|
|
11515
|
-
$metadata: deserializeMetadata(output),
|
|
11516
|
-
};
|
|
11517
|
-
break;
|
|
12294
|
+
case "ContactNotFoundException":
|
|
12295
|
+
case "com.amazonaws.connect#ContactNotFoundException":
|
|
12296
|
+
response = {
|
|
12297
|
+
...(await deserializeAws_restJson1ContactNotFoundExceptionResponse(parsedOutput, context)),
|
|
12298
|
+
name: errorCode,
|
|
12299
|
+
$metadata: deserializeMetadata(output),
|
|
12300
|
+
};
|
|
12301
|
+
break;
|
|
12302
|
+
case "InternalServiceException":
|
|
12303
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12304
|
+
response = {
|
|
12305
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
12306
|
+
name: errorCode,
|
|
12307
|
+
$metadata: deserializeMetadata(output),
|
|
12308
|
+
};
|
|
12309
|
+
break;
|
|
12310
|
+
case "InvalidParameterException":
|
|
12311
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12312
|
+
response = {
|
|
12313
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
12314
|
+
name: errorCode,
|
|
12315
|
+
$metadata: deserializeMetadata(output),
|
|
12316
|
+
};
|
|
12317
|
+
break;
|
|
12318
|
+
case "InvalidRequestException":
|
|
12319
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12320
|
+
response = {
|
|
12321
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
12322
|
+
name: errorCode,
|
|
12323
|
+
$metadata: deserializeMetadata(output),
|
|
12324
|
+
};
|
|
12325
|
+
break;
|
|
12326
|
+
case "ResourceNotFoundException":
|
|
12327
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12328
|
+
response = {
|
|
12329
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
12330
|
+
name: errorCode,
|
|
12331
|
+
$metadata: deserializeMetadata(output),
|
|
12332
|
+
};
|
|
12333
|
+
break;
|
|
12334
|
+
default:
|
|
12335
|
+
const parsedBody = parsedOutput.body;
|
|
12336
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
12337
|
+
response = {
|
|
12338
|
+
...parsedBody,
|
|
12339
|
+
name: `${errorCode}`,
|
|
12340
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
12341
|
+
$fault: "client",
|
|
12342
|
+
$metadata: deserializeMetadata(output),
|
|
12343
|
+
};
|
|
12344
|
+
}
|
|
12345
|
+
const message = response.message || response.Message || errorCode;
|
|
12346
|
+
response.message = message;
|
|
12347
|
+
delete response.Message;
|
|
12348
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
12349
|
+
};
|
|
12350
|
+
const deserializeAws_restJson1StopContactRecordingCommand = async (output, context) => {
|
|
12351
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12352
|
+
return deserializeAws_restJson1StopContactRecordingCommandError(output, context);
|
|
12353
|
+
}
|
|
12354
|
+
const contents = {
|
|
12355
|
+
$metadata: deserializeMetadata(output),
|
|
12356
|
+
};
|
|
12357
|
+
await collectBody(output.body, context);
|
|
12358
|
+
return Promise.resolve(contents);
|
|
12359
|
+
};
|
|
12360
|
+
exports.deserializeAws_restJson1StopContactRecordingCommand = deserializeAws_restJson1StopContactRecordingCommand;
|
|
12361
|
+
const deserializeAws_restJson1StopContactRecordingCommandError = async (output, context) => {
|
|
12362
|
+
const parsedOutput = {
|
|
12363
|
+
...output,
|
|
12364
|
+
body: await parseBody(output.body, context),
|
|
12365
|
+
};
|
|
12366
|
+
let response;
|
|
12367
|
+
let errorCode = "UnknownError";
|
|
12368
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12369
|
+
switch (errorCode) {
|
|
12370
|
+
case "InternalServiceException":
|
|
12371
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12372
|
+
response = {
|
|
12373
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
12374
|
+
name: errorCode,
|
|
12375
|
+
$metadata: deserializeMetadata(output),
|
|
12376
|
+
};
|
|
12377
|
+
break;
|
|
12378
|
+
case "InvalidRequestException":
|
|
12379
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12380
|
+
response = {
|
|
12381
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
12382
|
+
name: errorCode,
|
|
12383
|
+
$metadata: deserializeMetadata(output),
|
|
12384
|
+
};
|
|
12385
|
+
break;
|
|
12386
|
+
case "ResourceNotFoundException":
|
|
12387
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12388
|
+
response = {
|
|
12389
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
12390
|
+
name: errorCode,
|
|
12391
|
+
$metadata: deserializeMetadata(output),
|
|
12392
|
+
};
|
|
12393
|
+
break;
|
|
12394
|
+
default:
|
|
12395
|
+
const parsedBody = parsedOutput.body;
|
|
12396
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
12397
|
+
response = {
|
|
12398
|
+
...parsedBody,
|
|
12399
|
+
name: `${errorCode}`,
|
|
12400
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
12401
|
+
$fault: "client",
|
|
12402
|
+
$metadata: deserializeMetadata(output),
|
|
12403
|
+
};
|
|
12404
|
+
}
|
|
12405
|
+
const message = response.message || response.Message || errorCode;
|
|
12406
|
+
response.message = message;
|
|
12407
|
+
delete response.Message;
|
|
12408
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
12409
|
+
};
|
|
12410
|
+
const deserializeAws_restJson1StopContactStreamingCommand = async (output, context) => {
|
|
12411
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12412
|
+
return deserializeAws_restJson1StopContactStreamingCommandError(output, context);
|
|
12413
|
+
}
|
|
12414
|
+
const contents = {
|
|
12415
|
+
$metadata: deserializeMetadata(output),
|
|
12416
|
+
};
|
|
12417
|
+
await collectBody(output.body, context);
|
|
12418
|
+
return Promise.resolve(contents);
|
|
12419
|
+
};
|
|
12420
|
+
exports.deserializeAws_restJson1StopContactStreamingCommand = deserializeAws_restJson1StopContactStreamingCommand;
|
|
12421
|
+
const deserializeAws_restJson1StopContactStreamingCommandError = async (output, context) => {
|
|
12422
|
+
const parsedOutput = {
|
|
12423
|
+
...output,
|
|
12424
|
+
body: await parseBody(output.body, context),
|
|
12425
|
+
};
|
|
12426
|
+
let response;
|
|
12427
|
+
let errorCode = "UnknownError";
|
|
12428
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12429
|
+
switch (errorCode) {
|
|
12430
|
+
case "InternalServiceException":
|
|
12431
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12432
|
+
response = {
|
|
12433
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
12434
|
+
name: errorCode,
|
|
12435
|
+
$metadata: deserializeMetadata(output),
|
|
12436
|
+
};
|
|
12437
|
+
break;
|
|
12438
|
+
case "InvalidParameterException":
|
|
12439
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12440
|
+
response = {
|
|
12441
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
12442
|
+
name: errorCode,
|
|
12443
|
+
$metadata: deserializeMetadata(output),
|
|
12444
|
+
};
|
|
12445
|
+
break;
|
|
12446
|
+
case "InvalidRequestException":
|
|
12447
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12448
|
+
response = {
|
|
12449
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
12450
|
+
name: errorCode,
|
|
12451
|
+
$metadata: deserializeMetadata(output),
|
|
12452
|
+
};
|
|
12453
|
+
break;
|
|
12454
|
+
case "ResourceNotFoundException":
|
|
12455
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12456
|
+
response = {
|
|
12457
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
12458
|
+
name: errorCode,
|
|
12459
|
+
$metadata: deserializeMetadata(output),
|
|
12460
|
+
};
|
|
12461
|
+
break;
|
|
12462
|
+
default:
|
|
12463
|
+
const parsedBody = parsedOutput.body;
|
|
12464
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
12465
|
+
response = {
|
|
12466
|
+
...parsedBody,
|
|
12467
|
+
name: `${errorCode}`,
|
|
12468
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
12469
|
+
$fault: "client",
|
|
12470
|
+
$metadata: deserializeMetadata(output),
|
|
12471
|
+
};
|
|
12472
|
+
}
|
|
12473
|
+
const message = response.message || response.Message || errorCode;
|
|
12474
|
+
response.message = message;
|
|
12475
|
+
delete response.Message;
|
|
12476
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
12477
|
+
};
|
|
12478
|
+
const deserializeAws_restJson1SuspendContactRecordingCommand = async (output, context) => {
|
|
12479
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12480
|
+
return deserializeAws_restJson1SuspendContactRecordingCommandError(output, context);
|
|
12481
|
+
}
|
|
12482
|
+
const contents = {
|
|
12483
|
+
$metadata: deserializeMetadata(output),
|
|
12484
|
+
};
|
|
12485
|
+
await collectBody(output.body, context);
|
|
12486
|
+
return Promise.resolve(contents);
|
|
12487
|
+
};
|
|
12488
|
+
exports.deserializeAws_restJson1SuspendContactRecordingCommand = deserializeAws_restJson1SuspendContactRecordingCommand;
|
|
12489
|
+
const deserializeAws_restJson1SuspendContactRecordingCommandError = async (output, context) => {
|
|
12490
|
+
const parsedOutput = {
|
|
12491
|
+
...output,
|
|
12492
|
+
body: await parseBody(output.body, context),
|
|
12493
|
+
};
|
|
12494
|
+
let response;
|
|
12495
|
+
let errorCode = "UnknownError";
|
|
12496
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12497
|
+
switch (errorCode) {
|
|
11518
12498
|
case "InternalServiceException":
|
|
11519
12499
|
case "com.amazonaws.connect#InternalServiceException":
|
|
11520
12500
|
response = {
|
|
@@ -11523,14 +12503,6 @@ const deserializeAws_restJson1StopContactCommandError = async (output, context)
|
|
|
11523
12503
|
$metadata: deserializeMetadata(output),
|
|
11524
12504
|
};
|
|
11525
12505
|
break;
|
|
11526
|
-
case "InvalidParameterException":
|
|
11527
|
-
case "com.amazonaws.connect#InvalidParameterException":
|
|
11528
|
-
response = {
|
|
11529
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
11530
|
-
name: errorCode,
|
|
11531
|
-
$metadata: deserializeMetadata(output),
|
|
11532
|
-
};
|
|
11533
|
-
break;
|
|
11534
12506
|
case "InvalidRequestException":
|
|
11535
12507
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
11536
12508
|
response = {
|
|
@@ -11563,9 +12535,9 @@ const deserializeAws_restJson1StopContactCommandError = async (output, context)
|
|
|
11563
12535
|
delete response.Message;
|
|
11564
12536
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11565
12537
|
};
|
|
11566
|
-
const
|
|
12538
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
11567
12539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11568
|
-
return
|
|
12540
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
11569
12541
|
}
|
|
11570
12542
|
const contents = {
|
|
11571
12543
|
$metadata: deserializeMetadata(output),
|
|
@@ -11573,8 +12545,8 @@ const deserializeAws_restJson1StopContactRecordingCommand = async (output, conte
|
|
|
11573
12545
|
await collectBody(output.body, context);
|
|
11574
12546
|
return Promise.resolve(contents);
|
|
11575
12547
|
};
|
|
11576
|
-
exports.
|
|
11577
|
-
const
|
|
12548
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
12549
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
11578
12550
|
const parsedOutput = {
|
|
11579
12551
|
...output,
|
|
11580
12552
|
body: await parseBody(output.body, context),
|
|
@@ -11591,6 +12563,14 @@ const deserializeAws_restJson1StopContactRecordingCommandError = async (output,
|
|
|
11591
12563
|
$metadata: deserializeMetadata(output),
|
|
11592
12564
|
};
|
|
11593
12565
|
break;
|
|
12566
|
+
case "InvalidParameterException":
|
|
12567
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12568
|
+
response = {
|
|
12569
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
12570
|
+
name: errorCode,
|
|
12571
|
+
$metadata: deserializeMetadata(output),
|
|
12572
|
+
};
|
|
12573
|
+
break;
|
|
11594
12574
|
case "InvalidRequestException":
|
|
11595
12575
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
11596
12576
|
response = {
|
|
@@ -11607,6 +12587,14 @@ const deserializeAws_restJson1StopContactRecordingCommandError = async (output,
|
|
|
11607
12587
|
$metadata: deserializeMetadata(output),
|
|
11608
12588
|
};
|
|
11609
12589
|
break;
|
|
12590
|
+
case "ThrottlingException":
|
|
12591
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12592
|
+
response = {
|
|
12593
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
12594
|
+
name: errorCode,
|
|
12595
|
+
$metadata: deserializeMetadata(output),
|
|
12596
|
+
};
|
|
12597
|
+
break;
|
|
11610
12598
|
default:
|
|
11611
12599
|
const parsedBody = parsedOutput.body;
|
|
11612
12600
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -11623,9 +12611,9 @@ const deserializeAws_restJson1StopContactRecordingCommandError = async (output,
|
|
|
11623
12611
|
delete response.Message;
|
|
11624
12612
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11625
12613
|
};
|
|
11626
|
-
const
|
|
12614
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
11627
12615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11628
|
-
return
|
|
12616
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
11629
12617
|
}
|
|
11630
12618
|
const contents = {
|
|
11631
12619
|
$metadata: deserializeMetadata(output),
|
|
@@ -11633,8 +12621,8 @@ const deserializeAws_restJson1StopContactStreamingCommand = async (output, conte
|
|
|
11633
12621
|
await collectBody(output.body, context);
|
|
11634
12622
|
return Promise.resolve(contents);
|
|
11635
12623
|
};
|
|
11636
|
-
exports.
|
|
11637
|
-
const
|
|
12624
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
12625
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
11638
12626
|
const parsedOutput = {
|
|
11639
12627
|
...output,
|
|
11640
12628
|
body: await parseBody(output.body, context),
|
|
@@ -11675,6 +12663,14 @@ const deserializeAws_restJson1StopContactStreamingCommandError = async (output,
|
|
|
11675
12663
|
$metadata: deserializeMetadata(output),
|
|
11676
12664
|
};
|
|
11677
12665
|
break;
|
|
12666
|
+
case "ThrottlingException":
|
|
12667
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12668
|
+
response = {
|
|
12669
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
12670
|
+
name: errorCode,
|
|
12671
|
+
$metadata: deserializeMetadata(output),
|
|
12672
|
+
};
|
|
12673
|
+
break;
|
|
11678
12674
|
default:
|
|
11679
12675
|
const parsedBody = parsedOutput.body;
|
|
11680
12676
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -11691,9 +12687,9 @@ const deserializeAws_restJson1StopContactStreamingCommandError = async (output,
|
|
|
11691
12687
|
delete response.Message;
|
|
11692
12688
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11693
12689
|
};
|
|
11694
|
-
const
|
|
12690
|
+
const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context) => {
|
|
11695
12691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11696
|
-
return
|
|
12692
|
+
return deserializeAws_restJson1UpdateAgentStatusCommandError(output, context);
|
|
11697
12693
|
}
|
|
11698
12694
|
const contents = {
|
|
11699
12695
|
$metadata: deserializeMetadata(output),
|
|
@@ -11701,8 +12697,8 @@ const deserializeAws_restJson1SuspendContactRecordingCommand = async (output, co
|
|
|
11701
12697
|
await collectBody(output.body, context);
|
|
11702
12698
|
return Promise.resolve(contents);
|
|
11703
12699
|
};
|
|
11704
|
-
exports.
|
|
11705
|
-
const
|
|
12700
|
+
exports.deserializeAws_restJson1UpdateAgentStatusCommand = deserializeAws_restJson1UpdateAgentStatusCommand;
|
|
12701
|
+
const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, context) => {
|
|
11706
12702
|
const parsedOutput = {
|
|
11707
12703
|
...output,
|
|
11708
12704
|
body: await parseBody(output.body, context),
|
|
@@ -11711,6 +12707,14 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
|
|
|
11711
12707
|
let errorCode = "UnknownError";
|
|
11712
12708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11713
12709
|
switch (errorCode) {
|
|
12710
|
+
case "DuplicateResourceException":
|
|
12711
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
12712
|
+
response = {
|
|
12713
|
+
...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
|
|
12714
|
+
name: errorCode,
|
|
12715
|
+
$metadata: deserializeMetadata(output),
|
|
12716
|
+
};
|
|
12717
|
+
break;
|
|
11714
12718
|
case "InternalServiceException":
|
|
11715
12719
|
case "com.amazonaws.connect#InternalServiceException":
|
|
11716
12720
|
response = {
|
|
@@ -11719,6 +12723,14 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
|
|
|
11719
12723
|
$metadata: deserializeMetadata(output),
|
|
11720
12724
|
};
|
|
11721
12725
|
break;
|
|
12726
|
+
case "InvalidParameterException":
|
|
12727
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12728
|
+
response = {
|
|
12729
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
12730
|
+
name: errorCode,
|
|
12731
|
+
$metadata: deserializeMetadata(output),
|
|
12732
|
+
};
|
|
12733
|
+
break;
|
|
11722
12734
|
case "InvalidRequestException":
|
|
11723
12735
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
11724
12736
|
response = {
|
|
@@ -11727,6 +12739,14 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
|
|
|
11727
12739
|
$metadata: deserializeMetadata(output),
|
|
11728
12740
|
};
|
|
11729
12741
|
break;
|
|
12742
|
+
case "LimitExceededException":
|
|
12743
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
12744
|
+
response = {
|
|
12745
|
+
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
12746
|
+
name: errorCode,
|
|
12747
|
+
$metadata: deserializeMetadata(output),
|
|
12748
|
+
};
|
|
12749
|
+
break;
|
|
11730
12750
|
case "ResourceNotFoundException":
|
|
11731
12751
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11732
12752
|
response = {
|
|
@@ -11735,6 +12755,14 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
|
|
|
11735
12755
|
$metadata: deserializeMetadata(output),
|
|
11736
12756
|
};
|
|
11737
12757
|
break;
|
|
12758
|
+
case "ThrottlingException":
|
|
12759
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12760
|
+
response = {
|
|
12761
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
12762
|
+
name: errorCode,
|
|
12763
|
+
$metadata: deserializeMetadata(output),
|
|
12764
|
+
};
|
|
12765
|
+
break;
|
|
11738
12766
|
default:
|
|
11739
12767
|
const parsedBody = parsedOutput.body;
|
|
11740
12768
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -11751,9 +12779,9 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
|
|
|
11751
12779
|
delete response.Message;
|
|
11752
12780
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11753
12781
|
};
|
|
11754
|
-
const
|
|
12782
|
+
const deserializeAws_restJson1UpdateContactCommand = async (output, context) => {
|
|
11755
12783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11756
|
-
return
|
|
12784
|
+
return deserializeAws_restJson1UpdateContactCommandError(output, context);
|
|
11757
12785
|
}
|
|
11758
12786
|
const contents = {
|
|
11759
12787
|
$metadata: deserializeMetadata(output),
|
|
@@ -11761,8 +12789,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
11761
12789
|
await collectBody(output.body, context);
|
|
11762
12790
|
return Promise.resolve(contents);
|
|
11763
12791
|
};
|
|
11764
|
-
exports.
|
|
11765
|
-
const
|
|
12792
|
+
exports.deserializeAws_restJson1UpdateContactCommand = deserializeAws_restJson1UpdateContactCommand;
|
|
12793
|
+
const deserializeAws_restJson1UpdateContactCommandError = async (output, context) => {
|
|
11766
12794
|
const parsedOutput = {
|
|
11767
12795
|
...output,
|
|
11768
12796
|
body: await parseBody(output.body, context),
|
|
@@ -11827,9 +12855,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
11827
12855
|
delete response.Message;
|
|
11828
12856
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11829
12857
|
};
|
|
11830
|
-
const
|
|
12858
|
+
const deserializeAws_restJson1UpdateContactAttributesCommand = async (output, context) => {
|
|
11831
12859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11832
|
-
return
|
|
12860
|
+
return deserializeAws_restJson1UpdateContactAttributesCommandError(output, context);
|
|
11833
12861
|
}
|
|
11834
12862
|
const contents = {
|
|
11835
12863
|
$metadata: deserializeMetadata(output),
|
|
@@ -11837,8 +12865,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
11837
12865
|
await collectBody(output.body, context);
|
|
11838
12866
|
return Promise.resolve(contents);
|
|
11839
12867
|
};
|
|
11840
|
-
exports.
|
|
11841
|
-
const
|
|
12868
|
+
exports.deserializeAws_restJson1UpdateContactAttributesCommand = deserializeAws_restJson1UpdateContactAttributesCommand;
|
|
12869
|
+
const deserializeAws_restJson1UpdateContactAttributesCommandError = async (output, context) => {
|
|
11842
12870
|
const parsedOutput = {
|
|
11843
12871
|
...output,
|
|
11844
12872
|
body: await parseBody(output.body, context),
|
|
@@ -11879,14 +12907,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
11879
12907
|
$metadata: deserializeMetadata(output),
|
|
11880
12908
|
};
|
|
11881
12909
|
break;
|
|
11882
|
-
case "ThrottlingException":
|
|
11883
|
-
case "com.amazonaws.connect#ThrottlingException":
|
|
11884
|
-
response = {
|
|
11885
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
11886
|
-
name: errorCode,
|
|
11887
|
-
$metadata: deserializeMetadata(output),
|
|
11888
|
-
};
|
|
11889
|
-
break;
|
|
11890
12910
|
default:
|
|
11891
12911
|
const parsedBody = parsedOutput.body;
|
|
11892
12912
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -11903,9 +12923,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
11903
12923
|
delete response.Message;
|
|
11904
12924
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11905
12925
|
};
|
|
11906
|
-
const
|
|
12926
|
+
const deserializeAws_restJson1UpdateContactFlowContentCommand = async (output, context) => {
|
|
11907
12927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11908
|
-
return
|
|
12928
|
+
return deserializeAws_restJson1UpdateContactFlowContentCommandError(output, context);
|
|
11909
12929
|
}
|
|
11910
12930
|
const contents = {
|
|
11911
12931
|
$metadata: deserializeMetadata(output),
|
|
@@ -11913,8 +12933,8 @@ const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context)
|
|
|
11913
12933
|
await collectBody(output.body, context);
|
|
11914
12934
|
return Promise.resolve(contents);
|
|
11915
12935
|
};
|
|
11916
|
-
exports.
|
|
11917
|
-
const
|
|
12936
|
+
exports.deserializeAws_restJson1UpdateContactFlowContentCommand = deserializeAws_restJson1UpdateContactFlowContentCommand;
|
|
12937
|
+
const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (output, context) => {
|
|
11918
12938
|
const parsedOutput = {
|
|
11919
12939
|
...output,
|
|
11920
12940
|
body: await parseBody(output.body, context),
|
|
@@ -11923,18 +12943,18 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
|
|
|
11923
12943
|
let errorCode = "UnknownError";
|
|
11924
12944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11925
12945
|
switch (errorCode) {
|
|
11926
|
-
case "
|
|
11927
|
-
case "com.amazonaws.connect#
|
|
12946
|
+
case "InternalServiceException":
|
|
12947
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11928
12948
|
response = {
|
|
11929
|
-
...(await
|
|
12949
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
11930
12950
|
name: errorCode,
|
|
11931
12951
|
$metadata: deserializeMetadata(output),
|
|
11932
12952
|
};
|
|
11933
12953
|
break;
|
|
11934
|
-
case "
|
|
11935
|
-
case "com.amazonaws.connect#
|
|
12954
|
+
case "InvalidContactFlowException":
|
|
12955
|
+
case "com.amazonaws.connect#InvalidContactFlowException":
|
|
11936
12956
|
response = {
|
|
11937
|
-
...(await
|
|
12957
|
+
...(await deserializeAws_restJson1InvalidContactFlowExceptionResponse(parsedOutput, context)),
|
|
11938
12958
|
name: errorCode,
|
|
11939
12959
|
$metadata: deserializeMetadata(output),
|
|
11940
12960
|
};
|
|
@@ -11955,14 +12975,6 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
|
|
|
11955
12975
|
$metadata: deserializeMetadata(output),
|
|
11956
12976
|
};
|
|
11957
12977
|
break;
|
|
11958
|
-
case "LimitExceededException":
|
|
11959
|
-
case "com.amazonaws.connect#LimitExceededException":
|
|
11960
|
-
response = {
|
|
11961
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
11962
|
-
name: errorCode,
|
|
11963
|
-
$metadata: deserializeMetadata(output),
|
|
11964
|
-
};
|
|
11965
|
-
break;
|
|
11966
12978
|
case "ResourceNotFoundException":
|
|
11967
12979
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11968
12980
|
response = {
|
|
@@ -11995,9 +13007,9 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
|
|
|
11995
13007
|
delete response.Message;
|
|
11996
13008
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
11997
13009
|
};
|
|
11998
|
-
const
|
|
13010
|
+
const deserializeAws_restJson1UpdateContactFlowMetadataCommand = async (output, context) => {
|
|
11999
13011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12000
|
-
return
|
|
13012
|
+
return deserializeAws_restJson1UpdateContactFlowMetadataCommandError(output, context);
|
|
12001
13013
|
}
|
|
12002
13014
|
const contents = {
|
|
12003
13015
|
$metadata: deserializeMetadata(output),
|
|
@@ -12005,8 +13017,8 @@ const deserializeAws_restJson1UpdateContactCommand = async (output, context) =>
|
|
|
12005
13017
|
await collectBody(output.body, context);
|
|
12006
13018
|
return Promise.resolve(contents);
|
|
12007
13019
|
};
|
|
12008
|
-
exports.
|
|
12009
|
-
const
|
|
13020
|
+
exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = deserializeAws_restJson1UpdateContactFlowMetadataCommand;
|
|
13021
|
+
const deserializeAws_restJson1UpdateContactFlowMetadataCommandError = async (output, context) => {
|
|
12010
13022
|
const parsedOutput = {
|
|
12011
13023
|
...output,
|
|
12012
13024
|
body: await parseBody(output.body, context),
|
|
@@ -12015,6 +13027,14 @@ const deserializeAws_restJson1UpdateContactCommandError = async (output, context
|
|
|
12015
13027
|
let errorCode = "UnknownError";
|
|
12016
13028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12017
13029
|
switch (errorCode) {
|
|
13030
|
+
case "DuplicateResourceException":
|
|
13031
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
13032
|
+
response = {
|
|
13033
|
+
...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
|
|
13034
|
+
name: errorCode,
|
|
13035
|
+
$metadata: deserializeMetadata(output),
|
|
13036
|
+
};
|
|
13037
|
+
break;
|
|
12018
13038
|
case "InternalServiceException":
|
|
12019
13039
|
case "com.amazonaws.connect#InternalServiceException":
|
|
12020
13040
|
response = {
|
|
@@ -12071,9 +13091,9 @@ const deserializeAws_restJson1UpdateContactCommandError = async (output, context
|
|
|
12071
13091
|
delete response.Message;
|
|
12072
13092
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
12073
13093
|
};
|
|
12074
|
-
const
|
|
13094
|
+
const deserializeAws_restJson1UpdateContactFlowModuleContentCommand = async (output, context) => {
|
|
12075
13095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12076
|
-
return
|
|
13096
|
+
return deserializeAws_restJson1UpdateContactFlowModuleContentCommandError(output, context);
|
|
12077
13097
|
}
|
|
12078
13098
|
const contents = {
|
|
12079
13099
|
$metadata: deserializeMetadata(output),
|
|
@@ -12081,8 +13101,8 @@ const deserializeAws_restJson1UpdateContactAttributesCommand = async (output, co
|
|
|
12081
13101
|
await collectBody(output.body, context);
|
|
12082
13102
|
return Promise.resolve(contents);
|
|
12083
13103
|
};
|
|
12084
|
-
exports.
|
|
12085
|
-
const
|
|
13104
|
+
exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = deserializeAws_restJson1UpdateContactFlowModuleContentCommand;
|
|
13105
|
+
const deserializeAws_restJson1UpdateContactFlowModuleContentCommandError = async (output, context) => {
|
|
12086
13106
|
const parsedOutput = {
|
|
12087
13107
|
...output,
|
|
12088
13108
|
body: await parseBody(output.body, context),
|
|
@@ -12091,6 +13111,14 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
|
|
|
12091
13111
|
let errorCode = "UnknownError";
|
|
12092
13112
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12093
13113
|
switch (errorCode) {
|
|
13114
|
+
case "AccessDeniedException":
|
|
13115
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
13116
|
+
response = {
|
|
13117
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
13118
|
+
name: errorCode,
|
|
13119
|
+
$metadata: deserializeMetadata(output),
|
|
13120
|
+
};
|
|
13121
|
+
break;
|
|
12094
13122
|
case "InternalServiceException":
|
|
12095
13123
|
case "com.amazonaws.connect#InternalServiceException":
|
|
12096
13124
|
response = {
|
|
@@ -12099,10 +13127,10 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
|
|
|
12099
13127
|
$metadata: deserializeMetadata(output),
|
|
12100
13128
|
};
|
|
12101
13129
|
break;
|
|
12102
|
-
case "
|
|
12103
|
-
case "com.amazonaws.connect#
|
|
13130
|
+
case "InvalidContactFlowModuleException":
|
|
13131
|
+
case "com.amazonaws.connect#InvalidContactFlowModuleException":
|
|
12104
13132
|
response = {
|
|
12105
|
-
...(await
|
|
13133
|
+
...(await deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse(parsedOutput, context)),
|
|
12106
13134
|
name: errorCode,
|
|
12107
13135
|
$metadata: deserializeMetadata(output),
|
|
12108
13136
|
};
|
|
@@ -12123,6 +13151,14 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
|
|
|
12123
13151
|
$metadata: deserializeMetadata(output),
|
|
12124
13152
|
};
|
|
12125
13153
|
break;
|
|
13154
|
+
case "ThrottlingException":
|
|
13155
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13156
|
+
response = {
|
|
13157
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
13158
|
+
name: errorCode,
|
|
13159
|
+
$metadata: deserializeMetadata(output),
|
|
13160
|
+
};
|
|
13161
|
+
break;
|
|
12126
13162
|
default:
|
|
12127
13163
|
const parsedBody = parsedOutput.body;
|
|
12128
13164
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -12139,9 +13175,9 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
|
|
|
12139
13175
|
delete response.Message;
|
|
12140
13176
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
12141
13177
|
};
|
|
12142
|
-
const
|
|
13178
|
+
const deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (output, context) => {
|
|
12143
13179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12144
|
-
return
|
|
13180
|
+
return deserializeAws_restJson1UpdateContactFlowModuleMetadataCommandError(output, context);
|
|
12145
13181
|
}
|
|
12146
13182
|
const contents = {
|
|
12147
13183
|
$metadata: deserializeMetadata(output),
|
|
@@ -12149,8 +13185,8 @@ const deserializeAws_restJson1UpdateContactFlowContentCommand = async (output, c
|
|
|
12149
13185
|
await collectBody(output.body, context);
|
|
12150
13186
|
return Promise.resolve(contents);
|
|
12151
13187
|
};
|
|
12152
|
-
exports.
|
|
12153
|
-
const
|
|
13188
|
+
exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand;
|
|
13189
|
+
const deserializeAws_restJson1UpdateContactFlowModuleMetadataCommandError = async (output, context) => {
|
|
12154
13190
|
const parsedOutput = {
|
|
12155
13191
|
...output,
|
|
12156
13192
|
body: await parseBody(output.body, context),
|
|
@@ -12159,18 +13195,26 @@ const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (outp
|
|
|
12159
13195
|
let errorCode = "UnknownError";
|
|
12160
13196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12161
13197
|
switch (errorCode) {
|
|
12162
|
-
case "
|
|
12163
|
-
case "com.amazonaws.connect#
|
|
13198
|
+
case "AccessDeniedException":
|
|
13199
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12164
13200
|
response = {
|
|
12165
|
-
...(await
|
|
13201
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
12166
13202
|
name: errorCode,
|
|
12167
13203
|
$metadata: deserializeMetadata(output),
|
|
12168
13204
|
};
|
|
12169
13205
|
break;
|
|
12170
|
-
case "
|
|
12171
|
-
case "com.amazonaws.connect#
|
|
13206
|
+
case "DuplicateResourceException":
|
|
13207
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
12172
13208
|
response = {
|
|
12173
|
-
...(await
|
|
13209
|
+
...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
|
|
13210
|
+
name: errorCode,
|
|
13211
|
+
$metadata: deserializeMetadata(output),
|
|
13212
|
+
};
|
|
13213
|
+
break;
|
|
13214
|
+
case "InternalServiceException":
|
|
13215
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13216
|
+
response = {
|
|
13217
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
12174
13218
|
name: errorCode,
|
|
12175
13219
|
$metadata: deserializeMetadata(output),
|
|
12176
13220
|
};
|
|
@@ -14168,6 +15212,19 @@ const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsed
|
|
|
14168
15212
|
}
|
|
14169
15213
|
return contents;
|
|
14170
15214
|
};
|
|
15215
|
+
const deserializeAws_restJson1IdempotencyExceptionResponse = async (parsedOutput, context) => {
|
|
15216
|
+
const contents = {
|
|
15217
|
+
name: "IdempotencyException",
|
|
15218
|
+
$fault: "client",
|
|
15219
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
15220
|
+
Message: undefined,
|
|
15221
|
+
};
|
|
15222
|
+
const data = parsedOutput.body;
|
|
15223
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
15224
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
15225
|
+
}
|
|
15226
|
+
return contents;
|
|
15227
|
+
};
|
|
14171
15228
|
const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
14172
15229
|
const contents = {
|
|
14173
15230
|
name: "InternalServiceException",
|
|
@@ -14194,6 +15251,19 @@ const deserializeAws_restJson1InvalidContactFlowExceptionResponse = async (parse
|
|
|
14194
15251
|
}
|
|
14195
15252
|
return contents;
|
|
14196
15253
|
};
|
|
15254
|
+
const deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse = async (parsedOutput, context) => {
|
|
15255
|
+
const contents = {
|
|
15256
|
+
name: "InvalidContactFlowModuleException",
|
|
15257
|
+
$fault: "client",
|
|
15258
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
15259
|
+
Problems: undefined,
|
|
15260
|
+
};
|
|
15261
|
+
const data = parsedOutput.body;
|
|
15262
|
+
if (data.Problems !== undefined && data.Problems !== null) {
|
|
15263
|
+
contents.Problems = deserializeAws_restJson1Problems(data.Problems, context);
|
|
15264
|
+
}
|
|
15265
|
+
return contents;
|
|
15266
|
+
};
|
|
14197
15267
|
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
14198
15268
|
const contents = {
|
|
14199
15269
|
name: "InvalidParameterException",
|
|
@@ -14856,15 +15926,49 @@ const deserializeAws_restJson1ContactFlow = (output, context) => {
|
|
|
14856
15926
|
Description: smithy_client_1.expectString(output.Description),
|
|
14857
15927
|
Id: smithy_client_1.expectString(output.Id),
|
|
14858
15928
|
Name: smithy_client_1.expectString(output.Name),
|
|
15929
|
+
State: smithy_client_1.expectString(output.State),
|
|
14859
15930
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
14860
15931
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
14861
15932
|
: undefined,
|
|
14862
15933
|
Type: smithy_client_1.expectString(output.Type),
|
|
14863
15934
|
};
|
|
14864
15935
|
};
|
|
15936
|
+
const deserializeAws_restJson1ContactFlowModule = (output, context) => {
|
|
15937
|
+
return {
|
|
15938
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
15939
|
+
Content: smithy_client_1.expectString(output.Content),
|
|
15940
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
15941
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
15942
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
15943
|
+
State: smithy_client_1.expectString(output.State),
|
|
15944
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
15945
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
15946
|
+
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
15947
|
+
: undefined,
|
|
15948
|
+
};
|
|
15949
|
+
};
|
|
15950
|
+
const deserializeAws_restJson1ContactFlowModulesSummaryList = (output, context) => {
|
|
15951
|
+
return (output || [])
|
|
15952
|
+
.filter((e) => e != null)
|
|
15953
|
+
.map((entry) => {
|
|
15954
|
+
if (entry === null) {
|
|
15955
|
+
return null;
|
|
15956
|
+
}
|
|
15957
|
+
return deserializeAws_restJson1ContactFlowModuleSummary(entry, context);
|
|
15958
|
+
});
|
|
15959
|
+
};
|
|
15960
|
+
const deserializeAws_restJson1ContactFlowModuleSummary = (output, context) => {
|
|
15961
|
+
return {
|
|
15962
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
15963
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
15964
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
15965
|
+
State: smithy_client_1.expectString(output.State),
|
|
15966
|
+
};
|
|
15967
|
+
};
|
|
14865
15968
|
const deserializeAws_restJson1ContactFlowSummary = (output, context) => {
|
|
14866
15969
|
return {
|
|
14867
15970
|
Arn: smithy_client_1.expectString(output.Arn),
|
|
15971
|
+
ContactFlowState: smithy_client_1.expectString(output.ContactFlowState),
|
|
14868
15972
|
ContactFlowType: smithy_client_1.expectString(output.ContactFlowType),
|
|
14869
15973
|
Id: smithy_client_1.expectString(output.Id),
|
|
14870
15974
|
Name: smithy_client_1.expectString(output.Name),
|