@aws-sdk/client-connect 3.470.0 → 3.474.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist-cjs/Connect.js +4 -0
- package/dist-cjs/commands/TagContactCommand.js +51 -0
- package/dist-cjs/commands/UntagContactCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +140 -7
- package/dist-es/Connect.js +4 -0
- package/dist-es/commands/TagContactCommand.js +47 -0
- package/dist-es/commands/UntagContactCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +129 -0
- package/dist-types/Connect.d.ts +14 -0
- package/dist-types/ConnectClient.d.ts +4 -2
- package/dist-types/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +2 -2
- package/dist-types/commands/DescribeContactCommand.d.ts +3 -0
- package/dist-types/commands/TagContactCommand.d.ts +92 -0
- package/dist-types/commands/UntagContactCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +34 -28
- package/dist-types/models/models_1.d.ts +15 -15
- package/dist-types/models/models_2.d.ts +62 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Connect.d.ts +34 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/TagContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_2.d.ts +12 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1660,6 +1660,14 @@ SuspendContactRecording
|
|
|
1660
1660
|
|
|
1661
1661
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SuspendContactRecordingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SuspendContactRecordingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SuspendContactRecordingCommandOutput/)
|
|
1662
1662
|
|
|
1663
|
+
</details>
|
|
1664
|
+
<details>
|
|
1665
|
+
<summary>
|
|
1666
|
+
TagContact
|
|
1667
|
+
</summary>
|
|
1668
|
+
|
|
1669
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/TagContactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/TagContactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/TagContactCommandOutput/)
|
|
1670
|
+
|
|
1663
1671
|
</details>
|
|
1664
1672
|
<details>
|
|
1665
1673
|
<summary>
|
|
@@ -1676,6 +1684,14 @@ TransferContact
|
|
|
1676
1684
|
|
|
1677
1685
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/TransferContactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/TransferContactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/TransferContactCommandOutput/)
|
|
1678
1686
|
|
|
1687
|
+
</details>
|
|
1688
|
+
<details>
|
|
1689
|
+
<summary>
|
|
1690
|
+
UntagContact
|
|
1691
|
+
</summary>
|
|
1692
|
+
|
|
1693
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/UntagContactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UntagContactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UntagContactCommandOutput/)
|
|
1694
|
+
|
|
1679
1695
|
</details>
|
|
1680
1696
|
<details>
|
|
1681
1697
|
<summary>
|
package/dist-cjs/Connect.js
CHANGED
|
@@ -183,8 +183,10 @@ const StopContactRecordingCommand_1 = require("./commands/StopContactRecordingCo
|
|
|
183
183
|
const StopContactStreamingCommand_1 = require("./commands/StopContactStreamingCommand");
|
|
184
184
|
const SubmitContactEvaluationCommand_1 = require("./commands/SubmitContactEvaluationCommand");
|
|
185
185
|
const SuspendContactRecordingCommand_1 = require("./commands/SuspendContactRecordingCommand");
|
|
186
|
+
const TagContactCommand_1 = require("./commands/TagContactCommand");
|
|
186
187
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
187
188
|
const TransferContactCommand_1 = require("./commands/TransferContactCommand");
|
|
189
|
+
const UntagContactCommand_1 = require("./commands/UntagContactCommand");
|
|
188
190
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
189
191
|
const UpdateAgentStatusCommand_1 = require("./commands/UpdateAgentStatusCommand");
|
|
190
192
|
const UpdateContactAttributesCommand_1 = require("./commands/UpdateContactAttributesCommand");
|
|
@@ -412,8 +414,10 @@ const commands = {
|
|
|
412
414
|
StopContactStreamingCommand: StopContactStreamingCommand_1.StopContactStreamingCommand,
|
|
413
415
|
SubmitContactEvaluationCommand: SubmitContactEvaluationCommand_1.SubmitContactEvaluationCommand,
|
|
414
416
|
SuspendContactRecordingCommand: SuspendContactRecordingCommand_1.SuspendContactRecordingCommand,
|
|
417
|
+
TagContactCommand: TagContactCommand_1.TagContactCommand,
|
|
415
418
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
416
419
|
TransferContactCommand: TransferContactCommand_1.TransferContactCommand,
|
|
420
|
+
UntagContactCommand: UntagContactCommand_1.UntagContactCommand,
|
|
417
421
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
418
422
|
UpdateAgentStatusCommand: UpdateAgentStatusCommand_1.UpdateAgentStatusCommand,
|
|
419
423
|
UpdateContactCommand: UpdateContactCommand_1.UpdateContactCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagContactCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class TagContactCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagContactCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "ConnectClient";
|
|
29
|
+
const commandName = "TagContactCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonConnectService",
|
|
38
|
+
operation: "TagContact",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_TagContactCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_TagContactCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.TagContactCommand = TagContactCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UntagContactCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UntagContactCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagContactCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "ConnectClient";
|
|
29
|
+
const commandName = "UntagContactCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonConnectService",
|
|
38
|
+
operation: "UntagContact",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_UntagContactCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_UntagContactCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UntagContactCommand = UntagContactCommand;
|
|
@@ -182,8 +182,10 @@ tslib_1.__exportStar(require("./StopContactRecordingCommand"), exports);
|
|
|
182
182
|
tslib_1.__exportStar(require("./StopContactStreamingCommand"), exports);
|
|
183
183
|
tslib_1.__exportStar(require("./SubmitContactEvaluationCommand"), exports);
|
|
184
184
|
tslib_1.__exportStar(require("./SuspendContactRecordingCommand"), exports);
|
|
185
|
+
tslib_1.__exportStar(require("./TagContactCommand"), exports);
|
|
185
186
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
186
187
|
tslib_1.__exportStar(require("./TransferContactCommand"), exports);
|
|
188
|
+
tslib_1.__exportStar(require("./UntagContactCommand"), exports);
|
|
187
189
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
188
190
|
tslib_1.__exportStar(require("./UpdateAgentStatusCommand"), exports);
|
|
189
191
|
tslib_1.__exportStar(require("./UpdateContactAttributesCommand"), exports);
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateViewVersionCommand = exports.se_CreateViewCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreatePromptCommand = exports.se_CreatePersistentContactAssociationCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_BatchPutContactCommand = exports.se_BatchGetFlowAssociationCommand = exports.se_BatchDisassociateAnalyticsDataSetCommand = exports.se_BatchAssociateAnalyticsDataSetCommand = exports.se_AssociateTrafficDistributionGroupUserCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateFlowCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_AssociateAnalyticsDataSetCommand = exports.se_ActivateEvaluationFormCommand = void 0;
|
|
4
4
|
exports.se_DismissUserContactCommand = exports.se_DisassociateTrafficDistributionGroupUserCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateFlowCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DisassociateAnalyticsDataSetCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeViewCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePromptCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteViewVersionCommand = exports.se_DeleteViewCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteRoutingProfileCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteQueueCommand = exports.se_DeletePromptCommand = void 0;
|
|
5
5
|
exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupUsersCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityProfileApplicationsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListRealtimeContactAnalysisSegmentsV2Command = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListFlowAssociationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAnalyticsDataAssociationsCommand = exports.se_ListAgentStatusesCommand = exports.se_ImportPhoneNumberCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFlowAssociationCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = void 0;
|
|
6
|
+
exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_UntagContactCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_TagContactCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartWebRTCContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SendChatIntegrationEventCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchResourceTagsCommand = exports.se_SearchQuickConnectsCommand = exports.se_SearchQueuesCommand = exports.se_SearchPromptsCommand = exports.se_SearchHoursOfOperationsCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListViewVersionsCommand = exports.se_ListViewsCommand = exports.se_ListUsersCommand = void 0;
|
|
7
|
+
exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_BatchPutContactCommand = exports.de_BatchGetFlowAssociationCommand = exports.de_BatchDisassociateAnalyticsDataSetCommand = exports.de_BatchAssociateAnalyticsDataSetCommand = exports.de_AssociateTrafficDistributionGroupUserCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateFlowCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_AssociateAnalyticsDataSetCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateViewMetadataCommand = exports.se_UpdateViewContentCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberMetadataCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = void 0;
|
|
8
|
+
exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteViewVersionCommand = exports.de_DeleteViewCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteRoutingProfileCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteQueueCommand = exports.de_DeletePromptCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateViewVersionCommand = exports.de_CreateViewCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreatePromptCommand = exports.de_CreatePersistentContactAssociationCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = void 0;
|
|
9
|
+
exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAnalyticsDataAssociationsCommand = exports.de_ListAgentStatusesCommand = exports.de_ImportPhoneNumberCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFlowAssociationCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateTrafficDistributionGroupUserCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateFlowCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DisassociateAnalyticsDataSetCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeViewCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePromptCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = void 0;
|
|
10
|
+
exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SendChatIntegrationEventCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchResourceTagsCommand = exports.de_SearchQuickConnectsCommand = exports.de_SearchQueuesCommand = exports.de_SearchPromptsCommand = exports.de_SearchHoursOfOperationsCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListViewVersionsCommand = exports.de_ListViewsCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupUsersCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityProfileApplicationsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListRealtimeContactAnalysisSegmentsV2Command = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListFlowAssociationsCommand = exports.de_ListEvaluationFormVersionsCommand = void 0;
|
|
11
|
+
exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = exports.de_UpdatePhoneNumberMetadataCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_UntagContactCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_TagContactCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartWebRTCContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = void 0;
|
|
12
|
+
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = void 0;
|
|
13
13
|
const core_1 = require("@aws-sdk/core");
|
|
14
14
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
15
15
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -4149,6 +4149,29 @@ const se_SuspendContactRecordingCommand = async (input, context) => {
|
|
|
4149
4149
|
});
|
|
4150
4150
|
};
|
|
4151
4151
|
exports.se_SuspendContactRecordingCommand = se_SuspendContactRecordingCommand;
|
|
4152
|
+
const se_TagContactCommand = async (input, context) => {
|
|
4153
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4154
|
+
const headers = {
|
|
4155
|
+
"content-type": "application/json",
|
|
4156
|
+
};
|
|
4157
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags";
|
|
4158
|
+
let body;
|
|
4159
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4160
|
+
ContactId: [],
|
|
4161
|
+
InstanceId: [],
|
|
4162
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
4163
|
+
}));
|
|
4164
|
+
return new protocol_http_1.HttpRequest({
|
|
4165
|
+
protocol,
|
|
4166
|
+
hostname,
|
|
4167
|
+
port,
|
|
4168
|
+
method: "POST",
|
|
4169
|
+
headers,
|
|
4170
|
+
path: resolvedPath,
|
|
4171
|
+
body,
|
|
4172
|
+
});
|
|
4173
|
+
};
|
|
4174
|
+
exports.se_TagContactCommand = se_TagContactCommand;
|
|
4152
4175
|
const se_TagResourceCommand = async (input, context) => {
|
|
4153
4176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4154
4177
|
const headers = {
|
|
@@ -4197,6 +4220,31 @@ const se_TransferContactCommand = async (input, context) => {
|
|
|
4197
4220
|
});
|
|
4198
4221
|
};
|
|
4199
4222
|
exports.se_TransferContactCommand = se_TransferContactCommand;
|
|
4223
|
+
const se_UntagContactCommand = async (input, context) => {
|
|
4224
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4225
|
+
const headers = {};
|
|
4226
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags/{InstanceId}/{ContactId}";
|
|
4227
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
|
|
4228
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
4229
|
+
const query = (0, smithy_client_1.map)({
|
|
4230
|
+
TagKeys: [
|
|
4231
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
4232
|
+
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
4233
|
+
],
|
|
4234
|
+
});
|
|
4235
|
+
let body;
|
|
4236
|
+
return new protocol_http_1.HttpRequest({
|
|
4237
|
+
protocol,
|
|
4238
|
+
hostname,
|
|
4239
|
+
port,
|
|
4240
|
+
method: "DELETE",
|
|
4241
|
+
headers,
|
|
4242
|
+
path: resolvedPath,
|
|
4243
|
+
query,
|
|
4244
|
+
body,
|
|
4245
|
+
});
|
|
4246
|
+
};
|
|
4247
|
+
exports.se_UntagContactCommand = se_UntagContactCommand;
|
|
4200
4248
|
const se_UntagResourceCommand = async (input, context) => {
|
|
4201
4249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4202
4250
|
const headers = {};
|
|
@@ -13749,6 +13797,48 @@ const de_SuspendContactRecordingCommandError = async (output, context) => {
|
|
|
13749
13797
|
});
|
|
13750
13798
|
}
|
|
13751
13799
|
};
|
|
13800
|
+
const de_TagContactCommand = async (output, context) => {
|
|
13801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13802
|
+
return de_TagContactCommandError(output, context);
|
|
13803
|
+
}
|
|
13804
|
+
const contents = (0, smithy_client_1.map)({
|
|
13805
|
+
$metadata: deserializeMetadata(output),
|
|
13806
|
+
});
|
|
13807
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
13808
|
+
return contents;
|
|
13809
|
+
};
|
|
13810
|
+
exports.de_TagContactCommand = de_TagContactCommand;
|
|
13811
|
+
const de_TagContactCommandError = async (output, context) => {
|
|
13812
|
+
const parsedOutput = {
|
|
13813
|
+
...output,
|
|
13814
|
+
body: await parseErrorBody(output.body, context),
|
|
13815
|
+
};
|
|
13816
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13817
|
+
switch (errorCode) {
|
|
13818
|
+
case "InternalServiceException":
|
|
13819
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13820
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13821
|
+
case "InvalidParameterException":
|
|
13822
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13823
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13824
|
+
case "InvalidRequestException":
|
|
13825
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13826
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13827
|
+
case "ResourceNotFoundException":
|
|
13828
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13829
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13830
|
+
case "ThrottlingException":
|
|
13831
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13832
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13833
|
+
default:
|
|
13834
|
+
const parsedBody = parsedOutput.body;
|
|
13835
|
+
return throwDefaultError({
|
|
13836
|
+
output,
|
|
13837
|
+
parsedBody,
|
|
13838
|
+
errorCode,
|
|
13839
|
+
});
|
|
13840
|
+
}
|
|
13841
|
+
};
|
|
13752
13842
|
const de_TagResourceCommand = async (output, context) => {
|
|
13753
13843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13754
13844
|
return de_TagResourceCommandError(output, context);
|
|
@@ -13844,6 +13934,48 @@ const de_TransferContactCommandError = async (output, context) => {
|
|
|
13844
13934
|
});
|
|
13845
13935
|
}
|
|
13846
13936
|
};
|
|
13937
|
+
const de_UntagContactCommand = async (output, context) => {
|
|
13938
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13939
|
+
return de_UntagContactCommandError(output, context);
|
|
13940
|
+
}
|
|
13941
|
+
const contents = (0, smithy_client_1.map)({
|
|
13942
|
+
$metadata: deserializeMetadata(output),
|
|
13943
|
+
});
|
|
13944
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
13945
|
+
return contents;
|
|
13946
|
+
};
|
|
13947
|
+
exports.de_UntagContactCommand = de_UntagContactCommand;
|
|
13948
|
+
const de_UntagContactCommandError = async (output, context) => {
|
|
13949
|
+
const parsedOutput = {
|
|
13950
|
+
...output,
|
|
13951
|
+
body: await parseErrorBody(output.body, context),
|
|
13952
|
+
};
|
|
13953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13954
|
+
switch (errorCode) {
|
|
13955
|
+
case "InternalServiceException":
|
|
13956
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13957
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13958
|
+
case "InvalidParameterException":
|
|
13959
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13960
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13961
|
+
case "InvalidRequestException":
|
|
13962
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13963
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13964
|
+
case "ResourceNotFoundException":
|
|
13965
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13966
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13967
|
+
case "ThrottlingException":
|
|
13968
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13969
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13970
|
+
default:
|
|
13971
|
+
const parsedBody = parsedOutput.body;
|
|
13972
|
+
return throwDefaultError({
|
|
13973
|
+
output,
|
|
13974
|
+
parsedBody,
|
|
13975
|
+
errorCode,
|
|
13976
|
+
});
|
|
13977
|
+
}
|
|
13978
|
+
};
|
|
13847
13979
|
const de_UntagResourceCommand = async (output, context) => {
|
|
13848
13980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13849
13981
|
return de_UntagResourceCommandError(output, context);
|
|
@@ -16417,6 +16549,7 @@ const de_Contact = (output, context) => {
|
|
|
16417
16549
|
QueueInfo: (_) => de_QueueInfo(_, context),
|
|
16418
16550
|
RelatedContactId: smithy_client_1.expectString,
|
|
16419
16551
|
ScheduledTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16552
|
+
Tags: smithy_client_1._json,
|
|
16420
16553
|
WisdomInfo: smithy_client_1._json,
|
|
16421
16554
|
});
|
|
16422
16555
|
};
|
package/dist-es/Connect.js
CHANGED
|
@@ -180,8 +180,10 @@ import { StopContactRecordingCommand, } from "./commands/StopContactRecordingCom
|
|
|
180
180
|
import { StopContactStreamingCommand, } from "./commands/StopContactStreamingCommand";
|
|
181
181
|
import { SubmitContactEvaluationCommand, } from "./commands/SubmitContactEvaluationCommand";
|
|
182
182
|
import { SuspendContactRecordingCommand, } from "./commands/SuspendContactRecordingCommand";
|
|
183
|
+
import { TagContactCommand } from "./commands/TagContactCommand";
|
|
183
184
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
184
185
|
import { TransferContactCommand, } from "./commands/TransferContactCommand";
|
|
186
|
+
import { UntagContactCommand, } from "./commands/UntagContactCommand";
|
|
185
187
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
186
188
|
import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
|
|
187
189
|
import { UpdateContactAttributesCommand, } from "./commands/UpdateContactAttributesCommand";
|
|
@@ -409,8 +411,10 @@ const commands = {
|
|
|
409
411
|
StopContactStreamingCommand,
|
|
410
412
|
SubmitContactEvaluationCommand,
|
|
411
413
|
SuspendContactRecordingCommand,
|
|
414
|
+
TagContactCommand,
|
|
412
415
|
TagResourceCommand,
|
|
413
416
|
TransferContactCommand,
|
|
417
|
+
UntagContactCommand,
|
|
414
418
|
UntagResourceCommand,
|
|
415
419
|
UpdateAgentStatusCommand,
|
|
416
420
|
UpdateContactCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_TagContactCommand, se_TagContactCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class TagContactCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, TagContactCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "TagContactCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "TagContact",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_TagContactCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_TagContactCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UntagContactCommand, se_UntagContactCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UntagContactCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UntagContactCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "UntagContactCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "UntagContact",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UntagContactCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UntagContactCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -179,8 +179,10 @@ export * from "./StopContactRecordingCommand";
|
|
|
179
179
|
export * from "./StopContactStreamingCommand";
|
|
180
180
|
export * from "./SubmitContactEvaluationCommand";
|
|
181
181
|
export * from "./SuspendContactRecordingCommand";
|
|
182
|
+
export * from "./TagContactCommand";
|
|
182
183
|
export * from "./TagResourceCommand";
|
|
183
184
|
export * from "./TransferContactCommand";
|
|
185
|
+
export * from "./UntagContactCommand";
|
|
184
186
|
export * from "./UntagResourceCommand";
|
|
185
187
|
export * from "./UpdateAgentStatusCommand";
|
|
186
188
|
export * from "./UpdateContactAttributesCommand";
|