@wix/ecom 1.0.641 → 1.0.643

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ecom",
3
- "version": "1.0.641",
3
+ "version": "1.0.643",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "@wix/ecom_currencies": "1.0.23",
31
31
  "@wix/ecom_current-cart": "1.0.48",
32
32
  "@wix/ecom_custom-triggers": "1.0.7",
33
- "@wix/ecom_discount-rules": "1.0.35",
33
+ "@wix/ecom_discount-rules": "1.0.37",
34
34
  "@wix/ecom_order-fulfillments": "1.0.30",
35
35
  "@wix/ecom_order-invoices": "1.0.25",
36
36
  "@wix/ecom_order-transactions": "1.0.41",
@@ -64,5 +64,5 @@
64
64
  "fqdn": ""
65
65
  }
66
66
  },
67
- "falconPackageHash": "139d8e7c61a07581eb9350c0c47c6baa47c83cb08bb64d3c1d02ce98"
67
+ "falconPackageHash": "bc7a818f4be030861ca37816002d687f92b0a60856909c30ea8c3454"
68
68
  }
@@ -39,7 +39,11 @@ interface DiscountRule$5 {
39
39
  /**
40
40
  * List of discounts that are applied when one or more triggers are met.
41
41
  *
42
- * Currently, a discount rule can apply only 1 discount.
42
+ * > **Notes:**
43
+ * >
44
+ * > + Currently, only 1 discount can be defined per discount rule.
45
+ * > + A discount rule can be applied on multiple items per cart.
46
+ * > + A discount rule can only be applied once per item.
43
47
  */
44
48
  discounts?: Discounts;
45
49
  /**
@@ -387,7 +391,11 @@ interface UpdateDiscountRule {
387
391
  /**
388
392
  * List of discounts that are applied when one or more triggers are met.
389
393
  *
390
- * Currently, a discount rule can apply only 1 discount.
394
+ * > **Notes:**
395
+ * >
396
+ * > + Currently, only 1 discount can be defined per discount rule.
397
+ * > + A discount rule can be applied on multiple items per cart.
398
+ * > + A discount rule can only be applied once per item.
391
399
  */
392
400
  discounts?: Discounts;
393
401
  /**
@@ -39,7 +39,11 @@ interface DiscountRule$5 {
39
39
  /**
40
40
  * List of discounts that are applied when one or more triggers are met.
41
41
  *
42
- * Currently, a discount rule can apply only 1 discount.
42
+ * > **Notes:**
43
+ * >
44
+ * > + Currently, only 1 discount can be defined per discount rule.
45
+ * > + A discount rule can be applied on multiple items per cart.
46
+ * > + A discount rule can only be applied once per item.
43
47
  */
44
48
  discounts?: Discounts;
45
49
  /**
@@ -567,6 +571,9 @@ interface DomainEventBodyOneOf$c {
567
571
  interface EntityCreatedEvent$c {
568
572
  entity?: string;
569
573
  }
574
+ interface UndeleteInfo$5 {
575
+ deletedDate?: Date;
576
+ }
570
577
  interface EntityUpdatedEvent$c {
571
578
  /**
572
579
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -994,7 +1001,11 @@ interface UpdateDiscountRule {
994
1001
  /**
995
1002
  * List of discounts that are applied when one or more triggers are met.
996
1003
  *
997
- * Currently, a discount rule can apply only 1 discount.
1004
+ * > **Notes:**
1005
+ * >
1006
+ * > + Currently, only 1 discount can be defined per discount rule.
1007
+ * > + A discount rule can be applied on multiple items per cart.
1008
+ * > + A discount rule can only be applied once per item.
998
1009
  */
999
1010
  discounts?: Discounts;
1000
1011
  /**
@@ -1362,7 +1373,7 @@ declare const index_d$f_onDiscountRuleUpdated: typeof onDiscountRuleUpdated;
1362
1373
  declare const index_d$f_queryDiscountRules: typeof queryDiscountRules;
1363
1374
  declare const index_d$f_updateDiscountRule: typeof updateDiscountRule;
1364
1375
  declare namespace index_d$f {
1365
- export { type ActionEvent$c as ActionEvent, type index_d$f_ActiveTimeInfo as ActiveTimeInfo, type index_d$f_And as And, type AppliedDiscount$5 as AppliedDiscount, type index_d$f_AppliedDiscountRule as AppliedDiscountRule, index_d$f_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$b as BaseEventMetadata, type index_d$f_BuyXGetYInfo as BuyXGetYInfo, type index_d$f_CatalogItemFilter as CatalogItemFilter, type CatalogReference$7 as CatalogReference, type index_d$f_CreateDiscountRuleRequest as CreateDiscountRuleRequest, type index_d$f_CreateDiscountRuleResponse as CreateDiscountRuleResponse, type index_d$f_CreateDiscountRuleResponseNonNullableFields as CreateDiscountRuleResponseNonNullableFields, type CursorPaging$5 as CursorPaging, type Cursors$5 as Cursors, type index_d$f_Custom as Custom, type index_d$f_CustomFilter as CustomFilter, type index_d$f_CustomerBuy as CustomerBuy, type index_d$f_CustomerBuyConditionOneOf as CustomerBuyConditionOneOf, type index_d$f_CustomerGet as CustomerGet, type index_d$f_DeleteDiscountRuleRequest as DeleteDiscountRuleRequest, type index_d$f_DeleteDiscountRuleResponse as DeleteDiscountRuleResponse, type Discount$3 as Discount, type index_d$f_DiscountDiscountOneOf as DiscountDiscountOneOf, type DiscountRule$5 as DiscountRule, type index_d$f_DiscountRuleCreatedEnvelope as DiscountRuleCreatedEnvelope, type index_d$f_DiscountRuleDeletedEnvelope as DiscountRuleDeletedEnvelope, type DiscountRuleName$5 as DiscountRuleName, type index_d$f_DiscountRuleUpdatedEnvelope as DiscountRuleUpdatedEnvelope, type index_d$f_DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReached, type index_d$f_DiscountRulesQueryBuilder as DiscountRulesQueryBuilder, type index_d$f_DiscountRulesQueryResult as DiscountRulesQueryResult, type index_d$f_DiscountSettings as DiscountSettings, type index_d$f_DiscountTrigger as DiscountTrigger, type index_d$f_DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOf, DiscountType$5 as DiscountType, type index_d$f_Discounts as Discounts, type DomainEvent$c as DomainEvent, type DomainEventBodyOneOf$c as DomainEventBodyOneOf, type Empty$8 as Empty, type EntityCreatedEvent$c as EntityCreatedEvent, type EntityDeletedEvent$c as EntityDeletedEvent, type EntityUpdatedEvent$c as EntityUpdatedEvent, type EventMetadata$b as EventMetadata, type ExtendedFields$5 as ExtendedFields, type index_d$f_GetAppliedDiscountsRequest as GetAppliedDiscountsRequest, type index_d$f_GetAppliedDiscountsResponse as GetAppliedDiscountsResponse, type index_d$f_GetDiscountRuleRequest as GetDiscountRuleRequest, type index_d$f_GetDiscountRuleResponse as GetDiscountRuleResponse, type index_d$f_GetDiscountRuleResponseNonNullableFields as GetDiscountRuleResponseNonNullableFields, type IdentificationData$c as IdentificationData, type IdentificationDataIdOneOf$c as IdentificationDataIdOneOf, type index_d$f_ItemQuantityRange as ItemQuantityRange, type LineItem$6 as LineItem, type MessageEnvelope$c as MessageEnvelope, type MultiCurrencyPrice$5 as MultiCurrencyPrice, type index_d$f_Or as Or, type PlatformPaging$2 as PlatformPaging, type PlatformPagingMetadata$2 as PlatformPagingMetadata, type PlatformQuery$2 as PlatformQuery, type PlatformQueryPagingMethodOneOf$2 as PlatformQueryPagingMethodOneOf, type index_d$f_QueryDiscountRulesRequest as QueryDiscountRulesRequest, type index_d$f_QueryDiscountRulesResponse as QueryDiscountRulesResponse, type index_d$f_QueryDiscountRulesResponseNonNullableFields as QueryDiscountRulesResponseNonNullableFields, type Scope$4 as Scope, type index_d$f_ScopeScopeItemsOneOf as ScopeScopeItemsOneOf, index_d$f_ScopeType as ScopeType, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type index_d$f_SpecificItemsInfo as SpecificItemsInfo, Status$3 as Status, type index_d$f_SubtotalRange as SubtotalRange, index_d$f_TriggerType as TriggerType, index_d$f_Type as Type, type index_d$f_UpdateDiscountRule as UpdateDiscountRule, type index_d$f_UpdateDiscountRuleRequest as UpdateDiscountRuleRequest, type index_d$f_UpdateDiscountRuleResponse as UpdateDiscountRuleResponse, type index_d$f_UpdateDiscountRuleResponseNonNullableFields as UpdateDiscountRuleResponseNonNullableFields, WebhookIdentityType$c as WebhookIdentityType, __metadata$f as __metadata, index_d$f_createDiscountRule as createDiscountRule, index_d$f_deleteDiscountRule as deleteDiscountRule, index_d$f_getDiscountRule as getDiscountRule, index_d$f_onDiscountRuleCreated as onDiscountRuleCreated, index_d$f_onDiscountRuleDeleted as onDiscountRuleDeleted, index_d$f_onDiscountRuleUpdated as onDiscountRuleUpdated, index_d$f_queryDiscountRules as queryDiscountRules, index_d$f_updateDiscountRule as updateDiscountRule };
1376
+ export { type ActionEvent$c as ActionEvent, type index_d$f_ActiveTimeInfo as ActiveTimeInfo, type index_d$f_And as And, type AppliedDiscount$5 as AppliedDiscount, type index_d$f_AppliedDiscountRule as AppliedDiscountRule, index_d$f_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$b as BaseEventMetadata, type index_d$f_BuyXGetYInfo as BuyXGetYInfo, type index_d$f_CatalogItemFilter as CatalogItemFilter, type CatalogReference$7 as CatalogReference, type index_d$f_CreateDiscountRuleRequest as CreateDiscountRuleRequest, type index_d$f_CreateDiscountRuleResponse as CreateDiscountRuleResponse, type index_d$f_CreateDiscountRuleResponseNonNullableFields as CreateDiscountRuleResponseNonNullableFields, type CursorPaging$5 as CursorPaging, type Cursors$5 as Cursors, type index_d$f_Custom as Custom, type index_d$f_CustomFilter as CustomFilter, type index_d$f_CustomerBuy as CustomerBuy, type index_d$f_CustomerBuyConditionOneOf as CustomerBuyConditionOneOf, type index_d$f_CustomerGet as CustomerGet, type index_d$f_DeleteDiscountRuleRequest as DeleteDiscountRuleRequest, type index_d$f_DeleteDiscountRuleResponse as DeleteDiscountRuleResponse, type Discount$3 as Discount, type index_d$f_DiscountDiscountOneOf as DiscountDiscountOneOf, type DiscountRule$5 as DiscountRule, type index_d$f_DiscountRuleCreatedEnvelope as DiscountRuleCreatedEnvelope, type index_d$f_DiscountRuleDeletedEnvelope as DiscountRuleDeletedEnvelope, type DiscountRuleName$5 as DiscountRuleName, type index_d$f_DiscountRuleUpdatedEnvelope as DiscountRuleUpdatedEnvelope, type index_d$f_DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReached, type index_d$f_DiscountRulesQueryBuilder as DiscountRulesQueryBuilder, type index_d$f_DiscountRulesQueryResult as DiscountRulesQueryResult, type index_d$f_DiscountSettings as DiscountSettings, type index_d$f_DiscountTrigger as DiscountTrigger, type index_d$f_DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOf, DiscountType$5 as DiscountType, type index_d$f_Discounts as Discounts, type DomainEvent$c as DomainEvent, type DomainEventBodyOneOf$c as DomainEventBodyOneOf, type Empty$8 as Empty, type EntityCreatedEvent$c as EntityCreatedEvent, type EntityDeletedEvent$c as EntityDeletedEvent, type EntityUpdatedEvent$c as EntityUpdatedEvent, type EventMetadata$b as EventMetadata, type ExtendedFields$5 as ExtendedFields, type index_d$f_GetAppliedDiscountsRequest as GetAppliedDiscountsRequest, type index_d$f_GetAppliedDiscountsResponse as GetAppliedDiscountsResponse, type index_d$f_GetDiscountRuleRequest as GetDiscountRuleRequest, type index_d$f_GetDiscountRuleResponse as GetDiscountRuleResponse, type index_d$f_GetDiscountRuleResponseNonNullableFields as GetDiscountRuleResponseNonNullableFields, type IdentificationData$c as IdentificationData, type IdentificationDataIdOneOf$c as IdentificationDataIdOneOf, type index_d$f_ItemQuantityRange as ItemQuantityRange, type LineItem$6 as LineItem, type MessageEnvelope$c as MessageEnvelope, type MultiCurrencyPrice$5 as MultiCurrencyPrice, type index_d$f_Or as Or, type PlatformPaging$2 as PlatformPaging, type PlatformPagingMetadata$2 as PlatformPagingMetadata, type PlatformQuery$2 as PlatformQuery, type PlatformQueryPagingMethodOneOf$2 as PlatformQueryPagingMethodOneOf, type index_d$f_QueryDiscountRulesRequest as QueryDiscountRulesRequest, type index_d$f_QueryDiscountRulesResponse as QueryDiscountRulesResponse, type index_d$f_QueryDiscountRulesResponseNonNullableFields as QueryDiscountRulesResponseNonNullableFields, type Scope$4 as Scope, type index_d$f_ScopeScopeItemsOneOf as ScopeScopeItemsOneOf, index_d$f_ScopeType as ScopeType, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type index_d$f_SpecificItemsInfo as SpecificItemsInfo, Status$3 as Status, type index_d$f_SubtotalRange as SubtotalRange, index_d$f_TriggerType as TriggerType, index_d$f_Type as Type, type UndeleteInfo$5 as UndeleteInfo, type index_d$f_UpdateDiscountRule as UpdateDiscountRule, type index_d$f_UpdateDiscountRuleRequest as UpdateDiscountRuleRequest, type index_d$f_UpdateDiscountRuleResponse as UpdateDiscountRuleResponse, type index_d$f_UpdateDiscountRuleResponseNonNullableFields as UpdateDiscountRuleResponseNonNullableFields, WebhookIdentityType$c as WebhookIdentityType, __metadata$f as __metadata, index_d$f_createDiscountRule as createDiscountRule, index_d$f_deleteDiscountRule as deleteDiscountRule, index_d$f_getDiscountRule as getDiscountRule, index_d$f_onDiscountRuleCreated as onDiscountRuleCreated, index_d$f_onDiscountRuleDeleted as onDiscountRuleDeleted, index_d$f_onDiscountRuleUpdated as onDiscountRuleUpdated, index_d$f_queryDiscountRules as queryDiscountRules, index_d$f_updateDiscountRule as updateDiscountRule };
1366
1377
  }
1367
1378
 
1368
1379
  interface Invoice {
@@ -39,7 +39,11 @@ interface DiscountRule$9 {
39
39
  /**
40
40
  * List of discounts that are applied when one or more triggers are met.
41
41
  *
42
- * Currently, a discount rule can apply only 1 discount.
42
+ * > **Notes:**
43
+ * >
44
+ * > + Currently, only 1 discount can be defined per discount rule.
45
+ * > + A discount rule can be applied on multiple items per cart.
46
+ * > + A discount rule can only be applied once per item.
43
47
  */
44
48
  discounts?: Discounts$1;
45
49
  /**
@@ -803,7 +807,11 @@ interface DiscountRule$8 {
803
807
  /**
804
808
  * List of discounts that are applied when one or more triggers are met.
805
809
  *
806
- * Currently, a discount rule can apply only 1 discount.
810
+ * > **Notes:**
811
+ * >
812
+ * > + Currently, only 1 discount can be defined per discount rule.
813
+ * > + A discount rule can be applied on multiple items per cart.
814
+ * > + A discount rule can only be applied once per item.
807
815
  */
808
816
  discounts?: Discounts;
809
817
  /**