@wix/auto_sdk_email-marketing_campaigns 1.0.5 → 1.0.7

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.
Files changed (73) hide show
  1. package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.d.ts +5 -5
  2. package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
  3. package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
  4. package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +22 -22
  5. package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js +73 -193
  6. package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
  7. package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +4 -4
  8. package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +39 -39
  9. package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
  10. package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +38 -38
  11. package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js +13 -13
  12. package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
  13. package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +810 -417
  14. package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js +12 -12
  15. package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
  16. package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +1007 -558
  17. package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +146 -120
  18. package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
  19. package/build/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +5 -5
  20. package/build/es/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
  21. package/build/es/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
  22. package/build/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +22 -22
  23. package/build/es/src/email-marketing-v1-campaign-campaigns.http.js +70 -190
  24. package/build/es/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
  25. package/build/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +4 -4
  26. package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js +36 -36
  27. package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
  28. package/build/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +38 -38
  29. package/build/es/src/email-marketing-v1-campaign-campaigns.public.js +10 -10
  30. package/build/es/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
  31. package/build/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +810 -417
  32. package/build/es/src/email-marketing-v1-campaign-campaigns.types.js +11 -11
  33. package/build/es/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
  34. package/build/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +1007 -558
  35. package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js +143 -117
  36. package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
  37. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.d.ts +5 -5
  38. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
  39. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
  40. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +22 -22
  41. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js +73 -193
  42. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
  43. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +4 -4
  44. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +39 -39
  45. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
  46. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +38 -38
  47. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js +13 -13
  48. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
  49. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +810 -417
  50. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js +12 -12
  51. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
  52. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +1007 -558
  53. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +146 -120
  54. package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
  55. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +5 -5
  56. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
  57. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
  58. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +22 -22
  59. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js +70 -190
  60. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
  61. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +4 -4
  62. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js +36 -36
  63. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
  64. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +38 -38
  65. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js +10 -10
  66. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
  67. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +810 -417
  68. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js +11 -11
  69. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
  70. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +1007 -558
  71. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js +143 -117
  72. package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
  73. package/package.json +2 -2
@@ -1,14 +1,21 @@
1
1
  export interface Campaign {
2
- /** Campaign ID. */
2
+ /**
3
+ * Campaign ID.
4
+ * @format GUID
5
+ */
3
6
  campaignId?: string;
4
7
  /** Marketing campaign title. If you don't provide the value, the title automatically gets the value of an email subject. */
5
8
  title?: string | null;
6
- /** URL of the first image after the logo. */
9
+ /**
10
+ * URL of the first image after the logo.
11
+ * @format WEB_URL
12
+ */
7
13
  firstImageUrl?: string | null;
8
14
  /**
9
15
  * Landing page snapshot URL. <br>
10
16
  * This field is deprecated and snapshot images are no longer supported. Instead, use the `firstImageUrl` field.
11
17
  * The value of this field will soon become the same as the value of the `firstImageUrl` field.
18
+ * @format WEB_URL
12
19
  * @deprecated Landing page snapshot URL. <br>
13
20
  * This field is deprecated and snapshot images are no longer supported. Instead, use the `firstImageUrl` field.
14
21
  * The value of this field will soon become the same as the value of the `firstImageUrl` field.
@@ -33,6 +40,7 @@ export interface Campaign {
33
40
  /**
34
41
  * Email subject of the campaign (initially copied from the template).
35
42
  * TODO: Deprecated (moved to "GetComposerResponse").
43
+ * @maxLength 1000
36
44
  * @deprecated
37
45
  */
38
46
  emailSubject?: string;
@@ -92,7 +100,10 @@ export declare enum Enum {
92
100
  PAUSED = "PAUSED"
93
101
  }
94
102
  export interface PublishingData {
95
- /** Landing page URL. */
103
+ /**
104
+ * Landing page URL.
105
+ * @format WEB_URL
106
+ */
96
107
  landingPageUrl?: string;
97
108
  /** Marketing campaign statistics. */
98
109
  statistics?: CampaignStatistics;
@@ -198,116 +209,11 @@ export declare enum CampaignTypeEnum {
198
209
  /** triggered email */
199
210
  TRIGGERED = "TRIGGERED"
200
211
  }
201
- export interface EstimateFilterSizeRequest {
202
- /** Contacts filter expression. */
203
- filter?: Record<string, any> | null;
204
- /** Should "inactive" contacts be excluded or not (default value "false"). */
205
- activeContactsOnly?: boolean;
206
- /** Contacts plain text search expression (searches in name, phone and email fields). */
207
- search?: string | null;
208
- }
209
- export interface EstimateFilterSizeResponse {
210
- /** Mailing list size estimation. */
211
- estimation?: number;
212
- }
213
- export interface EstimateAudienceSizeRequest {
214
- /** Contact IDs of a campaign audience. */
215
- contactIds?: string[];
216
- /** Label IDs of a campaign audience. */
217
- labelIds?: string[];
218
- /** Contacts filter expression (json). */
219
- contactsFilter?: Record<string, any> | null;
220
- /** Contacts plain text search expression (searches in name, phone and email fields). */
221
- search?: string | null;
222
- /** Segment ids of a campaign audience. */
223
- segmentIds?: string[];
224
- /** Should "inactive" contacts be excluded or not (default value "false"). */
225
- activeContactsOnly?: boolean;
226
- /** Id of a campaign that is to be resent. */
227
- resendCampaignId?: string | null;
228
- /** Should total number of contacts in provided audience be returned or not (default value "false"). */
229
- withTotal?: boolean;
230
- }
231
- export interface EstimateAudienceSizeResponse {
232
- /** Audience size (estimated number of emails to be sent). */
233
- estimation?: number;
234
- /** Total number of contacts in provided audience (optional). */
235
- total?: number | null;
236
- }
237
- export interface ReconcileContactRequest {
238
- /** Email address of the contact. */
239
- emailAddress?: string;
240
- }
241
- export interface ReconcileContactResponse {
242
- /** Created or retrieved contact. */
243
- contact?: Contact;
244
- }
245
- export interface Contact {
246
- /** Unique ID of the contact entity. */
247
- id?: string;
248
- /** Primary email address of the contact. */
249
- emailAddress?: string;
250
- /** Full name of the contact (optional). */
251
- fullName?: string | null;
252
- /** Profile picture of the contact (optional). */
253
- pictureUrl?: string | null;
254
- }
255
- export interface SearchContactsRequest {
256
- /** Text to search contacts by - can search by name or email address. */
257
- searchTerm?: string;
258
- /** Should "inactive" contacts be excluded or not (default value "false"). */
259
- activeContactsOnly?: boolean;
260
- /** Page size (default 50, max 1000). */
261
- pageSize?: number | null;
262
- }
263
- export interface SearchContactsResponse {
264
- /** Search results. */
265
- contacts?: Contact[];
266
- }
267
- export interface GetLabelsRequest {
268
- /** Should "inactive" contacts be excluded or not (default value "false"). */
269
- activeContactsOnly?: boolean;
270
- }
271
- export interface GetLabelsResponse {
272
- /** Returned labels with contact counts. */
273
- labels?: Label[];
274
- }
275
- export interface Label {
276
- /** Unique ID of the label entity. */
277
- id?: string;
278
- /** Name of the label. */
279
- name?: string;
280
- /** Amount of contacts assigned to the label. */
281
- contactsCount?: number;
282
- }
283
- export interface SubscribeFromLandingPageRequest {
284
- /** Campaign ID that the subscription is happening from. */
285
- campaignId?: string;
286
- /** Email address that is entered into subscription field. */
287
- emailAddress?: string;
288
- /** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
289
- consent?: boolean;
290
- }
291
- export interface SubscribeFromLandingPageResponse {
292
- contactId?: string;
293
- }
294
- export interface GetPlaceholderKeysRequest {
295
- /** Campaign ID. */
296
- campaignId?: string;
297
- }
298
- export interface GetPlaceholderKeysResponse {
299
- /** Keys of placeholders used in the campaign. */
300
- placeholderKeys?: string[];
301
- }
302
- export interface GetDefaultComponentsRequest {
303
- }
304
- export interface GetDefaultComponentsResponse {
305
- footer?: Record<string, any> | null;
306
- logo?: Record<string, any> | null;
307
- follow?: Record<string, any> | null;
308
- }
309
212
  export interface ValidateLinkRequest {
310
- /** URL to validate. */
213
+ /**
214
+ * URL to validate.
215
+ * @minLength 1
216
+ */
311
217
  url: string;
312
218
  }
313
219
  export interface ValidateLinkResponse {
@@ -315,209 +221,462 @@ export interface ValidateLinkResponse {
315
221
  valid?: boolean;
316
222
  }
317
223
  export interface ValidateHtmlLinksRequest {
318
- /** HTML string with links. */
224
+ /**
225
+ * HTML string with links.
226
+ * @maxLength 1000000
227
+ */
319
228
  html: string;
320
229
  }
321
230
  export interface ValidateHtmlLinksResponse {
322
231
  /** Non-valid links. */
323
232
  blacklistedLinks?: string[];
324
233
  }
325
- export interface ListStatisticsRequest {
326
- /** IDs of the campaigns to retrieve (max 100 campaigns). */
327
- campaignIds: string[];
328
- }
329
- export interface ListStatisticsResponse {
330
- /** List of statistics. */
331
- statistics?: CampaignStatisticsContainer[];
332
- }
333
- export interface CampaignStatisticsContainer {
334
- /** Campaign ID. */
335
- campaignId?: string;
336
- /** Landing page statistics. */
337
- landingPage?: LandingPageStatistics;
338
- /** Email campaign statistics. */
339
- email?: DistributionStatistics;
340
- }
341
- export interface ListRecipientsRequest {
342
- /** Campaign ID. */
343
- campaignId: string;
344
- /** Email activity to filter. */
345
- activity: RecipientsActivityEnum;
346
- /** Pagination options. */
347
- paging?: CursorPaging;
348
- }
349
- export declare enum RecipientsActivityEnum {
350
- UNKNOWN = "UNKNOWN",
351
- DELIVERED = "DELIVERED",
352
- OPENED = "OPENED",
353
- CLICKED = "CLICKED",
354
- BOUNCED = "BOUNCED",
355
- NOT_SENT = "NOT_SENT",
356
- SENT = "SENT",
357
- NOT_OPENED = "NOT_OPENED"
358
- }
359
- export interface CursorPaging {
360
- /** Number of items to load. */
361
- limit?: number | null;
234
+ export interface GetCampaignMappingRequest {
362
235
  /**
363
- * Pointer to the next or previous page in the list of results.
364
- *
365
- * You can get the relevant cursor token
366
- * from the `pagingMetadata` object in the previous call's response.
367
- * Not relevant for the first request.
236
+ * rule ID in automations
237
+ * @format GUID
368
238
  */
369
- cursor?: string | null;
370
- }
371
- export interface ListRecipientsResponse {
372
- /** List of recipients. */
373
- recipients?: CampaignRecipientDetails[];
374
- /** Details on the paged set of returned results. */
375
- pagingMetadata?: PagingMetadataV2;
376
- }
377
- export interface CampaignRecipientDetails {
378
- /** Contact ID. */
379
- contactId?: string;
380
- /** Date and time of the last activity. */
381
- lastActivityDate?: Date | null;
382
- /** Primary email address of the contact. */
383
- emailAddress?: string;
384
- /** Full name of the contact (optional). */
385
- fullName?: string | null;
386
- /** Is this contact currently deleted from the site or not. */
387
- contactDeleted?: boolean;
388
- }
389
- export interface PagingMetadataV2 {
390
- /** Number of items returned in the response. */
391
- count?: number | null;
392
- /** Offset that was requested. */
393
- offset?: number | null;
394
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
395
- total?: number | null;
396
- /** Flag that indicates the server failed to calculate the `total` field. */
397
- tooManyToCount?: boolean | null;
398
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
399
- cursors?: Cursors;
400
- }
401
- export interface Cursors {
402
- /** Cursor string pointing to the next page in the list of results. */
403
- next?: string | null;
404
- /** Cursor pointing to the previous page in the list of results. */
405
- prev?: string | null;
406
- }
407
- export interface GetCampaignMappingRequest {
408
- /** rule ID in automations */
409
239
  automationRuleId?: string;
410
- /** template ID configured for the automation */
240
+ /**
241
+ * template ID configured for the automation
242
+ * @format GUID
243
+ */
411
244
  templateId?: string;
412
245
  }
413
246
  export interface GetCampaignMappingResponse {
247
+ /** @format GUID */
414
248
  campaignId?: string;
415
249
  }
416
250
  export interface UpsertTranslationRequest {
417
- /** Campaign ID. */
251
+ /**
252
+ * Campaign ID.
253
+ * @format GUID
254
+ */
418
255
  campaignId?: string;
419
256
  /** Composer data. */
420
257
  composer?: Composer;
421
- /** Translation language (optional, default value "EN"). */
258
+ /**
259
+ * Translation language (optional, default value "EN").
260
+ * @format LANGUAGE
261
+ */
422
262
  language?: string | null;
423
- /** For BI event [36:1031] only (optional, default value "n/a"). */
263
+ /**
264
+ * For BI event [36:1031] only (optional, default value "n/a").
265
+ * @format GUID
266
+ */
424
267
  automationRuleId?: string | null;
425
268
  /** Should campaign also be published or not (default value "false"). */
426
269
  publish?: boolean;
427
- /** Campaign subject (optional). */
270
+ /**
271
+ * Campaign subject (optional).
272
+ * @maxLength 1000
273
+ */
428
274
  emailSubject?: string | null;
429
- /** Campaign preheader (optional). */
275
+ /**
276
+ * Campaign preheader (optional).
277
+ * @maxLength 1000
278
+ */
430
279
  emailPreheader?: string | null;
431
280
  }
432
281
  export interface Composer {
433
- /** Internal data structure for editor/viewer to render the campaign. */
282
+ /**
283
+ * Internal data structure for editor/viewer to render the campaign.
284
+ * @maxLength 10000000
285
+ */
434
286
  composerDataJson?: string;
435
287
  /** Default values of existing placeholders. */
436
288
  defaultValues?: DefaultValues;
437
289
  }
438
290
  export interface DefaultValues {
291
+ /** @maxSize 500 */
439
292
  map?: Record<string, string>;
440
293
  }
441
294
  export interface UpsertTranslationResponse {
442
295
  }
443
296
  export interface GetUsedPlaceholderKeysRequest {
444
- /** Campaign ID. */
297
+ /**
298
+ * Campaign ID.
299
+ * @format GUID
300
+ */
445
301
  campaignId?: string;
446
302
  }
447
303
  export interface GetUsedPlaceholderKeysResponse {
448
- /** Keys of placeholders used in the automation. */
304
+ /**
305
+ * Keys of placeholders used in the automation.
306
+ * @maxLength 200
307
+ * @maxSize 300
308
+ */
449
309
  placeholderKeys?: string[];
450
310
  }
451
311
  export interface LookupCampaignMappingRequest {
452
- /** rule ID in automations */
312
+ /**
313
+ * rule ID in automations
314
+ * @format GUID
315
+ */
453
316
  automationRuleId?: string;
454
- /** template ID configured for the automation */
317
+ /**
318
+ * template ID configured for the automation
319
+ * @format GUID
320
+ */
455
321
  templateId?: string;
456
322
  }
457
323
  export interface LookupCampaignMappingResponse {
324
+ /** @format GUID */
458
325
  campaignId?: string | null;
459
326
  }
460
327
  export interface UpsertAutomationTranslatorContentRequest {
461
- /** Campaign ID that the content belongs to */
328
+ /**
329
+ * Campaign ID that the content belongs to
330
+ * @format GUID
331
+ */
462
332
  campaignId?: string;
463
333
  /** Automation translator content */
464
334
  automationTranslatorContent?: AutomationTranslatorContent;
465
335
  }
466
336
  /** Automation Translator Content */
467
337
  export interface AutomationTranslatorContent {
468
- /** AutomationTranslatorContent ID */
338
+ /**
339
+ * AutomationTranslatorContent ID
340
+ * @minLength 1
341
+ * @maxLength 256
342
+ * @immutable
343
+ */
469
344
  id?: string;
470
- /** Content that can contain multiple strings. It represents a json file, that is stored on Smartling */
345
+ /**
346
+ * Content that can contain multiple strings. It represents a json file, that is stored on Smartling
347
+ * @minLength 1
348
+ * @maxLength 800000
349
+ */
471
350
  json?: string;
472
351
  }
473
352
  export interface UpsertAutomationTranslatorContentResponse {
474
353
  }
475
354
  export interface GetAutomationTranslatorContentRequest {
476
- /** Campaign ID */
355
+ /**
356
+ * Campaign ID
357
+ * @format GUID
358
+ */
477
359
  campaignId?: string;
478
360
  }
479
361
  export interface GetAutomationTranslatorContentResponse {
480
362
  /** Automation translator content */
481
363
  automationTranslatorContent?: AutomationTranslatorContent;
482
364
  }
483
- export interface GetCampaignRequest {
484
- /** Campaign ID. */
485
- campaignId: string;
365
+ export interface SendTestBulkRequest {
486
366
  /**
487
- * Whether a returned campaign object should include `publishingData.statistics`.
488
- *
489
- * Default: `false`.
367
+ * Campaign ID
368
+ * @format GUID
490
369
  */
491
- optionIncludeStatistics?: boolean;
492
- }
493
- export interface GetCampaignResponse {
494
- /** Campaign information. */
495
- campaign?: Campaign;
496
- }
497
- export interface ListCampaignsRequest {
498
- /** Paging parameters. */
499
- paging?: Paging;
370
+ campaignId?: string;
500
371
  /**
501
- * Whether to include `publishingData.statistics` in the returned campaign object.
502
- *
503
- * Default: `false`.
372
+ * Recipient email address
373
+ * @format EMAIL
504
374
  */
505
- optionIncludeStatistics?: boolean;
506
- /** Campaign status. */
507
- statuses?: CampaignStatusEnum[];
508
- /** Visibility status. */
509
- visibilityStatuses?: CampaignVisibilityStatusEnum[];
375
+ toEmailAddress?: string;
376
+ /** Values to replace campaign placeholders with (unique for each campaign) */
377
+ placeholders?: Record<string, PlaceholderContent>;
378
+ /**
379
+ * Sender from name
380
+ * @maxLength 100
381
+ */
382
+ fromName?: string | null;
383
+ /**
384
+ * Reply-to email address
385
+ * @format EMAIL
386
+ */
387
+ replyToEmailAddress?: string | null;
388
+ /**
389
+ * Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
390
+ * @format LANGUAGE
391
+ */
392
+ language?: string | null;
510
393
  }
511
- export interface Paging {
512
- /** Number of items to load. */
513
- limit?: number | null;
514
- /** Number of items to skip in the current sort order. */
515
- offset?: number | null;
394
+ export interface PlaceholderContent extends PlaceholderContentValueOneOf {
395
+ text?: PlainText;
396
+ html?: Html;
397
+ money?: Money;
398
+ dateTime?: DateTime;
399
+ map?: Map;
400
+ array?: _Array;
401
+ enum?: PlaceholderContentEnum;
402
+ attachment?: Attachment;
403
+ integer?: Integer;
404
+ decimal?: Decimal;
516
405
  }
517
- export interface ListCampaignsResponse {
518
- /** Paging parameters. */
519
- paging?: Paging;
520
- /** List of campaigns. */
406
+ /** @oneof */
407
+ export interface PlaceholderContentValueOneOf {
408
+ text?: PlainText;
409
+ html?: Html;
410
+ money?: Money;
411
+ dateTime?: DateTime;
412
+ map?: Map;
413
+ array?: _Array;
414
+ enum?: PlaceholderContentEnum;
415
+ attachment?: Attachment;
416
+ integer?: Integer;
417
+ decimal?: Decimal;
418
+ }
419
+ export interface PlainText {
420
+ text?: string;
421
+ }
422
+ export interface Html {
423
+ html?: string;
424
+ }
425
+ /**
426
+ * Money.
427
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
428
+ */
429
+ export interface Money {
430
+ /**
431
+ * 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.
432
+ * @format DECIMAL_VALUE
433
+ */
434
+ value?: string;
435
+ /**
436
+ * Currency code. Must be valid ISO 4217 currency code (e.g., USD).
437
+ * @format CURRENCY
438
+ */
439
+ currency?: string;
440
+ /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
441
+ formattedValue?: string | null;
442
+ }
443
+ export interface DateTime {
444
+ timestamp?: Date | null;
445
+ /** optional time zone is the full name. example: "Asia/Jerusalem" */
446
+ timeZone?: string | null;
447
+ }
448
+ export interface Map {
449
+ variables?: Record<string, PlaceholderContent>;
450
+ }
451
+ export interface _Array {
452
+ items?: PlaceholderContent[];
453
+ }
454
+ export interface PlaceholderContentEnum {
455
+ value?: string;
456
+ translation?: string;
457
+ }
458
+ export interface Attachment {
459
+ fileName?: string;
460
+ downloadUrl?: string;
461
+ }
462
+ export interface Integer {
463
+ /** min value: -2147483648, max value: 2147483647 */
464
+ value?: number;
465
+ }
466
+ export interface Decimal {
467
+ /**
468
+ * when converted from Double, has a limitation of max 16 digits (including fractional part)
469
+ * highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
470
+ * @format DECIMAL_VALUE
471
+ */
472
+ value?: string;
473
+ }
474
+ export interface SendTestBulkResponse {
475
+ }
476
+ export interface GetPlaceholderKeysRequest {
477
+ /**
478
+ * Campaign ID.
479
+ * @format GUID
480
+ */
481
+ campaignId?: string;
482
+ }
483
+ export interface GetPlaceholderKeysResponse {
484
+ /** Keys of placeholders used in the campaign. */
485
+ placeholderKeys?: string[];
486
+ }
487
+ export interface GetDefaultComponentsRequest {
488
+ }
489
+ export interface GetDefaultComponentsResponse {
490
+ footer?: Record<string, any> | null;
491
+ logo?: Record<string, any> | null;
492
+ follow?: Record<string, any> | null;
493
+ }
494
+ export interface EstimateFilterSizeRequest {
495
+ /** Contacts filter expression. */
496
+ filter?: Record<string, any> | null;
497
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
498
+ activeContactsOnly?: boolean;
499
+ /**
500
+ * Contacts plain text search expression (searches in name, phone and email fields).
501
+ * @minLength 1
502
+ * @maxLength 100
503
+ */
504
+ search?: string | null;
505
+ }
506
+ export interface EstimateFilterSizeResponse {
507
+ /** Mailing list size estimation. */
508
+ estimation?: number;
509
+ }
510
+ export interface EstimateAudienceSizeRequest {
511
+ /**
512
+ * Contact IDs of a campaign audience.
513
+ * @format GUID
514
+ */
515
+ contactIds?: string[];
516
+ /** Label IDs of a campaign audience. */
517
+ labelIds?: string[];
518
+ /** Contacts filter expression (json). */
519
+ contactsFilter?: Record<string, any> | null;
520
+ /**
521
+ * Contacts plain text search expression (searches in name, phone and email fields).
522
+ * @minLength 1
523
+ * @maxLength 100
524
+ */
525
+ search?: string | null;
526
+ /**
527
+ * Segment ids of a campaign audience.
528
+ * @format GUID
529
+ */
530
+ segmentIds?: string[];
531
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
532
+ activeContactsOnly?: boolean;
533
+ /**
534
+ * Id of a campaign that is to be resent.
535
+ * @format GUID
536
+ */
537
+ resendCampaignId?: string | null;
538
+ /** Should total number of contacts in provided audience be returned or not (default value "false"). */
539
+ withTotal?: boolean;
540
+ }
541
+ export interface EstimateAudienceSizeResponse {
542
+ /** Audience size (estimated number of emails to be sent). */
543
+ estimation?: number;
544
+ /** Total number of contacts in provided audience (optional). */
545
+ total?: number | null;
546
+ }
547
+ export interface ReconcileContactRequest {
548
+ /**
549
+ * Email address of the contact.
550
+ * @format EMAIL
551
+ */
552
+ emailAddress?: string;
553
+ }
554
+ export interface ReconcileContactResponse {
555
+ /** Created or retrieved contact. */
556
+ contact?: Contact;
557
+ }
558
+ export interface Contact {
559
+ /**
560
+ * Unique ID of the contact entity.
561
+ * @format GUID
562
+ */
563
+ id?: string;
564
+ /**
565
+ * Primary email address of the contact.
566
+ * @format EMAIL
567
+ */
568
+ emailAddress?: string;
569
+ /**
570
+ * Full name of the contact (optional).
571
+ * @maxLength 100
572
+ */
573
+ fullName?: string | null;
574
+ /**
575
+ * Profile picture of the contact (optional).
576
+ * @format WEB_URL
577
+ * @maxLength 2048
578
+ */
579
+ pictureUrl?: string | null;
580
+ }
581
+ export interface SearchContactsRequest {
582
+ /**
583
+ * Text to search contacts by - can search by name or email address.
584
+ * @maxLength 100
585
+ */
586
+ searchTerm?: string;
587
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
588
+ activeContactsOnly?: boolean;
589
+ /**
590
+ * Page size (default 50, max 1000).
591
+ * @max 1000
592
+ */
593
+ pageSize?: number | null;
594
+ }
595
+ export interface SearchContactsResponse {
596
+ /** Search results. */
597
+ contacts?: Contact[];
598
+ }
599
+ export interface GetLabelsRequest {
600
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
601
+ activeContactsOnly?: boolean;
602
+ }
603
+ export interface GetLabelsResponse {
604
+ /** Returned labels with contact counts. */
605
+ labels?: Label[];
606
+ }
607
+ export interface Label {
608
+ /**
609
+ * Unique ID of the label entity.
610
+ * @maxLength 100
611
+ */
612
+ id?: string;
613
+ /**
614
+ * Name of the label.
615
+ * @maxLength 100
616
+ */
617
+ name?: string;
618
+ /** Amount of contacts assigned to the label. */
619
+ contactsCount?: number;
620
+ }
621
+ export interface SubscribeFromLandingPageRequest {
622
+ /**
623
+ * Campaign ID that the subscription is happening from.
624
+ * @format GUID
625
+ */
626
+ campaignId?: string;
627
+ /**
628
+ * Email address that is entered into subscription field.
629
+ * @format EMAIL
630
+ */
631
+ emailAddress?: string;
632
+ /** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
633
+ consent?: boolean;
634
+ }
635
+ export interface SubscribeFromLandingPageResponse {
636
+ /** @format GUID */
637
+ contactId?: string;
638
+ }
639
+ export interface GetCampaignRequest {
640
+ /**
641
+ * Campaign ID.
642
+ * @format GUID
643
+ */
644
+ campaignId: string;
645
+ /**
646
+ * Whether a returned campaign object should include `publishingData.statistics`.
647
+ *
648
+ * Default: `false`.
649
+ */
650
+ optionIncludeStatistics?: boolean;
651
+ }
652
+ export interface GetCampaignResponse {
653
+ /** Campaign information. */
654
+ campaign?: Campaign;
655
+ }
656
+ export interface ListCampaignsRequest {
657
+ /** Paging parameters. */
658
+ paging?: Paging;
659
+ /**
660
+ * Whether to include `publishingData.statistics` in the returned campaign object.
661
+ *
662
+ * Default: `false`.
663
+ */
664
+ optionIncludeStatistics?: boolean;
665
+ /** Campaign status. */
666
+ statuses?: CampaignStatusEnum[];
667
+ /** Visibility status. */
668
+ visibilityStatuses?: CampaignVisibilityStatusEnum[];
669
+ }
670
+ export interface Paging {
671
+ /** Number of items to load. */
672
+ limit?: number | null;
673
+ /** Number of items to skip in the current sort order. */
674
+ offset?: number | null;
675
+ }
676
+ export interface ListCampaignsResponse {
677
+ /** Paging parameters. */
678
+ paging?: Paging;
679
+ /** List of campaigns. */
521
680
  campaigns?: Campaign[];
522
681
  }
523
682
  export interface CountCampaignsRequest {
@@ -537,7 +696,10 @@ export interface CountCampaignsResponse {
537
696
  archived?: number;
538
697
  }
539
698
  export interface CreateFromTemplateRequest {
540
- /** ID of the template to fork. */
699
+ /**
700
+ * ID of the template to fork.
701
+ * @format GUID
702
+ */
541
703
  templateId?: string;
542
704
  /** Values to replace template placeholders with (unique for each template). */
543
705
  variables?: Record<string, string>;
@@ -549,9 +711,15 @@ export interface CreateFromTemplateResponse {
549
711
  campaign?: Campaign;
550
712
  }
551
713
  export interface CreateUserTemplateRequest {
552
- /** ID of campaign to create template from. */
714
+ /**
715
+ * ID of campaign to create template from.
716
+ * @format GUID
717
+ */
553
718
  campaignId?: string;
554
- /** Title of template. */
719
+ /**
720
+ * Title of template.
721
+ * @maxLength 1000
722
+ */
555
723
  title?: string | null;
556
724
  }
557
725
  export interface CreateUserTemplateResponse {
@@ -559,7 +727,10 @@ export interface CreateUserTemplateResponse {
559
727
  campaign?: Campaign;
560
728
  }
561
729
  export interface CreateFromUserTemplateRequest {
562
- /** ID of the user template campaign to use. */
730
+ /**
731
+ * ID of the user template campaign to use.
732
+ * @format GUID
733
+ */
563
734
  campaignId?: string;
564
735
  }
565
736
  export interface CreateFromUserTemplateResponse {
@@ -567,20 +738,30 @@ export interface CreateFromUserTemplateResponse {
567
738
  campaign?: Campaign;
568
739
  }
569
740
  export interface PublishCampaignRequest {
570
- /** Campaign ID */
741
+ /**
742
+ * Campaign ID
743
+ * @format GUID
744
+ */
571
745
  campaignId: string;
572
746
  /** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
573
747
  emailDistributionOptions?: EmailDistributionOptions;
574
748
  }
575
749
  export interface EmailDistributionOptions {
576
- /** The subject line for the email campaign, which appears in recipients’ inboxes. */
750
+ /**
751
+ * The subject line for the email campaign, which appears in recipients’ inboxes.
752
+ * @maxLength 1000
753
+ */
577
754
  emailSubject?: string | null;
578
755
  /** Contact label IDs. */
579
756
  labelIds?: string[];
580
- /** IDs of contacts to whom to send out the campaign. */
757
+ /**
758
+ * IDs of contacts to whom to send out the campaign.
759
+ * @format GUID
760
+ */
581
761
  contactIds?: string[];
582
762
  /**
583
763
  * Filter ids to send campaign to (unsupported).
764
+ * @format GUID
584
765
  * @deprecated Filter ids to send campaign to (unsupported).
585
766
  * @replacedBy contacts_filter
586
767
  * @targetRemovalDate 2023-10-10
@@ -594,23 +775,39 @@ export interface PublishCampaignResponse {
594
775
  publishingData?: PublishingData;
595
776
  }
596
777
  export interface Rejected {
597
- /** ID of the campaign that was rejected. */
778
+ /**
779
+ * ID of the campaign that was rejected.
780
+ * @format GUID
781
+ */
598
782
  campaignId?: string;
599
783
  }
600
784
  export interface Published {
601
- /** ID of the campaign that was published. */
785
+ /**
786
+ * ID of the campaign that was published.
787
+ * @format GUID
788
+ */
602
789
  campaignId?: string;
603
- /** Campaign landing page URL. */
790
+ /**
791
+ * Campaign landing page URL.
792
+ * @format WEB_URL
793
+ * @maxLength 2048
794
+ */
604
795
  landingPageUrl?: string;
605
796
  /** Estimation of recipient list size (optional). */
606
797
  mailingListSizeEstimate?: number | null;
607
798
  }
608
799
  export interface Terminated {
609
- /** ID of the campaign that was terminated. */
800
+ /**
801
+ * ID of the campaign that was terminated.
802
+ * @format GUID
803
+ */
610
804
  campaignId?: string;
611
805
  }
612
806
  export interface Distributed {
613
- /** ID of the campaign that was distributed. */
807
+ /**
808
+ * ID of the campaign that was distributed.
809
+ * @format GUID
810
+ */
614
811
  campaignId?: string;
615
812
  }
616
813
  export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf {
@@ -631,16 +828,28 @@ export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf
631
828
  * Indicates a permanent error sending your email. For example, the email address does not exist.
632
829
  */
633
830
  hardBounce?: HardBounce;
634
- /** Campaign ID. */
831
+ /**
832
+ * Campaign ID.
833
+ * @format GUID
834
+ */
635
835
  campaignId?: string;
636
- /** [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient. */
836
+ /**
837
+ * [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient.
838
+ * @format GUID
839
+ */
637
840
  contactId?: string;
638
- /** Email address of a recipient. */
841
+ /**
842
+ * Email address of a recipient.
843
+ * @format EMAIL
844
+ */
639
845
  recipientEmailAddress?: string;
640
846
  /** Date and time of the event. */
641
847
  timestamp?: Date | null;
642
848
  activityType?: ActivityType;
643
- /** email metadata */
849
+ /**
850
+ * email metadata
851
+ * @maxSize 20
852
+ */
644
853
  metadata?: Record<string, string>;
645
854
  }
646
855
  /** @oneof */
@@ -673,130 +882,78 @@ export declare enum ActivityType {
673
882
  OPEN = "OPEN",
674
883
  /** Triggered when the email is bounced softly. */
675
884
  SOFT_BOUNCE = "SOFT_BOUNCE",
676
- /** Triggered when the email bounces. */
677
- HARD_BOUNCED = "HARD_BOUNCED"
678
- }
679
- export interface Click {
680
- /** URL that was clicked. */
681
- url?: string;
682
- /** Browser user agent of the recipient. */
683
- userAgent?: string;
684
- }
685
- export interface Open {
686
- /** Browser user agent of the recipient. */
687
- userAgent?: string;
688
- }
689
- export interface SoftBounce {
690
- /** Reason the email soft bounced. */
691
- reason?: string;
692
- }
693
- export interface HardBounce {
694
- /** Reason the email hard bounced. */
695
- reason?: string;
696
- }
697
- export interface Scheduled {
698
- /** ID of the campaign that was scheduled. */
699
- campaignId?: string;
700
- /** The timestamp campaign is scheduled for. */
701
- sendAt?: Date | null;
702
- /** Shows if this is a rescheduling of previously scheduled campaign. */
703
- rescheduled?: boolean;
704
- }
705
- export interface SendTestRequest {
706
- /** Campaign ID. */
707
- campaignId: string;
708
- /** Email subject. */
709
- emailSubject?: string | null;
710
- /** Recipient email address. */
711
- toEmailAddress: string;
712
- }
713
- export interface PlaceholderContent extends PlaceholderContentValueOneOf {
714
- text?: PlainText;
715
- html?: Html;
716
- money?: Money;
717
- dateTime?: DateTime;
718
- map?: Map;
719
- array?: _Array;
720
- enum?: PlaceholderContentEnum;
721
- attachment?: Attachment;
722
- integer?: Integer;
723
- decimal?: Decimal;
724
- }
725
- /** @oneof */
726
- export interface PlaceholderContentValueOneOf {
727
- text?: PlainText;
728
- html?: Html;
729
- money?: Money;
730
- dateTime?: DateTime;
731
- map?: Map;
732
- array?: _Array;
733
- enum?: PlaceholderContentEnum;
734
- attachment?: Attachment;
735
- integer?: Integer;
736
- decimal?: Decimal;
737
- }
738
- export interface PlainText {
739
- text?: string;
740
- }
741
- export interface Html {
742
- html?: string;
743
- }
744
- /**
745
- * Money.
746
- * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
747
- */
748
- export interface Money {
749
- /** 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. */
750
- value?: string;
751
- /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
752
- currency?: string;
753
- /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
754
- formattedValue?: string | null;
755
- }
756
- export interface DateTime {
757
- timestamp?: Date | null;
758
- /** optional time zone is the full name. example: "Asia/Jerusalem" */
759
- timeZone?: string | null;
885
+ /** Triggered when the email bounces. */
886
+ HARD_BOUNCED = "HARD_BOUNCED"
760
887
  }
761
- export interface Map {
762
- variables?: Record<string, PlaceholderContent>;
888
+ export interface Click {
889
+ /** URL that was clicked. */
890
+ url?: string;
891
+ /** Browser user agent of the recipient. */
892
+ userAgent?: string;
763
893
  }
764
- export interface _Array {
765
- items?: PlaceholderContent[];
894
+ export interface Open {
895
+ /** Browser user agent of the recipient. */
896
+ userAgent?: string;
766
897
  }
767
- export interface PlaceholderContentEnum {
768
- value?: string;
769
- translation?: string;
898
+ export interface SoftBounce {
899
+ /** Reason the email soft bounced. */
900
+ reason?: string;
770
901
  }
771
- export interface Attachment {
772
- fileName?: string;
773
- downloadUrl?: string;
902
+ export interface HardBounce {
903
+ /** Reason the email hard bounced. */
904
+ reason?: string;
774
905
  }
775
- export interface Integer {
776
- /** min value: -2147483648, max value: 2147483647 */
777
- value?: number;
906
+ export interface Scheduled {
907
+ /**
908
+ * ID of the campaign that was scheduled.
909
+ * @format GUID
910
+ */
911
+ campaignId?: string;
912
+ /** The timestamp campaign is scheduled for. */
913
+ sendAt?: Date | null;
914
+ /** Shows if this is a rescheduling of previously scheduled campaign. */
915
+ rescheduled?: boolean;
778
916
  }
779
- export interface Decimal {
917
+ export interface SendTestRequest {
780
918
  /**
781
- * when converted from Double, has a limitation of max 16 digits (including fractional part)
782
- * highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
919
+ * Campaign ID.
920
+ * @format GUID
783
921
  */
784
- value?: string;
922
+ campaignId: string;
923
+ /**
924
+ * Email subject.
925
+ * @maxLength 1000
926
+ */
927
+ emailSubject?: string | null;
928
+ /**
929
+ * Recipient email address.
930
+ * @format EMAIL
931
+ */
932
+ toEmailAddress: string;
785
933
  }
786
934
  export interface SendTestResponse {
787
935
  }
788
936
  export interface PauseSchedulingRequest {
789
- /** Campaign ID. */
937
+ /**
938
+ * Campaign ID.
939
+ * @format GUID
940
+ */
790
941
  campaignId: string;
791
942
  }
792
943
  export interface PauseSchedulingResponse {
793
944
  }
794
945
  export interface Paused {
795
- /** ID of the campaign that was paused. */
946
+ /**
947
+ * ID of the campaign that was paused.
948
+ * @format GUID
949
+ */
796
950
  campaignId?: string;
797
951
  }
798
952
  export interface RescheduleRequest {
799
- /** ID of the campaign to reschedule. */
953
+ /**
954
+ * ID of the campaign to reschedule.
955
+ * @format GUID
956
+ */
800
957
  campaignId: string;
801
958
  /** New time for sending out the campaign. */
802
959
  sendAt: Date | null;
@@ -804,43 +961,67 @@ export interface RescheduleRequest {
804
961
  export interface RescheduleResponse {
805
962
  }
806
963
  export interface ArchiveCampaignRequest {
807
- /** ID of the campaign to archive. */
964
+ /**
965
+ * ID of the campaign to archive.
966
+ * @format GUID
967
+ */
808
968
  campaignId?: string;
809
969
  }
810
970
  export interface ArchiveCampaignResponse {
811
971
  }
812
972
  /** Sent when status of the campaign is changed from "Active" to "Archived" */
813
973
  export interface Archived {
814
- /** ID of the campaign that was archived. */
974
+ /**
975
+ * ID of the campaign that was archived.
976
+ * @format GUID
977
+ */
815
978
  campaignId?: string;
816
979
  }
817
980
  export interface UnarchiveCampaignRequest {
818
- /** ID of the campaign to unarchive. */
981
+ /**
982
+ * ID of the campaign to unarchive.
983
+ * @format GUID
984
+ */
819
985
  campaignId?: string;
820
986
  }
821
987
  export interface UnarchiveCampaignResponse {
822
988
  }
823
989
  /** Sent when status of the campaign is changed from "Archived" to "Active" */
824
990
  export interface Unarchived {
825
- /** ID of the campaign whose status was changed to active. */
991
+ /**
992
+ * ID of the campaign whose status was changed to active.
993
+ * @format GUID
994
+ */
826
995
  campaignId?: string;
827
996
  }
828
997
  export interface UpdateTitleRequest {
829
- /** ID of the campaign to change title of. */
998
+ /**
999
+ * ID of the campaign to change title of.
1000
+ * @format GUID
1001
+ */
830
1002
  campaignId?: string;
831
- /** New title to set. */
1003
+ /**
1004
+ * New title to set.
1005
+ * @maxLength 1000
1006
+ */
832
1007
  title?: string;
833
1008
  }
834
1009
  export interface UpdateTitleResponse {
835
1010
  }
836
1011
  export interface DeleteCampaignRequest {
837
- /** Campaign ID. */
1012
+ /**
1013
+ * Campaign ID.
1014
+ * @format GUID
1015
+ */
838
1016
  campaignId: string;
839
1017
  }
840
1018
  export interface DeleteCampaignResponse {
841
1019
  }
842
1020
  export interface ReuseCampaignRequest {
843
- /** ID of the message to be duplicated. */
1021
+ /**
1022
+ * ID of the message to be duplicated.
1023
+ * @format GUID
1024
+ */
844
1025
  campaignId: string;
845
1026
  }
846
1027
  export interface ReuseCampaignResponse {
@@ -848,9 +1029,15 @@ export interface ReuseCampaignResponse {
848
1029
  campaign?: Campaign;
849
1030
  }
850
1031
  export interface PreviewCampaignRequest {
851
- /** ID of the campaign to preview. */
1032
+ /**
1033
+ * ID of the campaign to preview.
1034
+ * @format GUID
1035
+ */
852
1036
  campaignId?: string;
853
- /** Preferred language for campaign content (optional). */
1037
+ /**
1038
+ * Preferred language for campaign content (optional).
1039
+ * @format LANGUAGE
1040
+ */
854
1041
  language?: string | null;
855
1042
  /** Values to replace campaign placeholders with (unique for each campaign). */
856
1043
  placeholders?: Record<string, PlaceholderContent>;
@@ -862,29 +1049,50 @@ export interface PreviewCampaignResponse {
862
1049
  html?: string;
863
1050
  }
864
1051
  export interface GetComposerRequest {
865
- /** Campaign ID. */
1052
+ /**
1053
+ * Campaign ID.
1054
+ * @format GUID
1055
+ */
866
1056
  campaignId?: string;
867
- /** Preferred language for campaign content (optional). */
1057
+ /**
1058
+ * Preferred language for campaign content (optional).
1059
+ * @format LANGUAGE
1060
+ */
868
1061
  language?: string | null;
869
1062
  }
870
1063
  export interface GetComposerResponse {
871
1064
  /** Composer. */
872
1065
  composer?: Composer;
873
- /** Campaign subject. */
1066
+ /**
1067
+ * Campaign subject.
1068
+ * @maxLength 1000
1069
+ */
874
1070
  emailSubject?: string;
875
- /** Campaign preheader (optional). */
1071
+ /**
1072
+ * Campaign preheader (optional).
1073
+ * @maxLength 1000
1074
+ */
876
1075
  emailPreheader?: string | null;
877
1076
  }
878
1077
  export interface UpdateComposerRequest {
879
- /** Campaign ID. */
1078
+ /**
1079
+ * Campaign ID.
1080
+ * @format GUID
1081
+ */
880
1082
  campaignId?: string;
881
1083
  /** Campaign composer. */
882
1084
  composer?: Composer;
883
1085
  /** Campaign editor type (optional, default "WEB"). */
884
1086
  campaignEditorType?: CampaignEditorType;
885
- /** Campaign subject (optional). */
1087
+ /**
1088
+ * Campaign subject (optional).
1089
+ * @maxLength 1000
1090
+ */
886
1091
  emailSubject?: string | null;
887
- /** Campaign preheader (optional). */
1092
+ /**
1093
+ * Campaign preheader (optional).
1094
+ * @maxLength 1000
1095
+ */
888
1096
  emailPreheader?: string | null;
889
1097
  }
890
1098
  /** specifies if campaign is being created and edited in web or mobile app */
@@ -898,9 +1106,15 @@ export interface CreateCampaignRequest {
898
1106
  composer?: Composer;
899
1107
  /** Campaign editor type (optional, default "WEB"). */
900
1108
  campaignEditorType?: CampaignEditorType;
901
- /** Campaign subject (optional). */
1109
+ /**
1110
+ * Campaign subject (optional).
1111
+ * @maxLength 1000
1112
+ */
902
1113
  emailSubject?: string | null;
903
- /** Campaign preheader (optional). */
1114
+ /**
1115
+ * Campaign preheader (optional).
1116
+ * @maxLength 1000
1117
+ */
904
1118
  emailPreheader?: string | null;
905
1119
  }
906
1120
  export interface CreateCampaignResponse {
@@ -908,17 +1122,29 @@ export interface CreateCampaignResponse {
908
1122
  campaign?: Campaign;
909
1123
  }
910
1124
  export interface ResendToNonOpenersRequest {
911
- /** ID of the campaign to resend. */
1125
+ /**
1126
+ * ID of the campaign to resend.
1127
+ * @format GUID
1128
+ */
912
1129
  campaignId?: string;
913
- /** Subject line to use with the resent copy of campaign. */
1130
+ /**
1131
+ * Subject line to use with the resent copy of campaign.
1132
+ * @maxLength 1000
1133
+ */
914
1134
  emailSubject?: string | null;
915
1135
  }
916
1136
  export interface ResendToNonOpenersResponse {
917
- /** ID of the newly created and resent campaign. */
1137
+ /**
1138
+ * ID of the newly created and resent campaign.
1139
+ * @format GUID
1140
+ */
918
1141
  campaignId?: string;
919
1142
  }
920
1143
  export interface GetAudienceRequest {
921
- /** Campaign ID. */
1144
+ /**
1145
+ * Campaign ID.
1146
+ * @format GUID
1147
+ */
922
1148
  campaignId: string;
923
1149
  }
924
1150
  export interface GetAudienceResponse {
@@ -926,25 +1152,51 @@ export interface GetAudienceResponse {
926
1152
  audience?: CampaignAudience;
927
1153
  }
928
1154
  export interface CampaignAudience {
929
- /** IDs of contacts to whom to send the campaign. */
1155
+ /**
1156
+ * IDs of contacts to whom to send the campaign.
1157
+ * @format GUID
1158
+ * @maxSize 100
1159
+ */
930
1160
  contactIds?: string[];
931
- /** Labels IDs. */
1161
+ /**
1162
+ * Labels IDs.
1163
+ * @maxLength 100
1164
+ * @maxSize 20
1165
+ */
932
1166
  labelIds?: string[];
933
- /** Segment IDs. */
1167
+ /**
1168
+ * Segment IDs.
1169
+ * @format GUID
1170
+ * @maxSize 20
1171
+ */
934
1172
  segmentIds?: string[];
935
1173
  /** Filter for contacts in JSON format. */
936
1174
  contactsFilter?: Record<string, any> | null;
937
- /** Contacts plain text search expression (searches in name, phone and email fields). */
1175
+ /**
1176
+ * Contacts plain text search expression (searches in name, phone and email fields).
1177
+ * @minLength 1
1178
+ * @maxLength 100
1179
+ */
938
1180
  contactsSearchTerm?: string | null;
939
1181
  /** Should "inactive" contacts be excluded or not. */
940
1182
  activeContactsOnly?: boolean;
941
1183
  }
942
1184
  export interface IdentifySenderAddressRequest {
943
- /** Email address to verify. */
1185
+ /**
1186
+ * Email address to verify.
1187
+ * @format EMAIL
1188
+ * @minLength 6
1189
+ * @maxLength 254
1190
+ */
944
1191
  emailAddress: string;
945
1192
  }
946
1193
  export interface IdentifySenderAddressResponse {
947
- /** Actual "from" address that will be used for sending emails. */
1194
+ /**
1195
+ * Actual "from" address that will be used for sending emails.
1196
+ * @format EMAIL
1197
+ * @minLength 6
1198
+ * @maxLength 254
1199
+ */
948
1200
  senderAddress?: string;
949
1201
  }
950
1202
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1020,9 +1272,15 @@ export interface ActionEvent {
1020
1272
  bodyAsJson?: string;
1021
1273
  }
1022
1274
  export interface MessageEnvelope {
1023
- /** App instance ID. */
1275
+ /**
1276
+ * App instance ID.
1277
+ * @format GUID
1278
+ */
1024
1279
  instanceId?: string | null;
1025
- /** Event type. */
1280
+ /**
1281
+ * Event type.
1282
+ * @maxLength 150
1283
+ */
1026
1284
  eventType?: string;
1027
1285
  /** The identification type and identity data. */
1028
1286
  identity?: IdentificationData;
@@ -1030,26 +1288,50 @@ export interface MessageEnvelope {
1030
1288
  data?: string;
1031
1289
  }
1032
1290
  export interface IdentificationData extends IdentificationDataIdOneOf {
1033
- /** ID of a site visitor that has not logged in to the site. */
1291
+ /**
1292
+ * ID of a site visitor that has not logged in to the site.
1293
+ * @format GUID
1294
+ */
1034
1295
  anonymousVisitorId?: string;
1035
- /** ID of a site visitor that has logged in to the site. */
1296
+ /**
1297
+ * ID of a site visitor that has logged in to the site.
1298
+ * @format GUID
1299
+ */
1036
1300
  memberId?: string;
1037
- /** ID of a Wix user (site owner, contributor, etc.). */
1301
+ /**
1302
+ * ID of a Wix user (site owner, contributor, etc.).
1303
+ * @format GUID
1304
+ */
1038
1305
  wixUserId?: string;
1039
- /** ID of an app. */
1306
+ /**
1307
+ * ID of an app.
1308
+ * @format GUID
1309
+ */
1040
1310
  appId?: string;
1041
1311
  /** @readonly */
1042
1312
  identityType?: WebhookIdentityType;
1043
1313
  }
1044
1314
  /** @oneof */
1045
1315
  export interface IdentificationDataIdOneOf {
1046
- /** ID of a site visitor that has not logged in to the site. */
1316
+ /**
1317
+ * ID of a site visitor that has not logged in to the site.
1318
+ * @format GUID
1319
+ */
1047
1320
  anonymousVisitorId?: string;
1048
- /** ID of a site visitor that has logged in to the site. */
1321
+ /**
1322
+ * ID of a site visitor that has logged in to the site.
1323
+ * @format GUID
1324
+ */
1049
1325
  memberId?: string;
1050
- /** ID of a Wix user (site owner, contributor, etc.). */
1326
+ /**
1327
+ * ID of a Wix user (site owner, contributor, etc.).
1328
+ * @format GUID
1329
+ */
1051
1330
  wixUserId?: string;
1052
- /** ID of an app. */
1331
+ /**
1332
+ * ID of an app.
1333
+ * @format GUID
1334
+ */
1053
1335
  appId?: string;
1054
1336
  }
1055
1337
  export declare enum WebhookIdentityType {
@@ -1059,6 +1341,117 @@ export declare enum WebhookIdentityType {
1059
1341
  WIX_USER = "WIX_USER",
1060
1342
  APP = "APP"
1061
1343
  }
1344
+ export interface ListStatisticsRequest {
1345
+ /**
1346
+ * IDs of the campaigns to retrieve (max 100 campaigns).
1347
+ * @format GUID
1348
+ * @minSize 1
1349
+ * @maxSize 100
1350
+ */
1351
+ campaignIds: string[];
1352
+ }
1353
+ export interface ListStatisticsResponse {
1354
+ /** List of statistics. */
1355
+ statistics?: CampaignStatisticsContainer[];
1356
+ }
1357
+ export interface CampaignStatisticsContainer {
1358
+ /**
1359
+ * Campaign ID.
1360
+ * @format GUID
1361
+ */
1362
+ campaignId?: string;
1363
+ /** Landing page statistics. */
1364
+ landingPage?: LandingPageStatistics;
1365
+ /** Email campaign statistics. */
1366
+ email?: DistributionStatistics;
1367
+ }
1368
+ export interface ListRecipientsRequest {
1369
+ /**
1370
+ * Campaign ID.
1371
+ * @format GUID
1372
+ */
1373
+ campaignId: string;
1374
+ /** Email activity to filter. */
1375
+ activity: RecipientsActivityEnum;
1376
+ /** Pagination options. */
1377
+ paging?: CursorPaging;
1378
+ }
1379
+ export declare enum RecipientsActivityEnum {
1380
+ UNKNOWN = "UNKNOWN",
1381
+ DELIVERED = "DELIVERED",
1382
+ OPENED = "OPENED",
1383
+ CLICKED = "CLICKED",
1384
+ BOUNCED = "BOUNCED",
1385
+ NOT_SENT = "NOT_SENT",
1386
+ SENT = "SENT",
1387
+ NOT_OPENED = "NOT_OPENED"
1388
+ }
1389
+ export interface CursorPaging {
1390
+ /**
1391
+ * Number of items to load.
1392
+ * @max 1000
1393
+ */
1394
+ limit?: number | null;
1395
+ /**
1396
+ * Pointer to the next or previous page in the list of results.
1397
+ *
1398
+ * You can get the relevant cursor token
1399
+ * from the `pagingMetadata` object in the previous call's response.
1400
+ * Not relevant for the first request.
1401
+ */
1402
+ cursor?: string | null;
1403
+ }
1404
+ export interface ListRecipientsResponse {
1405
+ /** List of recipients. */
1406
+ recipients?: CampaignRecipientDetails[];
1407
+ /** Details on the paged set of returned results. */
1408
+ pagingMetadata?: PagingMetadataV2;
1409
+ }
1410
+ export interface CampaignRecipientDetails {
1411
+ /**
1412
+ * Contact ID.
1413
+ * @format GUID
1414
+ */
1415
+ contactId?: string;
1416
+ /** Date and time of the last activity. */
1417
+ lastActivityDate?: Date | null;
1418
+ /**
1419
+ * Primary email address of the contact.
1420
+ * @format EMAIL
1421
+ */
1422
+ emailAddress?: string;
1423
+ /**
1424
+ * Full name of the contact (optional).
1425
+ * @maxLength 100
1426
+ */
1427
+ fullName?: string | null;
1428
+ /** Is this contact currently deleted from the site or not. */
1429
+ contactDeleted?: boolean;
1430
+ }
1431
+ export interface PagingMetadataV2 {
1432
+ /** Number of items returned in the response. */
1433
+ count?: number | null;
1434
+ /** Offset that was requested. */
1435
+ offset?: number | null;
1436
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1437
+ total?: number | null;
1438
+ /** Flag that indicates the server failed to calculate the `total` field. */
1439
+ tooManyToCount?: boolean | null;
1440
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1441
+ cursors?: Cursors;
1442
+ }
1443
+ export interface Cursors {
1444
+ /**
1445
+ * Cursor string pointing to the next page in the list of results.
1446
+ * @maxLength 16000
1447
+ */
1448
+ next?: string | null;
1449
+ /**
1450
+ * Cursor pointing to the previous page in the list of results.
1451
+ * @maxLength 16000
1452
+ */
1453
+ prev?: string | null;
1454
+ }
1062
1455
  export interface ValidateLinkResponseNonNullableFields {
1063
1456
  valid: boolean;
1064
1457
  }
@@ -1077,22 +1470,6 @@ interface DistributionStatisticsNonNullableFields {
1077
1470
  complained: number;
1078
1471
  notSent: number;
1079
1472
  }
1080
- interface CampaignStatisticsContainerNonNullableFields {
1081
- campaignId: string;
1082
- landingPage?: LandingPageStatisticsNonNullableFields;
1083
- email?: DistributionStatisticsNonNullableFields;
1084
- }
1085
- export interface ListStatisticsResponseNonNullableFields {
1086
- statistics: CampaignStatisticsContainerNonNullableFields[];
1087
- }
1088
- interface CampaignRecipientDetailsNonNullableFields {
1089
- contactId: string;
1090
- emailAddress: string;
1091
- contactDeleted: boolean;
1092
- }
1093
- export interface ListRecipientsResponseNonNullableFields {
1094
- recipients: CampaignRecipientDetailsNonNullableFields[];
1095
- }
1096
1473
  interface TotalStatisticsNonNullableFields {
1097
1474
  mailsSent: number;
1098
1475
  opened: number;
@@ -1147,4 +1524,20 @@ export interface GetAudienceResponseNonNullableFields {
1147
1524
  export interface IdentifySenderAddressResponseNonNullableFields {
1148
1525
  senderAddress: string;
1149
1526
  }
1527
+ interface CampaignStatisticsContainerNonNullableFields {
1528
+ campaignId: string;
1529
+ landingPage?: LandingPageStatisticsNonNullableFields;
1530
+ email?: DistributionStatisticsNonNullableFields;
1531
+ }
1532
+ export interface ListStatisticsResponseNonNullableFields {
1533
+ statistics: CampaignStatisticsContainerNonNullableFields[];
1534
+ }
1535
+ interface CampaignRecipientDetailsNonNullableFields {
1536
+ contactId: string;
1537
+ emailAddress: string;
1538
+ contactDeleted: boolean;
1539
+ }
1540
+ export interface ListRecipientsResponseNonNullableFields {
1541
+ recipients: CampaignRecipientDetailsNonNullableFields[];
1542
+ }
1150
1543
  export {};