@barumetric/contracts 1.3.1 → 1.3.2

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.
@@ -96,6 +96,7 @@ export interface CreateCategoryResponse {
96
96
  }
97
97
 
98
98
  export interface UpdateCategoryRequest {
99
+ id: string;
99
100
  name: string;
100
101
  slug: string;
101
102
  description?: string | undefined;
@@ -111,14 +112,7 @@ export interface UpdateCategoryResponse {
111
112
  }
112
113
 
113
114
  export interface DeleteCategoryRequest {
114
- name: string;
115
- slug: string;
116
- description?: string | undefined;
117
- parentId?: string | undefined;
118
- sortOrder: number;
119
- isActive: boolean;
120
- iconUrl?: string | undefined;
121
- bannerUrl?: string | undefined;
115
+ id: string;
122
116
  }
123
117
 
124
118
  export interface DeleteCategoryResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barumetric/contracts",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -85,14 +85,15 @@ message CreateCategoryResponse {
85
85
  }
86
86
 
87
87
  message UpdateCategoryRequest {
88
- string name = 1;
89
- string slug = 2;
90
- optional string description = 3;
91
- optional string parent_id = 4;
92
- int32 sort_order = 5;
93
- bool is_active = 6;
94
- optional string icon_url = 7;
95
- optional string banner_url = 8;
88
+ string id = 1;
89
+ string name = 2;
90
+ string slug = 3;
91
+ optional string description = 4;
92
+ optional string parent_id = 5;
93
+ int32 sort_order = 6;
94
+ bool is_active = 7;
95
+ optional string icon_url = 8;
96
+ optional string banner_url = 9;
96
97
  }
97
98
 
98
99
  message UpdateCategoryResponse {
@@ -100,14 +101,7 @@ message UpdateCategoryResponse {
100
101
  }
101
102
 
102
103
  message DeleteCategoryRequest {
103
- string name = 1;
104
- string slug = 2;
105
- optional string description = 3;
106
- optional string parent_id = 4;
107
- int32 sort_order = 5;
108
- bool is_active = 6;
109
- optional string icon_url = 7;
110
- optional string banner_url = 8;
104
+ string id = 1;
111
105
  }
112
106
 
113
107
  message DeleteCategoryResponse {