@wix/auto_sdk_ecom_abandoned-checkouts 1.0.44 → 1.0.46
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/meta.d.ts +566 -1
- package/build/cjs/meta.js +85 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +566 -1
- package/build/es/meta.mjs +75 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +566 -1
- package/build/internal/cjs/meta.js +85 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +566 -1
- package/build/internal/es/meta.mjs +75 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -214,6 +214,404 @@ interface Activity {
|
|
|
214
214
|
/** Automation activity type. */
|
|
215
215
|
type?: ActivityTypeWithLiterals;
|
|
216
216
|
}
|
|
217
|
+
interface LineItem {
|
|
218
|
+
/**
|
|
219
|
+
* Line item ID.
|
|
220
|
+
* @format GUID
|
|
221
|
+
* @readonly
|
|
222
|
+
*/
|
|
223
|
+
id?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Item quantity.
|
|
226
|
+
* @min 1
|
|
227
|
+
* @max 100000
|
|
228
|
+
*/
|
|
229
|
+
quantity?: number;
|
|
230
|
+
/**
|
|
231
|
+
* Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info.
|
|
232
|
+
* Optional for custom line items, which don't trigger the Catalog service plugin.
|
|
233
|
+
*/
|
|
234
|
+
catalogReference?: CatalogReference;
|
|
235
|
+
/**
|
|
236
|
+
* Item name.
|
|
237
|
+
* + Stores - `product.name`
|
|
238
|
+
* + Bookings - `service.info.name`
|
|
239
|
+
* + Events - `ticket.name`
|
|
240
|
+
* @readonly
|
|
241
|
+
*/
|
|
242
|
+
productName?: ProductName;
|
|
243
|
+
/**
|
|
244
|
+
* Item price **after** catalog-defined discount and line item discounts.
|
|
245
|
+
* @readonly
|
|
246
|
+
*/
|
|
247
|
+
price?: MultiCurrencyPrice;
|
|
248
|
+
/**
|
|
249
|
+
* Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
|
|
250
|
+
* @readonly
|
|
251
|
+
*/
|
|
252
|
+
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
253
|
+
/**
|
|
254
|
+
* Line item description lines. Used for displaying the cart, checkout and order.
|
|
255
|
+
* @maxSize 300
|
|
256
|
+
* @readonly
|
|
257
|
+
*/
|
|
258
|
+
descriptionLines?: DescriptionLine[];
|
|
259
|
+
/**
|
|
260
|
+
* Line item image details.
|
|
261
|
+
* @readonly
|
|
262
|
+
*/
|
|
263
|
+
image?: Image;
|
|
264
|
+
/**
|
|
265
|
+
* Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
|
|
266
|
+
* @readonly
|
|
267
|
+
*/
|
|
268
|
+
physicalProperties?: PhysicalProperties;
|
|
269
|
+
}
|
|
270
|
+
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
271
|
+
interface CatalogReference {
|
|
272
|
+
/**
|
|
273
|
+
* ID of the item within the catalog it belongs to.
|
|
274
|
+
* @minLength 1
|
|
275
|
+
* @maxLength 36
|
|
276
|
+
*/
|
|
277
|
+
catalogItemId?: string;
|
|
278
|
+
/**
|
|
279
|
+
* ID of the app providing the catalog.
|
|
280
|
+
*
|
|
281
|
+
* You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
282
|
+
*
|
|
283
|
+
* For items from Wix catalogs, the following values always apply:
|
|
284
|
+
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
285
|
+
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
286
|
+
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
287
|
+
* @minLength 1
|
|
288
|
+
*/
|
|
289
|
+
appId?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
292
|
+
*
|
|
293
|
+
* For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
|
|
294
|
+
*/
|
|
295
|
+
options?: Record<string, any> | null;
|
|
296
|
+
}
|
|
297
|
+
interface ProductName {
|
|
298
|
+
/**
|
|
299
|
+
* __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
300
|
+
*
|
|
301
|
+
* Min: 1 character.
|
|
302
|
+
* Max: 200 characters.
|
|
303
|
+
* @minLength 1
|
|
304
|
+
* @maxLength 200
|
|
305
|
+
*/
|
|
306
|
+
original?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Item name translated into the buyer's language.
|
|
309
|
+
*
|
|
310
|
+
* Min: 1 character.
|
|
311
|
+
* Max: 400 characters.
|
|
312
|
+
* Default: Same as `original`.
|
|
313
|
+
* @minLength 1
|
|
314
|
+
* @maxLength 400
|
|
315
|
+
*/
|
|
316
|
+
translated?: string | null;
|
|
317
|
+
}
|
|
318
|
+
interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
319
|
+
/** Description line plain text value. */
|
|
320
|
+
plainText?: PlainTextValue;
|
|
321
|
+
/** Description line color value. */
|
|
322
|
+
colorInfo?: Color;
|
|
323
|
+
/** Description line name. */
|
|
324
|
+
name?: DescriptionLineName;
|
|
325
|
+
}
|
|
326
|
+
/** @oneof */
|
|
327
|
+
interface DescriptionLineValueOneOf {
|
|
328
|
+
/** Description line plain text value. */
|
|
329
|
+
plainText?: PlainTextValue;
|
|
330
|
+
/** Description line color value. */
|
|
331
|
+
colorInfo?: Color;
|
|
332
|
+
}
|
|
333
|
+
/** @oneof */
|
|
334
|
+
interface DescriptionLineDescriptionLineValueOneOf {
|
|
335
|
+
}
|
|
336
|
+
interface DescriptionLineName {
|
|
337
|
+
/**
|
|
338
|
+
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
339
|
+
* @maxLength 100
|
|
340
|
+
*/
|
|
341
|
+
original?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Description line name translated into the buyer's language.
|
|
344
|
+
*
|
|
345
|
+
* Default: Same as `original`.
|
|
346
|
+
* @maxLength 200
|
|
347
|
+
*/
|
|
348
|
+
translated?: string | null;
|
|
349
|
+
}
|
|
350
|
+
interface PlainTextValue {
|
|
351
|
+
/**
|
|
352
|
+
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
353
|
+
* @maxLength 600
|
|
354
|
+
*/
|
|
355
|
+
original?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Description line plain text value translated into the buyer's language.
|
|
358
|
+
*
|
|
359
|
+
* Default: Same as `original`.
|
|
360
|
+
* @maxLength 600
|
|
361
|
+
*/
|
|
362
|
+
translated?: string | null;
|
|
363
|
+
}
|
|
364
|
+
interface Color {
|
|
365
|
+
/**
|
|
366
|
+
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
367
|
+
* @maxLength 500
|
|
368
|
+
*/
|
|
369
|
+
original?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Description line color name translated into the buyer's language.
|
|
372
|
+
*
|
|
373
|
+
* Default: Same as `original`.
|
|
374
|
+
* @maxLength 500
|
|
375
|
+
*/
|
|
376
|
+
translated?: string | null;
|
|
377
|
+
/** HEX or RGB color code for display. */
|
|
378
|
+
code?: string | null;
|
|
379
|
+
}
|
|
380
|
+
declare enum DescriptionLineType {
|
|
381
|
+
/** Unrecognized type. */
|
|
382
|
+
UNRECOGNISED = "UNRECOGNISED",
|
|
383
|
+
/** Plain text type. */
|
|
384
|
+
PLAIN_TEXT = "PLAIN_TEXT",
|
|
385
|
+
/** Color type. */
|
|
386
|
+
COLOR = "COLOR"
|
|
387
|
+
}
|
|
388
|
+
/** @enumType */
|
|
389
|
+
type DescriptionLineTypeWithLiterals = DescriptionLineType | 'UNRECOGNISED' | 'PLAIN_TEXT' | 'COLOR';
|
|
390
|
+
interface Image {
|
|
391
|
+
/**
|
|
392
|
+
* WixMedia image ID.
|
|
393
|
+
* @maxLength 400
|
|
394
|
+
*/
|
|
395
|
+
id?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Image URL.
|
|
398
|
+
* @format WEB_URL
|
|
399
|
+
*/
|
|
400
|
+
url?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Original image height.
|
|
403
|
+
* @readonly
|
|
404
|
+
*/
|
|
405
|
+
height?: number;
|
|
406
|
+
/**
|
|
407
|
+
* Original image width.
|
|
408
|
+
* @readonly
|
|
409
|
+
*/
|
|
410
|
+
width?: number;
|
|
411
|
+
/**
|
|
412
|
+
* Image alt text.
|
|
413
|
+
* @maxLength 200
|
|
414
|
+
*/
|
|
415
|
+
altText?: string | null;
|
|
416
|
+
}
|
|
417
|
+
interface PhysicalProperties {
|
|
418
|
+
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
419
|
+
weight?: number | null;
|
|
420
|
+
/**
|
|
421
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
422
|
+
* @maxLength 40
|
|
423
|
+
*/
|
|
424
|
+
sku?: string | null;
|
|
425
|
+
/** Whether this line item is shippable. */
|
|
426
|
+
shippable?: boolean;
|
|
427
|
+
}
|
|
428
|
+
interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
429
|
+
/** Coupon details. */
|
|
430
|
+
coupon?: Coupon;
|
|
431
|
+
/** Merchant discount. */
|
|
432
|
+
merchantDiscount?: MerchantDiscount;
|
|
433
|
+
/** Discount rule */
|
|
434
|
+
discountRule?: DiscountRule;
|
|
435
|
+
/** Discount type. */
|
|
436
|
+
discountType?: DiscountTypeWithLiterals;
|
|
437
|
+
/**
|
|
438
|
+
* IDs of line items the discount applies to.
|
|
439
|
+
* @format GUID
|
|
440
|
+
* @maxSize 300
|
|
441
|
+
*/
|
|
442
|
+
lineItemIds?: string[];
|
|
443
|
+
}
|
|
444
|
+
/** @oneof */
|
|
445
|
+
interface AppliedDiscountDiscountSourceOneOf {
|
|
446
|
+
/** Coupon details. */
|
|
447
|
+
coupon?: Coupon;
|
|
448
|
+
/** Merchant discount. */
|
|
449
|
+
merchantDiscount?: MerchantDiscount;
|
|
450
|
+
/** Discount rule */
|
|
451
|
+
discountRule?: DiscountRule;
|
|
452
|
+
}
|
|
453
|
+
declare enum DiscountType {
|
|
454
|
+
GLOBAL = "GLOBAL",
|
|
455
|
+
SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
|
|
456
|
+
SHIPPING = "SHIPPING"
|
|
457
|
+
}
|
|
458
|
+
/** @enumType */
|
|
459
|
+
type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
|
|
460
|
+
interface Coupon {
|
|
461
|
+
/**
|
|
462
|
+
* Coupon ID.
|
|
463
|
+
* @maxLength 50
|
|
464
|
+
*/
|
|
465
|
+
id?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Coupon code.
|
|
468
|
+
* @maxLength 50
|
|
469
|
+
*/
|
|
470
|
+
code?: string;
|
|
471
|
+
/** Coupon value. */
|
|
472
|
+
amount?: MultiCurrencyPrice;
|
|
473
|
+
/**
|
|
474
|
+
* Coupon name.
|
|
475
|
+
* @maxLength 60
|
|
476
|
+
*/
|
|
477
|
+
name?: string;
|
|
478
|
+
}
|
|
479
|
+
interface MerchantDiscount {
|
|
480
|
+
/** Discount value. */
|
|
481
|
+
amount?: MultiCurrencyPrice;
|
|
482
|
+
/**
|
|
483
|
+
* Discount Percentage. Will be calculated from items price before other discounts.
|
|
484
|
+
* @min 1
|
|
485
|
+
* @max 100
|
|
486
|
+
*/
|
|
487
|
+
percentage?: number | null;
|
|
488
|
+
}
|
|
489
|
+
interface DiscountRule {
|
|
490
|
+
/**
|
|
491
|
+
* Discount rule ID
|
|
492
|
+
* @format GUID
|
|
493
|
+
*/
|
|
494
|
+
id?: string;
|
|
495
|
+
/** Discount rule name */
|
|
496
|
+
name?: DiscountRuleName;
|
|
497
|
+
/** Discount value. */
|
|
498
|
+
amount?: MultiCurrencyPrice;
|
|
499
|
+
}
|
|
500
|
+
interface DiscountRuleName {
|
|
501
|
+
/**
|
|
502
|
+
* Original discount rule name (in site's default language).
|
|
503
|
+
* @minLength 1
|
|
504
|
+
* @maxLength 256
|
|
505
|
+
*/
|
|
506
|
+
original?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
509
|
+
* @minLength 1
|
|
510
|
+
* @maxLength 500
|
|
511
|
+
*/
|
|
512
|
+
translated?: string | null;
|
|
513
|
+
}
|
|
514
|
+
interface CartAbandonedEvent {
|
|
515
|
+
/** @format GUID */
|
|
516
|
+
cartId?: string;
|
|
517
|
+
/**
|
|
518
|
+
* Time the cart was created
|
|
519
|
+
* @readonly
|
|
520
|
+
*/
|
|
521
|
+
creationTime?: Date | null;
|
|
522
|
+
/**
|
|
523
|
+
* Time the cart was abandoned
|
|
524
|
+
* @readonly
|
|
525
|
+
*/
|
|
526
|
+
abandonTime?: Date | null;
|
|
527
|
+
/** Buyer information */
|
|
528
|
+
buyerInfo?: BuyerInfo;
|
|
529
|
+
/** Amount of items in cart */
|
|
530
|
+
itemsCount?: number;
|
|
531
|
+
/** Coupon ID (if relevant) */
|
|
532
|
+
couponId?: string;
|
|
533
|
+
/** Subtotal of all line items in cart, not before shipping and taxes */
|
|
534
|
+
totals?: Totals;
|
|
535
|
+
/**
|
|
536
|
+
* Checkout URL - checkout with the abandoned cart details
|
|
537
|
+
* @format WEB_URL
|
|
538
|
+
*/
|
|
539
|
+
checkoutUrl?: string;
|
|
540
|
+
}
|
|
541
|
+
interface BuyerInfo {
|
|
542
|
+
/**
|
|
543
|
+
* Wix customer ID
|
|
544
|
+
* @format GUID
|
|
545
|
+
*/
|
|
546
|
+
id?: string;
|
|
547
|
+
/** Customer information */
|
|
548
|
+
identityType?: IdentityWithLiterals;
|
|
549
|
+
/**
|
|
550
|
+
* Customer's email address
|
|
551
|
+
* @maxLength 50
|
|
552
|
+
* @format EMAIL
|
|
553
|
+
*/
|
|
554
|
+
email?: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* Customer's phone number
|
|
557
|
+
* @format PHONE
|
|
558
|
+
*/
|
|
559
|
+
phone?: string | null;
|
|
560
|
+
/** Customer's first name */
|
|
561
|
+
firstName?: string | null;
|
|
562
|
+
/** Customer's last name */
|
|
563
|
+
lastName?: string | null;
|
|
564
|
+
}
|
|
565
|
+
declare enum Identity {
|
|
566
|
+
/** Customer is the site owner */
|
|
567
|
+
ADMIN = "ADMIN",
|
|
568
|
+
/** Customer is logged in */
|
|
569
|
+
MEMBER = "MEMBER",
|
|
570
|
+
/** Customer is not logged in */
|
|
571
|
+
VISITOR = "VISITOR",
|
|
572
|
+
/** Contact was created for the customer */
|
|
573
|
+
CONTACT = "CONTACT"
|
|
574
|
+
}
|
|
575
|
+
/** @enumType */
|
|
576
|
+
type IdentityWithLiterals = Identity | 'ADMIN' | 'MEMBER' | 'VISITOR' | 'CONTACT';
|
|
577
|
+
interface Totals {
|
|
578
|
+
/**
|
|
579
|
+
* Subtotal of all line items in cart, without shipping and taxes
|
|
580
|
+
* @max 999999999.99
|
|
581
|
+
*/
|
|
582
|
+
subtotal?: number | null;
|
|
583
|
+
/**
|
|
584
|
+
* Total cart price
|
|
585
|
+
* @max 999999999.99
|
|
586
|
+
*/
|
|
587
|
+
total?: number | null;
|
|
588
|
+
/** Formatted total cart price includes currency symbol */
|
|
589
|
+
formattedTotal?: string;
|
|
590
|
+
}
|
|
591
|
+
interface CartRecoveredEvent {
|
|
592
|
+
/** @format GUID */
|
|
593
|
+
cartId?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Time the cart was recovered
|
|
596
|
+
* @readonly
|
|
597
|
+
*/
|
|
598
|
+
recoveredTime?: Date | null;
|
|
599
|
+
/**
|
|
600
|
+
* Time the cart was created
|
|
601
|
+
* @readonly
|
|
602
|
+
*/
|
|
603
|
+
creationTime?: Date | null;
|
|
604
|
+
/**
|
|
605
|
+
* Time the cart was abandoned
|
|
606
|
+
* @readonly
|
|
607
|
+
*/
|
|
608
|
+
abandonedTime?: Date | null;
|
|
609
|
+
}
|
|
610
|
+
/** Triggered when an abandoned checkout is recovered (the customer completes the checkout). */
|
|
611
|
+
interface AbandonedCheckoutRecovered {
|
|
612
|
+
/** The abandoned checkout that was recovered. */
|
|
613
|
+
abandonedCheckout?: AbandonedCheckout;
|
|
614
|
+
}
|
|
217
615
|
interface GetAbandonedCheckoutRequest {
|
|
218
616
|
/**
|
|
219
617
|
* Abandoned checkout ID.
|
|
@@ -524,6 +922,35 @@ interface AddAbandonedCheckoutActivityResponse {
|
|
|
524
922
|
/** The updated abandoned checkout with the added activity */
|
|
525
923
|
abandonedCheckout?: AbandonedCheckout;
|
|
526
924
|
}
|
|
925
|
+
interface Task {
|
|
926
|
+
key?: TaskKey;
|
|
927
|
+
executeAt?: Date | null;
|
|
928
|
+
payload?: string | null;
|
|
929
|
+
}
|
|
930
|
+
interface TaskKey {
|
|
931
|
+
appId?: string;
|
|
932
|
+
instanceId?: string;
|
|
933
|
+
subjectId?: string | null;
|
|
934
|
+
}
|
|
935
|
+
interface TaskAction extends TaskActionActionOneOf {
|
|
936
|
+
complete?: Complete;
|
|
937
|
+
cancel?: Cancel;
|
|
938
|
+
reschedule?: Reschedule;
|
|
939
|
+
}
|
|
940
|
+
/** @oneof */
|
|
941
|
+
interface TaskActionActionOneOf {
|
|
942
|
+
complete?: Complete;
|
|
943
|
+
cancel?: Cancel;
|
|
944
|
+
reschedule?: Reschedule;
|
|
945
|
+
}
|
|
946
|
+
interface Complete {
|
|
947
|
+
}
|
|
948
|
+
interface Cancel {
|
|
949
|
+
}
|
|
950
|
+
interface Reschedule {
|
|
951
|
+
executeAt?: Date | null;
|
|
952
|
+
payload?: string | null;
|
|
953
|
+
}
|
|
527
954
|
interface RedirectToCheckoutRequest {
|
|
528
955
|
/**
|
|
529
956
|
* ID of the abandoned checkout.
|
|
@@ -545,6 +972,144 @@ interface HeadersEntry {
|
|
|
545
972
|
key?: string;
|
|
546
973
|
value?: string;
|
|
547
974
|
}
|
|
975
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
976
|
+
createdEvent?: EntityCreatedEvent;
|
|
977
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
978
|
+
deletedEvent?: EntityDeletedEvent;
|
|
979
|
+
actionEvent?: ActionEvent;
|
|
980
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
981
|
+
id?: string;
|
|
982
|
+
/**
|
|
983
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
984
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
985
|
+
*/
|
|
986
|
+
entityFqdn?: string;
|
|
987
|
+
/**
|
|
988
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
989
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
990
|
+
*/
|
|
991
|
+
slug?: string;
|
|
992
|
+
/** ID of the entity associated with the event. */
|
|
993
|
+
entityId?: string;
|
|
994
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
995
|
+
eventTime?: Date | null;
|
|
996
|
+
/**
|
|
997
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
998
|
+
* (for example, GDPR).
|
|
999
|
+
*/
|
|
1000
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1001
|
+
/** If present, indicates the action that triggered the event. */
|
|
1002
|
+
originatedFrom?: string | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1005
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1006
|
+
*/
|
|
1007
|
+
entityEventSequence?: string | null;
|
|
1008
|
+
}
|
|
1009
|
+
/** @oneof */
|
|
1010
|
+
interface DomainEventBodyOneOf {
|
|
1011
|
+
createdEvent?: EntityCreatedEvent;
|
|
1012
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1013
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1014
|
+
actionEvent?: ActionEvent;
|
|
1015
|
+
}
|
|
1016
|
+
interface EntityCreatedEvent {
|
|
1017
|
+
entityAsJson?: string;
|
|
1018
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1019
|
+
restoreInfo?: RestoreInfo;
|
|
1020
|
+
}
|
|
1021
|
+
interface RestoreInfo {
|
|
1022
|
+
deletedDate?: Date | null;
|
|
1023
|
+
}
|
|
1024
|
+
interface EntityUpdatedEvent {
|
|
1025
|
+
/**
|
|
1026
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1027
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1028
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1029
|
+
*/
|
|
1030
|
+
currentEntityAsJson?: string;
|
|
1031
|
+
}
|
|
1032
|
+
interface EntityDeletedEvent {
|
|
1033
|
+
/** Entity that was deleted. */
|
|
1034
|
+
deletedEntityAsJson?: string | null;
|
|
1035
|
+
}
|
|
1036
|
+
interface ActionEvent {
|
|
1037
|
+
bodyAsJson?: string;
|
|
1038
|
+
}
|
|
1039
|
+
interface Empty {
|
|
1040
|
+
}
|
|
1041
|
+
interface MessageEnvelope {
|
|
1042
|
+
/**
|
|
1043
|
+
* App instance ID.
|
|
1044
|
+
* @format GUID
|
|
1045
|
+
*/
|
|
1046
|
+
instanceId?: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Event type.
|
|
1049
|
+
* @maxLength 150
|
|
1050
|
+
*/
|
|
1051
|
+
eventType?: string;
|
|
1052
|
+
/** The identification type and identity data. */
|
|
1053
|
+
identity?: IdentificationData;
|
|
1054
|
+
/** Stringify payload. */
|
|
1055
|
+
data?: string;
|
|
1056
|
+
}
|
|
1057
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1058
|
+
/**
|
|
1059
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1060
|
+
* @format GUID
|
|
1061
|
+
*/
|
|
1062
|
+
anonymousVisitorId?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* ID of a site visitor that has logged in to the site.
|
|
1065
|
+
* @format GUID
|
|
1066
|
+
*/
|
|
1067
|
+
memberId?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1070
|
+
* @format GUID
|
|
1071
|
+
*/
|
|
1072
|
+
wixUserId?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* ID of an app.
|
|
1075
|
+
* @format GUID
|
|
1076
|
+
*/
|
|
1077
|
+
appId?: string;
|
|
1078
|
+
/** @readonly */
|
|
1079
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1080
|
+
}
|
|
1081
|
+
/** @oneof */
|
|
1082
|
+
interface IdentificationDataIdOneOf {
|
|
1083
|
+
/**
|
|
1084
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1085
|
+
* @format GUID
|
|
1086
|
+
*/
|
|
1087
|
+
anonymousVisitorId?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* ID of a site visitor that has logged in to the site.
|
|
1090
|
+
* @format GUID
|
|
1091
|
+
*/
|
|
1092
|
+
memberId?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1095
|
+
* @format GUID
|
|
1096
|
+
*/
|
|
1097
|
+
wixUserId?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* ID of an app.
|
|
1100
|
+
* @format GUID
|
|
1101
|
+
*/
|
|
1102
|
+
appId?: string;
|
|
1103
|
+
}
|
|
1104
|
+
declare enum WebhookIdentityType {
|
|
1105
|
+
UNKNOWN = "UNKNOWN",
|
|
1106
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1107
|
+
MEMBER = "MEMBER",
|
|
1108
|
+
WIX_USER = "WIX_USER",
|
|
1109
|
+
APP = "APP"
|
|
1110
|
+
}
|
|
1111
|
+
/** @enumType */
|
|
1112
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
548
1113
|
|
|
549
1114
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
550
1115
|
getUrl: (context: any) => string;
|
|
@@ -572,4 +1137,4 @@ declare function redirectToCheckout(): __PublicMethodMetaInfo<'GET', {
|
|
|
572
1137
|
abandonedCheckoutId: string;
|
|
573
1138
|
}, RedirectToCheckoutRequest$1, RedirectToCheckoutRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
574
1139
|
|
|
575
|
-
export { type __PublicMethodMetaInfo, addAbandonedCheckoutActivity, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
|
|
1140
|
+
export { type AbandonedCheckout as AbandonedCheckoutOriginal, type AbandonedCheckoutRecovered as AbandonedCheckoutRecoveredOriginal, type ActionEvent as ActionEventOriginal, type Activity as ActivityOriginal, ActivityType as ActivityTypeOriginal, type ActivityTypeWithLiterals as ActivityTypeWithLiteralsOriginal, type AddAbandonedCheckoutActivityRequest as AddAbandonedCheckoutActivityRequestOriginal, type AddAbandonedCheckoutActivityResponse as AddAbandonedCheckoutActivityResponseOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type BulkAbandonedCheckoutResult as BulkAbandonedCheckoutResultOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkDeleteAbandonedCheckoutsRequest as BulkDeleteAbandonedCheckoutsRequestOriginal, type BulkDeleteAbandonedCheckoutsResponse as BulkDeleteAbandonedCheckoutsResponseOriginal, type BuyerInfo as BuyerInfoOriginal, type Cancel as CancelOriginal, type CartAbandonedEvent as CartAbandonedEventOriginal, type CartRecoveredEvent as CartRecoveredEventOriginal, type CatalogReference as CatalogReferenceOriginal, type Color as ColorOriginal, type CommonCursorPaging as CommonCursorPagingOriginal, type CommonCursors as CommonCursorsOriginal, type CommonPagingMetadataV2 as CommonPagingMetadataV2Original, type CommonPaging as CommonPagingOriginal, CommonSortOrder as CommonSortOrderOriginal, type CommonSortOrderWithLiterals as CommonSortOrderWithLiteralsOriginal, type CommonSorting as CommonSortingOriginal, type Complete as CompleteOriginal, type Coupon as CouponOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteAbandonedCheckoutRequest as DeleteAbandonedCheckoutRequestOriginal, type DeleteAbandonedCheckoutResponse as DeleteAbandonedCheckoutResponseOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetAbandonedCheckoutRequest as GetAbandonedCheckoutRequestOriginal, type GetAbandonedCheckoutResponse as GetAbandonedCheckoutResponseOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, Identity as IdentityOriginal, type IdentityWithLiterals as IdentityWithLiteralsOriginal, type Image as ImageOriginal, type ItemMetadata as ItemMetadataOriginal, type LineItem as LineItemOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PlainTextValue as PlainTextValueOriginal, type ProductName as ProductNameOriginal, type QueryAbandonedCheckoutsRequest as QueryAbandonedCheckoutsRequestOriginal, type QueryAbandonedCheckoutsResponse as QueryAbandonedCheckoutsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectToCheckoutRequest as RedirectToCheckoutRequestOriginal, type Reschedule as RescheduleOriginal, type RestoreInfo as RestoreInfoOriginal, type SearchAbandonedCheckoutsRequest as SearchAbandonedCheckoutsRequestOriginal, type SearchAbandonedCheckoutsResponse as SearchAbandonedCheckoutsResponseOriginal, type SearchDetails as SearchDetailsOriginal, type Search as SearchOriginal, type SearchPagingMethodOneOf as SearchPagingMethodOneOfOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type TaskActionActionOneOf as TaskActionActionOneOfOriginal, type TaskAction as TaskActionOriginal, type TaskKey as TaskKeyOriginal, type Task as TaskOriginal, type Totals as TotalsOriginal, type V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOfOriginal, type V1BuyerInfo as V1BuyerInfoOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, addAbandonedCheckoutActivity, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
ActivityTypeOriginal: () => ActivityType,
|
|
24
|
+
CommonSortOrderOriginal: () => CommonSortOrder,
|
|
25
|
+
DescriptionLineTypeOriginal: () => DescriptionLineType,
|
|
26
|
+
DiscountTypeOriginal: () => DiscountType,
|
|
27
|
+
IdentityOriginal: () => Identity,
|
|
28
|
+
ModeOriginal: () => Mode,
|
|
29
|
+
SortOrderOriginal: () => SortOrder,
|
|
30
|
+
StatusOriginal: () => Status,
|
|
31
|
+
VatTypeOriginal: () => VatType,
|
|
32
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
33
|
addAbandonedCheckoutActivity: () => addAbandonedCheckoutActivity2,
|
|
24
34
|
bulkDeleteAbandonedCheckouts: () => bulkDeleteAbandonedCheckouts2,
|
|
25
35
|
deleteAbandonedCheckout: () => deleteAbandonedCheckout2,
|
|
@@ -329,6 +339,71 @@ function redirectToCheckout(payload) {
|
|
|
329
339
|
return __redirectToCheckout;
|
|
330
340
|
}
|
|
331
341
|
|
|
342
|
+
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts
|
|
343
|
+
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
344
|
+
ActivityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
345
|
+
ActivityType2["SCHEDULED"] = "SCHEDULED";
|
|
346
|
+
ActivityType2["EMAIL_SENT"] = "EMAIL_SENT";
|
|
347
|
+
ActivityType2["EMAIL_NOT_SENT"] = "EMAIL_NOT_SENT";
|
|
348
|
+
ActivityType2["NOTIFICATION_SENT"] = "NOTIFICATION_SENT";
|
|
349
|
+
ActivityType2["TASK_CREATED"] = "TASK_CREATED";
|
|
350
|
+
ActivityType2["AUTOMATION_SKIPPED"] = "AUTOMATION_SKIPPED";
|
|
351
|
+
return ActivityType2;
|
|
352
|
+
})(ActivityType || {});
|
|
353
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
354
|
+
Status2["ABANDONED"] = "ABANDONED";
|
|
355
|
+
Status2["RECOVERED"] = "RECOVERED";
|
|
356
|
+
return Status2;
|
|
357
|
+
})(Status || {});
|
|
358
|
+
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
359
|
+
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
360
|
+
VatType2["CPF"] = "CPF";
|
|
361
|
+
VatType2["CNPJ"] = "CNPJ";
|
|
362
|
+
return VatType2;
|
|
363
|
+
})(VatType || {});
|
|
364
|
+
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
365
|
+
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
366
|
+
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
367
|
+
DescriptionLineType2["COLOR"] = "COLOR";
|
|
368
|
+
return DescriptionLineType2;
|
|
369
|
+
})(DescriptionLineType || {});
|
|
370
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
371
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
372
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
373
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
374
|
+
return DiscountType2;
|
|
375
|
+
})(DiscountType || {});
|
|
376
|
+
var Identity = /* @__PURE__ */ ((Identity2) => {
|
|
377
|
+
Identity2["ADMIN"] = "ADMIN";
|
|
378
|
+
Identity2["MEMBER"] = "MEMBER";
|
|
379
|
+
Identity2["VISITOR"] = "VISITOR";
|
|
380
|
+
Identity2["CONTACT"] = "CONTACT";
|
|
381
|
+
return Identity2;
|
|
382
|
+
})(Identity || {});
|
|
383
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
384
|
+
SortOrder2["ASC"] = "ASC";
|
|
385
|
+
SortOrder2["DESC"] = "DESC";
|
|
386
|
+
return SortOrder2;
|
|
387
|
+
})(SortOrder || {});
|
|
388
|
+
var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
|
|
389
|
+
CommonSortOrder2["ASC"] = "ASC";
|
|
390
|
+
CommonSortOrder2["DESC"] = "DESC";
|
|
391
|
+
return CommonSortOrder2;
|
|
392
|
+
})(CommonSortOrder || {});
|
|
393
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
394
|
+
Mode2["OR"] = "OR";
|
|
395
|
+
Mode2["AND"] = "AND";
|
|
396
|
+
return Mode2;
|
|
397
|
+
})(Mode || {});
|
|
398
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
399
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
400
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
401
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
402
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
403
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
404
|
+
return WebhookIdentityType2;
|
|
405
|
+
})(WebhookIdentityType || {});
|
|
406
|
+
|
|
332
407
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.meta.ts
|
|
333
408
|
function getAbandonedCheckout2() {
|
|
334
409
|
const payload = { abandonedCheckoutId: ":abandonedCheckoutId" };
|
|
@@ -458,6 +533,16 @@ function redirectToCheckout2() {
|
|
|
458
533
|
}
|
|
459
534
|
// Annotate the CommonJS export names for ESM import in node:
|
|
460
535
|
0 && (module.exports = {
|
|
536
|
+
ActivityTypeOriginal,
|
|
537
|
+
CommonSortOrderOriginal,
|
|
538
|
+
DescriptionLineTypeOriginal,
|
|
539
|
+
DiscountTypeOriginal,
|
|
540
|
+
IdentityOriginal,
|
|
541
|
+
ModeOriginal,
|
|
542
|
+
SortOrderOriginal,
|
|
543
|
+
StatusOriginal,
|
|
544
|
+
VatTypeOriginal,
|
|
545
|
+
WebhookIdentityTypeOriginal,
|
|
461
546
|
addAbandonedCheckoutActivity,
|
|
462
547
|
bulkDeleteAbandonedCheckouts,
|
|
463
548
|
deleteAbandonedCheckout,
|