@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,46 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const projectTrustAccountAllocationRestResSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ projectId: z.ZodString;
6
+ trustAccountId: z.ZodString;
7
+ status: z.ZodNativeEnum<{
8
+ readonly PENDING_APPROVAL: "pending_approval";
9
+ readonly APPROVED: "approved";
10
+ readonly REJECTED: "rejected";
11
+ }>;
12
+ createdBy: z.ZodString;
13
+ createdAt: z.ZodString;
14
+ approvedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ approvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ updatedAt: z.ZodString;
17
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ approverName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ projectId: string;
21
+ trustAccountId: string;
22
+ status: "pending_approval" | "approved" | "rejected";
23
+ id: string;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ createdBy: string;
27
+ approvedBy?: string | null | undefined;
28
+ approvedAt?: string | null | undefined;
29
+ creatorName?: string | null | undefined;
30
+ approverName?: string | null | undefined;
31
+ }, {
32
+ projectId: string;
33
+ trustAccountId: string;
34
+ status: "pending_approval" | "approved" | "rejected";
35
+ id: string;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ createdBy: string;
39
+ approvedBy?: string | null | undefined;
40
+ approvedAt?: string | null | undefined;
41
+ creatorName?: string | null | undefined;
42
+ approverName?: string | null | undefined;
43
+ }>;
44
+ type ProjectTrustAccountAllocationRestRes = z.infer<typeof projectTrustAccountAllocationRestResSchema>;
45
+
46
+ export { type ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema };
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const projectTrustAccountAllocationRestResSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ projectId: z.ZodString;
6
+ trustAccountId: z.ZodString;
7
+ status: z.ZodNativeEnum<{
8
+ readonly PENDING_APPROVAL: "pending_approval";
9
+ readonly APPROVED: "approved";
10
+ readonly REJECTED: "rejected";
11
+ }>;
12
+ createdBy: z.ZodString;
13
+ createdAt: z.ZodString;
14
+ approvedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ approvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ updatedAt: z.ZodString;
17
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ approverName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ projectId: string;
21
+ trustAccountId: string;
22
+ status: "pending_approval" | "approved" | "rejected";
23
+ id: string;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ createdBy: string;
27
+ approvedBy?: string | null | undefined;
28
+ approvedAt?: string | null | undefined;
29
+ creatorName?: string | null | undefined;
30
+ approverName?: string | null | undefined;
31
+ }, {
32
+ projectId: string;
33
+ trustAccountId: string;
34
+ status: "pending_approval" | "approved" | "rejected";
35
+ id: string;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ createdBy: string;
39
+ approvedBy?: string | null | undefined;
40
+ approvedAt?: string | null | undefined;
41
+ creatorName?: string | null | undefined;
42
+ approverName?: string | null | undefined;
43
+ }>;
44
+ type ProjectTrustAccountAllocationRestRes = z.infer<typeof projectTrustAccountAllocationRestResSchema>;
45
+
46
+ export { type ProjectTrustAccountAllocationRestRes, projectTrustAccountAllocationRestResSchema };
@@ -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 project_trust_account_allocation_res_schema_exports = {};
20
+ __export(project_trust_account_allocation_res_schema_exports, {
21
+ projectTrustAccountAllocationRestResSchema: () => projectTrustAccountAllocationRestResSchema
22
+ });
23
+ module.exports = __toCommonJS(project_trust_account_allocation_res_schema_exports);
24
+ var import_zod = require("zod");
25
+ var import_project_trust_account_allocation_status = require("../../constants/project/project-trust-account-allocation-status.constant");
26
+ const projectTrustAccountAllocationRestResSchema = import_zod.z.object({
27
+ id: import_zod.z.string(),
28
+ projectId: import_zod.z.string(),
29
+ trustAccountId: import_zod.z.string(),
30
+ status: import_zod.z.nativeEnum(import_project_trust_account_allocation_status.ProjectTrustAccountAllocationStatus),
31
+ createdBy: import_zod.z.string(),
32
+ createdAt: import_zod.z.string(),
33
+ approvedBy: import_zod.z.string().nullish(),
34
+ approvedAt: import_zod.z.string().nullish(),
35
+ updatedAt: import_zod.z.string(),
36
+ creatorName: import_zod.z.string().nullish(),
37
+ approverName: import_zod.z.string().nullish()
38
+ });
39
+ //# sourceMappingURL=project-trust-account-allocation-res.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport { ProjectTrustAccountAllocationStatus } from '../../constants/project/project-trust-account-allocation-status.constant';\n\nexport const projectTrustAccountAllocationRestResSchema = z.object({\n id: z.string(),\n projectId: z.string(),\n trustAccountId: z.string(),\n status: z.nativeEnum(ProjectTrustAccountAllocationStatus),\n createdBy: z.string(),\n createdAt: z.string(),\n approvedBy: z.string().nullish(),\n approvedAt: z.string().nullish(),\n updatedAt: z.string(),\n creatorName: z.string().nullish(),\n approverName: z.string().nullish(),\n});\n\nexport type ProjectTrustAccountAllocationRestRes = z.infer<typeof projectTrustAccountAllocationRestResSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAClB,qDAAoD;AAE7C,MAAM,6CAA6C,aAAE,OAAO;AAAA,EACjE,IAAI,aAAE,OAAO;AAAA,EACb,WAAW,aAAE,OAAO;AAAA,EACpB,gBAAgB,aAAE,OAAO;AAAA,EACzB,QAAQ,aAAE,WAAW,kFAAmC;AAAA,EACxD,WAAW,aAAE,OAAO;AAAA,EACpB,WAAW,aAAE,OAAO;AAAA,EACpB,YAAY,aAAE,OAAO,EAAE,QAAQ;AAAA,EAC/B,YAAY,aAAE,OAAO,EAAE,QAAQ;AAAA,EAC/B,WAAW,aAAE,OAAO;AAAA,EACpB,aAAa,aAAE,OAAO,EAAE,QAAQ;AAAA,EAChC,cAAc,aAAE,OAAO,EAAE,QAAQ;AACnC,CAAC;","names":[]}
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ import { ProjectTrustAccountAllocationStatus } from "../../constants/project/project-trust-account-allocation-status.constant";
3
+ const projectTrustAccountAllocationRestResSchema = z.object({
4
+ id: z.string(),
5
+ projectId: z.string(),
6
+ trustAccountId: z.string(),
7
+ status: z.nativeEnum(ProjectTrustAccountAllocationStatus),
8
+ createdBy: z.string(),
9
+ createdAt: z.string(),
10
+ approvedBy: z.string().nullish(),
11
+ approvedAt: z.string().nullish(),
12
+ updatedAt: z.string(),
13
+ creatorName: z.string().nullish(),
14
+ approverName: z.string().nullish()
15
+ });
16
+ export {
17
+ projectTrustAccountAllocationRestResSchema
18
+ };
19
+ //# sourceMappingURL=project-trust-account-allocation-res.schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport { ProjectTrustAccountAllocationStatus } from '../../constants/project/project-trust-account-allocation-status.constant';\n\nexport const projectTrustAccountAllocationRestResSchema = z.object({\n id: z.string(),\n projectId: z.string(),\n trustAccountId: z.string(),\n status: z.nativeEnum(ProjectTrustAccountAllocationStatus),\n createdBy: z.string(),\n createdAt: z.string(),\n approvedBy: z.string().nullish(),\n approvedAt: z.string().nullish(),\n updatedAt: z.string(),\n creatorName: z.string().nullish(),\n approverName: z.string().nullish(),\n});\n\nexport type ProjectTrustAccountAllocationRestRes = z.infer<typeof projectTrustAccountAllocationRestResSchema>;\n"],"mappings":"AAAA,SAAS,SAAS;AAClB,SAAS,2CAA2C;AAE7C,MAAM,6CAA6C,EAAE,OAAO;AAAA,EACjE,IAAI,EAAE,OAAO;AAAA,EACb,WAAW,EAAE,OAAO;AAAA,EACpB,gBAAgB,EAAE,OAAO;AAAA,EACzB,QAAQ,EAAE,WAAW,mCAAmC;AAAA,EACxD,WAAW,EAAE,OAAO;AAAA,EACpB,WAAW,EAAE,OAAO;AAAA,EACpB,YAAY,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC/B,YAAY,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC/B,WAAW,EAAE,OAAO;AAAA,EACpB,aAAa,EAAE,OAAO,EAAE,QAAQ;AAAA,EAChC,cAAc,EAAE,OAAO,EAAE,QAAQ;AACnC,CAAC;","names":[]}
@@ -0,0 +1,28 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';
2
+ import { z } from 'zod';
3
+
4
+ declare const createTrustAccountRestReqSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ country: z.ZodEffects<z.ZodString, "Australia", string>;
7
+ stateCode: z.ZodNativeEnum<typeof AuStateCode>;
8
+ accountNumber: z.ZodString;
9
+ bankCode: z.ZodNativeEnum<typeof AuTrustAccountBankCode>;
10
+ bsb: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ country: "Australia";
14
+ stateCode: AuStateCode;
15
+ bankCode: AuTrustAccountBankCode;
16
+ accountNumber: string;
17
+ bsb: string;
18
+ }, {
19
+ name: string;
20
+ country: string;
21
+ stateCode: AuStateCode;
22
+ bankCode: AuTrustAccountBankCode;
23
+ accountNumber: string;
24
+ bsb: string;
25
+ }>;
26
+ type CreateTrustAccountRestReq = z.infer<typeof createTrustAccountRestReqSchema>;
27
+
28
+ export { type CreateTrustAccountRestReq, createTrustAccountRestReqSchema };
@@ -0,0 +1,28 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';
2
+ import { z } from 'zod';
3
+
4
+ declare const createTrustAccountRestReqSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ country: z.ZodEffects<z.ZodString, "Australia", string>;
7
+ stateCode: z.ZodNativeEnum<typeof AuStateCode>;
8
+ accountNumber: z.ZodString;
9
+ bankCode: z.ZodNativeEnum<typeof AuTrustAccountBankCode>;
10
+ bsb: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ country: "Australia";
14
+ stateCode: AuStateCode;
15
+ bankCode: AuTrustAccountBankCode;
16
+ accountNumber: string;
17
+ bsb: string;
18
+ }, {
19
+ name: string;
20
+ country: string;
21
+ stateCode: AuStateCode;
22
+ bankCode: AuTrustAccountBankCode;
23
+ accountNumber: string;
24
+ bsb: string;
25
+ }>;
26
+ type CreateTrustAccountRestReq = z.infer<typeof createTrustAccountRestReqSchema>;
27
+
28
+ export { type CreateTrustAccountRestReq, createTrustAccountRestReqSchema };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var create_trust_account_schema_exports = {};
20
+ __export(create_trust_account_schema_exports, {
21
+ createTrustAccountRestReqSchema: () => createTrustAccountRestReqSchema
22
+ });
23
+ module.exports = __toCommonJS(create_trust_account_schema_exports);
24
+ var import_am_zshared = require("@mikemo-coposit/am-zshared");
25
+ var import_zod = require("zod");
26
+ const createTrustAccountRestReqSchema = import_zod.z.object({
27
+ name: import_zod.z.string().trim().min(1),
28
+ country: import_zod.z.string().refine((val) => val === "Australia", {
29
+ message: "Country must be Australia"
30
+ }),
31
+ stateCode: import_zod.z.nativeEnum(import_am_zshared.AuStateCode),
32
+ accountNumber: import_zod.z.string(),
33
+ bankCode: import_zod.z.nativeEnum(import_am_zshared.AuTrustAccountBankCode),
34
+ bsb: import_zod.z.string().length(6)
35
+ }).strip();
36
+ //# sourceMappingURL=create-trust-account.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/create-trust-account.schema.ts"],"sourcesContent":["import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';\nimport { z } from 'zod';\n\nexport const createTrustAccountRestReqSchema = z.object({\n name: z.string().trim().min(1),\n country: z.string().refine(val => val === 'Australia', {\n message: 'Country must be Australia',\n }),\n stateCode: z.nativeEnum(AuStateCode),\n accountNumber: z.string(),\n bankCode: z.nativeEnum(AuTrustAccountBankCode),\n bsb: z.string().length(6),\n}).strip();\n\nexport type CreateTrustAccountRestReq = z.infer<typeof createTrustAccountRestReqSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAoD;AACpD,iBAAkB;AAEX,MAAM,kCAAkC,aAAE,OAAO;AAAA,EACtD,MAAM,aAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;AAAA,EAC7B,SAAS,aAAE,OAAO,EAAE,OAAO,SAAO,QAAQ,aAAa;AAAA,IACrD,SAAS;AAAA,EACX,CAAC;AAAA,EACD,WAAW,aAAE,WAAW,6BAAW;AAAA,EACnC,eAAe,aAAE,OAAO;AAAA,EACxB,UAAU,aAAE,WAAW,wCAAsB;AAAA,EAC7C,KAAK,aAAE,OAAO,EAAE,OAAO,CAAC;AAC1B,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1,16 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from "@mikemo-coposit/am-zshared";
2
+ import { z } from "zod";
3
+ const createTrustAccountRestReqSchema = z.object({
4
+ name: z.string().trim().min(1),
5
+ country: z.string().refine((val) => val === "Australia", {
6
+ message: "Country must be Australia"
7
+ }),
8
+ stateCode: z.nativeEnum(AuStateCode),
9
+ accountNumber: z.string(),
10
+ bankCode: z.nativeEnum(AuTrustAccountBankCode),
11
+ bsb: z.string().length(6)
12
+ }).strip();
13
+ export {
14
+ createTrustAccountRestReqSchema
15
+ };
16
+ //# sourceMappingURL=create-trust-account.schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/create-trust-account.schema.ts"],"sourcesContent":["import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';\nimport { z } from 'zod';\n\nexport const createTrustAccountRestReqSchema = z.object({\n name: z.string().trim().min(1),\n country: z.string().refine(val => val === 'Australia', {\n message: 'Country must be Australia',\n }),\n stateCode: z.nativeEnum(AuStateCode),\n accountNumber: z.string(),\n bankCode: z.nativeEnum(AuTrustAccountBankCode),\n bsb: z.string().length(6),\n}).strip();\n\nexport type CreateTrustAccountRestReq = z.infer<typeof createTrustAccountRestReqSchema>;\n"],"mappings":"AAAA,SAAS,aAAa,8BAA8B;AACpD,SAAS,SAAS;AAEX,MAAM,kCAAkC,EAAE,OAAO;AAAA,EACtD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;AAAA,EAC7B,SAAS,EAAE,OAAO,EAAE,OAAO,SAAO,QAAQ,aAAa;AAAA,IACrD,SAAS;AAAA,EACX,CAAC;AAAA,EACD,WAAW,EAAE,WAAW,WAAW;AAAA,EACnC,eAAe,EAAE,OAAO;AAAA,EACxB,UAAU,EAAE,WAAW,sBAAsB;AAAA,EAC7C,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;AAC1B,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1,5 @@
1
+ export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './create-trust-account.schema.mjs';
2
+ export { TrustAccountRestRes, trustAccountRestResSchema } from './trust-account-res.schema.mjs';
3
+ export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './update-trust-account.schema.mjs';
4
+ import '@mikemo-coposit/am-zshared';
5
+ import 'zod';
@@ -0,0 +1,5 @@
1
+ export { CreateTrustAccountRestReq, createTrustAccountRestReqSchema } from './create-trust-account.schema.js';
2
+ export { TrustAccountRestRes, trustAccountRestResSchema } from './trust-account-res.schema.js';
3
+ export { UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema } from './update-trust-account.schema.js';
4
+ import '@mikemo-coposit/am-zshared';
5
+ import 'zod';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var trust_account_exports = {};
17
+ module.exports = __toCommonJS(trust_account_exports);
18
+ __reExport(trust_account_exports, require("./create-trust-account.schema"), module.exports);
19
+ __reExport(trust_account_exports, require("./trust-account-res.schema"), module.exports);
20
+ __reExport(trust_account_exports, require("./update-trust-account.schema"), module.exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './create-trust-account.schema';\nexport * from './trust-account-res.schema';\nexport * from './update-trust-account.schema';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,kCAAc,0CAFd;AAGA,kCAAc,uCAHd;AAIA,kCAAc,0CAJd;","names":[]}
@@ -0,0 +1,4 @@
1
+ export * from "./create-trust-account.schema";
2
+ export * from "./trust-account-res.schema";
3
+ export * from "./update-trust-account.schema";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './create-trust-account.schema';\nexport * from './trust-account-res.schema';\nexport * from './update-trust-account.schema';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,31 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';
2
+ import { z } from 'zod';
3
+
4
+ declare const trustAccountRestResSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ country: z.ZodString;
8
+ stateCode: z.ZodNativeEnum<typeof AuStateCode>;
9
+ bankCode: z.ZodNativeEnum<typeof AuTrustAccountBankCode>;
10
+ accountNumber: z.ZodEffects<z.ZodString, string, string>;
11
+ bsb: z.ZodEffects<z.ZodString, string, string>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ name: string;
15
+ country: string;
16
+ stateCode: AuStateCode;
17
+ bankCode: AuTrustAccountBankCode;
18
+ accountNumber: string;
19
+ bsb: string;
20
+ }, {
21
+ id: string;
22
+ name: string;
23
+ country: string;
24
+ stateCode: AuStateCode;
25
+ bankCode: AuTrustAccountBankCode;
26
+ accountNumber: string;
27
+ bsb: string;
28
+ }>;
29
+ type TrustAccountRestRes = z.infer<typeof trustAccountRestResSchema>;
30
+
31
+ export { type TrustAccountRestRes, trustAccountRestResSchema };
@@ -0,0 +1,31 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';
2
+ import { z } from 'zod';
3
+
4
+ declare const trustAccountRestResSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ country: z.ZodString;
8
+ stateCode: z.ZodNativeEnum<typeof AuStateCode>;
9
+ bankCode: z.ZodNativeEnum<typeof AuTrustAccountBankCode>;
10
+ accountNumber: z.ZodEffects<z.ZodString, string, string>;
11
+ bsb: z.ZodEffects<z.ZodString, string, string>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ name: string;
15
+ country: string;
16
+ stateCode: AuStateCode;
17
+ bankCode: AuTrustAccountBankCode;
18
+ accountNumber: string;
19
+ bsb: string;
20
+ }, {
21
+ id: string;
22
+ name: string;
23
+ country: string;
24
+ stateCode: AuStateCode;
25
+ bankCode: AuTrustAccountBankCode;
26
+ accountNumber: string;
27
+ bsb: string;
28
+ }>;
29
+ type TrustAccountRestRes = z.infer<typeof trustAccountRestResSchema>;
30
+
31
+ export { type TrustAccountRestRes, trustAccountRestResSchema };
@@ -0,0 +1,46 @@
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 trust_account_res_schema_exports = {};
20
+ __export(trust_account_res_schema_exports, {
21
+ trustAccountRestResSchema: () => trustAccountRestResSchema
22
+ });
23
+ module.exports = __toCommonJS(trust_account_res_schema_exports);
24
+ var import_am_zshared = require("@mikemo-coposit/am-zshared");
25
+ var import_zod = require("zod");
26
+ var import_mask = require("../../utils/mask");
27
+ const trustAccountRestResSchema = import_zod.z.object({
28
+ id: import_zod.z.string(),
29
+ name: import_zod.z.string().trim(),
30
+ country: import_zod.z.string(),
31
+ stateCode: import_zod.z.nativeEnum(import_am_zshared.AuStateCode),
32
+ bankCode: import_zod.z.nativeEnum(import_am_zshared.AuTrustAccountBankCode),
33
+ accountNumber: import_zod.z.string().transform((arg) => {
34
+ return (0, import_mask.maskString)(arg, {
35
+ visibleStart: 2,
36
+ visibleEnd: 4
37
+ });
38
+ }),
39
+ bsb: import_zod.z.string().transform((arg) => {
40
+ return (0, import_mask.maskString)(arg, {
41
+ visibleStart: 2,
42
+ visibleEnd: 2
43
+ });
44
+ })
45
+ }).strip();
46
+ //# sourceMappingURL=trust-account-res.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/trust-account-res.schema.ts"],"sourcesContent":["import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';\nimport { z } from 'zod';\nimport { maskString } from '../../utils/mask';\n\nexport const trustAccountRestResSchema = z.object({\n id: z.string(),\n name: z.string().trim(),\n country: z.string(),\n stateCode: z.nativeEnum(AuStateCode),\n bankCode: z.nativeEnum(AuTrustAccountBankCode),\n accountNumber: z.string().transform((arg) => {\n return maskString(arg, {\n visibleStart: 2,\n visibleEnd: 4,\n });\n }),\n bsb: z.string().transform((arg) => {\n return maskString(arg, {\n visibleStart: 2,\n visibleEnd: 2,\n });\n }),\n}).strip();\n\nexport type TrustAccountRestRes = z.infer<typeof trustAccountRestResSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAoD;AACpD,iBAAkB;AAClB,kBAA2B;AAEpB,MAAM,4BAA4B,aAAE,OAAO;AAAA,EAChD,IAAI,aAAE,OAAO;AAAA,EACb,MAAM,aAAE,OAAO,EAAE,KAAK;AAAA,EACtB,SAAS,aAAE,OAAO;AAAA,EAClB,WAAW,aAAE,WAAW,6BAAW;AAAA,EACnC,UAAU,aAAE,WAAW,wCAAsB;AAAA,EAC7C,eAAe,aAAE,OAAO,EAAE,UAAU,CAAC,QAAQ;AAC3C,eAAO,wBAAW,KAAK;AAAA,MACrB,cAAc;AAAA,MACd,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC;AAAA,EACD,KAAK,aAAE,OAAO,EAAE,UAAU,CAAC,QAAQ;AACjC,eAAO,wBAAW,KAAK;AAAA,MACrB,cAAc;AAAA,MACd,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC;AACH,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1,26 @@
1
+ import { AuStateCode, AuTrustAccountBankCode } from "@mikemo-coposit/am-zshared";
2
+ import { z } from "zod";
3
+ import { maskString } from "../../utils/mask";
4
+ const trustAccountRestResSchema = z.object({
5
+ id: z.string(),
6
+ name: z.string().trim(),
7
+ country: z.string(),
8
+ stateCode: z.nativeEnum(AuStateCode),
9
+ bankCode: z.nativeEnum(AuTrustAccountBankCode),
10
+ accountNumber: z.string().transform((arg) => {
11
+ return maskString(arg, {
12
+ visibleStart: 2,
13
+ visibleEnd: 4
14
+ });
15
+ }),
16
+ bsb: z.string().transform((arg) => {
17
+ return maskString(arg, {
18
+ visibleStart: 2,
19
+ visibleEnd: 2
20
+ });
21
+ })
22
+ }).strip();
23
+ export {
24
+ trustAccountRestResSchema
25
+ };
26
+ //# sourceMappingURL=trust-account-res.schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/trust-account-res.schema.ts"],"sourcesContent":["import { AuStateCode, AuTrustAccountBankCode } from '@mikemo-coposit/am-zshared';\nimport { z } from 'zod';\nimport { maskString } from '../../utils/mask';\n\nexport const trustAccountRestResSchema = z.object({\n id: z.string(),\n name: z.string().trim(),\n country: z.string(),\n stateCode: z.nativeEnum(AuStateCode),\n bankCode: z.nativeEnum(AuTrustAccountBankCode),\n accountNumber: z.string().transform((arg) => {\n return maskString(arg, {\n visibleStart: 2,\n visibleEnd: 4,\n });\n }),\n bsb: z.string().transform((arg) => {\n return maskString(arg, {\n visibleStart: 2,\n visibleEnd: 2,\n });\n }),\n}).strip();\n\nexport type TrustAccountRestRes = z.infer<typeof trustAccountRestResSchema>;\n"],"mappings":"AAAA,SAAS,aAAa,8BAA8B;AACpD,SAAS,SAAS;AAClB,SAAS,kBAAkB;AAEpB,MAAM,4BAA4B,EAAE,OAAO;AAAA,EAChD,IAAI,EAAE,OAAO;AAAA,EACb,MAAM,EAAE,OAAO,EAAE,KAAK;AAAA,EACtB,SAAS,EAAE,OAAO;AAAA,EAClB,WAAW,EAAE,WAAW,WAAW;AAAA,EACnC,UAAU,EAAE,WAAW,sBAAsB;AAAA,EAC7C,eAAe,EAAE,OAAO,EAAE,UAAU,CAAC,QAAQ;AAC3C,WAAO,WAAW,KAAK;AAAA,MACrB,cAAc;AAAA,MACd,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC;AAAA,EACD,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,QAAQ;AACjC,WAAO,WAAW,KAAK;AAAA,MACrB,cAAc;AAAA,MACd,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC;AACH,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const updateTrustAccountRestReqSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ name: string;
9
+ }, {
10
+ id: string;
11
+ name: string;
12
+ }>;
13
+ type UpdateTrustAccountRestReq = z.infer<typeof updateTrustAccountRestReqSchema>;
14
+
15
+ export { type UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema };
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const updateTrustAccountRestReqSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ name: string;
9
+ }, {
10
+ id: string;
11
+ name: string;
12
+ }>;
13
+ type UpdateTrustAccountRestReq = z.infer<typeof updateTrustAccountRestReqSchema>;
14
+
15
+ export { type UpdateTrustAccountRestReq, updateTrustAccountRestReqSchema };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var update_trust_account_schema_exports = {};
20
+ __export(update_trust_account_schema_exports, {
21
+ updateTrustAccountRestReqSchema: () => updateTrustAccountRestReqSchema
22
+ });
23
+ module.exports = __toCommonJS(update_trust_account_schema_exports);
24
+ var import_zod = require("zod");
25
+ const updateTrustAccountRestReqSchema = import_zod.z.object({
26
+ id: import_zod.z.string(),
27
+ name: import_zod.z.string().trim().min(1)
28
+ }).strip();
29
+ //# sourceMappingURL=update-trust-account.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/update-trust-account.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const updateTrustAccountRestReqSchema = z.object({\n id: z.string(),\n name: z.string().trim().min(1),\n}).strip();\n\nexport type UpdateTrustAccountRestReq = z.infer<typeof updateTrustAccountRestReqSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAEX,MAAM,kCAAkC,aAAE,OAAO;AAAA,EACtD,IAAI,aAAE,OAAO;AAAA,EACb,MAAM,aAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;AAC/B,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ const updateTrustAccountRestReqSchema = z.object({
3
+ id: z.string(),
4
+ name: z.string().trim().min(1)
5
+ }).strip();
6
+ export {
7
+ updateTrustAccountRestReqSchema
8
+ };
9
+ //# sourceMappingURL=update-trust-account.schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/schemas/trust-account/update-trust-account.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const updateTrustAccountRestReqSchema = z.object({\n id: z.string(),\n name: z.string().trim().min(1),\n}).strip();\n\nexport type UpdateTrustAccountRestReq = z.infer<typeof updateTrustAccountRestReqSchema>;\n"],"mappings":"AAAA,SAAS,SAAS;AAEX,MAAM,kCAAkC,EAAE,OAAO;AAAA,EACtD,IAAI,EAAE,OAAO;AAAA,EACb,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;AAC/B,CAAC,EAAE,MAAM;","names":[]}
@@ -0,0 +1 @@
1
+ export { maskString } from './mask.mjs';
@@ -0,0 +1 @@
1
+ export { maskString } from './mask.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 utils_exports = {};
17
+ module.exports = __toCommonJS(utils_exports);
18
+ __reExport(utils_exports, require("./mask"), module.exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../packages/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './mask';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,0BAAc,mBAFd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./mask";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../packages/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './mask';\n"],"mappings":"AAEA,cAAc;","names":[]}
@@ -0,0 +1,7 @@
1
+ declare const maskString: (input: string, options?: {
2
+ visibleStart?: number;
3
+ visibleEnd?: number;
4
+ maskChar?: string;
5
+ }) => string;
6
+
7
+ export { maskString };
@@ -0,0 +1,7 @@
1
+ declare const maskString: (input: string, options?: {
2
+ visibleStart?: number;
3
+ visibleEnd?: number;
4
+ maskChar?: string;
5
+ }) => string;
6
+
7
+ export { maskString };