@g2gs/contracts 1.0.30 → 1.0.31
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/admin/category/v1/service_connect.d.ts +62 -0
- package/admin/category/v1/service_connect.js +62 -0
- package/admin/category/v1/service_pb.d.ts +414 -0
- package/admin/category/v1/service_pb.js +121 -0
- package/admin/product/v1/service_connect.d.ts +98 -0
- package/admin/product/v1/service_connect.js +98 -0
- package/admin/product/v1/service_pb.d.ts +1017 -0
- package/admin/product/v1/service_pb.js +276 -0
- package/admin/roles/v1/role_pb.d.ts +43 -0
- package/admin/roles/v1/role_pb.js +19 -0
- package/admin/roles/v1/service_connect.d.ts +98 -0
- package/admin/roles/v1/service_connect.js +98 -0
- package/admin/roles/v1/service_pb.d.ts +426 -0
- package/admin/roles/v1/service_pb.js +148 -0
- package/admin/roles/v1/staff_roles_pb.d.ts +38 -0
- package/admin/roles/v1/staff_roles_pb.js +19 -0
- package/admin/staff/v1/service_connect.d.ts +94 -0
- package/admin/staff/v1/service_connect.js +94 -0
- package/admin/staff/v1/service_pb.d.ts +444 -0
- package/admin/staff/v1/service_pb.js +138 -0
- package/admin/template_ref/v1/service_connect.d.ts +89 -0
- package/admin/template_ref/v1/service_connect.js +89 -0
- package/admin/template_ref/v1/service_pb.d.ts +707 -0
- package/admin/template_ref/v1/service_pb.js +181 -0
- package/common/v1/empty_pb.d.ts +24 -0
- package/common/v1/empty_pb.js +19 -0
- package/common/v1/pagination_pb.d.ts +59 -0
- package/common/v1/pagination_pb.js +26 -0
- package/identity/v1/auth_connect.d.ts +44 -0
- package/identity/v1/auth_connect.js +44 -0
- package/identity/v1/auth_pb.d.ts +164 -0
- package/identity/v1/auth_pb.js +68 -0
- package/package.json +1 -4
- package/public/catalog/v1/service_connect.d.ts +44 -0
- package/public/catalog/v1/service_connect.js +44 -0
- package/public/catalog/v1/service_pb.d.ts +442 -0
- package/public/catalog/v1/service_pb.js +147 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file admin/category/v1/service.proto (package admin.category.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { CreateCategoryRequest, CreateCategoryResponse, GetCategoryRequest, GetCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, SetCategoryActiveRequest, SetCategoryActiveResponse, UpdateCategoryRequest, UpdateCategoryResponse } from "./service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service admin.category.v1.CategoryAdminService
|
|
11
|
+
*/
|
|
12
|
+
export declare const CategoryAdminService: {
|
|
13
|
+
readonly typeName: "admin.category.v1.CategoryAdminService",
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.CreateCategory
|
|
17
|
+
*/
|
|
18
|
+
readonly createCategory: {
|
|
19
|
+
readonly name: "CreateCategory",
|
|
20
|
+
readonly I: typeof CreateCategoryRequest,
|
|
21
|
+
readonly O: typeof CreateCategoryResponse,
|
|
22
|
+
readonly kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.UpdateCategory
|
|
26
|
+
*/
|
|
27
|
+
readonly updateCategory: {
|
|
28
|
+
readonly name: "UpdateCategory",
|
|
29
|
+
readonly I: typeof UpdateCategoryRequest,
|
|
30
|
+
readonly O: typeof UpdateCategoryResponse,
|
|
31
|
+
readonly kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.GetCategory
|
|
35
|
+
*/
|
|
36
|
+
readonly getCategory: {
|
|
37
|
+
readonly name: "GetCategory",
|
|
38
|
+
readonly I: typeof GetCategoryRequest,
|
|
39
|
+
readonly O: typeof GetCategoryResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.ListCategories
|
|
44
|
+
*/
|
|
45
|
+
readonly listCategories: {
|
|
46
|
+
readonly name: "ListCategories",
|
|
47
|
+
readonly I: typeof ListCategoriesRequest,
|
|
48
|
+
readonly O: typeof ListCategoriesResponse,
|
|
49
|
+
readonly kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.SetCategoryActive
|
|
53
|
+
*/
|
|
54
|
+
readonly setCategoryActive: {
|
|
55
|
+
readonly name: "SetCategoryActive",
|
|
56
|
+
readonly I: typeof SetCategoryActiveRequest,
|
|
57
|
+
readonly O: typeof SetCategoryActiveResponse,
|
|
58
|
+
readonly kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file admin/category/v1/service.proto (package admin.category.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { CreateCategoryRequest, CreateCategoryResponse, GetCategoryRequest, GetCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, SetCategoryActiveRequest, SetCategoryActiveResponse, UpdateCategoryRequest, UpdateCategoryResponse } from "./service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service admin.category.v1.CategoryAdminService
|
|
11
|
+
*/
|
|
12
|
+
export const CategoryAdminService = {
|
|
13
|
+
typeName: "admin.category.v1.CategoryAdminService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.CreateCategory
|
|
17
|
+
*/
|
|
18
|
+
createCategory: {
|
|
19
|
+
name: "CreateCategory",
|
|
20
|
+
I: CreateCategoryRequest,
|
|
21
|
+
O: CreateCategoryResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.UpdateCategory
|
|
26
|
+
*/
|
|
27
|
+
updateCategory: {
|
|
28
|
+
name: "UpdateCategory",
|
|
29
|
+
I: UpdateCategoryRequest,
|
|
30
|
+
O: UpdateCategoryResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.GetCategory
|
|
35
|
+
*/
|
|
36
|
+
getCategory: {
|
|
37
|
+
name: "GetCategory",
|
|
38
|
+
I: GetCategoryRequest,
|
|
39
|
+
O: GetCategoryResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.ListCategories
|
|
44
|
+
*/
|
|
45
|
+
listCategories: {
|
|
46
|
+
name: "ListCategories",
|
|
47
|
+
I: ListCategoriesRequest,
|
|
48
|
+
O: ListCategoriesResponse,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.SetCategoryActive
|
|
53
|
+
*/
|
|
54
|
+
setCategoryActive: {
|
|
55
|
+
name: "SetCategoryActive",
|
|
56
|
+
I: SetCategoryActiveRequest,
|
|
57
|
+
O: SetCategoryActiveResponse,
|
|
58
|
+
kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file admin/category/v1/service.proto (package admin.category.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file admin/category/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_admin_category_v1_service: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @generated from message admin.category.v1.Category
|
|
16
|
+
*/
|
|
17
|
+
export declare type Category = Message<"admin.category.v1.Category"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: uint64 category_id = 1;
|
|
20
|
+
*/
|
|
21
|
+
categoryId: bigint;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string title = 2;
|
|
25
|
+
*/
|
|
26
|
+
title: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: optional uint64 parent_id = 3;
|
|
30
|
+
*/
|
|
31
|
+
parentId?: bigint;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: bool is_active = 4;
|
|
35
|
+
*/
|
|
36
|
+
isActive: boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: int32 sort_order = 5;
|
|
40
|
+
*/
|
|
41
|
+
sortOrder: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: uint32 version = 6;
|
|
45
|
+
*/
|
|
46
|
+
version: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Timestamp;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 8;
|
|
55
|
+
*/
|
|
56
|
+
updatedAt?: Timestamp;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message admin.category.v1.Category.
|
|
61
|
+
* Use `create(CategorySchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export declare const CategorySchema: GenMessage<Category>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message admin.category.v1.CreateCategoryRequest
|
|
67
|
+
*/
|
|
68
|
+
export declare type CreateCategoryRequest = Message<"admin.category.v1.CreateCategoryRequest"> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string title = 1;
|
|
71
|
+
*/
|
|
72
|
+
title: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: optional uint64 parent_id = 2;
|
|
76
|
+
*/
|
|
77
|
+
parentId?: bigint;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: int32 sort_order = 3;
|
|
81
|
+
*/
|
|
82
|
+
sortOrder: number;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: bool is_active = 4;
|
|
86
|
+
*/
|
|
87
|
+
isActive: boolean;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message admin.category.v1.CreateCategoryRequest.
|
|
92
|
+
* Use `create(CreateCategoryRequestSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export declare const CreateCategoryRequestSchema: GenMessage<CreateCategoryRequest>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message admin.category.v1.CreateCategoryResponse
|
|
98
|
+
*/
|
|
99
|
+
export declare type CreateCategoryResponse = Message<"admin.category.v1.CreateCategoryResponse"> & {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: admin.category.v1.Category category = 1;
|
|
102
|
+
*/
|
|
103
|
+
category?: Category;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Describes the message admin.category.v1.CreateCategoryResponse.
|
|
108
|
+
* Use `create(CreateCategoryResponseSchema)` to create a new message.
|
|
109
|
+
*/
|
|
110
|
+
export declare const CreateCategoryResponseSchema: GenMessage<CreateCategoryResponse>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from message admin.category.v1.UpdateCategoryRequest
|
|
114
|
+
*/
|
|
115
|
+
export declare type UpdateCategoryRequest = Message<"admin.category.v1.UpdateCategoryRequest"> & {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: uint64 category_id = 1;
|
|
118
|
+
*/
|
|
119
|
+
categoryId: bigint;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: optional string title = 2;
|
|
123
|
+
*/
|
|
124
|
+
title?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* parent change: set/clear/ignore
|
|
128
|
+
*
|
|
129
|
+
* @generated from oneof admin.category.v1.UpdateCategoryRequest.parent_change
|
|
130
|
+
*/
|
|
131
|
+
parentChange: {
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: uint64 parent_id_set = 3;
|
|
134
|
+
*/
|
|
135
|
+
value: bigint;
|
|
136
|
+
case: "parentIdSet";
|
|
137
|
+
} | {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: bool parent_id_clear = 4;
|
|
140
|
+
*/
|
|
141
|
+
value: boolean;
|
|
142
|
+
case: "parentIdClear";
|
|
143
|
+
} | { case: undefined; value?: undefined };
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: optional int32 sort_order = 5;
|
|
147
|
+
*/
|
|
148
|
+
sortOrder?: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: optional bool is_active = 6;
|
|
152
|
+
*/
|
|
153
|
+
isActive?: boolean;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Describes the message admin.category.v1.UpdateCategoryRequest.
|
|
158
|
+
* Use `create(UpdateCategoryRequestSchema)` to create a new message.
|
|
159
|
+
*/
|
|
160
|
+
export declare const UpdateCategoryRequestSchema: GenMessage<UpdateCategoryRequest>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message admin.category.v1.UpdateCategoryResponse
|
|
164
|
+
*/
|
|
165
|
+
export declare type UpdateCategoryResponse = Message<"admin.category.v1.UpdateCategoryResponse"> & {
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: admin.category.v1.Category category = 1;
|
|
168
|
+
*/
|
|
169
|
+
category?: Category;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message admin.category.v1.UpdateCategoryResponse.
|
|
174
|
+
* Use `create(UpdateCategoryResponseSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const UpdateCategoryResponseSchema: GenMessage<UpdateCategoryResponse>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message admin.category.v1.GetCategoryRequest
|
|
180
|
+
*/
|
|
181
|
+
export declare type GetCategoryRequest = Message<"admin.category.v1.GetCategoryRequest"> & {
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: uint64 category_id = 1;
|
|
184
|
+
*/
|
|
185
|
+
categoryId: bigint;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message admin.category.v1.GetCategoryRequest.
|
|
190
|
+
* Use `create(GetCategoryRequestSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const GetCategoryRequestSchema: GenMessage<GetCategoryRequest>;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from message admin.category.v1.GetCategoryResponse
|
|
196
|
+
*/
|
|
197
|
+
export declare type GetCategoryResponse = Message<"admin.category.v1.GetCategoryResponse"> & {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: admin.category.v1.Category category = 1;
|
|
200
|
+
*/
|
|
201
|
+
category?: Category;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message admin.category.v1.GetCategoryResponse.
|
|
206
|
+
* Use `create(GetCategoryResponseSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export declare const GetCategoryResponseSchema: GenMessage<GetCategoryResponse>;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @generated from message admin.category.v1.ListCategoriesRequest
|
|
212
|
+
*/
|
|
213
|
+
export declare type ListCategoriesRequest = Message<"admin.category.v1.ListCategoriesRequest"> & {
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: optional string title_like = 1;
|
|
216
|
+
*/
|
|
217
|
+
titleLike?: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: optional uint64 parent_id = 2;
|
|
221
|
+
*/
|
|
222
|
+
parentId?: bigint;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: bool only_active = 3;
|
|
226
|
+
*/
|
|
227
|
+
onlyActive: boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: uint32 limit = 4;
|
|
231
|
+
*/
|
|
232
|
+
limit: number;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: uint64 offset = 5;
|
|
236
|
+
*/
|
|
237
|
+
offset: bigint;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: admin.category.v1.CategorySortField sort_by = 6;
|
|
241
|
+
*/
|
|
242
|
+
sortBy: CategorySortField;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: admin.category.v1.SortDirection sort_dir = 7;
|
|
246
|
+
*/
|
|
247
|
+
sortDir: SortDirection;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Describes the message admin.category.v1.ListCategoriesRequest.
|
|
252
|
+
* Use `create(ListCategoriesRequestSchema)` to create a new message.
|
|
253
|
+
*/
|
|
254
|
+
export declare const ListCategoriesRequestSchema: GenMessage<ListCategoriesRequest>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message admin.category.v1.ListCategoriesResponse
|
|
258
|
+
*/
|
|
259
|
+
export declare type ListCategoriesResponse = Message<"admin.category.v1.ListCategoriesResponse"> & {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: repeated admin.category.v1.Category items = 1;
|
|
262
|
+
*/
|
|
263
|
+
items: Category[];
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: uint64 total = 2;
|
|
267
|
+
*/
|
|
268
|
+
total: bigint;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message admin.category.v1.ListCategoriesResponse.
|
|
273
|
+
* Use `create(ListCategoriesResponseSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const ListCategoriesResponseSchema: GenMessage<ListCategoriesResponse>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @generated from message admin.category.v1.SetCategoryActiveRequest
|
|
279
|
+
*/
|
|
280
|
+
export declare type SetCategoryActiveRequest = Message<"admin.category.v1.SetCategoryActiveRequest"> & {
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: uint64 category_id = 1;
|
|
283
|
+
*/
|
|
284
|
+
categoryId: bigint;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: bool is_active = 2;
|
|
288
|
+
*/
|
|
289
|
+
isActive: boolean;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Describes the message admin.category.v1.SetCategoryActiveRequest.
|
|
294
|
+
* Use `create(SetCategoryActiveRequestSchema)` to create a new message.
|
|
295
|
+
*/
|
|
296
|
+
export declare const SetCategoryActiveRequestSchema: GenMessage<SetCategoryActiveRequest>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message admin.category.v1.SetCategoryActiveResponse
|
|
300
|
+
*/
|
|
301
|
+
export declare type SetCategoryActiveResponse = Message<"admin.category.v1.SetCategoryActiveResponse"> & {
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: admin.category.v1.Category category = 1;
|
|
304
|
+
*/
|
|
305
|
+
category?: Category;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Describes the message admin.category.v1.SetCategoryActiveResponse.
|
|
310
|
+
* Use `create(SetCategoryActiveResponseSchema)` to create a new message.
|
|
311
|
+
*/
|
|
312
|
+
export declare const SetCategoryActiveResponseSchema: GenMessage<SetCategoryActiveResponse>;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @generated from enum admin.category.v1.SortDirection
|
|
316
|
+
*/
|
|
317
|
+
export enum SortDirection {
|
|
318
|
+
/**
|
|
319
|
+
* @generated from enum value: SORT_DIRECTION_UNSPECIFIED = 0;
|
|
320
|
+
*/
|
|
321
|
+
UNSPECIFIED = 0,
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @generated from enum value: SORT_DIRECTION_ASC = 1;
|
|
325
|
+
*/
|
|
326
|
+
ASC = 1,
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @generated from enum value: SORT_DIRECTION_DESC = 2;
|
|
330
|
+
*/
|
|
331
|
+
DESC = 2,
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Describes the enum admin.category.v1.SortDirection.
|
|
336
|
+
*/
|
|
337
|
+
export declare const SortDirectionSchema: GenEnum<SortDirection>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @generated from enum admin.category.v1.CategorySortField
|
|
341
|
+
*/
|
|
342
|
+
export enum CategorySortField {
|
|
343
|
+
/**
|
|
344
|
+
* @generated from enum value: CATEGORY_SORT_FIELD_UNSPECIFIED = 0;
|
|
345
|
+
*/
|
|
346
|
+
UNSPECIFIED = 0,
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @generated from enum value: CATEGORY_SORT_FIELD_ID = 1;
|
|
350
|
+
*/
|
|
351
|
+
ID = 1,
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @generated from enum value: CATEGORY_SORT_FIELD_TITLE = 2;
|
|
355
|
+
*/
|
|
356
|
+
TITLE = 2,
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @generated from enum value: CATEGORY_SORT_FIELD_SORT_ORDER = 3;
|
|
360
|
+
*/
|
|
361
|
+
SORT_ORDER = 3,
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Describes the enum admin.category.v1.CategorySortField.
|
|
366
|
+
*/
|
|
367
|
+
export declare const CategorySortFieldSchema: GenEnum<CategorySortField>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @generated from service admin.category.v1.CategoryAdminService
|
|
371
|
+
*/
|
|
372
|
+
export declare const CategoryAdminService: GenService<{
|
|
373
|
+
/**
|
|
374
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.CreateCategory
|
|
375
|
+
*/
|
|
376
|
+
createCategory: {
|
|
377
|
+
methodKind: "unary";
|
|
378
|
+
input: typeof CreateCategoryRequestSchema;
|
|
379
|
+
output: typeof CreateCategoryResponseSchema;
|
|
380
|
+
},
|
|
381
|
+
/**
|
|
382
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.UpdateCategory
|
|
383
|
+
*/
|
|
384
|
+
updateCategory: {
|
|
385
|
+
methodKind: "unary";
|
|
386
|
+
input: typeof UpdateCategoryRequestSchema;
|
|
387
|
+
output: typeof UpdateCategoryResponseSchema;
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.GetCategory
|
|
391
|
+
*/
|
|
392
|
+
getCategory: {
|
|
393
|
+
methodKind: "unary";
|
|
394
|
+
input: typeof GetCategoryRequestSchema;
|
|
395
|
+
output: typeof GetCategoryResponseSchema;
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.ListCategories
|
|
399
|
+
*/
|
|
400
|
+
listCategories: {
|
|
401
|
+
methodKind: "unary";
|
|
402
|
+
input: typeof ListCategoriesRequestSchema;
|
|
403
|
+
output: typeof ListCategoriesResponseSchema;
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* @generated from rpc admin.category.v1.CategoryAdminService.SetCategoryActive
|
|
407
|
+
*/
|
|
408
|
+
setCategoryActive: {
|
|
409
|
+
methodKind: "unary";
|
|
410
|
+
input: typeof SetCategoryActiveRequestSchema;
|
|
411
|
+
output: typeof SetCategoryActiveResponseSchema;
|
|
412
|
+
},
|
|
413
|
+
}>;
|
|
414
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file admin/category/v1/service.proto (package admin.category.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_google_api_annotations } from "../../../google/api/annotations_pb";
|
|
7
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file admin/category/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_admin_category_v1_service = /*@__PURE__*/
|
|
13
|
+
fileDesc("Ch9hZG1pbi9jYXRlZ29yeS92MS9zZXJ2aWNlLnByb3RvEhFhZG1pbi5jYXRlZ29yeS52MSLsAQoIQ2F0ZWdvcnkSEwoLY2F0ZWdvcnlfaWQYASABKAQSDQoFdGl0bGUYAiABKAkSFgoJcGFyZW50X2lkGAMgASgESACIAQESEQoJaXNfYWN0aXZlGAQgASgIEhIKCnNvcnRfb3JkZXIYBSABKAUSDwoHdmVyc2lvbhgGIAEoDRIuCgpjcmVhdGVkX2F0GAc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EpQBCg5VcGRhdGVDYXRlZ29yeRIoLmFkbWluLmNhdGVnb3J5LnYxLlVwZGF0ZUNhdGVnb3J5UmVxdWVzdBopLmFkbWluLmNhdGVnb3J5LnYxLlVwZGF0ZUNhdGVnb3J5UmVzcG9uc2UiLYLT5JMCJzoBKjIiL2FkbWluL3YxL2NhdGVnb3JpZXMve2NhdGVnb3J5X2lkfRKIAQoLR2V0Q2F0ZWdvcnkSJS5hZG1pbi5jYXRlZ29yeS52MS5HZXRDYXRlZ29yeVJlcXVlc3QaJi5hZG1pbi5jYXRlZ29yeS52MS5HZXRDYXRlZ29yeVJlc3BvbnNlIiqC0+STAiQSIi9hZG1pbi92MS9jYXRlZ29yaWVzL3tjYXRlZ29yeV9pZH0SgwEKDkxpc3RDYXRlZ29yaWVzEiguYWRtaW4uY2F0ZWdvcnkudjEuTGlzdENhdGVnb3JpZXNSZXF1ZXN0GikuYWRtaW4uY2F0ZWdvcnkudjEuTGlzdENhdGVnb3JpZXNSZXNwb25zZSIcgtPkkwIWEhQvYWRtaW4vdjEvY2F0ZWdvcmllcxKkAQoRU2V0Q2F0ZWdvcnlBY3RpdmUSKy5hZG1pbi5jYXRlZ29yeS52MS5TZXRDYXRlZ29yeUFjdGl2ZVJlcXVlc3QaLC5hZG1pbi5jYXRlZ29yeS52MS5TZXRDYXRlZ29yeUFjdGl2ZVJlc3BvbnNlIjSC0+STAi46ASoiKS9hZG1pbi92MS9jYXRlZ29yaWVzL3tjYXRlZ29yeV9pZH0vYWN0aXZlQkRaQmdpdGh1Yi5jb20vRzJHcy9hcGktY29udHJhY3RzLWdvL2FkbWluL2NhdGVnb3J5L3YxO2FkbWluY2F0ZWdvcnl2MWIGcHJvdG8z", [file_google_api_annotations, file_google_protobuf_timestamp]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message admin.category.v1.Category.
|
|
17
|
+
* Use `create(CategorySchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const CategorySchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_admin_category_v1_service, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message admin.category.v1.CreateCategoryRequest.
|
|
24
|
+
* Use `create(CreateCategoryRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const CreateCategoryRequestSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_admin_category_v1_service, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message admin.category.v1.CreateCategoryResponse.
|
|
31
|
+
* Use `create(CreateCategoryResponseSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const CreateCategoryResponseSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_admin_category_v1_service, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message admin.category.v1.UpdateCategoryRequest.
|
|
38
|
+
* Use `create(UpdateCategoryRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const UpdateCategoryRequestSchema = /*@__PURE__*/
|
|
41
|
+
messageDesc(file_admin_category_v1_service, 3);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message admin.category.v1.UpdateCategoryResponse.
|
|
45
|
+
* Use `create(UpdateCategoryResponseSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const UpdateCategoryResponseSchema = /*@__PURE__*/
|
|
48
|
+
messageDesc(file_admin_category_v1_service, 4);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message admin.category.v1.GetCategoryRequest.
|
|
52
|
+
* Use `create(GetCategoryRequestSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const GetCategoryRequestSchema = /*@__PURE__*/
|
|
55
|
+
messageDesc(file_admin_category_v1_service, 5);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message admin.category.v1.GetCategoryResponse.
|
|
59
|
+
* Use `create(GetCategoryResponseSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const GetCategoryResponseSchema = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_admin_category_v1_service, 6);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message admin.category.v1.ListCategoriesRequest.
|
|
66
|
+
* Use `create(ListCategoriesRequestSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const ListCategoriesRequestSchema = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_admin_category_v1_service, 7);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message admin.category.v1.ListCategoriesResponse.
|
|
73
|
+
* Use `create(ListCategoriesResponseSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const ListCategoriesResponseSchema = /*@__PURE__*/
|
|
76
|
+
messageDesc(file_admin_category_v1_service, 8);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Describes the message admin.category.v1.SetCategoryActiveRequest.
|
|
80
|
+
* Use `create(SetCategoryActiveRequestSchema)` to create a new message.
|
|
81
|
+
*/
|
|
82
|
+
export const SetCategoryActiveRequestSchema = /*@__PURE__*/
|
|
83
|
+
messageDesc(file_admin_category_v1_service, 9);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message admin.category.v1.SetCategoryActiveResponse.
|
|
87
|
+
* Use `create(SetCategoryActiveResponseSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export const SetCategoryActiveResponseSchema = /*@__PURE__*/
|
|
90
|
+
messageDesc(file_admin_category_v1_service, 10);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Describes the enum admin.category.v1.SortDirection.
|
|
94
|
+
*/
|
|
95
|
+
export const SortDirectionSchema = /*@__PURE__*/
|
|
96
|
+
enumDesc(file_admin_category_v1_service, 0);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum admin.category.v1.SortDirection
|
|
100
|
+
*/
|
|
101
|
+
export const SortDirection = /*@__PURE__*/
|
|
102
|
+
tsEnum(SortDirectionSchema);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Describes the enum admin.category.v1.CategorySortField.
|
|
106
|
+
*/
|
|
107
|
+
export const CategorySortFieldSchema = /*@__PURE__*/
|
|
108
|
+
enumDesc(file_admin_category_v1_service, 1);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from enum admin.category.v1.CategorySortField
|
|
112
|
+
*/
|
|
113
|
+
export const CategorySortField = /*@__PURE__*/
|
|
114
|
+
tsEnum(CategorySortFieldSchema);
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated from service admin.category.v1.CategoryAdminService
|
|
118
|
+
*/
|
|
119
|
+
export const CategoryAdminService = /*@__PURE__*/
|
|
120
|
+
serviceDesc(file_admin_category_v1_service, 0);
|
|
121
|
+
|