@g2gs/contracts 1.0.30 → 1.0.32
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 +129 -0
- package/admin/roles/v1/service_connect.js +129 -0
- package/admin/roles/v1/service_pb.d.ts +630 -0
- package/admin/roles/v1/service_pb.js +211 -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,44 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file public/catalog/v1/service.proto (package public.catalog.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetCategoryTreeRequest, GetCategoryTreeResponse, GetProductRequest, GetProductResponse, ListProductsRequest, ListProductsResponse } from "./service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service public.catalog.v1.PublicCatalogService
|
|
11
|
+
*/
|
|
12
|
+
export declare const PublicCatalogService: {
|
|
13
|
+
readonly typeName: "public.catalog.v1.PublicCatalogService",
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetCategoryTree
|
|
17
|
+
*/
|
|
18
|
+
readonly getCategoryTree: {
|
|
19
|
+
readonly name: "GetCategoryTree",
|
|
20
|
+
readonly I: typeof GetCategoryTreeRequest,
|
|
21
|
+
readonly O: typeof GetCategoryTreeResponse,
|
|
22
|
+
readonly kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.ListProducts
|
|
26
|
+
*/
|
|
27
|
+
readonly listProducts: {
|
|
28
|
+
readonly name: "ListProducts",
|
|
29
|
+
readonly I: typeof ListProductsRequest,
|
|
30
|
+
readonly O: typeof ListProductsResponse,
|
|
31
|
+
readonly kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetProduct
|
|
35
|
+
*/
|
|
36
|
+
readonly getProduct: {
|
|
37
|
+
readonly name: "GetProduct",
|
|
38
|
+
readonly I: typeof GetProductRequest,
|
|
39
|
+
readonly O: typeof GetProductResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file public/catalog/v1/service.proto (package public.catalog.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetCategoryTreeRequest, GetCategoryTreeResponse, GetProductRequest, GetProductResponse, ListProductsRequest, ListProductsResponse } from "./service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service public.catalog.v1.PublicCatalogService
|
|
11
|
+
*/
|
|
12
|
+
export const PublicCatalogService = {
|
|
13
|
+
typeName: "public.catalog.v1.PublicCatalogService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetCategoryTree
|
|
17
|
+
*/
|
|
18
|
+
getCategoryTree: {
|
|
19
|
+
name: "GetCategoryTree",
|
|
20
|
+
I: GetCategoryTreeRequest,
|
|
21
|
+
O: GetCategoryTreeResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.ListProducts
|
|
26
|
+
*/
|
|
27
|
+
listProducts: {
|
|
28
|
+
name: "ListProducts",
|
|
29
|
+
I: ListProductsRequest,
|
|
30
|
+
O: ListProductsResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetProduct
|
|
35
|
+
*/
|
|
36
|
+
getProduct: {
|
|
37
|
+
name: "GetProduct",
|
|
38
|
+
I: GetProductRequest,
|
|
39
|
+
O: GetProductResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file public/catalog/v1/service.proto (package public.catalog.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 public/catalog/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_public_catalog_v1_service: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @generated from message public.catalog.v1.Money
|
|
16
|
+
*/
|
|
17
|
+
export declare type Money = Message<"public.catalog.v1.Money"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: int64 amount_minor = 1;
|
|
20
|
+
*/
|
|
21
|
+
amountMinor: bigint;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: public.catalog.v1.Currency currency = 2;
|
|
25
|
+
*/
|
|
26
|
+
currency: Currency;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message public.catalog.v1.Money.
|
|
31
|
+
* Use `create(MoneySchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export declare const MoneySchema: GenMessage<Money>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message public.catalog.v1.Price
|
|
37
|
+
*/
|
|
38
|
+
export declare type Price = Message<"public.catalog.v1.Price"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: public.catalog.v1.Money value = 1;
|
|
41
|
+
*/
|
|
42
|
+
value?: Money;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: optional google.protobuf.Timestamp valid_from = 2;
|
|
46
|
+
*/
|
|
47
|
+
validFrom?: Timestamp;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: optional google.protobuf.Timestamp valid_to = 3;
|
|
51
|
+
*/
|
|
52
|
+
validTo?: Timestamp;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message public.catalog.v1.Price.
|
|
57
|
+
* Use `create(PriceSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export declare const PriceSchema: GenMessage<Price>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message public.catalog.v1.Pricing
|
|
63
|
+
*/
|
|
64
|
+
export declare type Pricing = Message<"public.catalog.v1.Pricing"> & {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: public.catalog.v1.Price base = 1;
|
|
67
|
+
*/
|
|
68
|
+
base?: Price;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: optional public.catalog.v1.Price promo = 2;
|
|
72
|
+
*/
|
|
73
|
+
promo?: Price;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message public.catalog.v1.Pricing.
|
|
78
|
+
* Use `create(PricingSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const PricingSchema: GenMessage<Pricing>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message public.catalog.v1.VariantPublic
|
|
84
|
+
*/
|
|
85
|
+
export declare type VariantPublic = Message<"public.catalog.v1.VariantPublic"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string sku = 1;
|
|
88
|
+
*/
|
|
89
|
+
sku: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string title = 2;
|
|
93
|
+
*/
|
|
94
|
+
title: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: public.catalog.v1.Pricing pricing = 3;
|
|
98
|
+
*/
|
|
99
|
+
pricing?: Pricing;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: optional uint64 template_id = 4;
|
|
103
|
+
*/
|
|
104
|
+
templateId?: bigint;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: optional uint64 pinned_template_version_id = 5;
|
|
108
|
+
*/
|
|
109
|
+
pinnedTemplateVersionId?: bigint;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message public.catalog.v1.VariantPublic.
|
|
114
|
+
* Use `create(VariantPublicSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export declare const VariantPublicSchema: GenMessage<VariantPublic>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @generated from message public.catalog.v1.Category
|
|
120
|
+
*/
|
|
121
|
+
export declare type Category = Message<"public.catalog.v1.Category"> & {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: uint64 category_id = 1;
|
|
124
|
+
*/
|
|
125
|
+
categoryId: bigint;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: string title = 2;
|
|
129
|
+
*/
|
|
130
|
+
title: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: optional uint64 parent_id = 3;
|
|
134
|
+
*/
|
|
135
|
+
parentId?: bigint;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: int32 sort_order = 4;
|
|
139
|
+
*/
|
|
140
|
+
sortOrder: number;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message public.catalog.v1.Category.
|
|
145
|
+
* Use `create(CategorySchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export declare const CategorySchema: GenMessage<Category>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message public.catalog.v1.CategoryNode
|
|
151
|
+
*/
|
|
152
|
+
export declare type CategoryNode = Message<"public.catalog.v1.CategoryNode"> & {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: public.catalog.v1.Category category = 1;
|
|
155
|
+
*/
|
|
156
|
+
category?: Category;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: repeated public.catalog.v1.CategoryNode children = 2;
|
|
160
|
+
*/
|
|
161
|
+
children: CategoryNode[];
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Describes the message public.catalog.v1.CategoryNode.
|
|
166
|
+
* Use `create(CategoryNodeSchema)` to create a new message.
|
|
167
|
+
*/
|
|
168
|
+
export declare const CategoryNodeSchema: GenMessage<CategoryNode>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @generated from message public.catalog.v1.ProductPublic
|
|
172
|
+
*/
|
|
173
|
+
export declare type ProductPublic = Message<"public.catalog.v1.ProductPublic"> & {
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: uint64 product_id = 1;
|
|
176
|
+
*/
|
|
177
|
+
productId: bigint;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string title = 2;
|
|
181
|
+
*/
|
|
182
|
+
title: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: string description = 3;
|
|
186
|
+
*/
|
|
187
|
+
description: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: optional uint64 category_id = 4;
|
|
191
|
+
*/
|
|
192
|
+
categoryId?: bigint;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: repeated public.catalog.v1.VariantPublic variants = 8;
|
|
196
|
+
*/
|
|
197
|
+
variants: VariantPublic[];
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message public.catalog.v1.ProductPublic.
|
|
202
|
+
* Use `create(ProductPublicSchema)` to create a new message.
|
|
203
|
+
*/
|
|
204
|
+
export declare const ProductPublicSchema: GenMessage<ProductPublic>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message public.catalog.v1.GetCategoryTreeRequest
|
|
208
|
+
*/
|
|
209
|
+
export declare type GetCategoryTreeRequest = Message<"public.catalog.v1.GetCategoryTreeRequest"> & {
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message public.catalog.v1.GetCategoryTreeRequest.
|
|
214
|
+
* Use `create(GetCategoryTreeRequestSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export declare const GetCategoryTreeRequestSchema: GenMessage<GetCategoryTreeRequest>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from message public.catalog.v1.GetCategoryTreeResponse
|
|
220
|
+
*/
|
|
221
|
+
export declare type GetCategoryTreeResponse = Message<"public.catalog.v1.GetCategoryTreeResponse"> & {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: repeated public.catalog.v1.CategoryNode roots = 1;
|
|
224
|
+
*/
|
|
225
|
+
roots: CategoryNode[];
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Describes the message public.catalog.v1.GetCategoryTreeResponse.
|
|
230
|
+
* Use `create(GetCategoryTreeResponseSchema)` to create a new message.
|
|
231
|
+
*/
|
|
232
|
+
export declare const GetCategoryTreeResponseSchema: GenMessage<GetCategoryTreeResponse>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message public.catalog.v1.ListProductsRequest
|
|
236
|
+
*/
|
|
237
|
+
export declare type ListProductsRequest = Message<"public.catalog.v1.ListProductsRequest"> & {
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: optional string title_like = 1;
|
|
240
|
+
*/
|
|
241
|
+
titleLike?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: optional uint64 category_id = 2;
|
|
245
|
+
*/
|
|
246
|
+
categoryId?: bigint;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @generated from field: bool include_subcategories = 3;
|
|
250
|
+
*/
|
|
251
|
+
includeSubcategories: boolean;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: uint32 limit = 4;
|
|
255
|
+
*/
|
|
256
|
+
limit: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: uint64 offset = 5;
|
|
260
|
+
*/
|
|
261
|
+
offset: bigint;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: public.catalog.v1.ProductSortField sort_by = 6;
|
|
265
|
+
*/
|
|
266
|
+
sortBy: ProductSortField;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: public.catalog.v1.SortDirection sort_dir = 7;
|
|
270
|
+
*/
|
|
271
|
+
sortDir: SortDirection;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Describes the message public.catalog.v1.ListProductsRequest.
|
|
276
|
+
* Use `create(ListProductsRequestSchema)` to create a new message.
|
|
277
|
+
*/
|
|
278
|
+
export declare const ListProductsRequestSchema: GenMessage<ListProductsRequest>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @generated from message public.catalog.v1.ListProductsResponse
|
|
282
|
+
*/
|
|
283
|
+
export declare type ListProductsResponse = Message<"public.catalog.v1.ListProductsResponse"> & {
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: repeated public.catalog.v1.ProductPublic items = 1;
|
|
286
|
+
*/
|
|
287
|
+
items: ProductPublic[];
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: uint64 total = 2;
|
|
291
|
+
*/
|
|
292
|
+
total: bigint;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Describes the message public.catalog.v1.ListProductsResponse.
|
|
297
|
+
* Use `create(ListProductsResponseSchema)` to create a new message.
|
|
298
|
+
*/
|
|
299
|
+
export declare const ListProductsResponseSchema: GenMessage<ListProductsResponse>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message public.catalog.v1.GetProductRequest
|
|
303
|
+
*/
|
|
304
|
+
export declare type GetProductRequest = Message<"public.catalog.v1.GetProductRequest"> & {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: uint64 product_id = 1;
|
|
307
|
+
*/
|
|
308
|
+
productId: bigint;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Describes the message public.catalog.v1.GetProductRequest.
|
|
313
|
+
* Use `create(GetProductRequestSchema)` to create a new message.
|
|
314
|
+
*/
|
|
315
|
+
export declare const GetProductRequestSchema: GenMessage<GetProductRequest>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @generated from message public.catalog.v1.GetProductResponse
|
|
319
|
+
*/
|
|
320
|
+
export declare type GetProductResponse = Message<"public.catalog.v1.GetProductResponse"> & {
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: public.catalog.v1.ProductPublic product = 1;
|
|
323
|
+
*/
|
|
324
|
+
product?: ProductPublic;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Describes the message public.catalog.v1.GetProductResponse.
|
|
329
|
+
* Use `create(GetProductResponseSchema)` to create a new message.
|
|
330
|
+
*/
|
|
331
|
+
export declare const GetProductResponseSchema: GenMessage<GetProductResponse>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @generated from enum public.catalog.v1.SortDirection
|
|
335
|
+
*/
|
|
336
|
+
export enum SortDirection {
|
|
337
|
+
/**
|
|
338
|
+
* @generated from enum value: SORT_DIRECTION_UNSPECIFIED = 0;
|
|
339
|
+
*/
|
|
340
|
+
UNSPECIFIED = 0,
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @generated from enum value: SORT_DIRECTION_ASC = 1;
|
|
344
|
+
*/
|
|
345
|
+
ASC = 1,
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @generated from enum value: SORT_DIRECTION_DESC = 2;
|
|
349
|
+
*/
|
|
350
|
+
DESC = 2,
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Describes the enum public.catalog.v1.SortDirection.
|
|
355
|
+
*/
|
|
356
|
+
export declare const SortDirectionSchema: GenEnum<SortDirection>;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @generated from enum public.catalog.v1.ProductSortField
|
|
360
|
+
*/
|
|
361
|
+
export enum ProductSortField {
|
|
362
|
+
/**
|
|
363
|
+
* @generated from enum value: PRODUCT_SORT_FIELD_UNSPECIFIED = 0;
|
|
364
|
+
*/
|
|
365
|
+
UNSPECIFIED = 0,
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @generated from enum value: PRODUCT_SORT_FIELD_ID = 1;
|
|
369
|
+
*/
|
|
370
|
+
ID = 1,
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* @generated from enum value: PRODUCT_SORT_FIELD_TITLE = 2;
|
|
374
|
+
*/
|
|
375
|
+
TITLE = 2,
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Describes the enum public.catalog.v1.ProductSortField.
|
|
380
|
+
*/
|
|
381
|
+
export declare const ProductSortFieldSchema: GenEnum<ProductSortField>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @generated from enum public.catalog.v1.Currency
|
|
385
|
+
*/
|
|
386
|
+
export enum Currency {
|
|
387
|
+
/**
|
|
388
|
+
* @generated from enum value: CURRENCY_UNSPECIFIED = 0;
|
|
389
|
+
*/
|
|
390
|
+
UNSPECIFIED = 0,
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @generated from enum value: CURRENCY_RUB = 1;
|
|
394
|
+
*/
|
|
395
|
+
RUB = 1,
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @generated from enum value: CURRENCY_USD = 2;
|
|
399
|
+
*/
|
|
400
|
+
USD = 2,
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @generated from enum value: CURRENCY_EUR = 3;
|
|
404
|
+
*/
|
|
405
|
+
EUR = 3,
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Describes the enum public.catalog.v1.Currency.
|
|
410
|
+
*/
|
|
411
|
+
export declare const CurrencySchema: GenEnum<Currency>;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @generated from service public.catalog.v1.PublicCatalogService
|
|
415
|
+
*/
|
|
416
|
+
export declare const PublicCatalogService: GenService<{
|
|
417
|
+
/**
|
|
418
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetCategoryTree
|
|
419
|
+
*/
|
|
420
|
+
getCategoryTree: {
|
|
421
|
+
methodKind: "unary";
|
|
422
|
+
input: typeof GetCategoryTreeRequestSchema;
|
|
423
|
+
output: typeof GetCategoryTreeResponseSchema;
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.ListProducts
|
|
427
|
+
*/
|
|
428
|
+
listProducts: {
|
|
429
|
+
methodKind: "unary";
|
|
430
|
+
input: typeof ListProductsRequestSchema;
|
|
431
|
+
output: typeof ListProductsResponseSchema;
|
|
432
|
+
},
|
|
433
|
+
/**
|
|
434
|
+
* @generated from rpc public.catalog.v1.PublicCatalogService.GetProduct
|
|
435
|
+
*/
|
|
436
|
+
getProduct: {
|
|
437
|
+
methodKind: "unary";
|
|
438
|
+
input: typeof GetProductRequestSchema;
|
|
439
|
+
output: typeof GetProductResponseSchema;
|
|
440
|
+
},
|
|
441
|
+
}>;
|
|
442
|
+
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file public/catalog/v1/service.proto (package public.catalog.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 public/catalog/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_public_catalog_v1_service = /*@__PURE__*/
|
|
13
|
+
fileDesc("Ch9wdWJsaWMvY2F0YWxvZy92MS9zZXJ2aWNlLnByb3RvEhFwdWJsaWMuY2F0YWxvZy52MSJMCgVNb25leRIUCgxhbW91bnRfbWlub3IYASABKAMSLQoIY3VycmVuY3kYAiABKA4yGy5wdWJsaWMuY2F0YWxvZy52MS5DdXJyZW5jeSK0AQoFUHJpY2USJwoFdmFsdWUYASABKAsyGC5wdWJsaWMuY2F0YWxvZy52MS5Nb25leRIzCgp2YWxpZF9mcm9tGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBEjEKCHZhbGlkX3RvGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgBiAEBQg0KC192YWxpZF9mcm9tQgsKCV92YWxpZF90byJpCgdQcmljaW5nEiYKBGJhc2UYASABKAsyGC5wdWJsaWMuY2F0YWxvZy52MS5QcmljZRIsCgVwcm9tbxgCIAEoCzIYLnB1YmxpYy5jYXRhbG9nLnYxLlByaWNlSACIAQFCCAoGX3Byb21vIsoBCg1WYXJpYW50UHVibGljEgsKA3NrdRgBIAEoCRINCgV0aXRsZRgCIAEoCRIrCgdwcmljaW5nGAMgASgLMhoucHVibGljLmNhdGFsb2cudjEuUHJpY2luZxIYCgt0ZW1wbGF0ZV9pZBgEIAEoBEgAiAEBEicKGnBpbm5lZF90ZW1wbGF0ZV92ZXJzaW9uX2lkGAUgASgESAGIAQFCDgoMX3RlbXBsYXRlX2lkQh0KG19waW5uZWRfdGVtcGxhdGVfdmVy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uY2F0YWxvZy52MS5HZXRQcm9kdWN0UmVxdWVzdBolLnB1YmxpYy5jYXRhbG9nLnYxLkdldFByb2R1Y3RSZXNwb25zZSIwgtPkkwIqEigvcHVibGljL3YxL2NhdGFsb2cvcHJvZHVjdHMve3Byb2R1Y3RfaWR9QkRaQmdpdGh1Yi5jb20vRzJHcy9hcGktY29udHJhY3RzLWdvL3B1YmxpYy9jYXRhbG9nL3YxO3B1YmxpY2NhdGFsb2d2MWIGcHJvdG8z", [file_google_api_annotations, file_google_protobuf_timestamp]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message public.catalog.v1.Money.
|
|
17
|
+
* Use `create(MoneySchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const MoneySchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_public_catalog_v1_service, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message public.catalog.v1.Price.
|
|
24
|
+
* Use `create(PriceSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const PriceSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_public_catalog_v1_service, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message public.catalog.v1.Pricing.
|
|
31
|
+
* Use `create(PricingSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const PricingSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_public_catalog_v1_service, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message public.catalog.v1.VariantPublic.
|
|
38
|
+
* Use `create(VariantPublicSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const VariantPublicSchema = /*@__PURE__*/
|
|
41
|
+
messageDesc(file_public_catalog_v1_service, 3);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message public.catalog.v1.Category.
|
|
45
|
+
* Use `create(CategorySchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const CategorySchema = /*@__PURE__*/
|
|
48
|
+
messageDesc(file_public_catalog_v1_service, 4);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message public.catalog.v1.CategoryNode.
|
|
52
|
+
* Use `create(CategoryNodeSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const CategoryNodeSchema = /*@__PURE__*/
|
|
55
|
+
messageDesc(file_public_catalog_v1_service, 5);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message public.catalog.v1.ProductPublic.
|
|
59
|
+
* Use `create(ProductPublicSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const ProductPublicSchema = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_public_catalog_v1_service, 6);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message public.catalog.v1.GetCategoryTreeRequest.
|
|
66
|
+
* Use `create(GetCategoryTreeRequestSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const GetCategoryTreeRequestSchema = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_public_catalog_v1_service, 7);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message public.catalog.v1.GetCategoryTreeResponse.
|
|
73
|
+
* Use `create(GetCategoryTreeResponseSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const GetCategoryTreeResponseSchema = /*@__PURE__*/
|
|
76
|
+
messageDesc(file_public_catalog_v1_service, 8);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Describes the message public.catalog.v1.ListProductsRequest.
|
|
80
|
+
* Use `create(ListProductsRequestSchema)` to create a new message.
|
|
81
|
+
*/
|
|
82
|
+
export const ListProductsRequestSchema = /*@__PURE__*/
|
|
83
|
+
messageDesc(file_public_catalog_v1_service, 9);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message public.catalog.v1.ListProductsResponse.
|
|
87
|
+
* Use `create(ListProductsResponseSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export const ListProductsResponseSchema = /*@__PURE__*/
|
|
90
|
+
messageDesc(file_public_catalog_v1_service, 10);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message public.catalog.v1.GetProductRequest.
|
|
94
|
+
* Use `create(GetProductRequestSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const GetProductRequestSchema = /*@__PURE__*/
|
|
97
|
+
messageDesc(file_public_catalog_v1_service, 11);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message public.catalog.v1.GetProductResponse.
|
|
101
|
+
* Use `create(GetProductResponseSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const GetProductResponseSchema = /*@__PURE__*/
|
|
104
|
+
messageDesc(file_public_catalog_v1_service, 12);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Describes the enum public.catalog.v1.SortDirection.
|
|
108
|
+
*/
|
|
109
|
+
export const SortDirectionSchema = /*@__PURE__*/
|
|
110
|
+
enumDesc(file_public_catalog_v1_service, 0);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum public.catalog.v1.SortDirection
|
|
114
|
+
*/
|
|
115
|
+
export const SortDirection = /*@__PURE__*/
|
|
116
|
+
tsEnum(SortDirectionSchema);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Describes the enum public.catalog.v1.ProductSortField.
|
|
120
|
+
*/
|
|
121
|
+
export const ProductSortFieldSchema = /*@__PURE__*/
|
|
122
|
+
enumDesc(file_public_catalog_v1_service, 1);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum public.catalog.v1.ProductSortField
|
|
126
|
+
*/
|
|
127
|
+
export const ProductSortField = /*@__PURE__*/
|
|
128
|
+
tsEnum(ProductSortFieldSchema);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Describes the enum public.catalog.v1.Currency.
|
|
132
|
+
*/
|
|
133
|
+
export const CurrencySchema = /*@__PURE__*/
|
|
134
|
+
enumDesc(file_public_catalog_v1_service, 2);
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @generated from enum public.catalog.v1.Currency
|
|
138
|
+
*/
|
|
139
|
+
export const Currency = /*@__PURE__*/
|
|
140
|
+
tsEnum(CurrencySchema);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @generated from service public.catalog.v1.PublicCatalogService
|
|
144
|
+
*/
|
|
145
|
+
export const PublicCatalogService = /*@__PURE__*/
|
|
146
|
+
serviceDesc(file_public_catalog_v1_service, 0);
|
|
147
|
+
|