@wix/auto_sdk_ecom_abandoned-checkouts 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +9 -17
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +17 -33
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +3 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +9 -17
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +17 -33
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +3 -1
- package/build/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +9 -17
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +17 -33
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +3 -1
- package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.d.ts +9 -17
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts +17 -33
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js +3 -1
- package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -601,25 +601,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
601
601
|
updatedEvent?: EntityUpdatedEvent;
|
|
602
602
|
deletedEvent?: EntityDeletedEvent;
|
|
603
603
|
actionEvent?: ActionEvent;
|
|
604
|
-
/**
|
|
605
|
-
* Unique event ID.
|
|
606
|
-
* Allows clients to ignore duplicate webhooks.
|
|
607
|
-
*/
|
|
604
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
608
605
|
id?: string;
|
|
609
606
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
607
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
608
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
612
609
|
*/
|
|
613
610
|
entityFqdn?: string;
|
|
614
611
|
/**
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
612
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
613
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
618
614
|
*/
|
|
619
615
|
slug?: string;
|
|
620
616
|
/** ID of the entity associated with the event. */
|
|
621
617
|
entityId?: string;
|
|
622
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
618
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
623
619
|
eventTime?: Date | null;
|
|
624
620
|
/**
|
|
625
621
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -629,12 +625,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
629
625
|
/** If present, indicates the action that triggered the event. */
|
|
630
626
|
originatedFrom?: string | null;
|
|
631
627
|
/**
|
|
632
|
-
* A sequence number
|
|
633
|
-
*
|
|
634
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
635
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
636
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
637
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
628
|
+
* 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.
|
|
629
|
+
* 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.
|
|
638
630
|
*/
|
|
639
631
|
entityEventSequence?: string | null;
|
|
640
632
|
}
|
|
@@ -662,7 +654,7 @@ export interface EntityUpdatedEvent {
|
|
|
662
654
|
currentEntityAsJson?: string;
|
|
663
655
|
}
|
|
664
656
|
export interface EntityDeletedEvent {
|
|
665
|
-
/** Entity that was deleted */
|
|
657
|
+
/** Entity that was deleted. */
|
|
666
658
|
deletedEntityAsJson?: string | null;
|
|
667
659
|
}
|
|
668
660
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":";;;AA6DA,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AA2FD,qBAAqB;AACrB,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB;AAsFD,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB;AAgHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAsGD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,uBAAuB;IACvB,8BAAW,CAAA;IACX,wBAAwB;IACxB,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAoBD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":";;;AA6DA,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,i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AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -608,25 +608,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
608
608
|
updatedEvent?: EntityUpdatedEvent;
|
|
609
609
|
deletedEvent?: EntityDeletedEvent;
|
|
610
610
|
actionEvent?: ActionEvent;
|
|
611
|
-
/**
|
|
612
|
-
* Unique event ID.
|
|
613
|
-
* Allows clients to ignore duplicate webhooks.
|
|
614
|
-
*/
|
|
611
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
615
612
|
_id?: string;
|
|
616
613
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
614
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
615
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
619
616
|
*/
|
|
620
617
|
entityFqdn?: string;
|
|
621
618
|
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
619
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
620
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
625
621
|
*/
|
|
626
622
|
slug?: string;
|
|
627
623
|
/** ID of the entity associated with the event. */
|
|
628
624
|
entityId?: string;
|
|
629
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
625
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
630
626
|
eventTime?: Date | null;
|
|
631
627
|
/**
|
|
632
628
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -636,12 +632,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
636
632
|
/** If present, indicates the action that triggered the event. */
|
|
637
633
|
originatedFrom?: string | null;
|
|
638
634
|
/**
|
|
639
|
-
* A sequence number
|
|
640
|
-
*
|
|
641
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
642
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
643
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
644
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
635
|
+
* 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.
|
|
636
|
+
* 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.
|
|
645
637
|
*/
|
|
646
638
|
entityEventSequence?: string | null;
|
|
647
639
|
}
|
|
@@ -667,7 +659,7 @@ export interface EntityUpdatedEvent {
|
|
|
667
659
|
currentEntity?: string;
|
|
668
660
|
}
|
|
669
661
|
export interface EntityDeletedEvent {
|
|
670
|
-
/** Entity that was deleted */
|
|
662
|
+
/** Entity that was deleted. */
|
|
671
663
|
deletedEntity?: string | null;
|
|
672
664
|
}
|
|
673
665
|
export interface ActionEvent {
|
|
@@ -760,25 +752,21 @@ export interface BaseEventMetadata {
|
|
|
760
752
|
identity?: IdentificationData;
|
|
761
753
|
}
|
|
762
754
|
export interface EventMetadata extends BaseEventMetadata {
|
|
763
|
-
/**
|
|
764
|
-
* Unique event ID.
|
|
765
|
-
* Allows clients to ignore duplicate webhooks.
|
|
766
|
-
*/
|
|
755
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
767
756
|
_id?: string;
|
|
768
757
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
758
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
759
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
771
760
|
*/
|
|
772
761
|
entityFqdn?: string;
|
|
773
762
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
763
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
764
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
777
765
|
*/
|
|
778
766
|
slug?: string;
|
|
779
767
|
/** ID of the entity associated with the event. */
|
|
780
768
|
entityId?: string;
|
|
781
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
769
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
782
770
|
eventTime?: Date | null;
|
|
783
771
|
/**
|
|
784
772
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -788,12 +776,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
788
776
|
/** If present, indicates the action that triggered the event. */
|
|
789
777
|
originatedFrom?: string | null;
|
|
790
778
|
/**
|
|
791
|
-
* A sequence number
|
|
792
|
-
*
|
|
793
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
794
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
795
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
796
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
779
|
+
* 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.
|
|
780
|
+
* 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.
|
|
797
781
|
*/
|
|
798
782
|
entityEventSequence?: string | null;
|
|
799
783
|
}
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixEcomV1AbandonedCheckout = __importStar(require("./ecom-v1-abandoned-checkout-abandoned-checkouts.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var ActivityType;
|
|
32
34
|
(function (ActivityType) {
|
|
33
35
|
/** Not implemented. */
|
|
@@ -245,7 +247,7 @@ function queryAbandonedCheckouts() {
|
|
|
245
247
|
});
|
|
246
248
|
},
|
|
247
249
|
responseTransformer: ({ data, }) => {
|
|
248
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
250
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
249
251
|
return {
|
|
250
252
|
items: transformedData?.abandonedCheckouts,
|
|
251
253
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,+HAAiH;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,+HAAiH;AACjH,aAAa;AACb,sFAAkF;AA6DlF,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yC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gB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,mBAAmB,EAAE,MAAM;gBAC3B,UAAU,EAAE,MAAM;aACnB;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,EAAE,YAAY,CAAC,CACtC,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA9CD,gDA8CC"}
|
|
@@ -601,25 +601,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
601
601
|
updatedEvent?: EntityUpdatedEvent;
|
|
602
602
|
deletedEvent?: EntityDeletedEvent;
|
|
603
603
|
actionEvent?: ActionEvent;
|
|
604
|
-
/**
|
|
605
|
-
* Unique event ID.
|
|
606
|
-
* Allows clients to ignore duplicate webhooks.
|
|
607
|
-
*/
|
|
604
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
608
605
|
id?: string;
|
|
609
606
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
607
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
608
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
612
609
|
*/
|
|
613
610
|
entityFqdn?: string;
|
|
614
611
|
/**
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
612
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
613
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
618
614
|
*/
|
|
619
615
|
slug?: string;
|
|
620
616
|
/** ID of the entity associated with the event. */
|
|
621
617
|
entityId?: string;
|
|
622
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
618
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
623
619
|
eventTime?: Date | null;
|
|
624
620
|
/**
|
|
625
621
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -629,12 +625,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
629
625
|
/** If present, indicates the action that triggered the event. */
|
|
630
626
|
originatedFrom?: string | null;
|
|
631
627
|
/**
|
|
632
|
-
* A sequence number
|
|
633
|
-
*
|
|
634
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
635
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
636
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
637
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
628
|
+
* 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.
|
|
629
|
+
* 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.
|
|
638
630
|
*/
|
|
639
631
|
entityEventSequence?: string | null;
|
|
640
632
|
}
|
|
@@ -662,7 +654,7 @@ export interface EntityUpdatedEvent {
|
|
|
662
654
|
currentEntityAsJson?: string;
|
|
663
655
|
}
|
|
664
656
|
export interface EntityDeletedEvent {
|
|
665
|
-
/** Entity that was deleted */
|
|
657
|
+
/** Entity that was deleted. */
|
|
666
658
|
deletedEntityAsJson?: string | null;
|
|
667
659
|
}
|
|
668
660
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":"AA6DA,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACv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,EALW,IAAI,KAAJ,IAAI,QAKf;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":"AA6DA,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AA2FD,qBAAqB;AACrB,MAAM,CAAN,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;AAsFD,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB;AAgHD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsGD,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,uBAAuB;IACvB,8BAAW,CAAA;IACX,wBAAwB;IACxB,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAoBD,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AA0QD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -608,25 +608,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
608
608
|
updatedEvent?: EntityUpdatedEvent;
|
|
609
609
|
deletedEvent?: EntityDeletedEvent;
|
|
610
610
|
actionEvent?: ActionEvent;
|
|
611
|
-
/**
|
|
612
|
-
* Unique event ID.
|
|
613
|
-
* Allows clients to ignore duplicate webhooks.
|
|
614
|
-
*/
|
|
611
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
615
612
|
_id?: string;
|
|
616
613
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
614
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
615
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
619
616
|
*/
|
|
620
617
|
entityFqdn?: string;
|
|
621
618
|
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
619
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
620
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
625
621
|
*/
|
|
626
622
|
slug?: string;
|
|
627
623
|
/** ID of the entity associated with the event. */
|
|
628
624
|
entityId?: string;
|
|
629
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
625
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
630
626
|
eventTime?: Date | null;
|
|
631
627
|
/**
|
|
632
628
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -636,12 +632,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
636
632
|
/** If present, indicates the action that triggered the event. */
|
|
637
633
|
originatedFrom?: string | null;
|
|
638
634
|
/**
|
|
639
|
-
* A sequence number
|
|
640
|
-
*
|
|
641
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
642
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
643
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
644
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
635
|
+
* 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.
|
|
636
|
+
* 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.
|
|
645
637
|
*/
|
|
646
638
|
entityEventSequence?: string | null;
|
|
647
639
|
}
|
|
@@ -667,7 +659,7 @@ export interface EntityUpdatedEvent {
|
|
|
667
659
|
currentEntity?: string;
|
|
668
660
|
}
|
|
669
661
|
export interface EntityDeletedEvent {
|
|
670
|
-
/** Entity that was deleted */
|
|
662
|
+
/** Entity that was deleted. */
|
|
671
663
|
deletedEntity?: string | null;
|
|
672
664
|
}
|
|
673
665
|
export interface ActionEvent {
|
|
@@ -760,25 +752,21 @@ export interface BaseEventMetadata {
|
|
|
760
752
|
identity?: IdentificationData;
|
|
761
753
|
}
|
|
762
754
|
export interface EventMetadata extends BaseEventMetadata {
|
|
763
|
-
/**
|
|
764
|
-
* Unique event ID.
|
|
765
|
-
* Allows clients to ignore duplicate webhooks.
|
|
766
|
-
*/
|
|
755
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
767
756
|
_id?: string;
|
|
768
757
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
758
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
759
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
771
760
|
*/
|
|
772
761
|
entityFqdn?: string;
|
|
773
762
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
763
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
764
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
777
765
|
*/
|
|
778
766
|
slug?: string;
|
|
779
767
|
/** ID of the entity associated with the event. */
|
|
780
768
|
entityId?: string;
|
|
781
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
769
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
782
770
|
eventTime?: Date | null;
|
|
783
771
|
/**
|
|
784
772
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -788,12 +776,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
788
776
|
/** If present, indicates the action that triggered the event. */
|
|
789
777
|
originatedFrom?: string | null;
|
|
790
778
|
/**
|
|
791
|
-
* A sequence number
|
|
792
|
-
*
|
|
793
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
794
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
795
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
796
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
779
|
+
* 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.
|
|
780
|
+
* 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.
|
|
797
781
|
*/
|
|
798
782
|
entityEventSequence?: string | null;
|
|
799
783
|
}
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixEcomV1AbandonedCheckout from './ecom-v1-abandoned-checkout-abandoned-checkouts.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var ActivityType;
|
|
6
8
|
(function (ActivityType) {
|
|
7
9
|
/** Not implemented. */
|
|
@@ -217,7 +219,7 @@ export function queryAbandonedCheckouts() {
|
|
|
217
219
|
});
|
|
218
220
|
},
|
|
219
221
|
responseTransformer: ({ data, }) => {
|
|
220
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
222
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
221
223
|
return {
|
|
222
224
|
items: transformedData?.abandonedCheckouts,
|
|
223
225
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,0DAA0D,CAAC;AACjH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA6DlF,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AA+FD,qBAAqB;AACrB,MAAM,CAAN,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,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;AACH,CAAC;AAOD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,mBAA2B,EAC3B,UAAkB;IAOlB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,mBAAmB,EAAE,mBAAmB;QACxC,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,oCAAoC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAEnE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,mBAAmB,EAAE,MAAM;gBAC3B,UAAU,EAAE,MAAM;aACnB;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,EAAE,YAAY,CAAC,CACtC,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -601,25 +601,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
601
601
|
updatedEvent?: EntityUpdatedEvent;
|
|
602
602
|
deletedEvent?: EntityDeletedEvent;
|
|
603
603
|
actionEvent?: ActionEvent;
|
|
604
|
-
/**
|
|
605
|
-
* Unique event ID.
|
|
606
|
-
* Allows clients to ignore duplicate webhooks.
|
|
607
|
-
*/
|
|
604
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
608
605
|
id?: string;
|
|
609
606
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
607
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
608
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
612
609
|
*/
|
|
613
610
|
entityFqdn?: string;
|
|
614
611
|
/**
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
612
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
613
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
618
614
|
*/
|
|
619
615
|
slug?: string;
|
|
620
616
|
/** ID of the entity associated with the event. */
|
|
621
617
|
entityId?: string;
|
|
622
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
618
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
623
619
|
eventTime?: Date | null;
|
|
624
620
|
/**
|
|
625
621
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -629,12 +625,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
629
625
|
/** If present, indicates the action that triggered the event. */
|
|
630
626
|
originatedFrom?: string | null;
|
|
631
627
|
/**
|
|
632
|
-
* A sequence number
|
|
633
|
-
*
|
|
634
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
635
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
636
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
637
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
628
|
+
* 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.
|
|
629
|
+
* 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.
|
|
638
630
|
*/
|
|
639
631
|
entityEventSequence?: string | null;
|
|
640
632
|
}
|
|
@@ -662,7 +654,7 @@ export interface EntityUpdatedEvent {
|
|
|
662
654
|
currentEntityAsJson?: string;
|
|
663
655
|
}
|
|
664
656
|
export interface EntityDeletedEvent {
|
|
665
|
-
/** Entity that was deleted */
|
|
657
|
+
/** Entity that was deleted. */
|
|
666
658
|
deletedEntityAsJson?: string | null;
|
|
667
659
|
}
|
|
668
660
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":";;;AA6DA,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AA2FD,qBAAqB;AACrB,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB;AAsFD,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB;AAgHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAsGD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,uBAAuB;IACvB,8BAAW,CAAA;IACX,wBAAwB;IACxB,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAoBD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":";;;AA6DA,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AA2FD,qBAAqB;AACrB,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB;AAsFD,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB;AAgHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAsGD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,uBAAuB;IACvB,8BAAW,CAAA;IACX,wBAAwB;IACxB,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAoBD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AA0QD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.d.ts
CHANGED
|
@@ -608,25 +608,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
608
608
|
updatedEvent?: EntityUpdatedEvent;
|
|
609
609
|
deletedEvent?: EntityDeletedEvent;
|
|
610
610
|
actionEvent?: ActionEvent;
|
|
611
|
-
/**
|
|
612
|
-
* Unique event ID.
|
|
613
|
-
* Allows clients to ignore duplicate webhooks.
|
|
614
|
-
*/
|
|
611
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
615
612
|
_id?: string;
|
|
616
613
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
614
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
615
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
619
616
|
*/
|
|
620
617
|
entityFqdn?: string;
|
|
621
618
|
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
619
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
620
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
625
621
|
*/
|
|
626
622
|
slug?: string;
|
|
627
623
|
/** ID of the entity associated with the event. */
|
|
628
624
|
entityId?: string;
|
|
629
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
625
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
630
626
|
eventTime?: Date | null;
|
|
631
627
|
/**
|
|
632
628
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -636,12 +632,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
636
632
|
/** If present, indicates the action that triggered the event. */
|
|
637
633
|
originatedFrom?: string | null;
|
|
638
634
|
/**
|
|
639
|
-
* A sequence number
|
|
640
|
-
*
|
|
641
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
642
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
643
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
644
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
635
|
+
* 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.
|
|
636
|
+
* 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.
|
|
645
637
|
*/
|
|
646
638
|
entityEventSequence?: string | null;
|
|
647
639
|
}
|
|
@@ -667,7 +659,7 @@ export interface EntityUpdatedEvent {
|
|
|
667
659
|
currentEntity?: string;
|
|
668
660
|
}
|
|
669
661
|
export interface EntityDeletedEvent {
|
|
670
|
-
/** Entity that was deleted */
|
|
662
|
+
/** Entity that was deleted. */
|
|
671
663
|
deletedEntity?: string | null;
|
|
672
664
|
}
|
|
673
665
|
export interface ActionEvent {
|
|
@@ -760,25 +752,21 @@ export interface BaseEventMetadata {
|
|
|
760
752
|
identity?: IdentificationData;
|
|
761
753
|
}
|
|
762
754
|
export interface EventMetadata extends BaseEventMetadata {
|
|
763
|
-
/**
|
|
764
|
-
* Unique event ID.
|
|
765
|
-
* Allows clients to ignore duplicate webhooks.
|
|
766
|
-
*/
|
|
755
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
767
756
|
_id?: string;
|
|
768
757
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
758
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
759
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
771
760
|
*/
|
|
772
761
|
entityFqdn?: string;
|
|
773
762
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
763
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
764
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
777
765
|
*/
|
|
778
766
|
slug?: string;
|
|
779
767
|
/** ID of the entity associated with the event. */
|
|
780
768
|
entityId?: string;
|
|
781
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
769
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
782
770
|
eventTime?: Date | null;
|
|
783
771
|
/**
|
|
784
772
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -788,12 +776,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
788
776
|
/** If present, indicates the action that triggered the event. */
|
|
789
777
|
originatedFrom?: string | null;
|
|
790
778
|
/**
|
|
791
|
-
* A sequence number
|
|
792
|
-
*
|
|
793
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
794
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
795
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
796
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
779
|
+
* 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.
|
|
780
|
+
* 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.
|
|
797
781
|
*/
|
|
798
782
|
entityEventSequence?: string | null;
|
|
799
783
|
}
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixEcomV1AbandonedCheckout = __importStar(require("./ecom-v1-abandoned-checkout-abandoned-checkouts.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var ActivityType;
|
|
32
34
|
(function (ActivityType) {
|
|
33
35
|
/** Not implemented. */
|
|
@@ -245,7 +247,7 @@ function queryAbandonedCheckouts() {
|
|
|
245
247
|
});
|
|
246
248
|
},
|
|
247
249
|
responseTransformer: ({ data, }) => {
|
|
248
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
250
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
249
251
|
return {
|
|
250
252
|
items: transformedData?.abandonedCheckouts,
|
|
251
253
|
pagingMetadata: transformedData?.metadata,
|
package/build/internal/cjs/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,+HAAiH;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,+HAAiH;AACjH,aAAa;AACb,sFAAkF;AA6DlF,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,IAAY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AAC,qBAAqB,EAAE,YAAY,CAAC,CACtC,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA9CD,gDA8CC"}
|
|
@@ -601,25 +601,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
601
601
|
updatedEvent?: EntityUpdatedEvent;
|
|
602
602
|
deletedEvent?: EntityDeletedEvent;
|
|
603
603
|
actionEvent?: ActionEvent;
|
|
604
|
-
/**
|
|
605
|
-
* Unique event ID.
|
|
606
|
-
* Allows clients to ignore duplicate webhooks.
|
|
607
|
-
*/
|
|
604
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
608
605
|
id?: string;
|
|
609
606
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
607
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
608
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
612
609
|
*/
|
|
613
610
|
entityFqdn?: string;
|
|
614
611
|
/**
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
612
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
613
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
618
614
|
*/
|
|
619
615
|
slug?: string;
|
|
620
616
|
/** ID of the entity associated with the event. */
|
|
621
617
|
entityId?: string;
|
|
622
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
618
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
623
619
|
eventTime?: Date | null;
|
|
624
620
|
/**
|
|
625
621
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -629,12 +625,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
629
625
|
/** If present, indicates the action that triggered the event. */
|
|
630
626
|
originatedFrom?: string | null;
|
|
631
627
|
/**
|
|
632
|
-
* A sequence number
|
|
633
|
-
*
|
|
634
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
635
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
636
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
637
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
628
|
+
* 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.
|
|
629
|
+
* 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.
|
|
638
630
|
*/
|
|
639
631
|
entityEventSequence?: string | null;
|
|
640
632
|
}
|
|
@@ -662,7 +654,7 @@ export interface EntityUpdatedEvent {
|
|
|
662
654
|
currentEntityAsJson?: string;
|
|
663
655
|
}
|
|
664
656
|
export interface EntityDeletedEvent {
|
|
665
|
-
/** Entity that was deleted */
|
|
657
|
+
/** Entity that was deleted. */
|
|
666
658
|
deletedEntityAsJson?: string | null;
|
|
667
659
|
}
|
|
668
660
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":"AA6DA,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AA2FD,qBAAqB;AACrB,MAAM,CAAN,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;AAsFD,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB;AAgHD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsGD,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,uBAAuB;IACvB,8BAAW,CAAA;IACX,wBAAwB;IACxB,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAoBD,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.types.ts"],"names":[],"mappings":"AA6DA,MAAM,CAAN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AAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AA0QD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -608,25 +608,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
608
608
|
updatedEvent?: EntityUpdatedEvent;
|
|
609
609
|
deletedEvent?: EntityDeletedEvent;
|
|
610
610
|
actionEvent?: ActionEvent;
|
|
611
|
-
/**
|
|
612
|
-
* Unique event ID.
|
|
613
|
-
* Allows clients to ignore duplicate webhooks.
|
|
614
|
-
*/
|
|
611
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
615
612
|
_id?: string;
|
|
616
613
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
614
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
615
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
619
616
|
*/
|
|
620
617
|
entityFqdn?: string;
|
|
621
618
|
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
619
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
620
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
625
621
|
*/
|
|
626
622
|
slug?: string;
|
|
627
623
|
/** ID of the entity associated with the event. */
|
|
628
624
|
entityId?: string;
|
|
629
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
625
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
630
626
|
eventTime?: Date | null;
|
|
631
627
|
/**
|
|
632
628
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -636,12 +632,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
636
632
|
/** If present, indicates the action that triggered the event. */
|
|
637
633
|
originatedFrom?: string | null;
|
|
638
634
|
/**
|
|
639
|
-
* A sequence number
|
|
640
|
-
*
|
|
641
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
642
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
643
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
644
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
635
|
+
* 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.
|
|
636
|
+
* 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.
|
|
645
637
|
*/
|
|
646
638
|
entityEventSequence?: string | null;
|
|
647
639
|
}
|
|
@@ -667,7 +659,7 @@ export interface EntityUpdatedEvent {
|
|
|
667
659
|
currentEntity?: string;
|
|
668
660
|
}
|
|
669
661
|
export interface EntityDeletedEvent {
|
|
670
|
-
/** Entity that was deleted */
|
|
662
|
+
/** Entity that was deleted. */
|
|
671
663
|
deletedEntity?: string | null;
|
|
672
664
|
}
|
|
673
665
|
export interface ActionEvent {
|
|
@@ -760,25 +752,21 @@ export interface BaseEventMetadata {
|
|
|
760
752
|
identity?: IdentificationData;
|
|
761
753
|
}
|
|
762
754
|
export interface EventMetadata extends BaseEventMetadata {
|
|
763
|
-
/**
|
|
764
|
-
* Unique event ID.
|
|
765
|
-
* Allows clients to ignore duplicate webhooks.
|
|
766
|
-
*/
|
|
755
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
767
756
|
_id?: string;
|
|
768
757
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
758
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
759
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
771
760
|
*/
|
|
772
761
|
entityFqdn?: string;
|
|
773
762
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
763
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
764
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
777
765
|
*/
|
|
778
766
|
slug?: string;
|
|
779
767
|
/** ID of the entity associated with the event. */
|
|
780
768
|
entityId?: string;
|
|
781
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
769
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
782
770
|
eventTime?: Date | null;
|
|
783
771
|
/**
|
|
784
772
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -788,12 +776,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
788
776
|
/** If present, indicates the action that triggered the event. */
|
|
789
777
|
originatedFrom?: string | null;
|
|
790
778
|
/**
|
|
791
|
-
* A sequence number
|
|
792
|
-
*
|
|
793
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
794
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
795
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
796
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
779
|
+
* 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.
|
|
780
|
+
* 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.
|
|
797
781
|
*/
|
|
798
782
|
entityEventSequence?: string | null;
|
|
799
783
|
}
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixEcomV1AbandonedCheckout from './ecom-v1-abandoned-checkout-abandoned-checkouts.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var ActivityType;
|
|
6
8
|
(function (ActivityType) {
|
|
7
9
|
/** Not implemented. */
|
|
@@ -217,7 +219,7 @@ export function queryAbandonedCheckouts() {
|
|
|
217
219
|
});
|
|
218
220
|
},
|
|
219
221
|
responseTransformer: ({ data, }) => {
|
|
220
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
222
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
221
223
|
return {
|
|
222
224
|
items: transformedData?.abandonedCheckouts,
|
|
223
225
|
pagingMetadata: transformedData?.metadata,
|
package/build/internal/es/src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-v1-abandoned-checkout-abandoned-checkouts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,0DAA0D,CAAC;AACjH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA6DlF,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,uBAAuB;IACvB,6CAA6B,CAAA;IAC7B,iBAAiB;IACjB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,yCAAyB,CAAA;IACzB,sBAAsB;IACtB,iDAAiC,CAAA;IACjC,yBAAyB;IACzB,uDAAuC,CAAA;IACvC,oBAAoB;IACpB,6CAA6B,CAAA;AAC/B,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB;AAED,wCAAwC;AACxC,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,iBAAiB;IACjB,iCAAuB,CAAA;IACvB,iBAAiB;IACjB,iCAAuB,CAAA;AACzB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AA+FD,qBAAqB;AACrB,MAAM,CAAN,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;AA0FD,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,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,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,mBAAmB,EAAE,mBAAmB;QACxC,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,oCAAoC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAEnE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,mBAAmB,EAAE,MAAM;gBAC3B,UAAU,EAAE,MAAM;aACnB;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,EAAE,YAAY,CAAC,CACtC,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_abandoned-checkouts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.ecom.v1.abandoned_checkout"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "e7608a7a876cf133920faed31e14ef901a2508d7b6b303292a4df496"
|
|
52
52
|
}
|