@esb-market-contracts/admin-backend 1.8.23 → 1.8.25
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 +1 -0
- package/package.json +1 -1
- package/types.d.ts +17 -175
package/api.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import z from 'zod';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
|
|
6
5
|
declare const signinPayloadSchema: z.ZodObject<{
|
|
@@ -111,184 +110,26 @@ export type EmployeeCreatePayload = z.infer<typeof employeeCreatePayloadSchema>;
|
|
|
111
110
|
export type EmployeeSwitchStatusPayload = z.infer<typeof employeeSwitchStatusPayloadSchema>;
|
|
112
111
|
export type EmployeeUpdatePasswordPayload = z.infer<typeof employeeUpdatePasswordPayloadSchema>;
|
|
113
112
|
export type EmployeeUpdateGrantsPayload = z.infer<typeof employeeUpdateGrantsPayloadSchema>;
|
|
114
|
-
declare const
|
|
115
|
-
id:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
isPrimaryKey: false;
|
|
124
|
-
isAutoincrement: false;
|
|
125
|
-
hasRuntimeDefault: false;
|
|
126
|
-
enumValues: undefined;
|
|
127
|
-
identity: undefined;
|
|
128
|
-
generated: undefined;
|
|
129
|
-
}>;
|
|
130
|
-
name: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[
|
|
131
|
-
string,
|
|
132
|
-
...string[]
|
|
133
|
-
]>>, {
|
|
134
|
-
name: string;
|
|
135
|
-
tableName: "assets";
|
|
136
|
-
dataType: "string";
|
|
137
|
-
data: string;
|
|
138
|
-
driverParam: string;
|
|
139
|
-
notNull: true;
|
|
140
|
-
hasDefault: false;
|
|
141
|
-
isPrimaryKey: false;
|
|
142
|
-
isAutoincrement: false;
|
|
143
|
-
hasRuntimeDefault: false;
|
|
144
|
-
enumValues: undefined;
|
|
145
|
-
identity: undefined;
|
|
146
|
-
generated: undefined;
|
|
147
|
-
}>;
|
|
148
|
-
assetCode: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[
|
|
149
|
-
string,
|
|
150
|
-
...string[]
|
|
151
|
-
]>>, {
|
|
152
|
-
name: string;
|
|
153
|
-
tableName: "assets";
|
|
154
|
-
dataType: "string";
|
|
155
|
-
data: string;
|
|
156
|
-
driverParam: string;
|
|
157
|
-
notNull: true;
|
|
158
|
-
hasDefault: false;
|
|
159
|
-
isPrimaryKey: false;
|
|
160
|
-
isAutoincrement: false;
|
|
161
|
-
hasRuntimeDefault: false;
|
|
162
|
-
enumValues: undefined;
|
|
163
|
-
identity: undefined;
|
|
164
|
-
generated: undefined;
|
|
165
|
-
}>;
|
|
166
|
-
serialNumber: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").PgTextBuilder<[
|
|
167
|
-
string,
|
|
168
|
-
...string[]
|
|
169
|
-
]>, {
|
|
170
|
-
name: string;
|
|
171
|
-
tableName: "assets";
|
|
172
|
-
dataType: "string";
|
|
173
|
-
data: string;
|
|
174
|
-
driverParam: string;
|
|
175
|
-
notNull: false;
|
|
176
|
-
hasDefault: false;
|
|
177
|
-
isPrimaryKey: false;
|
|
178
|
-
isAutoincrement: false;
|
|
179
|
-
hasRuntimeDefault: false;
|
|
180
|
-
enumValues: undefined;
|
|
181
|
-
identity: undefined;
|
|
182
|
-
generated: undefined;
|
|
183
|
-
}>;
|
|
184
|
-
notes: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").PgTextBuilder<[
|
|
185
|
-
string,
|
|
186
|
-
...string[]
|
|
187
|
-
]>, {
|
|
188
|
-
name: string;
|
|
189
|
-
tableName: "assets";
|
|
190
|
-
dataType: "string";
|
|
191
|
-
data: string;
|
|
192
|
-
driverParam: string;
|
|
193
|
-
notNull: false;
|
|
194
|
-
hasDefault: false;
|
|
195
|
-
isPrimaryKey: false;
|
|
196
|
-
isAutoincrement: false;
|
|
197
|
-
hasRuntimeDefault: false;
|
|
198
|
-
enumValues: undefined;
|
|
199
|
-
identity: undefined;
|
|
200
|
-
generated: undefined;
|
|
201
|
-
}>;
|
|
202
|
-
status: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<[
|
|
203
|
-
"active",
|
|
204
|
-
"written_off"
|
|
205
|
-
]>>>, {
|
|
206
|
-
name: string;
|
|
207
|
-
tableName: "assets";
|
|
208
|
-
dataType: "string enum";
|
|
209
|
-
data: "active" | "written_off";
|
|
210
|
-
driverParam: string;
|
|
211
|
-
notNull: true;
|
|
212
|
-
hasDefault: true;
|
|
213
|
-
isPrimaryKey: false;
|
|
214
|
-
isAutoincrement: false;
|
|
215
|
-
hasRuntimeDefault: false;
|
|
216
|
-
enumValues: [
|
|
217
|
-
"active",
|
|
218
|
-
"written_off"
|
|
219
|
-
];
|
|
220
|
-
identity: undefined;
|
|
221
|
-
generated: undefined;
|
|
222
|
-
}>;
|
|
223
|
-
writeOffReason: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").PgTextBuilder<[
|
|
224
|
-
string,
|
|
225
|
-
...string[]
|
|
226
|
-
]>, {
|
|
227
|
-
name: string;
|
|
228
|
-
tableName: "assets";
|
|
229
|
-
dataType: "string";
|
|
230
|
-
data: string;
|
|
231
|
-
driverParam: string;
|
|
232
|
-
notNull: false;
|
|
233
|
-
hasDefault: false;
|
|
234
|
-
isPrimaryKey: false;
|
|
235
|
-
isAutoincrement: false;
|
|
236
|
-
hasRuntimeDefault: false;
|
|
237
|
-
enumValues: undefined;
|
|
238
|
-
identity: undefined;
|
|
239
|
-
generated: undefined;
|
|
240
|
-
}>;
|
|
241
|
-
writtenOffAt: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
242
|
-
name: string;
|
|
243
|
-
tableName: "assets";
|
|
244
|
-
dataType: "object date";
|
|
245
|
-
data: Date;
|
|
246
|
-
driverParam: string;
|
|
247
|
-
notNull: false;
|
|
248
|
-
hasDefault: false;
|
|
249
|
-
isPrimaryKey: false;
|
|
250
|
-
isAutoincrement: false;
|
|
251
|
-
hasRuntimeDefault: false;
|
|
252
|
-
enumValues: undefined;
|
|
253
|
-
identity: undefined;
|
|
254
|
-
generated: undefined;
|
|
255
|
-
}>;
|
|
256
|
-
updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>, {
|
|
257
|
-
name: string;
|
|
258
|
-
tableName: "assets";
|
|
259
|
-
dataType: "object date";
|
|
260
|
-
data: Date;
|
|
261
|
-
driverParam: string;
|
|
262
|
-
notNull: false;
|
|
263
|
-
hasDefault: true;
|
|
264
|
-
isPrimaryKey: false;
|
|
265
|
-
isAutoincrement: false;
|
|
266
|
-
hasRuntimeDefault: false;
|
|
267
|
-
enumValues: undefined;
|
|
268
|
-
identity: undefined;
|
|
269
|
-
generated: undefined;
|
|
270
|
-
}>;
|
|
271
|
-
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"assets", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
272
|
-
name: string;
|
|
273
|
-
tableName: "assets";
|
|
274
|
-
dataType: "object date";
|
|
275
|
-
data: Date;
|
|
276
|
-
driverParam: string;
|
|
277
|
-
notNull: true;
|
|
278
|
-
hasDefault: true;
|
|
279
|
-
isPrimaryKey: false;
|
|
280
|
-
isAutoincrement: false;
|
|
281
|
-
hasRuntimeDefault: false;
|
|
282
|
-
enumValues: undefined;
|
|
283
|
-
identity: undefined;
|
|
284
|
-
generated: undefined;
|
|
113
|
+
declare const assetDTOSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodInt;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
assetCode: z.ZodString;
|
|
117
|
+
serialNumber: z.ZodNullable<z.ZodString>;
|
|
118
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
119
|
+
status: z.ZodEnum<{
|
|
120
|
+
active: "active";
|
|
121
|
+
written_off: "written_off";
|
|
285
122
|
}>;
|
|
286
|
-
|
|
287
|
-
|
|
123
|
+
writeOffReason: z.ZodNullable<z.ZodString>;
|
|
124
|
+
writtenOffAt: z.ZodNullable<z.ZodDate>;
|
|
125
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
126
|
+
createdAt: z.ZodDate;
|
|
127
|
+
}, z.core.$strip>;
|
|
288
128
|
declare const assetGetQuerySchema: z.ZodObject<{
|
|
289
129
|
assetId: z.ZodInt;
|
|
290
130
|
}, z.core.$strict>;
|
|
291
131
|
declare const assetSearchPayloadSchema: z.ZodObject<{
|
|
132
|
+
query: z.ZodOptional<z.ZodString>;
|
|
292
133
|
where: z.ZodOptional<z.ZodObject<{
|
|
293
134
|
status: z.ZodOptional<z.ZodEnum<{
|
|
294
135
|
active: "active";
|
|
@@ -318,10 +159,11 @@ declare const assetUpdateMetadataPayloadSchema: z.ZodObject<{
|
|
|
318
159
|
notes: z.ZodNullable<z.ZodString>;
|
|
319
160
|
assetId: z.ZodInt;
|
|
320
161
|
}, z.core.$strict>;
|
|
162
|
+
export type AssetDTO = z.infer<typeof assetDTOSchema>;
|
|
321
163
|
export type AssetGetQuery = z.infer<typeof assetGetQuerySchema>;
|
|
322
164
|
export type AssetSearchPayload = z.infer<typeof assetSearchPayloadSchema>;
|
|
323
165
|
export type AssetSearchResult = {
|
|
324
|
-
assets:
|
|
166
|
+
assets: AssetDTO[];
|
|
325
167
|
total: number;
|
|
326
168
|
};
|
|
327
169
|
export type AssetCreatePayload = z.infer<typeof assetCreatePayloadSchema>;
|