@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.
Files changed (272) hide show
  1. package/README.md +107 -0
  2. package/dist/constants/index.d.mts +5 -0
  3. package/dist/constants/index.d.ts +5 -0
  4. package/dist/constants/index.js +21 -0
  5. package/dist/constants/index.js.map +1 -0
  6. package/dist/constants/index.mjs +4 -0
  7. package/dist/constants/index.mjs.map +1 -0
  8. package/dist/constants/menu/index.d.mts +2 -0
  9. package/dist/constants/menu/index.d.ts +2 -0
  10. package/dist/constants/menu/index.js +20 -0
  11. package/dist/constants/menu/index.js.map +1 -0
  12. package/dist/constants/menu/index.mjs +3 -0
  13. package/dist/constants/menu/index.mjs.map +1 -0
  14. package/dist/constants/menu/menu-status.constant.d.mts +7 -0
  15. package/dist/constants/menu/menu-status.constant.d.ts +7 -0
  16. package/dist/constants/menu/menu-status.constant.js +28 -0
  17. package/dist/constants/menu/menu-status.constant.js.map +1 -0
  18. package/dist/constants/menu/menu-status.constant.mjs +8 -0
  19. package/dist/constants/menu/menu-status.constant.mjs.map +1 -0
  20. package/dist/constants/menu/menu-type.constant.d.mts +8 -0
  21. package/dist/constants/menu/menu-type.constant.d.ts +8 -0
  22. package/dist/constants/menu/menu-type.constant.js +29 -0
  23. package/dist/constants/menu/menu-type.constant.js.map +1 -0
  24. package/dist/constants/menu/menu-type.constant.mjs +9 -0
  25. package/dist/constants/menu/menu-type.constant.mjs.map +1 -0
  26. package/dist/constants/project/index.d.mts +2 -0
  27. package/dist/constants/project/index.d.ts +2 -0
  28. package/dist/constants/project/index.js +20 -0
  29. package/dist/constants/project/index.js.map +1 -0
  30. package/dist/constants/project/index.mjs +3 -0
  31. package/dist/constants/project/index.mjs.map +1 -0
  32. package/dist/constants/project/project-res-status.constant.d.mts +10 -0
  33. package/dist/constants/project/project-res-status.constant.d.ts +10 -0
  34. package/dist/constants/project/project-res-status.constant.js +31 -0
  35. package/dist/constants/project/project-res-status.constant.js.map +1 -0
  36. package/dist/constants/project/project-res-status.constant.mjs +11 -0
  37. package/dist/constants/project/project-res-status.constant.mjs.map +1 -0
  38. package/dist/constants/project/project-trust-account-allocation-status.constant.d.mts +8 -0
  39. package/dist/constants/project/project-trust-account-allocation-status.constant.d.ts +8 -0
  40. package/dist/constants/project/project-trust-account-allocation-status.constant.js +29 -0
  41. package/dist/constants/project/project-trust-account-allocation-status.constant.js.map +1 -0
  42. package/dist/constants/project/project-trust-account-allocation-status.constant.mjs +9 -0
  43. package/dist/constants/project/project-trust-account-allocation-status.constant.mjs.map +1 -0
  44. package/dist/constants/trust-account/index.d.mts +1 -0
  45. package/dist/constants/trust-account/index.d.ts +1 -0
  46. package/dist/constants/trust-account/index.js +19 -0
  47. package/dist/constants/trust-account/index.js.map +1 -0
  48. package/dist/constants/trust-account/index.mjs +2 -0
  49. package/dist/constants/trust-account/index.mjs.map +1 -0
  50. package/dist/constants/trust-account/trust-account-status.constant.d.mts +6 -0
  51. package/dist/constants/trust-account/trust-account-status.constant.d.ts +6 -0
  52. package/dist/constants/trust-account/trust-account-status.constant.js +29 -0
  53. package/dist/constants/trust-account/trust-account-status.constant.js.map +1 -0
  54. package/dist/constants/trust-account/trust-account-status.constant.mjs +9 -0
  55. package/dist/constants/trust-account/trust-account-status.constant.mjs.map +1 -0
  56. package/dist/grpc/constants/accountms.constant.d.mts +14 -0
  57. package/dist/grpc/constants/accountms.constant.d.ts +14 -0
  58. package/dist/grpc/constants/accountms.constant.js +39 -0
  59. package/dist/grpc/constants/accountms.constant.js.map +1 -0
  60. package/dist/grpc/constants/accountms.constant.mjs +19 -0
  61. package/dist/grpc/constants/accountms.constant.mjs.map +1 -0
  62. package/dist/grpc/constants/index.d.mts +1 -0
  63. package/dist/grpc/constants/index.d.ts +1 -0
  64. package/dist/grpc/constants/index.js +19 -0
  65. package/dist/grpc/constants/index.js.map +1 -0
  66. package/dist/grpc/constants/index.mjs +2 -0
  67. package/dist/grpc/constants/index.mjs.map +1 -0
  68. package/dist/grpc/index.d.mts +4 -0
  69. package/dist/grpc/index.d.ts +4 -0
  70. package/dist/grpc/index.js +20 -0
  71. package/dist/grpc/index.js.map +1 -0
  72. package/dist/grpc/index.mjs +3 -0
  73. package/dist/grpc/index.mjs.map +1 -0
  74. package/dist/grpc/protos/common/common.file.d.mts +2 -0
  75. package/dist/grpc/protos/common/common.file.d.ts +2 -0
  76. package/dist/grpc/protos/common/common.file.proto +30 -0
  77. package/dist/grpc/protos/common/common.general.d.mts +2 -0
  78. package/dist/grpc/protos/common/common.general.d.ts +2 -0
  79. package/dist/grpc/protos/common/common.general.proto +53 -0
  80. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.mts +2 -0
  81. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.ts +2 -0
  82. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.mts +2 -0
  83. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.ts +2 -0
  84. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.proto +16 -0
  85. package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.proto +28 -0
  86. package/dist/grpc/protos/trust-account/trust-account.d.mts +2 -0
  87. package/dist/grpc/protos/trust-account/trust-account.d.ts +2 -0
  88. package/dist/grpc/protos/trust-account/trust-account.e.d.mts +2 -0
  89. package/dist/grpc/protos/trust-account/trust-account.e.d.ts +2 -0
  90. package/dist/grpc/protos/trust-account/trust-account.e.proto +18 -0
  91. package/dist/grpc/protos/trust-account/trust-account.proto +35 -0
  92. package/dist/grpc/utils/grpc.options.util.d.mts +10 -0
  93. package/dist/grpc/utils/grpc.options.util.d.ts +10 -0
  94. package/dist/grpc/utils/grpc.options.util.js +57 -0
  95. package/dist/grpc/utils/grpc.options.util.js.map +1 -0
  96. package/dist/grpc/utils/grpc.options.util.mjs +37 -0
  97. package/dist/grpc/utils/grpc.options.util.mjs.map +1 -0
  98. package/dist/grpc/utils/index.d.mts +3 -0
  99. package/dist/grpc/utils/index.d.ts +3 -0
  100. package/dist/grpc/utils/index.js +20 -0
  101. package/dist/grpc/utils/index.js.map +1 -0
  102. package/dist/grpc/utils/index.mjs +3 -0
  103. package/dist/grpc/utils/index.mjs.map +1 -0
  104. package/dist/grpc/utils/proto.util.d.mts +18 -0
  105. package/dist/grpc/utils/proto.util.d.ts +18 -0
  106. package/dist/grpc/utils/proto.util.js +102 -0
  107. package/dist/grpc/utils/proto.util.js.map +1 -0
  108. package/dist/grpc/utils/proto.util.mjs +82 -0
  109. package/dist/grpc/utils/proto.util.mjs.map +1 -0
  110. package/dist/index.d.mts +28 -0
  111. package/dist/index.d.ts +28 -0
  112. package/dist/index.js +23 -0
  113. package/dist/index.js.map +1 -0
  114. package/dist/index.mjs +6 -0
  115. package/dist/index.mjs.map +1 -0
  116. package/dist/interfaces/common/common.interface.d.mts +6 -0
  117. package/dist/interfaces/common/common.interface.d.ts +6 -0
  118. package/dist/interfaces/common/common.interface.js +17 -0
  119. package/dist/interfaces/common/common.interface.js.map +1 -0
  120. package/dist/interfaces/common/common.interface.mjs +1 -0
  121. package/dist/interfaces/common/common.interface.mjs.map +1 -0
  122. package/dist/interfaces/common/index.d.mts +1 -0
  123. package/dist/interfaces/common/index.d.ts +1 -0
  124. package/dist/interfaces/common/index.js +19 -0
  125. package/dist/interfaces/common/index.js.map +1 -0
  126. package/dist/interfaces/common/index.mjs +2 -0
  127. package/dist/interfaces/common/index.mjs.map +1 -0
  128. package/dist/interfaces/index.d.mts +12 -0
  129. package/dist/interfaces/index.d.ts +12 -0
  130. package/dist/interfaces/index.js +21 -0
  131. package/dist/interfaces/index.js.map +1 -0
  132. package/dist/interfaces/index.mjs +4 -0
  133. package/dist/interfaces/index.mjs.map +1 -0
  134. package/dist/interfaces/project-trust-account-allocation/index.d.mts +7 -0
  135. package/dist/interfaces/project-trust-account-allocation/index.d.ts +7 -0
  136. package/dist/interfaces/project-trust-account-allocation/index.js +20 -0
  137. package/dist/interfaces/project-trust-account-allocation/index.js.map +1 -0
  138. package/dist/interfaces/project-trust-account-allocation/index.mjs +3 -0
  139. package/dist/interfaces/project-trust-account-allocation/index.mjs.map +1 -0
  140. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.mts +16 -0
  141. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.ts +16 -0
  142. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js +17 -0
  143. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js.map +1 -0
  144. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs +1 -0
  145. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs.map +1 -0
  146. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.mts +24 -0
  147. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.ts +24 -0
  148. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js +17 -0
  149. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js.map +1 -0
  150. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs +1 -0
  151. package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs.map +1 -0
  152. package/dist/interfaces/trust-account/index.d.mts +8 -0
  153. package/dist/interfaces/trust-account/index.d.ts +8 -0
  154. package/dist/interfaces/trust-account/index.js +20 -0
  155. package/dist/interfaces/trust-account/index.js.map +1 -0
  156. package/dist/interfaces/trust-account/index.mjs +3 -0
  157. package/dist/interfaces/trust-account/index.mjs.map +1 -0
  158. package/dist/interfaces/trust-account/trust-account.entity.interface.d.mts +18 -0
  159. package/dist/interfaces/trust-account/trust-account.entity.interface.d.ts +18 -0
  160. package/dist/interfaces/trust-account/trust-account.entity.interface.js +17 -0
  161. package/dist/interfaces/trust-account/trust-account.entity.interface.js.map +1 -0
  162. package/dist/interfaces/trust-account/trust-account.entity.interface.mjs +1 -0
  163. package/dist/interfaces/trust-account/trust-account.entity.interface.mjs.map +1 -0
  164. package/dist/interfaces/trust-account/trust-account.grpc.interface.d.mts +24 -0
  165. package/dist/interfaces/trust-account/trust-account.grpc.interface.d.ts +24 -0
  166. package/dist/interfaces/trust-account/trust-account.grpc.interface.js +17 -0
  167. package/dist/interfaces/trust-account/trust-account.grpc.interface.js.map +1 -0
  168. package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs +1 -0
  169. package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs.map +1 -0
  170. package/dist/schemas/index.d.mts +12 -0
  171. package/dist/schemas/index.d.ts +12 -0
  172. package/dist/schemas/index.js +22 -0
  173. package/dist/schemas/index.js.map +1 -0
  174. package/dist/schemas/index.mjs +5 -0
  175. package/dist/schemas/index.mjs.map +1 -0
  176. package/dist/schemas/menu/create-menu.schema.d.mts +49 -0
  177. package/dist/schemas/menu/create-menu.schema.d.ts +49 -0
  178. package/dist/schemas/menu/create-menu.schema.js +40 -0
  179. package/dist/schemas/menu/create-menu.schema.js.map +1 -0
  180. package/dist/schemas/menu/create-menu.schema.mjs +20 -0
  181. package/dist/schemas/menu/create-menu.schema.mjs.map +1 -0
  182. package/dist/schemas/menu/index.d.mts +4 -0
  183. package/dist/schemas/menu/index.d.ts +4 -0
  184. package/dist/schemas/menu/index.js +21 -0
  185. package/dist/schemas/menu/index.js.map +1 -0
  186. package/dist/schemas/menu/index.mjs +4 -0
  187. package/dist/schemas/menu/index.mjs.map +1 -0
  188. package/dist/schemas/menu/menu-res.schema.d.mts +219 -0
  189. package/dist/schemas/menu/menu-res.schema.d.ts +219 -0
  190. package/dist/schemas/menu/menu-res.schema.js +49 -0
  191. package/dist/schemas/menu/menu-res.schema.js.map +1 -0
  192. package/dist/schemas/menu/menu-res.schema.mjs +29 -0
  193. package/dist/schemas/menu/menu-res.schema.mjs.map +1 -0
  194. package/dist/schemas/menu/update-menu.schema.d.mts +53 -0
  195. package/dist/schemas/menu/update-menu.schema.d.ts +53 -0
  196. package/dist/schemas/menu/update-menu.schema.js +29 -0
  197. package/dist/schemas/menu/update-menu.schema.js.map +1 -0
  198. package/dist/schemas/menu/update-menu.schema.mjs +9 -0
  199. package/dist/schemas/menu/update-menu.schema.mjs.map +1 -0
  200. package/dist/schemas/project/index.d.mts +3 -0
  201. package/dist/schemas/project/index.d.ts +3 -0
  202. package/dist/schemas/project/index.js +19 -0
  203. package/dist/schemas/project/index.js.map +1 -0
  204. package/dist/schemas/project/index.mjs +2 -0
  205. package/dist/schemas/project/index.mjs.map +1 -0
  206. package/dist/schemas/project/project-res.schema.d.mts +154 -0
  207. package/dist/schemas/project/project-res.schema.d.ts +154 -0
  208. package/dist/schemas/project/project-res.schema.js +42 -0
  209. package/dist/schemas/project/project-res.schema.js.map +1 -0
  210. package/dist/schemas/project/project-res.schema.mjs +22 -0
  211. package/dist/schemas/project/project-res.schema.mjs.map +1 -0
  212. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.mts +15 -0
  213. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.ts +15 -0
  214. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js +29 -0
  215. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js.map +1 -0
  216. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs +9 -0
  217. package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs.map +1 -0
  218. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.mts +12 -0
  219. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.ts +12 -0
  220. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js +28 -0
  221. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js.map +1 -0
  222. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs +8 -0
  223. package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs.map +1 -0
  224. package/dist/schemas/project-trust-account-allocation/index.d.mts +4 -0
  225. package/dist/schemas/project-trust-account-allocation/index.d.ts +4 -0
  226. package/dist/schemas/project-trust-account-allocation/index.js +21 -0
  227. package/dist/schemas/project-trust-account-allocation/index.js.map +1 -0
  228. package/dist/schemas/project-trust-account-allocation/index.mjs +4 -0
  229. package/dist/schemas/project-trust-account-allocation/index.mjs.map +1 -0
  230. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.mts +46 -0
  231. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.ts +46 -0
  232. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js +39 -0
  233. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js.map +1 -0
  234. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs +19 -0
  235. package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs.map +1 -0
  236. package/dist/schemas/trust-account/create-trust-account.schema.d.mts +28 -0
  237. package/dist/schemas/trust-account/create-trust-account.schema.d.ts +28 -0
  238. package/dist/schemas/trust-account/create-trust-account.schema.js +36 -0
  239. package/dist/schemas/trust-account/create-trust-account.schema.js.map +1 -0
  240. package/dist/schemas/trust-account/create-trust-account.schema.mjs +16 -0
  241. package/dist/schemas/trust-account/create-trust-account.schema.mjs.map +1 -0
  242. package/dist/schemas/trust-account/index.d.mts +5 -0
  243. package/dist/schemas/trust-account/index.d.ts +5 -0
  244. package/dist/schemas/trust-account/index.js +21 -0
  245. package/dist/schemas/trust-account/index.js.map +1 -0
  246. package/dist/schemas/trust-account/index.mjs +4 -0
  247. package/dist/schemas/trust-account/index.mjs.map +1 -0
  248. package/dist/schemas/trust-account/trust-account-res.schema.d.mts +31 -0
  249. package/dist/schemas/trust-account/trust-account-res.schema.d.ts +31 -0
  250. package/dist/schemas/trust-account/trust-account-res.schema.js +46 -0
  251. package/dist/schemas/trust-account/trust-account-res.schema.js.map +1 -0
  252. package/dist/schemas/trust-account/trust-account-res.schema.mjs +26 -0
  253. package/dist/schemas/trust-account/trust-account-res.schema.mjs.map +1 -0
  254. package/dist/schemas/trust-account/update-trust-account.schema.d.mts +15 -0
  255. package/dist/schemas/trust-account/update-trust-account.schema.d.ts +15 -0
  256. package/dist/schemas/trust-account/update-trust-account.schema.js +29 -0
  257. package/dist/schemas/trust-account/update-trust-account.schema.js.map +1 -0
  258. package/dist/schemas/trust-account/update-trust-account.schema.mjs +9 -0
  259. package/dist/schemas/trust-account/update-trust-account.schema.mjs.map +1 -0
  260. package/dist/utils/index.d.mts +1 -0
  261. package/dist/utils/index.d.ts +1 -0
  262. package/dist/utils/index.js +19 -0
  263. package/dist/utils/index.js.map +1 -0
  264. package/dist/utils/index.mjs +2 -0
  265. package/dist/utils/index.mjs.map +1 -0
  266. package/dist/utils/mask.d.mts +7 -0
  267. package/dist/utils/mask.d.ts +7 -0
  268. package/dist/utils/mask.js +41 -0
  269. package/dist/utils/mask.js.map +1 -0
  270. package/dist/utils/mask.mjs +21 -0
  271. package/dist/utils/mask.mjs.map +1 -0
  272. 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":[]}
@@ -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';
@@ -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,6 @@
1
+ export * from "./constants";
2
+ export * from "./grpc";
3
+ export * from "./interfaces";
4
+ export * from "./schemas";
5
+ export * from "./utils";
6
+ //# sourceMappingURL=index.mjs.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":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,6 @@
1
+ type Empty = {};
2
+ type IdReq = {
3
+ id: string;
4
+ };
5
+
6
+ export type { Empty, IdReq };
@@ -0,0 +1,6 @@
1
+ type Empty = {};
2
+ type IdReq = {
3
+ id: string;
4
+ };
5
+
6
+ export type { Empty, IdReq };
@@ -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,2 @@
1
+ export * from "./common.interface";
2
+ //# sourceMappingURL=index.mjs.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":"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,4 @@
1
+ export * from "./common";
2
+ export * from "./project-trust-account-allocation";
3
+ export * from "./trust-account";
4
+ //# sourceMappingURL=index.mjs.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":"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,3 @@
1
+ export * from "./project-trust-account-allocation.entity.interface";
2
+ export * from "./project-trust-account-allocation.grpc.interface";
3
+ //# sourceMappingURL=index.mjs.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":"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 };