@aws-sdk/client-connect 3.161.0 → 3.164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/Connect.js +30 -0
- package/dist-cjs/commands/SearchQueuesCommand.js +36 -0
- package/dist-cjs/commands/SearchRoutingProfilesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_1.js +39 -3
- package/dist-cjs/pagination/SearchQueuesPaginator.js +36 -0
- package/dist-cjs/pagination/SearchRoutingProfilesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +246 -5
- package/dist-es/Connect.js +30 -0
- package/dist-es/commands/SearchQueuesCommand.js +39 -0
- package/dist-es/commands/SearchRoutingProfilesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_1.js +12 -0
- package/dist-es/pagination/SearchQueuesPaginator.js +75 -0
- package/dist-es/pagination/SearchRoutingProfilesPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +278 -0
- package/dist-types/Connect.d.ts +42 -22
- package/dist-types/ConnectClient.d.ts +4 -2
- package/dist-types/commands/DescribeContactCommand.d.ts +2 -0
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -2
- package/dist-types/commands/ListBotsCommand.d.ts +2 -1
- package/dist-types/commands/ListContactFlowsCommand.d.ts +2 -2
- package/dist-types/commands/ListLexBotsCommand.d.ts +3 -2
- package/dist-types/commands/SearchQueuesCommand.d.ts +36 -0
- package/dist-types/commands/SearchRoutingProfilesCommand.d.ts +36 -0
- package/dist-types/commands/StartChatContactCommand.d.ts +2 -2
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +5 -6
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/TransferContactCommand.d.ts +4 -4
- package/dist-types/commands/UpdateContactAttributesCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +26 -16
- package/dist-types/models/models_1.d.ts +225 -22
- package/dist-types/pagination/SearchQueuesPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchRoutingProfilesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Connect.d.ts +10 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/SearchQueuesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SearchRoutingProfilesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/dist-types/ts3.4/models/models_1.d.ts +90 -1
- package/dist-types/ts3.4/pagination/SearchQueuesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchRoutingProfilesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +26 -26
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
4
4
|
exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = void 0;
|
|
5
|
+
exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TransferContactCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = 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_restJson1UpdateTaskTemplateCommand = 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");
|
|
@@ -2382,6 +2382,64 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
|
|
|
2382
2382
|
});
|
|
2383
2383
|
};
|
|
2384
2384
|
exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = serializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
2385
|
+
const serializeAws_restJson1SearchQueuesCommand = async (input, context) => {
|
|
2386
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2387
|
+
const headers = {
|
|
2388
|
+
"content-type": "application/json",
|
|
2389
|
+
};
|
|
2390
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-queues";
|
|
2391
|
+
let body;
|
|
2392
|
+
body = JSON.stringify({
|
|
2393
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
2394
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2395
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2396
|
+
...(input.SearchCriteria != null && {
|
|
2397
|
+
SearchCriteria: serializeAws_restJson1QueueSearchCriteria(input.SearchCriteria, context),
|
|
2398
|
+
}),
|
|
2399
|
+
...(input.SearchFilter != null && {
|
|
2400
|
+
SearchFilter: serializeAws_restJson1QueueSearchFilter(input.SearchFilter, context),
|
|
2401
|
+
}),
|
|
2402
|
+
});
|
|
2403
|
+
return new protocol_http_1.HttpRequest({
|
|
2404
|
+
protocol,
|
|
2405
|
+
hostname,
|
|
2406
|
+
port,
|
|
2407
|
+
method: "POST",
|
|
2408
|
+
headers,
|
|
2409
|
+
path: resolvedPath,
|
|
2410
|
+
body,
|
|
2411
|
+
});
|
|
2412
|
+
};
|
|
2413
|
+
exports.serializeAws_restJson1SearchQueuesCommand = serializeAws_restJson1SearchQueuesCommand;
|
|
2414
|
+
const serializeAws_restJson1SearchRoutingProfilesCommand = async (input, context) => {
|
|
2415
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2416
|
+
const headers = {
|
|
2417
|
+
"content-type": "application/json",
|
|
2418
|
+
};
|
|
2419
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-routing-profiles";
|
|
2420
|
+
let body;
|
|
2421
|
+
body = JSON.stringify({
|
|
2422
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
2423
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2424
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2425
|
+
...(input.SearchCriteria != null && {
|
|
2426
|
+
SearchCriteria: serializeAws_restJson1RoutingProfileSearchCriteria(input.SearchCriteria, context),
|
|
2427
|
+
}),
|
|
2428
|
+
...(input.SearchFilter != null && {
|
|
2429
|
+
SearchFilter: serializeAws_restJson1RoutingProfileSearchFilter(input.SearchFilter, context),
|
|
2430
|
+
}),
|
|
2431
|
+
});
|
|
2432
|
+
return new protocol_http_1.HttpRequest({
|
|
2433
|
+
protocol,
|
|
2434
|
+
hostname,
|
|
2435
|
+
port,
|
|
2436
|
+
method: "POST",
|
|
2437
|
+
headers,
|
|
2438
|
+
path: resolvedPath,
|
|
2439
|
+
body,
|
|
2440
|
+
});
|
|
2441
|
+
};
|
|
2442
|
+
exports.serializeAws_restJson1SearchRoutingProfilesCommand = serializeAws_restJson1SearchRoutingProfilesCommand;
|
|
2385
2443
|
const serializeAws_restJson1SearchSecurityProfilesCommand = async (input, context) => {
|
|
2386
2444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2387
2445
|
const headers = {
|
|
@@ -8601,6 +8659,110 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (o
|
|
|
8601
8659
|
});
|
|
8602
8660
|
}
|
|
8603
8661
|
};
|
|
8662
|
+
const deserializeAws_restJson1SearchQueuesCommand = async (output, context) => {
|
|
8663
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8664
|
+
return deserializeAws_restJson1SearchQueuesCommandError(output, context);
|
|
8665
|
+
}
|
|
8666
|
+
const contents = map({
|
|
8667
|
+
$metadata: deserializeMetadata(output),
|
|
8668
|
+
});
|
|
8669
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8670
|
+
if (data.ApproximateTotalCount != null) {
|
|
8671
|
+
contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
|
|
8672
|
+
}
|
|
8673
|
+
if (data.NextToken != null) {
|
|
8674
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
8675
|
+
}
|
|
8676
|
+
if (data.Queues != null) {
|
|
8677
|
+
contents.Queues = deserializeAws_restJson1QueueSearchSummaryList(data.Queues, context);
|
|
8678
|
+
}
|
|
8679
|
+
return contents;
|
|
8680
|
+
};
|
|
8681
|
+
exports.deserializeAws_restJson1SearchQueuesCommand = deserializeAws_restJson1SearchQueuesCommand;
|
|
8682
|
+
const deserializeAws_restJson1SearchQueuesCommandError = async (output, context) => {
|
|
8683
|
+
const parsedOutput = {
|
|
8684
|
+
...output,
|
|
8685
|
+
body: await parseBody(output.body, context),
|
|
8686
|
+
};
|
|
8687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8688
|
+
switch (errorCode) {
|
|
8689
|
+
case "InternalServiceException":
|
|
8690
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8691
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8692
|
+
case "InvalidParameterException":
|
|
8693
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8694
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8695
|
+
case "InvalidRequestException":
|
|
8696
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8697
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8698
|
+
case "ResourceNotFoundException":
|
|
8699
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8700
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8701
|
+
case "ThrottlingException":
|
|
8702
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8703
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8704
|
+
default:
|
|
8705
|
+
const parsedBody = parsedOutput.body;
|
|
8706
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
8707
|
+
output,
|
|
8708
|
+
parsedBody,
|
|
8709
|
+
exceptionCtor: ConnectServiceException_1.ConnectServiceException,
|
|
8710
|
+
errorCode,
|
|
8711
|
+
});
|
|
8712
|
+
}
|
|
8713
|
+
};
|
|
8714
|
+
const deserializeAws_restJson1SearchRoutingProfilesCommand = async (output, context) => {
|
|
8715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8716
|
+
return deserializeAws_restJson1SearchRoutingProfilesCommandError(output, context);
|
|
8717
|
+
}
|
|
8718
|
+
const contents = map({
|
|
8719
|
+
$metadata: deserializeMetadata(output),
|
|
8720
|
+
});
|
|
8721
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8722
|
+
if (data.ApproximateTotalCount != null) {
|
|
8723
|
+
contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
|
|
8724
|
+
}
|
|
8725
|
+
if (data.NextToken != null) {
|
|
8726
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
8727
|
+
}
|
|
8728
|
+
if (data.RoutingProfiles != null) {
|
|
8729
|
+
contents.RoutingProfiles = deserializeAws_restJson1RoutingProfileList(data.RoutingProfiles, context);
|
|
8730
|
+
}
|
|
8731
|
+
return contents;
|
|
8732
|
+
};
|
|
8733
|
+
exports.deserializeAws_restJson1SearchRoutingProfilesCommand = deserializeAws_restJson1SearchRoutingProfilesCommand;
|
|
8734
|
+
const deserializeAws_restJson1SearchRoutingProfilesCommandError = async (output, context) => {
|
|
8735
|
+
const parsedOutput = {
|
|
8736
|
+
...output,
|
|
8737
|
+
body: await parseBody(output.body, context),
|
|
8738
|
+
};
|
|
8739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8740
|
+
switch (errorCode) {
|
|
8741
|
+
case "InternalServiceException":
|
|
8742
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8743
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8744
|
+
case "InvalidParameterException":
|
|
8745
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8746
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8747
|
+
case "InvalidRequestException":
|
|
8748
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8749
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8750
|
+
case "ResourceNotFoundException":
|
|
8751
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8752
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8753
|
+
case "ThrottlingException":
|
|
8754
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8755
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8756
|
+
default:
|
|
8757
|
+
const parsedBody = parsedOutput.body;
|
|
8758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
8759
|
+
output,
|
|
8760
|
+
parsedBody,
|
|
8761
|
+
exceptionCtor: ConnectServiceException_1.ConnectServiceException,
|
|
8762
|
+
errorCode,
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8765
|
+
};
|
|
8604
8766
|
const deserializeAws_restJson1SearchSecurityProfilesCommand = async (output, context) => {
|
|
8605
8767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8606
8768
|
return deserializeAws_restJson1SearchSecurityProfilesCommandError(output, context);
|
|
@@ -11335,6 +11497,34 @@ const serializeAws_restJson1Queues = (input, context) => {
|
|
|
11335
11497
|
return entry;
|
|
11336
11498
|
});
|
|
11337
11499
|
};
|
|
11500
|
+
const serializeAws_restJson1QueueSearchConditionList = (input, context) => {
|
|
11501
|
+
return input
|
|
11502
|
+
.filter((e) => e != null)
|
|
11503
|
+
.map((entry) => {
|
|
11504
|
+
return serializeAws_restJson1QueueSearchCriteria(entry, context);
|
|
11505
|
+
});
|
|
11506
|
+
};
|
|
11507
|
+
const serializeAws_restJson1QueueSearchCriteria = (input, context) => {
|
|
11508
|
+
return {
|
|
11509
|
+
...(input.AndConditions != null && {
|
|
11510
|
+
AndConditions: serializeAws_restJson1QueueSearchConditionList(input.AndConditions, context),
|
|
11511
|
+
}),
|
|
11512
|
+
...(input.OrConditions != null && {
|
|
11513
|
+
OrConditions: serializeAws_restJson1QueueSearchConditionList(input.OrConditions, context),
|
|
11514
|
+
}),
|
|
11515
|
+
...(input.QueueTypeCondition != null && { QueueTypeCondition: input.QueueTypeCondition }),
|
|
11516
|
+
...(input.StringCondition != null && {
|
|
11517
|
+
StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
|
|
11518
|
+
}),
|
|
11519
|
+
};
|
|
11520
|
+
};
|
|
11521
|
+
const serializeAws_restJson1QueueSearchFilter = (input, context) => {
|
|
11522
|
+
return {
|
|
11523
|
+
...(input.TagFilter != null && {
|
|
11524
|
+
TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context),
|
|
11525
|
+
}),
|
|
11526
|
+
};
|
|
11527
|
+
};
|
|
11338
11528
|
const serializeAws_restJson1QuickConnectConfig = (input, context) => {
|
|
11339
11529
|
return {
|
|
11340
11530
|
...(input.PhoneConfig != null && {
|
|
@@ -11415,6 +11605,33 @@ const serializeAws_restJson1RoutingProfileQueueReferenceList = (input, context)
|
|
|
11415
11605
|
return serializeAws_restJson1RoutingProfileQueueReference(entry, context);
|
|
11416
11606
|
});
|
|
11417
11607
|
};
|
|
11608
|
+
const serializeAws_restJson1RoutingProfileSearchConditionList = (input, context) => {
|
|
11609
|
+
return input
|
|
11610
|
+
.filter((e) => e != null)
|
|
11611
|
+
.map((entry) => {
|
|
11612
|
+
return serializeAws_restJson1RoutingProfileSearchCriteria(entry, context);
|
|
11613
|
+
});
|
|
11614
|
+
};
|
|
11615
|
+
const serializeAws_restJson1RoutingProfileSearchCriteria = (input, context) => {
|
|
11616
|
+
return {
|
|
11617
|
+
...(input.AndConditions != null && {
|
|
11618
|
+
AndConditions: serializeAws_restJson1RoutingProfileSearchConditionList(input.AndConditions, context),
|
|
11619
|
+
}),
|
|
11620
|
+
...(input.OrConditions != null && {
|
|
11621
|
+
OrConditions: serializeAws_restJson1RoutingProfileSearchConditionList(input.OrConditions, context),
|
|
11622
|
+
}),
|
|
11623
|
+
...(input.StringCondition != null && {
|
|
11624
|
+
StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
|
|
11625
|
+
}),
|
|
11626
|
+
};
|
|
11627
|
+
};
|
|
11628
|
+
const serializeAws_restJson1RoutingProfileSearchFilter = (input, context) => {
|
|
11629
|
+
return {
|
|
11630
|
+
...(input.TagFilter != null && {
|
|
11631
|
+
TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context),
|
|
11632
|
+
}),
|
|
11633
|
+
};
|
|
11634
|
+
};
|
|
11418
11635
|
const serializeAws_restJson1S3Config = (input, context) => {
|
|
11419
11636
|
return {
|
|
11420
11637
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
@@ -12525,6 +12742,17 @@ const deserializeAws_restJson1QueueReference = (output, context) => {
|
|
|
12525
12742
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12526
12743
|
};
|
|
12527
12744
|
};
|
|
12745
|
+
const deserializeAws_restJson1QueueSearchSummaryList = (output, context) => {
|
|
12746
|
+
const retVal = (output || [])
|
|
12747
|
+
.filter((e) => e != null)
|
|
12748
|
+
.map((entry) => {
|
|
12749
|
+
if (entry === null) {
|
|
12750
|
+
return null;
|
|
12751
|
+
}
|
|
12752
|
+
return deserializeAws_restJson1Queue(entry, context);
|
|
12753
|
+
});
|
|
12754
|
+
return retVal;
|
|
12755
|
+
};
|
|
12528
12756
|
const deserializeAws_restJson1QueueSummary = (output, context) => {
|
|
12529
12757
|
return {
|
|
12530
12758
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -12674,11 +12902,24 @@ const deserializeAws_restJson1RoutingProfile = (output, context) => {
|
|
|
12674
12902
|
? deserializeAws_restJson1MediaConcurrencies(output.MediaConcurrencies, context)
|
|
12675
12903
|
: undefined,
|
|
12676
12904
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
12905
|
+
NumberOfAssociatedQueues: (0, smithy_client_1.expectLong)(output.NumberOfAssociatedQueues),
|
|
12906
|
+
NumberOfAssociatedUsers: (0, smithy_client_1.expectLong)(output.NumberOfAssociatedUsers),
|
|
12677
12907
|
RoutingProfileArn: (0, smithy_client_1.expectString)(output.RoutingProfileArn),
|
|
12678
12908
|
RoutingProfileId: (0, smithy_client_1.expectString)(output.RoutingProfileId),
|
|
12679
12909
|
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
12680
12910
|
};
|
|
12681
12911
|
};
|
|
12912
|
+
const deserializeAws_restJson1RoutingProfileList = (output, context) => {
|
|
12913
|
+
const retVal = (output || [])
|
|
12914
|
+
.filter((e) => e != null)
|
|
12915
|
+
.map((entry) => {
|
|
12916
|
+
if (entry === null) {
|
|
12917
|
+
return null;
|
|
12918
|
+
}
|
|
12919
|
+
return deserializeAws_restJson1RoutingProfile(entry, context);
|
|
12920
|
+
});
|
|
12921
|
+
return retVal;
|
|
12922
|
+
};
|
|
12682
12923
|
const deserializeAws_restJson1RoutingProfileQueueConfigSummary = (output, context) => {
|
|
12683
12924
|
return {
|
|
12684
12925
|
Channel: (0, smithy_client_1.expectString)(output.Channel),
|
package/dist-es/Connect.js
CHANGED
|
@@ -103,6 +103,8 @@ import { PutUserStatusCommand, } from "./commands/PutUserStatusCommand";
|
|
|
103
103
|
import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
|
|
104
104
|
import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
|
|
105
105
|
import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
|
|
106
|
+
import { SearchQueuesCommand, } from "./commands/SearchQueuesCommand";
|
|
107
|
+
import { SearchRoutingProfilesCommand, } from "./commands/SearchRoutingProfilesCommand";
|
|
106
108
|
import { SearchSecurityProfilesCommand, } from "./commands/SearchSecurityProfilesCommand";
|
|
107
109
|
import { SearchUsersCommand } from "./commands/SearchUsersCommand";
|
|
108
110
|
import { SearchVocabulariesCommand, } from "./commands/SearchVocabulariesCommand";
|
|
@@ -1613,6 +1615,34 @@ var Connect = (function (_super) {
|
|
|
1613
1615
|
return this.send(command, optionsOrCb);
|
|
1614
1616
|
}
|
|
1615
1617
|
};
|
|
1618
|
+
Connect.prototype.searchQueues = function (args, optionsOrCb, cb) {
|
|
1619
|
+
var command = new SearchQueuesCommand(args);
|
|
1620
|
+
if (typeof optionsOrCb === "function") {
|
|
1621
|
+
this.send(command, optionsOrCb);
|
|
1622
|
+
}
|
|
1623
|
+
else if (typeof cb === "function") {
|
|
1624
|
+
if (typeof optionsOrCb !== "object")
|
|
1625
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1626
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1627
|
+
}
|
|
1628
|
+
else {
|
|
1629
|
+
return this.send(command, optionsOrCb);
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
Connect.prototype.searchRoutingProfiles = function (args, optionsOrCb, cb) {
|
|
1633
|
+
var command = new SearchRoutingProfilesCommand(args);
|
|
1634
|
+
if (typeof optionsOrCb === "function") {
|
|
1635
|
+
this.send(command, optionsOrCb);
|
|
1636
|
+
}
|
|
1637
|
+
else if (typeof cb === "function") {
|
|
1638
|
+
if (typeof optionsOrCb !== "object")
|
|
1639
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1640
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1641
|
+
}
|
|
1642
|
+
else {
|
|
1643
|
+
return this.send(command, optionsOrCb);
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1616
1646
|
Connect.prototype.searchSecurityProfiles = function (args, optionsOrCb, cb) {
|
|
1617
1647
|
var command = new SearchSecurityProfilesCommand(args);
|
|
1618
1648
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { SearchQueuesRequestFilterSensitiveLog, SearchQueuesResponseFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restJson1SearchQueuesCommand, serializeAws_restJson1SearchQueuesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var SearchQueuesCommand = (function (_super) {
|
|
7
|
+
__extends(SearchQueuesCommand, _super);
|
|
8
|
+
function SearchQueuesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
SearchQueuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectClient";
|
|
18
|
+
var commandName = "SearchQueuesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: SearchQueuesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: SearchQueuesResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SearchQueuesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1SearchQueuesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
SearchQueuesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1SearchQueuesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return SearchQueuesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SearchQueuesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { SearchRoutingProfilesRequestFilterSensitiveLog, SearchRoutingProfilesResponseFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restJson1SearchRoutingProfilesCommand, serializeAws_restJson1SearchRoutingProfilesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var SearchRoutingProfilesCommand = (function (_super) {
|
|
7
|
+
__extends(SearchRoutingProfilesCommand, _super);
|
|
8
|
+
function SearchRoutingProfilesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
SearchRoutingProfilesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectClient";
|
|
18
|
+
var commandName = "SearchRoutingProfilesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: SearchRoutingProfilesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: SearchRoutingProfilesResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SearchRoutingProfilesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1SearchRoutingProfilesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
SearchRoutingProfilesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1SearchRoutingProfilesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return SearchRoutingProfilesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SearchRoutingProfilesCommand };
|
|
@@ -102,6 +102,8 @@ export * from "./PutUserStatusCommand";
|
|
|
102
102
|
export * from "./ReleasePhoneNumberCommand";
|
|
103
103
|
export * from "./ResumeContactRecordingCommand";
|
|
104
104
|
export * from "./SearchAvailablePhoneNumbersCommand";
|
|
105
|
+
export * from "./SearchQueuesCommand";
|
|
106
|
+
export * from "./SearchRoutingProfilesCommand";
|
|
105
107
|
export * from "./SearchSecurityProfilesCommand";
|
|
106
108
|
export * from "./SearchUsersCommand";
|
|
107
109
|
export * from "./SearchVocabulariesCommand";
|
|
@@ -5,6 +5,10 @@ export var QueueType;
|
|
|
5
5
|
QueueType["AGENT"] = "AGENT";
|
|
6
6
|
QueueType["STANDARD"] = "STANDARD";
|
|
7
7
|
})(QueueType || (QueueType = {}));
|
|
8
|
+
export var SearchableQueueType;
|
|
9
|
+
(function (SearchableQueueType) {
|
|
10
|
+
SearchableQueueType["STANDARD"] = "STANDARD";
|
|
11
|
+
})(SearchableQueueType || (SearchableQueueType = {}));
|
|
8
12
|
export var StringComparisonType;
|
|
9
13
|
(function (StringComparisonType) {
|
|
10
14
|
StringComparisonType["CONTAINS"] = "CONTAINS";
|
|
@@ -109,6 +113,10 @@ export var SearchAvailablePhoneNumbersResponseFilterSensitiveLog = function (obj
|
|
|
109
113
|
export var StringConditionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
114
|
export var TagConditionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
115
|
export var ControlPlaneTagFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
+
export var QueueSearchFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
|
+
export var SearchQueuesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
export var RoutingProfileSearchFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var SearchRoutingProfilesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
120
|
export var SecurityProfilesSearchFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
121
|
export var SecurityProfileSearchSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
122
|
export var SearchSecurityProfilesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -190,7 +198,11 @@ export var UpdateUserIdentityInfoRequestFilterSensitiveLog = function (obj) { re
|
|
|
190
198
|
export var UpdateUserPhoneConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
199
|
export var UpdateUserRoutingProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
200
|
export var UpdateUserSecurityProfilesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
+
export var QueueSearchCriteriaFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
+
export var RoutingProfileSearchCriteriaFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
203
|
export var SecurityProfileSearchCriteriaFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
204
|
export var UserSearchCriteriaFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
|
+
export var SearchQueuesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
|
+
export var SearchRoutingProfilesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
195
207
|
export var SearchSecurityProfilesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
208
|
export var SearchUsersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { SearchQueuesCommand, } from "../commands/SearchQueuesCommand";
|
|
3
|
+
import { Connect } from "../Connect";
|
|
4
|
+
import { ConnectClient } from "../ConnectClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new SearchQueuesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.searchQueues.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateSearchQueues(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateSearchQueues_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|