@wix/auto_sdk_email-marketing_campaigns 1.0.4 → 1.0.6
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 +5 -5
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
- 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 +22 -22
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js +72 -192
- 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 +4 -4
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +39 -39
- 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 +38 -38
- 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 +653 -322
- 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 +851 -464
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +146 -120
- 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 +5 -5
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
- 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 +22 -22
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.js +69 -189
- 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 +4 -4
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js +36 -36
- 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 +38 -38
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.js +10 -10
- 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 +653 -322
- 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 +851 -464
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js +143 -117
- 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 +5 -5
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
- 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 +22 -22
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js +72 -192
- 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 +4 -4
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +39 -39
- 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 +38 -38
- 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 +653 -322
- 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 +851 -464
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +146 -120
- 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 +5 -5
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js +4 -4
- 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 +22 -22
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js +69 -189
- 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 +4 -4
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js +36 -36
- 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 +38 -38
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js +10 -10
- 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 +653 -322
- 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 +851 -464
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js +143 -117
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
export interface Campaign {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Campaign ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
*/
|
|
3
6
|
campaignId?: string;
|
|
4
7
|
/** Marketing campaign title. If you don't provide the value, the title automatically gets the value of an email subject. */
|
|
5
8
|
title?: string | null;
|
|
6
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* URL of the first image after the logo.
|
|
11
|
+
* @format WEB_URL
|
|
12
|
+
*/
|
|
7
13
|
firstImageUrl?: string | null;
|
|
8
14
|
/**
|
|
9
15
|
* Landing page snapshot URL. <br>
|
|
10
16
|
* This field is deprecated and snapshot images are no longer supported. Instead, use the `firstImageUrl` field.
|
|
11
17
|
* The value of this field will soon become the same as the value of the `firstImageUrl` field.
|
|
18
|
+
* @format WEB_URL
|
|
12
19
|
* @deprecated Landing page snapshot URL. <br>
|
|
13
20
|
* This field is deprecated and snapshot images are no longer supported. Instead, use the `firstImageUrl` field.
|
|
14
21
|
* The value of this field will soon become the same as the value of the `firstImageUrl` field.
|
|
@@ -33,6 +40,7 @@ export interface Campaign {
|
|
|
33
40
|
/**
|
|
34
41
|
* Email subject of the campaign (initially copied from the template).
|
|
35
42
|
* TODO: Deprecated (moved to "GetComposerResponse").
|
|
43
|
+
* @maxLength 1000
|
|
36
44
|
* @deprecated
|
|
37
45
|
*/
|
|
38
46
|
emailSubject?: string;
|
|
@@ -92,7 +100,10 @@ export declare enum Enum {
|
|
|
92
100
|
PAUSED = "PAUSED"
|
|
93
101
|
}
|
|
94
102
|
export interface PublishingData {
|
|
95
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Landing page URL.
|
|
105
|
+
* @format WEB_URL
|
|
106
|
+
*/
|
|
96
107
|
landingPageUrl?: string;
|
|
97
108
|
/** Marketing campaign statistics. */
|
|
98
109
|
statistics?: CampaignStatistics;
|
|
@@ -198,116 +209,11 @@ export declare enum CampaignTypeEnum {
|
|
|
198
209
|
/** triggered email */
|
|
199
210
|
TRIGGERED = "TRIGGERED"
|
|
200
211
|
}
|
|
201
|
-
export interface EstimateFilterSizeRequest {
|
|
202
|
-
/** Contacts filter expression. */
|
|
203
|
-
filter?: Record<string, any> | null;
|
|
204
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
205
|
-
activeContactsOnly?: boolean;
|
|
206
|
-
/** Contacts plain text search expression (searches in name, phone and email fields). */
|
|
207
|
-
search?: string | null;
|
|
208
|
-
}
|
|
209
|
-
export interface EstimateFilterSizeResponse {
|
|
210
|
-
/** Mailing list size estimation. */
|
|
211
|
-
estimation?: number;
|
|
212
|
-
}
|
|
213
|
-
export interface EstimateAudienceSizeRequest {
|
|
214
|
-
/** Contact IDs of a campaign audience. */
|
|
215
|
-
contactIds?: string[];
|
|
216
|
-
/** Label IDs of a campaign audience. */
|
|
217
|
-
labelIds?: string[];
|
|
218
|
-
/** Contacts filter expression (json). */
|
|
219
|
-
contactsFilter?: Record<string, any> | null;
|
|
220
|
-
/** Contacts plain text search expression (searches in name, phone and email fields). */
|
|
221
|
-
search?: string | null;
|
|
222
|
-
/** Segment ids of a campaign audience. */
|
|
223
|
-
segmentIds?: string[];
|
|
224
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
225
|
-
activeContactsOnly?: boolean;
|
|
226
|
-
/** Id of a campaign that is to be resent. */
|
|
227
|
-
resendCampaignId?: string | null;
|
|
228
|
-
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
229
|
-
withTotal?: boolean;
|
|
230
|
-
}
|
|
231
|
-
export interface EstimateAudienceSizeResponse {
|
|
232
|
-
/** Audience size (estimated number of emails to be sent). */
|
|
233
|
-
estimation?: number;
|
|
234
|
-
/** Total number of contacts in provided audience (optional). */
|
|
235
|
-
total?: number | null;
|
|
236
|
-
}
|
|
237
|
-
export interface ReconcileContactRequest {
|
|
238
|
-
/** Email address of the contact. */
|
|
239
|
-
emailAddress?: string;
|
|
240
|
-
}
|
|
241
|
-
export interface ReconcileContactResponse {
|
|
242
|
-
/** Created or retrieved contact. */
|
|
243
|
-
contact?: Contact;
|
|
244
|
-
}
|
|
245
|
-
export interface Contact {
|
|
246
|
-
/** Unique ID of the contact entity. */
|
|
247
|
-
id?: string;
|
|
248
|
-
/** Primary email address of the contact. */
|
|
249
|
-
emailAddress?: string;
|
|
250
|
-
/** Full name of the contact (optional). */
|
|
251
|
-
fullName?: string | null;
|
|
252
|
-
/** Profile picture of the contact (optional). */
|
|
253
|
-
pictureUrl?: string | null;
|
|
254
|
-
}
|
|
255
|
-
export interface SearchContactsRequest {
|
|
256
|
-
/** Text to search contacts by - can search by name or email address. */
|
|
257
|
-
searchTerm?: string;
|
|
258
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
259
|
-
activeContactsOnly?: boolean;
|
|
260
|
-
/** Page size (default 50, max 1000). */
|
|
261
|
-
pageSize?: number | null;
|
|
262
|
-
}
|
|
263
|
-
export interface SearchContactsResponse {
|
|
264
|
-
/** Search results. */
|
|
265
|
-
contacts?: Contact[];
|
|
266
|
-
}
|
|
267
|
-
export interface GetLabelsRequest {
|
|
268
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
269
|
-
activeContactsOnly?: boolean;
|
|
270
|
-
}
|
|
271
|
-
export interface GetLabelsResponse {
|
|
272
|
-
/** Returned labels with contact counts. */
|
|
273
|
-
labels?: Label[];
|
|
274
|
-
}
|
|
275
|
-
export interface Label {
|
|
276
|
-
/** Unique ID of the label entity. */
|
|
277
|
-
id?: string;
|
|
278
|
-
/** Name of the label. */
|
|
279
|
-
name?: string;
|
|
280
|
-
/** Amount of contacts assigned to the label. */
|
|
281
|
-
contactsCount?: number;
|
|
282
|
-
}
|
|
283
|
-
export interface SubscribeFromLandingPageRequest {
|
|
284
|
-
/** Campaign ID that the subscription is happening from. */
|
|
285
|
-
campaignId?: string;
|
|
286
|
-
/** Email address that is entered into subscription field. */
|
|
287
|
-
emailAddress?: string;
|
|
288
|
-
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
289
|
-
consent?: boolean;
|
|
290
|
-
}
|
|
291
|
-
export interface SubscribeFromLandingPageResponse {
|
|
292
|
-
contactId?: string;
|
|
293
|
-
}
|
|
294
|
-
export interface GetPlaceholderKeysRequest {
|
|
295
|
-
/** Campaign ID. */
|
|
296
|
-
campaignId?: string;
|
|
297
|
-
}
|
|
298
|
-
export interface GetPlaceholderKeysResponse {
|
|
299
|
-
/** Keys of placeholders used in the campaign. */
|
|
300
|
-
placeholderKeys?: string[];
|
|
301
|
-
}
|
|
302
|
-
export interface GetDefaultComponentsRequest {
|
|
303
|
-
}
|
|
304
|
-
export interface GetDefaultComponentsResponse {
|
|
305
|
-
footer?: Record<string, any> | null;
|
|
306
|
-
logo?: Record<string, any> | null;
|
|
307
|
-
follow?: Record<string, any> | null;
|
|
308
|
-
}
|
|
309
212
|
export interface ValidateLinkRequest {
|
|
310
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* URL to validate.
|
|
215
|
+
* @minLength 1
|
|
216
|
+
*/
|
|
311
217
|
url: string;
|
|
312
218
|
}
|
|
313
219
|
export interface ValidateLinkResponse {
|
|
@@ -315,204 +221,315 @@ export interface ValidateLinkResponse {
|
|
|
315
221
|
valid?: boolean;
|
|
316
222
|
}
|
|
317
223
|
export interface ValidateHtmlLinksRequest {
|
|
318
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* HTML string with links.
|
|
226
|
+
* @maxLength 1000000
|
|
227
|
+
*/
|
|
319
228
|
html: string;
|
|
320
229
|
}
|
|
321
230
|
export interface ValidateHtmlLinksResponse {
|
|
322
231
|
/** Non-valid links. */
|
|
323
232
|
blacklistedLinks?: string[];
|
|
324
233
|
}
|
|
325
|
-
export interface
|
|
326
|
-
/** IDs of the campaigns to retrieve (max 100 campaigns). */
|
|
327
|
-
campaignIds: string[];
|
|
328
|
-
}
|
|
329
|
-
export interface ListStatisticsResponse {
|
|
330
|
-
/** List of statistics. */
|
|
331
|
-
statistics?: CampaignStatisticsContainer[];
|
|
332
|
-
}
|
|
333
|
-
export interface CampaignStatisticsContainer {
|
|
334
|
-
/** Campaign ID. */
|
|
335
|
-
campaignId?: string;
|
|
336
|
-
/** Landing page statistics. */
|
|
337
|
-
landingPage?: LandingPageStatistics;
|
|
338
|
-
/** Email campaign statistics. */
|
|
339
|
-
email?: DistributionStatistics;
|
|
340
|
-
}
|
|
341
|
-
export interface ListRecipientsRequest {
|
|
342
|
-
/** Campaign ID. */
|
|
343
|
-
campaignId: string;
|
|
344
|
-
/** Email activity to filter. */
|
|
345
|
-
activity: RecipientsActivityEnum;
|
|
346
|
-
/** Pagination options. */
|
|
347
|
-
paging?: CursorPaging;
|
|
348
|
-
}
|
|
349
|
-
export declare enum RecipientsActivityEnum {
|
|
350
|
-
UNKNOWN = "UNKNOWN",
|
|
351
|
-
DELIVERED = "DELIVERED",
|
|
352
|
-
OPENED = "OPENED",
|
|
353
|
-
CLICKED = "CLICKED",
|
|
354
|
-
BOUNCED = "BOUNCED",
|
|
355
|
-
NOT_SENT = "NOT_SENT",
|
|
356
|
-
SENT = "SENT",
|
|
357
|
-
NOT_OPENED = "NOT_OPENED"
|
|
358
|
-
}
|
|
359
|
-
export interface CursorPaging {
|
|
360
|
-
/** Number of items to load. */
|
|
361
|
-
limit?: number | null;
|
|
234
|
+
export interface GetCampaignMappingRequest {
|
|
362
235
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
* You can get the relevant cursor token
|
|
366
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
367
|
-
* Not relevant for the first request.
|
|
236
|
+
* rule ID in automations
|
|
237
|
+
* @format GUID
|
|
368
238
|
*/
|
|
369
|
-
cursor?: string | null;
|
|
370
|
-
}
|
|
371
|
-
export interface ListRecipientsResponse {
|
|
372
|
-
/** List of recipients. */
|
|
373
|
-
recipients?: CampaignRecipientDetails[];
|
|
374
|
-
/** Details on the paged set of returned results. */
|
|
375
|
-
pagingMetadata?: PagingMetadataV2;
|
|
376
|
-
}
|
|
377
|
-
export interface CampaignRecipientDetails {
|
|
378
|
-
/** Contact ID. */
|
|
379
|
-
contactId?: string;
|
|
380
|
-
/** Date and time of the last activity. */
|
|
381
|
-
lastActivityDate?: Date | null;
|
|
382
|
-
/** Primary email address of the contact. */
|
|
383
|
-
emailAddress?: string;
|
|
384
|
-
/** Full name of the contact (optional). */
|
|
385
|
-
fullName?: string | null;
|
|
386
|
-
/** Is this contact currently deleted from the site or not. */
|
|
387
|
-
contactDeleted?: boolean;
|
|
388
|
-
}
|
|
389
|
-
export interface PagingMetadataV2 {
|
|
390
|
-
/** Number of items returned in the response. */
|
|
391
|
-
count?: number | null;
|
|
392
|
-
/** Offset that was requested. */
|
|
393
|
-
offset?: number | null;
|
|
394
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
395
|
-
total?: number | null;
|
|
396
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
397
|
-
tooManyToCount?: boolean | null;
|
|
398
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
399
|
-
cursors?: Cursors;
|
|
400
|
-
}
|
|
401
|
-
export interface Cursors {
|
|
402
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
403
|
-
next?: string | null;
|
|
404
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
405
|
-
prev?: string | null;
|
|
406
|
-
}
|
|
407
|
-
export interface GetCampaignMappingRequest {
|
|
408
|
-
/** rule ID in automations */
|
|
409
239
|
automationRuleId?: string;
|
|
410
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* template ID configured for the automation
|
|
242
|
+
* @format GUID
|
|
243
|
+
*/
|
|
411
244
|
templateId?: string;
|
|
412
245
|
}
|
|
413
246
|
export interface GetCampaignMappingResponse {
|
|
247
|
+
/** @format GUID */
|
|
414
248
|
campaignId?: string;
|
|
415
249
|
}
|
|
416
|
-
export interface GetPingCampaignMappingRequest {
|
|
417
|
-
/** ping stream ID. */
|
|
418
|
-
streamId?: string;
|
|
419
|
-
/** template ID configured for the ping automation. */
|
|
420
|
-
templateId?: string;
|
|
421
|
-
/** ID of the initiating vertical. */
|
|
422
|
-
appDefId?: string;
|
|
423
|
-
/** Ping template ID. */
|
|
424
|
-
pingTemplateId?: string | null;
|
|
425
|
-
/** Preferred language. */
|
|
426
|
-
language?: string;
|
|
427
|
-
/** rule ID in automations */
|
|
428
|
-
automationRuleId?: string;
|
|
429
|
-
}
|
|
430
|
-
export interface GetPingCampaignMappingResponse {
|
|
431
|
-
campaignId?: string;
|
|
432
|
-
}
|
|
433
|
-
export interface CampaignLookupRequest {
|
|
434
|
-
campaignId?: string;
|
|
435
|
-
}
|
|
436
|
-
export interface CampaignLookupResponse {
|
|
437
|
-
campaignId?: string;
|
|
438
|
-
instanceId?: string;
|
|
439
|
-
metasiteId?: string;
|
|
440
|
-
}
|
|
441
|
-
export interface CampaignLookupBatchRequest {
|
|
442
|
-
campaignIds?: string[];
|
|
443
|
-
}
|
|
444
|
-
export interface CampaignLookupBatchResponse {
|
|
445
|
-
responses?: CampaignLookupResponse[];
|
|
446
|
-
}
|
|
447
250
|
export interface UpsertTranslationRequest {
|
|
448
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* Campaign ID.
|
|
253
|
+
* @format GUID
|
|
254
|
+
*/
|
|
449
255
|
campaignId?: string;
|
|
450
256
|
/** Composer data. */
|
|
451
257
|
composer?: Composer;
|
|
452
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Translation language (optional, default value "EN").
|
|
260
|
+
* @format LANGUAGE
|
|
261
|
+
*/
|
|
453
262
|
language?: string | null;
|
|
454
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* For BI event [36:1031] only (optional, default value "n/a").
|
|
265
|
+
* @format GUID
|
|
266
|
+
*/
|
|
455
267
|
automationRuleId?: string | null;
|
|
456
268
|
/** Should campaign also be published or not (default value "false"). */
|
|
457
269
|
publish?: boolean;
|
|
458
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* Campaign subject (optional).
|
|
272
|
+
* @maxLength 1000
|
|
273
|
+
*/
|
|
459
274
|
emailSubject?: string | null;
|
|
460
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* Campaign preheader (optional).
|
|
277
|
+
* @maxLength 1000
|
|
278
|
+
*/
|
|
461
279
|
emailPreheader?: string | null;
|
|
462
280
|
}
|
|
463
281
|
export interface Composer {
|
|
464
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Internal data structure for editor/viewer to render the campaign.
|
|
284
|
+
* @maxLength 10000000
|
|
285
|
+
*/
|
|
465
286
|
composerDataJson?: string;
|
|
466
287
|
/** Default values of existing placeholders. */
|
|
467
288
|
defaultValues?: DefaultValues;
|
|
468
289
|
}
|
|
469
290
|
export interface DefaultValues {
|
|
291
|
+
/** @maxSize 500 */
|
|
470
292
|
map?: Record<string, string>;
|
|
471
293
|
}
|
|
472
294
|
export interface UpsertTranslationResponse {
|
|
473
295
|
}
|
|
474
296
|
export interface GetUsedPlaceholderKeysRequest {
|
|
475
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* Campaign ID.
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
476
301
|
campaignId?: string;
|
|
477
302
|
}
|
|
478
303
|
export interface GetUsedPlaceholderKeysResponse {
|
|
479
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Keys of placeholders used in the automation.
|
|
306
|
+
* @maxLength 200
|
|
307
|
+
* @maxSize 300
|
|
308
|
+
*/
|
|
480
309
|
placeholderKeys?: string[];
|
|
481
310
|
}
|
|
482
311
|
export interface LookupCampaignMappingRequest {
|
|
483
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* rule ID in automations
|
|
314
|
+
* @format GUID
|
|
315
|
+
*/
|
|
484
316
|
automationRuleId?: string;
|
|
485
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* template ID configured for the automation
|
|
319
|
+
* @format GUID
|
|
320
|
+
*/
|
|
486
321
|
templateId?: string;
|
|
487
322
|
}
|
|
488
323
|
export interface LookupCampaignMappingResponse {
|
|
324
|
+
/** @format GUID */
|
|
489
325
|
campaignId?: string | null;
|
|
490
326
|
}
|
|
491
327
|
export interface UpsertAutomationTranslatorContentRequest {
|
|
492
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Campaign ID that the content belongs to
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
493
332
|
campaignId?: string;
|
|
494
333
|
/** Automation translator content */
|
|
495
334
|
automationTranslatorContent?: AutomationTranslatorContent;
|
|
496
335
|
}
|
|
497
336
|
/** Automation Translator Content */
|
|
498
337
|
export interface AutomationTranslatorContent {
|
|
499
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* AutomationTranslatorContent ID
|
|
340
|
+
* @minLength 1
|
|
341
|
+
* @maxLength 256
|
|
342
|
+
* @immutable
|
|
343
|
+
*/
|
|
500
344
|
id?: string;
|
|
501
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
347
|
+
* @minLength 1
|
|
348
|
+
* @maxLength 800000
|
|
349
|
+
*/
|
|
502
350
|
json?: string;
|
|
503
351
|
}
|
|
504
352
|
export interface UpsertAutomationTranslatorContentResponse {
|
|
505
353
|
}
|
|
506
354
|
export interface GetAutomationTranslatorContentRequest {
|
|
507
|
-
/**
|
|
355
|
+
/**
|
|
356
|
+
* Campaign ID
|
|
357
|
+
* @format GUID
|
|
358
|
+
*/
|
|
508
359
|
campaignId?: string;
|
|
509
360
|
}
|
|
510
361
|
export interface GetAutomationTranslatorContentResponse {
|
|
511
362
|
/** Automation translator content */
|
|
512
363
|
automationTranslatorContent?: AutomationTranslatorContent;
|
|
513
364
|
}
|
|
365
|
+
export interface GetPlaceholderKeysRequest {
|
|
366
|
+
/**
|
|
367
|
+
* Campaign ID.
|
|
368
|
+
* @format GUID
|
|
369
|
+
*/
|
|
370
|
+
campaignId?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface GetPlaceholderKeysResponse {
|
|
373
|
+
/** Keys of placeholders used in the campaign. */
|
|
374
|
+
placeholderKeys?: string[];
|
|
375
|
+
}
|
|
376
|
+
export interface GetDefaultComponentsRequest {
|
|
377
|
+
}
|
|
378
|
+
export interface GetDefaultComponentsResponse {
|
|
379
|
+
footer?: Record<string, any> | null;
|
|
380
|
+
logo?: Record<string, any> | null;
|
|
381
|
+
follow?: Record<string, any> | null;
|
|
382
|
+
}
|
|
383
|
+
export interface EstimateFilterSizeRequest {
|
|
384
|
+
/** Contacts filter expression. */
|
|
385
|
+
filter?: Record<string, any> | null;
|
|
386
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
387
|
+
activeContactsOnly?: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
390
|
+
* @minLength 1
|
|
391
|
+
* @maxLength 100
|
|
392
|
+
*/
|
|
393
|
+
search?: string | null;
|
|
394
|
+
}
|
|
395
|
+
export interface EstimateFilterSizeResponse {
|
|
396
|
+
/** Mailing list size estimation. */
|
|
397
|
+
estimation?: number;
|
|
398
|
+
}
|
|
399
|
+
export interface EstimateAudienceSizeRequest {
|
|
400
|
+
/**
|
|
401
|
+
* Contact IDs of a campaign audience.
|
|
402
|
+
* @format GUID
|
|
403
|
+
*/
|
|
404
|
+
contactIds?: string[];
|
|
405
|
+
/** Label IDs of a campaign audience. */
|
|
406
|
+
labelIds?: string[];
|
|
407
|
+
/** Contacts filter expression (json). */
|
|
408
|
+
contactsFilter?: Record<string, any> | null;
|
|
409
|
+
/**
|
|
410
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
411
|
+
* @minLength 1
|
|
412
|
+
* @maxLength 100
|
|
413
|
+
*/
|
|
414
|
+
search?: string | null;
|
|
415
|
+
/**
|
|
416
|
+
* Segment ids of a campaign audience.
|
|
417
|
+
* @format GUID
|
|
418
|
+
*/
|
|
419
|
+
segmentIds?: string[];
|
|
420
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
421
|
+
activeContactsOnly?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Id of a campaign that is to be resent.
|
|
424
|
+
* @format GUID
|
|
425
|
+
*/
|
|
426
|
+
resendCampaignId?: string | null;
|
|
427
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
428
|
+
withTotal?: boolean;
|
|
429
|
+
}
|
|
430
|
+
export interface EstimateAudienceSizeResponse {
|
|
431
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
432
|
+
estimation?: number;
|
|
433
|
+
/** Total number of contacts in provided audience (optional). */
|
|
434
|
+
total?: number | null;
|
|
435
|
+
}
|
|
436
|
+
export interface ReconcileContactRequest {
|
|
437
|
+
/**
|
|
438
|
+
* Email address of the contact.
|
|
439
|
+
* @format EMAIL
|
|
440
|
+
*/
|
|
441
|
+
emailAddress?: string;
|
|
442
|
+
}
|
|
443
|
+
export interface ReconcileContactResponse {
|
|
444
|
+
/** Created or retrieved contact. */
|
|
445
|
+
contact?: Contact;
|
|
446
|
+
}
|
|
447
|
+
export interface Contact {
|
|
448
|
+
/**
|
|
449
|
+
* Unique ID of the contact entity.
|
|
450
|
+
* @format GUID
|
|
451
|
+
*/
|
|
452
|
+
id?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Primary email address of the contact.
|
|
455
|
+
* @format EMAIL
|
|
456
|
+
*/
|
|
457
|
+
emailAddress?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Full name of the contact (optional).
|
|
460
|
+
* @maxLength 100
|
|
461
|
+
*/
|
|
462
|
+
fullName?: string | null;
|
|
463
|
+
/**
|
|
464
|
+
* Profile picture of the contact (optional).
|
|
465
|
+
* @format WEB_URL
|
|
466
|
+
* @maxLength 2048
|
|
467
|
+
*/
|
|
468
|
+
pictureUrl?: string | null;
|
|
469
|
+
}
|
|
470
|
+
export interface SearchContactsRequest {
|
|
471
|
+
/**
|
|
472
|
+
* Text to search contacts by - can search by name or email address.
|
|
473
|
+
* @maxLength 100
|
|
474
|
+
*/
|
|
475
|
+
searchTerm?: string;
|
|
476
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
477
|
+
activeContactsOnly?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* Page size (default 50, max 1000).
|
|
480
|
+
* @max 1000
|
|
481
|
+
*/
|
|
482
|
+
pageSize?: number | null;
|
|
483
|
+
}
|
|
484
|
+
export interface SearchContactsResponse {
|
|
485
|
+
/** Search results. */
|
|
486
|
+
contacts?: Contact[];
|
|
487
|
+
}
|
|
488
|
+
export interface GetLabelsRequest {
|
|
489
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
490
|
+
activeContactsOnly?: boolean;
|
|
491
|
+
}
|
|
492
|
+
export interface GetLabelsResponse {
|
|
493
|
+
/** Returned labels with contact counts. */
|
|
494
|
+
labels?: Label[];
|
|
495
|
+
}
|
|
496
|
+
export interface Label {
|
|
497
|
+
/**
|
|
498
|
+
* Unique ID of the label entity.
|
|
499
|
+
* @maxLength 100
|
|
500
|
+
*/
|
|
501
|
+
id?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Name of the label.
|
|
504
|
+
* @maxLength 100
|
|
505
|
+
*/
|
|
506
|
+
name?: string;
|
|
507
|
+
/** Amount of contacts assigned to the label. */
|
|
508
|
+
contactsCount?: number;
|
|
509
|
+
}
|
|
510
|
+
export interface SubscribeFromLandingPageRequest {
|
|
511
|
+
/**
|
|
512
|
+
* Campaign ID that the subscription is happening from.
|
|
513
|
+
* @format GUID
|
|
514
|
+
*/
|
|
515
|
+
campaignId?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Email address that is entered into subscription field.
|
|
518
|
+
* @format EMAIL
|
|
519
|
+
*/
|
|
520
|
+
emailAddress?: string;
|
|
521
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
522
|
+
consent?: boolean;
|
|
523
|
+
}
|
|
524
|
+
export interface SubscribeFromLandingPageResponse {
|
|
525
|
+
/** @format GUID */
|
|
526
|
+
contactId?: string;
|
|
527
|
+
}
|
|
514
528
|
export interface GetCampaignRequest {
|
|
515
|
-
/**
|
|
529
|
+
/**
|
|
530
|
+
* Campaign ID.
|
|
531
|
+
* @format GUID
|
|
532
|
+
*/
|
|
516
533
|
campaignId: string;
|
|
517
534
|
/**
|
|
518
535
|
* Whether a returned campaign object should include `publishingData.statistics`.
|
|
@@ -568,7 +585,10 @@ export interface CountCampaignsResponse {
|
|
|
568
585
|
archived?: number;
|
|
569
586
|
}
|
|
570
587
|
export interface CreateFromTemplateRequest {
|
|
571
|
-
/**
|
|
588
|
+
/**
|
|
589
|
+
* ID of the template to fork.
|
|
590
|
+
* @format GUID
|
|
591
|
+
*/
|
|
572
592
|
templateId?: string;
|
|
573
593
|
/** Values to replace template placeholders with (unique for each template). */
|
|
574
594
|
variables?: Record<string, string>;
|
|
@@ -580,9 +600,15 @@ export interface CreateFromTemplateResponse {
|
|
|
580
600
|
campaign?: Campaign;
|
|
581
601
|
}
|
|
582
602
|
export interface CreateUserTemplateRequest {
|
|
583
|
-
/**
|
|
603
|
+
/**
|
|
604
|
+
* ID of campaign to create template from.
|
|
605
|
+
* @format GUID
|
|
606
|
+
*/
|
|
584
607
|
campaignId?: string;
|
|
585
|
-
/**
|
|
608
|
+
/**
|
|
609
|
+
* Title of template.
|
|
610
|
+
* @maxLength 1000
|
|
611
|
+
*/
|
|
586
612
|
title?: string | null;
|
|
587
613
|
}
|
|
588
614
|
export interface CreateUserTemplateResponse {
|
|
@@ -590,7 +616,10 @@ export interface CreateUserTemplateResponse {
|
|
|
590
616
|
campaign?: Campaign;
|
|
591
617
|
}
|
|
592
618
|
export interface CreateFromUserTemplateRequest {
|
|
593
|
-
/**
|
|
619
|
+
/**
|
|
620
|
+
* ID of the user template campaign to use.
|
|
621
|
+
* @format GUID
|
|
622
|
+
*/
|
|
594
623
|
campaignId?: string;
|
|
595
624
|
}
|
|
596
625
|
export interface CreateFromUserTemplateResponse {
|
|
@@ -598,20 +627,30 @@ export interface CreateFromUserTemplateResponse {
|
|
|
598
627
|
campaign?: Campaign;
|
|
599
628
|
}
|
|
600
629
|
export interface PublishCampaignRequest {
|
|
601
|
-
/**
|
|
630
|
+
/**
|
|
631
|
+
* Campaign ID
|
|
632
|
+
* @format GUID
|
|
633
|
+
*/
|
|
602
634
|
campaignId: string;
|
|
603
635
|
/** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
|
|
604
636
|
emailDistributionOptions?: EmailDistributionOptions;
|
|
605
637
|
}
|
|
606
638
|
export interface EmailDistributionOptions {
|
|
607
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* The subject line for the email campaign, which appears in recipients’ inboxes.
|
|
641
|
+
* @maxLength 1000
|
|
642
|
+
*/
|
|
608
643
|
emailSubject?: string | null;
|
|
609
644
|
/** Contact label IDs. */
|
|
610
645
|
labelIds?: string[];
|
|
611
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* IDs of contacts to whom to send out the campaign.
|
|
648
|
+
* @format GUID
|
|
649
|
+
*/
|
|
612
650
|
contactIds?: string[];
|
|
613
651
|
/**
|
|
614
652
|
* Filter ids to send campaign to (unsupported).
|
|
653
|
+
* @format GUID
|
|
615
654
|
* @deprecated Filter ids to send campaign to (unsupported).
|
|
616
655
|
* @replacedBy contacts_filter
|
|
617
656
|
* @targetRemovalDate 2023-10-10
|
|
@@ -625,23 +664,39 @@ export interface PublishCampaignResponse {
|
|
|
625
664
|
publishingData?: PublishingData;
|
|
626
665
|
}
|
|
627
666
|
export interface Rejected {
|
|
628
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* ID of the campaign that was rejected.
|
|
669
|
+
* @format GUID
|
|
670
|
+
*/
|
|
629
671
|
campaignId?: string;
|
|
630
672
|
}
|
|
631
673
|
export interface Published {
|
|
632
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* ID of the campaign that was published.
|
|
676
|
+
* @format GUID
|
|
677
|
+
*/
|
|
633
678
|
campaignId?: string;
|
|
634
|
-
/**
|
|
679
|
+
/**
|
|
680
|
+
* Campaign landing page URL.
|
|
681
|
+
* @format WEB_URL
|
|
682
|
+
* @maxLength 2048
|
|
683
|
+
*/
|
|
635
684
|
landingPageUrl?: string;
|
|
636
685
|
/** Estimation of recipient list size (optional). */
|
|
637
686
|
mailingListSizeEstimate?: number | null;
|
|
638
687
|
}
|
|
639
688
|
export interface Terminated {
|
|
640
|
-
/**
|
|
689
|
+
/**
|
|
690
|
+
* ID of the campaign that was terminated.
|
|
691
|
+
* @format GUID
|
|
692
|
+
*/
|
|
641
693
|
campaignId?: string;
|
|
642
694
|
}
|
|
643
695
|
export interface Distributed {
|
|
644
|
-
/**
|
|
696
|
+
/**
|
|
697
|
+
* ID of the campaign that was distributed.
|
|
698
|
+
* @format GUID
|
|
699
|
+
*/
|
|
645
700
|
campaignId?: string;
|
|
646
701
|
}
|
|
647
702
|
export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf {
|
|
@@ -662,16 +717,28 @@ export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf
|
|
|
662
717
|
* Indicates a permanent error sending your email. For example, the email address does not exist.
|
|
663
718
|
*/
|
|
664
719
|
hardBounce?: HardBounce;
|
|
665
|
-
/**
|
|
720
|
+
/**
|
|
721
|
+
* Campaign ID.
|
|
722
|
+
* @format GUID
|
|
723
|
+
*/
|
|
666
724
|
campaignId?: string;
|
|
667
|
-
/**
|
|
725
|
+
/**
|
|
726
|
+
* [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient.
|
|
727
|
+
* @format GUID
|
|
728
|
+
*/
|
|
668
729
|
contactId?: string;
|
|
669
|
-
/**
|
|
730
|
+
/**
|
|
731
|
+
* Email address of a recipient.
|
|
732
|
+
* @format EMAIL
|
|
733
|
+
*/
|
|
670
734
|
recipientEmailAddress?: string;
|
|
671
735
|
/** Date and time of the event. */
|
|
672
736
|
timestamp?: Date | null;
|
|
673
737
|
activityType?: ActivityType;
|
|
674
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* email metadata
|
|
740
|
+
* @maxSize 20
|
|
741
|
+
*/
|
|
675
742
|
metadata?: Record<string, string>;
|
|
676
743
|
}
|
|
677
744
|
/** @oneof */
|
|
@@ -726,7 +793,10 @@ export interface HardBounce {
|
|
|
726
793
|
reason?: string;
|
|
727
794
|
}
|
|
728
795
|
export interface Scheduled {
|
|
729
|
-
/**
|
|
796
|
+
/**
|
|
797
|
+
* ID of the campaign that was scheduled.
|
|
798
|
+
* @format GUID
|
|
799
|
+
*/
|
|
730
800
|
campaignId?: string;
|
|
731
801
|
/** The timestamp campaign is scheduled for. */
|
|
732
802
|
sendAt?: Date | null;
|
|
@@ -734,11 +804,20 @@ export interface Scheduled {
|
|
|
734
804
|
rescheduled?: boolean;
|
|
735
805
|
}
|
|
736
806
|
export interface SendTestRequest {
|
|
737
|
-
/**
|
|
807
|
+
/**
|
|
808
|
+
* Campaign ID.
|
|
809
|
+
* @format GUID
|
|
810
|
+
*/
|
|
738
811
|
campaignId: string;
|
|
739
|
-
/**
|
|
812
|
+
/**
|
|
813
|
+
* Email subject.
|
|
814
|
+
* @maxLength 1000
|
|
815
|
+
*/
|
|
740
816
|
emailSubject?: string | null;
|
|
741
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* Recipient email address.
|
|
819
|
+
* @format EMAIL
|
|
820
|
+
*/
|
|
742
821
|
toEmailAddress: string;
|
|
743
822
|
}
|
|
744
823
|
export interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
@@ -777,9 +856,15 @@ export interface Html {
|
|
|
777
856
|
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
778
857
|
*/
|
|
779
858
|
export interface Money {
|
|
780
|
-
/**
|
|
859
|
+
/**
|
|
860
|
+
* Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
|
|
861
|
+
* @format DECIMAL_VALUE
|
|
862
|
+
*/
|
|
781
863
|
value?: string;
|
|
782
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
866
|
+
* @format CURRENCY
|
|
867
|
+
*/
|
|
783
868
|
currency?: string;
|
|
784
869
|
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
785
870
|
formattedValue?: string | null;
|
|
@@ -811,23 +896,33 @@ export interface Decimal {
|
|
|
811
896
|
/**
|
|
812
897
|
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
813
898
|
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
899
|
+
* @format DECIMAL_VALUE
|
|
814
900
|
*/
|
|
815
901
|
value?: string;
|
|
816
902
|
}
|
|
817
903
|
export interface SendTestResponse {
|
|
818
904
|
}
|
|
819
905
|
export interface PauseSchedulingRequest {
|
|
820
|
-
/**
|
|
906
|
+
/**
|
|
907
|
+
* Campaign ID.
|
|
908
|
+
* @format GUID
|
|
909
|
+
*/
|
|
821
910
|
campaignId: string;
|
|
822
911
|
}
|
|
823
912
|
export interface PauseSchedulingResponse {
|
|
824
913
|
}
|
|
825
914
|
export interface Paused {
|
|
826
|
-
/**
|
|
915
|
+
/**
|
|
916
|
+
* ID of the campaign that was paused.
|
|
917
|
+
* @format GUID
|
|
918
|
+
*/
|
|
827
919
|
campaignId?: string;
|
|
828
920
|
}
|
|
829
921
|
export interface RescheduleRequest {
|
|
830
|
-
/**
|
|
922
|
+
/**
|
|
923
|
+
* ID of the campaign to reschedule.
|
|
924
|
+
* @format GUID
|
|
925
|
+
*/
|
|
831
926
|
campaignId: string;
|
|
832
927
|
/** New time for sending out the campaign. */
|
|
833
928
|
sendAt: Date | null;
|
|
@@ -835,43 +930,67 @@ export interface RescheduleRequest {
|
|
|
835
930
|
export interface RescheduleResponse {
|
|
836
931
|
}
|
|
837
932
|
export interface ArchiveCampaignRequest {
|
|
838
|
-
/**
|
|
933
|
+
/**
|
|
934
|
+
* ID of the campaign to archive.
|
|
935
|
+
* @format GUID
|
|
936
|
+
*/
|
|
839
937
|
campaignId?: string;
|
|
840
938
|
}
|
|
841
939
|
export interface ArchiveCampaignResponse {
|
|
842
940
|
}
|
|
843
941
|
/** Sent when status of the campaign is changed from "Active" to "Archived" */
|
|
844
942
|
export interface Archived {
|
|
845
|
-
/**
|
|
943
|
+
/**
|
|
944
|
+
* ID of the campaign that was archived.
|
|
945
|
+
* @format GUID
|
|
946
|
+
*/
|
|
846
947
|
campaignId?: string;
|
|
847
948
|
}
|
|
848
949
|
export interface UnarchiveCampaignRequest {
|
|
849
|
-
/**
|
|
950
|
+
/**
|
|
951
|
+
* ID of the campaign to unarchive.
|
|
952
|
+
* @format GUID
|
|
953
|
+
*/
|
|
850
954
|
campaignId?: string;
|
|
851
955
|
}
|
|
852
956
|
export interface UnarchiveCampaignResponse {
|
|
853
957
|
}
|
|
854
958
|
/** Sent when status of the campaign is changed from "Archived" to "Active" */
|
|
855
959
|
export interface Unarchived {
|
|
856
|
-
/**
|
|
960
|
+
/**
|
|
961
|
+
* ID of the campaign whose status was changed to active.
|
|
962
|
+
* @format GUID
|
|
963
|
+
*/
|
|
857
964
|
campaignId?: string;
|
|
858
965
|
}
|
|
859
966
|
export interface UpdateTitleRequest {
|
|
860
|
-
/**
|
|
967
|
+
/**
|
|
968
|
+
* ID of the campaign to change title of.
|
|
969
|
+
* @format GUID
|
|
970
|
+
*/
|
|
861
971
|
campaignId?: string;
|
|
862
|
-
/**
|
|
972
|
+
/**
|
|
973
|
+
* New title to set.
|
|
974
|
+
* @maxLength 1000
|
|
975
|
+
*/
|
|
863
976
|
title?: string;
|
|
864
977
|
}
|
|
865
978
|
export interface UpdateTitleResponse {
|
|
866
979
|
}
|
|
867
980
|
export interface DeleteCampaignRequest {
|
|
868
|
-
/**
|
|
981
|
+
/**
|
|
982
|
+
* Campaign ID.
|
|
983
|
+
* @format GUID
|
|
984
|
+
*/
|
|
869
985
|
campaignId: string;
|
|
870
986
|
}
|
|
871
987
|
export interface DeleteCampaignResponse {
|
|
872
988
|
}
|
|
873
989
|
export interface ReuseCampaignRequest {
|
|
874
|
-
/**
|
|
990
|
+
/**
|
|
991
|
+
* ID of the message to be duplicated.
|
|
992
|
+
* @format GUID
|
|
993
|
+
*/
|
|
875
994
|
campaignId: string;
|
|
876
995
|
}
|
|
877
996
|
export interface ReuseCampaignResponse {
|
|
@@ -879,9 +998,15 @@ export interface ReuseCampaignResponse {
|
|
|
879
998
|
campaign?: Campaign;
|
|
880
999
|
}
|
|
881
1000
|
export interface PreviewCampaignRequest {
|
|
882
|
-
/**
|
|
1001
|
+
/**
|
|
1002
|
+
* ID of the campaign to preview.
|
|
1003
|
+
* @format GUID
|
|
1004
|
+
*/
|
|
883
1005
|
campaignId?: string;
|
|
884
|
-
/**
|
|
1006
|
+
/**
|
|
1007
|
+
* Preferred language for campaign content (optional).
|
|
1008
|
+
* @format LANGUAGE
|
|
1009
|
+
*/
|
|
885
1010
|
language?: string | null;
|
|
886
1011
|
/** Values to replace campaign placeholders with (unique for each campaign). */
|
|
887
1012
|
placeholders?: Record<string, PlaceholderContent>;
|
|
@@ -893,29 +1018,50 @@ export interface PreviewCampaignResponse {
|
|
|
893
1018
|
html?: string;
|
|
894
1019
|
}
|
|
895
1020
|
export interface GetComposerRequest {
|
|
896
|
-
/**
|
|
1021
|
+
/**
|
|
1022
|
+
* Campaign ID.
|
|
1023
|
+
* @format GUID
|
|
1024
|
+
*/
|
|
897
1025
|
campaignId?: string;
|
|
898
|
-
/**
|
|
1026
|
+
/**
|
|
1027
|
+
* Preferred language for campaign content (optional).
|
|
1028
|
+
* @format LANGUAGE
|
|
1029
|
+
*/
|
|
899
1030
|
language?: string | null;
|
|
900
1031
|
}
|
|
901
1032
|
export interface GetComposerResponse {
|
|
902
1033
|
/** Composer. */
|
|
903
1034
|
composer?: Composer;
|
|
904
|
-
/**
|
|
1035
|
+
/**
|
|
1036
|
+
* Campaign subject.
|
|
1037
|
+
* @maxLength 1000
|
|
1038
|
+
*/
|
|
905
1039
|
emailSubject?: string;
|
|
906
|
-
/**
|
|
1040
|
+
/**
|
|
1041
|
+
* Campaign preheader (optional).
|
|
1042
|
+
* @maxLength 1000
|
|
1043
|
+
*/
|
|
907
1044
|
emailPreheader?: string | null;
|
|
908
1045
|
}
|
|
909
1046
|
export interface UpdateComposerRequest {
|
|
910
|
-
/**
|
|
1047
|
+
/**
|
|
1048
|
+
* Campaign ID.
|
|
1049
|
+
* @format GUID
|
|
1050
|
+
*/
|
|
911
1051
|
campaignId?: string;
|
|
912
1052
|
/** Campaign composer. */
|
|
913
1053
|
composer?: Composer;
|
|
914
1054
|
/** Campaign editor type (optional, default "WEB"). */
|
|
915
1055
|
campaignEditorType?: CampaignEditorType;
|
|
916
|
-
/**
|
|
1056
|
+
/**
|
|
1057
|
+
* Campaign subject (optional).
|
|
1058
|
+
* @maxLength 1000
|
|
1059
|
+
*/
|
|
917
1060
|
emailSubject?: string | null;
|
|
918
|
-
/**
|
|
1061
|
+
/**
|
|
1062
|
+
* Campaign preheader (optional).
|
|
1063
|
+
* @maxLength 1000
|
|
1064
|
+
*/
|
|
919
1065
|
emailPreheader?: string | null;
|
|
920
1066
|
}
|
|
921
1067
|
/** specifies if campaign is being created and edited in web or mobile app */
|
|
@@ -929,9 +1075,15 @@ export interface CreateCampaignRequest {
|
|
|
929
1075
|
composer?: Composer;
|
|
930
1076
|
/** Campaign editor type (optional, default "WEB"). */
|
|
931
1077
|
campaignEditorType?: CampaignEditorType;
|
|
932
|
-
/**
|
|
1078
|
+
/**
|
|
1079
|
+
* Campaign subject (optional).
|
|
1080
|
+
* @maxLength 1000
|
|
1081
|
+
*/
|
|
933
1082
|
emailSubject?: string | null;
|
|
934
|
-
/**
|
|
1083
|
+
/**
|
|
1084
|
+
* Campaign preheader (optional).
|
|
1085
|
+
* @maxLength 1000
|
|
1086
|
+
*/
|
|
935
1087
|
emailPreheader?: string | null;
|
|
936
1088
|
}
|
|
937
1089
|
export interface CreateCampaignResponse {
|
|
@@ -939,17 +1091,29 @@ export interface CreateCampaignResponse {
|
|
|
939
1091
|
campaign?: Campaign;
|
|
940
1092
|
}
|
|
941
1093
|
export interface ResendToNonOpenersRequest {
|
|
942
|
-
/**
|
|
1094
|
+
/**
|
|
1095
|
+
* ID of the campaign to resend.
|
|
1096
|
+
* @format GUID
|
|
1097
|
+
*/
|
|
943
1098
|
campaignId?: string;
|
|
944
|
-
/**
|
|
1099
|
+
/**
|
|
1100
|
+
* Subject line to use with the resent copy of campaign.
|
|
1101
|
+
* @maxLength 1000
|
|
1102
|
+
*/
|
|
945
1103
|
emailSubject?: string | null;
|
|
946
1104
|
}
|
|
947
1105
|
export interface ResendToNonOpenersResponse {
|
|
948
|
-
/**
|
|
1106
|
+
/**
|
|
1107
|
+
* ID of the newly created and resent campaign.
|
|
1108
|
+
* @format GUID
|
|
1109
|
+
*/
|
|
949
1110
|
campaignId?: string;
|
|
950
1111
|
}
|
|
951
1112
|
export interface GetAudienceRequest {
|
|
952
|
-
/**
|
|
1113
|
+
/**
|
|
1114
|
+
* Campaign ID.
|
|
1115
|
+
* @format GUID
|
|
1116
|
+
*/
|
|
953
1117
|
campaignId: string;
|
|
954
1118
|
}
|
|
955
1119
|
export interface GetAudienceResponse {
|
|
@@ -957,25 +1121,51 @@ export interface GetAudienceResponse {
|
|
|
957
1121
|
audience?: CampaignAudience;
|
|
958
1122
|
}
|
|
959
1123
|
export interface CampaignAudience {
|
|
960
|
-
/**
|
|
1124
|
+
/**
|
|
1125
|
+
* IDs of contacts to whom to send the campaign.
|
|
1126
|
+
* @format GUID
|
|
1127
|
+
* @maxSize 100
|
|
1128
|
+
*/
|
|
961
1129
|
contactIds?: string[];
|
|
962
|
-
/**
|
|
1130
|
+
/**
|
|
1131
|
+
* Labels IDs.
|
|
1132
|
+
* @maxLength 100
|
|
1133
|
+
* @maxSize 20
|
|
1134
|
+
*/
|
|
963
1135
|
labelIds?: string[];
|
|
964
|
-
/**
|
|
1136
|
+
/**
|
|
1137
|
+
* Segment IDs.
|
|
1138
|
+
* @format GUID
|
|
1139
|
+
* @maxSize 20
|
|
1140
|
+
*/
|
|
965
1141
|
segmentIds?: string[];
|
|
966
1142
|
/** Filter for contacts in JSON format. */
|
|
967
1143
|
contactsFilter?: Record<string, any> | null;
|
|
968
|
-
/**
|
|
1144
|
+
/**
|
|
1145
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1146
|
+
* @minLength 1
|
|
1147
|
+
* @maxLength 100
|
|
1148
|
+
*/
|
|
969
1149
|
contactsSearchTerm?: string | null;
|
|
970
1150
|
/** Should "inactive" contacts be excluded or not. */
|
|
971
1151
|
activeContactsOnly?: boolean;
|
|
972
1152
|
}
|
|
973
1153
|
export interface IdentifySenderAddressRequest {
|
|
974
|
-
/**
|
|
1154
|
+
/**
|
|
1155
|
+
* Email address to verify.
|
|
1156
|
+
* @format EMAIL
|
|
1157
|
+
* @minLength 6
|
|
1158
|
+
* @maxLength 254
|
|
1159
|
+
*/
|
|
975
1160
|
emailAddress: string;
|
|
976
1161
|
}
|
|
977
1162
|
export interface IdentifySenderAddressResponse {
|
|
978
|
-
/**
|
|
1163
|
+
/**
|
|
1164
|
+
* Actual "from" address that will be used for sending emails.
|
|
1165
|
+
* @format EMAIL
|
|
1166
|
+
* @minLength 6
|
|
1167
|
+
* @maxLength 254
|
|
1168
|
+
*/
|
|
979
1169
|
senderAddress?: string;
|
|
980
1170
|
}
|
|
981
1171
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1051,9 +1241,15 @@ export interface ActionEvent {
|
|
|
1051
1241
|
bodyAsJson?: string;
|
|
1052
1242
|
}
|
|
1053
1243
|
export interface MessageEnvelope {
|
|
1054
|
-
/**
|
|
1244
|
+
/**
|
|
1245
|
+
* App instance ID.
|
|
1246
|
+
* @format GUID
|
|
1247
|
+
*/
|
|
1055
1248
|
instanceId?: string | null;
|
|
1056
|
-
/**
|
|
1249
|
+
/**
|
|
1250
|
+
* Event type.
|
|
1251
|
+
* @maxLength 150
|
|
1252
|
+
*/
|
|
1057
1253
|
eventType?: string;
|
|
1058
1254
|
/** The identification type and identity data. */
|
|
1059
1255
|
identity?: IdentificationData;
|
|
@@ -1061,26 +1257,50 @@ export interface MessageEnvelope {
|
|
|
1061
1257
|
data?: string;
|
|
1062
1258
|
}
|
|
1063
1259
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1064
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1262
|
+
* @format GUID
|
|
1263
|
+
*/
|
|
1065
1264
|
anonymousVisitorId?: string;
|
|
1066
|
-
/**
|
|
1265
|
+
/**
|
|
1266
|
+
* ID of a site visitor that has logged in to the site.
|
|
1267
|
+
* @format GUID
|
|
1268
|
+
*/
|
|
1067
1269
|
memberId?: string;
|
|
1068
|
-
/**
|
|
1270
|
+
/**
|
|
1271
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1272
|
+
* @format GUID
|
|
1273
|
+
*/
|
|
1069
1274
|
wixUserId?: string;
|
|
1070
|
-
/**
|
|
1275
|
+
/**
|
|
1276
|
+
* ID of an app.
|
|
1277
|
+
* @format GUID
|
|
1278
|
+
*/
|
|
1071
1279
|
appId?: string;
|
|
1072
1280
|
/** @readonly */
|
|
1073
1281
|
identityType?: WebhookIdentityType;
|
|
1074
1282
|
}
|
|
1075
1283
|
/** @oneof */
|
|
1076
1284
|
export interface IdentificationDataIdOneOf {
|
|
1077
|
-
/**
|
|
1285
|
+
/**
|
|
1286
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1287
|
+
* @format GUID
|
|
1288
|
+
*/
|
|
1078
1289
|
anonymousVisitorId?: string;
|
|
1079
|
-
/**
|
|
1290
|
+
/**
|
|
1291
|
+
* ID of a site visitor that has logged in to the site.
|
|
1292
|
+
* @format GUID
|
|
1293
|
+
*/
|
|
1080
1294
|
memberId?: string;
|
|
1081
|
-
/**
|
|
1295
|
+
/**
|
|
1296
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1297
|
+
* @format GUID
|
|
1298
|
+
*/
|
|
1082
1299
|
wixUserId?: string;
|
|
1083
|
-
/**
|
|
1300
|
+
/**
|
|
1301
|
+
* ID of an app.
|
|
1302
|
+
* @format GUID
|
|
1303
|
+
*/
|
|
1084
1304
|
appId?: string;
|
|
1085
1305
|
}
|
|
1086
1306
|
export declare enum WebhookIdentityType {
|
|
@@ -1090,6 +1310,117 @@ export declare enum WebhookIdentityType {
|
|
|
1090
1310
|
WIX_USER = "WIX_USER",
|
|
1091
1311
|
APP = "APP"
|
|
1092
1312
|
}
|
|
1313
|
+
export interface ListStatisticsRequest {
|
|
1314
|
+
/**
|
|
1315
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1316
|
+
* @format GUID
|
|
1317
|
+
* @minSize 1
|
|
1318
|
+
* @maxSize 100
|
|
1319
|
+
*/
|
|
1320
|
+
campaignIds: string[];
|
|
1321
|
+
}
|
|
1322
|
+
export interface ListStatisticsResponse {
|
|
1323
|
+
/** List of statistics. */
|
|
1324
|
+
statistics?: CampaignStatisticsContainer[];
|
|
1325
|
+
}
|
|
1326
|
+
export interface CampaignStatisticsContainer {
|
|
1327
|
+
/**
|
|
1328
|
+
* Campaign ID.
|
|
1329
|
+
* @format GUID
|
|
1330
|
+
*/
|
|
1331
|
+
campaignId?: string;
|
|
1332
|
+
/** Landing page statistics. */
|
|
1333
|
+
landingPage?: LandingPageStatistics;
|
|
1334
|
+
/** Email campaign statistics. */
|
|
1335
|
+
email?: DistributionStatistics;
|
|
1336
|
+
}
|
|
1337
|
+
export interface ListRecipientsRequest {
|
|
1338
|
+
/**
|
|
1339
|
+
* Campaign ID.
|
|
1340
|
+
* @format GUID
|
|
1341
|
+
*/
|
|
1342
|
+
campaignId: string;
|
|
1343
|
+
/** Email activity to filter. */
|
|
1344
|
+
activity: RecipientsActivityEnum;
|
|
1345
|
+
/** Pagination options. */
|
|
1346
|
+
paging?: CursorPaging;
|
|
1347
|
+
}
|
|
1348
|
+
export declare enum RecipientsActivityEnum {
|
|
1349
|
+
UNKNOWN = "UNKNOWN",
|
|
1350
|
+
DELIVERED = "DELIVERED",
|
|
1351
|
+
OPENED = "OPENED",
|
|
1352
|
+
CLICKED = "CLICKED",
|
|
1353
|
+
BOUNCED = "BOUNCED",
|
|
1354
|
+
NOT_SENT = "NOT_SENT",
|
|
1355
|
+
SENT = "SENT",
|
|
1356
|
+
NOT_OPENED = "NOT_OPENED"
|
|
1357
|
+
}
|
|
1358
|
+
export interface CursorPaging {
|
|
1359
|
+
/**
|
|
1360
|
+
* Number of items to load.
|
|
1361
|
+
* @max 1000
|
|
1362
|
+
*/
|
|
1363
|
+
limit?: number | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* Pointer to the next or previous page in the list of results.
|
|
1366
|
+
*
|
|
1367
|
+
* You can get the relevant cursor token
|
|
1368
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
1369
|
+
* Not relevant for the first request.
|
|
1370
|
+
*/
|
|
1371
|
+
cursor?: string | null;
|
|
1372
|
+
}
|
|
1373
|
+
export interface ListRecipientsResponse {
|
|
1374
|
+
/** List of recipients. */
|
|
1375
|
+
recipients?: CampaignRecipientDetails[];
|
|
1376
|
+
/** Details on the paged set of returned results. */
|
|
1377
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1378
|
+
}
|
|
1379
|
+
export interface CampaignRecipientDetails {
|
|
1380
|
+
/**
|
|
1381
|
+
* Contact ID.
|
|
1382
|
+
* @format GUID
|
|
1383
|
+
*/
|
|
1384
|
+
contactId?: string;
|
|
1385
|
+
/** Date and time of the last activity. */
|
|
1386
|
+
lastActivityDate?: Date | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* Primary email address of the contact.
|
|
1389
|
+
* @format EMAIL
|
|
1390
|
+
*/
|
|
1391
|
+
emailAddress?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* Full name of the contact (optional).
|
|
1394
|
+
* @maxLength 100
|
|
1395
|
+
*/
|
|
1396
|
+
fullName?: string | null;
|
|
1397
|
+
/** Is this contact currently deleted from the site or not. */
|
|
1398
|
+
contactDeleted?: boolean;
|
|
1399
|
+
}
|
|
1400
|
+
export interface PagingMetadataV2 {
|
|
1401
|
+
/** Number of items returned in the response. */
|
|
1402
|
+
count?: number | null;
|
|
1403
|
+
/** Offset that was requested. */
|
|
1404
|
+
offset?: number | null;
|
|
1405
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1406
|
+
total?: number | null;
|
|
1407
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1408
|
+
tooManyToCount?: boolean | null;
|
|
1409
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1410
|
+
cursors?: Cursors;
|
|
1411
|
+
}
|
|
1412
|
+
export interface Cursors {
|
|
1413
|
+
/**
|
|
1414
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1415
|
+
* @maxLength 16000
|
|
1416
|
+
*/
|
|
1417
|
+
next?: string | null;
|
|
1418
|
+
/**
|
|
1419
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1420
|
+
* @maxLength 16000
|
|
1421
|
+
*/
|
|
1422
|
+
prev?: string | null;
|
|
1423
|
+
}
|
|
1093
1424
|
export interface ValidateLinkResponseNonNullableFields {
|
|
1094
1425
|
valid: boolean;
|
|
1095
1426
|
}
|
|
@@ -1108,22 +1439,6 @@ interface DistributionStatisticsNonNullableFields {
|
|
|
1108
1439
|
complained: number;
|
|
1109
1440
|
notSent: number;
|
|
1110
1441
|
}
|
|
1111
|
-
interface CampaignStatisticsContainerNonNullableFields {
|
|
1112
|
-
campaignId: string;
|
|
1113
|
-
landingPage?: LandingPageStatisticsNonNullableFields;
|
|
1114
|
-
email?: DistributionStatisticsNonNullableFields;
|
|
1115
|
-
}
|
|
1116
|
-
export interface ListStatisticsResponseNonNullableFields {
|
|
1117
|
-
statistics: CampaignStatisticsContainerNonNullableFields[];
|
|
1118
|
-
}
|
|
1119
|
-
interface CampaignRecipientDetailsNonNullableFields {
|
|
1120
|
-
contactId: string;
|
|
1121
|
-
emailAddress: string;
|
|
1122
|
-
contactDeleted: boolean;
|
|
1123
|
-
}
|
|
1124
|
-
export interface ListRecipientsResponseNonNullableFields {
|
|
1125
|
-
recipients: CampaignRecipientDetailsNonNullableFields[];
|
|
1126
|
-
}
|
|
1127
1442
|
interface TotalStatisticsNonNullableFields {
|
|
1128
1443
|
mailsSent: number;
|
|
1129
1444
|
opened: number;
|
|
@@ -1178,4 +1493,20 @@ export interface GetAudienceResponseNonNullableFields {
|
|
|
1178
1493
|
export interface IdentifySenderAddressResponseNonNullableFields {
|
|
1179
1494
|
senderAddress: string;
|
|
1180
1495
|
}
|
|
1496
|
+
interface CampaignStatisticsContainerNonNullableFields {
|
|
1497
|
+
campaignId: string;
|
|
1498
|
+
landingPage?: LandingPageStatisticsNonNullableFields;
|
|
1499
|
+
email?: DistributionStatisticsNonNullableFields;
|
|
1500
|
+
}
|
|
1501
|
+
export interface ListStatisticsResponseNonNullableFields {
|
|
1502
|
+
statistics: CampaignStatisticsContainerNonNullableFields[];
|
|
1503
|
+
}
|
|
1504
|
+
interface CampaignRecipientDetailsNonNullableFields {
|
|
1505
|
+
contactId: string;
|
|
1506
|
+
emailAddress: string;
|
|
1507
|
+
contactDeleted: boolean;
|
|
1508
|
+
}
|
|
1509
|
+
export interface ListRecipientsResponseNonNullableFields {
|
|
1510
|
+
recipients: CampaignRecipientDetailsNonNullableFields[];
|
|
1511
|
+
}
|
|
1181
1512
|
export {};
|