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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.1",
3
+ "version": "0.33.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
package/public-api.d.ts CHANGED
@@ -39,7 +39,7 @@ export * from './src/lib/db/Enums/depreciation-calculation.enum';
39
39
  export * from './src/lib/db/Enums/depreciation-calculation-percent.enum';
40
40
  export * from './src/lib/db/Enums/depreciation-type.enum';
41
41
  export * from './src/lib/db/Enums/depreciation-write-off-amount.enum';
42
- export * from './src/lib/db/Enums/firm-type.enum';
42
+ export * from './src/lib/db/Enums/firm/firm-type.enum';
43
43
  export * from './src/lib/db/Enums/income-source';
44
44
  export * from './src/lib/db/Enums/invite-status.enum';
45
45
  export * from './src/lib/db/Enums/bank/loan';
@@ -173,7 +173,6 @@ export * from './src/lib/functions/enum-to-list';
173
173
  export * from './src/lib/functions/get-doc-icon';
174
174
  export * from './src/lib/functions/mat-options-functions';
175
175
  export * from './src/lib/functions/mat-sort-options';
176
- export * from './src/lib/functions/tax-review-filter-predicate';
177
176
  export * from './src/lib/functions/array';
178
177
  /**
179
178
  * Interceptors
@@ -1,7 +1,8 @@
1
- import { BankAccount, BankTransaction, IncomeSource, MonthNumberEnum } from '../models';
1
+ import { BankTransaction, IncomeSource, MonthNumberEnum } from '../models';
2
2
  import { Collection } from './collection';
3
3
  import { CollectionDictionary } from './collection-dictionary';
4
4
  import { TransactionAllocationCollection } from './transaction';
5
+ import { BankAccountCollection } from './bank-account.collection';
5
6
  /**
6
7
  * Collection of bank transactions.
7
8
  * IMPORTANT: Create this collection based on bank transactions from TransactionAllocationService
@@ -40,7 +41,7 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
40
41
  * get list of transactions by provided bank accounts
41
42
  * @param bankAccounts by which transactions should be returned
42
43
  */
43
- getByBankAccounts(bankAccounts: BankAccount[]): BankTransaction[];
44
+ getByBankAccounts(bankAccounts: BankAccountCollection): BankTransactionCollection;
44
45
  /**
45
46
  * get list of transactions by provided ids of bank accounts
46
47
  * @param ids of bank accounts
@@ -1,9 +1,5 @@
1
1
  import { Collection } from '../collection';
2
- import { Chat, Message } from '../../models';
2
+ import { Chat } from '../../models';
3
3
  export declare class ChatCollection extends Collection<Chat> {
4
- /**
5
- * Sort chats by last messages (newest first) + empty chats in the end
6
- */
7
- getSortedByNewest(messages: Message[]): this;
8
4
  getActive(): this;
9
5
  }
@@ -1,8 +1,8 @@
1
1
  import { Collection } from './collection';
2
2
  import { ClientMovement } from '../models';
3
- import { EmployeeCollection } from './employee.collection';
3
+ import { EmployeeCollection } from './firm';
4
4
  import { ClientCollection } from './client.collection';
5
- import { FirmTypeEnum } from '../db/Enums/firm-type.enum';
5
+ import { FirmTypeEnum } from '../db/Enums';
6
6
  import { CollectionDictionary } from './collection-dictionary';
7
7
  /**
8
8
  * Collection of tax review
@@ -1,4 +1,4 @@
1
1
  import { Collection } from './collection';
2
- import { User } from '../models/user/user';
2
+ import { User } from '../models';
3
3
  export declare class ClientCollection extends Collection<User> {
4
4
  }
@@ -20,6 +20,7 @@ export declare class CollectionDictionary<Collection extends BaseCollection<Abst
20
20
  * List of collections keys
21
21
  */
22
22
  get keys(): string[];
23
+ get values(): Collection[];
23
24
  /**
24
25
  * push new elements in existing item
25
26
  */
@@ -36,13 +36,17 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
36
36
  groupBy(path?: string): CollectionDictionary<this>;
37
37
  indexBy(path?: string): Dictionary<Model>;
38
38
  filter(callback: (item: Model) => boolean): this;
39
- filterBy(path: string, values: any): this;
39
+ filterBy(path: string, values: any, skipIfEmpty?: boolean): this;
40
40
  filterByRange(path: string, from: any, to: any): this;
41
41
  filterByFinancialYear(pathFrom: string, pathTo?: string, financialYear?: FinancialYear): this;
42
42
  find(callback: (item: Model) => boolean): Model | null;
43
43
  findBy(path: string, value: any): Model | null;
44
44
  findIndexBy(path: string, value: any): number;
45
45
  push(...items: Model[]): this;
46
+ /**
47
+ * @TODO performance check this.create performance and why we do it instead of changing collection
48
+ */
49
+ unshift(...items: Model[]): this;
46
50
  remove(...items: Model[]): this;
47
51
  /**
48
52
  * @TODO it's filter, not remove
@@ -0,0 +1,5 @@
1
+ import { Collection } from '../collection';
2
+ import { EmployeeInvite } from '../../models/employee/employee-invite';
3
+ export declare class EmployeeInviteCollection extends Collection<EmployeeInvite> {
4
+ filterByBranchIds(firmBranchIds: number[]): this;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { UserCollection } from '../user/user.collection';
2
+ import { CollectionDictionary } from '../collection-dictionary';
3
+ export declare class EmployeeCollection extends UserCollection {
4
+ groupByBranch(): CollectionDictionary<EmployeeCollection>;
5
+ filterByBranchIds(firmBranchIds: number[]): this;
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './employee.collection';
2
+ export * from './employee-invite.collection';
@@ -9,7 +9,7 @@ import { IIncomeSourceForecast } from '../../interfaces';
9
9
  export declare class IncomeSourceCollection extends Collection<IncomeSource> {
10
10
  filterByTank(tank: TankTypeEnum): IncomeSource[];
11
11
  /**
12
- * Filter income sources by provided tyoes
12
+ * Filter income sources by provided types
13
13
  * @param types
14
14
  */
15
15
  filterByTypes(types: IncomeSourceTypeEnum[]): IncomeSource[];
@@ -21,7 +21,7 @@ export * from './client-portfolio-report.collection';
21
21
  export * from './client.collection';
22
22
  export * from './depreciation-forecast.collection';
23
23
  export * from './depreciation.collection';
24
- export * from './employee.collection';
24
+ export * from './firm';
25
25
  export * from './exportable.collection';
26
26
  export * from './income-source';
27
27
  export * from './tax-review.collection';
@@ -29,3 +29,4 @@ export * from './user-event-setting.collection';
29
29
  export * from './user-event-type-collection';
30
30
  export * from './holding';
31
31
  export * from './asset-sale.collection';
32
+ export * from './user/user.collection';
@@ -1,4 +1,8 @@
1
1
  import { Collection } from '../collection';
2
2
  import { PropertyValuation } from '../../models';
3
3
  export declare class PropertyValuationCollection extends Collection<PropertyValuation> {
4
+ /**
5
+ * @TODO vik find by year when backend refactored (all years would exist)
6
+ */
7
+ getMarketValue(date: Date): number;
4
8
  }
@@ -1,8 +1,8 @@
1
1
  import { Collection } from '../../collection';
2
- import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
2
+ import { ChartAccounts } from '../../../models';
3
3
  import { DepreciationCollection } from '../../depreciation.collection';
4
4
  import { PropertyReportItemCollection } from './property-report-item.collection';
5
- import { PropertyCollection } from '../../property/property.collection';
5
+ import { PropertyCollection } from '../../property';
6
6
  /**
7
7
  * Collection to work with depreciation-based property report items
8
8
  */
@@ -1,8 +1,8 @@
1
1
  import { Collection } from '../../collection';
2
- import { TransactionCollection } from '../../transaction/transaction.collection';
3
- import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
2
+ import { TransactionCollection } from '../../transaction';
3
+ import { ChartAccounts } from '../../../models';
4
4
  import { PropertyReportItemCollection } from './property-report-item.collection';
5
- import { PropertyCollection } from '../../property/property.collection';
5
+ import { PropertyCollection } from '../../property';
6
6
  /**
7
7
  * Collection to work with transaction-based property report items
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import { Collection } from '../../collection';
2
- import { PropertyReportItem } from '../../../models/report/property/property-report-item';
2
+ import { PropertyReportItem } from '../../../models/report';
3
3
  /**
4
4
  * Base collection to work with property report items
5
5
  */
@@ -18,10 +18,6 @@ export declare class TaxReviewCollection extends Collection<TaxReview> {
18
18
  * Get tax reviews items in work (In progress, Waiting for client, Waiting for Approval, Is approved)
19
19
  */
20
20
  getInWork(): TaxReview[];
21
- /**
22
- * Get percentage of completed reviews of the total review amount
23
- */
24
- getCompletedPercentage(): number;
25
21
  /**
26
22
  * get list of items filtered by status
27
23
  * @param status
@@ -98,4 +98,5 @@ export declare class TransactionCollection extends ExportableCollection<Transact
98
98
  * @TODO vik business transactions calculated differently, separated collection?
99
99
  */
100
100
  getBusinessClaimAmount(businessId?: number): number;
101
+ getTaxable(): this;
101
102
  }
@@ -0,0 +1,4 @@
1
+ import { User } from '../../models';
2
+ import { Collection } from '../collection';
3
+ export declare class UserCollection extends Collection<User> {
4
+ }
@@ -1,6 +1,9 @@
1
1
  import { Collection } from '../collection';
2
2
  import { VehicleClaim, VehicleLogbook } from '../../models';
3
3
  import { BestVehicleLogbookCollection } from './best-vehicle-logbook.collection';
4
+ /**
5
+ * this collection sorted by date desc, that's why first/last methods works different
6
+ */
4
7
  export declare class VehicleLogbookCollection extends Collection<VehicleLogbook> {
5
8
  /**
6
9
  * Calculate total kilometers traveled
@@ -12,4 +15,7 @@ export declare class VehicleLogbookCollection extends Collection<VehicleLogbook>
12
15
  * get collection of logbooks with the biggest work usage for {@link BestVehicleLogbookCollection.periodDuration}
13
16
  */
14
17
  getBest(): BestVehicleLogbookCollection | null;
18
+ get first(): VehicleLogbook;
19
+ get last(): VehicleLogbook;
20
+ get preLast(): VehicleLogbook;
15
21
  }
@@ -1,4 +1,5 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
2
3
  import * as i0 from "@angular/core";
3
4
  import * as i1 from "@angular/common";
4
5
  import * as i2 from "./interceptors/interceptors.module";
@@ -6,7 +7,7 @@ import * as i2 from "./interceptors/interceptors.module";
6
7
  * https://angular.io/guide/creating-libraries
7
8
  */
8
9
  export declare class CoreModule {
9
- static forRoot(environment: object): ModuleWithProviders<CoreModule>;
10
+ static forRoot(environment: object): ModuleWithProviders<CommonModule>;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
11
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.CommonModule, typeof i2.InterceptorsModule], never>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
@@ -1,5 +1,6 @@
1
1
  export declare enum BankConnectionStatusEnum {
2
2
  PENDING = 1,
3
3
  ACTIVE = 2,
4
+ INVALID = 3,
4
5
  RECONNECTING = 4
5
6
  }
@@ -1,7 +1,7 @@
1
1
  export declare enum ChartAccountsPropertyAdjustmentsListEnum {
2
2
  INTEREST_ON_LOAN = 302,
3
3
  ADVERTISING_FOR_TENANTS = 308,
4
- BODY_CORPORATE_FEES = 3010,
4
+ BODY_CORPORATE_FEES = 310,
5
5
  SPECIAL_LEVY = 311,
6
6
  BORROWING_EXPENSES_BANK_FEES = 313,
7
7
  BORROWING_EXPENSES = 315,
@@ -0,0 +1,4 @@
1
+ export declare enum EmployeeInviteRoleEnum {
2
+ EMPLOYEE = 1,
3
+ MANAGER = 2
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './employee-invite-role.enum';
2
+ export * from './firm-type.enum';
@@ -1,8 +1,9 @@
1
1
  export declare enum HoldingTypeExchangeListEnum {
2
2
  US = 1,
3
3
  AU = 2,
4
- TO = 3,
5
- HK = 4,
6
- SG = 5,
7
- CC = 6
4
+ LSE = 3,
5
+ TO = 4,
6
+ HK = 5,
7
+ SG = 6,
8
+ CC = 7
8
9
  }
@@ -3,9 +3,11 @@ export * from './allocation-rule-condition-field.enum';
3
3
  export * from './allocation-rule-condition-operator.enum';
4
4
  export * from './allocation-rule-type.enum';
5
5
  export * from './bank';
6
+ export * from './firm';
6
7
  export * from './annual-frequency.enum';
7
8
  export * from './chart-accounts';
8
9
  export * from './document-type.enum';
9
10
  export * from './holding';
10
11
  export * from './tax-return';
11
12
  export * from './subscription';
13
+ export * from './user';
@@ -0,0 +1,12 @@
1
+ export declare enum GenderEnum {
2
+ PREFER_NOT_TO_SAY = 0,
3
+ MALE = 1,
4
+ FEMALE = 2,
5
+ TRANSGENDER = 3,
6
+ GENDERQUEER = 4,
7
+ NON_BINARY = 5,
8
+ GENDERFLUID = 6,
9
+ AGENDER = 7,
10
+ BIGENDER = 8,
11
+ OTHER = 9
12
+ }
@@ -0,0 +1 @@
1
+ export * from './gender.enum';
@@ -14,4 +14,5 @@ export declare class BankConnection extends ObservableModel {
14
14
  basiqJob?: BasiqJob;
15
15
  lastSuccessImportDate?: Date;
16
16
  provider?: BankProviderEnum;
17
+ expiryDate?: Date;
17
18
  }
@@ -1,6 +1,5 @@
1
1
  import { ClientDetails } from './client-details';
2
2
  export declare class AnnualClientDetails {
3
- capitalLoss?: number;
4
3
  privateHealthCare?: boolean;
5
4
  spouse?: boolean;
6
5
  spouseAnnualIncome?: number;
@@ -16,6 +16,7 @@ export declare class ClientDetails extends AbstractModel {
16
16
  dateOfBirth?: Date;
17
17
  isGST?: boolean;
18
18
  basiqConsentId?: string;
19
+ basiqConsentExpiryDate?: Date;
19
20
  deletedAt?: Date;
20
21
  createdAt?: Date;
21
22
  updatedAt?: Date;
@@ -2,6 +2,7 @@ import { TaxReviewStatusEnum } from '../../../Enums/tax-review-status.enum';
2
2
  import { User } from '../../user/user';
3
3
  import { Firm } from '../firm';
4
4
  import { AbstractModel } from '../../abstract-model';
5
+ import { FirmBranch } from '../../../../models';
5
6
  export declare class TaxReview extends AbstractModel {
6
7
  id?: number;
7
8
  financialYear?: number;
@@ -11,4 +12,5 @@ export declare class TaxReview extends AbstractModel {
11
12
  client?: User;
12
13
  employee?: User;
13
14
  firm?: Firm;
15
+ firmBranch?: FirmBranch;
14
16
  }
@@ -4,6 +4,7 @@ import { User } from '../user/user';
4
4
  import { Message } from './message';
5
5
  import { MessageDocument } from './message-document';
6
6
  import { AbstractModel } from '../abstract-model';
7
+ import { FirmBranch } from '../../../models';
7
8
  export declare class Chat extends AbstractModel {
8
9
  status?: ChatStatusEnum;
9
10
  createdAt?: Date;
@@ -14,4 +15,5 @@ export declare class Chat extends AbstractModel {
14
15
  client?: User;
15
16
  messages?: Message[];
16
17
  documents?: MessageDocument[];
18
+ firmBranch?: FirmBranch;
17
19
  }
@@ -1,9 +1,10 @@
1
1
  import { ClientInviteTypeEnum } from '../../Enums/client-invite-type.enum';
2
2
  import { ClientInviteStatusEnum } from '../../Enums/client-invite-status.enum';
3
3
  import { User } from '../user/user';
4
- import { Firm } from './firm';
5
4
  import { RegistrationInvite } from '../user/registration-invite';
6
5
  import { ObservableModel } from '../observable-model';
6
+ import { FirmBranchInterface } from '../../../models/firm/firm-branch.interface';
7
+ import { Firm } from './firm';
7
8
  export declare class ClientInvite extends ObservableModel {
8
9
  static className: string;
9
10
  type?: ClientInviteTypeEnum;
@@ -12,6 +13,8 @@ export declare class ClientInvite extends ObservableModel {
12
13
  updatedAt?: Date;
13
14
  employee?: User;
14
15
  client?: User;
15
- firm?: Firm;
16
16
  registrationInvite?: RegistrationInvite;
17
+ address?: string;
18
+ firm?: Firm;
19
+ firmBranch?: FirmBranchInterface;
17
20
  }
@@ -1,11 +1,11 @@
1
- import { Firm } from './firm';
2
1
  import { User } from '../user/user';
3
2
  import { ObservableModel } from '../observable-model';
3
+ import { FirmBranch } from '../../../models';
4
4
  export declare class ClientMovement extends ObservableModel {
5
5
  static className: string;
6
6
  dateFrom?: Date;
7
7
  dateTo?: Date;
8
- firm?: Firm;
9
8
  client?: User;
10
9
  employee?: User;
10
+ firmBranch?: FirmBranch;
11
11
  }
@@ -1,9 +1,11 @@
1
1
  import { User } from '../user/user';
2
- import { Firm } from './firm';
3
2
  import { RegistrationInvite } from '../user/registration-invite';
4
3
  import { AbstractModel } from '../abstract-model';
4
+ import { FirmBranch } from '../../../models';
5
+ import { EmployeeInviteRoleEnum } from '../../Enums';
5
6
  export declare class EmployeeInvite extends AbstractModel {
6
7
  employee?: User;
7
- firm?: Firm;
8
8
  registrationInvite?: RegistrationInvite;
9
+ firmBranches?: FirmBranch[];
10
+ role?: EmployeeInviteRoleEnum;
9
11
  }
@@ -1,4 +1,4 @@
1
- import { FirmTypeEnum } from '../../Enums/firm-type.enum';
1
+ import { FirmTypeEnum } from '../../Enums';
2
2
  import { Address } from '../address';
3
3
  import { Phone } from '../phone';
4
4
  import { User } from '../user/user';
@@ -2,14 +2,10 @@ import { Chat } from './chat';
2
2
  import { Message } from './message';
3
3
  import { User } from '../user/user';
4
4
  import { AbstractModel } from '../abstract-model';
5
+ import { File } from '../file';
5
6
  export declare class MessageDocument extends AbstractModel {
6
- name?: string;
7
- originalName?: string;
8
- size?: number;
9
- mimeType?: string;
10
- createdAt?: Date;
11
- updatedAt?: Date;
12
7
  chat?: Chat;
13
8
  message?: Message;
14
9
  user?: User;
10
+ file: File;
15
11
  }
@@ -1,4 +1,4 @@
1
- import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source/income-source-forecast-trust-type.enum';
1
+ import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source';
2
2
  import { IncomeSource } from './income-source';
3
3
  import { IncomeSourceType } from './income-source-type';
4
4
  import { AbstractModel } from '../abstract-model';
@@ -11,4 +11,5 @@ export declare class IncomeSourceForecast extends AbstractModel {
11
11
  trustType?: IncomeSourceForecastTrustTypeEnum;
12
12
  incomeSource?: IncomeSource;
13
13
  incomeSourceType?: IncomeSourceType;
14
+ isManual?: boolean;
14
15
  }
@@ -2,7 +2,7 @@ import { User } from '../user/user';
2
2
  import { SalaryForecast } from './salary-forecast';
3
3
  import { SoleForecast } from '../sole/sole-forecast';
4
4
  import { IncomeSourceForecast } from './income-source-forecast';
5
- import { IncomeSourceTypeEnum } from '../../Enums/income-source/income-source-type.enum';
5
+ import { IncomeSourceTypeEnum } from '../../Enums/income-source';
6
6
  import { AbstractModel } from '../abstract-model';
7
7
  export declare class IncomeSource extends AbstractModel {
8
8
  name?: string;
@@ -12,4 +12,5 @@ export declare class SalaryForecast extends AbstractModel {
12
12
  createdAt?: Date;
13
13
  updatedAt?: Date;
14
14
  incomeSource?: IncomeSource;
15
+ isManual?: boolean;
15
16
  }
@@ -12,4 +12,5 @@ export declare class PropertyForecast extends AbstractModel {
12
12
  updatedAt?: Date;
13
13
  property?: Property;
14
14
  claimPercent?: number;
15
+ isManual?: boolean;
15
16
  }
@@ -6,4 +6,5 @@ export declare class SoleBusinessLoss extends AbstractModel {
6
6
  financialYear?: number;
7
7
  business?: SoleBusiness;
8
8
  offsetRule?: SoleBusinessLossOffsetRule;
9
+ isManual?: boolean;
9
10
  }
@@ -6,12 +6,12 @@ import { SoleInvoiceTemplate } from './sole-invoice-template';
6
6
  import { VehicleClaim } from '../vehicle/vehicle-claim';
7
7
  import { Transaction } from '../transaction/transaction';
8
8
  import { Depreciation } from '../depreciation/depreciation';
9
- import { AbstractModel } from '../abstract-model';
10
9
  import { VehicleLogbook } from '../vehicle/vehicle-logbook';
11
10
  import { SoleBusinessActivity } from './sole-business-activity';
12
11
  import { IncomeSource } from '../incomeSource/income-source';
13
12
  import { File } from '../file';
14
- export declare class SoleBusiness extends AbstractModel {
13
+ import { ObservableModel } from '../observable-model';
14
+ export declare class SoleBusiness extends ObservableModel {
15
15
  name?: string;
16
16
  description?: string;
17
17
  website?: string;
@@ -5,4 +5,5 @@ export declare class SoleForecast extends AbstractModel {
5
5
  amount?: number;
6
6
  taxInstalments?: number;
7
7
  incomeSource?: IncomeSource;
8
+ isManual?: boolean;
8
9
  }
@@ -1,7 +1,9 @@
1
1
  import { User } from './user';
2
2
  import { Firm } from '../firm/firm';
3
3
  import { AbstractModel } from '../abstract-model';
4
+ import { FirmBranchInterface } from '../../../models/firm/firm-branch.interface';
4
5
  export declare class EmployeeDetails extends AbstractModel {
5
6
  user?: User;
6
7
  firm?: Firm;
8
+ firmBranches: FirmBranchInterface[];
7
9
  }
@@ -17,6 +17,7 @@ import { SoleDetails } from '../sole/sole-details';
17
17
  import { File } from '../file';
18
18
  import { ObservableModel } from '../observable-model';
19
19
  import { SetupItem } from '../setup-item';
20
+ import { GenderEnum } from '../../Enums/user/gender.enum';
20
21
  export declare class User extends ObservableModel {
21
22
  static className: string;
22
23
  intercomId?: number;
@@ -28,6 +29,7 @@ export declare class User extends ObservableModel {
28
29
  firstName?: string;
29
30
  lastName?: string;
30
31
  title?: UserTitleEnum;
32
+ gender?: GenderEnum;
31
33
  status?: UserStatusEnum;
32
34
  isConfirmed?: boolean;
33
35
  verificationCode?: string;
@@ -4,6 +4,6 @@ import { AbstractModel } from '../abstract-model';
4
4
  export declare class VehicleClaimDetails extends AbstractModel {
5
5
  financialYear?: number;
6
6
  method?: VehicleClaimDetailsMethodEnum;
7
- isManual?: boolean;
8
7
  user?: User;
8
+ isManual?: boolean;
9
9
  }
@@ -1,16 +1,24 @@
1
- import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, UntypedFormGroup, ValidatorFn } from '@angular/forms';
1
+ import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, FormGroup, ValidatorFn } from '@angular/forms';
2
2
  import { EventEmitter, Type } from '@angular/core';
3
+ /**
4
+ * Default Controls Interface with loose typing
5
+ */
6
+ export interface ControlsInterface {
7
+ [key: string]: AbstractControl<any, any>;
8
+ }
3
9
  /**
4
10
  * Abstract form class
5
11
  * @TODO rename to AbstractFormGroup
6
12
  * @TODO Alex TT-2190: refactor: check and improve logic
13
+ * @TODO Model extends AbstractModel
7
14
  */
8
- export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
15
+ export declare abstract class AbstractForm<Model, Controls extends ControlsInterface = ControlsInterface> extends FormGroup<Controls> {
9
16
  static inputMaxLength: number;
10
17
  /**
11
18
  * Initial form value for comparison with changes to check saved/unsaved state
19
+ * @TODO typehint to model interface when all db/models migrated to interfaces
12
20
  */
13
- initialValue: Model;
21
+ initialValue: any;
14
22
  protected excludeExtraneousValues: boolean;
15
23
  protected modelClass: Type<Model>;
16
24
  model: Model;
@@ -21,11 +29,10 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
21
29
  */
22
30
  unsaved: boolean;
23
31
  onSubmit: EventEmitter<Model>;
24
- protected constructor(controls: {
25
- [key: string]: AbstractControl;
26
- }, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
32
+ protected constructor(controls: Controls, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
27
33
  get saved(): boolean;
28
34
  get currentValue(): Model;
35
+ toggleEnabledState(): void;
29
36
  /**
30
37
  * Check validation and return a new instance of generic model.
31
38
  * Merge form value to initial object
@@ -33,7 +40,7 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
33
40
  * @param includeDisabledFields ignore disabled fields
34
41
  */
35
42
  submit(data?: object, includeDisabledFields?: boolean): Model;
36
- addControl(name: string, control: AbstractControl, options?: {
43
+ addControl(name: string, control: Controls[string], options?: {
37
44
  emitEvent?: boolean;
38
45
  }): this;
39
46
  markAsUnsaved(): void;
@@ -1,4 +1,4 @@
1
- import { BankAccount } from '../../../models/bank/bank-account';
1
+ import { BankAccount } from '../../../models';
2
2
  import { AbstractForm } from '../../abstract.form';
3
3
  /**
4
4
  * Form for import multiple basiq bank accounts