@trash-streamers/contracts 1.1.78 → 1.1.79
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 +8 -0
- package/dist/gen/ts/category.js +1 -0
- package/package.json +1 -1
- package/proto/category.proto +10 -0
|
@@ -44,6 +44,12 @@ export interface DeleteCategoryRequest {
|
|
|
44
44
|
export interface DeleteCategoryResponse {
|
|
45
45
|
status: boolean;
|
|
46
46
|
}
|
|
47
|
+
export interface GetCategoryWithTranslationsRequest {
|
|
48
|
+
slug: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetCategoryWithTranslationsResponse {
|
|
51
|
+
category: Category | undefined;
|
|
52
|
+
}
|
|
47
53
|
export interface Category {
|
|
48
54
|
id: string;
|
|
49
55
|
slug: string;
|
|
@@ -71,6 +77,7 @@ export interface CategoryServiceClient {
|
|
|
71
77
|
getAllCategories(request: GetAllCategoriesRequest): Observable<GetAllCategoriesResponse>;
|
|
72
78
|
updateCategory(request: UpdateCategoryRequest): Observable<UpdateCategoryResponse>;
|
|
73
79
|
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteCategoryResponse>;
|
|
80
|
+
getCategoryWithTranslations(request: GetCategoryWithTranslationsRequest): Observable<GetCategoryWithTranslationsResponse>;
|
|
74
81
|
}
|
|
75
82
|
export interface CategoryServiceController {
|
|
76
83
|
checkAvailabilityCategory(request: CheckAvailabilityCategoryRequest): Promise<CheckAvailabilityCategoryResponse> | Observable<CheckAvailabilityCategoryResponse> | CheckAvailabilityCategoryResponse;
|
|
@@ -78,6 +85,7 @@ export interface CategoryServiceController {
|
|
|
78
85
|
getAllCategories(request: GetAllCategoriesRequest): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
|
|
79
86
|
updateCategory(request: UpdateCategoryRequest): Promise<UpdateCategoryResponse> | Observable<UpdateCategoryResponse> | UpdateCategoryResponse;
|
|
80
87
|
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteCategoryResponse> | Observable<DeleteCategoryResponse> | DeleteCategoryResponse;
|
|
88
|
+
getCategoryWithTranslations(request: GetCategoryWithTranslationsRequest): Promise<GetCategoryWithTranslationsResponse> | Observable<GetCategoryWithTranslationsResponse> | GetCategoryWithTranslationsResponse;
|
|
81
89
|
}
|
|
82
90
|
export declare function CategoryServiceControllerMethods(): (constructor: Function) => void;
|
|
83
91
|
export declare const CATEGORY_SERVICE_NAME = "CategoryService";
|
package/dist/gen/ts/category.js
CHANGED
|
@@ -39,6 +39,7 @@ function CategoryServiceControllerMethods() {
|
|
|
39
39
|
"getAllCategories",
|
|
40
40
|
"updateCategory",
|
|
41
41
|
"deleteCategory",
|
|
42
|
+
"getCategoryWithTranslations",
|
|
42
43
|
];
|
|
43
44
|
for (const method of grpcMethods) {
|
|
44
45
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/category.proto
CHANGED
|
@@ -11,6 +11,8 @@ service CategoryService {
|
|
|
11
11
|
rpc GetAllCategories (GetAllCategoriesRequest) returns (GetAllCategoriesResponse);
|
|
12
12
|
rpc UpdateCategory (UpdateCategoryRequest) returns (UpdateCategoryResponse);
|
|
13
13
|
rpc DeleteCategory (DeleteCategoryRequest) returns (DeleteCategoryResponse);
|
|
14
|
+
|
|
15
|
+
rpc GetCategoryWithTranslations (GetCategoryWithTranslationsRequest) returns (GetCategoryWithTranslationsResponse);
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
|
|
@@ -58,6 +60,14 @@ message DeleteCategoryRequest {
|
|
|
58
60
|
message DeleteCategoryResponse {
|
|
59
61
|
bool status = 1;
|
|
60
62
|
}
|
|
63
|
+
|
|
64
|
+
message GetCategoryWithTranslationsRequest {
|
|
65
|
+
string slug = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message GetCategoryWithTranslationsResponse {
|
|
69
|
+
Category category = 1;
|
|
70
|
+
}
|
|
61
71
|
message Category {
|
|
62
72
|
string id = 1;
|
|
63
73
|
string slug = 2;
|