@wix/auto_sdk_email-marketing_campaigns 1.0.35 → 1.0.37
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.js +42 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +114 -114
- package/build/cjs/index.typings.js +42 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +42 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +42 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +114 -114
- package/build/es/index.typings.mjs +42 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +42 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +42 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -114
- package/build/internal/cjs/index.typings.js +42 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +42 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +42 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -114
- package/build/internal/es/index.typings.mjs +42 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +42 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -213,6 +213,120 @@ declare enum CampaignTypeEnum {
|
|
|
213
213
|
}
|
|
214
214
|
/** @enumType */
|
|
215
215
|
type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
216
|
+
interface ListStatisticsRequest {
|
|
217
|
+
/**
|
|
218
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
219
|
+
* @format GUID
|
|
220
|
+
* @minSize 1
|
|
221
|
+
* @maxSize 100
|
|
222
|
+
*/
|
|
223
|
+
campaignIds: string[];
|
|
224
|
+
}
|
|
225
|
+
interface ListStatisticsResponse {
|
|
226
|
+
/** List of statistics. */
|
|
227
|
+
statistics?: CampaignStatisticsContainer[];
|
|
228
|
+
}
|
|
229
|
+
interface CampaignStatisticsContainer {
|
|
230
|
+
/**
|
|
231
|
+
* Campaign ID.
|
|
232
|
+
* @format GUID
|
|
233
|
+
*/
|
|
234
|
+
campaignId?: string;
|
|
235
|
+
/** Landing page statistics. */
|
|
236
|
+
landingPage?: LandingPageStatistics;
|
|
237
|
+
/** Email campaign statistics. */
|
|
238
|
+
email?: DistributionStatistics;
|
|
239
|
+
}
|
|
240
|
+
interface ListRecipientsRequest {
|
|
241
|
+
/**
|
|
242
|
+
* Campaign ID.
|
|
243
|
+
* @format GUID
|
|
244
|
+
*/
|
|
245
|
+
campaignId: string;
|
|
246
|
+
/** Email activity to filter. */
|
|
247
|
+
activity: RecipientsActivityEnumWithLiterals;
|
|
248
|
+
/** Pagination options. */
|
|
249
|
+
paging?: CursorPaging;
|
|
250
|
+
}
|
|
251
|
+
declare enum RecipientsActivityEnum {
|
|
252
|
+
UNKNOWN = "UNKNOWN",
|
|
253
|
+
DELIVERED = "DELIVERED",
|
|
254
|
+
OPENED = "OPENED",
|
|
255
|
+
CLICKED = "CLICKED",
|
|
256
|
+
BOUNCED = "BOUNCED",
|
|
257
|
+
NOT_SENT = "NOT_SENT",
|
|
258
|
+
SENT = "SENT",
|
|
259
|
+
NOT_OPENED = "NOT_OPENED"
|
|
260
|
+
}
|
|
261
|
+
/** @enumType */
|
|
262
|
+
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
263
|
+
interface CursorPaging {
|
|
264
|
+
/**
|
|
265
|
+
* Number of items to load.
|
|
266
|
+
* @max 1000
|
|
267
|
+
*/
|
|
268
|
+
limit?: number | null;
|
|
269
|
+
/**
|
|
270
|
+
* Pointer to the next or previous page in the list of results.
|
|
271
|
+
*
|
|
272
|
+
* You can get the relevant cursor token
|
|
273
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
274
|
+
* Not relevant for the first request.
|
|
275
|
+
* @maxLength 1000
|
|
276
|
+
*/
|
|
277
|
+
cursor?: string | null;
|
|
278
|
+
}
|
|
279
|
+
interface ListRecipientsResponse {
|
|
280
|
+
/** List of recipients. */
|
|
281
|
+
recipients?: CampaignRecipientDetails[];
|
|
282
|
+
/** Details on the paged set of returned results. */
|
|
283
|
+
pagingMetadata?: PagingMetadataV2;
|
|
284
|
+
}
|
|
285
|
+
interface CampaignRecipientDetails {
|
|
286
|
+
/**
|
|
287
|
+
* Contact ID.
|
|
288
|
+
* @format GUID
|
|
289
|
+
*/
|
|
290
|
+
contactId?: string;
|
|
291
|
+
/** Date and time of the last activity. */
|
|
292
|
+
lastActivityDate?: Date | null;
|
|
293
|
+
/**
|
|
294
|
+
* Primary email address of the contact.
|
|
295
|
+
* @format EMAIL
|
|
296
|
+
*/
|
|
297
|
+
emailAddress?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Full name of the contact (optional).
|
|
300
|
+
* @maxLength 100
|
|
301
|
+
*/
|
|
302
|
+
fullName?: string | null;
|
|
303
|
+
/** Is this contact currently deleted from the site or not. */
|
|
304
|
+
contactDeleted?: boolean;
|
|
305
|
+
}
|
|
306
|
+
interface PagingMetadataV2 {
|
|
307
|
+
/** Number of items returned in the response. */
|
|
308
|
+
count?: number | null;
|
|
309
|
+
/** Offset that was requested. */
|
|
310
|
+
offset?: number | null;
|
|
311
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
312
|
+
total?: number | null;
|
|
313
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
314
|
+
tooManyToCount?: boolean | null;
|
|
315
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
316
|
+
cursors?: Cursors;
|
|
317
|
+
}
|
|
318
|
+
interface Cursors {
|
|
319
|
+
/**
|
|
320
|
+
* Cursor string pointing to the next page in the list of results.
|
|
321
|
+
* @maxLength 16000
|
|
322
|
+
*/
|
|
323
|
+
next?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Cursor pointing to the previous page in the list of results.
|
|
326
|
+
* @maxLength 16000
|
|
327
|
+
*/
|
|
328
|
+
prev?: string | null;
|
|
329
|
+
}
|
|
216
330
|
interface GetCampaignMappingRequest {
|
|
217
331
|
/**
|
|
218
332
|
* rule ID in automations
|
|
@@ -455,120 +569,6 @@ interface Decimal {
|
|
|
455
569
|
}
|
|
456
570
|
interface SendTestBulkResponse {
|
|
457
571
|
}
|
|
458
|
-
interface ListStatisticsRequest {
|
|
459
|
-
/**
|
|
460
|
-
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
461
|
-
* @format GUID
|
|
462
|
-
* @minSize 1
|
|
463
|
-
* @maxSize 100
|
|
464
|
-
*/
|
|
465
|
-
campaignIds: string[];
|
|
466
|
-
}
|
|
467
|
-
interface ListStatisticsResponse {
|
|
468
|
-
/** List of statistics. */
|
|
469
|
-
statistics?: CampaignStatisticsContainer[];
|
|
470
|
-
}
|
|
471
|
-
interface CampaignStatisticsContainer {
|
|
472
|
-
/**
|
|
473
|
-
* Campaign ID.
|
|
474
|
-
* @format GUID
|
|
475
|
-
*/
|
|
476
|
-
campaignId?: string;
|
|
477
|
-
/** Landing page statistics. */
|
|
478
|
-
landingPage?: LandingPageStatistics;
|
|
479
|
-
/** Email campaign statistics. */
|
|
480
|
-
email?: DistributionStatistics;
|
|
481
|
-
}
|
|
482
|
-
interface ListRecipientsRequest {
|
|
483
|
-
/**
|
|
484
|
-
* Campaign ID.
|
|
485
|
-
* @format GUID
|
|
486
|
-
*/
|
|
487
|
-
campaignId: string;
|
|
488
|
-
/** Email activity to filter. */
|
|
489
|
-
activity: RecipientsActivityEnumWithLiterals;
|
|
490
|
-
/** Pagination options. */
|
|
491
|
-
paging?: CursorPaging;
|
|
492
|
-
}
|
|
493
|
-
declare enum RecipientsActivityEnum {
|
|
494
|
-
UNKNOWN = "UNKNOWN",
|
|
495
|
-
DELIVERED = "DELIVERED",
|
|
496
|
-
OPENED = "OPENED",
|
|
497
|
-
CLICKED = "CLICKED",
|
|
498
|
-
BOUNCED = "BOUNCED",
|
|
499
|
-
NOT_SENT = "NOT_SENT",
|
|
500
|
-
SENT = "SENT",
|
|
501
|
-
NOT_OPENED = "NOT_OPENED"
|
|
502
|
-
}
|
|
503
|
-
/** @enumType */
|
|
504
|
-
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
505
|
-
interface CursorPaging {
|
|
506
|
-
/**
|
|
507
|
-
* Number of items to load.
|
|
508
|
-
* @max 1000
|
|
509
|
-
*/
|
|
510
|
-
limit?: number | null;
|
|
511
|
-
/**
|
|
512
|
-
* Pointer to the next or previous page in the list of results.
|
|
513
|
-
*
|
|
514
|
-
* You can get the relevant cursor token
|
|
515
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
516
|
-
* Not relevant for the first request.
|
|
517
|
-
* @maxLength 1000
|
|
518
|
-
*/
|
|
519
|
-
cursor?: string | null;
|
|
520
|
-
}
|
|
521
|
-
interface ListRecipientsResponse {
|
|
522
|
-
/** List of recipients. */
|
|
523
|
-
recipients?: CampaignRecipientDetails[];
|
|
524
|
-
/** Details on the paged set of returned results. */
|
|
525
|
-
pagingMetadata?: PagingMetadataV2;
|
|
526
|
-
}
|
|
527
|
-
interface CampaignRecipientDetails {
|
|
528
|
-
/**
|
|
529
|
-
* Contact ID.
|
|
530
|
-
* @format GUID
|
|
531
|
-
*/
|
|
532
|
-
contactId?: string;
|
|
533
|
-
/** Date and time of the last activity. */
|
|
534
|
-
lastActivityDate?: Date | null;
|
|
535
|
-
/**
|
|
536
|
-
* Primary email address of the contact.
|
|
537
|
-
* @format EMAIL
|
|
538
|
-
*/
|
|
539
|
-
emailAddress?: string;
|
|
540
|
-
/**
|
|
541
|
-
* Full name of the contact (optional).
|
|
542
|
-
* @maxLength 100
|
|
543
|
-
*/
|
|
544
|
-
fullName?: string | null;
|
|
545
|
-
/** Is this contact currently deleted from the site or not. */
|
|
546
|
-
contactDeleted?: boolean;
|
|
547
|
-
}
|
|
548
|
-
interface PagingMetadataV2 {
|
|
549
|
-
/** Number of items returned in the response. */
|
|
550
|
-
count?: number | null;
|
|
551
|
-
/** Offset that was requested. */
|
|
552
|
-
offset?: number | null;
|
|
553
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
554
|
-
total?: number | null;
|
|
555
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
556
|
-
tooManyToCount?: boolean | null;
|
|
557
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
558
|
-
cursors?: Cursors;
|
|
559
|
-
}
|
|
560
|
-
interface Cursors {
|
|
561
|
-
/**
|
|
562
|
-
* Cursor string pointing to the next page in the list of results.
|
|
563
|
-
* @maxLength 16000
|
|
564
|
-
*/
|
|
565
|
-
next?: string | null;
|
|
566
|
-
/**
|
|
567
|
-
* Cursor pointing to the previous page in the list of results.
|
|
568
|
-
* @maxLength 16000
|
|
569
|
-
*/
|
|
570
|
-
prev?: string | null;
|
|
571
|
-
}
|
|
572
572
|
interface GetCampaignRequest {
|
|
573
573
|
/**
|
|
574
574
|
* Campaign ID.
|
|
@@ -288,6 +288,9 @@ function listStatistics(payload) {
|
|
|
288
288
|
method: "GET",
|
|
289
289
|
methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
|
|
290
290
|
packageName: PACKAGE_NAME,
|
|
291
|
+
migrationOptions: {
|
|
292
|
+
optInTransformResponse: true
|
|
293
|
+
},
|
|
291
294
|
url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
|
|
292
295
|
protoPath: "/v1/campaigns/statistics",
|
|
293
296
|
data: payload,
|
|
@@ -306,6 +309,9 @@ function listRecipients(payload) {
|
|
|
306
309
|
method: "GET",
|
|
307
310
|
methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
|
|
308
311
|
packageName: PACKAGE_NAME,
|
|
312
|
+
migrationOptions: {
|
|
313
|
+
optInTransformResponse: true
|
|
314
|
+
},
|
|
309
315
|
url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
|
|
310
316
|
protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
|
|
311
317
|
data: payload,
|
|
@@ -330,6 +336,9 @@ function get(payload) {
|
|
|
330
336
|
method: "GET",
|
|
331
337
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Get",
|
|
332
338
|
packageName: PACKAGE_NAME,
|
|
339
|
+
migrationOptions: {
|
|
340
|
+
optInTransformResponse: true
|
|
341
|
+
},
|
|
333
342
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
334
343
|
protoPath: "/v1/campaigns/{campaignId}",
|
|
335
344
|
data: payload,
|
|
@@ -365,6 +374,9 @@ function list(payload) {
|
|
|
365
374
|
method: "GET",
|
|
366
375
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.List",
|
|
367
376
|
packageName: PACKAGE_NAME,
|
|
377
|
+
migrationOptions: {
|
|
378
|
+
optInTransformResponse: true
|
|
379
|
+
},
|
|
368
380
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
369
381
|
protoPath: "/v1/campaigns",
|
|
370
382
|
data: serializedData,
|
|
@@ -400,6 +412,9 @@ function publish(payload) {
|
|
|
400
412
|
method: "POST",
|
|
401
413
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Publish",
|
|
402
414
|
packageName: PACKAGE_NAME,
|
|
415
|
+
migrationOptions: {
|
|
416
|
+
optInTransformResponse: true
|
|
417
|
+
},
|
|
403
418
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
404
419
|
protoPath: "/v1/campaigns/{campaignId}/publish",
|
|
405
420
|
data: serializedData,
|
|
@@ -430,6 +445,9 @@ function sendTest(payload) {
|
|
|
430
445
|
method: "POST",
|
|
431
446
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.SendTest",
|
|
432
447
|
packageName: PACKAGE_NAME,
|
|
448
|
+
migrationOptions: {
|
|
449
|
+
optInTransformResponse: true
|
|
450
|
+
},
|
|
433
451
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
434
452
|
protoPath: "/v1/campaigns/{campaignId}/test",
|
|
435
453
|
data: serializedData,
|
|
@@ -448,6 +466,9 @@ function pauseScheduling(payload) {
|
|
|
448
466
|
method: "POST",
|
|
449
467
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.PauseScheduling",
|
|
450
468
|
packageName: PACKAGE_NAME,
|
|
469
|
+
migrationOptions: {
|
|
470
|
+
optInTransformResponse: true
|
|
471
|
+
},
|
|
451
472
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
452
473
|
protoPath: "/v1/campaigns/{campaignId}/pause-scheduling",
|
|
453
474
|
data: payload,
|
|
@@ -472,6 +493,9 @@ function reschedule(payload) {
|
|
|
472
493
|
method: "POST",
|
|
473
494
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Reschedule",
|
|
474
495
|
packageName: PACKAGE_NAME,
|
|
496
|
+
migrationOptions: {
|
|
497
|
+
optInTransformResponse: true
|
|
498
|
+
},
|
|
475
499
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
476
500
|
protoPath: "/v1/campaigns/{campaignId}/reschedule",
|
|
477
501
|
data: serializedData,
|
|
@@ -490,6 +514,9 @@ function _delete(payload) {
|
|
|
490
514
|
method: "DELETE",
|
|
491
515
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService._delete",
|
|
492
516
|
packageName: PACKAGE_NAME,
|
|
517
|
+
migrationOptions: {
|
|
518
|
+
optInTransformResponse: true
|
|
519
|
+
},
|
|
493
520
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
494
521
|
protoPath: "/v1/campaigns/{campaignId}",
|
|
495
522
|
data: payload,
|
|
@@ -508,6 +535,9 @@ function reuse(payload) {
|
|
|
508
535
|
method: "POST",
|
|
509
536
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Reuse",
|
|
510
537
|
packageName: PACKAGE_NAME,
|
|
538
|
+
migrationOptions: {
|
|
539
|
+
optInTransformResponse: true
|
|
540
|
+
},
|
|
511
541
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
512
542
|
protoPath: "/v1/campaigns/{campaignId}/reuse",
|
|
513
543
|
data: payload,
|
|
@@ -537,6 +567,9 @@ function getAudience(payload) {
|
|
|
537
567
|
method: "POST",
|
|
538
568
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.GetAudience",
|
|
539
569
|
packageName: PACKAGE_NAME,
|
|
570
|
+
migrationOptions: {
|
|
571
|
+
optInTransformResponse: true
|
|
572
|
+
},
|
|
540
573
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
541
574
|
protoPath: "/v1/campaigns/{campaignId}/audience",
|
|
542
575
|
data: payload,
|
|
@@ -555,6 +588,9 @@ function identifySenderAddress(payload) {
|
|
|
555
588
|
method: "POST",
|
|
556
589
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.IdentifySenderAddress",
|
|
557
590
|
packageName: PACKAGE_NAME,
|
|
591
|
+
migrationOptions: {
|
|
592
|
+
optInTransformResponse: true
|
|
593
|
+
},
|
|
558
594
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
559
595
|
protoPath: "/v1/identify-sender-address",
|
|
560
596
|
data: payload,
|
|
@@ -573,6 +609,9 @@ function validateLink(payload) {
|
|
|
573
609
|
method: "POST",
|
|
574
610
|
methodFqn: "wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink",
|
|
575
611
|
packageName: PACKAGE_NAME,
|
|
612
|
+
migrationOptions: {
|
|
613
|
+
optInTransformResponse: true
|
|
614
|
+
},
|
|
576
615
|
url: resolveWixEmailmarketingApiV1CampaignValidationServiceUrl({
|
|
577
616
|
protoPath: "/v1/campaign-validation/validate-link",
|
|
578
617
|
data: payload,
|
|
@@ -591,6 +630,9 @@ function validateHtmlLinks(payload) {
|
|
|
591
630
|
method: "POST",
|
|
592
631
|
methodFqn: "wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks",
|
|
593
632
|
packageName: PACKAGE_NAME,
|
|
633
|
+
migrationOptions: {
|
|
634
|
+
optInTransformResponse: true
|
|
635
|
+
},
|
|
594
636
|
url: resolveWixEmailmarketingApiV1CampaignValidationServiceUrl({
|
|
595
637
|
protoPath: "/v1/campaign-validation/validate-html-links",
|
|
596
638
|
data: payload,
|