@aws-sdk/client-connect 3.95.0 → 3.104.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 +27 -0
- package/dist-cjs/Connect.js +90 -0
- package/dist-cjs/commands/CreateTaskTemplateCommand.js +36 -0
- package/dist-cjs/commands/DeleteTaskTemplateCommand.js +36 -0
- package/dist-cjs/commands/GetTaskTemplateCommand.js +36 -0
- package/dist-cjs/commands/ListSecurityKeysCommand.js +3 -3
- package/dist-cjs/commands/ListSecurityProfilePermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListSecurityProfilesCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTaskTemplatesCommand.js +36 -0
- package/dist-cjs/commands/ListUseCasesCommand.js +3 -3
- package/dist-cjs/commands/ListUserHierarchyGroupsCommand.js +3 -3
- package/dist-cjs/commands/ListUsersCommand.js +3 -3
- package/dist-cjs/commands/PutUserStatusCommand.js +3 -3
- package/dist-cjs/commands/ReleasePhoneNumberCommand.js +2 -2
- package/dist-cjs/commands/ResumeContactRecordingCommand.js +3 -3
- package/dist-cjs/commands/TransferContactCommand.js +36 -0
- package/dist-cjs/commands/UpdateTaskTemplateCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +183 -143
- package/dist-cjs/models/models_1.js +183 -2
- package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1044 -38
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-es/Connect.js +90 -0
- package/dist-es/commands/CreateTaskTemplateCommand.js +39 -0
- package/dist-es/commands/DeleteTaskTemplateCommand.js +39 -0
- package/dist-es/commands/GetTaskTemplateCommand.js +39 -0
- package/dist-es/commands/ListSecurityKeysCommand.js +1 -1
- package/dist-es/commands/ListSecurityProfilePermissionsCommand.js +1 -1
- package/dist-es/commands/ListSecurityProfilesCommand.js +1 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
- package/dist-es/commands/ListTaskTemplatesCommand.js +39 -0
- package/dist-es/commands/ListUseCasesCommand.js +1 -1
- package/dist-es/commands/ListUserHierarchyGroupsCommand.js +1 -1
- package/dist-es/commands/ListUsersCommand.js +1 -1
- package/dist-es/commands/PutUserStatusCommand.js +1 -1
- package/dist-es/commands/ReleasePhoneNumberCommand.js +1 -1
- package/dist-es/commands/ResumeContactRecordingCommand.js +1 -1
- package/dist-es/commands/TransferContactCommand.js +39 -0
- package/dist-es/commands/UpdateTaskTemplateCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +139 -92
- package/dist-es/models/models_1.js +120 -0
- package/dist-es/pagination/ListTaskTemplatesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +1175 -54
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/Connect.d.ts +97 -22
- package/dist-types/ConnectClient.d.ts +8 -2
- package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +2 -1
- package/dist-types/commands/CreateTaskTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DeleteTaskTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -1
- package/dist-types/commands/GetTaskTemplateCommand.d.ts +35 -0
- package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +1 -1
- package/dist-types/commands/ListSecurityKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTaskTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
- package/dist-types/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/commands/PutUserStatusCommand.d.ts +5 -6
- package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
- package/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
- package/dist-types/commands/SearchVocabulariesCommand.d.ts +2 -1
- package/dist-types/commands/StartChatContactCommand.d.ts +3 -3
- package/dist-types/commands/StartContactRecordingCommand.d.ts +9 -7
- package/dist-types/commands/StopContactCommand.d.ts +3 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/TransferContactCommand.d.ts +58 -0
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +2 -1
- package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +573 -470
- package/dist-types/models/models_1.d.ts +719 -26
- package/dist-types/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Connect.d.ts +30 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTaskTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSecurityKeysCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTaskTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TransferContactCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +333 -254
- package/dist-types/ts3.4/models/models_1.d.ts +388 -2
- package/dist-types/ts3.4/pagination/ListTaskTemplatesPaginator.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 +18 -0
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = 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_restJson1UpdatePhoneNumberCommand = 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 = void 0;
|
|
3
|
+
exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = 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_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = 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_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
4
|
+
exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = 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_restJson1ListPhoneNumbersV2Command = 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_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = void 0;
|
|
5
|
+
exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = 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_restJson1UpdatePhoneNumberCommand = 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 = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = 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_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = 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_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = 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_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = 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 = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = 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_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = 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_restJson1UpdatePhoneNumberCommand = 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_restJson1TransferContactCommand = 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_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = void 0;
|
|
9
9
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
10
10
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
11
11
|
const uuid_1 = require("uuid");
|
|
@@ -770,6 +770,50 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
|
|
|
770
770
|
});
|
|
771
771
|
};
|
|
772
772
|
exports.serializeAws_restJson1CreateSecurityProfileCommand = serializeAws_restJson1CreateSecurityProfileCommand;
|
|
773
|
+
const serializeAws_restJson1CreateTaskTemplateCommand = async (input, context) => {
|
|
774
|
+
var _a;
|
|
775
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
776
|
+
const headers = {
|
|
777
|
+
"content-type": "application/json",
|
|
778
|
+
};
|
|
779
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
|
|
780
|
+
if (input.InstanceId !== undefined) {
|
|
781
|
+
const labelValue = input.InstanceId;
|
|
782
|
+
if (labelValue.length <= 0) {
|
|
783
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
784
|
+
}
|
|
785
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
789
|
+
}
|
|
790
|
+
let body;
|
|
791
|
+
body = JSON.stringify({
|
|
792
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
793
|
+
...(input.Constraints !== undefined &&
|
|
794
|
+
input.Constraints !== null && {
|
|
795
|
+
Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
|
|
796
|
+
}),
|
|
797
|
+
...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
|
|
798
|
+
...(input.Defaults !== undefined &&
|
|
799
|
+
input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
|
|
800
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
801
|
+
...(input.Fields !== undefined &&
|
|
802
|
+
input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
|
|
803
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
804
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
805
|
+
});
|
|
806
|
+
return new protocol_http_1.HttpRequest({
|
|
807
|
+
protocol,
|
|
808
|
+
hostname,
|
|
809
|
+
port,
|
|
810
|
+
method: "PUT",
|
|
811
|
+
headers,
|
|
812
|
+
path: resolvedPath,
|
|
813
|
+
body,
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
exports.serializeAws_restJson1CreateTaskTemplateCommand = serializeAws_restJson1CreateTaskTemplateCommand;
|
|
773
817
|
const serializeAws_restJson1CreateUseCaseCommand = async (input, context) => {
|
|
774
818
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
775
819
|
const headers = {
|
|
@@ -1180,6 +1224,43 @@ const serializeAws_restJson1DeleteSecurityProfileCommand = async (input, context
|
|
|
1180
1224
|
});
|
|
1181
1225
|
};
|
|
1182
1226
|
exports.serializeAws_restJson1DeleteSecurityProfileCommand = serializeAws_restJson1DeleteSecurityProfileCommand;
|
|
1227
|
+
const serializeAws_restJson1DeleteTaskTemplateCommand = async (input, context) => {
|
|
1228
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1229
|
+
const headers = {};
|
|
1230
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1231
|
+
"/instance/{InstanceId}/task/template/{TaskTemplateId}";
|
|
1232
|
+
if (input.InstanceId !== undefined) {
|
|
1233
|
+
const labelValue = input.InstanceId;
|
|
1234
|
+
if (labelValue.length <= 0) {
|
|
1235
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
1236
|
+
}
|
|
1237
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1238
|
+
}
|
|
1239
|
+
else {
|
|
1240
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
1241
|
+
}
|
|
1242
|
+
if (input.TaskTemplateId !== undefined) {
|
|
1243
|
+
const labelValue = input.TaskTemplateId;
|
|
1244
|
+
if (labelValue.length <= 0) {
|
|
1245
|
+
throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
|
|
1246
|
+
}
|
|
1247
|
+
resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1248
|
+
}
|
|
1249
|
+
else {
|
|
1250
|
+
throw new Error("No value provided for input HTTP label: TaskTemplateId.");
|
|
1251
|
+
}
|
|
1252
|
+
let body;
|
|
1253
|
+
return new protocol_http_1.HttpRequest({
|
|
1254
|
+
protocol,
|
|
1255
|
+
hostname,
|
|
1256
|
+
port,
|
|
1257
|
+
method: "DELETE",
|
|
1258
|
+
headers,
|
|
1259
|
+
path: resolvedPath,
|
|
1260
|
+
body,
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
exports.serializeAws_restJson1DeleteTaskTemplateCommand = serializeAws_restJson1DeleteTaskTemplateCommand;
|
|
1183
1264
|
const serializeAws_restJson1DeleteUseCaseCommand = async (input, context) => {
|
|
1184
1265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1185
1266
|
const headers = {};
|
|
@@ -2404,6 +2485,47 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
|
|
|
2404
2485
|
});
|
|
2405
2486
|
};
|
|
2406
2487
|
exports.serializeAws_restJson1GetMetricDataCommand = serializeAws_restJson1GetMetricDataCommand;
|
|
2488
|
+
const serializeAws_restJson1GetTaskTemplateCommand = async (input, context) => {
|
|
2489
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2490
|
+
const headers = {};
|
|
2491
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2492
|
+
"/instance/{InstanceId}/task/template/{TaskTemplateId}";
|
|
2493
|
+
if (input.InstanceId !== undefined) {
|
|
2494
|
+
const labelValue = input.InstanceId;
|
|
2495
|
+
if (labelValue.length <= 0) {
|
|
2496
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
2497
|
+
}
|
|
2498
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2499
|
+
}
|
|
2500
|
+
else {
|
|
2501
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2502
|
+
}
|
|
2503
|
+
if (input.TaskTemplateId !== undefined) {
|
|
2504
|
+
const labelValue = input.TaskTemplateId;
|
|
2505
|
+
if (labelValue.length <= 0) {
|
|
2506
|
+
throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
|
|
2507
|
+
}
|
|
2508
|
+
resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2509
|
+
}
|
|
2510
|
+
else {
|
|
2511
|
+
throw new Error("No value provided for input HTTP label: TaskTemplateId.");
|
|
2512
|
+
}
|
|
2513
|
+
const query = {
|
|
2514
|
+
...(input.SnapshotVersion !== undefined && { snapshotVersion: input.SnapshotVersion }),
|
|
2515
|
+
};
|
|
2516
|
+
let body;
|
|
2517
|
+
return new protocol_http_1.HttpRequest({
|
|
2518
|
+
protocol,
|
|
2519
|
+
hostname,
|
|
2520
|
+
port,
|
|
2521
|
+
method: "GET",
|
|
2522
|
+
headers,
|
|
2523
|
+
path: resolvedPath,
|
|
2524
|
+
query,
|
|
2525
|
+
body,
|
|
2526
|
+
});
|
|
2527
|
+
};
|
|
2528
|
+
exports.serializeAws_restJson1GetTaskTemplateCommand = serializeAws_restJson1GetTaskTemplateCommand;
|
|
2407
2529
|
const serializeAws_restJson1ListAgentStatusesCommand = async (input, context) => {
|
|
2408
2530
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2409
2531
|
const headers = {};
|
|
@@ -3267,6 +3389,39 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
3267
3389
|
});
|
|
3268
3390
|
};
|
|
3269
3391
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
3392
|
+
const serializeAws_restJson1ListTaskTemplatesCommand = async (input, context) => {
|
|
3393
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3394
|
+
const headers = {};
|
|
3395
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
|
|
3396
|
+
if (input.InstanceId !== undefined) {
|
|
3397
|
+
const labelValue = input.InstanceId;
|
|
3398
|
+
if (labelValue.length <= 0) {
|
|
3399
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
3400
|
+
}
|
|
3401
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
3402
|
+
}
|
|
3403
|
+
else {
|
|
3404
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3405
|
+
}
|
|
3406
|
+
const query = {
|
|
3407
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
3408
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
3409
|
+
...(input.Status !== undefined && { status: input.Status }),
|
|
3410
|
+
...(input.Name !== undefined && { name: input.Name }),
|
|
3411
|
+
};
|
|
3412
|
+
let body;
|
|
3413
|
+
return new protocol_http_1.HttpRequest({
|
|
3414
|
+
protocol,
|
|
3415
|
+
hostname,
|
|
3416
|
+
port,
|
|
3417
|
+
method: "GET",
|
|
3418
|
+
headers,
|
|
3419
|
+
path: resolvedPath,
|
|
3420
|
+
query,
|
|
3421
|
+
body,
|
|
3422
|
+
});
|
|
3423
|
+
};
|
|
3424
|
+
exports.serializeAws_restJson1ListTaskTemplatesCommand = serializeAws_restJson1ListTaskTemplatesCommand;
|
|
3270
3425
|
const serializeAws_restJson1ListUseCasesCommand = async (input, context) => {
|
|
3271
3426
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3272
3427
|
const headers = {};
|
|
@@ -3714,10 +3869,14 @@ const serializeAws_restJson1StartTaskContactCommand = async (input, context) =>
|
|
|
3714
3869
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3715
3870
|
...(input.PreviousContactId !== undefined &&
|
|
3716
3871
|
input.PreviousContactId !== null && { PreviousContactId: input.PreviousContactId }),
|
|
3872
|
+
...(input.QuickConnectId !== undefined &&
|
|
3873
|
+
input.QuickConnectId !== null && { QuickConnectId: input.QuickConnectId }),
|
|
3717
3874
|
...(input.References !== undefined &&
|
|
3718
3875
|
input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
|
|
3719
3876
|
...(input.ScheduledTime !== undefined &&
|
|
3720
3877
|
input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
3878
|
+
...(input.TaskTemplateId !== undefined &&
|
|
3879
|
+
input.TaskTemplateId !== null && { TaskTemplateId: input.TaskTemplateId }),
|
|
3721
3880
|
});
|
|
3722
3881
|
return new protocol_http_1.HttpRequest({
|
|
3723
3882
|
protocol,
|
|
@@ -3854,6 +4013,33 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
3854
4013
|
});
|
|
3855
4014
|
};
|
|
3856
4015
|
exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
|
|
4016
|
+
const serializeAws_restJson1TransferContactCommand = async (input, context) => {
|
|
4017
|
+
var _a;
|
|
4018
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4019
|
+
const headers = {
|
|
4020
|
+
"content-type": "application/json",
|
|
4021
|
+
};
|
|
4022
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
|
|
4023
|
+
let body;
|
|
4024
|
+
body = JSON.stringify({
|
|
4025
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4026
|
+
...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
|
|
4027
|
+
...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
|
|
4028
|
+
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
|
|
4029
|
+
...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
|
|
4030
|
+
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4031
|
+
});
|
|
4032
|
+
return new protocol_http_1.HttpRequest({
|
|
4033
|
+
protocol,
|
|
4034
|
+
hostname,
|
|
4035
|
+
port,
|
|
4036
|
+
method: "POST",
|
|
4037
|
+
headers,
|
|
4038
|
+
path: resolvedPath,
|
|
4039
|
+
body,
|
|
4040
|
+
});
|
|
4041
|
+
};
|
|
4042
|
+
exports.serializeAws_restJson1TransferContactCommand = serializeAws_restJson1TransferContactCommand;
|
|
3857
4043
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
3858
4044
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3859
4045
|
const headers = {};
|
|
@@ -4931,6 +5117,59 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
|
|
|
4931
5117
|
});
|
|
4932
5118
|
};
|
|
4933
5119
|
exports.serializeAws_restJson1UpdateSecurityProfileCommand = serializeAws_restJson1UpdateSecurityProfileCommand;
|
|
5120
|
+
const serializeAws_restJson1UpdateTaskTemplateCommand = async (input, context) => {
|
|
5121
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5122
|
+
const headers = {
|
|
5123
|
+
"content-type": "application/json",
|
|
5124
|
+
};
|
|
5125
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
5126
|
+
"/instance/{InstanceId}/task/template/{TaskTemplateId}";
|
|
5127
|
+
if (input.TaskTemplateId !== undefined) {
|
|
5128
|
+
const labelValue = input.TaskTemplateId;
|
|
5129
|
+
if (labelValue.length <= 0) {
|
|
5130
|
+
throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
|
|
5131
|
+
}
|
|
5132
|
+
resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
5133
|
+
}
|
|
5134
|
+
else {
|
|
5135
|
+
throw new Error("No value provided for input HTTP label: TaskTemplateId.");
|
|
5136
|
+
}
|
|
5137
|
+
if (input.InstanceId !== undefined) {
|
|
5138
|
+
const labelValue = input.InstanceId;
|
|
5139
|
+
if (labelValue.length <= 0) {
|
|
5140
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
5141
|
+
}
|
|
5142
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
5143
|
+
}
|
|
5144
|
+
else {
|
|
5145
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5146
|
+
}
|
|
5147
|
+
let body;
|
|
5148
|
+
body = JSON.stringify({
|
|
5149
|
+
...(input.Constraints !== undefined &&
|
|
5150
|
+
input.Constraints !== null && {
|
|
5151
|
+
Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
|
|
5152
|
+
}),
|
|
5153
|
+
...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
|
|
5154
|
+
...(input.Defaults !== undefined &&
|
|
5155
|
+
input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
|
|
5156
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5157
|
+
...(input.Fields !== undefined &&
|
|
5158
|
+
input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
|
|
5159
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5160
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
5161
|
+
});
|
|
5162
|
+
return new protocol_http_1.HttpRequest({
|
|
5163
|
+
protocol,
|
|
5164
|
+
hostname,
|
|
5165
|
+
port,
|
|
5166
|
+
method: "POST",
|
|
5167
|
+
headers,
|
|
5168
|
+
path: resolvedPath,
|
|
5169
|
+
body,
|
|
5170
|
+
});
|
|
5171
|
+
};
|
|
5172
|
+
exports.serializeAws_restJson1UpdateTaskTemplateCommand = serializeAws_restJson1UpdateTaskTemplateCommand;
|
|
4934
5173
|
const serializeAws_restJson1UpdateUserHierarchyCommand = async (input, context) => {
|
|
4935
5174
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4936
5175
|
const headers = {
|
|
@@ -6364,6 +6603,62 @@ const deserializeAws_restJson1CreateSecurityProfileCommandError = async (output,
|
|
|
6364
6603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6365
6604
|
}
|
|
6366
6605
|
};
|
|
6606
|
+
const deserializeAws_restJson1CreateTaskTemplateCommand = async (output, context) => {
|
|
6607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6608
|
+
return deserializeAws_restJson1CreateTaskTemplateCommandError(output, context);
|
|
6609
|
+
}
|
|
6610
|
+
const contents = {
|
|
6611
|
+
$metadata: deserializeMetadata(output),
|
|
6612
|
+
Arn: undefined,
|
|
6613
|
+
Id: undefined,
|
|
6614
|
+
};
|
|
6615
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6616
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
6617
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
6618
|
+
}
|
|
6619
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
6620
|
+
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
6621
|
+
}
|
|
6622
|
+
return Promise.resolve(contents);
|
|
6623
|
+
};
|
|
6624
|
+
exports.deserializeAws_restJson1CreateTaskTemplateCommand = deserializeAws_restJson1CreateTaskTemplateCommand;
|
|
6625
|
+
const deserializeAws_restJson1CreateTaskTemplateCommandError = async (output, context) => {
|
|
6626
|
+
const parsedOutput = {
|
|
6627
|
+
...output,
|
|
6628
|
+
body: await parseBody(output.body, context),
|
|
6629
|
+
};
|
|
6630
|
+
let response;
|
|
6631
|
+
let errorCode = "UnknownError";
|
|
6632
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6633
|
+
switch (errorCode) {
|
|
6634
|
+
case "InternalServiceException":
|
|
6635
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6636
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
6637
|
+
case "InvalidParameterException":
|
|
6638
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6639
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
6640
|
+
case "PropertyValidationException":
|
|
6641
|
+
case "com.amazonaws.connect#PropertyValidationException":
|
|
6642
|
+
throw await deserializeAws_restJson1PropertyValidationExceptionResponse(parsedOutput, context);
|
|
6643
|
+
case "ResourceNotFoundException":
|
|
6644
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6645
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6646
|
+
case "ServiceQuotaExceededException":
|
|
6647
|
+
case "com.amazonaws.connect#ServiceQuotaExceededException":
|
|
6648
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
6649
|
+
case "ThrottlingException":
|
|
6650
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
6651
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6652
|
+
default:
|
|
6653
|
+
const parsedBody = parsedOutput.body;
|
|
6654
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
6655
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6656
|
+
$fault: "client",
|
|
6657
|
+
$metadata: deserializeMetadata(output),
|
|
6658
|
+
});
|
|
6659
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6660
|
+
}
|
|
6661
|
+
};
|
|
6367
6662
|
const deserializeAws_restJson1CreateUseCaseCommand = async (output, context) => {
|
|
6368
6663
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6369
6664
|
return deserializeAws_restJson1CreateUseCaseCommandError(output, context);
|
|
@@ -6916,9 +7211,9 @@ const deserializeAws_restJson1DeleteSecurityProfileCommandError = async (output,
|
|
|
6916
7211
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6917
7212
|
}
|
|
6918
7213
|
};
|
|
6919
|
-
const
|
|
7214
|
+
const deserializeAws_restJson1DeleteTaskTemplateCommand = async (output, context) => {
|
|
6920
7215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6921
|
-
return
|
|
7216
|
+
return deserializeAws_restJson1DeleteTaskTemplateCommandError(output, context);
|
|
6922
7217
|
}
|
|
6923
7218
|
const contents = {
|
|
6924
7219
|
$metadata: deserializeMetadata(output),
|
|
@@ -6926,8 +7221,8 @@ const deserializeAws_restJson1DeleteUseCaseCommand = async (output, context) =>
|
|
|
6926
7221
|
await collectBody(output.body, context);
|
|
6927
7222
|
return Promise.resolve(contents);
|
|
6928
7223
|
};
|
|
6929
|
-
exports.
|
|
6930
|
-
const
|
|
7224
|
+
exports.deserializeAws_restJson1DeleteTaskTemplateCommand = deserializeAws_restJson1DeleteTaskTemplateCommand;
|
|
7225
|
+
const deserializeAws_restJson1DeleteTaskTemplateCommandError = async (output, context) => {
|
|
6931
7226
|
const parsedOutput = {
|
|
6932
7227
|
...output,
|
|
6933
7228
|
body: await parseBody(output.body, context),
|
|
@@ -6939,6 +7234,9 @@ const deserializeAws_restJson1DeleteUseCaseCommandError = async (output, context
|
|
|
6939
7234
|
case "InternalServiceException":
|
|
6940
7235
|
case "com.amazonaws.connect#InternalServiceException":
|
|
6941
7236
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
7237
|
+
case "InvalidParameterException":
|
|
7238
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7239
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
6942
7240
|
case "InvalidRequestException":
|
|
6943
7241
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
6944
7242
|
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
@@ -6958,9 +7256,9 @@ const deserializeAws_restJson1DeleteUseCaseCommandError = async (output, context
|
|
|
6958
7256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6959
7257
|
}
|
|
6960
7258
|
};
|
|
6961
|
-
const
|
|
7259
|
+
const deserializeAws_restJson1DeleteUseCaseCommand = async (output, context) => {
|
|
6962
7260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6963
|
-
return
|
|
7261
|
+
return deserializeAws_restJson1DeleteUseCaseCommandError(output, context);
|
|
6964
7262
|
}
|
|
6965
7263
|
const contents = {
|
|
6966
7264
|
$metadata: deserializeMetadata(output),
|
|
@@ -6968,8 +7266,8 @@ const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
|
|
|
6968
7266
|
await collectBody(output.body, context);
|
|
6969
7267
|
return Promise.resolve(contents);
|
|
6970
7268
|
};
|
|
6971
|
-
exports.
|
|
6972
|
-
const
|
|
7269
|
+
exports.deserializeAws_restJson1DeleteUseCaseCommand = deserializeAws_restJson1DeleteUseCaseCommand;
|
|
7270
|
+
const deserializeAws_restJson1DeleteUseCaseCommandError = async (output, context) => {
|
|
6973
7271
|
const parsedOutput = {
|
|
6974
7272
|
...output,
|
|
6975
7273
|
body: await parseBody(output.body, context),
|
|
@@ -6981,9 +7279,6 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
|
|
|
6981
7279
|
case "InternalServiceException":
|
|
6982
7280
|
case "com.amazonaws.connect#InternalServiceException":
|
|
6983
7281
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
6984
|
-
case "InvalidParameterException":
|
|
6985
|
-
case "com.amazonaws.connect#InvalidParameterException":
|
|
6986
|
-
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
6987
7282
|
case "InvalidRequestException":
|
|
6988
7283
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
6989
7284
|
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
@@ -7003,9 +7298,54 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
|
|
|
7003
7298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7004
7299
|
}
|
|
7005
7300
|
};
|
|
7006
|
-
const
|
|
7301
|
+
const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
|
|
7007
7302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7008
|
-
return
|
|
7303
|
+
return deserializeAws_restJson1DeleteUserCommandError(output, context);
|
|
7304
|
+
}
|
|
7305
|
+
const contents = {
|
|
7306
|
+
$metadata: deserializeMetadata(output),
|
|
7307
|
+
};
|
|
7308
|
+
await collectBody(output.body, context);
|
|
7309
|
+
return Promise.resolve(contents);
|
|
7310
|
+
};
|
|
7311
|
+
exports.deserializeAws_restJson1DeleteUserCommand = deserializeAws_restJson1DeleteUserCommand;
|
|
7312
|
+
const deserializeAws_restJson1DeleteUserCommandError = async (output, context) => {
|
|
7313
|
+
const parsedOutput = {
|
|
7314
|
+
...output,
|
|
7315
|
+
body: await parseBody(output.body, context),
|
|
7316
|
+
};
|
|
7317
|
+
let response;
|
|
7318
|
+
let errorCode = "UnknownError";
|
|
7319
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7320
|
+
switch (errorCode) {
|
|
7321
|
+
case "InternalServiceException":
|
|
7322
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7323
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
7324
|
+
case "InvalidParameterException":
|
|
7325
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7326
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
7327
|
+
case "InvalidRequestException":
|
|
7328
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
7329
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
7330
|
+
case "ResourceNotFoundException":
|
|
7331
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7332
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7333
|
+
case "ThrottlingException":
|
|
7334
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7335
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
7336
|
+
default:
|
|
7337
|
+
const parsedBody = parsedOutput.body;
|
|
7338
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
7339
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7340
|
+
$fault: "client",
|
|
7341
|
+
$metadata: deserializeMetadata(output),
|
|
7342
|
+
});
|
|
7343
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7344
|
+
}
|
|
7345
|
+
};
|
|
7346
|
+
const deserializeAws_restJson1DeleteUserHierarchyGroupCommand = async (output, context) => {
|
|
7347
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7348
|
+
return deserializeAws_restJson1DeleteUserHierarchyGroupCommandError(output, context);
|
|
7009
7349
|
}
|
|
7010
7350
|
const contents = {
|
|
7011
7351
|
$metadata: deserializeMetadata(output),
|
|
@@ -8551,6 +8891,103 @@ const deserializeAws_restJson1GetMetricDataCommandError = async (output, context
|
|
|
8551
8891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8552
8892
|
}
|
|
8553
8893
|
};
|
|
8894
|
+
const deserializeAws_restJson1GetTaskTemplateCommand = async (output, context) => {
|
|
8895
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8896
|
+
return deserializeAws_restJson1GetTaskTemplateCommandError(output, context);
|
|
8897
|
+
}
|
|
8898
|
+
const contents = {
|
|
8899
|
+
$metadata: deserializeMetadata(output),
|
|
8900
|
+
Arn: undefined,
|
|
8901
|
+
Constraints: undefined,
|
|
8902
|
+
ContactFlowId: undefined,
|
|
8903
|
+
CreatedTime: undefined,
|
|
8904
|
+
Defaults: undefined,
|
|
8905
|
+
Description: undefined,
|
|
8906
|
+
Fields: undefined,
|
|
8907
|
+
Id: undefined,
|
|
8908
|
+
InstanceId: undefined,
|
|
8909
|
+
LastModifiedTime: undefined,
|
|
8910
|
+
Name: undefined,
|
|
8911
|
+
Status: undefined,
|
|
8912
|
+
Tags: undefined,
|
|
8913
|
+
};
|
|
8914
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8915
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
8916
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
8917
|
+
}
|
|
8918
|
+
if (data.Constraints !== undefined && data.Constraints !== null) {
|
|
8919
|
+
contents.Constraints = deserializeAws_restJson1TaskTemplateConstraints(data.Constraints, context);
|
|
8920
|
+
}
|
|
8921
|
+
if (data.ContactFlowId !== undefined && data.ContactFlowId !== null) {
|
|
8922
|
+
contents.ContactFlowId = (0, smithy_client_1.expectString)(data.ContactFlowId);
|
|
8923
|
+
}
|
|
8924
|
+
if (data.CreatedTime !== undefined && data.CreatedTime !== null) {
|
|
8925
|
+
contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreatedTime)));
|
|
8926
|
+
}
|
|
8927
|
+
if (data.Defaults !== undefined && data.Defaults !== null) {
|
|
8928
|
+
contents.Defaults = deserializeAws_restJson1TaskTemplateDefaults(data.Defaults, context);
|
|
8929
|
+
}
|
|
8930
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
8931
|
+
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
8932
|
+
}
|
|
8933
|
+
if (data.Fields !== undefined && data.Fields !== null) {
|
|
8934
|
+
contents.Fields = deserializeAws_restJson1TaskTemplateFields(data.Fields, context);
|
|
8935
|
+
}
|
|
8936
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
8937
|
+
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
8938
|
+
}
|
|
8939
|
+
if (data.InstanceId !== undefined && data.InstanceId !== null) {
|
|
8940
|
+
contents.InstanceId = (0, smithy_client_1.expectString)(data.InstanceId);
|
|
8941
|
+
}
|
|
8942
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
8943
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
8944
|
+
}
|
|
8945
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
8946
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
8947
|
+
}
|
|
8948
|
+
if (data.Status !== undefined && data.Status !== null) {
|
|
8949
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
8950
|
+
}
|
|
8951
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
8952
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
8953
|
+
}
|
|
8954
|
+
return Promise.resolve(contents);
|
|
8955
|
+
};
|
|
8956
|
+
exports.deserializeAws_restJson1GetTaskTemplateCommand = deserializeAws_restJson1GetTaskTemplateCommand;
|
|
8957
|
+
const deserializeAws_restJson1GetTaskTemplateCommandError = async (output, context) => {
|
|
8958
|
+
const parsedOutput = {
|
|
8959
|
+
...output,
|
|
8960
|
+
body: await parseBody(output.body, context),
|
|
8961
|
+
};
|
|
8962
|
+
let response;
|
|
8963
|
+
let errorCode = "UnknownError";
|
|
8964
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8965
|
+
switch (errorCode) {
|
|
8966
|
+
case "InternalServiceException":
|
|
8967
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8968
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8969
|
+
case "InvalidParameterException":
|
|
8970
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8971
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8972
|
+
case "InvalidRequestException":
|
|
8973
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8974
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8975
|
+
case "ResourceNotFoundException":
|
|
8976
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8977
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8978
|
+
case "ThrottlingException":
|
|
8979
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8980
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8981
|
+
default:
|
|
8982
|
+
const parsedBody = parsedOutput.body;
|
|
8983
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
8984
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8985
|
+
$fault: "client",
|
|
8986
|
+
$metadata: deserializeMetadata(output),
|
|
8987
|
+
});
|
|
8988
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8989
|
+
}
|
|
8990
|
+
};
|
|
8554
8991
|
const deserializeAws_restJson1ListAgentStatusesCommand = async (output, context) => {
|
|
8555
8992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8556
8993
|
return deserializeAws_restJson1ListAgentStatusesCommandError(output, context);
|
|
@@ -9910,6 +10347,59 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
9910
10347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9911
10348
|
}
|
|
9912
10349
|
};
|
|
10350
|
+
const deserializeAws_restJson1ListTaskTemplatesCommand = async (output, context) => {
|
|
10351
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10352
|
+
return deserializeAws_restJson1ListTaskTemplatesCommandError(output, context);
|
|
10353
|
+
}
|
|
10354
|
+
const contents = {
|
|
10355
|
+
$metadata: deserializeMetadata(output),
|
|
10356
|
+
NextToken: undefined,
|
|
10357
|
+
TaskTemplates: undefined,
|
|
10358
|
+
};
|
|
10359
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
10360
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
10361
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
10362
|
+
}
|
|
10363
|
+
if (data.TaskTemplates !== undefined && data.TaskTemplates !== null) {
|
|
10364
|
+
contents.TaskTemplates = deserializeAws_restJson1TaskTemplateList(data.TaskTemplates, context);
|
|
10365
|
+
}
|
|
10366
|
+
return Promise.resolve(contents);
|
|
10367
|
+
};
|
|
10368
|
+
exports.deserializeAws_restJson1ListTaskTemplatesCommand = deserializeAws_restJson1ListTaskTemplatesCommand;
|
|
10369
|
+
const deserializeAws_restJson1ListTaskTemplatesCommandError = async (output, context) => {
|
|
10370
|
+
const parsedOutput = {
|
|
10371
|
+
...output,
|
|
10372
|
+
body: await parseBody(output.body, context),
|
|
10373
|
+
};
|
|
10374
|
+
let response;
|
|
10375
|
+
let errorCode = "UnknownError";
|
|
10376
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10377
|
+
switch (errorCode) {
|
|
10378
|
+
case "InternalServiceException":
|
|
10379
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10380
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
10381
|
+
case "InvalidParameterException":
|
|
10382
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10383
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
10384
|
+
case "InvalidRequestException":
|
|
10385
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10386
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
10387
|
+
case "ResourceNotFoundException":
|
|
10388
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10389
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
10390
|
+
case "ThrottlingException":
|
|
10391
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10392
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
10393
|
+
default:
|
|
10394
|
+
const parsedBody = parsedOutput.body;
|
|
10395
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
10396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10397
|
+
$fault: "client",
|
|
10398
|
+
$metadata: deserializeMetadata(output),
|
|
10399
|
+
});
|
|
10400
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10401
|
+
}
|
|
10402
|
+
};
|
|
9913
10403
|
const deserializeAws_restJson1ListUseCasesCommand = async (output, context) => {
|
|
9914
10404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9915
10405
|
return deserializeAws_restJson1ListUseCasesCommandError(output, context);
|
|
@@ -10826,6 +11316,65 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
10826
11316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10827
11317
|
}
|
|
10828
11318
|
};
|
|
11319
|
+
const deserializeAws_restJson1TransferContactCommand = async (output, context) => {
|
|
11320
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11321
|
+
return deserializeAws_restJson1TransferContactCommandError(output, context);
|
|
11322
|
+
}
|
|
11323
|
+
const contents = {
|
|
11324
|
+
$metadata: deserializeMetadata(output),
|
|
11325
|
+
ContactArn: undefined,
|
|
11326
|
+
ContactId: undefined,
|
|
11327
|
+
};
|
|
11328
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11329
|
+
if (data.ContactArn !== undefined && data.ContactArn !== null) {
|
|
11330
|
+
contents.ContactArn = (0, smithy_client_1.expectString)(data.ContactArn);
|
|
11331
|
+
}
|
|
11332
|
+
if (data.ContactId !== undefined && data.ContactId !== null) {
|
|
11333
|
+
contents.ContactId = (0, smithy_client_1.expectString)(data.ContactId);
|
|
11334
|
+
}
|
|
11335
|
+
return Promise.resolve(contents);
|
|
11336
|
+
};
|
|
11337
|
+
exports.deserializeAws_restJson1TransferContactCommand = deserializeAws_restJson1TransferContactCommand;
|
|
11338
|
+
const deserializeAws_restJson1TransferContactCommandError = async (output, context) => {
|
|
11339
|
+
const parsedOutput = {
|
|
11340
|
+
...output,
|
|
11341
|
+
body: await parseBody(output.body, context),
|
|
11342
|
+
};
|
|
11343
|
+
let response;
|
|
11344
|
+
let errorCode = "UnknownError";
|
|
11345
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11346
|
+
switch (errorCode) {
|
|
11347
|
+
case "AccessDeniedException":
|
|
11348
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
11349
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
11350
|
+
case "IdempotencyException":
|
|
11351
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
11352
|
+
throw await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context);
|
|
11353
|
+
case "InternalServiceException":
|
|
11354
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11355
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
11356
|
+
case "InvalidRequestException":
|
|
11357
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
11358
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
11359
|
+
case "ResourceNotFoundException":
|
|
11360
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11361
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
11362
|
+
case "ServiceQuotaExceededException":
|
|
11363
|
+
case "com.amazonaws.connect#ServiceQuotaExceededException":
|
|
11364
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
11365
|
+
case "ThrottlingException":
|
|
11366
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
11367
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
11368
|
+
default:
|
|
11369
|
+
const parsedBody = parsedOutput.body;
|
|
11370
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
11371
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11372
|
+
$fault: "client",
|
|
11373
|
+
$metadata: deserializeMetadata(output),
|
|
11374
|
+
});
|
|
11375
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11376
|
+
}
|
|
11377
|
+
};
|
|
10829
11378
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
10830
11379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10831
11380
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
@@ -12043,18 +12592,66 @@ const deserializeAws_restJson1UpdateSecurityProfileCommandError = async (output,
|
|
|
12043
12592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12044
12593
|
}
|
|
12045
12594
|
};
|
|
12046
|
-
const
|
|
12595
|
+
const deserializeAws_restJson1UpdateTaskTemplateCommand = async (output, context) => {
|
|
12047
12596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12048
|
-
return
|
|
12597
|
+
return deserializeAws_restJson1UpdateTaskTemplateCommandError(output, context);
|
|
12049
12598
|
}
|
|
12050
12599
|
const contents = {
|
|
12051
12600
|
$metadata: deserializeMetadata(output),
|
|
12601
|
+
Arn: undefined,
|
|
12602
|
+
Constraints: undefined,
|
|
12603
|
+
ContactFlowId: undefined,
|
|
12604
|
+
CreatedTime: undefined,
|
|
12605
|
+
Defaults: undefined,
|
|
12606
|
+
Description: undefined,
|
|
12607
|
+
Fields: undefined,
|
|
12608
|
+
Id: undefined,
|
|
12609
|
+
InstanceId: undefined,
|
|
12610
|
+
LastModifiedTime: undefined,
|
|
12611
|
+
Name: undefined,
|
|
12612
|
+
Status: undefined,
|
|
12052
12613
|
};
|
|
12053
|
-
await
|
|
12614
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
12615
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
12616
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
12617
|
+
}
|
|
12618
|
+
if (data.Constraints !== undefined && data.Constraints !== null) {
|
|
12619
|
+
contents.Constraints = deserializeAws_restJson1TaskTemplateConstraints(data.Constraints, context);
|
|
12620
|
+
}
|
|
12621
|
+
if (data.ContactFlowId !== undefined && data.ContactFlowId !== null) {
|
|
12622
|
+
contents.ContactFlowId = (0, smithy_client_1.expectString)(data.ContactFlowId);
|
|
12623
|
+
}
|
|
12624
|
+
if (data.CreatedTime !== undefined && data.CreatedTime !== null) {
|
|
12625
|
+
contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreatedTime)));
|
|
12626
|
+
}
|
|
12627
|
+
if (data.Defaults !== undefined && data.Defaults !== null) {
|
|
12628
|
+
contents.Defaults = deserializeAws_restJson1TaskTemplateDefaults(data.Defaults, context);
|
|
12629
|
+
}
|
|
12630
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
12631
|
+
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
12632
|
+
}
|
|
12633
|
+
if (data.Fields !== undefined && data.Fields !== null) {
|
|
12634
|
+
contents.Fields = deserializeAws_restJson1TaskTemplateFields(data.Fields, context);
|
|
12635
|
+
}
|
|
12636
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
12637
|
+
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
12638
|
+
}
|
|
12639
|
+
if (data.InstanceId !== undefined && data.InstanceId !== null) {
|
|
12640
|
+
contents.InstanceId = (0, smithy_client_1.expectString)(data.InstanceId);
|
|
12641
|
+
}
|
|
12642
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
12643
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
12644
|
+
}
|
|
12645
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
12646
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
12647
|
+
}
|
|
12648
|
+
if (data.Status !== undefined && data.Status !== null) {
|
|
12649
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
12650
|
+
}
|
|
12054
12651
|
return Promise.resolve(contents);
|
|
12055
12652
|
};
|
|
12056
|
-
exports.
|
|
12057
|
-
const
|
|
12653
|
+
exports.deserializeAws_restJson1UpdateTaskTemplateCommand = deserializeAws_restJson1UpdateTaskTemplateCommand;
|
|
12654
|
+
const deserializeAws_restJson1UpdateTaskTemplateCommandError = async (output, context) => {
|
|
12058
12655
|
const parsedOutput = {
|
|
12059
12656
|
...output,
|
|
12060
12657
|
body: await parseBody(output.body, context),
|
|
@@ -12069,12 +12666,15 @@ const deserializeAws_restJson1UpdateUserHierarchyCommandError = async (output, c
|
|
|
12069
12666
|
case "InvalidParameterException":
|
|
12070
12667
|
case "com.amazonaws.connect#InvalidParameterException":
|
|
12071
12668
|
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
12072
|
-
case "
|
|
12073
|
-
case "com.amazonaws.connect#
|
|
12074
|
-
throw await
|
|
12669
|
+
case "PropertyValidationException":
|
|
12670
|
+
case "com.amazonaws.connect#PropertyValidationException":
|
|
12671
|
+
throw await deserializeAws_restJson1PropertyValidationExceptionResponse(parsedOutput, context);
|
|
12075
12672
|
case "ResourceNotFoundException":
|
|
12076
12673
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12077
12674
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
12675
|
+
case "ServiceQuotaExceededException":
|
|
12676
|
+
case "com.amazonaws.connect#ServiceQuotaExceededException":
|
|
12677
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
12078
12678
|
case "ThrottlingException":
|
|
12079
12679
|
case "com.amazonaws.connect#ThrottlingException":
|
|
12080
12680
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -12088,9 +12688,9 @@ const deserializeAws_restJson1UpdateUserHierarchyCommandError = async (output, c
|
|
|
12088
12688
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12089
12689
|
}
|
|
12090
12690
|
};
|
|
12091
|
-
const
|
|
12691
|
+
const deserializeAws_restJson1UpdateUserHierarchyCommand = async (output, context) => {
|
|
12092
12692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12093
|
-
return
|
|
12693
|
+
return deserializeAws_restJson1UpdateUserHierarchyCommandError(output, context);
|
|
12094
12694
|
}
|
|
12095
12695
|
const contents = {
|
|
12096
12696
|
$metadata: deserializeMetadata(output),
|
|
@@ -12098,8 +12698,8 @@ const deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = async (outpu
|
|
|
12098
12698
|
await collectBody(output.body, context);
|
|
12099
12699
|
return Promise.resolve(contents);
|
|
12100
12700
|
};
|
|
12101
|
-
exports.
|
|
12102
|
-
const
|
|
12701
|
+
exports.deserializeAws_restJson1UpdateUserHierarchyCommand = deserializeAws_restJson1UpdateUserHierarchyCommand;
|
|
12702
|
+
const deserializeAws_restJson1UpdateUserHierarchyCommandError = async (output, context) => {
|
|
12103
12703
|
const parsedOutput = {
|
|
12104
12704
|
...output,
|
|
12105
12705
|
body: await parseBody(output.body, context),
|
|
@@ -12108,9 +12708,6 @@ const deserializeAws_restJson1UpdateUserHierarchyGroupNameCommandError = async (
|
|
|
12108
12708
|
let errorCode = "UnknownError";
|
|
12109
12709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12110
12710
|
switch (errorCode) {
|
|
12111
|
-
case "DuplicateResourceException":
|
|
12112
|
-
case "com.amazonaws.connect#DuplicateResourceException":
|
|
12113
|
-
throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
|
|
12114
12711
|
case "InternalServiceException":
|
|
12115
12712
|
case "com.amazonaws.connect#InternalServiceException":
|
|
12116
12713
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
@@ -12136,9 +12733,9 @@ const deserializeAws_restJson1UpdateUserHierarchyGroupNameCommandError = async (
|
|
|
12136
12733
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12137
12734
|
}
|
|
12138
12735
|
};
|
|
12139
|
-
const
|
|
12736
|
+
const deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = async (output, context) => {
|
|
12140
12737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12141
|
-
return
|
|
12738
|
+
return deserializeAws_restJson1UpdateUserHierarchyGroupNameCommandError(output, context);
|
|
12142
12739
|
}
|
|
12143
12740
|
const contents = {
|
|
12144
12741
|
$metadata: deserializeMetadata(output),
|
|
@@ -12146,8 +12743,56 @@ const deserializeAws_restJson1UpdateUserHierarchyStructureCommand = async (outpu
|
|
|
12146
12743
|
await collectBody(output.body, context);
|
|
12147
12744
|
return Promise.resolve(contents);
|
|
12148
12745
|
};
|
|
12149
|
-
exports.
|
|
12150
|
-
const
|
|
12746
|
+
exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand;
|
|
12747
|
+
const deserializeAws_restJson1UpdateUserHierarchyGroupNameCommandError = async (output, context) => {
|
|
12748
|
+
const parsedOutput = {
|
|
12749
|
+
...output,
|
|
12750
|
+
body: await parseBody(output.body, context),
|
|
12751
|
+
};
|
|
12752
|
+
let response;
|
|
12753
|
+
let errorCode = "UnknownError";
|
|
12754
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12755
|
+
switch (errorCode) {
|
|
12756
|
+
case "DuplicateResourceException":
|
|
12757
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
12758
|
+
throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
|
|
12759
|
+
case "InternalServiceException":
|
|
12760
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12761
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
12762
|
+
case "InvalidParameterException":
|
|
12763
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12764
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
12765
|
+
case "InvalidRequestException":
|
|
12766
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12767
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
12768
|
+
case "ResourceNotFoundException":
|
|
12769
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12770
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
12771
|
+
case "ThrottlingException":
|
|
12772
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12773
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
12774
|
+
default:
|
|
12775
|
+
const parsedBody = parsedOutput.body;
|
|
12776
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
12777
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12778
|
+
$fault: "client",
|
|
12779
|
+
$metadata: deserializeMetadata(output),
|
|
12780
|
+
});
|
|
12781
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12782
|
+
}
|
|
12783
|
+
};
|
|
12784
|
+
const deserializeAws_restJson1UpdateUserHierarchyStructureCommand = async (output, context) => {
|
|
12785
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12786
|
+
return deserializeAws_restJson1UpdateUserHierarchyStructureCommandError(output, context);
|
|
12787
|
+
}
|
|
12788
|
+
const contents = {
|
|
12789
|
+
$metadata: deserializeMetadata(output),
|
|
12790
|
+
};
|
|
12791
|
+
await collectBody(output.body, context);
|
|
12792
|
+
return Promise.resolve(contents);
|
|
12793
|
+
};
|
|
12794
|
+
exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = deserializeAws_restJson1UpdateUserHierarchyStructureCommand;
|
|
12795
|
+
const deserializeAws_restJson1UpdateUserHierarchyStructureCommandError = async (output, context) => {
|
|
12151
12796
|
const parsedOutput = {
|
|
12152
12797
|
...output,
|
|
12153
12798
|
body: await parseBody(output.body, context),
|
|
@@ -12520,6 +13165,21 @@ const deserializeAws_restJson1OutboundContactNotPermittedExceptionResponse = asy
|
|
|
12520
13165
|
});
|
|
12521
13166
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12522
13167
|
};
|
|
13168
|
+
const deserializeAws_restJson1PropertyValidationExceptionResponse = async (parsedOutput, context) => {
|
|
13169
|
+
const contents = {};
|
|
13170
|
+
const data = parsedOutput.body;
|
|
13171
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
13172
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
13173
|
+
}
|
|
13174
|
+
if (data.PropertyList !== undefined && data.PropertyList !== null) {
|
|
13175
|
+
contents.PropertyList = deserializeAws_restJson1PropertyValidationExceptionPropertyList(data.PropertyList, context);
|
|
13176
|
+
}
|
|
13177
|
+
const exception = new models_0_1.PropertyValidationException({
|
|
13178
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13179
|
+
...contents,
|
|
13180
|
+
});
|
|
13181
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
13182
|
+
};
|
|
12523
13183
|
const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
|
|
12524
13184
|
const contents = {};
|
|
12525
13185
|
const data = parsedOutput.body;
|
|
@@ -12801,6 +13461,22 @@ const serializeAws_restJson1InstanceStorageConfig = (input, context) => {
|
|
|
12801
13461
|
...(input.StorageType !== undefined && input.StorageType !== null && { StorageType: input.StorageType }),
|
|
12802
13462
|
};
|
|
12803
13463
|
};
|
|
13464
|
+
const serializeAws_restJson1InvisibleFieldInfo = (input, context) => {
|
|
13465
|
+
return {
|
|
13466
|
+
...(input.Id !== undefined &&
|
|
13467
|
+
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
|
|
13468
|
+
};
|
|
13469
|
+
};
|
|
13470
|
+
const serializeAws_restJson1InvisibleTaskTemplateFields = (input, context) => {
|
|
13471
|
+
return input
|
|
13472
|
+
.filter((e) => e != null)
|
|
13473
|
+
.map((entry) => {
|
|
13474
|
+
if (entry === null) {
|
|
13475
|
+
return null;
|
|
13476
|
+
}
|
|
13477
|
+
return serializeAws_restJson1InvisibleFieldInfo(entry, context);
|
|
13478
|
+
});
|
|
13479
|
+
};
|
|
12804
13480
|
const serializeAws_restJson1KinesisFirehoseConfig = (input, context) => {
|
|
12805
13481
|
return {
|
|
12806
13482
|
...(input.FirehoseArn !== undefined && input.FirehoseArn !== null && { FirehoseArn: input.FirehoseArn }),
|
|
@@ -12943,12 +13619,44 @@ const serializeAws_restJson1QuickConnectsList = (input, context) => {
|
|
|
12943
13619
|
return entry;
|
|
12944
13620
|
});
|
|
12945
13621
|
};
|
|
13622
|
+
const serializeAws_restJson1ReadOnlyFieldInfo = (input, context) => {
|
|
13623
|
+
return {
|
|
13624
|
+
...(input.Id !== undefined &&
|
|
13625
|
+
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
|
|
13626
|
+
};
|
|
13627
|
+
};
|
|
13628
|
+
const serializeAws_restJson1ReadOnlyTaskTemplateFields = (input, context) => {
|
|
13629
|
+
return input
|
|
13630
|
+
.filter((e) => e != null)
|
|
13631
|
+
.map((entry) => {
|
|
13632
|
+
if (entry === null) {
|
|
13633
|
+
return null;
|
|
13634
|
+
}
|
|
13635
|
+
return serializeAws_restJson1ReadOnlyFieldInfo(entry, context);
|
|
13636
|
+
});
|
|
13637
|
+
};
|
|
12946
13638
|
const serializeAws_restJson1Reference = (input, context) => {
|
|
12947
13639
|
return {
|
|
12948
13640
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
12949
13641
|
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
12950
13642
|
};
|
|
12951
13643
|
};
|
|
13644
|
+
const serializeAws_restJson1RequiredFieldInfo = (input, context) => {
|
|
13645
|
+
return {
|
|
13646
|
+
...(input.Id !== undefined &&
|
|
13647
|
+
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
|
|
13648
|
+
};
|
|
13649
|
+
};
|
|
13650
|
+
const serializeAws_restJson1RequiredTaskTemplateFields = (input, context) => {
|
|
13651
|
+
return input
|
|
13652
|
+
.filter((e) => e != null)
|
|
13653
|
+
.map((entry) => {
|
|
13654
|
+
if (entry === null) {
|
|
13655
|
+
return null;
|
|
13656
|
+
}
|
|
13657
|
+
return serializeAws_restJson1RequiredFieldInfo(entry, context);
|
|
13658
|
+
});
|
|
13659
|
+
};
|
|
12952
13660
|
const serializeAws_restJson1RoutingProfileQueueConfig = (input, context) => {
|
|
12953
13661
|
return {
|
|
12954
13662
|
...(input.Delay !== undefined && input.Delay !== null && { Delay: input.Delay }),
|
|
@@ -13005,6 +13713,16 @@ const serializeAws_restJson1SecurityProfileIds = (input, context) => {
|
|
|
13005
13713
|
return entry;
|
|
13006
13714
|
});
|
|
13007
13715
|
};
|
|
13716
|
+
const serializeAws_restJson1SingleSelectOptions = (input, context) => {
|
|
13717
|
+
return input
|
|
13718
|
+
.filter((e) => e != null)
|
|
13719
|
+
.map((entry) => {
|
|
13720
|
+
if (entry === null) {
|
|
13721
|
+
return null;
|
|
13722
|
+
}
|
|
13723
|
+
return entry;
|
|
13724
|
+
});
|
|
13725
|
+
};
|
|
13008
13726
|
const serializeAws_restJson1StringCondition = (input, context) => {
|
|
13009
13727
|
return {
|
|
13010
13728
|
...(input.ComparisonType !== undefined &&
|
|
@@ -13060,6 +13778,74 @@ const serializeAws_restJson1TagOrConditionList = (input, context) => {
|
|
|
13060
13778
|
return serializeAws_restJson1TagAndConditionList(entry, context);
|
|
13061
13779
|
});
|
|
13062
13780
|
};
|
|
13781
|
+
const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
|
|
13782
|
+
return {
|
|
13783
|
+
...(input.InvisibleFields !== undefined &&
|
|
13784
|
+
input.InvisibleFields !== null && {
|
|
13785
|
+
InvisibleFields: serializeAws_restJson1InvisibleTaskTemplateFields(input.InvisibleFields, context),
|
|
13786
|
+
}),
|
|
13787
|
+
...(input.ReadOnlyFields !== undefined &&
|
|
13788
|
+
input.ReadOnlyFields !== null && {
|
|
13789
|
+
ReadOnlyFields: serializeAws_restJson1ReadOnlyTaskTemplateFields(input.ReadOnlyFields, context),
|
|
13790
|
+
}),
|
|
13791
|
+
...(input.RequiredFields !== undefined &&
|
|
13792
|
+
input.RequiredFields !== null && {
|
|
13793
|
+
RequiredFields: serializeAws_restJson1RequiredTaskTemplateFields(input.RequiredFields, context),
|
|
13794
|
+
}),
|
|
13795
|
+
};
|
|
13796
|
+
};
|
|
13797
|
+
const serializeAws_restJson1TaskTemplateDefaultFieldValue = (input, context) => {
|
|
13798
|
+
return {
|
|
13799
|
+
...(input.DefaultValue !== undefined && input.DefaultValue !== null && { DefaultValue: input.DefaultValue }),
|
|
13800
|
+
...(input.Id !== undefined &&
|
|
13801
|
+
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
|
|
13802
|
+
};
|
|
13803
|
+
};
|
|
13804
|
+
const serializeAws_restJson1TaskTemplateDefaultFieldValueList = (input, context) => {
|
|
13805
|
+
return input
|
|
13806
|
+
.filter((e) => e != null)
|
|
13807
|
+
.map((entry) => {
|
|
13808
|
+
if (entry === null) {
|
|
13809
|
+
return null;
|
|
13810
|
+
}
|
|
13811
|
+
return serializeAws_restJson1TaskTemplateDefaultFieldValue(entry, context);
|
|
13812
|
+
});
|
|
13813
|
+
};
|
|
13814
|
+
const serializeAws_restJson1TaskTemplateDefaults = (input, context) => {
|
|
13815
|
+
return {
|
|
13816
|
+
...(input.DefaultFieldValues !== undefined &&
|
|
13817
|
+
input.DefaultFieldValues !== null && {
|
|
13818
|
+
DefaultFieldValues: serializeAws_restJson1TaskTemplateDefaultFieldValueList(input.DefaultFieldValues, context),
|
|
13819
|
+
}),
|
|
13820
|
+
};
|
|
13821
|
+
};
|
|
13822
|
+
const serializeAws_restJson1TaskTemplateField = (input, context) => {
|
|
13823
|
+
return {
|
|
13824
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
13825
|
+
...(input.Id !== undefined &&
|
|
13826
|
+
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
|
|
13827
|
+
...(input.SingleSelectOptions !== undefined &&
|
|
13828
|
+
input.SingleSelectOptions !== null && {
|
|
13829
|
+
SingleSelectOptions: serializeAws_restJson1SingleSelectOptions(input.SingleSelectOptions, context),
|
|
13830
|
+
}),
|
|
13831
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
13832
|
+
};
|
|
13833
|
+
};
|
|
13834
|
+
const serializeAws_restJson1TaskTemplateFieldIdentifier = (input, context) => {
|
|
13835
|
+
return {
|
|
13836
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
13837
|
+
};
|
|
13838
|
+
};
|
|
13839
|
+
const serializeAws_restJson1TaskTemplateFields = (input, context) => {
|
|
13840
|
+
return input
|
|
13841
|
+
.filter((e) => e != null)
|
|
13842
|
+
.map((entry) => {
|
|
13843
|
+
if (entry === null) {
|
|
13844
|
+
return null;
|
|
13845
|
+
}
|
|
13846
|
+
return serializeAws_restJson1TaskTemplateField(entry, context);
|
|
13847
|
+
});
|
|
13848
|
+
};
|
|
13063
13849
|
const serializeAws_restJson1Threshold = (input, context) => {
|
|
13064
13850
|
return {
|
|
13065
13851
|
...(input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison }),
|
|
@@ -13398,6 +14184,12 @@ const deserializeAws_restJson1CurrentMetricResults = (output, context) => {
|
|
|
13398
14184
|
});
|
|
13399
14185
|
return retVal;
|
|
13400
14186
|
};
|
|
14187
|
+
const deserializeAws_restJson1DateReference = (output, context) => {
|
|
14188
|
+
return {
|
|
14189
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
14190
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
14191
|
+
};
|
|
14192
|
+
};
|
|
13401
14193
|
const deserializeAws_restJson1DefaultVocabulary = (output, context) => {
|
|
13402
14194
|
return {
|
|
13403
14195
|
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
@@ -13425,6 +14217,12 @@ const deserializeAws_restJson1Dimensions = (output, context) => {
|
|
|
13425
14217
|
: undefined,
|
|
13426
14218
|
};
|
|
13427
14219
|
};
|
|
14220
|
+
const deserializeAws_restJson1EmailReference = (output, context) => {
|
|
14221
|
+
return {
|
|
14222
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
14223
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
14224
|
+
};
|
|
14225
|
+
};
|
|
13428
14226
|
const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
13429
14227
|
return {
|
|
13430
14228
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
@@ -13731,6 +14529,24 @@ const deserializeAws_restJson1IntegrationAssociationSummaryList = (output, conte
|
|
|
13731
14529
|
});
|
|
13732
14530
|
return retVal;
|
|
13733
14531
|
};
|
|
14532
|
+
const deserializeAws_restJson1InvisibleFieldInfo = (output, context) => {
|
|
14533
|
+
return {
|
|
14534
|
+
Id: output.Id !== undefined && output.Id !== null
|
|
14535
|
+
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
14536
|
+
: undefined,
|
|
14537
|
+
};
|
|
14538
|
+
};
|
|
14539
|
+
const deserializeAws_restJson1InvisibleTaskTemplateFields = (output, context) => {
|
|
14540
|
+
const retVal = (output || [])
|
|
14541
|
+
.filter((e) => e != null)
|
|
14542
|
+
.map((entry) => {
|
|
14543
|
+
if (entry === null) {
|
|
14544
|
+
return null;
|
|
14545
|
+
}
|
|
14546
|
+
return deserializeAws_restJson1InvisibleFieldInfo(entry, context);
|
|
14547
|
+
});
|
|
14548
|
+
return retVal;
|
|
14549
|
+
};
|
|
13734
14550
|
const deserializeAws_restJson1KinesisFirehoseConfig = (output, context) => {
|
|
13735
14551
|
return {
|
|
13736
14552
|
FirehoseArn: (0, smithy_client_1.expectString)(output.FirehoseArn),
|
|
@@ -13831,6 +14647,12 @@ const deserializeAws_restJson1MediaConcurrency = (output, context) => {
|
|
|
13831
14647
|
Concurrency: (0, smithy_client_1.expectInt32)(output.Concurrency),
|
|
13832
14648
|
};
|
|
13833
14649
|
};
|
|
14650
|
+
const deserializeAws_restJson1NumberReference = (output, context) => {
|
|
14651
|
+
return {
|
|
14652
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
14653
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
14654
|
+
};
|
|
14655
|
+
};
|
|
13834
14656
|
const deserializeAws_restJson1OriginsList = (output, context) => {
|
|
13835
14657
|
const retVal = (output || [])
|
|
13836
14658
|
.filter((e) => e != null)
|
|
@@ -13925,6 +14747,24 @@ const deserializeAws_restJson1PromptSummaryList = (output, context) => {
|
|
|
13925
14747
|
});
|
|
13926
14748
|
return retVal;
|
|
13927
14749
|
};
|
|
14750
|
+
const deserializeAws_restJson1PropertyValidationExceptionProperty = (output, context) => {
|
|
14751
|
+
return {
|
|
14752
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
14753
|
+
PropertyPath: (0, smithy_client_1.expectString)(output.PropertyPath),
|
|
14754
|
+
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
14755
|
+
};
|
|
14756
|
+
};
|
|
14757
|
+
const deserializeAws_restJson1PropertyValidationExceptionPropertyList = (output, context) => {
|
|
14758
|
+
const retVal = (output || [])
|
|
14759
|
+
.filter((e) => e != null)
|
|
14760
|
+
.map((entry) => {
|
|
14761
|
+
if (entry === null) {
|
|
14762
|
+
return null;
|
|
14763
|
+
}
|
|
14764
|
+
return deserializeAws_restJson1PropertyValidationExceptionProperty(entry, context);
|
|
14765
|
+
});
|
|
14766
|
+
return retVal;
|
|
14767
|
+
};
|
|
13928
14768
|
const deserializeAws_restJson1Queue = (output, context) => {
|
|
13929
14769
|
return {
|
|
13930
14770
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -14028,12 +14868,50 @@ const deserializeAws_restJson1QuickConnectSummaryList = (output, context) => {
|
|
|
14028
14868
|
});
|
|
14029
14869
|
return retVal;
|
|
14030
14870
|
};
|
|
14871
|
+
const deserializeAws_restJson1ReadOnlyFieldInfo = (output, context) => {
|
|
14872
|
+
return {
|
|
14873
|
+
Id: output.Id !== undefined && output.Id !== null
|
|
14874
|
+
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
14875
|
+
: undefined,
|
|
14876
|
+
};
|
|
14877
|
+
};
|
|
14878
|
+
const deserializeAws_restJson1ReadOnlyTaskTemplateFields = (output, context) => {
|
|
14879
|
+
const retVal = (output || [])
|
|
14880
|
+
.filter((e) => e != null)
|
|
14881
|
+
.map((entry) => {
|
|
14882
|
+
if (entry === null) {
|
|
14883
|
+
return null;
|
|
14884
|
+
}
|
|
14885
|
+
return deserializeAws_restJson1ReadOnlyFieldInfo(entry, context);
|
|
14886
|
+
});
|
|
14887
|
+
return retVal;
|
|
14888
|
+
};
|
|
14031
14889
|
const deserializeAws_restJson1ReferenceSummary = (output, context) => {
|
|
14032
14890
|
if (output.Attachment !== undefined && output.Attachment !== null) {
|
|
14033
14891
|
return {
|
|
14034
14892
|
Attachment: deserializeAws_restJson1AttachmentReference(output.Attachment, context),
|
|
14035
14893
|
};
|
|
14036
14894
|
}
|
|
14895
|
+
if (output.Date !== undefined && output.Date !== null) {
|
|
14896
|
+
return {
|
|
14897
|
+
Date: deserializeAws_restJson1DateReference(output.Date, context),
|
|
14898
|
+
};
|
|
14899
|
+
}
|
|
14900
|
+
if (output.Email !== undefined && output.Email !== null) {
|
|
14901
|
+
return {
|
|
14902
|
+
Email: deserializeAws_restJson1EmailReference(output.Email, context),
|
|
14903
|
+
};
|
|
14904
|
+
}
|
|
14905
|
+
if (output.Number !== undefined && output.Number !== null) {
|
|
14906
|
+
return {
|
|
14907
|
+
Number: deserializeAws_restJson1NumberReference(output.Number, context),
|
|
14908
|
+
};
|
|
14909
|
+
}
|
|
14910
|
+
if (output.String !== undefined && output.String !== null) {
|
|
14911
|
+
return {
|
|
14912
|
+
String: deserializeAws_restJson1StringReference(output.String, context),
|
|
14913
|
+
};
|
|
14914
|
+
}
|
|
14037
14915
|
if (output.Url !== undefined && output.Url !== null) {
|
|
14038
14916
|
return {
|
|
14039
14917
|
Url: deserializeAws_restJson1UrlReference(output.Url, context),
|
|
@@ -14052,6 +14930,24 @@ const deserializeAws_restJson1ReferenceSummaryList = (output, context) => {
|
|
|
14052
14930
|
});
|
|
14053
14931
|
return retVal;
|
|
14054
14932
|
};
|
|
14933
|
+
const deserializeAws_restJson1RequiredFieldInfo = (output, context) => {
|
|
14934
|
+
return {
|
|
14935
|
+
Id: output.Id !== undefined && output.Id !== null
|
|
14936
|
+
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
14937
|
+
: undefined,
|
|
14938
|
+
};
|
|
14939
|
+
};
|
|
14940
|
+
const deserializeAws_restJson1RequiredTaskTemplateFields = (output, context) => {
|
|
14941
|
+
const retVal = (output || [])
|
|
14942
|
+
.filter((e) => e != null)
|
|
14943
|
+
.map((entry) => {
|
|
14944
|
+
if (entry === null) {
|
|
14945
|
+
return null;
|
|
14946
|
+
}
|
|
14947
|
+
return deserializeAws_restJson1RequiredFieldInfo(entry, context);
|
|
14948
|
+
});
|
|
14949
|
+
return retVal;
|
|
14950
|
+
};
|
|
14055
14951
|
const deserializeAws_restJson1RoutingProfile = (output, context) => {
|
|
14056
14952
|
return {
|
|
14057
14953
|
DefaultOutboundQueueId: (0, smithy_client_1.expectString)(output.DefaultOutboundQueueId),
|
|
@@ -14177,6 +15073,23 @@ const deserializeAws_restJson1SecurityProfileSummaryList = (output, context) =>
|
|
|
14177
15073
|
});
|
|
14178
15074
|
return retVal;
|
|
14179
15075
|
};
|
|
15076
|
+
const deserializeAws_restJson1SingleSelectOptions = (output, context) => {
|
|
15077
|
+
const retVal = (output || [])
|
|
15078
|
+
.filter((e) => e != null)
|
|
15079
|
+
.map((entry) => {
|
|
15080
|
+
if (entry === null) {
|
|
15081
|
+
return null;
|
|
15082
|
+
}
|
|
15083
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
15084
|
+
});
|
|
15085
|
+
return retVal;
|
|
15086
|
+
};
|
|
15087
|
+
const deserializeAws_restJson1StringReference = (output, context) => {
|
|
15088
|
+
return {
|
|
15089
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
15090
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
15091
|
+
};
|
|
15092
|
+
};
|
|
14180
15093
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
14181
15094
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
14182
15095
|
if (value === null) {
|
|
@@ -14188,6 +15101,99 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
14188
15101
|
};
|
|
14189
15102
|
}, {});
|
|
14190
15103
|
};
|
|
15104
|
+
const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
|
|
15105
|
+
return {
|
|
15106
|
+
InvisibleFields: output.InvisibleFields !== undefined && output.InvisibleFields !== null
|
|
15107
|
+
? deserializeAws_restJson1InvisibleTaskTemplateFields(output.InvisibleFields, context)
|
|
15108
|
+
: undefined,
|
|
15109
|
+
ReadOnlyFields: output.ReadOnlyFields !== undefined && output.ReadOnlyFields !== null
|
|
15110
|
+
? deserializeAws_restJson1ReadOnlyTaskTemplateFields(output.ReadOnlyFields, context)
|
|
15111
|
+
: undefined,
|
|
15112
|
+
RequiredFields: output.RequiredFields !== undefined && output.RequiredFields !== null
|
|
15113
|
+
? deserializeAws_restJson1RequiredTaskTemplateFields(output.RequiredFields, context)
|
|
15114
|
+
: undefined,
|
|
15115
|
+
};
|
|
15116
|
+
};
|
|
15117
|
+
const deserializeAws_restJson1TaskTemplateDefaultFieldValue = (output, context) => {
|
|
15118
|
+
return {
|
|
15119
|
+
DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
|
|
15120
|
+
Id: output.Id !== undefined && output.Id !== null
|
|
15121
|
+
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
15122
|
+
: undefined,
|
|
15123
|
+
};
|
|
15124
|
+
};
|
|
15125
|
+
const deserializeAws_restJson1TaskTemplateDefaultFieldValueList = (output, context) => {
|
|
15126
|
+
const retVal = (output || [])
|
|
15127
|
+
.filter((e) => e != null)
|
|
15128
|
+
.map((entry) => {
|
|
15129
|
+
if (entry === null) {
|
|
15130
|
+
return null;
|
|
15131
|
+
}
|
|
15132
|
+
return deserializeAws_restJson1TaskTemplateDefaultFieldValue(entry, context);
|
|
15133
|
+
});
|
|
15134
|
+
return retVal;
|
|
15135
|
+
};
|
|
15136
|
+
const deserializeAws_restJson1TaskTemplateDefaults = (output, context) => {
|
|
15137
|
+
return {
|
|
15138
|
+
DefaultFieldValues: output.DefaultFieldValues !== undefined && output.DefaultFieldValues !== null
|
|
15139
|
+
? deserializeAws_restJson1TaskTemplateDefaultFieldValueList(output.DefaultFieldValues, context)
|
|
15140
|
+
: undefined,
|
|
15141
|
+
};
|
|
15142
|
+
};
|
|
15143
|
+
const deserializeAws_restJson1TaskTemplateField = (output, context) => {
|
|
15144
|
+
return {
|
|
15145
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
15146
|
+
Id: output.Id !== undefined && output.Id !== null
|
|
15147
|
+
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
15148
|
+
: undefined,
|
|
15149
|
+
SingleSelectOptions: output.SingleSelectOptions !== undefined && output.SingleSelectOptions !== null
|
|
15150
|
+
? deserializeAws_restJson1SingleSelectOptions(output.SingleSelectOptions, context)
|
|
15151
|
+
: undefined,
|
|
15152
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
15153
|
+
};
|
|
15154
|
+
};
|
|
15155
|
+
const deserializeAws_restJson1TaskTemplateFieldIdentifier = (output, context) => {
|
|
15156
|
+
return {
|
|
15157
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
15158
|
+
};
|
|
15159
|
+
};
|
|
15160
|
+
const deserializeAws_restJson1TaskTemplateFields = (output, context) => {
|
|
15161
|
+
const retVal = (output || [])
|
|
15162
|
+
.filter((e) => e != null)
|
|
15163
|
+
.map((entry) => {
|
|
15164
|
+
if (entry === null) {
|
|
15165
|
+
return null;
|
|
15166
|
+
}
|
|
15167
|
+
return deserializeAws_restJson1TaskTemplateField(entry, context);
|
|
15168
|
+
});
|
|
15169
|
+
return retVal;
|
|
15170
|
+
};
|
|
15171
|
+
const deserializeAws_restJson1TaskTemplateList = (output, context) => {
|
|
15172
|
+
const retVal = (output || [])
|
|
15173
|
+
.filter((e) => e != null)
|
|
15174
|
+
.map((entry) => {
|
|
15175
|
+
if (entry === null) {
|
|
15176
|
+
return null;
|
|
15177
|
+
}
|
|
15178
|
+
return deserializeAws_restJson1TaskTemplateMetadata(entry, context);
|
|
15179
|
+
});
|
|
15180
|
+
return retVal;
|
|
15181
|
+
};
|
|
15182
|
+
const deserializeAws_restJson1TaskTemplateMetadata = (output, context) => {
|
|
15183
|
+
return {
|
|
15184
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
15185
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
15186
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
15187
|
+
: undefined,
|
|
15188
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
15189
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
15190
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
15191
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
15192
|
+
: undefined,
|
|
15193
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
15194
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
15195
|
+
};
|
|
15196
|
+
};
|
|
14191
15197
|
const deserializeAws_restJson1Threshold = (output, context) => {
|
|
14192
15198
|
return {
|
|
14193
15199
|
Comparison: (0, smithy_client_1.expectString)(output.Comparison),
|