@wix/auto_sdk_email-marketing_campaigns 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +34 -34
- package/build/cjs/index.js +170 -170
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +538 -538
- package/build/cjs/index.typings.js +154 -154
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +481 -481
- package/build/cjs/meta.js +134 -134
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +34 -34
- package/build/es/index.mjs +170 -170
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +538 -538
- package/build/es/index.typings.mjs +154 -154
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +481 -481
- package/build/es/meta.mjs +134 -134
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +34 -34
- package/build/internal/cjs/index.js +170 -170
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +538 -538
- package/build/internal/cjs/index.typings.js +154 -154
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +481 -481
- package/build/internal/cjs/meta.js +134 -134
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +34 -34
- package/build/internal/es/index.mjs +170 -170
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +538 -538
- package/build/internal/es/index.typings.mjs +154 -154
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +481 -481
- package/build/internal/es/meta.mjs +134 -134
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetCampaignRequest as GetCampaignRequest$1, GetCampaignResponse as GetCampaignResponse$1, ListCampaignsRequest as ListCampaignsRequest$1, ListCampaignsResponse as ListCampaignsResponse$1, PublishCampaignRequest as PublishCampaignRequest$1, PublishCampaignResponse as PublishCampaignResponse$1, SendTestRequest as SendTestRequest$1, SendTestResponse as SendTestResponse$1, PauseSchedulingRequest as PauseSchedulingRequest$1, PauseSchedulingResponse as PauseSchedulingResponse$1, RescheduleRequest as RescheduleRequest$1, RescheduleResponse as RescheduleResponse$1, DeleteCampaignRequest as DeleteCampaignRequest$1, DeleteCampaignResponse as DeleteCampaignResponse$1, ReuseCampaignRequest as ReuseCampaignRequest$1, ReuseCampaignResponse as ReuseCampaignResponse$1, GetAudienceRequest as GetAudienceRequest$1, GetAudienceResponse as GetAudienceResponse$1, IdentifySenderAddressRequest as IdentifySenderAddressRequest$1, IdentifySenderAddressResponse as IdentifySenderAddressResponse$1, ValidateLinkRequest as ValidateLinkRequest$1, ValidateLinkResponse as ValidateLinkResponse$1, ValidateHtmlLinksRequest as ValidateHtmlLinksRequest$1, ValidateHtmlLinksResponse as ValidateHtmlLinksResponse$1, ListStatisticsRequest as ListStatisticsRequest$1, ListStatisticsResponse as ListStatisticsResponse$1, ListRecipientsRequest as ListRecipientsRequest$1, ListRecipientsResponse as ListRecipientsResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Campaign {
|
|
@@ -214,361 +214,23 @@ declare enum CampaignTypeEnum {
|
|
|
214
214
|
}
|
|
215
215
|
/** @enumType */
|
|
216
216
|
type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
217
|
-
interface
|
|
218
|
-
/**
|
|
219
|
-
* rule ID in automations
|
|
220
|
-
* @format GUID
|
|
221
|
-
*/
|
|
222
|
-
automationRuleId?: string;
|
|
223
|
-
/**
|
|
224
|
-
* template ID configured for the automation
|
|
225
|
-
* @format GUID
|
|
226
|
-
*/
|
|
227
|
-
templateId?: string;
|
|
228
|
-
}
|
|
229
|
-
interface GetCampaignMappingResponse {
|
|
230
|
-
/** @format GUID */
|
|
231
|
-
campaignId?: string;
|
|
232
|
-
}
|
|
233
|
-
interface UpsertTranslationRequest {
|
|
234
|
-
/**
|
|
235
|
-
* Campaign ID.
|
|
236
|
-
* @format GUID
|
|
237
|
-
*/
|
|
238
|
-
campaignId?: string;
|
|
239
|
-
/** Composer data. */
|
|
240
|
-
composer?: Composer;
|
|
241
|
-
/**
|
|
242
|
-
* Translation language (optional, default value "EN").
|
|
243
|
-
* @format LANGUAGE
|
|
244
|
-
*/
|
|
245
|
-
language?: string | null;
|
|
246
|
-
/**
|
|
247
|
-
* For BI event [36:1031] only (optional, default value "n/a").
|
|
248
|
-
* @format GUID
|
|
249
|
-
*/
|
|
250
|
-
automationRuleId?: string | null;
|
|
251
|
-
/** Should campaign also be published or not (default value "false"). */
|
|
252
|
-
publish?: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Campaign subject (optional).
|
|
255
|
-
* @maxLength 1000
|
|
256
|
-
*/
|
|
257
|
-
emailSubject?: string | null;
|
|
258
|
-
/**
|
|
259
|
-
* Campaign preheader (optional).
|
|
260
|
-
* @maxLength 1000
|
|
261
|
-
*/
|
|
262
|
-
emailPreheader?: string | null;
|
|
263
|
-
}
|
|
264
|
-
interface Composer {
|
|
265
|
-
/**
|
|
266
|
-
* Internal data structure for editor/viewer to render the campaign.
|
|
267
|
-
* @maxLength 10000000
|
|
268
|
-
*/
|
|
269
|
-
composerDataJson?: string;
|
|
270
|
-
/** Default values of existing placeholders. */
|
|
271
|
-
defaultValues?: DefaultValues;
|
|
272
|
-
}
|
|
273
|
-
interface DefaultValues {
|
|
274
|
-
/** @maxSize 500 */
|
|
275
|
-
map?: Record<string, string>;
|
|
276
|
-
}
|
|
277
|
-
interface UpsertTranslationResponse {
|
|
278
|
-
}
|
|
279
|
-
interface GetUsedPlaceholderKeysRequest {
|
|
217
|
+
interface GetPlaceholderKeysRequest {
|
|
280
218
|
/**
|
|
281
219
|
* Campaign ID.
|
|
282
220
|
* @format GUID
|
|
283
221
|
*/
|
|
284
222
|
campaignId?: string;
|
|
285
223
|
}
|
|
286
|
-
interface
|
|
287
|
-
/**
|
|
288
|
-
* Keys of placeholders used in the automation.
|
|
289
|
-
* @maxLength 200
|
|
290
|
-
* @maxSize 300
|
|
291
|
-
*/
|
|
224
|
+
interface GetPlaceholderKeysResponse {
|
|
225
|
+
/** Keys of placeholders used in the campaign. */
|
|
292
226
|
placeholderKeys?: string[];
|
|
293
227
|
}
|
|
294
|
-
interface
|
|
295
|
-
/**
|
|
296
|
-
* rule ID in automations
|
|
297
|
-
* @format GUID
|
|
298
|
-
*/
|
|
299
|
-
automationRuleId?: string;
|
|
300
|
-
/**
|
|
301
|
-
* template ID configured for the automation
|
|
302
|
-
* @format GUID
|
|
303
|
-
*/
|
|
304
|
-
templateId?: string;
|
|
305
|
-
}
|
|
306
|
-
interface LookupCampaignMappingResponse {
|
|
307
|
-
/** @format GUID */
|
|
308
|
-
campaignId?: string | null;
|
|
309
|
-
}
|
|
310
|
-
interface UpsertAutomationTranslatorContentRequest {
|
|
311
|
-
/**
|
|
312
|
-
* Campaign ID that the content belongs to
|
|
313
|
-
* @format GUID
|
|
314
|
-
*/
|
|
315
|
-
campaignId?: string;
|
|
316
|
-
/** Automation translator content */
|
|
317
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
318
|
-
}
|
|
319
|
-
/** Automation Translator Content */
|
|
320
|
-
interface AutomationTranslatorContent {
|
|
321
|
-
/**
|
|
322
|
-
* AutomationTranslatorContent ID
|
|
323
|
-
* @minLength 1
|
|
324
|
-
* @maxLength 256
|
|
325
|
-
* @immutable
|
|
326
|
-
*/
|
|
327
|
-
id?: string;
|
|
328
|
-
/**
|
|
329
|
-
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
330
|
-
* @minLength 1
|
|
331
|
-
* @maxLength 800000
|
|
332
|
-
*/
|
|
333
|
-
json?: string;
|
|
334
|
-
}
|
|
335
|
-
interface UpsertAutomationTranslatorContentResponse {
|
|
336
|
-
}
|
|
337
|
-
interface GetAutomationTranslatorContentRequest {
|
|
338
|
-
/**
|
|
339
|
-
* Campaign ID
|
|
340
|
-
* @format GUID
|
|
341
|
-
*/
|
|
342
|
-
campaignId?: string;
|
|
343
|
-
}
|
|
344
|
-
interface GetAutomationTranslatorContentResponse {
|
|
345
|
-
/** Automation translator content */
|
|
346
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
347
|
-
}
|
|
348
|
-
interface SendTestBulkRequest {
|
|
349
|
-
/**
|
|
350
|
-
* Campaign ID
|
|
351
|
-
* @format GUID
|
|
352
|
-
*/
|
|
353
|
-
campaignId?: string;
|
|
354
|
-
/**
|
|
355
|
-
* Recipient email address
|
|
356
|
-
* @format EMAIL
|
|
357
|
-
*/
|
|
358
|
-
toEmailAddress?: string;
|
|
359
|
-
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
360
|
-
placeholders?: Record<string, PlaceholderContent>;
|
|
361
|
-
/**
|
|
362
|
-
* Sender from name
|
|
363
|
-
* @maxLength 100
|
|
364
|
-
*/
|
|
365
|
-
fromName?: string | null;
|
|
366
|
-
/**
|
|
367
|
-
* Reply-to email address
|
|
368
|
-
* @format EMAIL
|
|
369
|
-
*/
|
|
370
|
-
replyToEmailAddress?: string | null;
|
|
371
|
-
/**
|
|
372
|
-
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
373
|
-
* @format LANGUAGE
|
|
374
|
-
*/
|
|
375
|
-
language?: string | null;
|
|
376
|
-
}
|
|
377
|
-
interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
378
|
-
text?: PlainText;
|
|
379
|
-
html?: Html;
|
|
380
|
-
money?: Money;
|
|
381
|
-
dateTime?: DateTime;
|
|
382
|
-
map?: Map;
|
|
383
|
-
array?: _Array;
|
|
384
|
-
enum?: PlaceholderContentEnum;
|
|
385
|
-
attachment?: Attachment;
|
|
386
|
-
integer?: Integer;
|
|
387
|
-
decimal?: Decimal;
|
|
388
|
-
}
|
|
389
|
-
/** @oneof */
|
|
390
|
-
interface PlaceholderContentValueOneOf {
|
|
391
|
-
text?: PlainText;
|
|
392
|
-
html?: Html;
|
|
393
|
-
money?: Money;
|
|
394
|
-
dateTime?: DateTime;
|
|
395
|
-
map?: Map;
|
|
396
|
-
array?: _Array;
|
|
397
|
-
enum?: PlaceholderContentEnum;
|
|
398
|
-
attachment?: Attachment;
|
|
399
|
-
integer?: Integer;
|
|
400
|
-
decimal?: Decimal;
|
|
401
|
-
}
|
|
402
|
-
interface PlainText {
|
|
403
|
-
text?: string;
|
|
404
|
-
}
|
|
405
|
-
interface Html {
|
|
406
|
-
html?: string;
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* Money.
|
|
410
|
-
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
411
|
-
*/
|
|
412
|
-
interface Money {
|
|
413
|
-
/**
|
|
414
|
-
* 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.
|
|
415
|
-
* @format DECIMAL_VALUE
|
|
416
|
-
*/
|
|
417
|
-
value?: string;
|
|
418
|
-
/**
|
|
419
|
-
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
420
|
-
* @format CURRENCY
|
|
421
|
-
*/
|
|
422
|
-
currency?: string;
|
|
423
|
-
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
424
|
-
formattedValue?: string | null;
|
|
425
|
-
}
|
|
426
|
-
interface DateTime {
|
|
427
|
-
timestamp?: Date | null;
|
|
428
|
-
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
429
|
-
timeZone?: string | null;
|
|
430
|
-
}
|
|
431
|
-
interface Map {
|
|
432
|
-
variables?: Record<string, PlaceholderContent>;
|
|
433
|
-
}
|
|
434
|
-
interface _Array {
|
|
435
|
-
items?: PlaceholderContent[];
|
|
436
|
-
}
|
|
437
|
-
interface PlaceholderContentEnum {
|
|
438
|
-
value?: string;
|
|
439
|
-
translation?: string;
|
|
440
|
-
}
|
|
441
|
-
interface Attachment {
|
|
442
|
-
fileName?: string;
|
|
443
|
-
downloadUrl?: string;
|
|
444
|
-
}
|
|
445
|
-
interface Integer {
|
|
446
|
-
/** min value: -2147483648, max value: 2147483647 */
|
|
447
|
-
value?: number;
|
|
448
|
-
}
|
|
449
|
-
interface Decimal {
|
|
450
|
-
/**
|
|
451
|
-
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
452
|
-
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
453
|
-
* @format DECIMAL_VALUE
|
|
454
|
-
*/
|
|
455
|
-
value?: string;
|
|
456
|
-
}
|
|
457
|
-
interface SendTestBulkResponse {
|
|
458
|
-
}
|
|
459
|
-
interface ListStatisticsRequest {
|
|
460
|
-
/**
|
|
461
|
-
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
462
|
-
* @format GUID
|
|
463
|
-
* @minSize 1
|
|
464
|
-
* @maxSize 100
|
|
465
|
-
*/
|
|
466
|
-
campaignIds: string[];
|
|
467
|
-
}
|
|
468
|
-
interface ListStatisticsResponse {
|
|
469
|
-
/** List of statistics. */
|
|
470
|
-
statistics?: CampaignStatisticsContainer[];
|
|
471
|
-
}
|
|
472
|
-
interface CampaignStatisticsContainer {
|
|
473
|
-
/**
|
|
474
|
-
* Campaign ID.
|
|
475
|
-
* @format GUID
|
|
476
|
-
*/
|
|
477
|
-
campaignId?: string;
|
|
478
|
-
/** Landing page statistics. */
|
|
479
|
-
landingPage?: LandingPageStatistics;
|
|
480
|
-
/** Email campaign statistics. */
|
|
481
|
-
email?: DistributionStatistics;
|
|
482
|
-
}
|
|
483
|
-
interface ListRecipientsRequest {
|
|
484
|
-
/**
|
|
485
|
-
* Campaign ID.
|
|
486
|
-
* @format GUID
|
|
487
|
-
*/
|
|
488
|
-
campaignId: string;
|
|
489
|
-
/** Email activity to filter. */
|
|
490
|
-
activity: RecipientsActivityEnumWithLiterals;
|
|
491
|
-
/** Pagination options. */
|
|
492
|
-
paging?: CursorPaging;
|
|
493
|
-
}
|
|
494
|
-
declare enum RecipientsActivityEnum {
|
|
495
|
-
UNKNOWN = "UNKNOWN",
|
|
496
|
-
DELIVERED = "DELIVERED",
|
|
497
|
-
OPENED = "OPENED",
|
|
498
|
-
CLICKED = "CLICKED",
|
|
499
|
-
BOUNCED = "BOUNCED",
|
|
500
|
-
NOT_SENT = "NOT_SENT",
|
|
501
|
-
SENT = "SENT",
|
|
502
|
-
NOT_OPENED = "NOT_OPENED"
|
|
503
|
-
}
|
|
504
|
-
/** @enumType */
|
|
505
|
-
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
506
|
-
interface CursorPaging {
|
|
507
|
-
/**
|
|
508
|
-
* Number of items to load.
|
|
509
|
-
* @max 1000
|
|
510
|
-
*/
|
|
511
|
-
limit?: number | null;
|
|
512
|
-
/**
|
|
513
|
-
* Pointer to the next or previous page in the list of results.
|
|
514
|
-
*
|
|
515
|
-
* You can get the relevant cursor token
|
|
516
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
517
|
-
* Not relevant for the first request.
|
|
518
|
-
* @maxLength 1000
|
|
519
|
-
*/
|
|
520
|
-
cursor?: string | null;
|
|
521
|
-
}
|
|
522
|
-
interface ListRecipientsResponse {
|
|
523
|
-
/** List of recipients. */
|
|
524
|
-
recipients?: CampaignRecipientDetails[];
|
|
525
|
-
/** Details on the paged set of returned results. */
|
|
526
|
-
pagingMetadata?: PagingMetadataV2;
|
|
527
|
-
}
|
|
528
|
-
interface CampaignRecipientDetails {
|
|
529
|
-
/**
|
|
530
|
-
* Contact ID.
|
|
531
|
-
* @format GUID
|
|
532
|
-
*/
|
|
533
|
-
contactId?: string;
|
|
534
|
-
/** Date and time of the last activity. */
|
|
535
|
-
lastActivityDate?: Date | null;
|
|
536
|
-
/**
|
|
537
|
-
* Primary email address of the contact.
|
|
538
|
-
* @format EMAIL
|
|
539
|
-
*/
|
|
540
|
-
emailAddress?: string;
|
|
541
|
-
/**
|
|
542
|
-
* Full name of the contact (optional).
|
|
543
|
-
* @maxLength 100
|
|
544
|
-
*/
|
|
545
|
-
fullName?: string | null;
|
|
546
|
-
/** Is this contact currently deleted from the site or not. */
|
|
547
|
-
contactDeleted?: boolean;
|
|
548
|
-
}
|
|
549
|
-
interface PagingMetadataV2 {
|
|
550
|
-
/** Number of items returned in the response. */
|
|
551
|
-
count?: number | null;
|
|
552
|
-
/** Offset that was requested. */
|
|
553
|
-
offset?: number | null;
|
|
554
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
555
|
-
total?: number | null;
|
|
556
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
557
|
-
tooManyToCount?: boolean | null;
|
|
558
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
559
|
-
cursors?: Cursors;
|
|
228
|
+
interface GetDefaultComponentsRequest {
|
|
560
229
|
}
|
|
561
|
-
interface
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
*/
|
|
566
|
-
next?: string | null;
|
|
567
|
-
/**
|
|
568
|
-
* Cursor pointing to the previous page in the list of results.
|
|
569
|
-
* @maxLength 16000
|
|
570
|
-
*/
|
|
571
|
-
prev?: string | null;
|
|
230
|
+
interface GetDefaultComponentsResponse {
|
|
231
|
+
footer?: Record<string, any> | null;
|
|
232
|
+
logo?: Record<string, any> | null;
|
|
233
|
+
follow?: Record<string, any> | null;
|
|
572
234
|
}
|
|
573
235
|
interface GetCampaignRequest {
|
|
574
236
|
/**
|
|
@@ -839,37 +501,117 @@ interface SoftBounce {
|
|
|
839
501
|
/** Reason the email soft bounced. */
|
|
840
502
|
reason?: string;
|
|
841
503
|
}
|
|
842
|
-
interface HardBounce {
|
|
843
|
-
/** Reason the email hard bounced. */
|
|
844
|
-
reason?: string;
|
|
504
|
+
interface HardBounce {
|
|
505
|
+
/** Reason the email hard bounced. */
|
|
506
|
+
reason?: string;
|
|
507
|
+
}
|
|
508
|
+
interface Scheduled {
|
|
509
|
+
/**
|
|
510
|
+
* ID of the campaign that was scheduled.
|
|
511
|
+
* @format GUID
|
|
512
|
+
*/
|
|
513
|
+
campaignId?: string;
|
|
514
|
+
/** The timestamp campaign is scheduled for. */
|
|
515
|
+
sendAt?: Date | null;
|
|
516
|
+
/** Shows if this is a rescheduling of previously scheduled campaign. */
|
|
517
|
+
rescheduled?: boolean;
|
|
518
|
+
}
|
|
519
|
+
interface SendTestRequest {
|
|
520
|
+
/**
|
|
521
|
+
* Campaign ID.
|
|
522
|
+
* @format GUID
|
|
523
|
+
*/
|
|
524
|
+
campaignId: string;
|
|
525
|
+
/**
|
|
526
|
+
* Email subject.
|
|
527
|
+
* @maxLength 1000
|
|
528
|
+
*/
|
|
529
|
+
emailSubject?: string | null;
|
|
530
|
+
/**
|
|
531
|
+
* Recipient email address.
|
|
532
|
+
* @format EMAIL
|
|
533
|
+
*/
|
|
534
|
+
toEmailAddress: string;
|
|
535
|
+
}
|
|
536
|
+
interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
537
|
+
text?: PlainText;
|
|
538
|
+
html?: Html;
|
|
539
|
+
money?: Money;
|
|
540
|
+
dateTime?: DateTime;
|
|
541
|
+
map?: Map;
|
|
542
|
+
array?: _Array;
|
|
543
|
+
enum?: PlaceholderContentEnum;
|
|
544
|
+
attachment?: Attachment;
|
|
545
|
+
integer?: Integer;
|
|
546
|
+
decimal?: Decimal;
|
|
547
|
+
}
|
|
548
|
+
/** @oneof */
|
|
549
|
+
interface PlaceholderContentValueOneOf {
|
|
550
|
+
text?: PlainText;
|
|
551
|
+
html?: Html;
|
|
552
|
+
money?: Money;
|
|
553
|
+
dateTime?: DateTime;
|
|
554
|
+
map?: Map;
|
|
555
|
+
array?: _Array;
|
|
556
|
+
enum?: PlaceholderContentEnum;
|
|
557
|
+
attachment?: Attachment;
|
|
558
|
+
integer?: Integer;
|
|
559
|
+
decimal?: Decimal;
|
|
560
|
+
}
|
|
561
|
+
interface PlainText {
|
|
562
|
+
text?: string;
|
|
563
|
+
}
|
|
564
|
+
interface Html {
|
|
565
|
+
html?: string;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Money.
|
|
569
|
+
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
570
|
+
*/
|
|
571
|
+
interface Money {
|
|
572
|
+
/**
|
|
573
|
+
* 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.
|
|
574
|
+
* @format DECIMAL_VALUE
|
|
575
|
+
*/
|
|
576
|
+
value?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
579
|
+
* @format CURRENCY
|
|
580
|
+
*/
|
|
581
|
+
currency?: string;
|
|
582
|
+
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
583
|
+
formattedValue?: string | null;
|
|
584
|
+
}
|
|
585
|
+
interface DateTime {
|
|
586
|
+
timestamp?: Date | null;
|
|
587
|
+
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
588
|
+
timeZone?: string | null;
|
|
589
|
+
}
|
|
590
|
+
interface Map {
|
|
591
|
+
variables?: Record<string, PlaceholderContent>;
|
|
592
|
+
}
|
|
593
|
+
interface _Array {
|
|
594
|
+
items?: PlaceholderContent[];
|
|
595
|
+
}
|
|
596
|
+
interface PlaceholderContentEnum {
|
|
597
|
+
value?: string;
|
|
598
|
+
translation?: string;
|
|
599
|
+
}
|
|
600
|
+
interface Attachment {
|
|
601
|
+
fileName?: string;
|
|
602
|
+
downloadUrl?: string;
|
|
845
603
|
}
|
|
846
|
-
interface
|
|
847
|
-
/**
|
|
848
|
-
|
|
849
|
-
* @format GUID
|
|
850
|
-
*/
|
|
851
|
-
campaignId?: string;
|
|
852
|
-
/** The timestamp campaign is scheduled for. */
|
|
853
|
-
sendAt?: Date | null;
|
|
854
|
-
/** Shows if this is a rescheduling of previously scheduled campaign. */
|
|
855
|
-
rescheduled?: boolean;
|
|
604
|
+
interface Integer {
|
|
605
|
+
/** min value: -2147483648, max value: 2147483647 */
|
|
606
|
+
value?: number;
|
|
856
607
|
}
|
|
857
|
-
interface
|
|
858
|
-
/**
|
|
859
|
-
* Campaign ID.
|
|
860
|
-
* @format GUID
|
|
861
|
-
*/
|
|
862
|
-
campaignId: string;
|
|
863
|
-
/**
|
|
864
|
-
* Email subject.
|
|
865
|
-
* @maxLength 1000
|
|
866
|
-
*/
|
|
867
|
-
emailSubject?: string | null;
|
|
608
|
+
interface Decimal {
|
|
868
609
|
/**
|
|
869
|
-
*
|
|
870
|
-
*
|
|
610
|
+
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
611
|
+
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
612
|
+
* @format DECIMAL_VALUE
|
|
871
613
|
*/
|
|
872
|
-
|
|
614
|
+
value?: string;
|
|
873
615
|
}
|
|
874
616
|
interface SendTestResponse {
|
|
875
617
|
}
|
|
@@ -1014,6 +756,19 @@ interface GetComposerResponse {
|
|
|
1014
756
|
*/
|
|
1015
757
|
emailPreheader?: string | null;
|
|
1016
758
|
}
|
|
759
|
+
interface Composer {
|
|
760
|
+
/**
|
|
761
|
+
* Internal data structure for editor/viewer to render the campaign.
|
|
762
|
+
* @maxLength 10000000
|
|
763
|
+
*/
|
|
764
|
+
composerDataJson?: string;
|
|
765
|
+
/** Default values of existing placeholders. */
|
|
766
|
+
defaultValues?: DefaultValues;
|
|
767
|
+
}
|
|
768
|
+
interface DefaultValues {
|
|
769
|
+
/** @maxSize 500 */
|
|
770
|
+
map?: Record<string, string>;
|
|
771
|
+
}
|
|
1017
772
|
interface UpdateComposerRequest {
|
|
1018
773
|
/**
|
|
1019
774
|
* Campaign ID.
|
|
@@ -1271,23 +1026,150 @@ declare enum WebhookIdentityType {
|
|
|
1271
1026
|
}
|
|
1272
1027
|
/** @enumType */
|
|
1273
1028
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1274
|
-
interface
|
|
1029
|
+
interface EstimateFilterSizeRequest {
|
|
1030
|
+
/** Contacts filter expression. */
|
|
1031
|
+
filter?: Record<string, any> | null;
|
|
1032
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1033
|
+
activeContactsOnly?: boolean;
|
|
1275
1034
|
/**
|
|
1276
|
-
*
|
|
1035
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1036
|
+
* @minLength 1
|
|
1037
|
+
* @maxLength 100
|
|
1038
|
+
*/
|
|
1039
|
+
search?: string | null;
|
|
1040
|
+
}
|
|
1041
|
+
interface EstimateFilterSizeResponse {
|
|
1042
|
+
/** Mailing list size estimation. */
|
|
1043
|
+
estimation?: number;
|
|
1044
|
+
}
|
|
1045
|
+
interface EstimateAudienceSizeRequest {
|
|
1046
|
+
/**
|
|
1047
|
+
* Contact IDs of a campaign audience.
|
|
1277
1048
|
* @format GUID
|
|
1278
1049
|
*/
|
|
1279
|
-
|
|
1050
|
+
contactIds?: string[];
|
|
1051
|
+
/** Label IDs of a campaign audience. */
|
|
1052
|
+
labelIds?: string[];
|
|
1053
|
+
/** Contacts filter expression (json). */
|
|
1054
|
+
contactsFilter?: Record<string, any> | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1057
|
+
* @minLength 1
|
|
1058
|
+
* @maxLength 100
|
|
1059
|
+
*/
|
|
1060
|
+
search?: string | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Segment ids of a campaign audience.
|
|
1063
|
+
* @format GUID
|
|
1064
|
+
*/
|
|
1065
|
+
segmentIds?: string[];
|
|
1066
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1067
|
+
activeContactsOnly?: boolean;
|
|
1068
|
+
/**
|
|
1069
|
+
* Id of a campaign that is to be resent.
|
|
1070
|
+
* @format GUID
|
|
1071
|
+
*/
|
|
1072
|
+
resendCampaignId?: string | null;
|
|
1073
|
+
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1074
|
+
withTotal?: boolean;
|
|
1280
1075
|
}
|
|
1281
|
-
interface
|
|
1282
|
-
/**
|
|
1283
|
-
|
|
1076
|
+
interface EstimateAudienceSizeResponse {
|
|
1077
|
+
/** Audience size (estimated number of emails to be sent). */
|
|
1078
|
+
estimation?: number;
|
|
1079
|
+
/** Total number of contacts in provided audience (optional). */
|
|
1080
|
+
total?: number | null;
|
|
1284
1081
|
}
|
|
1285
|
-
interface
|
|
1082
|
+
interface ReconcileContactRequest {
|
|
1083
|
+
/**
|
|
1084
|
+
* Email address of the contact.
|
|
1085
|
+
* @format EMAIL
|
|
1086
|
+
*/
|
|
1087
|
+
emailAddress?: string;
|
|
1286
1088
|
}
|
|
1287
|
-
interface
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1089
|
+
interface ReconcileContactResponse {
|
|
1090
|
+
/** Created or retrieved contact. */
|
|
1091
|
+
contact?: Contact;
|
|
1092
|
+
}
|
|
1093
|
+
interface Contact {
|
|
1094
|
+
/**
|
|
1095
|
+
* Unique ID of the contact entity.
|
|
1096
|
+
* @format GUID
|
|
1097
|
+
*/
|
|
1098
|
+
id?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Primary email address of the contact.
|
|
1101
|
+
* @format EMAIL
|
|
1102
|
+
*/
|
|
1103
|
+
emailAddress?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Full name of the contact (optional).
|
|
1106
|
+
* @maxLength 100
|
|
1107
|
+
*/
|
|
1108
|
+
fullName?: string | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Profile picture of the contact (optional).
|
|
1111
|
+
* @format WEB_URL
|
|
1112
|
+
* @maxLength 2048
|
|
1113
|
+
*/
|
|
1114
|
+
pictureUrl?: string | null;
|
|
1115
|
+
}
|
|
1116
|
+
interface SearchContactsRequest {
|
|
1117
|
+
/**
|
|
1118
|
+
* Text to search contacts by - can search by name or email address.
|
|
1119
|
+
* @maxLength 100
|
|
1120
|
+
*/
|
|
1121
|
+
searchTerm?: string;
|
|
1122
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1123
|
+
activeContactsOnly?: boolean;
|
|
1124
|
+
/**
|
|
1125
|
+
* Page size (default 50, max 1000).
|
|
1126
|
+
* @max 1000
|
|
1127
|
+
*/
|
|
1128
|
+
pageSize?: number | null;
|
|
1129
|
+
}
|
|
1130
|
+
interface SearchContactsResponse {
|
|
1131
|
+
/** Search results. */
|
|
1132
|
+
contacts?: Contact[];
|
|
1133
|
+
}
|
|
1134
|
+
interface GetLabelsRequest {
|
|
1135
|
+
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1136
|
+
activeContactsOnly?: boolean;
|
|
1137
|
+
}
|
|
1138
|
+
interface GetLabelsResponse {
|
|
1139
|
+
/** Returned labels with contact counts. */
|
|
1140
|
+
labels?: Label[];
|
|
1141
|
+
}
|
|
1142
|
+
interface Label {
|
|
1143
|
+
/**
|
|
1144
|
+
* Unique ID of the label entity.
|
|
1145
|
+
* @maxLength 100
|
|
1146
|
+
*/
|
|
1147
|
+
id?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Name of the label.
|
|
1150
|
+
* @maxLength 100
|
|
1151
|
+
*/
|
|
1152
|
+
name?: string;
|
|
1153
|
+
/** Amount of contacts assigned to the label. */
|
|
1154
|
+
contactsCount?: number;
|
|
1155
|
+
}
|
|
1156
|
+
interface SubscribeFromLandingPageRequest {
|
|
1157
|
+
/**
|
|
1158
|
+
* Campaign ID that the subscription is happening from.
|
|
1159
|
+
* @format GUID
|
|
1160
|
+
*/
|
|
1161
|
+
campaignId?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Email address that is entered into subscription field.
|
|
1164
|
+
* @format EMAIL
|
|
1165
|
+
*/
|
|
1166
|
+
emailAddress?: string;
|
|
1167
|
+
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1168
|
+
consent?: boolean;
|
|
1169
|
+
}
|
|
1170
|
+
interface SubscribeFromLandingPageResponse {
|
|
1171
|
+
/** @format GUID */
|
|
1172
|
+
contactId?: string;
|
|
1291
1173
|
}
|
|
1292
1174
|
interface ValidateLinkRequest {
|
|
1293
1175
|
/**
|
|
@@ -1311,150 +1193,268 @@ interface ValidateHtmlLinksResponse {
|
|
|
1311
1193
|
/** Non-valid links. */
|
|
1312
1194
|
blacklistedLinks?: string[];
|
|
1313
1195
|
}
|
|
1314
|
-
interface
|
|
1315
|
-
/**
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1196
|
+
interface GetCampaignMappingRequest {
|
|
1197
|
+
/**
|
|
1198
|
+
* rule ID in automations
|
|
1199
|
+
* @format GUID
|
|
1200
|
+
*/
|
|
1201
|
+
automationRuleId?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* template ID configured for the automation
|
|
1204
|
+
* @format GUID
|
|
1205
|
+
*/
|
|
1206
|
+
templateId?: string;
|
|
1207
|
+
}
|
|
1208
|
+
interface GetCampaignMappingResponse {
|
|
1209
|
+
/** @format GUID */
|
|
1210
|
+
campaignId?: string;
|
|
1211
|
+
}
|
|
1212
|
+
interface UpsertTranslationRequest {
|
|
1213
|
+
/**
|
|
1214
|
+
* Campaign ID.
|
|
1215
|
+
* @format GUID
|
|
1216
|
+
*/
|
|
1217
|
+
campaignId?: string;
|
|
1218
|
+
/** Composer data. */
|
|
1219
|
+
composer?: Composer;
|
|
1220
|
+
/**
|
|
1221
|
+
* Translation language (optional, default value "EN").
|
|
1222
|
+
* @format LANGUAGE
|
|
1223
|
+
*/
|
|
1224
|
+
language?: string | null;
|
|
1225
|
+
/**
|
|
1226
|
+
* For BI event [36:1031] only (optional, default value "n/a").
|
|
1227
|
+
* @format GUID
|
|
1228
|
+
*/
|
|
1229
|
+
automationRuleId?: string | null;
|
|
1230
|
+
/** Should campaign also be published or not (default value "false"). */
|
|
1231
|
+
publish?: boolean;
|
|
1232
|
+
/**
|
|
1233
|
+
* Campaign subject (optional).
|
|
1234
|
+
* @maxLength 1000
|
|
1235
|
+
*/
|
|
1236
|
+
emailSubject?: string | null;
|
|
1237
|
+
/**
|
|
1238
|
+
* Campaign preheader (optional).
|
|
1239
|
+
* @maxLength 1000
|
|
1240
|
+
*/
|
|
1241
|
+
emailPreheader?: string | null;
|
|
1242
|
+
}
|
|
1243
|
+
interface UpsertTranslationResponse {
|
|
1244
|
+
}
|
|
1245
|
+
interface GetUsedPlaceholderKeysRequest {
|
|
1319
1246
|
/**
|
|
1320
|
-
*
|
|
1321
|
-
* @
|
|
1322
|
-
* @maxLength 100
|
|
1247
|
+
* Campaign ID.
|
|
1248
|
+
* @format GUID
|
|
1323
1249
|
*/
|
|
1324
|
-
|
|
1250
|
+
campaignId?: string;
|
|
1325
1251
|
}
|
|
1326
|
-
interface
|
|
1327
|
-
/**
|
|
1328
|
-
|
|
1252
|
+
interface GetUsedPlaceholderKeysResponse {
|
|
1253
|
+
/**
|
|
1254
|
+
* Keys of placeholders used in the automation.
|
|
1255
|
+
* @maxLength 200
|
|
1256
|
+
* @maxSize 300
|
|
1257
|
+
*/
|
|
1258
|
+
placeholderKeys?: string[];
|
|
1329
1259
|
}
|
|
1330
|
-
interface
|
|
1260
|
+
interface LookupCampaignMappingRequest {
|
|
1331
1261
|
/**
|
|
1332
|
-
*
|
|
1262
|
+
* rule ID in automations
|
|
1333
1263
|
* @format GUID
|
|
1334
1264
|
*/
|
|
1335
|
-
|
|
1336
|
-
/** Label IDs of a campaign audience. */
|
|
1337
|
-
labelIds?: string[];
|
|
1338
|
-
/** Contacts filter expression (json). */
|
|
1339
|
-
contactsFilter?: Record<string, any> | null;
|
|
1265
|
+
automationRuleId?: string;
|
|
1340
1266
|
/**
|
|
1341
|
-
*
|
|
1342
|
-
* @
|
|
1343
|
-
* @maxLength 100
|
|
1267
|
+
* template ID configured for the automation
|
|
1268
|
+
* @format GUID
|
|
1344
1269
|
*/
|
|
1345
|
-
|
|
1270
|
+
templateId?: string;
|
|
1271
|
+
}
|
|
1272
|
+
interface LookupCampaignMappingResponse {
|
|
1273
|
+
/** @format GUID */
|
|
1274
|
+
campaignId?: string | null;
|
|
1275
|
+
}
|
|
1276
|
+
interface UpsertAutomationTranslatorContentRequest {
|
|
1346
1277
|
/**
|
|
1347
|
-
*
|
|
1278
|
+
* Campaign ID that the content belongs to
|
|
1348
1279
|
* @format GUID
|
|
1349
1280
|
*/
|
|
1350
|
-
|
|
1351
|
-
/**
|
|
1352
|
-
|
|
1281
|
+
campaignId?: string;
|
|
1282
|
+
/** Automation translator content */
|
|
1283
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
1284
|
+
}
|
|
1285
|
+
/** Automation Translator Content */
|
|
1286
|
+
interface AutomationTranslatorContent {
|
|
1353
1287
|
/**
|
|
1354
|
-
*
|
|
1355
|
-
* @
|
|
1288
|
+
* AutomationTranslatorContent ID
|
|
1289
|
+
* @minLength 1
|
|
1290
|
+
* @maxLength 256
|
|
1291
|
+
* @immutable
|
|
1356
1292
|
*/
|
|
1357
|
-
|
|
1358
|
-
/**
|
|
1359
|
-
|
|
1293
|
+
id?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
1296
|
+
* @minLength 1
|
|
1297
|
+
* @maxLength 800000
|
|
1298
|
+
*/
|
|
1299
|
+
json?: string;
|
|
1360
1300
|
}
|
|
1361
|
-
interface
|
|
1362
|
-
/** Audience size (estimated number of emails to be sent). */
|
|
1363
|
-
estimation?: number;
|
|
1364
|
-
/** Total number of contacts in provided audience (optional). */
|
|
1365
|
-
total?: number | null;
|
|
1301
|
+
interface UpsertAutomationTranslatorContentResponse {
|
|
1366
1302
|
}
|
|
1367
|
-
interface
|
|
1303
|
+
interface GetAutomationTranslatorContentRequest {
|
|
1368
1304
|
/**
|
|
1369
|
-
*
|
|
1370
|
-
* @format
|
|
1305
|
+
* Campaign ID
|
|
1306
|
+
* @format GUID
|
|
1371
1307
|
*/
|
|
1372
|
-
|
|
1308
|
+
campaignId?: string;
|
|
1373
1309
|
}
|
|
1374
|
-
interface
|
|
1375
|
-
/**
|
|
1376
|
-
|
|
1310
|
+
interface GetAutomationTranslatorContentResponse {
|
|
1311
|
+
/** Automation translator content */
|
|
1312
|
+
automationTranslatorContent?: AutomationTranslatorContent;
|
|
1377
1313
|
}
|
|
1378
|
-
interface
|
|
1314
|
+
interface SendTestBulkRequest {
|
|
1379
1315
|
/**
|
|
1380
|
-
*
|
|
1316
|
+
* Campaign ID
|
|
1381
1317
|
* @format GUID
|
|
1382
1318
|
*/
|
|
1383
|
-
|
|
1319
|
+
campaignId?: string;
|
|
1384
1320
|
/**
|
|
1385
|
-
*
|
|
1321
|
+
* Recipient email address
|
|
1386
1322
|
* @format EMAIL
|
|
1387
1323
|
*/
|
|
1388
|
-
|
|
1324
|
+
toEmailAddress?: string;
|
|
1325
|
+
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
1326
|
+
placeholders?: Record<string, PlaceholderContent>;
|
|
1389
1327
|
/**
|
|
1390
|
-
*
|
|
1328
|
+
* Sender from name
|
|
1391
1329
|
* @maxLength 100
|
|
1392
1330
|
*/
|
|
1393
|
-
|
|
1331
|
+
fromName?: string | null;
|
|
1394
1332
|
/**
|
|
1395
|
-
*
|
|
1396
|
-
* @format
|
|
1397
|
-
* @maxLength 2048
|
|
1333
|
+
* Reply-to email address
|
|
1334
|
+
* @format EMAIL
|
|
1398
1335
|
*/
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
interface SearchContactsRequest {
|
|
1336
|
+
replyToEmailAddress?: string | null;
|
|
1402
1337
|
/**
|
|
1403
|
-
*
|
|
1404
|
-
* @
|
|
1338
|
+
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
1339
|
+
* @format LANGUAGE
|
|
1405
1340
|
*/
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1341
|
+
language?: string | null;
|
|
1342
|
+
}
|
|
1343
|
+
interface SendTestBulkResponse {
|
|
1344
|
+
}
|
|
1345
|
+
interface ListStatisticsRequest {
|
|
1409
1346
|
/**
|
|
1410
|
-
*
|
|
1411
|
-
* @
|
|
1347
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1348
|
+
* @format GUID
|
|
1349
|
+
* @minSize 1
|
|
1350
|
+
* @maxSize 100
|
|
1412
1351
|
*/
|
|
1413
|
-
|
|
1352
|
+
campaignIds: string[];
|
|
1414
1353
|
}
|
|
1415
|
-
interface
|
|
1416
|
-
/**
|
|
1417
|
-
|
|
1354
|
+
interface ListStatisticsResponse {
|
|
1355
|
+
/** List of statistics. */
|
|
1356
|
+
statistics?: CampaignStatisticsContainer[];
|
|
1418
1357
|
}
|
|
1419
|
-
interface
|
|
1420
|
-
/**
|
|
1421
|
-
|
|
1358
|
+
interface CampaignStatisticsContainer {
|
|
1359
|
+
/**
|
|
1360
|
+
* Campaign ID.
|
|
1361
|
+
* @format GUID
|
|
1362
|
+
*/
|
|
1363
|
+
campaignId?: string;
|
|
1364
|
+
/** Landing page statistics. */
|
|
1365
|
+
landingPage?: LandingPageStatistics;
|
|
1366
|
+
/** Email campaign statistics. */
|
|
1367
|
+
email?: DistributionStatistics;
|
|
1422
1368
|
}
|
|
1423
|
-
interface
|
|
1424
|
-
/**
|
|
1425
|
-
|
|
1369
|
+
interface ListRecipientsRequest {
|
|
1370
|
+
/**
|
|
1371
|
+
* Campaign ID.
|
|
1372
|
+
* @format GUID
|
|
1373
|
+
*/
|
|
1374
|
+
campaignId: string;
|
|
1375
|
+
/** Email activity to filter. */
|
|
1376
|
+
activity: RecipientsActivityEnumWithLiterals;
|
|
1377
|
+
/** Pagination options. */
|
|
1378
|
+
paging?: CursorPaging;
|
|
1426
1379
|
}
|
|
1427
|
-
|
|
1380
|
+
declare enum RecipientsActivityEnum {
|
|
1381
|
+
UNKNOWN = "UNKNOWN",
|
|
1382
|
+
DELIVERED = "DELIVERED",
|
|
1383
|
+
OPENED = "OPENED",
|
|
1384
|
+
CLICKED = "CLICKED",
|
|
1385
|
+
BOUNCED = "BOUNCED",
|
|
1386
|
+
NOT_SENT = "NOT_SENT",
|
|
1387
|
+
SENT = "SENT",
|
|
1388
|
+
NOT_OPENED = "NOT_OPENED"
|
|
1389
|
+
}
|
|
1390
|
+
/** @enumType */
|
|
1391
|
+
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
1392
|
+
interface CursorPaging {
|
|
1428
1393
|
/**
|
|
1429
|
-
*
|
|
1430
|
-
* @
|
|
1394
|
+
* Number of items to load.
|
|
1395
|
+
* @max 1000
|
|
1431
1396
|
*/
|
|
1432
|
-
|
|
1397
|
+
limit?: number | null;
|
|
1433
1398
|
/**
|
|
1434
|
-
*
|
|
1435
|
-
*
|
|
1399
|
+
* Pointer to the next or previous page in the list of results.
|
|
1400
|
+
*
|
|
1401
|
+
* You can get the relevant cursor token
|
|
1402
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
1403
|
+
* Not relevant for the first request.
|
|
1404
|
+
* @maxLength 1000
|
|
1436
1405
|
*/
|
|
1437
|
-
|
|
1438
|
-
/** Amount of contacts assigned to the label. */
|
|
1439
|
-
contactsCount?: number;
|
|
1406
|
+
cursor?: string | null;
|
|
1440
1407
|
}
|
|
1441
|
-
interface
|
|
1408
|
+
interface ListRecipientsResponse {
|
|
1409
|
+
/** List of recipients. */
|
|
1410
|
+
recipients?: CampaignRecipientDetails[];
|
|
1411
|
+
/** Details on the paged set of returned results. */
|
|
1412
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1413
|
+
}
|
|
1414
|
+
interface CampaignRecipientDetails {
|
|
1442
1415
|
/**
|
|
1443
|
-
*
|
|
1416
|
+
* Contact ID.
|
|
1444
1417
|
* @format GUID
|
|
1445
1418
|
*/
|
|
1446
|
-
|
|
1419
|
+
contactId?: string;
|
|
1420
|
+
/** Date and time of the last activity. */
|
|
1421
|
+
lastActivityDate?: Date | null;
|
|
1447
1422
|
/**
|
|
1448
|
-
*
|
|
1423
|
+
* Primary email address of the contact.
|
|
1449
1424
|
* @format EMAIL
|
|
1450
1425
|
*/
|
|
1451
1426
|
emailAddress?: string;
|
|
1452
|
-
/**
|
|
1453
|
-
|
|
1427
|
+
/**
|
|
1428
|
+
* Full name of the contact (optional).
|
|
1429
|
+
* @maxLength 100
|
|
1430
|
+
*/
|
|
1431
|
+
fullName?: string | null;
|
|
1432
|
+
/** Is this contact currently deleted from the site or not. */
|
|
1433
|
+
contactDeleted?: boolean;
|
|
1454
1434
|
}
|
|
1455
|
-
interface
|
|
1456
|
-
/**
|
|
1457
|
-
|
|
1435
|
+
interface PagingMetadataV2 {
|
|
1436
|
+
/** Number of items returned in the response. */
|
|
1437
|
+
count?: number | null;
|
|
1438
|
+
/** Offset that was requested. */
|
|
1439
|
+
offset?: number | null;
|
|
1440
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1441
|
+
total?: number | null;
|
|
1442
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1443
|
+
tooManyToCount?: boolean | null;
|
|
1444
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1445
|
+
cursors?: Cursors;
|
|
1446
|
+
}
|
|
1447
|
+
interface Cursors {
|
|
1448
|
+
/**
|
|
1449
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1450
|
+
* @maxLength 16000
|
|
1451
|
+
*/
|
|
1452
|
+
next?: string | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1455
|
+
* @maxLength 16000
|
|
1456
|
+
*/
|
|
1457
|
+
prev?: string | null;
|
|
1458
1458
|
}
|
|
1459
1459
|
/** @docsIgnore */
|
|
1460
1460
|
type PublishApplicationErrors = {
|
|
@@ -1481,10 +1481,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1481
1481
|
__responseType: Q;
|
|
1482
1482
|
__originalResponseType: R;
|
|
1483
1483
|
};
|
|
1484
|
-
declare function listStatistics(): __PublicMethodMetaInfo<'GET', {}, ListStatisticsRequest$1, ListStatisticsRequest, ListStatisticsResponse$1, ListStatisticsResponse>;
|
|
1485
|
-
declare function listRecipients(): __PublicMethodMetaInfo<'GET', {
|
|
1486
|
-
campaignId: string;
|
|
1487
|
-
}, ListRecipientsRequest$1, ListRecipientsRequest, ListRecipientsResponse$1, ListRecipientsResponse>;
|
|
1488
1484
|
declare function getCampaign(): __PublicMethodMetaInfo<'GET', {
|
|
1489
1485
|
campaignId: string;
|
|
1490
1486
|
}, GetCampaignRequest$1, GetCampaignRequest, GetCampaignResponse$1, GetCampaignResponse>;
|
|
@@ -1513,5 +1509,9 @@ declare function getAudience(): __PublicMethodMetaInfo<'POST', {
|
|
|
1513
1509
|
declare function identifySenderAddress(): __PublicMethodMetaInfo<'POST', {}, IdentifySenderAddressRequest$1, IdentifySenderAddressRequest, IdentifySenderAddressResponse$1, IdentifySenderAddressResponse>;
|
|
1514
1510
|
declare function validateLink(): __PublicMethodMetaInfo<'POST', {}, ValidateLinkRequest$1, ValidateLinkRequest, ValidateLinkResponse$1, ValidateLinkResponse>;
|
|
1515
1511
|
declare function validateHtmlLinks(): __PublicMethodMetaInfo<'POST', {}, ValidateHtmlLinksRequest$1, ValidateHtmlLinksRequest, ValidateHtmlLinksResponse$1, ValidateHtmlLinksResponse>;
|
|
1512
|
+
declare function listStatistics(): __PublicMethodMetaInfo<'GET', {}, ListStatisticsRequest$1, ListStatisticsRequest, ListStatisticsResponse$1, ListStatisticsResponse>;
|
|
1513
|
+
declare function listRecipients(): __PublicMethodMetaInfo<'GET', {
|
|
1514
|
+
campaignId: string;
|
|
1515
|
+
}, ListRecipientsRequest$1, ListRecipientsRequest, ListRecipientsResponse$1, ListRecipientsResponse>;
|
|
1516
1516
|
|
|
1517
1517
|
export { type ActionEvent as ActionEventOriginal, ActivityType as ActivityTypeOriginal, type ActivityTypeWithLiterals as ActivityTypeWithLiteralsOriginal, type ArchiveCampaignRequest as ArchiveCampaignRequestOriginal, type ArchiveCampaignResponse as ArchiveCampaignResponseOriginal, type Archived as ArchivedOriginal, type Attachment as AttachmentOriginal, type AutomationTranslatorContent as AutomationTranslatorContentOriginal, type CampaignAudience as CampaignAudienceOriginal, CampaignEditorTypeEnum as CampaignEditorTypeEnumOriginal, type CampaignEditorTypeEnumWithLiterals as CampaignEditorTypeEnumWithLiteralsOriginal, type CampaignEditorType as CampaignEditorTypeOriginal, type Campaign as CampaignOriginal, type CampaignRecipientDetails as CampaignRecipientDetailsOriginal, CampaignSendingStateEnum as CampaignSendingStateEnumOriginal, type CampaignSendingStateEnumWithLiterals as CampaignSendingStateEnumWithLiteralsOriginal, type CampaignStatisticsContainer as CampaignStatisticsContainerOriginal, type CampaignStatistics as CampaignStatisticsOriginal, CampaignStatusEnum as CampaignStatusEnumOriginal, type CampaignStatusEnumWithLiterals as CampaignStatusEnumWithLiteralsOriginal, CampaignTypeEnum as CampaignTypeEnumOriginal, type CampaignTypeEnumWithLiterals as CampaignTypeEnumWithLiteralsOriginal, CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnumOriginal, type CampaignVisibilityStatusEnumWithLiterals as CampaignVisibilityStatusEnumWithLiteralsOriginal, type Click as ClickOriginal, type Composer as ComposerOriginal, type Contact as ContactOriginal, type CountCampaignsRequest as CountCampaignsRequestOriginal, type CountCampaignsResponse as CountCampaignsResponseOriginal, type CreateCampaignRequest as CreateCampaignRequestOriginal, type CreateCampaignResponse as CreateCampaignResponseOriginal, type CreateFromTemplateRequest as CreateFromTemplateRequestOriginal, type CreateFromTemplateResponse as CreateFromTemplateResponseOriginal, type CreateFromUserTemplateRequest as CreateFromUserTemplateRequestOriginal, type CreateFromUserTemplateResponse as CreateFromUserTemplateResponseOriginal, type CreateUserTemplateRequest as CreateUserTemplateRequestOriginal, type CreateUserTemplateResponse as CreateUserTemplateResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DateTime as DateTimeOriginal, type Decimal as DecimalOriginal, type DefaultValues as DefaultValuesOriginal, type DeleteCampaignRequest as DeleteCampaignRequestOriginal, type DeleteCampaignResponse as DeleteCampaignResponseOriginal, type Distributed as DistributedOriginal, type DistributionStatistics as DistributionStatisticsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOfOriginal, type EmailActivityUpdated as EmailActivityUpdatedOriginal, type EmailDistributionOptions as EmailDistributionOptionsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type EstimateAudienceSizeRequest as EstimateAudienceSizeRequestOriginal, type EstimateAudienceSizeResponse as EstimateAudienceSizeResponseOriginal, type EstimateFilterSizeRequest as EstimateFilterSizeRequestOriginal, type EstimateFilterSizeResponse as EstimateFilterSizeResponseOriginal, type GetAudienceRequest as GetAudienceRequestOriginal, type GetAudienceResponse as GetAudienceResponseOriginal, type GetAutomationTranslatorContentRequest as GetAutomationTranslatorContentRequestOriginal, type GetAutomationTranslatorContentResponse as GetAutomationTranslatorContentResponseOriginal, type GetCampaignMappingRequest as GetCampaignMappingRequestOriginal, type GetCampaignMappingResponse as GetCampaignMappingResponseOriginal, type GetCampaignRequest as GetCampaignRequestOriginal, type GetCampaignResponse as GetCampaignResponseOriginal, type GetComposerRequest as GetComposerRequestOriginal, type GetComposerResponse as GetComposerResponseOriginal, type GetDefaultComponentsRequest as GetDefaultComponentsRequestOriginal, type GetDefaultComponentsResponse as GetDefaultComponentsResponseOriginal, type GetLabelsRequest as GetLabelsRequestOriginal, type GetLabelsResponse as GetLabelsResponseOriginal, type GetPlaceholderKeysRequest as GetPlaceholderKeysRequestOriginal, type GetPlaceholderKeysResponse as GetPlaceholderKeysResponseOriginal, type GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequestOriginal, type GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponseOriginal, type HardBounce as HardBounceOriginal, type Html as HtmlOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IdentifySenderAddressRequest as IdentifySenderAddressRequestOriginal, type IdentifySenderAddressResponse as IdentifySenderAddressResponseOriginal, type Integer as IntegerOriginal, type Label as LabelOriginal, type LandingPageStatistics as LandingPageStatisticsOriginal, type ListCampaignsRequest as ListCampaignsRequestOriginal, type ListCampaignsResponse as ListCampaignsResponseOriginal, type ListRecipientsRequest as ListRecipientsRequestOriginal, type ListRecipientsResponse as ListRecipientsResponseOriginal, type ListStatisticsRequest as ListStatisticsRequestOriginal, type ListStatisticsResponse as ListStatisticsResponseOriginal, type LookupCampaignMappingRequest as LookupCampaignMappingRequestOriginal, type LookupCampaignMappingResponse as LookupCampaignMappingResponseOriginal, type Map as MapOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Money as MoneyOriginal, type Open as OpenOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PauseSchedulingRequest as PauseSchedulingRequestOriginal, type PauseSchedulingResponse as PauseSchedulingResponseOriginal, type Paused as PausedOriginal, type PlaceholderContentEnum as PlaceholderContentEnumOriginal, type PlaceholderContent as PlaceholderContentOriginal, type PlaceholderContentValueOneOf as PlaceholderContentValueOneOfOriginal, type PlainText as PlainTextOriginal, type PreviewCampaignRequest as PreviewCampaignRequestOriginal, type PreviewCampaignResponse as PreviewCampaignResponseOriginal, type PublishApplicationErrors as PublishApplicationErrorsOriginal, type PublishCampaignRequest as PublishCampaignRequestOriginal, type PublishCampaignResponse as PublishCampaignResponseOriginal, type Published as PublishedOriginal, type PublishingData as PublishingDataOriginal, RecipientsActivityEnum as RecipientsActivityEnumOriginal, type RecipientsActivityEnumWithLiterals as RecipientsActivityEnumWithLiteralsOriginal, type ReconcileContactRequest as ReconcileContactRequestOriginal, type ReconcileContactResponse as ReconcileContactResponseOriginal, type Rejected as RejectedOriginal, type RejectionData as RejectionDataOriginal, RejectionReasonEnum as RejectionReasonEnumOriginal, type RejectionReasonEnumWithLiterals as RejectionReasonEnumWithLiteralsOriginal, type RescheduleRequest as RescheduleRequestOriginal, type RescheduleResponse as RescheduleResponseOriginal, type ResendToNonOpenersRequest as ResendToNonOpenersRequestOriginal, type ResendToNonOpenersResponse as ResendToNonOpenersResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ReuseCampaignRequest as ReuseCampaignRequestOriginal, type ReuseCampaignResponse as ReuseCampaignResponseOriginal, type Scheduled as ScheduledOriginal, type SearchContactsRequest as SearchContactsRequestOriginal, type SearchContactsResponse as SearchContactsResponseOriginal, type SendTestBulkRequest as SendTestBulkRequestOriginal, type SendTestBulkResponse as SendTestBulkResponseOriginal, type SendTestRequest as SendTestRequestOriginal, type SendTestResponse as SendTestResponseOriginal, type SoftBounce as SoftBounceOriginal, type SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequestOriginal, type SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponseOriginal, type Terminated as TerminatedOriginal, type TotalStatistics as TotalStatisticsOriginal, type UnarchiveCampaignRequest as UnarchiveCampaignRequestOriginal, type UnarchiveCampaignResponse as UnarchiveCampaignResponseOriginal, type Unarchived as UnarchivedOriginal, type UpdateComposerRequest as UpdateComposerRequestOriginal, type UpdateComposerResponse as UpdateComposerResponseOriginal, type UpdateTitleRequest as UpdateTitleRequestOriginal, type UpdateTitleResponse as UpdateTitleResponseOriginal, type UpsertAutomationTranslatorContentRequest as UpsertAutomationTranslatorContentRequestOriginal, type UpsertAutomationTranslatorContentResponse as UpsertAutomationTranslatorContentResponseOriginal, type UpsertTranslationRequest as UpsertTranslationRequestOriginal, type UpsertTranslationResponse as UpsertTranslationResponseOriginal, type ValidateHtmlLinksRequest as ValidateHtmlLinksRequestOriginal, type ValidateHtmlLinksResponse as ValidateHtmlLinksResponseOriginal, type ValidateLinkRequest as ValidateLinkRequestOriginal, type ValidateLinkResponse as ValidateLinkResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type _Array as _ArrayOriginal, type __PublicMethodMetaInfo, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|