@platfformx/proto-contracts 1.3.5 → 1.3.7
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
|
|
16
|
-
limit?: string | undefined;
|
|
15
|
+
export interface SearchCategoriesRequest {
|
|
17
16
|
}
|
|
18
|
-
export interface
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ service SearchService {
|
|
|
8
8
|
rpc IndexProducts (IndexProductsRequest) returns (IndexProductsResponse);
|
|
9
9
|
rpc DeleteProduct (DeleteProductRequest) returns (DeleteProductResponse);
|
|
10
10
|
|
|
11
|
-
rpc
|
|
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
|
|
33
|
-
optional string limit = 1;
|
|
32
|
+
message SearchCategoriesRequest {
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
message
|
|
35
|
+
message SearchCategoriesResponse {
|
|
37
36
|
repeated Category categories = 1;
|
|
38
37
|
}
|
|
39
38
|
|