@trash-streamers/contracts 1.1.72 → 1.1.74
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/ts/category.d.ts +10 -5
- package/dist/gen/ts/category.js +6 -6
- package/package.json +1 -1
- package/proto/category.proto +8 -2
|
@@ -18,7 +18,7 @@ export interface CheckAvailabilityCategoryResponse {
|
|
|
18
18
|
export interface CreateCategoryRequest {
|
|
19
19
|
targets: TargetType[];
|
|
20
20
|
thumbnailUrl: string;
|
|
21
|
-
translations:
|
|
21
|
+
translations: CreateCategoryTranslation[];
|
|
22
22
|
}
|
|
23
23
|
export interface CreateCategoryResponse {
|
|
24
24
|
category: Category | undefined;
|
|
@@ -32,6 +32,11 @@ export interface Category {
|
|
|
32
32
|
createdAt: Date | undefined;
|
|
33
33
|
updatedAt: Date | undefined;
|
|
34
34
|
}
|
|
35
|
+
export interface CreateCategoryTranslation {
|
|
36
|
+
language: Language;
|
|
37
|
+
name: string;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}
|
|
35
40
|
export interface CategoryTranslation {
|
|
36
41
|
id: string;
|
|
37
42
|
language: Language;
|
|
@@ -39,13 +44,13 @@ export interface CategoryTranslation {
|
|
|
39
44
|
description?: string | undefined;
|
|
40
45
|
}
|
|
41
46
|
export declare const CATEGORY_V1_PACKAGE_NAME = "category.v1";
|
|
42
|
-
export interface
|
|
47
|
+
export interface CategoryServiceClient {
|
|
43
48
|
checkAvailabilityCategory(request: CheckAvailabilityCategoryRequest): Observable<CheckAvailabilityCategoryResponse>;
|
|
44
49
|
createCategory(request: CreateCategoryRequest): Observable<CreateCategoryResponse>;
|
|
45
50
|
}
|
|
46
|
-
export interface
|
|
51
|
+
export interface CategoryServiceController {
|
|
47
52
|
checkAvailabilityCategory(request: CheckAvailabilityCategoryRequest): Promise<CheckAvailabilityCategoryResponse> | Observable<CheckAvailabilityCategoryResponse> | CheckAvailabilityCategoryResponse;
|
|
48
53
|
createCategory(request: CreateCategoryRequest): Promise<CreateCategoryResponse> | Observable<CreateCategoryResponse> | CreateCategoryResponse;
|
|
49
54
|
}
|
|
50
|
-
export declare function
|
|
51
|
-
export declare const
|
|
55
|
+
export declare function CategoryServiceControllerMethods(): (constructor: Function) => void;
|
|
56
|
+
export declare const CATEGORY_SERVICE_NAME = "CategoryService";
|
package/dist/gen/ts/category.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: category.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
8
|
+
exports.CATEGORY_SERVICE_NAME = exports.CATEGORY_V1_PACKAGE_NAME = exports.TargetType = exports.Language = exports.protobufPackage = void 0;
|
|
9
|
+
exports.CategoryServiceControllerMethods = CategoryServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
12
|
const protobufjs_1 = require("protobufjs");
|
|
@@ -31,18 +31,18 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
31
31
|
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
-
function
|
|
34
|
+
function CategoryServiceControllerMethods() {
|
|
35
35
|
return function (constructor) {
|
|
36
36
|
const grpcMethods = ["checkAvailabilityCategory", "createCategory"];
|
|
37
37
|
for (const method of grpcMethods) {
|
|
38
38
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
39
|
-
(0, microservices_1.GrpcMethod)("
|
|
39
|
+
(0, microservices_1.GrpcMethod)("CategoryService", method)(constructor.prototype[method], method, descriptor);
|
|
40
40
|
}
|
|
41
41
|
const grpcStreamMethods = [];
|
|
42
42
|
for (const method of grpcStreamMethods) {
|
|
43
43
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
44
|
-
(0, microservices_1.GrpcStreamMethod)("
|
|
44
|
+
(0, microservices_1.GrpcStreamMethod)("CategoryService", method)(constructor.prototype[method], method, descriptor);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
exports.
|
|
48
|
+
exports.CATEGORY_SERVICE_NAME = "CategoryService";
|
package/package.json
CHANGED
package/proto/category.proto
CHANGED
|
@@ -4,7 +4,7 @@ package category.v1;
|
|
|
4
4
|
|
|
5
5
|
import "google/protobuf/timestamp.proto";
|
|
6
6
|
|
|
7
|
-
service
|
|
7
|
+
service CategoryService {
|
|
8
8
|
rpc CheckAvailabilityCategory (CheckAvailabilityCategoryRequest) returns (CheckAvailabilityCategoryResponse);
|
|
9
9
|
rpc CreateCategory (CreateCategoryRequest) returns (CreateCategoryResponse);
|
|
10
10
|
}
|
|
@@ -21,7 +21,7 @@ message CheckAvailabilityCategoryResponse {
|
|
|
21
21
|
message CreateCategoryRequest {
|
|
22
22
|
repeated TargetType targets = 1;
|
|
23
23
|
string thumbnail_url = 2;
|
|
24
|
-
repeated
|
|
24
|
+
repeated CreateCategoryTranslation translations = 3;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
|
|
@@ -39,6 +39,12 @@ message Category {
|
|
|
39
39
|
google.protobuf.Timestamp updated_at = 7;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
message CreateCategoryTranslation {
|
|
43
|
+
Language language = 1;
|
|
44
|
+
string name = 2;
|
|
45
|
+
optional string description = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
message CategoryTranslation {
|
|
43
49
|
string id = 1;
|
|
44
50
|
Language language = 2;
|