@esb-market-contracts/backend 1.0.10 → 1.0.12
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/api.d.ts +22 -27
- package/package.json +1 -1
- package/types.d.ts +28 -26
package/api.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
24
24
|
id: number;
|
|
25
25
|
slug: string;
|
|
26
26
|
name: Partial<Record<"ka" | "en" | "ru", string>>;
|
|
27
|
+
websiteUrl: string | null;
|
|
28
|
+
notes: string | null;
|
|
27
29
|
logotypeUrl: string;
|
|
28
30
|
countryId: number;
|
|
29
31
|
updatedAt: Date | null;
|
|
@@ -43,6 +45,8 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
43
45
|
name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
44
46
|
countryId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
45
47
|
logotype: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
48
|
+
websiteUrl?: string | null | undefined;
|
|
49
|
+
notes?: string | null | undefined;
|
|
46
50
|
};
|
|
47
51
|
};
|
|
48
52
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
@@ -70,6 +74,8 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
70
74
|
id: number;
|
|
71
75
|
slug: string;
|
|
72
76
|
name: Partial<Record<"ka" | "en" | "ru", string>>;
|
|
77
|
+
websiteUrl: string | null;
|
|
78
|
+
notes: string | null;
|
|
73
79
|
logotypeUrl: string;
|
|
74
80
|
countryId: number;
|
|
75
81
|
updatedAt: Date | null;
|
|
@@ -82,14 +88,16 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
82
88
|
};
|
|
83
89
|
};
|
|
84
90
|
} & {
|
|
85
|
-
"/catalog/brands/update
|
|
91
|
+
"/catalog/brands/update": {
|
|
86
92
|
$post: {
|
|
87
93
|
input: {
|
|
88
94
|
form: {
|
|
89
|
-
slug: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
90
|
-
name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
91
|
-
countryId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
92
95
|
brandId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
96
|
+
slug?: string | undefined;
|
|
97
|
+
websiteUrl?: string | null | undefined;
|
|
98
|
+
notes?: string | null | undefined;
|
|
99
|
+
name?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[] | undefined;
|
|
100
|
+
countryId?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[] | undefined;
|
|
93
101
|
logotype?: import("zod/v4/core").File | undefined;
|
|
94
102
|
};
|
|
95
103
|
};
|
|
@@ -98,7 +106,7 @@ declare const brandsRouter: import("hono/hono-base").HonoBase<{
|
|
|
98
106
|
status: 200;
|
|
99
107
|
};
|
|
100
108
|
};
|
|
101
|
-
}, "/catalog/brands", "/catalog/brands/update
|
|
109
|
+
}, "/catalog/brands", "/catalog/brands/update">;
|
|
102
110
|
export type BrandsRouter = typeof brandsRouter;
|
|
103
111
|
declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
104
112
|
Variables: VariablesWithActor;
|
|
@@ -177,14 +185,15 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
177
185
|
};
|
|
178
186
|
};
|
|
179
187
|
} & {
|
|
180
|
-
"/catalog/categories/update
|
|
188
|
+
"/catalog/categories/update": {
|
|
181
189
|
$post: {
|
|
182
190
|
input: {
|
|
183
191
|
json: {
|
|
184
|
-
name: Partial<Record<"ka" | "en" | "ru", string>>;
|
|
185
|
-
slug: string;
|
|
186
192
|
categoryId: number;
|
|
193
|
+
name?: Partial<Record<"ka" | "en" | "ru", string>> | undefined;
|
|
194
|
+
slug?: string | undefined;
|
|
187
195
|
parentId?: number | null | undefined;
|
|
196
|
+
status?: "active" | "archived" | undefined;
|
|
188
197
|
};
|
|
189
198
|
};
|
|
190
199
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
@@ -192,21 +201,7 @@ declare const categoriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
192
201
|
status: 200;
|
|
193
202
|
};
|
|
194
203
|
};
|
|
195
|
-
}
|
|
196
|
-
"/catalog/categories/switch-status": {
|
|
197
|
-
$post: {
|
|
198
|
-
input: {
|
|
199
|
-
json: {
|
|
200
|
-
categoryId: number;
|
|
201
|
-
status: "active" | "archived";
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
205
|
-
outputFormat: "json";
|
|
206
|
-
status: 200;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
}, "/catalog/categories", "/catalog/categories/switch-status">;
|
|
204
|
+
}, "/catalog/categories", "/catalog/categories/update">;
|
|
210
205
|
export type CategoriesRouter = typeof categoriesRouter;
|
|
211
206
|
declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
212
207
|
Variables: VariablesWithActor;
|
|
@@ -278,13 +273,13 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
278
273
|
};
|
|
279
274
|
};
|
|
280
275
|
} & {
|
|
281
|
-
"/catalog/countries/update
|
|
276
|
+
"/catalog/countries/update": {
|
|
282
277
|
$post: {
|
|
283
278
|
input: {
|
|
284
279
|
form: {
|
|
285
|
-
code: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
286
|
-
name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
287
280
|
countryId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
281
|
+
code?: string | undefined;
|
|
282
|
+
name?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[] | undefined;
|
|
288
283
|
flagImage?: import("zod/v4/core").File | undefined;
|
|
289
284
|
};
|
|
290
285
|
};
|
|
@@ -293,7 +288,7 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
293
288
|
status: 200;
|
|
294
289
|
};
|
|
295
290
|
};
|
|
296
|
-
}, "/catalog/countries", "/catalog/countries/update
|
|
291
|
+
}, "/catalog/countries", "/catalog/countries/update">;
|
|
297
292
|
export type CountriesRouter = typeof countriesRouter;
|
|
298
293
|
|
|
299
294
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare const brandSchema: z.ZodObject<{
|
|
|
10
10
|
en: "en";
|
|
11
11
|
ru: "ru";
|
|
12
12
|
}> & z.core.$partial, z.ZodString>;
|
|
13
|
+
websiteUrl: z.ZodNullable<z.ZodURL>;
|
|
14
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
13
15
|
logotypeUrl: z.ZodString;
|
|
14
16
|
countryId: z.ZodInt;
|
|
15
17
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -33,7 +35,7 @@ declare const brandSearchOptionsSchema: z.ZodObject<{
|
|
|
33
35
|
declare const brandSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
34
36
|
id: z.ZodOptional<z.ZodInt>;
|
|
35
37
|
slug: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
37
39
|
id: number;
|
|
38
40
|
slug?: string | undefined;
|
|
39
41
|
} | {
|
|
@@ -45,6 +47,8 @@ declare const brandSelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
45
47
|
}>>;
|
|
46
48
|
declare const brandCreatePayloadSchema: z.ZodObject<{
|
|
47
49
|
slug: z.ZodString;
|
|
50
|
+
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
51
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
52
|
name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
49
53
|
ka: "ka";
|
|
50
54
|
en: "en";
|
|
@@ -52,18 +56,20 @@ declare const brandCreatePayloadSchema: z.ZodObject<{
|
|
|
52
56
|
}> & z.core.$partial, z.ZodString>>;
|
|
53
57
|
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
54
58
|
logotype: z.ZodFile;
|
|
55
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$strip>;
|
|
56
60
|
declare const brandUpdatePayloadSchema: z.ZodObject<{
|
|
57
|
-
slug: z.ZodString
|
|
58
|
-
|
|
61
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
62
|
+
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
63
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
59
65
|
ka: "ka";
|
|
60
66
|
en: "en";
|
|
61
67
|
ru: "ru";
|
|
62
|
-
}> & z.core.$partial, z.ZodString
|
|
63
|
-
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt
|
|
68
|
+
}> & z.core.$partial, z.ZodString>>>;
|
|
69
|
+
countryId: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>>;
|
|
64
70
|
logotype: z.ZodOptional<z.ZodFile>;
|
|
65
71
|
brandId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
66
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$strip>;
|
|
67
73
|
export type BrandSearchOptions = z.infer<typeof brandSearchOptionsSchema>;
|
|
68
74
|
export type BrandSearchResult = {
|
|
69
75
|
brands: Brand[];
|
|
@@ -115,7 +121,7 @@ declare const categorySearchOptionsSchema: z.ZodObject<{
|
|
|
115
121
|
declare const categorySelectOneQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
116
122
|
id: z.ZodOptional<z.ZodInt>;
|
|
117
123
|
slug: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, z.core.$
|
|
124
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
119
125
|
id: number;
|
|
120
126
|
slug?: string | undefined;
|
|
121
127
|
} | {
|
|
@@ -133,24 +139,21 @@ declare const categoryCreatePayloadSchema: z.ZodObject<{
|
|
|
133
139
|
}> & z.core.$partial, z.ZodString>;
|
|
134
140
|
slug: z.ZodString;
|
|
135
141
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
136
|
-
}, z.core.$
|
|
142
|
+
}, z.core.$strip>;
|
|
137
143
|
declare const categoryUpdatePayloadSchema: z.ZodObject<{
|
|
138
|
-
name: z.ZodRecord<z.ZodEnum<{
|
|
144
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
139
145
|
ka: "ka";
|
|
140
146
|
en: "en";
|
|
141
147
|
ru: "ru";
|
|
142
|
-
}> & z.core.$partial, z.ZodString
|
|
143
|
-
slug: z.ZodString
|
|
148
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
149
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
144
150
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
145
|
-
|
|
146
|
-
}, z.core.$strict>;
|
|
147
|
-
declare const categorySwitchStatusPayloadSchema: z.ZodObject<{
|
|
148
|
-
categoryId: z.ZodInt;
|
|
149
|
-
status: z.ZodEnum<{
|
|
151
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
150
152
|
active: "active";
|
|
151
153
|
archived: "archived";
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
+
}>>;
|
|
155
|
+
categoryId: z.ZodInt;
|
|
156
|
+
}, z.core.$strip>;
|
|
154
157
|
export type CategorySearchOptions = z.infer<typeof categorySearchOptionsSchema>;
|
|
155
158
|
export type CategorySearchResult = {
|
|
156
159
|
categories: Category[];
|
|
@@ -159,7 +162,6 @@ export type CategorySearchResult = {
|
|
|
159
162
|
export type CategorySelectOneQuery = z.infer<typeof categorySelectOneQuerySchema>;
|
|
160
163
|
export type CategoryCreatePayload = z.infer<typeof categoryCreatePayloadSchema>;
|
|
161
164
|
export type CategoryUpdatePayload = z.infer<typeof categoryUpdatePayloadSchema>;
|
|
162
|
-
export type CategorySwitchStatusPayload = z.infer<typeof categorySwitchStatusPayloadSchema>;
|
|
163
165
|
declare const countrySchema: z.ZodObject<{
|
|
164
166
|
id: z.ZodInt;
|
|
165
167
|
code: z.ZodString;
|
|
@@ -189,7 +191,7 @@ declare const countrySearchOptionsSchema: z.ZodObject<{
|
|
|
189
191
|
}, z.core.$strict>;
|
|
190
192
|
declare const countrySelectOneQuerySchema: z.ZodObject<{
|
|
191
193
|
id: z.ZodInt;
|
|
192
|
-
}, z.core.$
|
|
194
|
+
}, z.core.$strip>;
|
|
193
195
|
declare const countryCreatePayloadSchema: z.ZodObject<{
|
|
194
196
|
code: z.ZodString;
|
|
195
197
|
name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
@@ -198,17 +200,17 @@ declare const countryCreatePayloadSchema: z.ZodObject<{
|
|
|
198
200
|
ru: "ru";
|
|
199
201
|
}> & z.core.$partial, z.ZodString>>;
|
|
200
202
|
flagImage: z.ZodFile;
|
|
201
|
-
}, z.core.$
|
|
203
|
+
}, z.core.$strip>;
|
|
202
204
|
declare const countryUpdatePayloadSchema: z.ZodObject<{
|
|
203
|
-
code: z.ZodString
|
|
204
|
-
name: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
205
|
+
code: z.ZodOptional<z.ZodString>;
|
|
206
|
+
name: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
205
207
|
ka: "ka";
|
|
206
208
|
en: "en";
|
|
207
209
|
ru: "ru";
|
|
208
|
-
}> & z.core.$partial, z.ZodString
|
|
210
|
+
}> & z.core.$partial, z.ZodString>>>;
|
|
209
211
|
flagImage: z.ZodOptional<z.ZodFile>;
|
|
210
212
|
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
211
|
-
}, z.core.$
|
|
213
|
+
}, z.core.$strip>;
|
|
212
214
|
export type CountrySearchOptions = z.infer<typeof countrySearchOptionsSchema>;
|
|
213
215
|
export type CountrySearchResult = {
|
|
214
216
|
countries: Country[];
|