@esb-market-contracts/admin-backend 1.8.34 → 1.8.37
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 +28 -1
- package/package.json +1 -1
- package/types.d.ts +27 -0
package/api.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
183
183
|
serialNumber: string | null;
|
|
184
184
|
notes: string | null;
|
|
185
185
|
status: "active" | "written_off";
|
|
186
|
+
imageSource: string | null;
|
|
186
187
|
writtenOffAt: Date | null;
|
|
187
188
|
updatedAt: Date | null;
|
|
188
189
|
createdAt: Date;
|
|
@@ -230,6 +231,7 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
230
231
|
serialNumber: string | null;
|
|
231
232
|
notes: string | null;
|
|
232
233
|
status: "active" | "written_off";
|
|
234
|
+
imageSource: string | null;
|
|
233
235
|
writtenOffAt: Date | null;
|
|
234
236
|
updatedAt: Date | null;
|
|
235
237
|
createdAt: Date;
|
|
@@ -294,7 +296,32 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
294
296
|
status: 200;
|
|
295
297
|
};
|
|
296
298
|
};
|
|
297
|
-
}
|
|
299
|
+
} & {
|
|
300
|
+
"/backoffice/assets/bulk-barcode-sheet": {
|
|
301
|
+
$post: {
|
|
302
|
+
input: {
|
|
303
|
+
json: {
|
|
304
|
+
selection: {
|
|
305
|
+
mode: "include";
|
|
306
|
+
identifiers: number[];
|
|
307
|
+
} | {
|
|
308
|
+
mode: "exclude";
|
|
309
|
+
excludedIdentifiers: number[];
|
|
310
|
+
};
|
|
311
|
+
filter: {
|
|
312
|
+
where?: {
|
|
313
|
+
status?: "active" | "written_off" | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
query?: string | undefined;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
output: {};
|
|
320
|
+
outputFormat: string;
|
|
321
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
}, "/backoffice/assets", "/backoffice/assets/bulk-barcode-sheet">;
|
|
298
325
|
export type AssetsRouter = typeof assetsRouter;
|
|
299
326
|
|
|
300
327
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ declare const assetSchema: z.ZodObject<{
|
|
|
120
120
|
active: "active";
|
|
121
121
|
written_off: "written_off";
|
|
122
122
|
}>;
|
|
123
|
+
imageSource: z.ZodNullable<z.ZodString>;
|
|
123
124
|
writtenOffAt: z.ZodNullable<z.ZodDate>;
|
|
124
125
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
125
126
|
createdAt: z.ZodDate;
|
|
@@ -184,6 +185,31 @@ declare const assetBulkWriteOffPayloadSchema: z.ZodObject<{
|
|
|
184
185
|
query: z.ZodOptional<z.ZodString>;
|
|
185
186
|
}, z.core.$strict>;
|
|
186
187
|
}, z.core.$strict>;
|
|
188
|
+
declare const assetBulkBarcodeSheetPayloadSchema: z.ZodObject<{
|
|
189
|
+
selection: z.ZodDiscriminatedUnion<[
|
|
190
|
+
z.ZodObject<{
|
|
191
|
+
mode: z.ZodLiteral<"include">;
|
|
192
|
+
identifiers: z.ZodArray<z.ZodInt>;
|
|
193
|
+
}, z.core.$strict>,
|
|
194
|
+
z.ZodObject<{
|
|
195
|
+
mode: z.ZodLiteral<"exclude">;
|
|
196
|
+
excludedIdentifiers: z.ZodArray<z.ZodInt>;
|
|
197
|
+
}, z.core.$strict>
|
|
198
|
+
], "mode">;
|
|
199
|
+
filter: z.ZodObject<{
|
|
200
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
201
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
active: "active";
|
|
203
|
+
written_off: "written_off";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
206
|
+
status: "active" | "written_off";
|
|
207
|
+
}, {
|
|
208
|
+
status?: "active" | "written_off" | undefined;
|
|
209
|
+
}>>>;
|
|
210
|
+
query: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
}, z.core.$strict>;
|
|
187
213
|
export type AssetSearchOptions = z.infer<typeof assetSearchOptionsSchema>;
|
|
188
214
|
export type AssetSelectOneQuery = z.infer<typeof assetSelectOneQuerySchema>;
|
|
189
215
|
export type AssetSearchResult = {
|
|
@@ -194,5 +220,6 @@ export type AssetCreatePayload = z.infer<typeof assetCreatePayloadSchema>;
|
|
|
194
220
|
export type AssetUpdatePayload = z.infer<typeof assetUpdatePayloadSchema>;
|
|
195
221
|
export type AssetWriteOffPayload = z.infer<typeof assetWriteOffPayloadSchema>;
|
|
196
222
|
export type AssetBulkWriteOffPayload = z.infer<typeof assetBulkWriteOffPayloadSchema>;
|
|
223
|
+
export type AssetBulkBarcodeSheetPayload = z.infer<typeof assetBulkBarcodeSheetPayloadSchema>;
|
|
197
224
|
|
|
198
225
|
export {};
|