@aws-sdk/client-connectcampaignsv2 3.694.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/LICENSE +201 -0
- package/README.md +461 -0
- package/dist-cjs/ConnectCampaignsV2.js +75 -0
- package/dist-cjs/ConnectCampaignsV2Client.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateCampaignCommand.js +27 -0
- package/dist-cjs/commands/DeleteCampaignChannelSubtypeConfigCommand.js +26 -0
- package/dist-cjs/commands/DeleteCampaignCommand.js +26 -0
- package/dist-cjs/commands/DeleteCampaignCommunicationLimitsCommand.js +26 -0
- package/dist-cjs/commands/DeleteCampaignCommunicationTimeCommand.js +26 -0
- package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +26 -0
- package/dist-cjs/commands/DeleteConnectInstanceIntegrationCommand.js +26 -0
- package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +26 -0
- package/dist-cjs/commands/DescribeCampaignCommand.js +27 -0
- package/dist-cjs/commands/GetCampaignStateBatchCommand.js +26 -0
- package/dist-cjs/commands/GetCampaignStateCommand.js +26 -0
- package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +26 -0
- package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +26 -0
- package/dist-cjs/commands/ListCampaignsCommand.js +26 -0
- package/dist-cjs/commands/ListConnectInstanceIntegrationsCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/PauseCampaignCommand.js +26 -0
- package/dist-cjs/commands/PutConnectInstanceIntegrationCommand.js +26 -0
- package/dist-cjs/commands/PutOutboundRequestBatchCommand.js +27 -0
- package/dist-cjs/commands/ResumeCampaignCommand.js +26 -0
- package/dist-cjs/commands/StartCampaignCommand.js +26 -0
- package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +26 -0
- package/dist-cjs/commands/StopCampaignCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignChannelSubtypeConfigCommand.js +27 -0
- package/dist-cjs/commands/UpdateCampaignCommunicationLimitsCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignCommunicationTimeCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignFlowAssociationCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignNameCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignScheduleCommand.js +26 -0
- package/dist-cjs/commands/UpdateCampaignSourceCommand.js +26 -0
- package/dist-cjs/commands/index.js +35 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ConnectCampaignsV2ServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +409 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCampaignsPaginator.js +7 -0
- package/dist-cjs/pagination/ListConnectInstanceIntegrationsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1193 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/ConnectCampaignsV2.js +71 -0
- package/dist-es/ConnectCampaignsV2Client.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateCampaignCommand.js +23 -0
- package/dist-es/commands/DeleteCampaignChannelSubtypeConfigCommand.js +22 -0
- package/dist-es/commands/DeleteCampaignCommand.js +22 -0
- package/dist-es/commands/DeleteCampaignCommunicationLimitsCommand.js +22 -0
- package/dist-es/commands/DeleteCampaignCommunicationTimeCommand.js +22 -0
- package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +22 -0
- package/dist-es/commands/DeleteConnectInstanceIntegrationCommand.js +22 -0
- package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +22 -0
- package/dist-es/commands/DescribeCampaignCommand.js +23 -0
- package/dist-es/commands/GetCampaignStateBatchCommand.js +22 -0
- package/dist-es/commands/GetCampaignStateCommand.js +22 -0
- package/dist-es/commands/GetConnectInstanceConfigCommand.js +22 -0
- package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +22 -0
- package/dist-es/commands/ListCampaignsCommand.js +22 -0
- package/dist-es/commands/ListConnectInstanceIntegrationsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PauseCampaignCommand.js +22 -0
- package/dist-es/commands/PutConnectInstanceIntegrationCommand.js +22 -0
- package/dist-es/commands/PutOutboundRequestBatchCommand.js +23 -0
- package/dist-es/commands/ResumeCampaignCommand.js +22 -0
- package/dist-es/commands/StartCampaignCommand.js +22 -0
- package/dist-es/commands/StartInstanceOnboardingJobCommand.js +22 -0
- package/dist-es/commands/StopCampaignCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignChannelSubtypeConfigCommand.js +23 -0
- package/dist-es/commands/UpdateCampaignCommunicationLimitsCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignCommunicationTimeCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignFlowAssociationCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignNameCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignScheduleCommand.js +22 -0
- package/dist-es/commands/UpdateCampaignSourceCommand.js +22 -0
- package/dist-es/commands/index.js +32 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ConnectCampaignsV2ServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +384 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCampaignsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectInstanceIntegrationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1125 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/ConnectCampaignsV2.d.ts +235 -0
- package/dist-types/ConnectCampaignsV2Client.d.ts +201 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateCampaignCommand.d.ts +235 -0
- package/dist-types/commands/DeleteCampaignChannelSubtypeConfigCommand.d.ts +85 -0
- package/dist-types/commands/DeleteCampaignCommand.d.ts +81 -0
- package/dist-types/commands/DeleteCampaignCommunicationLimitsCommand.d.ts +88 -0
- package/dist-types/commands/DeleteCampaignCommunicationTimeCommand.d.ts +88 -0
- package/dist-types/commands/DeleteConnectInstanceConfigCommand.d.ts +88 -0
- package/dist-types/commands/DeleteConnectInstanceIntegrationCommand.d.ts +92 -0
- package/dist-types/commands/DeleteInstanceOnboardingJobCommand.d.ts +84 -0
- package/dist-types/commands/DescribeCampaignCommand.d.ts +226 -0
- package/dist-types/commands/GetCampaignStateBatchCommand.d.ts +96 -0
- package/dist-types/commands/GetCampaignStateCommand.d.ts +86 -0
- package/dist-types/commands/GetConnectInstanceConfigCommand.d.ts +91 -0
- package/dist-types/commands/GetInstanceOnboardingJobStatusCommand.d.ts +87 -0
- package/dist-types/commands/ListCampaignsCommand.d.ts +104 -0
- package/dist-types/commands/ListConnectInstanceIntegrationsCommand.d.ts +101 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/PauseCampaignCommand.d.ts +90 -0
- package/dist-types/commands/PutConnectInstanceIntegrationCommand.d.ts +98 -0
- package/dist-types/commands/PutOutboundRequestBatchCommand.d.ts +139 -0
- package/dist-types/commands/ResumeCampaignCommand.d.ts +90 -0
- package/dist-types/commands/StartCampaignCommand.d.ts +90 -0
- package/dist-types/commands/StartInstanceOnboardingJobCommand.d.ts +98 -0
- package/dist-types/commands/StopCampaignCommand.d.ts +90 -0
- package/dist-types/commands/TagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateCampaignChannelSubtypeConfigCommand.d.ts +128 -0
- package/dist-types/commands/UpdateCampaignCommunicationLimitsCommand.d.ts +98 -0
- package/dist-types/commands/UpdateCampaignCommunicationTimeCommand.d.ts +158 -0
- package/dist-types/commands/UpdateCampaignFlowAssociationCommand.d.ts +88 -0
- package/dist-types/commands/UpdateCampaignNameCommand.d.ts +85 -0
- package/dist-types/commands/UpdateCampaignScheduleCommand.d.ts +92 -0
- package/dist-types/commands/UpdateCampaignSourceCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +32 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/ConnectCampaignsV2ServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2299 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListCampaignsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectInstanceIntegrationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +290 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/ConnectCampaignsV2.d.ts +576 -0
- package/dist-types/ts3.4/ConnectCampaignsV2Client.d.ts +313 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/CreateCampaignCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteCampaignChannelSubtypeConfigCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteCampaignCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DeleteCampaignCommunicationLimitsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteCampaignCommunicationTimeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteConnectInstanceConfigCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteConnectInstanceIntegrationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteInstanceOnboardingJobCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeCampaignCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetCampaignStateBatchCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCampaignStateCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetConnectInstanceConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetInstanceOnboardingJobStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCampaignsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListConnectInstanceIntegrationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PauseCampaignCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/PutConnectInstanceIntegrationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutOutboundRequestBatchCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ResumeCampaignCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/StartCampaignCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/StartInstanceOnboardingJobCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopCampaignCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UpdateCampaignChannelSubtypeConfigCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCampaignCommunicationLimitsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCampaignCommunicationTimeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCampaignFlowAssociationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCampaignNameCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/UpdateCampaignScheduleCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/UpdateCampaignSourceCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/index.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/ConnectCampaignsV2ServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +827 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectInstanceIntegrationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +389 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,1193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_PutConnectInstanceIntegrationCommand = exports.de_PauseCampaignCommand = exports.de_ListTagsForResourceCommand = exports.de_ListConnectInstanceIntegrationsCommand = exports.de_ListCampaignsCommand = exports.de_GetInstanceOnboardingJobStatusCommand = exports.de_GetConnectInstanceConfigCommand = exports.de_GetCampaignStateBatchCommand = exports.de_GetCampaignStateCommand = exports.de_DescribeCampaignCommand = exports.de_DeleteInstanceOnboardingJobCommand = exports.de_DeleteConnectInstanceIntegrationCommand = exports.de_DeleteConnectInstanceConfigCommand = exports.de_DeleteCampaignCommunicationTimeCommand = exports.de_DeleteCampaignCommunicationLimitsCommand = exports.de_DeleteCampaignChannelSubtypeConfigCommand = exports.de_DeleteCampaignCommand = exports.de_CreateCampaignCommand = exports.se_UpdateCampaignSourceCommand = exports.se_UpdateCampaignScheduleCommand = exports.se_UpdateCampaignNameCommand = exports.se_UpdateCampaignFlowAssociationCommand = exports.se_UpdateCampaignCommunicationTimeCommand = exports.se_UpdateCampaignCommunicationLimitsCommand = exports.se_UpdateCampaignChannelSubtypeConfigCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopCampaignCommand = exports.se_StartInstanceOnboardingJobCommand = exports.se_StartCampaignCommand = exports.se_ResumeCampaignCommand = exports.se_PutOutboundRequestBatchCommand = exports.se_PutConnectInstanceIntegrationCommand = exports.se_PauseCampaignCommand = exports.se_ListTagsForResourceCommand = exports.se_ListConnectInstanceIntegrationsCommand = exports.se_ListCampaignsCommand = exports.se_GetInstanceOnboardingJobStatusCommand = exports.se_GetConnectInstanceConfigCommand = exports.se_GetCampaignStateBatchCommand = exports.se_GetCampaignStateCommand = exports.se_DescribeCampaignCommand = exports.se_DeleteInstanceOnboardingJobCommand = exports.se_DeleteConnectInstanceIntegrationCommand = exports.se_DeleteConnectInstanceConfigCommand = exports.se_DeleteCampaignCommunicationTimeCommand = exports.se_DeleteCampaignCommunicationLimitsCommand = exports.se_DeleteCampaignChannelSubtypeConfigCommand = exports.se_DeleteCampaignCommand = exports.se_CreateCampaignCommand = void 0;
|
|
4
|
+
exports.de_UpdateCampaignSourceCommand = exports.de_UpdateCampaignScheduleCommand = exports.de_UpdateCampaignNameCommand = exports.de_UpdateCampaignFlowAssociationCommand = exports.de_UpdateCampaignCommunicationTimeCommand = exports.de_UpdateCampaignCommunicationLimitsCommand = exports.de_UpdateCampaignChannelSubtypeConfigCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopCampaignCommand = exports.de_StartInstanceOnboardingJobCommand = exports.de_StartCampaignCommand = exports.de_ResumeCampaignCommand = exports.de_PutOutboundRequestBatchCommand = void 0;
|
|
5
|
+
const core_1 = require("@aws-sdk/core");
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
const ConnectCampaignsV2ServiceException_1 = require("../models/ConnectCampaignsV2ServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const se_CreateCampaignCommand = async (input, context) => {
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
b.bp("/v2/campaigns");
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
channelSubtypeConfig: (_) => se_ChannelSubtypeConfig(_, context),
|
|
19
|
+
communicationLimitsOverride: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
communicationTimeConfig: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
connectCampaignFlowArn: [],
|
|
22
|
+
connectInstanceId: [],
|
|
23
|
+
name: [],
|
|
24
|
+
schedule: (_) => se_Schedule(_, context),
|
|
25
|
+
source: (_) => (0, smithy_client_1._json)(_),
|
|
26
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
27
|
+
}));
|
|
28
|
+
b.m("PUT").h(headers).b(body);
|
|
29
|
+
return b.build();
|
|
30
|
+
};
|
|
31
|
+
exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
|
|
32
|
+
const se_DeleteCampaignCommand = async (input, context) => {
|
|
33
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
34
|
+
const headers = {};
|
|
35
|
+
b.bp("/v2/campaigns/{id}");
|
|
36
|
+
b.p("id", () => input.id, "{id}", false);
|
|
37
|
+
let body;
|
|
38
|
+
b.m("DELETE").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
40
|
+
};
|
|
41
|
+
exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
|
|
42
|
+
const se_DeleteCampaignChannelSubtypeConfigCommand = async (input, context) => {
|
|
43
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
44
|
+
const headers = {};
|
|
45
|
+
b.bp("/v2/campaigns/{id}/channel-subtype-config");
|
|
46
|
+
b.p("id", () => input.id, "{id}", false);
|
|
47
|
+
const query = (0, smithy_client_1.map)({
|
|
48
|
+
[_cS]: [, (0, smithy_client_1.expectNonNull)(input[_cS], `channelSubtype`)],
|
|
49
|
+
});
|
|
50
|
+
let body;
|
|
51
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
52
|
+
return b.build();
|
|
53
|
+
};
|
|
54
|
+
exports.se_DeleteCampaignChannelSubtypeConfigCommand = se_DeleteCampaignChannelSubtypeConfigCommand;
|
|
55
|
+
const se_DeleteCampaignCommunicationLimitsCommand = async (input, context) => {
|
|
56
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
|
+
const headers = {};
|
|
58
|
+
b.bp("/v2/campaigns/{id}/communication-limits");
|
|
59
|
+
b.p("id", () => input.id, "{id}", false);
|
|
60
|
+
const query = (0, smithy_client_1.map)({
|
|
61
|
+
[_c]: [, (0, smithy_client_1.expectNonNull)(input[_c], `config`)],
|
|
62
|
+
});
|
|
63
|
+
let body;
|
|
64
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
65
|
+
return b.build();
|
|
66
|
+
};
|
|
67
|
+
exports.se_DeleteCampaignCommunicationLimitsCommand = se_DeleteCampaignCommunicationLimitsCommand;
|
|
68
|
+
const se_DeleteCampaignCommunicationTimeCommand = async (input, context) => {
|
|
69
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
70
|
+
const headers = {};
|
|
71
|
+
b.bp("/v2/campaigns/{id}/communication-time");
|
|
72
|
+
b.p("id", () => input.id, "{id}", false);
|
|
73
|
+
const query = (0, smithy_client_1.map)({
|
|
74
|
+
[_c]: [, (0, smithy_client_1.expectNonNull)(input[_c], `config`)],
|
|
75
|
+
});
|
|
76
|
+
let body;
|
|
77
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
80
|
+
exports.se_DeleteCampaignCommunicationTimeCommand = se_DeleteCampaignCommunicationTimeCommand;
|
|
81
|
+
const se_DeleteConnectInstanceConfigCommand = async (input, context) => {
|
|
82
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
83
|
+
const headers = {};
|
|
84
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/config");
|
|
85
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
86
|
+
const query = (0, smithy_client_1.map)({
|
|
87
|
+
[_cDP]: [, input[_cDP]],
|
|
88
|
+
});
|
|
89
|
+
let body;
|
|
90
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
91
|
+
return b.build();
|
|
92
|
+
};
|
|
93
|
+
exports.se_DeleteConnectInstanceConfigCommand = se_DeleteConnectInstanceConfigCommand;
|
|
94
|
+
const se_DeleteConnectInstanceIntegrationCommand = async (input, context) => {
|
|
95
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/json",
|
|
98
|
+
};
|
|
99
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/integrations/delete");
|
|
100
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
|
+
integrationIdentifier: (_) => (0, smithy_client_1._json)(_),
|
|
104
|
+
}));
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
107
|
+
};
|
|
108
|
+
exports.se_DeleteConnectInstanceIntegrationCommand = se_DeleteConnectInstanceIntegrationCommand;
|
|
109
|
+
const se_DeleteInstanceOnboardingJobCommand = async (input, context) => {
|
|
110
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
111
|
+
const headers = {};
|
|
112
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
|
|
113
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
114
|
+
let body;
|
|
115
|
+
b.m("DELETE").h(headers).b(body);
|
|
116
|
+
return b.build();
|
|
117
|
+
};
|
|
118
|
+
exports.se_DeleteInstanceOnboardingJobCommand = se_DeleteInstanceOnboardingJobCommand;
|
|
119
|
+
const se_DescribeCampaignCommand = async (input, context) => {
|
|
120
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
121
|
+
const headers = {};
|
|
122
|
+
b.bp("/v2/campaigns/{id}");
|
|
123
|
+
b.p("id", () => input.id, "{id}", false);
|
|
124
|
+
let body;
|
|
125
|
+
b.m("GET").h(headers).b(body);
|
|
126
|
+
return b.build();
|
|
127
|
+
};
|
|
128
|
+
exports.se_DescribeCampaignCommand = se_DescribeCampaignCommand;
|
|
129
|
+
const se_GetCampaignStateCommand = async (input, context) => {
|
|
130
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
131
|
+
const headers = {};
|
|
132
|
+
b.bp("/v2/campaigns/{id}/state");
|
|
133
|
+
b.p("id", () => input.id, "{id}", false);
|
|
134
|
+
let body;
|
|
135
|
+
b.m("GET").h(headers).b(body);
|
|
136
|
+
return b.build();
|
|
137
|
+
};
|
|
138
|
+
exports.se_GetCampaignStateCommand = se_GetCampaignStateCommand;
|
|
139
|
+
const se_GetCampaignStateBatchCommand = async (input, context) => {
|
|
140
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/json",
|
|
143
|
+
};
|
|
144
|
+
b.bp("/v2/campaigns-state");
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
147
|
+
campaignIds: (_) => (0, smithy_client_1._json)(_),
|
|
148
|
+
}));
|
|
149
|
+
b.m("POST").h(headers).b(body);
|
|
150
|
+
return b.build();
|
|
151
|
+
};
|
|
152
|
+
exports.se_GetCampaignStateBatchCommand = se_GetCampaignStateBatchCommand;
|
|
153
|
+
const se_GetConnectInstanceConfigCommand = async (input, context) => {
|
|
154
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
155
|
+
const headers = {};
|
|
156
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/config");
|
|
157
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
158
|
+
let body;
|
|
159
|
+
b.m("GET").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
161
|
+
};
|
|
162
|
+
exports.se_GetConnectInstanceConfigCommand = se_GetConnectInstanceConfigCommand;
|
|
163
|
+
const se_GetInstanceOnboardingJobStatusCommand = async (input, context) => {
|
|
164
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
165
|
+
const headers = {};
|
|
166
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
|
|
167
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
168
|
+
let body;
|
|
169
|
+
b.m("GET").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
171
|
+
};
|
|
172
|
+
exports.se_GetInstanceOnboardingJobStatusCommand = se_GetInstanceOnboardingJobStatusCommand;
|
|
173
|
+
const se_ListCampaignsCommand = async (input, context) => {
|
|
174
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
175
|
+
const headers = {
|
|
176
|
+
"content-type": "application/json",
|
|
177
|
+
};
|
|
178
|
+
b.bp("/v2/campaigns-summary");
|
|
179
|
+
let body;
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
182
|
+
maxResults: [],
|
|
183
|
+
nextToken: [],
|
|
184
|
+
}));
|
|
185
|
+
b.m("POST").h(headers).b(body);
|
|
186
|
+
return b.build();
|
|
187
|
+
};
|
|
188
|
+
exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
|
|
189
|
+
const se_ListConnectInstanceIntegrationsCommand = async (input, context) => {
|
|
190
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
191
|
+
const headers = {};
|
|
192
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/integrations");
|
|
193
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
194
|
+
const query = (0, smithy_client_1.map)({
|
|
195
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
196
|
+
[_nT]: [, input[_nT]],
|
|
197
|
+
});
|
|
198
|
+
let body;
|
|
199
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
200
|
+
return b.build();
|
|
201
|
+
};
|
|
202
|
+
exports.se_ListConnectInstanceIntegrationsCommand = se_ListConnectInstanceIntegrationsCommand;
|
|
203
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
204
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
205
|
+
const headers = {};
|
|
206
|
+
b.bp("/v2/tags/{arn}");
|
|
207
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
208
|
+
let body;
|
|
209
|
+
b.m("GET").h(headers).b(body);
|
|
210
|
+
return b.build();
|
|
211
|
+
};
|
|
212
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
213
|
+
const se_PauseCampaignCommand = async (input, context) => {
|
|
214
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
215
|
+
const headers = {};
|
|
216
|
+
b.bp("/v2/campaigns/{id}/pause");
|
|
217
|
+
b.p("id", () => input.id, "{id}", false);
|
|
218
|
+
let body;
|
|
219
|
+
b.m("POST").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
221
|
+
};
|
|
222
|
+
exports.se_PauseCampaignCommand = se_PauseCampaignCommand;
|
|
223
|
+
const se_PutConnectInstanceIntegrationCommand = async (input, context) => {
|
|
224
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
225
|
+
const headers = {
|
|
226
|
+
"content-type": "application/json",
|
|
227
|
+
};
|
|
228
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/integrations");
|
|
229
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
230
|
+
let body;
|
|
231
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
|
+
integrationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
233
|
+
}));
|
|
234
|
+
b.m("PUT").h(headers).b(body);
|
|
235
|
+
return b.build();
|
|
236
|
+
};
|
|
237
|
+
exports.se_PutConnectInstanceIntegrationCommand = se_PutConnectInstanceIntegrationCommand;
|
|
238
|
+
const se_PutOutboundRequestBatchCommand = async (input, context) => {
|
|
239
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/json",
|
|
242
|
+
};
|
|
243
|
+
b.bp("/v2/campaigns/{id}/outbound-requests");
|
|
244
|
+
b.p("id", () => input.id, "{id}", false);
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
247
|
+
outboundRequests: (_) => se_OutboundRequestList(_, context),
|
|
248
|
+
}));
|
|
249
|
+
b.m("PUT").h(headers).b(body);
|
|
250
|
+
return b.build();
|
|
251
|
+
};
|
|
252
|
+
exports.se_PutOutboundRequestBatchCommand = se_PutOutboundRequestBatchCommand;
|
|
253
|
+
const se_ResumeCampaignCommand = async (input, context) => {
|
|
254
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
255
|
+
const headers = {};
|
|
256
|
+
b.bp("/v2/campaigns/{id}/resume");
|
|
257
|
+
b.p("id", () => input.id, "{id}", false);
|
|
258
|
+
let body;
|
|
259
|
+
b.m("POST").h(headers).b(body);
|
|
260
|
+
return b.build();
|
|
261
|
+
};
|
|
262
|
+
exports.se_ResumeCampaignCommand = se_ResumeCampaignCommand;
|
|
263
|
+
const se_StartCampaignCommand = async (input, context) => {
|
|
264
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
265
|
+
const headers = {};
|
|
266
|
+
b.bp("/v2/campaigns/{id}/start");
|
|
267
|
+
b.p("id", () => input.id, "{id}", false);
|
|
268
|
+
let body;
|
|
269
|
+
b.m("POST").h(headers).b(body);
|
|
270
|
+
return b.build();
|
|
271
|
+
};
|
|
272
|
+
exports.se_StartCampaignCommand = se_StartCampaignCommand;
|
|
273
|
+
const se_StartInstanceOnboardingJobCommand = async (input, context) => {
|
|
274
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
|
+
const headers = {
|
|
276
|
+
"content-type": "application/json",
|
|
277
|
+
};
|
|
278
|
+
b.bp("/v2/connect-instance/{connectInstanceId}/onboarding");
|
|
279
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
280
|
+
let body;
|
|
281
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
282
|
+
encryptionConfig: (_) => (0, smithy_client_1._json)(_),
|
|
283
|
+
}));
|
|
284
|
+
b.m("PUT").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
286
|
+
};
|
|
287
|
+
exports.se_StartInstanceOnboardingJobCommand = se_StartInstanceOnboardingJobCommand;
|
|
288
|
+
const se_StopCampaignCommand = async (input, context) => {
|
|
289
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
290
|
+
const headers = {};
|
|
291
|
+
b.bp("/v2/campaigns/{id}/stop");
|
|
292
|
+
b.p("id", () => input.id, "{id}", false);
|
|
293
|
+
let body;
|
|
294
|
+
b.m("POST").h(headers).b(body);
|
|
295
|
+
return b.build();
|
|
296
|
+
};
|
|
297
|
+
exports.se_StopCampaignCommand = se_StopCampaignCommand;
|
|
298
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
299
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/json",
|
|
302
|
+
};
|
|
303
|
+
b.bp("/v2/tags/{arn}");
|
|
304
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
305
|
+
let body;
|
|
306
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
307
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
308
|
+
}));
|
|
309
|
+
b.m("POST").h(headers).b(body);
|
|
310
|
+
return b.build();
|
|
311
|
+
};
|
|
312
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
313
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
314
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
|
+
const headers = {};
|
|
316
|
+
b.bp("/v2/tags/{arn}");
|
|
317
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
318
|
+
const query = (0, smithy_client_1.map)({
|
|
319
|
+
[_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
320
|
+
});
|
|
321
|
+
let body;
|
|
322
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
};
|
|
325
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
326
|
+
const se_UpdateCampaignChannelSubtypeConfigCommand = async (input, context) => {
|
|
327
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json",
|
|
330
|
+
};
|
|
331
|
+
b.bp("/v2/campaigns/{id}/channel-subtype-config");
|
|
332
|
+
b.p("id", () => input.id, "{id}", false);
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
335
|
+
channelSubtypeConfig: (_) => se_ChannelSubtypeConfig(_, context),
|
|
336
|
+
}));
|
|
337
|
+
b.m("POST").h(headers).b(body);
|
|
338
|
+
return b.build();
|
|
339
|
+
};
|
|
340
|
+
exports.se_UpdateCampaignChannelSubtypeConfigCommand = se_UpdateCampaignChannelSubtypeConfigCommand;
|
|
341
|
+
const se_UpdateCampaignCommunicationLimitsCommand = async (input, context) => {
|
|
342
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
343
|
+
const headers = {
|
|
344
|
+
"content-type": "application/json",
|
|
345
|
+
};
|
|
346
|
+
b.bp("/v2/campaigns/{id}/communication-limits");
|
|
347
|
+
b.p("id", () => input.id, "{id}", false);
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
350
|
+
communicationLimitsOverride: (_) => (0, smithy_client_1._json)(_),
|
|
351
|
+
}));
|
|
352
|
+
b.m("POST").h(headers).b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
};
|
|
355
|
+
exports.se_UpdateCampaignCommunicationLimitsCommand = se_UpdateCampaignCommunicationLimitsCommand;
|
|
356
|
+
const se_UpdateCampaignCommunicationTimeCommand = async (input, context) => {
|
|
357
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/json",
|
|
360
|
+
};
|
|
361
|
+
b.bp("/v2/campaigns/{id}/communication-time");
|
|
362
|
+
b.p("id", () => input.id, "{id}", false);
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
365
|
+
communicationTimeConfig: (_) => (0, smithy_client_1._json)(_),
|
|
366
|
+
}));
|
|
367
|
+
b.m("POST").h(headers).b(body);
|
|
368
|
+
return b.build();
|
|
369
|
+
};
|
|
370
|
+
exports.se_UpdateCampaignCommunicationTimeCommand = se_UpdateCampaignCommunicationTimeCommand;
|
|
371
|
+
const se_UpdateCampaignFlowAssociationCommand = async (input, context) => {
|
|
372
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
373
|
+
const headers = {
|
|
374
|
+
"content-type": "application/json",
|
|
375
|
+
};
|
|
376
|
+
b.bp("/v2/campaigns/{id}/flow");
|
|
377
|
+
b.p("id", () => input.id, "{id}", false);
|
|
378
|
+
let body;
|
|
379
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
380
|
+
connectCampaignFlowArn: [],
|
|
381
|
+
}));
|
|
382
|
+
b.m("POST").h(headers).b(body);
|
|
383
|
+
return b.build();
|
|
384
|
+
};
|
|
385
|
+
exports.se_UpdateCampaignFlowAssociationCommand = se_UpdateCampaignFlowAssociationCommand;
|
|
386
|
+
const se_UpdateCampaignNameCommand = async (input, context) => {
|
|
387
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
388
|
+
const headers = {
|
|
389
|
+
"content-type": "application/json",
|
|
390
|
+
};
|
|
391
|
+
b.bp("/v2/campaigns/{id}/name");
|
|
392
|
+
b.p("id", () => input.id, "{id}", false);
|
|
393
|
+
let body;
|
|
394
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
395
|
+
name: [],
|
|
396
|
+
}));
|
|
397
|
+
b.m("POST").h(headers).b(body);
|
|
398
|
+
return b.build();
|
|
399
|
+
};
|
|
400
|
+
exports.se_UpdateCampaignNameCommand = se_UpdateCampaignNameCommand;
|
|
401
|
+
const se_UpdateCampaignScheduleCommand = async (input, context) => {
|
|
402
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
403
|
+
const headers = {
|
|
404
|
+
"content-type": "application/json",
|
|
405
|
+
};
|
|
406
|
+
b.bp("/v2/campaigns/{id}/schedule");
|
|
407
|
+
b.p("id", () => input.id, "{id}", false);
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
410
|
+
schedule: (_) => se_Schedule(_, context),
|
|
411
|
+
}));
|
|
412
|
+
b.m("POST").h(headers).b(body);
|
|
413
|
+
return b.build();
|
|
414
|
+
};
|
|
415
|
+
exports.se_UpdateCampaignScheduleCommand = se_UpdateCampaignScheduleCommand;
|
|
416
|
+
const se_UpdateCampaignSourceCommand = async (input, context) => {
|
|
417
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
418
|
+
const headers = {
|
|
419
|
+
"content-type": "application/json",
|
|
420
|
+
};
|
|
421
|
+
b.bp("/v2/campaigns/{id}/source");
|
|
422
|
+
b.p("id", () => input.id, "{id}", false);
|
|
423
|
+
let body;
|
|
424
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
425
|
+
source: (_) => (0, smithy_client_1._json)(_),
|
|
426
|
+
}));
|
|
427
|
+
b.m("POST").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
};
|
|
430
|
+
exports.se_UpdateCampaignSourceCommand = se_UpdateCampaignSourceCommand;
|
|
431
|
+
const de_CreateCampaignCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const contents = (0, smithy_client_1.map)({
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
});
|
|
438
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
440
|
+
arn: smithy_client_1.expectString,
|
|
441
|
+
id: smithy_client_1.expectString,
|
|
442
|
+
tags: smithy_client_1._json,
|
|
443
|
+
});
|
|
444
|
+
Object.assign(contents, doc);
|
|
445
|
+
return contents;
|
|
446
|
+
};
|
|
447
|
+
exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
|
|
448
|
+
const de_DeleteCampaignCommand = async (output, context) => {
|
|
449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
+
return de_CommandError(output, context);
|
|
451
|
+
}
|
|
452
|
+
const contents = (0, smithy_client_1.map)({
|
|
453
|
+
$metadata: deserializeMetadata(output),
|
|
454
|
+
});
|
|
455
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
456
|
+
return contents;
|
|
457
|
+
};
|
|
458
|
+
exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
|
|
459
|
+
const de_DeleteCampaignChannelSubtypeConfigCommand = async (output, context) => {
|
|
460
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
461
|
+
return de_CommandError(output, context);
|
|
462
|
+
}
|
|
463
|
+
const contents = (0, smithy_client_1.map)({
|
|
464
|
+
$metadata: deserializeMetadata(output),
|
|
465
|
+
});
|
|
466
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
467
|
+
return contents;
|
|
468
|
+
};
|
|
469
|
+
exports.de_DeleteCampaignChannelSubtypeConfigCommand = de_DeleteCampaignChannelSubtypeConfigCommand;
|
|
470
|
+
const de_DeleteCampaignCommunicationLimitsCommand = async (output, context) => {
|
|
471
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
+
return de_CommandError(output, context);
|
|
473
|
+
}
|
|
474
|
+
const contents = (0, smithy_client_1.map)({
|
|
475
|
+
$metadata: deserializeMetadata(output),
|
|
476
|
+
});
|
|
477
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
478
|
+
return contents;
|
|
479
|
+
};
|
|
480
|
+
exports.de_DeleteCampaignCommunicationLimitsCommand = de_DeleteCampaignCommunicationLimitsCommand;
|
|
481
|
+
const de_DeleteCampaignCommunicationTimeCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
484
|
+
}
|
|
485
|
+
const contents = (0, smithy_client_1.map)({
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
});
|
|
488
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
489
|
+
return contents;
|
|
490
|
+
};
|
|
491
|
+
exports.de_DeleteCampaignCommunicationTimeCommand = de_DeleteCampaignCommunicationTimeCommand;
|
|
492
|
+
const de_DeleteConnectInstanceConfigCommand = async (output, context) => {
|
|
493
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
+
return de_CommandError(output, context);
|
|
495
|
+
}
|
|
496
|
+
const contents = (0, smithy_client_1.map)({
|
|
497
|
+
$metadata: deserializeMetadata(output),
|
|
498
|
+
});
|
|
499
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
500
|
+
return contents;
|
|
501
|
+
};
|
|
502
|
+
exports.de_DeleteConnectInstanceConfigCommand = de_DeleteConnectInstanceConfigCommand;
|
|
503
|
+
const de_DeleteConnectInstanceIntegrationCommand = async (output, context) => {
|
|
504
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
505
|
+
return de_CommandError(output, context);
|
|
506
|
+
}
|
|
507
|
+
const contents = (0, smithy_client_1.map)({
|
|
508
|
+
$metadata: deserializeMetadata(output),
|
|
509
|
+
});
|
|
510
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
511
|
+
return contents;
|
|
512
|
+
};
|
|
513
|
+
exports.de_DeleteConnectInstanceIntegrationCommand = de_DeleteConnectInstanceIntegrationCommand;
|
|
514
|
+
const de_DeleteInstanceOnboardingJobCommand = async (output, context) => {
|
|
515
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
516
|
+
return de_CommandError(output, context);
|
|
517
|
+
}
|
|
518
|
+
const contents = (0, smithy_client_1.map)({
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
});
|
|
521
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
522
|
+
return contents;
|
|
523
|
+
};
|
|
524
|
+
exports.de_DeleteInstanceOnboardingJobCommand = de_DeleteInstanceOnboardingJobCommand;
|
|
525
|
+
const de_DescribeCampaignCommand = async (output, context) => {
|
|
526
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
+
return de_CommandError(output, context);
|
|
528
|
+
}
|
|
529
|
+
const contents = (0, smithy_client_1.map)({
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
});
|
|
532
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
533
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
534
|
+
campaign: (_) => de_Campaign(_, context),
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
537
|
+
return contents;
|
|
538
|
+
};
|
|
539
|
+
exports.de_DescribeCampaignCommand = de_DescribeCampaignCommand;
|
|
540
|
+
const de_GetCampaignStateCommand = async (output, context) => {
|
|
541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
+
return de_CommandError(output, context);
|
|
543
|
+
}
|
|
544
|
+
const contents = (0, smithy_client_1.map)({
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
});
|
|
547
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
548
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
549
|
+
state: smithy_client_1.expectString,
|
|
550
|
+
});
|
|
551
|
+
Object.assign(contents, doc);
|
|
552
|
+
return contents;
|
|
553
|
+
};
|
|
554
|
+
exports.de_GetCampaignStateCommand = de_GetCampaignStateCommand;
|
|
555
|
+
const de_GetCampaignStateBatchCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
+
return de_CommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
const contents = (0, smithy_client_1.map)({
|
|
560
|
+
$metadata: deserializeMetadata(output),
|
|
561
|
+
});
|
|
562
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
563
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
564
|
+
failedRequests: smithy_client_1._json,
|
|
565
|
+
successfulRequests: smithy_client_1._json,
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
568
|
+
return contents;
|
|
569
|
+
};
|
|
570
|
+
exports.de_GetCampaignStateBatchCommand = de_GetCampaignStateBatchCommand;
|
|
571
|
+
const de_GetConnectInstanceConfigCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const contents = (0, smithy_client_1.map)({
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
});
|
|
578
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
579
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
580
|
+
connectInstanceConfig: smithy_client_1._json,
|
|
581
|
+
});
|
|
582
|
+
Object.assign(contents, doc);
|
|
583
|
+
return contents;
|
|
584
|
+
};
|
|
585
|
+
exports.de_GetConnectInstanceConfigCommand = de_GetConnectInstanceConfigCommand;
|
|
586
|
+
const de_GetInstanceOnboardingJobStatusCommand = async (output, context) => {
|
|
587
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
+
return de_CommandError(output, context);
|
|
589
|
+
}
|
|
590
|
+
const contents = (0, smithy_client_1.map)({
|
|
591
|
+
$metadata: deserializeMetadata(output),
|
|
592
|
+
});
|
|
593
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
594
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
595
|
+
connectInstanceOnboardingJobStatus: smithy_client_1._json,
|
|
596
|
+
});
|
|
597
|
+
Object.assign(contents, doc);
|
|
598
|
+
return contents;
|
|
599
|
+
};
|
|
600
|
+
exports.de_GetInstanceOnboardingJobStatusCommand = de_GetInstanceOnboardingJobStatusCommand;
|
|
601
|
+
const de_ListCampaignsCommand = async (output, context) => {
|
|
602
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
603
|
+
return de_CommandError(output, context);
|
|
604
|
+
}
|
|
605
|
+
const contents = (0, smithy_client_1.map)({
|
|
606
|
+
$metadata: deserializeMetadata(output),
|
|
607
|
+
});
|
|
608
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
609
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
610
|
+
campaignSummaryList: (_) => de_CampaignSummaryList(_, context),
|
|
611
|
+
nextToken: smithy_client_1.expectString,
|
|
612
|
+
});
|
|
613
|
+
Object.assign(contents, doc);
|
|
614
|
+
return contents;
|
|
615
|
+
};
|
|
616
|
+
exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
|
|
617
|
+
const de_ListConnectInstanceIntegrationsCommand = async (output, context) => {
|
|
618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
|
+
return de_CommandError(output, context);
|
|
620
|
+
}
|
|
621
|
+
const contents = (0, smithy_client_1.map)({
|
|
622
|
+
$metadata: deserializeMetadata(output),
|
|
623
|
+
});
|
|
624
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
625
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
626
|
+
integrationSummaryList: smithy_client_1._json,
|
|
627
|
+
nextToken: smithy_client_1.expectString,
|
|
628
|
+
});
|
|
629
|
+
Object.assign(contents, doc);
|
|
630
|
+
return contents;
|
|
631
|
+
};
|
|
632
|
+
exports.de_ListConnectInstanceIntegrationsCommand = de_ListConnectInstanceIntegrationsCommand;
|
|
633
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
634
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
|
+
return de_CommandError(output, context);
|
|
636
|
+
}
|
|
637
|
+
const contents = (0, smithy_client_1.map)({
|
|
638
|
+
$metadata: deserializeMetadata(output),
|
|
639
|
+
});
|
|
640
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
641
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
642
|
+
tags: smithy_client_1._json,
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
645
|
+
return contents;
|
|
646
|
+
};
|
|
647
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
648
|
+
const de_PauseCampaignCommand = async (output, context) => {
|
|
649
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
+
return de_CommandError(output, context);
|
|
651
|
+
}
|
|
652
|
+
const contents = (0, smithy_client_1.map)({
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
654
|
+
});
|
|
655
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
656
|
+
return contents;
|
|
657
|
+
};
|
|
658
|
+
exports.de_PauseCampaignCommand = de_PauseCampaignCommand;
|
|
659
|
+
const de_PutConnectInstanceIntegrationCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
|
+
return de_CommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const contents = (0, smithy_client_1.map)({
|
|
664
|
+
$metadata: deserializeMetadata(output),
|
|
665
|
+
});
|
|
666
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
667
|
+
return contents;
|
|
668
|
+
};
|
|
669
|
+
exports.de_PutConnectInstanceIntegrationCommand = de_PutConnectInstanceIntegrationCommand;
|
|
670
|
+
const de_PutOutboundRequestBatchCommand = async (output, context) => {
|
|
671
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
+
return de_CommandError(output, context);
|
|
673
|
+
}
|
|
674
|
+
const contents = (0, smithy_client_1.map)({
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
});
|
|
677
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
678
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
679
|
+
failedRequests: smithy_client_1._json,
|
|
680
|
+
successfulRequests: smithy_client_1._json,
|
|
681
|
+
});
|
|
682
|
+
Object.assign(contents, doc);
|
|
683
|
+
return contents;
|
|
684
|
+
};
|
|
685
|
+
exports.de_PutOutboundRequestBatchCommand = de_PutOutboundRequestBatchCommand;
|
|
686
|
+
const de_ResumeCampaignCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
+
return de_CommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const contents = (0, smithy_client_1.map)({
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
692
|
+
});
|
|
693
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
694
|
+
return contents;
|
|
695
|
+
};
|
|
696
|
+
exports.de_ResumeCampaignCommand = de_ResumeCampaignCommand;
|
|
697
|
+
const de_StartCampaignCommand = async (output, context) => {
|
|
698
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
+
return de_CommandError(output, context);
|
|
700
|
+
}
|
|
701
|
+
const contents = (0, smithy_client_1.map)({
|
|
702
|
+
$metadata: deserializeMetadata(output),
|
|
703
|
+
});
|
|
704
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
705
|
+
return contents;
|
|
706
|
+
};
|
|
707
|
+
exports.de_StartCampaignCommand = de_StartCampaignCommand;
|
|
708
|
+
const de_StartInstanceOnboardingJobCommand = async (output, context) => {
|
|
709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
+
return de_CommandError(output, context);
|
|
711
|
+
}
|
|
712
|
+
const contents = (0, smithy_client_1.map)({
|
|
713
|
+
$metadata: deserializeMetadata(output),
|
|
714
|
+
});
|
|
715
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
716
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
717
|
+
connectInstanceOnboardingJobStatus: smithy_client_1._json,
|
|
718
|
+
});
|
|
719
|
+
Object.assign(contents, doc);
|
|
720
|
+
return contents;
|
|
721
|
+
};
|
|
722
|
+
exports.de_StartInstanceOnboardingJobCommand = de_StartInstanceOnboardingJobCommand;
|
|
723
|
+
const de_StopCampaignCommand = async (output, context) => {
|
|
724
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
725
|
+
return de_CommandError(output, context);
|
|
726
|
+
}
|
|
727
|
+
const contents = (0, smithy_client_1.map)({
|
|
728
|
+
$metadata: deserializeMetadata(output),
|
|
729
|
+
});
|
|
730
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
731
|
+
return contents;
|
|
732
|
+
};
|
|
733
|
+
exports.de_StopCampaignCommand = de_StopCampaignCommand;
|
|
734
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_CommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = (0, smithy_client_1.map)({
|
|
739
|
+
$metadata: deserializeMetadata(output),
|
|
740
|
+
});
|
|
741
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
742
|
+
return contents;
|
|
743
|
+
};
|
|
744
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
745
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
746
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
+
return de_CommandError(output, context);
|
|
748
|
+
}
|
|
749
|
+
const contents = (0, smithy_client_1.map)({
|
|
750
|
+
$metadata: deserializeMetadata(output),
|
|
751
|
+
});
|
|
752
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
753
|
+
return contents;
|
|
754
|
+
};
|
|
755
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
756
|
+
const de_UpdateCampaignChannelSubtypeConfigCommand = async (output, context) => {
|
|
757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
+
return de_CommandError(output, context);
|
|
759
|
+
}
|
|
760
|
+
const contents = (0, smithy_client_1.map)({
|
|
761
|
+
$metadata: deserializeMetadata(output),
|
|
762
|
+
});
|
|
763
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
764
|
+
return contents;
|
|
765
|
+
};
|
|
766
|
+
exports.de_UpdateCampaignChannelSubtypeConfigCommand = de_UpdateCampaignChannelSubtypeConfigCommand;
|
|
767
|
+
const de_UpdateCampaignCommunicationLimitsCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
+
return de_CommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const contents = (0, smithy_client_1.map)({
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
});
|
|
774
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
775
|
+
return contents;
|
|
776
|
+
};
|
|
777
|
+
exports.de_UpdateCampaignCommunicationLimitsCommand = de_UpdateCampaignCommunicationLimitsCommand;
|
|
778
|
+
const de_UpdateCampaignCommunicationTimeCommand = async (output, context) => {
|
|
779
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
+
return de_CommandError(output, context);
|
|
781
|
+
}
|
|
782
|
+
const contents = (0, smithy_client_1.map)({
|
|
783
|
+
$metadata: deserializeMetadata(output),
|
|
784
|
+
});
|
|
785
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
786
|
+
return contents;
|
|
787
|
+
};
|
|
788
|
+
exports.de_UpdateCampaignCommunicationTimeCommand = de_UpdateCampaignCommunicationTimeCommand;
|
|
789
|
+
const de_UpdateCampaignFlowAssociationCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const contents = (0, smithy_client_1.map)({
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
});
|
|
796
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
797
|
+
return contents;
|
|
798
|
+
};
|
|
799
|
+
exports.de_UpdateCampaignFlowAssociationCommand = de_UpdateCampaignFlowAssociationCommand;
|
|
800
|
+
const de_UpdateCampaignNameCommand = async (output, context) => {
|
|
801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
+
return de_CommandError(output, context);
|
|
803
|
+
}
|
|
804
|
+
const contents = (0, smithy_client_1.map)({
|
|
805
|
+
$metadata: deserializeMetadata(output),
|
|
806
|
+
});
|
|
807
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
808
|
+
return contents;
|
|
809
|
+
};
|
|
810
|
+
exports.de_UpdateCampaignNameCommand = de_UpdateCampaignNameCommand;
|
|
811
|
+
const de_UpdateCampaignScheduleCommand = async (output, context) => {
|
|
812
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
+
return de_CommandError(output, context);
|
|
814
|
+
}
|
|
815
|
+
const contents = (0, smithy_client_1.map)({
|
|
816
|
+
$metadata: deserializeMetadata(output),
|
|
817
|
+
});
|
|
818
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
819
|
+
return contents;
|
|
820
|
+
};
|
|
821
|
+
exports.de_UpdateCampaignScheduleCommand = de_UpdateCampaignScheduleCommand;
|
|
822
|
+
const de_UpdateCampaignSourceCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
+
return de_CommandError(output, context);
|
|
825
|
+
}
|
|
826
|
+
const contents = (0, smithy_client_1.map)({
|
|
827
|
+
$metadata: deserializeMetadata(output),
|
|
828
|
+
});
|
|
829
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
830
|
+
return contents;
|
|
831
|
+
};
|
|
832
|
+
exports.de_UpdateCampaignSourceCommand = de_UpdateCampaignSourceCommand;
|
|
833
|
+
const de_CommandError = async (output, context) => {
|
|
834
|
+
const parsedOutput = {
|
|
835
|
+
...output,
|
|
836
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
837
|
+
};
|
|
838
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
839
|
+
switch (errorCode) {
|
|
840
|
+
case "AccessDeniedException":
|
|
841
|
+
case "com.amazonaws.connectcampaignsv2#AccessDeniedException":
|
|
842
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
843
|
+
case "ConflictException":
|
|
844
|
+
case "com.amazonaws.connectcampaignsv2#ConflictException":
|
|
845
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
846
|
+
case "InternalServerException":
|
|
847
|
+
case "com.amazonaws.connectcampaignsv2#InternalServerException":
|
|
848
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
|
+
case "ResourceNotFoundException":
|
|
850
|
+
case "com.amazonaws.connectcampaignsv2#ResourceNotFoundException":
|
|
851
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
+
case "ServiceQuotaExceededException":
|
|
853
|
+
case "com.amazonaws.connectcampaignsv2#ServiceQuotaExceededException":
|
|
854
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
855
|
+
case "ThrottlingException":
|
|
856
|
+
case "com.amazonaws.connectcampaignsv2#ThrottlingException":
|
|
857
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
+
case "ValidationException":
|
|
859
|
+
case "com.amazonaws.connectcampaignsv2#ValidationException":
|
|
860
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
+
case "InvalidCampaignStateException":
|
|
862
|
+
case "com.amazonaws.connectcampaignsv2#InvalidCampaignStateException":
|
|
863
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
864
|
+
case "InvalidStateException":
|
|
865
|
+
case "com.amazonaws.connectcampaignsv2#InvalidStateException":
|
|
866
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
867
|
+
default:
|
|
868
|
+
const parsedBody = parsedOutput.body;
|
|
869
|
+
return throwDefaultError({
|
|
870
|
+
output,
|
|
871
|
+
parsedBody,
|
|
872
|
+
errorCode,
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ConnectCampaignsV2ServiceException_1.ConnectCampaignsV2ServiceException);
|
|
877
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
878
|
+
const contents = (0, smithy_client_1.map)({
|
|
879
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
880
|
+
});
|
|
881
|
+
const data = parsedOutput.body;
|
|
882
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
883
|
+
message: smithy_client_1.expectString,
|
|
884
|
+
});
|
|
885
|
+
Object.assign(contents, doc);
|
|
886
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
887
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
888
|
+
...contents,
|
|
889
|
+
});
|
|
890
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
891
|
+
};
|
|
892
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
893
|
+
const contents = (0, smithy_client_1.map)({
|
|
894
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
895
|
+
});
|
|
896
|
+
const data = parsedOutput.body;
|
|
897
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
898
|
+
message: smithy_client_1.expectString,
|
|
899
|
+
});
|
|
900
|
+
Object.assign(contents, doc);
|
|
901
|
+
const exception = new models_0_1.ConflictException({
|
|
902
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
903
|
+
...contents,
|
|
904
|
+
});
|
|
905
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
906
|
+
};
|
|
907
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
908
|
+
const contents = (0, smithy_client_1.map)({
|
|
909
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
910
|
+
});
|
|
911
|
+
const data = parsedOutput.body;
|
|
912
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
913
|
+
message: smithy_client_1.expectString,
|
|
914
|
+
});
|
|
915
|
+
Object.assign(contents, doc);
|
|
916
|
+
const exception = new models_0_1.InternalServerException({
|
|
917
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
918
|
+
...contents,
|
|
919
|
+
});
|
|
920
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
921
|
+
};
|
|
922
|
+
const de_InvalidCampaignStateExceptionRes = async (parsedOutput, context) => {
|
|
923
|
+
const contents = (0, smithy_client_1.map)({
|
|
924
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
925
|
+
});
|
|
926
|
+
const data = parsedOutput.body;
|
|
927
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
928
|
+
message: smithy_client_1.expectString,
|
|
929
|
+
state: smithy_client_1.expectString,
|
|
930
|
+
});
|
|
931
|
+
Object.assign(contents, doc);
|
|
932
|
+
const exception = new models_0_1.InvalidCampaignStateException({
|
|
933
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
934
|
+
...contents,
|
|
935
|
+
});
|
|
936
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
937
|
+
};
|
|
938
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
939
|
+
const contents = (0, smithy_client_1.map)({
|
|
940
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
941
|
+
});
|
|
942
|
+
const data = parsedOutput.body;
|
|
943
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
944
|
+
message: smithy_client_1.expectString,
|
|
945
|
+
});
|
|
946
|
+
Object.assign(contents, doc);
|
|
947
|
+
const exception = new models_0_1.InvalidStateException({
|
|
948
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
949
|
+
...contents,
|
|
950
|
+
});
|
|
951
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
952
|
+
};
|
|
953
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
954
|
+
const contents = (0, smithy_client_1.map)({
|
|
955
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
956
|
+
});
|
|
957
|
+
const data = parsedOutput.body;
|
|
958
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
959
|
+
message: smithy_client_1.expectString,
|
|
960
|
+
});
|
|
961
|
+
Object.assign(contents, doc);
|
|
962
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
963
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
964
|
+
...contents,
|
|
965
|
+
});
|
|
966
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
967
|
+
};
|
|
968
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
969
|
+
const contents = (0, smithy_client_1.map)({
|
|
970
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
971
|
+
});
|
|
972
|
+
const data = parsedOutput.body;
|
|
973
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
974
|
+
message: smithy_client_1.expectString,
|
|
975
|
+
});
|
|
976
|
+
Object.assign(contents, doc);
|
|
977
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
978
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
979
|
+
...contents,
|
|
980
|
+
});
|
|
981
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
982
|
+
};
|
|
983
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
984
|
+
const contents = (0, smithy_client_1.map)({
|
|
985
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
986
|
+
});
|
|
987
|
+
const data = parsedOutput.body;
|
|
988
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
989
|
+
message: smithy_client_1.expectString,
|
|
990
|
+
});
|
|
991
|
+
Object.assign(contents, doc);
|
|
992
|
+
const exception = new models_0_1.ThrottlingException({
|
|
993
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
994
|
+
...contents,
|
|
995
|
+
});
|
|
996
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
997
|
+
};
|
|
998
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
999
|
+
const contents = (0, smithy_client_1.map)({
|
|
1000
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
1001
|
+
});
|
|
1002
|
+
const data = parsedOutput.body;
|
|
1003
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1004
|
+
message: smithy_client_1.expectString,
|
|
1005
|
+
});
|
|
1006
|
+
Object.assign(contents, doc);
|
|
1007
|
+
const exception = new models_0_1.ValidationException({
|
|
1008
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1009
|
+
...contents,
|
|
1010
|
+
});
|
|
1011
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1012
|
+
};
|
|
1013
|
+
const se_ChannelSubtypeConfig = (input, context) => {
|
|
1014
|
+
return (0, smithy_client_1.take)(input, {
|
|
1015
|
+
email: (_) => se_EmailChannelSubtypeConfig(_, context),
|
|
1016
|
+
sms: (_) => se_SmsChannelSubtypeConfig(_, context),
|
|
1017
|
+
telephony: (_) => se_TelephonyChannelSubtypeConfig(_, context),
|
|
1018
|
+
});
|
|
1019
|
+
};
|
|
1020
|
+
const se_EmailChannelSubtypeConfig = (input, context) => {
|
|
1021
|
+
return (0, smithy_client_1.take)(input, {
|
|
1022
|
+
capacity: smithy_client_1.serializeFloat,
|
|
1023
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1024
|
+
outboundMode: smithy_client_1._json,
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
const se_OutboundRequest = (input, context) => {
|
|
1028
|
+
return (0, smithy_client_1.take)(input, {
|
|
1029
|
+
channelSubtypeParameters: smithy_client_1._json,
|
|
1030
|
+
clientToken: [],
|
|
1031
|
+
expirationTime: smithy_client_1.serializeDateTime,
|
|
1032
|
+
});
|
|
1033
|
+
};
|
|
1034
|
+
const se_OutboundRequestList = (input, context) => {
|
|
1035
|
+
return input
|
|
1036
|
+
.filter((e) => e != null)
|
|
1037
|
+
.map((entry) => {
|
|
1038
|
+
return se_OutboundRequest(entry, context);
|
|
1039
|
+
});
|
|
1040
|
+
};
|
|
1041
|
+
const se_PredictiveConfig = (input, context) => {
|
|
1042
|
+
return (0, smithy_client_1.take)(input, {
|
|
1043
|
+
bandwidthAllocation: smithy_client_1.serializeFloat,
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
const se_ProgressiveConfig = (input, context) => {
|
|
1047
|
+
return (0, smithy_client_1.take)(input, {
|
|
1048
|
+
bandwidthAllocation: smithy_client_1.serializeFloat,
|
|
1049
|
+
});
|
|
1050
|
+
};
|
|
1051
|
+
const se_Schedule = (input, context) => {
|
|
1052
|
+
return (0, smithy_client_1.take)(input, {
|
|
1053
|
+
endTime: smithy_client_1.serializeDateTime,
|
|
1054
|
+
refreshFrequency: [],
|
|
1055
|
+
startTime: smithy_client_1.serializeDateTime,
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
1058
|
+
const se_SmsChannelSubtypeConfig = (input, context) => {
|
|
1059
|
+
return (0, smithy_client_1.take)(input, {
|
|
1060
|
+
capacity: smithy_client_1.serializeFloat,
|
|
1061
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1062
|
+
outboundMode: smithy_client_1._json,
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
const se_TelephonyChannelSubtypeConfig = (input, context) => {
|
|
1066
|
+
return (0, smithy_client_1.take)(input, {
|
|
1067
|
+
capacity: smithy_client_1.serializeFloat,
|
|
1068
|
+
connectQueueId: [],
|
|
1069
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1070
|
+
outboundMode: (_) => se_TelephonyOutboundMode(_, context),
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1073
|
+
const se_TelephonyOutboundMode = (input, context) => {
|
|
1074
|
+
return models_0_1.TelephonyOutboundMode.visit(input, {
|
|
1075
|
+
agentless: (value) => ({ agentless: (0, smithy_client_1._json)(value) }),
|
|
1076
|
+
predictive: (value) => ({ predictive: se_PredictiveConfig(value, context) }),
|
|
1077
|
+
progressive: (value) => ({ progressive: se_ProgressiveConfig(value, context) }),
|
|
1078
|
+
_: (name, value) => ({ name: value }),
|
|
1079
|
+
});
|
|
1080
|
+
};
|
|
1081
|
+
const de_Campaign = (output, context) => {
|
|
1082
|
+
return (0, smithy_client_1.take)(output, {
|
|
1083
|
+
arn: smithy_client_1.expectString,
|
|
1084
|
+
channelSubtypeConfig: (_) => de_ChannelSubtypeConfig(_, context),
|
|
1085
|
+
communicationLimitsOverride: smithy_client_1._json,
|
|
1086
|
+
communicationTimeConfig: smithy_client_1._json,
|
|
1087
|
+
connectCampaignFlowArn: smithy_client_1.expectString,
|
|
1088
|
+
connectInstanceId: smithy_client_1.expectString,
|
|
1089
|
+
id: smithy_client_1.expectString,
|
|
1090
|
+
name: smithy_client_1.expectString,
|
|
1091
|
+
schedule: (_) => de_Schedule(_, context),
|
|
1092
|
+
source: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1093
|
+
tags: smithy_client_1._json,
|
|
1094
|
+
});
|
|
1095
|
+
};
|
|
1096
|
+
const de_CampaignSummary = (output, context) => {
|
|
1097
|
+
return (0, smithy_client_1.take)(output, {
|
|
1098
|
+
arn: smithy_client_1.expectString,
|
|
1099
|
+
channelSubtypes: smithy_client_1._json,
|
|
1100
|
+
connectCampaignFlowArn: smithy_client_1.expectString,
|
|
1101
|
+
connectInstanceId: smithy_client_1.expectString,
|
|
1102
|
+
id: smithy_client_1.expectString,
|
|
1103
|
+
name: smithy_client_1.expectString,
|
|
1104
|
+
schedule: (_) => de_Schedule(_, context),
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
const de_CampaignSummaryList = (output, context) => {
|
|
1108
|
+
const retVal = (output || [])
|
|
1109
|
+
.filter((e) => e != null)
|
|
1110
|
+
.map((entry) => {
|
|
1111
|
+
return de_CampaignSummary(entry, context);
|
|
1112
|
+
});
|
|
1113
|
+
return retVal;
|
|
1114
|
+
};
|
|
1115
|
+
const de_ChannelSubtypeConfig = (output, context) => {
|
|
1116
|
+
return (0, smithy_client_1.take)(output, {
|
|
1117
|
+
email: (_) => de_EmailChannelSubtypeConfig(_, context),
|
|
1118
|
+
sms: (_) => de_SmsChannelSubtypeConfig(_, context),
|
|
1119
|
+
telephony: (_) => de_TelephonyChannelSubtypeConfig(_, context),
|
|
1120
|
+
});
|
|
1121
|
+
};
|
|
1122
|
+
const de_EmailChannelSubtypeConfig = (output, context) => {
|
|
1123
|
+
return (0, smithy_client_1.take)(output, {
|
|
1124
|
+
capacity: smithy_client_1.limitedParseDouble,
|
|
1125
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1126
|
+
outboundMode: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
const de_PredictiveConfig = (output, context) => {
|
|
1130
|
+
return (0, smithy_client_1.take)(output, {
|
|
1131
|
+
bandwidthAllocation: smithy_client_1.limitedParseDouble,
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
const de_ProgressiveConfig = (output, context) => {
|
|
1135
|
+
return (0, smithy_client_1.take)(output, {
|
|
1136
|
+
bandwidthAllocation: smithy_client_1.limitedParseDouble,
|
|
1137
|
+
});
|
|
1138
|
+
};
|
|
1139
|
+
const de_Schedule = (output, context) => {
|
|
1140
|
+
return (0, smithy_client_1.take)(output, {
|
|
1141
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1142
|
+
refreshFrequency: smithy_client_1.expectString,
|
|
1143
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
const de_SmsChannelSubtypeConfig = (output, context) => {
|
|
1147
|
+
return (0, smithy_client_1.take)(output, {
|
|
1148
|
+
capacity: smithy_client_1.limitedParseDouble,
|
|
1149
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1150
|
+
outboundMode: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1151
|
+
});
|
|
1152
|
+
};
|
|
1153
|
+
const de_TelephonyChannelSubtypeConfig = (output, context) => {
|
|
1154
|
+
return (0, smithy_client_1.take)(output, {
|
|
1155
|
+
capacity: smithy_client_1.limitedParseDouble,
|
|
1156
|
+
connectQueueId: smithy_client_1.expectString,
|
|
1157
|
+
defaultOutboundConfig: smithy_client_1._json,
|
|
1158
|
+
outboundMode: (_) => de_TelephonyOutboundMode((0, core_1.awsExpectUnion)(_), context),
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
const de_TelephonyOutboundMode = (output, context) => {
|
|
1162
|
+
if (output.agentless != null) {
|
|
1163
|
+
return {
|
|
1164
|
+
agentless: (0, smithy_client_1._json)(output.agentless),
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
if (output.predictive != null) {
|
|
1168
|
+
return {
|
|
1169
|
+
predictive: de_PredictiveConfig(output.predictive, context),
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
if (output.progressive != null) {
|
|
1173
|
+
return {
|
|
1174
|
+
progressive: de_ProgressiveConfig(output.progressive, context),
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1178
|
+
};
|
|
1179
|
+
const deserializeMetadata = (output) => ({
|
|
1180
|
+
httpStatusCode: output.statusCode,
|
|
1181
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1182
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1183
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1184
|
+
});
|
|
1185
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1186
|
+
const _c = "config";
|
|
1187
|
+
const _cDP = "campaignDeletionPolicy";
|
|
1188
|
+
const _cS = "channelSubtype";
|
|
1189
|
+
const _mR = "maxResults";
|
|
1190
|
+
const _nT = "nextToken";
|
|
1191
|
+
const _tK = "tagKeys";
|
|
1192
|
+
const _xAET = "xAmzErrorType";
|
|
1193
|
+
const _xae = "x-amzn-errortype";
|