taxtank-core 0.33.2 → 0.33.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) hide show
  1. package/common/src/db/enums/user/user-roles.enum.d.ts +1 -0
  2. package/common/src/services/mixpanel.service.d.ts +1 -0
  3. package/esm2022/common/src/common.module.mjs +7 -5
  4. package/esm2022/common/src/db/enums/user/user-roles.enum.mjs +2 -1
  5. package/esm2022/common/src/interceptors/interceptors.module.mjs +5 -5
  6. package/esm2022/common/src/interceptors/jwt-interceptor.mjs +6 -6
  7. package/esm2022/common/src/services/auth/auth.service.mjs +6 -6
  8. package/esm2022/common/src/services/auth/jwt.service.mjs +4 -4
  9. package/esm2022/common/src/services/mixpanel.service.mjs +13 -7
  10. package/esm2022/public-api.mjs +2 -3
  11. package/esm2022/src/lib/collections/bank-transaction.collection.mjs +2 -2
  12. package/esm2022/src/lib/collections/chat/chat.collection.mjs +1 -19
  13. package/esm2022/src/lib/collections/client-movement.collection.mjs +5 -4
  14. package/esm2022/src/lib/collections/client.collection.mjs +1 -1
  15. package/esm2022/src/lib/collections/collection-dictionary.mjs +4 -1
  16. package/esm2022/src/lib/collections/collection.mjs +14 -3
  17. package/esm2022/src/lib/collections/firm/employee-invite.collection.mjs +10 -0
  18. package/esm2022/src/lib/collections/firm/employee.collection.mjs +18 -0
  19. package/esm2022/src/lib/collections/firm/index.mjs +3 -0
  20. package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +2 -2
  21. package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
  22. package/esm2022/src/lib/collections/index.mjs +3 -2
  23. package/esm2022/src/lib/collections/property/property-valuation.collection.mjs +11 -1
  24. package/esm2022/src/lib/collections/report/property/property-report-item-depreciation.collection.mjs +2 -2
  25. package/esm2022/src/lib/collections/report/property/property-report-item-transaction.collection.mjs +2 -2
  26. package/esm2022/src/lib/collections/report/property/property-report-item.collection.mjs +1 -1
  27. package/esm2022/src/lib/collections/tax-review.collection.mjs +1 -7
  28. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +4 -1
  29. package/esm2022/src/lib/collections/user/user.collection.mjs +4 -0
  30. package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +13 -1
  31. package/esm2022/src/lib/core.module.mjs +7 -6
  32. package/esm2022/src/lib/db/Enums/bank/bank-connection-status.enum.mjs +2 -1
  33. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.mjs +2 -2
  34. package/esm2022/src/lib/db/Enums/firm/employee-invite-role.enum.mjs +6 -0
  35. package/esm2022/src/lib/db/Enums/firm/firm-type.enum.mjs +6 -0
  36. package/esm2022/src/lib/db/Enums/firm/index.mjs +3 -0
  37. package/esm2022/src/lib/db/Enums/holding/holding-type-exchange-list.enum.mjs +6 -5
  38. package/esm2022/src/lib/db/Enums/index.mjs +3 -1
  39. package/esm2022/src/lib/db/Enums/user/gender.enum.mjs +14 -0
  40. package/esm2022/src/lib/db/Enums/user/index.mjs +2 -0
  41. package/esm2022/src/lib/db/Json/chart-accounts/chart-accounts-value.json +59 -4
  42. package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
  43. package/esm2022/src/lib/db/Models/bank/bank-connection.mjs +1 -1
  44. package/esm2022/src/lib/db/Models/client/annual-client-details.mjs +1 -1
  45. package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
  46. package/esm2022/src/lib/db/Models/firm/accountant/tax-review.mjs +1 -1
  47. package/esm2022/src/lib/db/Models/firm/chat.mjs +1 -1
  48. package/esm2022/src/lib/db/Models/firm/client-invite.mjs +1 -1
  49. package/esm2022/src/lib/db/Models/firm/client-movement.mjs +1 -1
  50. package/esm2022/src/lib/db/Models/firm/employee-invite.mjs +1 -1
  51. package/esm2022/src/lib/db/Models/firm/firm.mjs +1 -1
  52. package/esm2022/src/lib/db/Models/firm/message-document.mjs +1 -1
  53. package/esm2022/src/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
  54. package/esm2022/src/lib/db/Models/incomeSource/income-source.mjs +1 -1
  55. package/esm2022/src/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
  56. package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
  57. package/esm2022/src/lib/db/Models/sole/sole-business-loss.mjs +1 -1
  58. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +3 -3
  59. package/esm2022/src/lib/db/Models/sole/sole-forecast.mjs +1 -1
  60. package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +3 -4
  61. package/esm2022/src/lib/db/Models/user/employee-details.mjs +1 -1
  62. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  63. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
  64. package/esm2022/src/lib/forms/abstract.form.mjs +9 -4
  65. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  66. package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
  67. package/esm2022/src/lib/forms/chat/chat-filter.form.mjs +36 -0
  68. package/esm2022/src/lib/forms/chat/index.mjs +2 -0
  69. package/esm2022/src/lib/forms/client/annual-client-details.form.mjs +1 -2
  70. package/esm2022/src/lib/forms/client/capital-loss.form.mjs +13 -0
  71. package/esm2022/src/lib/forms/client/index.mjs +2 -1
  72. package/esm2022/src/lib/forms/collection.form.mjs +29 -0
  73. package/esm2022/src/lib/forms/firm/client-invite-put.form.mjs +13 -0
  74. package/esm2022/src/lib/forms/firm/client-invite.form.mjs +18 -0
  75. package/esm2022/src/lib/forms/firm/client-movement.form.mjs +22 -0
  76. package/esm2022/src/lib/forms/firm/employee-details.form.mjs +21 -0
  77. package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +24 -0
  78. package/esm2022/src/lib/forms/firm/firm-branch.form.mjs +13 -0
  79. package/esm2022/src/lib/forms/firm/firm-invite.form.mjs +18 -0
  80. package/esm2022/src/lib/forms/firm/index.mjs +8 -1
  81. package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +30 -4
  82. package/esm2022/src/lib/forms/index.mjs +4 -1
  83. package/esm2022/src/lib/forms/loan/loan.form.mjs +3 -7
  84. package/esm2022/src/lib/forms/register/register-client.form.mjs +9 -6
  85. package/esm2022/src/lib/forms/register/register-firm.form.mjs +4 -4
  86. package/esm2022/src/lib/forms/report/my-tax/my-tax-deductions.form.mjs +1 -1
  87. package/esm2022/src/lib/forms/report/my-tax/my-tax-rent.form.mjs +1 -1
  88. package/esm2022/src/lib/forms/sole/bas-report.form.mjs +3 -2
  89. package/esm2022/src/lib/forms/sole/sole-contact.form.mjs +4 -3
  90. package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +3 -2
  91. package/esm2022/src/lib/forms/tax-review/index.mjs +3 -0
  92. package/esm2022/src/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
  93. package/esm2022/src/lib/forms/tax-review/tax-review-filter.form.mjs +49 -0
  94. package/esm2022/src/lib/forms/transaction/holding/holding-income.form.mjs +19 -9
  95. package/esm2022/src/lib/forms/transaction/index.mjs +2 -1
  96. package/esm2022/src/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
  97. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +35 -0
  98. package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -1
  99. package/esm2022/src/lib/forms/transaction/work/work-transaction.form.mjs +2 -4
  100. package/esm2022/src/lib/forms/user/client-details.form.mjs +2 -2
  101. package/esm2022/src/lib/forms/user/user-invite.form.mjs +3 -2
  102. package/esm2022/src/lib/forms/user/user.form.mjs +11 -8
  103. package/esm2022/src/lib/forms/vehicle/vehicle-claim-details.form.mjs +1 -1
  104. package/esm2022/src/lib/forms/vehicle/vehicle-claim.form.mjs +1 -3
  105. package/esm2022/src/lib/forms/vehicle/vehicle-logbook.form.mjs +3 -4
  106. package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +5 -5
  107. package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +5 -5
  108. package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +6 -6
  109. package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +6 -6
  110. package/esm2022/src/lib/interceptors/interceptors.module.mjs +5 -5
  111. package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +5 -5
  112. package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +7 -6
  113. package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +6 -6
  114. package/esm2022/src/lib/models/bank/bank-connection.mjs +22 -1
  115. package/esm2022/src/lib/models/chat/chat.mjs +6 -2
  116. package/esm2022/src/lib/models/chat/message-document.mjs +4 -4
  117. package/esm2022/src/lib/models/client/annual-client-details.mjs +1 -1
  118. package/esm2022/src/lib/models/client/capital-loss.interface.mjs +2 -0
  119. package/esm2022/src/lib/models/client/capital-loss.mjs +15 -0
  120. package/esm2022/src/lib/models/client/client-details.mjs +27 -1
  121. package/esm2022/src/lib/models/client/client-invite.mjs +8 -5
  122. package/esm2022/src/lib/models/client/client-movement.mjs +8 -5
  123. package/esm2022/src/lib/models/client/index.mjs +3 -1
  124. package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -2
  125. package/esm2022/src/lib/models/employee/employee-details.mjs +8 -2
  126. package/esm2022/src/lib/models/employee/employee-invite.mjs +18 -2
  127. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +22 -13
  128. package/esm2022/src/lib/models/event/app-event-type.enum.mjs +20 -21
  129. package/esm2022/src/lib/models/file/file.mjs +4 -1
  130. package/esm2022/src/lib/models/financial-year/financial-year.mjs +3 -3
  131. package/esm2022/src/lib/models/firm/firm-branch.interface.mjs +2 -0
  132. package/esm2022/src/lib/models/firm/firm-branch.mjs +22 -0
  133. package/esm2022/src/lib/models/firm/firm.mjs +2 -2
  134. package/esm2022/src/lib/models/firm/index.mjs +3 -0
  135. package/esm2022/src/lib/models/holding/holding.mjs +4 -4
  136. package/esm2022/src/lib/models/income-source/salary-forecast.mjs +1 -1
  137. package/esm2022/src/lib/models/income-source/sole-forecast.mjs +1 -1
  138. package/esm2022/src/lib/models/index.mjs +2 -1
  139. package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +11 -7
  140. package/esm2022/src/lib/models/property/property-forecast.mjs +1 -7
  141. package/esm2022/src/lib/models/property/property.mjs +6 -2
  142. package/esm2022/src/lib/models/registration-invite/registration-invite.mjs +5 -1
  143. package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +4 -4
  144. package/esm2022/src/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -1
  145. package/esm2022/src/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +4 -9
  146. package/esm2022/src/lib/models/report/property/property-report-item-transaction.mjs +1 -1
  147. package/esm2022/src/lib/models/sole/bas-report.mjs +4 -1
  148. package/esm2022/src/lib/models/sole/sole-business-loss.mjs +1 -1
  149. package/esm2022/src/lib/models/sole/sole-invoice.mjs +7 -6
  150. package/esm2022/src/lib/models/tax-review/tax-review.mjs +12 -2
  151. package/esm2022/src/lib/models/tax-summary/tax-summary.mjs +3 -2
  152. package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
  153. package/esm2022/src/lib/models/user/user.mjs +8 -5
  154. package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +3 -3
  155. package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
  156. package/esm2022/src/lib/pipes/app-currency.pipe.mjs +4 -4
  157. package/esm2022/src/lib/pipes/safe-url.pipe.mjs +5 -5
  158. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +9 -9
  159. package/esm2022/src/lib/services/asset/assets.service.mjs +6 -6
  160. package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +4 -4
  161. package/esm2022/src/lib/services/data.service.mjs +4 -4
  162. package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +4 -4
  163. package/esm2022/src/lib/services/event/sse.service.mjs +6 -6
  164. package/esm2022/src/lib/services/export/export-formatter.service.mjs +5 -5
  165. package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +26 -0
  166. package/esm2022/src/lib/services/firm/index.mjs +2 -0
  167. package/esm2022/src/lib/services/header-title/header-title.service.mjs +5 -5
  168. package/esm2022/src/lib/services/http/address/address.service.mjs +6 -6
  169. package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
  170. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.mjs +5 -2
  171. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -7
  172. package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +6 -6
  173. package/esm2022/src/lib/services/http/bank/bank.service.mjs +4 -4
  174. package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
  175. package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +22 -6
  176. package/esm2022/src/lib/services/http/budget/budget.service.mjs +4 -4
  177. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
  178. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +4 -4
  179. package/esm2022/src/lib/services/http/chat/chat.service.mjs +10 -10
  180. package/esm2022/src/lib/services/http/chat/message-document.service.mjs +6 -6
  181. package/esm2022/src/lib/services/http/chat/message.service.mjs +10 -6
  182. package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +23 -0
  183. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.mjs +7 -0
  184. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +23 -0
  185. package/esm2022/src/lib/services/http/client/capital-loss/index.mjs +3 -0
  186. package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +4 -4
  187. package/esm2022/src/lib/services/http/client/index.mjs +3 -2
  188. package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +6 -6
  189. package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +4 -4
  190. package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +6 -6
  191. package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
  192. package/esm2022/src/lib/services/http/document/document.service.mjs +4 -4
  193. package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
  194. package/esm2022/src/lib/services/http/file/file.service.mjs +4 -4
  195. package/esm2022/src/lib/services/http/firm/client-invite/client-invite-messages.enum.mjs +2 -2
  196. package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +9 -12
  197. package/esm2022/src/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
  198. package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +8 -7
  199. package/esm2022/src/lib/services/http/firm/client-movement/index.mjs +2 -1
  200. package/esm2022/src/lib/services/http/firm/employee/employee-messages.enum.mjs +2 -1
  201. package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +14 -8
  202. package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +9 -9
  203. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.mjs +9 -0
  204. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +23 -0
  205. package/esm2022/src/lib/services/http/firm/firm-branch/index.mjs +3 -0
  206. package/esm2022/src/lib/services/http/firm/firm.service.mjs +7 -7
  207. package/esm2022/src/lib/services/http/firm/index.mjs +2 -1
  208. package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +6 -6
  209. package/esm2022/src/lib/services/http/google/google.service.mjs +6 -6
  210. package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
  211. package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +4 -4
  212. package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +4 -4
  213. package/esm2022/src/lib/services/http/holding/holding.service.mjs +7 -7
  214. package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -6
  215. package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +8 -8
  216. package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +6 -6
  217. package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +9 -8
  218. package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +6 -6
  219. package/esm2022/src/lib/services/http/loan/loan.service.mjs +6 -6
  220. package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +6 -6
  221. package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +4 -4
  222. package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +4 -4
  223. package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
  224. package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +4 -4
  225. package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
  226. package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +6 -6
  227. package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +6 -6
  228. package/esm2022/src/lib/services/http/property/property.service.mjs +7 -6
  229. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +6 -6
  230. package/esm2022/src/lib/services/http/rest/rest.service.mjs +12 -7
  231. package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +6 -6
  232. package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +4 -4
  233. package/esm2022/src/lib/services/http/sole/bas-report/bas-report-messages.enum.mjs +8 -0
  234. package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
  235. package/esm2022/src/lib/services/http/sole/bas-report/index.mjs +3 -0
  236. package/esm2022/src/lib/services/http/sole/index.mjs +2 -2
  237. package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +10 -14
  238. package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
  239. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
  240. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -9
  241. package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
  242. package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +6 -6
  243. package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -6
  244. package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +6 -6
  245. package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
  246. package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
  247. package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +6 -6
  248. package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
  249. package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
  250. package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +6 -6
  251. package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +6 -6
  252. package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +6 -6
  253. package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +6 -6
  254. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
  255. package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +6 -6
  256. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -6
  257. package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +6 -6
  258. package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
  259. package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
  260. package/esm2022/src/lib/services/http/user/user.service.mjs +6 -6
  261. package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
  262. package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +6 -6
  263. package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +19 -8
  264. package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +6 -5
  265. package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
  266. package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
  267. package/esm2022/src/lib/services/index.mjs +2 -1
  268. package/esm2022/src/lib/services/intercom/intercom.service.mjs +6 -6
  269. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +5 -5
  270. package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +5 -5
  271. package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +5 -5
  272. package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +5 -5
  273. package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +5 -5
  274. package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
  275. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
  276. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +4 -4
  277. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
  278. package/esm2022/src/lib/services/preloader/preloader.service.mjs +5 -5
  279. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +6 -6
  280. package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +6 -6
  281. package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +4 -4
  282. package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +17 -12
  283. package/esm2022/src/lib/services/toast/toast.service.mjs +4 -4
  284. package/esm2022/src/lib/services/user/user-switcher.service.mjs +4 -4
  285. package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +4 -4
  286. package/esm2022/src/lib/validators/date-range.validator.mjs +1 -1
  287. package/esm2022/src/lib/validators/fields-sum.validator.mjs +1 -1
  288. package/esm2022/src/lib/validators/greater-than.validator.mjs +1 -1
  289. package/esm2022/src/lib/validators/index.mjs +3 -1
  290. package/esm2022/src/lib/validators/match-sum.validator.mjs +16 -0
  291. package/esm2022/src/lib/validators/string/alpha-space.validator.mjs +10 -0
  292. package/esm2022/src/lib/validators/unique-email.validator.mjs +5 -5
  293. package/fesm2022/taxtank-core-common.mjs +36 -27
  294. package/fesm2022/taxtank-core-common.mjs.map +1 -1
  295. package/fesm2022/taxtank-core.mjs +1545 -870
  296. package/fesm2022/taxtank-core.mjs.map +1 -1
  297. package/package.json +1 -1
  298. package/public-api.d.ts +1 -2
  299. package/src/lib/collections/bank-transaction.collection.d.ts +3 -2
  300. package/src/lib/collections/chat/chat.collection.d.ts +1 -5
  301. package/src/lib/collections/client-movement.collection.d.ts +2 -2
  302. package/src/lib/collections/client.collection.d.ts +1 -1
  303. package/src/lib/collections/collection-dictionary.d.ts +1 -0
  304. package/src/lib/collections/collection.d.ts +5 -1
  305. package/src/lib/collections/firm/employee-invite.collection.d.ts +5 -0
  306. package/src/lib/collections/firm/employee.collection.d.ts +6 -0
  307. package/src/lib/collections/firm/index.d.ts +2 -0
  308. package/src/lib/collections/income-source/income-source.collection.d.ts +1 -1
  309. package/src/lib/collections/index.d.ts +2 -1
  310. package/src/lib/collections/property/property-valuation.collection.d.ts +4 -0
  311. package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +2 -2
  312. package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts +3 -3
  313. package/src/lib/collections/report/property/property-report-item.collection.d.ts +1 -1
  314. package/src/lib/collections/tax-review.collection.d.ts +0 -4
  315. package/src/lib/collections/transaction/transaction.collection.d.ts +1 -0
  316. package/src/lib/collections/user/user.collection.d.ts +4 -0
  317. package/src/lib/collections/vehicle/vehicle-logbook.collection.d.ts +6 -0
  318. package/src/lib/core.module.d.ts +2 -1
  319. package/src/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -0
  320. package/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.d.ts +1 -1
  321. package/src/lib/db/Enums/firm/employee-invite-role.enum.d.ts +4 -0
  322. package/src/lib/db/Enums/firm/index.d.ts +2 -0
  323. package/src/lib/db/Enums/holding/holding-type-exchange-list.enum.d.ts +5 -4
  324. package/src/lib/db/Enums/index.d.ts +2 -0
  325. package/src/lib/db/Enums/user/gender.enum.d.ts +12 -0
  326. package/src/lib/db/Enums/user/index.d.ts +1 -0
  327. package/src/lib/db/Models/bank/bank-connection.d.ts +1 -0
  328. package/src/lib/db/Models/client/annual-client-details.d.ts +0 -1
  329. package/src/lib/db/Models/client/client-details.d.ts +1 -0
  330. package/src/lib/db/Models/firm/accountant/tax-review.d.ts +2 -0
  331. package/src/lib/db/Models/firm/chat.d.ts +2 -0
  332. package/src/lib/db/Models/firm/client-invite.d.ts +5 -2
  333. package/src/lib/db/Models/firm/client-movement.d.ts +2 -2
  334. package/src/lib/db/Models/firm/employee-invite.d.ts +4 -2
  335. package/src/lib/db/Models/firm/firm.d.ts +1 -1
  336. package/src/lib/db/Models/firm/message-document.d.ts +2 -6
  337. package/src/lib/db/Models/incomeSource/income-source-forecast.d.ts +2 -1
  338. package/src/lib/db/Models/incomeSource/income-source.d.ts +1 -1
  339. package/src/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -0
  340. package/src/lib/db/Models/property/property-forecast.d.ts +1 -0
  341. package/src/lib/db/Models/sole/sole-business-loss.d.ts +1 -0
  342. package/src/lib/db/Models/sole/sole-business.d.ts +2 -2
  343. package/src/lib/db/Models/sole/sole-forecast.d.ts +1 -0
  344. package/src/lib/db/Models/user/employee-details.d.ts +2 -0
  345. package/src/lib/db/Models/user/user.d.ts +2 -0
  346. package/src/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
  347. package/src/lib/forms/abstract.form.d.ts +14 -7
  348. package/src/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +1 -1
  349. package/src/lib/forms/chat/chat-filter.form.d.ts +18 -0
  350. package/src/lib/forms/chat/index.d.ts +1 -0
  351. package/src/lib/forms/client/capital-loss.form.d.ts +6 -0
  352. package/src/lib/forms/client/index.d.ts +1 -0
  353. package/src/lib/forms/collection.form.d.ts +14 -0
  354. package/src/lib/forms/firm/client-invite-put.form.d.ts +11 -0
  355. package/src/lib/forms/firm/client-invite.form.d.ts +15 -0
  356. package/src/lib/forms/firm/client-movement.form.d.ts +14 -0
  357. package/src/lib/forms/firm/employee-details.form.d.ts +14 -0
  358. package/src/lib/forms/firm/employee-invite.form.d.ts +17 -0
  359. package/src/lib/forms/firm/firm-branch.form.d.ts +5 -0
  360. package/src/lib/forms/firm/firm-invite.form.d.ts +15 -0
  361. package/src/lib/forms/firm/index.d.ts +7 -0
  362. package/src/lib/forms/holding/holding-reinvest.form.d.ts +7 -0
  363. package/src/lib/forms/index.d.ts +3 -0
  364. package/src/lib/forms/loan/loan.form.d.ts +2 -2
  365. package/src/lib/forms/register/register-client.form.d.ts +1 -1
  366. package/src/lib/forms/register/register-firm.form.d.ts +2 -2
  367. package/src/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
  368. package/src/lib/forms/report/my-tax/my-tax-rent.form.d.ts +1 -1
  369. package/src/lib/forms/tax-review/index.d.ts +2 -0
  370. package/src/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
  371. package/src/lib/forms/tax-review/tax-review-filter.form.d.ts +21 -0
  372. package/src/lib/forms/transaction/holding/holding-income.form.d.ts +8 -1
  373. package/src/lib/forms/transaction/index.d.ts +1 -0
  374. package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +19 -0
  375. package/src/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
  376. package/src/lib/forms/user/user.form.d.ts +15 -3
  377. package/src/lib/forms/vehicle/vehicle-claim.form.d.ts +0 -2
  378. package/src/lib/models/bank/bank-connection.d.ts +8 -0
  379. package/src/lib/models/chat/chat.d.ts +3 -1
  380. package/src/lib/models/chat/message-document.d.ts +4 -4
  381. package/src/lib/models/client/annual-client-details.d.ts +0 -1
  382. package/src/lib/models/client/capital-loss.d.ts +9 -0
  383. package/src/lib/models/client/capital-loss.interface.d.ts +6 -0
  384. package/src/lib/models/client/client-details.d.ts +8 -0
  385. package/src/lib/models/client/client-invite.d.ts +3 -2
  386. package/src/lib/models/client/client-movement.d.ts +3 -2
  387. package/src/lib/models/client/index.d.ts +2 -0
  388. package/src/lib/models/employee/employee-details.d.ts +3 -1
  389. package/src/lib/models/employee/employee-invite.d.ts +7 -1
  390. package/src/lib/models/event/app-event-type.enum.d.ts +19 -20
  391. package/src/lib/models/file/file.d.ts +1 -0
  392. package/src/lib/models/firm/firm-branch.d.ts +12 -0
  393. package/src/lib/models/firm/firm-branch.interface.d.ts +7 -0
  394. package/src/lib/models/firm/index.d.ts +2 -0
  395. package/src/lib/models/holding/holding.d.ts +0 -1
  396. package/src/lib/models/index.d.ts +1 -0
  397. package/src/lib/models/property/property-equity-chart-data.d.ts +7 -7
  398. package/src/lib/models/property/property-forecast.d.ts +0 -4
  399. package/src/lib/models/registration-invite/registration-invite.d.ts +2 -0
  400. package/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
  401. package/src/lib/models/report/property/property-report-item-transaction.d.ts +3 -3
  402. package/src/lib/models/tax-review/tax-review.d.ts +5 -1
  403. package/src/lib/models/user/user.d.ts +2 -3
  404. package/src/lib/models/vehicle/vehicle-claim-details.d.ts +1 -1
  405. package/src/lib/services/firm/current-firm-branch.service.d.ts +11 -0
  406. package/src/lib/services/firm/index.d.ts +1 -0
  407. package/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts +5 -2
  408. package/src/lib/services/http/bank/basiq/basiq.service.d.ts +8 -0
  409. package/src/lib/services/http/chat/message.service.d.ts +2 -0
  410. package/src/lib/services/http/client/{capital-gain/annual-client-details.service.d.ts → annual-client-details.service.d.ts} +4 -4
  411. package/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.d.ts +5 -0
  412. package/src/lib/services/http/client/capital-loss/capital-loss.service.d.ts +12 -0
  413. package/src/lib/services/http/client/capital-loss/index.d.ts +2 -0
  414. package/src/lib/services/http/client/index.d.ts +2 -1
  415. package/src/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts +1 -1
  416. package/src/lib/services/http/firm/client-invite/client-invite.service.d.ts +0 -1
  417. package/src/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
  418. package/src/lib/services/http/firm/client-movement/client-movement.service.d.ts +2 -1
  419. package/src/lib/services/http/firm/client-movement/index.d.ts +1 -0
  420. package/src/lib/services/http/firm/employee/employee-messages.enum.d.ts +2 -1
  421. package/src/lib/services/http/firm/employee/employee.service.d.ts +4 -3
  422. package/src/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +3 -3
  423. package/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.d.ts +7 -0
  424. package/src/lib/services/http/firm/firm-branch/firm-branch.service.d.ts +13 -0
  425. package/src/lib/services/http/firm/firm-branch/index.d.ts +2 -0
  426. package/src/lib/services/http/firm/firm.service.d.ts +2 -2
  427. package/src/lib/services/http/firm/index.d.ts +1 -0
  428. package/src/lib/services/http/holding/holding-sale.service.d.ts +1 -2
  429. package/src/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -2
  430. package/src/lib/services/http/rest/rest.service.d.ts +5 -0
  431. package/src/lib/services/http/sole/bas-report/bas-report-messages.enum.d.ts +6 -0
  432. package/src/lib/services/http/sole/bas-report/index.d.ts +2 -0
  433. package/src/lib/services/http/sole/index.d.ts +1 -1
  434. package/src/lib/services/http/sole/sole-business/sole-business.service.d.ts +7 -5
  435. package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -1
  436. package/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
  437. package/src/lib/services/index.d.ts +1 -0
  438. package/src/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
  439. package/src/lib/validators/index.d.ts +2 -0
  440. package/src/lib/validators/match-sum.validator.d.ts +6 -0
  441. package/src/lib/validators/string/alpha-space.validator.d.ts +5 -0
  442. package/esm2022/src/lib/collections/employee.collection.mjs +0 -11
  443. package/esm2022/src/lib/db/Enums/firm-type.enum.mjs +0 -6
  444. package/esm2022/src/lib/functions/tax-review-filter-predicate.mjs +0 -10
  445. package/esm2022/src/lib/services/http/client/capital-gain/annual-client-details.service.mjs +0 -23
  446. package/esm2022/src/lib/validators/transactions-meta-fields.validator.mjs +0 -33
  447. package/src/lib/collections/employee.collection.d.ts +0 -6
  448. package/src/lib/functions/tax-review-filter-predicate.d.ts +0 -7
  449. package/src/lib/validators/transactions-meta-fields.validator.d.ts +0 -5
  450. /package/src/lib/db/Enums/{firm-type.enum.d.ts → firm/firm-type.enum.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { ControlsInterface } from '../abstract.form';
3
+ import { ChatCollection } from '../../collections';
4
+ import { IEventListener } from '../../interfaces';
5
+ import { ReplaySubject } from 'rxjs';
6
+ import { Chat } from '../../models';
7
+ interface IChatFilterControls extends ControlsInterface {
8
+ query: FormControl<string>;
9
+ myChats: FormControl<boolean>;
10
+ }
11
+ export declare class ChatFilterForm extends FormGroup<IChatFilterControls> implements IEventListener {
12
+ private collection;
13
+ dataChanges: ReplaySubject<Chat[]>;
14
+ constructor(collection: ChatCollection);
15
+ listenEvents(): void;
16
+ filter(source?: ChatCollection): void;
17
+ }
18
+ export {};
@@ -0,0 +1 @@
1
+ export * from './chat-filter.form';
@@ -0,0 +1,6 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { CapitalLoss } from '../../models';
3
+ export declare class CapitalLossForm extends AbstractForm<CapitalLoss> {
4
+ private capitalLoss;
5
+ constructor(capitalLoss?: CapitalLoss);
6
+ }
@@ -1 +1,2 @@
1
1
  export * from './annual-client-details.form';
2
+ export * from './capital-loss.form';
@@ -0,0 +1,14 @@
1
+ import { FormArray } from '@angular/forms';
2
+ import { AbstractForm } from './';
3
+ import { AbstractModel } from '../db/Models';
4
+ export declare class CollectionForm<Form extends AbstractForm<Model>, Model extends AbstractModel> extends FormArray<Form> {
5
+ private formConstructor;
6
+ private args;
7
+ constructor(formConstructor: new (model?: Model, ...args: any[]) => Form, models?: Model[], ...args: any[]);
8
+ createFormGroup(model?: Model): Form;
9
+ add(model?: Model): void;
10
+ /**
11
+ * Submit form and return array of properties from form value
12
+ */
13
+ submit(data?: object, includeDisabledFields?: boolean): Model[];
14
+ }
@@ -0,0 +1,11 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { ClientInvite, FirmBranch, User } from '../../models';
4
+ interface ClientInvitePutControlsInterface extends ControlsInterface {
5
+ employee: FormControl<User>;
6
+ firmBranch: FormControl<FirmBranch>;
7
+ }
8
+ export declare class ClientInvitePutForm extends AbstractForm<ClientInvite, ClientInvitePutControlsInterface> {
9
+ constructor(invite?: ClientInvite);
10
+ }
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { ClientInvite, User } from '../../models';
4
+ interface ClientInviteControlsInterface extends ControlsInterface {
5
+ employee: FormControl<User>;
6
+ registrationInvite: FormGroup<{
7
+ firstName: FormControl<string>;
8
+ lastName: FormControl<string>;
9
+ email: FormControl<string>;
10
+ }>;
11
+ }
12
+ export declare class ClientInviteForm extends AbstractForm<ClientInvite, ClientInviteControlsInterface> {
13
+ constructor(invite?: ClientInvite);
14
+ }
15
+ export {};
@@ -0,0 +1,14 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { ClientMovement, FirmBranch, User } from '../../models';
4
+ import * as i0 from "@angular/core";
5
+ interface ClientMovementControlsInterface extends ControlsInterface {
6
+ employee: FormControl<User>;
7
+ firmBranch: FormControl<FirmBranch>;
8
+ }
9
+ export declare class ClientMovementForm extends AbstractForm<ClientMovement, ClientMovementControlsInterface> {
10
+ constructor(clientMovement: ClientMovement);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClientMovementForm, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClientMovementForm>;
13
+ }
14
+ export {};
@@ -0,0 +1,14 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { FirmBranch } from '../../models';
4
+ import { EmployeeDetails } from '../../models/employee/employee-details';
5
+ import * as i0 from "@angular/core";
6
+ interface EmployeeDetailsControlsInterface extends ControlsInterface {
7
+ firmBranches: FormControl<FirmBranch[]>;
8
+ }
9
+ export declare class EmployeeDetailsForm extends AbstractForm<EmployeeDetails, EmployeeDetailsControlsInterface> {
10
+ constructor(employeeDetails: EmployeeDetails);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmployeeDetailsForm, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<EmployeeDetailsForm>;
13
+ }
14
+ export {};
@@ -0,0 +1,17 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { EmployeeInvite } from '../../models/employee/employee-invite';
4
+ import { UniqueEmailValidator } from '../../validators';
5
+ import { EmployeeInviteRoleEnum } from '../../db/Enums';
6
+ interface EmployeeInviteControlsInterface extends ControlsInterface {
7
+ registrationInvite: FormGroup<{
8
+ firstName: FormControl<string>;
9
+ lastName: FormControl<string>;
10
+ email: FormControl<string>;
11
+ }>;
12
+ role: FormControl<EmployeeInviteRoleEnum>;
13
+ }
14
+ export declare class EmployeeInviteForm extends AbstractForm<EmployeeInvite, EmployeeInviteControlsInterface> {
15
+ constructor(invite?: EmployeeInvite, uniqueEmailValidator?: UniqueEmailValidator);
16
+ }
17
+ export {};
@@ -0,0 +1,5 @@
1
+ import { FirmBranch } from '../../models';
2
+ import { AbstractForm } from '../abstract.form';
3
+ export declare class FirmBranchForm extends AbstractForm<FirmBranch> {
4
+ constructor(firm: FirmBranch);
5
+ }
@@ -0,0 +1,15 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
3
+ import { ClientInvite } from '../../models';
4
+ interface ClientInvitePutControlsInterface extends ControlsInterface {
5
+ address: FormControl<string>;
6
+ registrationInvite: FormGroup<{
7
+ firstName: FormControl<string>;
8
+ lastName: FormControl<string>;
9
+ email: FormControl<string>;
10
+ }>;
11
+ }
12
+ export declare class FirmInviteForm extends AbstractForm<ClientInvite, ClientInvitePutControlsInterface> {
13
+ constructor(invite?: ClientInvite);
14
+ }
15
+ export {};
@@ -1 +1,8 @@
1
1
  export * from './firm.form';
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';
@@ -1,12 +1,19 @@
1
1
  import { HoldingReinvest } from '../../models';
2
2
  import { IEventListener } from '../../interfaces';
3
3
  import { AbstractForm } from '../abstract.form';
4
+ /**
5
+ * @TODO vik TT-4048
6
+ */
4
7
  export declare class HoldingReinvestForm extends AbstractForm<HoldingReinvest> implements IEventListener {
5
8
  private reinvest;
6
9
  constructor(reinvest: HoldingReinvest);
7
10
  listenEvents(): void;
8
11
  private get transactionForm();
9
12
  private get holdingForm();
13
+ /**
14
+ * calculated automatically as cashVariance=transactionAmount-frankedAmount-unfrankedAmount
15
+ */
16
+ private listenAmountChanges;
10
17
  /**
11
18
  * Set transaction amount based on holding quantity and price
12
19
  */
@@ -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,3 +25,5 @@ export * from './transaction';
24
25
  export * from './depreciation';
25
26
  export * from './holding';
26
27
  export * from './chart-accounts';
28
+ export * from './tax-review';
29
+ export * from './chat';
@@ -1,6 +1,6 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { Loan } from '../../models/loan/loan';
3
- import { LoanTypeEnum } from '../../db/Enums/bank/loan/loan-type.enum';
2
+ import { Loan } from '../../models';
3
+ import { LoanTypeEnum } from '../../db/Enums/bank/loan';
4
4
  /**
5
5
  * Form with loan details.
6
6
  * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
@@ -1,6 +1,6 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { User } from '../../models';
3
3
  export declare class RegisterClientForm extends AbstractForm<User> {
4
- constructor(referenceCode?: string);
4
+ constructor(user?: User);
5
5
  submit(data?: object): User;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { FirmTypeEnum } from '../../db/Enums/firm-type.enum';
3
- import { Firm } from '../../models/firm/firm';
2
+ import { FirmTypeEnum } from '../../db/Enums';
3
+ import { Firm } from '../../models';
4
4
  export declare class RegisterFirmForm extends AbstractForm<Firm> {
5
5
  private firmType;
6
6
  constructor(firmType: FirmTypeEnum, referenceCode?: string);
@@ -1,5 +1,5 @@
1
1
  import { AbstractForm } from '../../abstract.form';
2
- import { MyTaxDeductions } from '../../../models/report/my-tax';
2
+ import { MyTaxDeductions } from '../../../models/report';
3
3
  export declare class MyTaxDeductionsForm extends AbstractForm<MyTaxDeductions> {
4
4
  constructor(deductions: MyTaxDeductions);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { AbstractForm } from '../../abstract.form';
2
- import { MyTaxRent } from '../../../models/report/my-tax/my-tax-rent/my-tax-rent';
2
+ import { MyTaxRent } from '../../../models/report';
3
3
  export declare class MyTaxRentForm extends AbstractForm<MyTaxRent> {
4
4
  constructor(rent: MyTaxRent);
5
5
  }
@@ -0,0 +1,2 @@
1
+ export * from './tax-review-filter.form';
2
+ export * from './tax-review-filter-status.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum TaxReviewFilterStatusEnum {
2
+ ACTIVE = 1,
3
+ INACTIVE = 2
4
+ }
@@ -0,0 +1,21 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { ControlsInterface } from '../abstract.form';
3
+ import { TaxReviewCollection } from '../../collections';
4
+ import { IEventListener } from '../../interfaces';
5
+ import { TaxReviewFilterStatusEnum } from './tax-review-filter-status.enum';
6
+ import { ReplaySubject } from 'rxjs';
7
+ import { TaxReview } from '../../models/tax-review/tax-review';
8
+ interface ITaxReviewFilterControls extends ControlsInterface {
9
+ query: FormControl<string>;
10
+ dateFrom: FormControl<Date>;
11
+ dateTo: FormControl<Date>;
12
+ status: FormControl<TaxReviewFilterStatusEnum>;
13
+ }
14
+ export declare class TaxReviewFilterForm extends FormGroup<ITaxReviewFilterControls> implements IEventListener {
15
+ private collection;
16
+ dataChanges: ReplaySubject<TaxReview[]>;
17
+ constructor(collection: TaxReviewCollection);
18
+ listenEvents(): void;
19
+ filter(source?: TaxReviewCollection): void;
20
+ }
21
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { Transaction, TransactionAllocation } from '../../../models';
2
+ import { AbstractControl, FormArray } from '@angular/forms';
2
3
  import { IEventListener } from '../../../interfaces';
3
4
  import { WorkTransactionForm } from '../work/work-transaction.form';
4
5
  export declare class HoldingIncomeForm extends WorkTransactionForm implements IEventListener {
@@ -6,12 +7,18 @@ export declare class HoldingIncomeForm extends WorkTransactionForm implements IE
6
7
  * @TODO vik partial copyPast from workIncomeForm
7
8
  */
8
9
  constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
10
+ /**
11
+ * metafields components of transactionAmount
12
+ */
13
+ getAmountComponents(): AbstractControl[];
9
14
  listenEvents(): void;
15
+ get metaFields(): FormArray;
16
+ get frankingCredit(): AbstractControl;
10
17
  /**
11
18
  * @TODO Alex/Vik: probably we need some database changes related to metafields.
12
19
  * Now we have the following custom metafields behaviour:
13
20
  * - % of share field should be 100 by default (now handled by WorkTransactionForm)
14
- * - Franked and Unfranked sum should be equal to transaction amount (now handled by transactionsMetaFieldsValidator())
21
+ * - Franked and Unfranked sum should be equal to transaction amount
15
22
  * - Franked field has custom message (mat-hint) (now handled by HoldingIncomeFormComponent)
16
23
  * - some metafields required, but some not (now handled by HoldingIncomeForm)
17
24
  */
@@ -5,3 +5,4 @@ export * from './sole/sole-income.form';
5
5
  export * from './work/work-income.form';
6
6
  export * from './work/work-expense.form';
7
7
  export * from './holding/holding-income.form';
8
+ export * from './transaction-base-filter.form';
@@ -0,0 +1,19 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { ControlsInterface } from '../abstract.form';
3
+ import { Collection } from '../../collections';
4
+ import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
5
+ import { SoleBusiness } from '../../models';
6
+ import { IEventListener } from '../../interfaces';
7
+ import { TransactionBase } from '../../db/Models';
8
+ interface ITransactionBaseFilterControls extends ControlsInterface {
9
+ tankType: FormControl<TankTypeEnum>;
10
+ business: FormControl<SoleBusiness>;
11
+ dateFrom: FormControl<Date>;
12
+ dateTo: FormControl<Date>;
13
+ }
14
+ export declare class TransactionBaseFilterForm extends FormGroup<ITransactionBaseFilterControls> implements IEventListener {
15
+ constructor(tankType?: TankTypeEnum, business?: SoleBusiness);
16
+ listenEvents(): void;
17
+ filter<ModelClass extends TransactionBase, CollectionClass extends Collection<ModelClass>>(collection: CollectionClass): CollectionClass;
18
+ }
19
+ export {};
@@ -3,7 +3,7 @@ import { IEventListener } from '../../../interfaces';
3
3
  import { Transaction, TransactionAllocation } from '../../../models';
4
4
  import { AbstractControl } from '@angular/forms';
5
5
  export declare abstract class WorkTransactionForm extends TransactionForm implements IEventListener {
6
- constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[], controls?: {
6
+ protected constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[], controls?: {
7
7
  [key: string]: AbstractControl;
8
8
  });
9
9
  listenEvents(): void;
@@ -1,5 +1,17 @@
1
- import { User } from '../../models';
2
- import { AbstractForm } from '../abstract.form';
3
- export declare class UserForm extends AbstractForm<User> {
1
+ import { FormControl } from '@angular/forms';
2
+ import { Address, AppFile, User } from '../../models';
3
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
4
+ import { UserTitleEnum } from '../../db/Enums/user-title.enum';
5
+ import { Phone } from '../../models/phone/phone';
6
+ interface UserControlsInterface extends ControlsInterface {
7
+ title: FormControl<UserTitleEnum>;
8
+ firstName: FormControl<string>;
9
+ lastName: FormControl<string>;
10
+ address: FormControl<Address>;
11
+ phone: FormControl<Phone>;
12
+ file: FormControl<AppFile>;
13
+ }
14
+ export declare class UserForm extends AbstractForm<User, UserControlsInterface> {
4
15
  constructor(user: User);
5
16
  }
17
+ export {};
@@ -5,8 +5,6 @@ import { VehicleClaimDetails } from '../../models';
5
5
  * Add/Edit Vehicle Claim form
6
6
  */
7
7
  export declare class VehicleClaimForm extends AbstractForm<VehicleClaim> {
8
- private vehicleClaim;
9
- private details;
10
8
  /**
11
9
  * @param vehicleClaim required even for the new claim, because claim needs business for sole tank
12
10
  * @param details required for form controls disabled state management
@@ -2,10 +2,16 @@ import { BankConnection as BankConnectionBase } from '../../db/Models/bank/bank-
2
2
  import { BasiqJob } from './basiq';
3
3
  import { Bank } from './bank';
4
4
  export declare class BankConnection extends BankConnectionBase {
5
+ /**
6
+ * reminder to extend connection agreement
7
+ */
8
+ static expiryReminderDays: number;
5
9
  basiqJob: BasiqJob;
6
10
  bank: Bank;
7
11
  lastSuccessImportDate: Date;
12
+ expiryDate?: Date;
8
13
  isPending(): boolean;
14
+ isInvalid(): boolean;
9
15
  isActive(): boolean;
10
16
  isReconnecting(): boolean;
11
17
  setPending(): void;
@@ -17,4 +23,6 @@ export declare class BankConnection extends BankConnectionBase {
17
23
  isAccountsRetrieved(): boolean;
18
24
  isJobFailed(): boolean;
19
25
  isTemporaryUnavailable(): boolean;
26
+ isExpiring(): boolean;
27
+ isExpired(): boolean;
20
28
  }
@@ -1,9 +1,11 @@
1
1
  import { Chat as ChatBase } from '../../db/Models/firm/chat';
2
- import { User } from '../user/user';
2
+ import { User } from '../user';
3
+ import { FirmBranch } from '../firm';
3
4
  export declare class Chat extends ChatBase {
4
5
  employee: User;
5
6
  client: User;
6
7
  updatedAt: Date;
8
+ firmBranch: FirmBranch;
7
9
  /**
8
10
  * Check if chat is active
9
11
  */
@@ -1,8 +1,8 @@
1
1
  import { MessageDocument as MessageDocumentBase } from '../../db/Models/firm/message-document';
2
- import { IAsset } from '../../interfaces/asset.interface';
3
- import { AssetEntityTypeEnum } from '../../interfaces/asset-entity-type.enum';
4
- import { AssetTypeEnum } from '../../interfaces/asset-type.enum';
5
- import { User } from '../user/user';
2
+ import { IAsset } from '../../interfaces';
3
+ import { AssetEntityTypeEnum } from '../../interfaces';
4
+ import { AssetTypeEnum } from '../../interfaces';
5
+ import { User } from '../user';
6
6
  import { AppFile } from '../file';
7
7
  export declare class MessageDocument extends MessageDocumentBase implements IAsset {
8
8
  entityType: AssetEntityTypeEnum;
@@ -1,7 +1,6 @@
1
1
  import { AbstractModel } from '../../db/Models';
2
2
  import { ClientDetails } from './client-details';
3
3
  export declare class AnnualClientDetails extends AbstractModel {
4
- capitalLoss: number;
5
4
  privateHealthCare: boolean;
6
5
  spouse: boolean;
7
6
  spouseAnnualIncome: number;
@@ -0,0 +1,9 @@
1
+ import { CapitalLossInterface } from './capital-loss.interface';
2
+ import { ClientDetails } from './client-details';
3
+ import { AbstractModel } from '../../db/Models';
4
+ export declare class CapitalLoss extends AbstractModel implements CapitalLossInterface {
5
+ clientDetails: ClientDetails;
6
+ financialYear: number;
7
+ balance: number;
8
+ isManual: boolean;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface CapitalLossInterface {
2
+ clientDetails: object;
3
+ financialYear: number;
4
+ balance: number;
5
+ isManual: boolean;
6
+ }
@@ -1,3 +1,11 @@
1
1
  import { ClientDetails as ClientDetailsBase } from '../../db/Models/client/client-details';
2
2
  export declare class ClientDetails extends ClientDetailsBase {
3
+ /**
4
+ * reminder to sign basiq consent after x days before the expiration
5
+ */
6
+ static consentExpiryReminderDays: number;
7
+ get taxFileNumberMasked(): string;
8
+ basiqConsentExpiryDate: Date;
9
+ isBasiqConsentExpiring(): boolean;
10
+ isBasiqConsentExpired(): boolean;
3
11
  }
@@ -1,14 +1,15 @@
1
1
  import { ClientInvite as ClientInviteBase } from '../../db/Models/firm/client-invite';
2
2
  import { RegistrationInvite } from '../registration-invite/registration-invite';
3
- import { Firm } from '../firm/firm';
4
3
  import { User } from '../user';
4
+ import { Firm, FirmBranch } from '../firm';
5
5
  export declare class ClientInvite extends ClientInviteBase {
6
6
  sentOn: Date;
7
7
  updatedAt: Date;
8
- firm: Firm;
9
8
  client: User;
10
9
  employee: User;
11
10
  registrationInvite: RegistrationInvite;
11
+ firm: Firm;
12
+ firmBranch: FirmBranch;
12
13
  /**
13
14
  * Check if client invite status is pending
14
15
  */
@@ -1,10 +1,11 @@
1
1
  import { ClientMovement as ClientMovementBase } from '../../db/Models/firm/client-movement';
2
- import { Firm } from '../firm/firm';
2
+ import { Firm, FirmBranch } from '../firm';
3
3
  import { User } from '../user';
4
4
  export declare class ClientMovement extends ClientMovementBase {
5
- firm: Firm;
6
5
  client: User;
7
6
  employee: User;
8
7
  dateFrom: Date;
9
8
  dateTo: Date;
9
+ firmBranch?: FirmBranch;
10
+ get firm(): Firm;
10
11
  }
@@ -4,3 +4,5 @@ export * from './client-invite';
4
4
  export * from './client-movement';
5
5
  export * from './client-portfolio-chart-data';
6
6
  export * from './client-portfolio-report';
7
+ export * from './capital-loss';
8
+ export * from './capital-loss.interface';
@@ -1,5 +1,7 @@
1
1
  import { EmployeeDetails as EmployeeDetailsBase } from '../../db/Models/user/employee-details';
2
- import { Firm } from '../firm/firm';
2
+ import { Firm, FirmBranch } from '../firm';
3
3
  export declare class EmployeeDetails extends EmployeeDetailsBase {
4
4
  firm: Firm;
5
+ firmBranches: FirmBranch[];
6
+ get firmBranchNames(): string;
5
7
  }
@@ -1,7 +1,13 @@
1
1
  import { EmployeeInvite as EmployeeInviteBase } from '../../db/Models/firm/employee-invite';
2
2
  import { RegistrationInvite } from '../registration-invite/registration-invite';
3
- import { User } from '../user/user';
3
+ import { User } from '../user';
4
+ import { FirmBranch } from '../firm';
4
5
  export declare class EmployeeInvite extends EmployeeInviteBase {
5
6
  registrationInvite: RegistrationInvite;
6
7
  employee: User;
8
+ firmBranches?: FirmBranch[];
9
+ get firmBranchNames(): string;
10
+ get invitedFullName(): string;
11
+ get inviterFullName(): string;
12
+ get createdAt(): Date;
7
13
  }
@@ -41,24 +41,23 @@ export declare enum AppEventTypeEnum {
41
41
  PROPERTY_SUBSCRIPTION_ADDED = 36,
42
42
  PROPERTY_SUBSCRIPTION_DELETED = 37,
43
43
  PROPERTY_VALUATION_DOCUMENT_CREATED = 38,
44
- SOLE_BUSINESS_CREATED = 39,
45
- SOLE_DEPRECIATION_METHOD_UPDATED = 40,
46
- SOLE_DETAILS_CREATED = 41,
47
- SOLE_DETAILS_UPDATED = 42,
48
- SOLE_INVOICE_PUBLISHED = 43,
49
- TAX_REVIEW_UPDATED = 44,
50
- TRANSACTION_ALLOCATION_CREATED = 45,
51
- TRANSACTION_ALLOCATION_DELETED = 46,
52
- TRANSACTION_CREATED = 47,
53
- TRANSACTION_DELETED = 48,
54
- TRANSACTION_UPDATED = 49,
55
- TRANSACTIONS_CREATED = 50,
56
- VEHICLE_CLAIM_UPDATED = 51,
57
- VEHICLE_CLAIM_CREATED = 52,
58
- VEHICLE_CLAIM_DETAILS_UPDATED = 53,
59
- VEHICLE_CLAIM_DETAILS_CREATED = 54,
60
- VEHICLE_LOGBOOK_CREATED = 55,
61
- VEHICLE_LOGBOOK_UPDATED = 56,
62
- VEHICLE_LOGBOOK_DELETED = 57,
63
- VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 58
44
+ SOLE_DEPRECIATION_METHOD_UPDATED = 39,
45
+ SOLE_DETAILS_CREATED = 40,
46
+ SOLE_DETAILS_UPDATED = 41,
47
+ SOLE_INVOICE_PUBLISHED = 42,
48
+ TAX_REVIEW_UPDATED = 43,
49
+ TRANSACTION_ALLOCATION_CREATED = 44,
50
+ TRANSACTION_ALLOCATION_DELETED = 45,
51
+ TRANSACTION_CREATED = 46,
52
+ TRANSACTION_DELETED = 47,
53
+ TRANSACTION_UPDATED = 48,
54
+ TRANSACTIONS_CREATED = 49,
55
+ VEHICLE_CLAIM_UPDATED = 50,
56
+ VEHICLE_CLAIM_CREATED = 51,
57
+ VEHICLE_CLAIM_DETAILS_UPDATED = 52,
58
+ VEHICLE_CLAIM_DETAILS_CREATED = 53,
59
+ VEHICLE_LOGBOOK_CREATED = 54,
60
+ VEHICLE_LOGBOOK_UPDATED = 55,
61
+ VEHICLE_LOGBOOK_DELETED = 56,
62
+ VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 57
64
63
  }
@@ -6,4 +6,5 @@ import { File } from '../../db/Models';
6
6
  export declare class AppFile extends File {
7
7
  static imageMimeTypes: string[];
8
8
  isImage(): boolean;
9
+ get month(): string;
9
10
  }
@@ -0,0 +1,12 @@
1
+ import { Firm } from './firm';
2
+ import { Address } from '../address';
3
+ import { AbstractModel } from '../../db/Models';
4
+ import { FirmBranchInterface } from './firm-branch.interface';
5
+ import { Phone } from '../phone/phone';
6
+ export declare class FirmBranch extends AbstractModel implements FirmBranchInterface {
7
+ name: string;
8
+ isMain: boolean;
9
+ firm: Firm;
10
+ address: Address;
11
+ phone?: Phone;
12
+ }
@@ -0,0 +1,7 @@
1
+ export interface FirmBranchInterface {
2
+ name: string;
3
+ isMain: boolean;
4
+ firm: object;
5
+ address: object;
6
+ phone?: object;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './firm';
2
+ export * from './firm-branch';
@@ -28,7 +28,6 @@ export declare class Holding extends AbstractModel {
28
28
  get purchaseValue(): number;
29
29
  /**
30
30
  * Get current market price
31
- * @TODO vik/alex no need to pass holdingType, should come from backend
32
31
  */
33
32
  get marketValue(): number;
34
33
  /**
@@ -23,3 +23,4 @@ export * from './income-source';
23
23
  export * from './asset-sale';
24
24
  export * from './budget';
25
25
  export * from './tax-return';
26
+ export * from './firm';