@esb-market-contracts/backend 1.0.5 → 1.0.7
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 +13 -9
- package/package.json +1 -1
- package/types.d.ts +5 -3
package/api.d.ts
CHANGED
|
@@ -129,6 +129,8 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
129
129
|
code: string;
|
|
130
130
|
name: Partial<Record<"ka" | "en" | "ru", string>>;
|
|
131
131
|
flagImageUrl: string;
|
|
132
|
+
updatedAt: Date | null;
|
|
133
|
+
createdAt: Date;
|
|
132
134
|
};
|
|
133
135
|
}>;
|
|
134
136
|
outputFormat: "json";
|
|
@@ -139,10 +141,10 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
139
141
|
"/catalog/countries/create": {
|
|
140
142
|
$post: {
|
|
141
143
|
input: {
|
|
142
|
-
|
|
143
|
-
code:
|
|
144
|
-
name:
|
|
145
|
-
|
|
144
|
+
form: {
|
|
145
|
+
code: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
146
|
+
name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
147
|
+
flagImage: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
146
148
|
};
|
|
147
149
|
};
|
|
148
150
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
@@ -171,6 +173,8 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
171
173
|
code: string;
|
|
172
174
|
name: Partial<Record<"ka" | "en" | "ru", string>>;
|
|
173
175
|
flagImageUrl: string;
|
|
176
|
+
updatedAt: Date | null;
|
|
177
|
+
createdAt: Date;
|
|
174
178
|
}[];
|
|
175
179
|
total: number;
|
|
176
180
|
}>;
|
|
@@ -182,11 +186,11 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
182
186
|
"/catalog/countries/update-metadata": {
|
|
183
187
|
$post: {
|
|
184
188
|
input: {
|
|
185
|
-
|
|
186
|
-
code:
|
|
187
|
-
name:
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
form: {
|
|
190
|
+
code: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
191
|
+
name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
192
|
+
countryId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
193
|
+
flagImage?: import("zod/v4/core").File | undefined;
|
|
190
194
|
};
|
|
191
195
|
};
|
|
192
196
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ declare const countrySchema: z.ZodObject<{
|
|
|
99
99
|
ru: "ru";
|
|
100
100
|
}> & z.core.$partial, z.ZodString>;
|
|
101
101
|
flagImageUrl: z.ZodString;
|
|
102
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
103
|
+
createdAt: z.ZodDate;
|
|
102
104
|
}, z.core.$strip>;
|
|
103
105
|
export type Country = z.infer<typeof countrySchema>;
|
|
104
106
|
declare const countrySearchOptionsSchema: z.ZodObject<{
|
|
@@ -125,7 +127,7 @@ declare const countryCreatePayloadSchema: z.ZodObject<{
|
|
|
125
127
|
en: "en";
|
|
126
128
|
ru: "ru";
|
|
127
129
|
}> & z.core.$partial, z.ZodString>;
|
|
128
|
-
|
|
130
|
+
flagImage: z.ZodFile;
|
|
129
131
|
}, z.core.$strict>;
|
|
130
132
|
declare const countryUpdatePayloadSchema: z.ZodObject<{
|
|
131
133
|
code: z.ZodString;
|
|
@@ -134,8 +136,8 @@ declare const countryUpdatePayloadSchema: z.ZodObject<{
|
|
|
134
136
|
en: "en";
|
|
135
137
|
ru: "ru";
|
|
136
138
|
}> & z.core.$partial, z.ZodString>;
|
|
137
|
-
|
|
138
|
-
countryId: z.ZodInt
|
|
139
|
+
flagImage: z.ZodOptional<z.ZodFile>;
|
|
140
|
+
countryId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
|
|
139
141
|
}, z.core.$strict>;
|
|
140
142
|
export type CountrySearchOptions = z.infer<typeof countrySearchOptionsSchema>;
|
|
141
143
|
export type CountrySearchResult = {
|