@wix/auto_sdk_email-marketing_campaigns 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +34 -34
- package/build/cjs/index.js +170 -170
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +538 -538
- package/build/cjs/index.typings.js +154 -154
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +481 -481
- package/build/cjs/meta.js +134 -134
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +34 -34
- package/build/es/index.mjs +170 -170
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +538 -538
- package/build/es/index.typings.mjs +154 -154
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +481 -481
- package/build/es/meta.mjs +134 -134
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +34 -34
- package/build/internal/cjs/index.js +170 -170
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +538 -538
- package/build/internal/cjs/index.typings.js +154 -154
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +481 -481
- package/build/internal/cjs/meta.js +134 -134
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +34 -34
- package/build/internal/es/index.mjs +170 -170
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +538 -538
- package/build/internal/es/index.typings.mjs +154 -154
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +481 -481
- package/build/internal/es/meta.mjs +134 -134
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -213,361 +213,23 @@ declare enum CampaignTypeEnum {
|
|
|
213
213
|
}
|
|
214
214
|
/** @enumType */
|
|
215
215
|
type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
216
|
-
interface
|
|
217
|
-
/**
|
|
218
|
-
* rule ID in automations
|
|
219
|
-
* @format GUID
|
|
220
|
-
*/
|
|
221
|
-
automationRuleId?: string;
|
|
222
|
-
/**
|
|
223
|
-
* template ID configured for the automation
|
|
224
|
-
* @format GUID
|
|
225
|
-
*/
|
|
226
|
-
templateId?: string;
|
|
227
|
-
}
|
|
228
|
-
interface GetCampaignMappingResponse {
|
|
229
|
-
/** @format GUID */
|
|
230
|
-
campaignId?: string;
|
|
231
|
-
}
|
|
232
|
-
interface UpsertTranslationRequest {
|
|
233
|
-
/**
|
|
234
|
-
* Campaign ID.
|
|
235
|
-
* @format GUID
|
|
236
|
-
*/
|
|
237
|
-
campaignId?: string;
|
|
238
|
-
/** Composer data. */
|
|
239
|
-
composer?: Composer;
|
|
240
|
-
/**
|
|
241
|
-
* Translation language (optional, default value "EN").
|
|
242
|
-
* @format LANGUAGE
|
|
243
|
-
*/
|
|
244
|
-
language?: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* For BI event [36:1031] only (optional, default value "n/a").
|
|
247
|
-
* @format GUID
|
|
248
|
-
*/
|
|
249
|
-
automationRuleId?: string | null;
|
|
250
|
-
/** Should campaign also be published or not (default value "false"). */
|
|
251
|
-
publish?: boolean;
|
|
252
|
-
/**
|
|
253
|
-
* Campaign subject (optional).
|
|
254
|
-
* @maxLength 1000
|
|
255
|
-
*/
|
|
256
|
-
emailSubject?: string | null;
|
|
257
|
-
/**
|
|
258
|
-
* Campaign preheader (optional).
|
|
259
|
-
* @maxLength 1000
|
|
260
|
-
*/
|
|
261
|
-
emailPreheader?: string | null;
|
|
262
|
-
}
|
|
263
|
-
interface Composer {
|
|
264
|
-
/**
|
|
265
|
-
* Internal data structure for editor/viewer to render the campaign.
|
|
266
|
-
* @maxLength 10000000
|
|
267
|
-
*/
|
|
268
|
-
composerDataJson?: string;
|
|
269
|
-
/** Default values of existing placeholders. */
|
|
270
|
-
defaultValues?: DefaultValues;
|
|
271
|
-
}
|
|
272
|
-
interface DefaultValues {
|
|
273
|
-
/** @maxSize 500 */
|
|
274
|
-
map?: Record<string, string>;
|
|
275
|
-
}
|
|
276
|
-
interface UpsertTranslationResponse {
|
|
277
|
-
}
|
|
278
|
-
interface GetUsedPlaceholderKeysRequest {
|
|
279
|
-
/**
|
|
280
|
-
* Campaign ID.
|
|
281
|
-
* @format GUID
|
|
282
|
-
*/
|
|
283
|
-
campaignId?: string;
|
|
284
|
-
}
|
|
285
|
-
interface GetUsedPlaceholderKeysResponse {
|
|
286
|
-
/**
|
|
287
|
-
* Keys of placeholders used in the automation.
|
|
288
|
-
* @maxLength 200
|
|
289
|
-
* @maxSize 300
|
|
290
|
-
*/
|
|
291
|
-
placeholderKeys?: string[];
|
|
292
|
-
}
|
|
293
|
-
interface LookupCampaignMappingRequest {
|
|
294
|
-
/**
|
|
295
|
-
* rule ID in automations
|
|
296
|
-
* @format GUID
|
|
297
|
-
*/
|
|
298
|
-
automationRuleId?: string;
|
|
299
|
-
/**
|
|
300
|
-
* template ID configured for the automation
|
|
301
|
-
* @format GUID
|
|
302
|
-
*/
|
|
303
|
-
templateId?: string;
|
|
304
|
-
}
|
|
305
|
-
interface LookupCampaignMappingResponse {
|
|
306
|
-
/** @format GUID */
|
|
307
|
-
campaignId?: string | null;
|
|
308
|
-
}
|
|
309
|
-
interface UpsertAutomationTranslatorContentRequest {
|
|
310
|
-
/**
|
|
311
|
-
* Campaign ID that the content belongs to
|
|
312
|
-
* @format GUID
|
|
313
|
-
*/
|
|
314
|
-
campaignId?: string;
|
|
315
|
-
/** Automation translator content */
|
|
316
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
317
|
-
}
|
|
318
|
-
/** Automation Translator Content */
|
|
319
|
-
interface AutomationTranslatorContent {
|
|
320
|
-
/**
|
|
321
|
-
* AutomationTranslatorContent ID
|
|
322
|
-
* @minLength 1
|
|
323
|
-
* @maxLength 256
|
|
324
|
-
* @immutable
|
|
325
|
-
*/
|
|
326
|
-
_id?: string;
|
|
327
|
-
/**
|
|
328
|
-
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
329
|
-
* @minLength 1
|
|
330
|
-
* @maxLength 800000
|
|
331
|
-
*/
|
|
332
|
-
json?: string;
|
|
333
|
-
}
|
|
334
|
-
interface UpsertAutomationTranslatorContentResponse {
|
|
335
|
-
}
|
|
336
|
-
interface GetAutomationTranslatorContentRequest {
|
|
337
|
-
/**
|
|
338
|
-
* Campaign ID
|
|
339
|
-
* @format GUID
|
|
340
|
-
*/
|
|
341
|
-
campaignId?: string;
|
|
342
|
-
}
|
|
343
|
-
interface GetAutomationTranslatorContentResponse {
|
|
344
|
-
/** Automation translator content */
|
|
345
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
346
|
-
}
|
|
347
|
-
interface SendTestBulkRequest {
|
|
348
|
-
/**
|
|
349
|
-
* Campaign ID
|
|
350
|
-
* @format GUID
|
|
351
|
-
*/
|
|
352
|
-
campaignId?: string;
|
|
353
|
-
/**
|
|
354
|
-
* Recipient email address
|
|
355
|
-
* @format EMAIL
|
|
356
|
-
*/
|
|
357
|
-
toEmailAddress?: string;
|
|
358
|
-
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
359
|
-
placeholders?: Record<string, PlaceholderContent>;
|
|
360
|
-
/**
|
|
361
|
-
* Sender from name
|
|
362
|
-
* @maxLength 100
|
|
363
|
-
*/
|
|
364
|
-
fromName?: string | null;
|
|
365
|
-
/**
|
|
366
|
-
* Reply-to email address
|
|
367
|
-
* @format EMAIL
|
|
368
|
-
*/
|
|
369
|
-
replyToEmailAddress?: string | null;
|
|
370
|
-
/**
|
|
371
|
-
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
372
|
-
* @format LANGUAGE
|
|
373
|
-
*/
|
|
374
|
-
language?: string | null;
|
|
375
|
-
}
|
|
376
|
-
interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
377
|
-
text?: PlainText;
|
|
378
|
-
html?: Html;
|
|
379
|
-
money?: Money;
|
|
380
|
-
dateTime?: DateTime;
|
|
381
|
-
map?: Map;
|
|
382
|
-
array?: _Array;
|
|
383
|
-
enum?: PlaceholderContentEnum;
|
|
384
|
-
attachment?: Attachment;
|
|
385
|
-
integer?: Integer;
|
|
386
|
-
decimal?: Decimal;
|
|
387
|
-
}
|
|
388
|
-
/** @oneof */
|
|
389
|
-
interface PlaceholderContentValueOneOf {
|
|
390
|
-
text?: PlainText;
|
|
391
|
-
html?: Html;
|
|
392
|
-
money?: Money;
|
|
393
|
-
dateTime?: DateTime;
|
|
394
|
-
map?: Map;
|
|
395
|
-
array?: _Array;
|
|
396
|
-
enum?: PlaceholderContentEnum;
|
|
397
|
-
attachment?: Attachment;
|
|
398
|
-
integer?: Integer;
|
|
399
|
-
decimal?: Decimal;
|
|
400
|
-
}
|
|
401
|
-
interface PlainText {
|
|
402
|
-
text?: string;
|
|
403
|
-
}
|
|
404
|
-
interface Html {
|
|
405
|
-
html?: string;
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Money.
|
|
409
|
-
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
410
|
-
*/
|
|
411
|
-
interface Money {
|
|
412
|
-
/**
|
|
413
|
-
* 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.
|
|
414
|
-
* @format DECIMAL_VALUE
|
|
415
|
-
*/
|
|
416
|
-
value?: string;
|
|
417
|
-
/**
|
|
418
|
-
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
419
|
-
* @format CURRENCY
|
|
420
|
-
*/
|
|
421
|
-
currency?: string;
|
|
422
|
-
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
423
|
-
formattedValue?: string | null;
|
|
424
|
-
}
|
|
425
|
-
interface DateTime {
|
|
426
|
-
timestamp?: Date | null;
|
|
427
|
-
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
428
|
-
timeZone?: string | null;
|
|
429
|
-
}
|
|
430
|
-
interface Map {
|
|
431
|
-
variables?: Record<string, PlaceholderContent>;
|
|
432
|
-
}
|
|
433
|
-
interface _Array {
|
|
434
|
-
items?: PlaceholderContent[];
|
|
435
|
-
}
|
|
436
|
-
interface PlaceholderContentEnum {
|
|
437
|
-
value?: string;
|
|
438
|
-
translation?: string;
|
|
439
|
-
}
|
|
440
|
-
interface Attachment {
|
|
441
|
-
fileName?: string;
|
|
442
|
-
downloadUrl?: string;
|
|
443
|
-
}
|
|
444
|
-
interface Integer {
|
|
445
|
-
/** min value: -2147483648, max value: 2147483647 */
|
|
446
|
-
value?: number;
|
|
447
|
-
}
|
|
448
|
-
interface Decimal {
|
|
449
|
-
/**
|
|
450
|
-
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
451
|
-
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
452
|
-
* @format DECIMAL_VALUE
|
|
453
|
-
*/
|
|
454
|
-
value?: string;
|
|
455
|
-
}
|
|
456
|
-
interface SendTestBulkResponse {
|
|
457
|
-
}
|
|
458
|
-
interface ListStatisticsRequest {
|
|
459
|
-
/**
|
|
460
|
-
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
461
|
-
* @format GUID
|
|
462
|
-
* @minSize 1
|
|
463
|
-
* @maxSize 100
|
|
464
|
-
*/
|
|
465
|
-
campaignIds: string[];
|
|
466
|
-
}
|
|
467
|
-
interface ListStatisticsResponse {
|
|
468
|
-
/** List of statistics. */
|
|
469
|
-
statistics?: CampaignStatisticsContainer[];
|
|
470
|
-
}
|
|
471
|
-
interface CampaignStatisticsContainer {
|
|
472
|
-
/**
|
|
473
|
-
* Campaign ID.
|
|
474
|
-
* @format GUID
|
|
475
|
-
*/
|
|
476
|
-
campaignId?: string;
|
|
477
|
-
/** Landing page statistics. */
|
|
478
|
-
landingPage?: LandingPageStatistics;
|
|
479
|
-
/** Email campaign statistics. */
|
|
480
|
-
email?: DistributionStatistics;
|
|
481
|
-
}
|
|
482
|
-
interface ListRecipientsRequest {
|
|
483
|
-
/**
|
|
484
|
-
* Campaign ID.
|
|
485
|
-
* @format GUID
|
|
486
|
-
*/
|
|
487
|
-
campaignId: string;
|
|
488
|
-
/** Email activity to filter. */
|
|
489
|
-
activity: RecipientsActivityEnumWithLiterals;
|
|
490
|
-
/** Pagination options. */
|
|
491
|
-
paging?: CursorPaging;
|
|
492
|
-
}
|
|
493
|
-
declare enum RecipientsActivityEnum {
|
|
494
|
-
UNKNOWN = "UNKNOWN",
|
|
495
|
-
DELIVERED = "DELIVERED",
|
|
496
|
-
OPENED = "OPENED",
|
|
497
|
-
CLICKED = "CLICKED",
|
|
498
|
-
BOUNCED = "BOUNCED",
|
|
499
|
-
NOT_SENT = "NOT_SENT",
|
|
500
|
-
SENT = "SENT",
|
|
501
|
-
NOT_OPENED = "NOT_OPENED"
|
|
502
|
-
}
|
|
503
|
-
/** @enumType */
|
|
504
|
-
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
505
|
-
interface CursorPaging {
|
|
506
|
-
/**
|
|
507
|
-
* Number of items to load.
|
|
508
|
-
* @max 1000
|
|
509
|
-
*/
|
|
510
|
-
limit?: number | null;
|
|
511
|
-
/**
|
|
512
|
-
* Pointer to the next or previous page in the list of results.
|
|
513
|
-
*
|
|
514
|
-
* You can get the relevant cursor token
|
|
515
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
516
|
-
* Not relevant for the first request.
|
|
517
|
-
* @maxLength 1000
|
|
518
|
-
*/
|
|
519
|
-
cursor?: string | null;
|
|
520
|
-
}
|
|
521
|
-
interface ListRecipientsResponse {
|
|
522
|
-
/** List of recipients. */
|
|
523
|
-
recipients?: CampaignRecipientDetails[];
|
|
524
|
-
/** Details on the paged set of returned results. */
|
|
525
|
-
pagingMetadata?: PagingMetadataV2;
|
|
526
|
-
}
|
|
527
|
-
interface CampaignRecipientDetails {
|
|
216
|
+
interface GetPlaceholderKeysRequest {
|
|
528
217
|
/**
|
|
529
|
-
*
|
|
218
|
+
* Campaign ID.
|
|
530
219
|
* @format GUID
|
|
531
220
|
*/
|
|
532
|
-
|
|
533
|
-
/** Date and time of the last activity. */
|
|
534
|
-
lastActivityDate?: Date | null;
|
|
535
|
-
/**
|
|
536
|
-
* Primary email address of the contact.
|
|
537
|
-
* @format EMAIL
|
|
538
|
-
*/
|
|
539
|
-
emailAddress?: string;
|
|
540
|
-
/**
|
|
541
|
-
* Full name of the contact (optional).
|
|
542
|
-
* @maxLength 100
|
|
543
|
-
*/
|
|
544
|
-
fullName?: string | null;
|
|
545
|
-
/** Is this contact currently deleted from the site or not. */
|
|
546
|
-
contactDeleted?: boolean;
|
|
221
|
+
campaignId?: string;
|
|
547
222
|
}
|
|
548
|
-
interface
|
|
549
|
-
/**
|
|
550
|
-
|
|
551
|
-
/** Offset that was requested. */
|
|
552
|
-
offset?: number | null;
|
|
553
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
554
|
-
total?: number | null;
|
|
555
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
556
|
-
tooManyToCount?: boolean | null;
|
|
557
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
558
|
-
cursors?: Cursors;
|
|
223
|
+
interface GetPlaceholderKeysResponse {
|
|
224
|
+
/** Keys of placeholders used in the campaign. */
|
|
225
|
+
placeholderKeys?: string[];
|
|
559
226
|
}
|
|
560
|
-
interface
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Cursor pointing to the previous page in the list of results.
|
|
568
|
-
* @maxLength 16000
|
|
569
|
-
*/
|
|
570
|
-
prev?: string | null;
|
|
227
|
+
interface GetDefaultComponentsRequest {
|
|
228
|
+
}
|
|
229
|
+
interface GetDefaultComponentsResponse {
|
|
230
|
+
footer?: Record<string, any> | null;
|
|
231
|
+
logo?: Record<string, any> | null;
|
|
232
|
+
follow?: Record<string, any> | null;
|
|
571
233
|
}
|
|
572
234
|
interface GetCampaignRequest {
|
|
573
235
|
/**
|
|
@@ -870,6 +532,86 @@ interface SendTestRequest {
|
|
|
870
532
|
*/
|
|
871
533
|
toEmailAddress: string;
|
|
872
534
|
}
|
|
535
|
+
interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
536
|
+
text?: PlainText;
|
|
537
|
+
html?: Html;
|
|
538
|
+
money?: Money;
|
|
539
|
+
dateTime?: DateTime;
|
|
540
|
+
map?: Map;
|
|
541
|
+
array?: _Array;
|
|
542
|
+
enum?: PlaceholderContentEnum;
|
|
543
|
+
attachment?: Attachment;
|
|
544
|
+
integer?: Integer;
|
|
545
|
+
decimal?: Decimal;
|
|
546
|
+
}
|
|
547
|
+
/** @oneof */
|
|
548
|
+
interface PlaceholderContentValueOneOf {
|
|
549
|
+
text?: PlainText;
|
|
550
|
+
html?: Html;
|
|
551
|
+
money?: Money;
|
|
552
|
+
dateTime?: DateTime;
|
|
553
|
+
map?: Map;
|
|
554
|
+
array?: _Array;
|
|
555
|
+
enum?: PlaceholderContentEnum;
|
|
556
|
+
attachment?: Attachment;
|
|
557
|
+
integer?: Integer;
|
|
558
|
+
decimal?: Decimal;
|
|
559
|
+
}
|
|
560
|
+
interface PlainText {
|
|
561
|
+
text?: string;
|
|
562
|
+
}
|
|
563
|
+
interface Html {
|
|
564
|
+
html?: string;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Money.
|
|
568
|
+
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
569
|
+
*/
|
|
570
|
+
interface Money {
|
|
571
|
+
/**
|
|
572
|
+
* 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.
|
|
573
|
+
* @format DECIMAL_VALUE
|
|
574
|
+
*/
|
|
575
|
+
value?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
578
|
+
* @format CURRENCY
|
|
579
|
+
*/
|
|
580
|
+
currency?: string;
|
|
581
|
+
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
582
|
+
formattedValue?: string | null;
|
|
583
|
+
}
|
|
584
|
+
interface DateTime {
|
|
585
|
+
timestamp?: Date | null;
|
|
586
|
+
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
587
|
+
timeZone?: string | null;
|
|
588
|
+
}
|
|
589
|
+
interface Map {
|
|
590
|
+
variables?: Record<string, PlaceholderContent>;
|
|
591
|
+
}
|
|
592
|
+
interface _Array {
|
|
593
|
+
items?: PlaceholderContent[];
|
|
594
|
+
}
|
|
595
|
+
interface PlaceholderContentEnum {
|
|
596
|
+
value?: string;
|
|
597
|
+
translation?: string;
|
|
598
|
+
}
|
|
599
|
+
interface Attachment {
|
|
600
|
+
fileName?: string;
|
|
601
|
+
downloadUrl?: string;
|
|
602
|
+
}
|
|
603
|
+
interface Integer {
|
|
604
|
+
/** min value: -2147483648, max value: 2147483647 */
|
|
605
|
+
value?: number;
|
|
606
|
+
}
|
|
607
|
+
interface Decimal {
|
|
608
|
+
/**
|
|
609
|
+
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
610
|
+
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
611
|
+
* @format DECIMAL_VALUE
|
|
612
|
+
*/
|
|
613
|
+
value?: string;
|
|
614
|
+
}
|
|
873
615
|
interface SendTestResponse {
|
|
874
616
|
}
|
|
875
617
|
interface PauseSchedulingRequest {
|
|
@@ -1013,6 +755,19 @@ interface GetComposerResponse {
|
|
|
1013
755
|
*/
|
|
1014
756
|
emailPreheader?: string | null;
|
|
1015
757
|
}
|
|
758
|
+
interface Composer {
|
|
759
|
+
/**
|
|
760
|
+
* Internal data structure for editor/viewer to render the campaign.
|
|
761
|
+
* @maxLength 10000000
|
|
762
|
+
*/
|
|
763
|
+
composerDataJson?: string;
|
|
764
|
+
/** Default values of existing placeholders. */
|
|
765
|
+
defaultValues?: DefaultValues;
|
|
766
|
+
}
|
|
767
|
+
interface DefaultValues {
|
|
768
|
+
/** @maxSize 500 */
|
|
769
|
+
map?: Record<string, string>;
|
|
770
|
+
}
|
|
1016
771
|
interface UpdateComposerRequest {
|
|
1017
772
|
/**
|
|
1018
773
|
* Campaign ID.
|
|
@@ -1201,90 +956,217 @@ interface MessageEnvelope {
|
|
|
1201
956
|
* App instance ID.
|
|
1202
957
|
* @format GUID
|
|
1203
958
|
*/
|
|
1204
|
-
instanceId?: string | null;
|
|
959
|
+
instanceId?: string | null;
|
|
960
|
+
/**
|
|
961
|
+
* Event type.
|
|
962
|
+
* @maxLength 150
|
|
963
|
+
*/
|
|
964
|
+
eventType?: string;
|
|
965
|
+
/** The identification type and identity data. */
|
|
966
|
+
identity?: IdentificationData;
|
|
967
|
+
/** Stringify payload. */
|
|
968
|
+
data?: string;
|
|
969
|
+
}
|
|
970
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
971
|
+
/**
|
|
972
|
+
* ID of a site visitor that has not logged in to the site.
|
|
973
|
+
* @format GUID
|
|
974
|
+
*/
|
|
975
|
+
anonymousVisitorId?: string;
|
|
976
|
+
/**
|
|
977
|
+
* ID of a site visitor that has logged in to the site.
|
|
978
|
+
* @format GUID
|
|
979
|
+
*/
|
|
980
|
+
memberId?: string;
|
|
981
|
+
/**
|
|
982
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
983
|
+
* @format GUID
|
|
984
|
+
*/
|
|
985
|
+
wixUserId?: string;
|
|
986
|
+
/**
|
|
987
|
+
* ID of an app.
|
|
988
|
+
* @format GUID
|
|
989
|
+
*/
|
|
990
|
+
appId?: string;
|
|
991
|
+
/** @readonly */
|
|
992
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
993
|
+
}
|
|
994
|
+
/** @oneof */
|
|
995
|
+
interface IdentificationDataIdOneOf {
|
|
996
|
+
/**
|
|
997
|
+
* ID of a site visitor that has not logged in to the site.
|
|
998
|
+
* @format GUID
|
|
999
|
+
*/
|
|
1000
|
+
anonymousVisitorId?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* ID of a site visitor that has logged in to the site.
|
|
1003
|
+
* @format GUID
|
|
1004
|
+
*/
|
|
1005
|
+
memberId?: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1008
|
+
* @format GUID
|
|
1009
|
+
*/
|
|
1010
|
+
wixUserId?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* ID of an app.
|
|
1013
|
+
* @format GUID
|
|
1014
|
+
*/
|
|
1015
|
+
appId?: string;
|
|
1016
|
+
}
|
|
1017
|
+
declare enum WebhookIdentityType {
|
|
1018
|
+
UNKNOWN = "UNKNOWN",
|
|
1019
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1020
|
+
MEMBER = "MEMBER",
|
|
1021
|
+
WIX_USER = "WIX_USER",
|
|
1022
|
+
APP = "APP"
|
|
1023
|
+
}
|
|
1024
|
+
/** @enumType */
|
|
1025
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1026
|
+
interface EstimateFilterSizeRequest {
|
|
1027
|
+
/** Contacts filter expression. */
|
|
1028
|
+
filter?: Record<string, any> | null;
|
|
1029
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1030
|
+
activeContactsOnly?: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1033
|
+
* @minLength 1
|
|
1034
|
+
* @maxLength 100
|
|
1035
|
+
*/
|
|
1036
|
+
search?: string | null;
|
|
1037
|
+
}
|
|
1038
|
+
interface EstimateFilterSizeResponse {
|
|
1039
|
+
/** Mailing list size estimation. */
|
|
1040
|
+
estimation?: number;
|
|
1041
|
+
}
|
|
1042
|
+
interface EstimateAudienceSizeRequest {
|
|
1043
|
+
/**
|
|
1044
|
+
* Contact IDs of a campaign audience.
|
|
1045
|
+
* @format GUID
|
|
1046
|
+
*/
|
|
1047
|
+
contactIds?: string[];
|
|
1048
|
+
/** Label IDs of a campaign audience. */
|
|
1049
|
+
labelIds?: string[];
|
|
1050
|
+
/** Contacts filter expression (json). */
|
|
1051
|
+
contactsFilter?: Record<string, any> | null;
|
|
1052
|
+
/**
|
|
1053
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1054
|
+
* @minLength 1
|
|
1055
|
+
* @maxLength 100
|
|
1056
|
+
*/
|
|
1057
|
+
search?: string | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Segment ids of a campaign audience.
|
|
1060
|
+
* @format GUID
|
|
1061
|
+
*/
|
|
1062
|
+
segmentIds?: string[];
|
|
1063
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1064
|
+
activeContactsOnly?: boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* Id of a campaign that is to be resent.
|
|
1067
|
+
* @format GUID
|
|
1068
|
+
*/
|
|
1069
|
+
resendCampaignId?: string | null;
|
|
1070
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1071
|
+
withTotal?: boolean;
|
|
1072
|
+
}
|
|
1073
|
+
interface EstimateAudienceSizeResponse {
|
|
1074
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
1075
|
+
estimation?: number;
|
|
1076
|
+
/** Total number of contacts in provided audience (optional). */
|
|
1077
|
+
total?: number | null;
|
|
1078
|
+
}
|
|
1079
|
+
interface ReconcileContactRequest {
|
|
1205
1080
|
/**
|
|
1206
|
-
*
|
|
1207
|
-
* @
|
|
1081
|
+
* Email address of the contact.
|
|
1082
|
+
* @format EMAIL
|
|
1208
1083
|
*/
|
|
1209
|
-
|
|
1210
|
-
/** The identification type and identity data. */
|
|
1211
|
-
identity?: IdentificationData;
|
|
1212
|
-
/** Stringify payload. */
|
|
1213
|
-
data?: string;
|
|
1084
|
+
emailAddress?: string;
|
|
1214
1085
|
}
|
|
1215
|
-
interface
|
|
1086
|
+
interface ReconcileContactResponse {
|
|
1087
|
+
/** Created or retrieved contact. */
|
|
1088
|
+
contact?: Contact;
|
|
1089
|
+
}
|
|
1090
|
+
interface Contact {
|
|
1216
1091
|
/**
|
|
1217
|
-
* ID of
|
|
1092
|
+
* Unique ID of the contact entity.
|
|
1218
1093
|
* @format GUID
|
|
1219
1094
|
*/
|
|
1220
|
-
|
|
1095
|
+
_id?: string;
|
|
1221
1096
|
/**
|
|
1222
|
-
*
|
|
1223
|
-
* @format
|
|
1097
|
+
* Primary email address of the contact.
|
|
1098
|
+
* @format EMAIL
|
|
1224
1099
|
*/
|
|
1225
|
-
|
|
1100
|
+
emailAddress?: string;
|
|
1226
1101
|
/**
|
|
1227
|
-
*
|
|
1228
|
-
* @
|
|
1102
|
+
* Full name of the contact (optional).
|
|
1103
|
+
* @maxLength 100
|
|
1229
1104
|
*/
|
|
1230
|
-
|
|
1105
|
+
fullName?: string | null;
|
|
1231
1106
|
/**
|
|
1232
|
-
*
|
|
1233
|
-
* @format
|
|
1107
|
+
* Profile picture of the contact (optional).
|
|
1108
|
+
* @format WEB_URL
|
|
1109
|
+
* @maxLength 2048
|
|
1234
1110
|
*/
|
|
1235
|
-
|
|
1236
|
-
/** @readonly */
|
|
1237
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1111
|
+
pictureUrl?: string | null;
|
|
1238
1112
|
}
|
|
1239
|
-
|
|
1240
|
-
interface IdentificationDataIdOneOf {
|
|
1113
|
+
interface SearchContactsRequest {
|
|
1241
1114
|
/**
|
|
1242
|
-
*
|
|
1243
|
-
* @
|
|
1115
|
+
* Text to search contacts by - can search by name or email address.
|
|
1116
|
+
* @maxLength 100
|
|
1244
1117
|
*/
|
|
1245
|
-
|
|
1118
|
+
searchTerm?: string;
|
|
1119
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1120
|
+
activeContactsOnly?: boolean;
|
|
1246
1121
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* @
|
|
1122
|
+
* Page size (default 50, max 1000).
|
|
1123
|
+
* @max 1000
|
|
1249
1124
|
*/
|
|
1250
|
-
|
|
1125
|
+
pageSize?: number | null;
|
|
1126
|
+
}
|
|
1127
|
+
interface SearchContactsResponse {
|
|
1128
|
+
/** Search results. */
|
|
1129
|
+
contacts?: Contact[];
|
|
1130
|
+
}
|
|
1131
|
+
interface GetLabelsRequest {
|
|
1132
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1133
|
+
activeContactsOnly?: boolean;
|
|
1134
|
+
}
|
|
1135
|
+
interface GetLabelsResponse {
|
|
1136
|
+
/** Returned labels with contact counts. */
|
|
1137
|
+
labels?: Label[];
|
|
1138
|
+
}
|
|
1139
|
+
interface Label {
|
|
1251
1140
|
/**
|
|
1252
|
-
* ID of
|
|
1253
|
-
* @
|
|
1141
|
+
* Unique ID of the label entity.
|
|
1142
|
+
* @maxLength 100
|
|
1254
1143
|
*/
|
|
1255
|
-
|
|
1144
|
+
_id?: string;
|
|
1256
1145
|
/**
|
|
1257
|
-
*
|
|
1258
|
-
* @
|
|
1146
|
+
* Name of the label.
|
|
1147
|
+
* @maxLength 100
|
|
1259
1148
|
*/
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
UNKNOWN = "UNKNOWN",
|
|
1264
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1265
|
-
MEMBER = "MEMBER",
|
|
1266
|
-
WIX_USER = "WIX_USER",
|
|
1267
|
-
APP = "APP"
|
|
1149
|
+
name?: string;
|
|
1150
|
+
/** Amount of contacts assigned to the label. */
|
|
1151
|
+
contactsCount?: number;
|
|
1268
1152
|
}
|
|
1269
|
-
|
|
1270
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1271
|
-
interface GetPlaceholderKeysRequest {
|
|
1153
|
+
interface SubscribeFromLandingPageRequest {
|
|
1272
1154
|
/**
|
|
1273
|
-
* Campaign ID.
|
|
1155
|
+
* Campaign ID that the subscription is happening from.
|
|
1274
1156
|
* @format GUID
|
|
1275
1157
|
*/
|
|
1276
1158
|
campaignId?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* Email address that is entered into subscription field.
|
|
1161
|
+
* @format EMAIL
|
|
1162
|
+
*/
|
|
1163
|
+
emailAddress?: string;
|
|
1164
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1165
|
+
consent?: boolean;
|
|
1277
1166
|
}
|
|
1278
|
-
interface
|
|
1279
|
-
/**
|
|
1280
|
-
|
|
1281
|
-
}
|
|
1282
|
-
interface GetDefaultComponentsRequest {
|
|
1283
|
-
}
|
|
1284
|
-
interface GetDefaultComponentsResponse {
|
|
1285
|
-
footer?: Record<string, any> | null;
|
|
1286
|
-
logo?: Record<string, any> | null;
|
|
1287
|
-
follow?: Record<string, any> | null;
|
|
1167
|
+
interface SubscribeFromLandingPageResponse {
|
|
1168
|
+
/** @format GUID */
|
|
1169
|
+
contactId?: string;
|
|
1288
1170
|
}
|
|
1289
1171
|
interface ValidateLinkRequest {
|
|
1290
1172
|
/**
|
|
@@ -1308,150 +1190,268 @@ interface ValidateHtmlLinksResponse {
|
|
|
1308
1190
|
/** Non-valid links. */
|
|
1309
1191
|
blacklistedLinks?: string[];
|
|
1310
1192
|
}
|
|
1311
|
-
interface
|
|
1312
|
-
/** Contacts filter expression. */
|
|
1313
|
-
filter?: Record<string, any> | null;
|
|
1314
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1315
|
-
activeContactsOnly?: boolean;
|
|
1193
|
+
interface GetCampaignMappingRequest {
|
|
1316
1194
|
/**
|
|
1317
|
-
*
|
|
1318
|
-
* @
|
|
1319
|
-
* @maxLength 100
|
|
1195
|
+
* rule ID in automations
|
|
1196
|
+
* @format GUID
|
|
1320
1197
|
*/
|
|
1321
|
-
|
|
1198
|
+
automationRuleId?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* template ID configured for the automation
|
|
1201
|
+
* @format GUID
|
|
1202
|
+
*/
|
|
1203
|
+
templateId?: string;
|
|
1322
1204
|
}
|
|
1323
|
-
interface
|
|
1324
|
-
/**
|
|
1325
|
-
|
|
1205
|
+
interface GetCampaignMappingResponse {
|
|
1206
|
+
/** @format GUID */
|
|
1207
|
+
campaignId?: string;
|
|
1326
1208
|
}
|
|
1327
|
-
interface
|
|
1209
|
+
interface UpsertTranslationRequest {
|
|
1328
1210
|
/**
|
|
1329
|
-
*
|
|
1211
|
+
* Campaign ID.
|
|
1330
1212
|
* @format GUID
|
|
1331
1213
|
*/
|
|
1332
|
-
|
|
1333
|
-
/**
|
|
1334
|
-
|
|
1335
|
-
/** Contacts filter expression (json). */
|
|
1336
|
-
contactsFilter?: Record<string, any> | null;
|
|
1214
|
+
campaignId?: string;
|
|
1215
|
+
/** Composer data. */
|
|
1216
|
+
composer?: Composer;
|
|
1337
1217
|
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @
|
|
1340
|
-
* @maxLength 100
|
|
1218
|
+
* Translation language (optional, default value "EN").
|
|
1219
|
+
* @format LANGUAGE
|
|
1341
1220
|
*/
|
|
1342
|
-
|
|
1221
|
+
language?: string | null;
|
|
1343
1222
|
/**
|
|
1344
|
-
*
|
|
1223
|
+
* For BI event [36:1031] only (optional, default value "n/a").
|
|
1345
1224
|
* @format GUID
|
|
1346
1225
|
*/
|
|
1347
|
-
|
|
1348
|
-
/** Should
|
|
1349
|
-
|
|
1226
|
+
automationRuleId?: string | null;
|
|
1227
|
+
/** Should campaign also be published or not (default value "false"). */
|
|
1228
|
+
publish?: boolean;
|
|
1350
1229
|
/**
|
|
1351
|
-
*
|
|
1230
|
+
* Campaign subject (optional).
|
|
1231
|
+
* @maxLength 1000
|
|
1232
|
+
*/
|
|
1233
|
+
emailSubject?: string | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* Campaign preheader (optional).
|
|
1236
|
+
* @maxLength 1000
|
|
1237
|
+
*/
|
|
1238
|
+
emailPreheader?: string | null;
|
|
1239
|
+
}
|
|
1240
|
+
interface UpsertTranslationResponse {
|
|
1241
|
+
}
|
|
1242
|
+
interface GetUsedPlaceholderKeysRequest {
|
|
1243
|
+
/**
|
|
1244
|
+
* Campaign ID.
|
|
1352
1245
|
* @format GUID
|
|
1353
1246
|
*/
|
|
1354
|
-
|
|
1355
|
-
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1356
|
-
withTotal?: boolean;
|
|
1247
|
+
campaignId?: string;
|
|
1357
1248
|
}
|
|
1358
|
-
interface
|
|
1359
|
-
/**
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1249
|
+
interface GetUsedPlaceholderKeysResponse {
|
|
1250
|
+
/**
|
|
1251
|
+
* Keys of placeholders used in the automation.
|
|
1252
|
+
* @maxLength 200
|
|
1253
|
+
* @maxSize 300
|
|
1254
|
+
*/
|
|
1255
|
+
placeholderKeys?: string[];
|
|
1256
|
+
}
|
|
1257
|
+
interface LookupCampaignMappingRequest {
|
|
1258
|
+
/**
|
|
1259
|
+
* rule ID in automations
|
|
1260
|
+
* @format GUID
|
|
1261
|
+
*/
|
|
1262
|
+
automationRuleId?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* template ID configured for the automation
|
|
1265
|
+
* @format GUID
|
|
1266
|
+
*/
|
|
1267
|
+
templateId?: string;
|
|
1268
|
+
}
|
|
1269
|
+
interface LookupCampaignMappingResponse {
|
|
1270
|
+
/** @format GUID */
|
|
1271
|
+
campaignId?: string | null;
|
|
1272
|
+
}
|
|
1273
|
+
interface UpsertAutomationTranslatorContentRequest {
|
|
1274
|
+
/**
|
|
1275
|
+
* Campaign ID that the content belongs to
|
|
1276
|
+
* @format GUID
|
|
1277
|
+
*/
|
|
1278
|
+
campaignId?: string;
|
|
1279
|
+
/** Automation translator content */
|
|
1280
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
1281
|
+
}
|
|
1282
|
+
/** Automation Translator Content */
|
|
1283
|
+
interface AutomationTranslatorContent {
|
|
1284
|
+
/**
|
|
1285
|
+
* AutomationTranslatorContent ID
|
|
1286
|
+
* @minLength 1
|
|
1287
|
+
* @maxLength 256
|
|
1288
|
+
* @immutable
|
|
1289
|
+
*/
|
|
1290
|
+
_id?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
1293
|
+
* @minLength 1
|
|
1294
|
+
* @maxLength 800000
|
|
1295
|
+
*/
|
|
1296
|
+
json?: string;
|
|
1363
1297
|
}
|
|
1364
|
-
interface
|
|
1298
|
+
interface UpsertAutomationTranslatorContentResponse {
|
|
1299
|
+
}
|
|
1300
|
+
interface GetAutomationTranslatorContentRequest {
|
|
1365
1301
|
/**
|
|
1366
|
-
*
|
|
1367
|
-
* @format
|
|
1302
|
+
* Campaign ID
|
|
1303
|
+
* @format GUID
|
|
1368
1304
|
*/
|
|
1369
|
-
|
|
1305
|
+
campaignId?: string;
|
|
1370
1306
|
}
|
|
1371
|
-
interface
|
|
1372
|
-
/**
|
|
1373
|
-
|
|
1307
|
+
interface GetAutomationTranslatorContentResponse {
|
|
1308
|
+
/** Automation translator content */
|
|
1309
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
1374
1310
|
}
|
|
1375
|
-
interface
|
|
1311
|
+
interface SendTestBulkRequest {
|
|
1376
1312
|
/**
|
|
1377
|
-
*
|
|
1313
|
+
* Campaign ID
|
|
1378
1314
|
* @format GUID
|
|
1379
1315
|
*/
|
|
1380
|
-
|
|
1316
|
+
campaignId?: string;
|
|
1381
1317
|
/**
|
|
1382
|
-
*
|
|
1318
|
+
* Recipient email address
|
|
1383
1319
|
* @format EMAIL
|
|
1384
1320
|
*/
|
|
1385
|
-
|
|
1321
|
+
toEmailAddress?: string;
|
|
1322
|
+
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
1323
|
+
placeholders?: Record<string, PlaceholderContent>;
|
|
1386
1324
|
/**
|
|
1387
|
-
*
|
|
1325
|
+
* Sender from name
|
|
1388
1326
|
* @maxLength 100
|
|
1389
1327
|
*/
|
|
1390
|
-
|
|
1328
|
+
fromName?: string | null;
|
|
1391
1329
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* @format
|
|
1394
|
-
* @maxLength 2048
|
|
1330
|
+
* Reply-to email address
|
|
1331
|
+
* @format EMAIL
|
|
1395
1332
|
*/
|
|
1396
|
-
|
|
1397
|
-
}
|
|
1398
|
-
interface SearchContactsRequest {
|
|
1333
|
+
replyToEmailAddress?: string | null;
|
|
1399
1334
|
/**
|
|
1400
|
-
*
|
|
1401
|
-
* @
|
|
1335
|
+
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
1336
|
+
* @format LANGUAGE
|
|
1402
1337
|
*/
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1338
|
+
language?: string | null;
|
|
1339
|
+
}
|
|
1340
|
+
interface SendTestBulkResponse {
|
|
1341
|
+
}
|
|
1342
|
+
interface ListStatisticsRequest {
|
|
1406
1343
|
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @
|
|
1344
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1345
|
+
* @format GUID
|
|
1346
|
+
* @minSize 1
|
|
1347
|
+
* @maxSize 100
|
|
1409
1348
|
*/
|
|
1410
|
-
|
|
1349
|
+
campaignIds: string[];
|
|
1411
1350
|
}
|
|
1412
|
-
interface
|
|
1413
|
-
/**
|
|
1414
|
-
|
|
1351
|
+
interface ListStatisticsResponse {
|
|
1352
|
+
/** List of statistics. */
|
|
1353
|
+
statistics?: CampaignStatisticsContainer[];
|
|
1415
1354
|
}
|
|
1416
|
-
interface
|
|
1417
|
-
/**
|
|
1418
|
-
|
|
1355
|
+
interface CampaignStatisticsContainer {
|
|
1356
|
+
/**
|
|
1357
|
+
* Campaign ID.
|
|
1358
|
+
* @format GUID
|
|
1359
|
+
*/
|
|
1360
|
+
campaignId?: string;
|
|
1361
|
+
/** Landing page statistics. */
|
|
1362
|
+
landingPage?: LandingPageStatistics;
|
|
1363
|
+
/** Email campaign statistics. */
|
|
1364
|
+
email?: DistributionStatistics;
|
|
1419
1365
|
}
|
|
1420
|
-
interface
|
|
1421
|
-
/**
|
|
1422
|
-
|
|
1366
|
+
interface ListRecipientsRequest {
|
|
1367
|
+
/**
|
|
1368
|
+
* Campaign ID.
|
|
1369
|
+
* @format GUID
|
|
1370
|
+
*/
|
|
1371
|
+
campaignId: string;
|
|
1372
|
+
/** Email activity to filter. */
|
|
1373
|
+
activity: RecipientsActivityEnumWithLiterals;
|
|
1374
|
+
/** Pagination options. */
|
|
1375
|
+
paging?: CursorPaging;
|
|
1423
1376
|
}
|
|
1424
|
-
|
|
1377
|
+
declare enum RecipientsActivityEnum {
|
|
1378
|
+
UNKNOWN = "UNKNOWN",
|
|
1379
|
+
DELIVERED = "DELIVERED",
|
|
1380
|
+
OPENED = "OPENED",
|
|
1381
|
+
CLICKED = "CLICKED",
|
|
1382
|
+
BOUNCED = "BOUNCED",
|
|
1383
|
+
NOT_SENT = "NOT_SENT",
|
|
1384
|
+
SENT = "SENT",
|
|
1385
|
+
NOT_OPENED = "NOT_OPENED"
|
|
1386
|
+
}
|
|
1387
|
+
/** @enumType */
|
|
1388
|
+
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
1389
|
+
interface CursorPaging {
|
|
1425
1390
|
/**
|
|
1426
|
-
*
|
|
1427
|
-
* @
|
|
1391
|
+
* Number of items to load.
|
|
1392
|
+
* @max 1000
|
|
1428
1393
|
*/
|
|
1429
|
-
|
|
1394
|
+
limit?: number | null;
|
|
1430
1395
|
/**
|
|
1431
|
-
*
|
|
1432
|
-
*
|
|
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
|
+
* @maxLength 1000
|
|
1433
1402
|
*/
|
|
1434
|
-
|
|
1435
|
-
/** Amount of contacts assigned to the label. */
|
|
1436
|
-
contactsCount?: number;
|
|
1403
|
+
cursor?: string | null;
|
|
1437
1404
|
}
|
|
1438
|
-
interface
|
|
1405
|
+
interface ListRecipientsResponse {
|
|
1406
|
+
/** List of recipients. */
|
|
1407
|
+
recipients?: CampaignRecipientDetails[];
|
|
1408
|
+
/** Details on the paged set of returned results. */
|
|
1409
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1410
|
+
}
|
|
1411
|
+
interface CampaignRecipientDetails {
|
|
1439
1412
|
/**
|
|
1440
|
-
*
|
|
1413
|
+
* Contact ID.
|
|
1441
1414
|
* @format GUID
|
|
1442
1415
|
*/
|
|
1443
|
-
|
|
1416
|
+
contactId?: string;
|
|
1417
|
+
/** Date and time of the last activity. */
|
|
1418
|
+
lastActivityDate?: Date | null;
|
|
1444
1419
|
/**
|
|
1445
|
-
*
|
|
1420
|
+
* Primary email address of the contact.
|
|
1446
1421
|
* @format EMAIL
|
|
1447
1422
|
*/
|
|
1448
1423
|
emailAddress?: string;
|
|
1449
|
-
/**
|
|
1450
|
-
|
|
1424
|
+
/**
|
|
1425
|
+
* Full name of the contact (optional).
|
|
1426
|
+
* @maxLength 100
|
|
1427
|
+
*/
|
|
1428
|
+
fullName?: string | null;
|
|
1429
|
+
/** Is this contact currently deleted from the site or not. */
|
|
1430
|
+
contactDeleted?: boolean;
|
|
1451
1431
|
}
|
|
1452
|
-
interface
|
|
1453
|
-
/**
|
|
1454
|
-
|
|
1432
|
+
interface PagingMetadataV2 {
|
|
1433
|
+
/** Number of items returned in the response. */
|
|
1434
|
+
count?: number | null;
|
|
1435
|
+
/** Offset that was requested. */
|
|
1436
|
+
offset?: number | null;
|
|
1437
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1438
|
+
total?: number | null;
|
|
1439
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1440
|
+
tooManyToCount?: boolean | null;
|
|
1441
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1442
|
+
cursors?: Cursors;
|
|
1443
|
+
}
|
|
1444
|
+
interface Cursors {
|
|
1445
|
+
/**
|
|
1446
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1447
|
+
* @maxLength 16000
|
|
1448
|
+
*/
|
|
1449
|
+
next?: string | null;
|
|
1450
|
+
/**
|
|
1451
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1452
|
+
* @maxLength 16000
|
|
1453
|
+
*/
|
|
1454
|
+
prev?: string | null;
|
|
1455
1455
|
}
|
|
1456
1456
|
/** @docsIgnore */
|
|
1457
1457
|
type PublishCampaignApplicationErrors = {
|
|
@@ -1735,46 +1735,6 @@ interface CampaignEmailActivityUpdatedEnvelope {
|
|
|
1735
1735
|
* @slug email_activity_updated
|
|
1736
1736
|
*/
|
|
1737
1737
|
declare function onCampaignEmailActivityUpdated(handler: (event: CampaignEmailActivityUpdatedEnvelope) => void | Promise<void>): void;
|
|
1738
|
-
/**
|
|
1739
|
-
* Retrieves a list of statistics for up to 100 selected campaigns.
|
|
1740
|
-
*
|
|
1741
|
-
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
1742
|
-
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
1743
|
-
*
|
|
1744
|
-
* Call List Campaigns to retrieve additional information for a site's campaigns.
|
|
1745
|
-
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
1746
|
-
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1747
|
-
* @public
|
|
1748
|
-
* @requiredField campaignIds
|
|
1749
|
-
* @permissionId Shoutout.Read
|
|
1750
|
-
* @applicableIdentity APP
|
|
1751
|
-
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
|
|
1752
|
-
*/
|
|
1753
|
-
declare function listStatistics(campaignIds: string[]): Promise<NonNullablePaths<ListStatisticsResponse, `statistics` | `statistics.${number}.campaignId` | `statistics.${number}.landingPage.opened` | `statistics.${number}.landingPage.clicked` | `statistics.${number}.email.delivered` | `statistics.${number}.email.opened` | `statistics.${number}.email.clicked` | `statistics.${number}.email.bounced` | `statistics.${number}.email.complained` | `statistics.${number}.email.notSent`, 5>>;
|
|
1754
|
-
/**
|
|
1755
|
-
* Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
|
|
1756
|
-
*
|
|
1757
|
-
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
1758
|
-
*
|
|
1759
|
-
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
1760
|
-
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
1761
|
-
*
|
|
1762
|
-
* If no `activity` is included, this method returns an error.
|
|
1763
|
-
* @param campaignId - Campaign ID.
|
|
1764
|
-
* @param activity - Email activity to filter.
|
|
1765
|
-
* @public
|
|
1766
|
-
* @requiredField activity
|
|
1767
|
-
* @requiredField campaignId
|
|
1768
|
-
* @param options - Options to use when getting the list of recipients.
|
|
1769
|
-
* @permissionId Shoutout.Read
|
|
1770
|
-
* @applicableIdentity APP
|
|
1771
|
-
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
|
|
1772
|
-
*/
|
|
1773
|
-
declare function listRecipients(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`, 4>>;
|
|
1774
|
-
interface ListRecipientsOptions {
|
|
1775
|
-
/** Pagination options. */
|
|
1776
|
-
paging?: CursorPaging;
|
|
1777
|
-
}
|
|
1778
1738
|
/**
|
|
1779
1739
|
* Retrieves information about an email campaign.
|
|
1780
1740
|
* @param campaignId - Campaign ID.
|
|
@@ -1949,5 +1909,45 @@ declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLin
|
|
|
1949
1909
|
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks
|
|
1950
1910
|
*/
|
|
1951
1911
|
declare function validateHtmlLinks(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`, 2>>;
|
|
1912
|
+
/**
|
|
1913
|
+
* Retrieves a list of statistics for up to 100 selected campaigns.
|
|
1914
|
+
*
|
|
1915
|
+
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
1916
|
+
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
1917
|
+
*
|
|
1918
|
+
* Call List Campaigns to retrieve additional information for a site's campaigns.
|
|
1919
|
+
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
1920
|
+
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1921
|
+
* @public
|
|
1922
|
+
* @requiredField campaignIds
|
|
1923
|
+
* @permissionId Shoutout.Read
|
|
1924
|
+
* @applicableIdentity APP
|
|
1925
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
|
|
1926
|
+
*/
|
|
1927
|
+
declare function listStatistics(campaignIds: string[]): Promise<NonNullablePaths<ListStatisticsResponse, `statistics` | `statistics.${number}.campaignId` | `statistics.${number}.landingPage.opened` | `statistics.${number}.landingPage.clicked` | `statistics.${number}.email.delivered` | `statistics.${number}.email.opened` | `statistics.${number}.email.clicked` | `statistics.${number}.email.bounced` | `statistics.${number}.email.complained` | `statistics.${number}.email.notSent`, 5>>;
|
|
1928
|
+
/**
|
|
1929
|
+
* Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
|
|
1930
|
+
*
|
|
1931
|
+
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
1932
|
+
*
|
|
1933
|
+
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
1934
|
+
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
1935
|
+
*
|
|
1936
|
+
* If no `activity` is included, this method returns an error.
|
|
1937
|
+
* @param campaignId - Campaign ID.
|
|
1938
|
+
* @param activity - Email activity to filter.
|
|
1939
|
+
* @public
|
|
1940
|
+
* @requiredField activity
|
|
1941
|
+
* @requiredField campaignId
|
|
1942
|
+
* @param options - Options to use when getting the list of recipients.
|
|
1943
|
+
* @permissionId Shoutout.Read
|
|
1944
|
+
* @applicableIdentity APP
|
|
1945
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
|
|
1946
|
+
*/
|
|
1947
|
+
declare function listRecipients(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`, 4>>;
|
|
1948
|
+
interface ListRecipientsOptions {
|
|
1949
|
+
/** Pagination options. */
|
|
1950
|
+
paging?: CursorPaging;
|
|
1951
|
+
}
|
|
1952
1952
|
|
|
1953
1953
|
export { type ActionEvent, ActivityType, type ActivityTypeWithLiterals, type ArchiveCampaignRequest, type ArchiveCampaignResponse, type Archived, type Attachment, type AutomationTranslatorContent, type BaseEventMetadata, type Campaign, type CampaignAudience, type CampaignCreatedEnvelope, type CampaignDeletedEnvelope, type CampaignDistributedEnvelope, type CampaignEditorType, CampaignEditorTypeEnum, type CampaignEditorTypeEnumWithLiterals, type CampaignEmailActivityUpdatedEnvelope, type CampaignPausedEnvelope, type CampaignPublishedEnvelope, type CampaignRecipientDetails, type CampaignRejectedEnvelope, type CampaignScheduledEnvelope, CampaignSendingStateEnum, type CampaignSendingStateEnumWithLiterals, type CampaignStatistics, type CampaignStatisticsContainer, CampaignStatusEnum, type CampaignStatusEnumWithLiterals, type CampaignTerminatedEnvelope, CampaignTypeEnum, type CampaignTypeEnumWithLiterals, CampaignVisibilityStatusEnum, type CampaignVisibilityStatusEnumWithLiterals, type Click, type Composer, type Contact, type CountCampaignsRequest, type CountCampaignsResponse, type CreateCampaignRequest, type CreateCampaignResponse, type CreateFromTemplateRequest, type CreateFromTemplateResponse, type CreateFromUserTemplateRequest, type CreateFromUserTemplateResponse, type CreateUserTemplateRequest, type CreateUserTemplateResponse, type CursorPaging, type Cursors, type DateTime, type Decimal, type DefaultValues, type DeleteCampaignRequest, type DeleteCampaignResponse, type Distributed, type DistributionStatistics, type DomainEvent, type DomainEventBodyOneOf, type EmailActivityUpdated, type EmailActivityUpdatedEventTypeOneOf, type EmailDistributionOptions, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type EstimateAudienceSizeRequest, type EstimateAudienceSizeResponse, type EstimateFilterSizeRequest, type EstimateFilterSizeResponse, type EventMetadata, type GetAudienceRequest, type GetAudienceResponse, type GetAutomationTranslatorContentRequest, type GetAutomationTranslatorContentResponse, type GetCampaignMappingRequest, type GetCampaignMappingResponse, type GetCampaignOptions, type GetCampaignRequest, type GetCampaignResponse, type GetComposerRequest, type GetComposerResponse, type GetDefaultComponentsRequest, type GetDefaultComponentsResponse, type GetLabelsRequest, type GetLabelsResponse, type GetPlaceholderKeysRequest, type GetPlaceholderKeysResponse, type GetUsedPlaceholderKeysRequest, type GetUsedPlaceholderKeysResponse, type HardBounce, type Html, type IdentificationData, type IdentificationDataIdOneOf, type IdentifySenderAddressRequest, type IdentifySenderAddressResponse, type Integer, type Label, type LandingPageStatistics, type ListCampaignsOptions, type ListCampaignsRequest, type ListCampaignsResponse, type ListRecipientsOptions, type ListRecipientsRequest, type ListRecipientsResponse, type ListStatisticsRequest, type ListStatisticsResponse, type LookupCampaignMappingRequest, type LookupCampaignMappingResponse, type Map, type MessageEnvelope, type Money, type Open, type Paging, type PagingMetadataV2, type PauseSchedulingRequest, type PauseSchedulingResponse, type Paused, type PlaceholderContent, type PlaceholderContentEnum, type PlaceholderContentValueOneOf, type PlainText, type PreviewCampaignRequest, type PreviewCampaignResponse, type PublishCampaignApplicationErrors, type PublishCampaignOptions, type PublishCampaignRequest, type PublishCampaignResponse, type Published, type PublishingData, RecipientsActivityEnum, type RecipientsActivityEnumWithLiterals, type ReconcileContactRequest, type ReconcileContactResponse, type Rejected, type RejectionData, RejectionReasonEnum, type RejectionReasonEnumWithLiterals, type RescheduleRequest, type RescheduleResponse, type ResendToNonOpenersRequest, type ResendToNonOpenersResponse, type RestoreInfo, type ReuseCampaignRequest, type ReuseCampaignResponse, type Scheduled, type SearchContactsRequest, type SearchContactsResponse, type SendTestBulkRequest, type SendTestBulkResponse, type SendTestOptions, type SendTestRequest, type SendTestResponse, type SoftBounce, type SubscribeFromLandingPageRequest, type SubscribeFromLandingPageResponse, type Terminated, type TotalStatistics, type UnarchiveCampaignRequest, type UnarchiveCampaignResponse, type Unarchived, type UpdateComposerRequest, type UpdateComposerResponse, type UpdateTitleRequest, type UpdateTitleResponse, type UpsertAutomationTranslatorContentRequest, type UpsertAutomationTranslatorContentResponse, type UpsertTranslationRequest, type UpsertTranslationResponse, type ValidateHtmlLinksRequest, type ValidateHtmlLinksResponse, type ValidateLinkRequest, type ValidateLinkResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, onCampaignCreated, onCampaignDeleted, onCampaignDistributedEvent, onCampaignEmailActivityUpdated, onCampaignPausedEvent, onCampaignPublishedEvent, onCampaignRejectedEvent, onCampaignScheduledEvent, onCampaignTerminatedEvent, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|