@aws-sdk/client-connect 3.398.0 → 3.405.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist-cjs/Connect.js +18 -0
- package/dist-cjs/commands/CreateViewCommand.js +47 -0
- package/dist-cjs/commands/CreateViewVersionCommand.js +47 -0
- package/dist-cjs/commands/DeleteViewCommand.js +46 -0
- package/dist-cjs/commands/DeleteViewVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeViewCommand.js +47 -0
- package/dist-cjs/commands/ListViewVersionsCommand.js +47 -0
- package/dist-cjs/commands/ListViewsCommand.js +47 -0
- package/dist-cjs/commands/UpdateViewContentCommand.js +47 -0
- package/dist-cjs/commands/UpdateViewMetadataCommand.js +47 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +66 -6
- package/dist-cjs/models/models_1.js +25 -1
- package/dist-cjs/models/models_2.js +18 -1
- package/dist-cjs/pagination/ListViewVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListViewsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +713 -20
- package/dist-es/Connect.js +18 -0
- package/dist-es/commands/CreateViewCommand.js +43 -0
- package/dist-es/commands/CreateViewVersionCommand.js +43 -0
- package/dist-es/commands/DeleteViewCommand.js +42 -0
- package/dist-es/commands/DeleteViewVersionCommand.js +42 -0
- package/dist-es/commands/DescribeViewCommand.js +43 -0
- package/dist-es/commands/ListViewVersionsCommand.js +43 -0
- package/dist-es/commands/ListViewsCommand.js +43 -0
- package/dist-es/commands/UpdateViewContentCommand.js +43 -0
- package/dist-es/commands/UpdateViewMetadataCommand.js +43 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +57 -5
- package/dist-es/models/models_1.js +20 -0
- package/dist-es/models/models_2.js +14 -0
- package/dist-es/pagination/ListViewVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListViewsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +687 -13
- package/dist-types/Connect.d.ts +63 -0
- package/dist-types/ConnectClient.d.ts +11 -2
- package/dist-types/commands/CreateQueueCommand.d.ts +20 -13
- package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +8 -0
- package/dist-types/commands/CreateViewCommand.d.ts +140 -0
- package/dist-types/commands/CreateViewVersionCommand.d.ts +126 -0
- package/dist-types/commands/DeleteViewCommand.d.ts +93 -0
- package/dist-types/commands/DeleteViewVersionCommand.d.ts +94 -0
- package/dist-types/commands/DescribeViewCommand.d.ts +121 -0
- package/dist-types/commands/DescribeVocabularyCommand.d.ts +2 -1
- package/dist-types/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateBotCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLexBotCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
- package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
- package/dist-types/commands/GetContactAttributesCommand.d.ts +1 -2
- package/dist-types/commands/ListPhoneNumbersCommand.d.ts +14 -4
- package/dist-types/commands/ListViewVersionsCommand.d.ts +106 -0
- package/dist-types/commands/ListViewsCommand.d.ts +105 -0
- package/dist-types/commands/StopContactCommand.d.ts +5 -3
- package/dist-types/commands/UpdatePromptCommand.d.ts +2 -1
- package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +21 -14
- package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +6 -3
- package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateViewContentCommand.d.ts +127 -0
- package/dist-types/commands/UpdateViewMetadataCommand.d.ts +99 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +359 -317
- package/dist-types/models/models_1.d.ts +478 -553
- package/dist-types/models/models_2.d.ts +632 -2
- package/dist-types/pagination/ListViewVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListViewsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Connect.d.ts +153 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +56 -2
- package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateBotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateLexBotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetContactAttributesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListViewVersionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +117 -90
- package/dist-types/ts3.4/models/models_1.d.ts +121 -135
- package/dist-types/ts3.4/models/models_2.d.ts +171 -1
- package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +7 -7
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
3
|
+
exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteRoutingProfileCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteQueueCommand = exports.se_DeletePromptCommand = exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateViewVersionCommand = exports.se_CreateViewCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreatePromptCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_AssociateTrafficDistributionGroupUserCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_ActivateEvaluationFormCommand = void 0;
|
|
4
|
+
exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateTrafficDistributionGroupUserCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeViewCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePromptCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteViewVersionCommand = exports.se_DeleteViewCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = void 0;
|
|
5
|
+
exports.se_SearchRoutingProfilesCommand = exports.se_SearchResourceTagsCommand = exports.se_SearchQuickConnectsCommand = exports.se_SearchQueuesCommand = exports.se_SearchPromptsCommand = exports.se_SearchHoursOfOperationsCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListViewVersionsCommand = exports.se_ListViewsCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupUsersCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAgentStatusesCommand = void 0;
|
|
6
|
+
exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = void 0;
|
|
7
|
+
exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateViewVersionCommand = exports.de_CreateViewCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreatePromptCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateTrafficDistributionGroupUserCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateViewMetadataCommand = exports.se_UpdateViewContentCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = void 0;
|
|
8
|
+
exports.de_DismissUserContactCommand = exports.de_DisassociateTrafficDistributionGroupUserCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeViewCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePromptCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteViewVersionCommand = exports.de_DeleteViewCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteRoutingProfileCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteQueueCommand = exports.de_DeletePromptCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = void 0;
|
|
9
|
+
exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListViewVersionsCommand = exports.de_ListViewsCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupUsersCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = void 0;
|
|
10
|
+
exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchResourceTagsCommand = exports.de_SearchQuickConnectsCommand = exports.de_SearchQueuesCommand = exports.de_SearchPromptsCommand = exports.de_SearchHoursOfOperationsCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = void 0;
|
|
11
|
+
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = void 0;
|
|
11
12
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
12
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
14
|
const uuid_1 = require("uuid");
|
|
@@ -819,6 +820,57 @@ const se_CreateUserHierarchyGroupCommand = async (input, context) => {
|
|
|
819
820
|
});
|
|
820
821
|
};
|
|
821
822
|
exports.se_CreateUserHierarchyGroupCommand = se_CreateUserHierarchyGroupCommand;
|
|
823
|
+
const se_CreateViewCommand = async (input, context) => {
|
|
824
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
825
|
+
const headers = {
|
|
826
|
+
"content-type": "application/json",
|
|
827
|
+
};
|
|
828
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}";
|
|
829
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
830
|
+
let body;
|
|
831
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
832
|
+
ClientToken: [],
|
|
833
|
+
Content: (_) => (0, smithy_client_1._json)(_),
|
|
834
|
+
Description: [],
|
|
835
|
+
Name: [],
|
|
836
|
+
Status: [],
|
|
837
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
838
|
+
}));
|
|
839
|
+
return new protocol_http_1.HttpRequest({
|
|
840
|
+
protocol,
|
|
841
|
+
hostname,
|
|
842
|
+
port,
|
|
843
|
+
method: "PUT",
|
|
844
|
+
headers,
|
|
845
|
+
path: resolvedPath,
|
|
846
|
+
body,
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
exports.se_CreateViewCommand = se_CreateViewCommand;
|
|
850
|
+
const se_CreateViewVersionCommand = async (input, context) => {
|
|
851
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
852
|
+
const headers = {
|
|
853
|
+
"content-type": "application/json",
|
|
854
|
+
};
|
|
855
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions";
|
|
856
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
857
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
858
|
+
let body;
|
|
859
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
860
|
+
VersionDescription: [],
|
|
861
|
+
ViewContentSha256: [],
|
|
862
|
+
}));
|
|
863
|
+
return new protocol_http_1.HttpRequest({
|
|
864
|
+
protocol,
|
|
865
|
+
hostname,
|
|
866
|
+
port,
|
|
867
|
+
method: "PUT",
|
|
868
|
+
headers,
|
|
869
|
+
path: resolvedPath,
|
|
870
|
+
body,
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
exports.se_CreateViewVersionCommand = se_CreateViewVersionCommand;
|
|
822
874
|
const se_CreateVocabularyCommand = async (input, context) => {
|
|
823
875
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
824
876
|
const headers = {
|
|
@@ -1209,6 +1261,44 @@ const se_DeleteUserHierarchyGroupCommand = async (input, context) => {
|
|
|
1209
1261
|
});
|
|
1210
1262
|
};
|
|
1211
1263
|
exports.se_DeleteUserHierarchyGroupCommand = se_DeleteUserHierarchyGroupCommand;
|
|
1264
|
+
const se_DeleteViewCommand = async (input, context) => {
|
|
1265
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1266
|
+
const headers = {};
|
|
1267
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
|
|
1268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1269
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
1270
|
+
let body;
|
|
1271
|
+
return new protocol_http_1.HttpRequest({
|
|
1272
|
+
protocol,
|
|
1273
|
+
hostname,
|
|
1274
|
+
port,
|
|
1275
|
+
method: "DELETE",
|
|
1276
|
+
headers,
|
|
1277
|
+
path: resolvedPath,
|
|
1278
|
+
body,
|
|
1279
|
+
});
|
|
1280
|
+
};
|
|
1281
|
+
exports.se_DeleteViewCommand = se_DeleteViewCommand;
|
|
1282
|
+
const se_DeleteViewVersionCommand = async (input, context) => {
|
|
1283
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1284
|
+
const headers = {};
|
|
1285
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1286
|
+
"/views/{InstanceId}/{ViewId}/versions/{ViewVersion}";
|
|
1287
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1288
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
1289
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewVersion", () => input.ViewVersion.toString(), "{ViewVersion}", false);
|
|
1290
|
+
let body;
|
|
1291
|
+
return new protocol_http_1.HttpRequest({
|
|
1292
|
+
protocol,
|
|
1293
|
+
hostname,
|
|
1294
|
+
port,
|
|
1295
|
+
method: "DELETE",
|
|
1296
|
+
headers,
|
|
1297
|
+
path: resolvedPath,
|
|
1298
|
+
body,
|
|
1299
|
+
});
|
|
1300
|
+
};
|
|
1301
|
+
exports.se_DeleteViewVersionCommand = se_DeleteViewVersionCommand;
|
|
1212
1302
|
const se_DeleteVocabularyCommand = async (input, context) => {
|
|
1213
1303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1214
1304
|
const headers = {};
|
|
@@ -1623,6 +1713,24 @@ const se_DescribeUserHierarchyStructureCommand = async (input, context) => {
|
|
|
1623
1713
|
});
|
|
1624
1714
|
};
|
|
1625
1715
|
exports.se_DescribeUserHierarchyStructureCommand = se_DescribeUserHierarchyStructureCommand;
|
|
1716
|
+
const se_DescribeViewCommand = async (input, context) => {
|
|
1717
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1718
|
+
const headers = {};
|
|
1719
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
|
|
1720
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1721
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
1722
|
+
let body;
|
|
1723
|
+
return new protocol_http_1.HttpRequest({
|
|
1724
|
+
protocol,
|
|
1725
|
+
hostname,
|
|
1726
|
+
port,
|
|
1727
|
+
method: "GET",
|
|
1728
|
+
headers,
|
|
1729
|
+
path: resolvedPath,
|
|
1730
|
+
body,
|
|
1731
|
+
});
|
|
1732
|
+
};
|
|
1733
|
+
exports.se_DescribeViewCommand = se_DescribeViewCommand;
|
|
1626
1734
|
const se_DescribeVocabularyCommand = async (input, context) => {
|
|
1627
1735
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1628
1736
|
const headers = {};
|
|
@@ -2927,6 +3035,52 @@ const se_ListUsersCommand = async (input, context) => {
|
|
|
2927
3035
|
});
|
|
2928
3036
|
};
|
|
2929
3037
|
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
3038
|
+
const se_ListViewsCommand = async (input, context) => {
|
|
3039
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3040
|
+
const headers = {};
|
|
3041
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}";
|
|
3042
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3043
|
+
const query = (0, smithy_client_1.map)({
|
|
3044
|
+
type: [, input.Type],
|
|
3045
|
+
nextToken: [, input.NextToken],
|
|
3046
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
3047
|
+
});
|
|
3048
|
+
let body;
|
|
3049
|
+
return new protocol_http_1.HttpRequest({
|
|
3050
|
+
protocol,
|
|
3051
|
+
hostname,
|
|
3052
|
+
port,
|
|
3053
|
+
method: "GET",
|
|
3054
|
+
headers,
|
|
3055
|
+
path: resolvedPath,
|
|
3056
|
+
query,
|
|
3057
|
+
body,
|
|
3058
|
+
});
|
|
3059
|
+
};
|
|
3060
|
+
exports.se_ListViewsCommand = se_ListViewsCommand;
|
|
3061
|
+
const se_ListViewVersionsCommand = async (input, context) => {
|
|
3062
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3063
|
+
const headers = {};
|
|
3064
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions";
|
|
3065
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3066
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
3067
|
+
const query = (0, smithy_client_1.map)({
|
|
3068
|
+
nextToken: [, input.NextToken],
|
|
3069
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
3070
|
+
});
|
|
3071
|
+
let body;
|
|
3072
|
+
return new protocol_http_1.HttpRequest({
|
|
3073
|
+
protocol,
|
|
3074
|
+
hostname,
|
|
3075
|
+
port,
|
|
3076
|
+
method: "GET",
|
|
3077
|
+
headers,
|
|
3078
|
+
path: resolvedPath,
|
|
3079
|
+
query,
|
|
3080
|
+
body,
|
|
3081
|
+
});
|
|
3082
|
+
};
|
|
3083
|
+
exports.se_ListViewVersionsCommand = se_ListViewVersionsCommand;
|
|
2930
3084
|
const se_MonitorContactCommand = async (input, context) => {
|
|
2931
3085
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2932
3086
|
const headers = {
|
|
@@ -4637,6 +4791,54 @@ const se_UpdateUserSecurityProfilesCommand = async (input, context) => {
|
|
|
4637
4791
|
});
|
|
4638
4792
|
};
|
|
4639
4793
|
exports.se_UpdateUserSecurityProfilesCommand = se_UpdateUserSecurityProfilesCommand;
|
|
4794
|
+
const se_UpdateViewContentCommand = async (input, context) => {
|
|
4795
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4796
|
+
const headers = {
|
|
4797
|
+
"content-type": "application/json",
|
|
4798
|
+
};
|
|
4799
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}";
|
|
4800
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
4801
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
4802
|
+
let body;
|
|
4803
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4804
|
+
Content: (_) => (0, smithy_client_1._json)(_),
|
|
4805
|
+
Status: [],
|
|
4806
|
+
}));
|
|
4807
|
+
return new protocol_http_1.HttpRequest({
|
|
4808
|
+
protocol,
|
|
4809
|
+
hostname,
|
|
4810
|
+
port,
|
|
4811
|
+
method: "POST",
|
|
4812
|
+
headers,
|
|
4813
|
+
path: resolvedPath,
|
|
4814
|
+
body,
|
|
4815
|
+
});
|
|
4816
|
+
};
|
|
4817
|
+
exports.se_UpdateViewContentCommand = se_UpdateViewContentCommand;
|
|
4818
|
+
const se_UpdateViewMetadataCommand = async (input, context) => {
|
|
4819
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4820
|
+
const headers = {
|
|
4821
|
+
"content-type": "application/json",
|
|
4822
|
+
};
|
|
4823
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/metadata";
|
|
4824
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
4825
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ViewId", () => input.ViewId, "{ViewId}", false);
|
|
4826
|
+
let body;
|
|
4827
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4828
|
+
Description: [],
|
|
4829
|
+
Name: [],
|
|
4830
|
+
}));
|
|
4831
|
+
return new protocol_http_1.HttpRequest({
|
|
4832
|
+
protocol,
|
|
4833
|
+
hostname,
|
|
4834
|
+
port,
|
|
4835
|
+
method: "POST",
|
|
4836
|
+
headers,
|
|
4837
|
+
path: resolvedPath,
|
|
4838
|
+
body,
|
|
4839
|
+
});
|
|
4840
|
+
};
|
|
4841
|
+
exports.se_UpdateViewMetadataCommand = se_UpdateViewMetadataCommand;
|
|
4640
4842
|
const de_ActivateEvaluationFormCommand = async (output, context) => {
|
|
4641
4843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4642
4844
|
return de_ActivateEvaluationFormCommandError(output, context);
|
|
@@ -6233,6 +6435,119 @@ const de_CreateUserHierarchyGroupCommandError = async (output, context) => {
|
|
|
6233
6435
|
});
|
|
6234
6436
|
}
|
|
6235
6437
|
};
|
|
6438
|
+
const de_CreateViewCommand = async (output, context) => {
|
|
6439
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6440
|
+
return de_CreateViewCommandError(output, context);
|
|
6441
|
+
}
|
|
6442
|
+
const contents = (0, smithy_client_1.map)({
|
|
6443
|
+
$metadata: deserializeMetadata(output),
|
|
6444
|
+
});
|
|
6445
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6446
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6447
|
+
View: (_) => de_View(_, context),
|
|
6448
|
+
});
|
|
6449
|
+
Object.assign(contents, doc);
|
|
6450
|
+
return contents;
|
|
6451
|
+
};
|
|
6452
|
+
exports.de_CreateViewCommand = de_CreateViewCommand;
|
|
6453
|
+
const de_CreateViewCommandError = async (output, context) => {
|
|
6454
|
+
const parsedOutput = {
|
|
6455
|
+
...output,
|
|
6456
|
+
body: await parseErrorBody(output.body, context),
|
|
6457
|
+
};
|
|
6458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6459
|
+
switch (errorCode) {
|
|
6460
|
+
case "AccessDeniedException":
|
|
6461
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
6462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6463
|
+
case "DuplicateResourceException":
|
|
6464
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
6465
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
6466
|
+
case "InternalServiceException":
|
|
6467
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6468
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
6469
|
+
case "InvalidParameterException":
|
|
6470
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6471
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
6472
|
+
case "InvalidRequestException":
|
|
6473
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
6474
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
6475
|
+
case "ResourceInUseException":
|
|
6476
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
6477
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
6478
|
+
case "ResourceNotFoundException":
|
|
6479
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6480
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6481
|
+
case "ServiceQuotaExceededException":
|
|
6482
|
+
case "com.amazonaws.connect#ServiceQuotaExceededException":
|
|
6483
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6484
|
+
case "TooManyRequestsException":
|
|
6485
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
6486
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
6487
|
+
default:
|
|
6488
|
+
const parsedBody = parsedOutput.body;
|
|
6489
|
+
return throwDefaultError({
|
|
6490
|
+
output,
|
|
6491
|
+
parsedBody,
|
|
6492
|
+
errorCode,
|
|
6493
|
+
});
|
|
6494
|
+
}
|
|
6495
|
+
};
|
|
6496
|
+
const de_CreateViewVersionCommand = async (output, context) => {
|
|
6497
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6498
|
+
return de_CreateViewVersionCommandError(output, context);
|
|
6499
|
+
}
|
|
6500
|
+
const contents = (0, smithy_client_1.map)({
|
|
6501
|
+
$metadata: deserializeMetadata(output),
|
|
6502
|
+
});
|
|
6503
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6505
|
+
View: (_) => de_View(_, context),
|
|
6506
|
+
});
|
|
6507
|
+
Object.assign(contents, doc);
|
|
6508
|
+
return contents;
|
|
6509
|
+
};
|
|
6510
|
+
exports.de_CreateViewVersionCommand = de_CreateViewVersionCommand;
|
|
6511
|
+
const de_CreateViewVersionCommandError = async (output, context) => {
|
|
6512
|
+
const parsedOutput = {
|
|
6513
|
+
...output,
|
|
6514
|
+
body: await parseErrorBody(output.body, context),
|
|
6515
|
+
};
|
|
6516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6517
|
+
switch (errorCode) {
|
|
6518
|
+
case "AccessDeniedException":
|
|
6519
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
6520
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6521
|
+
case "InternalServiceException":
|
|
6522
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
6523
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
6524
|
+
case "InvalidParameterException":
|
|
6525
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
6526
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
6527
|
+
case "InvalidRequestException":
|
|
6528
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
6529
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
6530
|
+
case "ResourceInUseException":
|
|
6531
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
6532
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
6533
|
+
case "ResourceNotFoundException":
|
|
6534
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
6535
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6536
|
+
case "ServiceQuotaExceededException":
|
|
6537
|
+
case "com.amazonaws.connect#ServiceQuotaExceededException":
|
|
6538
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6539
|
+
case "TooManyRequestsException":
|
|
6540
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
6541
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
6542
|
+
default:
|
|
6543
|
+
const parsedBody = parsedOutput.body;
|
|
6544
|
+
return throwDefaultError({
|
|
6545
|
+
output,
|
|
6546
|
+
parsedBody,
|
|
6547
|
+
errorCode,
|
|
6548
|
+
});
|
|
6549
|
+
}
|
|
6550
|
+
};
|
|
6236
6551
|
const de_CreateVocabularyCommand = async (output, context) => {
|
|
6237
6552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6238
6553
|
return de_CreateVocabularyCommandError(output, context);
|
|
@@ -7023,14 +7338,104 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
7023
7338
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
7024
7339
|
return contents;
|
|
7025
7340
|
};
|
|
7026
|
-
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
7027
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
7341
|
+
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
7342
|
+
const de_DeleteUserCommandError = async (output, context) => {
|
|
7343
|
+
const parsedOutput = {
|
|
7344
|
+
...output,
|
|
7345
|
+
body: await parseErrorBody(output.body, context),
|
|
7346
|
+
};
|
|
7347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7348
|
+
switch (errorCode) {
|
|
7349
|
+
case "InternalServiceException":
|
|
7350
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7351
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
7352
|
+
case "InvalidParameterException":
|
|
7353
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7354
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
7355
|
+
case "InvalidRequestException":
|
|
7356
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
7357
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
7358
|
+
case "ResourceNotFoundException":
|
|
7359
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7360
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
7361
|
+
case "ThrottlingException":
|
|
7362
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7363
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
7364
|
+
default:
|
|
7365
|
+
const parsedBody = parsedOutput.body;
|
|
7366
|
+
return throwDefaultError({
|
|
7367
|
+
output,
|
|
7368
|
+
parsedBody,
|
|
7369
|
+
errorCode,
|
|
7370
|
+
});
|
|
7371
|
+
}
|
|
7372
|
+
};
|
|
7373
|
+
const de_DeleteUserHierarchyGroupCommand = async (output, context) => {
|
|
7374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7375
|
+
return de_DeleteUserHierarchyGroupCommandError(output, context);
|
|
7376
|
+
}
|
|
7377
|
+
const contents = (0, smithy_client_1.map)({
|
|
7378
|
+
$metadata: deserializeMetadata(output),
|
|
7379
|
+
});
|
|
7380
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
7381
|
+
return contents;
|
|
7382
|
+
};
|
|
7383
|
+
exports.de_DeleteUserHierarchyGroupCommand = de_DeleteUserHierarchyGroupCommand;
|
|
7384
|
+
const de_DeleteUserHierarchyGroupCommandError = async (output, context) => {
|
|
7385
|
+
const parsedOutput = {
|
|
7386
|
+
...output,
|
|
7387
|
+
body: await parseErrorBody(output.body, context),
|
|
7388
|
+
};
|
|
7389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7390
|
+
switch (errorCode) {
|
|
7391
|
+
case "InternalServiceException":
|
|
7392
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7393
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
7394
|
+
case "InvalidParameterException":
|
|
7395
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7396
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
7397
|
+
case "InvalidRequestException":
|
|
7398
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
7399
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
7400
|
+
case "ResourceInUseException":
|
|
7401
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
7402
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
7403
|
+
case "ResourceNotFoundException":
|
|
7404
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7405
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
7406
|
+
case "ThrottlingException":
|
|
7407
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7408
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
7409
|
+
default:
|
|
7410
|
+
const parsedBody = parsedOutput.body;
|
|
7411
|
+
return throwDefaultError({
|
|
7412
|
+
output,
|
|
7413
|
+
parsedBody,
|
|
7414
|
+
errorCode,
|
|
7415
|
+
});
|
|
7416
|
+
}
|
|
7417
|
+
};
|
|
7418
|
+
const de_DeleteViewCommand = async (output, context) => {
|
|
7419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7420
|
+
return de_DeleteViewCommandError(output, context);
|
|
7421
|
+
}
|
|
7422
|
+
const contents = (0, smithy_client_1.map)({
|
|
7423
|
+
$metadata: deserializeMetadata(output),
|
|
7424
|
+
});
|
|
7425
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
7426
|
+
return contents;
|
|
7427
|
+
};
|
|
7428
|
+
exports.de_DeleteViewCommand = de_DeleteViewCommand;
|
|
7429
|
+
const de_DeleteViewCommandError = async (output, context) => {
|
|
7028
7430
|
const parsedOutput = {
|
|
7029
7431
|
...output,
|
|
7030
7432
|
body: await parseErrorBody(output.body, context),
|
|
7031
7433
|
};
|
|
7032
7434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7033
7435
|
switch (errorCode) {
|
|
7436
|
+
case "AccessDeniedException":
|
|
7437
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
7438
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
7034
7439
|
case "InternalServiceException":
|
|
7035
7440
|
case "com.amazonaws.connect#InternalServiceException":
|
|
7036
7441
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
@@ -7040,12 +7445,15 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
7040
7445
|
case "InvalidRequestException":
|
|
7041
7446
|
case "com.amazonaws.connect#InvalidRequestException":
|
|
7042
7447
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
7448
|
+
case "ResourceInUseException":
|
|
7449
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
7450
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
7043
7451
|
case "ResourceNotFoundException":
|
|
7044
7452
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7045
7453
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
7046
|
-
case "
|
|
7047
|
-
case "com.amazonaws.connect#
|
|
7048
|
-
throw await
|
|
7454
|
+
case "TooManyRequestsException":
|
|
7455
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
7456
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
7049
7457
|
default:
|
|
7050
7458
|
const parsedBody = parsedOutput.body;
|
|
7051
7459
|
return throwDefaultError({
|
|
@@ -7055,9 +7463,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
7055
7463
|
});
|
|
7056
7464
|
}
|
|
7057
7465
|
};
|
|
7058
|
-
const
|
|
7466
|
+
const de_DeleteViewVersionCommand = async (output, context) => {
|
|
7059
7467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7060
|
-
return
|
|
7468
|
+
return de_DeleteViewVersionCommandError(output, context);
|
|
7061
7469
|
}
|
|
7062
7470
|
const contents = (0, smithy_client_1.map)({
|
|
7063
7471
|
$metadata: deserializeMetadata(output),
|
|
@@ -7065,14 +7473,17 @@ const de_DeleteUserHierarchyGroupCommand = async (output, context) => {
|
|
|
7065
7473
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
7066
7474
|
return contents;
|
|
7067
7475
|
};
|
|
7068
|
-
exports.
|
|
7069
|
-
const
|
|
7476
|
+
exports.de_DeleteViewVersionCommand = de_DeleteViewVersionCommand;
|
|
7477
|
+
const de_DeleteViewVersionCommandError = async (output, context) => {
|
|
7070
7478
|
const parsedOutput = {
|
|
7071
7479
|
...output,
|
|
7072
7480
|
body: await parseErrorBody(output.body, context),
|
|
7073
7481
|
};
|
|
7074
7482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7075
7483
|
switch (errorCode) {
|
|
7484
|
+
case "AccessDeniedException":
|
|
7485
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
7486
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
7076
7487
|
case "InternalServiceException":
|
|
7077
7488
|
case "com.amazonaws.connect#InternalServiceException":
|
|
7078
7489
|
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
@@ -7088,9 +7499,9 @@ const de_DeleteUserHierarchyGroupCommandError = async (output, context) => {
|
|
|
7088
7499
|
case "ResourceNotFoundException":
|
|
7089
7500
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7090
7501
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
7091
|
-
case "
|
|
7092
|
-
case "com.amazonaws.connect#
|
|
7093
|
-
throw await
|
|
7502
|
+
case "TooManyRequestsException":
|
|
7503
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
7504
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
7094
7505
|
default:
|
|
7095
7506
|
const parsedBody = parsedOutput.body;
|
|
7096
7507
|
return throwDefaultError({
|
|
@@ -8112,6 +8523,55 @@ const de_DescribeUserHierarchyStructureCommandError = async (output, context) =>
|
|
|
8112
8523
|
});
|
|
8113
8524
|
}
|
|
8114
8525
|
};
|
|
8526
|
+
const de_DescribeViewCommand = async (output, context) => {
|
|
8527
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8528
|
+
return de_DescribeViewCommandError(output, context);
|
|
8529
|
+
}
|
|
8530
|
+
const contents = (0, smithy_client_1.map)({
|
|
8531
|
+
$metadata: deserializeMetadata(output),
|
|
8532
|
+
});
|
|
8533
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8534
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
8535
|
+
View: (_) => de_View(_, context),
|
|
8536
|
+
});
|
|
8537
|
+
Object.assign(contents, doc);
|
|
8538
|
+
return contents;
|
|
8539
|
+
};
|
|
8540
|
+
exports.de_DescribeViewCommand = de_DescribeViewCommand;
|
|
8541
|
+
const de_DescribeViewCommandError = async (output, context) => {
|
|
8542
|
+
const parsedOutput = {
|
|
8543
|
+
...output,
|
|
8544
|
+
body: await parseErrorBody(output.body, context),
|
|
8545
|
+
};
|
|
8546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8547
|
+
switch (errorCode) {
|
|
8548
|
+
case "AccessDeniedException":
|
|
8549
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
8550
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
8551
|
+
case "InternalServiceException":
|
|
8552
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8553
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
8554
|
+
case "InvalidParameterException":
|
|
8555
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8556
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
8557
|
+
case "InvalidRequestException":
|
|
8558
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8559
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
8560
|
+
case "ResourceNotFoundException":
|
|
8561
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8562
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
8563
|
+
case "TooManyRequestsException":
|
|
8564
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
8565
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
8566
|
+
default:
|
|
8567
|
+
const parsedBody = parsedOutput.body;
|
|
8568
|
+
return throwDefaultError({
|
|
8569
|
+
output,
|
|
8570
|
+
parsedBody,
|
|
8571
|
+
errorCode,
|
|
8572
|
+
});
|
|
8573
|
+
}
|
|
8574
|
+
};
|
|
8115
8575
|
const de_DescribeVocabularyCommand = async (output, context) => {
|
|
8116
8576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8117
8577
|
return de_DescribeVocabularyCommandError(output, context);
|
|
@@ -10721,6 +11181,106 @@ const de_ListUsersCommandError = async (output, context) => {
|
|
|
10721
11181
|
});
|
|
10722
11182
|
}
|
|
10723
11183
|
};
|
|
11184
|
+
const de_ListViewsCommand = async (output, context) => {
|
|
11185
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11186
|
+
return de_ListViewsCommandError(output, context);
|
|
11187
|
+
}
|
|
11188
|
+
const contents = (0, smithy_client_1.map)({
|
|
11189
|
+
$metadata: deserializeMetadata(output),
|
|
11190
|
+
});
|
|
11191
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11192
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11193
|
+
NextToken: smithy_client_1.expectString,
|
|
11194
|
+
ViewsSummaryList: smithy_client_1._json,
|
|
11195
|
+
});
|
|
11196
|
+
Object.assign(contents, doc);
|
|
11197
|
+
return contents;
|
|
11198
|
+
};
|
|
11199
|
+
exports.de_ListViewsCommand = de_ListViewsCommand;
|
|
11200
|
+
const de_ListViewsCommandError = async (output, context) => {
|
|
11201
|
+
const parsedOutput = {
|
|
11202
|
+
...output,
|
|
11203
|
+
body: await parseErrorBody(output.body, context),
|
|
11204
|
+
};
|
|
11205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11206
|
+
switch (errorCode) {
|
|
11207
|
+
case "AccessDeniedException":
|
|
11208
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
11209
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
11210
|
+
case "InternalServiceException":
|
|
11211
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11212
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
11213
|
+
case "InvalidParameterException":
|
|
11214
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
11215
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
11216
|
+
case "InvalidRequestException":
|
|
11217
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
11218
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11219
|
+
case "ResourceNotFoundException":
|
|
11220
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11221
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11222
|
+
case "TooManyRequestsException":
|
|
11223
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
11224
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
11225
|
+
default:
|
|
11226
|
+
const parsedBody = parsedOutput.body;
|
|
11227
|
+
return throwDefaultError({
|
|
11228
|
+
output,
|
|
11229
|
+
parsedBody,
|
|
11230
|
+
errorCode,
|
|
11231
|
+
});
|
|
11232
|
+
}
|
|
11233
|
+
};
|
|
11234
|
+
const de_ListViewVersionsCommand = async (output, context) => {
|
|
11235
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11236
|
+
return de_ListViewVersionsCommandError(output, context);
|
|
11237
|
+
}
|
|
11238
|
+
const contents = (0, smithy_client_1.map)({
|
|
11239
|
+
$metadata: deserializeMetadata(output),
|
|
11240
|
+
});
|
|
11241
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11242
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11243
|
+
NextToken: smithy_client_1.expectString,
|
|
11244
|
+
ViewVersionSummaryList: smithy_client_1._json,
|
|
11245
|
+
});
|
|
11246
|
+
Object.assign(contents, doc);
|
|
11247
|
+
return contents;
|
|
11248
|
+
};
|
|
11249
|
+
exports.de_ListViewVersionsCommand = de_ListViewVersionsCommand;
|
|
11250
|
+
const de_ListViewVersionsCommandError = async (output, context) => {
|
|
11251
|
+
const parsedOutput = {
|
|
11252
|
+
...output,
|
|
11253
|
+
body: await parseErrorBody(output.body, context),
|
|
11254
|
+
};
|
|
11255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11256
|
+
switch (errorCode) {
|
|
11257
|
+
case "AccessDeniedException":
|
|
11258
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
11259
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
11260
|
+
case "InternalServiceException":
|
|
11261
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11262
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
11263
|
+
case "InvalidParameterException":
|
|
11264
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
11265
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
11266
|
+
case "InvalidRequestException":
|
|
11267
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
11268
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11269
|
+
case "ResourceNotFoundException":
|
|
11270
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11271
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11272
|
+
case "TooManyRequestsException":
|
|
11273
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
11274
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
11275
|
+
default:
|
|
11276
|
+
const parsedBody = parsedOutput.body;
|
|
11277
|
+
return throwDefaultError({
|
|
11278
|
+
output,
|
|
11279
|
+
parsedBody,
|
|
11280
|
+
errorCode,
|
|
11281
|
+
});
|
|
11282
|
+
}
|
|
11283
|
+
};
|
|
10724
11284
|
const de_MonitorContactCommand = async (output, context) => {
|
|
10725
11285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10726
11286
|
return de_MonitorContactCommandError(output, context);
|
|
@@ -13831,6 +14391,109 @@ const de_UpdateUserSecurityProfilesCommandError = async (output, context) => {
|
|
|
13831
14391
|
});
|
|
13832
14392
|
}
|
|
13833
14393
|
};
|
|
14394
|
+
const de_UpdateViewContentCommand = async (output, context) => {
|
|
14395
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
14396
|
+
return de_UpdateViewContentCommandError(output, context);
|
|
14397
|
+
}
|
|
14398
|
+
const contents = (0, smithy_client_1.map)({
|
|
14399
|
+
$metadata: deserializeMetadata(output),
|
|
14400
|
+
});
|
|
14401
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
14402
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
14403
|
+
View: (_) => de_View(_, context),
|
|
14404
|
+
});
|
|
14405
|
+
Object.assign(contents, doc);
|
|
14406
|
+
return contents;
|
|
14407
|
+
};
|
|
14408
|
+
exports.de_UpdateViewContentCommand = de_UpdateViewContentCommand;
|
|
14409
|
+
const de_UpdateViewContentCommandError = async (output, context) => {
|
|
14410
|
+
const parsedOutput = {
|
|
14411
|
+
...output,
|
|
14412
|
+
body: await parseErrorBody(output.body, context),
|
|
14413
|
+
};
|
|
14414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14415
|
+
switch (errorCode) {
|
|
14416
|
+
case "AccessDeniedException":
|
|
14417
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
14418
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
14419
|
+
case "InternalServiceException":
|
|
14420
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
14421
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
14422
|
+
case "InvalidParameterException":
|
|
14423
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
14424
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
14425
|
+
case "InvalidRequestException":
|
|
14426
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
14427
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
14428
|
+
case "ResourceInUseException":
|
|
14429
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
14430
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
14431
|
+
case "ResourceNotFoundException":
|
|
14432
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
14433
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
14434
|
+
case "TooManyRequestsException":
|
|
14435
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
14436
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
14437
|
+
default:
|
|
14438
|
+
const parsedBody = parsedOutput.body;
|
|
14439
|
+
return throwDefaultError({
|
|
14440
|
+
output,
|
|
14441
|
+
parsedBody,
|
|
14442
|
+
errorCode,
|
|
14443
|
+
});
|
|
14444
|
+
}
|
|
14445
|
+
};
|
|
14446
|
+
const de_UpdateViewMetadataCommand = async (output, context) => {
|
|
14447
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
14448
|
+
return de_UpdateViewMetadataCommandError(output, context);
|
|
14449
|
+
}
|
|
14450
|
+
const contents = (0, smithy_client_1.map)({
|
|
14451
|
+
$metadata: deserializeMetadata(output),
|
|
14452
|
+
});
|
|
14453
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
14454
|
+
return contents;
|
|
14455
|
+
};
|
|
14456
|
+
exports.de_UpdateViewMetadataCommand = de_UpdateViewMetadataCommand;
|
|
14457
|
+
const de_UpdateViewMetadataCommandError = async (output, context) => {
|
|
14458
|
+
const parsedOutput = {
|
|
14459
|
+
...output,
|
|
14460
|
+
body: await parseErrorBody(output.body, context),
|
|
14461
|
+
};
|
|
14462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14463
|
+
switch (errorCode) {
|
|
14464
|
+
case "AccessDeniedException":
|
|
14465
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
14466
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
14467
|
+
case "DuplicateResourceException":
|
|
14468
|
+
case "com.amazonaws.connect#DuplicateResourceException":
|
|
14469
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
14470
|
+
case "InternalServiceException":
|
|
14471
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
14472
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
14473
|
+
case "InvalidParameterException":
|
|
14474
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
14475
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
14476
|
+
case "InvalidRequestException":
|
|
14477
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
14478
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
14479
|
+
case "ResourceInUseException":
|
|
14480
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
14481
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
14482
|
+
case "ResourceNotFoundException":
|
|
14483
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
14484
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
14485
|
+
case "TooManyRequestsException":
|
|
14486
|
+
case "com.amazonaws.connect#TooManyRequestsException":
|
|
14487
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
14488
|
+
default:
|
|
14489
|
+
const parsedBody = parsedOutput.body;
|
|
14490
|
+
return throwDefaultError({
|
|
14491
|
+
output,
|
|
14492
|
+
parsedBody,
|
|
14493
|
+
errorCode,
|
|
14494
|
+
});
|
|
14495
|
+
}
|
|
14496
|
+
};
|
|
13834
14497
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(ConnectServiceException_1.ConnectServiceException);
|
|
13835
14498
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
13836
14499
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -14108,6 +14771,19 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
14108
14771
|
});
|
|
14109
14772
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
14110
14773
|
};
|
|
14774
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
14775
|
+
const contents = (0, smithy_client_1.map)({});
|
|
14776
|
+
const data = parsedOutput.body;
|
|
14777
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
14778
|
+
Message: smithy_client_1.expectString,
|
|
14779
|
+
});
|
|
14780
|
+
Object.assign(contents, doc);
|
|
14781
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
14782
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
14783
|
+
...contents,
|
|
14784
|
+
});
|
|
14785
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
14786
|
+
};
|
|
14111
14787
|
const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
14112
14788
|
const contents = (0, smithy_client_1.map)({});
|
|
14113
14789
|
const data = parsedOutput.body;
|
|
@@ -14837,6 +15513,23 @@ const de_UserDataList = (output, context) => {
|
|
|
14837
15513
|
});
|
|
14838
15514
|
return retVal;
|
|
14839
15515
|
};
|
|
15516
|
+
const de_View = (output, context) => {
|
|
15517
|
+
return (0, smithy_client_1.take)(output, {
|
|
15518
|
+
Arn: smithy_client_1.expectString,
|
|
15519
|
+
Content: smithy_client_1._json,
|
|
15520
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
15521
|
+
Description: smithy_client_1.expectString,
|
|
15522
|
+
Id: smithy_client_1.expectString,
|
|
15523
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
15524
|
+
Name: smithy_client_1.expectString,
|
|
15525
|
+
Status: smithy_client_1.expectString,
|
|
15526
|
+
Tags: smithy_client_1._json,
|
|
15527
|
+
Type: smithy_client_1.expectString,
|
|
15528
|
+
Version: smithy_client_1.expectInt32,
|
|
15529
|
+
VersionDescription: smithy_client_1.expectString,
|
|
15530
|
+
ViewContentSha256: smithy_client_1.expectString,
|
|
15531
|
+
});
|
|
15532
|
+
};
|
|
14840
15533
|
const de_Vocabulary = (output, context) => {
|
|
14841
15534
|
return (0, smithy_client_1.take)(output, {
|
|
14842
15535
|
Arn: smithy_client_1.expectString,
|