@mikemo-coposit/am-accounting-shared 0.0.1
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/README.md +107 -0
- package/dist/constants/index.d.mts +5 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +21 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/index.mjs +4 -0
- package/dist/constants/index.mjs.map +1 -0
- package/dist/constants/menu/index.d.mts +2 -0
- package/dist/constants/menu/index.d.ts +2 -0
- package/dist/constants/menu/index.js +20 -0
- package/dist/constants/menu/index.js.map +1 -0
- package/dist/constants/menu/index.mjs +3 -0
- package/dist/constants/menu/index.mjs.map +1 -0
- package/dist/constants/menu/menu-status.constant.d.mts +7 -0
- package/dist/constants/menu/menu-status.constant.d.ts +7 -0
- package/dist/constants/menu/menu-status.constant.js +28 -0
- package/dist/constants/menu/menu-status.constant.js.map +1 -0
- package/dist/constants/menu/menu-status.constant.mjs +8 -0
- package/dist/constants/menu/menu-status.constant.mjs.map +1 -0
- package/dist/constants/menu/menu-type.constant.d.mts +8 -0
- package/dist/constants/menu/menu-type.constant.d.ts +8 -0
- package/dist/constants/menu/menu-type.constant.js +29 -0
- package/dist/constants/menu/menu-type.constant.js.map +1 -0
- package/dist/constants/menu/menu-type.constant.mjs +9 -0
- package/dist/constants/menu/menu-type.constant.mjs.map +1 -0
- package/dist/constants/project/index.d.mts +2 -0
- package/dist/constants/project/index.d.ts +2 -0
- package/dist/constants/project/index.js +20 -0
- package/dist/constants/project/index.js.map +1 -0
- package/dist/constants/project/index.mjs +3 -0
- package/dist/constants/project/index.mjs.map +1 -0
- package/dist/constants/project/project-res-status.constant.d.mts +10 -0
- package/dist/constants/project/project-res-status.constant.d.ts +10 -0
- package/dist/constants/project/project-res-status.constant.js +31 -0
- package/dist/constants/project/project-res-status.constant.js.map +1 -0
- package/dist/constants/project/project-res-status.constant.mjs +11 -0
- package/dist/constants/project/project-res-status.constant.mjs.map +1 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.mts +8 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.ts +8 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.js +29 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.js.map +1 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs +9 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs.map +1 -0
- package/dist/constants/trust-account/index.d.mts +1 -0
- package/dist/constants/trust-account/index.d.ts +1 -0
- package/dist/constants/trust-account/index.js +19 -0
- package/dist/constants/trust-account/index.js.map +1 -0
- package/dist/constants/trust-account/index.mjs +2 -0
- package/dist/constants/trust-account/index.mjs.map +1 -0
- package/dist/constants/trust-account/trust-account-status.constant.d.mts +6 -0
- package/dist/constants/trust-account/trust-account-status.constant.d.ts +6 -0
- package/dist/constants/trust-account/trust-account-status.constant.js +29 -0
- package/dist/constants/trust-account/trust-account-status.constant.js.map +1 -0
- package/dist/constants/trust-account/trust-account-status.constant.mjs +9 -0
- package/dist/constants/trust-account/trust-account-status.constant.mjs.map +1 -0
- package/dist/grpc/constants/accountms.constant.d.mts +14 -0
- package/dist/grpc/constants/accountms.constant.d.ts +14 -0
- package/dist/grpc/constants/accountms.constant.js +39 -0
- package/dist/grpc/constants/accountms.constant.js.map +1 -0
- package/dist/grpc/constants/accountms.constant.mjs +19 -0
- package/dist/grpc/constants/accountms.constant.mjs.map +1 -0
- package/dist/grpc/constants/index.d.mts +1 -0
- package/dist/grpc/constants/index.d.ts +1 -0
- package/dist/grpc/constants/index.js +19 -0
- package/dist/grpc/constants/index.js.map +1 -0
- package/dist/grpc/constants/index.mjs +2 -0
- package/dist/grpc/constants/index.mjs.map +1 -0
- package/dist/grpc/index.d.mts +4 -0
- package/dist/grpc/index.d.ts +4 -0
- package/dist/grpc/index.js +20 -0
- package/dist/grpc/index.js.map +1 -0
- package/dist/grpc/index.mjs +3 -0
- package/dist/grpc/index.mjs.map +1 -0
- package/dist/grpc/protos/common/common.file.d.mts +2 -0
- package/dist/grpc/protos/common/common.file.d.ts +2 -0
- package/dist/grpc/protos/common/common.file.proto +30 -0
- package/dist/grpc/protos/common/common.general.d.mts +2 -0
- package/dist/grpc/protos/common/common.general.d.ts +2 -0
- package/dist/grpc/protos/common/common.general.proto +53 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.mts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.ts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.mts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.ts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.proto +16 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.proto +28 -0
- package/dist/grpc/protos/trust-account/trust-account.d.mts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.d.ts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.d.mts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.d.ts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.proto +18 -0
- package/dist/grpc/protos/trust-account/trust-account.proto +35 -0
- package/dist/grpc/utils/grpc.options.util.d.mts +10 -0
- package/dist/grpc/utils/grpc.options.util.d.ts +10 -0
- package/dist/grpc/utils/grpc.options.util.js +57 -0
- package/dist/grpc/utils/grpc.options.util.js.map +1 -0
- package/dist/grpc/utils/grpc.options.util.mjs +37 -0
- package/dist/grpc/utils/grpc.options.util.mjs.map +1 -0
- package/dist/grpc/utils/index.d.mts +3 -0
- package/dist/grpc/utils/index.d.ts +3 -0
- package/dist/grpc/utils/index.js +20 -0
- package/dist/grpc/utils/index.js.map +1 -0
- package/dist/grpc/utils/index.mjs +3 -0
- package/dist/grpc/utils/index.mjs.map +1 -0
- package/dist/grpc/utils/proto.util.d.mts +18 -0
- package/dist/grpc/utils/proto.util.d.ts +18 -0
- package/dist/grpc/utils/proto.util.js +102 -0
- package/dist/grpc/utils/proto.util.js.map +1 -0
- package/dist/grpc/utils/proto.util.mjs +82 -0
- package/dist/grpc/utils/proto.util.mjs.map +1 -0
- package/dist/index.d.mts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/common/common.interface.d.mts +6 -0
- package/dist/interfaces/common/common.interface.d.ts +6 -0
- package/dist/interfaces/common/common.interface.js +17 -0
- package/dist/interfaces/common/common.interface.js.map +1 -0
- package/dist/interfaces/common/common.interface.mjs +1 -0
- package/dist/interfaces/common/common.interface.mjs.map +1 -0
- package/dist/interfaces/common/index.d.mts +1 -0
- package/dist/interfaces/common/index.d.ts +1 -0
- package/dist/interfaces/common/index.js +19 -0
- package/dist/interfaces/common/index.js.map +1 -0
- package/dist/interfaces/common/index.mjs +2 -0
- package/dist/interfaces/common/index.mjs.map +1 -0
- package/dist/interfaces/index.d.mts +12 -0
- package/dist/interfaces/index.d.ts +12 -0
- package/dist/interfaces/index.js +21 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/index.mjs +4 -0
- package/dist/interfaces/index.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/index.d.mts +7 -0
- package/dist/interfaces/project-trust-account-allocation/index.d.ts +7 -0
- package/dist/interfaces/project-trust-account-allocation/index.js +20 -0
- package/dist/interfaces/project-trust-account-allocation/index.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/index.mjs +3 -0
- package/dist/interfaces/project-trust-account-allocation/index.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.mts +16 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.ts +16 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js +17 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.mts +24 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.ts +24 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js +17 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs.map +1 -0
- package/dist/interfaces/trust-account/index.d.mts +8 -0
- package/dist/interfaces/trust-account/index.d.ts +8 -0
- package/dist/interfaces/trust-account/index.js +20 -0
- package/dist/interfaces/trust-account/index.js.map +1 -0
- package/dist/interfaces/trust-account/index.mjs +3 -0
- package/dist/interfaces/trust-account/index.mjs.map +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.mts +18 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.ts +18 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.js +17 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.js.map +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs.map +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.mts +24 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.ts +24 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js +17 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js.map +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs.map +1 -0
- package/dist/schemas/index.d.mts +12 -0
- package/dist/schemas/index.d.ts +12 -0
- package/dist/schemas/index.js +22 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/index.mjs +5 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/dist/schemas/menu/create-menu.schema.d.mts +49 -0
- package/dist/schemas/menu/create-menu.schema.d.ts +49 -0
- package/dist/schemas/menu/create-menu.schema.js +40 -0
- package/dist/schemas/menu/create-menu.schema.js.map +1 -0
- package/dist/schemas/menu/create-menu.schema.mjs +20 -0
- package/dist/schemas/menu/create-menu.schema.mjs.map +1 -0
- package/dist/schemas/menu/index.d.mts +4 -0
- package/dist/schemas/menu/index.d.ts +4 -0
- package/dist/schemas/menu/index.js +21 -0
- package/dist/schemas/menu/index.js.map +1 -0
- package/dist/schemas/menu/index.mjs +4 -0
- package/dist/schemas/menu/index.mjs.map +1 -0
- package/dist/schemas/menu/menu-res.schema.d.mts +219 -0
- package/dist/schemas/menu/menu-res.schema.d.ts +219 -0
- package/dist/schemas/menu/menu-res.schema.js +49 -0
- package/dist/schemas/menu/menu-res.schema.js.map +1 -0
- package/dist/schemas/menu/menu-res.schema.mjs +29 -0
- package/dist/schemas/menu/menu-res.schema.mjs.map +1 -0
- package/dist/schemas/menu/update-menu.schema.d.mts +53 -0
- package/dist/schemas/menu/update-menu.schema.d.ts +53 -0
- package/dist/schemas/menu/update-menu.schema.js +29 -0
- package/dist/schemas/menu/update-menu.schema.js.map +1 -0
- package/dist/schemas/menu/update-menu.schema.mjs +9 -0
- package/dist/schemas/menu/update-menu.schema.mjs.map +1 -0
- package/dist/schemas/project/index.d.mts +3 -0
- package/dist/schemas/project/index.d.ts +3 -0
- package/dist/schemas/project/index.js +19 -0
- package/dist/schemas/project/index.js.map +1 -0
- package/dist/schemas/project/index.mjs +2 -0
- package/dist/schemas/project/index.mjs.map +1 -0
- package/dist/schemas/project/project-res.schema.d.mts +154 -0
- package/dist/schemas/project/project-res.schema.d.ts +154 -0
- package/dist/schemas/project/project-res.schema.js +42 -0
- package/dist/schemas/project/project-res.schema.js.map +1 -0
- package/dist/schemas/project/project-res.schema.mjs +22 -0
- package/dist/schemas/project/project-res.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.mts +15 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.ts +15 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js +29 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs +9 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.mts +12 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.ts +12 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js +28 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs +8 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/index.d.mts +4 -0
- package/dist/schemas/project-trust-account-allocation/index.d.ts +4 -0
- package/dist/schemas/project-trust-account-allocation/index.js +21 -0
- package/dist/schemas/project-trust-account-allocation/index.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/index.mjs +4 -0
- package/dist/schemas/project-trust-account-allocation/index.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.mts +46 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.ts +46 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js +39 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs +19 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/create-trust-account.schema.d.mts +28 -0
- package/dist/schemas/trust-account/create-trust-account.schema.d.ts +28 -0
- package/dist/schemas/trust-account/create-trust-account.schema.js +36 -0
- package/dist/schemas/trust-account/create-trust-account.schema.js.map +1 -0
- package/dist/schemas/trust-account/create-trust-account.schema.mjs +16 -0
- package/dist/schemas/trust-account/create-trust-account.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/index.d.mts +5 -0
- package/dist/schemas/trust-account/index.d.ts +5 -0
- package/dist/schemas/trust-account/index.js +21 -0
- package/dist/schemas/trust-account/index.js.map +1 -0
- package/dist/schemas/trust-account/index.mjs +4 -0
- package/dist/schemas/trust-account/index.mjs.map +1 -0
- package/dist/schemas/trust-account/trust-account-res.schema.d.mts +31 -0
- package/dist/schemas/trust-account/trust-account-res.schema.d.ts +31 -0
- package/dist/schemas/trust-account/trust-account-res.schema.js +46 -0
- package/dist/schemas/trust-account/trust-account-res.schema.js.map +1 -0
- package/dist/schemas/trust-account/trust-account-res.schema.mjs +26 -0
- package/dist/schemas/trust-account/trust-account-res.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/update-trust-account.schema.d.mts +15 -0
- package/dist/schemas/trust-account/update-trust-account.schema.d.ts +15 -0
- package/dist/schemas/trust-account/update-trust-account.schema.js +29 -0
- package/dist/schemas/trust-account/update-trust-account.schema.js.map +1 -0
- package/dist/schemas/trust-account/update-trust-account.schema.mjs +9 -0
- package/dist/schemas/trust-account/update-trust-account.schema.mjs.map +1 -0
- package/dist/utils/index.d.mts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/mask.d.mts +7 -0
- package/dist/utils/mask.d.ts +7 -0
- package/dist/utils/mask.js +41 -0
- package/dist/utils/mask.js.map +1 -0
- package/dist/utils/mask.mjs +21 -0
- package/dist/utils/mask.mjs.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const menuSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
type: z.ZodNativeEnum<{
|
|
13
|
+
readonly DIRECTORY: "directory";
|
|
14
|
+
readonly MENU: "menu";
|
|
15
|
+
readonly PERMISSION: "permission";
|
|
16
|
+
}>;
|
|
17
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
status: z.ZodNativeEnum<{
|
|
21
|
+
readonly ACTIVE: "active";
|
|
22
|
+
readonly DISABLED: "disabled";
|
|
23
|
+
}>;
|
|
24
|
+
createdAt: z.ZodDate;
|
|
25
|
+
updatedAt: z.ZodDate;
|
|
26
|
+
isArchived: z.ZodBoolean;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
type: "directory" | "menu" | "permission";
|
|
29
|
+
status: "active" | "disabled";
|
|
30
|
+
label: string;
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
isArchived: boolean;
|
|
35
|
+
sort?: number | null | undefined;
|
|
36
|
+
path?: string | null | undefined;
|
|
37
|
+
parentId?: string | null | undefined;
|
|
38
|
+
title?: string | null | undefined;
|
|
39
|
+
section?: string | null | undefined;
|
|
40
|
+
icon?: string | null | undefined;
|
|
41
|
+
show?: boolean | null | undefined;
|
|
42
|
+
permissionKey?: string | null | undefined;
|
|
43
|
+
absolutePath?: string | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
type: "directory" | "menu" | "permission";
|
|
46
|
+
status: "active" | "disabled";
|
|
47
|
+
label: string;
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
isArchived: boolean;
|
|
52
|
+
sort?: number | null | undefined;
|
|
53
|
+
path?: string | null | undefined;
|
|
54
|
+
parentId?: string | null | undefined;
|
|
55
|
+
title?: string | null | undefined;
|
|
56
|
+
section?: string | null | undefined;
|
|
57
|
+
icon?: string | null | undefined;
|
|
58
|
+
show?: boolean | null | undefined;
|
|
59
|
+
permissionKey?: string | null | undefined;
|
|
60
|
+
absolutePath?: string | null | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
declare const menuRestResSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
type: z.ZodNativeEnum<{
|
|
72
|
+
readonly DIRECTORY: "directory";
|
|
73
|
+
readonly MENU: "menu";
|
|
74
|
+
readonly PERMISSION: "permission";
|
|
75
|
+
}>;
|
|
76
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
78
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
status: z.ZodNativeEnum<{
|
|
80
|
+
readonly ACTIVE: "active";
|
|
81
|
+
readonly DISABLED: "disabled";
|
|
82
|
+
}>;
|
|
83
|
+
createdAt: z.ZodDate;
|
|
84
|
+
updatedAt: z.ZodDate;
|
|
85
|
+
isArchived: z.ZodBoolean;
|
|
86
|
+
} & {
|
|
87
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
label: z.ZodString;
|
|
91
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
type: z.ZodNativeEnum<{
|
|
97
|
+
readonly DIRECTORY: "directory";
|
|
98
|
+
readonly MENU: "menu";
|
|
99
|
+
readonly PERMISSION: "permission";
|
|
100
|
+
}>;
|
|
101
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
status: z.ZodNativeEnum<{
|
|
105
|
+
readonly ACTIVE: "active";
|
|
106
|
+
readonly DISABLED: "disabled";
|
|
107
|
+
}>;
|
|
108
|
+
createdAt: z.ZodDate;
|
|
109
|
+
updatedAt: z.ZodDate;
|
|
110
|
+
isArchived: z.ZodBoolean;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
type: "directory" | "menu" | "permission";
|
|
113
|
+
status: "active" | "disabled";
|
|
114
|
+
label: string;
|
|
115
|
+
id: string;
|
|
116
|
+
createdAt: Date;
|
|
117
|
+
updatedAt: Date;
|
|
118
|
+
isArchived: boolean;
|
|
119
|
+
sort?: number | null | undefined;
|
|
120
|
+
path?: string | null | undefined;
|
|
121
|
+
parentId?: string | null | undefined;
|
|
122
|
+
title?: string | null | undefined;
|
|
123
|
+
section?: string | null | undefined;
|
|
124
|
+
icon?: string | null | undefined;
|
|
125
|
+
show?: boolean | null | undefined;
|
|
126
|
+
permissionKey?: string | null | undefined;
|
|
127
|
+
absolutePath?: string | null | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
type: "directory" | "menu" | "permission";
|
|
130
|
+
status: "active" | "disabled";
|
|
131
|
+
label: string;
|
|
132
|
+
id: string;
|
|
133
|
+
createdAt: Date;
|
|
134
|
+
updatedAt: Date;
|
|
135
|
+
isArchived: boolean;
|
|
136
|
+
sort?: number | null | undefined;
|
|
137
|
+
path?: string | null | undefined;
|
|
138
|
+
parentId?: string | null | undefined;
|
|
139
|
+
title?: string | null | undefined;
|
|
140
|
+
section?: string | null | undefined;
|
|
141
|
+
icon?: string | null | undefined;
|
|
142
|
+
show?: boolean | null | undefined;
|
|
143
|
+
permissionKey?: string | null | undefined;
|
|
144
|
+
absolutePath?: string | null | undefined;
|
|
145
|
+
}>, "many">>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: "directory" | "menu" | "permission";
|
|
148
|
+
status: "active" | "disabled";
|
|
149
|
+
label: string;
|
|
150
|
+
id: string;
|
|
151
|
+
createdAt: Date;
|
|
152
|
+
updatedAt: Date;
|
|
153
|
+
isArchived: boolean;
|
|
154
|
+
sort?: number | null | undefined;
|
|
155
|
+
path?: string | null | undefined;
|
|
156
|
+
parentId?: string | null | undefined;
|
|
157
|
+
title?: string | null | undefined;
|
|
158
|
+
section?: string | null | undefined;
|
|
159
|
+
icon?: string | null | undefined;
|
|
160
|
+
show?: boolean | null | undefined;
|
|
161
|
+
permissionKey?: string | null | undefined;
|
|
162
|
+
absolutePath?: string | null | undefined;
|
|
163
|
+
children?: {
|
|
164
|
+
type: "directory" | "menu" | "permission";
|
|
165
|
+
status: "active" | "disabled";
|
|
166
|
+
label: string;
|
|
167
|
+
id: string;
|
|
168
|
+
createdAt: Date;
|
|
169
|
+
updatedAt: Date;
|
|
170
|
+
isArchived: boolean;
|
|
171
|
+
sort?: number | null | undefined;
|
|
172
|
+
path?: string | null | undefined;
|
|
173
|
+
parentId?: string | null | undefined;
|
|
174
|
+
title?: string | null | undefined;
|
|
175
|
+
section?: string | null | undefined;
|
|
176
|
+
icon?: string | null | undefined;
|
|
177
|
+
show?: boolean | null | undefined;
|
|
178
|
+
permissionKey?: string | null | undefined;
|
|
179
|
+
absolutePath?: string | null | undefined;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
type: "directory" | "menu" | "permission";
|
|
183
|
+
status: "active" | "disabled";
|
|
184
|
+
label: string;
|
|
185
|
+
id: string;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
isArchived: boolean;
|
|
189
|
+
sort?: number | null | undefined;
|
|
190
|
+
path?: string | null | undefined;
|
|
191
|
+
parentId?: string | null | undefined;
|
|
192
|
+
title?: string | null | undefined;
|
|
193
|
+
section?: string | null | undefined;
|
|
194
|
+
icon?: string | null | undefined;
|
|
195
|
+
show?: boolean | null | undefined;
|
|
196
|
+
permissionKey?: string | null | undefined;
|
|
197
|
+
absolutePath?: string | null | undefined;
|
|
198
|
+
children?: {
|
|
199
|
+
type: "directory" | "menu" | "permission";
|
|
200
|
+
status: "active" | "disabled";
|
|
201
|
+
label: string;
|
|
202
|
+
id: string;
|
|
203
|
+
createdAt: Date;
|
|
204
|
+
updatedAt: Date;
|
|
205
|
+
isArchived: boolean;
|
|
206
|
+
sort?: number | null | undefined;
|
|
207
|
+
path?: string | null | undefined;
|
|
208
|
+
parentId?: string | null | undefined;
|
|
209
|
+
title?: string | null | undefined;
|
|
210
|
+
section?: string | null | undefined;
|
|
211
|
+
icon?: string | null | undefined;
|
|
212
|
+
show?: boolean | null | undefined;
|
|
213
|
+
permissionKey?: string | null | undefined;
|
|
214
|
+
absolutePath?: string | null | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
type MenuRestRes = z.infer<typeof menuRestResSchema>;
|
|
218
|
+
|
|
219
|
+
export { type MenuRestRes, menuRestResSchema, menuSchema };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const menuSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
type: z.ZodNativeEnum<{
|
|
13
|
+
readonly DIRECTORY: "directory";
|
|
14
|
+
readonly MENU: "menu";
|
|
15
|
+
readonly PERMISSION: "permission";
|
|
16
|
+
}>;
|
|
17
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
status: z.ZodNativeEnum<{
|
|
21
|
+
readonly ACTIVE: "active";
|
|
22
|
+
readonly DISABLED: "disabled";
|
|
23
|
+
}>;
|
|
24
|
+
createdAt: z.ZodDate;
|
|
25
|
+
updatedAt: z.ZodDate;
|
|
26
|
+
isArchived: z.ZodBoolean;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
type: "directory" | "menu" | "permission";
|
|
29
|
+
status: "active" | "disabled";
|
|
30
|
+
label: string;
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
isArchived: boolean;
|
|
35
|
+
sort?: number | null | undefined;
|
|
36
|
+
path?: string | null | undefined;
|
|
37
|
+
parentId?: string | null | undefined;
|
|
38
|
+
title?: string | null | undefined;
|
|
39
|
+
section?: string | null | undefined;
|
|
40
|
+
icon?: string | null | undefined;
|
|
41
|
+
show?: boolean | null | undefined;
|
|
42
|
+
permissionKey?: string | null | undefined;
|
|
43
|
+
absolutePath?: string | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
type: "directory" | "menu" | "permission";
|
|
46
|
+
status: "active" | "disabled";
|
|
47
|
+
label: string;
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
isArchived: boolean;
|
|
52
|
+
sort?: number | null | undefined;
|
|
53
|
+
path?: string | null | undefined;
|
|
54
|
+
parentId?: string | null | undefined;
|
|
55
|
+
title?: string | null | undefined;
|
|
56
|
+
section?: string | null | undefined;
|
|
57
|
+
icon?: string | null | undefined;
|
|
58
|
+
show?: boolean | null | undefined;
|
|
59
|
+
permissionKey?: string | null | undefined;
|
|
60
|
+
absolutePath?: string | null | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
declare const menuRestResSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
type: z.ZodNativeEnum<{
|
|
72
|
+
readonly DIRECTORY: "directory";
|
|
73
|
+
readonly MENU: "menu";
|
|
74
|
+
readonly PERMISSION: "permission";
|
|
75
|
+
}>;
|
|
76
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
78
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
status: z.ZodNativeEnum<{
|
|
80
|
+
readonly ACTIVE: "active";
|
|
81
|
+
readonly DISABLED: "disabled";
|
|
82
|
+
}>;
|
|
83
|
+
createdAt: z.ZodDate;
|
|
84
|
+
updatedAt: z.ZodDate;
|
|
85
|
+
isArchived: z.ZodBoolean;
|
|
86
|
+
} & {
|
|
87
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
label: z.ZodString;
|
|
91
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
absolutePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
type: z.ZodNativeEnum<{
|
|
97
|
+
readonly DIRECTORY: "directory";
|
|
98
|
+
readonly MENU: "menu";
|
|
99
|
+
readonly PERMISSION: "permission";
|
|
100
|
+
}>;
|
|
101
|
+
permissionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
sort: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103
|
+
show: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
status: z.ZodNativeEnum<{
|
|
105
|
+
readonly ACTIVE: "active";
|
|
106
|
+
readonly DISABLED: "disabled";
|
|
107
|
+
}>;
|
|
108
|
+
createdAt: z.ZodDate;
|
|
109
|
+
updatedAt: z.ZodDate;
|
|
110
|
+
isArchived: z.ZodBoolean;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
type: "directory" | "menu" | "permission";
|
|
113
|
+
status: "active" | "disabled";
|
|
114
|
+
label: string;
|
|
115
|
+
id: string;
|
|
116
|
+
createdAt: Date;
|
|
117
|
+
updatedAt: Date;
|
|
118
|
+
isArchived: boolean;
|
|
119
|
+
sort?: number | null | undefined;
|
|
120
|
+
path?: string | null | undefined;
|
|
121
|
+
parentId?: string | null | undefined;
|
|
122
|
+
title?: string | null | undefined;
|
|
123
|
+
section?: string | null | undefined;
|
|
124
|
+
icon?: string | null | undefined;
|
|
125
|
+
show?: boolean | null | undefined;
|
|
126
|
+
permissionKey?: string | null | undefined;
|
|
127
|
+
absolutePath?: string | null | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
type: "directory" | "menu" | "permission";
|
|
130
|
+
status: "active" | "disabled";
|
|
131
|
+
label: string;
|
|
132
|
+
id: string;
|
|
133
|
+
createdAt: Date;
|
|
134
|
+
updatedAt: Date;
|
|
135
|
+
isArchived: boolean;
|
|
136
|
+
sort?: number | null | undefined;
|
|
137
|
+
path?: string | null | undefined;
|
|
138
|
+
parentId?: string | null | undefined;
|
|
139
|
+
title?: string | null | undefined;
|
|
140
|
+
section?: string | null | undefined;
|
|
141
|
+
icon?: string | null | undefined;
|
|
142
|
+
show?: boolean | null | undefined;
|
|
143
|
+
permissionKey?: string | null | undefined;
|
|
144
|
+
absolutePath?: string | null | undefined;
|
|
145
|
+
}>, "many">>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: "directory" | "menu" | "permission";
|
|
148
|
+
status: "active" | "disabled";
|
|
149
|
+
label: string;
|
|
150
|
+
id: string;
|
|
151
|
+
createdAt: Date;
|
|
152
|
+
updatedAt: Date;
|
|
153
|
+
isArchived: boolean;
|
|
154
|
+
sort?: number | null | undefined;
|
|
155
|
+
path?: string | null | undefined;
|
|
156
|
+
parentId?: string | null | undefined;
|
|
157
|
+
title?: string | null | undefined;
|
|
158
|
+
section?: string | null | undefined;
|
|
159
|
+
icon?: string | null | undefined;
|
|
160
|
+
show?: boolean | null | undefined;
|
|
161
|
+
permissionKey?: string | null | undefined;
|
|
162
|
+
absolutePath?: string | null | undefined;
|
|
163
|
+
children?: {
|
|
164
|
+
type: "directory" | "menu" | "permission";
|
|
165
|
+
status: "active" | "disabled";
|
|
166
|
+
label: string;
|
|
167
|
+
id: string;
|
|
168
|
+
createdAt: Date;
|
|
169
|
+
updatedAt: Date;
|
|
170
|
+
isArchived: boolean;
|
|
171
|
+
sort?: number | null | undefined;
|
|
172
|
+
path?: string | null | undefined;
|
|
173
|
+
parentId?: string | null | undefined;
|
|
174
|
+
title?: string | null | undefined;
|
|
175
|
+
section?: string | null | undefined;
|
|
176
|
+
icon?: string | null | undefined;
|
|
177
|
+
show?: boolean | null | undefined;
|
|
178
|
+
permissionKey?: string | null | undefined;
|
|
179
|
+
absolutePath?: string | null | undefined;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
type: "directory" | "menu" | "permission";
|
|
183
|
+
status: "active" | "disabled";
|
|
184
|
+
label: string;
|
|
185
|
+
id: string;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
isArchived: boolean;
|
|
189
|
+
sort?: number | null | undefined;
|
|
190
|
+
path?: string | null | undefined;
|
|
191
|
+
parentId?: string | null | undefined;
|
|
192
|
+
title?: string | null | undefined;
|
|
193
|
+
section?: string | null | undefined;
|
|
194
|
+
icon?: string | null | undefined;
|
|
195
|
+
show?: boolean | null | undefined;
|
|
196
|
+
permissionKey?: string | null | undefined;
|
|
197
|
+
absolutePath?: string | null | undefined;
|
|
198
|
+
children?: {
|
|
199
|
+
type: "directory" | "menu" | "permission";
|
|
200
|
+
status: "active" | "disabled";
|
|
201
|
+
label: string;
|
|
202
|
+
id: string;
|
|
203
|
+
createdAt: Date;
|
|
204
|
+
updatedAt: Date;
|
|
205
|
+
isArchived: boolean;
|
|
206
|
+
sort?: number | null | undefined;
|
|
207
|
+
path?: string | null | undefined;
|
|
208
|
+
parentId?: string | null | undefined;
|
|
209
|
+
title?: string | null | undefined;
|
|
210
|
+
section?: string | null | undefined;
|
|
211
|
+
icon?: string | null | undefined;
|
|
212
|
+
show?: boolean | null | undefined;
|
|
213
|
+
permissionKey?: string | null | undefined;
|
|
214
|
+
absolutePath?: string | null | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
type MenuRestRes = z.infer<typeof menuRestResSchema>;
|
|
218
|
+
|
|
219
|
+
export { type MenuRestRes, menuRestResSchema, menuSchema };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var menu_res_schema_exports = {};
|
|
20
|
+
__export(menu_res_schema_exports, {
|
|
21
|
+
menuRestResSchema: () => menuRestResSchema,
|
|
22
|
+
menuSchema: () => menuSchema
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(menu_res_schema_exports);
|
|
25
|
+
var import_zod = require("zod");
|
|
26
|
+
var import_menu_status = require("../../constants/menu/menu-status.constant");
|
|
27
|
+
var import_menu_type = require("../../constants/menu/menu-type.constant");
|
|
28
|
+
const menuSchema = import_zod.z.object({
|
|
29
|
+
id: import_zod.z.string(),
|
|
30
|
+
parentId: import_zod.z.string().nullish(),
|
|
31
|
+
label: import_zod.z.string(),
|
|
32
|
+
title: import_zod.z.string().nullish(),
|
|
33
|
+
section: import_zod.z.string().nullish(),
|
|
34
|
+
icon: import_zod.z.string().nullish(),
|
|
35
|
+
path: import_zod.z.string().nullish(),
|
|
36
|
+
absolutePath: import_zod.z.string().nullish(),
|
|
37
|
+
type: import_zod.z.nativeEnum(import_menu_type.MenuType),
|
|
38
|
+
permissionKey: import_zod.z.string().nullish(),
|
|
39
|
+
sort: import_zod.z.number().nullish(),
|
|
40
|
+
show: import_zod.z.boolean().nullish(),
|
|
41
|
+
status: import_zod.z.nativeEnum(import_menu_status.MenuStatus),
|
|
42
|
+
createdAt: import_zod.z.date(),
|
|
43
|
+
updatedAt: import_zod.z.date(),
|
|
44
|
+
isArchived: import_zod.z.boolean()
|
|
45
|
+
});
|
|
46
|
+
const menuRestResSchema = menuSchema.extend({
|
|
47
|
+
children: import_zod.z.array(menuSchema).optional()
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=menu-res.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/menu-res.schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport { MenuStatus } from '../../constants/menu/menu-status.constant';\nimport { MenuType } from '../../constants/menu/menu-type.constant';\n\nexport const menuSchema = z.object({\n id: z.string(),\n parentId: z.string().nullish(),\n label: z.string(),\n title: z.string().nullish(),\n section: z.string().nullish(),\n icon: z.string().nullish(),\n path: z.string().nullish(),\n absolutePath: z.string().nullish(),\n type: z.nativeEnum(MenuType),\n permissionKey: z.string().nullish(),\n sort: z.number().nullish(),\n show: z.boolean().nullish(),\n status: z.nativeEnum(MenuStatus),\n createdAt: z.date(),\n updatedAt: z.date(),\n isArchived: z.boolean(),\n});\n\nexport const menuRestResSchema = menuSchema.extend({\n children: z.array(menuSchema).optional(),\n});\n\nexport type MenuRestRes = z.infer<typeof menuRestResSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAClB,yBAA2B;AAC3B,uBAAyB;AAElB,MAAM,aAAa,aAAE,OAAO;AAAA,EACjC,IAAI,aAAE,OAAO;AAAA,EACb,UAAU,aAAE,OAAO,EAAE,QAAQ;AAAA,EAC7B,OAAO,aAAE,OAAO;AAAA,EAChB,OAAO,aAAE,OAAO,EAAE,QAAQ;AAAA,EAC1B,SAAS,aAAE,OAAO,EAAE,QAAQ;AAAA,EAC5B,MAAM,aAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,MAAM,aAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,cAAc,aAAE,OAAO,EAAE,QAAQ;AAAA,EACjC,MAAM,aAAE,WAAW,yBAAQ;AAAA,EAC3B,eAAe,aAAE,OAAO,EAAE,QAAQ;AAAA,EAClC,MAAM,aAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,MAAM,aAAE,QAAQ,EAAE,QAAQ;AAAA,EAC1B,QAAQ,aAAE,WAAW,6BAAU;AAAA,EAC/B,WAAW,aAAE,KAAK;AAAA,EAClB,WAAW,aAAE,KAAK;AAAA,EAClB,YAAY,aAAE,QAAQ;AACxB,CAAC;AAEM,MAAM,oBAAoB,WAAW,OAAO;AAAA,EACjD,UAAU,aAAE,MAAM,UAAU,EAAE,SAAS;AACzC,CAAC;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { MenuStatus } from "../../constants/menu/menu-status.constant";
|
|
3
|
+
import { MenuType } from "../../constants/menu/menu-type.constant";
|
|
4
|
+
const menuSchema = z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
parentId: z.string().nullish(),
|
|
7
|
+
label: z.string(),
|
|
8
|
+
title: z.string().nullish(),
|
|
9
|
+
section: z.string().nullish(),
|
|
10
|
+
icon: z.string().nullish(),
|
|
11
|
+
path: z.string().nullish(),
|
|
12
|
+
absolutePath: z.string().nullish(),
|
|
13
|
+
type: z.nativeEnum(MenuType),
|
|
14
|
+
permissionKey: z.string().nullish(),
|
|
15
|
+
sort: z.number().nullish(),
|
|
16
|
+
show: z.boolean().nullish(),
|
|
17
|
+
status: z.nativeEnum(MenuStatus),
|
|
18
|
+
createdAt: z.date(),
|
|
19
|
+
updatedAt: z.date(),
|
|
20
|
+
isArchived: z.boolean()
|
|
21
|
+
});
|
|
22
|
+
const menuRestResSchema = menuSchema.extend({
|
|
23
|
+
children: z.array(menuSchema).optional()
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
menuRestResSchema,
|
|
27
|
+
menuSchema
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=menu-res.schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/menu-res.schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport { MenuStatus } from '../../constants/menu/menu-status.constant';\nimport { MenuType } from '../../constants/menu/menu-type.constant';\n\nexport const menuSchema = z.object({\n id: z.string(),\n parentId: z.string().nullish(),\n label: z.string(),\n title: z.string().nullish(),\n section: z.string().nullish(),\n icon: z.string().nullish(),\n path: z.string().nullish(),\n absolutePath: z.string().nullish(),\n type: z.nativeEnum(MenuType),\n permissionKey: z.string().nullish(),\n sort: z.number().nullish(),\n show: z.boolean().nullish(),\n status: z.nativeEnum(MenuStatus),\n createdAt: z.date(),\n updatedAt: z.date(),\n isArchived: z.boolean(),\n});\n\nexport const menuRestResSchema = menuSchema.extend({\n children: z.array(menuSchema).optional(),\n});\n\nexport type MenuRestRes = z.infer<typeof menuRestResSchema>;\n"],"mappings":"AAAA,SAAS,SAAS;AAClB,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAElB,MAAM,aAAa,EAAE,OAAO;AAAA,EACjC,IAAI,EAAE,OAAO;AAAA,EACb,UAAU,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC7B,OAAO,EAAE,OAAO;AAAA,EAChB,OAAO,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC1B,SAAS,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC5B,MAAM,EAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,MAAM,EAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,cAAc,EAAE,OAAO,EAAE,QAAQ;AAAA,EACjC,MAAM,EAAE,WAAW,QAAQ;AAAA,EAC3B,eAAe,EAAE,OAAO,EAAE,QAAQ;AAAA,EAClC,MAAM,EAAE,OAAO,EAAE,QAAQ;AAAA,EACzB,MAAM,EAAE,QAAQ,EAAE,QAAQ;AAAA,EAC1B,QAAQ,EAAE,WAAW,UAAU;AAAA,EAC/B,WAAW,EAAE,KAAK;AAAA,EAClB,WAAW,EAAE,KAAK;AAAA,EAClB,YAAY,EAAE,QAAQ;AACxB,CAAC;AAEM,MAAM,oBAAoB,WAAW,OAAO;AAAA,EACjD,UAAU,EAAE,MAAM,UAAU,EAAE,SAAS;AACzC,CAAC;","names":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const updateMenuRestReqSchema: z.ZodObject<{
|
|
4
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
section: z.ZodOptional<z.ZodString>;
|
|
8
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
9
|
+
show: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
path: z.ZodOptional<z.ZodString>;
|
|
11
|
+
type: z.ZodNativeEnum<{
|
|
12
|
+
readonly DIRECTORY: "directory";
|
|
13
|
+
readonly MENU: "menu";
|
|
14
|
+
readonly PERMISSION: "permission";
|
|
15
|
+
}>;
|
|
16
|
+
permissionKey: z.ZodString;
|
|
17
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
|
19
|
+
readonly ACTIVE: "active";
|
|
20
|
+
readonly DISABLED: "disabled";
|
|
21
|
+
}>>;
|
|
22
|
+
} & {
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
sort: number;
|
|
26
|
+
type: "directory" | "menu" | "permission";
|
|
27
|
+
status: "active" | "disabled";
|
|
28
|
+
label: string;
|
|
29
|
+
show: boolean;
|
|
30
|
+
permissionKey: string;
|
|
31
|
+
id: string;
|
|
32
|
+
path?: string | undefined;
|
|
33
|
+
parentId?: string | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
section?: string | undefined;
|
|
36
|
+
icon?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
type: "directory" | "menu" | "permission";
|
|
39
|
+
label: string;
|
|
40
|
+
permissionKey: string;
|
|
41
|
+
id: string;
|
|
42
|
+
sort?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
status?: "active" | "disabled" | undefined;
|
|
45
|
+
parentId?: string | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
section?: string | undefined;
|
|
48
|
+
icon?: string | undefined;
|
|
49
|
+
show?: boolean | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
type UpdateMenuRestReq = z.infer<typeof updateMenuRestReqSchema>;
|
|
52
|
+
|
|
53
|
+
export { type UpdateMenuRestReq, updateMenuRestReqSchema };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const updateMenuRestReqSchema: z.ZodObject<{
|
|
4
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
section: z.ZodOptional<z.ZodString>;
|
|
8
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
9
|
+
show: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
path: z.ZodOptional<z.ZodString>;
|
|
11
|
+
type: z.ZodNativeEnum<{
|
|
12
|
+
readonly DIRECTORY: "directory";
|
|
13
|
+
readonly MENU: "menu";
|
|
14
|
+
readonly PERMISSION: "permission";
|
|
15
|
+
}>;
|
|
16
|
+
permissionKey: z.ZodString;
|
|
17
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
|
19
|
+
readonly ACTIVE: "active";
|
|
20
|
+
readonly DISABLED: "disabled";
|
|
21
|
+
}>>;
|
|
22
|
+
} & {
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
sort: number;
|
|
26
|
+
type: "directory" | "menu" | "permission";
|
|
27
|
+
status: "active" | "disabled";
|
|
28
|
+
label: string;
|
|
29
|
+
show: boolean;
|
|
30
|
+
permissionKey: string;
|
|
31
|
+
id: string;
|
|
32
|
+
path?: string | undefined;
|
|
33
|
+
parentId?: string | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
section?: string | undefined;
|
|
36
|
+
icon?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
type: "directory" | "menu" | "permission";
|
|
39
|
+
label: string;
|
|
40
|
+
permissionKey: string;
|
|
41
|
+
id: string;
|
|
42
|
+
sort?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
status?: "active" | "disabled" | undefined;
|
|
45
|
+
parentId?: string | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
section?: string | undefined;
|
|
48
|
+
icon?: string | undefined;
|
|
49
|
+
show?: boolean | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
type UpdateMenuRestReq = z.infer<typeof updateMenuRestReqSchema>;
|
|
52
|
+
|
|
53
|
+
export { type UpdateMenuRestReq, updateMenuRestReqSchema };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var update_menu_schema_exports = {};
|
|
20
|
+
__export(update_menu_schema_exports, {
|
|
21
|
+
updateMenuRestReqSchema: () => updateMenuRestReqSchema
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(update_menu_schema_exports);
|
|
24
|
+
var import_zod = require("zod");
|
|
25
|
+
var import_create_menu = require("./create-menu.schema");
|
|
26
|
+
const updateMenuRestReqSchema = import_create_menu.createMenuRestReqSchema.extend({
|
|
27
|
+
id: import_zod.z.string()
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=update-menu.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/update-menu.schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport { createMenuRestReqSchema } from './create-menu.schema';\n\nexport const updateMenuRestReqSchema = createMenuRestReqSchema.extend({\n id: z.string(),\n});\n\nexport type UpdateMenuRestReq = z.infer<typeof updateMenuRestReqSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAClB,yBAAwC;AAEjC,MAAM,0BAA0B,2CAAwB,OAAO;AAAA,EACpE,IAAI,aAAE,OAAO;AACf,CAAC;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createMenuRestReqSchema } from "./create-menu.schema";
|
|
3
|
+
const updateMenuRestReqSchema = createMenuRestReqSchema.extend({
|
|
4
|
+
id: z.string()
|
|
5
|
+
});
|
|
6
|
+
export {
|
|
7
|
+
updateMenuRestReqSchema
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=update-menu.schema.mjs.map
|