@platfformx/proto-contracts 1.3.8 → 1.3.10
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.
|
@@ -9,7 +9,7 @@ export interface IndexCategoryResponse {
|
|
|
9
9
|
export interface IndexCategoriesRequest {
|
|
10
10
|
category: Category[];
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IndexCategoriesResponse {
|
|
13
13
|
ok: boolean;
|
|
14
14
|
}
|
|
15
15
|
export interface SearchCategoriesRequest {
|
|
@@ -51,6 +51,12 @@ export interface DeleteProductRequest {
|
|
|
51
51
|
export interface DeleteProductResponse {
|
|
52
52
|
ok: boolean;
|
|
53
53
|
}
|
|
54
|
+
export interface DeleteCategoryRequest {
|
|
55
|
+
categoryId: string;
|
|
56
|
+
}
|
|
57
|
+
export interface DeleteCategoryResponse {
|
|
58
|
+
ok: boolean;
|
|
59
|
+
}
|
|
54
60
|
export interface Product {
|
|
55
61
|
id: string;
|
|
56
62
|
slug: string;
|
|
@@ -76,7 +82,8 @@ export interface SearchServiceClient {
|
|
|
76
82
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteProductResponse>;
|
|
77
83
|
searchCategories(request: SearchCategoriesRequest): Observable<SearchCategoriesResponse>;
|
|
78
84
|
indexCategory(request: IndexCategoryRequest): Observable<IndexCategoryResponse>;
|
|
79
|
-
indexCategories(request: IndexCategoriesRequest): Observable<
|
|
85
|
+
indexCategories(request: IndexCategoriesRequest): Observable<IndexCategoriesResponse>;
|
|
86
|
+
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteCategoryResponse>;
|
|
80
87
|
}
|
|
81
88
|
export interface SearchServiceController {
|
|
82
89
|
searchProducts(request: SearchProductsRequest): Promise<SearchProductsResponse> | Observable<SearchProductsResponse> | SearchProductsResponse;
|
|
@@ -85,7 +92,8 @@ export interface SearchServiceController {
|
|
|
85
92
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteProductResponse> | Observable<DeleteProductResponse> | DeleteProductResponse;
|
|
86
93
|
searchCategories(request: SearchCategoriesRequest): Promise<SearchCategoriesResponse> | Observable<SearchCategoriesResponse> | SearchCategoriesResponse;
|
|
87
94
|
indexCategory(request: IndexCategoryRequest): Promise<IndexCategoryResponse> | Observable<IndexCategoryResponse> | IndexCategoryResponse;
|
|
88
|
-
indexCategories(request: IndexCategoriesRequest): Promise<
|
|
95
|
+
indexCategories(request: IndexCategoriesRequest): Promise<IndexCategoriesResponse> | Observable<IndexCategoriesResponse> | IndexCategoriesResponse;
|
|
96
|
+
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteCategoryResponse> | Observable<DeleteCategoryResponse> | DeleteCategoryResponse;
|
|
89
97
|
}
|
|
90
98
|
export declare function SearchServiceControllerMethods(): (constructor: Function) => void;
|
|
91
99
|
export declare const SEARCH_SERVICE_NAME = "SearchService";
|
package/package.json
CHANGED
|
@@ -10,7 +10,9 @@ service SearchService {
|
|
|
10
10
|
|
|
11
11
|
rpc SearchCategories (SearchCategoriesRequest) returns (SearchCategoriesResponse);
|
|
12
12
|
rpc IndexCategory (IndexCategoryRequest) returns (IndexCategoryResponse);
|
|
13
|
-
rpc IndexCategories (IndexCategoriesRequest) returns (
|
|
13
|
+
rpc IndexCategories (IndexCategoriesRequest) returns (IndexCategoriesResponse);
|
|
14
|
+
rpc DeleteCategory (DeleteCategoryRequest) returns (DeleteCategoryResponse);
|
|
15
|
+
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
message IndexCategoryRequest {
|
|
@@ -25,7 +27,7 @@ message IndexCategoriesRequest {
|
|
|
25
27
|
repeated Category category = 1;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
message
|
|
30
|
+
message IndexCategoriesResponse {
|
|
29
31
|
bool ok = 1;
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -77,6 +79,12 @@ message DeleteProductRequest {
|
|
|
77
79
|
message DeleteProductResponse {
|
|
78
80
|
bool ok = 1;
|
|
79
81
|
}
|
|
82
|
+
message DeleteCategoryRequest {
|
|
83
|
+
string category_id = 1;
|
|
84
|
+
}
|
|
85
|
+
message DeleteCategoryResponse {
|
|
86
|
+
bool ok = 1;
|
|
87
|
+
}
|
|
80
88
|
|
|
81
89
|
message Product {
|
|
82
90
|
string id = 1;
|