@betterstore/sdk 0.3.102 → 0.3.103

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,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.103
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
3
9
  ## 0.3.102
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -128,6 +128,11 @@ type DateQueryType = {
128
128
  type OptionalDateQueryType = DateQueryType & {
129
129
  isSet: boolean;
130
130
  };
131
+ type ArrayModelQueryType<T> = {
132
+ some?: T;
133
+ every?: T;
134
+ none?: T;
135
+ };
131
136
 
132
137
  interface VariantOption {
133
138
  name: string;
@@ -198,7 +203,9 @@ interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
198
203
  }
199
204
  type ListProductsQuery = {
200
205
  collectionIDs?: StringArrayQueryType;
201
- collectionsSeoHandles?: StringArrayQueryType;
206
+ collections?: ArrayModelQueryType<{
207
+ seoHandle?: StringArrayQueryType;
208
+ }>;
202
209
  tags?: StringArrayQueryType;
203
210
  createdAt?: DateQueryType;
204
211
  updatedAt?: DateQueryType;
package/dist/index.d.ts CHANGED
@@ -128,6 +128,11 @@ type DateQueryType = {
128
128
  type OptionalDateQueryType = DateQueryType & {
129
129
  isSet: boolean;
130
130
  };
131
+ type ArrayModelQueryType<T> = {
132
+ some?: T;
133
+ every?: T;
134
+ none?: T;
135
+ };
131
136
 
132
137
  interface VariantOption {
133
138
  name: string;
@@ -198,7 +203,9 @@ interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
198
203
  }
199
204
  type ListProductsQuery = {
200
205
  collectionIDs?: StringArrayQueryType;
201
- collectionsSeoHandles?: StringArrayQueryType;
206
+ collections?: ArrayModelQueryType<{
207
+ seoHandle?: StringArrayQueryType;
208
+ }>;
202
209
  tags?: StringArrayQueryType;
203
210
  createdAt?: DateQueryType;
204
211
  updatedAt?: DateQueryType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.102",
3
+ "version": "0.3.103",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {