@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,14 @@
1
+ declare const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
2
+ declare const trustAccountGrpcService = "TrustAccountGrpcService";
3
+ declare const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
4
+ declare const AccountingMsGrpcServiceSchema: {
5
+ package: string;
6
+ trustAccount: {
7
+ service: string;
8
+ };
9
+ projectTrustAccountAllocation: {
10
+ service: string;
11
+ };
12
+ };
13
+
14
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService };
@@ -0,0 +1,14 @@
1
+ declare const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
2
+ declare const trustAccountGrpcService = "TrustAccountGrpcService";
3
+ declare const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
4
+ declare const AccountingMsGrpcServiceSchema: {
5
+ package: string;
6
+ trustAccount: {
7
+ service: string;
8
+ };
9
+ projectTrustAccountAllocation: {
10
+ service: string;
11
+ };
12
+ };
13
+
14
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService };
@@ -0,0 +1,39 @@
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 accountms_constant_exports = {};
20
+ __export(accountms_constant_exports, {
21
+ AccountingMsGrpcServiceSchema: () => AccountingMsGrpcServiceSchema,
22
+ MS_ACCOUNTING_GRPC_PACKAGE: () => MS_ACCOUNTING_GRPC_PACKAGE,
23
+ projectTrustAccountAllocationGrpcService: () => projectTrustAccountAllocationGrpcService,
24
+ trustAccountGrpcService: () => trustAccountGrpcService
25
+ });
26
+ module.exports = __toCommonJS(accountms_constant_exports);
27
+ const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
28
+ const trustAccountGrpcService = "TrustAccountGrpcService";
29
+ const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
30
+ const AccountingMsGrpcServiceSchema = {
31
+ package: MS_ACCOUNTING_GRPC_PACKAGE,
32
+ trustAccount: {
33
+ service: trustAccountGrpcService
34
+ },
35
+ projectTrustAccountAllocation: {
36
+ service: projectTrustAccountAllocationGrpcService
37
+ }
38
+ };
39
+ //# sourceMappingURL=accountms.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/constants/accountms.constant.ts"],"sourcesContent":["export const MS_ACCOUNTING_GRPC_PACKAGE = 'MS_ACCOUNTING_GRPC_PACKAGE';\n\nexport const trustAccountGrpcService = 'TrustAccountGrpcService';\n\nexport const projectTrustAccountAllocationGrpcService = 'ProjectTrustAccountAllocationGrpcService';\n\nexport const AccountingMsGrpcServiceSchema = {\n package: MS_ACCOUNTING_GRPC_PACKAGE,\n trustAccount: {\n service: trustAccountGrpcService,\n },\n projectTrustAccountAllocation: {\n service: projectTrustAccountAllocationGrpcService,\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,6BAA6B;AAEnC,MAAM,0BAA0B;AAEhC,MAAM,2CAA2C;AAEjD,MAAM,gCAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,+BAA+B;AAAA,IAC7B,SAAS;AAAA,EACX;AACF;","names":[]}
@@ -0,0 +1,19 @@
1
+ const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
2
+ const trustAccountGrpcService = "TrustAccountGrpcService";
3
+ const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
4
+ const AccountingMsGrpcServiceSchema = {
5
+ package: MS_ACCOUNTING_GRPC_PACKAGE,
6
+ trustAccount: {
7
+ service: trustAccountGrpcService
8
+ },
9
+ projectTrustAccountAllocation: {
10
+ service: projectTrustAccountAllocationGrpcService
11
+ }
12
+ };
13
+ export {
14
+ AccountingMsGrpcServiceSchema,
15
+ MS_ACCOUNTING_GRPC_PACKAGE,
16
+ projectTrustAccountAllocationGrpcService,
17
+ trustAccountGrpcService
18
+ };
19
+ //# sourceMappingURL=accountms.constant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/constants/accountms.constant.ts"],"sourcesContent":["export const MS_ACCOUNTING_GRPC_PACKAGE = 'MS_ACCOUNTING_GRPC_PACKAGE';\n\nexport const trustAccountGrpcService = 'TrustAccountGrpcService';\n\nexport const projectTrustAccountAllocationGrpcService = 'ProjectTrustAccountAllocationGrpcService';\n\nexport const AccountingMsGrpcServiceSchema = {\n package: MS_ACCOUNTING_GRPC_PACKAGE,\n trustAccount: {\n service: trustAccountGrpcService,\n },\n projectTrustAccountAllocation: {\n service: projectTrustAccountAllocationGrpcService,\n },\n};\n"],"mappings":"AAAO,MAAM,6BAA6B;AAEnC,MAAM,0BAA0B;AAEhC,MAAM,2CAA2C;AAEjD,MAAM,gCAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,+BAA+B;AAAA,IAC7B,SAAS;AAAA,EACX;AACF;","names":[]}
@@ -0,0 +1 @@
1
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './accountms.constant.mjs';
@@ -0,0 +1 @@
1
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './accountms.constant.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 constants_exports = {};
17
+ module.exports = __toCommonJS(constants_exports);
18
+ __reExport(constants_exports, require("./accountms.constant"), module.exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/constants/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './accountms.constant';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,8BAAc,iCAFd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./accountms.constant";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/constants/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './accountms.constant';\n"],"mappings":"AAEA,cAAc;","names":[]}
@@ -0,0 +1,4 @@
1
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './constants/accountms.constant.mjs';
2
+ export { getAccountingMsGrpcOptions } from './utils/grpc.options.util.mjs';
3
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './utils/proto.util.mjs';
4
+ import '@nestjs/microservices';
@@ -0,0 +1,4 @@
1
+ export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './constants/accountms.constant.js';
2
+ export { getAccountingMsGrpcOptions } from './utils/grpc.options.util.js';
3
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './utils/proto.util.js';
4
+ import '@nestjs/microservices';
@@ -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 grpc_exports = {};
17
+ module.exports = __toCommonJS(grpc_exports);
18
+ __reExport(grpc_exports, require("./constants"), module.exports);
19
+ __reExport(grpc_exports, require("./utils"), module.exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../packages/grpc/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './utils';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,yBAAc,wBAFd;AAGA,yBAAc,oBAHd;","names":[]}
@@ -0,0 +1,3 @@
1
+ export * from "./constants";
2
+ export * from "./utils";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../packages/grpc/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './utils';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,30 @@
1
+ syntax = "proto3";
2
+
3
+ package common.file;
4
+
5
+ message FileUploadReq {
6
+ string originalname = 1;
7
+ string encoding = 2;
8
+ string mimetype = 3;
9
+ int32 size = 4;
10
+ string destination = 6;
11
+ string filename = 7;
12
+ string path = 8;
13
+ bytes buffer = 9;
14
+ string extraInfo = 10; // JSON string
15
+ }
16
+
17
+ message FileUploadRes {
18
+ string id = 1;
19
+ string bucket = 2;
20
+ string key = 3;
21
+ string uri = 4;
22
+ string originalname = 5;
23
+ string name = 6;
24
+ string status = 7;
25
+ int32 size = 8;
26
+ string extraInfo = 9; // JSON string
27
+ bool isArchived = 10;
28
+ bool isPublished = 11;
29
+ string assetStatus = 12;
30
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,53 @@
1
+ syntax = "proto3";
2
+
3
+ package common.general;
4
+
5
+ message IdReq {
6
+ string id = 1;
7
+ }
8
+
9
+ message IdsReq {
10
+ repeated string ids = 1;
11
+ }
12
+
13
+ message SimpleMessageResp {
14
+ bool isSuccess = 1;
15
+ optional string message = 2;
16
+ }
17
+
18
+ message SimpleOperationInfo {
19
+ string operatorId = 1;
20
+ }
21
+
22
+ message DateTimeFilter {
23
+ optional string equals = 1;
24
+ repeated string in = 2;
25
+ repeated string notIn = 3;
26
+ optional string lt = 4;
27
+ optional string lte = 5;
28
+ optional string gt = 6;
29
+ optional string gte = 7;
30
+ }
31
+
32
+ message StringFilter {
33
+ optional string equals = 1;
34
+ repeated string in = 2;
35
+ repeated string notIn = 3;
36
+ optional string contains = 4;
37
+ optional string startsWith = 5;
38
+ optional string endsWith = 6;
39
+ optional string mode = 7;
40
+ optional string not = 8;
41
+ }
42
+
43
+ message NumberFilter {
44
+ optional float equals = 1;
45
+ repeated float in = 2;
46
+ repeated float notIn = 3;
47
+ optional float lt = 4;
48
+ optional float lte = 5;
49
+ optional float gt = 6;
50
+ optional float gte = 7;
51
+ }
52
+
53
+ message Empty {}
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ package accountingms.project_trust_account_allocation.e;
4
+
5
+ message ProjectTrustAccountAllocation {
6
+ string id = 1;
7
+ string projectId = 2;
8
+ string trustAccountId = 3;
9
+ string status = 4;
10
+ string createdBy = 5;
11
+ string createdAt = 6;
12
+ string approvedBy = 7;
13
+ string approvedAt = 8;
14
+ string updatedAt = 9;
15
+ bool isArchived = 10;
16
+ }
@@ -0,0 +1,28 @@
1
+ syntax = "proto3";
2
+
3
+ package accountingms.project_trust_account_allocation;
4
+
5
+ import "common.general.proto";
6
+ import "project-trust-account-allocation.e.proto";
7
+
8
+ service ProjectTrustAccountAllocationGrpcService {
9
+ rpc FindProjectTrustAccountAllocationByProjectId(IdReq) returns (FindProjectTrustAccountAllocationByProjectIdRes) {}
10
+ rpc GetAllProjectTrustAccountAllocations(Empty) returns (GetAllProjectTrustAccountAllocationsRes) {}
11
+ rpc AllocateTrustAccountToProject(AllocateTrustAccountToProjectReq) returns (ProjectTrustAccountAllocation) {}
12
+ rpc ApproveProjectTrustAccountAllocation(IdReq) returns (ProjectTrustAccountAllocation) {}
13
+ // rpc RejectProjectTrustAccountAllocation(RejectProjectTrustAccountAllocationReq) returns (ProjectTrustAccountAllocation) {}
14
+ }
15
+
16
+ message GetAllProjectTrustAccountAllocationsRes {
17
+ repeated ProjectTrustAccountAllocation data = 1;
18
+ }
19
+
20
+ message FindProjectTrustAccountAllocationByProjectIdRes {
21
+ ProjectTrustAccountAllocation data = 1;
22
+ }
23
+
24
+ message AllocateTrustAccountToProjectReq {
25
+ string projectId = 1;
26
+ string trustAccountId = 2;
27
+ string userId = 3;
28
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ package accountingms.trust_account.e;
4
+
5
+ message TrustAccount {
6
+ string id = 1;
7
+ string name = 2;
8
+ string country = 3;
9
+ string stateCode = 4;
10
+ string bankCode = 5;
11
+ string accountNumber = 6;
12
+ string bsb = 7;
13
+ string status = 8;
14
+ string createdBy = 96;
15
+ string updatedAt = 97;
16
+ string createdAt = 98;
17
+ bool isArchived = 99;
18
+ }
@@ -0,0 +1,35 @@
1
+ syntax = "proto3";
2
+
3
+ package accountingms.trust_account;
4
+
5
+ import "common.general.proto";
6
+ import "trust-account.e.proto";
7
+
8
+ service TrustAccountGrpcService {
9
+ rpc GetAllTrustAccounts(Empty) returns (GetAllTrustAccountsRes) {}
10
+ rpc FindTrustAccountById(IdReq) returns (FindTrustAccountByIdRes) {}
11
+ rpc CreateTrustAccount(CreateTrustAccountReq) returns (TrustAccount) {}
12
+ rpc UpdateTrustAccount(UpdateTrustAccountReq) returns (TrustAccount) {}
13
+ }
14
+
15
+ message GetAllTrustAccountsRes {
16
+ repeated TrustAccount data = 1;
17
+ }
18
+
19
+ message FindTrustAccountByIdRes {
20
+ TrustAccount data = 1;
21
+ }
22
+
23
+ message CreateTrustAccountReq {
24
+ string name = 1;
25
+ string country = 2;
26
+ string stateCode = 3;
27
+ string bankCode = 4;
28
+ string accountNumber = 5;
29
+ string bsb = 6;
30
+ }
31
+
32
+ message UpdateTrustAccountReq {
33
+ string id = 1;
34
+ string name = 2;
35
+ }
@@ -0,0 +1,10 @@
1
+ import { GrpcOptions } from '@nestjs/microservices';
2
+
3
+ declare const getAccountingMsGrpcOptions: ({ url, options, debug, protoRootPath, }: {
4
+ url: string;
5
+ options?: GrpcOptions["options"];
6
+ debug?: boolean;
7
+ protoRootPath?: string;
8
+ }) => GrpcOptions["options"];
9
+
10
+ export { getAccountingMsGrpcOptions };
@@ -0,0 +1,10 @@
1
+ import { GrpcOptions } from '@nestjs/microservices';
2
+
3
+ declare const getAccountingMsGrpcOptions: ({ url, options, debug, protoRootPath, }: {
4
+ url: string;
5
+ options?: GrpcOptions["options"];
6
+ debug?: boolean;
7
+ protoRootPath?: string;
8
+ }) => GrpcOptions["options"];
9
+
10
+ export { getAccountingMsGrpcOptions };
@@ -0,0 +1,57 @@
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 grpc_options_util_exports = {};
20
+ __export(grpc_options_util_exports, {
21
+ getAccountingMsGrpcOptions: () => getAccountingMsGrpcOptions
22
+ });
23
+ module.exports = __toCommonJS(grpc_options_util_exports);
24
+ var import_proto = require("./proto.util");
25
+ const getAccountingMsGrpcOptions = ({
26
+ url,
27
+ options,
28
+ debug = false,
29
+ protoRootPath = import_proto.protoPath
30
+ }) => {
31
+ if (!url) {
32
+ throw new Error("Url is required");
33
+ }
34
+ const { packages, protoDirs, protoPaths } = (0, import_proto.getGrpcProtoOptions)([
35
+ {
36
+ path: protoRootPath
37
+ }
38
+ ]);
39
+ if (debug) {
40
+ console.debug("protoRootPath", protoRootPath);
41
+ console.debug("packages", packages);
42
+ console.debug("protoDirs", protoDirs);
43
+ console.debug("protoPaths", protoPaths);
44
+ }
45
+ return {
46
+ url,
47
+ package: [...packages],
48
+ protoPath: [...protoPaths],
49
+ loader: {
50
+ includeDirs: protoDirs,
51
+ arrays: true,
52
+ objects: true
53
+ },
54
+ ...options
55
+ };
56
+ };
57
+ //# sourceMappingURL=grpc.options.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/utils/grpc.options.util.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { GrpcOptions } from '@nestjs/microservices';\nimport { getGrpcProtoOptions, protoPath } from './proto.util';\n/**\n * Get the gRPC options for the project service\n * @param options - The gRPC options\n * @param options.url - The URL of the gRPC server\n * @param options.options - The gRPC options, it will override the default options\n * @param options.debug - Whether to enable debug mode\n * @param options.protoRootPath - optional path to the proto root, it has a default value\n * @returns The gRPC options\n */\nexport const getAccountingMsGrpcOptions = ({\n url,\n options,\n debug = false,\n protoRootPath = protoPath,\n}: {\n url: string;\n options?: GrpcOptions['options'];\n debug?: boolean;\n protoRootPath?: string;\n}): GrpcOptions['options'] => {\n if (!url) {\n throw new Error('Url is required');\n }\n\n const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([\n {\n path: protoRootPath,\n },\n ]);\n\n if (debug) {\n console.debug('protoRootPath', protoRootPath);\n console.debug('packages', packages);\n console.debug('protoDirs', protoDirs);\n console.debug('protoPaths', protoPaths);\n }\n\n return {\n url,\n package: [...packages],\n protoPath: [...protoPaths],\n loader: {\n includeDirs: protoDirs,\n arrays: true,\n objects: true,\n },\n ...options,\n } as GrpcOptions['options'];\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAA+C;AAUxC,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,gBAAgB;AAClB,MAK8B;AAC5B,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACnC;AAEA,QAAM,EAAE,UAAU,WAAW,WAAW,QAAI,kCAAoB;AAAA,IAC9D;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EACF,CAAC;AAED,MAAI,OAAO;AACT,YAAQ,MAAM,iBAAiB,aAAa;AAC5C,YAAQ,MAAM,YAAY,QAAQ;AAClC,YAAQ,MAAM,aAAa,SAAS;AACpC,YAAQ,MAAM,cAAc,UAAU;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,CAAC,GAAG,QAAQ;AAAA,IACrB,WAAW,CAAC,GAAG,UAAU;AAAA,IACzB,QAAQ;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
@@ -0,0 +1,37 @@
1
+ import { getGrpcProtoOptions, protoPath } from "./proto.util";
2
+ const getAccountingMsGrpcOptions = ({
3
+ url,
4
+ options,
5
+ debug = false,
6
+ protoRootPath = protoPath
7
+ }) => {
8
+ if (!url) {
9
+ throw new Error("Url is required");
10
+ }
11
+ const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([
12
+ {
13
+ path: protoRootPath
14
+ }
15
+ ]);
16
+ if (debug) {
17
+ console.debug("protoRootPath", protoRootPath);
18
+ console.debug("packages", packages);
19
+ console.debug("protoDirs", protoDirs);
20
+ console.debug("protoPaths", protoPaths);
21
+ }
22
+ return {
23
+ url,
24
+ package: [...packages],
25
+ protoPath: [...protoPaths],
26
+ loader: {
27
+ includeDirs: protoDirs,
28
+ arrays: true,
29
+ objects: true
30
+ },
31
+ ...options
32
+ };
33
+ };
34
+ export {
35
+ getAccountingMsGrpcOptions
36
+ };
37
+ //# sourceMappingURL=grpc.options.util.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/utils/grpc.options.util.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { GrpcOptions } from '@nestjs/microservices';\nimport { getGrpcProtoOptions, protoPath } from './proto.util';\n/**\n * Get the gRPC options for the project service\n * @param options - The gRPC options\n * @param options.url - The URL of the gRPC server\n * @param options.options - The gRPC options, it will override the default options\n * @param options.debug - Whether to enable debug mode\n * @param options.protoRootPath - optional path to the proto root, it has a default value\n * @returns The gRPC options\n */\nexport const getAccountingMsGrpcOptions = ({\n url,\n options,\n debug = false,\n protoRootPath = protoPath,\n}: {\n url: string;\n options?: GrpcOptions['options'];\n debug?: boolean;\n protoRootPath?: string;\n}): GrpcOptions['options'] => {\n if (!url) {\n throw new Error('Url is required');\n }\n\n const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([\n {\n path: protoRootPath,\n },\n ]);\n\n if (debug) {\n console.debug('protoRootPath', protoRootPath);\n console.debug('packages', packages);\n console.debug('protoDirs', protoDirs);\n console.debug('protoPaths', protoPaths);\n }\n\n return {\n url,\n package: [...packages],\n protoPath: [...protoPaths],\n loader: {\n includeDirs: protoDirs,\n arrays: true,\n objects: true,\n },\n ...options,\n } as GrpcOptions['options'];\n};\n"],"mappings":"AAEA,SAAS,qBAAqB,iBAAiB;AAUxC,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,gBAAgB;AAClB,MAK8B;AAC5B,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACnC;AAEA,QAAM,EAAE,UAAU,WAAW,WAAW,IAAI,oBAAoB;AAAA,IAC9D;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EACF,CAAC;AAED,MAAI,OAAO;AACT,YAAQ,MAAM,iBAAiB,aAAa;AAC5C,YAAQ,MAAM,YAAY,QAAQ;AAClC,YAAQ,MAAM,aAAa,SAAS;AACpC,YAAQ,MAAM,cAAc,UAAU;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,CAAC,GAAG,QAAQ;AAAA,IACrB,WAAW,CAAC,GAAG,UAAU;AAAA,IACzB,QAAQ;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
@@ -0,0 +1,3 @@
1
+ export { getAccountingMsGrpcOptions } from './grpc.options.util.mjs';
2
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './proto.util.mjs';
3
+ import '@nestjs/microservices';
@@ -0,0 +1,3 @@
1
+ export { getAccountingMsGrpcOptions } from './grpc.options.util.js';
2
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './proto.util.js';
3
+ import '@nestjs/microservices';
@@ -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 utils_exports = {};
17
+ module.exports = __toCommonJS(utils_exports);
18
+ __reExport(utils_exports, require("./grpc.options.util"), module.exports);
19
+ __reExport(utils_exports, require("./proto.util"), module.exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './grpc.options.util';\nexport * from './proto.util';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,0BAAc,gCAFd;AAGA,0BAAc,yBAHd;","names":[]}
@@ -0,0 +1,3 @@
1
+ export * from "./grpc.options.util";
2
+ export * from "./proto.util";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/grpc/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './grpc.options.util';\nexport * from './proto.util';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,18 @@
1
+ declare const findProtosFolder: (startPath: string, upperDepth?: number) => string | null;
2
+ declare const searchProtoFiles: (startPath: string) => {
3
+ filename: string;
4
+ dirname: string;
5
+ package: string;
6
+ service?: string;
7
+ }[];
8
+ declare const getGrpcProtoOptions: (paths: {
9
+ path: string;
10
+ required?: boolean;
11
+ }[]) => {
12
+ packages: any[];
13
+ protoPaths: any[];
14
+ protoDirs: any[];
15
+ };
16
+ declare const protoPath: string;
17
+
18
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles };
@@ -0,0 +1,18 @@
1
+ declare const findProtosFolder: (startPath: string, upperDepth?: number) => string | null;
2
+ declare const searchProtoFiles: (startPath: string) => {
3
+ filename: string;
4
+ dirname: string;
5
+ package: string;
6
+ service?: string;
7
+ }[];
8
+ declare const getGrpcProtoOptions: (paths: {
9
+ path: string;
10
+ required?: boolean;
11
+ }[]) => {
12
+ packages: any[];
13
+ protoPaths: any[];
14
+ protoDirs: any[];
15
+ };
16
+ declare const protoPath: string;
17
+
18
+ export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles };