@mamindom/contracts 1.0.112 → 1.0.113

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.
@@ -295,6 +295,7 @@ export interface GetProductsRequest {
295
295
  priceMax?: number | undefined;
296
296
  sortBy?: string | undefined;
297
297
  attributeValueIds: string[];
298
+ brandIds: string[];
298
299
  }
299
300
  export interface GetProductsResponse {
300
301
  items: ProductListItemResponse[];
@@ -2,6 +2,17 @@ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "catalog.v1";
3
3
  export interface GetShopFiltersRequest {
4
4
  categoryId: string;
5
+ /**
6
+ * Поточно застосовані фільтри. Counts по кожному facet рахуються
7
+ * з виключенням саме того facet — щоб лічильники реагували на вибір.
8
+ */
9
+ brandIds: string[];
10
+ colorIds: string[];
11
+ sizeIds: string[];
12
+ priceMin?: number | undefined;
13
+ priceMax?: number | undefined;
14
+ inStock?: boolean | undefined;
15
+ search?: string | undefined;
5
16
  }
6
17
  export interface GetShopFiltersResponse {
7
18
  brands: ShopFilterOption[];
@@ -280,6 +280,7 @@ message GetProductsRequest {
280
280
  optional string sort_by = 9;
281
281
 
282
282
  repeated string attribute_value_ids = 10;
283
+ repeated string brand_ids = 11;
283
284
  }
284
285
 
285
286
  message GetProductsResponse {
@@ -13,6 +13,16 @@ service ShopFilterService {
13
13
 
14
14
  message GetShopFiltersRequest {
15
15
  string category_id = 1;
16
+
17
+ // Поточно застосовані фільтри. Counts по кожному facet рахуються
18
+ // з виключенням саме того facet — щоб лічильники реагували на вибір.
19
+ repeated string brand_ids = 2;
20
+ repeated string color_ids = 3;
21
+ repeated string size_ids = 4;
22
+ optional double price_min = 5;
23
+ optional double price_max = 6;
24
+ optional bool in_stock = 7;
25
+ optional string search = 8;
16
26
  }
17
27
 
18
28
 
package/gen/product.ts CHANGED
@@ -309,6 +309,7 @@ export interface GetProductsRequest {
309
309
  priceMax?: number | undefined;
310
310
  sortBy?: string | undefined;
311
311
  attributeValueIds: string[];
312
+ brandIds: string[];
312
313
  }
313
314
 
314
315
  export interface GetProductsResponse {
@@ -12,6 +12,17 @@ export const protobufPackage = "catalog.v1";
12
12
 
13
13
  export interface GetShopFiltersRequest {
14
14
  categoryId: string;
15
+ /**
16
+ * Поточно застосовані фільтри. Counts по кожному facet рахуються
17
+ * з виключенням саме того facet — щоб лічильники реагували на вибір.
18
+ */
19
+ brandIds: string[];
20
+ colorIds: string[];
21
+ sizeIds: string[];
22
+ priceMin?: number | undefined;
23
+ priceMax?: number | undefined;
24
+ inStock?: boolean | undefined;
25
+ search?: string | undefined;
15
26
  }
16
27
 
17
28
  export interface GetShopFiltersResponse {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.112",
4
+ "version": "1.0.113",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -280,6 +280,7 @@ message GetProductsRequest {
280
280
  optional string sort_by = 9;
281
281
 
282
282
  repeated string attribute_value_ids = 10;
283
+ repeated string brand_ids = 11;
283
284
  }
284
285
 
285
286
  message GetProductsResponse {
@@ -13,6 +13,16 @@ service ShopFilterService {
13
13
 
14
14
  message GetShopFiltersRequest {
15
15
  string category_id = 1;
16
+
17
+ // Поточно застосовані фільтри. Counts по кожному facet рахуються
18
+ // з виключенням саме того facet — щоб лічильники реагували на вибір.
19
+ repeated string brand_ids = 2;
20
+ repeated string color_ids = 3;
21
+ repeated string size_ids = 4;
22
+ optional double price_min = 5;
23
+ optional double price_max = 6;
24
+ optional bool in_stock = 7;
25
+ optional string search = 8;
16
26
  }
17
27
 
18
28