@esb-market-contracts/admin-backend 1.8.29 → 1.8.30
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 +4 -4
- package/package.json +1 -1
- package/types.d.ts +4 -4
package/api.d.ts
CHANGED
|
@@ -220,10 +220,10 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
220
220
|
offset?: unknown;
|
|
221
221
|
limit?: unknown;
|
|
222
222
|
};
|
|
223
|
-
query?: string | undefined;
|
|
224
223
|
where?: {
|
|
225
224
|
status?: "active" | "written_off" | undefined;
|
|
226
225
|
} | undefined;
|
|
226
|
+
query?: string | undefined;
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
@@ -249,10 +249,10 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
249
249
|
$post: {
|
|
250
250
|
input: {
|
|
251
251
|
json: {
|
|
252
|
-
name: string;
|
|
253
|
-
serialNumber: string | null;
|
|
254
|
-
notes: string | null;
|
|
255
252
|
assetId: number;
|
|
253
|
+
name?: string | undefined;
|
|
254
|
+
serialNumber?: string | null | undefined;
|
|
255
|
+
notes?: string | null | undefined;
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
258
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -127,7 +127,6 @@ declare const assetSchema: z.ZodObject<{
|
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
export type Asset = z.infer<typeof assetSchema>;
|
|
129
129
|
declare const assetSearchOptionsSchema: z.ZodObject<{
|
|
130
|
-
query: z.ZodOptional<z.ZodString>;
|
|
131
130
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
132
131
|
status: z.ZodOptional<z.ZodEnum<{
|
|
133
132
|
active: "active";
|
|
@@ -138,6 +137,7 @@ declare const assetSearchOptionsSchema: z.ZodObject<{
|
|
|
138
137
|
}, {
|
|
139
138
|
status?: "active" | "written_off" | undefined;
|
|
140
139
|
}>>>;
|
|
140
|
+
query: z.ZodOptional<z.ZodString>;
|
|
141
141
|
pagination: z.ZodObject<{
|
|
142
142
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
143
143
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -162,9 +162,9 @@ declare const assetCreatePayloadSchema: z.ZodObject<{
|
|
|
162
162
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
163
|
}, z.core.$strict>;
|
|
164
164
|
declare const assetUpdatePayloadSchema: z.ZodObject<{
|
|
165
|
-
name: z.ZodString
|
|
166
|
-
serialNumber: z.ZodNullable<z.ZodString
|
|
167
|
-
notes: z.ZodNullable<z.ZodString
|
|
165
|
+
name: z.ZodOptional<z.ZodString>;
|
|
166
|
+
serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
168
|
assetId: z.ZodInt;
|
|
169
169
|
}, z.core.$strict>;
|
|
170
170
|
declare const assetWriteOffPayloadSchema: z.ZodObject<{
|