@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,102 @@
|
|
|
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 proto_util_exports = {};
|
|
20
|
+
__export(proto_util_exports, {
|
|
21
|
+
findProtosFolder: () => findProtosFolder,
|
|
22
|
+
getGrpcProtoOptions: () => getGrpcProtoOptions,
|
|
23
|
+
protoPath: () => protoPath,
|
|
24
|
+
searchProtoFiles: () => searchProtoFiles
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(proto_util_exports);
|
|
27
|
+
var import_node_fs = require("node:fs");
|
|
28
|
+
var import_node_path = require("node:path");
|
|
29
|
+
const findProtosFolder = (startPath, upperDepth = 0) => {
|
|
30
|
+
if (!(0, import_node_fs.existsSync)(startPath)) {
|
|
31
|
+
console.debug(`Path ${startPath} does not exist`);
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
const files = (0, import_node_fs.readdirSync)(startPath);
|
|
35
|
+
for (const file of files) {
|
|
36
|
+
if (file === "dist" || file === "node_modules") {
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const filePath = (0, import_node_path.join)(startPath, file);
|
|
40
|
+
const stat = (0, import_node_fs.lstatSync)(filePath);
|
|
41
|
+
if (stat.isDirectory()) {
|
|
42
|
+
if (file === "protos") {
|
|
43
|
+
return filePath;
|
|
44
|
+
}
|
|
45
|
+
const result = findProtosFolder(filePath);
|
|
46
|
+
if (result) {
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const upperPath = (0, import_node_path.join)(startPath, "..");
|
|
52
|
+
if (upperDepth > 0) {
|
|
53
|
+
return findProtosFolder(upperPath, upperDepth - 1);
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
};
|
|
57
|
+
const searchProtoFiles = (startPath) => {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
const filter = ".proto";
|
|
60
|
+
const result = [];
|
|
61
|
+
if (!(0, import_node_fs.existsSync)(startPath)) {
|
|
62
|
+
console.debug(`file path ${startPath} not exist`);
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
const files = (0, import_node_fs.readdirSync)(startPath);
|
|
66
|
+
for (let i = 0; i < files.length; i++) {
|
|
67
|
+
const filename = (0, import_node_path.join)(startPath, files[i]);
|
|
68
|
+
const stat = (0, import_node_fs.lstatSync)(filename);
|
|
69
|
+
if (stat.isDirectory()) {
|
|
70
|
+
const res = searchProtoFiles(filename);
|
|
71
|
+
result.push(...res);
|
|
72
|
+
} else if (filename.endsWith(filter)) {
|
|
73
|
+
const data = (0, import_node_fs.readFileSync)(filename, "utf8");
|
|
74
|
+
const p = (_a = data.match(/package\s+(.+);/)) == null ? void 0 : _a[1];
|
|
75
|
+
const s = (_b = data.match(/service\s+(\w+)/)) == null ? void 0 : _b[1];
|
|
76
|
+
if (!p) {
|
|
77
|
+
throw new Error(`Cannot find package in ${filename}`);
|
|
78
|
+
}
|
|
79
|
+
result.push({ filename, dirname: (0, import_node_path.dirname)(filename), package: p, service: s });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
};
|
|
84
|
+
const getGrpcProtoOptions = (paths) => {
|
|
85
|
+
const protosUniqMap = /* @__PURE__ */ new Map();
|
|
86
|
+
paths.forEach((path) => {
|
|
87
|
+
const protoFiles = searchProtoFiles(path.path);
|
|
88
|
+
if ((protoFiles == null ? void 0 : protoFiles.length) === 0 && path.required) {
|
|
89
|
+
throw new Error(`Proto files not found in ${path.path}`);
|
|
90
|
+
}
|
|
91
|
+
protoFiles == null ? void 0 : protoFiles.forEach((p) => {
|
|
92
|
+
protosUniqMap.set(p.package, p);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
const protos = Array.from(protosUniqMap.values());
|
|
96
|
+
const packages = protos.map((p) => p.package);
|
|
97
|
+
const protoPaths = Array.from(new Set(protos.map((p) => p.filename)));
|
|
98
|
+
const protoDirs = Array.from(new Set(protos.map((p) => p.dirname)));
|
|
99
|
+
return { packages, protoPaths, protoDirs };
|
|
100
|
+
};
|
|
101
|
+
const protoPath = findProtosFolder(__dirname, 2) || (0, import_node_path.join)(__dirname, "..", "protos");
|
|
102
|
+
//# sourceMappingURL=proto.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/proto.util.ts"],"sourcesContent":["/* eslint-disable no-console */\n/* eslint-disable regexp/no-super-linear-backtracking */\nimport { existsSync, lstatSync, readdirSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\n\nexport const findProtosFolder = (startPath: string, upperDepth = 0): string | null => {\n if (!existsSync(startPath)) {\n console.debug(`Path ${startPath} does not exist`);\n\n return null;\n }\n const files = readdirSync(startPath);\n\n for (const file of files) {\n if (file === 'dist' || file === 'node_modules') {\n continue;\n } // Skip the dist folder\n\n const filePath = join(startPath, file);\n const stat = lstatSync(filePath);\n\n if (stat.isDirectory()) {\n if (file === 'protos') {\n return filePath;\n }\n const result = findProtosFolder(filePath); // recurse\n if (result) {\n return result;\n }\n }\n }\n\n const upperPath = join(startPath, '..');\n if (upperDepth > 0) {\n return findProtosFolder(upperPath, upperDepth - 1);\n }\n\n return null;\n};\n\nexport const searchProtoFiles = (startPath: string) => {\n const filter = '.proto';\n const result: { filename: string; dirname: string; package: string; service?: string }[] = [];\n if (!existsSync(startPath)) {\n console.debug(`file path ${startPath} not exist`);\n\n return [];\n }\n\n const files = readdirSync(startPath);\n\n for (let i = 0; i < files.length; i++) {\n const filename = join(startPath, files[i]);\n const stat = lstatSync(filename);\n if (stat.isDirectory()) {\n const res = searchProtoFiles(filename); // recurse\n result.push(...res);\n }\n else if (filename.endsWith(filter)) {\n const data = readFileSync(filename, 'utf8');\n const p = data.match(/package\\s+(.+);/)?.[1];\n const s = data.match(/service\\s+(\\w+)/)?.[1];\n if (!p) {\n throw new Error(`Cannot find package in ${filename}`);\n }\n result.push({ filename, dirname: dirname(filename), package: p, service: s });\n }\n }\n\n return result;\n};\n\nexport const getGrpcProtoOptions = (\n paths: {\n path: string;\n required?: boolean;\n }[],\n) => {\n const protosUniqMap = new Map();\n\n paths.forEach((path) => {\n const protoFiles = searchProtoFiles(path.path);\n\n if (protoFiles?.length === 0 && path.required) {\n throw new Error(`Proto files not found in ${path.path}`);\n }\n\n protoFiles?.forEach((p) => {\n protosUniqMap.set(p.package, p);\n });\n });\n\n const protos = Array.from(protosUniqMap.values());\n const packages = protos.map(p => p.package);\n const protoPaths = Array.from(new Set(protos.map(p => p.filename)));\n const protoDirs = Array.from(new Set(protos.map(p => p.dirname)));\n\n return { packages, protoPaths, protoDirs };\n};\n\nexport const protoPath = findProtosFolder(__dirname, 2) || join(__dirname, '..', 'protos');\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,qBAAiE;AACjE,uBAA8B;AAEvB,MAAM,mBAAmB,CAAC,WAAmB,aAAa,MAAqB;AACpF,MAAI,KAAC,2BAAW,SAAS,GAAG;AAC1B,YAAQ,MAAM,QAAQ,SAAS,iBAAiB;AAEhD,WAAO;AAAA,EACT;AACA,QAAM,YAAQ,4BAAY,SAAS;AAEnC,aAAW,QAAQ,OAAO;AACxB,QAAI,SAAS,UAAU,SAAS,gBAAgB;AAC9C;AAAA,IACF;AAEA,UAAM,eAAW,uBAAK,WAAW,IAAI;AACrC,UAAM,WAAO,0BAAU,QAAQ;AAE/B,QAAI,KAAK,YAAY,GAAG;AACtB,UAAI,SAAS,UAAU;AACrB,eAAO;AAAA,MACT;AACA,YAAM,SAAS,iBAAiB,QAAQ;AACxC,UAAI,QAAQ;AACV,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,QAAM,gBAAY,uBAAK,WAAW,IAAI;AACtC,MAAI,aAAa,GAAG;AAClB,WAAO,iBAAiB,WAAW,aAAa,CAAC;AAAA,EACnD;AAEA,SAAO;AACT;AAEO,MAAM,mBAAmB,CAAC,cAAsB;AAxCvD;AAyCE,QAAM,SAAS;AACf,QAAM,SAAqF,CAAC;AAC5F,MAAI,KAAC,2BAAW,SAAS,GAAG;AAC1B,YAAQ,MAAM,aAAa,SAAS,YAAY;AAEhD,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,YAAQ,4BAAY,SAAS;AAEnC,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAM,eAAW,uBAAK,WAAW,MAAM,CAAC,CAAC;AACzC,UAAM,WAAO,0BAAU,QAAQ;AAC/B,QAAI,KAAK,YAAY,GAAG;AACtB,YAAM,MAAM,iBAAiB,QAAQ;AACrC,aAAO,KAAK,GAAG,GAAG;AAAA,IACpB,WACS,SAAS,SAAS,MAAM,GAAG;AAClC,YAAM,WAAO,6BAAa,UAAU,MAAM;AAC1C,YAAM,KAAI,UAAK,MAAM,iBAAiB,MAA5B,mBAAgC;AAC1C,YAAM,KAAI,UAAK,MAAM,iBAAiB,MAA5B,mBAAgC;AAC1C,UAAI,CAAC,GAAG;AACN,cAAM,IAAI,MAAM,0BAA0B,QAAQ,EAAE;AAAA,MACtD;AACA,aAAO,KAAK,EAAE,UAAU,aAAS,0BAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;AAAA,IAC9E;AAAA,EACF;AAEA,SAAO;AACT;AAEO,MAAM,sBAAsB,CACjC,UAIG;AACH,QAAM,gBAAgB,oBAAI,IAAI;AAE9B,QAAM,QAAQ,CAAC,SAAS;AACtB,UAAM,aAAa,iBAAiB,KAAK,IAAI;AAE7C,SAAI,yCAAY,YAAW,KAAK,KAAK,UAAU;AAC7C,YAAM,IAAI,MAAM,4BAA4B,KAAK,IAAI,EAAE;AAAA,IACzD;AAEA,6CAAY,QAAQ,CAAC,MAAM;AACzB,oBAAc,IAAI,EAAE,SAAS,CAAC;AAAA,IAChC;AAAA,EACF,CAAC;AAED,QAAM,SAAS,MAAM,KAAK,cAAc,OAAO,CAAC;AAChD,QAAM,WAAW,OAAO,IAAI,OAAK,EAAE,OAAO;AAC1C,QAAM,aAAa,MAAM,KAAK,IAAI,IAAI,OAAO,IAAI,OAAK,EAAE,QAAQ,CAAC,CAAC;AAClE,QAAM,YAAY,MAAM,KAAK,IAAI,IAAI,OAAO,IAAI,OAAK,EAAE,OAAO,CAAC,CAAC;AAEhE,SAAO,EAAE,UAAU,YAAY,UAAU;AAC3C;AAEO,MAAM,YAAY,iBAAiB,WAAW,CAAC,SAAK,uBAAK,WAAW,MAAM,QAAQ;","names":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { existsSync, lstatSync, readdirSync, readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
const findProtosFolder = (startPath, upperDepth = 0) => {
|
|
4
|
+
if (!existsSync(startPath)) {
|
|
5
|
+
console.debug(`Path ${startPath} does not exist`);
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const files = readdirSync(startPath);
|
|
9
|
+
for (const file of files) {
|
|
10
|
+
if (file === "dist" || file === "node_modules") {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
const filePath = join(startPath, file);
|
|
14
|
+
const stat = lstatSync(filePath);
|
|
15
|
+
if (stat.isDirectory()) {
|
|
16
|
+
if (file === "protos") {
|
|
17
|
+
return filePath;
|
|
18
|
+
}
|
|
19
|
+
const result = findProtosFolder(filePath);
|
|
20
|
+
if (result) {
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const upperPath = join(startPath, "..");
|
|
26
|
+
if (upperDepth > 0) {
|
|
27
|
+
return findProtosFolder(upperPath, upperDepth - 1);
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
const searchProtoFiles = (startPath) => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const filter = ".proto";
|
|
34
|
+
const result = [];
|
|
35
|
+
if (!existsSync(startPath)) {
|
|
36
|
+
console.debug(`file path ${startPath} not exist`);
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
const files = readdirSync(startPath);
|
|
40
|
+
for (let i = 0; i < files.length; i++) {
|
|
41
|
+
const filename = join(startPath, files[i]);
|
|
42
|
+
const stat = lstatSync(filename);
|
|
43
|
+
if (stat.isDirectory()) {
|
|
44
|
+
const res = searchProtoFiles(filename);
|
|
45
|
+
result.push(...res);
|
|
46
|
+
} else if (filename.endsWith(filter)) {
|
|
47
|
+
const data = readFileSync(filename, "utf8");
|
|
48
|
+
const p = (_a = data.match(/package\s+(.+);/)) == null ? void 0 : _a[1];
|
|
49
|
+
const s = (_b = data.match(/service\s+(\w+)/)) == null ? void 0 : _b[1];
|
|
50
|
+
if (!p) {
|
|
51
|
+
throw new Error(`Cannot find package in ${filename}`);
|
|
52
|
+
}
|
|
53
|
+
result.push({ filename, dirname: dirname(filename), package: p, service: s });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
};
|
|
58
|
+
const getGrpcProtoOptions = (paths) => {
|
|
59
|
+
const protosUniqMap = /* @__PURE__ */ new Map();
|
|
60
|
+
paths.forEach((path) => {
|
|
61
|
+
const protoFiles = searchProtoFiles(path.path);
|
|
62
|
+
if ((protoFiles == null ? void 0 : protoFiles.length) === 0 && path.required) {
|
|
63
|
+
throw new Error(`Proto files not found in ${path.path}`);
|
|
64
|
+
}
|
|
65
|
+
protoFiles == null ? void 0 : protoFiles.forEach((p) => {
|
|
66
|
+
protosUniqMap.set(p.package, p);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
const protos = Array.from(protosUniqMap.values());
|
|
70
|
+
const packages = protos.map((p) => p.package);
|
|
71
|
+
const protoPaths = Array.from(new Set(protos.map((p) => p.filename)));
|
|
72
|
+
const protoDirs = Array.from(new Set(protos.map((p) => p.dirname)));
|
|
73
|
+
return { packages, protoPaths, protoDirs };
|
|
74
|
+
};
|
|
75
|
+
const protoPath = findProtosFolder(__dirname, 2) || join(__dirname, "..", "protos");
|
|
76
|
+
export {
|
|
77
|
+
findProtosFolder,
|
|
78
|
+
getGrpcProtoOptions,
|
|
79
|
+
protoPath,
|
|
80
|
+
searchProtoFiles
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=proto.util.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/proto.util.ts"],"sourcesContent":["/* eslint-disable no-console */\n/* eslint-disable regexp/no-super-linear-backtracking */\nimport { existsSync, lstatSync, readdirSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\n\nexport const findProtosFolder = (startPath: string, upperDepth = 0): string | null => {\n if (!existsSync(startPath)) {\n console.debug(`Path ${startPath} does not exist`);\n\n return null;\n }\n const files = readdirSync(startPath);\n\n for (const file of files) {\n if (file === 'dist' || file === 'node_modules') {\n continue;\n } // Skip the dist folder\n\n const filePath = join(startPath, file);\n const stat = lstatSync(filePath);\n\n if (stat.isDirectory()) {\n if (file === 'protos') {\n return filePath;\n }\n const result = findProtosFolder(filePath); // recurse\n if (result) {\n return result;\n }\n }\n }\n\n const upperPath = join(startPath, '..');\n if (upperDepth > 0) {\n return findProtosFolder(upperPath, upperDepth - 1);\n }\n\n return null;\n};\n\nexport const searchProtoFiles = (startPath: string) => {\n const filter = '.proto';\n const result: { filename: string; dirname: string; package: string; service?: string }[] = [];\n if (!existsSync(startPath)) {\n console.debug(`file path ${startPath} not exist`);\n\n return [];\n }\n\n const files = readdirSync(startPath);\n\n for (let i = 0; i < files.length; i++) {\n const filename = join(startPath, files[i]);\n const stat = lstatSync(filename);\n if (stat.isDirectory()) {\n const res = searchProtoFiles(filename); // recurse\n result.push(...res);\n }\n else if (filename.endsWith(filter)) {\n const data = readFileSync(filename, 'utf8');\n const p = data.match(/package\\s+(.+);/)?.[1];\n const s = data.match(/service\\s+(\\w+)/)?.[1];\n if (!p) {\n throw new Error(`Cannot find package in ${filename}`);\n }\n result.push({ filename, dirname: dirname(filename), package: p, service: s });\n }\n }\n\n return result;\n};\n\nexport const getGrpcProtoOptions = (\n paths: {\n path: string;\n required?: boolean;\n }[],\n) => {\n const protosUniqMap = new Map();\n\n paths.forEach((path) => {\n const protoFiles = searchProtoFiles(path.path);\n\n if (protoFiles?.length === 0 && path.required) {\n throw new Error(`Proto files not found in ${path.path}`);\n }\n\n protoFiles?.forEach((p) => {\n protosUniqMap.set(p.package, p);\n });\n });\n\n const protos = Array.from(protosUniqMap.values());\n const packages = protos.map(p => p.package);\n const protoPaths = Array.from(new Set(protos.map(p => p.filename)));\n const protoDirs = Array.from(new Set(protos.map(p => p.dirname)));\n\n return { packages, protoPaths, protoDirs };\n};\n\nexport const protoPath = findProtosFolder(__dirname, 2) || join(__dirname, '..', 'protos');\n"],"mappings":"AAEA,SAAS,YAAY,WAAW,aAAa,oBAAoB;AACjE,SAAS,SAAS,YAAY;AAEvB,MAAM,mBAAmB,CAAC,WAAmB,aAAa,MAAqB;AACpF,MAAI,CAAC,WAAW,SAAS,GAAG;AAC1B,YAAQ,MAAM,QAAQ,SAAS,iBAAiB;AAEhD,WAAO;AAAA,EACT;AACA,QAAM,QAAQ,YAAY,SAAS;AAEnC,aAAW,QAAQ,OAAO;AACxB,QAAI,SAAS,UAAU,SAAS,gBAAgB;AAC9C;AAAA,IACF;AAEA,UAAM,WAAW,KAAK,WAAW,IAAI;AACrC,UAAM,OAAO,UAAU,QAAQ;AAE/B,QAAI,KAAK,YAAY,GAAG;AACtB,UAAI,SAAS,UAAU;AACrB,eAAO;AAAA,MACT;AACA,YAAM,SAAS,iBAAiB,QAAQ;AACxC,UAAI,QAAQ;AACV,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,QAAM,YAAY,KAAK,WAAW,IAAI;AACtC,MAAI,aAAa,GAAG;AAClB,WAAO,iBAAiB,WAAW,aAAa,CAAC;AAAA,EACnD;AAEA,SAAO;AACT;AAEO,MAAM,mBAAmB,CAAC,cAAsB;AAxCvD;AAyCE,QAAM,SAAS;AACf,QAAM,SAAqF,CAAC;AAC5F,MAAI,CAAC,WAAW,SAAS,GAAG;AAC1B,YAAQ,MAAM,aAAa,SAAS,YAAY;AAEhD,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,QAAQ,YAAY,SAAS;AAEnC,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAM,WAAW,KAAK,WAAW,MAAM,CAAC,CAAC;AACzC,UAAM,OAAO,UAAU,QAAQ;AAC/B,QAAI,KAAK,YAAY,GAAG;AACtB,YAAM,MAAM,iBAAiB,QAAQ;AACrC,aAAO,KAAK,GAAG,GAAG;AAAA,IACpB,WACS,SAAS,SAAS,MAAM,GAAG;AAClC,YAAM,OAAO,aAAa,UAAU,MAAM;AAC1C,YAAM,KAAI,UAAK,MAAM,iBAAiB,MAA5B,mBAAgC;AAC1C,YAAM,KAAI,UAAK,MAAM,iBAAiB,MAA5B,mBAAgC;AAC1C,UAAI,CAAC,GAAG;AACN,cAAM,IAAI,MAAM,0BAA0B,QAAQ,EAAE;AAAA,MACtD;AACA,aAAO,KAAK,EAAE,UAAU,SAAS,QAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;AAAA,IAC9E;AAAA,EACF;AAEA,SAAO;AACT;AAEO,MAAM,sBAAsB,CACjC,UAIG;AACH,QAAM,gBAAgB,oBAAI,IAAI;AAE9B,QAAM,QAAQ,CAAC,SAAS;AACtB,UAAM,aAAa,iBAAiB,KAAK,IAAI;AAE7C,SAAI,yCAAY,YAAW,KAAK,KAAK,UAAU;AAC7C,YAAM,IAAI,MAAM,4BAA4B,KAAK,IAAI,EAAE;AAAA,IACzD;AAEA,6CAAY,QAAQ,CAAC,MAAM;AACzB,oBAAc,IAAI,EAAE,SAAS,CAAC;AAAA,IAChC;AAAA,EACF,CAAC;AAED,QAAM,SAAS,MAAM,KAAK,cAAc,OAAO,CAAC;AAChD,QAAM,WAAW,OAAO,IAAI,OAAK,EAAE,OAAO;AAC1C,QAAM,aAAa,MAAM,KAAK,IAAI,IAAI,OAAO,IAAI,OAAK,EAAE,QAAQ,CAAC,CAAC;AAClE,QAAM,YAAY,MAAM,KAAK,IAAI,IAAI,OAAO,IAAI,OAAK,EAAE,OAAO,CAAC,CAAC;AAEhE,SAAO,EAAE,UAAU,YAAY,UAAU;AAC3C;AAEO,MAAM,YAAY,iBAAiB,WAAW,CAAC,KAAK,KAAK,WAAW,MAAM,QAAQ;","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { MenuStatus } from './constants/menu/menu-status.constant.mjs';
|
|
2
|
+
export { MenuType } from './constants/menu/menu-type.constant.mjs';
|
|
3
|
+
export { ProjectRestResStatus } from './constants/project/project-res-status.constant.mjs';
|
|
4
|
+
export { ProjectTrustAccountAllocationStatus } from './constants/project/project-trust-account-allocation-status.constant.mjs';
|
|
5
|
+
export { TrustAccountStatus } from './constants/trust-account/trust-account-status.constant.mjs';
|
|
6
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './grpc/constants/accountms.constant.mjs';
|
|
7
|
+
export { getAccountingMsGrpcOptions } from './grpc/utils/grpc.options.util.mjs';
|
|
8
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './grpc/utils/proto.util.mjs';
|
|
9
|
+
export { Empty, IdReq } from './interfaces/common/common.interface.mjs';
|
|
10
|
+
export { ProjectTrustAccountAllocationEntity } from './interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs';
|
|
11
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs';
|
|
12
|
+
export { TrustAccountEntity } from './interfaces/trust-account/trust-account.entity.interface.mjs';
|
|
13
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './interfaces/trust-account/trust-account.grpc.interface.mjs';
|
|
14
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './schemas/menu/create-menu.schema.mjs';
|
|
15
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './schemas/menu/menu-res.schema.mjs';
|
|
16
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './schemas/menu/update-menu.schema.mjs';
|
|
17
|
+
export { ProjectRestRes, projectRestResSchema } from './schemas/project/project-res.schema.mjs';
|
|
18
|
+
export { AllocateTrustAccountToProjectRestReq, allocateTrustAccountToProjectRestReqSchema } from './schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs';
|
|
19
|
+
export { ApproveTrustAccountAllocationRestReq, approveTrustAccountAllocationRestReqSchema } from './schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs';
|
|
20
|
+
export { ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema } from './schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs';
|
|
21
|
+
export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './schemas/trust-account/create-trust-account.schema.mjs';
|
|
22
|
+
export { TrustAccountRestRes, trustAccountRestResSchema } from './schemas/trust-account/trust-account-res.schema.mjs';
|
|
23
|
+
export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './schemas/trust-account/update-trust-account.schema.mjs';
|
|
24
|
+
export { maskString } from './utils/mask.mjs';
|
|
25
|
+
import '@nestjs/microservices';
|
|
26
|
+
import 'rxjs';
|
|
27
|
+
import '@mikemo-coposit/am-zshared';
|
|
28
|
+
import 'zod';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { MenuStatus } from './constants/menu/menu-status.constant.js';
|
|
2
|
+
export { MenuType } from './constants/menu/menu-type.constant.js';
|
|
3
|
+
export { ProjectRestResStatus } from './constants/project/project-res-status.constant.js';
|
|
4
|
+
export { ProjectTrustAccountAllocationStatus } from './constants/project/project-trust-account-allocation-status.constant.js';
|
|
5
|
+
export { TrustAccountStatus } from './constants/trust-account/trust-account-status.constant.js';
|
|
6
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './grpc/constants/accountms.constant.js';
|
|
7
|
+
export { getAccountingMsGrpcOptions } from './grpc/utils/grpc.options.util.js';
|
|
8
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './grpc/utils/proto.util.js';
|
|
9
|
+
export { Empty, IdReq } from './interfaces/common/common.interface.js';
|
|
10
|
+
export { ProjectTrustAccountAllocationEntity } from './interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js';
|
|
11
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js';
|
|
12
|
+
export { TrustAccountEntity } from './interfaces/trust-account/trust-account.entity.interface.js';
|
|
13
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './interfaces/trust-account/trust-account.grpc.interface.js';
|
|
14
|
+
export { CreateMenuRestReq, createMenuRestReqSchema } from './schemas/menu/create-menu.schema.js';
|
|
15
|
+
export { MenuRestRes, menuRestResSchema, menuSchema } from './schemas/menu/menu-res.schema.js';
|
|
16
|
+
export { UpdateMenuRestReq, updateMenuRestReqSchema } from './schemas/menu/update-menu.schema.js';
|
|
17
|
+
export { ProjectRestRes, projectRestResSchema } from './schemas/project/project-res.schema.js';
|
|
18
|
+
export { AllocateTrustAccountToProjectRestReq, allocateTrustAccountToProjectRestReqSchema } from './schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js';
|
|
19
|
+
export { ApproveTrustAccountAllocationRestReq, approveTrustAccountAllocationRestReqSchema } from './schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js';
|
|
20
|
+
export { ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema } from './schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js';
|
|
21
|
+
export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './schemas/trust-account/create-trust-account.schema.js';
|
|
22
|
+
export { TrustAccountRestRes, trustAccountRestResSchema } from './schemas/trust-account/trust-account-res.schema.js';
|
|
23
|
+
export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './schemas/trust-account/update-trust-account.schema.js';
|
|
24
|
+
export { maskString } from './utils/mask.js';
|
|
25
|
+
import '@nestjs/microservices';
|
|
26
|
+
import 'rxjs';
|
|
27
|
+
import '@mikemo-coposit/am-zshared';
|
|
28
|
+
import 'zod';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 index_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require("./constants"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./grpc"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./interfaces"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./schemas"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./utils"), module.exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../packages/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './grpc';\nexport * from './interfaces';\nexport * from './schemas';\nexport * from './utils';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,0BAAc,wBAFd;AAGA,0BAAc,mBAHd;AAIA,0BAAc,yBAJd;AAKA,0BAAc,sBALd;AAMA,0BAAc,oBANd;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../packages/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './grpc';\nexport * from './interfaces';\nexport * from './schemas';\nexport * from './utils';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -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 common_interface_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(common_interface_exports);
|
|
17
|
+
//# sourceMappingURL=common.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/common/common.interface.ts"],"sourcesContent":["// eslint-disable-next-line ts/no-empty-object-type\nexport type Empty = {};\n\nexport type IdReq = {\n id: string;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=common.interface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty, IdReq } from './common.interface.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty, IdReq } from './common.interface.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
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 common_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(common_exports);
|
|
18
|
+
__reExport(common_exports, require("./common.interface"), module.exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/common/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './common.interface';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,2BAAc,+BAFd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/common/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './common.interface';\n"],"mappings":"AAEA,cAAc;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Empty, IdReq } from './common/common.interface.mjs';
|
|
2
|
+
export { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs';
|
|
3
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs';
|
|
4
|
+
export { TrustAccountEntity } from './trust-account/trust-account.entity.interface.mjs';
|
|
5
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './trust-account/trust-account.grpc.interface.mjs';
|
|
6
|
+
import '../constants/project/project-trust-account-allocation-status.constant.mjs';
|
|
7
|
+
import '../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs';
|
|
8
|
+
import 'zod';
|
|
9
|
+
import 'rxjs';
|
|
10
|
+
import '@mikemo-coposit/am-zshared';
|
|
11
|
+
import '../schemas/trust-account/create-trust-account.schema.mjs';
|
|
12
|
+
import '../schemas/trust-account/update-trust-account.schema.mjs';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Empty, IdReq } from './common/common.interface.js';
|
|
2
|
+
export { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation/project-trust-account-allocation.entity.interface.js';
|
|
3
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js';
|
|
4
|
+
export { TrustAccountEntity } from './trust-account/trust-account.entity.interface.js';
|
|
5
|
+
export { CreateTrustAccountReq, FindTrustAccountByIdRes, GetAllTrustAccountsRes, TrustAccountGrpcService, UpdateTrustAccountReq } from './trust-account/trust-account.grpc.interface.js';
|
|
6
|
+
import '../constants/project/project-trust-account-allocation-status.constant.js';
|
|
7
|
+
import '../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js';
|
|
8
|
+
import 'zod';
|
|
9
|
+
import 'rxjs';
|
|
10
|
+
import '@mikemo-coposit/am-zshared';
|
|
11
|
+
import '../schemas/trust-account/create-trust-account.schema.js';
|
|
12
|
+
import '../schemas/trust-account/update-trust-account.schema.js';
|
|
@@ -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 interfaces_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(interfaces_exports);
|
|
18
|
+
__reExport(interfaces_exports, require("./common"), module.exports);
|
|
19
|
+
__reExport(interfaces_exports, require("./project-trust-account-allocation"), module.exports);
|
|
20
|
+
__reExport(interfaces_exports, require("./trust-account"), module.exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/interfaces/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './common';\nexport * from './project-trust-account-allocation';\nexport * from './trust-account';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,+BAAc,qBAFd;AAGA,+BAAc,+CAHd;AAIA,+BAAc,4BAJd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/interfaces/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './common';\nexport * from './project-trust-account-allocation';\nexport * from './trust-account';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation.entity.interface.mjs';
|
|
2
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './project-trust-account-allocation.grpc.interface.mjs';
|
|
3
|
+
import '../../constants/project/project-trust-account-allocation-status.constant.mjs';
|
|
4
|
+
import '../common/common.interface.mjs';
|
|
5
|
+
import '../../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import 'rxjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation.entity.interface.js';
|
|
2
|
+
export { AllocateTrustAccountToProjectReq, FindProjectTrustAccountAllocationByProjectIdRes, GetAllProjectTrustAccountAllocationsRes, ProjectTrustAccountAllocationGrpcService } from './project-trust-account-allocation.grpc.interface.js';
|
|
3
|
+
import '../../constants/project/project-trust-account-allocation-status.constant.js';
|
|
4
|
+
import '../common/common.interface.js';
|
|
5
|
+
import '../../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import 'rxjs';
|
|
@@ -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 project_trust_account_allocation_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(project_trust_account_allocation_exports);
|
|
18
|
+
__reExport(project_trust_account_allocation_exports, require("./project-trust-account-allocation.entity.interface"), module.exports);
|
|
19
|
+
__reExport(project_trust_account_allocation_exports, require("./project-trust-account-allocation.grpc.interface"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/project-trust-account-allocation/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './project-trust-account-allocation.entity.interface';\nexport * from './project-trust-account-allocation.grpc.interface';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,qDAAc,gEAFd;AAGA,qDAAc,8DAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/project-trust-account-allocation/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './project-trust-account-allocation.entity.interface';\nexport * from './project-trust-account-allocation.grpc.interface';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProjectTrustAccountAllocationStatus } from '../../constants/project/project-trust-account-allocation-status.constant.mjs';
|
|
2
|
+
|
|
3
|
+
type ProjectTrustAccountAllocationEntity = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
trustAccountId: string;
|
|
7
|
+
status: ProjectTrustAccountAllocationStatus;
|
|
8
|
+
createdBy: string;
|
|
9
|
+
approvedBy: string;
|
|
10
|
+
approvedAt: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
isArchived: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { ProjectTrustAccountAllocationEntity };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProjectTrustAccountAllocationStatus } from '../../constants/project/project-trust-account-allocation-status.constant.js';
|
|
2
|
+
|
|
3
|
+
type ProjectTrustAccountAllocationEntity = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
trustAccountId: string;
|
|
7
|
+
status: ProjectTrustAccountAllocationStatus;
|
|
8
|
+
createdBy: string;
|
|
9
|
+
approvedBy: string;
|
|
10
|
+
approvedAt: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
isArchived: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { ProjectTrustAccountAllocationEntity };
|
|
@@ -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_entity_interface_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(project_trust_account_allocation_entity_interface_exports);
|
|
17
|
+
//# sourceMappingURL=project-trust-account-allocation.entity.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.ts"],"sourcesContent":["import { ProjectTrustAccountAllocationStatus } from '../../constants/project/project-trust-account-allocation-status.constant';\n\nexport type ProjectTrustAccountAllocationEntity = {\n id: string;\n projectId: string;\n trustAccountId: string;\n status: ProjectTrustAccountAllocationStatus;\n createdBy: string;\n approvedBy: string;\n approvedAt: string;\n createdAt: string;\n updatedAt: string;\n isArchived: boolean;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=project-trust-account-allocation.entity.interface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ProjectTrustAccountAllocationEntity } from './project-trust-account-allocation.entity.interface.mjs';
|
|
2
|
+
import { IdReq, Empty } from '../common/common.interface.mjs';
|
|
3
|
+
import { AllocateTrustAccountToProjectRestReq } from '../../schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import '../../constants/project/project-trust-account-allocation-status.constant.mjs';
|
|
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 };
|