@aws-sdk/client-connect 3.236.0 → 3.238.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/dist-cjs/Connect.js +15 -0
- package/dist-cjs/commands/UpdateParticipantRoleConfigCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +19 -17
- package/dist-cjs/models/models_1.js +86 -6
- package/dist-cjs/protocols/Aws_restJson1.js +171 -5
- package/dist-es/Connect.js +15 -0
- package/dist-es/commands/UpdateParticipantRoleConfigCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +12 -9
- package/dist-es/models/models_1.js +72 -1
- package/dist-es/protocols/Aws_restJson1.js +165 -1
- package/dist-types/Connect.d.ts +24 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/UpdateParticipantRoleConfigCommand.d.ts +54 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +135 -66
- package/dist-types/models/models_1.d.ts +196 -5
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +17 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateParticipantRoleConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +29 -21
- package/dist-types/ts3.4/models/models_1.d.ts +105 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +5 -4
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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_restJson1DeleteTrafficDistributionGroupCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteRuleCommand = 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_restJson1CreateTrafficDistributionGroupCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRuleCommand = 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
4
|
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_restJson1GetTrafficDistributionCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DismissUserContactCommand = 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_restJson1DescribeTrafficDistributionGroupCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRuleCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRuleCommand = 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 = void 0;
|
|
5
|
+
exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateParticipantRoleConfigCommand = 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_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReplicateInstanceCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1MonitorContactCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRulesCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTrafficDistributionGroupCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRuleCommand = 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 = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTrafficDistributionCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRuleCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTrafficDistributionCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DismissUserContactCommand = 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_restJson1DescribeTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRuleCommand = 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_restJson1DeleteTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteRuleCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = void 0;
|
|
8
|
+
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_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReplicateInstanceCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1MonitorContactCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRulesCommand = 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 = void 0;
|
|
9
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRuleCommand = 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_restJson1UpdateParticipantRoleConfigCommand = 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 = void 0;
|
|
10
10
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const uuid_1 = require("uuid");
|
|
@@ -1627,6 +1627,9 @@ const serializeAws_restJson1GetCurrentMetricDataCommand = async (input, context)
|
|
|
1627
1627
|
...(input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
|
|
1628
1628
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1629
1629
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1630
|
+
...(input.SortCriteria != null && {
|
|
1631
|
+
SortCriteria: serializeAws_restJson1CurrentMetricSortCriteriaMaxOne(input.SortCriteria, context),
|
|
1632
|
+
}),
|
|
1630
1633
|
});
|
|
1631
1634
|
return new protocol_http_1.HttpRequest({
|
|
1632
1635
|
protocol,
|
|
@@ -3406,6 +3409,32 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
|
|
|
3406
3409
|
});
|
|
3407
3410
|
};
|
|
3408
3411
|
exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = serializeAws_restJson1UpdateInstanceStorageConfigCommand;
|
|
3412
|
+
const serializeAws_restJson1UpdateParticipantRoleConfigCommand = async (input, context) => {
|
|
3413
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3414
|
+
const headers = {
|
|
3415
|
+
"content-type": "application/json",
|
|
3416
|
+
};
|
|
3417
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3418
|
+
"/contact/participant-role-config/{InstanceId}/{ContactId}";
|
|
3419
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
3420
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
|
|
3421
|
+
let body;
|
|
3422
|
+
body = JSON.stringify({
|
|
3423
|
+
...(input.ChannelConfiguration != null && {
|
|
3424
|
+
ChannelConfiguration: serializeAws_restJson1UpdateParticipantRoleConfigChannelInfo(input.ChannelConfiguration, context),
|
|
3425
|
+
}),
|
|
3426
|
+
});
|
|
3427
|
+
return new protocol_http_1.HttpRequest({
|
|
3428
|
+
protocol,
|
|
3429
|
+
hostname,
|
|
3430
|
+
port,
|
|
3431
|
+
method: "PUT",
|
|
3432
|
+
headers,
|
|
3433
|
+
path: resolvedPath,
|
|
3434
|
+
body,
|
|
3435
|
+
});
|
|
3436
|
+
};
|
|
3437
|
+
exports.serializeAws_restJson1UpdateParticipantRoleConfigCommand = serializeAws_restJson1UpdateParticipantRoleConfigCommand;
|
|
3409
3438
|
const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) => {
|
|
3410
3439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3411
3440
|
const headers = {
|
|
@@ -7414,6 +7443,9 @@ const deserializeAws_restJson1GetCurrentMetricDataCommand = async (output, conte
|
|
|
7414
7443
|
$metadata: deserializeMetadata(output),
|
|
7415
7444
|
});
|
|
7416
7445
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
7446
|
+
if (data.ApproximateTotalCount != null) {
|
|
7447
|
+
contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
|
|
7448
|
+
}
|
|
7417
7449
|
if (data.DataSnapshotTime != null) {
|
|
7418
7450
|
contents.DataSnapshotTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.DataSnapshotTime)));
|
|
7419
7451
|
}
|
|
@@ -7466,6 +7498,9 @@ const deserializeAws_restJson1GetCurrentUserDataCommand = async (output, context
|
|
|
7466
7498
|
$metadata: deserializeMetadata(output),
|
|
7467
7499
|
});
|
|
7468
7500
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
7501
|
+
if (data.ApproximateTotalCount != null) {
|
|
7502
|
+
contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
|
|
7503
|
+
}
|
|
7469
7504
|
if (data.NextToken != null) {
|
|
7470
7505
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
7471
7506
|
}
|
|
@@ -10917,6 +10952,52 @@ const deserializeAws_restJson1UpdateInstanceStorageConfigCommandError = async (o
|
|
|
10917
10952
|
});
|
|
10918
10953
|
}
|
|
10919
10954
|
};
|
|
10955
|
+
const deserializeAws_restJson1UpdateParticipantRoleConfigCommand = async (output, context) => {
|
|
10956
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10957
|
+
return deserializeAws_restJson1UpdateParticipantRoleConfigCommandError(output, context);
|
|
10958
|
+
}
|
|
10959
|
+
const contents = map({
|
|
10960
|
+
$metadata: deserializeMetadata(output),
|
|
10961
|
+
});
|
|
10962
|
+
await collectBody(output.body, context);
|
|
10963
|
+
return contents;
|
|
10964
|
+
};
|
|
10965
|
+
exports.deserializeAws_restJson1UpdateParticipantRoleConfigCommand = deserializeAws_restJson1UpdateParticipantRoleConfigCommand;
|
|
10966
|
+
const deserializeAws_restJson1UpdateParticipantRoleConfigCommandError = async (output, context) => {
|
|
10967
|
+
const parsedOutput = {
|
|
10968
|
+
...output,
|
|
10969
|
+
body: await parseErrorBody(output.body, context),
|
|
10970
|
+
};
|
|
10971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10972
|
+
switch (errorCode) {
|
|
10973
|
+
case "AccessDeniedException":
|
|
10974
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10975
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
10976
|
+
case "InternalServiceException":
|
|
10977
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10978
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
10979
|
+
case "InvalidParameterException":
|
|
10980
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10981
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
10982
|
+
case "InvalidRequestException":
|
|
10983
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10984
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
10985
|
+
case "ResourceNotFoundException":
|
|
10986
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10987
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
10988
|
+
case "ThrottlingException":
|
|
10989
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10990
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
10991
|
+
default:
|
|
10992
|
+
const parsedBody = parsedOutput.body;
|
|
10993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
10994
|
+
output,
|
|
10995
|
+
parsedBody,
|
|
10996
|
+
exceptionCtor: ConnectServiceException_1.ConnectServiceException,
|
|
10997
|
+
errorCode,
|
|
10998
|
+
});
|
|
10999
|
+
}
|
|
11000
|
+
};
|
|
10920
11001
|
const deserializeAws_restJson1UpdatePhoneNumberCommand = async (output, context) => {
|
|
10921
11002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10922
11003
|
return deserializeAws_restJson1UpdatePhoneNumberCommandError(output, context);
|
|
@@ -12237,6 +12318,13 @@ const deserializeAws_restJson1UserNotFoundExceptionResponse = async (parsedOutpu
|
|
|
12237
12318
|
});
|
|
12238
12319
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12239
12320
|
};
|
|
12321
|
+
const serializeAws_restJson1AgentsMinOneMaxHundred = (input, context) => {
|
|
12322
|
+
return input
|
|
12323
|
+
.filter((e) => e != null)
|
|
12324
|
+
.map((entry) => {
|
|
12325
|
+
return entry;
|
|
12326
|
+
});
|
|
12327
|
+
};
|
|
12240
12328
|
const serializeAws_restJson1AllowedAccessControlTags = (input, context) => {
|
|
12241
12329
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
12242
12330
|
if (value === null) {
|
|
@@ -12286,6 +12374,13 @@ const serializeAws_restJson1ChatMessage = (input, context) => {
|
|
|
12286
12374
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
12287
12375
|
};
|
|
12288
12376
|
};
|
|
12377
|
+
const serializeAws_restJson1ChatParticipantRoleConfig = (input, context) => {
|
|
12378
|
+
return {
|
|
12379
|
+
...(input.ParticipantTimerConfigList != null && {
|
|
12380
|
+
ParticipantTimerConfigList: serializeAws_restJson1ParticipantTimerConfigList(input.ParticipantTimerConfigList, context),
|
|
12381
|
+
}),
|
|
12382
|
+
};
|
|
12383
|
+
};
|
|
12289
12384
|
const serializeAws_restJson1ChatStreamingConfiguration = (input, context) => {
|
|
12290
12385
|
return {
|
|
12291
12386
|
...(input.StreamingEndpointArn != null && { StreamingEndpointArn: input.StreamingEndpointArn }),
|
|
@@ -12340,6 +12435,19 @@ const serializeAws_restJson1CurrentMetrics = (input, context) => {
|
|
|
12340
12435
|
return serializeAws_restJson1CurrentMetric(entry, context);
|
|
12341
12436
|
});
|
|
12342
12437
|
};
|
|
12438
|
+
const serializeAws_restJson1CurrentMetricSortCriteria = (input, context) => {
|
|
12439
|
+
return {
|
|
12440
|
+
...(input.SortByMetric != null && { SortByMetric: input.SortByMetric }),
|
|
12441
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
12442
|
+
};
|
|
12443
|
+
};
|
|
12444
|
+
const serializeAws_restJson1CurrentMetricSortCriteriaMaxOne = (input, context) => {
|
|
12445
|
+
return input
|
|
12446
|
+
.filter((e) => e != null)
|
|
12447
|
+
.map((entry) => {
|
|
12448
|
+
return serializeAws_restJson1CurrentMetricSortCriteria(entry, context);
|
|
12449
|
+
});
|
|
12450
|
+
};
|
|
12343
12451
|
const serializeAws_restJson1Distribution = (input, context) => {
|
|
12344
12452
|
return {
|
|
12345
12453
|
...(input.Percentage != null && { Percentage: input.Percentage }),
|
|
@@ -12368,6 +12476,9 @@ const serializeAws_restJson1Filters = (input, context) => {
|
|
|
12368
12476
|
return {
|
|
12369
12477
|
...(input.Channels != null && { Channels: serializeAws_restJson1Channels(input.Channels, context) }),
|
|
12370
12478
|
...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
|
|
12479
|
+
...(input.RoutingProfiles != null && {
|
|
12480
|
+
RoutingProfiles: serializeAws_restJson1RoutingProfiles(input.RoutingProfiles, context),
|
|
12481
|
+
}),
|
|
12371
12482
|
};
|
|
12372
12483
|
};
|
|
12373
12484
|
const serializeAws_restJson1Groupings = (input, context) => {
|
|
@@ -12525,6 +12636,29 @@ const serializeAws_restJson1ParticipantDetails = (input, context) => {
|
|
|
12525
12636
|
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
12526
12637
|
};
|
|
12527
12638
|
};
|
|
12639
|
+
const serializeAws_restJson1ParticipantTimerConfigList = (input, context) => {
|
|
12640
|
+
return input
|
|
12641
|
+
.filter((e) => e != null)
|
|
12642
|
+
.map((entry) => {
|
|
12643
|
+
return serializeAws_restJson1ParticipantTimerConfiguration(entry, context);
|
|
12644
|
+
});
|
|
12645
|
+
};
|
|
12646
|
+
const serializeAws_restJson1ParticipantTimerConfiguration = (input, context) => {
|
|
12647
|
+
return {
|
|
12648
|
+
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
12649
|
+
...(input.TimerType != null && { TimerType: input.TimerType }),
|
|
12650
|
+
...(input.TimerValue != null && {
|
|
12651
|
+
TimerValue: serializeAws_restJson1ParticipantTimerValue(input.TimerValue, context),
|
|
12652
|
+
}),
|
|
12653
|
+
};
|
|
12654
|
+
};
|
|
12655
|
+
const serializeAws_restJson1ParticipantTimerValue = (input, context) => {
|
|
12656
|
+
return models_1_1.ParticipantTimerValue.visit(input, {
|
|
12657
|
+
ParticipantTimerAction: (value) => ({ ParticipantTimerAction: value }),
|
|
12658
|
+
ParticipantTimerDurationInMinutes: (value) => ({ ParticipantTimerDurationInMinutes: value }),
|
|
12659
|
+
_: (name, value) => ({ name: value }),
|
|
12660
|
+
});
|
|
12661
|
+
};
|
|
12528
12662
|
const serializeAws_restJson1PermissionsList = (input, context) => {
|
|
12529
12663
|
return input
|
|
12530
12664
|
.filter((e) => e != null)
|
|
@@ -12672,6 +12806,13 @@ const serializeAws_restJson1RoutingProfileQueueReferenceList = (input, context)
|
|
|
12672
12806
|
return serializeAws_restJson1RoutingProfileQueueReference(entry, context);
|
|
12673
12807
|
});
|
|
12674
12808
|
};
|
|
12809
|
+
const serializeAws_restJson1RoutingProfiles = (input, context) => {
|
|
12810
|
+
return input
|
|
12811
|
+
.filter((e) => e != null)
|
|
12812
|
+
.map((entry) => {
|
|
12813
|
+
return entry;
|
|
12814
|
+
});
|
|
12815
|
+
};
|
|
12675
12816
|
const serializeAws_restJson1RoutingProfileSearchConditionList = (input, context) => {
|
|
12676
12817
|
return input
|
|
12677
12818
|
.filter((e) => e != null)
|
|
@@ -12916,14 +13057,34 @@ const serializeAws_restJson1Threshold = (input, context) => {
|
|
|
12916
13057
|
...(input.ThresholdValue != null && { ThresholdValue: (0, smithy_client_1.serializeFloat)(input.ThresholdValue) }),
|
|
12917
13058
|
};
|
|
12918
13059
|
};
|
|
13060
|
+
const serializeAws_restJson1UpdateParticipantRoleConfigChannelInfo = (input, context) => {
|
|
13061
|
+
return models_1_1.UpdateParticipantRoleConfigChannelInfo.visit(input, {
|
|
13062
|
+
Chat: (value) => ({ Chat: serializeAws_restJson1ChatParticipantRoleConfig(value, context) }),
|
|
13063
|
+
_: (name, value) => ({ name: value }),
|
|
13064
|
+
});
|
|
13065
|
+
};
|
|
12919
13066
|
const serializeAws_restJson1UserDataFilters = (input, context) => {
|
|
12920
13067
|
return {
|
|
13068
|
+
...(input.Agents != null && { Agents: serializeAws_restJson1AgentsMinOneMaxHundred(input.Agents, context) }),
|
|
12921
13069
|
...(input.ContactFilter != null && {
|
|
12922
13070
|
ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
|
|
12923
13071
|
}),
|
|
12924
13072
|
...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
|
|
13073
|
+
...(input.RoutingProfiles != null && {
|
|
13074
|
+
RoutingProfiles: serializeAws_restJson1RoutingProfiles(input.RoutingProfiles, context),
|
|
13075
|
+
}),
|
|
13076
|
+
...(input.UserHierarchyGroups != null && {
|
|
13077
|
+
UserHierarchyGroups: serializeAws_restJson1UserDataHierarchyGroups(input.UserHierarchyGroups, context),
|
|
13078
|
+
}),
|
|
12925
13079
|
};
|
|
12926
13080
|
};
|
|
13081
|
+
const serializeAws_restJson1UserDataHierarchyGroups = (input, context) => {
|
|
13082
|
+
return input
|
|
13083
|
+
.filter((e) => e != null)
|
|
13084
|
+
.map((entry) => {
|
|
13085
|
+
return entry;
|
|
13086
|
+
});
|
|
13087
|
+
};
|
|
12927
13088
|
const serializeAws_restJson1UserIdentityInfo = (input, context) => {
|
|
12928
13089
|
return {
|
|
12929
13090
|
...(input.Email != null && { Email: input.Email }),
|
|
@@ -13063,6 +13224,7 @@ const deserializeAws_restJson1AgentStatus = (output, context) => {
|
|
|
13063
13224
|
const deserializeAws_restJson1AgentStatusReference = (output, context) => {
|
|
13064
13225
|
return {
|
|
13065
13226
|
StatusArn: (0, smithy_client_1.expectString)(output.StatusArn),
|
|
13227
|
+
StatusName: (0, smithy_client_1.expectString)(output.StatusName),
|
|
13066
13228
|
StatusStartTimestamp: output.StatusStartTimestamp != null
|
|
13067
13229
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusStartTimestamp)))
|
|
13068
13230
|
: undefined,
|
|
@@ -13355,6 +13517,9 @@ const deserializeAws_restJson1Dimensions = (output, context) => {
|
|
|
13355
13517
|
return {
|
|
13356
13518
|
Channel: (0, smithy_client_1.expectString)(output.Channel),
|
|
13357
13519
|
Queue: output.Queue != null ? deserializeAws_restJson1QueueReference(output.Queue, context) : undefined,
|
|
13520
|
+
RoutingProfile: output.RoutingProfile != null
|
|
13521
|
+
? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
|
|
13522
|
+
: undefined,
|
|
13358
13523
|
};
|
|
13359
13524
|
};
|
|
13360
13525
|
const deserializeAws_restJson1Distribution = (output, context) => {
|
|
@@ -14599,6 +14764,7 @@ const deserializeAws_restJson1UserData = (output, context) => {
|
|
|
14599
14764
|
MaxSlotsByChannel: output.MaxSlotsByChannel != null
|
|
14600
14765
|
? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
|
|
14601
14766
|
: undefined,
|
|
14767
|
+
NextStatus: (0, smithy_client_1.expectString)(output.NextStatus),
|
|
14602
14768
|
RoutingProfile: output.RoutingProfile != null
|
|
14603
14769
|
? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
|
|
14604
14770
|
: undefined,
|
package/dist-es/Connect.js
CHANGED
|
@@ -143,6 +143,7 @@ import { UpdateContactScheduleCommand, } from "./commands/UpdateContactScheduleC
|
|
|
143
143
|
import { UpdateHoursOfOperationCommand, } from "./commands/UpdateHoursOfOperationCommand";
|
|
144
144
|
import { UpdateInstanceAttributeCommand, } from "./commands/UpdateInstanceAttributeCommand";
|
|
145
145
|
import { UpdateInstanceStorageConfigCommand, } from "./commands/UpdateInstanceStorageConfigCommand";
|
|
146
|
+
import { UpdateParticipantRoleConfigCommand, } from "./commands/UpdateParticipantRoleConfigCommand";
|
|
146
147
|
import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
|
|
147
148
|
import { UpdateQueueHoursOfOperationCommand, } from "./commands/UpdateQueueHoursOfOperationCommand";
|
|
148
149
|
import { UpdateQueueMaxContactsCommand, } from "./commands/UpdateQueueMaxContactsCommand";
|
|
@@ -2198,6 +2199,20 @@ export class Connect extends ConnectClient {
|
|
|
2198
2199
|
return this.send(command, optionsOrCb);
|
|
2199
2200
|
}
|
|
2200
2201
|
}
|
|
2202
|
+
updateParticipantRoleConfig(args, optionsOrCb, cb) {
|
|
2203
|
+
const command = new UpdateParticipantRoleConfigCommand(args);
|
|
2204
|
+
if (typeof optionsOrCb === "function") {
|
|
2205
|
+
this.send(command, optionsOrCb);
|
|
2206
|
+
}
|
|
2207
|
+
else if (typeof cb === "function") {
|
|
2208
|
+
if (typeof optionsOrCb !== "object")
|
|
2209
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
2210
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
2211
|
+
}
|
|
2212
|
+
else {
|
|
2213
|
+
return this.send(command, optionsOrCb);
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2201
2216
|
updatePhoneNumber(args, optionsOrCb, cb) {
|
|
2202
2217
|
const command = new UpdatePhoneNumberCommand(args);
|
|
2203
2218
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateParticipantRoleConfigRequestFilterSensitiveLog, UpdateParticipantRoleConfigResponseFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restJson1UpdateParticipantRoleConfigCommand, serializeAws_restJson1UpdateParticipantRoleConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateParticipantRoleConfigCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateParticipantRoleConfigCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ConnectClient";
|
|
25
|
+
const commandName = "UpdateParticipantRoleConfigCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateParticipantRoleConfigRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateParticipantRoleConfigResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateParticipantRoleConfigCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateParticipantRoleConfigCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -143,6 +143,7 @@ export * from "./UpdateContactScheduleCommand";
|
|
|
143
143
|
export * from "./UpdateHoursOfOperationCommand";
|
|
144
144
|
export * from "./UpdateInstanceAttributeCommand";
|
|
145
145
|
export * from "./UpdateInstanceStorageConfigCommand";
|
|
146
|
+
export * from "./UpdateParticipantRoleConfigCommand";
|
|
146
147
|
export * from "./UpdatePhoneNumberCommand";
|
|
147
148
|
export * from "./UpdateQueueHoursOfOperationCommand";
|
|
148
149
|
export * from "./UpdateQueueMaxContactsCommand";
|
|
@@ -781,7 +781,13 @@ export var Grouping;
|
|
|
781
781
|
(function (Grouping) {
|
|
782
782
|
Grouping["CHANNEL"] = "CHANNEL";
|
|
783
783
|
Grouping["QUEUE"] = "QUEUE";
|
|
784
|
+
Grouping["ROUTING_PROFILE"] = "ROUTING_PROFILE";
|
|
784
785
|
})(Grouping || (Grouping = {}));
|
|
786
|
+
export var SortOrder;
|
|
787
|
+
(function (SortOrder) {
|
|
788
|
+
SortOrder["ASCENDING"] = "ASCENDING";
|
|
789
|
+
SortOrder["DESCENDING"] = "DESCENDING";
|
|
790
|
+
})(SortOrder || (SortOrder = {}));
|
|
785
791
|
export class UserNotFoundException extends __BaseException {
|
|
786
792
|
constructor(opts) {
|
|
787
793
|
super({
|
|
@@ -1410,12 +1416,18 @@ export const CurrentMetricFilterSensitiveLog = (obj) => ({
|
|
|
1410
1416
|
export const FiltersFilterSensitiveLog = (obj) => ({
|
|
1411
1417
|
...obj,
|
|
1412
1418
|
});
|
|
1419
|
+
export const CurrentMetricSortCriteriaFilterSensitiveLog = (obj) => ({
|
|
1420
|
+
...obj,
|
|
1421
|
+
});
|
|
1413
1422
|
export const GetCurrentMetricDataRequestFilterSensitiveLog = (obj) => ({
|
|
1414
1423
|
...obj,
|
|
1415
1424
|
});
|
|
1416
1425
|
export const CurrentMetricDataFilterSensitiveLog = (obj) => ({
|
|
1417
1426
|
...obj,
|
|
1418
1427
|
});
|
|
1428
|
+
export const RoutingProfileReferenceFilterSensitiveLog = (obj) => ({
|
|
1429
|
+
...obj,
|
|
1430
|
+
});
|
|
1419
1431
|
export const DimensionsFilterSensitiveLog = (obj) => ({
|
|
1420
1432
|
...obj,
|
|
1421
1433
|
});
|
|
@@ -1440,9 +1452,6 @@ export const HierarchyGroupSummaryReferenceFilterSensitiveLog = (obj) => ({
|
|
|
1440
1452
|
export const HierarchyPathReferenceFilterSensitiveLog = (obj) => ({
|
|
1441
1453
|
...obj,
|
|
1442
1454
|
});
|
|
1443
|
-
export const RoutingProfileReferenceFilterSensitiveLog = (obj) => ({
|
|
1444
|
-
...obj,
|
|
1445
|
-
});
|
|
1446
1455
|
export const UserReferenceFilterSensitiveLog = (obj) => ({
|
|
1447
1456
|
...obj,
|
|
1448
1457
|
});
|
|
@@ -1548,9 +1557,3 @@ export const AttachmentReferenceFilterSensitiveLog = (obj) => ({
|
|
|
1548
1557
|
export const DateReferenceFilterSensitiveLog = (obj) => ({
|
|
1549
1558
|
...obj,
|
|
1550
1559
|
});
|
|
1551
|
-
export const EmailReferenceFilterSensitiveLog = (obj) => ({
|
|
1552
|
-
...obj,
|
|
1553
|
-
});
|
|
1554
|
-
export const NumberReferenceFilterSensitiveLog = (obj) => ({
|
|
1555
|
-
...obj,
|
|
1556
|
-
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
|
|
3
|
-
import { AttachmentReferenceFilterSensitiveLog, DateReferenceFilterSensitiveLog,
|
|
3
|
+
import { AttachmentReferenceFilterSensitiveLog, DateReferenceFilterSensitiveLog, } from "./models_0";
|
|
4
4
|
export var ReferenceSummary;
|
|
5
5
|
(function (ReferenceSummary) {
|
|
6
6
|
ReferenceSummary.visit = (value, visitor) => {
|
|
@@ -89,6 +89,44 @@ export class ContactNotFoundException extends __BaseException {
|
|
|
89
89
|
this.Message = opts.Message;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
export var TimerEligibleParticipantRoles;
|
|
93
|
+
(function (TimerEligibleParticipantRoles) {
|
|
94
|
+
TimerEligibleParticipantRoles["AGENT"] = "AGENT";
|
|
95
|
+
TimerEligibleParticipantRoles["CUSTOMER"] = "CUSTOMER";
|
|
96
|
+
})(TimerEligibleParticipantRoles || (TimerEligibleParticipantRoles = {}));
|
|
97
|
+
export var ParticipantTimerType;
|
|
98
|
+
(function (ParticipantTimerType) {
|
|
99
|
+
ParticipantTimerType["DISCONNECT_NONCUSTOMER"] = "DISCONNECT_NONCUSTOMER";
|
|
100
|
+
ParticipantTimerType["IDLE"] = "IDLE";
|
|
101
|
+
})(ParticipantTimerType || (ParticipantTimerType = {}));
|
|
102
|
+
export var ParticipantTimerAction;
|
|
103
|
+
(function (ParticipantTimerAction) {
|
|
104
|
+
ParticipantTimerAction["Unset"] = "Unset";
|
|
105
|
+
})(ParticipantTimerAction || (ParticipantTimerAction = {}));
|
|
106
|
+
export var ParticipantTimerValue;
|
|
107
|
+
(function (ParticipantTimerValue) {
|
|
108
|
+
ParticipantTimerValue.visit = (value, visitor) => {
|
|
109
|
+
if (value.ParticipantTimerAction !== undefined)
|
|
110
|
+
return visitor.ParticipantTimerAction(value.ParticipantTimerAction);
|
|
111
|
+
if (value.ParticipantTimerDurationInMinutes !== undefined)
|
|
112
|
+
return visitor.ParticipantTimerDurationInMinutes(value.ParticipantTimerDurationInMinutes);
|
|
113
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
114
|
+
};
|
|
115
|
+
})(ParticipantTimerValue || (ParticipantTimerValue = {}));
|
|
116
|
+
export var UpdateParticipantRoleConfigChannelInfo;
|
|
117
|
+
(function (UpdateParticipantRoleConfigChannelInfo) {
|
|
118
|
+
UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
|
|
119
|
+
if (value.Chat !== undefined)
|
|
120
|
+
return visitor.Chat(value.Chat);
|
|
121
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
122
|
+
};
|
|
123
|
+
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
124
|
+
export const EmailReferenceFilterSensitiveLog = (obj) => ({
|
|
125
|
+
...obj,
|
|
126
|
+
});
|
|
127
|
+
export const NumberReferenceFilterSensitiveLog = (obj) => ({
|
|
128
|
+
...obj,
|
|
129
|
+
});
|
|
92
130
|
export const StringReferenceFilterSensitiveLog = (obj) => ({
|
|
93
131
|
...obj,
|
|
94
132
|
});
|
|
@@ -554,6 +592,39 @@ export const UpdateInstanceAttributeRequestFilterSensitiveLog = (obj) => ({
|
|
|
554
592
|
export const UpdateInstanceStorageConfigRequestFilterSensitiveLog = (obj) => ({
|
|
555
593
|
...obj,
|
|
556
594
|
});
|
|
595
|
+
export const ParticipantTimerValueFilterSensitiveLog = (obj) => {
|
|
596
|
+
if (obj.ParticipantTimerAction !== undefined)
|
|
597
|
+
return { ParticipantTimerAction: obj.ParticipantTimerAction };
|
|
598
|
+
if (obj.ParticipantTimerDurationInMinutes !== undefined)
|
|
599
|
+
return { ParticipantTimerDurationInMinutes: obj.ParticipantTimerDurationInMinutes };
|
|
600
|
+
if (obj.$unknown !== undefined)
|
|
601
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
602
|
+
};
|
|
603
|
+
export const ParticipantTimerConfigurationFilterSensitiveLog = (obj) => ({
|
|
604
|
+
...obj,
|
|
605
|
+
...(obj.TimerValue && { TimerValue: ParticipantTimerValueFilterSensitiveLog(obj.TimerValue) }),
|
|
606
|
+
});
|
|
607
|
+
export const ChatParticipantRoleConfigFilterSensitiveLog = (obj) => ({
|
|
608
|
+
...obj,
|
|
609
|
+
...(obj.ParticipantTimerConfigList && {
|
|
610
|
+
ParticipantTimerConfigList: obj.ParticipantTimerConfigList.map((item) => ParticipantTimerConfigurationFilterSensitiveLog(item)),
|
|
611
|
+
}),
|
|
612
|
+
});
|
|
613
|
+
export const UpdateParticipantRoleConfigChannelInfoFilterSensitiveLog = (obj) => {
|
|
614
|
+
if (obj.Chat !== undefined)
|
|
615
|
+
return { Chat: ChatParticipantRoleConfigFilterSensitiveLog(obj.Chat) };
|
|
616
|
+
if (obj.$unknown !== undefined)
|
|
617
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
618
|
+
};
|
|
619
|
+
export const UpdateParticipantRoleConfigRequestFilterSensitiveLog = (obj) => ({
|
|
620
|
+
...obj,
|
|
621
|
+
...(obj.ChannelConfiguration && {
|
|
622
|
+
ChannelConfiguration: UpdateParticipantRoleConfigChannelInfoFilterSensitiveLog(obj.ChannelConfiguration),
|
|
623
|
+
}),
|
|
624
|
+
});
|
|
625
|
+
export const UpdateParticipantRoleConfigResponseFilterSensitiveLog = (obj) => ({
|
|
626
|
+
...obj,
|
|
627
|
+
});
|
|
557
628
|
export const UpdatePhoneNumberRequestFilterSensitiveLog = (obj) => ({
|
|
558
629
|
...obj,
|
|
559
630
|
});
|