@platfformx/proto-contracts 1.3.9 → 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.
@@ -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;
@@ -77,6 +83,7 @@ export interface SearchServiceClient {
77
83
  searchCategories(request: SearchCategoriesRequest): Observable<SearchCategoriesResponse>;
78
84
  indexCategory(request: IndexCategoryRequest): Observable<IndexCategoryResponse>;
79
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;
@@ -86,6 +93,7 @@ export interface SearchServiceController {
86
93
  searchCategories(request: SearchCategoriesRequest): Promise<SearchCategoriesResponse> | Observable<SearchCategoriesResponse> | SearchCategoriesResponse;
87
94
  indexCategory(request: IndexCategoryRequest): Promise<IndexCategoryResponse> | Observable<IndexCategoryResponse> | IndexCategoryResponse;
88
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";
@@ -21,6 +21,7 @@ function SearchServiceControllerMethods() {
21
21
  "searchCategories",
22
22
  "indexCategory",
23
23
  "indexCategories",
24
+ "deleteCategory",
24
25
  ];
25
26
  for (const method of grpcMethods) {
26
27
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,6 +11,8 @@ service SearchService {
11
11
  rpc SearchCategories (SearchCategoriesRequest) returns (SearchCategoriesResponse);
12
12
  rpc IndexCategory (IndexCategoryRequest) returns (IndexCategoryResponse);
13
13
  rpc IndexCategories (IndexCategoriesRequest) returns (IndexCategoriesResponse);
14
+ rpc DeleteCategory (DeleteCategoryRequest) returns (DeleteCategoryResponse);
15
+
14
16
  }
15
17
 
16
18
  message IndexCategoryRequest {
@@ -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;