@platfformx/proto-contracts 1.3.3 → 1.3.5
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.
|
@@ -6,6 +6,12 @@ export interface IndexCategoryRequest {
|
|
|
6
6
|
export interface IndexCategoryResponse {
|
|
7
7
|
ok: boolean;
|
|
8
8
|
}
|
|
9
|
+
export interface IndexCategoriesRequest {
|
|
10
|
+
category: Category[];
|
|
11
|
+
}
|
|
12
|
+
export interface IndexCategoriesesponse {
|
|
13
|
+
ok: boolean;
|
|
14
|
+
}
|
|
9
15
|
export interface GetCategoriesRequest {
|
|
10
16
|
limit?: string | undefined;
|
|
11
17
|
}
|
|
@@ -71,6 +77,7 @@ export interface SearchServiceClient {
|
|
|
71
77
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteProductResponse>;
|
|
72
78
|
getCategories(request: GetCategoriesRequest): Observable<GetCategoriesResponse>;
|
|
73
79
|
indexCategory(request: IndexCategoryRequest): Observable<IndexCategoryResponse>;
|
|
80
|
+
indexCategories(request: IndexCategoriesRequest): Observable<IndexCategoriesesponse>;
|
|
74
81
|
}
|
|
75
82
|
export interface SearchServiceController {
|
|
76
83
|
searchProducts(request: SearchProductsRequest): Promise<SearchProductsResponse> | Observable<SearchProductsResponse> | SearchProductsResponse;
|
|
@@ -79,6 +86,7 @@ export interface SearchServiceController {
|
|
|
79
86
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteProductResponse> | Observable<DeleteProductResponse> | DeleteProductResponse;
|
|
80
87
|
getCategories(request: GetCategoriesRequest): Promise<GetCategoriesResponse> | Observable<GetCategoriesResponse> | GetCategoriesResponse;
|
|
81
88
|
indexCategory(request: IndexCategoryRequest): Promise<IndexCategoryResponse> | Observable<IndexCategoryResponse> | IndexCategoryResponse;
|
|
89
|
+
indexCategories(request: IndexCategoriesRequest): Promise<IndexCategoriesesponse> | Observable<IndexCategoriesesponse> | IndexCategoriesesponse;
|
|
82
90
|
}
|
|
83
91
|
export declare function SearchServiceControllerMethods(): (constructor: Function) => void;
|
|
84
92
|
export declare const SEARCH_SERVICE_NAME = "SearchService";
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ service SearchService {
|
|
|
10
10
|
|
|
11
11
|
rpc GetCategories (GetCategoriesRequest) returns (GetCategoriesResponse);
|
|
12
12
|
rpc IndexCategory (IndexCategoryRequest) returns (IndexCategoryResponse);
|
|
13
|
+
rpc IndexCategories (IndexCategoriesRequest) returns (IndexCategoriesesponse);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
message IndexCategoryRequest {
|
|
@@ -19,6 +20,15 @@ message IndexCategoryRequest {
|
|
|
19
20
|
message IndexCategoryResponse {
|
|
20
21
|
bool ok = 1;
|
|
21
22
|
}
|
|
23
|
+
|
|
24
|
+
message IndexCategoriesRequest {
|
|
25
|
+
repeated Category category = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message IndexCategoriesesponse {
|
|
29
|
+
bool ok = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
message GetCategoriesRequest {
|
|
23
33
|
optional string limit = 1;
|
|
24
34
|
}
|