@betterstore/sdk 0.3.73 → 0.3.75

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.75
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.74
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.73
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -62,16 +62,16 @@ 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;
73
73
  sortOrder?: SortOrder;
74
- query?: string;
74
+ query?: ListProductsQuery;
75
75
  };
76
76
  type RetrieveProductParams = {
77
77
  seoHandle: string;
package/dist/index.d.ts CHANGED
@@ -62,16 +62,16 @@ 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;
73
73
  sortOrder?: SortOrder;
74
- query?: string;
74
+ query?: ListProductsQuery;
75
75
  };
76
76
  type RetrieveProductParams = {
77
77
  seoHandle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.73",
3
+ "version": "0.3.75",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {