@mamindom/contracts 1.0.84 → 1.0.86

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.
@@ -281,6 +281,7 @@ export interface GetProductsRequest {
281
281
  priceMin?: number | undefined;
282
282
  priceMax?: number | undefined;
283
283
  sortBy?: string | undefined;
284
+ attributeValueIds: string[];
284
285
  }
285
286
  export interface GetProductsResponse {
286
287
  items: ProductListItemResponse[];
@@ -10,6 +10,7 @@ export interface GetShopFiltersResponse {
10
10
  attributes: ShopFilterAttribute[];
11
11
  priceMin: number;
12
12
  priceMax: number;
13
+ subcategoryIds: string[];
13
14
  }
14
15
  export interface ShopFilterOption {
15
16
  value: string;
@@ -257,17 +257,19 @@ message ProductStickerResponse {
257
257
 
258
258
  message GetProductsRequest {
259
259
  PaginationRequest pagination = 1;
260
-
261
- optional string search = 2;
260
+
261
+ optional string search = 2;
262
262
  optional string category_id = 3;
263
263
  optional string brand_id = 4;
264
264
  optional ProductStatus status = 5;
265
- optional bool in_stock = 6;
266
-
265
+ optional bool in_stock = 6;
266
+
267
267
  optional double price_min = 7;
268
268
  optional double price_max = 8;
269
-
269
+
270
270
  optional string sort_by = 9;
271
+
272
+ repeated string attribute_value_ids = 10;
271
273
  }
272
274
 
273
275
  message GetProductsResponse {
@@ -23,6 +23,7 @@ message GetShopFiltersResponse {
23
23
  repeated ShopFilterAttribute attributes = 4;
24
24
  double price_min = 5;
25
25
  double price_max = 6;
26
+ repeated string subcategory_ids = 7;
26
27
  }
27
28
 
28
29
  message ShopFilterOption {
package/gen/product.ts CHANGED
@@ -294,6 +294,7 @@ export interface GetProductsRequest {
294
294
  priceMin?: number | undefined;
295
295
  priceMax?: number | undefined;
296
296
  sortBy?: string | undefined;
297
+ attributeValueIds: string[];
297
298
  }
298
299
 
299
300
  export interface GetProductsResponse {
@@ -21,6 +21,7 @@ export interface GetShopFiltersResponse {
21
21
  attributes: ShopFilterAttribute[];
22
22
  priceMin: number;
23
23
  priceMax: number;
24
+ subcategoryIds: string[];
24
25
  }
25
26
 
26
27
  export interface ShopFilterOption {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.84",
4
+ "version": "1.0.86",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -257,17 +257,19 @@ message ProductStickerResponse {
257
257
 
258
258
  message GetProductsRequest {
259
259
  PaginationRequest pagination = 1;
260
-
261
- optional string search = 2;
260
+
261
+ optional string search = 2;
262
262
  optional string category_id = 3;
263
263
  optional string brand_id = 4;
264
264
  optional ProductStatus status = 5;
265
- optional bool in_stock = 6;
266
-
265
+ optional bool in_stock = 6;
266
+
267
267
  optional double price_min = 7;
268
268
  optional double price_max = 8;
269
-
269
+
270
270
  optional string sort_by = 9;
271
+
272
+ repeated string attribute_value_ids = 10;
271
273
  }
272
274
 
273
275
  message GetProductsResponse {
@@ -23,6 +23,7 @@ message GetShopFiltersResponse {
23
23
  repeated ShopFilterAttribute attributes = 4;
24
24
  double price_min = 5;
25
25
  double price_max = 6;
26
+ repeated string subcategory_ids = 7;
26
27
  }
27
28
 
28
29
  message ShopFilterOption {