@wix/auto_sdk_email-marketing_campaigns 1.0.36 → 1.0.38
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,120 +213,6 @@ 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
|
-
}
|
|
330
216
|
interface GetCampaignMappingRequest {
|
|
331
217
|
/**
|
|
332
218
|
* rule ID in automations
|
|
@@ -569,6 +455,120 @@ interface Decimal {
|
|
|
569
455
|
}
|
|
570
456
|
interface SendTestBulkResponse {
|
|
571
457
|
}
|
|
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.
|
|
@@ -242,6 +242,9 @@ function listStatistics(payload) {
|
|
|
242
242
|
method: "GET",
|
|
243
243
|
methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics",
|
|
244
244
|
packageName: PACKAGE_NAME,
|
|
245
|
+
migrationOptions: {
|
|
246
|
+
optInTransformResponse: true
|
|
247
|
+
},
|
|
245
248
|
url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
|
|
246
249
|
protoPath: "/v1/campaigns/statistics",
|
|
247
250
|
data: payload,
|
|
@@ -260,6 +263,9 @@ function listRecipients(payload) {
|
|
|
260
263
|
method: "GET",
|
|
261
264
|
methodFqn: "wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients",
|
|
262
265
|
packageName: PACKAGE_NAME,
|
|
266
|
+
migrationOptions: {
|
|
267
|
+
optInTransformResponse: true
|
|
268
|
+
},
|
|
263
269
|
url: resolveWixEmailmarketingApiV1CampaignStatisticsServiceUrl({
|
|
264
270
|
protoPath: "/v1/campaigns/{campaignId}/statistics/recipients",
|
|
265
271
|
data: payload,
|
|
@@ -284,6 +290,9 @@ function get(payload) {
|
|
|
284
290
|
method: "GET",
|
|
285
291
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Get",
|
|
286
292
|
packageName: PACKAGE_NAME,
|
|
293
|
+
migrationOptions: {
|
|
294
|
+
optInTransformResponse: true
|
|
295
|
+
},
|
|
287
296
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
288
297
|
protoPath: "/v1/campaigns/{campaignId}",
|
|
289
298
|
data: payload,
|
|
@@ -319,6 +328,9 @@ function list(payload) {
|
|
|
319
328
|
method: "GET",
|
|
320
329
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.List",
|
|
321
330
|
packageName: PACKAGE_NAME,
|
|
331
|
+
migrationOptions: {
|
|
332
|
+
optInTransformResponse: true
|
|
333
|
+
},
|
|
322
334
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
323
335
|
protoPath: "/v1/campaigns",
|
|
324
336
|
data: serializedData,
|
|
@@ -354,6 +366,9 @@ function publish(payload) {
|
|
|
354
366
|
method: "POST",
|
|
355
367
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Publish",
|
|
356
368
|
packageName: PACKAGE_NAME,
|
|
369
|
+
migrationOptions: {
|
|
370
|
+
optInTransformResponse: true
|
|
371
|
+
},
|
|
357
372
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
358
373
|
protoPath: "/v1/campaigns/{campaignId}/publish",
|
|
359
374
|
data: serializedData,
|
|
@@ -384,6 +399,9 @@ function sendTest(payload) {
|
|
|
384
399
|
method: "POST",
|
|
385
400
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.SendTest",
|
|
386
401
|
packageName: PACKAGE_NAME,
|
|
402
|
+
migrationOptions: {
|
|
403
|
+
optInTransformResponse: true
|
|
404
|
+
},
|
|
387
405
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
388
406
|
protoPath: "/v1/campaigns/{campaignId}/test",
|
|
389
407
|
data: serializedData,
|
|
@@ -402,6 +420,9 @@ function pauseScheduling(payload) {
|
|
|
402
420
|
method: "POST",
|
|
403
421
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.PauseScheduling",
|
|
404
422
|
packageName: PACKAGE_NAME,
|
|
423
|
+
migrationOptions: {
|
|
424
|
+
optInTransformResponse: true
|
|
425
|
+
},
|
|
405
426
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
406
427
|
protoPath: "/v1/campaigns/{campaignId}/pause-scheduling",
|
|
407
428
|
data: payload,
|
|
@@ -426,6 +447,9 @@ function reschedule(payload) {
|
|
|
426
447
|
method: "POST",
|
|
427
448
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Reschedule",
|
|
428
449
|
packageName: PACKAGE_NAME,
|
|
450
|
+
migrationOptions: {
|
|
451
|
+
optInTransformResponse: true
|
|
452
|
+
},
|
|
429
453
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
430
454
|
protoPath: "/v1/campaigns/{campaignId}/reschedule",
|
|
431
455
|
data: serializedData,
|
|
@@ -444,6 +468,9 @@ function _delete(payload) {
|
|
|
444
468
|
method: "DELETE",
|
|
445
469
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService._delete",
|
|
446
470
|
packageName: PACKAGE_NAME,
|
|
471
|
+
migrationOptions: {
|
|
472
|
+
optInTransformResponse: true
|
|
473
|
+
},
|
|
447
474
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
448
475
|
protoPath: "/v1/campaigns/{campaignId}",
|
|
449
476
|
data: payload,
|
|
@@ -462,6 +489,9 @@ function reuse(payload) {
|
|
|
462
489
|
method: "POST",
|
|
463
490
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.Reuse",
|
|
464
491
|
packageName: PACKAGE_NAME,
|
|
492
|
+
migrationOptions: {
|
|
493
|
+
optInTransformResponse: true
|
|
494
|
+
},
|
|
465
495
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
466
496
|
protoPath: "/v1/campaigns/{campaignId}/reuse",
|
|
467
497
|
data: payload,
|
|
@@ -491,6 +521,9 @@ function getAudience(payload) {
|
|
|
491
521
|
method: "POST",
|
|
492
522
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.GetAudience",
|
|
493
523
|
packageName: PACKAGE_NAME,
|
|
524
|
+
migrationOptions: {
|
|
525
|
+
optInTransformResponse: true
|
|
526
|
+
},
|
|
494
527
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
495
528
|
protoPath: "/v1/campaigns/{campaignId}/audience",
|
|
496
529
|
data: payload,
|
|
@@ -509,6 +542,9 @@ function identifySenderAddress(payload) {
|
|
|
509
542
|
method: "POST",
|
|
510
543
|
methodFqn: "wix.emailmarketing.api.v1.CampaignService.IdentifySenderAddress",
|
|
511
544
|
packageName: PACKAGE_NAME,
|
|
545
|
+
migrationOptions: {
|
|
546
|
+
optInTransformResponse: true
|
|
547
|
+
},
|
|
512
548
|
url: resolveWixEmailmarketingApiV1CampaignServiceUrl({
|
|
513
549
|
protoPath: "/v1/identify-sender-address",
|
|
514
550
|
data: payload,
|
|
@@ -527,6 +563,9 @@ function validateLink(payload) {
|
|
|
527
563
|
method: "POST",
|
|
528
564
|
methodFqn: "wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink",
|
|
529
565
|
packageName: PACKAGE_NAME,
|
|
566
|
+
migrationOptions: {
|
|
567
|
+
optInTransformResponse: true
|
|
568
|
+
},
|
|
530
569
|
url: resolveWixEmailmarketingApiV1CampaignValidationServiceUrl({
|
|
531
570
|
protoPath: "/v1/campaign-validation/validate-link",
|
|
532
571
|
data: payload,
|
|
@@ -545,6 +584,9 @@ function validateHtmlLinks(payload) {
|
|
|
545
584
|
method: "POST",
|
|
546
585
|
methodFqn: "wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks",
|
|
547
586
|
packageName: PACKAGE_NAME,
|
|
587
|
+
migrationOptions: {
|
|
588
|
+
optInTransformResponse: true
|
|
589
|
+
},
|
|
548
590
|
url: resolveWixEmailmarketingApiV1CampaignValidationServiceUrl({
|
|
549
591
|
protoPath: "/v1/campaign-validation/validate-html-links",
|
|
550
592
|
data: payload,
|