@candesk/contracts 6.54.0 → 6.55.0
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/dist/gen/catalog.d.ts +8 -0
- package/dist/nest/catalog.d.ts +8 -0
- package/package.json +1 -1
- package/proto/catalog.proto +9 -0
package/dist/gen/catalog.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ export interface Product {
|
|
|
111
111
|
createdAt: string;
|
|
112
112
|
updatedAt: string;
|
|
113
113
|
coverKey?: string | undefined;
|
|
114
|
+
ratingAverage?: number | undefined;
|
|
115
|
+
ratingCount: number;
|
|
114
116
|
}
|
|
115
117
|
export interface ProductInput {
|
|
116
118
|
name: string;
|
|
@@ -142,6 +144,7 @@ export interface ProductFilter {
|
|
|
142
144
|
thcLevels: PotencyLevel[];
|
|
143
145
|
cbdLevels: PotencyLevel[];
|
|
144
146
|
price?: PriceRange | undefined;
|
|
147
|
+
minRating?: number | undefined;
|
|
145
148
|
}
|
|
146
149
|
export interface ListProductsRequest {
|
|
147
150
|
query?: string | undefined;
|
|
@@ -192,6 +195,10 @@ export interface PotencyLevelFacet {
|
|
|
192
195
|
level: PotencyLevel;
|
|
193
196
|
count: number;
|
|
194
197
|
}
|
|
198
|
+
export interface RatingFacet {
|
|
199
|
+
stars: number;
|
|
200
|
+
count: number;
|
|
201
|
+
}
|
|
195
202
|
export interface PriceBounds {
|
|
196
203
|
min: number;
|
|
197
204
|
max: number;
|
|
@@ -206,6 +213,7 @@ export interface GetProductFacetsResponse {
|
|
|
206
213
|
thcLevels: PotencyLevelFacet[];
|
|
207
214
|
cbdLevels: PotencyLevelFacet[];
|
|
208
215
|
price?: PriceBounds | undefined;
|
|
216
|
+
ratings: RatingFacet[];
|
|
209
217
|
}
|
|
210
218
|
export interface GetProductRequest {
|
|
211
219
|
id: string;
|
package/dist/nest/catalog.d.ts
CHANGED
|
@@ -112,6 +112,8 @@ export interface Product {
|
|
|
112
112
|
createdAt: string;
|
|
113
113
|
updatedAt: string;
|
|
114
114
|
coverKey?: string | undefined;
|
|
115
|
+
ratingAverage?: number | undefined;
|
|
116
|
+
ratingCount: number;
|
|
115
117
|
}
|
|
116
118
|
export interface ProductInput {
|
|
117
119
|
name: string;
|
|
@@ -143,6 +145,7 @@ export interface ProductFilter {
|
|
|
143
145
|
thcLevels: PotencyLevel[];
|
|
144
146
|
cbdLevels: PotencyLevel[];
|
|
145
147
|
price?: PriceRange | undefined;
|
|
148
|
+
minRating?: number | undefined;
|
|
146
149
|
}
|
|
147
150
|
export interface ListProductsRequest {
|
|
148
151
|
query?: string | undefined;
|
|
@@ -193,6 +196,10 @@ export interface PotencyLevelFacet {
|
|
|
193
196
|
level: PotencyLevel;
|
|
194
197
|
count: number;
|
|
195
198
|
}
|
|
199
|
+
export interface RatingFacet {
|
|
200
|
+
stars: number;
|
|
201
|
+
count: number;
|
|
202
|
+
}
|
|
196
203
|
export interface PriceBounds {
|
|
197
204
|
min: number;
|
|
198
205
|
max: number;
|
|
@@ -207,6 +214,7 @@ export interface GetProductFacetsResponse {
|
|
|
207
214
|
thcLevels: PotencyLevelFacet[];
|
|
208
215
|
cbdLevels: PotencyLevelFacet[];
|
|
209
216
|
price?: PriceBounds | undefined;
|
|
217
|
+
ratings: RatingFacet[];
|
|
210
218
|
}
|
|
211
219
|
export interface GetProductRequest {
|
|
212
220
|
id: string;
|
package/package.json
CHANGED
package/proto/catalog.proto
CHANGED
|
@@ -143,6 +143,8 @@ message Product {
|
|
|
143
143
|
string created_at = 20;
|
|
144
144
|
string updated_at = 21;
|
|
145
145
|
optional string cover_key = 22;
|
|
146
|
+
optional double rating_average = 23;
|
|
147
|
+
int32 rating_count = 24;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
message ProductInput {
|
|
@@ -178,6 +180,7 @@ message ProductFilter {
|
|
|
178
180
|
repeated PotencyLevel thc_levels = 8;
|
|
179
181
|
repeated PotencyLevel cbd_levels = 9;
|
|
180
182
|
optional PriceRange price = 10;
|
|
183
|
+
optional int32 min_rating = 11;
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
message ListProductsRequest {
|
|
@@ -239,6 +242,11 @@ message PotencyLevelFacet {
|
|
|
239
242
|
int32 count = 2;
|
|
240
243
|
}
|
|
241
244
|
|
|
245
|
+
message RatingFacet {
|
|
246
|
+
int32 stars = 1;
|
|
247
|
+
int32 count = 2;
|
|
248
|
+
}
|
|
249
|
+
|
|
242
250
|
message PriceBounds {
|
|
243
251
|
int32 min = 1;
|
|
244
252
|
int32 max = 2;
|
|
@@ -255,6 +263,7 @@ message GetProductFacetsResponse {
|
|
|
255
263
|
repeated PotencyLevelFacet thc_levels = 9;
|
|
256
264
|
repeated PotencyLevelFacet cbd_levels = 10;
|
|
257
265
|
optional PriceBounds price = 11;
|
|
266
|
+
repeated RatingFacet ratings = 12;
|
|
258
267
|
}
|
|
259
268
|
|
|
260
269
|
message GetProductRequest {
|