@wix/auto_sdk_email-marketing_campaigns 1.0.10 → 1.0.12
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 +12 -12
- 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 +44 -44
- 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 +254 -343
- 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 +310 -392
- 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 +12 -12
- 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 +44 -44
- 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 +254 -343
- 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 +310 -392
- 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 +12 -12
- 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 +44 -44
- 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 +254 -343
- 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 +310 -392
- 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 +12 -12
- 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 +44 -44
- 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 +254 -343
- 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 +310 -392
- 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 +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Campaign {
|
|
2
3
|
/**
|
|
3
4
|
* Campaign ID.
|
|
@@ -196,27 +197,116 @@ export declare enum CampaignTypeEnum {
|
|
|
196
197
|
/** Triggered email. */
|
|
197
198
|
TRIGGERED = "TRIGGERED"
|
|
198
199
|
}
|
|
199
|
-
export interface
|
|
200
|
+
export interface ListStatisticsRequest {
|
|
200
201
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @
|
|
202
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
203
|
+
* @format GUID
|
|
204
|
+
* @minSize 1
|
|
205
|
+
* @maxSize 100
|
|
203
206
|
*/
|
|
204
|
-
|
|
207
|
+
campaignIds: string[];
|
|
205
208
|
}
|
|
206
|
-
export interface
|
|
207
|
-
/**
|
|
208
|
-
|
|
209
|
+
export interface ListStatisticsResponse {
|
|
210
|
+
/** List of statistics. */
|
|
211
|
+
statistics?: CampaignStatisticsContainer[];
|
|
209
212
|
}
|
|
210
|
-
export interface
|
|
213
|
+
export interface CampaignStatisticsContainer {
|
|
211
214
|
/**
|
|
212
|
-
*
|
|
213
|
-
* @
|
|
215
|
+
* Campaign ID.
|
|
216
|
+
* @format GUID
|
|
214
217
|
*/
|
|
215
|
-
|
|
218
|
+
campaignId?: string;
|
|
219
|
+
/** Landing page statistics. */
|
|
220
|
+
landingPage?: LandingPageStatistics;
|
|
221
|
+
/** Email campaign statistics. */
|
|
222
|
+
email?: DistributionStatistics;
|
|
216
223
|
}
|
|
217
|
-
export interface
|
|
218
|
-
/**
|
|
219
|
-
|
|
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;
|
|
220
310
|
}
|
|
221
311
|
export interface GetCampaignMappingRequest {
|
|
222
312
|
/**
|
|
@@ -460,169 +550,6 @@ export interface Decimal {
|
|
|
460
550
|
}
|
|
461
551
|
export interface SendTestBulkResponse {
|
|
462
552
|
}
|
|
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
553
|
export interface GetCampaignRequest {
|
|
627
554
|
/**
|
|
628
555
|
* Campaign ID.
|
|
@@ -1326,80 +1253,116 @@ export declare enum WebhookIdentityType {
|
|
|
1326
1253
|
WIX_USER = "WIX_USER",
|
|
1327
1254
|
APP = "APP"
|
|
1328
1255
|
}
|
|
1329
|
-
export interface
|
|
1256
|
+
export interface GetPlaceholderKeysRequest {
|
|
1330
1257
|
/**
|
|
1331
|
-
*
|
|
1258
|
+
* Campaign ID.
|
|
1332
1259
|
* @format GUID
|
|
1333
|
-
* @minSize 1
|
|
1334
|
-
* @maxSize 100
|
|
1335
1260
|
*/
|
|
1336
|
-
|
|
1337
|
-
}
|
|
1338
|
-
export interface
|
|
1339
|
-
/**
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1342
|
-
export interface
|
|
1261
|
+
campaignId?: string;
|
|
1262
|
+
}
|
|
1263
|
+
export interface GetPlaceholderKeysResponse {
|
|
1264
|
+
/** Keys of placeholders used in the campaign. */
|
|
1265
|
+
placeholderKeys?: string[];
|
|
1266
|
+
}
|
|
1267
|
+
export interface GetDefaultComponentsRequest {
|
|
1268
|
+
}
|
|
1269
|
+
export interface GetDefaultComponentsResponse {
|
|
1270
|
+
footer?: Record<string, any> | null;
|
|
1271
|
+
logo?: Record<string, any> | null;
|
|
1272
|
+
follow?: Record<string, any> | null;
|
|
1273
|
+
}
|
|
1274
|
+
export interface ValidateLinkRequest {
|
|
1275
|
+
/**
|
|
1276
|
+
* URL to validate.
|
|
1277
|
+
* @minLength 1
|
|
1278
|
+
*/
|
|
1279
|
+
url: string;
|
|
1280
|
+
}
|
|
1281
|
+
export interface ValidateLinkResponse {
|
|
1282
|
+
/** Whether the link is valid. */
|
|
1283
|
+
valid?: boolean;
|
|
1284
|
+
}
|
|
1285
|
+
export interface ValidateHtmlLinksRequest {
|
|
1286
|
+
/**
|
|
1287
|
+
* HTML string with links.
|
|
1288
|
+
* @maxLength 1000000
|
|
1289
|
+
*/
|
|
1290
|
+
html: string;
|
|
1291
|
+
}
|
|
1292
|
+
export interface ValidateHtmlLinksResponse {
|
|
1293
|
+
/** Non-valid links. */
|
|
1294
|
+
blacklistedLinks?: string[];
|
|
1295
|
+
}
|
|
1296
|
+
export interface EstimateFilterSizeRequest {
|
|
1297
|
+
/** Contacts filter expression. */
|
|
1298
|
+
filter?: Record<string, any> | null;
|
|
1299
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1300
|
+
activeContactsOnly?: boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1303
|
+
* @minLength 1
|
|
1304
|
+
* @maxLength 100
|
|
1305
|
+
*/
|
|
1306
|
+
search?: string | null;
|
|
1307
|
+
}
|
|
1308
|
+
export interface EstimateFilterSizeResponse {
|
|
1309
|
+
/** Mailing list size estimation. */
|
|
1310
|
+
estimation?: number;
|
|
1311
|
+
}
|
|
1312
|
+
export interface EstimateAudienceSizeRequest {
|
|
1313
|
+
/**
|
|
1314
|
+
* Contact IDs of a campaign audience.
|
|
1315
|
+
* @format GUID
|
|
1316
|
+
*/
|
|
1317
|
+
contactIds?: string[];
|
|
1318
|
+
/** Label IDs of a campaign audience. */
|
|
1319
|
+
labelIds?: string[];
|
|
1320
|
+
/** Contacts filter expression (json). */
|
|
1321
|
+
contactsFilter?: Record<string, any> | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1324
|
+
* @minLength 1
|
|
1325
|
+
* @maxLength 100
|
|
1326
|
+
*/
|
|
1327
|
+
search?: string | null;
|
|
1343
1328
|
/**
|
|
1344
|
-
*
|
|
1329
|
+
* Segment ids of a campaign audience.
|
|
1345
1330
|
* @format GUID
|
|
1346
1331
|
*/
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
|
|
1350
|
-
/** Email campaign statistics. */
|
|
1351
|
-
email?: DistributionStatistics;
|
|
1352
|
-
}
|
|
1353
|
-
export interface ListRecipientsRequest {
|
|
1332
|
+
segmentIds?: string[];
|
|
1333
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1334
|
+
activeContactsOnly?: boolean;
|
|
1354
1335
|
/**
|
|
1355
|
-
*
|
|
1336
|
+
* Id of a campaign that is to be resent.
|
|
1356
1337
|
* @format GUID
|
|
1357
1338
|
*/
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
|
|
1361
|
-
/** Pagination options. */
|
|
1362
|
-
paging?: CursorPaging;
|
|
1339
|
+
resendCampaignId?: string | null;
|
|
1340
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1341
|
+
withTotal?: boolean;
|
|
1363
1342
|
}
|
|
1364
|
-
export
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
BOUNCED = "BOUNCED",
|
|
1370
|
-
NOT_SENT = "NOT_SENT",
|
|
1371
|
-
SENT = "SENT",
|
|
1372
|
-
NOT_OPENED = "NOT_OPENED"
|
|
1343
|
+
export interface EstimateAudienceSizeResponse {
|
|
1344
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
1345
|
+
estimation?: number;
|
|
1346
|
+
/** Total number of contacts in provided audience (optional). */
|
|
1347
|
+
total?: number | null;
|
|
1373
1348
|
}
|
|
1374
|
-
export interface
|
|
1375
|
-
/**
|
|
1376
|
-
* Number of items to load.
|
|
1377
|
-
* @max 1000
|
|
1378
|
-
*/
|
|
1379
|
-
limit?: number | null;
|
|
1349
|
+
export interface ReconcileContactRequest {
|
|
1380
1350
|
/**
|
|
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.
|
|
1351
|
+
* Email address of the contact.
|
|
1352
|
+
* @format EMAIL
|
|
1386
1353
|
*/
|
|
1387
|
-
|
|
1354
|
+
emailAddress?: string;
|
|
1388
1355
|
}
|
|
1389
|
-
export interface
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1392
|
-
/** Details on the paged set of returned results. */
|
|
1393
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1356
|
+
export interface ReconcileContactResponse {
|
|
1357
|
+
/** Created or retrieved contact. */
|
|
1358
|
+
contact?: Contact;
|
|
1394
1359
|
}
|
|
1395
|
-
export interface
|
|
1360
|
+
export interface Contact {
|
|
1396
1361
|
/**
|
|
1397
|
-
*
|
|
1362
|
+
* Unique ID of the contact entity.
|
|
1398
1363
|
* @format GUID
|
|
1399
1364
|
*/
|
|
1400
|
-
|
|
1401
|
-
/** Date and time of the last activity. */
|
|
1402
|
-
lastActivityDate?: Date | null;
|
|
1365
|
+
_id?: string;
|
|
1403
1366
|
/**
|
|
1404
1367
|
* Primary email address of the contact.
|
|
1405
1368
|
* @format EMAIL
|
|
@@ -1410,120 +1373,70 @@ export interface CampaignRecipientDetails {
|
|
|
1410
1373
|
* @maxLength 100
|
|
1411
1374
|
*/
|
|
1412
1375
|
fullName?: string | null;
|
|
1413
|
-
/**
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
/** Offset that was requested. */
|
|
1420
|
-
offset?: number | null;
|
|
1421
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1422
|
-
total?: number | null;
|
|
1423
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1424
|
-
tooManyToCount?: boolean | null;
|
|
1425
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1426
|
-
cursors?: Cursors;
|
|
1376
|
+
/**
|
|
1377
|
+
* Profile picture of the contact (optional).
|
|
1378
|
+
* @format WEB_URL
|
|
1379
|
+
* @maxLength 2048
|
|
1380
|
+
*/
|
|
1381
|
+
pictureUrl?: string | null;
|
|
1427
1382
|
}
|
|
1428
|
-
export interface
|
|
1383
|
+
export interface SearchContactsRequest {
|
|
1429
1384
|
/**
|
|
1430
|
-
*
|
|
1431
|
-
* @maxLength
|
|
1385
|
+
* Text to search contacts by - can search by name or email address.
|
|
1386
|
+
* @maxLength 100
|
|
1432
1387
|
*/
|
|
1433
|
-
|
|
1388
|
+
searchTerm?: string;
|
|
1389
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1390
|
+
activeContactsOnly?: boolean;
|
|
1434
1391
|
/**
|
|
1435
|
-
*
|
|
1436
|
-
* @
|
|
1392
|
+
* Page size (default 50, max 1000).
|
|
1393
|
+
* @max 1000
|
|
1437
1394
|
*/
|
|
1438
|
-
|
|
1439
|
-
}
|
|
1440
|
-
export interface ValidateLinkResponseNonNullableFields {
|
|
1441
|
-
valid: boolean;
|
|
1442
|
-
}
|
|
1443
|
-
export interface ValidateHtmlLinksResponseNonNullableFields {
|
|
1444
|
-
blacklistedLinks: string[];
|
|
1445
|
-
}
|
|
1446
|
-
interface LandingPageStatisticsNonNullableFields {
|
|
1447
|
-
opened: number;
|
|
1448
|
-
clicked: number;
|
|
1449
|
-
}
|
|
1450
|
-
interface DistributionStatisticsNonNullableFields {
|
|
1451
|
-
delivered: number;
|
|
1452
|
-
opened: number;
|
|
1453
|
-
clicked: number;
|
|
1454
|
-
bounced: number;
|
|
1455
|
-
complained: number;
|
|
1456
|
-
notSent: number;
|
|
1457
|
-
}
|
|
1458
|
-
interface TotalStatisticsNonNullableFields {
|
|
1459
|
-
mailsSent: number;
|
|
1460
|
-
opened: number;
|
|
1461
|
-
clicked: number;
|
|
1462
|
-
}
|
|
1463
|
-
interface CampaignStatisticsNonNullableFields {
|
|
1464
|
-
landingPage?: LandingPageStatisticsNonNullableFields;
|
|
1465
|
-
emailCampaign?: DistributionStatisticsNonNullableFields;
|
|
1466
|
-
total?: TotalStatisticsNonNullableFields;
|
|
1467
|
-
}
|
|
1468
|
-
interface PublishingDataNonNullableFields {
|
|
1469
|
-
landingPageUrl: string;
|
|
1470
|
-
statistics?: CampaignStatisticsNonNullableFields;
|
|
1471
|
-
wasResentToNonOpeners: boolean;
|
|
1472
|
-
}
|
|
1473
|
-
interface RejectionDataNonNullableFields {
|
|
1474
|
-
rejectionReasons: RejectionReasonEnum[];
|
|
1475
|
-
}
|
|
1476
|
-
export interface CampaignNonNullableFields {
|
|
1477
|
-
campaignId: string;
|
|
1478
|
-
editorType: CampaignEditorTypeEnum;
|
|
1479
|
-
status: CampaignStatusEnum;
|
|
1480
|
-
visibilityStatus: CampaignVisibilityStatusEnum;
|
|
1481
|
-
distributionStatus: Enum;
|
|
1482
|
-
publishingData?: PublishingDataNonNullableFields;
|
|
1483
|
-
rejectionData?: RejectionDataNonNullableFields;
|
|
1484
|
-
sendingState: CampaignSendingStateEnum;
|
|
1485
|
-
campaignType: CampaignTypeEnum;
|
|
1486
|
-
emailSubject: string;
|
|
1487
|
-
}
|
|
1488
|
-
export interface GetCampaignResponseNonNullableFields {
|
|
1489
|
-
campaign?: CampaignNonNullableFields;
|
|
1490
|
-
}
|
|
1491
|
-
export interface ListCampaignsResponseNonNullableFields {
|
|
1492
|
-
campaigns: CampaignNonNullableFields[];
|
|
1493
|
-
}
|
|
1494
|
-
export interface PublishCampaignResponseNonNullableFields {
|
|
1495
|
-
publishingData?: PublishingDataNonNullableFields;
|
|
1496
|
-
}
|
|
1497
|
-
export interface ReuseCampaignResponseNonNullableFields {
|
|
1498
|
-
campaign?: CampaignNonNullableFields;
|
|
1499
|
-
}
|
|
1500
|
-
interface CampaignAudienceNonNullableFields {
|
|
1501
|
-
contactIds: string[];
|
|
1502
|
-
labelIds: string[];
|
|
1503
|
-
segmentIds: string[];
|
|
1504
|
-
activeContactsOnly: boolean;
|
|
1395
|
+
pageSize?: number | null;
|
|
1505
1396
|
}
|
|
1506
|
-
export interface
|
|
1507
|
-
|
|
1397
|
+
export interface SearchContactsResponse {
|
|
1398
|
+
/** Search results. */
|
|
1399
|
+
contacts?: Contact[];
|
|
1508
1400
|
}
|
|
1509
|
-
export interface
|
|
1510
|
-
|
|
1401
|
+
export interface GetLabelsRequest {
|
|
1402
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1403
|
+
activeContactsOnly?: boolean;
|
|
1511
1404
|
}
|
|
1512
|
-
interface
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
email?: DistributionStatisticsNonNullableFields;
|
|
1405
|
+
export interface GetLabelsResponse {
|
|
1406
|
+
/** Returned labels with contact counts. */
|
|
1407
|
+
labels?: Label[];
|
|
1516
1408
|
}
|
|
1517
|
-
export interface
|
|
1518
|
-
|
|
1409
|
+
export interface Label {
|
|
1410
|
+
/**
|
|
1411
|
+
* Unique ID of the label entity.
|
|
1412
|
+
* @maxLength 100
|
|
1413
|
+
*/
|
|
1414
|
+
_id?: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* Name of the label.
|
|
1417
|
+
* @maxLength 100
|
|
1418
|
+
*/
|
|
1419
|
+
name?: string;
|
|
1420
|
+
/** Amount of contacts assigned to the label. */
|
|
1421
|
+
contactsCount?: number;
|
|
1519
1422
|
}
|
|
1520
|
-
interface
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1423
|
+
export interface SubscribeFromLandingPageRequest {
|
|
1424
|
+
/**
|
|
1425
|
+
* Campaign ID that the subscription is happening from.
|
|
1426
|
+
* @format GUID
|
|
1427
|
+
*/
|
|
1428
|
+
campaignId?: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* Email address that is entered into subscription field.
|
|
1431
|
+
* @format EMAIL
|
|
1432
|
+
*/
|
|
1433
|
+
emailAddress?: string;
|
|
1434
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1435
|
+
consent?: boolean;
|
|
1524
1436
|
}
|
|
1525
|
-
export interface
|
|
1526
|
-
|
|
1437
|
+
export interface SubscribeFromLandingPageResponse {
|
|
1438
|
+
/** @format GUID */
|
|
1439
|
+
contactId?: string;
|
|
1527
1440
|
}
|
|
1528
1441
|
export interface BaseEventMetadata {
|
|
1529
1442
|
/**
|
|
@@ -1765,40 +1678,63 @@ export interface CampaignEmailActivityUpdatedEnvelope {
|
|
|
1765
1678
|
* @slug email_activity_updated
|
|
1766
1679
|
*/
|
|
1767
1680
|
export declare function onCampaignEmailActivityUpdated(handler: (event: CampaignEmailActivityUpdatedEnvelope) => void | Promise<void>): void;
|
|
1681
|
+
type CampaignNonNullablePaths = `campaignId` | `editorType` | `status` | `visibilityStatus` | `distributionStatus` | `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked` | `emailSubject`;
|
|
1768
1682
|
/**
|
|
1769
|
-
*
|
|
1683
|
+
* Retrieves a list of statistics for up to 100 selected campaigns.
|
|
1770
1684
|
*
|
|
1771
|
-
*
|
|
1772
|
-
*
|
|
1685
|
+
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
1686
|
+
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
1687
|
+
*
|
|
1688
|
+
* Call List Campaigns to retrieve additional information for a site's campaigns.
|
|
1689
|
+
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
1690
|
+
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1773
1691
|
* @public
|
|
1774
|
-
* @requiredField
|
|
1775
|
-
* @permissionId Shoutout.
|
|
1692
|
+
* @requiredField campaignIds
|
|
1693
|
+
* @permissionId Shoutout.Read
|
|
1776
1694
|
* @permissionScope Access Verticals by Automations
|
|
1777
1695
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1778
1696
|
* @permissionScope Set Up Automations
|
|
1779
1697
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1698
|
+
* @permissionScope Read Email Marketing
|
|
1699
|
+
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1780
1700
|
* @permissionScope Manage Email Marketing
|
|
1781
1701
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1782
1702
|
* @applicableIdentity APP
|
|
1783
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1703
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
|
|
1784
1704
|
*/
|
|
1785
|
-
export declare function
|
|
1705
|
+
export 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`>>;
|
|
1786
1706
|
/**
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1707
|
+
* Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
|
|
1708
|
+
*
|
|
1709
|
+
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
1710
|
+
*
|
|
1711
|
+
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
1712
|
+
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
1713
|
+
*
|
|
1714
|
+
* If no `activity` is included, this method returns an error.
|
|
1715
|
+
* @param campaignId - Campaign ID.
|
|
1716
|
+
* @param activity - Email activity to filter.
|
|
1789
1717
|
* @public
|
|
1790
|
-
* @requiredField
|
|
1791
|
-
* @
|
|
1718
|
+
* @requiredField activity
|
|
1719
|
+
* @requiredField campaignId
|
|
1720
|
+
* @param options - Options to use when getting the list of recipients.
|
|
1721
|
+
* @permissionId Shoutout.Read
|
|
1792
1722
|
* @permissionScope Access Verticals by Automations
|
|
1793
1723
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1794
1724
|
* @permissionScope Set Up Automations
|
|
1795
1725
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1726
|
+
* @permissionScope Read Email Marketing
|
|
1727
|
+
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1796
1728
|
* @permissionScope Manage Email Marketing
|
|
1797
1729
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1798
1730
|
* @applicableIdentity APP
|
|
1799
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1731
|
+
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
|
|
1800
1732
|
*/
|
|
1801
|
-
export declare function
|
|
1733
|
+
export declare function listRecipients(campaignId: string, activity: RecipientsActivityEnum, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`>>;
|
|
1734
|
+
export interface ListRecipientsOptions {
|
|
1735
|
+
/** Pagination options. */
|
|
1736
|
+
paging?: CursorPaging;
|
|
1737
|
+
}
|
|
1802
1738
|
/**
|
|
1803
1739
|
* Retrieves information about an email campaign.
|
|
1804
1740
|
* @param campaignId - Campaign ID.
|
|
@@ -1816,7 +1752,7 @@ export declare function validateHtmlLinks(html: string): Promise<ValidateHtmlLin
|
|
|
1816
1752
|
* @returns Campaign information.
|
|
1817
1753
|
* @fqn wix.emailmarketing.api.v1.CampaignService.Get
|
|
1818
1754
|
*/
|
|
1819
|
-
export declare function getCampaign(campaignId: string, options?: GetCampaignOptions): Promise<Campaign
|
|
1755
|
+
export declare function getCampaign(campaignId: string, options?: GetCampaignOptions): Promise<NonNullablePaths<Campaign, CampaignNonNullablePaths>>;
|
|
1820
1756
|
export interface GetCampaignOptions {
|
|
1821
1757
|
/**
|
|
1822
1758
|
* Whether a returned campaign should include `publishingData.statistics`.
|
|
@@ -1843,7 +1779,9 @@ export interface GetCampaignOptions {
|
|
|
1843
1779
|
* @applicableIdentity APP
|
|
1844
1780
|
* @fqn wix.emailmarketing.api.v1.CampaignService.List
|
|
1845
1781
|
*/
|
|
1846
|
-
export declare function listCampaigns(options?: ListCampaignsOptions): Promise<ListCampaignsResponse
|
|
1782
|
+
export declare function listCampaigns(options?: ListCampaignsOptions): Promise<NonNullablePaths<ListCampaignsResponse, {
|
|
1783
|
+
[P in CampaignNonNullablePaths]: `campaigns.${number}.${P}`;
|
|
1784
|
+
}[CampaignNonNullablePaths]>>;
|
|
1847
1785
|
export interface ListCampaignsOptions {
|
|
1848
1786
|
/** Paging parameters. */
|
|
1849
1787
|
paging?: Paging;
|
|
@@ -1876,7 +1814,7 @@ export interface ListCampaignsOptions {
|
|
|
1876
1814
|
* @applicableIdentity APP
|
|
1877
1815
|
* @fqn wix.emailmarketing.api.v1.CampaignService.Publish
|
|
1878
1816
|
*/
|
|
1879
|
-
export declare function publishCampaign(campaignId: string, options?: PublishCampaignOptions): Promise<PublishCampaignResponse
|
|
1817
|
+
export declare function publishCampaign(campaignId: string, options?: PublishCampaignOptions): Promise<NonNullablePaths<PublishCampaignResponse, `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked`>>;
|
|
1880
1818
|
export interface PublishCampaignOptions {
|
|
1881
1819
|
/** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
|
|
1882
1820
|
emailDistributionOptions?: EmailDistributionOptions;
|
|
@@ -1900,7 +1838,7 @@ export interface PublishCampaignOptions {
|
|
|
1900
1838
|
* @applicableIdentity APP
|
|
1901
1839
|
* @fqn wix.emailmarketing.api.v1.CampaignService.SendTest
|
|
1902
1840
|
*/
|
|
1903
|
-
export declare function sendTest(campaignId: string, options?: SendTestOptions): Promise<void>;
|
|
1841
|
+
export declare function sendTest(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress`>): Promise<void>;
|
|
1904
1842
|
export interface SendTestOptions {
|
|
1905
1843
|
/**
|
|
1906
1844
|
* Email subject.
|
|
@@ -1946,7 +1884,7 @@ export declare function pauseScheduling(campaignId: string): Promise<void>;
|
|
|
1946
1884
|
* @applicableIdentity APP
|
|
1947
1885
|
* @fqn wix.emailmarketing.api.v1.CampaignService.Reschedule
|
|
1948
1886
|
*/
|
|
1949
|
-
export declare function reschedule(campaignId: string, sendAt: Date
|
|
1887
|
+
export declare function reschedule(campaignId: string, sendAt: Date): Promise<void>;
|
|
1950
1888
|
/**
|
|
1951
1889
|
* Permanently deletes a campaign.
|
|
1952
1890
|
* @param campaignId - Campaign ID.
|
|
@@ -1978,7 +1916,9 @@ export declare function deleteCampaign(campaignId: string): Promise<void>;
|
|
|
1978
1916
|
* @applicableIdentity APP
|
|
1979
1917
|
* @fqn wix.emailmarketing.api.v1.CampaignService.Reuse
|
|
1980
1918
|
*/
|
|
1981
|
-
export declare function reuseCampaign(campaignId: string): Promise<ReuseCampaignResponse
|
|
1919
|
+
export declare function reuseCampaign(campaignId: string): Promise<NonNullablePaths<ReuseCampaignResponse, {
|
|
1920
|
+
[P in CampaignNonNullablePaths]: `campaign.${P}`;
|
|
1921
|
+
}[CampaignNonNullablePaths]>>;
|
|
1982
1922
|
/**
|
|
1983
1923
|
* Retrieves the audience of a paused campaign. Use this method to retrieve all selected audience of the paused campaign at once, so they can be passed in bulk when the campaign is published again after being paused.
|
|
1984
1924
|
* @param campaignId - Campaign ID.
|
|
@@ -1994,7 +1934,7 @@ export declare function reuseCampaign(campaignId: string): Promise<ReuseCampaign
|
|
|
1994
1934
|
* @applicableIdentity APP
|
|
1995
1935
|
* @fqn wix.emailmarketing.api.v1.CampaignService.GetAudience
|
|
1996
1936
|
*/
|
|
1997
|
-
export declare function getAudience(campaignId: string): Promise<GetAudienceResponse
|
|
1937
|
+
export declare function getAudience(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly`>>;
|
|
1998
1938
|
/**
|
|
1999
1939
|
* Checks if the sender's email address will be used as the "from" address or will it be replaced and to what exactly.
|
|
2000
1940
|
* @param emailAddress - Email address to verify.
|
|
@@ -2010,61 +1950,39 @@ export declare function getAudience(campaignId: string): Promise<GetAudienceResp
|
|
|
2010
1950
|
* @applicableIdentity APP
|
|
2011
1951
|
* @fqn wix.emailmarketing.api.v1.CampaignService.IdentifySenderAddress
|
|
2012
1952
|
*/
|
|
2013
|
-
export declare function identifySenderAddress(emailAddress: string): Promise<IdentifySenderAddressResponse
|
|
1953
|
+
export declare function identifySenderAddress(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress`>>;
|
|
2014
1954
|
/**
|
|
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.
|
|
1955
|
+
* 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
1956
|
*
|
|
2020
|
-
*
|
|
2021
|
-
*
|
|
2022
|
-
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1957
|
+
* If you provide a link as a placeholder, it's returned in a response as valid.
|
|
1958
|
+
* @param url - URL to validate.
|
|
2023
1959
|
* @public
|
|
2024
|
-
* @requiredField
|
|
2025
|
-
* @permissionId Shoutout.
|
|
1960
|
+
* @requiredField url
|
|
1961
|
+
* @permissionId Shoutout.Manage
|
|
2026
1962
|
* @permissionScope Access Verticals by Automations
|
|
2027
1963
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2028
1964
|
* @permissionScope Set Up Automations
|
|
2029
1965
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2030
|
-
* @permissionScope Read Email Marketing
|
|
2031
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
2032
1966
|
* @permissionScope Manage Email Marketing
|
|
2033
1967
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2034
1968
|
* @applicableIdentity APP
|
|
2035
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1969
|
+
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink
|
|
2036
1970
|
*/
|
|
2037
|
-
export declare function
|
|
1971
|
+
export declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid`>>;
|
|
2038
1972
|
/**
|
|
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.
|
|
1973
|
+
* 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.
|
|
1974
|
+
* @param html - HTML string with links.
|
|
2049
1975
|
* @public
|
|
2050
|
-
* @requiredField
|
|
2051
|
-
* @
|
|
2052
|
-
* @param options - Options to use when getting the list of recipients.
|
|
2053
|
-
* @permissionId Shoutout.Read
|
|
1976
|
+
* @requiredField html
|
|
1977
|
+
* @permissionId Shoutout.Manage
|
|
2054
1978
|
* @permissionScope Access Verticals by Automations
|
|
2055
1979
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2056
1980
|
* @permissionScope Set Up Automations
|
|
2057
1981
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2058
|
-
* @permissionScope Read Email Marketing
|
|
2059
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
2060
1982
|
* @permissionScope Manage Email Marketing
|
|
2061
1983
|
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2062
1984
|
* @applicableIdentity APP
|
|
2063
|
-
* @fqn wix.emailmarketing.api.v1.
|
|
1985
|
+
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks
|
|
2064
1986
|
*/
|
|
2065
|
-
export declare function
|
|
2066
|
-
export interface ListRecipientsOptions {
|
|
2067
|
-
/** Pagination options. */
|
|
2068
|
-
paging?: CursorPaging;
|
|
2069
|
-
}
|
|
1987
|
+
export declare function validateHtmlLinks(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`>>;
|
|
2070
1988
|
export {};
|