@mamindom/contracts 1.0.41 → 1.0.42
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.
- package/dist/gen/category.d.ts +6 -0
- package/dist/gen/category.js +1 -0
- package/dist/gen/google/protobuf/empty.d.ts +13 -0
- package/dist/gen/google/protobuf/empty.js +11 -0
- package/dist/proto/category.proto +9 -2
- package/gen/category.ts +12 -0
- package/gen/google/protobuf/empty.ts +23 -0
- package/package.json +1 -1
- package/proto/category.proto +9 -2
package/dist/gen/category.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { DeleteResponse, SuccessResponse } from "./common";
|
|
3
|
+
import { Empty } from "./google/protobuf/empty";
|
|
3
4
|
export declare const protobufPackage = "catalog.v1";
|
|
5
|
+
export interface GetAllCategoriesResponse {
|
|
6
|
+
items: CategoryResponse[];
|
|
7
|
+
}
|
|
4
8
|
export interface GetCategoryTreeRequest {
|
|
5
9
|
lang: string;
|
|
6
10
|
}
|
|
@@ -192,6 +196,7 @@ export interface CategoryServiceClient {
|
|
|
192
196
|
updateCategory(request: UpdateCategoryRequest): Observable<CategoryResponse>;
|
|
193
197
|
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
|
|
194
198
|
updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
|
|
199
|
+
getAllCategories(request: Empty): Observable<GetAllCategoriesResponse>;
|
|
195
200
|
}
|
|
196
201
|
export interface CategoryServiceController {
|
|
197
202
|
getCategoryTree(request: GetCategoryTreeRequest): Promise<GetCategoryTreeResponse> | Observable<GetCategoryTreeResponse> | GetCategoryTreeResponse;
|
|
@@ -200,6 +205,7 @@ export interface CategoryServiceController {
|
|
|
200
205
|
updateCategory(request: UpdateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
201
206
|
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
202
207
|
updateCategoryOrder(request: UpdateCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
208
|
+
getAllCategories(request: Empty): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
|
|
203
209
|
}
|
|
204
210
|
export declare function CategoryServiceControllerMethods(): (constructor: Function) => void;
|
|
205
211
|
export declare const CATEGORY_SERVICE_NAME = "CategoryService";
|
package/dist/gen/category.js
CHANGED
|
@@ -20,6 +20,7 @@ function CategoryServiceControllerMethods() {
|
|
|
20
20
|
"updateCategory",
|
|
21
21
|
"deleteCategory",
|
|
22
22
|
"updateCategoryOrder",
|
|
23
|
+
"getAllCategories",
|
|
23
24
|
];
|
|
24
25
|
for (const method of grpcMethods) {
|
|
25
26
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -0,0 +1,13 @@
|
|
|
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";
|
|
@@ -0,0 +1,11 @@
|
|
|
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";
|
|
@@ -3,7 +3,10 @@ syntax = "proto3";
|
|
|
3
3
|
package catalog.v1;
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/empty.proto";
|
|
8
|
+
|
|
9
|
+
import "common.proto";
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
service CategoryService {
|
|
@@ -18,9 +21,13 @@ service CategoryService {
|
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
rpc UpdateCategoryOrder (UpdateCategoryOrderRequest) returns (SuccessResponse);
|
|
21
|
-
}
|
|
22
24
|
|
|
25
|
+
rpc GetAllCategories (google.protobuf.Empty) returns (GetAllCategoriesResponse);
|
|
26
|
+
}
|
|
23
27
|
|
|
28
|
+
message GetAllCategoriesResponse {
|
|
29
|
+
repeated CategoryResponse items = 1;
|
|
30
|
+
}
|
|
24
31
|
message GetCategoryTreeRequest {
|
|
25
32
|
string lang = 1;
|
|
26
33
|
}
|
package/gen/category.ts
CHANGED
|
@@ -8,9 +8,14 @@
|
|
|
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";
|
|
11
12
|
|
|
12
13
|
export const protobufPackage = "catalog.v1";
|
|
13
14
|
|
|
15
|
+
export interface GetAllCategoriesResponse {
|
|
16
|
+
items: CategoryResponse[];
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
export interface GetCategoryTreeRequest {
|
|
15
20
|
lang: string;
|
|
16
21
|
}
|
|
@@ -200,6 +205,8 @@ export interface CategoryServiceClient {
|
|
|
200
205
|
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
|
|
201
206
|
|
|
202
207
|
updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
|
|
208
|
+
|
|
209
|
+
getAllCategories(request: Empty): Observable<GetAllCategoriesResponse>;
|
|
203
210
|
}
|
|
204
211
|
|
|
205
212
|
export interface CategoryServiceController {
|
|
@@ -222,6 +229,10 @@ export interface CategoryServiceController {
|
|
|
222
229
|
updateCategoryOrder(
|
|
223
230
|
request: UpdateCategoryOrderRequest,
|
|
224
231
|
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
232
|
+
|
|
233
|
+
getAllCategories(
|
|
234
|
+
request: Empty,
|
|
235
|
+
): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
|
|
225
236
|
}
|
|
226
237
|
|
|
227
238
|
export function CategoryServiceControllerMethods() {
|
|
@@ -233,6 +244,7 @@ export function CategoryServiceControllerMethods() {
|
|
|
233
244
|
"updateCategory",
|
|
234
245
|
"deleteCategory",
|
|
235
246
|
"updateCategoryOrder",
|
|
247
|
+
"getAllCategories",
|
|
236
248
|
];
|
|
237
249
|
for (const method of grpcMethods) {
|
|
238
250
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -0,0 +1,23 @@
|
|
|
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";
|
package/package.json
CHANGED
package/proto/category.proto
CHANGED
|
@@ -3,7 +3,10 @@ syntax = "proto3";
|
|
|
3
3
|
package catalog.v1;
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/empty.proto";
|
|
8
|
+
|
|
9
|
+
import "common.proto";
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
service CategoryService {
|
|
@@ -18,9 +21,13 @@ service CategoryService {
|
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
rpc UpdateCategoryOrder (UpdateCategoryOrderRequest) returns (SuccessResponse);
|
|
21
|
-
}
|
|
22
24
|
|
|
25
|
+
rpc GetAllCategories (google.protobuf.Empty) returns (GetAllCategoriesResponse);
|
|
26
|
+
}
|
|
23
27
|
|
|
28
|
+
message GetAllCategoriesResponse {
|
|
29
|
+
repeated CategoryResponse items = 1;
|
|
30
|
+
}
|
|
24
31
|
message GetCategoryTreeRequest {
|
|
25
32
|
string lang = 1;
|
|
26
33
|
}
|