@aws-sdk/client-connect 3.104.0 → 3.105.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 +12 -0
- package/dist-cjs/Connect.js +15 -0
- package/dist-cjs/ConnectClient.js +2 -0
- package/dist-cjs/commands/GetCurrentUserDataCommand.js +36 -0
- package/dist-cjs/commands/ListQueuesCommand.js +3 -3
- package/dist-cjs/commands/ListQuickConnectsCommand.js +3 -3
- package/dist-cjs/commands/ListRoutingProfileQueuesCommand.js +3 -3
- package/dist-cjs/commands/ListRoutingProfilesCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +105 -98
- package/dist-cjs/models/models_1.js +74 -3
- package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +244 -5
- package/dist-es/Connect.js +15 -0
- package/dist-es/ConnectClient.js +2 -0
- package/dist-es/commands/GetCurrentUserDataCommand.js +39 -0
- package/dist-es/commands/ListQueuesCommand.js +1 -1
- package/dist-es/commands/ListQuickConnectsCommand.js +1 -1
- package/dist-es/commands/ListRoutingProfileQueuesCommand.js +1 -1
- package/dist-es/commands/ListRoutingProfilesCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +75 -68
- package/dist-es/models/models_1.js +49 -0
- package/dist-es/pagination/GetCurrentUserDataPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +256 -0
- package/dist-types/Connect.d.ts +7 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/GetCurrentUserDataCommand.d.ts +35 -0
- package/dist-types/commands/ListQueuesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuickConnectsCommand.d.ts +1 -1
- package/dist-types/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +344 -370
- package/dist-types/models/models_1.d.ts +266 -30
- package/dist-types/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +5 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListQuickConnectsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +212 -253
- package/dist-types/ts3.4/models/models_1.d.ts +155 -28
- package/dist-types/ts3.4/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +4 -3
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
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
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
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.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_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 = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TransferContactCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = void 0;
|
|
9
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = void 0;
|
|
9
10
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
10
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
11
12
|
const uuid_1 = require("uuid");
|
|
@@ -2415,6 +2416,40 @@ const serializeAws_restJson1GetCurrentMetricDataCommand = async (input, context)
|
|
|
2415
2416
|
});
|
|
2416
2417
|
};
|
|
2417
2418
|
exports.serializeAws_restJson1GetCurrentMetricDataCommand = serializeAws_restJson1GetCurrentMetricDataCommand;
|
|
2419
|
+
const serializeAws_restJson1GetCurrentUserDataCommand = async (input, context) => {
|
|
2420
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2421
|
+
const headers = {
|
|
2422
|
+
"content-type": "application/json",
|
|
2423
|
+
};
|
|
2424
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/userdata/{InstanceId}";
|
|
2425
|
+
if (input.InstanceId !== undefined) {
|
|
2426
|
+
const labelValue = input.InstanceId;
|
|
2427
|
+
if (labelValue.length <= 0) {
|
|
2428
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
2429
|
+
}
|
|
2430
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2431
|
+
}
|
|
2432
|
+
else {
|
|
2433
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2434
|
+
}
|
|
2435
|
+
let body;
|
|
2436
|
+
body = JSON.stringify({
|
|
2437
|
+
...(input.Filters !== undefined &&
|
|
2438
|
+
input.Filters !== null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) }),
|
|
2439
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2440
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2441
|
+
});
|
|
2442
|
+
return new protocol_http_1.HttpRequest({
|
|
2443
|
+
protocol,
|
|
2444
|
+
hostname,
|
|
2445
|
+
port,
|
|
2446
|
+
method: "POST",
|
|
2447
|
+
headers,
|
|
2448
|
+
path: resolvedPath,
|
|
2449
|
+
body,
|
|
2450
|
+
});
|
|
2451
|
+
};
|
|
2452
|
+
exports.serializeAws_restJson1GetCurrentUserDataCommand = serializeAws_restJson1GetCurrentUserDataCommand;
|
|
2418
2453
|
const serializeAws_restJson1GetFederationTokenCommand = async (input, context) => {
|
|
2419
2454
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2420
2455
|
const headers = {};
|
|
@@ -8786,6 +8821,59 @@ const deserializeAws_restJson1GetCurrentMetricDataCommandError = async (output,
|
|
|
8786
8821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8787
8822
|
}
|
|
8788
8823
|
};
|
|
8824
|
+
const deserializeAws_restJson1GetCurrentUserDataCommand = async (output, context) => {
|
|
8825
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8826
|
+
return deserializeAws_restJson1GetCurrentUserDataCommandError(output, context);
|
|
8827
|
+
}
|
|
8828
|
+
const contents = {
|
|
8829
|
+
$metadata: deserializeMetadata(output),
|
|
8830
|
+
NextToken: undefined,
|
|
8831
|
+
UserDataList: undefined,
|
|
8832
|
+
};
|
|
8833
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8834
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
8835
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
8836
|
+
}
|
|
8837
|
+
if (data.UserDataList !== undefined && data.UserDataList !== null) {
|
|
8838
|
+
contents.UserDataList = deserializeAws_restJson1UserDataList(data.UserDataList, context);
|
|
8839
|
+
}
|
|
8840
|
+
return Promise.resolve(contents);
|
|
8841
|
+
};
|
|
8842
|
+
exports.deserializeAws_restJson1GetCurrentUserDataCommand = deserializeAws_restJson1GetCurrentUserDataCommand;
|
|
8843
|
+
const deserializeAws_restJson1GetCurrentUserDataCommandError = async (output, context) => {
|
|
8844
|
+
const parsedOutput = {
|
|
8845
|
+
...output,
|
|
8846
|
+
body: await parseBody(output.body, context),
|
|
8847
|
+
};
|
|
8848
|
+
let response;
|
|
8849
|
+
let errorCode = "UnknownError";
|
|
8850
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8851
|
+
switch (errorCode) {
|
|
8852
|
+
case "InternalServiceException":
|
|
8853
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8854
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8855
|
+
case "InvalidParameterException":
|
|
8856
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8857
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8858
|
+
case "InvalidRequestException":
|
|
8859
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8860
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8861
|
+
case "ResourceNotFoundException":
|
|
8862
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8863
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8864
|
+
case "ThrottlingException":
|
|
8865
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8866
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8867
|
+
default:
|
|
8868
|
+
const parsedBody = parsedOutput.body;
|
|
8869
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
8870
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8871
|
+
$fault: "client",
|
|
8872
|
+
$metadata: deserializeMetadata(output),
|
|
8873
|
+
});
|
|
8874
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8875
|
+
}
|
|
8876
|
+
};
|
|
8789
8877
|
const deserializeAws_restJson1GetFederationTokenCommand = async (output, context) => {
|
|
8790
8878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8791
8879
|
return deserializeAws_restJson1GetFederationTokenCommandError(output, context);
|
|
@@ -13301,6 +13389,14 @@ const serializeAws_restJson1ChatStreamingConfiguration = (input, context) => {
|
|
|
13301
13389
|
input.StreamingEndpointArn !== null && { StreamingEndpointArn: input.StreamingEndpointArn }),
|
|
13302
13390
|
};
|
|
13303
13391
|
};
|
|
13392
|
+
const serializeAws_restJson1ContactFilter = (input, context) => {
|
|
13393
|
+
return {
|
|
13394
|
+
...(input.ContactStates !== undefined &&
|
|
13395
|
+
input.ContactStates !== null && {
|
|
13396
|
+
ContactStates: serializeAws_restJson1ContactStates(input.ContactStates, context),
|
|
13397
|
+
}),
|
|
13398
|
+
};
|
|
13399
|
+
};
|
|
13304
13400
|
const serializeAws_restJson1ContactReferences = (input, context) => {
|
|
13305
13401
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
13306
13402
|
if (value === null) {
|
|
@@ -13312,6 +13408,16 @@ const serializeAws_restJson1ContactReferences = (input, context) => {
|
|
|
13312
13408
|
};
|
|
13313
13409
|
}, {});
|
|
13314
13410
|
};
|
|
13411
|
+
const serializeAws_restJson1ContactStates = (input, context) => {
|
|
13412
|
+
return input
|
|
13413
|
+
.filter((e) => e != null)
|
|
13414
|
+
.map((entry) => {
|
|
13415
|
+
if (entry === null) {
|
|
13416
|
+
return null;
|
|
13417
|
+
}
|
|
13418
|
+
return entry;
|
|
13419
|
+
});
|
|
13420
|
+
};
|
|
13315
13421
|
const serializeAws_restJson1ControlPlaneTagFilter = (input, context) => {
|
|
13316
13422
|
return {
|
|
13317
13423
|
...(input.AndConditions !== undefined &&
|
|
@@ -13853,6 +13959,16 @@ const serializeAws_restJson1Threshold = (input, context) => {
|
|
|
13853
13959
|
input.ThresholdValue !== null && { ThresholdValue: (0, smithy_client_1.serializeFloat)(input.ThresholdValue) }),
|
|
13854
13960
|
};
|
|
13855
13961
|
};
|
|
13962
|
+
const serializeAws_restJson1UserDataFilters = (input, context) => {
|
|
13963
|
+
return {
|
|
13964
|
+
...(input.ContactFilter !== undefined &&
|
|
13965
|
+
input.ContactFilter !== null && {
|
|
13966
|
+
ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
|
|
13967
|
+
}),
|
|
13968
|
+
...(input.Queues !== undefined &&
|
|
13969
|
+
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
|
|
13970
|
+
};
|
|
13971
|
+
};
|
|
13856
13972
|
const serializeAws_restJson1UserIdentityInfo = (input, context) => {
|
|
13857
13973
|
return {
|
|
13858
13974
|
...(input.Email !== undefined && input.Email !== null && { Email: input.Email }),
|
|
@@ -13918,6 +14034,34 @@ const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
|
|
|
13918
14034
|
input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
|
|
13919
14035
|
};
|
|
13920
14036
|
};
|
|
14037
|
+
const deserializeAws_restJson1AgentContactReference = (output, context) => {
|
|
14038
|
+
return {
|
|
14039
|
+
AgentContactState: (0, smithy_client_1.expectString)(output.AgentContactState),
|
|
14040
|
+
Channel: (0, smithy_client_1.expectString)(output.Channel),
|
|
14041
|
+
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
|
|
14042
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectedToAgentTimestamp)))
|
|
14043
|
+
: undefined,
|
|
14044
|
+
ContactId: (0, smithy_client_1.expectString)(output.ContactId),
|
|
14045
|
+
InitiationMethod: (0, smithy_client_1.expectString)(output.InitiationMethod),
|
|
14046
|
+
Queue: output.Queue !== undefined && output.Queue !== null
|
|
14047
|
+
? deserializeAws_restJson1QueueReference(output.Queue, context)
|
|
14048
|
+
: undefined,
|
|
14049
|
+
StateStartTimestamp: output.StateStartTimestamp !== undefined && output.StateStartTimestamp !== null
|
|
14050
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateStartTimestamp)))
|
|
14051
|
+
: undefined,
|
|
14052
|
+
};
|
|
14053
|
+
};
|
|
14054
|
+
const deserializeAws_restJson1AgentContactReferenceList = (output, context) => {
|
|
14055
|
+
const retVal = (output || [])
|
|
14056
|
+
.filter((e) => e != null)
|
|
14057
|
+
.map((entry) => {
|
|
14058
|
+
if (entry === null) {
|
|
14059
|
+
return null;
|
|
14060
|
+
}
|
|
14061
|
+
return deserializeAws_restJson1AgentContactReference(entry, context);
|
|
14062
|
+
});
|
|
14063
|
+
return retVal;
|
|
14064
|
+
};
|
|
13921
14065
|
const deserializeAws_restJson1AgentInfo = (output, context) => {
|
|
13922
14066
|
return {
|
|
13923
14067
|
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
|
|
@@ -13940,6 +14084,14 @@ const deserializeAws_restJson1AgentStatus = (output, context) => {
|
|
|
13940
14084
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
13941
14085
|
};
|
|
13942
14086
|
};
|
|
14087
|
+
const deserializeAws_restJson1AgentStatusReference = (output, context) => {
|
|
14088
|
+
return {
|
|
14089
|
+
StatusArn: (0, smithy_client_1.expectString)(output.StatusArn),
|
|
14090
|
+
StatusStartTimestamp: output.StatusStartTimestamp !== undefined && output.StatusStartTimestamp !== null
|
|
14091
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusStartTimestamp)))
|
|
14092
|
+
: undefined,
|
|
14093
|
+
};
|
|
14094
|
+
};
|
|
13943
14095
|
const deserializeAws_restJson1AgentStatusSummary = (output, context) => {
|
|
13944
14096
|
return {
|
|
13945
14097
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -14012,6 +14164,17 @@ const deserializeAws_restJson1AvailableNumberSummary = (output, context) => {
|
|
|
14012
14164
|
PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
|
|
14013
14165
|
};
|
|
14014
14166
|
};
|
|
14167
|
+
const deserializeAws_restJson1ChannelToCountMap = (output, context) => {
|
|
14168
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
14169
|
+
if (value === null) {
|
|
14170
|
+
return acc;
|
|
14171
|
+
}
|
|
14172
|
+
return {
|
|
14173
|
+
...acc,
|
|
14174
|
+
[key]: (0, smithy_client_1.expectInt32)(value),
|
|
14175
|
+
};
|
|
14176
|
+
}, {});
|
|
14177
|
+
};
|
|
14015
14178
|
const deserializeAws_restJson1ClaimedPhoneNumberSummary = (output, context) => {
|
|
14016
14179
|
return {
|
|
14017
14180
|
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
@@ -14272,6 +14435,12 @@ const deserializeAws_restJson1HierarchyGroupSummaryList = (output, context) => {
|
|
|
14272
14435
|
});
|
|
14273
14436
|
return retVal;
|
|
14274
14437
|
};
|
|
14438
|
+
const deserializeAws_restJson1HierarchyGroupSummaryReference = (output, context) => {
|
|
14439
|
+
return {
|
|
14440
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
14441
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
14442
|
+
};
|
|
14443
|
+
};
|
|
14275
14444
|
const deserializeAws_restJson1HierarchyLevel = (output, context) => {
|
|
14276
14445
|
return {
|
|
14277
14446
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -14298,6 +14467,25 @@ const deserializeAws_restJson1HierarchyPath = (output, context) => {
|
|
|
14298
14467
|
: undefined,
|
|
14299
14468
|
};
|
|
14300
14469
|
};
|
|
14470
|
+
const deserializeAws_restJson1HierarchyPathReference = (output, context) => {
|
|
14471
|
+
return {
|
|
14472
|
+
LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
|
|
14473
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFive, context)
|
|
14474
|
+
: undefined,
|
|
14475
|
+
LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
|
|
14476
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFour, context)
|
|
14477
|
+
: undefined,
|
|
14478
|
+
LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
|
|
14479
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelOne, context)
|
|
14480
|
+
: undefined,
|
|
14481
|
+
LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
|
|
14482
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelThree, context)
|
|
14483
|
+
: undefined,
|
|
14484
|
+
LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
|
|
14485
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelTwo, context)
|
|
14486
|
+
: undefined,
|
|
14487
|
+
};
|
|
14488
|
+
};
|
|
14301
14489
|
const deserializeAws_restJson1HierarchyStructure = (output, context) => {
|
|
14302
14490
|
return {
|
|
14303
14491
|
LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
|
|
@@ -14985,6 +15173,12 @@ const deserializeAws_restJson1RoutingProfileQueueConfigSummaryList = (output, co
|
|
|
14985
15173
|
});
|
|
14986
15174
|
return retVal;
|
|
14987
15175
|
};
|
|
15176
|
+
const deserializeAws_restJson1RoutingProfileReference = (output, context) => {
|
|
15177
|
+
return {
|
|
15178
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
15179
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
15180
|
+
};
|
|
15181
|
+
};
|
|
14988
15182
|
const deserializeAws_restJson1RoutingProfileSummary = (output, context) => {
|
|
14989
15183
|
return {
|
|
14990
15184
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -15246,6 +15440,45 @@ const deserializeAws_restJson1User = (output, context) => {
|
|
|
15246
15440
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
15247
15441
|
};
|
|
15248
15442
|
};
|
|
15443
|
+
const deserializeAws_restJson1UserData = (output, context) => {
|
|
15444
|
+
return {
|
|
15445
|
+
ActiveSlotsByChannel: output.ActiveSlotsByChannel !== undefined && output.ActiveSlotsByChannel !== null
|
|
15446
|
+
? deserializeAws_restJson1ChannelToCountMap(output.ActiveSlotsByChannel, context)
|
|
15447
|
+
: undefined,
|
|
15448
|
+
AvailableSlotsByChannel: output.AvailableSlotsByChannel !== undefined && output.AvailableSlotsByChannel !== null
|
|
15449
|
+
? deserializeAws_restJson1ChannelToCountMap(output.AvailableSlotsByChannel, context)
|
|
15450
|
+
: undefined,
|
|
15451
|
+
Contacts: output.Contacts !== undefined && output.Contacts !== null
|
|
15452
|
+
? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context)
|
|
15453
|
+
: undefined,
|
|
15454
|
+
HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
|
|
15455
|
+
? deserializeAws_restJson1HierarchyPathReference(output.HierarchyPath, context)
|
|
15456
|
+
: undefined,
|
|
15457
|
+
MaxSlotsByChannel: output.MaxSlotsByChannel !== undefined && output.MaxSlotsByChannel !== null
|
|
15458
|
+
? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
|
|
15459
|
+
: undefined,
|
|
15460
|
+
RoutingProfile: output.RoutingProfile !== undefined && output.RoutingProfile !== null
|
|
15461
|
+
? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
|
|
15462
|
+
: undefined,
|
|
15463
|
+
Status: output.Status !== undefined && output.Status !== null
|
|
15464
|
+
? deserializeAws_restJson1AgentStatusReference(output.Status, context)
|
|
15465
|
+
: undefined,
|
|
15466
|
+
User: output.User !== undefined && output.User !== null
|
|
15467
|
+
? deserializeAws_restJson1UserReference(output.User, context)
|
|
15468
|
+
: undefined,
|
|
15469
|
+
};
|
|
15470
|
+
};
|
|
15471
|
+
const deserializeAws_restJson1UserDataList = (output, context) => {
|
|
15472
|
+
const retVal = (output || [])
|
|
15473
|
+
.filter((e) => e != null)
|
|
15474
|
+
.map((entry) => {
|
|
15475
|
+
if (entry === null) {
|
|
15476
|
+
return null;
|
|
15477
|
+
}
|
|
15478
|
+
return deserializeAws_restJson1UserData(entry, context);
|
|
15479
|
+
});
|
|
15480
|
+
return retVal;
|
|
15481
|
+
};
|
|
15249
15482
|
const deserializeAws_restJson1UserIdentityInfo = (output, context) => {
|
|
15250
15483
|
return {
|
|
15251
15484
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
@@ -15273,6 +15506,12 @@ const deserializeAws_restJson1UserQuickConnectConfig = (output, context) => {
|
|
|
15273
15506
|
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
15274
15507
|
};
|
|
15275
15508
|
};
|
|
15509
|
+
const deserializeAws_restJson1UserReference = (output, context) => {
|
|
15510
|
+
return {
|
|
15511
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
15512
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
15513
|
+
};
|
|
15514
|
+
};
|
|
15276
15515
|
const deserializeAws_restJson1UserSearchSummary = (output, context) => {
|
|
15277
15516
|
return {
|
|
15278
15517
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
package/dist-es/Connect.js
CHANGED
|
@@ -65,6 +65,7 @@ import { DisassociateRoutingProfileQueuesCommand, } from "./commands/Disassociat
|
|
|
65
65
|
import { DisassociateSecurityKeyCommand, } from "./commands/DisassociateSecurityKeyCommand";
|
|
66
66
|
import { GetContactAttributesCommand, } from "./commands/GetContactAttributesCommand";
|
|
67
67
|
import { GetCurrentMetricDataCommand, } from "./commands/GetCurrentMetricDataCommand";
|
|
68
|
+
import { GetCurrentUserDataCommand, } from "./commands/GetCurrentUserDataCommand";
|
|
68
69
|
import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
|
|
69
70
|
import { GetMetricDataCommand, } from "./commands/GetMetricDataCommand";
|
|
70
71
|
import { GetTaskTemplateCommand, } from "./commands/GetTaskTemplateCommand";
|
|
@@ -1079,6 +1080,20 @@ var Connect = (function (_super) {
|
|
|
1079
1080
|
return this.send(command, optionsOrCb);
|
|
1080
1081
|
}
|
|
1081
1082
|
};
|
|
1083
|
+
Connect.prototype.getCurrentUserData = function (args, optionsOrCb, cb) {
|
|
1084
|
+
var command = new GetCurrentUserDataCommand(args);
|
|
1085
|
+
if (typeof optionsOrCb === "function") {
|
|
1086
|
+
this.send(command, optionsOrCb);
|
|
1087
|
+
}
|
|
1088
|
+
else if (typeof cb === "function") {
|
|
1089
|
+
if (typeof optionsOrCb !== "object")
|
|
1090
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1091
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
return this.send(command, optionsOrCb);
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1082
1097
|
Connect.prototype.getFederationToken = function (args, optionsOrCb, cb) {
|
|
1083
1098
|
var command = new GetFederationTokenCommand(args);
|
|
1084
1099
|
if (typeof optionsOrCb === "function") {
|
package/dist-es/ConnectClient.js
CHANGED
|
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
|
|
|
3
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
6
7
|
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
@@ -25,6 +26,7 @@ var ConnectClient = (function (_super) {
|
|
|
25
26
|
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
27
|
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
28
|
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
30
|
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
31
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
32
|
return _this;
|
|
@@ -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 { GetCurrentUserDataRequest, GetCurrentUserDataResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetCurrentUserDataCommand, serializeAws_restJson1GetCurrentUserDataCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetCurrentUserDataCommand = (function (_super) {
|
|
7
|
+
__extends(GetCurrentUserDataCommand, _super);
|
|
8
|
+
function GetCurrentUserDataCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetCurrentUserDataCommand.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 = "GetCurrentUserDataCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetCurrentUserDataRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetCurrentUserDataResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetCurrentUserDataCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetCurrentUserDataCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetCurrentUserDataCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetCurrentUserDataCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetCurrentUserDataCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetCurrentUserDataCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListQueuesRequest, ListQueuesResponse } from "../models/
|
|
4
|
+
import { ListQueuesRequest, ListQueuesResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restJson1ListQueuesCommand, serializeAws_restJson1ListQueuesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListQueuesCommand = (function (_super) {
|
|
7
7
|
__extends(ListQueuesCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListQuickConnectsRequest, ListQuickConnectsResponse } from "../models/
|
|
4
|
+
import { ListQuickConnectsRequest, ListQuickConnectsResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restJson1ListQuickConnectsCommand, serializeAws_restJson1ListQuickConnectsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListQuickConnectsCommand = (function (_super) {
|
|
7
7
|
__extends(ListQuickConnectsCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListRoutingProfileQueuesRequest, ListRoutingProfileQueuesResponse } from "../models/
|
|
4
|
+
import { ListRoutingProfileQueuesRequest, ListRoutingProfileQueuesResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restJson1ListRoutingProfileQueuesCommand, serializeAws_restJson1ListRoutingProfileQueuesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListRoutingProfileQueuesCommand = (function (_super) {
|
|
7
7
|
__extends(ListRoutingProfileQueuesCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListRoutingProfilesRequest, ListRoutingProfilesResponse } from "../models/
|
|
4
|
+
import { ListRoutingProfilesRequest, ListRoutingProfilesResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restJson1ListRoutingProfilesCommand, serializeAws_restJson1ListRoutingProfilesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListRoutingProfilesCommand = (function (_super) {
|
|
7
7
|
__extends(ListRoutingProfilesCommand, _super);
|
|
@@ -64,6 +64,7 @@ export * from "./DisassociateRoutingProfileQueuesCommand";
|
|
|
64
64
|
export * from "./DisassociateSecurityKeyCommand";
|
|
65
65
|
export * from "./GetContactAttributesCommand";
|
|
66
66
|
export * from "./GetCurrentMetricDataCommand";
|
|
67
|
+
export * from "./GetCurrentUserDataCommand";
|
|
67
68
|
export * from "./GetFederationTokenCommand";
|
|
68
69
|
export * from "./GetMetricDataCommand";
|
|
69
70
|
export * from "./GetTaskTemplateCommand";
|