@esb-market-contracts/admin-backend 1.8.45 → 1.8.46

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 +4 -17
  2. package/package.json +1 -1
  3. package/types.d.ts +2 -6
package/api.d.ts CHANGED
@@ -248,27 +248,14 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
248
248
  };
249
249
  } & {
250
250
  "/backoffice/assets/update-metadata": {
251
- $post: {
252
- input: {
253
- json: {
254
- assetId: number;
255
- name?: string | undefined;
256
- serialNumber?: string | null | undefined;
257
- notes?: string | null | undefined;
258
- };
259
- };
260
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
261
- outputFormat: "json";
262
- status: 200;
263
- };
264
- };
265
- } & {
266
- "/backoffice/assets/update-image": {
267
251
  $post: {
268
252
  input: {
269
253
  form: {
254
+ name: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
270
255
  assetId: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
271
- image: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
256
+ serialNumber?: string | null | undefined;
257
+ notes?: string | null | undefined;
258
+ image?: import("zod/v4/core").File | undefined;
272
259
  };
273
260
  };
274
261
  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/admin-backend",
3
3
  "description": "Shared TypeScript contract definitions for admin-backend.",
4
- "version": "1.8.45",
4
+ "version": "1.8.46",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -165,14 +165,11 @@ declare const assetCreatePayloadSchema: z.ZodObject<{
165
165
  image: z.ZodOptional<z.ZodFile>;
166
166
  }, z.core.$strict>;
167
167
  declare const assetUpdatePayloadSchema: z.ZodObject<{
168
- name: z.ZodOptional<z.ZodString>;
168
+ name: z.ZodString;
169
169
  serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
170
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- assetId: z.ZodInt;
172
- }, z.core.$strict>;
173
- declare const assetUpdateImagePayloadSchema: z.ZodObject<{
171
+ image: z.ZodOptional<z.ZodFile>;
174
172
  assetId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
175
- image: z.ZodFile;
176
173
  }, z.core.$strict>;
177
174
  declare const assetWriteOffPayloadSchema: z.ZodObject<{
178
175
  assetId: z.ZodInt;
@@ -235,7 +232,6 @@ export type AssetSearchResult = {
235
232
  };
236
233
  export type AssetCreatePayload = z.infer<typeof assetCreatePayloadSchema>;
237
234
  export type AssetUpdatePayload = z.infer<typeof assetUpdatePayloadSchema>;
238
- export type AssetUpdateImagePayload = z.infer<typeof assetUpdateImagePayloadSchema>;
239
235
  export type AssetWriteOffPayload = z.infer<typeof assetWriteOffPayloadSchema>;
240
236
  export type AssetBulkWriteOffPayload = z.infer<typeof assetBulkWriteOffPayloadSchema>;
241
237
  export type AssetBulkBarcodeSheetPayload = z.infer<typeof assetBulkBarcodeSheetPayloadSchema>;