@wix/auto_sdk_email-marketing_campaigns 1.0.12 → 1.0.13
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/src/email-marketing-v1-campaign-campaigns.context.d.ts +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +120 -128
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +170 -144
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +24 -0
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +120 -128
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +170 -144
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js +24 -0
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.d.ts +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +120 -128
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +170 -144
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +24 -0
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +120 -128
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +170 -144
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js +24 -0
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -197,117 +197,6 @@ export declare enum CampaignTypeEnum {
|
|
|
197
197
|
/** Triggered email. */
|
|
198
198
|
TRIGGERED = "TRIGGERED"
|
|
199
199
|
}
|
|
200
|
-
export interface ListStatisticsRequest {
|
|
201
|
-
/**
|
|
202
|
-
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
203
|
-
* @format GUID
|
|
204
|
-
* @minSize 1
|
|
205
|
-
* @maxSize 100
|
|
206
|
-
*/
|
|
207
|
-
campaignIds: string[];
|
|
208
|
-
}
|
|
209
|
-
export interface ListStatisticsResponse {
|
|
210
|
-
/** List of statistics. */
|
|
211
|
-
statistics?: CampaignStatisticsContainer[];
|
|
212
|
-
}
|
|
213
|
-
export interface CampaignStatisticsContainer {
|
|
214
|
-
/**
|
|
215
|
-
* Campaign ID.
|
|
216
|
-
* @format GUID
|
|
217
|
-
*/
|
|
218
|
-
campaignId?: string;
|
|
219
|
-
/** Landing page statistics. */
|
|
220
|
-
landingPage?: LandingPageStatistics;
|
|
221
|
-
/** Email campaign statistics. */
|
|
222
|
-
email?: DistributionStatistics;
|
|
223
|
-
}
|
|
224
|
-
export interface ListRecipientsRequest {
|
|
225
|
-
/**
|
|
226
|
-
* Campaign ID.
|
|
227
|
-
* @format GUID
|
|
228
|
-
*/
|
|
229
|
-
campaignId: string;
|
|
230
|
-
/** Email activity to filter. */
|
|
231
|
-
activity: RecipientsActivityEnum;
|
|
232
|
-
/** Pagination options. */
|
|
233
|
-
paging?: CursorPaging;
|
|
234
|
-
}
|
|
235
|
-
export declare enum RecipientsActivityEnum {
|
|
236
|
-
UNKNOWN = "UNKNOWN",
|
|
237
|
-
DELIVERED = "DELIVERED",
|
|
238
|
-
OPENED = "OPENED",
|
|
239
|
-
CLICKED = "CLICKED",
|
|
240
|
-
BOUNCED = "BOUNCED",
|
|
241
|
-
NOT_SENT = "NOT_SENT",
|
|
242
|
-
SENT = "SENT",
|
|
243
|
-
NOT_OPENED = "NOT_OPENED"
|
|
244
|
-
}
|
|
245
|
-
export interface CursorPaging {
|
|
246
|
-
/**
|
|
247
|
-
* Number of items to load.
|
|
248
|
-
* @max 1000
|
|
249
|
-
*/
|
|
250
|
-
limit?: number | null;
|
|
251
|
-
/**
|
|
252
|
-
* Pointer to the next or previous page in the list of results.
|
|
253
|
-
*
|
|
254
|
-
* You can get the relevant cursor token
|
|
255
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
256
|
-
* Not relevant for the first request.
|
|
257
|
-
*/
|
|
258
|
-
cursor?: string | null;
|
|
259
|
-
}
|
|
260
|
-
export interface ListRecipientsResponse {
|
|
261
|
-
/** List of recipients. */
|
|
262
|
-
recipients?: CampaignRecipientDetails[];
|
|
263
|
-
/** Details on the paged set of returned results. */
|
|
264
|
-
pagingMetadata?: PagingMetadataV2;
|
|
265
|
-
}
|
|
266
|
-
export interface CampaignRecipientDetails {
|
|
267
|
-
/**
|
|
268
|
-
* Contact ID.
|
|
269
|
-
* @format GUID
|
|
270
|
-
*/
|
|
271
|
-
contactId?: string;
|
|
272
|
-
/** Date and time of the last activity. */
|
|
273
|
-
lastActivityDate?: Date | null;
|
|
274
|
-
/**
|
|
275
|
-
* Primary email address of the contact.
|
|
276
|
-
* @format EMAIL
|
|
277
|
-
*/
|
|
278
|
-
emailAddress?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Full name of the contact (optional).
|
|
281
|
-
* @maxLength 100
|
|
282
|
-
*/
|
|
283
|
-
fullName?: string | null;
|
|
284
|
-
/** Is this contact currently deleted from the site or not. */
|
|
285
|
-
contactDeleted?: boolean;
|
|
286
|
-
}
|
|
287
|
-
export interface PagingMetadataV2 {
|
|
288
|
-
/** Number of items returned in the response. */
|
|
289
|
-
count?: number | null;
|
|
290
|
-
/** Offset that was requested. */
|
|
291
|
-
offset?: number | null;
|
|
292
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
293
|
-
total?: number | null;
|
|
294
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
295
|
-
tooManyToCount?: boolean | null;
|
|
296
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
297
|
-
cursors?: Cursors;
|
|
298
|
-
}
|
|
299
|
-
export interface Cursors {
|
|
300
|
-
/**
|
|
301
|
-
* Cursor string pointing to the next page in the list of results.
|
|
302
|
-
* @maxLength 16000
|
|
303
|
-
*/
|
|
304
|
-
next?: string | null;
|
|
305
|
-
/**
|
|
306
|
-
* Cursor pointing to the previous page in the list of results.
|
|
307
|
-
* @maxLength 16000
|
|
308
|
-
*/
|
|
309
|
-
prev?: string | null;
|
|
310
|
-
}
|
|
311
200
|
export interface GetCampaignMappingRequest {
|
|
312
201
|
/**
|
|
313
202
|
* rule ID in automations
|
|
@@ -550,6 +439,117 @@ export interface Decimal {
|
|
|
550
439
|
}
|
|
551
440
|
export interface SendTestBulkResponse {
|
|
552
441
|
}
|
|
442
|
+
export interface ListStatisticsRequest {
|
|
443
|
+
/**
|
|
444
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
445
|
+
* @format GUID
|
|
446
|
+
* @minSize 1
|
|
447
|
+
* @maxSize 100
|
|
448
|
+
*/
|
|
449
|
+
campaignIds: string[];
|
|
450
|
+
}
|
|
451
|
+
export interface ListStatisticsResponse {
|
|
452
|
+
/** List of statistics. */
|
|
453
|
+
statistics?: CampaignStatisticsContainer[];
|
|
454
|
+
}
|
|
455
|
+
export interface CampaignStatisticsContainer {
|
|
456
|
+
/**
|
|
457
|
+
* Campaign ID.
|
|
458
|
+
* @format GUID
|
|
459
|
+
*/
|
|
460
|
+
campaignId?: string;
|
|
461
|
+
/** Landing page statistics. */
|
|
462
|
+
landingPage?: LandingPageStatistics;
|
|
463
|
+
/** Email campaign statistics. */
|
|
464
|
+
email?: DistributionStatistics;
|
|
465
|
+
}
|
|
466
|
+
export interface ListRecipientsRequest {
|
|
467
|
+
/**
|
|
468
|
+
* Campaign ID.
|
|
469
|
+
* @format GUID
|
|
470
|
+
*/
|
|
471
|
+
campaignId: string;
|
|
472
|
+
/** Email activity to filter. */
|
|
473
|
+
activity: RecipientsActivityEnum;
|
|
474
|
+
/** Pagination options. */
|
|
475
|
+
paging?: CursorPaging;
|
|
476
|
+
}
|
|
477
|
+
export declare enum RecipientsActivityEnum {
|
|
478
|
+
UNKNOWN = "UNKNOWN",
|
|
479
|
+
DELIVERED = "DELIVERED",
|
|
480
|
+
OPENED = "OPENED",
|
|
481
|
+
CLICKED = "CLICKED",
|
|
482
|
+
BOUNCED = "BOUNCED",
|
|
483
|
+
NOT_SENT = "NOT_SENT",
|
|
484
|
+
SENT = "SENT",
|
|
485
|
+
NOT_OPENED = "NOT_OPENED"
|
|
486
|
+
}
|
|
487
|
+
export interface CursorPaging {
|
|
488
|
+
/**
|
|
489
|
+
* Number of items to load.
|
|
490
|
+
* @max 1000
|
|
491
|
+
*/
|
|
492
|
+
limit?: number | null;
|
|
493
|
+
/**
|
|
494
|
+
* Pointer to the next or previous page in the list of results.
|
|
495
|
+
*
|
|
496
|
+
* You can get the relevant cursor token
|
|
497
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
498
|
+
* Not relevant for the first request.
|
|
499
|
+
*/
|
|
500
|
+
cursor?: string | null;
|
|
501
|
+
}
|
|
502
|
+
export interface ListRecipientsResponse {
|
|
503
|
+
/** List of recipients. */
|
|
504
|
+
recipients?: CampaignRecipientDetails[];
|
|
505
|
+
/** Details on the paged set of returned results. */
|
|
506
|
+
pagingMetadata?: PagingMetadataV2;
|
|
507
|
+
}
|
|
508
|
+
export interface CampaignRecipientDetails {
|
|
509
|
+
/**
|
|
510
|
+
* Contact ID.
|
|
511
|
+
* @format GUID
|
|
512
|
+
*/
|
|
513
|
+
contactId?: string;
|
|
514
|
+
/** Date and time of the last activity. */
|
|
515
|
+
lastActivityDate?: Date | null;
|
|
516
|
+
/**
|
|
517
|
+
* Primary email address of the contact.
|
|
518
|
+
* @format EMAIL
|
|
519
|
+
*/
|
|
520
|
+
emailAddress?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Full name of the contact (optional).
|
|
523
|
+
* @maxLength 100
|
|
524
|
+
*/
|
|
525
|
+
fullName?: string | null;
|
|
526
|
+
/** Is this contact currently deleted from the site or not. */
|
|
527
|
+
contactDeleted?: boolean;
|
|
528
|
+
}
|
|
529
|
+
export interface PagingMetadataV2 {
|
|
530
|
+
/** Number of items returned in the response. */
|
|
531
|
+
count?: number | null;
|
|
532
|
+
/** Offset that was requested. */
|
|
533
|
+
offset?: number | null;
|
|
534
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
535
|
+
total?: number | null;
|
|
536
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
537
|
+
tooManyToCount?: boolean | null;
|
|
538
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
539
|
+
cursors?: Cursors;
|
|
540
|
+
}
|
|
541
|
+
export interface Cursors {
|
|
542
|
+
/**
|
|
543
|
+
* Cursor string pointing to the next page in the list of results.
|
|
544
|
+
* @maxLength 16000
|
|
545
|
+
*/
|
|
546
|
+
next?: string | null;
|
|
547
|
+
/**
|
|
548
|
+
* Cursor pointing to the previous page in the list of results.
|
|
549
|
+
* @maxLength 16000
|
|
550
|
+
*/
|
|
551
|
+
prev?: string | null;
|
|
552
|
+
}
|
|
553
553
|
export interface GetCampaignRequest {
|
|
554
554
|
/**
|
|
555
555
|
* Campaign ID.
|
|
@@ -1118,25 +1118,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1118
1118
|
updatedEvent?: EntityUpdatedEvent;
|
|
1119
1119
|
deletedEvent?: EntityDeletedEvent;
|
|
1120
1120
|
actionEvent?: ActionEvent;
|
|
1121
|
-
/**
|
|
1122
|
-
* Unique event ID.
|
|
1123
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1124
|
-
*/
|
|
1121
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1125
1122
|
_id?: string;
|
|
1126
1123
|
/**
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1124
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1125
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1129
1126
|
*/
|
|
1130
1127
|
entityFqdn?: string;
|
|
1131
1128
|
/**
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1129
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1130
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1135
1131
|
*/
|
|
1136
1132
|
slug?: string;
|
|
1137
1133
|
/** ID of the entity associated with the event. */
|
|
1138
1134
|
entityId?: string;
|
|
1139
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1135
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1140
1136
|
eventTime?: Date | null;
|
|
1141
1137
|
/**
|
|
1142
1138
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1146,12 +1142,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1146
1142
|
/** If present, indicates the action that triggered the event. */
|
|
1147
1143
|
originatedFrom?: string | null;
|
|
1148
1144
|
/**
|
|
1149
|
-
* A sequence number
|
|
1150
|
-
*
|
|
1151
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1152
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1153
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1154
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1145
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1146
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1155
1147
|
*/
|
|
1156
1148
|
entityEventSequence?: string | null;
|
|
1157
1149
|
}
|
|
@@ -1177,7 +1169,7 @@ export interface EntityUpdatedEvent {
|
|
|
1177
1169
|
currentEntity?: string;
|
|
1178
1170
|
}
|
|
1179
1171
|
export interface EntityDeletedEvent {
|
|
1180
|
-
/** Entity that was deleted */
|
|
1172
|
+
/** Entity that was deleted. */
|
|
1181
1173
|
deletedEntity?: string | null;
|
|
1182
1174
|
}
|
|
1183
1175
|
export interface ActionEvent {
|
|
@@ -1453,25 +1445,21 @@ export interface BaseEventMetadata {
|
|
|
1453
1445
|
identity?: IdentificationData;
|
|
1454
1446
|
}
|
|
1455
1447
|
export interface EventMetadata extends BaseEventMetadata {
|
|
1456
|
-
/**
|
|
1457
|
-
* Unique event ID.
|
|
1458
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1459
|
-
*/
|
|
1448
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1460
1449
|
_id?: string;
|
|
1461
1450
|
/**
|
|
1462
|
-
*
|
|
1463
|
-
*
|
|
1451
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1452
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1464
1453
|
*/
|
|
1465
1454
|
entityFqdn?: string;
|
|
1466
1455
|
/**
|
|
1467
|
-
*
|
|
1468
|
-
*
|
|
1469
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1456
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1457
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1470
1458
|
*/
|
|
1471
1459
|
slug?: string;
|
|
1472
1460
|
/** ID of the entity associated with the event. */
|
|
1473
1461
|
entityId?: string;
|
|
1474
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1462
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1475
1463
|
eventTime?: Date | null;
|
|
1476
1464
|
/**
|
|
1477
1465
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1481,12 +1469,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1481
1469
|
/** If present, indicates the action that triggered the event. */
|
|
1482
1470
|
originatedFrom?: string | null;
|
|
1483
1471
|
/**
|
|
1484
|
-
* A sequence number
|
|
1485
|
-
*
|
|
1486
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1487
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1488
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1489
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1472
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1473
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1490
1474
|
*/
|
|
1491
1475
|
entityEventSequence?: string | null;
|
|
1492
1476
|
}
|
|
@@ -1496,6 +1480,8 @@ export interface CampaignDistributedEnvelope {
|
|
|
1496
1480
|
}
|
|
1497
1481
|
/**
|
|
1498
1482
|
* Triggered when a campaign is successfully distributed to all recipients.
|
|
1483
|
+
* @permissionScope Manage Stores
|
|
1484
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1499
1485
|
* @permissionScope Access Verticals by Automations
|
|
1500
1486
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1501
1487
|
* @permissionScope Set Up Automations
|
|
@@ -1517,6 +1503,8 @@ export interface CampaignPausedEnvelope {
|
|
|
1517
1503
|
}
|
|
1518
1504
|
/**
|
|
1519
1505
|
* Triggered when a scheduled campaign is paused.
|
|
1506
|
+
* @permissionScope Manage Stores
|
|
1507
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1520
1508
|
* @permissionScope Access Verticals by Automations
|
|
1521
1509
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1522
1510
|
* @permissionScope Set Up Automations
|
|
@@ -1538,6 +1526,8 @@ export interface CampaignPublishedEnvelope {
|
|
|
1538
1526
|
}
|
|
1539
1527
|
/**
|
|
1540
1528
|
* Triggered when a draft campaign is published.
|
|
1529
|
+
* @permissionScope Manage Stores
|
|
1530
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1541
1531
|
* @permissionScope Access Verticals by Automations
|
|
1542
1532
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1543
1533
|
* @permissionScope Set Up Automations
|
|
@@ -1559,6 +1549,8 @@ export interface CampaignRejectedEnvelope {
|
|
|
1559
1549
|
}
|
|
1560
1550
|
/**
|
|
1561
1551
|
* Triggered when a campaign is identified as abusive and rejected without sending emails to recipients.
|
|
1552
|
+
* @permissionScope Manage Stores
|
|
1553
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1562
1554
|
* @permissionScope Access Verticals by Automations
|
|
1563
1555
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1564
1556
|
* @permissionScope Set Up Automations
|
|
@@ -1580,6 +1572,8 @@ export interface CampaignScheduledEnvelope {
|
|
|
1580
1572
|
}
|
|
1581
1573
|
/**
|
|
1582
1574
|
* Triggered when a campaign is scheduled to be sent out at the specific time.
|
|
1575
|
+
* @permissionScope Manage Stores
|
|
1576
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1583
1577
|
* @permissionScope Access Verticals by Automations
|
|
1584
1578
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1585
1579
|
* @permissionScope Set Up Automations
|
|
@@ -1601,6 +1595,8 @@ export interface CampaignTerminatedEnvelope {
|
|
|
1601
1595
|
}
|
|
1602
1596
|
/**
|
|
1603
1597
|
* Triggered when the mailing list isn't clean and campaign was terminated.
|
|
1598
|
+
* @permissionScope Manage Stores
|
|
1599
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1604
1600
|
* @permissionScope Access Verticals by Automations
|
|
1605
1601
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1606
1602
|
* @permissionScope Set Up Automations
|
|
@@ -1622,6 +1618,8 @@ export interface CampaignCreatedEnvelope {
|
|
|
1622
1618
|
}
|
|
1623
1619
|
/**
|
|
1624
1620
|
* Triggered when a campaign is created.
|
|
1621
|
+
* @permissionScope Manage Stores
|
|
1622
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1625
1623
|
* @permissionScope Access Verticals by Automations
|
|
1626
1624
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1627
1625
|
* @permissionScope Set Up Automations
|
|
@@ -1642,6 +1640,8 @@ export interface CampaignDeletedEnvelope {
|
|
|
1642
1640
|
}
|
|
1643
1641
|
/**
|
|
1644
1642
|
* Triggered when a campaign is deleted.
|
|
1643
|
+
* @permissionScope Manage Stores
|
|
1644
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1645
1645
|
* @permissionScope Access Verticals by Automations
|
|
1646
1646
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1647
1647
|
* @permissionScope Set Up Automations
|
|
@@ -1663,6 +1663,8 @@ export interface CampaignEmailActivityUpdatedEnvelope {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Triggered when an email campaign has a new recipient activity.
|
|
1666
|
+
* @permissionScope Manage Stores
|
|
1667
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1666
1668
|
* @permissionScope Access Verticals by Automations
|
|
1667
1669
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1668
1670
|
* @permissionScope Set Up Automations
|
|
@@ -1691,6 +1693,8 @@ type CampaignNonNullablePaths = `campaignId` | `editorType` | `status` | `visibi
|
|
|
1691
1693
|
* @public
|
|
1692
1694
|
* @requiredField campaignIds
|
|
1693
1695
|
* @permissionId Shoutout.Read
|
|
1696
|
+
* @permissionScope Manage Stores
|
|
1697
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1694
1698
|
* @permissionScope Access Verticals by Automations
|
|
1695
1699
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1696
1700
|
* @permissionScope Set Up Automations
|
|
@@ -1719,6 +1723,8 @@ export declare function listStatistics(campaignIds: string[]): Promise<NonNullab
|
|
|
1719
1723
|
* @requiredField campaignId
|
|
1720
1724
|
* @param options - Options to use when getting the list of recipients.
|
|
1721
1725
|
* @permissionId Shoutout.Read
|
|
1726
|
+
* @permissionScope Manage Stores
|
|
1727
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1722
1728
|
* @permissionScope Access Verticals by Automations
|
|
1723
1729
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1724
1730
|
* @permissionScope Set Up Automations
|
|
@@ -1742,6 +1748,8 @@ export interface ListRecipientsOptions {
|
|
|
1742
1748
|
* @requiredField campaignId
|
|
1743
1749
|
* @param options - Options to use when getting a campaign.
|
|
1744
1750
|
* @permissionId Shoutout.Manage
|
|
1751
|
+
* @permissionScope Manage Stores
|
|
1752
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1745
1753
|
* @permissionScope Access Verticals by Automations
|
|
1746
1754
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1747
1755
|
* @permissionScope Set Up Automations
|
|
@@ -1768,6 +1776,8 @@ export interface GetCampaignOptions {
|
|
|
1768
1776
|
* @public
|
|
1769
1777
|
* @param options - Options to use when getting the list of campaigns.
|
|
1770
1778
|
* @permissionId Shoutout.Read
|
|
1779
|
+
* @permissionScope Manage Stores
|
|
1780
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1771
1781
|
* @permissionScope Access Verticals by Automations
|
|
1772
1782
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1773
1783
|
* @permissionScope Set Up Automations
|
|
@@ -1805,6 +1815,8 @@ export interface ListCampaignsOptions {
|
|
|
1805
1815
|
* @requiredField campaignId
|
|
1806
1816
|
* @param options - Options to use when publishing a campaign.
|
|
1807
1817
|
* @permissionId Shoutout.Manage
|
|
1818
|
+
* @permissionScope Manage Stores
|
|
1819
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1808
1820
|
* @permissionScope Access Verticals by Automations
|
|
1809
1821
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1810
1822
|
* @permissionScope Set Up Automations
|
|
@@ -1829,6 +1841,8 @@ export interface PublishCampaignOptions {
|
|
|
1829
1841
|
* @requiredField options.toEmailAddress
|
|
1830
1842
|
* @param options - Options for sending a test email.
|
|
1831
1843
|
* @permissionId Shoutout.Manage
|
|
1844
|
+
* @permissionScope Manage Stores
|
|
1845
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1832
1846
|
* @permissionScope Access Verticals by Automations
|
|
1833
1847
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1834
1848
|
* @permissionScope Set Up Automations
|
|
@@ -1857,6 +1871,8 @@ export interface SendTestOptions {
|
|
|
1857
1871
|
* @public
|
|
1858
1872
|
* @requiredField campaignId
|
|
1859
1873
|
* @permissionId Shoutout.Manage
|
|
1874
|
+
* @permissionScope Manage Stores
|
|
1875
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1860
1876
|
* @permissionScope Access Verticals by Automations
|
|
1861
1877
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1862
1878
|
* @permissionScope Set Up Automations
|
|
@@ -1875,6 +1891,8 @@ export declare function pauseScheduling(campaignId: string): Promise<void>;
|
|
|
1875
1891
|
* @requiredField campaignId
|
|
1876
1892
|
* @requiredField sendAt
|
|
1877
1893
|
* @permissionId Shoutout.Manage
|
|
1894
|
+
* @permissionScope Manage Stores
|
|
1895
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1878
1896
|
* @permissionScope Access Verticals by Automations
|
|
1879
1897
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1880
1898
|
* @permissionScope Set Up Automations
|
|
@@ -1891,6 +1909,8 @@ export declare function reschedule(campaignId: string, sendAt: Date): Promise<vo
|
|
|
1891
1909
|
* @public
|
|
1892
1910
|
* @requiredField campaignId
|
|
1893
1911
|
* @permissionId Shoutout.Manage
|
|
1912
|
+
* @permissionScope Manage Stores
|
|
1913
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1894
1914
|
* @permissionScope Access Verticals by Automations
|
|
1895
1915
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1896
1916
|
* @permissionScope Set Up Automations
|
|
@@ -1907,6 +1927,8 @@ export declare function deleteCampaign(campaignId: string): Promise<void>;
|
|
|
1907
1927
|
* @public
|
|
1908
1928
|
* @requiredField campaignId
|
|
1909
1929
|
* @permissionId Shoutout.Manage
|
|
1930
|
+
* @permissionScope Manage Stores
|
|
1931
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1910
1932
|
* @permissionScope Access Verticals by Automations
|
|
1911
1933
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1912
1934
|
* @permissionScope Set Up Automations
|
|
@@ -1925,6 +1947,8 @@ export declare function reuseCampaign(campaignId: string): Promise<NonNullablePa
|
|
|
1925
1947
|
* @public
|
|
1926
1948
|
* @requiredField campaignId
|
|
1927
1949
|
* @permissionId Shoutout.Manage
|
|
1950
|
+
* @permissionScope Manage Stores
|
|
1951
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1928
1952
|
* @permissionScope Access Verticals by Automations
|
|
1929
1953
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1930
1954
|
* @permissionScope Set Up Automations
|
|
@@ -1941,6 +1965,8 @@ export declare function getAudience(campaignId: string): Promise<NonNullablePath
|
|
|
1941
1965
|
* @public
|
|
1942
1966
|
* @requiredField emailAddress
|
|
1943
1967
|
* @permissionId Shoutout.Manage
|
|
1968
|
+
* @permissionScope Manage Stores
|
|
1969
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1944
1970
|
* @permissionScope Access Verticals by Automations
|
|
1945
1971
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1946
1972
|
* @permissionScope Set Up Automations
|
|
@@ -157,6 +157,8 @@ export var WebhookIdentityType;
|
|
|
157
157
|
* @public
|
|
158
158
|
* @requiredField campaignIds
|
|
159
159
|
* @permissionId Shoutout.Read
|
|
160
|
+
* @permissionScope Manage Stores
|
|
161
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
160
162
|
* @permissionScope Access Verticals by Automations
|
|
161
163
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
162
164
|
* @permissionScope Set Up Automations
|
|
@@ -207,6 +209,8 @@ export async function listStatistics(campaignIds) {
|
|
|
207
209
|
* @requiredField campaignId
|
|
208
210
|
* @param options - Options to use when getting the list of recipients.
|
|
209
211
|
* @permissionId Shoutout.Read
|
|
212
|
+
* @permissionScope Manage Stores
|
|
213
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
210
214
|
* @permissionScope Access Verticals by Automations
|
|
211
215
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
212
216
|
* @permissionScope Set Up Automations
|
|
@@ -254,6 +258,8 @@ export async function listRecipients(campaignId, activity, options) {
|
|
|
254
258
|
* @requiredField campaignId
|
|
255
259
|
* @param options - Options to use when getting a campaign.
|
|
256
260
|
* @permissionId Shoutout.Manage
|
|
261
|
+
* @permissionScope Manage Stores
|
|
262
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
257
263
|
* @permissionScope Access Verticals by Automations
|
|
258
264
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
259
265
|
* @permissionScope Set Up Automations
|
|
@@ -298,6 +304,8 @@ export async function getCampaign(campaignId, options) {
|
|
|
298
304
|
* @public
|
|
299
305
|
* @param options - Options to use when getting the list of campaigns.
|
|
300
306
|
* @permissionId Shoutout.Read
|
|
307
|
+
* @permissionScope Manage Stores
|
|
308
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
301
309
|
* @permissionScope Access Verticals by Automations
|
|
302
310
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
303
311
|
* @permissionScope Set Up Automations
|
|
@@ -349,6 +357,8 @@ export async function listCampaigns(options) {
|
|
|
349
357
|
* @requiredField campaignId
|
|
350
358
|
* @param options - Options to use when publishing a campaign.
|
|
351
359
|
* @permissionId Shoutout.Manage
|
|
360
|
+
* @permissionScope Manage Stores
|
|
361
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
352
362
|
* @permissionScope Access Verticals by Automations
|
|
353
363
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
354
364
|
* @permissionScope Set Up Automations
|
|
@@ -395,6 +405,8 @@ export async function publishCampaign(campaignId, options) {
|
|
|
395
405
|
* @requiredField options.toEmailAddress
|
|
396
406
|
* @param options - Options for sending a test email.
|
|
397
407
|
* @permissionId Shoutout.Manage
|
|
408
|
+
* @permissionScope Manage Stores
|
|
409
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
398
410
|
* @permissionScope Access Verticals by Automations
|
|
399
411
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
400
412
|
* @permissionScope Set Up Automations
|
|
@@ -438,6 +450,8 @@ export async function sendTest(campaignId, options) {
|
|
|
438
450
|
* @public
|
|
439
451
|
* @requiredField campaignId
|
|
440
452
|
* @permissionId Shoutout.Manage
|
|
453
|
+
* @permissionScope Manage Stores
|
|
454
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
441
455
|
* @permissionScope Access Verticals by Automations
|
|
442
456
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
443
457
|
* @permissionScope Set Up Automations
|
|
@@ -477,6 +491,8 @@ export async function pauseScheduling(campaignId) {
|
|
|
477
491
|
* @requiredField campaignId
|
|
478
492
|
* @requiredField sendAt
|
|
479
493
|
* @permissionId Shoutout.Manage
|
|
494
|
+
* @permissionScope Manage Stores
|
|
495
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
480
496
|
* @permissionScope Access Verticals by Automations
|
|
481
497
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
482
498
|
* @permissionScope Set Up Automations
|
|
@@ -515,6 +531,8 @@ export async function reschedule(campaignId, sendAt) {
|
|
|
515
531
|
* @public
|
|
516
532
|
* @requiredField campaignId
|
|
517
533
|
* @permissionId Shoutout.Manage
|
|
534
|
+
* @permissionScope Manage Stores
|
|
535
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
518
536
|
* @permissionScope Access Verticals by Automations
|
|
519
537
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
520
538
|
* @permissionScope Set Up Automations
|
|
@@ -552,6 +570,8 @@ export async function deleteCampaign(campaignId) {
|
|
|
552
570
|
* @public
|
|
553
571
|
* @requiredField campaignId
|
|
554
572
|
* @permissionId Shoutout.Manage
|
|
573
|
+
* @permissionScope Manage Stores
|
|
574
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
555
575
|
* @permissionScope Access Verticals by Automations
|
|
556
576
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
557
577
|
* @permissionScope Set Up Automations
|
|
@@ -590,6 +610,8 @@ export async function reuseCampaign(campaignId) {
|
|
|
590
610
|
* @public
|
|
591
611
|
* @requiredField campaignId
|
|
592
612
|
* @permissionId Shoutout.Manage
|
|
613
|
+
* @permissionScope Manage Stores
|
|
614
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
593
615
|
* @permissionScope Access Verticals by Automations
|
|
594
616
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
595
617
|
* @permissionScope Set Up Automations
|
|
@@ -628,6 +650,8 @@ export async function getAudience(campaignId) {
|
|
|
628
650
|
* @public
|
|
629
651
|
* @requiredField emailAddress
|
|
630
652
|
* @permissionId Shoutout.Manage
|
|
653
|
+
* @permissionScope Manage Stores
|
|
654
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
631
655
|
* @permissionScope Access Verticals by Automations
|
|
632
656
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
633
657
|
* @permissionScope Set Up Automations
|