@barumetric/contracts 1.3.4 → 1.3.5
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/gen/ts/categories.ts +11 -0
- package/package.json +4 -5
- package/proto/categories.proto +5 -0
package/gen/ts/categories.ts
CHANGED
|
@@ -137,6 +137,10 @@ export interface GetAttributeRequest {
|
|
|
137
137
|
id: string;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
export interface GetAllAttributesResponse {
|
|
141
|
+
attributes: Attribute[];
|
|
142
|
+
}
|
|
143
|
+
|
|
140
144
|
export interface GetAttributeResponse {
|
|
141
145
|
attribute: Attribute | undefined;
|
|
142
146
|
}
|
|
@@ -235,6 +239,8 @@ export interface CategoriesServiceClient {
|
|
|
235
239
|
|
|
236
240
|
/** Attribute management */
|
|
237
241
|
|
|
242
|
+
getAllAttributes(request: Empty): Observable<GetAllAttributesResponse>;
|
|
243
|
+
|
|
238
244
|
getAttribute(request: GetAttributeRequest): Observable<GetAttributeResponse>;
|
|
239
245
|
|
|
240
246
|
createAttribute(request: CreateAttributeRequest): Observable<CreateAttributeResponse>;
|
|
@@ -279,6 +285,10 @@ export interface CategoriesServiceController {
|
|
|
279
285
|
|
|
280
286
|
/** Attribute management */
|
|
281
287
|
|
|
288
|
+
getAllAttributes(
|
|
289
|
+
request: Empty,
|
|
290
|
+
): Promise<GetAllAttributesResponse> | Observable<GetAllAttributesResponse> | GetAllAttributesResponse;
|
|
291
|
+
|
|
282
292
|
getAttribute(
|
|
283
293
|
request: GetAttributeRequest,
|
|
284
294
|
): Promise<GetAttributeResponse> | Observable<GetAttributeResponse> | GetAttributeResponse;
|
|
@@ -321,6 +331,7 @@ export function CategoriesServiceControllerMethods() {
|
|
|
321
331
|
"createCategory",
|
|
322
332
|
"updateCategory",
|
|
323
333
|
"deleteCategory",
|
|
334
|
+
"getAllAttributes",
|
|
324
335
|
"getAttribute",
|
|
325
336
|
"createAttribute",
|
|
326
337
|
"updateAttribute",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barumetric/contracts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Protobuf definitions and generated TypeScript types",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,13 +17,12 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@barumetric/contracts": "^1.2.3",
|
|
21
20
|
"@nestjs/microservices": "^11.1.9",
|
|
22
|
-
"rxjs": "^7.8.2"
|
|
23
|
-
"ts-proto": "^2.8.3"
|
|
21
|
+
"rxjs": "^7.8.2"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"@types/node": "^25.0.3",
|
|
27
|
-
"typescript": "^5.9.3"
|
|
25
|
+
"typescript": "^5.9.3",
|
|
26
|
+
"ts-proto": "^2.8.3"
|
|
28
27
|
}
|
|
29
28
|
}
|
package/proto/categories.proto
CHANGED
|
@@ -14,6 +14,7 @@ service CategoriesService {
|
|
|
14
14
|
rpc DeleteCategory (DeleteCategoryRequest) returns (DeleteCategoryResponse);
|
|
15
15
|
|
|
16
16
|
// Attribute management
|
|
17
|
+
rpc GetAllAttributes (google.protobuf.Empty) returns (GetAllAttributesResponse);
|
|
17
18
|
rpc GetAttribute (GetAttributeRequest) returns (GetAttributeResponse);
|
|
18
19
|
rpc CreateAttribute (CreateAttributeRequest) returns (CreateAttributeResponse);
|
|
19
20
|
rpc UpdateAttribute (UpdateAttributeRequest) returns (UpdateAttributeResponse);
|
|
@@ -149,6 +150,10 @@ message GetAttributeRequest {
|
|
|
149
150
|
string id = 1;
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
message GetAllAttributesResponse {
|
|
154
|
+
repeated Attribute attributes = 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
152
157
|
message GetAttributeResponse {
|
|
153
158
|
Attribute attribute = 1;
|
|
154
159
|
}
|