@wix/auto_sdk_email-marketing_campaigns 1.0.9 → 1.0.11
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 +7 -7
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js +6 -6
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +23 -23
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js +81 -81
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +6 -6
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +25 -25
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +35 -35
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js +13 -13
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +268 -268
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js +12 -12
- 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 +316 -316
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +88 -88
- 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 +7 -7
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.js +6 -6
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +23 -23
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.js +76 -76
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +6 -6
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js +20 -20
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +35 -35
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.js +8 -8
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +268 -268
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.js +11 -11
- 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 +316 -316
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js +83 -83
- 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 +7 -7
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js +6 -6
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +23 -23
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js +81 -81
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +6 -6
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +25 -25
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +35 -35
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js +13 -13
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts +268 -268
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js +12 -12
- 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 +316 -316
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +88 -88
- 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 +7 -7
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js +6 -6
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +23 -23
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js +76 -76
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +6 -6
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js +20 -20
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +35 -35
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js +8 -8
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js.map +1 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.d.ts +268 -268
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js +11 -11
- 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 +316 -316
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js +83 -83
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -196,27 +196,116 @@ export declare enum CampaignTypeEnum {
|
|
|
196
196
|
/** Triggered email. */
|
|
197
197
|
TRIGGERED = "TRIGGERED"
|
|
198
198
|
}
|
|
199
|
-
export interface
|
|
199
|
+
export interface ListStatisticsRequest {
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @
|
|
201
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
202
|
+
* @format GUID
|
|
203
|
+
* @minSize 1
|
|
204
|
+
* @maxSize 100
|
|
203
205
|
*/
|
|
204
|
-
|
|
206
|
+
campaignIds: string[];
|
|
205
207
|
}
|
|
206
|
-
export interface
|
|
207
|
-
/**
|
|
208
|
-
|
|
208
|
+
export interface ListStatisticsResponse {
|
|
209
|
+
/** List of statistics. */
|
|
210
|
+
statistics?: CampaignStatisticsContainer[];
|
|
209
211
|
}
|
|
210
|
-
export interface
|
|
212
|
+
export interface CampaignStatisticsContainer {
|
|
211
213
|
/**
|
|
212
|
-
*
|
|
213
|
-
* @
|
|
214
|
+
* Campaign ID.
|
|
215
|
+
* @format GUID
|
|
214
216
|
*/
|
|
215
|
-
|
|
217
|
+
campaignId?: string;
|
|
218
|
+
/** Landing page statistics. */
|
|
219
|
+
landingPage?: LandingPageStatistics;
|
|
220
|
+
/** Email campaign statistics. */
|
|
221
|
+
email?: DistributionStatistics;
|
|
216
222
|
}
|
|
217
|
-
export interface
|
|
218
|
-
/**
|
|
219
|
-
|
|
223
|
+
export interface ListRecipientsRequest {
|
|
224
|
+
/**
|
|
225
|
+
* Campaign ID.
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
228
|
+
campaignId: string;
|
|
229
|
+
/** Email activity to filter. */
|
|
230
|
+
activity: RecipientsActivityEnum;
|
|
231
|
+
/** Pagination options. */
|
|
232
|
+
paging?: CursorPaging;
|
|
233
|
+
}
|
|
234
|
+
export declare enum RecipientsActivityEnum {
|
|
235
|
+
UNKNOWN = "UNKNOWN",
|
|
236
|
+
DELIVERED = "DELIVERED",
|
|
237
|
+
OPENED = "OPENED",
|
|
238
|
+
CLICKED = "CLICKED",
|
|
239
|
+
BOUNCED = "BOUNCED",
|
|
240
|
+
NOT_SENT = "NOT_SENT",
|
|
241
|
+
SENT = "SENT",
|
|
242
|
+
NOT_OPENED = "NOT_OPENED"
|
|
243
|
+
}
|
|
244
|
+
export interface CursorPaging {
|
|
245
|
+
/**
|
|
246
|
+
* Number of items to load.
|
|
247
|
+
* @max 1000
|
|
248
|
+
*/
|
|
249
|
+
limit?: number | null;
|
|
250
|
+
/**
|
|
251
|
+
* Pointer to the next or previous page in the list of results.
|
|
252
|
+
*
|
|
253
|
+
* You can get the relevant cursor token
|
|
254
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
255
|
+
* Not relevant for the first request.
|
|
256
|
+
*/
|
|
257
|
+
cursor?: string | null;
|
|
258
|
+
}
|
|
259
|
+
export interface ListRecipientsResponse {
|
|
260
|
+
/** List of recipients. */
|
|
261
|
+
recipients?: CampaignRecipientDetails[];
|
|
262
|
+
/** Details on the paged set of returned results. */
|
|
263
|
+
pagingMetadata?: PagingMetadataV2;
|
|
264
|
+
}
|
|
265
|
+
export interface CampaignRecipientDetails {
|
|
266
|
+
/**
|
|
267
|
+
* Contact ID.
|
|
268
|
+
* @format GUID
|
|
269
|
+
*/
|
|
270
|
+
contactId?: string;
|
|
271
|
+
/** Date and time of the last activity. */
|
|
272
|
+
lastActivityDate?: Date | null;
|
|
273
|
+
/**
|
|
274
|
+
* Primary email address of the contact.
|
|
275
|
+
* @format EMAIL
|
|
276
|
+
*/
|
|
277
|
+
emailAddress?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Full name of the contact (optional).
|
|
280
|
+
* @maxLength 100
|
|
281
|
+
*/
|
|
282
|
+
fullName?: string | null;
|
|
283
|
+
/** Is this contact currently deleted from the site or not. */
|
|
284
|
+
contactDeleted?: boolean;
|
|
285
|
+
}
|
|
286
|
+
export interface PagingMetadataV2 {
|
|
287
|
+
/** Number of items returned in the response. */
|
|
288
|
+
count?: number | null;
|
|
289
|
+
/** Offset that was requested. */
|
|
290
|
+
offset?: number | null;
|
|
291
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
292
|
+
total?: number | null;
|
|
293
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
294
|
+
tooManyToCount?: boolean | null;
|
|
295
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
296
|
+
cursors?: Cursors;
|
|
297
|
+
}
|
|
298
|
+
export interface Cursors {
|
|
299
|
+
/**
|
|
300
|
+
* Cursor string pointing to the next page in the list of results.
|
|
301
|
+
* @maxLength 16000
|
|
302
|
+
*/
|
|
303
|
+
next?: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* Cursor pointing to the previous page in the list of results.
|
|
306
|
+
* @maxLength 16000
|
|
307
|
+
*/
|
|
308
|
+
prev?: string | null;
|
|
220
309
|
}
|
|
221
310
|
export interface GetCampaignMappingRequest {
|
|
222
311
|
/**
|
|
@@ -460,169 +549,6 @@ export interface Decimal {
|
|
|
460
549
|
}
|
|
461
550
|
export interface SendTestBulkResponse {
|
|
462
551
|
}
|
|
463
|
-
export interface GetPlaceholderKeysRequest {
|
|
464
|
-
/**
|
|
465
|
-
* Campaign ID.
|
|
466
|
-
* @format GUID
|
|
467
|
-
*/
|
|
468
|
-
campaignId?: string;
|
|
469
|
-
}
|
|
470
|
-
export interface GetPlaceholderKeysResponse {
|
|
471
|
-
/** Keys of placeholders used in the campaign. */
|
|
472
|
-
placeholderKeys?: string[];
|
|
473
|
-
}
|
|
474
|
-
export interface GetDefaultComponentsRequest {
|
|
475
|
-
}
|
|
476
|
-
export interface GetDefaultComponentsResponse {
|
|
477
|
-
footer?: Record<string, any> | null;
|
|
478
|
-
logo?: Record<string, any> | null;
|
|
479
|
-
follow?: Record<string, any> | null;
|
|
480
|
-
}
|
|
481
|
-
export interface EstimateFilterSizeRequest {
|
|
482
|
-
/** Contacts filter expression. */
|
|
483
|
-
filter?: Record<string, any> | null;
|
|
484
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
485
|
-
activeContactsOnly?: boolean;
|
|
486
|
-
/**
|
|
487
|
-
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
488
|
-
* @minLength 1
|
|
489
|
-
* @maxLength 100
|
|
490
|
-
*/
|
|
491
|
-
search?: string | null;
|
|
492
|
-
}
|
|
493
|
-
export interface EstimateFilterSizeResponse {
|
|
494
|
-
/** Mailing list size estimation. */
|
|
495
|
-
estimation?: number;
|
|
496
|
-
}
|
|
497
|
-
export interface EstimateAudienceSizeRequest {
|
|
498
|
-
/**
|
|
499
|
-
* Contact IDs of a campaign audience.
|
|
500
|
-
* @format GUID
|
|
501
|
-
*/
|
|
502
|
-
contactIds?: string[];
|
|
503
|
-
/** Label IDs of a campaign audience. */
|
|
504
|
-
labelIds?: string[];
|
|
505
|
-
/** Contacts filter expression (json). */
|
|
506
|
-
contactsFilter?: Record<string, any> | null;
|
|
507
|
-
/**
|
|
508
|
-
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
509
|
-
* @minLength 1
|
|
510
|
-
* @maxLength 100
|
|
511
|
-
*/
|
|
512
|
-
search?: string | null;
|
|
513
|
-
/**
|
|
514
|
-
* Segment ids of a campaign audience.
|
|
515
|
-
* @format GUID
|
|
516
|
-
*/
|
|
517
|
-
segmentIds?: string[];
|
|
518
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
519
|
-
activeContactsOnly?: boolean;
|
|
520
|
-
/**
|
|
521
|
-
* Id of a campaign that is to be resent.
|
|
522
|
-
* @format GUID
|
|
523
|
-
*/
|
|
524
|
-
resendCampaignId?: string | null;
|
|
525
|
-
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
526
|
-
withTotal?: boolean;
|
|
527
|
-
}
|
|
528
|
-
export interface EstimateAudienceSizeResponse {
|
|
529
|
-
/** Audience size (estimated number of emails to be sent). */
|
|
530
|
-
estimation?: number;
|
|
531
|
-
/** Total number of contacts in provided audience (optional). */
|
|
532
|
-
total?: number | null;
|
|
533
|
-
}
|
|
534
|
-
export interface ReconcileContactRequest {
|
|
535
|
-
/**
|
|
536
|
-
* Email address of the contact.
|
|
537
|
-
* @format EMAIL
|
|
538
|
-
*/
|
|
539
|
-
emailAddress?: string;
|
|
540
|
-
}
|
|
541
|
-
export interface ReconcileContactResponse {
|
|
542
|
-
/** Created or retrieved contact. */
|
|
543
|
-
contact?: Contact;
|
|
544
|
-
}
|
|
545
|
-
export interface Contact {
|
|
546
|
-
/**
|
|
547
|
-
* Unique ID of the contact entity.
|
|
548
|
-
* @format GUID
|
|
549
|
-
*/
|
|
550
|
-
_id?: string;
|
|
551
|
-
/**
|
|
552
|
-
* Primary email address of the contact.
|
|
553
|
-
* @format EMAIL
|
|
554
|
-
*/
|
|
555
|
-
emailAddress?: string;
|
|
556
|
-
/**
|
|
557
|
-
* Full name of the contact (optional).
|
|
558
|
-
* @maxLength 100
|
|
559
|
-
*/
|
|
560
|
-
fullName?: string | null;
|
|
561
|
-
/**
|
|
562
|
-
* Profile picture of the contact (optional).
|
|
563
|
-
* @format WEB_URL
|
|
564
|
-
* @maxLength 2048
|
|
565
|
-
*/
|
|
566
|
-
pictureUrl?: string | null;
|
|
567
|
-
}
|
|
568
|
-
export interface SearchContactsRequest {
|
|
569
|
-
/**
|
|
570
|
-
* Text to search contacts by - can search by name or email address.
|
|
571
|
-
* @maxLength 100
|
|
572
|
-
*/
|
|
573
|
-
searchTerm?: string;
|
|
574
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
575
|
-
activeContactsOnly?: boolean;
|
|
576
|
-
/**
|
|
577
|
-
* Page size (default 50, max 1000).
|
|
578
|
-
* @max 1000
|
|
579
|
-
*/
|
|
580
|
-
pageSize?: number | null;
|
|
581
|
-
}
|
|
582
|
-
export interface SearchContactsResponse {
|
|
583
|
-
/** Search results. */
|
|
584
|
-
contacts?: Contact[];
|
|
585
|
-
}
|
|
586
|
-
export interface GetLabelsRequest {
|
|
587
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
588
|
-
activeContactsOnly?: boolean;
|
|
589
|
-
}
|
|
590
|
-
export interface GetLabelsResponse {
|
|
591
|
-
/** Returned labels with contact counts. */
|
|
592
|
-
labels?: Label[];
|
|
593
|
-
}
|
|
594
|
-
export interface Label {
|
|
595
|
-
/**
|
|
596
|
-
* Unique ID of the label entity.
|
|
597
|
-
* @maxLength 100
|
|
598
|
-
*/
|
|
599
|
-
_id?: string;
|
|
600
|
-
/**
|
|
601
|
-
* Name of the label.
|
|
602
|
-
* @maxLength 100
|
|
603
|
-
*/
|
|
604
|
-
name?: string;
|
|
605
|
-
/** Amount of contacts assigned to the label. */
|
|
606
|
-
contactsCount?: number;
|
|
607
|
-
}
|
|
608
|
-
export interface SubscribeFromLandingPageRequest {
|
|
609
|
-
/**
|
|
610
|
-
* Campaign ID that the subscription is happening from.
|
|
611
|
-
* @format GUID
|
|
612
|
-
*/
|
|
613
|
-
campaignId?: string;
|
|
614
|
-
/**
|
|
615
|
-
* Email address that is entered into subscription field.
|
|
616
|
-
* @format EMAIL
|
|
617
|
-
*/
|
|
618
|
-
emailAddress?: string;
|
|
619
|
-
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
620
|
-
consent?: boolean;
|
|
621
|
-
}
|
|
622
|
-
export interface SubscribeFromLandingPageResponse {
|
|
623
|
-
/** @format GUID */
|
|
624
|
-
contactId?: string;
|
|
625
|
-
}
|
|
626
552
|
export interface GetCampaignRequest {
|
|
627
553
|
/**
|
|
628
554
|
* Campaign ID.
|
|
@@ -1326,80 +1252,116 @@ export declare enum WebhookIdentityType {
|
|
|
1326
1252
|
WIX_USER = "WIX_USER",
|
|
1327
1253
|
APP = "APP"
|
|
1328
1254
|
}
|
|
1329
|
-
export interface
|
|
1255
|
+
export interface GetPlaceholderKeysRequest {
|
|
1330
1256
|
/**
|
|
1331
|
-
*
|
|
1257
|
+
* Campaign ID.
|
|
1332
1258
|
* @format GUID
|
|
1333
|
-
* @minSize 1
|
|
1334
|
-
* @maxSize 100
|
|
1335
1259
|
*/
|
|
1336
|
-
|
|
1260
|
+
campaignId?: string;
|
|
1337
1261
|
}
|
|
1338
|
-
export interface
|
|
1339
|
-
/**
|
|
1340
|
-
|
|
1262
|
+
export interface GetPlaceholderKeysResponse {
|
|
1263
|
+
/** Keys of placeholders used in the campaign. */
|
|
1264
|
+
placeholderKeys?: string[];
|
|
1341
1265
|
}
|
|
1342
|
-
export interface
|
|
1266
|
+
export interface GetDefaultComponentsRequest {
|
|
1267
|
+
}
|
|
1268
|
+
export interface GetDefaultComponentsResponse {
|
|
1269
|
+
footer?: Record<string, any> | null;
|
|
1270
|
+
logo?: Record<string, any> | null;
|
|
1271
|
+
follow?: Record<string, any> | null;
|
|
1272
|
+
}
|
|
1273
|
+
export interface ValidateLinkRequest {
|
|
1343
1274
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
* @
|
|
1275
|
+
* URL to validate.
|
|
1276
|
+
* @minLength 1
|
|
1346
1277
|
*/
|
|
1347
|
-
|
|
1348
|
-
/** Landing page statistics. */
|
|
1349
|
-
landingPage?: LandingPageStatistics;
|
|
1350
|
-
/** Email campaign statistics. */
|
|
1351
|
-
email?: DistributionStatistics;
|
|
1278
|
+
url: string;
|
|
1352
1279
|
}
|
|
1353
|
-
export interface
|
|
1280
|
+
export interface ValidateLinkResponse {
|
|
1281
|
+
/** Whether the link is valid. */
|
|
1282
|
+
valid?: boolean;
|
|
1283
|
+
}
|
|
1284
|
+
export interface ValidateHtmlLinksRequest {
|
|
1354
1285
|
/**
|
|
1355
|
-
*
|
|
1356
|
-
* @
|
|
1286
|
+
* HTML string with links.
|
|
1287
|
+
* @maxLength 1000000
|
|
1357
1288
|
*/
|
|
1358
|
-
|
|
1359
|
-
/** Email activity to filter. */
|
|
1360
|
-
activity: RecipientsActivityEnum;
|
|
1361
|
-
/** Pagination options. */
|
|
1362
|
-
paging?: CursorPaging;
|
|
1289
|
+
html: string;
|
|
1363
1290
|
}
|
|
1364
|
-
export
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
OPENED = "OPENED",
|
|
1368
|
-
CLICKED = "CLICKED",
|
|
1369
|
-
BOUNCED = "BOUNCED",
|
|
1370
|
-
NOT_SENT = "NOT_SENT",
|
|
1371
|
-
SENT = "SENT",
|
|
1372
|
-
NOT_OPENED = "NOT_OPENED"
|
|
1291
|
+
export interface ValidateHtmlLinksResponse {
|
|
1292
|
+
/** Non-valid links. */
|
|
1293
|
+
blacklistedLinks?: string[];
|
|
1373
1294
|
}
|
|
1374
|
-
export interface
|
|
1295
|
+
export interface EstimateFilterSizeRequest {
|
|
1296
|
+
/** Contacts filter expression. */
|
|
1297
|
+
filter?: Record<string, any> | null;
|
|
1298
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1299
|
+
activeContactsOnly?: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1302
|
+
* @minLength 1
|
|
1303
|
+
* @maxLength 100
|
|
1304
|
+
*/
|
|
1305
|
+
search?: string | null;
|
|
1306
|
+
}
|
|
1307
|
+
export interface EstimateFilterSizeResponse {
|
|
1308
|
+
/** Mailing list size estimation. */
|
|
1309
|
+
estimation?: number;
|
|
1310
|
+
}
|
|
1311
|
+
export interface EstimateAudienceSizeRequest {
|
|
1312
|
+
/**
|
|
1313
|
+
* Contact IDs of a campaign audience.
|
|
1314
|
+
* @format GUID
|
|
1315
|
+
*/
|
|
1316
|
+
contactIds?: string[];
|
|
1317
|
+
/** Label IDs of a campaign audience. */
|
|
1318
|
+
labelIds?: string[];
|
|
1319
|
+
/** Contacts filter expression (json). */
|
|
1320
|
+
contactsFilter?: Record<string, any> | null;
|
|
1321
|
+
/**
|
|
1322
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1323
|
+
* @minLength 1
|
|
1324
|
+
* @maxLength 100
|
|
1325
|
+
*/
|
|
1326
|
+
search?: string | null;
|
|
1327
|
+
/**
|
|
1328
|
+
* Segment ids of a campaign audience.
|
|
1329
|
+
* @format GUID
|
|
1330
|
+
*/
|
|
1331
|
+
segmentIds?: string[];
|
|
1332
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1333
|
+
activeContactsOnly?: boolean;
|
|
1375
1334
|
/**
|
|
1376
|
-
*
|
|
1377
|
-
* @
|
|
1335
|
+
* Id of a campaign that is to be resent.
|
|
1336
|
+
* @format GUID
|
|
1378
1337
|
*/
|
|
1379
|
-
|
|
1338
|
+
resendCampaignId?: string | null;
|
|
1339
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1340
|
+
withTotal?: boolean;
|
|
1341
|
+
}
|
|
1342
|
+
export interface EstimateAudienceSizeResponse {
|
|
1343
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
1344
|
+
estimation?: number;
|
|
1345
|
+
/** Total number of contacts in provided audience (optional). */
|
|
1346
|
+
total?: number | null;
|
|
1347
|
+
}
|
|
1348
|
+
export interface ReconcileContactRequest {
|
|
1380
1349
|
/**
|
|
1381
|
-
*
|
|
1382
|
-
*
|
|
1383
|
-
* You can get the relevant cursor token
|
|
1384
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
1385
|
-
* Not relevant for the first request.
|
|
1350
|
+
* Email address of the contact.
|
|
1351
|
+
* @format EMAIL
|
|
1386
1352
|
*/
|
|
1387
|
-
|
|
1353
|
+
emailAddress?: string;
|
|
1388
1354
|
}
|
|
1389
|
-
export interface
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1392
|
-
/** Details on the paged set of returned results. */
|
|
1393
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1355
|
+
export interface ReconcileContactResponse {
|
|
1356
|
+
/** Created or retrieved contact. */
|
|
1357
|
+
contact?: Contact;
|
|
1394
1358
|
}
|
|
1395
|
-
export interface
|
|
1359
|
+
export interface Contact {
|
|
1396
1360
|
/**
|
|
1397
|
-
*
|
|
1361
|
+
* Unique ID of the contact entity.
|
|
1398
1362
|
* @format GUID
|
|
1399
1363
|
*/
|
|
1400
|
-
|
|
1401
|
-
/** Date and time of the last activity. */
|
|
1402
|
-
lastActivityDate?: Date | null;
|
|
1364
|
+
_id?: string;
|
|
1403
1365
|
/**
|
|
1404
1366
|
* Primary email address of the contact.
|
|
1405
1367
|
* @format EMAIL
|
|
@@ -1410,38 +1372,70 @@ export interface CampaignRecipientDetails {
|
|
|
1410
1372
|
* @maxLength 100
|
|
1411
1373
|
*/
|
|
1412
1374
|
fullName?: string | null;
|
|
1413
|
-
/**
|
|
1414
|
-
|
|
1375
|
+
/**
|
|
1376
|
+
* Profile picture of the contact (optional).
|
|
1377
|
+
* @format WEB_URL
|
|
1378
|
+
* @maxLength 2048
|
|
1379
|
+
*/
|
|
1380
|
+
pictureUrl?: string | null;
|
|
1415
1381
|
}
|
|
1416
|
-
export interface
|
|
1417
|
-
/**
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1382
|
+
export interface SearchContactsRequest {
|
|
1383
|
+
/**
|
|
1384
|
+
* Text to search contacts by - can search by name or email address.
|
|
1385
|
+
* @maxLength 100
|
|
1386
|
+
*/
|
|
1387
|
+
searchTerm?: string;
|
|
1388
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1389
|
+
activeContactsOnly?: boolean;
|
|
1390
|
+
/**
|
|
1391
|
+
* Page size (default 50, max 1000).
|
|
1392
|
+
* @max 1000
|
|
1393
|
+
*/
|
|
1394
|
+
pageSize?: number | null;
|
|
1427
1395
|
}
|
|
1428
|
-
export interface
|
|
1396
|
+
export interface SearchContactsResponse {
|
|
1397
|
+
/** Search results. */
|
|
1398
|
+
contacts?: Contact[];
|
|
1399
|
+
}
|
|
1400
|
+
export interface GetLabelsRequest {
|
|
1401
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1402
|
+
activeContactsOnly?: boolean;
|
|
1403
|
+
}
|
|
1404
|
+
export interface GetLabelsResponse {
|
|
1405
|
+
/** Returned labels with contact counts. */
|
|
1406
|
+
labels?: Label[];
|
|
1407
|
+
}
|
|
1408
|
+
export interface Label {
|
|
1429
1409
|
/**
|
|
1430
|
-
*
|
|
1431
|
-
* @maxLength
|
|
1410
|
+
* Unique ID of the label entity.
|
|
1411
|
+
* @maxLength 100
|
|
1432
1412
|
*/
|
|
1433
|
-
|
|
1413
|
+
_id?: string;
|
|
1434
1414
|
/**
|
|
1435
|
-
*
|
|
1436
|
-
* @maxLength
|
|
1415
|
+
* Name of the label.
|
|
1416
|
+
* @maxLength 100
|
|
1437
1417
|
*/
|
|
1438
|
-
|
|
1418
|
+
name?: string;
|
|
1419
|
+
/** Amount of contacts assigned to the label. */
|
|
1420
|
+
contactsCount?: number;
|
|
1439
1421
|
}
|
|
1440
|
-
export interface
|
|
1441
|
-
|
|
1422
|
+
export interface SubscribeFromLandingPageRequest {
|
|
1423
|
+
/**
|
|
1424
|
+
* Campaign ID that the subscription is happening from.
|
|
1425
|
+
* @format GUID
|
|
1426
|
+
*/
|
|
1427
|
+
campaignId?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Email address that is entered into subscription field.
|
|
1430
|
+
* @format EMAIL
|
|
1431
|
+
*/
|
|
1432
|
+
emailAddress?: string;
|
|
1433
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1434
|
+
consent?: boolean;
|
|
1442
1435
|
}
|
|
1443
|
-
export interface
|
|
1444
|
-
|
|
1436
|
+
export interface SubscribeFromLandingPageResponse {
|
|
1437
|
+
/** @format GUID */
|
|
1438
|
+
contactId?: string;
|
|
1445
1439
|
}
|
|
1446
1440
|
interface LandingPageStatisticsNonNullableFields {
|
|
1447
1441
|
opened: number;
|
|
@@ -1455,6 +1449,22 @@ interface DistributionStatisticsNonNullableFields {
|
|
|
1455
1449
|
complained: number;
|
|
1456
1450
|
notSent: number;
|
|
1457
1451
|
}
|
|
1452
|
+
interface CampaignStatisticsContainerNonNullableFields {
|
|
1453
|
+
campaignId: string;
|
|
1454
|
+
landingPage?: LandingPageStatisticsNonNullableFields;
|
|
1455
|
+
email?: DistributionStatisticsNonNullableFields;
|
|
1456
|
+
}
|
|
1457
|
+
export interface ListStatisticsResponseNonNullableFields {
|
|
1458
|
+
statistics: CampaignStatisticsContainerNonNullableFields[];
|
|
1459
|
+
}
|
|
1460
|
+
interface CampaignRecipientDetailsNonNullableFields {
|
|
1461
|
+
contactId: string;
|
|
1462
|
+
emailAddress: string;
|
|
1463
|
+
contactDeleted: boolean;
|
|
1464
|
+
}
|
|
1465
|
+
export interface ListRecipientsResponseNonNullableFields {
|
|
1466
|
+
recipients: CampaignRecipientDetailsNonNullableFields[];
|
|
1467
|
+
}
|
|
1458
1468
|
interface TotalStatisticsNonNullableFields {
|
|
1459
1469
|
mailsSent: number;
|
|
1460
1470
|
opened: number;
|
|
@@ -1509,21 +1519,11 @@ export interface GetAudienceResponseNonNullableFields {
|
|
|
1509
1519
|
export interface IdentifySenderAddressResponseNonNullableFields {
|
|
1510
1520
|
senderAddress: string;
|
|
1511
1521
|
}
|
|
1512
|
-
interface
|
|
1513
|
-
|
|
1514
|
-
landingPage?: LandingPageStatisticsNonNullableFields;
|
|
1515
|
-
email?: DistributionStatisticsNonNullableFields;
|
|
1516
|
-
}
|
|
1517
|
-
export interface ListStatisticsResponseNonNullableFields {
|
|
1518
|
-
statistics: CampaignStatisticsContainerNonNullableFields[];
|
|
1519
|
-
}
|
|
1520
|
-
interface CampaignRecipientDetailsNonNullableFields {
|
|
1521
|
-
contactId: string;
|
|
1522
|
-
emailAddress: string;
|
|
1523
|
-
contactDeleted: boolean;
|
|
1522
|
+
export interface ValidateLinkResponseNonNullableFields {
|
|
1523
|
+
valid: boolean;
|
|
1524
1524
|
}
|
|
1525
|
-
export interface
|
|
1526
|
-
|
|
1525
|
+
export interface ValidateHtmlLinksResponseNonNullableFields {
|
|
1526
|
+
blacklistedLinks: string[];
|
|
1527
1527
|
}
|
|
1528
1528
|
export interface BaseEventMetadata {
|
|
1529
1529
|
/**
|
|
@@ -1766,39 +1766,61 @@ export interface CampaignEmailActivityUpdatedEnvelope {
|
|
|
1766
1766
|
*/
|
|
1767
1767
|
export declare function onCampaignEmailActivityUpdated(handler: (event: CampaignEmailActivityUpdatedEnvelope) => void | Promise<void>): void;
|
|
1768
1768
|
/**
|
|
1769
|
-
*
|
|
1769
|
+
* Retrieves a list of statistics for up to 100 selected campaigns.
|
|
1770
1770
|
*
|
|
1771
|
-
*
|
|
1772
|
-
*
|
|
1771
|
+
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
1772
|
+
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
1773
|
+
*
|
|
1774
|
+
* Call List Campaigns to retrieve additional information for a site's campaigns.
|
|
1775
|
+
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
1776
|
+
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1773
1777
|
* @public
|
|
1774
|
-
* @requiredField
|
|
1775
|
-
* @permissionId Shoutout.
|
|
1778
|
+
* @requiredField campaignIds
|
|
1779
|
+
* @permissionId Shoutout.Read
|
|
1776
1780
|
* @permissionScope Access Verticals by Automations
|
|
1777
1781
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1778
1782
|
* @permissionScope Set Up Automations
|
|
1779
1783
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1784
|
+
* @permissionScope Read Email Marketing
|
|
1785
|
+
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1780
1786
|
* @permissionScope Manage Email Marketing
|
|
1781
1787
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1782
1788
|
* @applicableIdentity APP
|
|
1783
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1789
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
|
|
1784
1790
|
*/
|
|
1785
|
-
export declare function
|
|
1791
|
+
export declare function listStatistics(campaignIds: string[]): Promise<ListStatisticsResponse & ListStatisticsResponseNonNullableFields>;
|
|
1786
1792
|
/**
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1793
|
+
* Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
|
|
1794
|
+
*
|
|
1795
|
+
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
1796
|
+
*
|
|
1797
|
+
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
1798
|
+
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
1799
|
+
*
|
|
1800
|
+
* If no `activity` is included, this method returns an error.
|
|
1801
|
+
* @param campaignId - Campaign ID.
|
|
1802
|
+
* @param activity - Email activity to filter.
|
|
1789
1803
|
* @public
|
|
1790
|
-
* @requiredField
|
|
1791
|
-
* @
|
|
1804
|
+
* @requiredField activity
|
|
1805
|
+
* @requiredField campaignId
|
|
1806
|
+
* @param options - Options to use when getting the list of recipients.
|
|
1807
|
+
* @permissionId Shoutout.Read
|
|
1792
1808
|
* @permissionScope Access Verticals by Automations
|
|
1793
1809
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1794
1810
|
* @permissionScope Set Up Automations
|
|
1795
1811
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1812
|
+
* @permissionScope Read Email Marketing
|
|
1813
|
+
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1796
1814
|
* @permissionScope Manage Email Marketing
|
|
1797
1815
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1798
1816
|
* @applicableIdentity APP
|
|
1799
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1817
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
|
|
1800
1818
|
*/
|
|
1801
|
-
export declare function
|
|
1819
|
+
export declare function listRecipients(campaignId: string, activity: RecipientsActivityEnum, options?: ListRecipientsOptions): Promise<ListRecipientsResponse & ListRecipientsResponseNonNullableFields>;
|
|
1820
|
+
export interface ListRecipientsOptions {
|
|
1821
|
+
/** Pagination options. */
|
|
1822
|
+
paging?: CursorPaging;
|
|
1823
|
+
}
|
|
1802
1824
|
/**
|
|
1803
1825
|
* Retrieves information about an email campaign.
|
|
1804
1826
|
* @param campaignId - Campaign ID.
|
|
@@ -2012,59 +2034,37 @@ export declare function getAudience(campaignId: string): Promise<GetAudienceResp
|
|
|
2012
2034
|
*/
|
|
2013
2035
|
export declare function identifySenderAddress(emailAddress: string): Promise<IdentifySenderAddressResponse & IdentifySenderAddressResponseNonNullableFields>;
|
|
2014
2036
|
/**
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
2018
|
-
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
2037
|
+
* Validates any provided link. Call this method when you want to check whether the link complies with the abuse rules and can be used in a campaign.
|
|
2019
2038
|
*
|
|
2020
|
-
*
|
|
2021
|
-
*
|
|
2022
|
-
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
2039
|
+
* If you provide a link as a placeholder, it's returned in a response as valid.
|
|
2040
|
+
* @param url - URL to validate.
|
|
2023
2041
|
* @public
|
|
2024
|
-
* @requiredField
|
|
2025
|
-
* @permissionId Shoutout.
|
|
2042
|
+
* @requiredField url
|
|
2043
|
+
* @permissionId Shoutout.Manage
|
|
2026
2044
|
* @permissionScope Access Verticals by Automations
|
|
2027
2045
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2028
2046
|
* @permissionScope Set Up Automations
|
|
2029
2047
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2030
|
-
* @permissionScope Read Email Marketing
|
|
2031
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
2032
2048
|
* @permissionScope Manage Email Marketing
|
|
2033
2049
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2034
2050
|
* @applicableIdentity APP
|
|
2035
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
2051
|
+
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink
|
|
2036
2052
|
*/
|
|
2037
|
-
export declare function
|
|
2053
|
+
export declare function validateLink(url: string): Promise<ValidateLinkResponse & ValidateLinkResponseNonNullableFields>;
|
|
2038
2054
|
/**
|
|
2039
|
-
*
|
|
2040
|
-
*
|
|
2041
|
-
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
2042
|
-
*
|
|
2043
|
-
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
2044
|
-
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
2045
|
-
*
|
|
2046
|
-
* If no `activity` is included, this method returns an error.
|
|
2047
|
-
* @param campaignId - Campaign ID.
|
|
2048
|
-
* @param activity - Email activity to filter.
|
|
2055
|
+
* Validates links that are inside the provided HTML. This method automatically takes out links from the HTML block and validates them. Call this method when you want to check whether the link complies with the abuse rules and can be used in a campaign.
|
|
2056
|
+
* @param html - HTML string with links.
|
|
2049
2057
|
* @public
|
|
2050
|
-
* @requiredField
|
|
2051
|
-
* @
|
|
2052
|
-
* @param options - Options to use when getting the list of recipients.
|
|
2053
|
-
* @permissionId Shoutout.Read
|
|
2058
|
+
* @requiredField html
|
|
2059
|
+
* @permissionId Shoutout.Manage
|
|
2054
2060
|
* @permissionScope Access Verticals by Automations
|
|
2055
2061
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2056
2062
|
* @permissionScope Set Up Automations
|
|
2057
2063
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2058
|
-
* @permissionScope Read Email Marketing
|
|
2059
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
2060
2064
|
* @permissionScope Manage Email Marketing
|
|
2061
2065
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2062
2066
|
* @applicableIdentity APP
|
|
2063
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
2067
|
+
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks
|
|
2064
2068
|
*/
|
|
2065
|
-
export declare function
|
|
2066
|
-
export interface ListRecipientsOptions {
|
|
2067
|
-
/** Pagination options. */
|
|
2068
|
-
paging?: CursorPaging;
|
|
2069
|
-
}
|
|
2069
|
+
export declare function validateHtmlLinks(html: string): Promise<ValidateHtmlLinksResponse & ValidateHtmlLinksResponseNonNullableFields>;
|
|
2070
2070
|
export {};
|