@esb-market-contracts/admin-backend 1.8.35 → 1.8.38
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 +26 -1
- package/enums.d.ts +10 -0
- package/enums.js +14 -6
- package/package.json +1 -1
- package/types.d.ts +26 -0
package/api.d.ts
CHANGED
|
@@ -296,7 +296,32 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
|
|
|
296
296
|
status: 200;
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
|
-
}
|
|
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">;
|
|
300
325
|
export type AssetsRouter = typeof assetsRouter;
|
|
301
326
|
|
|
302
327
|
export {};
|
package/enums.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
declare const assetStatusesArray: readonly [
|
|
4
|
+
"active",
|
|
5
|
+
"written_off"
|
|
6
|
+
];
|
|
7
|
+
declare const assetStatusesRecord: Readonly<{
|
|
8
|
+
ACTIVE: "active";
|
|
9
|
+
WRITTEN_OFF: "written_off";
|
|
10
|
+
}>;
|
|
11
|
+
export type AssetStatus = (typeof assetStatusesArray)[number];
|
|
3
12
|
declare const grantsArray: readonly [
|
|
4
13
|
"employee.create",
|
|
5
14
|
"employee.read",
|
|
@@ -30,6 +39,7 @@ declare const employeeStatusesRecord: Readonly<{
|
|
|
30
39
|
export type EmployeeStatus = (typeof employeeStatusesArray)[number];
|
|
31
40
|
|
|
32
41
|
export {
|
|
42
|
+
assetStatusesRecord as assetStatus,
|
|
33
43
|
employeeStatusesRecord as employeeStatus,
|
|
34
44
|
grantsRecord as grants,
|
|
35
45
|
};
|
package/enums.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
// src/app/domain/(
|
|
1
|
+
// src/app/domain/(backoffice)/assets/assets.enums.ts
|
|
2
2
|
import { createStringEnumRecord } from "@kalutskii/foundation";
|
|
3
|
+
import { pgEnum } from "drizzle-orm/pg-core";
|
|
4
|
+
var assetStatusesArray = ["active", "written_off"];
|
|
5
|
+
var assetStatusPGEnum = pgEnum("asset_status", assetStatusesArray);
|
|
6
|
+
var assetStatusesRecord = createStringEnumRecord(assetStatusesArray);
|
|
7
|
+
|
|
8
|
+
// src/app/domain/(iam)/permissions/permissions.enums.ts
|
|
9
|
+
import { createStringEnumRecord as createStringEnumRecord2 } from "@kalutskii/foundation";
|
|
3
10
|
import { z } from "zod";
|
|
4
11
|
var grantsArray = [
|
|
5
12
|
"employee.create",
|
|
@@ -11,15 +18,16 @@ var grantsArray = [
|
|
|
11
18
|
"inventory.write_off"
|
|
12
19
|
];
|
|
13
20
|
var grantsZodArray = z.array(z.enum(grantsArray));
|
|
14
|
-
var grantsRecord =
|
|
21
|
+
var grantsRecord = createStringEnumRecord2(grantsArray);
|
|
15
22
|
|
|
16
23
|
// src/app/domain/(iam)/employees/employees.enums.ts
|
|
17
|
-
import { createStringEnumRecord as
|
|
18
|
-
import { pgEnum } from "drizzle-orm/pg-core";
|
|
24
|
+
import { createStringEnumRecord as createStringEnumRecord3 } from "@kalutskii/foundation";
|
|
25
|
+
import { pgEnum as pgEnum2 } from "drizzle-orm/pg-core";
|
|
19
26
|
var employeeStatusesArray = ["active", "suspended"];
|
|
20
|
-
var employeeStatusPGEnum =
|
|
21
|
-
var employeeStatusesRecord =
|
|
27
|
+
var employeeStatusPGEnum = pgEnum2("employee_status", employeeStatusesArray);
|
|
28
|
+
var employeeStatusesRecord = createStringEnumRecord3(employeeStatusesArray);
|
|
22
29
|
export {
|
|
30
|
+
assetStatusesRecord as assetStatus,
|
|
23
31
|
employeeStatusesRecord as employeeStatus,
|
|
24
32
|
grantsRecord as grants
|
|
25
33
|
};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -185,6 +185,31 @@ declare const assetBulkWriteOffPayloadSchema: z.ZodObject<{
|
|
|
185
185
|
query: z.ZodOptional<z.ZodString>;
|
|
186
186
|
}, z.core.$strict>;
|
|
187
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>;
|
|
188
213
|
export type AssetSearchOptions = z.infer<typeof assetSearchOptionsSchema>;
|
|
189
214
|
export type AssetSelectOneQuery = z.infer<typeof assetSelectOneQuerySchema>;
|
|
190
215
|
export type AssetSearchResult = {
|
|
@@ -195,5 +220,6 @@ export type AssetCreatePayload = z.infer<typeof assetCreatePayloadSchema>;
|
|
|
195
220
|
export type AssetUpdatePayload = z.infer<typeof assetUpdatePayloadSchema>;
|
|
196
221
|
export type AssetWriteOffPayload = z.infer<typeof assetWriteOffPayloadSchema>;
|
|
197
222
|
export type AssetBulkWriteOffPayload = z.infer<typeof assetBulkWriteOffPayloadSchema>;
|
|
223
|
+
export type AssetBulkBarcodeSheetPayload = z.infer<typeof assetBulkBarcodeSheetPayloadSchema>;
|
|
198
224
|
|
|
199
225
|
export {};
|