@wix/auto_sdk_ecom_discount-rules 1.0.11 → 1.0.13
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-discounts-v1-discount-rule-discount-rules.types.d.ts +9 -17
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +17 -33
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js +3 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +9 -17
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +17 -33
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js +3 -1
- package/build/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +9 -17
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +17 -33
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js +3 -1
- package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.d.ts +9 -17
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.types.js.map +1 -1
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.d.ts +17 -33
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js +3 -1
- package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -678,25 +678,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
678
678
|
updatedEvent?: EntityUpdatedEvent;
|
|
679
679
|
deletedEvent?: EntityDeletedEvent;
|
|
680
680
|
actionEvent?: ActionEvent;
|
|
681
|
-
/**
|
|
682
|
-
* Unique event ID.
|
|
683
|
-
* Allows clients to ignore duplicate webhooks.
|
|
684
|
-
*/
|
|
681
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
685
682
|
id?: string;
|
|
686
683
|
/**
|
|
687
|
-
*
|
|
688
|
-
*
|
|
684
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
685
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
689
686
|
*/
|
|
690
687
|
entityFqdn?: string;
|
|
691
688
|
/**
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
689
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
690
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
695
691
|
*/
|
|
696
692
|
slug?: string;
|
|
697
693
|
/** ID of the entity associated with the event. */
|
|
698
694
|
entityId?: string;
|
|
699
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
695
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
700
696
|
eventTime?: Date | null;
|
|
701
697
|
/**
|
|
702
698
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -706,12 +702,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
706
702
|
/** If present, indicates the action that triggered the event. */
|
|
707
703
|
originatedFrom?: string | null;
|
|
708
704
|
/**
|
|
709
|
-
* A sequence number
|
|
710
|
-
*
|
|
711
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
712
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
713
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
714
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
705
|
+
* 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.
|
|
706
|
+
* 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.
|
|
715
707
|
*/
|
|
716
708
|
entityEventSequence?: string | null;
|
|
717
709
|
}
|
|
@@ -739,7 +731,7 @@ export interface EntityUpdatedEvent {
|
|
|
739
731
|
currentEntityAsJson?: string;
|
|
740
732
|
}
|
|
741
733
|
export interface EntityDeletedEvent {
|
|
742
|
-
/** Entity that was deleted */
|
|
734
|
+
/** Entity that was deleted. */
|
|
743
735
|
deletedEntityAsJson?: string | null;
|
|
744
736
|
}
|
|
745
737
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmGD,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB;AAmED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AAWD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAiED,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AA2FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmG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,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -692,25 +692,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
692
692
|
updatedEvent?: EntityUpdatedEvent;
|
|
693
693
|
deletedEvent?: EntityDeletedEvent;
|
|
694
694
|
actionEvent?: ActionEvent;
|
|
695
|
-
/**
|
|
696
|
-
* Unique event ID.
|
|
697
|
-
* Allows clients to ignore duplicate webhooks.
|
|
698
|
-
*/
|
|
695
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
699
696
|
_id?: string;
|
|
700
697
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
698
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
699
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
703
700
|
*/
|
|
704
701
|
entityFqdn?: string;
|
|
705
702
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
703
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
704
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
709
705
|
*/
|
|
710
706
|
slug?: string;
|
|
711
707
|
/** ID of the entity associated with the event. */
|
|
712
708
|
entityId?: string;
|
|
713
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
709
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
714
710
|
eventTime?: Date | null;
|
|
715
711
|
/**
|
|
716
712
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -720,12 +716,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
720
716
|
/** If present, indicates the action that triggered the event. */
|
|
721
717
|
originatedFrom?: string | null;
|
|
722
718
|
/**
|
|
723
|
-
* A sequence number
|
|
724
|
-
*
|
|
725
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
726
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
727
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
728
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
719
|
+
* 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.
|
|
720
|
+
* 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.
|
|
729
721
|
*/
|
|
730
722
|
entityEventSequence?: string | null;
|
|
731
723
|
}
|
|
@@ -751,7 +743,7 @@ export interface EntityUpdatedEvent {
|
|
|
751
743
|
currentEntity?: string;
|
|
752
744
|
}
|
|
753
745
|
export interface EntityDeletedEvent {
|
|
754
|
-
/** Entity that was deleted */
|
|
746
|
+
/** Entity that was deleted. */
|
|
755
747
|
deletedEntity?: string | null;
|
|
756
748
|
}
|
|
757
749
|
export interface ActionEvent {
|
|
@@ -848,25 +840,21 @@ export interface BaseEventMetadata {
|
|
|
848
840
|
identity?: IdentificationData;
|
|
849
841
|
}
|
|
850
842
|
export interface EventMetadata extends BaseEventMetadata {
|
|
851
|
-
/**
|
|
852
|
-
* Unique event ID.
|
|
853
|
-
* Allows clients to ignore duplicate webhooks.
|
|
854
|
-
*/
|
|
843
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
855
844
|
_id?: string;
|
|
856
845
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
846
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
847
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
859
848
|
*/
|
|
860
849
|
entityFqdn?: string;
|
|
861
850
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
851
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
852
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
865
853
|
*/
|
|
866
854
|
slug?: string;
|
|
867
855
|
/** ID of the entity associated with the event. */
|
|
868
856
|
entityId?: string;
|
|
869
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
857
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
870
858
|
eventTime?: Date | null;
|
|
871
859
|
/**
|
|
872
860
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -876,12 +864,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
876
864
|
/** If present, indicates the action that triggered the event. */
|
|
877
865
|
originatedFrom?: string | null;
|
|
878
866
|
/**
|
|
879
|
-
* A sequence number
|
|
880
|
-
*
|
|
881
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
882
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
883
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
884
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
867
|
+
* 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.
|
|
868
|
+
* 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.
|
|
885
869
|
*/
|
|
886
870
|
entityEventSequence?: string | null;
|
|
887
871
|
}
|
|
@@ -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 ambassadorWixEcomDiscountsV1DiscountRule = __importStar(require("./ecom-discounts-v1-discount-rule-discount-rules.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var ScopeType;
|
|
32
34
|
(function (ScopeType) {
|
|
33
35
|
ScopeType["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
|
|
@@ -347,7 +349,7 @@ function queryDiscountRules() {
|
|
|
347
349
|
});
|
|
348
350
|
},
|
|
349
351
|
responseTransformer: ({ data, }) => {
|
|
350
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
352
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
351
353
|
return {
|
|
352
354
|
items: transformedData?.discountRules,
|
|
353
355
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,mIAAqH;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,mIAAqH;AACrH,aAAa;AACb,sFAAkF;AAsIlF,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,C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C;gBACZ,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;aACjB,CAAC,CAAC;QACL,CAAC;QACD,mBAAmB,EAAE,CAAC,EACpB,IAAI,GACqC,EAAE,EAAE;YAC7C,MAAM,eAAe,GAAG,IAAA,gEAAuC,EAC7D,IAAA,gCAAc,EAAC,IAAI,EAAE,EAAE,CAAC,CACzB,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,aAAa;gBACrC,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AA1DD,gDA0DC"}
|
|
@@ -678,25 +678,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
678
678
|
updatedEvent?: EntityUpdatedEvent;
|
|
679
679
|
deletedEvent?: EntityDeletedEvent;
|
|
680
680
|
actionEvent?: ActionEvent;
|
|
681
|
-
/**
|
|
682
|
-
* Unique event ID.
|
|
683
|
-
* Allows clients to ignore duplicate webhooks.
|
|
684
|
-
*/
|
|
681
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
685
682
|
id?: string;
|
|
686
683
|
/**
|
|
687
|
-
*
|
|
688
|
-
*
|
|
684
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
685
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
689
686
|
*/
|
|
690
687
|
entityFqdn?: string;
|
|
691
688
|
/**
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
689
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
690
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
695
691
|
*/
|
|
696
692
|
slug?: string;
|
|
697
693
|
/** ID of the entity associated with the event. */
|
|
698
694
|
entityId?: string;
|
|
699
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
695
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
700
696
|
eventTime?: Date | null;
|
|
701
697
|
/**
|
|
702
698
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -706,12 +702,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
706
702
|
/** If present, indicates the action that triggered the event. */
|
|
707
703
|
originatedFrom?: string | null;
|
|
708
704
|
/**
|
|
709
|
-
* A sequence number
|
|
710
|
-
*
|
|
711
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
712
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
713
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
714
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
705
|
+
* 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.
|
|
706
|
+
* 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.
|
|
715
707
|
*/
|
|
716
708
|
entityEventSequence?: string | null;
|
|
717
709
|
}
|
|
@@ -739,7 +731,7 @@ export interface EntityUpdatedEvent {
|
|
|
739
731
|
currentEntityAsJson?: string;
|
|
740
732
|
}
|
|
741
733
|
export interface EntityDeletedEvent {
|
|
742
|
-
/** Entity that was deleted */
|
|
734
|
+
/** Entity that was deleted. */
|
|
743
735
|
deletedEntityAsJson?: string | null;
|
|
744
736
|
}
|
|
745
737
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":"AA6HA,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAmGD,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB;AAmED,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAWD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAiED,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B;AA2FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":"AA6HA,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAmGD,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB;AAmED,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAWD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAiED,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B;AA2FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAkVD,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"}
|
|
@@ -692,25 +692,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
692
692
|
updatedEvent?: EntityUpdatedEvent;
|
|
693
693
|
deletedEvent?: EntityDeletedEvent;
|
|
694
694
|
actionEvent?: ActionEvent;
|
|
695
|
-
/**
|
|
696
|
-
* Unique event ID.
|
|
697
|
-
* Allows clients to ignore duplicate webhooks.
|
|
698
|
-
*/
|
|
695
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
699
696
|
_id?: string;
|
|
700
697
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
698
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
699
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
703
700
|
*/
|
|
704
701
|
entityFqdn?: string;
|
|
705
702
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
703
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
704
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
709
705
|
*/
|
|
710
706
|
slug?: string;
|
|
711
707
|
/** ID of the entity associated with the event. */
|
|
712
708
|
entityId?: string;
|
|
713
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
709
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
714
710
|
eventTime?: Date | null;
|
|
715
711
|
/**
|
|
716
712
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -720,12 +716,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
720
716
|
/** If present, indicates the action that triggered the event. */
|
|
721
717
|
originatedFrom?: string | null;
|
|
722
718
|
/**
|
|
723
|
-
* A sequence number
|
|
724
|
-
*
|
|
725
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
726
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
727
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
728
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
719
|
+
* 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.
|
|
720
|
+
* 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.
|
|
729
721
|
*/
|
|
730
722
|
entityEventSequence?: string | null;
|
|
731
723
|
}
|
|
@@ -751,7 +743,7 @@ export interface EntityUpdatedEvent {
|
|
|
751
743
|
currentEntity?: string;
|
|
752
744
|
}
|
|
753
745
|
export interface EntityDeletedEvent {
|
|
754
|
-
/** Entity that was deleted */
|
|
746
|
+
/** Entity that was deleted. */
|
|
755
747
|
deletedEntity?: string | null;
|
|
756
748
|
}
|
|
757
749
|
export interface ActionEvent {
|
|
@@ -848,25 +840,21 @@ export interface BaseEventMetadata {
|
|
|
848
840
|
identity?: IdentificationData;
|
|
849
841
|
}
|
|
850
842
|
export interface EventMetadata extends BaseEventMetadata {
|
|
851
|
-
/**
|
|
852
|
-
* Unique event ID.
|
|
853
|
-
* Allows clients to ignore duplicate webhooks.
|
|
854
|
-
*/
|
|
843
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
855
844
|
_id?: string;
|
|
856
845
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
846
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
847
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
859
848
|
*/
|
|
860
849
|
entityFqdn?: string;
|
|
861
850
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
851
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
852
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
865
853
|
*/
|
|
866
854
|
slug?: string;
|
|
867
855
|
/** ID of the entity associated with the event. */
|
|
868
856
|
entityId?: string;
|
|
869
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
857
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
870
858
|
eventTime?: Date | null;
|
|
871
859
|
/**
|
|
872
860
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -876,12 +864,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
876
864
|
/** If present, indicates the action that triggered the event. */
|
|
877
865
|
originatedFrom?: string | null;
|
|
878
866
|
/**
|
|
879
|
-
* A sequence number
|
|
880
|
-
*
|
|
881
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
882
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
883
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
884
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
867
|
+
* 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.
|
|
868
|
+
* 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.
|
|
885
869
|
*/
|
|
886
870
|
entityEventSequence?: string | null;
|
|
887
871
|
}
|
|
@@ -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 ambassadorWixEcomDiscountsV1DiscountRule from './ecom-discounts-v1-discount-rule-discount-rules.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var ScopeType;
|
|
6
8
|
(function (ScopeType) {
|
|
7
9
|
ScopeType["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
|
|
@@ -317,7 +319,7 @@ export function queryDiscountRules() {
|
|
|
317
319
|
});
|
|
318
320
|
},
|
|
319
321
|
responseTransformer: ({ data, }) => {
|
|
320
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
322
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
321
323
|
return {
|
|
322
324
|
items: transformedData?.discountRules,
|
|
323
325
|
pagingMetadata: transformedData?.pagingMetadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.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,wCAAwC,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../src/ecom-discounts-v1-discount-rule-discount-rules.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,wCAAwC,MAAM,0DAA0D,CAAC;AACrH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAsIlF,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4C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AAC;QACD,mBAAmB,EAAE,CAAC,EACpB,IAAI,GACqC,EAAE,EAAE;YAC7C,MAAM,eAAe,GAAG,uCAAuC,CAC7D,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,aAAa;gBACrC,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -678,25 +678,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
678
678
|
updatedEvent?: EntityUpdatedEvent;
|
|
679
679
|
deletedEvent?: EntityDeletedEvent;
|
|
680
680
|
actionEvent?: ActionEvent;
|
|
681
|
-
/**
|
|
682
|
-
* Unique event ID.
|
|
683
|
-
* Allows clients to ignore duplicate webhooks.
|
|
684
|
-
*/
|
|
681
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
685
682
|
id?: string;
|
|
686
683
|
/**
|
|
687
|
-
*
|
|
688
|
-
*
|
|
684
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
685
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
689
686
|
*/
|
|
690
687
|
entityFqdn?: string;
|
|
691
688
|
/**
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
689
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
690
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
695
691
|
*/
|
|
696
692
|
slug?: string;
|
|
697
693
|
/** ID of the entity associated with the event. */
|
|
698
694
|
entityId?: string;
|
|
699
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
695
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
700
696
|
eventTime?: Date | null;
|
|
701
697
|
/**
|
|
702
698
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -706,12 +702,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
706
702
|
/** If present, indicates the action that triggered the event. */
|
|
707
703
|
originatedFrom?: string | null;
|
|
708
704
|
/**
|
|
709
|
-
* A sequence number
|
|
710
|
-
*
|
|
711
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
712
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
713
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
714
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
705
|
+
* 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.
|
|
706
|
+
* 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.
|
|
715
707
|
*/
|
|
716
708
|
entityEventSequence?: string | null;
|
|
717
709
|
}
|
|
@@ -739,7 +731,7 @@ export interface EntityUpdatedEvent {
|
|
|
739
731
|
currentEntityAsJson?: string;
|
|
740
732
|
}
|
|
741
733
|
export interface EntityDeletedEvent {
|
|
742
|
-
/** Entity that was deleted */
|
|
734
|
+
/** Entity that was deleted. */
|
|
743
735
|
deletedEntityAsJson?: string | null;
|
|
744
736
|
}
|
|
745
737
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmGD,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB;AAmED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AAWD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAiED,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AA2FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmGD,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB;AAmED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AAWD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAiED,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AA2FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAkVD,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-discounts-v1-discount-rule-discount-rules.universal.d.ts
CHANGED
|
@@ -692,25 +692,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
692
692
|
updatedEvent?: EntityUpdatedEvent;
|
|
693
693
|
deletedEvent?: EntityDeletedEvent;
|
|
694
694
|
actionEvent?: ActionEvent;
|
|
695
|
-
/**
|
|
696
|
-
* Unique event ID.
|
|
697
|
-
* Allows clients to ignore duplicate webhooks.
|
|
698
|
-
*/
|
|
695
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
699
696
|
_id?: string;
|
|
700
697
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
698
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
699
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
703
700
|
*/
|
|
704
701
|
entityFqdn?: string;
|
|
705
702
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
703
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
704
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
709
705
|
*/
|
|
710
706
|
slug?: string;
|
|
711
707
|
/** ID of the entity associated with the event. */
|
|
712
708
|
entityId?: string;
|
|
713
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
709
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
714
710
|
eventTime?: Date | null;
|
|
715
711
|
/**
|
|
716
712
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -720,12 +716,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
720
716
|
/** If present, indicates the action that triggered the event. */
|
|
721
717
|
originatedFrom?: string | null;
|
|
722
718
|
/**
|
|
723
|
-
* A sequence number
|
|
724
|
-
*
|
|
725
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
726
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
727
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
728
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
719
|
+
* 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.
|
|
720
|
+
* 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.
|
|
729
721
|
*/
|
|
730
722
|
entityEventSequence?: string | null;
|
|
731
723
|
}
|
|
@@ -751,7 +743,7 @@ export interface EntityUpdatedEvent {
|
|
|
751
743
|
currentEntity?: string;
|
|
752
744
|
}
|
|
753
745
|
export interface EntityDeletedEvent {
|
|
754
|
-
/** Entity that was deleted */
|
|
746
|
+
/** Entity that was deleted. */
|
|
755
747
|
deletedEntity?: string | null;
|
|
756
748
|
}
|
|
757
749
|
export interface ActionEvent {
|
|
@@ -848,25 +840,21 @@ export interface BaseEventMetadata {
|
|
|
848
840
|
identity?: IdentificationData;
|
|
849
841
|
}
|
|
850
842
|
export interface EventMetadata extends BaseEventMetadata {
|
|
851
|
-
/**
|
|
852
|
-
* Unique event ID.
|
|
853
|
-
* Allows clients to ignore duplicate webhooks.
|
|
854
|
-
*/
|
|
843
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
855
844
|
_id?: string;
|
|
856
845
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
846
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
847
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
859
848
|
*/
|
|
860
849
|
entityFqdn?: string;
|
|
861
850
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
851
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
852
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
865
853
|
*/
|
|
866
854
|
slug?: string;
|
|
867
855
|
/** ID of the entity associated with the event. */
|
|
868
856
|
entityId?: string;
|
|
869
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
857
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
870
858
|
eventTime?: Date | null;
|
|
871
859
|
/**
|
|
872
860
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -876,12 +864,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
876
864
|
/** If present, indicates the action that triggered the event. */
|
|
877
865
|
originatedFrom?: string | null;
|
|
878
866
|
/**
|
|
879
|
-
* A sequence number
|
|
880
|
-
*
|
|
881
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
882
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
883
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
884
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
867
|
+
* 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.
|
|
868
|
+
* 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.
|
|
885
869
|
*/
|
|
886
870
|
entityEventSequence?: string | null;
|
|
887
871
|
}
|
|
@@ -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 ambassadorWixEcomDiscountsV1DiscountRule = __importStar(require("./ecom-discounts-v1-discount-rule-discount-rules.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var ScopeType;
|
|
32
34
|
(function (ScopeType) {
|
|
33
35
|
ScopeType["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
|
|
@@ -347,7 +349,7 @@ function queryDiscountRules() {
|
|
|
347
349
|
});
|
|
348
350
|
},
|
|
349
351
|
responseTransformer: ({ data, }) => {
|
|
350
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
352
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
351
353
|
return {
|
|
352
354
|
items: transformedData?.discountRules,
|
|
353
355
|
pagingMetadata: transformedData?.pagingMetadata,
|
package/build/internal/cjs/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,mIAAqH;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,mIAAqH;AACrH,aAAa;AACb,sFAAkF;AAsIlF,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAmGD,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB;AAyED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,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E,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AA1DD,gDA0DC"}
|
|
@@ -678,25 +678,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
678
678
|
updatedEvent?: EntityUpdatedEvent;
|
|
679
679
|
deletedEvent?: EntityDeletedEvent;
|
|
680
680
|
actionEvent?: ActionEvent;
|
|
681
|
-
/**
|
|
682
|
-
* Unique event ID.
|
|
683
|
-
* Allows clients to ignore duplicate webhooks.
|
|
684
|
-
*/
|
|
681
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
685
682
|
id?: string;
|
|
686
683
|
/**
|
|
687
|
-
*
|
|
688
|
-
*
|
|
684
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
685
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
689
686
|
*/
|
|
690
687
|
entityFqdn?: string;
|
|
691
688
|
/**
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
689
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
690
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
695
691
|
*/
|
|
696
692
|
slug?: string;
|
|
697
693
|
/** ID of the entity associated with the event. */
|
|
698
694
|
entityId?: string;
|
|
699
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
695
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
700
696
|
eventTime?: Date | null;
|
|
701
697
|
/**
|
|
702
698
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -706,12 +702,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
706
702
|
/** If present, indicates the action that triggered the event. */
|
|
707
703
|
originatedFrom?: string | null;
|
|
708
704
|
/**
|
|
709
|
-
* A sequence number
|
|
710
|
-
*
|
|
711
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
712
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
713
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
714
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
705
|
+
* 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.
|
|
706
|
+
* 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.
|
|
715
707
|
*/
|
|
716
708
|
entityEventSequence?: string | null;
|
|
717
709
|
}
|
|
@@ -739,7 +731,7 @@ export interface EntityUpdatedEvent {
|
|
|
739
731
|
currentEntityAsJson?: string;
|
|
740
732
|
}
|
|
741
733
|
export interface EntityDeletedEvent {
|
|
742
|
-
/** Entity that was deleted */
|
|
734
|
+
/** Entity that was deleted. */
|
|
743
735
|
deletedEntityAsJson?: string | null;
|
|
744
736
|
}
|
|
745
737
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.types.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":"AA6HA,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAmGD,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,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-rules.types.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.types.ts"],"names":[],"mappings":"AA6HA,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAmGD,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB;AAmED,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA;AACnC,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAWD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,4CAA4C;IAC5C,yCAAyB,CAAA;IACzB,wCAAwC;IACxC,6CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAiED,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,kCAAkC;IAClC,iCAAuB,CAAA;IACvB,2BAA2B;IAC3B,uBAAa,CAAA;IACb,mEAAmE;IACnE,6BAAmB,CAAA;IACnB,8DAA8D;IAC9D,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AA2BD,oCAAoC;AACpC,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,iDAAiD;IACjD,6CAAuB,CAAA;IACvB,8DAA8D;IAC9D,+DAAyC,CAAA;AAC3C,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B;AA2FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAkVD,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"}
|
|
@@ -692,25 +692,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
692
692
|
updatedEvent?: EntityUpdatedEvent;
|
|
693
693
|
deletedEvent?: EntityDeletedEvent;
|
|
694
694
|
actionEvent?: ActionEvent;
|
|
695
|
-
/**
|
|
696
|
-
* Unique event ID.
|
|
697
|
-
* Allows clients to ignore duplicate webhooks.
|
|
698
|
-
*/
|
|
695
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
699
696
|
_id?: string;
|
|
700
697
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
698
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
699
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
703
700
|
*/
|
|
704
701
|
entityFqdn?: string;
|
|
705
702
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
703
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
704
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
709
705
|
*/
|
|
710
706
|
slug?: string;
|
|
711
707
|
/** ID of the entity associated with the event. */
|
|
712
708
|
entityId?: string;
|
|
713
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
709
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
714
710
|
eventTime?: Date | null;
|
|
715
711
|
/**
|
|
716
712
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -720,12 +716,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
720
716
|
/** If present, indicates the action that triggered the event. */
|
|
721
717
|
originatedFrom?: string | null;
|
|
722
718
|
/**
|
|
723
|
-
* A sequence number
|
|
724
|
-
*
|
|
725
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
726
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
727
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
728
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
719
|
+
* 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.
|
|
720
|
+
* 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.
|
|
729
721
|
*/
|
|
730
722
|
entityEventSequence?: string | null;
|
|
731
723
|
}
|
|
@@ -751,7 +743,7 @@ export interface EntityUpdatedEvent {
|
|
|
751
743
|
currentEntity?: string;
|
|
752
744
|
}
|
|
753
745
|
export interface EntityDeletedEvent {
|
|
754
|
-
/** Entity that was deleted */
|
|
746
|
+
/** Entity that was deleted. */
|
|
755
747
|
deletedEntity?: string | null;
|
|
756
748
|
}
|
|
757
749
|
export interface ActionEvent {
|
|
@@ -848,25 +840,21 @@ export interface BaseEventMetadata {
|
|
|
848
840
|
identity?: IdentificationData;
|
|
849
841
|
}
|
|
850
842
|
export interface EventMetadata extends BaseEventMetadata {
|
|
851
|
-
/**
|
|
852
|
-
* Unique event ID.
|
|
853
|
-
* Allows clients to ignore duplicate webhooks.
|
|
854
|
-
*/
|
|
843
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
855
844
|
_id?: string;
|
|
856
845
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
846
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
847
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
859
848
|
*/
|
|
860
849
|
entityFqdn?: string;
|
|
861
850
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
851
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
852
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
865
853
|
*/
|
|
866
854
|
slug?: string;
|
|
867
855
|
/** ID of the entity associated with the event. */
|
|
868
856
|
entityId?: string;
|
|
869
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
857
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
870
858
|
eventTime?: Date | null;
|
|
871
859
|
/**
|
|
872
860
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -876,12 +864,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
876
864
|
/** If present, indicates the action that triggered the event. */
|
|
877
865
|
originatedFrom?: string | null;
|
|
878
866
|
/**
|
|
879
|
-
* A sequence number
|
|
880
|
-
*
|
|
881
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
882
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
883
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
884
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
867
|
+
* 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.
|
|
868
|
+
* 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.
|
|
885
869
|
*/
|
|
886
870
|
entityEventSequence?: string | null;
|
|
887
871
|
}
|
|
@@ -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 ambassadorWixEcomDiscountsV1DiscountRule from './ecom-discounts-v1-discount-rule-discount-rules.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var ScopeType;
|
|
6
8
|
(function (ScopeType) {
|
|
7
9
|
ScopeType["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
|
|
@@ -317,7 +319,7 @@ export function queryDiscountRules() {
|
|
|
317
319
|
});
|
|
318
320
|
},
|
|
319
321
|
responseTransformer: ({ data, }) => {
|
|
320
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
322
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
321
323
|
return {
|
|
322
324
|
items: transformedData?.discountRules,
|
|
323
325
|
pagingMetadata: transformedData?.pagingMetadata,
|
package/build/internal/es/src/ecom-discounts-v1-discount-rule-discount-rules.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.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,wCAAwC,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-discounts-v1-discount-rule-discount-rules.universal.js","sourceRoot":"","sources":["../../../../src/ecom-discounts-v1-discount-rule-discount-rules.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,wCAAwC,MAAM,0DAA0D,CAAC;AACrH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAsIlF,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,6BAA6B;IAC7B,0CAA6B,CAAA;IAC7B,uCAAuC;IACvC,4CAA+B,CAAA;AACjC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAmGD,MAAM,CAAN,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mGAAmG;IACnG,0BAAW,CAAA;IACX,oEAAoE;IACpE,gDAAiC,CAAA;IACjC,sFAAsF;IACtF,0DAA2C,CAAA;IAC3C,6DAA6D;IAC7D,gCAAiB,CAAA;IACjB,+CAA+C;IAC/C,wBAAS,CAAA;AACX,CAAC,EAZW,WAAW,KAAX,WAAW,QAYtB;AAyED,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,iCAAiC;IACjC,+BAAuB,CAAA;IACvB,6CAA6C;IAC7C,yCAAiC,CAAA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AE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_discount-rules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.ecom.discounts.v1.discount_rule"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "7eb9a19bb5db9e8109ff055ac0342a71c04b1bb759bf6cbadbbcbb9a"
|
|
52
52
|
}
|