@betterstore/sdk 0.3.101 → 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,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.103
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.102
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.101
4
16
 
5
17
  ### 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;
@@ -197,8 +202,10 @@ interface Product {
197
202
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
198
203
  }
199
204
  type ListProductsQuery = {
200
- collectionId?: StringArrayQueryType;
201
- collectionSeoHandle?: StringArrayQueryType;
205
+ collectionIDs?: 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;
@@ -197,8 +202,10 @@ interface Product {
197
202
  interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
198
203
  }
199
204
  type ListProductsQuery = {
200
- collectionId?: StringArrayQueryType;
201
- collectionSeoHandle?: StringArrayQueryType;
205
+ collectionIDs?: 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.101",
3
+ "version": "0.3.103",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {