Skip to content

Commit 743ec85

Browse files
author
awstools
committed
feat(client-connectcampaignsv2): This release added support for new WhatsApp channel and Journey type outbound campaign
1 parent ea7080c commit 743ec85

13 files changed

+617
-29
lines changed

clients/client-connectcampaignsv2/src/commands/CreateCampaignCommand.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,18 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
9696
* wisdomTemplateArn: "STRING_VALUE", // required
9797
* },
9898
* },
99+
* whatsApp: { // WhatsAppChannelSubtypeConfig
100+
* capacity: Number("double"),
101+
* outboundMode: { // WhatsAppOutboundMode Union: only one key present
102+
* agentless: {},
103+
* },
104+
* defaultOutboundConfig: { // WhatsAppOutboundConfig
105+
* connectSourcePhoneNumberArn: "STRING_VALUE", // required
106+
* wisdomTemplateArn: "STRING_VALUE", // required
107+
* },
108+
* },
99109
* },
110+
* type: "STRING_VALUE",
100111
* source: { // Source Union: only one key present
101112
* customerProfilesSegmentArn: "STRING_VALUE",
102113
* eventTrigger: { // EventTrigger
@@ -179,6 +190,27 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
179190
* ],
180191
* },
181192
* },
193+
* whatsApp: {
194+
* openHours: {// Union: only one key present
195+
* dailyHours: {
196+
* "<keys>": [
197+
* {
198+
* startTime: "STRING_VALUE", // required
199+
* endTime: "STRING_VALUE", // required
200+
* },
201+
* ],
202+
* },
203+
* },
204+
* restrictedPeriods: {// Union: only one key present
205+
* restrictedPeriodList: [
206+
* {
207+
* name: "STRING_VALUE",
208+
* startDate: "STRING_VALUE", // required
209+
* endDate: "STRING_VALUE", // required
210+
* },
211+
* ],
212+
* },
213+
* },
182214
* },
183215
* communicationLimitsOverride: { // CommunicationLimitsConfig
184216
* allChannelSubtypes: { // CommunicationLimits Union: only one key present

clients/client-connectcampaignsv2/src/commands/DeleteConnectInstanceIntegrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export interface DeleteConnectInstanceIntegrationCommandOutput extends __Metadat
4949
* qConnect: { // QConnectIntegrationIdentifier
5050
* knowledgeBaseArn: "STRING_VALUE", // required
5151
* },
52+
* lambda: { // LambdaIntegrationIdentifier
53+
* functionArn: "STRING_VALUE", // required
54+
* },
5255
* },
5356
* };
5457
* const command = new DeleteConnectInstanceIntegrationCommand(input);

clients/client-connectcampaignsv2/src/commands/DescribeCampaignCommand.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,18 @@ export interface DescribeCampaignCommandOutput extends DescribeCampaignResponse,
104104
* // wisdomTemplateArn: "STRING_VALUE", // required
105105
* // },
106106
* // },
107+
* // whatsApp: { // WhatsAppChannelSubtypeConfig
108+
* // capacity: Number("double"),
109+
* // outboundMode: { // WhatsAppOutboundMode Union: only one key present
110+
* // agentless: {},
111+
* // },
112+
* // defaultOutboundConfig: { // WhatsAppOutboundConfig
113+
* // connectSourcePhoneNumberArn: "STRING_VALUE", // required
114+
* // wisdomTemplateArn: "STRING_VALUE", // required
115+
* // },
116+
* // },
107117
* // },
118+
* // type: "STRING_VALUE",
108119
* // source: { // Source Union: only one key present
109120
* // customerProfilesSegmentArn: "STRING_VALUE",
110121
* // eventTrigger: { // EventTrigger
@@ -187,6 +198,27 @@ export interface DescribeCampaignCommandOutput extends DescribeCampaignResponse,
187198
* // ],
188199
* // },
189200
* // },
201+
* // whatsApp: {
202+
* // openHours: {// Union: only one key present
203+
* // dailyHours: {
204+
* // "<keys>": [
205+
* // {
206+
* // startTime: "STRING_VALUE", // required
207+
* // endTime: "STRING_VALUE", // required
208+
* // },
209+
* // ],
210+
* // },
211+
* // },
212+
* // restrictedPeriods: {// Union: only one key present
213+
* // restrictedPeriodList: [
214+
* // {
215+
* // name: "STRING_VALUE",
216+
* // startDate: "STRING_VALUE", // required
217+
* // endDate: "STRING_VALUE", // required
218+
* // },
219+
* // ],
220+
* // },
221+
* // },
190222
* // },
191223
* // communicationLimitsOverride: { // CommunicationLimitsConfig
192224
* // allChannelSubtypes: { // CommunicationLimits Union: only one key present

clients/client-connectcampaignsv2/src/commands/ListCampaignsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface ListCampaignsCommandOutput extends ListCampaignsResponse, __Met
6363
* // channelSubtypes: [ // ChannelSubtypeList // required
6464
* // "STRING_VALUE",
6565
* // ],
66+
* // type: "STRING_VALUE",
6667
* // schedule: { // Schedule
6768
* // startTime: new Date("TIMESTAMP"), // required
6869
* // endTime: new Date("TIMESTAMP"), // required

clients/client-connectcampaignsv2/src/commands/ListConnectInstanceIntegrationsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export interface ListConnectInstanceIntegrationsCommandOutput
6262
* // qConnect: { // QConnectIntegrationSummary
6363
* // knowledgeBaseArn: "STRING_VALUE", // required
6464
* // },
65+
* // lambda: { // LambdaIntegrationSummary
66+
* // functionArn: "STRING_VALUE", // required
67+
* // },
6568
* // },
6669
* // ],
6770
* // };

clients/client-connectcampaignsv2/src/commands/PutConnectInstanceIntegrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export interface PutConnectInstanceIntegrationCommandOutput extends __MetadataBe
5252
* qConnect: { // QConnectIntegrationConfig
5353
* knowledgeBaseArn: "STRING_VALUE", // required
5454
* },
55+
* lambda: { // LambdaIntegrationConfig
56+
* functionArn: "STRING_VALUE", // required
57+
* },
5558
* },
5659
* };
5760
* const command = new PutConnectInstanceIntegrationCommand(input);

clients/client-connectcampaignsv2/src/commands/PutOutboundRequestBatchCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ export interface PutOutboundRequestBatchCommandOutput extends PutOutboundRequest
7575
* "<keys>": "STRING_VALUE",
7676
* },
7777
* },
78+
* whatsApp: { // WhatsAppChannelSubtypeParameters
79+
* destinationPhoneNumber: "STRING_VALUE", // required
80+
* connectSourcePhoneNumberArn: "STRING_VALUE",
81+
* templateArn: "STRING_VALUE",
82+
* templateParameters: { // required
83+
* "<keys>": "STRING_VALUE",
84+
* },
85+
* },
7886
* },
7987
* },
8088
* ],

clients/client-connectcampaignsv2/src/commands/UpdateCampaignChannelSubtypeConfigCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ export interface UpdateCampaignChannelSubtypeConfigCommandOutput extends __Metad
9595
* wisdomTemplateArn: "STRING_VALUE", // required
9696
* },
9797
* },
98+
* whatsApp: { // WhatsAppChannelSubtypeConfig
99+
* capacity: Number("double"),
100+
* outboundMode: { // WhatsAppOutboundMode Union: only one key present
101+
* agentless: {},
102+
* },
103+
* defaultOutboundConfig: { // WhatsAppOutboundConfig
104+
* connectSourcePhoneNumberArn: "STRING_VALUE", // required
105+
* wisdomTemplateArn: "STRING_VALUE", // required
106+
* },
107+
* },
98108
* },
99109
* };
100110
* const command = new UpdateCampaignChannelSubtypeConfigCommand(input);

clients/client-connectcampaignsv2/src/commands/UpdateCampaignCommunicationTimeCommand.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,27 @@ export interface UpdateCampaignCommunicationTimeCommandOutput extends __Metadata
112112
* ],
113113
* },
114114
* },
115+
* whatsApp: {
116+
* openHours: {// Union: only one key present
117+
* dailyHours: {
118+
* "<keys>": [
119+
* {
120+
* startTime: "STRING_VALUE", // required
121+
* endTime: "STRING_VALUE", // required
122+
* },
123+
* ],
124+
* },
125+
* },
126+
* restrictedPeriods: {// Union: only one key present
127+
* restrictedPeriodList: [
128+
* {
129+
* name: "STRING_VALUE",
130+
* startDate: "STRING_VALUE", // required
131+
* endDate: "STRING_VALUE", // required
132+
* },
133+
* ],
134+
* },
135+
* },
115136
* },
116137
* };
117138
* const command = new UpdateCampaignCommunicationTimeCommand(input);

clients/client-connectcampaignsv2/src/models/enums.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,19 @@ export const LocalTimeZoneDetectionType = {
6767
*/
6868
export type LocalTimeZoneDetectionType = (typeof LocalTimeZoneDetectionType)[keyof typeof LocalTimeZoneDetectionType];
6969

70+
/**
71+
* @public
72+
* @enum
73+
*/
74+
export const ExternalCampaignType = {
75+
JOURNEY: "JOURNEY",
76+
MANAGED: "MANAGED",
77+
} as const;
78+
/**
79+
* @public
80+
*/
81+
export type ExternalCampaignType = (typeof ExternalCampaignType)[keyof typeof ExternalCampaignType];
82+
7083
/**
7184
* @public
7285
* @enum
@@ -75,6 +88,7 @@ export const ChannelSubtype = {
7588
EMAIL: "EMAIL",
7689
SMS: "SMS",
7790
TELEPHONY: "TELEPHONY",
91+
WHATSAPP: "WHATSAPP",
7892
} as const;
7993
/**
8094
* @public
@@ -137,6 +151,7 @@ export const CommunicationTimeConfigType = {
137151
EMAIL: "EMAIL",
138152
SMS: "SMS",
139153
TELEPHONY: "TELEPHONY",
154+
WHATSAPP: "WHATSAPP",
140155
} as const;
141156
/**
142157
* @public

0 commit comments

Comments
 (0)