@betterstore/sdk 0.3.102 → 0.3.104

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.104
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.103
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.102
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;
@@ -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;
@@ -216,6 +223,7 @@ interface Collection {
216
223
  title: string;
217
224
  description?: string;
218
225
  images: string[];
226
+ tags: string[];
219
227
  seoPageTitle?: string;
220
228
  seoDescription?: string;
221
229
  seoHandle?: string;
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;
@@ -216,6 +223,7 @@ interface Collection {
216
223
  title: string;
217
224
  description?: string;
218
225
  images: string[];
226
+ tags: string[];
219
227
  seoPageTitle?: string;
220
228
  seoDescription?: string;
221
229
  seoHandle?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.102",
3
+ "version": "0.3.104",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {