@viu/emporix-sdk 4.6.4 → 4.6.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @viu/emporix-sdk
2
2
 
3
+ ## 4.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#413](https://github.com/viuteam/emporix-sdk/pull/413) [`db008c3`](https://github.com/viuteam/emporix-sdk/commit/db008c3e393c032aa56312e045fde456979a220a) Thanks [@viu-release-bot](https://github.com/apps/viu-release-bot)! - chore(sdk): sync generated types with upstream Emporix API specs
8
+
9
+ Updated services: cart,coupon,order-v2
10
+
3
11
  ## 4.6.4
4
12
 
5
13
  ### Patch Changes
package/dist/cart.d.cts CHANGED
@@ -837,11 +837,46 @@ type DiscountResponse = {
837
837
  */
838
838
  links?: Array<Link>;
839
839
  discountValidationDetails?: DiscountValidationDetails;
840
+ /**
841
+ * Indicates whether the discount is limited to the vendors in `restrictions.vendors`.
842
+ */
843
+ vendorRestricted?: boolean;
844
+ restrictions?: DiscountRestrictions;
840
845
  /**
841
846
  * The index of the discount. It represents the discount position in the cart discounts array.
842
847
  */
843
848
  discountIndex?: number;
844
849
  };
850
+ /**
851
+ * Restrictions copied from the coupon.
852
+ */
853
+ type DiscountRestrictions = {
854
+ /**
855
+ * Start of the discount validity period.
856
+ */
857
+ validFrom?: string;
858
+ /**
859
+ * End of the discount validity period.
860
+ */
861
+ validUntil?: string;
862
+ minOrderValue?: Price & unknown;
863
+ /**
864
+ * Categories to which the discount applies.
865
+ */
866
+ includedCategories?: Array<string>;
867
+ /**
868
+ * Categories to which the discount does not apply.
869
+ */
870
+ excludedCategories?: Array<string>;
871
+ /**
872
+ * Customer segments to which the discount applies.
873
+ */
874
+ segments?: Array<string>;
875
+ /**
876
+ * Vendor identifiers to which the discount applies.
877
+ */
878
+ vendors?: Array<string>;
879
+ };
845
880
  type DiscountValidationDetails = {
846
881
  message?: string;
847
882
  details?: Array<string>;
package/dist/cart.d.ts CHANGED
@@ -837,11 +837,46 @@ type DiscountResponse = {
837
837
  */
838
838
  links?: Array<Link>;
839
839
  discountValidationDetails?: DiscountValidationDetails;
840
+ /**
841
+ * Indicates whether the discount is limited to the vendors in `restrictions.vendors`.
842
+ */
843
+ vendorRestricted?: boolean;
844
+ restrictions?: DiscountRestrictions;
840
845
  /**
841
846
  * The index of the discount. It represents the discount position in the cart discounts array.
842
847
  */
843
848
  discountIndex?: number;
844
849
  };
850
+ /**
851
+ * Restrictions copied from the coupon.
852
+ */
853
+ type DiscountRestrictions = {
854
+ /**
855
+ * Start of the discount validity period.
856
+ */
857
+ validFrom?: string;
858
+ /**
859
+ * End of the discount validity period.
860
+ */
861
+ validUntil?: string;
862
+ minOrderValue?: Price & unknown;
863
+ /**
864
+ * Categories to which the discount applies.
865
+ */
866
+ includedCategories?: Array<string>;
867
+ /**
868
+ * Categories to which the discount does not apply.
869
+ */
870
+ excludedCategories?: Array<string>;
871
+ /**
872
+ * Customer segments to which the discount applies.
873
+ */
874
+ segments?: Array<string>;
875
+ /**
876
+ * Vendor identifiers to which the discount applies.
877
+ */
878
+ vendors?: Array<string>;
879
+ };
845
880
  type DiscountValidationDetails = {
846
881
  message?: string;
847
882
  details?: Array<string>;
package/dist/index.cjs CHANGED
@@ -1244,7 +1244,7 @@ var HttpClient = class {
1244
1244
  };
1245
1245
 
1246
1246
  // package.json
1247
- var version = "4.6.4";
1247
+ var version = "4.6.5";
1248
1248
 
1249
1249
  // src/version.ts
1250
1250
  var SDK_VERSION = version;