@aws-sdk/client-connectcampaignsv2 3.696.0 → 3.703.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/ConnectCampaignsV2.js +2 -0
- package/dist-cjs/commands/PutProfileOutboundRequestBatchCommand.js +26 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/protocols/Aws_restJson1.js +47 -2
- package/dist-es/ConnectCampaignsV2.js +2 -0
- package/dist-es/commands/PutProfileOutboundRequestBatchCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_restJson1.js +43 -0
- package/dist-types/ConnectCampaignsV2.d.ts +7 -0
- package/dist-types/ConnectCampaignsV2Client.d.ts +3 -2
- package/dist-types/commands/CreateCampaignCommand.d.ts +3 -0
- package/dist-types/commands/DescribeCampaignCommand.d.ts +3 -0
- package/dist-types/commands/PutProfileOutboundRequestBatchCommand.d.ts +111 -0
- package/dist-types/commands/UpdateCampaignSourceCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +144 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ConnectCampaignsV2.d.ts +17 -0
- package/dist-types/ts3.4/ConnectCampaignsV2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/PutProfileOutboundRequestBatchCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -354,6 +354,14 @@ PutOutboundRequestBatch
|
|
|
354
354
|
|
|
355
355
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcampaignsv2/command/PutOutboundRequestBatchCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcampaignsv2/Interface/PutOutboundRequestBatchCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcampaignsv2/Interface/PutOutboundRequestBatchCommandOutput/)
|
|
356
356
|
|
|
357
|
+
</details>
|
|
358
|
+
<details>
|
|
359
|
+
<summary>
|
|
360
|
+
PutProfileOutboundRequestBatch
|
|
361
|
+
</summary>
|
|
362
|
+
|
|
363
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcampaignsv2/command/PutProfileOutboundRequestBatchCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcampaignsv2/Interface/PutProfileOutboundRequestBatchCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcampaignsv2/Interface/PutProfileOutboundRequestBatchCommandOutput/)
|
|
364
|
+
|
|
357
365
|
</details>
|
|
358
366
|
<details>
|
|
359
367
|
<summary>
|
|
@@ -21,6 +21,7 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
|
|
|
21
21
|
const PauseCampaignCommand_1 = require("./commands/PauseCampaignCommand");
|
|
22
22
|
const PutConnectInstanceIntegrationCommand_1 = require("./commands/PutConnectInstanceIntegrationCommand");
|
|
23
23
|
const PutOutboundRequestBatchCommand_1 = require("./commands/PutOutboundRequestBatchCommand");
|
|
24
|
+
const PutProfileOutboundRequestBatchCommand_1 = require("./commands/PutProfileOutboundRequestBatchCommand");
|
|
24
25
|
const ResumeCampaignCommand_1 = require("./commands/ResumeCampaignCommand");
|
|
25
26
|
const StartCampaignCommand_1 = require("./commands/StartCampaignCommand");
|
|
26
27
|
const StartInstanceOnboardingJobCommand_1 = require("./commands/StartInstanceOnboardingJobCommand");
|
|
@@ -55,6 +56,7 @@ const commands = {
|
|
|
55
56
|
PauseCampaignCommand: PauseCampaignCommand_1.PauseCampaignCommand,
|
|
56
57
|
PutConnectInstanceIntegrationCommand: PutConnectInstanceIntegrationCommand_1.PutConnectInstanceIntegrationCommand,
|
|
57
58
|
PutOutboundRequestBatchCommand: PutOutboundRequestBatchCommand_1.PutOutboundRequestBatchCommand,
|
|
59
|
+
PutProfileOutboundRequestBatchCommand: PutProfileOutboundRequestBatchCommand_1.PutProfileOutboundRequestBatchCommand,
|
|
58
60
|
ResumeCampaignCommand: ResumeCampaignCommand_1.ResumeCampaignCommand,
|
|
59
61
|
StartCampaignCommand: StartCampaignCommand_1.StartCampaignCommand,
|
|
60
62
|
StartInstanceOnboardingJobCommand: StartInstanceOnboardingJobCommand_1.StartInstanceOnboardingJobCommand,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutProfileOutboundRequestBatchCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class PutProfileOutboundRequestBatchCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonConnectCampaignServiceV2", "PutProfileOutboundRequestBatch", {})
|
|
20
|
+
.n("ConnectCampaignsV2Client", "PutProfileOutboundRequestBatchCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_PutProfileOutboundRequestBatchCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_PutProfileOutboundRequestBatchCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.PutProfileOutboundRequestBatchCommand = PutProfileOutboundRequestBatchCommand;
|
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./PauseCampaignCommand"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./PutConnectInstanceIntegrationCommand"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./PutOutboundRequestBatchCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./PutProfileOutboundRequestBatchCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./ResumeCampaignCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./StartCampaignCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./StartInstanceOnboardingJobCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog = exports.PutOutboundRequestBatchRequestFilterSensitiveLog = exports.OutboundRequestFilterSensitiveLog = exports.ChannelSubtypeParametersFilterSensitiveLog = exports.TelephonyChannelSubtypeParametersFilterSensitiveLog = exports.SmsChannelSubtypeParametersFilterSensitiveLog = exports.EmailChannelSubtypeParametersFilterSensitiveLog = exports.DescribeCampaignResponseFilterSensitiveLog = exports.CampaignFilterSensitiveLog = exports.CreateCampaignRequestFilterSensitiveLog = exports.ChannelSubtypeConfigFilterSensitiveLog = exports.EmailChannelSubtypeConfigFilterSensitiveLog = exports.EmailOutboundConfigFilterSensitiveLog = exports.FailureCode = exports.ChannelSubtypeParameters = exports.IntegrationConfig = exports.IntegrationSummary = exports.EventType = exports.InstanceIdFilterOperator = exports.InstanceOnboardingJobStatusCode = exports.InstanceOnboardingJobFailureCode = exports.EncryptionType = exports.GetCampaignStateBatchFailureCode = exports.IntegrationIdentifier = exports.InvalidStateException = exports.CampaignDeletionPolicy = exports.CommunicationTimeConfigType = exports.InvalidCampaignStateException = exports.CampaignState = exports.CommunicationLimitsConfigType = exports.ChannelSubtype = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.Source = exports.LocalTimeZoneDetectionType = exports.RestrictedPeriods = exports.OpenHours = exports.DayOfWeek = exports.CommunicationLimits = exports.CommunicationLimitTimeUnit = exports.TelephonyOutboundMode = exports.SmsOutboundMode = exports.EmailOutboundMode = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog = exports.PutOutboundRequestBatchRequestFilterSensitiveLog = exports.OutboundRequestFilterSensitiveLog = exports.ChannelSubtypeParametersFilterSensitiveLog = exports.TelephonyChannelSubtypeParametersFilterSensitiveLog = exports.SmsChannelSubtypeParametersFilterSensitiveLog = exports.EmailChannelSubtypeParametersFilterSensitiveLog = exports.DescribeCampaignResponseFilterSensitiveLog = exports.CampaignFilterSensitiveLog = exports.CreateCampaignRequestFilterSensitiveLog = exports.ChannelSubtypeConfigFilterSensitiveLog = exports.EmailChannelSubtypeConfigFilterSensitiveLog = exports.EmailOutboundConfigFilterSensitiveLog = exports.ProfileOutboundRequestFailureCode = exports.FailureCode = exports.ChannelSubtypeParameters = exports.IntegrationConfig = exports.IntegrationSummary = exports.EventType = exports.InstanceIdFilterOperator = exports.InstanceOnboardingJobStatusCode = exports.InstanceOnboardingJobFailureCode = exports.EncryptionType = exports.GetCampaignStateBatchFailureCode = exports.IntegrationIdentifier = exports.InvalidStateException = exports.CampaignDeletionPolicy = exports.CommunicationTimeConfigType = exports.InvalidCampaignStateException = exports.CampaignState = exports.CommunicationLimitsConfigType = exports.ChannelSubtype = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.Source = exports.LocalTimeZoneDetectionType = exports.RestrictedPeriods = exports.OpenHours = exports.DayOfWeek = exports.CommunicationLimits = exports.CommunicationLimitTimeUnit = exports.TelephonyOutboundMode = exports.SmsOutboundMode = exports.EmailOutboundMode = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const ConnectCampaignsV2ServiceException_1 = require("./ConnectCampaignsV2ServiceException");
|
|
6
6
|
class AccessDeniedException extends ConnectCampaignsV2ServiceException_1.ConnectCampaignsV2ServiceException {
|
|
@@ -104,6 +104,8 @@ var Source;
|
|
|
104
104
|
Source.visit = (value, visitor) => {
|
|
105
105
|
if (value.customerProfilesSegmentArn !== undefined)
|
|
106
106
|
return visitor.customerProfilesSegmentArn(value.customerProfilesSegmentArn);
|
|
107
|
+
if (value.eventTrigger !== undefined)
|
|
108
|
+
return visitor.eventTrigger(value.eventTrigger);
|
|
107
109
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
108
110
|
};
|
|
109
111
|
})(Source = exports.Source || (exports.Source = {}));
|
|
@@ -310,6 +312,13 @@ exports.FailureCode = {
|
|
|
310
312
|
REQUEST_THROTTLED: "RequestThrottled",
|
|
311
313
|
UNKNOWN_ERROR: "UnknownError",
|
|
312
314
|
};
|
|
315
|
+
exports.ProfileOutboundRequestFailureCode = {
|
|
316
|
+
CONFLICT: "Conflict",
|
|
317
|
+
INVALID_INPUT: "InvalidInput",
|
|
318
|
+
REQUEST_THROTTLED: "RequestThrottled",
|
|
319
|
+
RESOURCE_NOT_FOUND: "ResourceNotFound",
|
|
320
|
+
UNKNOWN_ERROR: "UnknownError",
|
|
321
|
+
};
|
|
313
322
|
const EmailOutboundConfigFilterSensitiveLog = (obj) => ({
|
|
314
323
|
...obj,
|
|
315
324
|
...(obj.connectSourceEmailAddress && { connectSourceEmailAddress: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
3
|
+
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_PutProfileOutboundRequestBatchCommand = 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_PutProfileOutboundRequestBatchCommand = exports.de_PutOutboundRequestBatchCommand = exports.de_PutConnectInstanceIntegrationCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
6
|
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -250,6 +250,21 @@ const se_PutOutboundRequestBatchCommand = async (input, context) => {
|
|
|
250
250
|
return b.build();
|
|
251
251
|
};
|
|
252
252
|
exports.se_PutOutboundRequestBatchCommand = se_PutOutboundRequestBatchCommand;
|
|
253
|
+
const se_PutProfileOutboundRequestBatchCommand = async (input, context) => {
|
|
254
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
255
|
+
const headers = {
|
|
256
|
+
"content-type": "application/json",
|
|
257
|
+
};
|
|
258
|
+
b.bp("/v2/campaigns/{id}/profile-outbound-requests");
|
|
259
|
+
b.p("id", () => input.id, "{id}", false);
|
|
260
|
+
let body;
|
|
261
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
262
|
+
profileOutboundRequests: (_) => se_ProfileOutboundRequestList(_, context),
|
|
263
|
+
}));
|
|
264
|
+
b.m("PUT").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
266
|
+
};
|
|
267
|
+
exports.se_PutProfileOutboundRequestBatchCommand = se_PutProfileOutboundRequestBatchCommand;
|
|
253
268
|
const se_ResumeCampaignCommand = async (input, context) => {
|
|
254
269
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
255
270
|
const headers = {};
|
|
@@ -683,6 +698,22 @@ const de_PutOutboundRequestBatchCommand = async (output, context) => {
|
|
|
683
698
|
return contents;
|
|
684
699
|
};
|
|
685
700
|
exports.de_PutOutboundRequestBatchCommand = de_PutOutboundRequestBatchCommand;
|
|
701
|
+
const de_PutProfileOutboundRequestBatchCommand = async (output, context) => {
|
|
702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
+
return de_CommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const contents = (0, smithy_client_1.map)({
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
});
|
|
708
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
709
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
710
|
+
failedRequests: smithy_client_1._json,
|
|
711
|
+
successfulRequests: smithy_client_1._json,
|
|
712
|
+
});
|
|
713
|
+
Object.assign(contents, doc);
|
|
714
|
+
return contents;
|
|
715
|
+
};
|
|
716
|
+
exports.de_PutProfileOutboundRequestBatchCommand = de_PutProfileOutboundRequestBatchCommand;
|
|
686
717
|
const de_ResumeCampaignCommand = async (output, context) => {
|
|
687
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
719
|
return de_CommandError(output, context);
|
|
@@ -1043,6 +1074,20 @@ const se_PredictiveConfig = (input, context) => {
|
|
|
1043
1074
|
bandwidthAllocation: smithy_client_1.serializeFloat,
|
|
1044
1075
|
});
|
|
1045
1076
|
};
|
|
1077
|
+
const se_ProfileOutboundRequest = (input, context) => {
|
|
1078
|
+
return (0, smithy_client_1.take)(input, {
|
|
1079
|
+
clientToken: [],
|
|
1080
|
+
expirationTime: smithy_client_1.serializeDateTime,
|
|
1081
|
+
profileId: [],
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1084
|
+
const se_ProfileOutboundRequestList = (input, context) => {
|
|
1085
|
+
return input
|
|
1086
|
+
.filter((e) => e != null)
|
|
1087
|
+
.map((entry) => {
|
|
1088
|
+
return se_ProfileOutboundRequest(entry, context);
|
|
1089
|
+
});
|
|
1090
|
+
};
|
|
1046
1091
|
const se_ProgressiveConfig = (input, context) => {
|
|
1047
1092
|
return (0, smithy_client_1.take)(input, {
|
|
1048
1093
|
bandwidthAllocation: smithy_client_1.serializeFloat,
|
|
@@ -18,6 +18,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
18
18
|
import { PauseCampaignCommand, } from "./commands/PauseCampaignCommand";
|
|
19
19
|
import { PutConnectInstanceIntegrationCommand, } from "./commands/PutConnectInstanceIntegrationCommand";
|
|
20
20
|
import { PutOutboundRequestBatchCommand, } from "./commands/PutOutboundRequestBatchCommand";
|
|
21
|
+
import { PutProfileOutboundRequestBatchCommand, } from "./commands/PutProfileOutboundRequestBatchCommand";
|
|
21
22
|
import { ResumeCampaignCommand, } from "./commands/ResumeCampaignCommand";
|
|
22
23
|
import { StartCampaignCommand, } from "./commands/StartCampaignCommand";
|
|
23
24
|
import { StartInstanceOnboardingJobCommand, } from "./commands/StartInstanceOnboardingJobCommand";
|
|
@@ -52,6 +53,7 @@ const commands = {
|
|
|
52
53
|
PauseCampaignCommand,
|
|
53
54
|
PutConnectInstanceIntegrationCommand,
|
|
54
55
|
PutOutboundRequestBatchCommand,
|
|
56
|
+
PutProfileOutboundRequestBatchCommand,
|
|
55
57
|
ResumeCampaignCommand,
|
|
56
58
|
StartCampaignCommand,
|
|
57
59
|
StartInstanceOnboardingJobCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutProfileOutboundRequestBatchCommand, se_PutProfileOutboundRequestBatchCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutProfileOutboundRequestBatchCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectCampaignServiceV2", "PutProfileOutboundRequestBatch", {})
|
|
17
|
+
.n("ConnectCampaignsV2Client", "PutProfileOutboundRequestBatchCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutProfileOutboundRequestBatchCommand)
|
|
20
|
+
.de(de_PutProfileOutboundRequestBatchCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
17
17
|
export * from "./PauseCampaignCommand";
|
|
18
18
|
export * from "./PutConnectInstanceIntegrationCommand";
|
|
19
19
|
export * from "./PutOutboundRequestBatchCommand";
|
|
20
|
+
export * from "./PutProfileOutboundRequestBatchCommand";
|
|
20
21
|
export * from "./ResumeCampaignCommand";
|
|
21
22
|
export * from "./StartCampaignCommand";
|
|
22
23
|
export * from "./StartInstanceOnboardingJobCommand";
|
|
@@ -99,6 +99,8 @@ export var Source;
|
|
|
99
99
|
Source.visit = (value, visitor) => {
|
|
100
100
|
if (value.customerProfilesSegmentArn !== undefined)
|
|
101
101
|
return visitor.customerProfilesSegmentArn(value.customerProfilesSegmentArn);
|
|
102
|
+
if (value.eventTrigger !== undefined)
|
|
103
|
+
return visitor.eventTrigger(value.eventTrigger);
|
|
102
104
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
103
105
|
};
|
|
104
106
|
})(Source || (Source = {}));
|
|
@@ -298,6 +300,13 @@ export const FailureCode = {
|
|
|
298
300
|
REQUEST_THROTTLED: "RequestThrottled",
|
|
299
301
|
UNKNOWN_ERROR: "UnknownError",
|
|
300
302
|
};
|
|
303
|
+
export const ProfileOutboundRequestFailureCode = {
|
|
304
|
+
CONFLICT: "Conflict",
|
|
305
|
+
INVALID_INPUT: "InvalidInput",
|
|
306
|
+
REQUEST_THROTTLED: "RequestThrottled",
|
|
307
|
+
RESOURCE_NOT_FOUND: "ResourceNotFound",
|
|
308
|
+
UNKNOWN_ERROR: "UnknownError",
|
|
309
|
+
};
|
|
301
310
|
export const EmailOutboundConfigFilterSensitiveLog = (obj) => ({
|
|
302
311
|
...obj,
|
|
303
312
|
...(obj.connectSourceEmailAddress && { connectSourceEmailAddress: SENSITIVE_STRING }),
|
|
@@ -227,6 +227,20 @@ export const se_PutOutboundRequestBatchCommand = async (input, context) => {
|
|
|
227
227
|
b.m("PUT").h(headers).b(body);
|
|
228
228
|
return b.build();
|
|
229
229
|
};
|
|
230
|
+
export const se_PutProfileOutboundRequestBatchCommand = async (input, context) => {
|
|
231
|
+
const b = rb(input, context);
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/json",
|
|
234
|
+
};
|
|
235
|
+
b.bp("/v2/campaigns/{id}/profile-outbound-requests");
|
|
236
|
+
b.p("id", () => input.id, "{id}", false);
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(take(input, {
|
|
239
|
+
profileOutboundRequests: (_) => se_ProfileOutboundRequestList(_, context),
|
|
240
|
+
}));
|
|
241
|
+
b.m("PUT").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
243
|
+
};
|
|
230
244
|
export const se_ResumeCampaignCommand = async (input, context) => {
|
|
231
245
|
const b = rb(input, context);
|
|
232
246
|
const headers = {};
|
|
@@ -628,6 +642,21 @@ export const de_PutOutboundRequestBatchCommand = async (output, context) => {
|
|
|
628
642
|
Object.assign(contents, doc);
|
|
629
643
|
return contents;
|
|
630
644
|
};
|
|
645
|
+
export const de_PutProfileOutboundRequestBatchCommand = async (output, context) => {
|
|
646
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
+
return de_CommandError(output, context);
|
|
648
|
+
}
|
|
649
|
+
const contents = map({
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
});
|
|
652
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
653
|
+
const doc = take(data, {
|
|
654
|
+
failedRequests: _json,
|
|
655
|
+
successfulRequests: _json,
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
return contents;
|
|
659
|
+
};
|
|
631
660
|
export const de_ResumeCampaignCommand = async (output, context) => {
|
|
632
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
662
|
return de_CommandError(output, context);
|
|
@@ -975,6 +1004,20 @@ const se_PredictiveConfig = (input, context) => {
|
|
|
975
1004
|
bandwidthAllocation: __serializeFloat,
|
|
976
1005
|
});
|
|
977
1006
|
};
|
|
1007
|
+
const se_ProfileOutboundRequest = (input, context) => {
|
|
1008
|
+
return take(input, {
|
|
1009
|
+
clientToken: [],
|
|
1010
|
+
expirationTime: __serializeDateTime,
|
|
1011
|
+
profileId: [],
|
|
1012
|
+
});
|
|
1013
|
+
};
|
|
1014
|
+
const se_ProfileOutboundRequestList = (input, context) => {
|
|
1015
|
+
return input
|
|
1016
|
+
.filter((e) => e != null)
|
|
1017
|
+
.map((entry) => {
|
|
1018
|
+
return se_ProfileOutboundRequest(entry, context);
|
|
1019
|
+
});
|
|
1020
|
+
};
|
|
978
1021
|
const se_ProgressiveConfig = (input, context) => {
|
|
979
1022
|
return take(input, {
|
|
980
1023
|
bandwidthAllocation: __serializeFloat,
|
|
@@ -18,6 +18,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
18
18
|
import { PauseCampaignCommandInput, PauseCampaignCommandOutput } from "./commands/PauseCampaignCommand";
|
|
19
19
|
import { PutConnectInstanceIntegrationCommandInput, PutConnectInstanceIntegrationCommandOutput } from "./commands/PutConnectInstanceIntegrationCommand";
|
|
20
20
|
import { PutOutboundRequestBatchCommandInput, PutOutboundRequestBatchCommandOutput } from "./commands/PutOutboundRequestBatchCommand";
|
|
21
|
+
import { PutProfileOutboundRequestBatchCommandInput, PutProfileOutboundRequestBatchCommandOutput } from "./commands/PutProfileOutboundRequestBatchCommand";
|
|
21
22
|
import { ResumeCampaignCommandInput, ResumeCampaignCommandOutput } from "./commands/ResumeCampaignCommand";
|
|
22
23
|
import { StartCampaignCommandInput, StartCampaignCommandOutput } from "./commands/StartCampaignCommand";
|
|
23
24
|
import { StartInstanceOnboardingJobCommandInput, StartInstanceOnboardingJobCommandOutput } from "./commands/StartInstanceOnboardingJobCommand";
|
|
@@ -148,6 +149,12 @@ export interface ConnectCampaignsV2 {
|
|
|
148
149
|
putOutboundRequestBatch(args: PutOutboundRequestBatchCommandInput, options?: __HttpHandlerOptions): Promise<PutOutboundRequestBatchCommandOutput>;
|
|
149
150
|
putOutboundRequestBatch(args: PutOutboundRequestBatchCommandInput, cb: (err: any, data?: PutOutboundRequestBatchCommandOutput) => void): void;
|
|
150
151
|
putOutboundRequestBatch(args: PutOutboundRequestBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutOutboundRequestBatchCommandOutput) => void): void;
|
|
152
|
+
/**
|
|
153
|
+
* @see {@link PutProfileOutboundRequestBatchCommand}
|
|
154
|
+
*/
|
|
155
|
+
putProfileOutboundRequestBatch(args: PutProfileOutboundRequestBatchCommandInput, options?: __HttpHandlerOptions): Promise<PutProfileOutboundRequestBatchCommandOutput>;
|
|
156
|
+
putProfileOutboundRequestBatch(args: PutProfileOutboundRequestBatchCommandInput, cb: (err: any, data?: PutProfileOutboundRequestBatchCommandOutput) => void): void;
|
|
157
|
+
putProfileOutboundRequestBatch(args: PutProfileOutboundRequestBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutProfileOutboundRequestBatchCommandOutput) => void): void;
|
|
151
158
|
/**
|
|
152
159
|
* @see {@link ResumeCampaignCommand}
|
|
153
160
|
*/
|
|
@@ -26,6 +26,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
26
26
|
import { PauseCampaignCommandInput, PauseCampaignCommandOutput } from "./commands/PauseCampaignCommand";
|
|
27
27
|
import { PutConnectInstanceIntegrationCommandInput, PutConnectInstanceIntegrationCommandOutput } from "./commands/PutConnectInstanceIntegrationCommand";
|
|
28
28
|
import { PutOutboundRequestBatchCommandInput, PutOutboundRequestBatchCommandOutput } from "./commands/PutOutboundRequestBatchCommand";
|
|
29
|
+
import { PutProfileOutboundRequestBatchCommandInput, PutProfileOutboundRequestBatchCommandOutput } from "./commands/PutProfileOutboundRequestBatchCommand";
|
|
29
30
|
import { ResumeCampaignCommandInput, ResumeCampaignCommandOutput } from "./commands/ResumeCampaignCommand";
|
|
30
31
|
import { StartCampaignCommandInput, StartCampaignCommandOutput } from "./commands/StartCampaignCommand";
|
|
31
32
|
import { StartInstanceOnboardingJobCommandInput, StartInstanceOnboardingJobCommandOutput } from "./commands/StartInstanceOnboardingJobCommand";
|
|
@@ -45,11 +46,11 @@ export { __Client };
|
|
|
45
46
|
/**
|
|
46
47
|
* @public
|
|
47
48
|
*/
|
|
48
|
-
export type ServiceInputTypes = CreateCampaignCommandInput | DeleteCampaignChannelSubtypeConfigCommandInput | DeleteCampaignCommandInput | DeleteCampaignCommunicationLimitsCommandInput | DeleteCampaignCommunicationTimeCommandInput | DeleteConnectInstanceConfigCommandInput | DeleteConnectInstanceIntegrationCommandInput | DeleteInstanceOnboardingJobCommandInput | DescribeCampaignCommandInput | GetCampaignStateBatchCommandInput | GetCampaignStateCommandInput | GetConnectInstanceConfigCommandInput | GetInstanceOnboardingJobStatusCommandInput | ListCampaignsCommandInput | ListConnectInstanceIntegrationsCommandInput | ListTagsForResourceCommandInput | PauseCampaignCommandInput | PutConnectInstanceIntegrationCommandInput | PutOutboundRequestBatchCommandInput | ResumeCampaignCommandInput | StartCampaignCommandInput | StartInstanceOnboardingJobCommandInput | StopCampaignCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignChannelSubtypeConfigCommandInput | UpdateCampaignCommunicationLimitsCommandInput | UpdateCampaignCommunicationTimeCommandInput | UpdateCampaignFlowAssociationCommandInput | UpdateCampaignNameCommandInput | UpdateCampaignScheduleCommandInput | UpdateCampaignSourceCommandInput;
|
|
49
|
+
export type ServiceInputTypes = CreateCampaignCommandInput | DeleteCampaignChannelSubtypeConfigCommandInput | DeleteCampaignCommandInput | DeleteCampaignCommunicationLimitsCommandInput | DeleteCampaignCommunicationTimeCommandInput | DeleteConnectInstanceConfigCommandInput | DeleteConnectInstanceIntegrationCommandInput | DeleteInstanceOnboardingJobCommandInput | DescribeCampaignCommandInput | GetCampaignStateBatchCommandInput | GetCampaignStateCommandInput | GetConnectInstanceConfigCommandInput | GetInstanceOnboardingJobStatusCommandInput | ListCampaignsCommandInput | ListConnectInstanceIntegrationsCommandInput | ListTagsForResourceCommandInput | PauseCampaignCommandInput | PutConnectInstanceIntegrationCommandInput | PutOutboundRequestBatchCommandInput | PutProfileOutboundRequestBatchCommandInput | ResumeCampaignCommandInput | StartCampaignCommandInput | StartInstanceOnboardingJobCommandInput | StopCampaignCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignChannelSubtypeConfigCommandInput | UpdateCampaignCommunicationLimitsCommandInput | UpdateCampaignCommunicationTimeCommandInput | UpdateCampaignFlowAssociationCommandInput | UpdateCampaignNameCommandInput | UpdateCampaignScheduleCommandInput | UpdateCampaignSourceCommandInput;
|
|
49
50
|
/**
|
|
50
51
|
* @public
|
|
51
52
|
*/
|
|
52
|
-
export type ServiceOutputTypes = CreateCampaignCommandOutput | DeleteCampaignChannelSubtypeConfigCommandOutput | DeleteCampaignCommandOutput | DeleteCampaignCommunicationLimitsCommandOutput | DeleteCampaignCommunicationTimeCommandOutput | DeleteConnectInstanceConfigCommandOutput | DeleteConnectInstanceIntegrationCommandOutput | DeleteInstanceOnboardingJobCommandOutput | DescribeCampaignCommandOutput | GetCampaignStateBatchCommandOutput | GetCampaignStateCommandOutput | GetConnectInstanceConfigCommandOutput | GetInstanceOnboardingJobStatusCommandOutput | ListCampaignsCommandOutput | ListConnectInstanceIntegrationsCommandOutput | ListTagsForResourceCommandOutput | PauseCampaignCommandOutput | PutConnectInstanceIntegrationCommandOutput | PutOutboundRequestBatchCommandOutput | ResumeCampaignCommandOutput | StartCampaignCommandOutput | StartInstanceOnboardingJobCommandOutput | StopCampaignCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignChannelSubtypeConfigCommandOutput | UpdateCampaignCommunicationLimitsCommandOutput | UpdateCampaignCommunicationTimeCommandOutput | UpdateCampaignFlowAssociationCommandOutput | UpdateCampaignNameCommandOutput | UpdateCampaignScheduleCommandOutput | UpdateCampaignSourceCommandOutput;
|
|
53
|
+
export type ServiceOutputTypes = CreateCampaignCommandOutput | DeleteCampaignChannelSubtypeConfigCommandOutput | DeleteCampaignCommandOutput | DeleteCampaignCommunicationLimitsCommandOutput | DeleteCampaignCommunicationTimeCommandOutput | DeleteConnectInstanceConfigCommandOutput | DeleteConnectInstanceIntegrationCommandOutput | DeleteInstanceOnboardingJobCommandOutput | DescribeCampaignCommandOutput | GetCampaignStateBatchCommandOutput | GetCampaignStateCommandOutput | GetConnectInstanceConfigCommandOutput | GetInstanceOnboardingJobStatusCommandOutput | ListCampaignsCommandOutput | ListConnectInstanceIntegrationsCommandOutput | ListTagsForResourceCommandOutput | PauseCampaignCommandOutput | PutConnectInstanceIntegrationCommandOutput | PutOutboundRequestBatchCommandOutput | PutProfileOutboundRequestBatchCommandOutput | ResumeCampaignCommandOutput | StartCampaignCommandOutput | StartInstanceOnboardingJobCommandOutput | StopCampaignCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignChannelSubtypeConfigCommandOutput | UpdateCampaignCommunicationLimitsCommandOutput | UpdateCampaignCommunicationTimeCommandOutput | UpdateCampaignFlowAssociationCommandOutput | UpdateCampaignNameCommandOutput | UpdateCampaignScheduleCommandOutput | UpdateCampaignSourceCommandOutput;
|
|
53
54
|
/**
|
|
54
55
|
* @public
|
|
55
56
|
*/
|
|
@@ -83,6 +83,9 @@ declare const CreateCampaignCommand_base: {
|
|
|
83
83
|
* },
|
|
84
84
|
* source: { // Source Union: only one key present
|
|
85
85
|
* customerProfilesSegmentArn: "STRING_VALUE",
|
|
86
|
+
* eventTrigger: { // EventTrigger
|
|
87
|
+
* customerProfilesDomainArn: "STRING_VALUE",
|
|
88
|
+
* },
|
|
86
89
|
* },
|
|
87
90
|
* connectCampaignFlowArn: "STRING_VALUE",
|
|
88
91
|
* schedule: { // Schedule
|
|
@@ -91,6 +91,9 @@ declare const DescribeCampaignCommand_base: {
|
|
|
91
91
|
* // },
|
|
92
92
|
* // source: { // Source Union: only one key present
|
|
93
93
|
* // customerProfilesSegmentArn: "STRING_VALUE",
|
|
94
|
+
* // eventTrigger: { // EventTrigger
|
|
95
|
+
* // customerProfilesDomainArn: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
94
97
|
* // },
|
|
95
98
|
* // connectCampaignFlowArn: "STRING_VALUE",
|
|
96
99
|
* // schedule: { // Schedule
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ConnectCampaignsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCampaignsV2Client";
|
|
4
|
+
import { PutProfileOutboundRequestBatchRequest, PutProfileOutboundRequestBatchResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutProfileOutboundRequestBatchCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutProfileOutboundRequestBatchCommandInput extends PutProfileOutboundRequestBatchRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutProfileOutboundRequestBatchCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutProfileOutboundRequestBatchCommandOutput extends PutProfileOutboundRequestBatchResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutProfileOutboundRequestBatchCommand_base: {
|
|
25
|
+
new (input: PutProfileOutboundRequestBatchCommandInput): import("@smithy/smithy-client").CommandImpl<PutProfileOutboundRequestBatchCommandInput, PutProfileOutboundRequestBatchCommandOutput, ConnectCampaignsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PutProfileOutboundRequestBatchCommandInput): import("@smithy/smithy-client").CommandImpl<PutProfileOutboundRequestBatchCommandInput, PutProfileOutboundRequestBatchCommandOutput, ConnectCampaignsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Takes in a list of profile outbound requests to be placed as part of an outbound campaign. This API is idempotent.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConnectCampaignsV2Client, PutProfileOutboundRequestBatchCommand } from "@aws-sdk/client-connectcampaignsv2"; // ES Modules import
|
|
35
|
+
* // const { ConnectCampaignsV2Client, PutProfileOutboundRequestBatchCommand } = require("@aws-sdk/client-connectcampaignsv2"); // CommonJS import
|
|
36
|
+
* const client = new ConnectCampaignsV2Client(config);
|
|
37
|
+
* const input = { // PutProfileOutboundRequestBatchRequest
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* profileOutboundRequests: [ // ProfileOutboundRequestList // required
|
|
40
|
+
* { // ProfileOutboundRequest
|
|
41
|
+
* clientToken: "STRING_VALUE", // required
|
|
42
|
+
* profileId: "STRING_VALUE", // required
|
|
43
|
+
* expirationTime: new Date("TIMESTAMP"),
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* };
|
|
47
|
+
* const command = new PutProfileOutboundRequestBatchCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // PutProfileOutboundRequestBatchResponse
|
|
50
|
+
* // successfulRequests: [ // SuccessfulProfileOutboundRequestList
|
|
51
|
+
* // { // SuccessfulProfileOutboundRequest
|
|
52
|
+
* // clientToken: "STRING_VALUE",
|
|
53
|
+
* // id: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // failedRequests: [ // FailedProfileOutboundRequestList
|
|
57
|
+
* // { // FailedProfileOutboundRequest
|
|
58
|
+
* // clientToken: "STRING_VALUE",
|
|
59
|
+
* // id: "STRING_VALUE",
|
|
60
|
+
* // failureCode: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param PutProfileOutboundRequestBatchCommandInput - {@link PutProfileOutboundRequestBatchCommandInput}
|
|
68
|
+
* @returns {@link PutProfileOutboundRequestBatchCommandOutput}
|
|
69
|
+
* @see {@link PutProfileOutboundRequestBatchCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link PutProfileOutboundRequestBatchCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link ConnectCampaignsV2ClientResolvedConfig | config} for ConnectCampaignsV2Client's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
74
|
+
* You do not have sufficient access to perform this action.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* The request could not be processed because of conflict in the current state of the resource.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* Request processing failed because of an error or failure with the service.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InvalidCampaignStateException} (client fault)
|
|
83
|
+
* The request could not be processed because of conflict in the current state of the campaign.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
+
* The specified resource was not found.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* The request was denied due to request throttling.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationException} (client fault)
|
|
92
|
+
* The input fails to satisfy the constraints specified by an AWS service.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ConnectCampaignsV2ServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from ConnectCampaignsV2 service.</p>
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class PutProfileOutboundRequestBatchCommand extends PutProfileOutboundRequestBatchCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: PutProfileOutboundRequestBatchRequest;
|
|
104
|
+
output: PutProfileOutboundRequestBatchResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: PutProfileOutboundRequestBatchCommandInput;
|
|
108
|
+
output: PutProfileOutboundRequestBatchCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -38,6 +38,9 @@ declare const UpdateCampaignSourceCommand_base: {
|
|
|
38
38
|
* id: "STRING_VALUE", // required
|
|
39
39
|
* source: { // Source Union: only one key present
|
|
40
40
|
* customerProfilesSegmentArn: "STRING_VALUE",
|
|
41
|
+
* eventTrigger: { // EventTrigger
|
|
42
|
+
* customerProfilesDomainArn: "STRING_VALUE",
|
|
43
|
+
* },
|
|
41
44
|
* },
|
|
42
45
|
* };
|
|
43
46
|
* const command = new UpdateCampaignSourceCommand(input);
|
|
@@ -17,6 +17,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
17
17
|
export * from "./PauseCampaignCommand";
|
|
18
18
|
export * from "./PutConnectInstanceIntegrationCommand";
|
|
19
19
|
export * from "./PutOutboundRequestBatchCommand";
|
|
20
|
+
export * from "./PutProfileOutboundRequestBatchCommand";
|
|
20
21
|
export * from "./ResumeCampaignCommand";
|
|
21
22
|
export * from "./StartCampaignCommand";
|
|
22
23
|
export * from "./StartInstanceOnboardingJobCommand";
|
|
@@ -619,11 +619,22 @@ export interface Schedule {
|
|
|
619
619
|
*/
|
|
620
620
|
refreshFrequency?: string | undefined;
|
|
621
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* Event trigger of the campaign
|
|
624
|
+
* @public
|
|
625
|
+
*/
|
|
626
|
+
export interface EventTrigger {
|
|
627
|
+
/**
|
|
628
|
+
* Amazon Resource Names(ARN)
|
|
629
|
+
* @public
|
|
630
|
+
*/
|
|
631
|
+
customerProfilesDomainArn?: string | undefined;
|
|
632
|
+
}
|
|
622
633
|
/**
|
|
623
634
|
* Source of the campaign
|
|
624
635
|
* @public
|
|
625
636
|
*/
|
|
626
|
-
export type Source = Source.CustomerProfilesSegmentArnMember | Source.$UnknownMember;
|
|
637
|
+
export type Source = Source.CustomerProfilesSegmentArnMember | Source.EventTriggerMember | Source.$UnknownMember;
|
|
627
638
|
/**
|
|
628
639
|
* @public
|
|
629
640
|
*/
|
|
@@ -634,6 +645,16 @@ export declare namespace Source {
|
|
|
634
645
|
*/
|
|
635
646
|
interface CustomerProfilesSegmentArnMember {
|
|
636
647
|
customerProfilesSegmentArn: string;
|
|
648
|
+
eventTrigger?: never;
|
|
649
|
+
$unknown?: never;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Event trigger of the campaign
|
|
653
|
+
* @public
|
|
654
|
+
*/
|
|
655
|
+
interface EventTriggerMember {
|
|
656
|
+
customerProfilesSegmentArn?: never;
|
|
657
|
+
eventTrigger: EventTrigger;
|
|
637
658
|
$unknown?: never;
|
|
638
659
|
}
|
|
639
660
|
/**
|
|
@@ -641,10 +662,12 @@ export declare namespace Source {
|
|
|
641
662
|
*/
|
|
642
663
|
interface $UnknownMember {
|
|
643
664
|
customerProfilesSegmentArn?: never;
|
|
665
|
+
eventTrigger?: never;
|
|
644
666
|
$unknown: [string, any];
|
|
645
667
|
}
|
|
646
668
|
interface Visitor<T> {
|
|
647
669
|
customerProfilesSegmentArn: (value: string) => T;
|
|
670
|
+
eventTrigger: (value: EventTrigger) => T;
|
|
648
671
|
_: (name: string, value: any) => T;
|
|
649
672
|
}
|
|
650
673
|
const visit: <T>(value: Source, visitor: Visitor<T>) => T;
|
|
@@ -2038,6 +2061,126 @@ export interface PutOutboundRequestBatchResponse {
|
|
|
2038
2061
|
*/
|
|
2039
2062
|
failedRequests?: FailedRequest[] | undefined;
|
|
2040
2063
|
}
|
|
2064
|
+
/**
|
|
2065
|
+
* Information about a profile outbound request
|
|
2066
|
+
* @public
|
|
2067
|
+
*/
|
|
2068
|
+
export interface ProfileOutboundRequest {
|
|
2069
|
+
/**
|
|
2070
|
+
* Client provided parameter used for idempotency. Its value must be unique for each request.
|
|
2071
|
+
* @public
|
|
2072
|
+
*/
|
|
2073
|
+
clientToken: string | undefined;
|
|
2074
|
+
/**
|
|
2075
|
+
* Identifier of the customer profile
|
|
2076
|
+
* @public
|
|
2077
|
+
*/
|
|
2078
|
+
profileId: string | undefined;
|
|
2079
|
+
/**
|
|
2080
|
+
* Timestamp with no UTC offset or timezone
|
|
2081
|
+
* @public
|
|
2082
|
+
*/
|
|
2083
|
+
expirationTime?: Date | undefined;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* The request for PutProfileOutboundRequestBatch API
|
|
2087
|
+
* @public
|
|
2088
|
+
*/
|
|
2089
|
+
export interface PutProfileOutboundRequestBatchRequest {
|
|
2090
|
+
/**
|
|
2091
|
+
* Identifier representing a Campaign
|
|
2092
|
+
* @public
|
|
2093
|
+
*/
|
|
2094
|
+
id: string | undefined;
|
|
2095
|
+
/**
|
|
2096
|
+
* List of profile outbound requests
|
|
2097
|
+
* @public
|
|
2098
|
+
*/
|
|
2099
|
+
profileOutboundRequests: ProfileOutboundRequest[] | undefined;
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* @public
|
|
2103
|
+
* @enum
|
|
2104
|
+
*/
|
|
2105
|
+
export declare const ProfileOutboundRequestFailureCode: {
|
|
2106
|
+
/**
|
|
2107
|
+
* The specified resource conflicts with another resource
|
|
2108
|
+
*/
|
|
2109
|
+
readonly CONFLICT: "Conflict";
|
|
2110
|
+
/**
|
|
2111
|
+
* The request failed to satisfy the constraints specified by the service
|
|
2112
|
+
*/
|
|
2113
|
+
readonly INVALID_INPUT: "InvalidInput";
|
|
2114
|
+
/**
|
|
2115
|
+
* Request throttled due to large number of requests
|
|
2116
|
+
*/
|
|
2117
|
+
readonly REQUEST_THROTTLED: "RequestThrottled";
|
|
2118
|
+
/**
|
|
2119
|
+
* The specified resource was not found
|
|
2120
|
+
*/
|
|
2121
|
+
readonly RESOURCE_NOT_FOUND: "ResourceNotFound";
|
|
2122
|
+
/**
|
|
2123
|
+
* Unexpected error during processing of request
|
|
2124
|
+
*/
|
|
2125
|
+
readonly UNKNOWN_ERROR: "UnknownError";
|
|
2126
|
+
};
|
|
2127
|
+
/**
|
|
2128
|
+
* @public
|
|
2129
|
+
*/
|
|
2130
|
+
export type ProfileOutboundRequestFailureCode = (typeof ProfileOutboundRequestFailureCode)[keyof typeof ProfileOutboundRequestFailureCode];
|
|
2131
|
+
/**
|
|
2132
|
+
* Failure details for a profile outbound request
|
|
2133
|
+
* @public
|
|
2134
|
+
*/
|
|
2135
|
+
export interface FailedProfileOutboundRequest {
|
|
2136
|
+
/**
|
|
2137
|
+
* Client provided parameter used for idempotency. Its value must be unique for each request.
|
|
2138
|
+
* @public
|
|
2139
|
+
*/
|
|
2140
|
+
clientToken?: string | undefined;
|
|
2141
|
+
/**
|
|
2142
|
+
* Identifier of the profile outbound request
|
|
2143
|
+
* @public
|
|
2144
|
+
*/
|
|
2145
|
+
id?: string | undefined;
|
|
2146
|
+
/**
|
|
2147
|
+
* Predefined code indicating the error that caused the failure
|
|
2148
|
+
* @public
|
|
2149
|
+
*/
|
|
2150
|
+
failureCode?: ProfileOutboundRequestFailureCode | undefined;
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Success details for a profile outbound request
|
|
2154
|
+
* @public
|
|
2155
|
+
*/
|
|
2156
|
+
export interface SuccessfulProfileOutboundRequest {
|
|
2157
|
+
/**
|
|
2158
|
+
* Client provided parameter used for idempotency. Its value must be unique for each request.
|
|
2159
|
+
* @public
|
|
2160
|
+
*/
|
|
2161
|
+
clientToken?: string | undefined;
|
|
2162
|
+
/**
|
|
2163
|
+
* Identifier of the profile outbound request
|
|
2164
|
+
* @public
|
|
2165
|
+
*/
|
|
2166
|
+
id?: string | undefined;
|
|
2167
|
+
}
|
|
2168
|
+
/**
|
|
2169
|
+
* The response for PutProfileOutboundRequestBatch API
|
|
2170
|
+
* @public
|
|
2171
|
+
*/
|
|
2172
|
+
export interface PutProfileOutboundRequestBatchResponse {
|
|
2173
|
+
/**
|
|
2174
|
+
* List of successful profile outbound requests
|
|
2175
|
+
* @public
|
|
2176
|
+
*/
|
|
2177
|
+
successfulRequests?: SuccessfulProfileOutboundRequest[] | undefined;
|
|
2178
|
+
/**
|
|
2179
|
+
* List of failed profile outbound requests
|
|
2180
|
+
* @public
|
|
2181
|
+
*/
|
|
2182
|
+
failedRequests?: FailedProfileOutboundRequest[] | undefined;
|
|
2183
|
+
}
|
|
2041
2184
|
/**
|
|
2042
2185
|
* The request for ResumeCampaign API.
|
|
2043
2186
|
* @public
|
|
@@ -19,6 +19,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
19
19
|
import { PauseCampaignCommandInput, PauseCampaignCommandOutput } from "../commands/PauseCampaignCommand";
|
|
20
20
|
import { PutConnectInstanceIntegrationCommandInput, PutConnectInstanceIntegrationCommandOutput } from "../commands/PutConnectInstanceIntegrationCommand";
|
|
21
21
|
import { PutOutboundRequestBatchCommandInput, PutOutboundRequestBatchCommandOutput } from "../commands/PutOutboundRequestBatchCommand";
|
|
22
|
+
import { PutProfileOutboundRequestBatchCommandInput, PutProfileOutboundRequestBatchCommandOutput } from "../commands/PutProfileOutboundRequestBatchCommand";
|
|
22
23
|
import { ResumeCampaignCommandInput, ResumeCampaignCommandOutput } from "../commands/ResumeCampaignCommand";
|
|
23
24
|
import { StartCampaignCommandInput, StartCampaignCommandOutput } from "../commands/StartCampaignCommand";
|
|
24
25
|
import { StartInstanceOnboardingJobCommandInput, StartInstanceOnboardingJobCommandOutput } from "../commands/StartInstanceOnboardingJobCommand";
|
|
@@ -108,6 +109,10 @@ export declare const se_PutConnectInstanceIntegrationCommand: (input: PutConnect
|
|
|
108
109
|
* serializeAws_restJson1PutOutboundRequestBatchCommand
|
|
109
110
|
*/
|
|
110
111
|
export declare const se_PutOutboundRequestBatchCommand: (input: PutOutboundRequestBatchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
112
|
+
/**
|
|
113
|
+
* serializeAws_restJson1PutProfileOutboundRequestBatchCommand
|
|
114
|
+
*/
|
|
115
|
+
export declare const se_PutProfileOutboundRequestBatchCommand: (input: PutProfileOutboundRequestBatchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
111
116
|
/**
|
|
112
117
|
* serializeAws_restJson1ResumeCampaignCommand
|
|
113
118
|
*/
|
|
@@ -236,6 +241,10 @@ export declare const de_PutConnectInstanceIntegrationCommand: (output: __HttpRes
|
|
|
236
241
|
* deserializeAws_restJson1PutOutboundRequestBatchCommand
|
|
237
242
|
*/
|
|
238
243
|
export declare const de_PutOutboundRequestBatchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutOutboundRequestBatchCommandOutput>;
|
|
244
|
+
/**
|
|
245
|
+
* deserializeAws_restJson1PutProfileOutboundRequestBatchCommand
|
|
246
|
+
*/
|
|
247
|
+
export declare const de_PutProfileOutboundRequestBatchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutProfileOutboundRequestBatchCommandOutput>;
|
|
239
248
|
/**
|
|
240
249
|
* deserializeAws_restJson1ResumeCampaignCommand
|
|
241
250
|
*/
|
|
@@ -75,6 +75,10 @@ import {
|
|
|
75
75
|
PutOutboundRequestBatchCommandInput,
|
|
76
76
|
PutOutboundRequestBatchCommandOutput,
|
|
77
77
|
} from "./commands/PutOutboundRequestBatchCommand";
|
|
78
|
+
import {
|
|
79
|
+
PutProfileOutboundRequestBatchCommandInput,
|
|
80
|
+
PutProfileOutboundRequestBatchCommandOutput,
|
|
81
|
+
} from "./commands/PutProfileOutboundRequestBatchCommand";
|
|
78
82
|
import {
|
|
79
83
|
ResumeCampaignCommandInput,
|
|
80
84
|
ResumeCampaignCommandOutput,
|
|
@@ -389,6 +393,19 @@ export interface ConnectCampaignsV2 {
|
|
|
389
393
|
options: __HttpHandlerOptions,
|
|
390
394
|
cb: (err: any, data?: PutOutboundRequestBatchCommandOutput) => void
|
|
391
395
|
): void;
|
|
396
|
+
putProfileOutboundRequestBatch(
|
|
397
|
+
args: PutProfileOutboundRequestBatchCommandInput,
|
|
398
|
+
options?: __HttpHandlerOptions
|
|
399
|
+
): Promise<PutProfileOutboundRequestBatchCommandOutput>;
|
|
400
|
+
putProfileOutboundRequestBatch(
|
|
401
|
+
args: PutProfileOutboundRequestBatchCommandInput,
|
|
402
|
+
cb: (err: any, data?: PutProfileOutboundRequestBatchCommandOutput) => void
|
|
403
|
+
): void;
|
|
404
|
+
putProfileOutboundRequestBatch(
|
|
405
|
+
args: PutProfileOutboundRequestBatchCommandInput,
|
|
406
|
+
options: __HttpHandlerOptions,
|
|
407
|
+
cb: (err: any, data?: PutProfileOutboundRequestBatchCommandOutput) => void
|
|
408
|
+
): void;
|
|
392
409
|
resumeCampaign(
|
|
393
410
|
args: ResumeCampaignCommandInput,
|
|
394
411
|
options?: __HttpHandlerOptions
|
|
@@ -121,6 +121,10 @@ import {
|
|
|
121
121
|
PutOutboundRequestBatchCommandInput,
|
|
122
122
|
PutOutboundRequestBatchCommandOutput,
|
|
123
123
|
} from "./commands/PutOutboundRequestBatchCommand";
|
|
124
|
+
import {
|
|
125
|
+
PutProfileOutboundRequestBatchCommandInput,
|
|
126
|
+
PutProfileOutboundRequestBatchCommandOutput,
|
|
127
|
+
} from "./commands/PutProfileOutboundRequestBatchCommand";
|
|
124
128
|
import {
|
|
125
129
|
ResumeCampaignCommandInput,
|
|
126
130
|
ResumeCampaignCommandOutput,
|
|
@@ -200,6 +204,7 @@ export type ServiceInputTypes =
|
|
|
200
204
|
| PauseCampaignCommandInput
|
|
201
205
|
| PutConnectInstanceIntegrationCommandInput
|
|
202
206
|
| PutOutboundRequestBatchCommandInput
|
|
207
|
+
| PutProfileOutboundRequestBatchCommandInput
|
|
203
208
|
| ResumeCampaignCommandInput
|
|
204
209
|
| StartCampaignCommandInput
|
|
205
210
|
| StartInstanceOnboardingJobCommandInput
|
|
@@ -233,6 +238,7 @@ export type ServiceOutputTypes =
|
|
|
233
238
|
| PauseCampaignCommandOutput
|
|
234
239
|
| PutConnectInstanceIntegrationCommandOutput
|
|
235
240
|
| PutOutboundRequestBatchCommandOutput
|
|
241
|
+
| PutProfileOutboundRequestBatchCommandOutput
|
|
236
242
|
| ResumeCampaignCommandOutput
|
|
237
243
|
| StartCampaignCommandOutput
|
|
238
244
|
| StartInstanceOnboardingJobCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
ConnectCampaignsV2ClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../ConnectCampaignsV2Client";
|
|
8
|
+
import {
|
|
9
|
+
PutProfileOutboundRequestBatchRequest,
|
|
10
|
+
PutProfileOutboundRequestBatchResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface PutProfileOutboundRequestBatchCommandInput
|
|
15
|
+
extends PutProfileOutboundRequestBatchRequest {}
|
|
16
|
+
export interface PutProfileOutboundRequestBatchCommandOutput
|
|
17
|
+
extends PutProfileOutboundRequestBatchResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const PutProfileOutboundRequestBatchCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: PutProfileOutboundRequestBatchCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
PutProfileOutboundRequestBatchCommandInput,
|
|
24
|
+
PutProfileOutboundRequestBatchCommandOutput,
|
|
25
|
+
ConnectCampaignsV2ClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: PutProfileOutboundRequestBatchCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
PutProfileOutboundRequestBatchCommandInput,
|
|
33
|
+
PutProfileOutboundRequestBatchCommandOutput,
|
|
34
|
+
ConnectCampaignsV2ClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class PutProfileOutboundRequestBatchCommand extends PutProfileOutboundRequestBatchCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: PutProfileOutboundRequestBatchRequest;
|
|
44
|
+
output: PutProfileOutboundRequestBatchResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: PutProfileOutboundRequestBatchCommandInput;
|
|
48
|
+
output: PutProfileOutboundRequestBatchCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
17
17
|
export * from "./PauseCampaignCommand";
|
|
18
18
|
export * from "./PutConnectInstanceIntegrationCommand";
|
|
19
19
|
export * from "./PutOutboundRequestBatchCommand";
|
|
20
|
+
export * from "./PutProfileOutboundRequestBatchCommand";
|
|
20
21
|
export * from "./ResumeCampaignCommand";
|
|
21
22
|
export * from "./StartCampaignCommand";
|
|
22
23
|
export * from "./StartInstanceOnboardingJobCommand";
|
|
@@ -243,20 +243,32 @@ export interface Schedule {
|
|
|
243
243
|
endTime: Date | undefined;
|
|
244
244
|
refreshFrequency?: string | undefined;
|
|
245
245
|
}
|
|
246
|
+
export interface EventTrigger {
|
|
247
|
+
customerProfilesDomainArn?: string | undefined;
|
|
248
|
+
}
|
|
246
249
|
export type Source =
|
|
247
250
|
| Source.CustomerProfilesSegmentArnMember
|
|
251
|
+
| Source.EventTriggerMember
|
|
248
252
|
| Source.$UnknownMember;
|
|
249
253
|
export declare namespace Source {
|
|
250
254
|
interface CustomerProfilesSegmentArnMember {
|
|
251
255
|
customerProfilesSegmentArn: string;
|
|
256
|
+
eventTrigger?: never;
|
|
257
|
+
$unknown?: never;
|
|
258
|
+
}
|
|
259
|
+
interface EventTriggerMember {
|
|
260
|
+
customerProfilesSegmentArn?: never;
|
|
261
|
+
eventTrigger: EventTrigger;
|
|
252
262
|
$unknown?: never;
|
|
253
263
|
}
|
|
254
264
|
interface $UnknownMember {
|
|
255
265
|
customerProfilesSegmentArn?: never;
|
|
266
|
+
eventTrigger?: never;
|
|
256
267
|
$unknown: [string, any];
|
|
257
268
|
}
|
|
258
269
|
interface Visitor<T> {
|
|
259
270
|
customerProfilesSegmentArn: (value: string) => T;
|
|
271
|
+
eventTrigger: (value: EventTrigger) => T;
|
|
260
272
|
_: (name: string, value: any) => T;
|
|
261
273
|
}
|
|
262
274
|
const visit: <T>(value: Source, visitor: Visitor<T>) => T;
|
|
@@ -736,6 +748,37 @@ export interface PutOutboundRequestBatchResponse {
|
|
|
736
748
|
successfulRequests?: SuccessfulRequest[] | undefined;
|
|
737
749
|
failedRequests?: FailedRequest[] | undefined;
|
|
738
750
|
}
|
|
751
|
+
export interface ProfileOutboundRequest {
|
|
752
|
+
clientToken: string | undefined;
|
|
753
|
+
profileId: string | undefined;
|
|
754
|
+
expirationTime?: Date | undefined;
|
|
755
|
+
}
|
|
756
|
+
export interface PutProfileOutboundRequestBatchRequest {
|
|
757
|
+
id: string | undefined;
|
|
758
|
+
profileOutboundRequests: ProfileOutboundRequest[] | undefined;
|
|
759
|
+
}
|
|
760
|
+
export declare const ProfileOutboundRequestFailureCode: {
|
|
761
|
+
readonly CONFLICT: "Conflict";
|
|
762
|
+
readonly INVALID_INPUT: "InvalidInput";
|
|
763
|
+
readonly REQUEST_THROTTLED: "RequestThrottled";
|
|
764
|
+
readonly RESOURCE_NOT_FOUND: "ResourceNotFound";
|
|
765
|
+
readonly UNKNOWN_ERROR: "UnknownError";
|
|
766
|
+
};
|
|
767
|
+
export type ProfileOutboundRequestFailureCode =
|
|
768
|
+
(typeof ProfileOutboundRequestFailureCode)[keyof typeof ProfileOutboundRequestFailureCode];
|
|
769
|
+
export interface FailedProfileOutboundRequest {
|
|
770
|
+
clientToken?: string | undefined;
|
|
771
|
+
id?: string | undefined;
|
|
772
|
+
failureCode?: ProfileOutboundRequestFailureCode | undefined;
|
|
773
|
+
}
|
|
774
|
+
export interface SuccessfulProfileOutboundRequest {
|
|
775
|
+
clientToken?: string | undefined;
|
|
776
|
+
id?: string | undefined;
|
|
777
|
+
}
|
|
778
|
+
export interface PutProfileOutboundRequestBatchResponse {
|
|
779
|
+
successfulRequests?: SuccessfulProfileOutboundRequest[] | undefined;
|
|
780
|
+
failedRequests?: FailedProfileOutboundRequest[] | undefined;
|
|
781
|
+
}
|
|
739
782
|
export interface ResumeCampaignRequest {
|
|
740
783
|
id: string | undefined;
|
|
741
784
|
}
|
|
@@ -79,6 +79,10 @@ import {
|
|
|
79
79
|
PutOutboundRequestBatchCommandInput,
|
|
80
80
|
PutOutboundRequestBatchCommandOutput,
|
|
81
81
|
} from "../commands/PutOutboundRequestBatchCommand";
|
|
82
|
+
import {
|
|
83
|
+
PutProfileOutboundRequestBatchCommandInput,
|
|
84
|
+
PutProfileOutboundRequestBatchCommandOutput,
|
|
85
|
+
} from "../commands/PutProfileOutboundRequestBatchCommand";
|
|
82
86
|
import {
|
|
83
87
|
ResumeCampaignCommandInput,
|
|
84
88
|
ResumeCampaignCommandOutput,
|
|
@@ -207,6 +211,10 @@ export declare const se_PutOutboundRequestBatchCommand: (
|
|
|
207
211
|
input: PutOutboundRequestBatchCommandInput,
|
|
208
212
|
context: __SerdeContext
|
|
209
213
|
) => Promise<__HttpRequest>;
|
|
214
|
+
export declare const se_PutProfileOutboundRequestBatchCommand: (
|
|
215
|
+
input: PutProfileOutboundRequestBatchCommandInput,
|
|
216
|
+
context: __SerdeContext
|
|
217
|
+
) => Promise<__HttpRequest>;
|
|
210
218
|
export declare const se_ResumeCampaignCommand: (
|
|
211
219
|
input: ResumeCampaignCommandInput,
|
|
212
220
|
context: __SerdeContext
|
|
@@ -335,6 +343,10 @@ export declare const de_PutOutboundRequestBatchCommand: (
|
|
|
335
343
|
output: __HttpResponse,
|
|
336
344
|
context: __SerdeContext
|
|
337
345
|
) => Promise<PutOutboundRequestBatchCommandOutput>;
|
|
346
|
+
export declare const de_PutProfileOutboundRequestBatchCommand: (
|
|
347
|
+
output: __HttpResponse,
|
|
348
|
+
context: __SerdeContext
|
|
349
|
+
) => Promise<PutProfileOutboundRequestBatchCommandOutput>;
|
|
338
350
|
export declare const de_ResumeCampaignCommand: (
|
|
339
351
|
output: __HttpResponse,
|
|
340
352
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcampaignsv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcampaignsv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.703.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.699.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.699.0",
|
|
25
25
|
"@aws-sdk/core": "3.696.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.699.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|