@mamindom/contracts 1.0.42 → 1.0.44

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.
@@ -1,7 +1,8 @@
1
1
  import { Observable } from "rxjs";
2
2
  import { DeleteResponse, SuccessResponse } from "./common";
3
- import { Empty } from "./google/protobuf/empty";
4
3
  export declare const protobufPackage = "catalog.v1";
4
+ export interface GetAllCategoriesRequest {
5
+ }
5
6
  export interface GetAllCategoriesResponse {
6
7
  items: CategoryResponse[];
7
8
  }
@@ -196,7 +197,7 @@ export interface CategoryServiceClient {
196
197
  updateCategory(request: UpdateCategoryRequest): Observable<CategoryResponse>;
197
198
  deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
198
199
  updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
199
- getAllCategories(request: Empty): Observable<GetAllCategoriesResponse>;
200
+ getAllCategories(request: GetAllCategoriesRequest): Observable<GetAllCategoriesResponse>;
200
201
  }
201
202
  export interface CategoryServiceController {
202
203
  getCategoryTree(request: GetCategoryTreeRequest): Promise<GetCategoryTreeResponse> | Observable<GetCategoryTreeResponse> | GetCategoryTreeResponse;
@@ -205,7 +206,7 @@ export interface CategoryServiceController {
205
206
  updateCategory(request: UpdateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
206
207
  deleteCategory(request: DeleteCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
207
208
  updateCategoryOrder(request: UpdateCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
208
- getAllCategories(request: Empty): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
209
+ getAllCategories(request: GetAllCategoriesRequest): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
209
210
  }
210
211
  export declare function CategoryServiceControllerMethods(): (constructor: Function) => void;
211
212
  export declare const CATEGORY_SERVICE_NAME = "CategoryService";
@@ -4,7 +4,7 @@ package catalog.v1;
4
4
 
5
5
 
6
6
 
7
- import "google/protobuf/empty.proto";
7
+
8
8
 
9
9
  import "common.proto";
10
10
 
@@ -22,9 +22,11 @@ service CategoryService {
22
22
 
23
23
  rpc UpdateCategoryOrder (UpdateCategoryOrderRequest) returns (SuccessResponse);
24
24
 
25
- rpc GetAllCategories (google.protobuf.Empty) returns (GetAllCategoriesResponse);
25
+ rpc GetAllCategories (GetAllCategoriesRequest) returns (GetAllCategoriesResponse);
26
26
  }
27
27
 
28
+ message GetAllCategoriesRequest {}
29
+
28
30
  message GetAllCategoriesResponse {
29
31
  repeated CategoryResponse items = 1;
30
32
  }
package/gen/category.ts CHANGED
@@ -8,10 +8,12 @@
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
10
  import { DeleteResponse, SuccessResponse } from "./common";
11
- import { Empty } from "./google/protobuf/empty";
12
11
 
13
12
  export const protobufPackage = "catalog.v1";
14
13
 
14
+ export interface GetAllCategoriesRequest {
15
+ }
16
+
15
17
  export interface GetAllCategoriesResponse {
16
18
  items: CategoryResponse[];
17
19
  }
@@ -206,7 +208,7 @@ export interface CategoryServiceClient {
206
208
 
207
209
  updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
208
210
 
209
- getAllCategories(request: Empty): Observable<GetAllCategoriesResponse>;
211
+ getAllCategories(request: GetAllCategoriesRequest): Observable<GetAllCategoriesResponse>;
210
212
  }
211
213
 
212
214
  export interface CategoryServiceController {
@@ -231,7 +233,7 @@ export interface CategoryServiceController {
231
233
  ): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
232
234
 
233
235
  getAllCategories(
234
- request: Empty,
236
+ request: GetAllCategoriesRequest,
235
237
  ): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
236
238
  }
237
239
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.42",
4
+ "version": "1.0.44",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -4,7 +4,7 @@ package catalog.v1;
4
4
 
5
5
 
6
6
 
7
- import "google/protobuf/empty.proto";
7
+
8
8
 
9
9
  import "common.proto";
10
10
 
@@ -22,9 +22,11 @@ service CategoryService {
22
22
 
23
23
  rpc UpdateCategoryOrder (UpdateCategoryOrderRequest) returns (SuccessResponse);
24
24
 
25
- rpc GetAllCategories (google.protobuf.Empty) returns (GetAllCategoriesResponse);
25
+ rpc GetAllCategories (GetAllCategoriesRequest) returns (GetAllCategoriesResponse);
26
26
  }
27
27
 
28
+ message GetAllCategoriesRequest {}
29
+
28
30
  message GetAllCategoriesResponse {
29
31
  repeated CategoryResponse items = 1;
30
32
  }
@@ -1,13 +0,0 @@
1
- export declare const protobufPackage = "google.protobuf";
2
- /**
3
- * A generic empty message that you can re-use to avoid defining duplicated
4
- * empty messages in your APIs. A typical example is to use it as the request
5
- * or the response type of an API method. For instance:
6
- *
7
- * service Foo {
8
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
9
- * }
10
- */
11
- export interface Empty {
12
- }
13
- export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.11.4
5
- // protoc v3.21.12
6
- // source: google/protobuf/empty.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- exports.protobufPackage = "google.protobuf";
11
- exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
@@ -1,23 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.11.4
4
- // protoc v3.21.12
5
- // source: google/protobuf/empty.proto
6
-
7
- /* eslint-disable */
8
-
9
- export const protobufPackage = "google.protobuf";
10
-
11
- /**
12
- * A generic empty message that you can re-use to avoid defining duplicated
13
- * empty messages in your APIs. A typical example is to use it as the request
14
- * or the response type of an API method. For instance:
15
- *
16
- * service Foo {
17
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
18
- * }
19
- */
20
- export interface Empty {
21
- }
22
-
23
- export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";