@wix/auto_sdk_email-marketing_campaigns 1.0.39 → 1.0.41
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/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +975 -1
- package/build/cjs/meta.js +122 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +975 -1
- package/build/es/meta.mjs +112 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +975 -1
- package/build/internal/cjs/meta.js +122 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +975 -1
- package/build/internal/es/meta.mjs +112 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -154,6 +154,66 @@ interface TotalStatistics {
|
|
|
154
154
|
/** Number of landing page and email link clicks. */
|
|
155
155
|
clicked?: number;
|
|
156
156
|
}
|
|
157
|
+
interface RejectionData {
|
|
158
|
+
rejectionReasons?: RejectionReasonEnumWithLiterals[];
|
|
159
|
+
}
|
|
160
|
+
declare enum RejectionReasonEnum {
|
|
161
|
+
UNKNOWN = "UNKNOWN",
|
|
162
|
+
LOW_ENGAGEMENT = "LOW_ENGAGEMENT",
|
|
163
|
+
SENDER_DETAILS = "SENDER_DETAILS",
|
|
164
|
+
SPAM_TRAPS = "SPAM_TRAPS",
|
|
165
|
+
OTHER = "OTHER",
|
|
166
|
+
ADULT_SEXUAL_CONTENT = "ADULT_SEXUAL_CONTENT",
|
|
167
|
+
AFFILIATE_MARKETING = "AFFILIATE_MARKETING",
|
|
168
|
+
BETTING_OR_GAMBLING = "BETTING_OR_GAMBLING",
|
|
169
|
+
CREDIT_REPAIR_OR_DEBT_RELIEF = "CREDIT_REPAIR_OR_DEBT_RELIEF",
|
|
170
|
+
GET_RICH_QUICK_SCHEME = "GET_RICH_QUICK_SCHEME",
|
|
171
|
+
ILLEGAL_SUBSTANCES_OR_WEAPONS = "ILLEGAL_SUBSTANCES_OR_WEAPONS",
|
|
172
|
+
MISLEADING_SUBJECT_LINE = "MISLEADING_SUBJECT_LINE",
|
|
173
|
+
TRADING_OR_CRYPTOCURRENCIES = "TRADING_OR_CRYPTOCURRENCIES",
|
|
174
|
+
UNSOLICITED_CONTENT = "UNSOLICITED_CONTENT",
|
|
175
|
+
MAX_AUDIENCE_SIZE_EXCEEDED = "MAX_AUDIENCE_SIZE_EXCEEDED"
|
|
176
|
+
}
|
|
177
|
+
/** @enumType */
|
|
178
|
+
type RejectionReasonEnumWithLiterals = RejectionReasonEnum | 'UNKNOWN' | 'LOW_ENGAGEMENT' | 'SENDER_DETAILS' | 'SPAM_TRAPS' | 'OTHER' | 'ADULT_SEXUAL_CONTENT' | 'AFFILIATE_MARKETING' | 'BETTING_OR_GAMBLING' | 'CREDIT_REPAIR_OR_DEBT_RELIEF' | 'GET_RICH_QUICK_SCHEME' | 'ILLEGAL_SUBSTANCES_OR_WEAPONS' | 'MISLEADING_SUBJECT_LINE' | 'TRADING_OR_CRYPTOCURRENCIES' | 'UNSOLICITED_CONTENT' | 'MAX_AUDIENCE_SIZE_EXCEEDED';
|
|
179
|
+
declare enum CampaignSendingStateEnum {
|
|
180
|
+
/** Campaign not yet published. */
|
|
181
|
+
DRAFT = "DRAFT",
|
|
182
|
+
/** Campaign is being reviewed. */
|
|
183
|
+
REVIEW = "REVIEW",
|
|
184
|
+
/** Campaign was rejected. */
|
|
185
|
+
REJECTED = "REJECTED",
|
|
186
|
+
/** Campaign is scheduled. */
|
|
187
|
+
SCHEDULED = "SCHEDULED",
|
|
188
|
+
/** Scheduled campaign was paused. */
|
|
189
|
+
PAUSED = "PAUSED",
|
|
190
|
+
/** Campaign is published. */
|
|
191
|
+
PUBLISHED = "PUBLISHED",
|
|
192
|
+
/** Campaign is being send. */
|
|
193
|
+
SENDING = "SENDING",
|
|
194
|
+
/**
|
|
195
|
+
* Campaign was partially sent.
|
|
196
|
+
* Happens when too many recipients bounce.
|
|
197
|
+
*/
|
|
198
|
+
PARTIALLY_SENT = "PARTIALLY_SENT",
|
|
199
|
+
/** Campaign was sent. */
|
|
200
|
+
SENT = "SENT"
|
|
201
|
+
}
|
|
202
|
+
/** @enumType */
|
|
203
|
+
type CampaignSendingStateEnumWithLiterals = CampaignSendingStateEnum | 'DRAFT' | 'REVIEW' | 'REJECTED' | 'SCHEDULED' | 'PAUSED' | 'PUBLISHED' | 'SENDING' | 'PARTIALLY_SENT' | 'SENT';
|
|
204
|
+
declare enum CampaignTypeEnum {
|
|
205
|
+
UNKNOWN = "UNKNOWN",
|
|
206
|
+
/** Email marketing campaign. */
|
|
207
|
+
EMAIL_MARKETING = "EMAIL_MARKETING",
|
|
208
|
+
/** Mobile place invitation email. */
|
|
209
|
+
INVITATION = "INVITATION",
|
|
210
|
+
/** Automation campaign. */
|
|
211
|
+
AUTOMATION = "AUTOMATION",
|
|
212
|
+
/** Triggered email. */
|
|
213
|
+
TRIGGERED = "TRIGGERED"
|
|
214
|
+
}
|
|
215
|
+
/** @enumType */
|
|
216
|
+
type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
157
217
|
interface ListStatisticsRequest {
|
|
158
218
|
/**
|
|
159
219
|
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
@@ -268,6 +328,248 @@ interface Cursors {
|
|
|
268
328
|
*/
|
|
269
329
|
prev?: string | null;
|
|
270
330
|
}
|
|
331
|
+
interface GetCampaignMappingRequest {
|
|
332
|
+
/**
|
|
333
|
+
* rule ID in automations
|
|
334
|
+
* @format GUID
|
|
335
|
+
*/
|
|
336
|
+
automationRuleId?: string;
|
|
337
|
+
/**
|
|
338
|
+
* template ID configured for the automation
|
|
339
|
+
* @format GUID
|
|
340
|
+
*/
|
|
341
|
+
templateId?: string;
|
|
342
|
+
}
|
|
343
|
+
interface GetCampaignMappingResponse {
|
|
344
|
+
/** @format GUID */
|
|
345
|
+
campaignId?: string;
|
|
346
|
+
}
|
|
347
|
+
interface UpsertTranslationRequest {
|
|
348
|
+
/**
|
|
349
|
+
* Campaign ID.
|
|
350
|
+
* @format GUID
|
|
351
|
+
*/
|
|
352
|
+
campaignId?: string;
|
|
353
|
+
/** Composer data. */
|
|
354
|
+
composer?: Composer;
|
|
355
|
+
/**
|
|
356
|
+
* Translation language (optional, default value "EN").
|
|
357
|
+
* @format LANGUAGE
|
|
358
|
+
*/
|
|
359
|
+
language?: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* For BI event [36:1031] only (optional, default value "n/a").
|
|
362
|
+
* @format GUID
|
|
363
|
+
*/
|
|
364
|
+
automationRuleId?: string | null;
|
|
365
|
+
/** Should campaign also be published or not (default value "false"). */
|
|
366
|
+
publish?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Campaign subject (optional).
|
|
369
|
+
* @maxLength 1000
|
|
370
|
+
*/
|
|
371
|
+
emailSubject?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* Campaign preheader (optional).
|
|
374
|
+
* @maxLength 1000
|
|
375
|
+
*/
|
|
376
|
+
emailPreheader?: string | null;
|
|
377
|
+
}
|
|
378
|
+
interface Composer {
|
|
379
|
+
/**
|
|
380
|
+
* Internal data structure for editor/viewer to render the campaign.
|
|
381
|
+
* @maxLength 10000000
|
|
382
|
+
*/
|
|
383
|
+
composerDataJson?: string;
|
|
384
|
+
/** Default values of existing placeholders. */
|
|
385
|
+
defaultValues?: DefaultValues;
|
|
386
|
+
}
|
|
387
|
+
interface DefaultValues {
|
|
388
|
+
/** @maxSize 500 */
|
|
389
|
+
map?: Record<string, string>;
|
|
390
|
+
}
|
|
391
|
+
interface UpsertTranslationResponse {
|
|
392
|
+
}
|
|
393
|
+
interface GetUsedPlaceholderKeysRequest {
|
|
394
|
+
/**
|
|
395
|
+
* Campaign ID.
|
|
396
|
+
* @format GUID
|
|
397
|
+
*/
|
|
398
|
+
campaignId?: string;
|
|
399
|
+
}
|
|
400
|
+
interface GetUsedPlaceholderKeysResponse {
|
|
401
|
+
/**
|
|
402
|
+
* Keys of placeholders used in the automation.
|
|
403
|
+
* @maxLength 200
|
|
404
|
+
* @maxSize 300
|
|
405
|
+
*/
|
|
406
|
+
placeholderKeys?: string[];
|
|
407
|
+
}
|
|
408
|
+
interface LookupCampaignMappingRequest {
|
|
409
|
+
/**
|
|
410
|
+
* rule ID in automations
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
413
|
+
automationRuleId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* template ID configured for the automation
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
418
|
+
templateId?: string;
|
|
419
|
+
}
|
|
420
|
+
interface LookupCampaignMappingResponse {
|
|
421
|
+
/** @format GUID */
|
|
422
|
+
campaignId?: string | null;
|
|
423
|
+
}
|
|
424
|
+
interface UpsertAutomationTranslatorContentRequest {
|
|
425
|
+
/**
|
|
426
|
+
* Campaign ID that the content belongs to
|
|
427
|
+
* @format GUID
|
|
428
|
+
*/
|
|
429
|
+
campaignId?: string;
|
|
430
|
+
/** Automation translator content */
|
|
431
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
432
|
+
}
|
|
433
|
+
/** Automation Translator Content */
|
|
434
|
+
interface AutomationTranslatorContent {
|
|
435
|
+
/**
|
|
436
|
+
* AutomationTranslatorContent ID
|
|
437
|
+
* @minLength 1
|
|
438
|
+
* @maxLength 256
|
|
439
|
+
* @immutable
|
|
440
|
+
*/
|
|
441
|
+
id?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
444
|
+
* @minLength 1
|
|
445
|
+
* @maxLength 800000
|
|
446
|
+
*/
|
|
447
|
+
json?: string;
|
|
448
|
+
}
|
|
449
|
+
interface UpsertAutomationTranslatorContentResponse {
|
|
450
|
+
}
|
|
451
|
+
interface GetAutomationTranslatorContentRequest {
|
|
452
|
+
/**
|
|
453
|
+
* Campaign ID
|
|
454
|
+
* @format GUID
|
|
455
|
+
*/
|
|
456
|
+
campaignId?: string;
|
|
457
|
+
}
|
|
458
|
+
interface GetAutomationTranslatorContentResponse {
|
|
459
|
+
/** Automation translator content */
|
|
460
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
461
|
+
}
|
|
462
|
+
interface SendTestBulkRequest {
|
|
463
|
+
/**
|
|
464
|
+
* Campaign ID
|
|
465
|
+
* @format GUID
|
|
466
|
+
*/
|
|
467
|
+
campaignId?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Recipient email address
|
|
470
|
+
* @format EMAIL
|
|
471
|
+
*/
|
|
472
|
+
toEmailAddress?: string;
|
|
473
|
+
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
474
|
+
placeholders?: Record<string, PlaceholderContent>;
|
|
475
|
+
/**
|
|
476
|
+
* Sender from name
|
|
477
|
+
* @maxLength 100
|
|
478
|
+
*/
|
|
479
|
+
fromName?: string | null;
|
|
480
|
+
/**
|
|
481
|
+
* Reply-to email address
|
|
482
|
+
* @format EMAIL
|
|
483
|
+
*/
|
|
484
|
+
replyToEmailAddress?: string | null;
|
|
485
|
+
/**
|
|
486
|
+
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
487
|
+
* @format LANGUAGE
|
|
488
|
+
*/
|
|
489
|
+
language?: string | null;
|
|
490
|
+
}
|
|
491
|
+
interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
492
|
+
text?: PlainText;
|
|
493
|
+
html?: Html;
|
|
494
|
+
money?: Money;
|
|
495
|
+
dateTime?: DateTime;
|
|
496
|
+
map?: Map;
|
|
497
|
+
array?: _Array;
|
|
498
|
+
enum?: PlaceholderContentEnum;
|
|
499
|
+
attachment?: Attachment;
|
|
500
|
+
integer?: Integer;
|
|
501
|
+
decimal?: Decimal;
|
|
502
|
+
}
|
|
503
|
+
/** @oneof */
|
|
504
|
+
interface PlaceholderContentValueOneOf {
|
|
505
|
+
text?: PlainText;
|
|
506
|
+
html?: Html;
|
|
507
|
+
money?: Money;
|
|
508
|
+
dateTime?: DateTime;
|
|
509
|
+
map?: Map;
|
|
510
|
+
array?: _Array;
|
|
511
|
+
enum?: PlaceholderContentEnum;
|
|
512
|
+
attachment?: Attachment;
|
|
513
|
+
integer?: Integer;
|
|
514
|
+
decimal?: Decimal;
|
|
515
|
+
}
|
|
516
|
+
interface PlainText {
|
|
517
|
+
text?: string;
|
|
518
|
+
}
|
|
519
|
+
interface Html {
|
|
520
|
+
html?: string;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Money.
|
|
524
|
+
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
525
|
+
*/
|
|
526
|
+
interface Money {
|
|
527
|
+
/**
|
|
528
|
+
* Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
|
|
529
|
+
* @format DECIMAL_VALUE
|
|
530
|
+
*/
|
|
531
|
+
value?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
534
|
+
* @format CURRENCY
|
|
535
|
+
*/
|
|
536
|
+
currency?: string;
|
|
537
|
+
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
538
|
+
formattedValue?: string | null;
|
|
539
|
+
}
|
|
540
|
+
interface DateTime {
|
|
541
|
+
timestamp?: Date | null;
|
|
542
|
+
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
543
|
+
timeZone?: string | null;
|
|
544
|
+
}
|
|
545
|
+
interface Map {
|
|
546
|
+
variables?: Record<string, PlaceholderContent>;
|
|
547
|
+
}
|
|
548
|
+
interface _Array {
|
|
549
|
+
items?: PlaceholderContent[];
|
|
550
|
+
}
|
|
551
|
+
interface PlaceholderContentEnum {
|
|
552
|
+
value?: string;
|
|
553
|
+
translation?: string;
|
|
554
|
+
}
|
|
555
|
+
interface Attachment {
|
|
556
|
+
fileName?: string;
|
|
557
|
+
downloadUrl?: string;
|
|
558
|
+
}
|
|
559
|
+
interface Integer {
|
|
560
|
+
/** min value: -2147483648, max value: 2147483647 */
|
|
561
|
+
value?: number;
|
|
562
|
+
}
|
|
563
|
+
interface Decimal {
|
|
564
|
+
/**
|
|
565
|
+
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
566
|
+
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
567
|
+
* @format DECIMAL_VALUE
|
|
568
|
+
*/
|
|
569
|
+
value?: string;
|
|
570
|
+
}
|
|
571
|
+
interface SendTestBulkResponse {
|
|
572
|
+
}
|
|
271
573
|
interface GetCampaignRequest {
|
|
272
574
|
/**
|
|
273
575
|
* Campaign ID.
|
|
@@ -305,12 +607,74 @@ interface Paging {
|
|
|
305
607
|
/** Number of items to skip in the current sort order. */
|
|
306
608
|
offset?: number | null;
|
|
307
609
|
}
|
|
610
|
+
/** Editor type. */
|
|
611
|
+
interface CampaignEditorType {
|
|
612
|
+
value?: CampaignEditorTypeEnumWithLiterals;
|
|
613
|
+
}
|
|
308
614
|
interface ListCampaignsResponse {
|
|
309
615
|
/** Paging parameters. */
|
|
310
616
|
paging?: Paging;
|
|
311
617
|
/** List of campaigns. */
|
|
312
618
|
campaigns?: Campaign[];
|
|
313
619
|
}
|
|
620
|
+
interface CountCampaignsRequest {
|
|
621
|
+
/** Since when should we start counting (optional, default value "1970-01-01T00:00:00.000Z") */
|
|
622
|
+
dateFrom?: Date | null;
|
|
623
|
+
}
|
|
624
|
+
interface CountCampaignsResponse {
|
|
625
|
+
/** "drafts" + "scheduled" + "published" (excluding "archived"). */
|
|
626
|
+
total?: number;
|
|
627
|
+
/** Non published (draft) campaigns. */
|
|
628
|
+
drafts?: number;
|
|
629
|
+
/** Campaigns scheduled for publishing in the future. */
|
|
630
|
+
scheduled?: number;
|
|
631
|
+
/** Campaigns published or sent. */
|
|
632
|
+
published?: number;
|
|
633
|
+
/** Campaigns moved to archive (regardless of the status). */
|
|
634
|
+
archived?: number;
|
|
635
|
+
}
|
|
636
|
+
interface CreateFromTemplateRequest {
|
|
637
|
+
/**
|
|
638
|
+
* ID of the template to fork.
|
|
639
|
+
* @format GUID
|
|
640
|
+
*/
|
|
641
|
+
templateId?: string;
|
|
642
|
+
/** Values to replace template placeholders with (unique for each template). */
|
|
643
|
+
variables?: Record<string, string>;
|
|
644
|
+
/** Campaign editor type. */
|
|
645
|
+
campaignEditorType?: CampaignEditorTypeEnumWithLiterals;
|
|
646
|
+
}
|
|
647
|
+
interface CreateFromTemplateResponse {
|
|
648
|
+
/** Campaign information. */
|
|
649
|
+
campaign?: Campaign;
|
|
650
|
+
}
|
|
651
|
+
interface CreateUserTemplateRequest {
|
|
652
|
+
/**
|
|
653
|
+
* ID of campaign to create template from.
|
|
654
|
+
* @format GUID
|
|
655
|
+
*/
|
|
656
|
+
campaignId?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Title of template.
|
|
659
|
+
* @maxLength 1000
|
|
660
|
+
*/
|
|
661
|
+
title?: string | null;
|
|
662
|
+
}
|
|
663
|
+
interface CreateUserTemplateResponse {
|
|
664
|
+
/** Created user template information. */
|
|
665
|
+
campaign?: Campaign;
|
|
666
|
+
}
|
|
667
|
+
interface CreateFromUserTemplateRequest {
|
|
668
|
+
/**
|
|
669
|
+
* ID of the user template campaign to use.
|
|
670
|
+
* @format GUID
|
|
671
|
+
*/
|
|
672
|
+
campaignId?: string;
|
|
673
|
+
}
|
|
674
|
+
interface CreateFromUserTemplateResponse {
|
|
675
|
+
/** Campaign created from user template. */
|
|
676
|
+
campaign?: Campaign;
|
|
677
|
+
}
|
|
314
678
|
interface PublishCampaignRequest {
|
|
315
679
|
/**
|
|
316
680
|
* Campaign ID
|
|
@@ -348,6 +712,148 @@ interface PublishCampaignResponse {
|
|
|
348
712
|
/** Publishing info. */
|
|
349
713
|
publishingData?: PublishingData;
|
|
350
714
|
}
|
|
715
|
+
interface Rejected {
|
|
716
|
+
/**
|
|
717
|
+
* ID of the campaign that was rejected.
|
|
718
|
+
* @format GUID
|
|
719
|
+
*/
|
|
720
|
+
campaignId?: string;
|
|
721
|
+
}
|
|
722
|
+
interface Published {
|
|
723
|
+
/**
|
|
724
|
+
* ID of the campaign that was published.
|
|
725
|
+
* @format GUID
|
|
726
|
+
*/
|
|
727
|
+
campaignId?: string;
|
|
728
|
+
/**
|
|
729
|
+
* Campaign landing page URL.
|
|
730
|
+
* @format WEB_URL
|
|
731
|
+
* @maxLength 2048
|
|
732
|
+
*/
|
|
733
|
+
landingPageUrl?: string;
|
|
734
|
+
/** Estimation of recipient list size (optional). */
|
|
735
|
+
mailingListSizeEstimate?: number | null;
|
|
736
|
+
}
|
|
737
|
+
interface Terminated {
|
|
738
|
+
/**
|
|
739
|
+
* ID of the campaign that was terminated.
|
|
740
|
+
* @format GUID
|
|
741
|
+
*/
|
|
742
|
+
campaignId?: string;
|
|
743
|
+
}
|
|
744
|
+
interface Distributed {
|
|
745
|
+
/**
|
|
746
|
+
* ID of the campaign that was distributed.
|
|
747
|
+
* @format GUID
|
|
748
|
+
*/
|
|
749
|
+
campaignId?: string;
|
|
750
|
+
}
|
|
751
|
+
interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf {
|
|
752
|
+
/** Recipient clicked on an email. */
|
|
753
|
+
click?: Click;
|
|
754
|
+
/** Recipient opened an email. */
|
|
755
|
+
open?: Open;
|
|
756
|
+
/**
|
|
757
|
+
* Email soft bounced when sent to a recipient.
|
|
758
|
+
*
|
|
759
|
+
* Indicates a temporary issue sending your email. For example, the email server receiving the email is under a heavy load.
|
|
760
|
+
* For soft bounces, you should wait and try again at a later time.
|
|
761
|
+
*/
|
|
762
|
+
softBounce?: SoftBounce;
|
|
763
|
+
/**
|
|
764
|
+
* Email hard bounced when sent to a recipient.
|
|
765
|
+
*
|
|
766
|
+
* Indicates a permanent error sending your email. For example, the email address does not exist.
|
|
767
|
+
*/
|
|
768
|
+
hardBounce?: HardBounce;
|
|
769
|
+
/**
|
|
770
|
+
* Campaign ID.
|
|
771
|
+
* @format GUID
|
|
772
|
+
*/
|
|
773
|
+
campaignId?: string;
|
|
774
|
+
/**
|
|
775
|
+
* [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient.
|
|
776
|
+
* @format GUID
|
|
777
|
+
*/
|
|
778
|
+
contactId?: string;
|
|
779
|
+
/**
|
|
780
|
+
* Email address of a recipient.
|
|
781
|
+
* @format EMAIL
|
|
782
|
+
*/
|
|
783
|
+
recipientEmailAddress?: string;
|
|
784
|
+
/** Date and time of the event. */
|
|
785
|
+
timestamp?: Date | null;
|
|
786
|
+
activityType?: ActivityTypeWithLiterals;
|
|
787
|
+
/**
|
|
788
|
+
* email metadata
|
|
789
|
+
* @maxSize 20
|
|
790
|
+
*/
|
|
791
|
+
metadata?: Record<string, string>;
|
|
792
|
+
}
|
|
793
|
+
/** @oneof */
|
|
794
|
+
interface EmailActivityUpdatedEventTypeOneOf {
|
|
795
|
+
/** Recipient clicked on an email. */
|
|
796
|
+
click?: Click;
|
|
797
|
+
/** Recipient opened an email. */
|
|
798
|
+
open?: Open;
|
|
799
|
+
/**
|
|
800
|
+
* Email soft bounced when sent to a recipient.
|
|
801
|
+
*
|
|
802
|
+
* Indicates a temporary issue sending your email. For example, the email server receiving the email is under a heavy load.
|
|
803
|
+
* For soft bounces, you should wait and try again at a later time.
|
|
804
|
+
*/
|
|
805
|
+
softBounce?: SoftBounce;
|
|
806
|
+
/**
|
|
807
|
+
* Email hard bounced when sent to a recipient.
|
|
808
|
+
*
|
|
809
|
+
* Indicates a permanent error sending your email. For example, the email address does not exist.
|
|
810
|
+
*/
|
|
811
|
+
hardBounce?: HardBounce;
|
|
812
|
+
}
|
|
813
|
+
/** The type of email activity that triggered the webhook. */
|
|
814
|
+
declare enum ActivityType {
|
|
815
|
+
/** Triggered when an email is delivered to the recipient. */
|
|
816
|
+
DELIVERY = "DELIVERY",
|
|
817
|
+
/** Triggered when the recipient clicks on a URL inside of the email. */
|
|
818
|
+
CLICK = "CLICK",
|
|
819
|
+
/** Triggered when the email is opened by the recipient. */
|
|
820
|
+
OPEN = "OPEN",
|
|
821
|
+
/** Triggered when the email is bounced softly. */
|
|
822
|
+
SOFT_BOUNCE = "SOFT_BOUNCE",
|
|
823
|
+
/** Triggered when the email bounces. */
|
|
824
|
+
HARD_BOUNCED = "HARD_BOUNCED"
|
|
825
|
+
}
|
|
826
|
+
/** @enumType */
|
|
827
|
+
type ActivityTypeWithLiterals = ActivityType | 'DELIVERY' | 'CLICK' | 'OPEN' | 'SOFT_BOUNCE' | 'HARD_BOUNCED';
|
|
828
|
+
interface Click {
|
|
829
|
+
/** URL that was clicked. */
|
|
830
|
+
url?: string;
|
|
831
|
+
/** Browser user agent of the recipient. */
|
|
832
|
+
userAgent?: string;
|
|
833
|
+
}
|
|
834
|
+
interface Open {
|
|
835
|
+
/** Browser user agent of the recipient. */
|
|
836
|
+
userAgent?: string;
|
|
837
|
+
}
|
|
838
|
+
interface SoftBounce {
|
|
839
|
+
/** Reason the email soft bounced. */
|
|
840
|
+
reason?: string;
|
|
841
|
+
}
|
|
842
|
+
interface HardBounce {
|
|
843
|
+
/** Reason the email hard bounced. */
|
|
844
|
+
reason?: string;
|
|
845
|
+
}
|
|
846
|
+
interface Scheduled {
|
|
847
|
+
/**
|
|
848
|
+
* ID of the campaign that was scheduled.
|
|
849
|
+
* @format GUID
|
|
850
|
+
*/
|
|
851
|
+
campaignId?: string;
|
|
852
|
+
/** The timestamp campaign is scheduled for. */
|
|
853
|
+
sendAt?: Date | null;
|
|
854
|
+
/** Shows if this is a rescheduling of previously scheduled campaign. */
|
|
855
|
+
rescheduled?: boolean;
|
|
856
|
+
}
|
|
351
857
|
interface SendTestRequest {
|
|
352
858
|
/**
|
|
353
859
|
* Campaign ID.
|
|
@@ -376,6 +882,13 @@ interface PauseSchedulingRequest {
|
|
|
376
882
|
}
|
|
377
883
|
interface PauseSchedulingResponse {
|
|
378
884
|
}
|
|
885
|
+
interface Paused {
|
|
886
|
+
/**
|
|
887
|
+
* ID of the campaign that was paused.
|
|
888
|
+
* @format GUID
|
|
889
|
+
*/
|
|
890
|
+
campaignId?: string;
|
|
891
|
+
}
|
|
379
892
|
interface RescheduleRequest {
|
|
380
893
|
/**
|
|
381
894
|
* ID of the campaign to reschedule.
|
|
@@ -387,6 +900,54 @@ interface RescheduleRequest {
|
|
|
387
900
|
}
|
|
388
901
|
interface RescheduleResponse {
|
|
389
902
|
}
|
|
903
|
+
interface ArchiveCampaignRequest {
|
|
904
|
+
/**
|
|
905
|
+
* ID of the campaign to archive.
|
|
906
|
+
* @format GUID
|
|
907
|
+
*/
|
|
908
|
+
campaignId?: string;
|
|
909
|
+
}
|
|
910
|
+
interface ArchiveCampaignResponse {
|
|
911
|
+
}
|
|
912
|
+
/** Sent when status of the campaign is changed from "Active" to "Archived" */
|
|
913
|
+
interface Archived {
|
|
914
|
+
/**
|
|
915
|
+
* ID of the campaign that was archived.
|
|
916
|
+
* @format GUID
|
|
917
|
+
*/
|
|
918
|
+
campaignId?: string;
|
|
919
|
+
}
|
|
920
|
+
interface UnarchiveCampaignRequest {
|
|
921
|
+
/**
|
|
922
|
+
* ID of the campaign to unarchive.
|
|
923
|
+
* @format GUID
|
|
924
|
+
*/
|
|
925
|
+
campaignId?: string;
|
|
926
|
+
}
|
|
927
|
+
interface UnarchiveCampaignResponse {
|
|
928
|
+
}
|
|
929
|
+
/** Sent when status of the campaign is changed from "Archived" to "Active" */
|
|
930
|
+
interface Unarchived {
|
|
931
|
+
/**
|
|
932
|
+
* ID of the campaign whose status was changed to active.
|
|
933
|
+
* @format GUID
|
|
934
|
+
*/
|
|
935
|
+
campaignId?: string;
|
|
936
|
+
}
|
|
937
|
+
interface UpdateTitleRequest {
|
|
938
|
+
/**
|
|
939
|
+
* ID of the campaign to change title of.
|
|
940
|
+
* @format GUID
|
|
941
|
+
*/
|
|
942
|
+
campaignId?: string;
|
|
943
|
+
/**
|
|
944
|
+
* New title to set.
|
|
945
|
+
* @maxLength 1000
|
|
946
|
+
*/
|
|
947
|
+
title?: string;
|
|
948
|
+
}
|
|
949
|
+
interface UpdateTitleResponse {
|
|
950
|
+
}
|
|
390
951
|
interface DeleteCampaignRequest {
|
|
391
952
|
/**
|
|
392
953
|
* Campaign ID.
|
|
@@ -407,6 +968,114 @@ interface ReuseCampaignResponse {
|
|
|
407
968
|
/** Campaign information. */
|
|
408
969
|
campaign?: Campaign;
|
|
409
970
|
}
|
|
971
|
+
interface PreviewCampaignRequest {
|
|
972
|
+
/**
|
|
973
|
+
* ID of the campaign to preview.
|
|
974
|
+
* @format GUID
|
|
975
|
+
*/
|
|
976
|
+
campaignId?: string;
|
|
977
|
+
/**
|
|
978
|
+
* Preferred language for campaign content (optional).
|
|
979
|
+
* @format LANGUAGE
|
|
980
|
+
*/
|
|
981
|
+
language?: string | null;
|
|
982
|
+
/** Values to replace campaign placeholders with (unique for each campaign). */
|
|
983
|
+
placeholders?: Record<string, PlaceholderContent>;
|
|
984
|
+
/** Whether to hide the ad (default value "false"). */
|
|
985
|
+
forceHideAd?: boolean;
|
|
986
|
+
}
|
|
987
|
+
interface PreviewCampaignResponse {
|
|
988
|
+
/** Preview HTML. */
|
|
989
|
+
html?: string;
|
|
990
|
+
}
|
|
991
|
+
interface GetComposerRequest {
|
|
992
|
+
/**
|
|
993
|
+
* Campaign ID.
|
|
994
|
+
* @format GUID
|
|
995
|
+
*/
|
|
996
|
+
campaignId?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Preferred language for campaign content (optional).
|
|
999
|
+
* @format LANGUAGE
|
|
1000
|
+
*/
|
|
1001
|
+
language?: string | null;
|
|
1002
|
+
}
|
|
1003
|
+
interface GetComposerResponse {
|
|
1004
|
+
/** Composer. */
|
|
1005
|
+
composer?: Composer;
|
|
1006
|
+
/**
|
|
1007
|
+
* Campaign subject.
|
|
1008
|
+
* @maxLength 1000
|
|
1009
|
+
*/
|
|
1010
|
+
emailSubject?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Campaign preheader (optional).
|
|
1013
|
+
* @maxLength 1000
|
|
1014
|
+
*/
|
|
1015
|
+
emailPreheader?: string | null;
|
|
1016
|
+
}
|
|
1017
|
+
interface UpdateComposerRequest {
|
|
1018
|
+
/**
|
|
1019
|
+
* Campaign ID.
|
|
1020
|
+
* @format GUID
|
|
1021
|
+
*/
|
|
1022
|
+
campaignId?: string;
|
|
1023
|
+
/** Campaign composer. */
|
|
1024
|
+
composer?: Composer;
|
|
1025
|
+
/** Campaign editor type (optional, default "WEB"). */
|
|
1026
|
+
campaignEditorType?: CampaignEditorType;
|
|
1027
|
+
/**
|
|
1028
|
+
* Campaign subject (optional).
|
|
1029
|
+
* @maxLength 1000
|
|
1030
|
+
*/
|
|
1031
|
+
emailSubject?: string | null;
|
|
1032
|
+
/**
|
|
1033
|
+
* Campaign preheader (optional).
|
|
1034
|
+
* @maxLength 1000
|
|
1035
|
+
*/
|
|
1036
|
+
emailPreheader?: string | null;
|
|
1037
|
+
}
|
|
1038
|
+
interface UpdateComposerResponse {
|
|
1039
|
+
}
|
|
1040
|
+
interface CreateCampaignRequest {
|
|
1041
|
+
/** Campaign composer. */
|
|
1042
|
+
composer?: Composer;
|
|
1043
|
+
/** Campaign editor type (optional, default "WEB"). */
|
|
1044
|
+
campaignEditorType?: CampaignEditorType;
|
|
1045
|
+
/**
|
|
1046
|
+
* Campaign subject (optional).
|
|
1047
|
+
* @maxLength 1000
|
|
1048
|
+
*/
|
|
1049
|
+
emailSubject?: string | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* Campaign preheader (optional).
|
|
1052
|
+
* @maxLength 1000
|
|
1053
|
+
*/
|
|
1054
|
+
emailPreheader?: string | null;
|
|
1055
|
+
}
|
|
1056
|
+
interface CreateCampaignResponse {
|
|
1057
|
+
/** Campaign information. */
|
|
1058
|
+
campaign?: Campaign;
|
|
1059
|
+
}
|
|
1060
|
+
interface ResendToNonOpenersRequest {
|
|
1061
|
+
/**
|
|
1062
|
+
* ID of the campaign to resend.
|
|
1063
|
+
* @format GUID
|
|
1064
|
+
*/
|
|
1065
|
+
campaignId?: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* Subject line to use with the resent copy of campaign.
|
|
1068
|
+
* @maxLength 1000
|
|
1069
|
+
*/
|
|
1070
|
+
emailSubject?: string | null;
|
|
1071
|
+
}
|
|
1072
|
+
interface ResendToNonOpenersResponse {
|
|
1073
|
+
/**
|
|
1074
|
+
* ID of the newly created and resent campaign.
|
|
1075
|
+
* @format GUID
|
|
1076
|
+
*/
|
|
1077
|
+
campaignId?: string;
|
|
1078
|
+
}
|
|
410
1079
|
interface GetAudienceRequest {
|
|
411
1080
|
/**
|
|
412
1081
|
* Campaign ID.
|
|
@@ -466,6 +1135,160 @@ interface IdentifySenderAddressResponse {
|
|
|
466
1135
|
*/
|
|
467
1136
|
senderAddress?: string;
|
|
468
1137
|
}
|
|
1138
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1139
|
+
createdEvent?: EntityCreatedEvent;
|
|
1140
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1141
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1142
|
+
actionEvent?: ActionEvent;
|
|
1143
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1144
|
+
id?: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1147
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1148
|
+
*/
|
|
1149
|
+
entityFqdn?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1152
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1153
|
+
*/
|
|
1154
|
+
slug?: string;
|
|
1155
|
+
/** ID of the entity associated with the event. */
|
|
1156
|
+
entityId?: string;
|
|
1157
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1158
|
+
eventTime?: Date | null;
|
|
1159
|
+
/**
|
|
1160
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1161
|
+
* (for example, GDPR).
|
|
1162
|
+
*/
|
|
1163
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1164
|
+
/** If present, indicates the action that triggered the event. */
|
|
1165
|
+
originatedFrom?: string | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1168
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1169
|
+
*/
|
|
1170
|
+
entityEventSequence?: string | null;
|
|
1171
|
+
}
|
|
1172
|
+
/** @oneof */
|
|
1173
|
+
interface DomainEventBodyOneOf {
|
|
1174
|
+
createdEvent?: EntityCreatedEvent;
|
|
1175
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1176
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1177
|
+
actionEvent?: ActionEvent;
|
|
1178
|
+
}
|
|
1179
|
+
interface EntityCreatedEvent {
|
|
1180
|
+
entityAsJson?: string;
|
|
1181
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1182
|
+
restoreInfo?: RestoreInfo;
|
|
1183
|
+
}
|
|
1184
|
+
interface RestoreInfo {
|
|
1185
|
+
deletedDate?: Date | null;
|
|
1186
|
+
}
|
|
1187
|
+
interface EntityUpdatedEvent {
|
|
1188
|
+
/**
|
|
1189
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1190
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1191
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1192
|
+
*/
|
|
1193
|
+
currentEntityAsJson?: string;
|
|
1194
|
+
}
|
|
1195
|
+
interface EntityDeletedEvent {
|
|
1196
|
+
/** Entity that was deleted. */
|
|
1197
|
+
deletedEntityAsJson?: string | null;
|
|
1198
|
+
}
|
|
1199
|
+
interface ActionEvent {
|
|
1200
|
+
bodyAsJson?: string;
|
|
1201
|
+
}
|
|
1202
|
+
interface MessageEnvelope {
|
|
1203
|
+
/**
|
|
1204
|
+
* App instance ID.
|
|
1205
|
+
* @format GUID
|
|
1206
|
+
*/
|
|
1207
|
+
instanceId?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Event type.
|
|
1210
|
+
* @maxLength 150
|
|
1211
|
+
*/
|
|
1212
|
+
eventType?: string;
|
|
1213
|
+
/** The identification type and identity data. */
|
|
1214
|
+
identity?: IdentificationData;
|
|
1215
|
+
/** Stringify payload. */
|
|
1216
|
+
data?: string;
|
|
1217
|
+
}
|
|
1218
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1219
|
+
/**
|
|
1220
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1221
|
+
* @format GUID
|
|
1222
|
+
*/
|
|
1223
|
+
anonymousVisitorId?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* ID of a site visitor that has logged in to the site.
|
|
1226
|
+
* @format GUID
|
|
1227
|
+
*/
|
|
1228
|
+
memberId?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1231
|
+
* @format GUID
|
|
1232
|
+
*/
|
|
1233
|
+
wixUserId?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* ID of an app.
|
|
1236
|
+
* @format GUID
|
|
1237
|
+
*/
|
|
1238
|
+
appId?: string;
|
|
1239
|
+
/** @readonly */
|
|
1240
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1241
|
+
}
|
|
1242
|
+
/** @oneof */
|
|
1243
|
+
interface IdentificationDataIdOneOf {
|
|
1244
|
+
/**
|
|
1245
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1246
|
+
* @format GUID
|
|
1247
|
+
*/
|
|
1248
|
+
anonymousVisitorId?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* ID of a site visitor that has logged in to the site.
|
|
1251
|
+
* @format GUID
|
|
1252
|
+
*/
|
|
1253
|
+
memberId?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1256
|
+
* @format GUID
|
|
1257
|
+
*/
|
|
1258
|
+
wixUserId?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* ID of an app.
|
|
1261
|
+
* @format GUID
|
|
1262
|
+
*/
|
|
1263
|
+
appId?: string;
|
|
1264
|
+
}
|
|
1265
|
+
declare enum WebhookIdentityType {
|
|
1266
|
+
UNKNOWN = "UNKNOWN",
|
|
1267
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1268
|
+
MEMBER = "MEMBER",
|
|
1269
|
+
WIX_USER = "WIX_USER",
|
|
1270
|
+
APP = "APP"
|
|
1271
|
+
}
|
|
1272
|
+
/** @enumType */
|
|
1273
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1274
|
+
interface GetPlaceholderKeysRequest {
|
|
1275
|
+
/**
|
|
1276
|
+
* Campaign ID.
|
|
1277
|
+
* @format GUID
|
|
1278
|
+
*/
|
|
1279
|
+
campaignId?: string;
|
|
1280
|
+
}
|
|
1281
|
+
interface GetPlaceholderKeysResponse {
|
|
1282
|
+
/** Keys of placeholders used in the campaign. */
|
|
1283
|
+
placeholderKeys?: string[];
|
|
1284
|
+
}
|
|
1285
|
+
interface GetDefaultComponentsRequest {
|
|
1286
|
+
}
|
|
1287
|
+
interface GetDefaultComponentsResponse {
|
|
1288
|
+
footer?: Record<string, any> | null;
|
|
1289
|
+
logo?: Record<string, any> | null;
|
|
1290
|
+
follow?: Record<string, any> | null;
|
|
1291
|
+
}
|
|
469
1292
|
interface ValidateLinkRequest {
|
|
470
1293
|
/**
|
|
471
1294
|
* URL to validate.
|
|
@@ -488,6 +1311,157 @@ interface ValidateHtmlLinksResponse {
|
|
|
488
1311
|
/** Non-valid links. */
|
|
489
1312
|
blacklistedLinks?: string[];
|
|
490
1313
|
}
|
|
1314
|
+
interface EstimateFilterSizeRequest {
|
|
1315
|
+
/** Contacts filter expression. */
|
|
1316
|
+
filter?: Record<string, any> | null;
|
|
1317
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1318
|
+
activeContactsOnly?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1321
|
+
* @minLength 1
|
|
1322
|
+
* @maxLength 100
|
|
1323
|
+
*/
|
|
1324
|
+
search?: string | null;
|
|
1325
|
+
}
|
|
1326
|
+
interface EstimateFilterSizeResponse {
|
|
1327
|
+
/** Mailing list size estimation. */
|
|
1328
|
+
estimation?: number;
|
|
1329
|
+
}
|
|
1330
|
+
interface EstimateAudienceSizeRequest {
|
|
1331
|
+
/**
|
|
1332
|
+
* Contact IDs of a campaign audience.
|
|
1333
|
+
* @format GUID
|
|
1334
|
+
*/
|
|
1335
|
+
contactIds?: string[];
|
|
1336
|
+
/** Label IDs of a campaign audience. */
|
|
1337
|
+
labelIds?: string[];
|
|
1338
|
+
/** Contacts filter expression (json). */
|
|
1339
|
+
contactsFilter?: Record<string, any> | null;
|
|
1340
|
+
/**
|
|
1341
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1342
|
+
* @minLength 1
|
|
1343
|
+
* @maxLength 100
|
|
1344
|
+
*/
|
|
1345
|
+
search?: string | null;
|
|
1346
|
+
/**
|
|
1347
|
+
* Segment ids of a campaign audience.
|
|
1348
|
+
* @format GUID
|
|
1349
|
+
*/
|
|
1350
|
+
segmentIds?: string[];
|
|
1351
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1352
|
+
activeContactsOnly?: boolean;
|
|
1353
|
+
/**
|
|
1354
|
+
* Id of a campaign that is to be resent.
|
|
1355
|
+
* @format GUID
|
|
1356
|
+
*/
|
|
1357
|
+
resendCampaignId?: string | null;
|
|
1358
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1359
|
+
withTotal?: boolean;
|
|
1360
|
+
}
|
|
1361
|
+
interface EstimateAudienceSizeResponse {
|
|
1362
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
1363
|
+
estimation?: number;
|
|
1364
|
+
/** Total number of contacts in provided audience (optional). */
|
|
1365
|
+
total?: number | null;
|
|
1366
|
+
}
|
|
1367
|
+
interface ReconcileContactRequest {
|
|
1368
|
+
/**
|
|
1369
|
+
* Email address of the contact.
|
|
1370
|
+
* @format EMAIL
|
|
1371
|
+
*/
|
|
1372
|
+
emailAddress?: string;
|
|
1373
|
+
}
|
|
1374
|
+
interface ReconcileContactResponse {
|
|
1375
|
+
/** Created or retrieved contact. */
|
|
1376
|
+
contact?: Contact;
|
|
1377
|
+
}
|
|
1378
|
+
interface Contact {
|
|
1379
|
+
/**
|
|
1380
|
+
* Unique ID of the contact entity.
|
|
1381
|
+
* @format GUID
|
|
1382
|
+
*/
|
|
1383
|
+
id?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Primary email address of the contact.
|
|
1386
|
+
* @format EMAIL
|
|
1387
|
+
*/
|
|
1388
|
+
emailAddress?: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* Full name of the contact (optional).
|
|
1391
|
+
* @maxLength 100
|
|
1392
|
+
*/
|
|
1393
|
+
fullName?: string | null;
|
|
1394
|
+
/**
|
|
1395
|
+
* Profile picture of the contact (optional).
|
|
1396
|
+
* @format WEB_URL
|
|
1397
|
+
* @maxLength 2048
|
|
1398
|
+
*/
|
|
1399
|
+
pictureUrl?: string | null;
|
|
1400
|
+
}
|
|
1401
|
+
interface SearchContactsRequest {
|
|
1402
|
+
/**
|
|
1403
|
+
* Text to search contacts by - can search by name or email address.
|
|
1404
|
+
* @maxLength 100
|
|
1405
|
+
*/
|
|
1406
|
+
searchTerm?: string;
|
|
1407
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1408
|
+
activeContactsOnly?: boolean;
|
|
1409
|
+
/**
|
|
1410
|
+
* Page size (default 50, max 1000).
|
|
1411
|
+
* @max 1000
|
|
1412
|
+
*/
|
|
1413
|
+
pageSize?: number | null;
|
|
1414
|
+
}
|
|
1415
|
+
interface SearchContactsResponse {
|
|
1416
|
+
/** Search results. */
|
|
1417
|
+
contacts?: Contact[];
|
|
1418
|
+
}
|
|
1419
|
+
interface GetLabelsRequest {
|
|
1420
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1421
|
+
activeContactsOnly?: boolean;
|
|
1422
|
+
}
|
|
1423
|
+
interface GetLabelsResponse {
|
|
1424
|
+
/** Returned labels with contact counts. */
|
|
1425
|
+
labels?: Label[];
|
|
1426
|
+
}
|
|
1427
|
+
interface Label {
|
|
1428
|
+
/**
|
|
1429
|
+
* Unique ID of the label entity.
|
|
1430
|
+
* @maxLength 100
|
|
1431
|
+
*/
|
|
1432
|
+
id?: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* Name of the label.
|
|
1435
|
+
* @maxLength 100
|
|
1436
|
+
*/
|
|
1437
|
+
name?: string;
|
|
1438
|
+
/** Amount of contacts assigned to the label. */
|
|
1439
|
+
contactsCount?: number;
|
|
1440
|
+
}
|
|
1441
|
+
interface SubscribeFromLandingPageRequest {
|
|
1442
|
+
/**
|
|
1443
|
+
* Campaign ID that the subscription is happening from.
|
|
1444
|
+
* @format GUID
|
|
1445
|
+
*/
|
|
1446
|
+
campaignId?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* Email address that is entered into subscription field.
|
|
1449
|
+
* @format EMAIL
|
|
1450
|
+
*/
|
|
1451
|
+
emailAddress?: string;
|
|
1452
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1453
|
+
consent?: boolean;
|
|
1454
|
+
}
|
|
1455
|
+
interface SubscribeFromLandingPageResponse {
|
|
1456
|
+
/** @format GUID */
|
|
1457
|
+
contactId?: string;
|
|
1458
|
+
}
|
|
1459
|
+
/** @docsIgnore */
|
|
1460
|
+
type PublishApplicationErrors = {
|
|
1461
|
+
code?: 'ALREADY_SENT';
|
|
1462
|
+
description?: string;
|
|
1463
|
+
data?: Record<string, any>;
|
|
1464
|
+
};
|
|
491
1465
|
|
|
492
1466
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
493
1467
|
getUrl: (context: any) => string;
|
|
@@ -532,4 +1506,4 @@ declare function identifySenderAddress(): __PublicMethodMetaInfo<'POST', {}, Ide
|
|
|
532
1506
|
declare function validateLink(): __PublicMethodMetaInfo<'POST', {}, ValidateLinkRequest$1, ValidateLinkRequest, ValidateLinkResponse$1, ValidateLinkResponse>;
|
|
533
1507
|
declare function validateHtmlLinks(): __PublicMethodMetaInfo<'POST', {}, ValidateHtmlLinksRequest$1, ValidateHtmlLinksRequest, ValidateHtmlLinksResponse$1, ValidateHtmlLinksResponse>;
|
|
534
1508
|
|
|
535
|
-
export { type __PublicMethodMetaInfo, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|
|
1509
|
+
export { type ActionEvent as ActionEventOriginal, ActivityType as ActivityTypeOriginal, type ActivityTypeWithLiterals as ActivityTypeWithLiteralsOriginal, type ArchiveCampaignRequest as ArchiveCampaignRequestOriginal, type ArchiveCampaignResponse as ArchiveCampaignResponseOriginal, type Archived as ArchivedOriginal, type Attachment as AttachmentOriginal, type AutomationTranslatorContent as AutomationTranslatorContentOriginal, type CampaignAudience as CampaignAudienceOriginal, CampaignEditorTypeEnum as CampaignEditorTypeEnumOriginal, type CampaignEditorTypeEnumWithLiterals as CampaignEditorTypeEnumWithLiteralsOriginal, type CampaignEditorType as CampaignEditorTypeOriginal, type Campaign as CampaignOriginal, type CampaignRecipientDetails as CampaignRecipientDetailsOriginal, CampaignSendingStateEnum as CampaignSendingStateEnumOriginal, type CampaignSendingStateEnumWithLiterals as CampaignSendingStateEnumWithLiteralsOriginal, type CampaignStatisticsContainer as CampaignStatisticsContainerOriginal, type CampaignStatistics as CampaignStatisticsOriginal, CampaignStatusEnum as CampaignStatusEnumOriginal, type CampaignStatusEnumWithLiterals as CampaignStatusEnumWithLiteralsOriginal, CampaignTypeEnum as CampaignTypeEnumOriginal, type CampaignTypeEnumWithLiterals as CampaignTypeEnumWithLiteralsOriginal, CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnumOriginal, type CampaignVisibilityStatusEnumWithLiterals as CampaignVisibilityStatusEnumWithLiteralsOriginal, type Click as ClickOriginal, type Composer as ComposerOriginal, type Contact as ContactOriginal, type CountCampaignsRequest as CountCampaignsRequestOriginal, type CountCampaignsResponse as CountCampaignsResponseOriginal, type CreateCampaignRequest as CreateCampaignRequestOriginal, type CreateCampaignResponse as CreateCampaignResponseOriginal, type CreateFromTemplateRequest as CreateFromTemplateRequestOriginal, type CreateFromTemplateResponse as CreateFromTemplateResponseOriginal, type CreateFromUserTemplateRequest as CreateFromUserTemplateRequestOriginal, type CreateFromUserTemplateResponse as CreateFromUserTemplateResponseOriginal, type CreateUserTemplateRequest as CreateUserTemplateRequestOriginal, type CreateUserTemplateResponse as CreateUserTemplateResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DateTime as DateTimeOriginal, type Decimal as DecimalOriginal, type DefaultValues as DefaultValuesOriginal, type DeleteCampaignRequest as DeleteCampaignRequestOriginal, type DeleteCampaignResponse as DeleteCampaignResponseOriginal, type Distributed as DistributedOriginal, type DistributionStatistics as DistributionStatisticsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOfOriginal, type EmailActivityUpdated as EmailActivityUpdatedOriginal, type EmailDistributionOptions as EmailDistributionOptionsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type EstimateAudienceSizeRequest as EstimateAudienceSizeRequestOriginal, type EstimateAudienceSizeResponse as EstimateAudienceSizeResponseOriginal, type EstimateFilterSizeRequest as EstimateFilterSizeRequestOriginal, type EstimateFilterSizeResponse as EstimateFilterSizeResponseOriginal, type GetAudienceRequest as GetAudienceRequestOriginal, type GetAudienceResponse as GetAudienceResponseOriginal, type GetAutomationTranslatorContentRequest as GetAutomationTranslatorContentRequestOriginal, type GetAutomationTranslatorContentResponse as GetAutomationTranslatorContentResponseOriginal, type GetCampaignMappingRequest as GetCampaignMappingRequestOriginal, type GetCampaignMappingResponse as GetCampaignMappingResponseOriginal, type GetCampaignRequest as GetCampaignRequestOriginal, type GetCampaignResponse as GetCampaignResponseOriginal, type GetComposerRequest as GetComposerRequestOriginal, type GetComposerResponse as GetComposerResponseOriginal, type GetDefaultComponentsRequest as GetDefaultComponentsRequestOriginal, type GetDefaultComponentsResponse as GetDefaultComponentsResponseOriginal, type GetLabelsRequest as GetLabelsRequestOriginal, type GetLabelsResponse as GetLabelsResponseOriginal, type GetPlaceholderKeysRequest as GetPlaceholderKeysRequestOriginal, type GetPlaceholderKeysResponse as GetPlaceholderKeysResponseOriginal, type GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequestOriginal, type GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponseOriginal, type HardBounce as HardBounceOriginal, type Html as HtmlOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IdentifySenderAddressRequest as IdentifySenderAddressRequestOriginal, type IdentifySenderAddressResponse as IdentifySenderAddressResponseOriginal, type Integer as IntegerOriginal, type Label as LabelOriginal, type LandingPageStatistics as LandingPageStatisticsOriginal, type ListCampaignsRequest as ListCampaignsRequestOriginal, type ListCampaignsResponse as ListCampaignsResponseOriginal, type ListRecipientsRequest as ListRecipientsRequestOriginal, type ListRecipientsResponse as ListRecipientsResponseOriginal, type ListStatisticsRequest as ListStatisticsRequestOriginal, type ListStatisticsResponse as ListStatisticsResponseOriginal, type LookupCampaignMappingRequest as LookupCampaignMappingRequestOriginal, type LookupCampaignMappingResponse as LookupCampaignMappingResponseOriginal, type Map as MapOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Money as MoneyOriginal, type Open as OpenOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PauseSchedulingRequest as PauseSchedulingRequestOriginal, type PauseSchedulingResponse as PauseSchedulingResponseOriginal, type Paused as PausedOriginal, type PlaceholderContentEnum as PlaceholderContentEnumOriginal, type PlaceholderContent as PlaceholderContentOriginal, type PlaceholderContentValueOneOf as PlaceholderContentValueOneOfOriginal, type PlainText as PlainTextOriginal, type PreviewCampaignRequest as PreviewCampaignRequestOriginal, type PreviewCampaignResponse as PreviewCampaignResponseOriginal, type PublishApplicationErrors as PublishApplicationErrorsOriginal, type PublishCampaignRequest as PublishCampaignRequestOriginal, type PublishCampaignResponse as PublishCampaignResponseOriginal, type Published as PublishedOriginal, type PublishingData as PublishingDataOriginal, RecipientsActivityEnum as RecipientsActivityEnumOriginal, type RecipientsActivityEnumWithLiterals as RecipientsActivityEnumWithLiteralsOriginal, type ReconcileContactRequest as ReconcileContactRequestOriginal, type ReconcileContactResponse as ReconcileContactResponseOriginal, type Rejected as RejectedOriginal, type RejectionData as RejectionDataOriginal, RejectionReasonEnum as RejectionReasonEnumOriginal, type RejectionReasonEnumWithLiterals as RejectionReasonEnumWithLiteralsOriginal, type RescheduleRequest as RescheduleRequestOriginal, type RescheduleResponse as RescheduleResponseOriginal, type ResendToNonOpenersRequest as ResendToNonOpenersRequestOriginal, type ResendToNonOpenersResponse as ResendToNonOpenersResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ReuseCampaignRequest as ReuseCampaignRequestOriginal, type ReuseCampaignResponse as ReuseCampaignResponseOriginal, type Scheduled as ScheduledOriginal, type SearchContactsRequest as SearchContactsRequestOriginal, type SearchContactsResponse as SearchContactsResponseOriginal, type SendTestBulkRequest as SendTestBulkRequestOriginal, type SendTestBulkResponse as SendTestBulkResponseOriginal, type SendTestRequest as SendTestRequestOriginal, type SendTestResponse as SendTestResponseOriginal, type SoftBounce as SoftBounceOriginal, type SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequestOriginal, type SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponseOriginal, type Terminated as TerminatedOriginal, type TotalStatistics as TotalStatisticsOriginal, type UnarchiveCampaignRequest as UnarchiveCampaignRequestOriginal, type UnarchiveCampaignResponse as UnarchiveCampaignResponseOriginal, type Unarchived as UnarchivedOriginal, type UpdateComposerRequest as UpdateComposerRequestOriginal, type UpdateComposerResponse as UpdateComposerResponseOriginal, type UpdateTitleRequest as UpdateTitleRequestOriginal, type UpdateTitleResponse as UpdateTitleResponseOriginal, type UpsertAutomationTranslatorContentRequest as UpsertAutomationTranslatorContentRequestOriginal, type UpsertAutomationTranslatorContentResponse as UpsertAutomationTranslatorContentResponseOriginal, type UpsertTranslationRequest as UpsertTranslationRequestOriginal, type UpsertTranslationResponse as UpsertTranslationResponseOriginal, type ValidateHtmlLinksRequest as ValidateHtmlLinksRequestOriginal, type ValidateHtmlLinksResponse as ValidateHtmlLinksResponseOriginal, type ValidateLinkRequest as ValidateLinkRequestOriginal, type ValidateLinkResponse as ValidateLinkResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type _Array as _ArrayOriginal, type __PublicMethodMetaInfo, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|