@betterstore/sdk 0.3.74 → 0.3.76

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.76
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.75
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.74
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -62,11 +62,11 @@ interface Product {
62
62
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
63
63
  }
64
64
  type ListProductsQuery = {
65
- collectionId: string;
65
+ id: string;
66
66
  } | {
67
- collectionSeoHandle: string;
67
+ seoHandle: string;
68
68
  };
69
- type ListProductsSortBy = "createdAt" | "updatedAt" | "title";
69
+ type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
70
70
  type SortOrder = "asc" | "desc";
71
71
  type ListProductsParams = {
72
72
  sortBy?: ListProductsSortBy;
@@ -211,7 +211,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
211
211
  value: string;
212
212
  }[];
213
213
  productId: string;
214
- product?: Pick<Product, "title" | "priceInCents" | "images">;
214
+ product?: Pick<Product, "title" | "priceInCents" | "images" | "description">;
215
215
  metadata?: RecursiveRecord;
216
216
  }
217
217
  type Currency = string;
package/dist/index.d.ts CHANGED
@@ -62,11 +62,11 @@ interface Product {
62
62
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
63
63
  }
64
64
  type ListProductsQuery = {
65
- collectionId: string;
65
+ id: string;
66
66
  } | {
67
- collectionSeoHandle: string;
67
+ seoHandle: string;
68
68
  };
69
- type ListProductsSortBy = "createdAt" | "updatedAt" | "title";
69
+ type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable";
70
70
  type SortOrder = "asc" | "desc";
71
71
  type ListProductsParams = {
72
72
  sortBy?: ListProductsSortBy;
@@ -211,7 +211,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
211
211
  value: string;
212
212
  }[];
213
213
  productId: string;
214
- product?: Pick<Product, "title" | "priceInCents" | "images">;
214
+ product?: Pick<Product, "title" | "priceInCents" | "images" | "description">;
215
215
  metadata?: RecursiveRecord;
216
216
  }
217
217
  type Currency = string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.74",
3
+ "version": "0.3.76",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {