@betterstore/sdk 0.3.90 → 0.3.92

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,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.92
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.91
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.90
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -157,9 +157,9 @@ interface Product {
157
157
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
158
158
  }
159
159
  type ListProductsQuery = {
160
- id: string;
160
+ collectionId: string;
161
161
  } | {
162
- seoHandle: string;
162
+ collectionSeoHandle: string;
163
163
  };
164
164
  type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
165
165
  type ListProductsParams = {
@@ -268,6 +268,14 @@ type ListDiscountsQuery = {
268
268
  valueType?: Discount["valueType"];
269
269
  method?: Discount["method"];
270
270
  status?: Discount["status"];
271
+ minimumRequirementsType?: Discount["minimumRequirementsType"];
272
+ minimumRequirementsScope?: Discount["minimumRequirementsScope"];
273
+ discountScope?: Discount["discountScope"];
274
+ allowedCombinations?: Discount["allowedCombinations"];
275
+ allowedProductIDs?: Discount["allowedProductIDs"];
276
+ allowedCollectionIDs?: Discount["allowedCollectionIDs"];
277
+ requiredProductIDs?: Discount["requiredProductIDs"];
278
+ requiredCollectionIDs?: Discount["requiredCollectionIDs"];
271
279
  };
272
280
  type ListDiscountsSortBy = "createdAt" | "updatedAt";
273
281
  type ListDiscountsParams = {
package/dist/index.d.ts CHANGED
@@ -157,9 +157,9 @@ interface Product {
157
157
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
158
158
  }
159
159
  type ListProductsQuery = {
160
- id: string;
160
+ collectionId: string;
161
161
  } | {
162
- seoHandle: string;
162
+ collectionSeoHandle: string;
163
163
  };
164
164
  type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
165
165
  type ListProductsParams = {
@@ -268,6 +268,14 @@ type ListDiscountsQuery = {
268
268
  valueType?: Discount["valueType"];
269
269
  method?: Discount["method"];
270
270
  status?: Discount["status"];
271
+ minimumRequirementsType?: Discount["minimumRequirementsType"];
272
+ minimumRequirementsScope?: Discount["minimumRequirementsScope"];
273
+ discountScope?: Discount["discountScope"];
274
+ allowedCombinations?: Discount["allowedCombinations"];
275
+ allowedProductIDs?: Discount["allowedProductIDs"];
276
+ allowedCollectionIDs?: Discount["allowedCollectionIDs"];
277
+ requiredProductIDs?: Discount["requiredProductIDs"];
278
+ requiredCollectionIDs?: Discount["requiredCollectionIDs"];
271
279
  };
272
280
  type ListDiscountsSortBy = "createdAt" | "updatedAt";
273
281
  type ListDiscountsParams = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.90",
3
+ "version": "0.3.92",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {