@wix/auto_sdk_email-marketing_campaigns 1.0.5 → 1.0.6

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 +72 -192
  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 +37 -37
  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 +653 -291
  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 +851 -433
  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 +69 -189
  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 +37 -37
  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 +653 -291
  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 +851 -433
  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 +72 -192
  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 +37 -37
  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 +653 -291
  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 +851 -433
  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 +69 -189
  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 +37 -37
  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 +653 -291
  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 +851 -433
  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,173 +221,315 @@ 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
  }
365
+ export interface GetPlaceholderKeysRequest {
366
+ /**
367
+ * Campaign ID.
368
+ * @format GUID
369
+ */
370
+ campaignId?: string;
371
+ }
372
+ export interface GetPlaceholderKeysResponse {
373
+ /** Keys of placeholders used in the campaign. */
374
+ placeholderKeys?: string[];
375
+ }
376
+ export interface GetDefaultComponentsRequest {
377
+ }
378
+ export interface GetDefaultComponentsResponse {
379
+ footer?: Record<string, any> | null;
380
+ logo?: Record<string, any> | null;
381
+ follow?: Record<string, any> | null;
382
+ }
383
+ export interface EstimateFilterSizeRequest {
384
+ /** Contacts filter expression. */
385
+ filter?: Record<string, any> | null;
386
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
387
+ activeContactsOnly?: boolean;
388
+ /**
389
+ * Contacts plain text search expression (searches in name, phone and email fields).
390
+ * @minLength 1
391
+ * @maxLength 100
392
+ */
393
+ search?: string | null;
394
+ }
395
+ export interface EstimateFilterSizeResponse {
396
+ /** Mailing list size estimation. */
397
+ estimation?: number;
398
+ }
399
+ export interface EstimateAudienceSizeRequest {
400
+ /**
401
+ * Contact IDs of a campaign audience.
402
+ * @format GUID
403
+ */
404
+ contactIds?: string[];
405
+ /** Label IDs of a campaign audience. */
406
+ labelIds?: string[];
407
+ /** Contacts filter expression (json). */
408
+ contactsFilter?: Record<string, any> | null;
409
+ /**
410
+ * Contacts plain text search expression (searches in name, phone and email fields).
411
+ * @minLength 1
412
+ * @maxLength 100
413
+ */
414
+ search?: string | null;
415
+ /**
416
+ * Segment ids of a campaign audience.
417
+ * @format GUID
418
+ */
419
+ segmentIds?: string[];
420
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
421
+ activeContactsOnly?: boolean;
422
+ /**
423
+ * Id of a campaign that is to be resent.
424
+ * @format GUID
425
+ */
426
+ resendCampaignId?: string | null;
427
+ /** Should total number of contacts in provided audience be returned or not (default value "false"). */
428
+ withTotal?: boolean;
429
+ }
430
+ export interface EstimateAudienceSizeResponse {
431
+ /** Audience size (estimated number of emails to be sent). */
432
+ estimation?: number;
433
+ /** Total number of contacts in provided audience (optional). */
434
+ total?: number | null;
435
+ }
436
+ export interface ReconcileContactRequest {
437
+ /**
438
+ * Email address of the contact.
439
+ * @format EMAIL
440
+ */
441
+ emailAddress?: string;
442
+ }
443
+ export interface ReconcileContactResponse {
444
+ /** Created or retrieved contact. */
445
+ contact?: Contact;
446
+ }
447
+ export interface Contact {
448
+ /**
449
+ * Unique ID of the contact entity.
450
+ * @format GUID
451
+ */
452
+ id?: string;
453
+ /**
454
+ * Primary email address of the contact.
455
+ * @format EMAIL
456
+ */
457
+ emailAddress?: string;
458
+ /**
459
+ * Full name of the contact (optional).
460
+ * @maxLength 100
461
+ */
462
+ fullName?: string | null;
463
+ /**
464
+ * Profile picture of the contact (optional).
465
+ * @format WEB_URL
466
+ * @maxLength 2048
467
+ */
468
+ pictureUrl?: string | null;
469
+ }
470
+ export interface SearchContactsRequest {
471
+ /**
472
+ * Text to search contacts by - can search by name or email address.
473
+ * @maxLength 100
474
+ */
475
+ searchTerm?: string;
476
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
477
+ activeContactsOnly?: boolean;
478
+ /**
479
+ * Page size (default 50, max 1000).
480
+ * @max 1000
481
+ */
482
+ pageSize?: number | null;
483
+ }
484
+ export interface SearchContactsResponse {
485
+ /** Search results. */
486
+ contacts?: Contact[];
487
+ }
488
+ export interface GetLabelsRequest {
489
+ /** Should "inactive" contacts be excluded or not (default value "false"). */
490
+ activeContactsOnly?: boolean;
491
+ }
492
+ export interface GetLabelsResponse {
493
+ /** Returned labels with contact counts. */
494
+ labels?: Label[];
495
+ }
496
+ export interface Label {
497
+ /**
498
+ * Unique ID of the label entity.
499
+ * @maxLength 100
500
+ */
501
+ id?: string;
502
+ /**
503
+ * Name of the label.
504
+ * @maxLength 100
505
+ */
506
+ name?: string;
507
+ /** Amount of contacts assigned to the label. */
508
+ contactsCount?: number;
509
+ }
510
+ export interface SubscribeFromLandingPageRequest {
511
+ /**
512
+ * Campaign ID that the subscription is happening from.
513
+ * @format GUID
514
+ */
515
+ campaignId?: string;
516
+ /**
517
+ * Email address that is entered into subscription field.
518
+ * @format EMAIL
519
+ */
520
+ emailAddress?: string;
521
+ /** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
522
+ consent?: boolean;
523
+ }
524
+ export interface SubscribeFromLandingPageResponse {
525
+ /** @format GUID */
526
+ contactId?: string;
527
+ }
483
528
  export interface GetCampaignRequest {
484
- /** Campaign ID. */
529
+ /**
530
+ * Campaign ID.
531
+ * @format GUID
532
+ */
485
533
  campaignId: string;
486
534
  /**
487
535
  * Whether a returned campaign object should include `publishingData.statistics`.
@@ -537,7 +585,10 @@ export interface CountCampaignsResponse {
537
585
  archived?: number;
538
586
  }
539
587
  export interface CreateFromTemplateRequest {
540
- /** ID of the template to fork. */
588
+ /**
589
+ * ID of the template to fork.
590
+ * @format GUID
591
+ */
541
592
  templateId?: string;
542
593
  /** Values to replace template placeholders with (unique for each template). */
543
594
  variables?: Record<string, string>;
@@ -549,9 +600,15 @@ export interface CreateFromTemplateResponse {
549
600
  campaign?: Campaign;
550
601
  }
551
602
  export interface CreateUserTemplateRequest {
552
- /** ID of campaign to create template from. */
603
+ /**
604
+ * ID of campaign to create template from.
605
+ * @format GUID
606
+ */
553
607
  campaignId?: string;
554
- /** Title of template. */
608
+ /**
609
+ * Title of template.
610
+ * @maxLength 1000
611
+ */
555
612
  title?: string | null;
556
613
  }
557
614
  export interface CreateUserTemplateResponse {
@@ -559,7 +616,10 @@ export interface CreateUserTemplateResponse {
559
616
  campaign?: Campaign;
560
617
  }
561
618
  export interface CreateFromUserTemplateRequest {
562
- /** ID of the user template campaign to use. */
619
+ /**
620
+ * ID of the user template campaign to use.
621
+ * @format GUID
622
+ */
563
623
  campaignId?: string;
564
624
  }
565
625
  export interface CreateFromUserTemplateResponse {
@@ -567,20 +627,30 @@ export interface CreateFromUserTemplateResponse {
567
627
  campaign?: Campaign;
568
628
  }
569
629
  export interface PublishCampaignRequest {
570
- /** Campaign ID */
630
+ /**
631
+ * Campaign ID
632
+ * @format GUID
633
+ */
571
634
  campaignId: string;
572
635
  /** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
573
636
  emailDistributionOptions?: EmailDistributionOptions;
574
637
  }
575
638
  export interface EmailDistributionOptions {
576
- /** The subject line for the email campaign, which appears in recipients’ inboxes. */
639
+ /**
640
+ * The subject line for the email campaign, which appears in recipients’ inboxes.
641
+ * @maxLength 1000
642
+ */
577
643
  emailSubject?: string | null;
578
644
  /** Contact label IDs. */
579
645
  labelIds?: string[];
580
- /** IDs of contacts to whom to send out the campaign. */
646
+ /**
647
+ * IDs of contacts to whom to send out the campaign.
648
+ * @format GUID
649
+ */
581
650
  contactIds?: string[];
582
651
  /**
583
652
  * Filter ids to send campaign to (unsupported).
653
+ * @format GUID
584
654
  * @deprecated Filter ids to send campaign to (unsupported).
585
655
  * @replacedBy contacts_filter
586
656
  * @targetRemovalDate 2023-10-10
@@ -594,23 +664,39 @@ export interface PublishCampaignResponse {
594
664
  publishingData?: PublishingData;
595
665
  }
596
666
  export interface Rejected {
597
- /** ID of the campaign that was rejected. */
667
+ /**
668
+ * ID of the campaign that was rejected.
669
+ * @format GUID
670
+ */
598
671
  campaignId?: string;
599
672
  }
600
673
  export interface Published {
601
- /** ID of the campaign that was published. */
674
+ /**
675
+ * ID of the campaign that was published.
676
+ * @format GUID
677
+ */
602
678
  campaignId?: string;
603
- /** Campaign landing page URL. */
679
+ /**
680
+ * Campaign landing page URL.
681
+ * @format WEB_URL
682
+ * @maxLength 2048
683
+ */
604
684
  landingPageUrl?: string;
605
685
  /** Estimation of recipient list size (optional). */
606
686
  mailingListSizeEstimate?: number | null;
607
687
  }
608
688
  export interface Terminated {
609
- /** ID of the campaign that was terminated. */
689
+ /**
690
+ * ID of the campaign that was terminated.
691
+ * @format GUID
692
+ */
610
693
  campaignId?: string;
611
694
  }
612
695
  export interface Distributed {
613
- /** ID of the campaign that was distributed. */
696
+ /**
697
+ * ID of the campaign that was distributed.
698
+ * @format GUID
699
+ */
614
700
  campaignId?: string;
615
701
  }
616
702
  export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf {
@@ -631,16 +717,28 @@ export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf
631
717
  * Indicates a permanent error sending your email. For example, the email address does not exist.
632
718
  */
633
719
  hardBounce?: HardBounce;
634
- /** Campaign ID. */
720
+ /**
721
+ * Campaign ID.
722
+ * @format GUID
723
+ */
635
724
  campaignId?: string;
636
- /** [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient. */
725
+ /**
726
+ * [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient.
727
+ * @format GUID
728
+ */
637
729
  contactId?: string;
638
- /** Email address of a recipient. */
730
+ /**
731
+ * Email address of a recipient.
732
+ * @format EMAIL
733
+ */
639
734
  recipientEmailAddress?: string;
640
735
  /** Date and time of the event. */
641
736
  timestamp?: Date | null;
642
737
  activityType?: ActivityType;
643
- /** email metadata */
738
+ /**
739
+ * email metadata
740
+ * @maxSize 20
741
+ */
644
742
  metadata?: Record<string, string>;
645
743
  }
646
744
  /** @oneof */
@@ -695,7 +793,10 @@ export interface HardBounce {
695
793
  reason?: string;
696
794
  }
697
795
  export interface Scheduled {
698
- /** ID of the campaign that was scheduled. */
796
+ /**
797
+ * ID of the campaign that was scheduled.
798
+ * @format GUID
799
+ */
699
800
  campaignId?: string;
700
801
  /** The timestamp campaign is scheduled for. */
701
802
  sendAt?: Date | null;
@@ -703,11 +804,20 @@ export interface Scheduled {
703
804
  rescheduled?: boolean;
704
805
  }
705
806
  export interface SendTestRequest {
706
- /** Campaign ID. */
807
+ /**
808
+ * Campaign ID.
809
+ * @format GUID
810
+ */
707
811
  campaignId: string;
708
- /** Email subject. */
812
+ /**
813
+ * Email subject.
814
+ * @maxLength 1000
815
+ */
709
816
  emailSubject?: string | null;
710
- /** Recipient email address. */
817
+ /**
818
+ * Recipient email address.
819
+ * @format EMAIL
820
+ */
711
821
  toEmailAddress: string;
712
822
  }
713
823
  export interface PlaceholderContent extends PlaceholderContentValueOneOf {
@@ -746,9 +856,15 @@ export interface Html {
746
856
  * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
747
857
  */
748
858
  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. */
859
+ /**
860
+ * 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.
861
+ * @format DECIMAL_VALUE
862
+ */
750
863
  value?: string;
751
- /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
864
+ /**
865
+ * Currency code. Must be valid ISO 4217 currency code (e.g., USD).
866
+ * @format CURRENCY
867
+ */
752
868
  currency?: string;
753
869
  /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
754
870
  formattedValue?: string | null;
@@ -780,23 +896,33 @@ export interface Decimal {
780
896
  /**
781
897
  * when converted from Double, has a limitation of max 16 digits (including fractional part)
782
898
  * highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
899
+ * @format DECIMAL_VALUE
783
900
  */
784
901
  value?: string;
785
902
  }
786
903
  export interface SendTestResponse {
787
904
  }
788
905
  export interface PauseSchedulingRequest {
789
- /** Campaign ID. */
906
+ /**
907
+ * Campaign ID.
908
+ * @format GUID
909
+ */
790
910
  campaignId: string;
791
911
  }
792
912
  export interface PauseSchedulingResponse {
793
913
  }
794
914
  export interface Paused {
795
- /** ID of the campaign that was paused. */
915
+ /**
916
+ * ID of the campaign that was paused.
917
+ * @format GUID
918
+ */
796
919
  campaignId?: string;
797
920
  }
798
921
  export interface RescheduleRequest {
799
- /** ID of the campaign to reschedule. */
922
+ /**
923
+ * ID of the campaign to reschedule.
924
+ * @format GUID
925
+ */
800
926
  campaignId: string;
801
927
  /** New time for sending out the campaign. */
802
928
  sendAt: Date | null;
@@ -804,43 +930,67 @@ export interface RescheduleRequest {
804
930
  export interface RescheduleResponse {
805
931
  }
806
932
  export interface ArchiveCampaignRequest {
807
- /** ID of the campaign to archive. */
933
+ /**
934
+ * ID of the campaign to archive.
935
+ * @format GUID
936
+ */
808
937
  campaignId?: string;
809
938
  }
810
939
  export interface ArchiveCampaignResponse {
811
940
  }
812
941
  /** Sent when status of the campaign is changed from "Active" to "Archived" */
813
942
  export interface Archived {
814
- /** ID of the campaign that was archived. */
943
+ /**
944
+ * ID of the campaign that was archived.
945
+ * @format GUID
946
+ */
815
947
  campaignId?: string;
816
948
  }
817
949
  export interface UnarchiveCampaignRequest {
818
- /** ID of the campaign to unarchive. */
950
+ /**
951
+ * ID of the campaign to unarchive.
952
+ * @format GUID
953
+ */
819
954
  campaignId?: string;
820
955
  }
821
956
  export interface UnarchiveCampaignResponse {
822
957
  }
823
958
  /** Sent when status of the campaign is changed from "Archived" to "Active" */
824
959
  export interface Unarchived {
825
- /** ID of the campaign whose status was changed to active. */
960
+ /**
961
+ * ID of the campaign whose status was changed to active.
962
+ * @format GUID
963
+ */
826
964
  campaignId?: string;
827
965
  }
828
966
  export interface UpdateTitleRequest {
829
- /** ID of the campaign to change title of. */
967
+ /**
968
+ * ID of the campaign to change title of.
969
+ * @format GUID
970
+ */
830
971
  campaignId?: string;
831
- /** New title to set. */
972
+ /**
973
+ * New title to set.
974
+ * @maxLength 1000
975
+ */
832
976
  title?: string;
833
977
  }
834
978
  export interface UpdateTitleResponse {
835
979
  }
836
980
  export interface DeleteCampaignRequest {
837
- /** Campaign ID. */
981
+ /**
982
+ * Campaign ID.
983
+ * @format GUID
984
+ */
838
985
  campaignId: string;
839
986
  }
840
987
  export interface DeleteCampaignResponse {
841
988
  }
842
989
  export interface ReuseCampaignRequest {
843
- /** ID of the message to be duplicated. */
990
+ /**
991
+ * ID of the message to be duplicated.
992
+ * @format GUID
993
+ */
844
994
  campaignId: string;
845
995
  }
846
996
  export interface ReuseCampaignResponse {
@@ -848,9 +998,15 @@ export interface ReuseCampaignResponse {
848
998
  campaign?: Campaign;
849
999
  }
850
1000
  export interface PreviewCampaignRequest {
851
- /** ID of the campaign to preview. */
1001
+ /**
1002
+ * ID of the campaign to preview.
1003
+ * @format GUID
1004
+ */
852
1005
  campaignId?: string;
853
- /** Preferred language for campaign content (optional). */
1006
+ /**
1007
+ * Preferred language for campaign content (optional).
1008
+ * @format LANGUAGE
1009
+ */
854
1010
  language?: string | null;
855
1011
  /** Values to replace campaign placeholders with (unique for each campaign). */
856
1012
  placeholders?: Record<string, PlaceholderContent>;
@@ -862,29 +1018,50 @@ export interface PreviewCampaignResponse {
862
1018
  html?: string;
863
1019
  }
864
1020
  export interface GetComposerRequest {
865
- /** Campaign ID. */
1021
+ /**
1022
+ * Campaign ID.
1023
+ * @format GUID
1024
+ */
866
1025
  campaignId?: string;
867
- /** Preferred language for campaign content (optional). */
1026
+ /**
1027
+ * Preferred language for campaign content (optional).
1028
+ * @format LANGUAGE
1029
+ */
868
1030
  language?: string | null;
869
1031
  }
870
1032
  export interface GetComposerResponse {
871
1033
  /** Composer. */
872
1034
  composer?: Composer;
873
- /** Campaign subject. */
1035
+ /**
1036
+ * Campaign subject.
1037
+ * @maxLength 1000
1038
+ */
874
1039
  emailSubject?: string;
875
- /** Campaign preheader (optional). */
1040
+ /**
1041
+ * Campaign preheader (optional).
1042
+ * @maxLength 1000
1043
+ */
876
1044
  emailPreheader?: string | null;
877
1045
  }
878
1046
  export interface UpdateComposerRequest {
879
- /** Campaign ID. */
1047
+ /**
1048
+ * Campaign ID.
1049
+ * @format GUID
1050
+ */
880
1051
  campaignId?: string;
881
1052
  /** Campaign composer. */
882
1053
  composer?: Composer;
883
1054
  /** Campaign editor type (optional, default "WEB"). */
884
1055
  campaignEditorType?: CampaignEditorType;
885
- /** Campaign subject (optional). */
1056
+ /**
1057
+ * Campaign subject (optional).
1058
+ * @maxLength 1000
1059
+ */
886
1060
  emailSubject?: string | null;
887
- /** Campaign preheader (optional). */
1061
+ /**
1062
+ * Campaign preheader (optional).
1063
+ * @maxLength 1000
1064
+ */
888
1065
  emailPreheader?: string | null;
889
1066
  }
890
1067
  /** specifies if campaign is being created and edited in web or mobile app */
@@ -898,9 +1075,15 @@ export interface CreateCampaignRequest {
898
1075
  composer?: Composer;
899
1076
  /** Campaign editor type (optional, default "WEB"). */
900
1077
  campaignEditorType?: CampaignEditorType;
901
- /** Campaign subject (optional). */
1078
+ /**
1079
+ * Campaign subject (optional).
1080
+ * @maxLength 1000
1081
+ */
902
1082
  emailSubject?: string | null;
903
- /** Campaign preheader (optional). */
1083
+ /**
1084
+ * Campaign preheader (optional).
1085
+ * @maxLength 1000
1086
+ */
904
1087
  emailPreheader?: string | null;
905
1088
  }
906
1089
  export interface CreateCampaignResponse {
@@ -908,17 +1091,29 @@ export interface CreateCampaignResponse {
908
1091
  campaign?: Campaign;
909
1092
  }
910
1093
  export interface ResendToNonOpenersRequest {
911
- /** ID of the campaign to resend. */
1094
+ /**
1095
+ * ID of the campaign to resend.
1096
+ * @format GUID
1097
+ */
912
1098
  campaignId?: string;
913
- /** Subject line to use with the resent copy of campaign. */
1099
+ /**
1100
+ * Subject line to use with the resent copy of campaign.
1101
+ * @maxLength 1000
1102
+ */
914
1103
  emailSubject?: string | null;
915
1104
  }
916
1105
  export interface ResendToNonOpenersResponse {
917
- /** ID of the newly created and resent campaign. */
1106
+ /**
1107
+ * ID of the newly created and resent campaign.
1108
+ * @format GUID
1109
+ */
918
1110
  campaignId?: string;
919
1111
  }
920
1112
  export interface GetAudienceRequest {
921
- /** Campaign ID. */
1113
+ /**
1114
+ * Campaign ID.
1115
+ * @format GUID
1116
+ */
922
1117
  campaignId: string;
923
1118
  }
924
1119
  export interface GetAudienceResponse {
@@ -926,25 +1121,51 @@ export interface GetAudienceResponse {
926
1121
  audience?: CampaignAudience;
927
1122
  }
928
1123
  export interface CampaignAudience {
929
- /** IDs of contacts to whom to send the campaign. */
1124
+ /**
1125
+ * IDs of contacts to whom to send the campaign.
1126
+ * @format GUID
1127
+ * @maxSize 100
1128
+ */
930
1129
  contactIds?: string[];
931
- /** Labels IDs. */
1130
+ /**
1131
+ * Labels IDs.
1132
+ * @maxLength 100
1133
+ * @maxSize 20
1134
+ */
932
1135
  labelIds?: string[];
933
- /** Segment IDs. */
1136
+ /**
1137
+ * Segment IDs.
1138
+ * @format GUID
1139
+ * @maxSize 20
1140
+ */
934
1141
  segmentIds?: string[];
935
1142
  /** Filter for contacts in JSON format. */
936
1143
  contactsFilter?: Record<string, any> | null;
937
- /** Contacts plain text search expression (searches in name, phone and email fields). */
1144
+ /**
1145
+ * Contacts plain text search expression (searches in name, phone and email fields).
1146
+ * @minLength 1
1147
+ * @maxLength 100
1148
+ */
938
1149
  contactsSearchTerm?: string | null;
939
1150
  /** Should "inactive" contacts be excluded or not. */
940
1151
  activeContactsOnly?: boolean;
941
1152
  }
942
1153
  export interface IdentifySenderAddressRequest {
943
- /** Email address to verify. */
1154
+ /**
1155
+ * Email address to verify.
1156
+ * @format EMAIL
1157
+ * @minLength 6
1158
+ * @maxLength 254
1159
+ */
944
1160
  emailAddress: string;
945
1161
  }
946
1162
  export interface IdentifySenderAddressResponse {
947
- /** Actual "from" address that will be used for sending emails. */
1163
+ /**
1164
+ * Actual "from" address that will be used for sending emails.
1165
+ * @format EMAIL
1166
+ * @minLength 6
1167
+ * @maxLength 254
1168
+ */
948
1169
  senderAddress?: string;
949
1170
  }
950
1171
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1020,9 +1241,15 @@ export interface ActionEvent {
1020
1241
  bodyAsJson?: string;
1021
1242
  }
1022
1243
  export interface MessageEnvelope {
1023
- /** App instance ID. */
1244
+ /**
1245
+ * App instance ID.
1246
+ * @format GUID
1247
+ */
1024
1248
  instanceId?: string | null;
1025
- /** Event type. */
1249
+ /**
1250
+ * Event type.
1251
+ * @maxLength 150
1252
+ */
1026
1253
  eventType?: string;
1027
1254
  /** The identification type and identity data. */
1028
1255
  identity?: IdentificationData;
@@ -1030,26 +1257,50 @@ export interface MessageEnvelope {
1030
1257
  data?: string;
1031
1258
  }
1032
1259
  export interface IdentificationData extends IdentificationDataIdOneOf {
1033
- /** ID of a site visitor that has not logged in to the site. */
1260
+ /**
1261
+ * ID of a site visitor that has not logged in to the site.
1262
+ * @format GUID
1263
+ */
1034
1264
  anonymousVisitorId?: string;
1035
- /** ID of a site visitor that has logged in to the site. */
1265
+ /**
1266
+ * ID of a site visitor that has logged in to the site.
1267
+ * @format GUID
1268
+ */
1036
1269
  memberId?: string;
1037
- /** ID of a Wix user (site owner, contributor, etc.). */
1270
+ /**
1271
+ * ID of a Wix user (site owner, contributor, etc.).
1272
+ * @format GUID
1273
+ */
1038
1274
  wixUserId?: string;
1039
- /** ID of an app. */
1275
+ /**
1276
+ * ID of an app.
1277
+ * @format GUID
1278
+ */
1040
1279
  appId?: string;
1041
1280
  /** @readonly */
1042
1281
  identityType?: WebhookIdentityType;
1043
1282
  }
1044
1283
  /** @oneof */
1045
1284
  export interface IdentificationDataIdOneOf {
1046
- /** ID of a site visitor that has not logged in to the site. */
1285
+ /**
1286
+ * ID of a site visitor that has not logged in to the site.
1287
+ * @format GUID
1288
+ */
1047
1289
  anonymousVisitorId?: string;
1048
- /** ID of a site visitor that has logged in to the site. */
1290
+ /**
1291
+ * ID of a site visitor that has logged in to the site.
1292
+ * @format GUID
1293
+ */
1049
1294
  memberId?: string;
1050
- /** ID of a Wix user (site owner, contributor, etc.). */
1295
+ /**
1296
+ * ID of a Wix user (site owner, contributor, etc.).
1297
+ * @format GUID
1298
+ */
1051
1299
  wixUserId?: string;
1052
- /** ID of an app. */
1300
+ /**
1301
+ * ID of an app.
1302
+ * @format GUID
1303
+ */
1053
1304
  appId?: string;
1054
1305
  }
1055
1306
  export declare enum WebhookIdentityType {
@@ -1059,6 +1310,117 @@ export declare enum WebhookIdentityType {
1059
1310
  WIX_USER = "WIX_USER",
1060
1311
  APP = "APP"
1061
1312
  }
1313
+ export interface ListStatisticsRequest {
1314
+ /**
1315
+ * IDs of the campaigns to retrieve (max 100 campaigns).
1316
+ * @format GUID
1317
+ * @minSize 1
1318
+ * @maxSize 100
1319
+ */
1320
+ campaignIds: string[];
1321
+ }
1322
+ export interface ListStatisticsResponse {
1323
+ /** List of statistics. */
1324
+ statistics?: CampaignStatisticsContainer[];
1325
+ }
1326
+ export interface CampaignStatisticsContainer {
1327
+ /**
1328
+ * Campaign ID.
1329
+ * @format GUID
1330
+ */
1331
+ campaignId?: string;
1332
+ /** Landing page statistics. */
1333
+ landingPage?: LandingPageStatistics;
1334
+ /** Email campaign statistics. */
1335
+ email?: DistributionStatistics;
1336
+ }
1337
+ export interface ListRecipientsRequest {
1338
+ /**
1339
+ * Campaign ID.
1340
+ * @format GUID
1341
+ */
1342
+ campaignId: string;
1343
+ /** Email activity to filter. */
1344
+ activity: RecipientsActivityEnum;
1345
+ /** Pagination options. */
1346
+ paging?: CursorPaging;
1347
+ }
1348
+ export declare enum RecipientsActivityEnum {
1349
+ UNKNOWN = "UNKNOWN",
1350
+ DELIVERED = "DELIVERED",
1351
+ OPENED = "OPENED",
1352
+ CLICKED = "CLICKED",
1353
+ BOUNCED = "BOUNCED",
1354
+ NOT_SENT = "NOT_SENT",
1355
+ SENT = "SENT",
1356
+ NOT_OPENED = "NOT_OPENED"
1357
+ }
1358
+ export interface CursorPaging {
1359
+ /**
1360
+ * Number of items to load.
1361
+ * @max 1000
1362
+ */
1363
+ limit?: number | null;
1364
+ /**
1365
+ * Pointer to the next or previous page in the list of results.
1366
+ *
1367
+ * You can get the relevant cursor token
1368
+ * from the `pagingMetadata` object in the previous call's response.
1369
+ * Not relevant for the first request.
1370
+ */
1371
+ cursor?: string | null;
1372
+ }
1373
+ export interface ListRecipientsResponse {
1374
+ /** List of recipients. */
1375
+ recipients?: CampaignRecipientDetails[];
1376
+ /** Details on the paged set of returned results. */
1377
+ pagingMetadata?: PagingMetadataV2;
1378
+ }
1379
+ export interface CampaignRecipientDetails {
1380
+ /**
1381
+ * Contact ID.
1382
+ * @format GUID
1383
+ */
1384
+ contactId?: string;
1385
+ /** Date and time of the last activity. */
1386
+ lastActivityDate?: Date | null;
1387
+ /**
1388
+ * Primary email address of the contact.
1389
+ * @format EMAIL
1390
+ */
1391
+ emailAddress?: string;
1392
+ /**
1393
+ * Full name of the contact (optional).
1394
+ * @maxLength 100
1395
+ */
1396
+ fullName?: string | null;
1397
+ /** Is this contact currently deleted from the site or not. */
1398
+ contactDeleted?: boolean;
1399
+ }
1400
+ export interface PagingMetadataV2 {
1401
+ /** Number of items returned in the response. */
1402
+ count?: number | null;
1403
+ /** Offset that was requested. */
1404
+ offset?: number | null;
1405
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1406
+ total?: number | null;
1407
+ /** Flag that indicates the server failed to calculate the `total` field. */
1408
+ tooManyToCount?: boolean | null;
1409
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1410
+ cursors?: Cursors;
1411
+ }
1412
+ export interface Cursors {
1413
+ /**
1414
+ * Cursor string pointing to the next page in the list of results.
1415
+ * @maxLength 16000
1416
+ */
1417
+ next?: string | null;
1418
+ /**
1419
+ * Cursor pointing to the previous page in the list of results.
1420
+ * @maxLength 16000
1421
+ */
1422
+ prev?: string | null;
1423
+ }
1062
1424
  export interface ValidateLinkResponseNonNullableFields {
1063
1425
  valid: boolean;
1064
1426
  }
@@ -1077,22 +1439,6 @@ interface DistributionStatisticsNonNullableFields {
1077
1439
  complained: number;
1078
1440
  notSent: number;
1079
1441
  }
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
1442
  interface TotalStatisticsNonNullableFields {
1097
1443
  mailsSent: number;
1098
1444
  opened: number;
@@ -1147,4 +1493,20 @@ export interface GetAudienceResponseNonNullableFields {
1147
1493
  export interface IdentifySenderAddressResponseNonNullableFields {
1148
1494
  senderAddress: string;
1149
1495
  }
1496
+ interface CampaignStatisticsContainerNonNullableFields {
1497
+ campaignId: string;
1498
+ landingPage?: LandingPageStatisticsNonNullableFields;
1499
+ email?: DistributionStatisticsNonNullableFields;
1500
+ }
1501
+ export interface ListStatisticsResponseNonNullableFields {
1502
+ statistics: CampaignStatisticsContainerNonNullableFields[];
1503
+ }
1504
+ interface CampaignRecipientDetailsNonNullableFields {
1505
+ contactId: string;
1506
+ emailAddress: string;
1507
+ contactDeleted: boolean;
1508
+ }
1509
+ export interface ListRecipientsResponseNonNullableFields {
1510
+ recipients: CampaignRecipientDetailsNonNullableFields[];
1511
+ }
1150
1512
  export {};