@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,24 @@
|
|
|
1
|
+
import { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation.entity.interface.js';
|
|
2
|
+
import { IdReq, Empty } from '../common/common.interface.js';
|
|
3
|
+
import { AllocateTrustAccountToProjectRestReq } from '../../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import '../../constants/project/project-trust-account-allocation-status.constant.js';
|
|
6
|
+
import 'zod';
|
|
7
|
+
|
|
8
|
+
type GetAllProjectTrustAccountAllocationsRes = {
|
|
9
|
+
data: ProjectTrustAccountAllocationEntity[];
|
|
10
|
+
};
|
|
11
|
+
type FindProjectTrustAccountAllocationByProjectIdRes = {
|
|
12
|
+
data?: ProjectTrustAccountAllocationEntity | null;
|
|
13
|
+
};
|
|
14
|
+
type AllocateTrustAccountToProjectReq = AllocateTrustAccountToProjectRestReq & {
|
|
15
|
+
userId: string;
|
|
16
|
+
};
|
|
17
|
+
interface ProjectTrustAccountAllocationGrpcService {
|
|
18
|
+
FindProjectTrustAccountAllocationByProjectId(args: IdReq): Observable<FindProjectTrustAccountAllocationByProjectIdRes>;
|
|
19
|
+
GetAllProjectTrustAccountAllocations(args: Empty): Observable<GetAllProjectTrustAccountAllocationsRes>;
|
|
20
|
+
AllocateTrustAccountToProject(payload: AllocateTrustAccountToProjectReq): Observable<ProjectTrustAccountAllocationEntity>;
|
|
21
|
+
ApproveProjectTrustAccountAllocation(payload: IdReq): Observable<ProjectTrustAccountAllocationEntity>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService };
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var project_trust_account_allocation_grpc_interface_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(project_trust_account_allocation_grpc_interface_exports);
|
|
17
|
+
//# sourceMappingURL=project-trust-account-allocation.grpc.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.ts"],"sourcesContent":["import { Empty, IdReq } from 'packages/interfaces/common/common.interface';\nimport { ProjectTrustAccountAllocationEntity } from 'packages/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface';\nimport { AllocateTrustAccountToProjectRestReq } from 'packages/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema';\nimport { Observable } from 'rxjs';\n\nexport type GetAllProjectTrustAccountAllocationsRes = {\n data: ProjectTrustAccountAllocationEntity[];\n};\n\nexport type FindProjectTrustAccountAllocationByProjectIdRes = {\n data?: ProjectTrustAccountAllocationEntity | null;\n};\n\nexport type AllocateTrustAccountToProjectReq = AllocateTrustAccountToProjectRestReq & {\n userId: string;\n};\n\nexport interface ProjectTrustAccountAllocationGrpcService {\n FindProjectTrustAccountAllocationByProjectId(args: IdReq): Observable<FindProjectTrustAccountAllocationByProjectIdRes>;\n GetAllProjectTrustAccountAllocations(args: Empty): Observable<GetAllProjectTrustAccountAllocationsRes>;\n AllocateTrustAccountToProject(payload: AllocateTrustAccountToProjectReq): Observable<ProjectTrustAccountAllocationEntity>;\n ApproveProjectTrustAccountAllocation(payload: IdReq): Observable<ProjectTrustAccountAllocationEntity>;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=project-trust-account-allocation.grpc.interface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TrustAccountEntity } from './trust-account.entity.interface.mjs';
|
|
2
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './trust-account.grpc.interface.mjs';
|
|
3
|
+
import '@mikemo-coposit/am-zshared';
|
|
4
|
+
import 'rxjs';
|
|
5
|
+
import '../../schemas/trust-account/create-trust-account.schema.mjs';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import '../../schemas/trust-account/update-trust-account.schema.mjs';
|
|
8
|
+
import '../common/common.interface.mjs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TrustAccountEntity } from './trust-account.entity.interface.js';
|
|
2
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './trust-account.grpc.interface.js';
|
|
3
|
+
import '@mikemo-coposit/am-zshared';
|
|
4
|
+
import 'rxjs';
|
|
5
|
+
import '../../schemas/trust-account/create-trust-account.schema.js';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import '../../schemas/trust-account/update-trust-account.schema.js';
|
|
8
|
+
import '../common/common.interface.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var trust_account_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(trust_account_exports);
|
|
18
|
+
__reExport(trust_account_exports, require("./trust-account.entity.interface"), module.exports);
|
|
19
|
+
__reExport(trust_account_exports, require("./trust-account.grpc.interface"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/trust-account/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './trust-account.entity.interface';\nexport * from './trust-account.grpc.interface';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,kCAAc,6CAFd;AAGA,kCAAc,2CAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/trust-account/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './trust-account.entity.interface';\nexport * from './trust-account.grpc.interface';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuStateCode, AuTrustAccountBankCode, TrustAccountStatus } from '@mikemo-coposit/am-zshared';
|
|
2
|
+
|
|
3
|
+
type TrustAccountEntity = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
country: string;
|
|
7
|
+
stateCode: AuStateCode;
|
|
8
|
+
bsb: string;
|
|
9
|
+
bankCode: AuTrustAccountBankCode;
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
status: TrustAccountStatus;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
isArchived: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type { TrustAccountEntity };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuStateCode, AuTrustAccountBankCode, TrustAccountStatus } from '@mikemo-coposit/am-zshared';
|
|
2
|
+
|
|
3
|
+
type TrustAccountEntity = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
country: string;
|
|
7
|
+
stateCode: AuStateCode;
|
|
8
|
+
bsb: string;
|
|
9
|
+
bankCode: AuTrustAccountBankCode;
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
status: TrustAccountStatus;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
isArchived: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type { TrustAccountEntity };
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var trust_account_entity_interface_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(trust_account_entity_interface_exports);
|
|
17
|
+
//# sourceMappingURL=trust-account.entity.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/trust-account/trust-account.entity.interface.ts"],"sourcesContent":["import { AuStateCode, AuTrustAccountBankCode, TrustAccountStatus } from '@mikemo-coposit/am-zshared';\n\nexport type TrustAccountEntity = {\n id: string;\n name: string;\n country: string;\n stateCode: AuStateCode;\n bsb: string;\n bankCode: AuTrustAccountBankCode;\n accountNumber: string;\n status: TrustAccountStatus;\n createdAt: string;\n createdBy: string;\n updatedAt: string;\n isArchived: boolean;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=trust-account.entity.interface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TrustAccountEntity } from './trust-account.entity.interface.mjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IdReq } from '@mikemo-coposit/am-zshared';
|
|
4
|
+
import { CreateTrustAccountRestReq } from '../../schemas/trust-account/create-trust-account.schema.mjs';
|
|
5
|
+
import { UpdateTrustAccountRestReq } from '../../schemas/trust-account/update-trust-account.schema.mjs';
|
|
6
|
+
import { Empty } from '../common/common.interface.mjs';
|
|
7
|
+
import 'zod';
|
|
8
|
+
|
|
9
|
+
type GetAllTrustAccountsRes = {
|
|
10
|
+
data: TrustAccountEntity[];
|
|
11
|
+
};
|
|
12
|
+
type FindTrustAccountByIdRes = {
|
|
13
|
+
data: TrustAccountEntity;
|
|
14
|
+
};
|
|
15
|
+
type CreateTrustAccountReq = CreateTrustAccountRestReq;
|
|
16
|
+
type UpdateTrustAccountReq = UpdateTrustAccountRestReq;
|
|
17
|
+
interface TrustAccountGrpcService {
|
|
18
|
+
GetAllTrustAccounts(payload: Empty): Observable<GetAllTrustAccountsRes>;
|
|
19
|
+
FindTrustAccountById(payload: IdReq): Observable<FindTrustAccountByIdRes>;
|
|
20
|
+
CreateTrustAccount(payload: CreateTrustAccountReq): Observable<TrustAccountEntity>;
|
|
21
|
+
UpdateTrustAccount(payload: UpdateTrustAccountReq): Observable<TrustAccountEntity>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TrustAccountEntity } from './trust-account.entity.interface.js';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IdReq } from '@mikemo-coposit/am-zshared';
|
|
4
|
+
import { CreateTrustAccountRestReq } from '../../schemas/trust-account/create-trust-account.schema.js';
|
|
5
|
+
import { UpdateTrustAccountRestReq } from '../../schemas/trust-account/update-trust-account.schema.js';
|
|
6
|
+
import { Empty } from '../common/common.interface.js';
|
|
7
|
+
import 'zod';
|
|
8
|
+
|
|
9
|
+
type GetAllTrustAccountsRes = {
|
|
10
|
+
data: TrustAccountEntity[];
|
|
11
|
+
};
|
|
12
|
+
type FindTrustAccountByIdRes = {
|
|
13
|
+
data: TrustAccountEntity;
|
|
14
|
+
};
|
|
15
|
+
type CreateTrustAccountReq = CreateTrustAccountRestReq;
|
|
16
|
+
type UpdateTrustAccountReq = UpdateTrustAccountRestReq;
|
|
17
|
+
interface TrustAccountGrpcService {
|
|
18
|
+
GetAllTrustAccounts(payload: Empty): Observable<GetAllTrustAccountsRes>;
|
|
19
|
+
FindTrustAccountById(payload: IdReq): Observable<FindTrustAccountByIdRes>;
|
|
20
|
+
CreateTrustAccount(payload: CreateTrustAccountReq): Observable<TrustAccountEntity>;
|
|
21
|
+
UpdateTrustAccount(payload: UpdateTrustAccountReq): Observable<TrustAccountEntity>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq };
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var trust_account_grpc_interface_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(trust_account_grpc_interface_exports);
|
|
17
|
+
//# sourceMappingURL=trust-account.grpc.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/trust-account/trust-account.grpc.interface.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\n\nimport { IdReq } from '@mikemo-coposit/am-zshared';\nimport { TrustAccountEntity } from 'packages/interfaces/trust-account/trust-account.entity.interface';\nimport { CreateTrustAccountRestReq, UpdateTrustAccountRestReq } from 'packages/schemas';\nimport { Empty } from '../common/common.interface';\n\nexport type GetAllTrustAccountsRes = {\n data: TrustAccountEntity[];\n};\n\nexport type FindTrustAccountByIdRes = {\n data: TrustAccountEntity;\n};\n\nexport type CreateTrustAccountReq = CreateTrustAccountRestReq;\nexport type UpdateTrustAccountReq = UpdateTrustAccountRestReq;\n\nexport interface TrustAccountGrpcService {\n GetAllTrustAccounts(payload: Empty): Observable<GetAllTrustAccountsRes>;\n FindTrustAccountById(payload: IdReq): Observable<FindTrustAccountByIdRes>;\n CreateTrustAccount(payload: CreateTrustAccountReq): Observable<TrustAccountEntity>;\n UpdateTrustAccount(payload: UpdateTrustAccountReq): Observable<TrustAccountEntity>;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=trust-account.grpc.interface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './menu/create-menu.schema.mjs';
|
|
2
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './menu/menu-res.schema.mjs';
|
|
3
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './menu/update-menu.schema.mjs';
|
|
4
|
+
export { ProjectRestRes, projectRestResSchema } from './project/project-res.schema.mjs';
|
|
5
|
+
export { AllocateTrustAccountToProjectRestReq, allocateTrustAccountToProjectRestReqSchema } from './project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs';
|
|
6
|
+
export { ApproveTrustAccountAllocationRestReq, approveTrustAccountAllocationRestReqSchema } from './project-trust-account-allocation/approve-trust-account-allocation.schema.mjs';
|
|
7
|
+
export { ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema } from './project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs';
|
|
8
|
+
export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './trust-account/create-trust-account.schema.mjs';
|
|
9
|
+
export { TrustAccountRestRes, trustAccountRestResSchema } from './trust-account/trust-account-res.schema.mjs';
|
|
10
|
+
export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './trust-account/update-trust-account.schema.mjs';
|
|
11
|
+
import 'zod';
|
|
12
|
+
import '@mikemo-coposit/am-zshared';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './menu/create-menu.schema.js';
|
|
2
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './menu/menu-res.schema.js';
|
|
3
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './menu/update-menu.schema.js';
|
|
4
|
+
export { ProjectRestRes, projectRestResSchema } from './project/project-res.schema.js';
|
|
5
|
+
export { AllocateTrustAccountToProjectRestReq, allocateTrustAccountToProjectRestReqSchema } from './project-trust-account-allocation/allocate-trust-account-to-project.schema.js';
|
|
6
|
+
export { ApproveTrustAccountAllocationRestReq, approveTrustAccountAllocationRestReqSchema } from './project-trust-account-allocation/approve-trust-account-allocation.schema.js';
|
|
7
|
+
export { ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema } from './project-trust-account-allocation/project-trust-account-allocation-res.schema.js';
|
|
8
|
+
export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './trust-account/create-trust-account.schema.js';
|
|
9
|
+
export { TrustAccountRestRes, trustAccountRestResSchema } from './trust-account/trust-account-res.schema.js';
|
|
10
|
+
export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './trust-account/update-trust-account.schema.js';
|
|
11
|
+
import 'zod';
|
|
12
|
+
import '@mikemo-coposit/am-zshared';
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var schemas_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
18
|
+
__reExport(schemas_exports, require("./menu"), module.exports);
|
|
19
|
+
__reExport(schemas_exports, require("./project"), module.exports);
|
|
20
|
+
__reExport(schemas_exports, require("./project-trust-account-allocation"), module.exports);
|
|
21
|
+
__reExport(schemas_exports, require("./trust-account"), module.exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/schemas/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './menu';\nexport * from './project';\nexport * from './project-trust-account-allocation';\nexport * from './trust-account';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,4BAAc,mBAFd;AAGA,4BAAc,sBAHd;AAIA,4BAAc,+CAJd;AAKA,4BAAc,4BALd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/schemas/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './menu';\nexport * from './project';\nexport * from './project-trust-account-allocation';\nexport * from './trust-account';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const createMenuRestReqSchema: 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
sort: number;
|
|
24
|
+
type: "directory" | "menu" | "permission";
|
|
25
|
+
status: "active" | "disabled";
|
|
26
|
+
label: string;
|
|
27
|
+
show: boolean;
|
|
28
|
+
permissionKey: string;
|
|
29
|
+
path?: string | undefined;
|
|
30
|
+
parentId?: string | undefined;
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
section?: string | undefined;
|
|
33
|
+
icon?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
type: "directory" | "menu" | "permission";
|
|
36
|
+
label: string;
|
|
37
|
+
permissionKey: string;
|
|
38
|
+
sort?: number | undefined;
|
|
39
|
+
path?: string | undefined;
|
|
40
|
+
status?: "active" | "disabled" | undefined;
|
|
41
|
+
parentId?: string | undefined;
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
section?: string | undefined;
|
|
44
|
+
icon?: string | undefined;
|
|
45
|
+
show?: boolean | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
type CreateMenuRestReq = z.infer<typeof createMenuRestReqSchema>;
|
|
48
|
+
|
|
49
|
+
export { type CreateMenuRestReq, createMenuRestReqSchema };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const createMenuRestReqSchema: 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
sort: number;
|
|
24
|
+
type: "directory" | "menu" | "permission";
|
|
25
|
+
status: "active" | "disabled";
|
|
26
|
+
label: string;
|
|
27
|
+
show: boolean;
|
|
28
|
+
permissionKey: string;
|
|
29
|
+
path?: string | undefined;
|
|
30
|
+
parentId?: string | undefined;
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
section?: string | undefined;
|
|
33
|
+
icon?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
type: "directory" | "menu" | "permission";
|
|
36
|
+
label: string;
|
|
37
|
+
permissionKey: string;
|
|
38
|
+
sort?: number | undefined;
|
|
39
|
+
path?: string | undefined;
|
|
40
|
+
status?: "active" | "disabled" | undefined;
|
|
41
|
+
parentId?: string | undefined;
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
section?: string | undefined;
|
|
44
|
+
icon?: string | undefined;
|
|
45
|
+
show?: boolean | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
type CreateMenuRestReq = z.infer<typeof createMenuRestReqSchema>;
|
|
48
|
+
|
|
49
|
+
export { type CreateMenuRestReq, createMenuRestReqSchema };
|
|
@@ -0,0 +1,40 @@
|
|
|
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 create_menu_schema_exports = {};
|
|
20
|
+
__export(create_menu_schema_exports, {
|
|
21
|
+
createMenuRestReqSchema: () => createMenuRestReqSchema
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(create_menu_schema_exports);
|
|
24
|
+
var import_zod = require("zod");
|
|
25
|
+
var import_menu_status = require("../../constants/menu/menu-status.constant");
|
|
26
|
+
var import_menu_type = require("../../constants/menu/menu-type.constant");
|
|
27
|
+
const createMenuRestReqSchema = import_zod.z.object({
|
|
28
|
+
parentId: import_zod.z.string().optional(),
|
|
29
|
+
label: import_zod.z.string(),
|
|
30
|
+
title: import_zod.z.string().optional(),
|
|
31
|
+
section: import_zod.z.string().optional(),
|
|
32
|
+
icon: import_zod.z.string().optional(),
|
|
33
|
+
show: import_zod.z.boolean().optional().default(true),
|
|
34
|
+
path: import_zod.z.string().optional(),
|
|
35
|
+
type: import_zod.z.nativeEnum(import_menu_type.MenuType),
|
|
36
|
+
permissionKey: import_zod.z.string().min(1, "Permission key is required"),
|
|
37
|
+
sort: import_zod.z.number().optional().default(99),
|
|
38
|
+
status: import_zod.z.nativeEnum(import_menu_status.MenuStatus).default(import_menu_status.MenuStatus.ACTIVE)
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=create-menu.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/create-menu.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 createMenuRestReqSchema = z.object({\n parentId: z.string().optional(),\n label: z.string(),\n title: z.string().optional(),\n section: z.string().optional(),\n icon: z.string().optional(),\n show: z.boolean().optional().default(true),\n path: z.string().optional(),\n type: z.nativeEnum(MenuType),\n permissionKey: z.string().min(1, 'Permission key is required'),\n sort: z.number().optional().default(99),\n status: z.nativeEnum(MenuStatus).default(MenuStatus.ACTIVE),\n});\n\nexport type CreateMenuRestReq = z.infer<typeof createMenuRestReqSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAClB,yBAA2B;AAC3B,uBAAyB;AAElB,MAAM,0BAA0B,aAAE,OAAO;AAAA,EAC9C,UAAU,aAAE,OAAO,EAAE,SAAS;AAAA,EAC9B,OAAO,aAAE,OAAO;AAAA,EAChB,OAAO,aAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,SAAS,aAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,MAAM,aAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,IAAI;AAAA,EACzC,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,MAAM,aAAE,WAAW,yBAAQ;AAAA,EAC3B,eAAe,aAAE,OAAO,EAAE,IAAI,GAAG,4BAA4B;AAAA,EAC7D,MAAM,aAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAAA,EACtC,QAAQ,aAAE,WAAW,6BAAU,EAAE,QAAQ,8BAAW,MAAM;AAC5D,CAAC;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 createMenuRestReqSchema = z.object({
|
|
5
|
+
parentId: z.string().optional(),
|
|
6
|
+
label: z.string(),
|
|
7
|
+
title: z.string().optional(),
|
|
8
|
+
section: z.string().optional(),
|
|
9
|
+
icon: z.string().optional(),
|
|
10
|
+
show: z.boolean().optional().default(true),
|
|
11
|
+
path: z.string().optional(),
|
|
12
|
+
type: z.nativeEnum(MenuType),
|
|
13
|
+
permissionKey: z.string().min(1, "Permission key is required"),
|
|
14
|
+
sort: z.number().optional().default(99),
|
|
15
|
+
status: z.nativeEnum(MenuStatus).default(MenuStatus.ACTIVE)
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
createMenuRestReqSchema
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=create-menu.schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/create-menu.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 createMenuRestReqSchema = z.object({\n parentId: z.string().optional(),\n label: z.string(),\n title: z.string().optional(),\n section: z.string().optional(),\n icon: z.string().optional(),\n show: z.boolean().optional().default(true),\n path: z.string().optional(),\n type: z.nativeEnum(MenuType),\n permissionKey: z.string().min(1, 'Permission key is required'),\n sort: z.number().optional().default(99),\n status: z.nativeEnum(MenuStatus).default(MenuStatus.ACTIVE),\n});\n\nexport type CreateMenuRestReq = z.infer<typeof createMenuRestReqSchema>;\n"],"mappings":"AAAA,SAAS,SAAS;AAClB,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAElB,MAAM,0BAA0B,EAAE,OAAO;AAAA,EAC9C,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,EAC9B,OAAO,EAAE,OAAO;AAAA,EAChB,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,IAAI;AAAA,EACzC,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,MAAM,EAAE,WAAW,QAAQ;AAAA,EAC3B,eAAe,EAAE,OAAO,EAAE,IAAI,GAAG,4BAA4B;AAAA,EAC7D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAAA,EACtC,QAAQ,EAAE,WAAW,UAAU,EAAE,QAAQ,WAAW,MAAM;AAC5D,CAAC;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './create-menu.schema.mjs';
|
|
2
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './menu-res.schema.mjs';
|
|
3
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './update-menu.schema.mjs';
|
|
4
|
+
import 'zod';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './create-menu.schema.js';
|
|
2
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './menu-res.schema.js';
|
|
3
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './update-menu.schema.js';
|
|
4
|
+
import 'zod';
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var menu_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(menu_exports);
|
|
18
|
+
__reExport(menu_exports, require("./create-menu.schema"), module.exports);
|
|
19
|
+
__reExport(menu_exports, require("./menu-res.schema"), module.exports);
|
|
20
|
+
__reExport(menu_exports, require("./update-menu.schema"), module.exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './create-menu.schema';\nexport * from './menu-res.schema';\nexport * from './update-menu.schema';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,yBAAc,iCAFd;AAGA,yBAAc,8BAHd;AAIA,yBAAc,iCAJd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/schemas/menu/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './create-menu.schema';\nexport * from './menu-res.schema';\nexport * from './update-menu.schema';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|