@aws-sdk/client-connectcampaignsv2 3.940.0 → 3.943.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/dist-cjs/index.js +66 -19
- package/dist-es/models/enums.js +6 -0
- package/dist-es/schemas/schemas_0.js +59 -19
- package/dist-types/commands/CreateCampaignCommand.d.ts +32 -0
- package/dist-types/commands/DeleteConnectInstanceIntegrationCommand.d.ts +3 -0
- package/dist-types/commands/DescribeCampaignCommand.d.ts +32 -0
- package/dist-types/commands/ListCampaignsCommand.d.ts +1 -0
- package/dist-types/commands/ListConnectInstanceIntegrationsCommand.d.ts +3 -0
- package/dist-types/commands/PutConnectInstanceIntegrationCommand.d.ts +3 -0
- package/dist-types/commands/PutOutboundRequestBatchCommand.d.ts +8 -0
- package/dist-types/commands/UpdateCampaignChannelSubtypeConfigCommand.d.ts +10 -0
- package/dist-types/commands/UpdateCampaignCommunicationTimeCommand.d.ts +21 -0
- package/dist-types/models/enums.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +219 -7
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/models/enums.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +95 -2
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +5 -5
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
DayOfWeek,
|
|
10
10
|
EncryptionType,
|
|
11
11
|
EventType,
|
|
12
|
+
ExternalCampaignType,
|
|
12
13
|
FailureCode,
|
|
13
14
|
GetCampaignStateBatchFailureCode,
|
|
14
15
|
InstanceIdFilterOperator,
|
|
@@ -152,10 +153,37 @@ export interface TelephonyChannelSubtypeConfig {
|
|
|
152
153
|
outboundMode: TelephonyOutboundMode | undefined;
|
|
153
154
|
defaultOutboundConfig: TelephonyOutboundConfig | undefined;
|
|
154
155
|
}
|
|
156
|
+
export interface WhatsAppOutboundConfig {
|
|
157
|
+
connectSourcePhoneNumberArn: string | undefined;
|
|
158
|
+
wisdomTemplateArn: string | undefined;
|
|
159
|
+
}
|
|
160
|
+
export type WhatsAppOutboundMode =
|
|
161
|
+
| WhatsAppOutboundMode.AgentlessMember
|
|
162
|
+
| WhatsAppOutboundMode.$UnknownMember;
|
|
163
|
+
export declare namespace WhatsAppOutboundMode {
|
|
164
|
+
interface AgentlessMember {
|
|
165
|
+
agentless: AgentlessConfig;
|
|
166
|
+
$unknown?: never;
|
|
167
|
+
}
|
|
168
|
+
interface $UnknownMember {
|
|
169
|
+
agentless?: never;
|
|
170
|
+
$unknown: [string, any];
|
|
171
|
+
}
|
|
172
|
+
interface Visitor<T> {
|
|
173
|
+
agentless: (value: AgentlessConfig) => T;
|
|
174
|
+
_: (name: string, value: any) => T;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export interface WhatsAppChannelSubtypeConfig {
|
|
178
|
+
capacity?: number | undefined;
|
|
179
|
+
outboundMode: WhatsAppOutboundMode | undefined;
|
|
180
|
+
defaultOutboundConfig: WhatsAppOutboundConfig | undefined;
|
|
181
|
+
}
|
|
155
182
|
export interface ChannelSubtypeConfig {
|
|
156
183
|
telephony?: TelephonyChannelSubtypeConfig | undefined;
|
|
157
184
|
sms?: SmsChannelSubtypeConfig | undefined;
|
|
158
185
|
email?: EmailChannelSubtypeConfig | undefined;
|
|
186
|
+
whatsApp?: WhatsAppChannelSubtypeConfig | undefined;
|
|
159
187
|
}
|
|
160
188
|
export interface CommunicationLimit {
|
|
161
189
|
maxCountPerRecipient: number | undefined;
|
|
@@ -237,6 +265,7 @@ export interface CommunicationTimeConfig {
|
|
|
237
265
|
telephony?: TimeWindow | undefined;
|
|
238
266
|
sms?: TimeWindow | undefined;
|
|
239
267
|
email?: TimeWindow | undefined;
|
|
268
|
+
whatsApp?: TimeWindow | undefined;
|
|
240
269
|
}
|
|
241
270
|
export interface Schedule {
|
|
242
271
|
startTime: Date | undefined;
|
|
@@ -275,7 +304,8 @@ export declare namespace Source {
|
|
|
275
304
|
export interface CreateCampaignRequest {
|
|
276
305
|
name: string | undefined;
|
|
277
306
|
connectInstanceId: string | undefined;
|
|
278
|
-
channelSubtypeConfig
|
|
307
|
+
channelSubtypeConfig?: ChannelSubtypeConfig | undefined;
|
|
308
|
+
type?: ExternalCampaignType | undefined;
|
|
279
309
|
source?: Source | undefined;
|
|
280
310
|
connectCampaignFlowArn?: string | undefined;
|
|
281
311
|
schedule?: Schedule | undefined;
|
|
@@ -310,32 +340,46 @@ export interface DeleteConnectInstanceConfigRequest {
|
|
|
310
340
|
export interface CustomerProfilesIntegrationIdentifier {
|
|
311
341
|
domainArn: string | undefined;
|
|
312
342
|
}
|
|
343
|
+
export interface LambdaIntegrationIdentifier {
|
|
344
|
+
functionArn: string | undefined;
|
|
345
|
+
}
|
|
313
346
|
export interface QConnectIntegrationIdentifier {
|
|
314
347
|
knowledgeBaseArn: string | undefined;
|
|
315
348
|
}
|
|
316
349
|
export type IntegrationIdentifier =
|
|
317
350
|
| IntegrationIdentifier.CustomerProfilesMember
|
|
351
|
+
| IntegrationIdentifier.LambdaMember
|
|
318
352
|
| IntegrationIdentifier.QConnectMember
|
|
319
353
|
| IntegrationIdentifier.$UnknownMember;
|
|
320
354
|
export declare namespace IntegrationIdentifier {
|
|
321
355
|
interface CustomerProfilesMember {
|
|
322
356
|
customerProfiles: CustomerProfilesIntegrationIdentifier;
|
|
323
357
|
qConnect?: never;
|
|
358
|
+
lambda?: never;
|
|
324
359
|
$unknown?: never;
|
|
325
360
|
}
|
|
326
361
|
interface QConnectMember {
|
|
327
362
|
customerProfiles?: never;
|
|
328
363
|
qConnect: QConnectIntegrationIdentifier;
|
|
364
|
+
lambda?: never;
|
|
365
|
+
$unknown?: never;
|
|
366
|
+
}
|
|
367
|
+
interface LambdaMember {
|
|
368
|
+
customerProfiles?: never;
|
|
369
|
+
qConnect?: never;
|
|
370
|
+
lambda: LambdaIntegrationIdentifier;
|
|
329
371
|
$unknown?: never;
|
|
330
372
|
}
|
|
331
373
|
interface $UnknownMember {
|
|
332
374
|
customerProfiles?: never;
|
|
333
375
|
qConnect?: never;
|
|
376
|
+
lambda?: never;
|
|
334
377
|
$unknown: [string, any];
|
|
335
378
|
}
|
|
336
379
|
interface Visitor<T> {
|
|
337
380
|
customerProfiles: (value: CustomerProfilesIntegrationIdentifier) => T;
|
|
338
381
|
qConnect: (value: QConnectIntegrationIdentifier) => T;
|
|
382
|
+
lambda: (value: LambdaIntegrationIdentifier) => T;
|
|
339
383
|
_: (name: string, value: any) => T;
|
|
340
384
|
}
|
|
341
385
|
}
|
|
@@ -354,7 +398,8 @@ export interface Campaign {
|
|
|
354
398
|
arn: string | undefined;
|
|
355
399
|
name: string | undefined;
|
|
356
400
|
connectInstanceId: string | undefined;
|
|
357
|
-
channelSubtypeConfig
|
|
401
|
+
channelSubtypeConfig?: ChannelSubtypeConfig | undefined;
|
|
402
|
+
type?: ExternalCampaignType | undefined;
|
|
358
403
|
source?: Source | undefined;
|
|
359
404
|
connectCampaignFlowArn?: string | undefined;
|
|
360
405
|
schedule?: Schedule | undefined;
|
|
@@ -440,6 +485,7 @@ export interface CampaignSummary {
|
|
|
440
485
|
name: string | undefined;
|
|
441
486
|
connectInstanceId: string | undefined;
|
|
442
487
|
channelSubtypes: ChannelSubtype[] | undefined;
|
|
488
|
+
type?: ExternalCampaignType | undefined;
|
|
443
489
|
schedule?: Schedule | undefined;
|
|
444
490
|
connectCampaignFlowArn?: string | undefined;
|
|
445
491
|
}
|
|
@@ -456,32 +502,46 @@ export interface CustomerProfilesIntegrationSummary {
|
|
|
456
502
|
domainArn: string | undefined;
|
|
457
503
|
objectTypeNames: Partial<Record<EventType, string>> | undefined;
|
|
458
504
|
}
|
|
505
|
+
export interface LambdaIntegrationSummary {
|
|
506
|
+
functionArn: string | undefined;
|
|
507
|
+
}
|
|
459
508
|
export interface QConnectIntegrationSummary {
|
|
460
509
|
knowledgeBaseArn: string | undefined;
|
|
461
510
|
}
|
|
462
511
|
export type IntegrationSummary =
|
|
463
512
|
| IntegrationSummary.CustomerProfilesMember
|
|
513
|
+
| IntegrationSummary.LambdaMember
|
|
464
514
|
| IntegrationSummary.QConnectMember
|
|
465
515
|
| IntegrationSummary.$UnknownMember;
|
|
466
516
|
export declare namespace IntegrationSummary {
|
|
467
517
|
interface CustomerProfilesMember {
|
|
468
518
|
customerProfiles: CustomerProfilesIntegrationSummary;
|
|
469
519
|
qConnect?: never;
|
|
520
|
+
lambda?: never;
|
|
470
521
|
$unknown?: never;
|
|
471
522
|
}
|
|
472
523
|
interface QConnectMember {
|
|
473
524
|
customerProfiles?: never;
|
|
474
525
|
qConnect: QConnectIntegrationSummary;
|
|
526
|
+
lambda?: never;
|
|
527
|
+
$unknown?: never;
|
|
528
|
+
}
|
|
529
|
+
interface LambdaMember {
|
|
530
|
+
customerProfiles?: never;
|
|
531
|
+
qConnect?: never;
|
|
532
|
+
lambda: LambdaIntegrationSummary;
|
|
475
533
|
$unknown?: never;
|
|
476
534
|
}
|
|
477
535
|
interface $UnknownMember {
|
|
478
536
|
customerProfiles?: never;
|
|
479
537
|
qConnect?: never;
|
|
538
|
+
lambda?: never;
|
|
480
539
|
$unknown: [string, any];
|
|
481
540
|
}
|
|
482
541
|
interface Visitor<T> {
|
|
483
542
|
customerProfiles: (value: CustomerProfilesIntegrationSummary) => T;
|
|
484
543
|
qConnect: (value: QConnectIntegrationSummary) => T;
|
|
544
|
+
lambda: (value: LambdaIntegrationSummary) => T;
|
|
485
545
|
_: (name: string, value: any) => T;
|
|
486
546
|
}
|
|
487
547
|
}
|
|
@@ -502,32 +562,46 @@ export interface CustomerProfilesIntegrationConfig {
|
|
|
502
562
|
domainArn: string | undefined;
|
|
503
563
|
objectTypeNames: Partial<Record<EventType, string>> | undefined;
|
|
504
564
|
}
|
|
565
|
+
export interface LambdaIntegrationConfig {
|
|
566
|
+
functionArn: string | undefined;
|
|
567
|
+
}
|
|
505
568
|
export interface QConnectIntegrationConfig {
|
|
506
569
|
knowledgeBaseArn: string | undefined;
|
|
507
570
|
}
|
|
508
571
|
export type IntegrationConfig =
|
|
509
572
|
| IntegrationConfig.CustomerProfilesMember
|
|
573
|
+
| IntegrationConfig.LambdaMember
|
|
510
574
|
| IntegrationConfig.QConnectMember
|
|
511
575
|
| IntegrationConfig.$UnknownMember;
|
|
512
576
|
export declare namespace IntegrationConfig {
|
|
513
577
|
interface CustomerProfilesMember {
|
|
514
578
|
customerProfiles: CustomerProfilesIntegrationConfig;
|
|
515
579
|
qConnect?: never;
|
|
580
|
+
lambda?: never;
|
|
516
581
|
$unknown?: never;
|
|
517
582
|
}
|
|
518
583
|
interface QConnectMember {
|
|
519
584
|
customerProfiles?: never;
|
|
520
585
|
qConnect: QConnectIntegrationConfig;
|
|
586
|
+
lambda?: never;
|
|
587
|
+
$unknown?: never;
|
|
588
|
+
}
|
|
589
|
+
interface LambdaMember {
|
|
590
|
+
customerProfiles?: never;
|
|
591
|
+
qConnect?: never;
|
|
592
|
+
lambda: LambdaIntegrationConfig;
|
|
521
593
|
$unknown?: never;
|
|
522
594
|
}
|
|
523
595
|
interface $UnknownMember {
|
|
524
596
|
customerProfiles?: never;
|
|
525
597
|
qConnect?: never;
|
|
598
|
+
lambda?: never;
|
|
526
599
|
$unknown: [string, any];
|
|
527
600
|
}
|
|
528
601
|
interface Visitor<T> {
|
|
529
602
|
customerProfiles: (value: CustomerProfilesIntegrationConfig) => T;
|
|
530
603
|
qConnect: (value: QConnectIntegrationConfig) => T;
|
|
604
|
+
lambda: (value: LambdaIntegrationConfig) => T;
|
|
531
605
|
_: (name: string, value: any) => T;
|
|
532
606
|
}
|
|
533
607
|
}
|
|
@@ -558,40 +632,59 @@ export interface TelephonyChannelSubtypeParameters {
|
|
|
558
632
|
answerMachineDetectionConfig?: AnswerMachineDetectionConfig | undefined;
|
|
559
633
|
ringTimeout?: number | undefined;
|
|
560
634
|
}
|
|
635
|
+
export interface WhatsAppChannelSubtypeParameters {
|
|
636
|
+
destinationPhoneNumber: string | undefined;
|
|
637
|
+
connectSourcePhoneNumberArn?: string | undefined;
|
|
638
|
+
templateArn?: string | undefined;
|
|
639
|
+
templateParameters: Record<string, string> | undefined;
|
|
640
|
+
}
|
|
561
641
|
export type ChannelSubtypeParameters =
|
|
562
642
|
| ChannelSubtypeParameters.EmailMember
|
|
563
643
|
| ChannelSubtypeParameters.SmsMember
|
|
564
644
|
| ChannelSubtypeParameters.TelephonyMember
|
|
645
|
+
| ChannelSubtypeParameters.WhatsAppMember
|
|
565
646
|
| ChannelSubtypeParameters.$UnknownMember;
|
|
566
647
|
export declare namespace ChannelSubtypeParameters {
|
|
567
648
|
interface TelephonyMember {
|
|
568
649
|
telephony: TelephonyChannelSubtypeParameters;
|
|
569
650
|
sms?: never;
|
|
570
651
|
email?: never;
|
|
652
|
+
whatsApp?: never;
|
|
571
653
|
$unknown?: never;
|
|
572
654
|
}
|
|
573
655
|
interface SmsMember {
|
|
574
656
|
telephony?: never;
|
|
575
657
|
sms: SmsChannelSubtypeParameters;
|
|
576
658
|
email?: never;
|
|
659
|
+
whatsApp?: never;
|
|
577
660
|
$unknown?: never;
|
|
578
661
|
}
|
|
579
662
|
interface EmailMember {
|
|
580
663
|
telephony?: never;
|
|
581
664
|
sms?: never;
|
|
582
665
|
email: EmailChannelSubtypeParameters;
|
|
666
|
+
whatsApp?: never;
|
|
667
|
+
$unknown?: never;
|
|
668
|
+
}
|
|
669
|
+
interface WhatsAppMember {
|
|
670
|
+
telephony?: never;
|
|
671
|
+
sms?: never;
|
|
672
|
+
email?: never;
|
|
673
|
+
whatsApp: WhatsAppChannelSubtypeParameters;
|
|
583
674
|
$unknown?: never;
|
|
584
675
|
}
|
|
585
676
|
interface $UnknownMember {
|
|
586
677
|
telephony?: never;
|
|
587
678
|
sms?: never;
|
|
588
679
|
email?: never;
|
|
680
|
+
whatsApp?: never;
|
|
589
681
|
$unknown: [string, any];
|
|
590
682
|
}
|
|
591
683
|
interface Visitor<T> {
|
|
592
684
|
telephony: (value: TelephonyChannelSubtypeParameters) => T;
|
|
593
685
|
sms: (value: SmsChannelSubtypeParameters) => T;
|
|
594
686
|
email: (value: EmailChannelSubtypeParameters) => T;
|
|
687
|
+
whatsApp: (value: WhatsAppChannelSubtypeParameters) => T;
|
|
595
688
|
_: (name: string, value: any) => T;
|
|
596
689
|
}
|
|
597
690
|
}
|
|
@@ -59,6 +59,9 @@ export declare var InstanceOnboardingJobStatus: StaticStructureSchema;
|
|
|
59
59
|
export declare var InternalServerException: StaticErrorSchema;
|
|
60
60
|
export declare var InvalidCampaignStateException: StaticErrorSchema;
|
|
61
61
|
export declare var InvalidStateException: StaticErrorSchema;
|
|
62
|
+
export declare var LambdaIntegrationConfig: StaticStructureSchema;
|
|
63
|
+
export declare var LambdaIntegrationIdentifier: StaticStructureSchema;
|
|
64
|
+
export declare var LambdaIntegrationSummary: StaticStructureSchema;
|
|
62
65
|
export declare var ListCampaignsRequest: StaticStructureSchema;
|
|
63
66
|
export declare var ListCampaignsResponse: StaticStructureSchema;
|
|
64
67
|
export declare var ListConnectInstanceIntegrationsRequest: StaticStructureSchema;
|
|
@@ -113,6 +116,9 @@ export declare var UpdateCampaignNameRequest: StaticStructureSchema;
|
|
|
113
116
|
export declare var UpdateCampaignScheduleRequest: StaticStructureSchema;
|
|
114
117
|
export declare var UpdateCampaignSourceRequest: StaticStructureSchema;
|
|
115
118
|
export declare var ValidationException: StaticErrorSchema;
|
|
119
|
+
export declare var WhatsAppChannelSubtypeConfig: StaticStructureSchema;
|
|
120
|
+
export declare var WhatsAppChannelSubtypeParameters: StaticStructureSchema;
|
|
121
|
+
export declare var WhatsAppOutboundConfig: StaticStructureSchema;
|
|
116
122
|
export declare var __Unit: "unit";
|
|
117
123
|
export declare var ConnectCampaignsV2ServiceException: StaticErrorSchema;
|
|
118
124
|
export declare var AgentActions: number;
|
|
@@ -148,6 +154,7 @@ export declare var RestrictedPeriods: StaticStructureSchema;
|
|
|
148
154
|
export declare var SmsOutboundMode: StaticStructureSchema;
|
|
149
155
|
export declare var Source: StaticStructureSchema;
|
|
150
156
|
export declare var TelephonyOutboundMode: StaticStructureSchema;
|
|
157
|
+
export declare var WhatsAppOutboundMode: StaticStructureSchema;
|
|
151
158
|
export declare var CreateCampaign: StaticOperationSchema;
|
|
152
159
|
export declare var DeleteCampaign: StaticOperationSchema;
|
|
153
160
|
export declare var DeleteCampaignChannelSubtypeConfig: StaticOperationSchema;
|
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.943.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-connectcampaignsv2",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.943.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.943.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.943.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
30
|
"@aws-sdk/types": "3.936.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.943.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
35
|
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|