@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.
Files changed (3) hide show
  1. package/api.d.ts +13 -9
  2. package/package.json +1 -1
  3. 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
- json: {
143
- code: string;
144
- name: Partial<Record<"ka" | "en" | "ru", string>>;
145
- flagImageUrl: string;
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
- json: {
186
- code: string;
187
- name: Partial<Record<"ka" | "en" | "ru", string>>;
188
- flagImageUrl: string;
189
- countryId: number;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esb-market-contracts/backend",
3
3
  "description": "Shared TypeScript contract definitions for backend.",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
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
- flagImageUrl: z.ZodString;
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
- flagImageUrl: z.ZodString;
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 = {