@betterstore/sdk 0.3.93 → 0.3.95

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.95
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.94
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.93
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -100,21 +100,23 @@ type GetListParams<A, B> = {
100
100
  query?: B;
101
101
  };
102
102
  type EnumQueryType<T> = {
103
+ equals?: T;
103
104
  in?: T[];
104
- notIn?: T[];
105
105
  not?: T;
106
+ notIn?: T[];
106
107
  };
107
108
  type StringArrayQueryType<T = string> = {
108
- has?: T[];
109
+ equals?: T[];
110
+ has?: T;
109
111
  hasEvery?: T[];
110
112
  hasSome?: T[];
111
- equals?: T[];
112
113
  isEmpty?: boolean;
113
114
  };
114
115
  type DateQueryType = {
116
+ equals?: Date;
115
117
  in?: Date[];
116
- notIn?: Date[];
117
118
  not?: Date;
119
+ notIn?: Date[];
118
120
  gt?: Date;
119
121
  gte?: Date;
120
122
  lt?: Date;
@@ -157,6 +159,8 @@ type ProductBillingInterval = "DAY" | "WEEK" | "MONTH" | "YEAR";
157
159
  type ProductBillingType = "ONE_TIME" | "SUBSCRIPTION";
158
160
  interface Product {
159
161
  id: string;
162
+ createdAt: Date;
163
+ updatedAt: Date;
160
164
  title: string;
161
165
  description?: string;
162
166
  images: string[];
@@ -191,6 +195,8 @@ type ListProductsQuery = {
191
195
  collectionId?: StringArrayQueryType;
192
196
  collectionSeoHandle?: StringArrayQueryType;
193
197
  tags?: StringArrayQueryType;
198
+ createdAt?: DateQueryType;
199
+ updatedAt?: DateQueryType;
194
200
  };
195
201
  type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable" | "stockCommited" | "priceInCents";
196
202
  type ListProductsParams = GetListParams<ListProductsSortBy, ListProductsQuery>;
package/dist/index.d.ts CHANGED
@@ -100,21 +100,23 @@ type GetListParams<A, B> = {
100
100
  query?: B;
101
101
  };
102
102
  type EnumQueryType<T> = {
103
+ equals?: T;
103
104
  in?: T[];
104
- notIn?: T[];
105
105
  not?: T;
106
+ notIn?: T[];
106
107
  };
107
108
  type StringArrayQueryType<T = string> = {
108
- has?: T[];
109
+ equals?: T[];
110
+ has?: T;
109
111
  hasEvery?: T[];
110
112
  hasSome?: T[];
111
- equals?: T[];
112
113
  isEmpty?: boolean;
113
114
  };
114
115
  type DateQueryType = {
116
+ equals?: Date;
115
117
  in?: Date[];
116
- notIn?: Date[];
117
118
  not?: Date;
119
+ notIn?: Date[];
118
120
  gt?: Date;
119
121
  gte?: Date;
120
122
  lt?: Date;
@@ -157,6 +159,8 @@ type ProductBillingInterval = "DAY" | "WEEK" | "MONTH" | "YEAR";
157
159
  type ProductBillingType = "ONE_TIME" | "SUBSCRIPTION";
158
160
  interface Product {
159
161
  id: string;
162
+ createdAt: Date;
163
+ updatedAt: Date;
160
164
  title: string;
161
165
  description?: string;
162
166
  images: string[];
@@ -191,6 +195,8 @@ type ListProductsQuery = {
191
195
  collectionId?: StringArrayQueryType;
192
196
  collectionSeoHandle?: StringArrayQueryType;
193
197
  tags?: StringArrayQueryType;
198
+ createdAt?: DateQueryType;
199
+ updatedAt?: DateQueryType;
194
200
  };
195
201
  type ListProductsSortBy = "createdAt" | "updatedAt" | "title" | "stockAvailable" | "stockCommited" | "priceInCents";
196
202
  type ListProductsParams = GetListParams<ListProductsSortBy, ListProductsQuery>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.93",
3
+ "version": "0.3.95",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {