@aws-sdk/client-connectcampaigns 3.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +205 -0
- package/dist-cjs/ConnectCampaigns.js +337 -0
- package/dist-cjs/ConnectCampaignsClient.js +37 -0
- package/dist-cjs/commands/CreateCampaignCommand.js +36 -0
- package/dist-cjs/commands/DeleteCampaignCommand.js +36 -0
- package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +36 -0
- package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +36 -0
- package/dist-cjs/commands/DescribeCampaignCommand.js +36 -0
- package/dist-cjs/commands/GetCampaignStateBatchCommand.js +36 -0
- package/dist-cjs/commands/GetCampaignStateCommand.js +36 -0
- package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +36 -0
- package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +36 -0
- package/dist-cjs/commands/ListCampaignsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/PauseCampaignCommand.js +36 -0
- package/dist-cjs/commands/PutDialRequestBatchCommand.js +36 -0
- package/dist-cjs/commands/ResumeCampaignCommand.js +36 -0
- package/dist-cjs/commands/StartCampaignCommand.js +36 -0
- package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +36 -0
- package/dist-cjs/commands/StopCampaignCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateCampaignDialerConfigCommand.js +36 -0
- package/dist-cjs/commands/UpdateCampaignNameCommand.js +36 -0
- package/dist-cjs/commands/UpdateCampaignOutboundCallConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +25 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ConnectCampaignsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +490 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCampaignsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2174 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/ConnectCampaigns.js +340 -0
- package/dist-es/ConnectCampaignsClient.js +39 -0
- package/dist-es/commands/CreateCampaignCommand.js +39 -0
- package/dist-es/commands/DeleteCampaignCommand.js +39 -0
- package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +39 -0
- package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +39 -0
- package/dist-es/commands/DescribeCampaignCommand.js +39 -0
- package/dist-es/commands/GetCampaignStateBatchCommand.js +39 -0
- package/dist-es/commands/GetCampaignStateCommand.js +39 -0
- package/dist-es/commands/GetConnectInstanceConfigCommand.js +39 -0
- package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +39 -0
- package/dist-es/commands/ListCampaignsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/PauseCampaignCommand.js +39 -0
- package/dist-es/commands/PutDialRequestBatchCommand.js +39 -0
- package/dist-es/commands/ResumeCampaignCommand.js +39 -0
- package/dist-es/commands/StartCampaignCommand.js +39 -0
- package/dist-es/commands/StartInstanceOnboardingJobCommand.js +39 -0
- package/dist-es/commands/StopCampaignCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateCampaignDialerConfigCommand.js +39 -0
- package/dist-es/commands/UpdateCampaignNameCommand.js +39 -0
- package/dist-es/commands/UpdateCampaignOutboundCallConfigCommand.js +39 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ConnectCampaignsServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +376 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCampaignsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +2718 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/ConnectCampaigns.d.ts +161 -0
- package/dist-types/ConnectCampaignsClient.d.ts +166 -0
- package/dist-types/commands/CreateCampaignCommand.d.ts +35 -0
- package/dist-types/commands/DeleteCampaignCommand.d.ts +35 -0
- package/dist-types/commands/DeleteConnectInstanceConfigCommand.d.ts +35 -0
- package/dist-types/commands/DeleteInstanceOnboardingJobCommand.d.ts +35 -0
- package/dist-types/commands/DescribeCampaignCommand.d.ts +35 -0
- package/dist-types/commands/GetCampaignStateBatchCommand.d.ts +35 -0
- package/dist-types/commands/GetCampaignStateCommand.d.ts +35 -0
- package/dist-types/commands/GetConnectInstanceConfigCommand.d.ts +35 -0
- package/dist-types/commands/GetInstanceOnboardingJobStatusCommand.d.ts +35 -0
- package/dist-types/commands/ListCampaignsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/PauseCampaignCommand.d.ts +35 -0
- package/dist-types/commands/PutDialRequestBatchCommand.d.ts +35 -0
- package/dist-types/commands/ResumeCampaignCommand.d.ts +35 -0
- package/dist-types/commands/StartCampaignCommand.d.ts +35 -0
- package/dist-types/commands/StartInstanceOnboardingJobCommand.d.ts +35 -0
- package/dist-types/commands/StopCampaignCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateCampaignDialerConfigCommand.d.ts +35 -0
- package/dist-types/commands/UpdateCampaignNameCommand.d.ts +35 -0
- package/dist-types/commands/UpdateCampaignOutboundCallConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ConnectCampaignsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1165 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCampaignsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +68 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/ConnectCampaigns.d.ts +115 -0
- package/dist-types/ts3.4/ConnectCampaignsClient.d.ts +95 -0
- package/dist-types/ts3.4/commands/CreateCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectInstanceConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteInstanceOnboardingJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCampaignStateBatchCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCampaignStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConnectInstanceConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInstanceOnboardingJobStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCampaignsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PauseCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutDialRequestBatchCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResumeCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartInstanceOnboardingJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopCampaignCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCampaignDialerConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCampaignNameCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCampaignOutboundCallConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ConnectCampaignsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +691 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +68 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
|
+
const getRuntimeConfig = (config) => {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
33
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
34
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
35
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
36
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
41
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
43
|
+
}),
|
|
44
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
45
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
46
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
49
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2021-01-30",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ConnectCampaigns",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand";
|
|
3
|
+
import { DeleteCampaignCommand, } from "./commands/DeleteCampaignCommand";
|
|
4
|
+
import { DeleteConnectInstanceConfigCommand, } from "./commands/DeleteConnectInstanceConfigCommand";
|
|
5
|
+
import { DeleteInstanceOnboardingJobCommand, } from "./commands/DeleteInstanceOnboardingJobCommand";
|
|
6
|
+
import { DescribeCampaignCommand, } from "./commands/DescribeCampaignCommand";
|
|
7
|
+
import { GetCampaignStateBatchCommand, } from "./commands/GetCampaignStateBatchCommand";
|
|
8
|
+
import { GetCampaignStateCommand, } from "./commands/GetCampaignStateCommand";
|
|
9
|
+
import { GetConnectInstanceConfigCommand, } from "./commands/GetConnectInstanceConfigCommand";
|
|
10
|
+
import { GetInstanceOnboardingJobStatusCommand, } from "./commands/GetInstanceOnboardingJobStatusCommand";
|
|
11
|
+
import { ListCampaignsCommand, } from "./commands/ListCampaignsCommand";
|
|
12
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
13
|
+
import { PauseCampaignCommand, } from "./commands/PauseCampaignCommand";
|
|
14
|
+
import { PutDialRequestBatchCommand, } from "./commands/PutDialRequestBatchCommand";
|
|
15
|
+
import { ResumeCampaignCommand, } from "./commands/ResumeCampaignCommand";
|
|
16
|
+
import { StartCampaignCommand, } from "./commands/StartCampaignCommand";
|
|
17
|
+
import { StartInstanceOnboardingJobCommand, } from "./commands/StartInstanceOnboardingJobCommand";
|
|
18
|
+
import { StopCampaignCommand, } from "./commands/StopCampaignCommand";
|
|
19
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
20
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateCampaignDialerConfigCommand, } from "./commands/UpdateCampaignDialerConfigCommand";
|
|
22
|
+
import { UpdateCampaignNameCommand, } from "./commands/UpdateCampaignNameCommand";
|
|
23
|
+
import { UpdateCampaignOutboundCallConfigCommand, } from "./commands/UpdateCampaignOutboundCallConfigCommand";
|
|
24
|
+
import { ConnectCampaignsClient } from "./ConnectCampaignsClient";
|
|
25
|
+
var ConnectCampaigns = (function (_super) {
|
|
26
|
+
__extends(ConnectCampaigns, _super);
|
|
27
|
+
function ConnectCampaigns() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
ConnectCampaigns.prototype.createCampaign = function (args, optionsOrCb, cb) {
|
|
31
|
+
var command = new CreateCampaignCommand(args);
|
|
32
|
+
if (typeof optionsOrCb === "function") {
|
|
33
|
+
this.send(command, optionsOrCb);
|
|
34
|
+
}
|
|
35
|
+
else if (typeof cb === "function") {
|
|
36
|
+
if (typeof optionsOrCb !== "object")
|
|
37
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
38
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return this.send(command, optionsOrCb);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
ConnectCampaigns.prototype.deleteCampaign = function (args, optionsOrCb, cb) {
|
|
45
|
+
var command = new DeleteCampaignCommand(args);
|
|
46
|
+
if (typeof optionsOrCb === "function") {
|
|
47
|
+
this.send(command, optionsOrCb);
|
|
48
|
+
}
|
|
49
|
+
else if (typeof cb === "function") {
|
|
50
|
+
if (typeof optionsOrCb !== "object")
|
|
51
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
52
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
ConnectCampaigns.prototype.deleteConnectInstanceConfig = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new DeleteConnectInstanceConfigCommand(args);
|
|
60
|
+
if (typeof optionsOrCb === "function") {
|
|
61
|
+
this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
else if (typeof cb === "function") {
|
|
64
|
+
if (typeof optionsOrCb !== "object")
|
|
65
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
66
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return this.send(command, optionsOrCb);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
ConnectCampaigns.prototype.deleteInstanceOnboardingJob = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new DeleteInstanceOnboardingJobCommand(args);
|
|
74
|
+
if (typeof optionsOrCb === "function") {
|
|
75
|
+
this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
else if (typeof cb === "function") {
|
|
78
|
+
if (typeof optionsOrCb !== "object")
|
|
79
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
80
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
ConnectCampaigns.prototype.describeCampaign = function (args, optionsOrCb, cb) {
|
|
87
|
+
var command = new DescribeCampaignCommand(args);
|
|
88
|
+
if (typeof optionsOrCb === "function") {
|
|
89
|
+
this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
else if (typeof cb === "function") {
|
|
92
|
+
if (typeof optionsOrCb !== "object")
|
|
93
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
94
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
ConnectCampaigns.prototype.getCampaignState = function (args, optionsOrCb, cb) {
|
|
101
|
+
var command = new GetCampaignStateCommand(args);
|
|
102
|
+
if (typeof optionsOrCb === "function") {
|
|
103
|
+
this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
else if (typeof cb === "function") {
|
|
106
|
+
if (typeof optionsOrCb !== "object")
|
|
107
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
108
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
return this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
ConnectCampaigns.prototype.getCampaignStateBatch = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new GetCampaignStateBatchCommand(args);
|
|
116
|
+
if (typeof optionsOrCb === "function") {
|
|
117
|
+
this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
else if (typeof cb === "function") {
|
|
120
|
+
if (typeof optionsOrCb !== "object")
|
|
121
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
122
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
ConnectCampaigns.prototype.getConnectInstanceConfig = function (args, optionsOrCb, cb) {
|
|
129
|
+
var command = new GetConnectInstanceConfigCommand(args);
|
|
130
|
+
if (typeof optionsOrCb === "function") {
|
|
131
|
+
this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
else if (typeof cb === "function") {
|
|
134
|
+
if (typeof optionsOrCb !== "object")
|
|
135
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
136
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
return this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
ConnectCampaigns.prototype.getInstanceOnboardingJobStatus = function (args, optionsOrCb, cb) {
|
|
143
|
+
var command = new GetInstanceOnboardingJobStatusCommand(args);
|
|
144
|
+
if (typeof optionsOrCb === "function") {
|
|
145
|
+
this.send(command, optionsOrCb);
|
|
146
|
+
}
|
|
147
|
+
else if (typeof cb === "function") {
|
|
148
|
+
if (typeof optionsOrCb !== "object")
|
|
149
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
150
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
return this.send(command, optionsOrCb);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
ConnectCampaigns.prototype.listCampaigns = function (args, optionsOrCb, cb) {
|
|
157
|
+
var command = new ListCampaignsCommand(args);
|
|
158
|
+
if (typeof optionsOrCb === "function") {
|
|
159
|
+
this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
else if (typeof cb === "function") {
|
|
162
|
+
if (typeof optionsOrCb !== "object")
|
|
163
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
164
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
return this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
ConnectCampaigns.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
171
|
+
var command = new ListTagsForResourceCommand(args);
|
|
172
|
+
if (typeof optionsOrCb === "function") {
|
|
173
|
+
this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
else if (typeof cb === "function") {
|
|
176
|
+
if (typeof optionsOrCb !== "object")
|
|
177
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
178
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return this.send(command, optionsOrCb);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
ConnectCampaigns.prototype.pauseCampaign = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new PauseCampaignCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
ConnectCampaigns.prototype.putDialRequestBatch = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new PutDialRequestBatchCommand(args);
|
|
200
|
+
if (typeof optionsOrCb === "function") {
|
|
201
|
+
this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
else if (typeof cb === "function") {
|
|
204
|
+
if (typeof optionsOrCb !== "object")
|
|
205
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
206
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
ConnectCampaigns.prototype.resumeCampaign = function (args, optionsOrCb, cb) {
|
|
213
|
+
var command = new ResumeCampaignCommand(args);
|
|
214
|
+
if (typeof optionsOrCb === "function") {
|
|
215
|
+
this.send(command, optionsOrCb);
|
|
216
|
+
}
|
|
217
|
+
else if (typeof cb === "function") {
|
|
218
|
+
if (typeof optionsOrCb !== "object")
|
|
219
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
220
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
return this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
ConnectCampaigns.prototype.startCampaign = function (args, optionsOrCb, cb) {
|
|
227
|
+
var command = new StartCampaignCommand(args);
|
|
228
|
+
if (typeof optionsOrCb === "function") {
|
|
229
|
+
this.send(command, optionsOrCb);
|
|
230
|
+
}
|
|
231
|
+
else if (typeof cb === "function") {
|
|
232
|
+
if (typeof optionsOrCb !== "object")
|
|
233
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
234
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
return this.send(command, optionsOrCb);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
ConnectCampaigns.prototype.startInstanceOnboardingJob = function (args, optionsOrCb, cb) {
|
|
241
|
+
var command = new StartInstanceOnboardingJobCommand(args);
|
|
242
|
+
if (typeof optionsOrCb === "function") {
|
|
243
|
+
this.send(command, optionsOrCb);
|
|
244
|
+
}
|
|
245
|
+
else if (typeof cb === "function") {
|
|
246
|
+
if (typeof optionsOrCb !== "object")
|
|
247
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
248
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
return this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
ConnectCampaigns.prototype.stopCampaign = function (args, optionsOrCb, cb) {
|
|
255
|
+
var command = new StopCampaignCommand(args);
|
|
256
|
+
if (typeof optionsOrCb === "function") {
|
|
257
|
+
this.send(command, optionsOrCb);
|
|
258
|
+
}
|
|
259
|
+
else if (typeof cb === "function") {
|
|
260
|
+
if (typeof optionsOrCb !== "object")
|
|
261
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
262
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
return this.send(command, optionsOrCb);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
ConnectCampaigns.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
269
|
+
var command = new TagResourceCommand(args);
|
|
270
|
+
if (typeof optionsOrCb === "function") {
|
|
271
|
+
this.send(command, optionsOrCb);
|
|
272
|
+
}
|
|
273
|
+
else if (typeof cb === "function") {
|
|
274
|
+
if (typeof optionsOrCb !== "object")
|
|
275
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
276
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
return this.send(command, optionsOrCb);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
ConnectCampaigns.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
283
|
+
var command = new UntagResourceCommand(args);
|
|
284
|
+
if (typeof optionsOrCb === "function") {
|
|
285
|
+
this.send(command, optionsOrCb);
|
|
286
|
+
}
|
|
287
|
+
else if (typeof cb === "function") {
|
|
288
|
+
if (typeof optionsOrCb !== "object")
|
|
289
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
290
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
return this.send(command, optionsOrCb);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
ConnectCampaigns.prototype.updateCampaignDialerConfig = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new UpdateCampaignDialerConfigCommand(args);
|
|
298
|
+
if (typeof optionsOrCb === "function") {
|
|
299
|
+
this.send(command, optionsOrCb);
|
|
300
|
+
}
|
|
301
|
+
else if (typeof cb === "function") {
|
|
302
|
+
if (typeof optionsOrCb !== "object")
|
|
303
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
304
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
ConnectCampaigns.prototype.updateCampaignName = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new UpdateCampaignNameCommand(args);
|
|
312
|
+
if (typeof optionsOrCb === "function") {
|
|
313
|
+
this.send(command, optionsOrCb);
|
|
314
|
+
}
|
|
315
|
+
else if (typeof cb === "function") {
|
|
316
|
+
if (typeof optionsOrCb !== "object")
|
|
317
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
318
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
return this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
ConnectCampaigns.prototype.updateCampaignOutboundCallConfig = function (args, optionsOrCb, cb) {
|
|
325
|
+
var command = new UpdateCampaignOutboundCallConfigCommand(args);
|
|
326
|
+
if (typeof optionsOrCb === "function") {
|
|
327
|
+
this.send(command, optionsOrCb);
|
|
328
|
+
}
|
|
329
|
+
else if (typeof cb === "function") {
|
|
330
|
+
if (typeof optionsOrCb !== "object")
|
|
331
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
332
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
return this.send(command, optionsOrCb);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
return ConnectCampaigns;
|
|
339
|
+
}(ConnectCampaignsClient));
|
|
340
|
+
export { ConnectCampaigns };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
var ConnectCampaignsClient = (function (_super) {
|
|
13
|
+
__extends(ConnectCampaignsClient, _super);
|
|
14
|
+
function ConnectCampaignsClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
ConnectCampaignsClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return ConnectCampaignsClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { ConnectCampaignsClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateCampaignRequest, CreateCampaignResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateCampaignCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateCampaignCommand = (function (_super) {
|
|
7
|
+
__extends(CreateCampaignCommand, _super);
|
|
8
|
+
function CreateCampaignCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectCampaignsClient";
|
|
18
|
+
var commandName = "CreateCampaignCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateCampaignRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateCampaignResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateCampaignCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateCampaignCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateCampaignCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateCampaignCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateCampaignCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateCampaignCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteCampaignRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteCampaignCommand, serializeAws_restJson1DeleteCampaignCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteCampaignCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteCampaignCommand, _super);
|
|
8
|
+
function DeleteCampaignCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectCampaignsClient";
|
|
18
|
+
var commandName = "DeleteCampaignCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteCampaignRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteCampaignCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteCampaignCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteCampaignCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteCampaignCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteCampaignCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteCampaignCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteConnectInstanceConfigRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteConnectInstanceConfigCommand, serializeAws_restJson1DeleteConnectInstanceConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteConnectInstanceConfigCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteConnectInstanceConfigCommand, _super);
|
|
8
|
+
function DeleteConnectInstanceConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteConnectInstanceConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectCampaignsClient";
|
|
18
|
+
var commandName = "DeleteConnectInstanceConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteConnectInstanceConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteConnectInstanceConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteConnectInstanceConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteConnectInstanceConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteConnectInstanceConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteConnectInstanceConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteConnectInstanceConfigCommand };
|