taxtank-core 0.33.1 → 0.33.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (451) hide show
  1. package/common/src/db/enums/user/user-roles.enum.d.ts +1 -0
  2. package/common/src/services/auth/jwt.service.d.ts +1 -0
  3. package/common/src/services/mixpanel.service.d.ts +1 -0
  4. package/esm2022/common/src/common.module.mjs +7 -5
  5. package/esm2022/common/src/db/enums/user/user-roles.enum.mjs +2 -1
  6. package/esm2022/common/src/interceptors/interceptors.module.mjs +5 -5
  7. package/esm2022/common/src/interceptors/jwt-interceptor.mjs +6 -6
  8. package/esm2022/common/src/services/auth/auth.service.mjs +6 -6
  9. package/esm2022/common/src/services/auth/jwt.service.mjs +8 -4
  10. package/esm2022/common/src/services/mixpanel.service.mjs +13 -7
  11. package/esm2022/public-api.mjs +2 -3
  12. package/esm2022/src/lib/collections/bank-transaction.collection.mjs +2 -2
  13. package/esm2022/src/lib/collections/chat/chat.collection.mjs +1 -19
  14. package/esm2022/src/lib/collections/client-movement.collection.mjs +5 -4
  15. package/esm2022/src/lib/collections/client.collection.mjs +1 -1
  16. package/esm2022/src/lib/collections/collection-dictionary.mjs +4 -1
  17. package/esm2022/src/lib/collections/collection.mjs +14 -3
  18. package/esm2022/src/lib/collections/firm/employee-invite.collection.mjs +10 -0
  19. package/esm2022/src/lib/collections/firm/employee.collection.mjs +18 -0
  20. package/esm2022/src/lib/collections/firm/index.mjs +3 -0
  21. package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +2 -2
  22. package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
  23. package/esm2022/src/lib/collections/index.mjs +3 -2
  24. package/esm2022/src/lib/collections/property/property-valuation.collection.mjs +11 -1
  25. package/esm2022/src/lib/collections/report/property/property-report-item-depreciation.collection.mjs +2 -2
  26. package/esm2022/src/lib/collections/report/property/property-report-item-transaction.collection.mjs +2 -2
  27. package/esm2022/src/lib/collections/report/property/property-report-item.collection.mjs +1 -1
  28. package/esm2022/src/lib/collections/tax-review.collection.mjs +1 -7
  29. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +4 -1
  30. package/esm2022/src/lib/collections/user/user.collection.mjs +4 -0
  31. package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +13 -1
  32. package/esm2022/src/lib/core.module.mjs +7 -6
  33. package/esm2022/src/lib/db/Enums/bank/bank-connection-status.enum.mjs +2 -1
  34. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.mjs +2 -2
  35. package/esm2022/src/lib/db/Enums/firm/employee-invite-role.enum.mjs +6 -0
  36. package/esm2022/src/lib/db/Enums/firm/firm-type.enum.mjs +6 -0
  37. package/esm2022/src/lib/db/Enums/firm/index.mjs +3 -0
  38. package/esm2022/src/lib/db/Enums/holding/holding-type-exchange-list.enum.mjs +6 -5
  39. package/esm2022/src/lib/db/Enums/index.mjs +3 -1
  40. package/esm2022/src/lib/db/Enums/user/gender.enum.mjs +14 -0
  41. package/esm2022/src/lib/db/Enums/user/index.mjs +2 -0
  42. package/esm2022/src/lib/db/Json/chart-accounts/chart-accounts-value.json +59 -4
  43. package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
  44. package/esm2022/src/lib/db/Models/bank/bank-connection.mjs +1 -1
  45. package/esm2022/src/lib/db/Models/client/annual-client-details.mjs +1 -1
  46. package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
  47. package/esm2022/src/lib/db/Models/firm/accountant/tax-review.mjs +1 -1
  48. package/esm2022/src/lib/db/Models/firm/chat.mjs +1 -1
  49. package/esm2022/src/lib/db/Models/firm/client-invite.mjs +1 -1
  50. package/esm2022/src/lib/db/Models/firm/client-movement.mjs +1 -1
  51. package/esm2022/src/lib/db/Models/firm/employee-invite.mjs +1 -1
  52. package/esm2022/src/lib/db/Models/firm/firm.mjs +1 -1
  53. package/esm2022/src/lib/db/Models/firm/message-document.mjs +1 -1
  54. package/esm2022/src/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
  55. package/esm2022/src/lib/db/Models/incomeSource/income-source.mjs +1 -1
  56. package/esm2022/src/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
  57. package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
  58. package/esm2022/src/lib/db/Models/sole/sole-business-loss.mjs +1 -1
  59. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +3 -3
  60. package/esm2022/src/lib/db/Models/sole/sole-forecast.mjs +1 -1
  61. package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +3 -4
  62. package/esm2022/src/lib/db/Models/user/employee-details.mjs +1 -1
  63. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  64. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
  65. package/esm2022/src/lib/forms/abstract.form.mjs +9 -4
  66. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  67. package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
  68. package/esm2022/src/lib/forms/chat/chat-filter.form.mjs +36 -0
  69. package/esm2022/src/lib/forms/chat/index.mjs +2 -0
  70. package/esm2022/src/lib/forms/client/annual-client-details.form.mjs +1 -2
  71. package/esm2022/src/lib/forms/client/capital-loss.form.mjs +13 -0
  72. package/esm2022/src/lib/forms/client/index.mjs +2 -1
  73. package/esm2022/src/lib/forms/collection.form.mjs +29 -0
  74. package/esm2022/src/lib/forms/firm/client-invite-put.form.mjs +13 -0
  75. package/esm2022/src/lib/forms/firm/client-invite.form.mjs +18 -0
  76. package/esm2022/src/lib/forms/firm/client-movement.form.mjs +22 -0
  77. package/esm2022/src/lib/forms/firm/employee-details.form.mjs +21 -0
  78. package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +24 -0
  79. package/esm2022/src/lib/forms/firm/firm-branch.form.mjs +13 -0
  80. package/esm2022/src/lib/forms/firm/firm-invite.form.mjs +18 -0
  81. package/esm2022/src/lib/forms/firm/index.mjs +8 -1
  82. package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +30 -4
  83. package/esm2022/src/lib/forms/index.mjs +4 -1
  84. package/esm2022/src/lib/forms/loan/loan.form.mjs +3 -7
  85. package/esm2022/src/lib/forms/register/register-client.form.mjs +9 -6
  86. package/esm2022/src/lib/forms/register/register-firm.form.mjs +4 -4
  87. package/esm2022/src/lib/forms/report/my-tax/my-tax-deductions.form.mjs +1 -1
  88. package/esm2022/src/lib/forms/report/my-tax/my-tax-rent.form.mjs +1 -1
  89. package/esm2022/src/lib/forms/sole/bas-report.form.mjs +3 -2
  90. package/esm2022/src/lib/forms/sole/sole-contact.form.mjs +4 -3
  91. package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +3 -2
  92. package/esm2022/src/lib/forms/tax-review/index.mjs +3 -0
  93. package/esm2022/src/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
  94. package/esm2022/src/lib/forms/tax-review/tax-review-filter.form.mjs +49 -0
  95. package/esm2022/src/lib/forms/transaction/holding/holding-income.form.mjs +19 -9
  96. package/esm2022/src/lib/forms/transaction/index.mjs +2 -1
  97. package/esm2022/src/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
  98. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +35 -0
  99. package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -1
  100. package/esm2022/src/lib/forms/transaction/work/work-transaction.form.mjs +2 -4
  101. package/esm2022/src/lib/forms/user/client-details.form.mjs +2 -2
  102. package/esm2022/src/lib/forms/user/user-invite.form.mjs +3 -2
  103. package/esm2022/src/lib/forms/user/user.form.mjs +11 -8
  104. package/esm2022/src/lib/forms/vehicle/vehicle-claim-details.form.mjs +1 -1
  105. package/esm2022/src/lib/forms/vehicle/vehicle-claim.form.mjs +1 -3
  106. package/esm2022/src/lib/forms/vehicle/vehicle-logbook.form.mjs +3 -4
  107. package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +5 -5
  108. package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +5 -5
  109. package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +6 -6
  110. package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +6 -6
  111. package/esm2022/src/lib/interceptors/interceptors.module.mjs +5 -5
  112. package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +5 -5
  113. package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +7 -6
  114. package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +6 -6
  115. package/esm2022/src/lib/models/bank/bank-connection.mjs +22 -1
  116. package/esm2022/src/lib/models/chat/chat.mjs +6 -2
  117. package/esm2022/src/lib/models/chat/message-document.mjs +4 -4
  118. package/esm2022/src/lib/models/client/annual-client-details.mjs +1 -1
  119. package/esm2022/src/lib/models/client/capital-loss.interface.mjs +2 -0
  120. package/esm2022/src/lib/models/client/capital-loss.mjs +15 -0
  121. package/esm2022/src/lib/models/client/client-details.mjs +27 -1
  122. package/esm2022/src/lib/models/client/client-invite.mjs +8 -5
  123. package/esm2022/src/lib/models/client/client-movement.mjs +8 -5
  124. package/esm2022/src/lib/models/client/index.mjs +3 -1
  125. package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -2
  126. package/esm2022/src/lib/models/employee/employee-details.mjs +8 -2
  127. package/esm2022/src/lib/models/employee/employee-invite.mjs +18 -2
  128. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +22 -13
  129. package/esm2022/src/lib/models/event/app-event-type.enum.mjs +20 -21
  130. package/esm2022/src/lib/models/file/file.mjs +4 -1
  131. package/esm2022/src/lib/models/financial-year/financial-year.mjs +3 -3
  132. package/esm2022/src/lib/models/firm/firm-branch.interface.mjs +2 -0
  133. package/esm2022/src/lib/models/firm/firm-branch.mjs +22 -0
  134. package/esm2022/src/lib/models/firm/firm.mjs +2 -2
  135. package/esm2022/src/lib/models/firm/index.mjs +3 -0
  136. package/esm2022/src/lib/models/holding/holding.mjs +4 -4
  137. package/esm2022/src/lib/models/income-source/salary-forecast.mjs +1 -1
  138. package/esm2022/src/lib/models/income-source/sole-forecast.mjs +1 -1
  139. package/esm2022/src/lib/models/index.mjs +2 -1
  140. package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +11 -7
  141. package/esm2022/src/lib/models/property/property-forecast.mjs +1 -7
  142. package/esm2022/src/lib/models/property/property.mjs +6 -2
  143. package/esm2022/src/lib/models/registration-invite/registration-invite.mjs +5 -1
  144. package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +4 -4
  145. package/esm2022/src/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -1
  146. package/esm2022/src/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +4 -9
  147. package/esm2022/src/lib/models/report/property/property-report-item-transaction.mjs +1 -1
  148. package/esm2022/src/lib/models/sole/bas-report.mjs +4 -1
  149. package/esm2022/src/lib/models/sole/sole-business-loss.mjs +1 -1
  150. package/esm2022/src/lib/models/sole/sole-invoice.mjs +7 -6
  151. package/esm2022/src/lib/models/tax-review/tax-review.mjs +12 -2
  152. package/esm2022/src/lib/models/tax-summary/tax-summary.mjs +3 -2
  153. package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
  154. package/esm2022/src/lib/models/user/user.mjs +8 -5
  155. package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +3 -3
  156. package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
  157. package/esm2022/src/lib/pipes/app-currency.pipe.mjs +4 -4
  158. package/esm2022/src/lib/pipes/safe-url.pipe.mjs +5 -5
  159. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +9 -9
  160. package/esm2022/src/lib/services/asset/assets.service.mjs +6 -6
  161. package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +4 -4
  162. package/esm2022/src/lib/services/data.service.mjs +4 -4
  163. package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +4 -4
  164. package/esm2022/src/lib/services/event/sse.service.mjs +6 -6
  165. package/esm2022/src/lib/services/export/export-formatter.service.mjs +5 -5
  166. package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +26 -0
  167. package/esm2022/src/lib/services/firm/index.mjs +2 -0
  168. package/esm2022/src/lib/services/header-title/header-title.service.mjs +5 -5
  169. package/esm2022/src/lib/services/http/address/address.service.mjs +6 -6
  170. package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
  171. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.mjs +5 -2
  172. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -7
  173. package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +6 -6
  174. package/esm2022/src/lib/services/http/bank/bank.service.mjs +4 -4
  175. package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
  176. package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +22 -6
  177. package/esm2022/src/lib/services/http/budget/budget.service.mjs +4 -4
  178. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
  179. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +4 -4
  180. package/esm2022/src/lib/services/http/chat/chat.service.mjs +10 -10
  181. package/esm2022/src/lib/services/http/chat/message-document.service.mjs +6 -6
  182. package/esm2022/src/lib/services/http/chat/message.service.mjs +10 -6
  183. package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +23 -0
  184. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.mjs +7 -0
  185. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +23 -0
  186. package/esm2022/src/lib/services/http/client/capital-loss/index.mjs +3 -0
  187. package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +4 -4
  188. package/esm2022/src/lib/services/http/client/index.mjs +3 -2
  189. package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +6 -6
  190. package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +4 -4
  191. package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +6 -6
  192. package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
  193. package/esm2022/src/lib/services/http/document/document.service.mjs +4 -4
  194. package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
  195. package/esm2022/src/lib/services/http/file/file.service.mjs +4 -4
  196. package/esm2022/src/lib/services/http/firm/client-invite/client-invite-messages.enum.mjs +2 -2
  197. package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +9 -12
  198. package/esm2022/src/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
  199. package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +8 -7
  200. package/esm2022/src/lib/services/http/firm/client-movement/index.mjs +2 -1
  201. package/esm2022/src/lib/services/http/firm/employee/employee-messages.enum.mjs +2 -1
  202. package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +14 -8
  203. package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +9 -9
  204. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.mjs +9 -0
  205. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +23 -0
  206. package/esm2022/src/lib/services/http/firm/firm-branch/index.mjs +3 -0
  207. package/esm2022/src/lib/services/http/firm/firm.service.mjs +7 -7
  208. package/esm2022/src/lib/services/http/firm/index.mjs +2 -1
  209. package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +6 -6
  210. package/esm2022/src/lib/services/http/google/google.service.mjs +6 -6
  211. package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
  212. package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +4 -4
  213. package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +4 -4
  214. package/esm2022/src/lib/services/http/holding/holding.service.mjs +7 -7
  215. package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -6
  216. package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +8 -8
  217. package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +6 -6
  218. package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +9 -8
  219. package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +6 -6
  220. package/esm2022/src/lib/services/http/loan/loan.service.mjs +6 -6
  221. package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +6 -6
  222. package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +4 -4
  223. package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +4 -4
  224. package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
  225. package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +4 -4
  226. package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
  227. package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +6 -6
  228. package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +6 -6
  229. package/esm2022/src/lib/services/http/property/property.service.mjs +7 -6
  230. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +6 -6
  231. package/esm2022/src/lib/services/http/rest/rest.service.mjs +12 -7
  232. package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +6 -6
  233. package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +4 -4
  234. package/esm2022/src/lib/services/http/sole/bas-report/bas-report-messages.enum.mjs +8 -0
  235. package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
  236. package/esm2022/src/lib/services/http/sole/bas-report/index.mjs +3 -0
  237. package/esm2022/src/lib/services/http/sole/index.mjs +2 -2
  238. package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +10 -14
  239. package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
  240. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
  241. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -9
  242. package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
  243. package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +6 -6
  244. package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -6
  245. package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +6 -6
  246. package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
  247. package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
  248. package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +6 -6
  249. package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
  250. package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
  251. package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +6 -6
  252. package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +6 -6
  253. package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +6 -6
  254. package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +6 -6
  255. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
  256. package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +6 -6
  257. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -6
  258. package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +6 -6
  259. package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
  260. package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
  261. package/esm2022/src/lib/services/http/user/user.service.mjs +6 -6
  262. package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
  263. package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +6 -6
  264. package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +19 -8
  265. package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +6 -5
  266. package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
  267. package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
  268. package/esm2022/src/lib/services/index.mjs +2 -1
  269. package/esm2022/src/lib/services/intercom/intercom.service.mjs +6 -6
  270. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +5 -5
  271. package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +5 -5
  272. package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +5 -5
  273. package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +5 -5
  274. package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +5 -5
  275. package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
  276. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
  277. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +4 -4
  278. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
  279. package/esm2022/src/lib/services/preloader/preloader.service.mjs +5 -5
  280. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +6 -6
  281. package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +6 -6
  282. package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +4 -4
  283. package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +17 -12
  284. package/esm2022/src/lib/services/toast/toast.service.mjs +4 -4
  285. package/esm2022/src/lib/services/user/user-switcher.service.mjs +4 -4
  286. package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +4 -4
  287. package/esm2022/src/lib/validators/date-range.validator.mjs +1 -1
  288. package/esm2022/src/lib/validators/fields-sum.validator.mjs +1 -1
  289. package/esm2022/src/lib/validators/greater-than.validator.mjs +1 -1
  290. package/esm2022/src/lib/validators/index.mjs +3 -1
  291. package/esm2022/src/lib/validators/match-sum.validator.mjs +16 -0
  292. package/esm2022/src/lib/validators/string/alpha-space.validator.mjs +10 -0
  293. package/esm2022/src/lib/validators/unique-email.validator.mjs +5 -5
  294. package/fesm2022/taxtank-core-common.mjs +56 -44
  295. package/fesm2022/taxtank-core-common.mjs.map +1 -1
  296. package/fesm2022/taxtank-core.mjs +1545 -870
  297. package/fesm2022/taxtank-core.mjs.map +1 -1
  298. package/package.json +1 -1
  299. package/public-api.d.ts +1 -2
  300. package/src/lib/collections/bank-transaction.collection.d.ts +3 -2
  301. package/src/lib/collections/chat/chat.collection.d.ts +1 -5
  302. package/src/lib/collections/client-movement.collection.d.ts +2 -2
  303. package/src/lib/collections/client.collection.d.ts +1 -1
  304. package/src/lib/collections/collection-dictionary.d.ts +1 -0
  305. package/src/lib/collections/collection.d.ts +5 -1
  306. package/src/lib/collections/firm/employee-invite.collection.d.ts +5 -0
  307. package/src/lib/collections/firm/employee.collection.d.ts +6 -0
  308. package/src/lib/collections/firm/index.d.ts +2 -0
  309. package/src/lib/collections/income-source/income-source.collection.d.ts +1 -1
  310. package/src/lib/collections/index.d.ts +2 -1
  311. package/src/lib/collections/property/property-valuation.collection.d.ts +4 -0
  312. package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +2 -2
  313. package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts +3 -3
  314. package/src/lib/collections/report/property/property-report-item.collection.d.ts +1 -1
  315. package/src/lib/collections/tax-review.collection.d.ts +0 -4
  316. package/src/lib/collections/transaction/transaction.collection.d.ts +1 -0
  317. package/src/lib/collections/user/user.collection.d.ts +4 -0
  318. package/src/lib/collections/vehicle/vehicle-logbook.collection.d.ts +6 -0
  319. package/src/lib/core.module.d.ts +2 -1
  320. package/src/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -0
  321. package/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.d.ts +1 -1
  322. package/src/lib/db/Enums/firm/employee-invite-role.enum.d.ts +4 -0
  323. package/src/lib/db/Enums/firm/index.d.ts +2 -0
  324. package/src/lib/db/Enums/holding/holding-type-exchange-list.enum.d.ts +5 -4
  325. package/src/lib/db/Enums/index.d.ts +2 -0
  326. package/src/lib/db/Enums/user/gender.enum.d.ts +12 -0
  327. package/src/lib/db/Enums/user/index.d.ts +1 -0
  328. package/src/lib/db/Models/bank/bank-connection.d.ts +1 -0
  329. package/src/lib/db/Models/client/annual-client-details.d.ts +0 -1
  330. package/src/lib/db/Models/client/client-details.d.ts +1 -0
  331. package/src/lib/db/Models/firm/accountant/tax-review.d.ts +2 -0
  332. package/src/lib/db/Models/firm/chat.d.ts +2 -0
  333. package/src/lib/db/Models/firm/client-invite.d.ts +5 -2
  334. package/src/lib/db/Models/firm/client-movement.d.ts +2 -2
  335. package/src/lib/db/Models/firm/employee-invite.d.ts +4 -2
  336. package/src/lib/db/Models/firm/firm.d.ts +1 -1
  337. package/src/lib/db/Models/firm/message-document.d.ts +2 -6
  338. package/src/lib/db/Models/incomeSource/income-source-forecast.d.ts +2 -1
  339. package/src/lib/db/Models/incomeSource/income-source.d.ts +1 -1
  340. package/src/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -0
  341. package/src/lib/db/Models/property/property-forecast.d.ts +1 -0
  342. package/src/lib/db/Models/sole/sole-business-loss.d.ts +1 -0
  343. package/src/lib/db/Models/sole/sole-business.d.ts +2 -2
  344. package/src/lib/db/Models/sole/sole-forecast.d.ts +1 -0
  345. package/src/lib/db/Models/user/employee-details.d.ts +2 -0
  346. package/src/lib/db/Models/user/user.d.ts +2 -0
  347. package/src/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
  348. package/src/lib/forms/abstract.form.d.ts +14 -7
  349. package/src/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +1 -1
  350. package/src/lib/forms/chat/chat-filter.form.d.ts +18 -0
  351. package/src/lib/forms/chat/index.d.ts +1 -0
  352. package/src/lib/forms/client/capital-loss.form.d.ts +6 -0
  353. package/src/lib/forms/client/index.d.ts +1 -0
  354. package/src/lib/forms/collection.form.d.ts +14 -0
  355. package/src/lib/forms/firm/client-invite-put.form.d.ts +11 -0
  356. package/src/lib/forms/firm/client-invite.form.d.ts +15 -0
  357. package/src/lib/forms/firm/client-movement.form.d.ts +14 -0
  358. package/src/lib/forms/firm/employee-details.form.d.ts +14 -0
  359. package/src/lib/forms/firm/employee-invite.form.d.ts +17 -0
  360. package/src/lib/forms/firm/firm-branch.form.d.ts +5 -0
  361. package/src/lib/forms/firm/firm-invite.form.d.ts +15 -0
  362. package/src/lib/forms/firm/index.d.ts +7 -0
  363. package/src/lib/forms/holding/holding-reinvest.form.d.ts +7 -0
  364. package/src/lib/forms/index.d.ts +3 -0
  365. package/src/lib/forms/loan/loan.form.d.ts +2 -2
  366. package/src/lib/forms/register/register-client.form.d.ts +1 -1
  367. package/src/lib/forms/register/register-firm.form.d.ts +2 -2
  368. package/src/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
  369. package/src/lib/forms/report/my-tax/my-tax-rent.form.d.ts +1 -1
  370. package/src/lib/forms/tax-review/index.d.ts +2 -0
  371. package/src/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
  372. package/src/lib/forms/tax-review/tax-review-filter.form.d.ts +21 -0
  373. package/src/lib/forms/transaction/holding/holding-income.form.d.ts +8 -1
  374. package/src/lib/forms/transaction/index.d.ts +1 -0
  375. package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +19 -0
  376. package/src/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
  377. package/src/lib/forms/user/user.form.d.ts +15 -3
  378. package/src/lib/forms/vehicle/vehicle-claim.form.d.ts +0 -2
  379. package/src/lib/models/bank/bank-connection.d.ts +8 -0
  380. package/src/lib/models/chat/chat.d.ts +3 -1
  381. package/src/lib/models/chat/message-document.d.ts +4 -4
  382. package/src/lib/models/client/annual-client-details.d.ts +0 -1
  383. package/src/lib/models/client/capital-loss.d.ts +9 -0
  384. package/src/lib/models/client/capital-loss.interface.d.ts +6 -0
  385. package/src/lib/models/client/client-details.d.ts +8 -0
  386. package/src/lib/models/client/client-invite.d.ts +3 -2
  387. package/src/lib/models/client/client-movement.d.ts +3 -2
  388. package/src/lib/models/client/index.d.ts +2 -0
  389. package/src/lib/models/employee/employee-details.d.ts +3 -1
  390. package/src/lib/models/employee/employee-invite.d.ts +7 -1
  391. package/src/lib/models/event/app-event-type.enum.d.ts +19 -20
  392. package/src/lib/models/file/file.d.ts +1 -0
  393. package/src/lib/models/firm/firm-branch.d.ts +12 -0
  394. package/src/lib/models/firm/firm-branch.interface.d.ts +7 -0
  395. package/src/lib/models/firm/index.d.ts +2 -0
  396. package/src/lib/models/holding/holding.d.ts +0 -1
  397. package/src/lib/models/index.d.ts +1 -0
  398. package/src/lib/models/property/property-equity-chart-data.d.ts +7 -7
  399. package/src/lib/models/property/property-forecast.d.ts +0 -4
  400. package/src/lib/models/registration-invite/registration-invite.d.ts +2 -0
  401. package/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
  402. package/src/lib/models/report/property/property-report-item-transaction.d.ts +3 -3
  403. package/src/lib/models/tax-review/tax-review.d.ts +5 -1
  404. package/src/lib/models/user/user.d.ts +2 -3
  405. package/src/lib/models/vehicle/vehicle-claim-details.d.ts +1 -1
  406. package/src/lib/services/firm/current-firm-branch.service.d.ts +11 -0
  407. package/src/lib/services/firm/index.d.ts +1 -0
  408. package/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts +5 -2
  409. package/src/lib/services/http/bank/basiq/basiq.service.d.ts +8 -0
  410. package/src/lib/services/http/chat/message.service.d.ts +2 -0
  411. package/src/lib/services/http/client/{capital-gain/annual-client-details.service.d.ts → annual-client-details.service.d.ts} +4 -4
  412. package/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.d.ts +5 -0
  413. package/src/lib/services/http/client/capital-loss/capital-loss.service.d.ts +12 -0
  414. package/src/lib/services/http/client/capital-loss/index.d.ts +2 -0
  415. package/src/lib/services/http/client/index.d.ts +2 -1
  416. package/src/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts +1 -1
  417. package/src/lib/services/http/firm/client-invite/client-invite.service.d.ts +0 -1
  418. package/src/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
  419. package/src/lib/services/http/firm/client-movement/client-movement.service.d.ts +2 -1
  420. package/src/lib/services/http/firm/client-movement/index.d.ts +1 -0
  421. package/src/lib/services/http/firm/employee/employee-messages.enum.d.ts +2 -1
  422. package/src/lib/services/http/firm/employee/employee.service.d.ts +4 -3
  423. package/src/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +3 -3
  424. package/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.d.ts +7 -0
  425. package/src/lib/services/http/firm/firm-branch/firm-branch.service.d.ts +13 -0
  426. package/src/lib/services/http/firm/firm-branch/index.d.ts +2 -0
  427. package/src/lib/services/http/firm/firm.service.d.ts +2 -2
  428. package/src/lib/services/http/firm/index.d.ts +1 -0
  429. package/src/lib/services/http/holding/holding-sale.service.d.ts +1 -2
  430. package/src/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -2
  431. package/src/lib/services/http/rest/rest.service.d.ts +5 -0
  432. package/src/lib/services/http/sole/bas-report/bas-report-messages.enum.d.ts +6 -0
  433. package/src/lib/services/http/sole/bas-report/index.d.ts +2 -0
  434. package/src/lib/services/http/sole/index.d.ts +1 -1
  435. package/src/lib/services/http/sole/sole-business/sole-business.service.d.ts +7 -5
  436. package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -1
  437. package/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
  438. package/src/lib/services/index.d.ts +1 -0
  439. package/src/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
  440. package/src/lib/validators/index.d.ts +2 -0
  441. package/src/lib/validators/match-sum.validator.d.ts +6 -0
  442. package/src/lib/validators/string/alpha-space.validator.d.ts +5 -0
  443. package/esm2022/src/lib/collections/employee.collection.mjs +0 -11
  444. package/esm2022/src/lib/db/Enums/firm-type.enum.mjs +0 -6
  445. package/esm2022/src/lib/functions/tax-review-filter-predicate.mjs +0 -10
  446. package/esm2022/src/lib/services/http/client/capital-gain/annual-client-details.service.mjs +0 -23
  447. package/esm2022/src/lib/validators/transactions-meta-fields.validator.mjs +0 -33
  448. package/src/lib/collections/employee.collection.d.ts +0 -6
  449. package/src/lib/functions/tax-review-filter-predicate.d.ts +0 -7
  450. package/src/lib/validators/transactions-meta-fields.validator.d.ts +0 -5
  451. /package/src/lib/db/Enums/{firm-type.enum.d.ts → firm/firm-type.enum.d.ts} +0 -0
@@ -0,0 +1,22 @@
1
+ import { FormControl, Validators } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ import { Injectable } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../models";
6
+ export class ClientMovementForm extends AbstractForm {
7
+ constructor(clientMovement) {
8
+ super({
9
+ employee: new FormControl(clientMovement.employee, [Validators.required]),
10
+ firmBranch: new FormControl(clientMovement.firmBranch, [Validators.required]),
11
+ }, clientMovement);
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, deps: [{ token: i1.ClientMovement }], target: i0.ɵɵFactoryTarget.Injectable }); }
14
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, providedIn: 'root' }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, decorators: [{
17
+ type: Injectable,
18
+ args: [{
19
+ providedIn: 'root'
20
+ }]
21
+ }], ctorParameters: function () { return [{ type: i1.ClientMovement }]; } });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LW1vdmVtZW50LmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9jbGllbnQtbW92ZW1lbnQuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxZQUFZLEVBQXFCLE1BQU0sa0JBQWtCLENBQUM7QUFDbkUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBVzNDLE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxZQUE2RDtJQUNuRyxZQUFZLGNBQThCO1FBQ3hDLEtBQUssQ0FBQztZQUNKLFFBQVEsRUFBRSxJQUFJLFdBQVcsQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1lBQ3pFLFVBQVUsRUFBRSxJQUFJLFdBQVcsQ0FBQyxjQUFjLENBQUMsVUFBVSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1NBRTlFLEVBQUUsY0FBYyxDQUFDLENBQUM7SUFDckIsQ0FBQzsrR0FQVSxrQkFBa0I7bUhBQWxCLGtCQUFrQixjQUZqQixNQUFNOzs0RkFFUCxrQkFBa0I7a0JBSDlCLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25CIiwic291cmNlc0NvbnRlbnQi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=
@@ -0,0 +1,21 @@
1
+ import { FormControl, Validators } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ import { Injectable } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../models/employee/employee-details";
6
+ export class EmployeeDetailsForm extends AbstractForm {
7
+ constructor(employeeDetails) {
8
+ super({
9
+ firmBranches: new FormControl(employeeDetails.firmBranches, [Validators.required]),
10
+ }, employeeDetails);
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, deps: [{ token: i1.EmployeeDetails }], target: i0.ɵɵFactoryTarget.Injectable }); }
13
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, providedIn: 'root' }); }
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, decorators: [{
16
+ type: Injectable,
17
+ args: [{
18
+ providedIn: 'root'
19
+ }]
20
+ }], ctorParameters: function () { return [{ type: i1.EmployeeDetails }]; } });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wbG95ZWUtZGV0YWlscy5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2Zpcm0vZW1wbG95ZWUtZGV0YWlscy5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDekQsT0FBTyxFQUFFLFlBQVksRUFBcUIsTUFBTSxrQkFBa0IsQ0FBQztBQUNuRSxPQUFPLEVBQUUsVUFBV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WVEZXRhaWxzRm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxFbXBsb3llZURldGFpbHMsIEVtcGxveWVlRGV0YWlsc0NvbnRyb2xzSW50ZXJmYWNlPiB7XG4gIGNvbnN0cnVjdG9yKGVtcGxveWVlRGV0YWlsczogRW1wbG95ZWVEZXRhaWxzKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZmlybUJyYW5jaGVzOiBuZXcgRm9ybUNvbnRyb2woZW1wbG95ZWVEZXRhaWxzLmZpcm1CcmFuY2hlcywgW1ZhbGlkYXRvcnMucmVxdWlyZWRdKSxcbiAgICB9LCBlbXBsb3llZURldGFpbHMpO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,24 @@
1
+ import { FormControl, FormGroup, Validators } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ import { EmployeeInvite } from '../../models/employee/employee-invite';
4
+ import { alphaSpaceValidator } from '../../validators';
5
+ import { EmployeeInviteRoleEnum } from '../../db/Enums';
6
+ import { plainToClass } from 'class-transformer';
7
+ export class EmployeeInviteForm extends AbstractForm {
8
+ constructor(invite = plainToClass(EmployeeInvite, {}), uniqueEmailValidator = null) {
9
+ super({
10
+ registrationInvite: new FormGroup({
11
+ firstName: new FormControl(invite.registrationInvite?.firstName, [Validators.required, alphaSpaceValidator()]),
12
+ lastName: new FormControl(invite.registrationInvite?.lastName, [Validators.required, alphaSpaceValidator()]),
13
+ email: new FormControl(invite.registrationInvite?.email, {
14
+ // @TODO RxwebValidators.unique()
15
+ validators: [Validators.required, Validators.email],
16
+ asyncValidators: [uniqueEmailValidator.validate.bind(uniqueEmailValidator)],
17
+ updateOn: 'blur'
18
+ }),
19
+ }),
20
+ role: new FormControl(EmployeeInviteRoleEnum.EMPLOYEE, [Validators.required]),
21
+ }, invite);
22
+ }
23
+ }
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wbG95ZWUtaW52aXRlLmZvcm0uanMiLC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ZT8ubGFzdE5hbWUsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBhbHBoYVNwYWNlVmFsaWRhdG9yKCldKSxcbiAgICAgICAgZW1haWw6IG5ldyBGb3JtQ29udHJvbChpbnZpdGUucmVnaXN0cmF0aW9uSW52aXRlPy5lbWFpbCwge1xuICAgICAgICAgIC8vIEBUT0RPIFJ4d2ViVmFsaWRhdG9ycy51bmlxdWUoKVxuICAgICAgICAgIHZhbGlkYXRvcnM6IFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLmVtYWlsXSxcbiAgICAgICAgICBhc3luY1ZhbGlkYXRvcnM6IFt1bmlxdWVFbWFpbFZhbGlkYXRvci52YWxpZGF0ZS5iaW5kKHVuaXF1ZUVtYWlsVmFsaWRhdG9yKV0sXG4gICAgICAgICAgdXBkYXRlT246ICdibHVyJ1xuICAgICAgICB9KSxcbiAgICAgIH0pLFxuICAgICAgcm9sZTogbmV3IEZvcm1Db250cm9sKEVtcGxveWVlSW52aXRlUm9sZUVudW0uRU1QTE9ZRUUsIFtWYWxpZGF0b3JzLnJlcXVpcmVkXSksXG4gICAgfSwgaW52aXRlKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,13 @@
1
+ import { UntypedFormControl, Validators } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ export class FirmBranchForm extends AbstractForm {
4
+ constructor(firm) {
5
+ super({
6
+ name: new UntypedFormControl(firm.name, Validators.required),
7
+ address: new UntypedFormControl(firm.address, Validators.required),
8
+ phone: new UntypedFormControl(firm.phone),
9
+ isMain: new UntypedFormControl(firm.isMain)
10
+ }, firm);
11
+ }
12
+ }
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1icmFuY2guZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc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cmFuY2gpIHtcbiAgICBzdXBlcih7XG4gICAgICBuYW1lOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKGZpcm0ubmFtZSwgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBhZGRyZXNzOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKGZpcm0uYWRkcmVzcywgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBwaG9uZTogbmV3IFVudHlwZWRGb3JtQ29udHJvbChmaXJtLnBob25lKSxcbiAgICAgIGlzTWFpbjogbmV3IFVudHlwZWRGb3JtQ29udHJvbChmaXJtLmlzTWFpbilcbiAgICB9LCBmaXJtKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,18 @@
1
+ import { FormControl, FormGroup, Validators } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ import { plainToClass } from 'class-transformer';
4
+ import { ClientInvite } from '../../models';
5
+ import { alphaSpaceValidator } from '../../validators';
6
+ export class FirmInviteForm extends AbstractForm {
7
+ constructor(invite = plainToClass(ClientInvite, {})) {
8
+ super({
9
+ address: new FormControl(invite.address, [Validators.required]),
10
+ registrationInvite: new FormGroup({
11
+ firstName: new FormControl(invite.registrationInvite?.firstName, [Validators.required, alphaSpaceValidator()]),
12
+ lastName: new FormControl(invite.registrationInvite?.lastName, [Validators.required, alphaSpaceValidator()]),
13
+ email: new FormControl(invite.registrationInvite?.email, [Validators.required, Validators.email]),
14
+ }),
15
+ }, invite);
16
+ }
17
+ }
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1pbnZpdGUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9maXJtL2Zpcm0taW52aXRlLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQU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kZHJlc3M6IG5ldyBGb3JtQ29udHJvbChpbnZpdGUuYWRkcmVzcywgW1ZhbGlkYXRvcnMucmVxdWlyZWRdKSxcbiAgICAgIHJlZ2lzdHJhdGlvbkludml0ZTogbmV3IEZvcm1Hcm91cCh7XG4gICAgICAgIGZpcnN0TmFtZTogbmV3IEZvcm1Db250cm9sKGludml0ZS5yZWdpc3RyYXRpb25JbnZpdGU/LmZpcnN0TmFtZSwgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIGFscGhhU3BhY2VWYWxpZGF0b3IoKV0pLFxuICAgICAgICBsYXN0TmFtZTogbmV3IEZvcm1Db250cm9sKGludml0ZS5yZWdpc3RyYXRpb25JbnZpdGU/Lmxhc3ROYW1lLCBbVmFsaWRhdG9ycy5yZXF1aXJlZCwgYWxwaGFTcGFjZVZhbGlkYXRvcigpXSksXG4gICAgICAgIGVtYWlsOiBuZXcgRm9ybUNvbnRyb2woaW52aXRlLnJlZ2lzdHJhdGlvbkludml0ZT8uZW1haWwsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLmVtYWlsXSksXG4gICAgICB9KSxcbiAgICB9LCBpbnZpdGUpO1xuICB9XG59XG4iXX0=
@@ -1,2 +1,9 @@
1
1
  export * from './firm.form';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZmlybS5mb3JtJztcbiJdfQ==
2
+ export * from './firm-branch.form';
3
+ export * from './employee-invite.form';
4
+ export * from './client-movement.form';
5
+ export * from './employee-details.form';
6
+ export * from './client-invite.form';
7
+ export * from './client-invite-put.form';
8
+ export * from './firm-invite.form';
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9maXJtLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtLWJyYW5jaC5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vZW1wbG95ZWUtaW52aXRlLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9jbGllbnQtbW92ZW1lbnQuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2VtcGxveWVlLWRldGFpbHMuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2NsaWVudC1pbnZpdGUuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2NsaWVudC1pbnZpdGUtcHV0LmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtLWludml0ZS5mb3JtJztcbiJdfQ==
@@ -1,23 +1,35 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { HoldingForm } from './holding.form';
3
- import { HoldingIncomeForm } from '../transaction/holding/holding-income.form';
3
+ import { HoldingIncomeForm } from '../transaction';
4
4
  import { TransactionTypeEnum } from '../../db/Enums/transaction-type.enum';
5
+ import { FormControl, Validators } from '@angular/forms';
6
+ /**
7
+ * @TODO vik TT-4048
8
+ */
5
9
  export class HoldingReinvestForm extends AbstractForm {
6
10
  constructor(reinvest) {
7
11
  super({
12
+ // the difference between dividends amount and given shares (shares=dividendsAmount/sharePrice)
13
+ cashVariance: new FormControl({ value: 0, disabled: true }, Validators.required),
8
14
  transaction: new HoldingIncomeForm(reinvest.transaction, null, []),
9
15
  holding: new HoldingForm(reinvest.holding)
10
16
  }, reinvest);
11
17
  this.reinvest = reinvest;
18
+ this.listenEvents();
12
19
  // emit values to trigger changes and create chart accounts metafields
13
20
  this.get('transaction').emitValues();
14
21
  // disable amount field because we calculate the value automatically and this field is visible as disabled
15
22
  this.get(['transaction', 'amount']).disable();
16
- this.listenEvents();
23
+ // franked/unfranked fields are required
24
+ this.transactionForm.getAmountComponents().forEach(control => {
25
+ control.addValidators(Validators.required);
26
+ control.setValue(null);
27
+ });
17
28
  }
18
29
  listenEvents() {
19
30
  this.listenHoldingChanges();
20
31
  this.listenDateChanges();
32
+ this.listenAmountChanges();
21
33
  }
22
34
  get transactionForm() {
23
35
  return this.get('transaction');
@@ -25,6 +37,15 @@ export class HoldingReinvestForm extends AbstractForm {
25
37
  get holdingForm() {
26
38
  return this.get('holding');
27
39
  }
40
+ /**
41
+ * calculated automatically as cashVariance=transactionAmount-frankedAmount-unfrankedAmount
42
+ */
43
+ listenAmountChanges() {
44
+ this.transactionForm.valueChanges.subscribe(() => {
45
+ const sum = this.transactionForm.getAmountComponents().reduce((acc, control) => acc + control.value, 0);
46
+ this.get('cashVariance').setValue(this.get(['transaction', 'amount']).value - sum);
47
+ });
48
+ }
28
49
  /**
29
50
  * Set transaction amount based on holding quantity and price
30
51
  */
@@ -50,10 +71,15 @@ export class HoldingReinvestForm extends AbstractForm {
50
71
  * @TODO Alex (TT-2847): attach file to both (transaction and holding) when files system refactored
51
72
  */
52
73
  submit() {
74
+ const value = this.transactionForm.getRawValue();
53
75
  return super.submit({
54
- transaction: this.transactionForm.submit({ type: TransactionTypeEnum.CREDIT }),
76
+ transaction: this.transactionForm.submit({
77
+ type: TransactionTypeEnum.CREDIT,
78
+ description: `Reinvestment - ${value.incomeSource.name}`,
79
+ amount: value.amount - this.get('cashVariance').value
80
+ }),
55
81
  holding: this.holdingForm.submit()
56
82
  });
57
83
  }
58
84
  }
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy1yZWludmVzdC5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2hvbGRpbmcvaG9sZGluZy1yZWludmVzdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sNENBQTRDLENBQUM7QUFDL0UsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFFM0UsTUFBTSxPQUFPLG1CQUFvQixTQUFRLFlBQTZCO0lBQ3BFLFlBQ1UsUUFBeUI7UUFFakMsS0FBSyxDQUFDO1lBQ0osV0FBVyxFQUFFLElBQUksaUJBQWlCLENBQUMsUUFBUSxDQUFDLFdBQVcsRUFBRSxJQUFJLEVBQUUsRUFBRSxDQUFDO1lBQ2xFLE9BQU8sRUFBRSxJQUFJLFdBQVcsQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDO1NBQzNDLEVBQUUsUUFBUSxDQUFDLENBQUM7UUFMTCxhQUFRLEdBQVI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ZGF0ZVxuICAgKi9cbiAgcHJpdmF0ZSBsaXN0ZW5EYXRlQ2hhbmdlcygpOiB2b2lkIHtcbiAgICB0aGlzLmdldChbJ3RyYW5zYWN0aW9uJywgJ2RhdGUnXSkudmFsdWVDaGFuZ2VzLnN1YnNjcmliZSgoZGF0ZTogRGF0ZSkgPT4ge1xuICAgICAgdGhpcy5nZXQoWydob2xkaW5nJywgJ2RhdGUnXSkuc2V0VmFsdWUoZGF0ZSk7XG4gICAgfSk7XG4gIH1cblxuICAvKipcbiAgICogQFRPRE8gQWxleCAoVFQtMjg0Nyk6IGF0dGFjaCBmaWxlIHRvIGJvdGggKHRyYW5zYWN0aW9uIGFuZCBob2xkaW5nKSB3aGVuIGZpbGVzIHN5c3RlbSByZWZhY3RvcmVkXG4gICAqL1xuICBzdWJtaXQoKTogSG9sZGluZ1JlaW52ZXN0IHtcbiAgICBjb25zdCB2YWx1ZSA9IHRoaXMudHJhbnNhY3Rpb25Gb3JtLmdldFJhd1ZhbHVlKCk7XG5cbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KHtcbiAgICAgIHRyYW5zYWN0aW9uOiB0aGlzLnRyYW5zYWN0aW9uRm9ybS5zdWJtaXQoe1xuICAgICAgICB0eXBlOiBUcmFuc2FjdGlvblR5cGVFbnVtLkNSRURJVCxcbiAgICAgICAgZGVzY3JpcHRpb246IGBSZWludmVzdG1lbnQgLSAke3ZhbHVlLmluY29tZVNvdXJjZS5uYW1lfWAsXG4gICAgICAgIGFtb3VudDogdmFsdWUuYW1vdW50IC0gdGhpcy5nZXQoJ2Nhc2hWYXJpYW5jZScpLnZhbHVlXG4gICAgICB9KSxcbiAgICAgIGhvbGRpbmc6IHRoaXMuaG9sZGluZ0Zvcm0uc3VibWl0KClcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -1,4 +1,5 @@
1
1
  export * from './abstract.form';
2
+ export * from './collection.form';
2
3
  export * from './address';
3
4
  export * from './budget';
4
5
  export * from './document-folder';
@@ -24,4 +25,6 @@ export * from './transaction';
24
25
  export * from './depreciation';
25
26
  export * from './holding';
26
27
  export * from './chart-accounts';
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUVoQyxjQUFjLFdBQVcsQ0FBQztBQUUxQixjQUFjLFVBQVUsQ0FBQztBQUV6QixjQUFjLG1CQUFtQixDQUFDO0FBRWxDLGNBQWMsUUFBUSxDQUFDO0FBRXZCLGNBQWMsUUFBUSxDQUFDO0FBRXZCLGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLFFBQVEsQ0FBQztBQUV2QixjQUFjLFlBQVksQ0FBQztBQUUzQixjQUFjLGlCQUFpQixDQUFDO0FBRWhDLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsV0FBVyxDQUFDO0FBRTFCLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnR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vbGUnO1xuZXhwb3J0ICogZnJvbSAnLi92ZWhpY2xlJztcblxuZXhwb3J0ICogZnJvbSAnLi9mb3JtLXZhbGlkYXRpb25zLmVudW0nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2RlcHJlY2lhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmcnO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFydC1hY2NvdW50cyc7XG4iXX0=
28
+ export * from './tax-review';
29
+ export * from './chat';
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLG1CQUFtQixDQUFDO0FBRWxDLGNBQWMsV0FBVyxDQUFDO0FBRTFCLGNBQWMsVUFBVSxDQUFDO0FBRXpCLGNBQWMsbUJBQW1CLENBQUM7QUFFbEMsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsUUFBUSxDQUFDO0FBRXZCLGNBQW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Jy4vY2xpZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbG9naW4vbG9naW4uZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3Bob25lJztcbmV4cG9ydCAqIGZyb20gJy4vcmVnaXN0ZXIvcmVnaXN0ZXItY2xpZW50LmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9yZWdpc3Rlci9yZWdpc3Rlci1maXJtLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyJztcblxuZXhwb3J0ICogZnJvbSAnLi9wcm9wZXJ0eSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcmVwb3J0L215LXRheCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL3ZlaGljbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Zvcm0tdmFsaWRhdGlvbnMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwcmVjaWF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldmlldyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXQnO1xuIl19
@@ -1,12 +1,8 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { UntypedFormControl, Validators } from '@angular/forms';
3
- import { Loan } from '../../models/loan/loan';
4
- import { LoanRepaymentFrequencyEnum } from '../../db/Enums/bank/loan/loan-repayment-frequency.enum';
5
- import { LoanMaxNumberOfPaymentsEnum } from '../../models/loan/loan-max-number-of-payments.enum';
3
+ import { Loan, LoanMaxNumberOfPaymentsEnum } from '../../models';
4
+ import { LoanInterestTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanTypeEnum } from '../../db/Enums/bank/loan';
6
5
  import { plainToClass } from 'class-transformer';
7
- import { LoanRepaymentTypeEnum } from '../../db/Enums/bank/loan/loan-repayment-type.enum';
8
- import { LoanInterestTypeEnum } from '../../db/Enums/bank/loan/loan-interest-type.enum';
9
- import { LoanTypeEnum } from '../../db/Enums/bank/loan/loan-type.enum';
10
6
  /**
11
7
  * Form with loan details.
12
8
  * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
@@ -87,4 +83,4 @@ export class LoanForm extends AbstractForm {
87
83
  termControl.updateValueAndValidity();
88
84
  }
89
85
  }
90
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hbi5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2xvYW4vbG9hbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzlDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBQ3BHLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLG9EQUFvRCxDQUFDO0FBQ2pHLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUMxRixPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrREFBa0QsQ0FBQztBQUN4RixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0seUNBQXlDLEN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biAgICBjb25zdCBjdXJyZW50UmVwYXltZW50RnJlcXVlbmN5OiBMb2FuUmVwYXltZW50RnJlcXVlbmN5RW51bSA9IHRoaXMuZ2V0KCdyZXBheW1lbnRGcmVxdWVuY3knKS52YWx1ZTtcbiAgICAvLyB0ZXJtIHZhbGlkYXRpb24gZGVwZW5kcyBvbiBzZWxlY3RlZCByZXBheW1lbnQgZnJlcXVlbmN5LCBzbyBjYW4gbm90IHZhbGlkYXRlIHdoZW4gZnJlcXVlbmN5IGlzIGVtcHR5XG4gICAgLy8gcmVwYXltZW50VHlwZSBpcyByZXF1aXJlZCBmaWVsZCwgc28gd2UgZG9uJ3QgbmVlZCB0byBjbGVhciB2YWxpZGF0aW9uXG4gICAgaWYgKCFjdXJyZW50UmVwYXltZW50RnJlcXVlbmN5KSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgY29uc3QgdGVybUNvbnRyb2w6IFVudHlwZWRGb3JtQ29udHJvbCA9IHRoaXMuZ2V0KCd0ZXJtJykgYXMgVW50eXBlZEZvcm1Db250cm9sO1xuICAgIGNvbnN0IG1heFRlcm1WYWx1ZTogbnVtYmVyID0gTG9hbk1heE51bWJlck9mUGF5bWVudHNFbnVtW0xvYW5SZXBheW1lbnRGcmVxdWVuY3lFbnVtW2N1cnJlbnRSZXBheW1lbnRGcmVxdWVuY3ldXTtcblxuICAgIHRlcm1Db250cm9sLnNldFZhbGlkYXRvcnMoW1ZhbGlkYXRvcnMubWF4KG1heFRlcm1WYWx1ZSldKTtcbiAgICB0ZXJtQ29udHJvbC51cGRhdGVWYWx1ZUFuZFZhbGlkaXR5KCk7XG4gIH1cbn1cbiJdfQ==
@@ -1,19 +1,22 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { UntypedFormControl, Validators } from '@angular/forms';
3
3
  import { PasswordForm } from '../user';
4
+ import { User } from '../../models';
5
+ import { plainToClass } from 'class-transformer';
6
+ import { alphaSpaceValidator } from '../../validators';
4
7
  // @TODO Alex: Create a model and handle request fields via class-transformer
5
8
  export class RegisterClientForm extends AbstractForm {
6
- constructor(referenceCode) {
9
+ constructor(user = plainToClass(User, {})) {
7
10
  super({
8
- firstName: new UntypedFormControl('', [Validators.required]),
9
- lastName: new UntypedFormControl('', [Validators.required]),
10
- email: new UntypedFormControl('', [Validators.required, Validators.email]),
11
+ firstName: new UntypedFormControl(user.firstName, [Validators.required, alphaSpaceValidator()]),
12
+ lastName: new UntypedFormControl(user.lastName, [Validators.required, alphaSpaceValidator()]),
13
+ email: new UntypedFormControl(user.email, [Validators.required, Validators.email]),
11
14
  password: new PasswordForm(),
12
- referenceCode: new UntypedFormControl(referenceCode)
15
+ referenceCode: new UntypedFormControl(user.referenceCode)
13
16
  });
14
17
  }
15
18
  submit(data = {}) {
16
19
  return super.submit({ password: this.get('password').submit()?.password });
17
20
  }
18
21
  }
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItY2xpZW50LmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvcmVnaXN0ZXIvcmVnaXN0ZXItY2xpZW50LmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBR3ZDLDZFQUE2RTtBQUM3RSxNQUFNLE9BQU8sa0JBQW1CLFNBQVEsWUFBa0I7SUFDeEQsWUFDRSxhQUFzQjtRQUV0QixLQUFLLENBQUM7WUFDSixTQUFTLEVBQUUsSUFBSSxrQkFBa0IsQ0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FzdE5hbWU6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2wodXNlci5sYXN0TmFtZSwgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIGFscGhhU3BhY2VWYWxpZGF0b3IoKV0pLFxuICAgICAgZW1haWw6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2wodXNlci5lbWFpbCwgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIFZhbGlkYXRvcnMuZW1haWxdKSxcbiAgICAgIHBhc3N3b3JkOiBuZXcgUGFzc3dvcmRGb3JtKCksXG4gICAgICByZWZlcmVuY2VDb2RlOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKHVzZXIucmVmZXJlbmNlQ29kZSlcbiAgICB9KTtcbiAgfVxuXG4gIHN1Ym1pdChkYXRhOiBvYmplY3QgPSB7fSk6IFVzZXIge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoeyBwYXNzd29yZDogKHRoaXMuZ2V0KCdwYXNzd29yZCcpIGFzIFBhc3N3b3JkRm9ybSkuc3VibWl0KCk/LnBhc3N3b3JkIH0pO1xuICB9XG59XG4iXX0=
@@ -1,8 +1,8 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { UntypedFormControl, Validators } from '@angular/forms';
3
- import { FirmTypeEnum } from '../../db/Enums/firm-type.enum';
3
+ import { FirmTypeEnum } from '../../db/Enums';
4
4
  import { RegisterClientForm } from './register-client.form';
5
- import { Firm } from '../../models/firm/firm';
5
+ import { Firm, User } from '../../models';
6
6
  import { plainToClass } from 'class-transformer';
7
7
  export class RegisterFirmForm extends AbstractForm {
8
8
  constructor(firmType, referenceCode) {
@@ -10,7 +10,7 @@ export class RegisterFirmForm extends AbstractForm {
10
10
  name: new UntypedFormControl('', Validators.required),
11
11
  abn: new UntypedFormControl('', Validators.required),
12
12
  tan: new UntypedFormControl({ value: '', disabled: firmType !== FirmTypeEnum.ACCOUNTANT }, Validators.required),
13
- owner: new RegisterClientForm(referenceCode),
13
+ owner: new RegisterClientForm(plainToClass(User, { referenceCode })),
14
14
  type: new UntypedFormControl(firmType)
15
15
  }, plainToClass(Firm, {}));
16
16
  this.firmType = firmType;
@@ -19,4 +19,4 @@ export class RegisterFirmForm extends AbstractForm {
19
19
  return super.submit({ owner: this.get('owner').submit() });
20
20
  }
21
21
  }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItZmlybS5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3JlZ2lzdGVyL3JlZ2lzdGVyLWZpcm0uZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDOUMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRWpELE1BQU0sT0FBTyxnQkFBaUIsU0FBUSxZQUFrQjtJQUN0RCxZQUNVLFFBQXNCLEVBQzlCLGFBQXNCO1FBRXRCLEtBQUssQ0FBQztZQUNKLElBQUksRUFBRSxJQUFJLGtCQUFrQixDQUFDLEVBQUUsRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1lBQ3JELEdBQUcsRUFBRSxJQUFJLGtCQUFrQixDQUFDLEVBQUUsRUFBRSxVQUFVLENBQUMsUUF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9sKCcnLCBWYWxpZGF0b3JzLnJlcXVpcmVkKSxcbiAgICAgIGFibjogbmV3IFVudHlwZWRGb3JtQ29udHJvbCgnJywgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICB0YW46IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woeyB2YWx1ZTogJycsIGRpc2FibGVkOiBmaXJtVHlwZSAhPT0gRmlybVR5cGVFbnVtLkFDQ09VTlRBTlQgfSwgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBvd25lcjogbmV3IFJlZ2lzdGVyQ2xpZW50Rm9ybShwbGFpblRvQ2xhc3MoVXNlciwgeyByZWZlcmVuY2VDb2RlIH0pKSxcbiAgICAgIHR5cGU6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woZmlybVR5cGUpXG4gICAgfSwgcGxhaW5Ub0NsYXNzKEZpcm0sIHt9KSk7XG4gIH1cblxuICBzdWJtaXQoZGF0YTogb2JqZWN0ID0ge30pOiBGaXJtIHtcbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KHsgb3duZXI6ICh0aGlzLmdldCgnb3duZXInKSBhcyBSZWdpc3RlckNsaWVudEZvcm0pLnN1Ym1pdCgpIH0pO1xuICB9XG59XG4iXX0=
@@ -82,4 +82,4 @@ export class MyTaxDeductionsForm extends AbstractForm {
82
82
  });
83
83
  }
84
84
  }
85
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LWRlZHVjdGlvbnMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9yZXBvcnQvbXktdGF4L215LXRheC1kZWR1Y3Rpb25zLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHF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FsQW1vdW50LFxuICAgICAgICBkaXNhYmxlZDogdHJ1ZVxuICAgICAgfSlcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -10,4 +10,4 @@ export class MyTaxRentForm extends AbstractForm {
10
10
  });
11
11
  }
12
12
  }
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LXJlbnQuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9yZXBvcnQvbXktdGF4L215LXRheC1yZW50LmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBR3BELE1BQU0sT0FBTyxhQUFjLFNBQVEsWUFBdUI7SUFDeEQsWUFDRSxJQUFlO1FBRWYsS0FBSyxDQUFDO1lBQ0osZUFBZSxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQztZQUM3RCxrQkFBa0IsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyx3QkFBd0IsQ0FBQztZQUN6RSxzQkFBc0IsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyw0QkFBNEIsQ0FBQztZQUNqRiwyQkFBMkIsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQywyQkFBMkIsQ0FBQztTQUN0RixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBYnN0cmFjdEZvcm0gfSBmcm9tICcuLi8uLi9hYnN0cmFjdC5mb3JtJztcbmltcG9ydCB7IF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ZEZvcm1Db250cm9sKHJlbnQuaW50ZXJlc3REZWR1Y3Rpb25zQW1vdW50KSxcbiAgICAgIGNhcGl0YWxXb3Jrc0RlZHVjdGlvbnM6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2wocmVudC5jYXBpdGFsV29ya3NEZWR1Y3Rpb25zQW1vdW50KSxcbiAgICAgIG90aGVyUmVudGFsRGVkdWN0aW9uc0Ftb3VudDogbmV3IFVudHlwZWRGb3JtQ29udHJvbChyZW50Lm90aGVyUmVudGFsRGVkdWN0aW9uc0Ftb3VudClcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -25,6 +25,7 @@ export class BasReportForm extends AbstractForm {
25
25
  // prefill income/expense data based on transactions/depreciations filtered by specified date
26
26
  combineLatest([this.get('dateFrom').valueChanges, this.get('dateTo').valueChanges])
27
27
  .subscribe(([dateFrom, dateTo]) => {
28
+ // const from = clone(dateFrom).setHours(0,0,0,0);
28
29
  const filteredTransactions = transactions.filterByRange('date', dateFrom, dateTo);
29
30
  const filteredDepreciations = depreciations.filterByRange('date', dateFrom, dateTo);
30
31
  const incomeTransactions = filteredTransactions.getIncomeTransactions();
@@ -48,7 +49,7 @@ export class BasReportForm extends AbstractForm {
48
49
  this.get('paygTaxInstalment').valueChanges,
49
50
  this.get('fuelTaxCredit').valueChanges,
50
51
  ]).subscribe(([incomeGST, expenseGST, taxWithheldTotal, paygTaxInstalment, fuelTaxCredit]) => {
51
- this.patchField('gst', incomeGST - expenseGST + taxWithheldTotal + paygTaxInstalment - fuelTaxCredit);
52
+ this.patchField('gst', incomeGST + expenseGST + taxWithheldTotal + paygTaxInstalment - fuelTaxCredit);
52
53
  });
53
54
  // emit init values to calculate dynamic fields
54
55
  if (report.id) {
@@ -59,4 +60,4 @@ export class BasReportForm extends AbstractForm {
59
60
  return super.submit(data, true);
60
61
  }
61
62
  }
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzLXJlcG9ydC5mb3J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XNSZXBvcnQge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoZGF0YSwgdHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
@@ -3,17 +3,18 @@ import { SoleContact } from '../../models';
3
3
  import { plainToClass } from 'class-transformer';
4
4
  import { UntypedFormControl, Validators } from '@angular/forms';
5
5
  import { requiredLengthValidator } from '../../validators/required-length.validator';
6
+ import { alphaSpaceValidator } from '../../validators';
6
7
  export class SoleContactForm extends AbstractForm {
7
8
  constructor(contact = plainToClass(SoleContact, {})) {
8
9
  super({
9
10
  name: new UntypedFormControl(contact.name, Validators.required),
10
11
  abn: new UntypedFormControl(contact.abn, [requiredLengthValidator(11)]),
11
- firstName: new UntypedFormControl(contact.firstName, Validators.required),
12
- lastName: new UntypedFormControl(contact.lastName, Validators.required),
12
+ firstName: new UntypedFormControl(contact.firstName, [Validators.required, alphaSpaceValidator()]),
13
+ lastName: new UntypedFormControl(contact.lastName, [Validators.required, alphaSpaceValidator()]),
13
14
  email: new UntypedFormControl(contact.email, [Validators.required, Validators.email]),
14
15
  phone: new UntypedFormControl(contact.phone),
15
16
  address: new UntypedFormControl(contact.address)
16
17
  }, contact);
17
18
  }
18
19
  }
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1jb250YWN0LmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvc29sZS9zb2xlLWNvbnRhY3QuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDaEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUMzQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7Q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