@wix/auto_sdk_email-marketing_campaigns 1.0.61 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +114 -132
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +114 -114
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +114 -132
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +114 -114
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -132
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +114 -114
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -132
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +114 -114
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -213,6 +213,120 @@ declare enum CampaignTypeEnum {
|
|
|
213
213
|
}
|
|
214
214
|
/** @enumType */
|
|
215
215
|
type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
216
|
+
interface ListStatisticsRequest {
|
|
217
|
+
/**
|
|
218
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
219
|
+
* @format GUID
|
|
220
|
+
* @minSize 1
|
|
221
|
+
* @maxSize 100
|
|
222
|
+
*/
|
|
223
|
+
campaignIds: string[];
|
|
224
|
+
}
|
|
225
|
+
interface ListStatisticsResponse {
|
|
226
|
+
/** List of statistics. */
|
|
227
|
+
statistics?: CampaignStatisticsContainer[];
|
|
228
|
+
}
|
|
229
|
+
interface CampaignStatisticsContainer {
|
|
230
|
+
/**
|
|
231
|
+
* Campaign ID.
|
|
232
|
+
* @format GUID
|
|
233
|
+
*/
|
|
234
|
+
campaignId?: string;
|
|
235
|
+
/** Landing page statistics. */
|
|
236
|
+
landingPage?: LandingPageStatistics;
|
|
237
|
+
/** Email campaign statistics. */
|
|
238
|
+
email?: DistributionStatistics;
|
|
239
|
+
}
|
|
240
|
+
interface ListRecipientsRequest {
|
|
241
|
+
/**
|
|
242
|
+
* Campaign ID.
|
|
243
|
+
* @format GUID
|
|
244
|
+
*/
|
|
245
|
+
campaignId: string;
|
|
246
|
+
/** Email activity to filter. */
|
|
247
|
+
activity: RecipientsActivityEnumWithLiterals;
|
|
248
|
+
/** Pagination options. */
|
|
249
|
+
paging?: CursorPaging;
|
|
250
|
+
}
|
|
251
|
+
declare enum RecipientsActivityEnum {
|
|
252
|
+
UNKNOWN = "UNKNOWN",
|
|
253
|
+
DELIVERED = "DELIVERED",
|
|
254
|
+
OPENED = "OPENED",
|
|
255
|
+
CLICKED = "CLICKED",
|
|
256
|
+
BOUNCED = "BOUNCED",
|
|
257
|
+
NOT_SENT = "NOT_SENT",
|
|
258
|
+
SENT = "SENT",
|
|
259
|
+
NOT_OPENED = "NOT_OPENED"
|
|
260
|
+
}
|
|
261
|
+
/** @enumType */
|
|
262
|
+
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
263
|
+
interface CursorPaging {
|
|
264
|
+
/**
|
|
265
|
+
* Number of items to load.
|
|
266
|
+
* @max 1000
|
|
267
|
+
*/
|
|
268
|
+
limit?: number | null;
|
|
269
|
+
/**
|
|
270
|
+
* Pointer to the next or previous page in the list of results.
|
|
271
|
+
*
|
|
272
|
+
* You can get the relevant cursor token
|
|
273
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
274
|
+
* Not relevant for the first request.
|
|
275
|
+
* @maxLength 1000
|
|
276
|
+
*/
|
|
277
|
+
cursor?: string | null;
|
|
278
|
+
}
|
|
279
|
+
interface ListRecipientsResponse {
|
|
280
|
+
/** List of recipients. */
|
|
281
|
+
recipients?: CampaignRecipientDetails[];
|
|
282
|
+
/** Details on the paged set of returned results. */
|
|
283
|
+
pagingMetadata?: PagingMetadataV2;
|
|
284
|
+
}
|
|
285
|
+
interface CampaignRecipientDetails {
|
|
286
|
+
/**
|
|
287
|
+
* Contact ID.
|
|
288
|
+
* @format GUID
|
|
289
|
+
*/
|
|
290
|
+
contactId?: string;
|
|
291
|
+
/** Date and time of the last activity. */
|
|
292
|
+
lastActivityDate?: Date | null;
|
|
293
|
+
/**
|
|
294
|
+
* Primary email address of the contact.
|
|
295
|
+
* @format EMAIL
|
|
296
|
+
*/
|
|
297
|
+
emailAddress?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Full name of the contact (optional).
|
|
300
|
+
* @maxLength 100
|
|
301
|
+
*/
|
|
302
|
+
fullName?: string | null;
|
|
303
|
+
/** Is this contact currently deleted from the site or not. */
|
|
304
|
+
contactDeleted?: boolean;
|
|
305
|
+
}
|
|
306
|
+
interface PagingMetadataV2 {
|
|
307
|
+
/** Number of items returned in the response. */
|
|
308
|
+
count?: number | null;
|
|
309
|
+
/** Offset that was requested. */
|
|
310
|
+
offset?: number | null;
|
|
311
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
312
|
+
total?: number | null;
|
|
313
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
314
|
+
tooManyToCount?: boolean | null;
|
|
315
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
316
|
+
cursors?: Cursors;
|
|
317
|
+
}
|
|
318
|
+
interface Cursors {
|
|
319
|
+
/**
|
|
320
|
+
* Cursor string pointing to the next page in the list of results.
|
|
321
|
+
* @maxLength 16000
|
|
322
|
+
*/
|
|
323
|
+
next?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Cursor pointing to the previous page in the list of results.
|
|
326
|
+
* @maxLength 16000
|
|
327
|
+
*/
|
|
328
|
+
prev?: string | null;
|
|
329
|
+
}
|
|
216
330
|
interface GetCampaignMappingRequest {
|
|
217
331
|
/**
|
|
218
332
|
* rule ID in automations
|
|
@@ -455,120 +569,6 @@ interface Decimal {
|
|
|
455
569
|
}
|
|
456
570
|
interface SendTestBulkResponse {
|
|
457
571
|
}
|
|
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 {
|
|
528
|
-
/**
|
|
529
|
-
* Contact ID.
|
|
530
|
-
* @format GUID
|
|
531
|
-
*/
|
|
532
|
-
contactId?: string;
|
|
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;
|
|
547
|
-
}
|
|
548
|
-
interface PagingMetadataV2 {
|
|
549
|
-
/** Number of items returned in the response. */
|
|
550
|
-
count?: number | null;
|
|
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;
|
|
559
|
-
}
|
|
560
|
-
interface Cursors {
|
|
561
|
-
/**
|
|
562
|
-
* Cursor string pointing to the next page in the list of results.
|
|
563
|
-
* @maxLength 16000
|
|
564
|
-
*/
|
|
565
|
-
next?: string | null;
|
|
566
|
-
/**
|
|
567
|
-
* Cursor pointing to the previous page in the list of results.
|
|
568
|
-
* @maxLength 16000
|
|
569
|
-
*/
|
|
570
|
-
prev?: string | null;
|
|
571
|
-
}
|
|
572
572
|
interface GetCampaignRequest {
|
|
573
573
|
/**
|
|
574
574
|
* Campaign ID.
|
|
@@ -1521,8 +1521,6 @@ interface CampaignDistributedEnvelope {
|
|
|
1521
1521
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1522
1522
|
* @permissionScope Access Verticals by Automations
|
|
1523
1523
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1524
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1525
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1526
1524
|
* @permissionScope Set Up Automations
|
|
1527
1525
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1528
1526
|
* @permissionScope Read Email Marketing
|
|
@@ -1546,8 +1544,6 @@ interface CampaignPausedEnvelope {
|
|
|
1546
1544
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1547
1545
|
* @permissionScope Access Verticals by Automations
|
|
1548
1546
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1549
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1550
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1551
1547
|
* @permissionScope Set Up Automations
|
|
1552
1548
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1553
1549
|
* @permissionScope Read Email Marketing
|
|
@@ -1571,8 +1567,6 @@ interface CampaignPublishedEnvelope {
|
|
|
1571
1567
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1572
1568
|
* @permissionScope Access Verticals by Automations
|
|
1573
1569
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1574
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1575
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1576
1570
|
* @permissionScope Set Up Automations
|
|
1577
1571
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1578
1572
|
* @permissionScope Read Email Marketing
|
|
@@ -1596,8 +1590,6 @@ interface CampaignRejectedEnvelope {
|
|
|
1596
1590
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1597
1591
|
* @permissionScope Access Verticals by Automations
|
|
1598
1592
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1599
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1600
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1601
1593
|
* @permissionScope Set Up Automations
|
|
1602
1594
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1603
1595
|
* @permissionScope Read Email Marketing
|
|
@@ -1621,8 +1613,6 @@ interface CampaignScheduledEnvelope {
|
|
|
1621
1613
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1622
1614
|
* @permissionScope Access Verticals by Automations
|
|
1623
1615
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1624
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1625
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1626
1616
|
* @permissionScope Set Up Automations
|
|
1627
1617
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1628
1618
|
* @permissionScope Read Email Marketing
|
|
@@ -1646,8 +1636,6 @@ interface CampaignTerminatedEnvelope {
|
|
|
1646
1636
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1647
1637
|
* @permissionScope Access Verticals by Automations
|
|
1648
1638
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1649
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1650
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1651
1639
|
* @permissionScope Set Up Automations
|
|
1652
1640
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1653
1641
|
* @permissionScope Read Email Marketing
|
|
@@ -1671,8 +1659,6 @@ interface CampaignCreatedEnvelope {
|
|
|
1671
1659
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1672
1660
|
* @permissionScope Access Verticals by Automations
|
|
1673
1661
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1674
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1675
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1676
1662
|
* @permissionScope Set Up Automations
|
|
1677
1663
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1678
1664
|
* @permissionScope Read Email Marketing
|
|
@@ -1695,8 +1681,6 @@ interface CampaignDeletedEnvelope {
|
|
|
1695
1681
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1696
1682
|
* @permissionScope Access Verticals by Automations
|
|
1697
1683
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1698
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1699
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1700
1684
|
* @permissionScope Set Up Automations
|
|
1701
1685
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1702
1686
|
* @permissionScope Read Email Marketing
|
|
@@ -1720,8 +1704,6 @@ interface CampaignEmailActivityUpdatedEnvelope {
|
|
|
1720
1704
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1721
1705
|
* @permissionScope Access Verticals by Automations
|
|
1722
1706
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1723
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1724
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1725
1707
|
* @permissionScope Set Up Automations
|
|
1726
1708
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1727
1709
|
* @permissionScope Read Email Marketing
|