@things-factory/accounting 9.0.0-beta.27 → 9.0.0-beta.29

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 (402) hide show
  1. package/dist-client/activities/activity-book-edit.d.ts +14 -0
  2. package/dist-client/activities/activity-book-edit.js +85 -0
  3. package/dist-client/activities/activity-book-edit.js.map +1 -0
  4. package/dist-client/activities/activity-book-view.d.ts +14 -0
  5. package/dist-client/activities/activity-book-view.js +85 -0
  6. package/dist-client/activities/activity-book-view.js.map +1 -0
  7. package/dist-client/activities/activity-expense-edit.d.ts +14 -0
  8. package/dist-client/activities/activity-expense-edit.js +85 -0
  9. package/dist-client/activities/activity-expense-edit.js.map +1 -0
  10. package/dist-client/activities/activity-expense-view.d.ts +14 -0
  11. package/dist-client/activities/activity-expense-view.js +85 -0
  12. package/dist-client/activities/activity-expense-view.js.map +1 -0
  13. package/dist-client/bootstrap.d.ts +1 -0
  14. package/dist-client/bootstrap.js +8 -0
  15. package/dist-client/bootstrap.js.map +1 -0
  16. package/dist-client/components/accounting-category-selector.d.ts +16 -0
  17. package/dist-client/components/accounting-category-selector.js +134 -0
  18. package/dist-client/components/accounting-category-selector.js.map +1 -0
  19. package/dist-client/components/accounting-category-view.d.ts +14 -0
  20. package/dist-client/components/accounting-category-view.js +81 -0
  21. package/dist-client/components/accounting-category-view.js.map +1 -0
  22. package/dist-client/grist-editors/grist-editor-accounting-category-object.d.ts +11 -0
  23. package/dist-client/grist-editors/grist-editor-accounting-category-object.js +71 -0
  24. package/dist-client/grist-editors/grist-editor-accounting-category-object.js.map +1 -0
  25. package/dist-client/grist-editors/grist-renderer-accounting-category-object.d.ts +2 -0
  26. package/dist-client/grist-editors/grist-renderer-accounting-category-object.js +9 -0
  27. package/dist-client/grist-editors/grist-renderer-accounting-category-object.js.map +1 -0
  28. package/dist-client/index.d.ts +0 -0
  29. package/dist-client/index.js +2 -0
  30. package/dist-client/index.js.map +1 -0
  31. package/dist-client/pages/account/account-importer.d.ts +22 -0
  32. package/dist-client/pages/account/account-importer.js +100 -0
  33. package/dist-client/pages/account/account-importer.js.map +1 -0
  34. package/dist-client/pages/account/account-list-page.d.ts +63 -0
  35. package/dist-client/pages/account/account-list-page.js +350 -0
  36. package/dist-client/pages/account/account-list-page.js.map +1 -0
  37. package/dist-client/pages/accounting-category/accounting-category-importer.d.ts +22 -0
  38. package/dist-client/pages/accounting-category/accounting-category-importer.js +100 -0
  39. package/dist-client/pages/accounting-category/accounting-category-importer.js.map +1 -0
  40. package/dist-client/pages/accounting-category/accounting-category-list-page.d.ts +63 -0
  41. package/dist-client/pages/accounting-category/accounting-category-list-page.js +354 -0
  42. package/dist-client/pages/accounting-category/accounting-category-list-page.js.map +1 -0
  43. package/dist-client/pages/accounting-category/accounting-category-tree-page.d.ts +46 -0
  44. package/dist-client/pages/accounting-category/accounting-category-tree-page.js +329 -0
  45. package/dist-client/pages/accounting-category/accounting-category-tree-page.js.map +1 -0
  46. package/dist-client/pages/accounting-document/accounting-document-importer.d.ts +23 -0
  47. package/dist-client/pages/accounting-document/accounting-document-importer.js +93 -0
  48. package/dist-client/pages/accounting-document/accounting-document-importer.js.map +1 -0
  49. package/dist-client/pages/accounting-document/accounting-document-list-page.d.ts +66 -0
  50. package/dist-client/pages/accounting-document/accounting-document-list-page.js +370 -0
  51. package/dist-client/pages/accounting-document/accounting-document-list-page.js.map +1 -0
  52. package/dist-client/pages/bank/bank-importer.d.ts +23 -0
  53. package/dist-client/pages/bank/bank-importer.js +93 -0
  54. package/dist-client/pages/bank/bank-importer.js.map +1 -0
  55. package/dist-client/pages/bank/bank-list-page.d.ts +66 -0
  56. package/dist-client/pages/bank/bank-list-page.js +370 -0
  57. package/dist-client/pages/bank/bank-list-page.js.map +1 -0
  58. package/dist-client/pages/bank-account/bank-account-importer.d.ts +23 -0
  59. package/dist-client/pages/bank-account/bank-account-importer.js +93 -0
  60. package/dist-client/pages/bank-account/bank-account-importer.js.map +1 -0
  61. package/dist-client/pages/bank-account/bank-account-list-page.d.ts +66 -0
  62. package/dist-client/pages/bank-account/bank-account-list-page.js +370 -0
  63. package/dist-client/pages/bank-account/bank-account-list-page.js.map +1 -0
  64. package/dist-client/pages/financial-institution/financial-institution-importer.d.ts +23 -0
  65. package/dist-client/pages/financial-institution/financial-institution-importer.js +93 -0
  66. package/dist-client/pages/financial-institution/financial-institution-importer.js.map +1 -0
  67. package/dist-client/pages/financial-institution/financial-institution-list-page.d.ts +66 -0
  68. package/dist-client/pages/financial-institution/financial-institution-list-page.js +370 -0
  69. package/dist-client/pages/financial-institution/financial-institution-list-page.js.map +1 -0
  70. package/dist-client/pages/financial-statement/financial-statement-importer.d.ts +22 -0
  71. package/dist-client/pages/financial-statement/financial-statement-importer.js +100 -0
  72. package/dist-client/pages/financial-statement/financial-statement-importer.js.map +1 -0
  73. package/dist-client/pages/financial-statement/financial-statement-list-page.d.ts +63 -0
  74. package/dist-client/pages/financial-statement/financial-statement-list-page.js +324 -0
  75. package/dist-client/pages/financial-statement/financial-statement-list-page.js.map +1 -0
  76. package/dist-client/pages/fiscal-month/fiscal-month-importer.d.ts +23 -0
  77. package/dist-client/pages/fiscal-month/fiscal-month-importer.js +93 -0
  78. package/dist-client/pages/fiscal-month/fiscal-month-importer.js.map +1 -0
  79. package/dist-client/pages/fiscal-month/fiscal-month-list-page.d.ts +66 -0
  80. package/dist-client/pages/fiscal-month/fiscal-month-list-page.js +370 -0
  81. package/dist-client/pages/fiscal-month/fiscal-month-list-page.js.map +1 -0
  82. package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.d.ts +23 -0
  83. package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js +93 -0
  84. package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js.map +1 -0
  85. package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.d.ts +66 -0
  86. package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js +370 -0
  87. package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js.map +1 -0
  88. package/dist-client/pages/fiscal-year/fiscal-year-importer.d.ts +23 -0
  89. package/dist-client/pages/fiscal-year/fiscal-year-importer.js +93 -0
  90. package/dist-client/pages/fiscal-year/fiscal-year-importer.js.map +1 -0
  91. package/dist-client/pages/fiscal-year/fiscal-year-list-page.d.ts +66 -0
  92. package/dist-client/pages/fiscal-year/fiscal-year-list-page.js +370 -0
  93. package/dist-client/pages/fiscal-year/fiscal-year-list-page.js.map +1 -0
  94. package/dist-client/pages/income-statement/income-statement-importer.d.ts +22 -0
  95. package/dist-client/pages/income-statement/income-statement-importer.js +100 -0
  96. package/dist-client/pages/income-statement/income-statement-importer.js.map +1 -0
  97. package/dist-client/pages/income-statement/income-statement-list-page.d.ts +63 -0
  98. package/dist-client/pages/income-statement/income-statement-list-page.js +324 -0
  99. package/dist-client/pages/income-statement/income-statement-list-page.js.map +1 -0
  100. package/dist-client/pages/payment/payment-importer.d.ts +23 -0
  101. package/dist-client/pages/payment/payment-importer.js +93 -0
  102. package/dist-client/pages/payment/payment-importer.js.map +1 -0
  103. package/dist-client/pages/payment/payment-list-page.d.ts +66 -0
  104. package/dist-client/pages/payment/payment-list-page.js +370 -0
  105. package/dist-client/pages/payment/payment-list-page.js.map +1 -0
  106. package/dist-client/pages/transaction/transaction-importer.d.ts +22 -0
  107. package/dist-client/pages/transaction/transaction-importer.js +100 -0
  108. package/dist-client/pages/transaction/transaction-importer.js.map +1 -0
  109. package/dist-client/pages/transaction/transaction-list-page.d.ts +63 -0
  110. package/dist-client/pages/transaction/transaction-list-page.js +324 -0
  111. package/dist-client/pages/transaction/transaction-list-page.js.map +1 -0
  112. package/dist-client/route.d.ts +1 -0
  113. package/dist-client/route.js +29 -0
  114. package/dist-client/route.js.map +1 -0
  115. package/dist-client/tsconfig.tsbuildinfo +1 -0
  116. package/dist-client/types/accounting-category.d.ts +16 -0
  117. package/dist-client/types/accounting-category.js +3 -0
  118. package/dist-client/types/accounting-category.js.map +1 -0
  119. package/dist-client/types/index.d.ts +1 -0
  120. package/dist-client/types/index.js +2 -0
  121. package/dist-client/types/index.js.map +1 -0
  122. package/dist-server/activities/activity-book.d.ts +58 -0
  123. package/dist-server/activities/activity-book.js +163 -0
  124. package/dist-server/activities/activity-book.js.map +1 -0
  125. package/dist-server/activities/activity-expense.d.ts +58 -0
  126. package/dist-server/activities/activity-expense.js +150 -0
  127. package/dist-server/activities/activity-expense.js.map +1 -0
  128. package/dist-server/activities/index.d.ts +1 -0
  129. package/dist-server/activities/index.js +19 -0
  130. package/dist-server/activities/index.js.map +1 -0
  131. package/dist-server/controllers/index.d.ts +1 -0
  132. package/dist-server/controllers/index.js +5 -0
  133. package/dist-server/controllers/index.js.map +1 -0
  134. package/dist-server/controllers/summary-statements.d.ts +4 -0
  135. package/dist-server/controllers/summary-statements.js +149 -0
  136. package/dist-server/controllers/summary-statements.js.map +1 -0
  137. package/dist-server/index.d.ts +5 -0
  138. package/dist-server/index.js +9 -0
  139. package/dist-server/index.js.map +1 -0
  140. package/dist-server/middlewares/index.d.ts +1 -0
  141. package/dist-server/middlewares/index.js +7 -0
  142. package/dist-server/middlewares/index.js.map +1 -0
  143. package/dist-server/migrations/1725200507196-seed-fiscal-entities.d.ts +5 -0
  144. package/dist-server/migrations/1725200507196-seed-fiscal-entities.js +95 -0
  145. package/dist-server/migrations/1725200507196-seed-fiscal-entities.js.map +1 -0
  146. package/dist-server/migrations/1725201467183-seed-accounts.d.ts +5 -0
  147. package/dist-server/migrations/1725201467183-seed-accounts.js +318 -0
  148. package/dist-server/migrations/1725201467183-seed-accounts.js.map +1 -0
  149. package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +5 -0
  150. package/dist-server/migrations/1725201567284-seed-country-codes.js +248 -0
  151. package/dist-server/migrations/1725201567284-seed-country-codes.js.map +1 -0
  152. package/dist-server/migrations/1725201667385-seed-financial-institutions.d.ts +5 -0
  153. package/dist-server/migrations/1725201667385-seed-financial-institutions.js +348 -0
  154. package/dist-server/migrations/1725201667385-seed-financial-institutions.js.map +1 -0
  155. package/dist-server/migrations/index.d.ts +1 -0
  156. package/dist-server/migrations/index.js +12 -0
  157. package/dist-server/migrations/index.js.map +1 -0
  158. package/dist-server/routes.d.ts +0 -0
  159. package/dist-server/routes.js +24 -0
  160. package/dist-server/routes.js.map +1 -0
  161. package/dist-server/service/account/account-history.d.ts +26 -0
  162. package/dist-server/service/account/account-history.js +128 -0
  163. package/dist-server/service/account/account-history.js.map +1 -0
  164. package/dist-server/service/account/account-mutation.d.ts +10 -0
  165. package/dist-server/service/account/account-mutation.js +134 -0
  166. package/dist-server/service/account/account-mutation.js.map +1 -0
  167. package/dist-server/service/account/account-query.d.ts +11 -0
  168. package/dist-server/service/account/account-query.js +81 -0
  169. package/dist-server/service/account/account-query.js.map +1 -0
  170. package/dist-server/service/account/account-type.d.ts +17 -0
  171. package/dist-server/service/account/account-type.js +65 -0
  172. package/dist-server/service/account/account-type.js.map +1 -0
  173. package/dist-server/service/account/account.d.ts +22 -0
  174. package/dist-server/service/account/account.js +113 -0
  175. package/dist-server/service/account/account.js.map +1 -0
  176. package/dist-server/service/account/event-subscriber.d.ts +7 -0
  177. package/dist-server/service/account/event-subscriber.js +21 -0
  178. package/dist-server/service/account/event-subscriber.js.map +1 -0
  179. package/dist-server/service/account/index.d.ts +7 -0
  180. package/dist-server/service/account/index.js +12 -0
  181. package/dist-server/service/account/index.js.map +1 -0
  182. package/dist-server/service/accounting-category/accounting-category-history.d.ts +26 -0
  183. package/dist-server/service/accounting-category/accounting-category-history.js +141 -0
  184. package/dist-server/service/accounting-category/accounting-category-history.js.map +1 -0
  185. package/dist-server/service/accounting-category/accounting-category-mutation.d.ts +10 -0
  186. package/dist-server/service/accounting-category/accounting-category-mutation.js +136 -0
  187. package/dist-server/service/accounting-category/accounting-category-mutation.js.map +1 -0
  188. package/dist-server/service/accounting-category/accounting-category-query.d.ts +12 -0
  189. package/dist-server/service/accounting-category/accounting-category-query.js +102 -0
  190. package/dist-server/service/accounting-category/accounting-category-query.js.map +1 -0
  191. package/dist-server/service/accounting-category/accounting-category-type.d.ts +19 -0
  192. package/dist-server/service/accounting-category/accounting-category-type.js +73 -0
  193. package/dist-server/service/accounting-category/accounting-category-type.js.map +1 -0
  194. package/dist-server/service/accounting-category/accounting-category.d.ts +21 -0
  195. package/dist-server/service/accounting-category/accounting-category.js +105 -0
  196. package/dist-server/service/accounting-category/accounting-category.js.map +1 -0
  197. package/dist-server/service/accounting-category/event-subscriber.d.ts +7 -0
  198. package/dist-server/service/accounting-category/event-subscriber.js +21 -0
  199. package/dist-server/service/accounting-category/event-subscriber.js.map +1 -0
  200. package/dist-server/service/accounting-category/index.d.ts +7 -0
  201. package/dist-server/service/accounting-category/index.js +12 -0
  202. package/dist-server/service/accounting-category/index.js.map +1 -0
  203. package/dist-server/service/accounting-document/accounting-document-history.d.ts +26 -0
  204. package/dist-server/service/accounting-document/accounting-document-history.js +134 -0
  205. package/dist-server/service/accounting-document/accounting-document-history.js.map +1 -0
  206. package/dist-server/service/accounting-document/accounting-document-mutation.d.ts +10 -0
  207. package/dist-server/service/accounting-document/accounting-document-mutation.js +128 -0
  208. package/dist-server/service/accounting-document/accounting-document-mutation.js.map +1 -0
  209. package/dist-server/service/accounting-document/accounting-document-query.d.ts +11 -0
  210. package/dist-server/service/accounting-document/accounting-document-query.js +79 -0
  211. package/dist-server/service/accounting-document/accounting-document-query.js.map +1 -0
  212. package/dist-server/service/accounting-document/accounting-document-type.d.ts +20 -0
  213. package/dist-server/service/accounting-document/accounting-document-type.js +74 -0
  214. package/dist-server/service/accounting-document/accounting-document-type.js.map +1 -0
  215. package/dist-server/service/accounting-document/accounting-document.d.ts +21 -0
  216. package/dist-server/service/accounting-document/accounting-document.js +104 -0
  217. package/dist-server/service/accounting-document/accounting-document.js.map +1 -0
  218. package/dist-server/service/accounting-document/event-subscriber.d.ts +7 -0
  219. package/dist-server/service/accounting-document/event-subscriber.js +21 -0
  220. package/dist-server/service/accounting-document/event-subscriber.js.map +1 -0
  221. package/dist-server/service/accounting-document/index.d.ts +7 -0
  222. package/dist-server/service/accounting-document/index.js +12 -0
  223. package/dist-server/service/accounting-document/index.js.map +1 -0
  224. package/dist-server/service/bank-account/bank-account-history.d.ts +34 -0
  225. package/dist-server/service/bank-account/bank-account-history.js +172 -0
  226. package/dist-server/service/bank-account/bank-account-history.js.map +1 -0
  227. package/dist-server/service/bank-account/bank-account-mutation.d.ts +10 -0
  228. package/dist-server/service/bank-account/bank-account-mutation.js +128 -0
  229. package/dist-server/service/bank-account/bank-account-mutation.js.map +1 -0
  230. package/dist-server/service/bank-account/bank-account-query.d.ts +11 -0
  231. package/dist-server/service/bank-account/bank-account-query.js +79 -0
  232. package/dist-server/service/bank-account/bank-account-query.js.map +1 -0
  233. package/dist-server/service/bank-account/bank-account-type.d.ts +39 -0
  234. package/dist-server/service/bank-account/bank-account-type.js +153 -0
  235. package/dist-server/service/bank-account/bank-account-type.js.map +1 -0
  236. package/dist-server/service/bank-account/bank-account.d.ts +38 -0
  237. package/dist-server/service/bank-account/bank-account.js +164 -0
  238. package/dist-server/service/bank-account/bank-account.js.map +1 -0
  239. package/dist-server/service/bank-account/event-subscriber.d.ts +7 -0
  240. package/dist-server/service/bank-account/event-subscriber.js +21 -0
  241. package/dist-server/service/bank-account/event-subscriber.js.map +1 -0
  242. package/dist-server/service/bank-account/index.d.ts +7 -0
  243. package/dist-server/service/bank-account/index.js +12 -0
  244. package/dist-server/service/bank-account/index.js.map +1 -0
  245. package/dist-server/service/common-type.d.ts +5 -0
  246. package/dist-server/service/common-type.js +15 -0
  247. package/dist-server/service/common-type.js.map +1 -0
  248. package/dist-server/service/financial-institution/financial-institution-mutation.d.ts +10 -0
  249. package/dist-server/service/financial-institution/financial-institution-mutation.js +169 -0
  250. package/dist-server/service/financial-institution/financial-institution-mutation.js.map +1 -0
  251. package/dist-server/service/financial-institution/financial-institution-query.d.ts +12 -0
  252. package/dist-server/service/financial-institution/financial-institution-query.js +97 -0
  253. package/dist-server/service/financial-institution/financial-institution-query.js.map +1 -0
  254. package/dist-server/service/financial-institution/financial-institution-type.d.ts +32 -0
  255. package/dist-server/service/financial-institution/financial-institution-type.js +126 -0
  256. package/dist-server/service/financial-institution/financial-institution-type.js.map +1 -0
  257. package/dist-server/service/financial-institution/financial-institution.d.ts +34 -0
  258. package/dist-server/service/financial-institution/financial-institution.js +137 -0
  259. package/dist-server/service/financial-institution/financial-institution.js.map +1 -0
  260. package/dist-server/service/financial-institution/index.d.ts +6 -0
  261. package/dist-server/service/financial-institution/index.js +10 -0
  262. package/dist-server/service/financial-institution/index.js.map +1 -0
  263. package/dist-server/service/financial-statement/event-subscriber.d.ts +7 -0
  264. package/dist-server/service/financial-statement/event-subscriber.js +21 -0
  265. package/dist-server/service/financial-statement/event-subscriber.js.map +1 -0
  266. package/dist-server/service/financial-statement/financial-statement-history.d.ts +27 -0
  267. package/dist-server/service/financial-statement/financial-statement-history.js +141 -0
  268. package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -0
  269. package/dist-server/service/financial-statement/financial-statement-line-item.d.ts +19 -0
  270. package/dist-server/service/financial-statement/financial-statement-line-item.js +94 -0
  271. package/dist-server/service/financial-statement/financial-statement-line-item.js.map +1 -0
  272. package/dist-server/service/financial-statement/financial-statement-mutation.d.ts +10 -0
  273. package/dist-server/service/financial-statement/financial-statement-mutation.js +136 -0
  274. package/dist-server/service/financial-statement/financial-statement-mutation.js.map +1 -0
  275. package/dist-server/service/financial-statement/financial-statement-query.d.ts +11 -0
  276. package/dist-server/service/financial-statement/financial-statement-query.js +81 -0
  277. package/dist-server/service/financial-statement/financial-statement-query.js.map +1 -0
  278. package/dist-server/service/financial-statement/financial-statement-type.d.ts +20 -0
  279. package/dist-server/service/financial-statement/financial-statement-type.js +77 -0
  280. package/dist-server/service/financial-statement/financial-statement-type.js.map +1 -0
  281. package/dist-server/service/financial-statement/financial-statement.d.ts +27 -0
  282. package/dist-server/service/financial-statement/financial-statement.js +132 -0
  283. package/dist-server/service/financial-statement/financial-statement.js.map +1 -0
  284. package/dist-server/service/financial-statement/index.d.ts +8 -0
  285. package/dist-server/service/financial-statement/index.js +13 -0
  286. package/dist-server/service/financial-statement/index.js.map +1 -0
  287. package/dist-server/service/fiscal-month/fiscal-month-mutation.d.ts +10 -0
  288. package/dist-server/service/fiscal-month/fiscal-month-mutation.js +134 -0
  289. package/dist-server/service/fiscal-month/fiscal-month-mutation.js.map +1 -0
  290. package/dist-server/service/fiscal-month/fiscal-month-query.d.ts +11 -0
  291. package/dist-server/service/fiscal-month/fiscal-month-query.js +83 -0
  292. package/dist-server/service/fiscal-month/fiscal-month-query.js.map +1 -0
  293. package/dist-server/service/fiscal-month/fiscal-month-type.d.ts +26 -0
  294. package/dist-server/service/fiscal-month/fiscal-month-type.js +98 -0
  295. package/dist-server/service/fiscal-month/fiscal-month-type.js.map +1 -0
  296. package/dist-server/service/fiscal-month/fiscal-month.d.ts +22 -0
  297. package/dist-server/service/fiscal-month/fiscal-month.js +99 -0
  298. package/dist-server/service/fiscal-month/fiscal-month.js.map +1 -0
  299. package/dist-server/service/fiscal-month/index.d.ts +6 -0
  300. package/dist-server/service/fiscal-month/index.js +10 -0
  301. package/dist-server/service/fiscal-month/index.js.map +1 -0
  302. package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.d.ts +10 -0
  303. package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js +134 -0
  304. package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js.map +1 -0
  305. package/dist-server/service/fiscal-quarter/fiscal-quarter-query.d.ts +11 -0
  306. package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js +85 -0
  307. package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js.map +1 -0
  308. package/dist-server/service/fiscal-quarter/fiscal-quarter-type.d.ts +24 -0
  309. package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js +90 -0
  310. package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js.map +1 -0
  311. package/dist-server/service/fiscal-quarter/fiscal-quarter.d.ts +21 -0
  312. package/dist-server/service/fiscal-quarter/fiscal-quarter.js +94 -0
  313. package/dist-server/service/fiscal-quarter/fiscal-quarter.js.map +1 -0
  314. package/dist-server/service/fiscal-quarter/index.d.ts +6 -0
  315. package/dist-server/service/fiscal-quarter/index.js +10 -0
  316. package/dist-server/service/fiscal-quarter/index.js.map +1 -0
  317. package/dist-server/service/fiscal-year/fiscal-year-mutation.d.ts +10 -0
  318. package/dist-server/service/fiscal-year/fiscal-year-mutation.js +134 -0
  319. package/dist-server/service/fiscal-year/fiscal-year-mutation.js.map +1 -0
  320. package/dist-server/service/fiscal-year/fiscal-year-query.d.ts +11 -0
  321. package/dist-server/service/fiscal-year/fiscal-year-query.js +81 -0
  322. package/dist-server/service/fiscal-year/fiscal-year-query.js.map +1 -0
  323. package/dist-server/service/fiscal-year/fiscal-year-type.d.ts +22 -0
  324. package/dist-server/service/fiscal-year/fiscal-year-type.js +82 -0
  325. package/dist-server/service/fiscal-year/fiscal-year-type.js.map +1 -0
  326. package/dist-server/service/fiscal-year/fiscal-year.d.ts +20 -0
  327. package/dist-server/service/fiscal-year/fiscal-year.js +89 -0
  328. package/dist-server/service/fiscal-year/fiscal-year.js.map +1 -0
  329. package/dist-server/service/fiscal-year/index.d.ts +6 -0
  330. package/dist-server/service/fiscal-year/index.js +10 -0
  331. package/dist-server/service/fiscal-year/index.js.map +1 -0
  332. package/dist-server/service/income-statement/event-subscriber.d.ts +7 -0
  333. package/dist-server/service/income-statement/event-subscriber.js +21 -0
  334. package/dist-server/service/income-statement/event-subscriber.js.map +1 -0
  335. package/dist-server/service/income-statement/income-statement-history.d.ts +28 -0
  336. package/dist-server/service/income-statement/income-statement-history.js +146 -0
  337. package/dist-server/service/income-statement/income-statement-history.js.map +1 -0
  338. package/dist-server/service/income-statement/income-statement-line-item.d.ts +19 -0
  339. package/dist-server/service/income-statement/income-statement-line-item.js +96 -0
  340. package/dist-server/service/income-statement/income-statement-line-item.js.map +1 -0
  341. package/dist-server/service/income-statement/income-statement-mutation.d.ts +10 -0
  342. package/dist-server/service/income-statement/income-statement-mutation.js +136 -0
  343. package/dist-server/service/income-statement/income-statement-mutation.js.map +1 -0
  344. package/dist-server/service/income-statement/income-statement-query.d.ts +11 -0
  345. package/dist-server/service/income-statement/income-statement-query.js +81 -0
  346. package/dist-server/service/income-statement/income-statement-query.js.map +1 -0
  347. package/dist-server/service/income-statement/income-statement-type.d.ts +20 -0
  348. package/dist-server/service/income-statement/income-statement-type.js +77 -0
  349. package/dist-server/service/income-statement/income-statement-type.js.map +1 -0
  350. package/dist-server/service/income-statement/income-statement.d.ts +28 -0
  351. package/dist-server/service/income-statement/income-statement.js +137 -0
  352. package/dist-server/service/income-statement/income-statement.js.map +1 -0
  353. package/dist-server/service/income-statement/index.d.ts +8 -0
  354. package/dist-server/service/income-statement/index.js +13 -0
  355. package/dist-server/service/income-statement/index.js.map +1 -0
  356. package/dist-server/service/index.d.ts +16 -0
  357. package/dist-server/service/index.js +74 -0
  358. package/dist-server/service/index.js.map +1 -0
  359. package/dist-server/service/payment/event-subscriber.d.ts +7 -0
  360. package/dist-server/service/payment/event-subscriber.js +21 -0
  361. package/dist-server/service/payment/event-subscriber.js.map +1 -0
  362. package/dist-server/service/payment/index.d.ts +7 -0
  363. package/dist-server/service/payment/index.js +12 -0
  364. package/dist-server/service/payment/index.js.map +1 -0
  365. package/dist-server/service/payment/payment-history.d.ts +37 -0
  366. package/dist-server/service/payment/payment-history.js +179 -0
  367. package/dist-server/service/payment/payment-history.js.map +1 -0
  368. package/dist-server/service/payment/payment-mutation.d.ts +10 -0
  369. package/dist-server/service/payment/payment-mutation.js +134 -0
  370. package/dist-server/service/payment/payment-mutation.js.map +1 -0
  371. package/dist-server/service/payment/payment-query.d.ts +11 -0
  372. package/dist-server/service/payment/payment-query.js +81 -0
  373. package/dist-server/service/payment/payment-query.js.map +1 -0
  374. package/dist-server/service/payment/payment-type.d.ts +30 -0
  375. package/dist-server/service/payment/payment-type.js +114 -0
  376. package/dist-server/service/payment/payment-type.js.map +1 -0
  377. package/dist-server/service/payment/payment.d.ts +42 -0
  378. package/dist-server/service/payment/payment.js +181 -0
  379. package/dist-server/service/payment/payment.js.map +1 -0
  380. package/dist-server/service/transaction/event-subscriber.d.ts +7 -0
  381. package/dist-server/service/transaction/event-subscriber.js +21 -0
  382. package/dist-server/service/transaction/event-subscriber.js.map +1 -0
  383. package/dist-server/service/transaction/index.d.ts +8 -0
  384. package/dist-server/service/transaction/index.js +12 -0
  385. package/dist-server/service/transaction/index.js.map +1 -0
  386. package/dist-server/service/transaction/transaction-history.d.ts +36 -0
  387. package/dist-server/service/transaction/transaction-history.js +184 -0
  388. package/dist-server/service/transaction/transaction-history.js.map +1 -0
  389. package/dist-server/service/transaction/transaction-mutation.d.ts +10 -0
  390. package/dist-server/service/transaction/transaction-mutation.js +134 -0
  391. package/dist-server/service/transaction/transaction-mutation.js.map +1 -0
  392. package/dist-server/service/transaction/transaction-query.d.ts +11 -0
  393. package/dist-server/service/transaction/transaction-query.js +81 -0
  394. package/dist-server/service/transaction/transaction-query.js.map +1 -0
  395. package/dist-server/service/transaction/transaction-type.d.ts +19 -0
  396. package/dist-server/service/transaction/transaction-type.js +73 -0
  397. package/dist-server/service/transaction/transaction-type.js.map +1 -0
  398. package/dist-server/service/transaction/transaction.d.ts +57 -0
  399. package/dist-server/service/transaction/transaction.js +241 -0
  400. package/dist-server/service/transaction/transaction.js.map +1 -0
  401. package/dist-server/tsconfig.tsbuildinfo +1 -0
  402. package/package.json +5 -5
@@ -0,0 +1,32 @@
1
+ import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
2
+ import { FinancialInstitution, FinancialInstitutionType } from './financial-institution';
3
+ export declare class NewFinancialInstitution {
4
+ name: string;
5
+ description?: string;
6
+ type: FinancialInstitutionType;
7
+ swiftCode?: string;
8
+ country?: string;
9
+ contactNumber?: string;
10
+ website?: string;
11
+ address?: string;
12
+ email?: string;
13
+ thumbnail?: FileUpload;
14
+ }
15
+ export declare class FinancialInstitutionPatch {
16
+ id?: string;
17
+ name?: string;
18
+ description?: string;
19
+ type: FinancialInstitutionType;
20
+ swiftCode?: string;
21
+ country?: string;
22
+ contactNumber?: string;
23
+ website?: string;
24
+ address?: string;
25
+ email?: string;
26
+ thumbnail?: FileUpload;
27
+ cuFlag?: string;
28
+ }
29
+ export declare class FinancialInstitutionList {
30
+ items: FinancialInstitution[];
31
+ total: number;
32
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialInstitutionList = exports.FinancialInstitutionPatch = exports.NewFinancialInstitution = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const GraphQLUpload_js_1 = tslib_1.__importDefault(require("graphql-upload/GraphQLUpload.js"));
6
+ const type_graphql_1 = require("type-graphql");
7
+ const financial_institution_1 = require("./financial-institution");
8
+ let NewFinancialInstitution = class NewFinancialInstitution {
9
+ };
10
+ exports.NewFinancialInstitution = NewFinancialInstitution;
11
+ tslib_1.__decorate([
12
+ (0, type_graphql_1.Field)(),
13
+ tslib_1.__metadata("design:type", String)
14
+ ], NewFinancialInstitution.prototype, "name", void 0);
15
+ tslib_1.__decorate([
16
+ (0, type_graphql_1.Field)({ nullable: true }),
17
+ tslib_1.__metadata("design:type", String)
18
+ ], NewFinancialInstitution.prototype, "description", void 0);
19
+ tslib_1.__decorate([
20
+ (0, type_graphql_1.Field)(type => financial_institution_1.FinancialInstitutionType, {
21
+ description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
22
+ }),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], NewFinancialInstitution.prototype, "type", void 0);
25
+ tslib_1.__decorate([
26
+ (0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
27
+ tslib_1.__metadata("design:type", String)
28
+ ], NewFinancialInstitution.prototype, "swiftCode", void 0);
29
+ tslib_1.__decorate([
30
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
31
+ tslib_1.__metadata("design:type", String)
32
+ ], NewFinancialInstitution.prototype, "country", void 0);
33
+ tslib_1.__decorate([
34
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
35
+ tslib_1.__metadata("design:type", String)
36
+ ], NewFinancialInstitution.prototype, "contactNumber", void 0);
37
+ tslib_1.__decorate([
38
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
39
+ tslib_1.__metadata("design:type", String)
40
+ ], NewFinancialInstitution.prototype, "website", void 0);
41
+ tslib_1.__decorate([
42
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
43
+ tslib_1.__metadata("design:type", String)
44
+ ], NewFinancialInstitution.prototype, "address", void 0);
45
+ tslib_1.__decorate([
46
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], NewFinancialInstitution.prototype, "email", void 0);
49
+ tslib_1.__decorate([
50
+ (0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
51
+ tslib_1.__metadata("design:type", Object)
52
+ ], NewFinancialInstitution.prototype, "thumbnail", void 0);
53
+ exports.NewFinancialInstitution = NewFinancialInstitution = tslib_1.__decorate([
54
+ (0, type_graphql_1.InputType)()
55
+ ], NewFinancialInstitution);
56
+ let FinancialInstitutionPatch = class FinancialInstitutionPatch {
57
+ };
58
+ exports.FinancialInstitutionPatch = FinancialInstitutionPatch;
59
+ tslib_1.__decorate([
60
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], FinancialInstitutionPatch.prototype, "id", void 0);
63
+ tslib_1.__decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ tslib_1.__metadata("design:type", String)
66
+ ], FinancialInstitutionPatch.prototype, "name", void 0);
67
+ tslib_1.__decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ tslib_1.__metadata("design:type", String)
70
+ ], FinancialInstitutionPatch.prototype, "description", void 0);
71
+ tslib_1.__decorate([
72
+ (0, type_graphql_1.Field)(type => financial_institution_1.FinancialInstitutionType, {
73
+ description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
74
+ }),
75
+ tslib_1.__metadata("design:type", String)
76
+ ], FinancialInstitutionPatch.prototype, "type", void 0);
77
+ tslib_1.__decorate([
78
+ (0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
79
+ tslib_1.__metadata("design:type", String)
80
+ ], FinancialInstitutionPatch.prototype, "swiftCode", void 0);
81
+ tslib_1.__decorate([
82
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
83
+ tslib_1.__metadata("design:type", String)
84
+ ], FinancialInstitutionPatch.prototype, "country", void 0);
85
+ tslib_1.__decorate([
86
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
87
+ tslib_1.__metadata("design:type", String)
88
+ ], FinancialInstitutionPatch.prototype, "contactNumber", void 0);
89
+ tslib_1.__decorate([
90
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
91
+ tslib_1.__metadata("design:type", String)
92
+ ], FinancialInstitutionPatch.prototype, "website", void 0);
93
+ tslib_1.__decorate([
94
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
95
+ tslib_1.__metadata("design:type", String)
96
+ ], FinancialInstitutionPatch.prototype, "address", void 0);
97
+ tslib_1.__decorate([
98
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
99
+ tslib_1.__metadata("design:type", String)
100
+ ], FinancialInstitutionPatch.prototype, "email", void 0);
101
+ tslib_1.__decorate([
102
+ (0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
103
+ tslib_1.__metadata("design:type", Object)
104
+ ], FinancialInstitutionPatch.prototype, "thumbnail", void 0);
105
+ tslib_1.__decorate([
106
+ (0, type_graphql_1.Field)({ nullable: true }),
107
+ tslib_1.__metadata("design:type", String)
108
+ ], FinancialInstitutionPatch.prototype, "cuFlag", void 0);
109
+ exports.FinancialInstitutionPatch = FinancialInstitutionPatch = tslib_1.__decorate([
110
+ (0, type_graphql_1.InputType)()
111
+ ], FinancialInstitutionPatch);
112
+ let FinancialInstitutionList = class FinancialInstitutionList {
113
+ };
114
+ exports.FinancialInstitutionList = FinancialInstitutionList;
115
+ tslib_1.__decorate([
116
+ (0, type_graphql_1.Field)(type => [financial_institution_1.FinancialInstitution]),
117
+ tslib_1.__metadata("design:type", Array)
118
+ ], FinancialInstitutionList.prototype, "items", void 0);
119
+ tslib_1.__decorate([
120
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
121
+ tslib_1.__metadata("design:type", Number)
122
+ ], FinancialInstitutionList.prototype, "total", void 0);
123
+ exports.FinancialInstitutionList = FinancialInstitutionList = tslib_1.__decorate([
124
+ (0, type_graphql_1.ObjectType)()
125
+ ], FinancialInstitutionList);
126
+ //# sourceMappingURL=financial-institution-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-institution-type.js","sourceRoot":"","sources":["../../../server/service/financial-institution/financial-institution-type.ts"],"names":[],"mappings":";;;;AACA,+FAA2D;AAC3D,+CAAsF;AAItF,mEAAwF;AAGjF,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAgCnC,CAAA;AAhCY,0DAAuB;AAElC;IADC,IAAA,oBAAK,GAAE;;qDACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACN;AAKpB;IAHC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gDAAwB,EAAE;QACvC,WAAW,EAAE,uFAAuF;KACrG,CAAC;;qDAC4B;AAG9B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE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AAE,IAAI,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;;4DAC/D;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;0DAC/D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,6CAA6C,EAAE,CAAC;;gEAChE;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;0DAC/D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;0DAC/D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;;wDAC/D;AAEd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC3B;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACX;oCApCJ,yBAAyB;IADrC,IAAA,wBAAS,GAAE;GACC,yBAAyB,CAqCrC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { FinancialInstitution, FinancialInstitutionType } from './financial-institution'\n\n@InputType()\nexport class NewFinancialInstitution {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type: FinancialInstitutionType\n\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n}\n\n@InputType()\nexport class FinancialInstitutionPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type: FinancialInstitutionType\n\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class FinancialInstitutionList {\n @Field(type => [FinancialInstitution])\n items: FinancialInstitution[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -0,0 +1,34 @@
1
+ import { Domain } from '@things-factory/shell';
2
+ import { User } from '@things-factory/auth-base';
3
+ export declare enum FinancialInstitutionType {
4
+ Bank = "Bank",
5
+ CardCompany = "CardCompany",
6
+ InsuranceCompany = "InsuranceCompany",
7
+ InvestmentCompany = "InvestmentCompany",
8
+ SavingsBank = "SavingsBank",
9
+ CreditUnion = "CreditUnion",
10
+ LoanCompany = "LoanCompany",
11
+ SecuritiesFirm = "SecuritiesFirm"
12
+ }
13
+ export declare class FinancialInstitution {
14
+ readonly id: string;
15
+ domain?: Domain;
16
+ domainId?: string;
17
+ name?: string;
18
+ description?: string;
19
+ type?: FinancialInstitutionType;
20
+ swiftCode?: string;
21
+ country?: string;
22
+ contactNumber?: string;
23
+ website?: string;
24
+ address?: string;
25
+ email?: string;
26
+ createdAt?: Date;
27
+ updatedAt?: Date;
28
+ deletedAt?: Date;
29
+ creator?: User;
30
+ creatorId?: string;
31
+ updater?: User;
32
+ updaterId?: string;
33
+ version?: number;
34
+ }
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialInstitution = exports.FinancialInstitutionType = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const type_graphql_1 = require("type-graphql");
7
+ const shell_1 = require("@things-factory/shell");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ var FinancialInstitutionType;
10
+ (function (FinancialInstitutionType) {
11
+ FinancialInstitutionType["Bank"] = "Bank";
12
+ FinancialInstitutionType["CardCompany"] = "CardCompany";
13
+ FinancialInstitutionType["InsuranceCompany"] = "InsuranceCompany";
14
+ FinancialInstitutionType["InvestmentCompany"] = "InvestmentCompany";
15
+ FinancialInstitutionType["SavingsBank"] = "SavingsBank";
16
+ FinancialInstitutionType["CreditUnion"] = "CreditUnion";
17
+ FinancialInstitutionType["LoanCompany"] = "LoanCompany";
18
+ FinancialInstitutionType["SecuritiesFirm"] = "SecuritiesFirm";
19
+ })(FinancialInstitutionType || (exports.FinancialInstitutionType = FinancialInstitutionType = {}));
20
+ (0, type_graphql_1.registerEnumType)(FinancialInstitutionType, {
21
+ name: 'FinancialInstitutionType',
22
+ description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
23
+ });
24
+ let FinancialInstitution = class FinancialInstitution {
25
+ constructor() {
26
+ this.version = 1;
27
+ }
28
+ };
29
+ exports.FinancialInstitution = FinancialInstitution;
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
32
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
33
+ tslib_1.__metadata("design:type", String)
34
+ ], FinancialInstitution.prototype, "id", void 0);
35
+ tslib_1.__decorate([
36
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
37
+ (0, type_graphql_1.Field)({ nullable: true }),
38
+ tslib_1.__metadata("design:type", shell_1.Domain)
39
+ ], FinancialInstitution.prototype, "domain", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.domain),
42
+ tslib_1.__metadata("design:type", String)
43
+ ], FinancialInstitution.prototype, "domainId", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)(),
46
+ (0, type_graphql_1.Field)({ nullable: true }),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], FinancialInstitution.prototype, "name", void 0);
49
+ tslib_1.__decorate([
50
+ (0, typeorm_1.Column)({ nullable: true }),
51
+ (0, type_graphql_1.Field)({ nullable: true }),
52
+ tslib_1.__metadata("design:type", String)
53
+ ], FinancialInstitution.prototype, "description", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.Column)({ nullable: false }),
56
+ (0, type_graphql_1.Field)(type => FinancialInstitutionType, {
57
+ description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
58
+ }),
59
+ tslib_1.__metadata("design:type", String)
60
+ ], FinancialInstitution.prototype, "type", void 0);
61
+ tslib_1.__decorate([
62
+ (0, typeorm_1.Column)({ nullable: true }),
63
+ (0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
64
+ tslib_1.__metadata("design:type", String)
65
+ ], FinancialInstitution.prototype, "swiftCode", void 0);
66
+ tslib_1.__decorate([
67
+ (0, typeorm_1.Column)({ nullable: true }),
68
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
69
+ tslib_1.__metadata("design:type", String)
70
+ ], FinancialInstitution.prototype, "country", void 0);
71
+ tslib_1.__decorate([
72
+ (0, typeorm_1.Column)({ nullable: true }),
73
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
74
+ tslib_1.__metadata("design:type", String)
75
+ ], FinancialInstitution.prototype, "contactNumber", void 0);
76
+ tslib_1.__decorate([
77
+ (0, typeorm_1.Column)({ nullable: true }),
78
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
79
+ tslib_1.__metadata("design:type", String)
80
+ ], FinancialInstitution.prototype, "website", void 0);
81
+ tslib_1.__decorate([
82
+ (0, typeorm_1.Column)({ nullable: true }),
83
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
84
+ tslib_1.__metadata("design:type", String)
85
+ ], FinancialInstitution.prototype, "address", void 0);
86
+ tslib_1.__decorate([
87
+ (0, typeorm_1.Column)({ nullable: true }),
88
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
89
+ tslib_1.__metadata("design:type", String)
90
+ ], FinancialInstitution.prototype, "email", void 0);
91
+ tslib_1.__decorate([
92
+ (0, typeorm_1.CreateDateColumn)(),
93
+ (0, type_graphql_1.Field)({ nullable: true }),
94
+ tslib_1.__metadata("design:type", Date)
95
+ ], FinancialInstitution.prototype, "createdAt", void 0);
96
+ tslib_1.__decorate([
97
+ (0, typeorm_1.UpdateDateColumn)(),
98
+ (0, type_graphql_1.Field)({ nullable: true }),
99
+ tslib_1.__metadata("design:type", Date)
100
+ ], FinancialInstitution.prototype, "updatedAt", void 0);
101
+ tslib_1.__decorate([
102
+ (0, typeorm_1.DeleteDateColumn)(),
103
+ (0, type_graphql_1.Field)({ nullable: true }),
104
+ tslib_1.__metadata("design:type", Date)
105
+ ], FinancialInstitution.prototype, "deletedAt", void 0);
106
+ tslib_1.__decorate([
107
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
108
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
109
+ tslib_1.__metadata("design:type", auth_base_1.User)
110
+ ], FinancialInstitution.prototype, "creator", void 0);
111
+ tslib_1.__decorate([
112
+ (0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.creator),
113
+ tslib_1.__metadata("design:type", String)
114
+ ], FinancialInstitution.prototype, "creatorId", void 0);
115
+ tslib_1.__decorate([
116
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
117
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
118
+ tslib_1.__metadata("design:type", auth_base_1.User)
119
+ ], FinancialInstitution.prototype, "updater", void 0);
120
+ tslib_1.__decorate([
121
+ (0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.updater),
122
+ tslib_1.__metadata("design:type", String)
123
+ ], FinancialInstitution.prototype, "updaterId", void 0);
124
+ tslib_1.__decorate([
125
+ (0, typeorm_1.VersionColumn)(),
126
+ (0, type_graphql_1.Field)({ nullable: true }),
127
+ tslib_1.__metadata("design:type", Number)
128
+ ], FinancialInstitution.prototype, "version", void 0);
129
+ exports.FinancialInstitution = FinancialInstitution = tslib_1.__decorate([
130
+ (0, typeorm_1.Entity)(),
131
+ (0, typeorm_1.Index)('ix_financial_institution_0', (financialInstitution) => [financialInstitution.domain, financialInstitution.name], {
132
+ where: '"deleted_at" IS NULL',
133
+ unique: true
134
+ }),
135
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for Financial Institution (e.g., Bank, Card Company, Insurance Company, etc.)' })
136
+ ], FinancialInstitution);
137
+ //# sourceMappingURL=financial-institution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-institution.js","sourceRoot":"","sources":["../../../server/service/financial-institution/financial-institution.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAsE;AACtE,iDAA8C;AAC9C,yDAAgD;AAEhD,IAAY,wBASX;AATD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,uDAA2B,CAAA;IAC3B,iEAAqC,CAAA;IACrC,mEAAuC,CAAA;IACvC,uDAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,6DAAiC,CAAA;AACnC,CAAC,EATW,wBAAwB,wCAAxB,wBAAwB,QASnC;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,uFAAuF;CACrG,CAAC,CAAA;AAYK,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAA1B;QA8EL,YAAO,GAAY,CAAC,CAAA;IACtB,CAAC;CAAA,CAAA;AA/EY,oDAAoB;AAGtB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gDACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;oDAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC;;sDACvE;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACb;AAIb;IAFC,IAAA,gBAAM,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AAA,eAAK,EACJ,4BAA4B,EAC5B,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC,EACxG;QACE,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,IAAI;KACb,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sFAAsF,EAAE,CAAC;GACvG,oBAAoB,CA+EhC","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport enum FinancialInstitutionType {\n Bank = 'Bank',\n CardCompany = 'CardCompany',\n InsuranceCompany = 'InsuranceCompany',\n InvestmentCompany = 'InvestmentCompany',\n SavingsBank = 'SavingsBank',\n CreditUnion = 'CreditUnion',\n LoanCompany = 'LoanCompany',\n SecuritiesFirm = 'SecuritiesFirm'\n}\n\nregisterEnumType(FinancialInstitutionType, {\n name: 'FinancialInstitutionType',\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n})\n\n@Entity()\n@Index(\n 'ix_financial_institution_0',\n (financialInstitution: FinancialInstitution) => [financialInstitution.domain, financialInstitution.name],\n {\n where: '\"deleted_at\" IS NULL',\n unique: true\n }\n)\n@ObjectType({ description: 'Entity for Financial Institution (e.g., Bank, Card Company, Insurance Company, etc.)' })\nexport class FinancialInstitution {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: false })\n @Field(type => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type?: FinancialInstitutionType\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.updater)\n updaterId?: string\n\n @VersionColumn()\n @Field({ nullable: true })\n version?: number = 1\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { FinancialInstitution } from './financial-institution';
2
+ import { FinancialInstitutionQuery } from './financial-institution-query';
3
+ import { FinancialInstitutionMutation } from './financial-institution-mutation';
4
+ export declare const entities: (typeof FinancialInstitution)[];
5
+ export declare const resolvers: (typeof FinancialInstitutionMutation | typeof FinancialInstitutionQuery)[];
6
+ export declare const subscribers: any[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.subscribers = exports.resolvers = exports.entities = void 0;
4
+ const financial_institution_1 = require("./financial-institution");
5
+ const financial_institution_query_1 = require("./financial-institution-query");
6
+ const financial_institution_mutation_1 = require("./financial-institution-mutation");
7
+ exports.entities = [financial_institution_1.FinancialInstitution];
8
+ exports.resolvers = [financial_institution_query_1.FinancialInstitutionQuery, financial_institution_mutation_1.FinancialInstitutionMutation];
9
+ exports.subscribers = [];
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/financial-institution/index.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,+EAAyE;AACzE,qFAA+E;AAElE,QAAA,QAAQ,GAAG,CAAC,4CAAoB,CAAC,CAAA;AACjC,QAAA,SAAS,GAAG,CAAC,uDAAyB,EAAE,6DAA4B,CAAC,CAAA;AACrE,QAAA,WAAW,GAAG,EAAE,CAAA","sourcesContent":["import { FinancialInstitution } from './financial-institution'\nimport { FinancialInstitutionQuery } from './financial-institution-query'\nimport { FinancialInstitutionMutation } from './financial-institution-mutation'\n\nexport const entities = [FinancialInstitution]\nexport const resolvers = [FinancialInstitutionQuery, FinancialInstitutionMutation]\nexport const subscribers = []\n"]}
@@ -0,0 +1,7 @@
1
+ import { HistoryEntitySubscriber } from '@operato/typeorm-history';
2
+ import { FinancialStatement } from './financial-statement';
3
+ import { FinancialStatementHistory } from './financial-statement-history';
4
+ export declare class FinancialStatementHistoryEntitySubscriber extends HistoryEntitySubscriber<FinancialStatement, FinancialStatementHistory> {
5
+ get entity(): typeof FinancialStatement;
6
+ get historyEntity(): typeof FinancialStatementHistory;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialStatementHistoryEntitySubscriber = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const typeorm_history_1 = require("@operato/typeorm-history");
7
+ const financial_statement_1 = require("./financial-statement");
8
+ const financial_statement_history_1 = require("./financial-statement-history");
9
+ let FinancialStatementHistoryEntitySubscriber = class FinancialStatementHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
10
+ get entity() {
11
+ return financial_statement_1.FinancialStatement;
12
+ }
13
+ get historyEntity() {
14
+ return financial_statement_history_1.FinancialStatementHistory;
15
+ }
16
+ };
17
+ exports.FinancialStatementHistoryEntitySubscriber = FinancialStatementHistoryEntitySubscriber;
18
+ exports.FinancialStatementHistoryEntitySubscriber = FinancialStatementHistoryEntitySubscriber = tslib_1.__decorate([
19
+ (0, typeorm_1.EventSubscriber)()
20
+ ], FinancialStatementHistoryEntitySubscriber);
21
+ //# sourceMappingURL=event-subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/financial-statement/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,+DAA0D;AAC1D,+EAAyE;AAGlE,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,yCAAsE;IACnI,IAAW,MAAM;QACf,OAAO,wCAAkB,CAAA;IAC3B,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,uDAAyB,CAAA;IAClC,CAAC;CACF,CAAA;AARY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,yBAAe,GAAE;GACL,yCAAyC,CAQrD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { FinancialStatement } from './financial-statement'\nimport { FinancialStatementHistory } from './financial-statement-history'\n\n@EventSubscriber()\nexport class FinancialStatementHistoryEntitySubscriber extends HistoryEntitySubscriber<FinancialStatement, FinancialStatementHistory> {\n public get entity() {\n return FinancialStatement\n }\n\n public get historyEntity() {\n return FinancialStatementHistory\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
2
+ import { User } from '@things-factory/auth-base';
3
+ import { Domain } from '@things-factory/shell';
4
+ import { FinancialStatement } from './financial-statement';
5
+ import { FinancialStatementLineItem } from './financial-statement-line-item';
6
+ export declare class FinancialStatementHistory implements HistoryEntityInterface<FinancialStatement> {
7
+ readonly id: string;
8
+ version?: number;
9
+ domain?: Domain;
10
+ domainId?: string;
11
+ year?: number;
12
+ quarter?: number;
13
+ month?: number;
14
+ asset?: number;
15
+ liability?: number;
16
+ equity?: number;
17
+ lineItems?: FinancialStatementLineItem[];
18
+ createdAt?: Date;
19
+ updatedAt?: Date;
20
+ deletedAt?: Date;
21
+ creator?: User;
22
+ creatorId?: string;
23
+ updater?: User;
24
+ updaterId?: string;
25
+ originalId: string;
26
+ action: HistoryActionType;
27
+ }
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialStatementHistory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
7
+ const typeorm_history_1 = require("@operato/typeorm-history");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ const env_1 = require("@things-factory/env");
10
+ const shell_1 = require("@things-factory/shell");
11
+ const financial_statement_line_item_1 = require("./financial-statement-line-item");
12
+ const ORMCONFIG = env_1.config.get('ormconfig', {});
13
+ const DATABASE_TYPE = ORMCONFIG.type;
14
+ let FinancialStatementHistory = class FinancialStatementHistory {
15
+ constructor() {
16
+ this.version = 1;
17
+ }
18
+ };
19
+ exports.FinancialStatementHistory = FinancialStatementHistory;
20
+ tslib_1.__decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], FinancialStatementHistory.prototype, "id", void 0);
25
+ tslib_1.__decorate([
26
+ (0, typeorm_1.Column)({ nullable: true, default: 1 }),
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ tslib_1.__metadata("design:type", Number)
29
+ ], FinancialStatementHistory.prototype, "version", void 0);
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
32
+ (0, type_graphql_1.Field)({ nullable: true }),
33
+ tslib_1.__metadata("design:type", shell_1.Domain)
34
+ ], FinancialStatementHistory.prototype, "domain", void 0);
35
+ tslib_1.__decorate([
36
+ (0, typeorm_1.RelationId)((financialStatementHistory) => financialStatementHistory.domain),
37
+ tslib_1.__metadata("design:type", String)
38
+ ], FinancialStatementHistory.prototype, "domainId", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.Column)({ nullable: true }),
41
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal year of the financial statement' }),
42
+ tslib_1.__metadata("design:type", Number)
43
+ ], FinancialStatementHistory.prototype, "year", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)({ nullable: true }),
46
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal quarter of the financial statement' }),
47
+ tslib_1.__metadata("design:type", Number)
48
+ ], FinancialStatementHistory.prototype, "quarter", void 0);
49
+ tslib_1.__decorate([
50
+ (0, typeorm_1.Column)({ nullable: true }),
51
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal month of the financial statement' }),
52
+ tslib_1.__metadata("design:type", Number)
53
+ ], FinancialStatementHistory.prototype, "month", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.Column)({ nullable: true }),
56
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Total assets recorded in the financial statement' }),
57
+ tslib_1.__metadata("design:type", Number)
58
+ ], FinancialStatementHistory.prototype, "asset", void 0);
59
+ tslib_1.__decorate([
60
+ (0, typeorm_1.Column)({ nullable: true }),
61
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Total liabilities recorded in the financial statement' }),
62
+ tslib_1.__metadata("design:type", Number)
63
+ ], FinancialStatementHistory.prototype, "liability", void 0);
64
+ tslib_1.__decorate([
65
+ (0, typeorm_1.Column)({ nullable: true }),
66
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Total equity recorded in the financial statement' }),
67
+ tslib_1.__metadata("design:type", Number)
68
+ ], FinancialStatementHistory.prototype, "equity", void 0);
69
+ tslib_1.__decorate([
70
+ (0, typeorm_1.OneToMany)(type => financial_statement_line_item_1.FinancialStatementLineItem, lineItem => lineItem.statement),
71
+ (0, type_graphql_1.Field)(type => [financial_statement_line_item_1.FinancialStatementLineItem], { nullable: true }),
72
+ tslib_1.__metadata("design:type", Array)
73
+ ], FinancialStatementHistory.prototype, "lineItems", void 0);
74
+ tslib_1.__decorate([
75
+ (0, typeorm_1.Column)({ nullable: true }),
76
+ (0, type_graphql_1.Field)({ nullable: true }),
77
+ tslib_1.__metadata("design:type", Date)
78
+ ], FinancialStatementHistory.prototype, "createdAt", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.Column)({ nullable: true }),
81
+ (0, type_graphql_1.Field)({ nullable: true }),
82
+ tslib_1.__metadata("design:type", Date)
83
+ ], FinancialStatementHistory.prototype, "updatedAt", void 0);
84
+ tslib_1.__decorate([
85
+ (0, typeorm_1.Column)({ nullable: true }),
86
+ (0, type_graphql_1.Field)({ nullable: true }),
87
+ tslib_1.__metadata("design:type", Date)
88
+ ], FinancialStatementHistory.prototype, "deletedAt", void 0);
89
+ tslib_1.__decorate([
90
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
91
+ (0, type_graphql_1.Field)({ nullable: true }),
92
+ tslib_1.__metadata("design:type", auth_base_1.User)
93
+ ], FinancialStatementHistory.prototype, "creator", void 0);
94
+ tslib_1.__decorate([
95
+ (0, typeorm_1.RelationId)((financialStatementHistory) => financialStatementHistory.creator),
96
+ tslib_1.__metadata("design:type", String)
97
+ ], FinancialStatementHistory.prototype, "creatorId", void 0);
98
+ tslib_1.__decorate([
99
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
100
+ (0, type_graphql_1.Field)({ nullable: true }),
101
+ tslib_1.__metadata("design:type", auth_base_1.User)
102
+ ], FinancialStatementHistory.prototype, "updater", void 0);
103
+ tslib_1.__decorate([
104
+ (0, typeorm_1.RelationId)((financialStatementHistory) => financialStatementHistory.updater),
105
+ tslib_1.__metadata("design:type", String)
106
+ ], FinancialStatementHistory.prototype, "updaterId", void 0);
107
+ tslib_1.__decorate([
108
+ (0, typeorm_history_1.HistoryOriginalIdColumn)(),
109
+ tslib_1.__metadata("design:type", String)
110
+ ], FinancialStatementHistory.prototype, "originalId", void 0);
111
+ tslib_1.__decorate([
112
+ (0, typeorm_history_1.HistoryActionColumn)({
113
+ nullable: false,
114
+ type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
115
+ ? 'enum'
116
+ : DATABASE_TYPE == 'oracle'
117
+ ? 'varchar2'
118
+ : DATABASE_TYPE == 'mssql'
119
+ ? 'nvarchar'
120
+ : 'varchar',
121
+ enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
122
+ ? typeorm_history_1.HistoryActionType
123
+ : undefined,
124
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
125
+ }),
126
+ tslib_1.__metadata("design:type", String)
127
+ ], FinancialStatementHistory.prototype, "action", void 0);
128
+ exports.FinancialStatementHistory = FinancialStatementHistory = tslib_1.__decorate([
129
+ (0, typeorm_1.Entity)(),
130
+ (0, typeorm_1.Index)('ix_financial-statement_history_0', (financialStatementHistory) => [
131
+ financialStatementHistory.originalId,
132
+ financialStatementHistory.version
133
+ ], { unique: true }),
134
+ (0, typeorm_1.Index)('ix_financial-statement_history_1', (financialStatementHistory) => [
135
+ financialStatementHistory.domain,
136
+ financialStatementHistory.originalId,
137
+ financialStatementHistory.version
138
+ ], { unique: true }),
139
+ (0, type_graphql_1.ObjectType)({ description: 'History Entity of FinancialStatement' })
140
+ ], FinancialStatementHistory);
141
+ //# sourceMappingURL=financial-statement-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-statement-history.js","sourceRoot":"","sources":["../../../server/service/financial-statement/financial-statement-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAAyG;AAEzG,8DAKiC;AACjC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAG9C,mFAA4E;AAE5E,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAqB7B,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAOL,YAAO,GAAY,CAAC,CAAA;IAmFtB,CAAC;CAAA,CAAA;AA1FY,8DAAyB;AAG3B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;qDACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;yDAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,MAAM,CAAC;;2DACtF;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;;uDACpE;AAIb;IAFC,IA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nB,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,mCAAiB;YACnB,CAAC,CAAC,SAAS;QACf,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;yDAC+B;oCAzFtB,yBAAyB;IAnBrC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,kCAAkC,EAClC,CAAC,yBAAoD,EAAE,EAAE,CAAC;QACxD,yBAAyB,CAAC,UAAU;QACpC,yBAAyB,CAAC,OAAO;KAClC,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,kCAAkC,EAClC,CAAC,yBAAoD,EAAE,EAAE,CAAC;QACxD,yBAAyB,CAAC,MAAM;QAChC,yBAAyB,CAAC,UAAU;QACpC,yBAAyB,CAAC,OAAO;KAClC,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,yBAAyB,CA0FrC","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@operato/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { FinancialStatement } from './financial-statement'\nimport { FinancialStatementLineItem } from './financial-statement-line-item'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_financial-statement_history_0',\n (financialStatementHistory: FinancialStatementHistory) => [\n financialStatementHistory.originalId,\n financialStatementHistory.version\n ],\n { unique: true }\n)\n@Index(\n 'ix_financial-statement_history_1',\n (financialStatementHistory: FinancialStatementHistory) => [\n financialStatementHistory.domain,\n financialStatementHistory.originalId,\n financialStatementHistory.version\n ],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of FinancialStatement' })\nexport class FinancialStatementHistory implements HistoryEntityInterface<FinancialStatement> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((financialStatementHistory: FinancialStatementHistory) => financialStatementHistory.domain)\n domainId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal year of the financial statement' })\n year?: number // 회계 연도\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal quarter of the financial statement' })\n quarter?: number // 회계 분기\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal month of the financial statement' })\n month?: number // 회계 월\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Total assets recorded in the financial statement' })\n asset?: number // 재무제표에 기록된 총자산\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Total liabilities recorded in the financial statement' })\n liability?: number // 재무제표에 기록된 총부채\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Total equity recorded in the financial statement' })\n equity?: number // 재무제표에 기록된 총자본\n\n @OneToMany(type => FinancialStatementLineItem, lineItem => lineItem.statement)\n @Field(type => [FinancialStatementLineItem], { nullable: true })\n lineItems?: FinancialStatementLineItem[] // 계정별 브레이크다운\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n updatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((financialStatementHistory: FinancialStatementHistory) => financialStatementHistory.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((financialStatementHistory: FinancialStatementHistory) => financialStatementHistory.updater)\n updaterId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? HistoryActionType\n : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { User } from '@things-factory/auth-base';
2
+ import { Account } from '../account/account';
3
+ import { FinancialStatement } from './financial-statement';
4
+ export declare class FinancialStatementLineItem {
5
+ readonly id: string;
6
+ statement: FinancialStatement;
7
+ statementId: string;
8
+ account: Account;
9
+ accountId: string;
10
+ amount: number;
11
+ description?: string;
12
+ createdAt?: Date;
13
+ updatedAt?: Date;
14
+ deletedAt?: Date;
15
+ creator?: User;
16
+ creatorId?: string;
17
+ updater?: User;
18
+ updaterId?: string;
19
+ }