@barumetric/contracts 1.3.3 → 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.
@@ -12,16 +12,16 @@ import { Empty } from "./google/protobuf/empty";
12
12
  export const protobufPackage = "categories.v1";
13
13
 
14
14
  export enum AttributeType {
15
- ATTRIBUTE_TYPE_UNSPECIFIED = 0,
16
- ATTRIBUTE_TYPE_STRING = 1,
17
- ATTRIBUTE_TYPE_TEXT = 2,
18
- ATTRIBUTE_TYPE_INTEGER = 3,
19
- ATTRIBUTE_TYPE_FLOAT = 4,
20
- ATTRIBUTE_TYPE_BOOLEAN = 5,
21
- ATTRIBUTE_TYPE_ENUM = 6,
22
- ATTRIBUTE_TYPE_MULTI_ENUM = 7,
23
- ATTRIBUTE_TYPE_RANGE = 8,
24
- ATTRIBUTE_TYPE_DATE = 9,
15
+ UNSPECIFIED = 0,
16
+ STRING = 1,
17
+ TEXT = 2,
18
+ INTEGER = 3,
19
+ FLOAT = 4,
20
+ BOOLEAN = 5,
21
+ ENUM = 6,
22
+ MULTI_ENUM = 7,
23
+ RANGE = 8,
24
+ DATE = 9,
25
25
  UNRECOGNIZED = -1,
26
26
  }
27
27
 
@@ -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",
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
  }
@@ -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);
@@ -132,16 +133,16 @@ message EnumValueInput {
132
133
  }
133
134
 
134
135
  enum AttributeType {
135
- ATTRIBUTE_TYPE_UNSPECIFIED = 0;
136
- ATTRIBUTE_TYPE_STRING = 1;
137
- ATTRIBUTE_TYPE_TEXT = 2;
138
- ATTRIBUTE_TYPE_INTEGER = 3;
139
- ATTRIBUTE_TYPE_FLOAT = 4;
140
- ATTRIBUTE_TYPE_BOOLEAN = 5;
141
- ATTRIBUTE_TYPE_ENUM = 6;
142
- ATTRIBUTE_TYPE_MULTI_ENUM = 7;
143
- ATTRIBUTE_TYPE_RANGE = 8;
144
- ATTRIBUTE_TYPE_DATE = 9;
136
+ UNSPECIFIED = 0;
137
+ STRING = 1;
138
+ TEXT = 2;
139
+ INTEGER = 3;
140
+ FLOAT = 4;
141
+ BOOLEAN = 5;
142
+ ENUM = 6;
143
+ MULTI_ENUM = 7;
144
+ RANGE = 8;
145
+ DATE = 9;
145
146
  }
146
147
 
147
148
  // Attribute management messages
@@ -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
  }