@platfformx/proto-contracts 1.3.4 → 1.3.6

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.
@@ -12,10 +12,9 @@ export interface IndexCategoriesRequest {
12
12
  export interface IndexCategoriesesponse {
13
13
  ok: boolean;
14
14
  }
15
- export interface GetCategoriesRequest {
16
- limit?: string | undefined;
15
+ export interface SearchCategoriesRequest {
17
16
  }
18
- export interface GetCategoriesResponse {
17
+ export interface SearchCategoriesResponse {
19
18
  categories: Category[];
20
19
  }
21
20
  export interface SearchProductsRequest {
@@ -75,7 +74,7 @@ export interface SearchServiceClient {
75
74
  indexProduct(request: IndexProductRequest): Observable<IndexProductResponse>;
76
75
  indexProducts(request: IndexProductsRequest): Observable<IndexProductsResponse>;
77
76
  deleteProduct(request: DeleteProductRequest): Observable<DeleteProductResponse>;
78
- getCategories(request: GetCategoriesRequest): Observable<GetCategoriesResponse>;
77
+ searchCategories(request: SearchCategoriesRequest): Observable<SearchCategoriesResponse>;
79
78
  indexCategory(request: IndexCategoryRequest): Observable<IndexCategoryResponse>;
80
79
  indexCategories(request: IndexCategoriesRequest): Observable<IndexCategoriesesponse>;
81
80
  }
@@ -84,7 +83,7 @@ export interface SearchServiceController {
84
83
  indexProduct(request: IndexProductRequest): Promise<IndexProductResponse> | Observable<IndexProductResponse> | IndexProductResponse;
85
84
  indexProducts(request: IndexProductsRequest): Promise<IndexProductsResponse> | Observable<IndexProductsResponse> | IndexProductsResponse;
86
85
  deleteProduct(request: DeleteProductRequest): Promise<DeleteProductResponse> | Observable<DeleteProductResponse> | DeleteProductResponse;
87
- getCategories(request: GetCategoriesRequest): Promise<GetCategoriesResponse> | Observable<GetCategoriesResponse> | GetCategoriesResponse;
86
+ searchCategories(request: SearchCategoriesRequest): Promise<SearchCategoriesResponse> | Observable<SearchCategoriesResponse> | SearchCategoriesResponse;
88
87
  indexCategory(request: IndexCategoryRequest): Promise<IndexCategoryResponse> | Observable<IndexCategoryResponse> | IndexCategoryResponse;
89
88
  indexCategories(request: IndexCategoriesRequest): Promise<IndexCategoriesesponse> | Observable<IndexCategoriesesponse> | IndexCategoriesesponse;
90
89
  }
@@ -18,7 +18,7 @@ function SearchServiceControllerMethods() {
18
18
  "indexProduct",
19
19
  "indexProducts",
20
20
  "deleteProduct",
21
- "getCategories",
21
+ "searchCategories",
22
22
  "indexCategory",
23
23
  "indexCategories",
24
24
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,7 @@ service SearchService {
8
8
  rpc IndexProducts (IndexProductsRequest) returns (IndexProductsResponse);
9
9
  rpc DeleteProduct (DeleteProductRequest) returns (DeleteProductResponse);
10
10
 
11
- rpc GetCategories (GetCategoriesRequest) returns (GetCategoriesResponse);
11
+ rpc SearchCategories (SearchCategoriesRequest) returns (SearchCategoriesResponse);
12
12
  rpc IndexCategory (IndexCategoryRequest) returns (IndexCategoryResponse);
13
13
  rpc IndexCategories (IndexCategoriesRequest) returns (IndexCategoriesesponse);
14
14
  }
@@ -29,11 +29,10 @@ message IndexCategoriesesponse {
29
29
  bool ok = 1;
30
30
  }
31
31
 
32
- message GetCategoriesRequest {
33
- optional string limit = 1;
32
+ message SearchCategoriesRequest {
34
33
  }
35
34
 
36
- message GetCategoriesResponse {
35
+ message SearchCategoriesResponse {
37
36
  repeated Category categories = 1;
38
37
  }
39
38