taxtank-core 0.30.41 → 0.30.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1247) hide show
  1. package/esm2020/lib/collections/bank-account.collection.mjs +9 -29
  2. package/esm2020/lib/collections/bank-transaction.collection.mjs +3 -5
  3. package/esm2020/lib/collections/chat/message.collection.mjs +2 -4
  4. package/esm2020/lib/collections/collection-dictionary.mjs +1 -1
  5. package/esm2020/lib/collections/collection.mjs +1 -1
  6. package/esm2020/lib/collections/depreciation.collection.mjs +7 -19
  7. package/esm2020/lib/collections/exportable.collection.mjs +1 -2
  8. package/esm2020/lib/collections/holding-type.collection.mjs +1 -1
  9. package/esm2020/lib/collections/holding.collection.mjs +1 -1
  10. package/esm2020/lib/collections/loan/loan-payment.collection.mjs +12 -16
  11. package/esm2020/lib/collections/property/property-category-movement.collection.mjs +2 -4
  12. package/esm2020/lib/collections/property/property-share.collection.mjs +2 -4
  13. package/esm2020/lib/collections/property/property.collection.mjs +3 -7
  14. package/esm2020/lib/collections/report/depreciation/depreciation-report-item.collection.mjs +2 -4
  15. package/esm2020/lib/collections/report/vehicle-expense/vehicle-expense.collection.mjs +2 -4
  16. package/esm2020/lib/collections/subscription/service-subscription.collection.mjs +3 -7
  17. package/esm2020/lib/collections/tax-review.collection.mjs +5 -7
  18. package/esm2020/lib/collections/tax-summary/report-item.collection.mjs +8 -8
  19. package/esm2020/lib/collections/transaction/transaction.collection.mjs +11 -21
  20. package/esm2020/lib/db/Enums/address-type.enum.mjs +1 -1
  21. package/esm2020/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.mjs +1 -1
  22. package/esm2020/lib/db/Enums/allocation-rule-condition-field.enum.mjs +1 -1
  23. package/esm2020/lib/db/Enums/allocation-rule-condition-operator.enum.mjs +1 -1
  24. package/esm2020/lib/db/Enums/allocation-rule-type.enum.mjs +1 -1
  25. package/esm2020/lib/db/Enums/bank-account-status.enum.mjs +1 -1
  26. package/esm2020/lib/db/Enums/bank-connection-status.enum.mjs +1 -1
  27. package/esm2020/lib/db/Enums/bank-transaction-type.enum.mjs +1 -1
  28. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.mjs +1 -1
  29. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.mjs +1 -1
  30. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.mjs +1 -1
  31. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-type.enum.mjs +1 -1
  32. package/esm2020/lib/db/Enums/client-details-medicare-exemption.enum.mjs +1 -1
  33. package/esm2020/lib/db/Enums/client-details-work-depreciation-calculation.enum.mjs +1 -1
  34. package/esm2020/lib/db/Enums/client-details-working-holiday-maker.enum.mjs +1 -1
  35. package/esm2020/lib/db/Enums/client-invite-status.enum.mjs +1 -1
  36. package/esm2020/lib/db/Enums/depreciation-calculation-percent.enum.mjs +1 -1
  37. package/esm2020/lib/db/Enums/depreciation-type.enum.mjs +1 -1
  38. package/esm2020/lib/db/Enums/depreciation-write-off-amount.enum.mjs +1 -1
  39. package/esm2020/lib/db/Enums/file-type.enum.mjs +1 -1
  40. package/esm2020/lib/db/Enums/firm-type.enum.mjs +1 -1
  41. package/esm2020/lib/db/Enums/index.mjs +1 -1
  42. package/esm2020/lib/db/Enums/invite-status.enum.mjs +1 -1
  43. package/esm2020/lib/db/Enums/loan-bank-type.enum.mjs +1 -1
  44. package/esm2020/lib/db/Enums/loan-frequency.enum.mjs +1 -1
  45. package/esm2020/lib/db/Enums/loan-payout-type.enum.mjs +1 -1
  46. package/esm2020/lib/db/Enums/loan-repayment-frequency.enum.mjs +1 -1
  47. package/esm2020/lib/db/Enums/phone-type.enum.mjs +1 -1
  48. package/esm2020/lib/db/Enums/property/property-depreciation-calculation.enum.mjs +1 -1
  49. package/esm2020/lib/db/Enums/registration-invite-status.enum.mjs +1 -1
  50. package/esm2020/lib/db/Enums/salary-forecast-frequency.enum.mjs +1 -1
  51. package/esm2020/lib/db/Enums/service-notification-status.enum.mjs +1 -1
  52. package/esm2020/lib/db/Enums/service-notification-type.enum.mjs +1 -1
  53. package/esm2020/lib/db/Enums/spare-document-spare-type.enum.mjs +1 -1
  54. package/esm2020/lib/db/Enums/subscription/service-payment-method-card-brand.enum.mjs +1 -1
  55. package/esm2020/lib/db/Enums/subscription/service-payment-method-type.enum.mjs +1 -1
  56. package/esm2020/lib/db/Enums/subscription/service-payment-status.enum.mjs +1 -1
  57. package/esm2020/lib/db/Enums/subscription/service-price-recurring-interval.enum.mjs +1 -1
  58. package/esm2020/lib/db/Enums/subscription/service-subscription-status.enum.mjs +1 -1
  59. package/esm2020/lib/db/Enums/tax-calculation-medicare-exemption.enum.mjs +1 -1
  60. package/esm2020/lib/db/Enums/tax-calculation-type.enum.mjs +1 -1
  61. package/esm2020/lib/db/Enums/tax-summary-list.enum.mjs +1 -1
  62. package/esm2020/lib/db/Enums/tax-summary-tax-summary.enum.mjs +1 -1
  63. package/esm2020/lib/db/Enums/ticket-feedback.enum.mjs +1 -1
  64. package/esm2020/lib/db/Enums/ticket-status.enum.mjs +1 -1
  65. package/esm2020/lib/db/Enums/ticket-types.enum.mjs +1 -1
  66. package/esm2020/lib/db/Enums/transaction-source.enum.mjs +1 -1
  67. package/esm2020/lib/db/Enums/transaction-type.enum.mjs +1 -1
  68. package/esm2020/lib/db/Enums/user-event-status.enum.mjs +1 -1
  69. package/esm2020/lib/db/Enums/user-event-type-employee-type.enum.mjs +1 -1
  70. package/esm2020/lib/db/Enums/user-event-type-frequency.enum.mjs +1 -1
  71. package/esm2020/lib/db/Enums/user-event-type-user-type.enum.mjs +1 -1
  72. package/esm2020/lib/db/Enums/user-medicare-exemption.enum.mjs +1 -1
  73. package/esm2020/lib/db/Enums/user-work-depreciation-calculation.enum.mjs +1 -1
  74. package/esm2020/lib/db/Enums/user-working-holiday-maker.enum.mjs +1 -1
  75. package/esm2020/lib/db/Enums/vehicle-claim-details-method.enum.mjs +1 -1
  76. package/esm2020/lib/db/Enums/vehicle-logbook-purpose.enum.mjs +1 -1
  77. package/esm2020/lib/db/Models/abstract-model.mjs +1 -1
  78. package/esm2020/lib/db/Models/bank/bank-account-property.mjs +1 -1
  79. package/esm2020/lib/db/Models/bank/bank-account.mjs +1 -1
  80. package/esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
  81. package/esm2020/lib/db/Models/client/occupation.mjs +1 -1
  82. package/esm2020/lib/db/Models/country.mjs +1 -1
  83. package/esm2020/lib/db/Models/document/document-base.mjs +1 -1
  84. package/esm2020/lib/db/Models/firm/client-movement.mjs +1 -1
  85. package/esm2020/lib/db/Models/firm/employee-invite.mjs +1 -1
  86. package/esm2020/lib/db/Models/loan/borrowing-expense.mjs +1 -1
  87. package/esm2020/lib/db/Models/loan/loan-payout.mjs +1 -1
  88. package/esm2020/lib/db/Models/loan/loan.mjs +1 -1
  89. package/esm2020/lib/db/Models/observable-model.mjs +2 -2
  90. package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +1 -1
  91. package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
  92. package/esm2020/lib/db/Models/property/property-sale/tax-exemption-meta-field.mjs +1 -1
  93. package/esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs +1 -1
  94. package/esm2020/lib/db/Models/property/property-share.mjs +1 -1
  95. package/esm2020/lib/db/Models/property/property-valuation.mjs +1 -1
  96. package/esm2020/lib/db/Models/property/property.mjs +1 -1
  97. package/esm2020/lib/db/Models/sole/bas-report.mjs +1 -1
  98. package/esm2020/lib/db/Models/sole/sole-business-activity.mjs +1 -1
  99. package/esm2020/lib/db/Models/sole/sole-business-allocation.mjs +1 -1
  100. package/esm2020/lib/db/Models/sole/sole-contact.mjs +1 -1
  101. package/esm2020/lib/db/Models/sole/sole-forecast.mjs +1 -1
  102. package/esm2020/lib/db/Models/spare/spare-document-category.mjs +1 -1
  103. package/esm2020/lib/db/Models/subscription/service-payment-method.mjs +1 -1
  104. package/esm2020/lib/db/Models/subscription/service-subscription.mjs +1 -1
  105. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +3 -5
  106. package/esm2020/lib/db/Models/user/user-event-setting.mjs +1 -1
  107. package/esm2020/lib/db/Models/user/user-event-type-category.mjs +1 -1
  108. package/esm2020/lib/db/Models/user/user-event-type.mjs +1 -1
  109. package/esm2020/lib/db/Models/user/user-event.mjs +1 -1
  110. package/esm2020/lib/forms/abstract.form.mjs +1 -1
  111. package/esm2020/lib/forms/address/address.form.mjs +2 -2
  112. package/esm2020/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +1 -1
  113. package/esm2020/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +1 -1
  114. package/esm2020/lib/forms/bank/bank-account/bank-account-properties.form.mjs +5 -7
  115. package/esm2020/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
  116. package/esm2020/lib/forms/depreciation/depreciation.form.mjs +1 -1
  117. package/esm2020/lib/forms/holding/holding-type.form.mjs +4 -4
  118. package/esm2020/lib/forms/holding/holding.form.mjs +3 -3
  119. package/esm2020/lib/forms/holding/index.mjs +1 -1
  120. package/esm2020/lib/forms/index.mjs +1 -1
  121. package/esm2020/lib/forms/loan/loan.form.mjs +3 -3
  122. package/esm2020/lib/forms/property/property-sale/property-sale-cost-base.form.mjs +1 -1
  123. package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +1 -1
  124. package/esm2020/lib/forms/sole/bas-report.form.mjs +1 -1
  125. package/esm2020/lib/forms/sole/sole-business-allocations.form.mjs +5 -7
  126. package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +1 -1
  127. package/esm2020/lib/forms/sole/sole-invoice.form.mjs +1 -1
  128. package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +1 -1
  129. package/esm2020/lib/forms/transaction/transaction-base.form.mjs +1 -1
  130. package/esm2020/lib/forms/transaction/work/work-transaction.form.mjs +5 -7
  131. package/esm2020/lib/forms/user/user-invite.form.mjs +1 -1
  132. package/esm2020/lib/forms/vehicle/vehicle-logbook.form.mjs +1 -1
  133. package/esm2020/lib/forms/vehicle/vehicle.form.mjs +1 -1
  134. package/esm2020/lib/functions/array/replace.mjs +1 -1
  135. package/esm2020/lib/functions/array/sort-deep.mjs +1 -1
  136. package/esm2020/lib/functions/array/sort.mjs +1 -1
  137. package/esm2020/lib/functions/round-to.mjs +1 -1
  138. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +1 -1
  139. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +2 -4
  140. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +2 -4
  141. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +1 -1
  142. package/esm2020/lib/interceptors/jwt-interceptor.mjs +13 -15
  143. package/esm2020/lib/interceptors/preloader.interceptor.mjs +2 -2
  144. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +1 -1
  145. package/esm2020/lib/interfaces/income-source-forecast.interface.mjs +1 -1
  146. package/esm2020/lib/messages/index.mjs +1 -1
  147. package/esm2020/lib/messages/messages.enum.mjs +1 -1
  148. package/esm2020/lib/models/address/address.mjs +1 -1
  149. package/esm2020/lib/models/badge/badge.mjs +1 -1
  150. package/esm2020/lib/models/bank/bank-account-chart-data.mjs +9 -13
  151. package/esm2020/lib/models/bank/bank-account-property.mjs +1 -1
  152. package/esm2020/lib/models/bank/bank-account.mjs +1 -1
  153. package/esm2020/lib/models/bank/bank-connection.mjs +1 -1
  154. package/esm2020/lib/models/bank/bank-transaction-chart-data.mjs +4 -10
  155. package/esm2020/lib/models/bank/bank-transaction.mjs +2 -2
  156. package/esm2020/lib/models/bank/bank.mjs +1 -1
  157. package/esm2020/lib/models/bank/basiq/basiq-config.mjs +1 -1
  158. package/esm2020/lib/models/bank/basiq/basiq-job-response.mjs +1 -1
  159. package/esm2020/lib/models/bank/basiq/basiq-token.mjs +2 -2
  160. package/esm2020/lib/models/chart/chart-data.mjs +1 -1
  161. package/esm2020/lib/models/chart-accounts/chart-accounts-depreciation.mjs +1 -1
  162. package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +3 -3
  163. package/esm2020/lib/models/chat/chat.mjs +1 -1
  164. package/esm2020/lib/models/chat/message-document.mjs +1 -1
  165. package/esm2020/lib/models/chat/message.mjs +1 -1
  166. package/esm2020/lib/models/client/annual-client-details.mjs +1 -1
  167. package/esm2020/lib/models/client/client-invite.mjs +1 -1
  168. package/esm2020/lib/models/client/client-movement.mjs +1 -1
  169. package/esm2020/lib/models/client/client-portfolio-chart-data.mjs +5 -7
  170. package/esm2020/lib/models/depreciation/depreciation-capital-project.mjs +1 -1
  171. package/esm2020/lib/models/depreciation/depreciation-forecast.mjs +1 -1
  172. package/esm2020/lib/models/depreciation/depreciation.mjs +4 -8
  173. package/esm2020/lib/models/dictionary/dictionary.mjs +1 -1
  174. package/esm2020/lib/models/document/document-folder.mjs +1 -1
  175. package/esm2020/lib/models/employee/employee-details.mjs +1 -1
  176. package/esm2020/lib/models/employee/employee-invite.mjs +1 -1
  177. package/esm2020/lib/models/financial-year/financial-year.mjs +1 -1
  178. package/esm2020/lib/models/firm/firm.mjs +1 -1
  179. package/esm2020/lib/models/holding/holding-sale.mjs +2 -2
  180. package/esm2020/lib/models/holding/holding-type-exchange.mjs +1 -1
  181. package/esm2020/lib/models/holding/holding-type.mjs +1 -1
  182. package/esm2020/lib/models/holding/holding.mjs +2 -2
  183. package/esm2020/lib/models/income-position/income-position.mjs +1 -1
  184. package/esm2020/lib/models/income-source/income-source-forecast.mjs +1 -1
  185. package/esm2020/lib/models/income-source/income-source.mjs +1 -1
  186. package/esm2020/lib/models/income-source/salary-forecast.mjs +1 -1
  187. package/esm2020/lib/models/income-source/sole-forecast.mjs +3 -4
  188. package/esm2020/lib/models/loan/loan-payment.mjs +1 -1
  189. package/esm2020/lib/models/loan/loan.mjs +1 -1
  190. package/esm2020/lib/models/notification/notification.mjs +1 -1
  191. package/esm2020/lib/models/pdf/pdf-settings.mjs +1 -1
  192. package/esm2020/lib/models/phone/phone.mjs +1 -1
  193. package/esm2020/lib/models/property/property-category-movement.mjs +1 -1
  194. package/esm2020/lib/models/property/property-equity-chart-data.mjs +5 -13
  195. package/esm2020/lib/models/property/property-forecast.mjs +1 -1
  196. package/esm2020/lib/models/property/property-sale/property-sale.mjs +1 -1
  197. package/esm2020/lib/models/property/property-share.mjs +1 -1
  198. package/esm2020/lib/models/property/property-subscription.mjs +1 -1
  199. package/esm2020/lib/models/property/property-valuation.mjs +1 -1
  200. package/esm2020/lib/models/property/property.mjs +3 -7
  201. package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +2 -2
  202. package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +2 -2
  203. package/esm2020/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -2
  204. package/esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs +2 -2
  205. package/esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs +2 -2
  206. package/esm2020/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +1 -1
  207. package/esm2020/lib/models/report/property/property-report-item.mjs +1 -1
  208. package/esm2020/lib/models/report/sole/sole-business/sole-business-loss-report.mjs +1 -1
  209. package/esm2020/lib/models/service-subscription/service-payment.mjs +1 -1
  210. package/esm2020/lib/models/service-subscription/service-price.mjs +2 -2
  211. package/esm2020/lib/models/service-subscription/service-promo-code.mjs +1 -1
  212. package/esm2020/lib/models/service-subscription/service-subscription-item.mjs +1 -1
  213. package/esm2020/lib/models/service-subscription/service-subscription.mjs +4 -8
  214. package/esm2020/lib/models/sole/bas-report.mjs +2 -2
  215. package/esm2020/lib/models/sole/sole-business-activity.mjs +2 -2
  216. package/esm2020/lib/models/sole/sole-business-allocation.mjs +1 -1
  217. package/esm2020/lib/models/sole/sole-business-loss-offset-rule.mjs +1 -1
  218. package/esm2020/lib/models/sole/sole-business-loss.mjs +1 -1
  219. package/esm2020/lib/models/sole/sole-business.mjs +1 -1
  220. package/esm2020/lib/models/sole/sole-contact.mjs +1 -1
  221. package/esm2020/lib/models/sole/sole-details.mjs +1 -1
  222. package/esm2020/lib/models/sole/sole-invoice-item.mjs +1 -1
  223. package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
  224. package/esm2020/lib/models/sole/sole-invoice.mjs +2 -2
  225. package/esm2020/lib/models/tax-review/tax-review.mjs +1 -1
  226. package/esm2020/lib/models/tax-summary/report-item.mjs +1 -1
  227. package/esm2020/lib/models/tax-summary/tax-summary-section.mjs +1 -1
  228. package/esm2020/lib/models/tax-summary/tax-summary.mjs +1 -1
  229. package/esm2020/lib/models/toast/toast.mjs +1 -1
  230. package/esm2020/lib/models/transaction/allocation-rule-condition.mjs +1 -1
  231. package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +7 -17
  232. package/esm2020/lib/models/transaction/allocation-rule.mjs +5 -5
  233. package/esm2020/lib/models/transaction/transaction-allocation.mjs +2 -2
  234. package/esm2020/lib/models/transaction/transaction-meta-field.mjs +1 -1
  235. package/esm2020/lib/models/transaction/transaction.mjs +4 -6
  236. package/esm2020/lib/models/user/user.mjs +1 -1
  237. package/esm2020/lib/models/user-event/user-event-setting.mjs +1 -1
  238. package/esm2020/lib/models/user-event/user-event-type.mjs +2 -2
  239. package/esm2020/lib/models/vehicle/logbook-period.mjs +1 -1
  240. package/esm2020/lib/models/vehicle/vehicle-claim-details.mjs +1 -1
  241. package/esm2020/lib/models/vehicle/vehicle-claim.mjs +1 -1
  242. package/esm2020/lib/models/vehicle/vehicle-logbook.mjs +1 -1
  243. package/esm2020/lib/models/vehicle/vehicle.mjs +1 -1
  244. package/esm2020/lib/services/account-setup/account-setup.service.mjs +2 -2
  245. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +1 -1
  246. package/esm2020/lib/services/auth/auth.service.mjs +2 -2
  247. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -7
  248. package/esm2020/lib/services/event/sse.service.mjs +2 -4
  249. package/esm2020/lib/services/http/address/address.service.mjs +2 -4
  250. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +1 -1
  251. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  252. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +2 -5
  253. package/esm2020/lib/services/http/bank/bank.service.mjs +5 -6
  254. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +1 -1
  255. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +1 -1
  256. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +1 -1
  257. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +2 -2
  258. package/esm2020/lib/services/http/chat/chat.service.mjs +2 -2
  259. package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -5
  260. package/esm2020/lib/services/http/chat/message.service.mjs +1 -1
  261. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +1 -1
  262. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +2 -4
  263. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +2 -4
  264. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +2 -4
  265. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +1 -1
  266. package/esm2020/lib/services/http/document/document.service.mjs +1 -1
  267. package/esm2020/lib/services/http/facebook/facebook.service.mjs +1 -1
  268. package/esm2020/lib/services/http/file/file.service.mjs +1 -1
  269. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +1 -1
  270. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +2 -4
  271. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +4 -10
  272. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +1 -1
  273. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +2 -4
  274. package/esm2020/lib/services/http/firm/firm.service.mjs +5 -13
  275. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +1 -1
  276. package/esm2020/lib/services/http/google/google.service.mjs +1 -1
  277. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +1 -1
  278. package/esm2020/lib/services/http/holding/holding-type.service.mjs +1 -1
  279. package/esm2020/lib/services/http/holding/holding.service.mjs +1 -1
  280. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +1 -1
  281. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -7
  282. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +1 -1
  283. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +1 -1
  284. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +2 -4
  285. package/esm2020/lib/services/http/loan/loan.service.mjs +2 -4
  286. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +1 -1
  287. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +1 -1
  288. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +1 -1
  289. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +1 -1
  290. package/esm2020/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.mjs +1 -1
  291. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +2 -2
  292. package/esm2020/lib/services/http/property/property.service.mjs +2 -2
  293. package/esm2020/lib/services/http/rest/rest-old.service.mjs +4 -8
  294. package/esm2020/lib/services/http/rest/rest.service.mjs +1 -3
  295. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +1 -1
  296. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +1 -1
  297. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +2 -2
  298. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +1 -1
  299. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +1 -1
  300. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +1 -1
  301. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +1 -1
  302. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +2 -2
  303. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +1 -1
  304. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +1 -1
  305. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +1 -1
  306. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +1 -1
  307. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +1 -1
  308. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +1 -1
  309. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -4
  310. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +1 -1
  311. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +1 -1
  312. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +1 -1
  313. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +1 -1
  314. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +2 -4
  315. package/esm2020/lib/services/http/transaction/transaction.service.mjs +9 -19
  316. package/esm2020/lib/services/http/tutorial-video/tutorial-video-response.interface.mjs +1 -1
  317. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +1 -1
  318. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +1 -1
  319. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +1 -1
  320. package/esm2020/lib/services/http/user/user.service.mjs +4 -6
  321. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +1 -1
  322. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +1 -1
  323. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +1 -1
  324. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +1 -1
  325. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +1 -1
  326. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +1 -1
  327. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +1 -1
  328. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -7
  329. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +8 -14
  330. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +10 -28
  331. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +8 -14
  332. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +2 -4
  333. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +2 -2
  334. package/esm2020/lib/validators/at-least-one-enabled.validator.mjs +4 -6
  335. package/esm2020/lib/validators/at-least-one.validator.mjs +3 -5
  336. package/esm2020/lib/validators/autocomplete.validator.mjs +2 -4
  337. package/esm2020/lib/validators/fields-sum.validator.mjs +8 -10
  338. package/esm2020/lib/validators/file.validator.mjs +1 -1
  339. package/esm2020/lib/validators/phone-number.validator.mjs +2 -4
  340. package/esm2020/lib/validators/transactions-meta-fields.validator.mjs +2 -2
  341. package/esm2020/public-api.mjs +1 -1
  342. package/fesm2015/taxtank-core.mjs +208 -456
  343. package/fesm2015/taxtank-core.mjs.map +1 -1
  344. package/fesm2020/taxtank-core.mjs +208 -451
  345. package/fesm2020/taxtank-core.mjs.map +1 -1
  346. package/lib/collections/subscription/service-subscription.collection.d.ts +1 -1
  347. package/lib/db/Models/chart-accounts/chart-accounts.d.ts +1 -1
  348. package/lib/db/Models/observable-model.d.ts +2 -2
  349. package/lib/db/Models/subscription/service-subscription.d.ts +1 -1
  350. package/lib/forms/holding/holding-type.form.d.ts +2 -2
  351. package/lib/forms/holding/holding.form.d.ts +2 -2
  352. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts +1 -1
  353. package/lib/forms/sole/bas-report.form.d.ts +1 -1
  354. package/lib/interceptors/basiq-client-id.interceptor.d.ts +1 -1
  355. package/lib/interceptors/basiq-token.interceptor.d.ts +1 -1
  356. package/lib/interceptors/corelogic-interceptor.d.ts +1 -1
  357. package/lib/interceptors/financial-year-interceptor.d.ts +1 -1
  358. package/lib/interceptors/preloader.interceptor.d.ts +1 -1
  359. package/lib/interceptors/user-switcher-interceptor.d.ts +1 -1
  360. package/lib/interfaces/income-source-forecast.interface.d.ts +1 -1
  361. package/lib/models/bank/basiq/basiq-token.d.ts +1 -1
  362. package/lib/models/income-source/sole-forecast.d.ts +2 -2
  363. package/lib/models/property/property.d.ts +1 -1
  364. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts +1 -1
  365. package/lib/models/service-subscription/service-promo-code.d.ts +1 -1
  366. package/lib/models/sole/bas-report.d.ts +1 -1
  367. package/lib/models/sole/sole-business-activity.d.ts +1 -1
  368. package/lib/services/auth/auth.service.d.ts +3 -3
  369. package/lib/services/http/bank/bank.service.d.ts +1 -1
  370. package/lib/services/http/chat/chat.service.d.ts +1 -1
  371. package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts +1 -1
  372. package/lib/services/http/facebook/facebook.service.d.ts +2 -2
  373. package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
  374. package/lib/services/http/google/google.service.d.ts +1 -1
  375. package/lib/services/http/holding/holding-sale.service.d.ts +1 -1
  376. package/lib/services/http/holding/holding-type.service.d.ts +1 -1
  377. package/lib/services/http/holding/holding.service.d.ts +1 -1
  378. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts +1 -1
  379. package/lib/services/report/property/property-transaction-report.service.d.ts +1 -1
  380. package/lib/services/transaction/transaction-calculation.service.d.ts +1 -1
  381. package/lib/services/vehicle/logbook-best-period.service.d.ts +1 -1
  382. package/lib/validators/transactions-meta-fields.validator.d.ts +1 -1
  383. package/package.json +1 -1
  384. package/lib/collections/account-setup-item.collection.d.ts.map +0 -1
  385. package/lib/collections/allocation-group.collection.d.ts.map +0 -1
  386. package/lib/collections/allocation-rule.collection.d.ts.map +0 -1
  387. package/lib/collections/bank-account.collection.d.ts.map +0 -1
  388. package/lib/collections/bank-transaction.collection.d.ts.map +0 -1
  389. package/lib/collections/chart-accounts.collection.d.ts.map +0 -1
  390. package/lib/collections/chat/chat.collection.d.ts.map +0 -1
  391. package/lib/collections/chat/index.d.ts.map +0 -1
  392. package/lib/collections/chat/message-document.collection.d.ts.map +0 -1
  393. package/lib/collections/chat/message.collection.d.ts.map +0 -1
  394. package/lib/collections/client-invite.collection.d.ts.map +0 -1
  395. package/lib/collections/client-movement.collection.d.ts.map +0 -1
  396. package/lib/collections/client-portfolio-report.collection.d.ts.map +0 -1
  397. package/lib/collections/client.collection.d.ts.map +0 -1
  398. package/lib/collections/collection-dictionary.d.ts.map +0 -1
  399. package/lib/collections/collection.d.ts.map +0 -1
  400. package/lib/collections/depreciation-forecast.collection.d.ts.map +0 -1
  401. package/lib/collections/depreciation.collection.d.ts.map +0 -1
  402. package/lib/collections/employee.collection.d.ts.map +0 -1
  403. package/lib/collections/exportable.collection.d.ts.map +0 -1
  404. package/lib/collections/holding-type.collection.d.ts.map +0 -1
  405. package/lib/collections/holding.collection.d.ts.map +0 -1
  406. package/lib/collections/income-source.collection.d.ts.map +0 -1
  407. package/lib/collections/index.d.ts.map +0 -1
  408. package/lib/collections/loan/index.d.ts.map +0 -1
  409. package/lib/collections/loan/loan-payment.collection.d.ts.map +0 -1
  410. package/lib/collections/loan/loan.collection.d.ts.map +0 -1
  411. package/lib/collections/property/index.d.ts.map +0 -1
  412. package/lib/collections/property/property-category-movement.collection.d.ts.map +0 -1
  413. package/lib/collections/property/property-sale/index.d.ts.map +0 -1
  414. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +0 -1
  415. package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +0 -1
  416. package/lib/collections/property/property-share.collection.d.ts.map +0 -1
  417. package/lib/collections/property/property.collection.d.ts.map +0 -1
  418. package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +0 -1
  419. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +0 -1
  420. package/lib/collections/report/index.d.ts.map +0 -1
  421. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +0 -1
  422. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +0 -1
  423. package/lib/collections/report/property/property-report-item.collection.d.ts.map +0 -1
  424. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +0 -1
  425. package/lib/collections/sole/index.d.ts.map +0 -1
  426. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +0 -1
  427. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +0 -1
  428. package/lib/collections/sole/sole-invoice.collection.d.ts.map +0 -1
  429. package/lib/collections/subscription/index.d.ts.map +0 -1
  430. package/lib/collections/subscription/service-price.collection.d.ts.map +0 -1
  431. package/lib/collections/subscription/service-product.collection.d.ts.map +0 -1
  432. package/lib/collections/subscription/service-subscription.collection.d.ts.map +0 -1
  433. package/lib/collections/subscription/subscription-item.collection.d.ts.map +0 -1
  434. package/lib/collections/tax-review.collection.d.ts.map +0 -1
  435. package/lib/collections/tax-summary/index.d.ts.map +0 -1
  436. package/lib/collections/tax-summary/report-item.collection.d.ts.map +0 -1
  437. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +0 -1
  438. package/lib/collections/transaction/index.d.ts.map +0 -1
  439. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +0 -1
  440. package/lib/collections/transaction/transaction.collection.d.ts.map +0 -1
  441. package/lib/collections/user-event-setting.collection.d.ts.map +0 -1
  442. package/lib/collections/user-event-type-collection.d.ts.map +0 -1
  443. package/lib/collections/vehicle/index.d.ts.map +0 -1
  444. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +0 -1
  445. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +0 -1
  446. package/lib/db/Enums/address-type.enum.d.ts.map +0 -1
  447. package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +0 -1
  448. package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +0 -1
  449. package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +0 -1
  450. package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +0 -1
  451. package/lib/db/Enums/annual-frequency.enum.d.ts.map +0 -1
  452. package/lib/db/Enums/bank-account-status.enum.d.ts.map +0 -1
  453. package/lib/db/Enums/bank-account-type.enum.d.ts.map +0 -1
  454. package/lib/db/Enums/bank-connection-status.enum.d.ts.map +0 -1
  455. package/lib/db/Enums/bank-popular.enum.d.ts.map +0 -1
  456. package/lib/db/Enums/bank-transaction-type.enum.d.ts.map +0 -1
  457. package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +0 -1
  458. package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +0 -1
  459. package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +0 -1
  460. package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +0 -1
  461. package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +0 -1
  462. package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +0 -1
  463. package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +0 -1
  464. package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +0 -1
  465. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +0 -1
  466. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +0 -1
  467. package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +0 -1
  468. package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +0 -1
  469. package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +0 -1
  470. package/lib/db/Enums/chart-accounts/index.d.ts.map +0 -1
  471. package/lib/db/Enums/chat-status.enum.d.ts.map +0 -1
  472. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +0 -1
  473. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +0 -1
  474. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +0 -1
  475. package/lib/db/Enums/client-invite-status.enum.d.ts.map +0 -1
  476. package/lib/db/Enums/client-invite-type.enum.d.ts.map +0 -1
  477. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +0 -1
  478. package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +0 -1
  479. package/lib/db/Enums/depreciation-type.enum.d.ts.map +0 -1
  480. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +0 -1
  481. package/lib/db/Enums/document-type.enum.d.ts.map +0 -1
  482. package/lib/db/Enums/file-type.enum.d.ts.map +0 -1
  483. package/lib/db/Enums/firm-type.enum.d.ts.map +0 -1
  484. package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +0 -1
  485. package/lib/db/Enums/income-source-forecast-trust-type.enum.d.ts.map +0 -1
  486. package/lib/db/Enums/income-source-type-list-other.enum.d.ts.map +0 -1
  487. package/lib/db/Enums/income-source-type-list-sole.enum.d.ts.map +0 -1
  488. package/lib/db/Enums/income-source-type-list-work.enum.d.ts.map +0 -1
  489. package/lib/db/Enums/income-source-type.enum.d.ts.map +0 -1
  490. package/lib/db/Enums/index.d.ts.map +0 -1
  491. package/lib/db/Enums/invite-status.enum.d.ts.map +0 -1
  492. package/lib/db/Enums/loan-bank-type.enum.d.ts.map +0 -1
  493. package/lib/db/Enums/loan-frequency.enum.d.ts.map +0 -1
  494. package/lib/db/Enums/loan-interest-type.enum.d.ts.map +0 -1
  495. package/lib/db/Enums/loan-payout-type.enum.d.ts.map +0 -1
  496. package/lib/db/Enums/loan-repayment-frequency.enum.d.ts.map +0 -1
  497. package/lib/db/Enums/loan-repayment-type.enum.d.ts.map +0 -1
  498. package/lib/db/Enums/loan-type.enum.d.ts.map +0 -1
  499. package/lib/db/Enums/loan-vehicle-type.enum.d.ts.map +0 -1
  500. package/lib/db/Enums/phone-type.enum.d.ts.map +0 -1
  501. package/lib/db/Enums/property/property-category-list.enum.d.ts.map +0 -1
  502. package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +0 -1
  503. package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +0 -1
  504. package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +0 -1
  505. package/lib/db/Enums/property/property-share-access.enum.d.ts.map +0 -1
  506. package/lib/db/Enums/property/property-share-status.enum.d.ts.map +0 -1
  507. package/lib/db/Enums/registration-invite-status.enum.d.ts.map +0 -1
  508. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +0 -1
  509. package/lib/db/Enums/service-notification-status.enum.d.ts.map +0 -1
  510. package/lib/db/Enums/service-notification-type.enum.d.ts.map +0 -1
  511. package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +0 -1
  512. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +0 -1
  513. package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +0 -1
  514. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +0 -1
  515. package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +0 -1
  516. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +0 -1
  517. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +0 -1
  518. package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +0 -1
  519. package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +0 -1
  520. package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +0 -1
  521. package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +0 -1
  522. package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +0 -1
  523. package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +0 -1
  524. package/lib/db/Enums/tank-type.enum.d.ts.map +0 -1
  525. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +0 -1
  526. package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +0 -1
  527. package/lib/db/Enums/tax-return-category-list.enum.d.ts.map +0 -1
  528. package/lib/db/Enums/tax-return-category-section.enum.d.ts.map +0 -1
  529. package/lib/db/Enums/tax-review-status.enum.d.ts.map +0 -1
  530. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +0 -1
  531. package/lib/db/Enums/tax-summary-section.enum.d.ts.map +0 -1
  532. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +0 -1
  533. package/lib/db/Enums/ticket-feedback.enum.d.ts.map +0 -1
  534. package/lib/db/Enums/ticket-status.enum.d.ts.map +0 -1
  535. package/lib/db/Enums/ticket-types.enum.d.ts.map +0 -1
  536. package/lib/db/Enums/transaction-operation.enum.d.ts.map +0 -1
  537. package/lib/db/Enums/transaction-source.enum.d.ts.map +0 -1
  538. package/lib/db/Enums/transaction-type.enum.d.ts.map +0 -1
  539. package/lib/db/Enums/user-event-status.enum.d.ts.map +0 -1
  540. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +0 -1
  541. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +0 -1
  542. package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +0 -1
  543. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +0 -1
  544. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +0 -1
  545. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +0 -1
  546. package/lib/db/Enums/user-roles.enum.d.ts.map +0 -1
  547. package/lib/db/Enums/user-status.enum.d.ts.map +0 -1
  548. package/lib/db/Enums/user-title.enum.d.ts.map +0 -1
  549. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +0 -1
  550. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +0 -1
  551. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +0 -1
  552. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +0 -1
  553. package/lib/db/Models/abstract-model.d.ts.map +0 -1
  554. package/lib/db/Models/address.d.ts.map +0 -1
  555. package/lib/db/Models/bank/bank-account-balance.d.ts.map +0 -1
  556. package/lib/db/Models/bank/bank-account-property.d.ts.map +0 -1
  557. package/lib/db/Models/bank/bank-account.d.ts.map +0 -1
  558. package/lib/db/Models/bank/bank-connection.d.ts.map +0 -1
  559. package/lib/db/Models/bank/bank-transaction-import.d.ts.map +0 -1
  560. package/lib/db/Models/bank/bank-transaction.d.ts.map +0 -1
  561. package/lib/db/Models/bank/bank.d.ts.map +0 -1
  562. package/lib/db/Models/bank/basiq-job.d.ts.map +0 -1
  563. package/lib/db/Models/bank/financial-data-system.d.ts.map +0 -1
  564. package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +0 -1
  565. package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +0 -1
  566. package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +0 -1
  567. package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +0 -1
  568. package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +0 -1
  569. package/lib/db/Models/client/annual-client-details.d.ts.map +0 -1
  570. package/lib/db/Models/client/client-details.d.ts.map +0 -1
  571. package/lib/db/Models/client/client-income-types.d.ts.map +0 -1
  572. package/lib/db/Models/client/index.d.ts.map +0 -1
  573. package/lib/db/Models/client/occupation.d.ts.map +0 -1
  574. package/lib/db/Models/country.d.ts.map +0 -1
  575. package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +0 -1
  576. package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +0 -1
  577. package/lib/db/Models/depreciation/depreciation-receipt.d.ts.map +0 -1
  578. package/lib/db/Models/depreciation/depreciation.d.ts.map +0 -1
  579. package/lib/db/Models/document/document-base.d.ts.map +0 -1
  580. package/lib/db/Models/document/document-folder.d.ts.map +0 -1
  581. package/lib/db/Models/document/document.d.ts.map +0 -1
  582. package/lib/db/Models/document/property-document.d.ts.map +0 -1
  583. package/lib/db/Models/file.d.ts.map +0 -1
  584. package/lib/db/Models/firm/accountant/tax-review.d.ts.map +0 -1
  585. package/lib/db/Models/firm/accountant/ticket.d.ts.map +0 -1
  586. package/lib/db/Models/firm/chat.d.ts.map +0 -1
  587. package/lib/db/Models/firm/client-invite.d.ts.map +0 -1
  588. package/lib/db/Models/firm/client-movement.d.ts.map +0 -1
  589. package/lib/db/Models/firm/employee-invite.d.ts.map +0 -1
  590. package/lib/db/Models/firm/firm-invite.d.ts.map +0 -1
  591. package/lib/db/Models/firm/firm.d.ts.map +0 -1
  592. package/lib/db/Models/firm/message-document.d.ts.map +0 -1
  593. package/lib/db/Models/firm/message.d.ts.map +0 -1
  594. package/lib/db/Models/holding/holding-sale.d.ts.map +0 -1
  595. package/lib/db/Models/holding/holding-type-exchange.d.ts.map +0 -1
  596. package/lib/db/Models/holding/holding-type.d.ts.map +0 -1
  597. package/lib/db/Models/holding/holding.d.ts.map +0 -1
  598. package/lib/db/Models/holding/index.d.ts.map +0 -1
  599. package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +0 -1
  600. package/lib/db/Models/incomeSource/income-source-type.d.ts.map +0 -1
  601. package/lib/db/Models/incomeSource/income-source.d.ts.map +0 -1
  602. package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +0 -1
  603. package/lib/db/Models/index.d.ts.map +0 -1
  604. package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +0 -1
  605. package/lib/db/Models/loan/borrowing-expense.d.ts.map +0 -1
  606. package/lib/db/Models/loan/loan-payout.d.ts.map +0 -1
  607. package/lib/db/Models/loan/loan.d.ts.map +0 -1
  608. package/lib/db/Models/observable-model.d.ts.map +0 -1
  609. package/lib/db/Models/phone.d.ts.map +0 -1
  610. package/lib/db/Models/property/property-category-movement.d.ts.map +0 -1
  611. package/lib/db/Models/property/property-category.d.ts.map +0 -1
  612. package/lib/db/Models/property/property-forecast.d.ts.map +0 -1
  613. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +0 -1
  614. package/lib/db/Models/property/property-sale/property-sale.d.ts.map +0 -1
  615. package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +0 -1
  616. package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +0 -1
  617. package/lib/db/Models/property/property-share.d.ts.map +0 -1
  618. package/lib/db/Models/property/property-subscription.d.ts.map +0 -1
  619. package/lib/db/Models/property/property-valuation.d.ts.map +0 -1
  620. package/lib/db/Models/property/property.d.ts.map +0 -1
  621. package/lib/db/Models/service-notification.d.ts.map +0 -1
  622. package/lib/db/Models/sole/bas-report.d.ts.map +0 -1
  623. package/lib/db/Models/sole/sole-business-activity.d.ts.map +0 -1
  624. package/lib/db/Models/sole/sole-business-allocation.d.ts.map +0 -1
  625. package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +0 -1
  626. package/lib/db/Models/sole/sole-business-loss.d.ts.map +0 -1
  627. package/lib/db/Models/sole/sole-business.d.ts.map +0 -1
  628. package/lib/db/Models/sole/sole-contact.d.ts.map +0 -1
  629. package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +0 -1
  630. package/lib/db/Models/sole/sole-details.d.ts.map +0 -1
  631. package/lib/db/Models/sole/sole-forecast.d.ts.map +0 -1
  632. package/lib/db/Models/sole/sole-invoice-item.d.ts.map +0 -1
  633. package/lib/db/Models/sole/sole-invoice-template.d.ts.map +0 -1
  634. package/lib/db/Models/sole/sole-invoice.d.ts.map +0 -1
  635. package/lib/db/Models/spare/spare-document-category.d.ts.map +0 -1
  636. package/lib/db/Models/spare/spare-document.d.ts.map +0 -1
  637. package/lib/db/Models/subscription/service-payment-method.d.ts.map +0 -1
  638. package/lib/db/Models/subscription/service-payment.d.ts.map +0 -1
  639. package/lib/db/Models/subscription/service-price.d.ts.map +0 -1
  640. package/lib/db/Models/subscription/service-product.d.ts.map +0 -1
  641. package/lib/db/Models/subscription/service-subscription-item.d.ts.map +0 -1
  642. package/lib/db/Models/subscription/service-subscription.d.ts.map +0 -1
  643. package/lib/db/Models/tax-calculation.d.ts.map +0 -1
  644. package/lib/db/Models/tax-return/tax-return-category.d.ts.map +0 -1
  645. package/lib/db/Models/tax-return/tax-return-item.d.ts.map +0 -1
  646. package/lib/db/Models/tax-return/tax-return.d.ts.map +0 -1
  647. package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +0 -1
  648. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +0 -1
  649. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +0 -1
  650. package/lib/db/Models/transaction/allocation-rule.d.ts.map +0 -1
  651. package/lib/db/Models/transaction/transaction-allocation.d.ts.map +0 -1
  652. package/lib/db/Models/transaction/transaction-base.d.ts.map +0 -1
  653. package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +0 -1
  654. package/lib/db/Models/transaction/transaction-receipt.d.ts.map +0 -1
  655. package/lib/db/Models/transaction/transaction.d.ts.map +0 -1
  656. package/lib/db/Models/user/employee-details.d.ts.map +0 -1
  657. package/lib/db/Models/user/registration-invite.d.ts.map +0 -1
  658. package/lib/db/Models/user/user-event-setting.d.ts.map +0 -1
  659. package/lib/db/Models/user/user-event-type-category.d.ts.map +0 -1
  660. package/lib/db/Models/user/user-event-type.d.ts.map +0 -1
  661. package/lib/db/Models/user/user-event.d.ts.map +0 -1
  662. package/lib/db/Models/user/user.d.ts.map +0 -1
  663. package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +0 -1
  664. package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +0 -1
  665. package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +0 -1
  666. package/lib/db/Models/vehicle/vehicle.d.ts.map +0 -1
  667. package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +0 -1
  668. package/lib/forms/abstract.form.d.ts.map +0 -1
  669. package/lib/forms/address/address.form.d.ts.map +0 -1
  670. package/lib/forms/address/index.d.ts.map +0 -1
  671. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +0 -1
  672. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +0 -1
  673. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +0 -1
  674. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +0 -1
  675. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +0 -1
  676. package/lib/forms/bank/bank-login.form.d.ts.map +0 -1
  677. package/lib/forms/client/annual-client-details.form.d.ts.map +0 -1
  678. package/lib/forms/client/client-income-types.form.d.ts.map +0 -1
  679. package/lib/forms/client/index.d.ts.map +0 -1
  680. package/lib/forms/depreciation/depreciation.form.d.ts.map +0 -1
  681. package/lib/forms/depreciation/index.d.ts.map +0 -1
  682. package/lib/forms/form-validations.enum.d.ts.map +0 -1
  683. package/lib/forms/holding/holding-sale.form.d.ts.map +0 -1
  684. package/lib/forms/holding/holding-type.form.d.ts.map +0 -1
  685. package/lib/forms/holding/holding.form.d.ts.map +0 -1
  686. package/lib/forms/holding/index.d.ts.map +0 -1
  687. package/lib/forms/index.d.ts.map +0 -1
  688. package/lib/forms/loan/index.d.ts.map +0 -1
  689. package/lib/forms/loan/loan.form.d.ts.map +0 -1
  690. package/lib/forms/login/login.form.d.ts.map +0 -1
  691. package/lib/forms/phone/index.d.ts.map +0 -1
  692. package/lib/forms/phone/phone.form.d.ts.map +0 -1
  693. package/lib/forms/property/index.d.ts.map +0 -1
  694. package/lib/forms/property/property-sale/index.d.ts.map +0 -1
  695. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +0 -1
  696. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +0 -1
  697. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +0 -1
  698. package/lib/forms/register/register-client.form.d.ts.map +0 -1
  699. package/lib/forms/register/register-firm.form.d.ts.map +0 -1
  700. package/lib/forms/report/my-tax/index.d.ts.map +0 -1
  701. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +0 -1
  702. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +0 -1
  703. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +0 -1
  704. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +0 -1
  705. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +0 -1
  706. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +0 -1
  707. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +0 -1
  708. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +0 -1
  709. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +0 -1
  710. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +0 -1
  711. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +0 -1
  712. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +0 -1
  713. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +0 -1
  714. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +0 -1
  715. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +0 -1
  716. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +0 -1
  717. package/lib/forms/sole/bas-report.form.d.ts.map +0 -1
  718. package/lib/forms/sole/index.d.ts.map +0 -1
  719. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +0 -1
  720. package/lib/forms/sole/sole-business-loss.form.d.ts.map +0 -1
  721. package/lib/forms/sole/sole-business.form.d.ts.map +0 -1
  722. package/lib/forms/sole/sole-contact.form.d.ts.map +0 -1
  723. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +0 -1
  724. package/lib/forms/sole/sole-details.form.d.ts.map +0 -1
  725. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +0 -1
  726. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +0 -1
  727. package/lib/forms/sole/sole-invoice.form.d.ts.map +0 -1
  728. package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +0 -1
  729. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +0 -1
  730. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +0 -1
  731. package/lib/forms/transaction/allocation-rule.form.d.ts.map +0 -1
  732. package/lib/forms/transaction/index.d.ts.map +0 -1
  733. package/lib/forms/transaction/messages.enum.d.ts.map +0 -1
  734. package/lib/forms/transaction/transaction-base.form.d.ts.map +0 -1
  735. package/lib/forms/transaction/transaction.form.d.ts.map +0 -1
  736. package/lib/forms/transaction/work/work-expense.form.d.ts.map +0 -1
  737. package/lib/forms/transaction/work/work-income.form.d.ts.map +0 -1
  738. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +0 -1
  739. package/lib/forms/user/index.d.ts.map +0 -1
  740. package/lib/forms/user/password.form.d.ts.map +0 -1
  741. package/lib/forms/user/reset-password.form.d.ts.map +0 -1
  742. package/lib/forms/user/user-invite.form.d.ts.map +0 -1
  743. package/lib/forms/vehicle/index.d.ts.map +0 -1
  744. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +0 -1
  745. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +0 -1
  746. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +0 -1
  747. package/lib/forms/vehicle/vehicle.form.d.ts.map +0 -1
  748. package/lib/functions/array/index.d.ts.map +0 -1
  749. package/lib/functions/array/replace.d.ts.map +0 -1
  750. package/lib/functions/array/sort-deep.d.ts.map +0 -1
  751. package/lib/functions/array/sort.d.ts.map +0 -1
  752. package/lib/functions/array/to-array.d.ts.map +0 -1
  753. package/lib/functions/clone-deep.d.ts.map +0 -1
  754. package/lib/functions/create-date.d.ts.map +0 -1
  755. package/lib/functions/enum-to-list.d.ts.map +0 -1
  756. package/lib/functions/get-doc-icon.d.ts.map +0 -1
  757. package/lib/functions/mat-options-functions.d.ts.map +0 -1
  758. package/lib/functions/mat-sort-options.d.ts.map +0 -1
  759. package/lib/functions/round-to.d.ts.map +0 -1
  760. package/lib/functions/tax-review-filter-predicate.d.ts.map +0 -1
  761. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +0 -1
  762. package/lib/interceptors/basiq-token.interceptor.d.ts.map +0 -1
  763. package/lib/interceptors/corelogic-interceptor.d.ts.map +0 -1
  764. package/lib/interceptors/financial-year-interceptor.d.ts.map +0 -1
  765. package/lib/interceptors/interceptors.module.d.ts.map +0 -1
  766. package/lib/interceptors/jwt-interceptor.d.ts.map +0 -1
  767. package/lib/interceptors/preloader.interceptor.d.ts.map +0 -1
  768. package/lib/interceptors/user-switcher-interceptor.d.ts.map +0 -1
  769. package/lib/interfaces/asset-entity-type.enum.d.ts.map +0 -1
  770. package/lib/interfaces/asset-type.enum.d.ts.map +0 -1
  771. package/lib/interfaces/asset.interface.d.ts.map +0 -1
  772. package/lib/interfaces/auth-tokens.interface.d.ts.map +0 -1
  773. package/lib/interfaces/chart-data.interface.d.ts.map +0 -1
  774. package/lib/interfaces/chart-serie.interface.d.ts.map +0 -1
  775. package/lib/interfaces/document.interface.d.ts.map +0 -1
  776. package/lib/interfaces/documentable.interface.d.ts.map +0 -1
  777. package/lib/interfaces/event-listener.interface.d.ts.map +0 -1
  778. package/lib/interfaces/expense.interface.d.ts.map +0 -1
  779. package/lib/interfaces/income-source-forecast.interface.d.ts.map +0 -1
  780. package/lib/interfaces/index.d.ts.map +0 -1
  781. package/lib/interfaces/option.interface.d.ts.map +0 -1
  782. package/lib/interfaces/photoable.d.ts.map +0 -1
  783. package/lib/interfaces/receipt.interface.d.ts.map +0 -1
  784. package/lib/interfaces/table-exportable.interface.d.ts.map +0 -1
  785. package/lib/interfaces/tank.interface.d.ts.map +0 -1
  786. package/lib/interfaces/updatable.interface.d.ts.map +0 -1
  787. package/lib/messages/index.d.ts.map +0 -1
  788. package/lib/messages/messages.enum.d.ts.map +0 -1
  789. package/lib/models/account-setup/account-setup-item.d.ts.map +0 -1
  790. package/lib/models/account-setup/account-setup-items.const.d.ts.map +0 -1
  791. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +0 -1
  792. package/lib/models/address/address.d.ts.map +0 -1
  793. package/lib/models/address/country.d.ts.map +0 -1
  794. package/lib/models/address/index.d.ts.map +0 -1
  795. package/lib/models/address/states.enum.d.ts.map +0 -1
  796. package/lib/models/badge/badge-color.enum.d.ts.map +0 -1
  797. package/lib/models/badge/badge.d.ts.map +0 -1
  798. package/lib/models/bank/allocation-group.d.ts.map +0 -1
  799. package/lib/models/bank/bank-account-chart-data.d.ts.map +0 -1
  800. package/lib/models/bank/bank-account-property.d.ts.map +0 -1
  801. package/lib/models/bank/bank-account-types.const.d.ts.map +0 -1
  802. package/lib/models/bank/bank-account.d.ts.map +0 -1
  803. package/lib/models/bank/bank-connection.d.ts.map +0 -1
  804. package/lib/models/bank/bank-external-stats.d.ts.map +0 -1
  805. package/lib/models/bank/bank-login-data.d.ts.map +0 -1
  806. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +0 -1
  807. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +0 -1
  808. package/lib/models/bank/bank-transaction.d.ts.map +0 -1
  809. package/lib/models/bank/bank.d.ts.map +0 -1
  810. package/lib/models/bank/basiq/basiq-config.d.ts.map +0 -1
  811. package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +0 -1
  812. package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +0 -1
  813. package/lib/models/bank/basiq/basiq-job-response.d.ts.map +0 -1
  814. package/lib/models/bank/basiq/basiq-job-step.d.ts.map +0 -1
  815. package/lib/models/bank/basiq/basiq-job.d.ts.map +0 -1
  816. package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +0 -1
  817. package/lib/models/bank/basiq/basiq-token.d.ts.map +0 -1
  818. package/lib/models/bank/basiq/index.d.ts.map +0 -1
  819. package/lib/models/bank/index.d.ts.map +0 -1
  820. package/lib/models/bank/type-loan.const.d.ts.map +0 -1
  821. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +0 -1
  822. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +0 -1
  823. package/lib/models/borrowing-expense/index.d.ts.map +0 -1
  824. package/lib/models/chart/chart-data.d.ts.map +0 -1
  825. package/lib/models/chart/chart-serie.d.ts.map +0 -1
  826. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +0 -1
  827. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +0 -1
  828. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +0 -1
  829. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +0 -1
  830. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +0 -1
  831. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +0 -1
  832. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +0 -1
  833. package/lib/models/chart-accounts/chart-accounts.d.ts.map +0 -1
  834. package/lib/models/chart-accounts/index.d.ts.map +0 -1
  835. package/lib/models/chat/chat-view-type.enum.d.ts.map +0 -1
  836. package/lib/models/chat/chat.d.ts.map +0 -1
  837. package/lib/models/chat/index.d.ts.map +0 -1
  838. package/lib/models/chat/message-document.d.ts.map +0 -1
  839. package/lib/models/chat/message.d.ts.map +0 -1
  840. package/lib/models/client/annual-client-details.d.ts.map +0 -1
  841. package/lib/models/client/client-details.d.ts.map +0 -1
  842. package/lib/models/client/client-income-types.d.ts.map +0 -1
  843. package/lib/models/client/client-invite.d.ts.map +0 -1
  844. package/lib/models/client/client-movement.d.ts.map +0 -1
  845. package/lib/models/client/client-portfolio-chart-data.d.ts.map +0 -1
  846. package/lib/models/client/client-portfolio-report.d.ts.map +0 -1
  847. package/lib/models/client/index.d.ts.map +0 -1
  848. package/lib/models/color/alphabet-colors.enum.d.ts.map +0 -1
  849. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +0 -1
  850. package/lib/models/depreciation/depreciation-forecast.d.ts.map +0 -1
  851. package/lib/models/depreciation/depreciation-group-item.d.ts.map +0 -1
  852. package/lib/models/depreciation/depreciation-group.d.ts.map +0 -1
  853. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +0 -1
  854. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +0 -1
  855. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +0 -1
  856. package/lib/models/depreciation/depreciation-receipt.d.ts.map +0 -1
  857. package/lib/models/depreciation/depreciation.d.ts.map +0 -1
  858. package/lib/models/depreciation/index.d.ts.map +0 -1
  859. package/lib/models/dictionary/dictionary.d.ts.map +0 -1
  860. package/lib/models/dictionary/index.d.ts.map +0 -1
  861. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +0 -1
  862. package/lib/models/document/document-file-types.const.d.ts.map +0 -1
  863. package/lib/models/document/document-folder.d.ts.map +0 -1
  864. package/lib/models/document/document.d.ts.map +0 -1
  865. package/lib/models/document/index.d.ts.map +0 -1
  866. package/lib/models/employee/employee-details.d.ts.map +0 -1
  867. package/lib/models/employee/employee-invite.d.ts.map +0 -1
  868. package/lib/models/endpoint/endpoint.d.ts.map +0 -1
  869. package/lib/models/endpoint/endpoints.const.d.ts.map +0 -1
  870. package/lib/models/event/app-event-type.enum.d.ts.map +0 -1
  871. package/lib/models/event/app-event.d.ts.map +0 -1
  872. package/lib/models/event/index.d.ts.map +0 -1
  873. package/lib/models/export/export-cell-type.enum.d.ts.map +0 -1
  874. package/lib/models/export/export-cell.d.ts.map +0 -1
  875. package/lib/models/export/export-data-table.d.ts.map +0 -1
  876. package/lib/models/export/export-format.enum.d.ts.map +0 -1
  877. package/lib/models/export/export-row-data-type.enum.d.ts.map +0 -1
  878. package/lib/models/export/export-row.d.ts.map +0 -1
  879. package/lib/models/file/file.d.ts.map +0 -1
  880. package/lib/models/file/icons-file.enum.d.ts.map +0 -1
  881. package/lib/models/file/index.d.ts.map +0 -1
  882. package/lib/models/financial-year/financial-year.d.ts.map +0 -1
  883. package/lib/models/financial-year/index.d.ts.map +0 -1
  884. package/lib/models/financial-year/month-name-short.enum.d.ts.map +0 -1
  885. package/lib/models/financial-year/month-number.enum.d.ts.map +0 -1
  886. package/lib/models/financial-year/months.const.d.ts.map +0 -1
  887. package/lib/models/firm/firm.d.ts.map +0 -1
  888. package/lib/models/holding/holding-sale.d.ts.map +0 -1
  889. package/lib/models/holding/holding-type-exchange.d.ts.map +0 -1
  890. package/lib/models/holding/holding-type.d.ts.map +0 -1
  891. package/lib/models/holding/holding.d.ts.map +0 -1
  892. package/lib/models/holding/index.d.ts.map +0 -1
  893. package/lib/models/income-position/income-position.d.ts.map +0 -1
  894. package/lib/models/income-source/income-source-chart-data.d.ts.map +0 -1
  895. package/lib/models/income-source/income-source-forecast.d.ts.map +0 -1
  896. package/lib/models/income-source/income-source-type.d.ts.map +0 -1
  897. package/lib/models/income-source/income-source.d.ts.map +0 -1
  898. package/lib/models/income-source/salary-forecast.d.ts.map +0 -1
  899. package/lib/models/income-source/sole-forecast.d.ts.map +0 -1
  900. package/lib/models/index.d.ts.map +0 -1
  901. package/lib/models/loan/index.d.ts.map +0 -1
  902. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +0 -1
  903. package/lib/models/loan/loan-payment.d.ts.map +0 -1
  904. package/lib/models/loan/loan-payout.d.ts.map +0 -1
  905. package/lib/models/loan/loan.d.ts.map +0 -1
  906. package/lib/models/notification/index.d.ts.map +0 -1
  907. package/lib/models/notification/notification.d.ts.map +0 -1
  908. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +0 -1
  909. package/lib/models/pdf/pdf-settings.d.ts.map +0 -1
  910. package/lib/models/phone/phone.d.ts.map +0 -1
  911. package/lib/models/property/calculation-form-item.d.ts.map +0 -1
  912. package/lib/models/property/calculation-form-type.enum.d.ts.map +0 -1
  913. package/lib/models/property/capital-costs-itmes.const.d.ts.map +0 -1
  914. package/lib/models/property/corelogic-suggestion.d.ts.map +0 -1
  915. package/lib/models/property/index.d.ts.map +0 -1
  916. package/lib/models/property/property-category-movement.d.ts.map +0 -1
  917. package/lib/models/property/property-category.d.ts.map +0 -1
  918. package/lib/models/property/property-document.d.ts.map +0 -1
  919. package/lib/models/property/property-equity-chart-data.d.ts.map +0 -1
  920. package/lib/models/property/property-equity-chart-item.d.ts.map +0 -1
  921. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +0 -1
  922. package/lib/models/property/property-forecast.d.ts.map +0 -1
  923. package/lib/models/property/property-sale/index.d.ts.map +0 -1
  924. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +0 -1
  925. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +0 -1
  926. package/lib/models/property/property-sale/property-sale.d.ts.map +0 -1
  927. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +0 -1
  928. package/lib/models/property/property-sale/tax-exemption.d.ts.map +0 -1
  929. package/lib/models/property/property-share.d.ts.map +0 -1
  930. package/lib/models/property/property-subscription.d.ts.map +0 -1
  931. package/lib/models/property/property-valuation.d.ts.map +0 -1
  932. package/lib/models/property/property.d.ts.map +0 -1
  933. package/lib/models/property/share-filter-options.enum.d.ts.map +0 -1
  934. package/lib/models/registration-invite/registration-invite.d.ts.map +0 -1
  935. package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +0 -1
  936. package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +0 -1
  937. package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +0 -1
  938. package/lib/models/report/depreciation/index.d.ts.map +0 -1
  939. package/lib/models/report/index.d.ts.map +0 -1
  940. package/lib/models/report/my-tax/ato-links.d.ts.map +0 -1
  941. package/lib/models/report/my-tax/index.d.ts.map +0 -1
  942. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +0 -1
  943. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +0 -1
  944. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +0 -1
  945. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +0 -1
  946. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +0 -1
  947. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +0 -1
  948. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +0 -1
  949. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +0 -1
  950. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +0 -1
  951. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +0 -1
  952. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +0 -1
  953. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +0 -1
  954. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +0 -1
  955. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +0 -1
  956. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +0 -1
  957. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +0 -1
  958. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +0 -1
  959. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +0 -1
  960. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +0 -1
  961. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +0 -1
  962. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +0 -1
  963. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +0 -1
  964. package/lib/models/report/property/index.d.ts.map +0 -1
  965. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +0 -1
  966. package/lib/models/report/property/property-report-item-transaction.d.ts.map +0 -1
  967. package/lib/models/report/property/property-report-item.d.ts.map +0 -1
  968. package/lib/models/report/sole/index.d.ts.map +0 -1
  969. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +0 -1
  970. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +0 -1
  971. package/lib/models/service-subscription/index.d.ts.map +0 -1
  972. package/lib/models/service-subscription/module-url-list.const.d.ts.map +0 -1
  973. package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +0 -1
  974. package/lib/models/service-subscription/service-payment-method.d.ts.map +0 -1
  975. package/lib/models/service-subscription/service-payment.d.ts.map +0 -1
  976. package/lib/models/service-subscription/service-price.d.ts.map +0 -1
  977. package/lib/models/service-subscription/service-product.d.ts.map +0 -1
  978. package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +0 -1
  979. package/lib/models/service-subscription/service-promo-code.d.ts.map +0 -1
  980. package/lib/models/service-subscription/service-subscription-item.d.ts.map +0 -1
  981. package/lib/models/service-subscription/service-subscription.d.ts.map +0 -1
  982. package/lib/models/sole/bas-report.d.ts.map +0 -1
  983. package/lib/models/sole/index.d.ts.map +0 -1
  984. package/lib/models/sole/sole-business-activity.d.ts.map +0 -1
  985. package/lib/models/sole/sole-business-allocation.d.ts.map +0 -1
  986. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +0 -1
  987. package/lib/models/sole/sole-business-loss.d.ts.map +0 -1
  988. package/lib/models/sole/sole-business.d.ts.map +0 -1
  989. package/lib/models/sole/sole-contact.d.ts.map +0 -1
  990. package/lib/models/sole/sole-depreciation-method.d.ts.map +0 -1
  991. package/lib/models/sole/sole-details.d.ts.map +0 -1
  992. package/lib/models/sole/sole-invoice-item.d.ts.map +0 -1
  993. package/lib/models/sole/sole-invoice-template.d.ts.map +0 -1
  994. package/lib/models/sole/sole-invoice.d.ts.map +0 -1
  995. package/lib/models/tax-review/tax-review.d.ts.map +0 -1
  996. package/lib/models/tax-summary/report-item-details.d.ts.map +0 -1
  997. package/lib/models/tax-summary/report-item.d.ts.map +0 -1
  998. package/lib/models/tax-summary/tax-summary-section.d.ts.map +0 -1
  999. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +0 -1
  1000. package/lib/models/tax-summary/tax-summary.d.ts.map +0 -1
  1001. package/lib/models/toast/toast-type.enum.d.ts.map +0 -1
  1002. package/lib/models/toast/toast.d.ts.map +0 -1
  1003. package/lib/models/transaction/allocation-rule-condition.d.ts.map +0 -1
  1004. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +0 -1
  1005. package/lib/models/transaction/allocation-rule-transaction.d.ts.map +0 -1
  1006. package/lib/models/transaction/allocation-rule.d.ts.map +0 -1
  1007. package/lib/models/transaction/income-amount-type.enum.d.ts.map +0 -1
  1008. package/lib/models/transaction/index.d.ts.map +0 -1
  1009. package/lib/models/transaction/transaction-allocation.d.ts.map +0 -1
  1010. package/lib/models/transaction/transaction-category.enum.d.ts.map +0 -1
  1011. package/lib/models/transaction/transaction-meta-field.d.ts.map +0 -1
  1012. package/lib/models/transaction/transaction-receipt.d.ts.map +0 -1
  1013. package/lib/models/transaction/transaction.d.ts.map +0 -1
  1014. package/lib/models/user/index.d.ts.map +0 -1
  1015. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +0 -1
  1016. package/lib/models/user/my-account-history-status.enum.d.ts.map +0 -1
  1017. package/lib/models/user/my-account-history-type.enum.d.ts.map +0 -1
  1018. package/lib/models/user/my-account-history.d.ts.map +0 -1
  1019. package/lib/models/user/occupation.d.ts.map +0 -1
  1020. package/lib/models/user/user-roles.const.d.ts.map +0 -1
  1021. package/lib/models/user/user-to-register.d.ts.map +0 -1
  1022. package/lib/models/user/user-work-position.const.d.ts.map +0 -1
  1023. package/lib/models/user/user.d.ts.map +0 -1
  1024. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +0 -1
  1025. package/lib/models/user-event/user-event-setting.d.ts.map +0 -1
  1026. package/lib/models/user-event/user-event-type-category.d.ts.map +0 -1
  1027. package/lib/models/user-event/user-event-type.d.ts.map +0 -1
  1028. package/lib/models/vehicle/index.d.ts.map +0 -1
  1029. package/lib/models/vehicle/logbook-period.d.ts.map +0 -1
  1030. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +0 -1
  1031. package/lib/models/vehicle/vehicle-claim.d.ts.map +0 -1
  1032. package/lib/models/vehicle/vehicle-logbook.d.ts.map +0 -1
  1033. package/lib/models/vehicle/vehicle.d.ts.map +0 -1
  1034. package/lib/services/account-setup/account-setup.service.d.ts.map +0 -1
  1035. package/lib/services/account-setup/index.d.ts.map +0 -1
  1036. package/lib/services/affiliate/index.d.ts.map +0 -1
  1037. package/lib/services/affiliate/rewardful/index.d.ts.map +0 -1
  1038. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +0 -1
  1039. package/lib/services/asset/assets.service.d.ts.map +0 -1
  1040. package/lib/services/asset/index.d.ts.map +0 -1
  1041. package/lib/services/auth/auth.service.d.ts.map +0 -1
  1042. package/lib/services/auth/index.d.ts.map +0 -1
  1043. package/lib/services/auth/jwt.service.d.ts.map +0 -1
  1044. package/lib/services/bank/bank-account-calculation.service.d.ts.map +0 -1
  1045. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +0 -1
  1046. package/lib/services/bank/index.d.ts.map +0 -1
  1047. package/lib/services/data.service.d.ts.map +0 -1
  1048. package/lib/services/event/event-dispatcher.service.d.ts.map +0 -1
  1049. package/lib/services/event/index.d.ts.map +0 -1
  1050. package/lib/services/event/sse.service.d.ts.map +0 -1
  1051. package/lib/services/export/export-formatter.service.d.ts.map +0 -1
  1052. package/lib/services/export/index.d.ts.map +0 -1
  1053. package/lib/services/header-title/header-title.service.d.ts.map +0 -1
  1054. package/lib/services/header-title/index.d.ts.map +0 -1
  1055. package/lib/services/http/address/address.service.d.ts.map +0 -1
  1056. package/lib/services/http/address/index.d.ts.map +0 -1
  1057. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +0 -1
  1058. package/lib/services/http/bank/bank-account/index.d.ts.map +0 -1
  1059. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +0 -1
  1060. package/lib/services/http/bank/bank-connection/index.d.ts.map +0 -1
  1061. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +0 -1
  1062. package/lib/services/http/bank/bank-transaction/index.d.ts.map +0 -1
  1063. package/lib/services/http/bank/bank.service.d.ts.map +0 -1
  1064. package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +0 -1
  1065. package/lib/services/http/bank/basiq/basiq.service.d.ts.map +0 -1
  1066. package/lib/services/http/bank/basiq/index.d.ts.map +0 -1
  1067. package/lib/services/http/bank/index.d.ts.map +0 -1
  1068. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +0 -1
  1069. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +0 -1
  1070. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +0 -1
  1071. package/lib/services/http/chart-accounts/index.d.ts.map +0 -1
  1072. package/lib/services/http/chat/chat.service.d.ts.map +0 -1
  1073. package/lib/services/http/chat/index.d.ts.map +0 -1
  1074. package/lib/services/http/chat/message-document.service.d.ts.map +0 -1
  1075. package/lib/services/http/chat/message.service.d.ts.map +0 -1
  1076. package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +0 -1
  1077. package/lib/services/http/client/index.d.ts.map +0 -1
  1078. package/lib/services/http/client/occupation/occupation.service.d.ts.map +0 -1
  1079. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +0 -1
  1080. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +0 -1
  1081. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +0 -1
  1082. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +0 -1
  1083. package/lib/services/http/depreciation/depreciation.service.d.ts.map +0 -1
  1084. package/lib/services/http/depreciation/index.d.ts.map +0 -1
  1085. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +0 -1
  1086. package/lib/services/http/document/document.service.d.ts.map +0 -1
  1087. package/lib/services/http/document/index.d.ts.map +0 -1
  1088. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +0 -1
  1089. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +0 -1
  1090. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +0 -1
  1091. package/lib/services/http/facebook/facebook.service.d.ts.map +0 -1
  1092. package/lib/services/http/facebook/index.d.ts.map +0 -1
  1093. package/lib/services/http/file/file.service.d.ts.map +0 -1
  1094. package/lib/services/http/file/index.d.ts.map +0 -1
  1095. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +0 -1
  1096. package/lib/services/http/firm/client-income/index.d.ts.map +0 -1
  1097. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +0 -1
  1098. package/lib/services/http/firm/client-invite/index.d.ts.map +0 -1
  1099. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +0 -1
  1100. package/lib/services/http/firm/client-movement/index.d.ts.map +0 -1
  1101. package/lib/services/http/firm/employee/employee.service.d.ts.map +0 -1
  1102. package/lib/services/http/firm/employee/index.d.ts.map +0 -1
  1103. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +0 -1
  1104. package/lib/services/http/firm/employee-invite/index.d.ts.map +0 -1
  1105. package/lib/services/http/firm/firm.service.d.ts.map +0 -1
  1106. package/lib/services/http/firm/index.d.ts.map +0 -1
  1107. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +0 -1
  1108. package/lib/services/http/firm/portfolio-report/index.d.ts.map +0 -1
  1109. package/lib/services/http/google/google.service.d.ts.map +0 -1
  1110. package/lib/services/http/google/index.d.ts.map +0 -1
  1111. package/lib/services/http/holding/holding-messages.enum.d.ts.map +0 -1
  1112. package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +0 -1
  1113. package/lib/services/http/holding/holding-sale.service.d.ts.map +0 -1
  1114. package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +0 -1
  1115. package/lib/services/http/holding/holding-type.service.d.ts.map +0 -1
  1116. package/lib/services/http/holding/holding.service.d.ts.map +0 -1
  1117. package/lib/services/http/holding/index.d.ts.map +0 -1
  1118. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +0 -1
  1119. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +0 -1
  1120. package/lib/services/http/income-source/income-source.service.d.ts.map +0 -1
  1121. package/lib/services/http/income-source/index.d.ts.map +0 -1
  1122. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +0 -1
  1123. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +0 -1
  1124. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +0 -1
  1125. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +0 -1
  1126. package/lib/services/http/index.d.ts.map +0 -1
  1127. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +0 -1
  1128. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +0 -1
  1129. package/lib/services/http/loan/index.d.ts.map +0 -1
  1130. package/lib/services/http/loan/loan.service.d.ts.map +0 -1
  1131. package/lib/services/http/property/index.d.ts.map +0 -1
  1132. package/lib/services/http/property/property-category/index.d.ts.map +0 -1
  1133. package/lib/services/http/property/property-category/property-category.service.d.ts.map +0 -1
  1134. package/lib/services/http/property/property-category-movement/index.d.ts.map +0 -1
  1135. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +0 -1
  1136. package/lib/services/http/property/property-document/index.d.ts.map +0 -1
  1137. package/lib/services/http/property/property-document/property-document.service.d.ts.map +0 -1
  1138. package/lib/services/http/property/property-sale/index.d.ts.map +0 -1
  1139. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +0 -1
  1140. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +0 -1
  1141. package/lib/services/http/property/property-share/index.d.ts.map +0 -1
  1142. package/lib/services/http/property/property-share/property-share.service.d.ts.map +0 -1
  1143. package/lib/services/http/property/property.service.d.ts.map +0 -1
  1144. package/lib/services/http/receipt/index.d.ts.map +0 -1
  1145. package/lib/services/http/receipt/receipt.service.d.ts.map +0 -1
  1146. package/lib/services/http/rest/http-method.type.d.ts.map +0 -1
  1147. package/lib/services/http/rest/index.d.ts.map +0 -1
  1148. package/lib/services/http/rest/rest-method.type.d.ts.map +0 -1
  1149. package/lib/services/http/rest/rest-old.service.d.ts.map +0 -1
  1150. package/lib/services/http/rest/rest.service.d.ts.map +0 -1
  1151. package/lib/services/http/service-notification/index.d.ts.map +0 -1
  1152. package/lib/services/http/service-notification/service-notification.service.d.ts.map +0 -1
  1153. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +0 -1
  1154. package/lib/services/http/sole/index.d.ts.map +0 -1
  1155. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +0 -1
  1156. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +0 -1
  1157. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +0 -1
  1158. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +0 -1
  1159. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +0 -1
  1160. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +0 -1
  1161. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +0 -1
  1162. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +0 -1
  1163. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +0 -1
  1164. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +0 -1
  1165. package/lib/services/http/subscription/index.d.ts.map +0 -1
  1166. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +0 -1
  1167. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +0 -1
  1168. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +0 -1
  1169. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +0 -1
  1170. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +0 -1
  1171. package/lib/services/http/tax-review/index.d.ts.map +0 -1
  1172. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +0 -1
  1173. package/lib/services/http/tax-review/tax-review.service.d.ts.map +0 -1
  1174. package/lib/services/http/tax-summary/index.d.ts.map +0 -1
  1175. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +0 -1
  1176. package/lib/services/http/transaction/index.d.ts.map +0 -1
  1177. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +0 -1
  1178. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +0 -1
  1179. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +0 -1
  1180. package/lib/services/http/transaction/transaction.service.d.ts.map +0 -1
  1181. package/lib/services/http/tutorial-video/index.d.ts.map +0 -1
  1182. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +0 -1
  1183. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +0 -1
  1184. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +0 -1
  1185. package/lib/services/http/user/index.d.ts.map +0 -1
  1186. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +0 -1
  1187. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +0 -1
  1188. package/lib/services/http/user/user.service.d.ts.map +0 -1
  1189. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +0 -1
  1190. package/lib/services/http/vehicle/index.d.ts.map +0 -1
  1191. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +0 -1
  1192. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +0 -1
  1193. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +0 -1
  1194. package/lib/services/http/vehicle/vehicle.service.d.ts.map +0 -1
  1195. package/lib/services/index.d.ts.map +0 -1
  1196. package/lib/services/intercom/index.d.ts.map +0 -1
  1197. package/lib/services/intercom/intercom.service.d.ts.map +0 -1
  1198. package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +0 -1
  1199. package/lib/services/pdf/index.d.ts.map +0 -1
  1200. package/lib/services/pdf/js-pdf.d.ts.map +0 -1
  1201. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +0 -1
  1202. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +0 -1
  1203. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +0 -1
  1204. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +0 -1
  1205. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +0 -1
  1206. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +0 -1
  1207. package/lib/services/preloader/index.d.ts.map +0 -1
  1208. package/lib/services/preloader/preloader.service.d.ts.map +0 -1
  1209. package/lib/services/property/corelogic/corelogic.service.d.ts.map +0 -1
  1210. package/lib/services/property/corelogic/index.d.ts.map +0 -1
  1211. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +0 -1
  1212. package/lib/services/property/equity-position-chart/index.d.ts.map +0 -1
  1213. package/lib/services/property/index.d.ts.map +0 -1
  1214. package/lib/services/property/property-calculation/index.d.ts.map +0 -1
  1215. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +0 -1
  1216. package/lib/services/report/index.d.ts.map +0 -1
  1217. package/lib/services/report/property/property-transaction-report.service.d.ts.map +0 -1
  1218. package/lib/services/toast/index.d.ts.map +0 -1
  1219. package/lib/services/toast/toast.service.d.ts.map +0 -1
  1220. package/lib/services/transaction/index.d.ts.map +0 -1
  1221. package/lib/services/transaction/transaction-calculation.service.d.ts.map +0 -1
  1222. package/lib/services/user/index.d.ts.map +0 -1
  1223. package/lib/services/user/user-switcher.service.d.ts.map +0 -1
  1224. package/lib/services/vehicle/index.d.ts.map +0 -1
  1225. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +0 -1
  1226. package/lib/services/xlsx/index.d.ts.map +0 -1
  1227. package/lib/services/xlsx/xlsx.service.d.ts.map +0 -1
  1228. package/lib/tt-core.module.d.ts.map +0 -1
  1229. package/lib/validators/address-corelogic.validator.d.ts.map +0 -1
  1230. package/lib/validators/at-least-one-enabled.validator.d.ts.map +0 -1
  1231. package/lib/validators/at-least-one.validator.d.ts.map +0 -1
  1232. package/lib/validators/autocomplete.validator.d.ts.map +0 -1
  1233. package/lib/validators/conditional.validator.d.ts.map +0 -1
  1234. package/lib/validators/current-fin-year.validator.d.ts.map +0 -1
  1235. package/lib/validators/date-range.validator.d.ts.map +0 -1
  1236. package/lib/validators/fields-sum.validator.d.ts.map +0 -1
  1237. package/lib/validators/file.validator.d.ts.map +0 -1
  1238. package/lib/validators/index.d.ts.map +0 -1
  1239. package/lib/validators/min-date/messages.enum.d.ts.map +0 -1
  1240. package/lib/validators/min-date/min-date.validator.d.ts.map +0 -1
  1241. package/lib/validators/password-match.validator.d.ts.map +0 -1
  1242. package/lib/validators/password.validator.d.ts.map +0 -1
  1243. package/lib/validators/phone-number.validator.d.ts.map +0 -1
  1244. package/lib/validators/required-length.validator.d.ts.map +0 -1
  1245. package/lib/validators/transactions-meta-fields.validator.d.ts.map +0 -1
  1246. package/public-api.d.ts.map +0 -1
  1247. package/taxtank-core.d.ts.map +0 -1
@@ -25,7 +25,6 @@ import concat from 'lodash/concat';
25
25
  import cloneDeep$1 from 'lodash/cloneDeep';
26
26
  import clone from 'lodash/clone';
27
27
  import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.js';
28
- import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
29
28
  import * as i4 from '@angular/router';
30
29
  import { NavigationEnd } from '@angular/router';
31
30
  import _ from 'lodash';
@@ -56,9 +55,7 @@ class CorelogicService {
56
55
  getAccessToken(force = false) {
57
56
  if (!this._accessToken || force) {
58
57
  this.http.get(`${this.environment.coreLogicUrl}/access/oauth/token?grant_type=client_credentials&client_id=${this.environment.coreLogicId}&client_secret=${this.environment.coreLogicSecret}`)
59
- .pipe(map((response) => {
60
- return response.access_token;
61
- }))
58
+ .pipe(map((response) => response.access_token))
62
59
  .subscribe((token) => {
63
60
  this._accessToken = token;
64
61
  this.accessTokenSubject.next(this._accessToken);
@@ -69,9 +66,7 @@ class CorelogicService {
69
66
  getSuggestions(query, country = 'au') {
70
67
  // @TODO handle different countries in future
71
68
  return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
72
- .pipe(map((response) => {
73
- return response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item));
74
- }));
69
+ .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
75
70
  }
76
71
  }
77
72
  CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -104,9 +99,7 @@ class CorelogicInterceptor {
104
99
  return next.handle(request);
105
100
  }
106
101
  return this.corelogicService.getAccessToken()
107
- .pipe(mergeMap((token) => {
108
- return next.handle(this.addToken(request, token));
109
- }));
102
+ .pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
110
103
  }
111
104
  addToken(request, token) {
112
105
  return request.clone({
@@ -455,9 +448,7 @@ __decorate([
455
448
  __decorate([
456
449
  Exclude({ toPlainOnly: true }),
457
450
  Type(() => Object),
458
- Transform(({ obj }) => {
459
- return obj.file;
460
- })
451
+ Transform(({ obj }) => obj.file)
461
452
  ], TransactionBase.prototype, "file", void 0);
462
453
  __decorate([
463
454
  Exclude()
@@ -1281,7 +1272,6 @@ class ExportableCollection extends Collection {
1281
1272
  getExportFooter(type) {
1282
1273
  return [];
1283
1274
  }
1284
- ;
1285
1275
  export(type) {
1286
1276
  return plainToClass(ExportDataTable, {
1287
1277
  header: this.getExportHeader(type),
@@ -1320,26 +1310,22 @@ class LoanPaymentCollection extends ExportableCollection {
1320
1310
  ];
1321
1311
  }
1322
1312
  getExportBody() {
1323
- return this.items.map((payment) => {
1324
- return [
1325
- plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
1326
- plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
1327
- plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
1328
- plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
1329
- plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
1330
- plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
1331
- plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
1332
- ];
1333
- });
1313
+ return this.items.map((payment) => [
1314
+ plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
1315
+ plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
1316
+ plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
1317
+ plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
1318
+ plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
1319
+ plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
1320
+ plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
1321
+ ]);
1334
1322
  }
1335
1323
  get paymentDue() {
1336
1324
  return this.sumBy('paymentDue');
1337
1325
  }
1338
1326
  getByFinYear(finYear = new FinancialYear()) {
1339
- return this.filter((payment) => {
1340
- return new Date(payment.date) >= finYear.startDate &&
1341
- new Date(payment.date) <= finYear.endDate;
1342
- });
1327
+ return this.filter((payment) => new Date(payment.date) >= finYear.startDate &&
1328
+ new Date(payment.date) <= finYear.endDate);
1343
1329
  }
1344
1330
  getForCurrentYear() {
1345
1331
  return this.getByFinYear(new FinancialYear());
@@ -1578,9 +1564,7 @@ var ServiceSubscriptionStatusEnum;
1578
1564
 
1579
1565
  class MessageCollection extends Collection {
1580
1566
  getFirstUnreadMessage(user) {
1581
- return this.items.find((message) => {
1582
- return !message.isRead() && message.isFromEmployee() !== user.isEmployee();
1583
- });
1567
+ return this.items.find((message) => !message.isRead() && message.isFromEmployee() !== user.isEmployee());
1584
1568
  }
1585
1569
  /**
1586
1570
  * Get List of unread chats
@@ -1778,9 +1762,7 @@ class PropertyCollection extends Collection {
1778
1762
  return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
1779
1763
  }
1780
1764
  get earliestContractDate() {
1781
- return this.items.reduce((min, property) => {
1782
- return min < property.contractDate ? min : property.contractDate;
1783
- }, new FinancialYear(new Date()).startDate);
1765
+ return this.items.reduce((min, property) => min < property.contractDate ? min : property.contractDate, new FinancialYear(new Date()).startDate);
1784
1766
  }
1785
1767
  /**
1786
1768
  * Get list of unique property categories from collection
@@ -1792,9 +1774,7 @@ class PropertyCollection extends Collection {
1792
1774
  * Get property with the highest growth percent
1793
1775
  */
1794
1776
  getBestPerformanceGrowthProperty() {
1795
- return this.items.reduce((max, current) => {
1796
- return max.growthPercent < current.growthPercent ? current : max;
1797
- }, this.first);
1777
+ return this.items.reduce((max, current) => max.growthPercent < current.growthPercent ? current : max, this.first);
1798
1778
  }
1799
1779
  /**
1800
1780
  * Get property with the lowest tax position
@@ -1834,9 +1814,7 @@ class PropertyCategoryMovementCollection extends Collection {
1834
1814
  */
1835
1815
  getByForecast(property, forecast) {
1836
1816
  const financialYear = new FinancialYear(forecast.financialYear);
1837
- return this.filterBy('property.id', property.id).filter((movement) => {
1838
- return movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate;
1839
- });
1817
+ return this.filterBy('property.id', property.id).filter((movement) => movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate);
1840
1818
  }
1841
1819
  hasCategory(categoryId) {
1842
1820
  return !!this.findBy('propertyCategory.id', categoryId);
@@ -1850,9 +1828,7 @@ class PropertyShareCollection extends Collection {
1850
1828
  * @TODO Alex: rename
1851
1829
  */
1852
1830
  getIncoming() {
1853
- return this.filter((propertyShare) => {
1854
- return propertyShare.user?.isLoggedIn() && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
1855
- });
1831
+ return this.filter((propertyShare) => propertyShare.user?.isLoggedIn() && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId'));
1856
1832
  }
1857
1833
  /**
1858
1834
  * Get list of outcoming property shares
@@ -3264,7 +3240,6 @@ class SoleForecast extends SoleForecast$1 {
3264
3240
  get netPay() {
3265
3241
  return this.amount;
3266
3242
  }
3267
- ;
3268
3243
  }
3269
3244
  __decorate([
3270
3245
  Type(() => IncomeSource)
@@ -3455,33 +3430,23 @@ __decorate([
3455
3430
  Type(() => ChartAccounts)
3456
3431
  // @TODO Alex: Create custom decorator for this transform
3457
3432
  ,
3458
- Transform(({ value }) => {
3459
- return { id: value.id };
3460
- }, { toPlainOnly: true })
3433
+ Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
3461
3434
  ], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
3462
3435
  __decorate([
3463
3436
  Type(() => Property),
3464
- Transform(({ value }) => {
3465
- return value ? { id: value.id } : null;
3466
- }, { toPlainOnly: true })
3437
+ Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
3467
3438
  ], AllocationRuleTransaction.prototype, "property", void 0);
3468
3439
  __decorate([
3469
3440
  Type(() => Loan),
3470
- Transform(({ value }) => {
3471
- return value ? { id: value.id } : null;
3472
- }, { toPlainOnly: true })
3441
+ Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
3473
3442
  ], AllocationRuleTransaction.prototype, "loan", void 0);
3474
3443
  __decorate([
3475
3444
  Type(() => IncomeSource),
3476
- Transform(({ value }) => {
3477
- return value ? { id: value.id } : null;
3478
- }, { toPlainOnly: true })
3445
+ Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
3479
3446
  ], AllocationRuleTransaction.prototype, "incomeSource", void 0);
3480
3447
  __decorate([
3481
3448
  Type(() => SoleBusiness),
3482
- Transform(({ value }) => {
3483
- return value ? { id: value.id } : null;
3484
- }, { toPlainOnly: true })
3449
+ Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
3485
3450
  ], AllocationRuleTransaction.prototype, "business", void 0);
3486
3451
  __decorate([
3487
3452
  Type(() => AllocationRuleTransactionMetaField)
@@ -3558,7 +3523,7 @@ class AllocationRule extends AllocationRule$1 {
3558
3523
  * Rule is matched when all conditions matched
3559
3524
  */
3560
3525
  checkAnd(bankTransaction) {
3561
- for (let condition of this.conditions) {
3526
+ for (const condition of this.conditions) {
3562
3527
  if (!condition.matchBankTransaction(bankTransaction)) {
3563
3528
  return false;
3564
3529
  }
@@ -3569,7 +3534,7 @@ class AllocationRule extends AllocationRule$1 {
3569
3534
  * Rule is matched when at least one condition matched
3570
3535
  */
3571
3536
  checkOr(bankTransaction) {
3572
- for (let condition of this.conditions) {
3537
+ for (const condition of this.conditions) {
3573
3538
  if (condition.matchBankTransaction(bankTransaction)) {
3574
3539
  return true;
3575
3540
  }
@@ -3601,7 +3566,7 @@ class AllocationRule extends AllocationRule$1 {
3601
3566
  }
3602
3567
  __decorate([
3603
3568
  Type(() => BankAccount),
3604
- Transform(({ value }) => { return { id: value.id }; }, { toPlainOnly: true })
3569
+ Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
3605
3570
  ], AllocationRule.prototype, "bankAccount", void 0);
3606
3571
  __decorate([
3607
3572
  Type(() => AllocationRuleCondition)
@@ -3993,12 +3958,8 @@ class PropertyEquityChartData {
3993
3958
  const items = this.list.filter((item) => item.year <= this.currentYear);
3994
3959
  items.forEach((item) => {
3995
3960
  // increase item values with property actual forecasts for item year
3996
- item.marketValue = this.properties.items.reduce((sum, property) => {
3997
- return sum + this.getMarketValueForPropertyByYear(property, item.year);
3998
- }, 0);
3999
- item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => {
4000
- return sum + this.getLoanBalanceForPropertyByYear(property, item.year);
4001
- }, 0));
3961
+ item.marketValue = this.properties.items.reduce((sum, property) => sum + this.getMarketValueForPropertyByYear(property, item.year), 0);
3962
+ item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => sum + this.getLoanBalanceForPropertyByYear(property, item.year), 0));
4002
3963
  });
4003
3964
  }
4004
3965
  /**
@@ -4008,9 +3969,7 @@ class PropertyEquityChartData {
4008
3969
  buildActualItem() {
4009
3970
  const item = this.list.find((i) => i.year === this.currentYear);
4010
3971
  item.marketValue = this.properties.marketValue;
4011
- item.loanBalance = this.properties.items.reduce((sum, property) => {
4012
- return sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id));
4013
- }, 0);
3972
+ item.loanBalance = this.properties.items.reduce((sum, property) => sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id)), 0);
4014
3973
  }
4015
3974
  /**
4016
3975
  * collect equity position items with forecasted (future) calculated values
@@ -4042,9 +4001,7 @@ class PropertyEquityChartData {
4042
4001
  * @private
4043
4002
  */
4044
4003
  getLoanBalanceByYear(property, year, bankAccounts, loans) {
4045
- return bankAccounts.items.reduce((totalSum, bankAccount) => {
4046
- return totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0));
4047
- }, 0);
4004
+ return bankAccounts.items.reduce((totalSum, bankAccount) => totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0)), 0);
4048
4005
  }
4049
4006
  getMarketValueForPropertyByYear(property, year) {
4050
4007
  if (new FinancialYear(property.contractDate).year > year) {
@@ -5078,9 +5035,7 @@ class Transaction extends Transaction$1 {
5078
5035
  * @Todo modify 'metaFields' property from array to Collection
5079
5036
  */
5080
5037
  getMetaFieldValue(field) {
5081
- return +this.metaFields.find((transactionMetaField) => {
5082
- return transactionMetaField.chartAccountsMetaField.id === field;
5083
- })?.value || 0;
5038
+ return +this.metaFields.find((transactionMetaField) => transactionMetaField.chartAccountsMetaField.id === field)?.value || 0;
5084
5039
  }
5085
5040
  isCash() {
5086
5041
  return this.source === TransactionSourceEnum.CASH;
@@ -5271,9 +5226,7 @@ class Depreciation extends Depreciation$1 {
5271
5226
  * @TODO Vik: Research a problem with depreciations without current year forecast
5272
5227
  */
5273
5228
  get currentYearForecast() {
5274
- return this.forecasts.find((forecast) => {
5275
- return forecast.financialYear === new FinancialYear().year;
5276
- }) || plainToClass(DepreciationForecast, {
5229
+ return this.forecasts.find((forecast) => forecast.financialYear === new FinancialYear().year) || plainToClass(DepreciationForecast, {
5277
5230
  financialYear: new FinancialYear().year,
5278
5231
  openBalance: 0,
5279
5232
  closeBalance: 0,
@@ -5282,9 +5235,7 @@ class Depreciation extends Depreciation$1 {
5282
5235
  });
5283
5236
  }
5284
5237
  getForecastByYear(year) {
5285
- return this.forecasts.find((forecast) => {
5286
- return forecast.financialYear === year;
5287
- });
5238
+ return this.forecasts.find((forecast) => forecast.financialYear === year);
5288
5239
  }
5289
5240
  getClaimAmountByYear(year) {
5290
5241
  return this.getForecastByYear(year)?.claimAmount || 0;
@@ -5429,14 +5380,10 @@ class TransactionCollection extends ExportableCollection {
5429
5380
  return this.sumBy('amount');
5430
5381
  }
5431
5382
  getUnallocated(allocations) {
5432
- return new TransactionCollection(this.items.filter((transaction) => {
5433
- return !transaction.isAllocated(allocations);
5434
- }));
5383
+ return new TransactionCollection(this.items.filter((transaction) => !transaction.isAllocated(allocations)));
5435
5384
  }
5436
5385
  getUnallocatedAmount(allocations) {
5437
- return this.items.reduce((sum, transaction) => {
5438
- return sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id));
5439
- }, 0);
5386
+ return this.items.reduce((sum, transaction) => sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id)), 0);
5440
5387
  }
5441
5388
  /**
5442
5389
  * get date of the last transaction
@@ -5496,9 +5443,7 @@ class TransactionCollection extends ExportableCollection {
5496
5443
  * @param ids Ids of properties for filter
5497
5444
  */
5498
5445
  getByPropertiesIds(ids) {
5499
- return new TransactionCollection(this.items.filter((transaction) => {
5500
- return ids.includes(transaction.property?.id);
5501
- }));
5446
+ return new TransactionCollection(this.items.filter((transaction) => ids.includes(transaction.property?.id)));
5502
5447
  }
5503
5448
  /**
5504
5449
  * Get new collection filtered by income source id
@@ -5533,9 +5478,7 @@ class TransactionCollection extends ExportableCollection {
5533
5478
  * Get transactions related to Vehicle category
5534
5479
  */
5535
5480
  getVehicleTransactions() {
5536
- return this.create(this.items.filter((transaction) => {
5537
- return transaction.isVehicleTransaction();
5538
- }));
5481
+ return this.create(this.items.filter((transaction) => transaction.isVehicleTransaction()));
5539
5482
  }
5540
5483
  /**
5541
5484
  * Get new transaction collection filtered by tank type
@@ -5567,14 +5510,12 @@ class TransactionCollection extends ExportableCollection {
5567
5510
  ];
5568
5511
  }
5569
5512
  getExportBody() {
5570
- return this.items.map((transaction) => {
5571
- return [
5572
- plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
5573
- plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
5574
- plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
5575
- plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
5576
- ];
5577
- });
5513
+ return this.items.map((transaction) => [
5514
+ plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
5515
+ plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
5516
+ plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
5517
+ plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
5518
+ ]);
5578
5519
  }
5579
5520
  /**
5580
5521
  * Get list of vehicle transactions filtered by vehicle claim
@@ -5694,29 +5635,19 @@ class DepreciationCollection extends Collection {
5694
5635
  return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
5695
5636
  }
5696
5637
  get claimAmount() {
5697
- return this.items.reduce((sum, depreciation) => {
5698
- return sum + depreciation.currentYearForecast.claimAmount;
5699
- }, 0);
5638
+ return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.claimAmount, 0);
5700
5639
  }
5701
5640
  getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
5702
- return +Math.round(this.amount - this.items.reduce((sum, depreciation) => {
5703
- return sum + depreciation.getCloseBalanceByYear(year);
5704
- }, 0)).toFixed(2);
5641
+ return +Math.round(this.amount - this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0)).toFixed(2);
5705
5642
  }
5706
5643
  getClaimAmountByYear(year = +localStorage.getItem('financialYear')) {
5707
- return this.items.reduce((sum, depreciation) => {
5708
- return sum + depreciation.getClaimAmountByYear(year);
5709
- }, 0);
5644
+ return this.items.reduce((sum, depreciation) => sum + depreciation.getClaimAmountByYear(year), 0);
5710
5645
  }
5711
5646
  getCloseBalanceByYear(year = +localStorage.getItem('financialYear')) {
5712
- return this.items.reduce((sum, depreciation) => {
5713
- return sum + depreciation.getCloseBalanceByYear(year);
5714
- }, 0);
5647
+ return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
5715
5648
  }
5716
5649
  getCurrentYearForecastAmount() {
5717
- return this.items.reduce((sum, depreciation) => {
5718
- return sum + depreciation.currentYearForecast.amount;
5719
- }, 0);
5650
+ return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.amount, 0);
5720
5651
  }
5721
5652
  get closeBalance() {
5722
5653
  return this.sumBy('currentYearForecast.closeBalance');
@@ -5758,9 +5689,7 @@ class DepreciationCollection extends Collection {
5758
5689
  return this.filter((depreciation) => depreciation.isSBP());
5759
5690
  }
5760
5691
  getCapitalProjects() {
5761
- return uniqBy(compact(this.items.map((depreciation) => {
5762
- return depreciation.depreciationCapitalProject;
5763
- })), 'id');
5692
+ return uniqBy(compact(this.items.map((depreciation) => depreciation.depreciationCapitalProject)), 'id');
5764
5693
  }
5765
5694
  /**
5766
5695
  * Get a new collection of depreciations related to vehicles
@@ -5839,9 +5768,7 @@ class DepreciationReportItemCollection extends DepreciationCollection {
5839
5768
  * Create new collection from provided depreciations list
5840
5769
  */
5841
5770
  static fromDepreciations(deprectiations) {
5842
- return new DepreciationReportItemCollection(deprectiations.map((depreciation) => {
5843
- return plainToClass(DepreciationReportItem, depreciation);
5844
- }));
5771
+ return new DepreciationReportItemCollection(deprectiations.map((depreciation) => plainToClass(DepreciationReportItem, depreciation)));
5845
5772
  }
5846
5773
  }
5847
5774
 
@@ -5974,9 +5901,7 @@ class VehicleExpenseCollection extends Collection {
5974
5901
  setItems(transactions, depreciations, vehicleClaim) {
5975
5902
  this.items = [];
5976
5903
  const transactionsByChartAccounts = new CollectionDictionary(transactions, 'chartAccounts.name');
5977
- const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => {
5978
- return new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName);
5979
- });
5904
+ const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName));
5980
5905
  // group all depreciations into one expense item
5981
5906
  const depreciationExpense = new VehicleExpense(depreciations.getCurrentYearForecastAmount(), vehicleClaim.workUsage, 'Depreciation');
5982
5907
  this.items.push(...[depreciationExpense, ...transactionExpenses]);
@@ -6190,14 +6115,10 @@ class ServiceSubscriptionCollection extends Collection {
6190
6115
  return dictionary;
6191
6116
  }
6192
6117
  findByProduct(product) {
6193
- return this.find((subscription) => {
6194
- return !!subscription.items.find((item) => item.price.product.id === product.id);
6195
- });
6118
+ return this.find((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
6196
6119
  }
6197
6120
  filterByProduct(product) {
6198
- return this.filter((subscription) => {
6199
- return !!subscription.items.find((item) => item.price.product.id === product.id);
6200
- });
6121
+ return this.filter((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
6201
6122
  }
6202
6123
  hasPropertyTank() {
6203
6124
  return !!this.getItems().propertiesItem;
@@ -6213,8 +6134,8 @@ class ReportItemCollection extends Collection {
6213
6134
  * Search items which has details
6214
6135
  */
6215
6136
  getBySection(section) {
6216
- let result = [];
6217
- for (let reportItem of this.items) {
6137
+ const result = [];
6138
+ for (const reportItem of this.items) {
6218
6139
  if ((reportItem.details.length || reportItem.amount) && reportItem.taxReturnCategory.section === section) {
6219
6140
  result.push(reportItem);
6220
6141
  }
@@ -6225,8 +6146,8 @@ class ReportItemCollection extends Collection {
6225
6146
  return this.create(result);
6226
6147
  }
6227
6148
  getByCategory(categoryId) {
6228
- let result = [];
6229
- for (let reportItem of this.items) {
6149
+ const result = [];
6150
+ for (const reportItem of this.items) {
6230
6151
  if (reportItem.taxReturnCategory.id === categoryId) {
6231
6152
  result.push(reportItem);
6232
6153
  }
@@ -6241,7 +6162,7 @@ class ReportItemCollection extends Collection {
6241
6162
  */
6242
6163
  findByCategory(categoryId) {
6243
6164
  let result;
6244
- for (let reportItem of this.items) {
6165
+ for (const reportItem of this.items) {
6245
6166
  if (result) {
6246
6167
  break;
6247
6168
  }
@@ -6290,8 +6211,8 @@ class ReportItemCollection extends Collection {
6290
6211
  * @TODO Alex: consider to create and move to ReportItemDetailsCollection
6291
6212
  */
6292
6213
  getDetailsByIncomeSource(incomeSource) {
6293
- let result = [];
6294
- for (let reportItem of this.items) {
6214
+ const result = [];
6215
+ for (const reportItem of this.items) {
6295
6216
  if (reportItem.details.length) {
6296
6217
  result.push(...reportItem.details.filter((details) => details.name === incomeSource.name));
6297
6218
  }
@@ -6649,46 +6570,32 @@ class BankAccountCollection extends Collection {
6649
6570
  */
6650
6571
  getInitialLoanAmount() {
6651
6572
  return this.getByType(TYPE_LOAN)
6652
- .reduce((sum, bankAccount) => {
6653
- return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
6654
- }, 0);
6573
+ .reduce((sum, bankAccount) => sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0, 0);
6655
6574
  }
6656
6575
  /**
6657
6576
  * get amount of current loans
6658
6577
  */
6659
6578
  getCurrentLoanAmount() {
6660
6579
  return this.getByType(TYPE_LOAN)
6661
- .reduce((sum, bankAccount) => {
6662
- return sum += bankAccount.currentBalance;
6663
- }, 0);
6580
+ .reduce((sum, bankAccount) => sum += bankAccount.currentBalance, 0);
6664
6581
  }
6665
6582
  /**
6666
6583
  * get collection filtered by property id
6667
6584
  */
6668
6585
  getByPropertyId(id) {
6669
- return new BankAccountCollection(this.items.filter((bankAccount) => {
6670
- return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
6671
- return bankAccountProperty.property.id === id;
6672
- });
6673
- }));
6586
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => bankAccountProperty.property.id === id)));
6674
6587
  }
6675
6588
  /**
6676
6589
  * get collection filtered by properties ids
6677
6590
  */
6678
6591
  getByPropertiesIds(ids) {
6679
- return new BankAccountCollection(this.items.filter((bankAccount) => {
6680
- return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
6681
- return ids.includes(bankAccountProperty.property.id);
6682
- });
6683
- }));
6592
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => ids.includes(bankAccountProperty.property.id))));
6684
6593
  }
6685
6594
  /**
6686
6595
  * get collection of active bank accounts
6687
6596
  */
6688
6597
  getActiveBankAccounts() {
6689
- return new BankAccountCollection(this.items.filter((bankAccount) => {
6690
- return bankAccount.isActive();
6691
- }));
6598
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isActive()));
6692
6599
  }
6693
6600
  /**
6694
6601
  * get reduction of loan (reduction of principle) percentage
@@ -6738,22 +6645,16 @@ class BankAccountCollection extends Collection {
6738
6645
  * Get list of all bank account properties
6739
6646
  */
6740
6647
  getBankAccountPropertiesList() {
6741
- return flatten(this.items.map((bankAccount) => {
6742
- return bankAccount.bankAccountProperties;
6743
- }));
6648
+ return flatten(this.items.map((bankAccount) => bankAccount.bankAccountProperties));
6744
6649
  }
6745
6650
  /**
6746
6651
  * Get lis of unique properties from all bank accounts properties
6747
6652
  */
6748
6653
  getProperties() {
6749
- return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => {
6750
- return bankAccountProperty.property;
6751
- }), 'id');
6654
+ return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => bankAccountProperty.property), 'id');
6752
6655
  }
6753
6656
  getPropertyBalanceAmount(propertyId) {
6754
- return this.items.reduce((sum, bankAccount) => {
6755
- return sum + bankAccount.getPropertyBalanceAmount(propertyId);
6756
- }, 0);
6657
+ return this.items.reduce((sum, bankAccount) => sum + bankAccount.getPropertyBalanceAmount(propertyId), 0);
6757
6658
  }
6758
6659
  getOwn() {
6759
6660
  // TODO Alex/Vik: maybe we should get it from jwtToken or think about some localStorageService?
@@ -6831,10 +6732,8 @@ class BankTransactionCollection extends Collection {
6831
6732
  * Find Bank Transaction available for transfer
6832
6733
  */
6833
6734
  findTransfer(bankTransaction) {
6834
- return this.items.find((item) => {
6835
- return item.amount + bankTransaction.amount === 0 &&
6836
- Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY;
6837
- });
6735
+ return this.items.find((item) => item.amount + bankTransaction.amount === 0 &&
6736
+ Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY);
6838
6737
  }
6839
6738
  /**
6840
6739
  * Group bank transactions by transaction id.
@@ -7062,12 +6961,10 @@ class TaxReviewCollection extends Collection {
7062
6961
  */
7063
6962
  getInWork() {
7064
6963
  return this.items
7065
- .filter((taxReview) => {
7066
- return taxReview.isInProgress() ||
7067
- taxReview.isWaitingForClient() ||
7068
- taxReview.isWaitingForApproval() ||
7069
- taxReview.isApproved();
7070
- });
6964
+ .filter((taxReview) => taxReview.isInProgress() ||
6965
+ taxReview.isWaitingForClient() ||
6966
+ taxReview.isWaitingForApproval() ||
6967
+ taxReview.isApproved());
7071
6968
  }
7072
6969
  /**
7073
6970
  * Get percentage of completed reviews of the total review amount
@@ -7164,7 +7061,7 @@ class ServiceSubscription extends ServiceSubscription$1 {
7164
7061
  return !!this.stripeId;
7165
7062
  }
7166
7063
  get initialPrice() {
7167
- let price = this.items.reduce((sum, item) => sum + item.total, 0);
7064
+ const price = this.items.reduce((sum, item) => sum + item.total, 0);
7168
7065
  return price;
7169
7066
  }
7170
7067
  get discountAmount() {
@@ -7211,14 +7108,10 @@ class ServiceSubscription extends ServiceSubscription$1 {
7211
7108
  return this.items.find((item) => item.price.product.isProperties());
7212
7109
  }
7213
7110
  hasPropertyTank() {
7214
- return !!this.items.find((subscriptionItem) => {
7215
- return subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK);
7216
- });
7111
+ return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK));
7217
7112
  }
7218
7113
  hasWorkTank() {
7219
- return !!this.items.find((subscriptionItem) => {
7220
- return subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK);
7221
- });
7114
+ return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK));
7222
7115
  }
7223
7116
  /**
7224
7117
  * bought before price updates, active for some time to let customer select a new plan
@@ -7474,9 +7367,7 @@ class Property extends Property$1 {
7474
7367
  return this.currentYearForecast?.cashPosition || 0;
7475
7368
  }
7476
7369
  get firstForecastYear() {
7477
- return this.forecasts.reduce((min, forecast) => {
7478
- return min > forecast.financialYear ? forecast.financialYear : min;
7479
- }, new FinancialYear().year);
7370
+ return this.forecasts.reduce((min, forecast) => min > forecast.financialYear ? forecast.financialYear : min, new FinancialYear().year);
7480
7371
  }
7481
7372
  get marketValueGrowth() {
7482
7373
  return (this.marketValue - this.purchasePrice) / this.marketValue;
@@ -7485,9 +7376,7 @@ class Property extends Property$1 {
7485
7376
  return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
7486
7377
  }
7487
7378
  get actualValuation() {
7488
- return this.valuations.reduce((maxDateValuation, valuation) => {
7489
- return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
7490
- }, this.valuations[0]);
7379
+ return this.valuations.reduce((maxDateValuation, valuation) => maxDateValuation.date > valuation.date ? maxDateValuation : valuation, this.valuations[0]);
7491
7380
  }
7492
7381
  get claimPercent() {
7493
7382
  return this.currentYearForecast.claimPercent;
@@ -7890,12 +7779,10 @@ class BankAccountChartData {
7890
7779
  * set value of pie chart data
7891
7780
  */
7892
7781
  getBalancePieChartData() {
7893
- return this.bankAccounts.map((bankAccount) => {
7894
- return {
7895
- name: bankAccount.accountName,
7896
- data: Math.abs(bankAccount.currentBalance)
7897
- };
7898
- });
7782
+ return this.bankAccounts.map((bankAccount) => ({
7783
+ name: bankAccount.accountName,
7784
+ data: Math.abs(bankAccount.currentBalance)
7785
+ }));
7899
7786
  }
7900
7787
  /**
7901
7788
  * set value of bar chart data
@@ -7903,12 +7790,10 @@ class BankAccountChartData {
7903
7790
  getBalanceBarChartData() {
7904
7791
  return [{
7905
7792
  name: 'Balance',
7906
- data: this.bankAccounts.map((bankAccount) => {
7907
- return {
7908
- label: bankAccount.accountName,
7909
- value: bankAccount.currentBalance
7910
- };
7911
- })
7793
+ data: this.bankAccounts.map((bankAccount) => ({
7794
+ label: bankAccount.accountName,
7795
+ value: bankAccount.currentBalance
7796
+ }))
7912
7797
  }];
7913
7798
  }
7914
7799
  }
@@ -7972,9 +7857,7 @@ class BankTransactionChartData {
7972
7857
  }];
7973
7858
  for (const key in MonthNameShortEnum) {
7974
7859
  if (MonthNameShortEnum.hasOwnProperty(key)) {
7975
- const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => {
7976
- return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
7977
- });
7860
+ const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
7978
7861
  const cashInForMonth = bankTransactionsForMonth
7979
7862
  .filter((bankTransaction) => bankTransaction.isCredit())
7980
7863
  .reduce((sum, bankTransaction) => sum += bankTransaction.allocatedAmount, 0);
@@ -8003,16 +7886,12 @@ class BankTransactionChartData {
8003
7886
  }];
8004
7887
  for (const key in MonthNameShortEnum) {
8005
7888
  if (MonthNameShortEnum.hasOwnProperty(key)) {
8006
- const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => {
8007
- return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
8008
- });
7889
+ const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
8009
7890
  const balanceForMonth = bankTransactionsForMonth.reduce((sum, bankTransaction) => {
8010
7891
  if (bankTransaction.isCredit()) {
8011
7892
  return sum += bankTransaction.allocatedAmount;
8012
7893
  }
8013
- else {
8014
- return sum -= bankTransaction.allocatedAmount;
8015
- }
7894
+ return sum -= bankTransaction.allocatedAmount;
8016
7895
  }, 0);
8017
7896
  chartData[0].data.push({
8018
7897
  label: MonthNameShortEnum[key],
@@ -8460,7 +8339,7 @@ __decorate([
8460
8339
  class HoldingSale extends AbstractModel {
8461
8340
  }
8462
8341
  __decorate([
8463
- Transform(({ value }) => { return { id: value.id }; }, { toPlainOnly: true })
8342
+ Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
8464
8343
  ], HoldingSale.prototype, "holding", void 0);
8465
8344
  __decorate([
8466
8345
  Type(() => Date)
@@ -8635,12 +8514,10 @@ class ClientPortfolioChartData {
8635
8514
  this.clientsPortfolioReportCollection = clientsPortfolioReportCollection;
8636
8515
  }
8637
8516
  getPieChartData() {
8638
- return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => {
8639
- return plainToClass(ChartData, {
8640
- name: clientPortfolioReport.category,
8641
- data: clientPortfolioReport.count
8642
- });
8643
- });
8517
+ return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => plainToClass(ChartData, {
8518
+ name: clientPortfolioReport.category,
8519
+ data: clientPortfolioReport.count
8520
+ }));
8644
8521
  }
8645
8522
  getBarChartData() {
8646
8523
  return [
@@ -8906,20 +8783,18 @@ class JwtInterceptor {
8906
8783
  return this.tokenSubject.pipe(filter(token => token != null), take(1), switchMap(token => next.handle(this.addToken(req))));
8907
8784
  // refresh token
8908
8785
  }
8909
- else {
8910
- // subsequent requests should wait until refresh token is ready
8911
- this.isRefreshingToken = true;
8912
- this.tokenSubject.next(null);
8913
- return this.authService.refresh(this.jwtService.getRefreshToken()).pipe(switchMap((tokens) => {
8914
- this.tokenSubject.next(tokens.token);
8915
- return next.handle(this.addToken(req));
8916
- }), catchError(() => {
8917
- this.authService.logoutFront();
8918
- return throwError(err);
8919
- }), finalize(() => {
8920
- this.isRefreshingToken = false;
8921
- }));
8922
- }
8786
+ // subsequent requests should wait until refresh token is ready
8787
+ this.isRefreshingToken = true;
8788
+ this.tokenSubject.next(null);
8789
+ return this.authService.refresh(this.jwtService.getRefreshToken()).pipe(switchMap((tokens) => {
8790
+ this.tokenSubject.next(tokens.token);
8791
+ return next.handle(this.addToken(req));
8792
+ }), catchError(() => {
8793
+ this.authService.logoutFront();
8794
+ return throwError(err);
8795
+ }), finalize(() => {
8796
+ this.isRefreshingToken = false;
8797
+ }));
8923
8798
  }
8924
8799
  /**
8925
8800
  * Handle error messages
@@ -9316,7 +9191,7 @@ class PreloaderInterceptor {
9316
9191
  }
9317
9192
  intercept(request, next) {
9318
9193
  const endpoint = this.findEndpoint(`${request.method} ${request.url}`);
9319
- if (!!endpoint) {
9194
+ if (endpoint) {
9320
9195
  this.preloaderService.add(endpoint);
9321
9196
  return next.handle(request).pipe(finalize(() => {
9322
9197
  this.preloaderService.delete(endpoint);
@@ -9393,9 +9268,7 @@ class SseService {
9393
9268
  this.zone.run(() => observer.next(event));
9394
9269
  };
9395
9270
  })
9396
- .pipe(map((messageEvent) => {
9397
- return JSON.parse(messageEvent.data);
9398
- }));
9271
+ .pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
9399
9272
  }
9400
9273
  }
9401
9274
  SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -9446,7 +9319,6 @@ let RestService$1 = class RestService extends DataService {
9446
9319
  }
9447
9320
  return this.cacheSubject.asObservable();
9448
9321
  }
9449
- ;
9450
9322
  getSingle() {
9451
9323
  this.handleAccessError('get');
9452
9324
  return this.get().pipe(map((collection) => collection.first));
@@ -9539,7 +9411,6 @@ let RestService$1 = class RestService extends DataService {
9539
9411
  return this.cache;
9540
9412
  }));
9541
9413
  }
9542
- ;
9543
9414
  /**
9544
9415
  * Handle response data - update cache and dispatch event if it is needed
9545
9416
  */
@@ -9783,7 +9654,7 @@ class BankConnectionService extends RestService$1 {
9783
9654
  if (error.status === 400) {
9784
9655
  this.toastService.error('Please enter the login you used before');
9785
9656
  }
9786
- return throwError$1(error);
9657
+ return throwError(error);
9787
9658
  }));
9788
9659
  }
9789
9660
  /**
@@ -9992,9 +9863,7 @@ class BasiqTokenInterceptor {
9992
9863
  if (!request.url.includes(BasiqService.basiqApiUrl)) {
9993
9864
  return next.handle(request);
9994
9865
  }
9995
- return this.basiqTokenService.getSingle().pipe(mergeMap((token) => {
9996
- return next.handle(this.addToken(request, token));
9997
- }));
9866
+ return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
9998
9867
  }
9999
9868
  addToken(request, token) {
10000
9869
  return request.clone({
@@ -10107,9 +9976,7 @@ class UserService {
10107
9976
  */
10108
9977
  search(email) {
10109
9978
  return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
10110
- .pipe(map((userBase) => {
10111
- return plainToClass(User, userBase);
10112
- }));
9979
+ .pipe(map((userBase) => plainToClass(User, userBase)));
10113
9980
  }
10114
9981
  /**
10115
9982
  * Finish onboarding process
@@ -11918,9 +11785,7 @@ class AddressService {
11918
11785
  getCountries() {
11919
11786
  if (!this._countries) {
11920
11787
  this.http.get(`${this.environment.apiV2}/countries`)
11921
- .pipe(map((response) => {
11922
- return response['hydra:member'].map((item) => plainToClass(Country, item));
11923
- }))
11788
+ .pipe(map((response) => response['hydra:member'].map((item) => plainToClass(Country, item))))
11924
11789
  .subscribe((countries) => {
11925
11790
  this._countries = countries;
11926
11791
  this.countriesSubject.next(countries);
@@ -12008,16 +11873,13 @@ class BankTransactionService extends RestService$1 {
12008
11873
  listenEvents() {
12009
11874
  this.listenBankTransactionsImport();
12010
11875
  }
12011
- ;
12012
11876
  /**
12013
11877
  * Get list of bank transactions for provided financial year
12014
11878
  * @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
12015
11879
  */
12016
11880
  getByYear(finYear) {
12017
11881
  return this.http.get(`${this.environment.apiV2}/bank-transactions?financialYear=${finYear}`)
12018
- .pipe(map((bankTransactionsBase) => {
12019
- return bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction));
12020
- }));
11882
+ .pipe(map((bankTransactionsBase) => bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction))));
12021
11883
  }
12022
11884
  /**
12023
11885
  * import bank transactions from csv file
@@ -12075,11 +11937,10 @@ class BankService extends RestService$1 {
12075
11937
  }
12076
11938
  get() {
12077
11939
  return super.get()
12078
- .pipe(map((banks) => {
12079
- // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
12080
- // @TODO Vik/Nikita: do it on backend
12081
- return banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields));
12082
- }));
11940
+ .pipe(map((banks) =>
11941
+ // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
11942
+ // @TODO Vik/Nikita: do it on backend
11943
+ banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields))));
12083
11944
  }
12084
11945
  }
12085
11946
  BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
@@ -12178,7 +12039,7 @@ class ChatService extends RestService$1 {
12178
12039
  */
12179
12040
  listenChats() {
12180
12041
  this.sseService.on(`chats`).subscribe((chatBase) => {
12181
- let array = this.cache.toArray();
12042
+ const array = this.cache.toArray();
12182
12043
  // chat instance from event
12183
12044
  const eventChat = plainToClass(Chat, chatBase);
12184
12045
  // chat instance from cache
@@ -12344,9 +12205,7 @@ class MessageDocumentService extends RestService$1 {
12344
12205
  * Upload multiple files to chat
12345
12206
  */
12346
12207
  addBatch(chatId, files) {
12347
- return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => {
12348
- return docsBase.map((docBase) => plainToClass(MessageDocument, docBase));
12349
- }));
12208
+ return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
12350
12209
  }
12351
12210
  }
12352
12211
  MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
@@ -12411,9 +12270,7 @@ class DepreciationService extends RestService$1 {
12411
12270
  }
12412
12271
  getOpenBalance(depreciation) {
12413
12272
  return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
12414
- .pipe(map((response) => {
12415
- return response || 0;
12416
- }));
12273
+ .pipe(map((response) => response || 0));
12417
12274
  }
12418
12275
  listenReceiptAdded() {
12419
12276
  this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
@@ -12501,9 +12358,7 @@ class DepreciationCapitalProjectService {
12501
12358
  this.cacheSubject.next([]);
12502
12359
  this.http.get(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`)
12503
12360
  .subscribe((capitalProjectsBase) => {
12504
- this.cache = capitalProjectsBase.map((capitalProjectBase) => {
12505
- return plainToClass(DepreciationCapitalProject, capitalProjectBase);
12506
- });
12361
+ this.cache = capitalProjectsBase.map((capitalProjectBase) => plainToClass(DepreciationCapitalProject, capitalProjectBase));
12507
12362
  this.cacheSubject.next(this.cache);
12508
12363
  });
12509
12364
  return this.cacheSubject.asObservable();
@@ -12674,9 +12529,7 @@ class RestService {
12674
12529
  */
12675
12530
  findById(id) {
12676
12531
  return this.get()
12677
- .pipe(map((items) => {
12678
- return items.find((item) => item['id'] === id);
12679
- }));
12532
+ .pipe(map((items) => items.find((item) => item['id'] === id)));
12680
12533
  }
12681
12534
  find(id) {
12682
12535
  return this.cache.find((item) => item['id'] === id);
@@ -12713,7 +12566,7 @@ class RestService {
12713
12566
  postForm(file, params = {}) {
12714
12567
  const formData = new FormData();
12715
12568
  formData.append('file', file);
12716
- for (let key in params) {
12569
+ for (const key in params) {
12717
12570
  formData.append(key, params[key]);
12718
12571
  }
12719
12572
  return this.create(formData);
@@ -12818,9 +12671,7 @@ class RestService {
12818
12671
  return this.http.get(`${this.environment.apiV2}/${this.url}`)
12819
12672
  .pipe(map((response) => {
12820
12673
  const items = (this.isHydra ? response['hydra:member'] : response)
12821
- .map((item) => {
12822
- return this.createModelInstance(item);
12823
- });
12674
+ .map((item) => this.createModelInstance(item));
12824
12675
  this.cache = items;
12825
12676
  this.updateCache();
12826
12677
  return items;
@@ -13167,9 +13018,7 @@ class ClientInviteService extends RestService {
13167
13018
  const formData = new FormData();
13168
13019
  formData.append('file', file);
13169
13020
  return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
13170
- .pipe(map((clientInvite) => {
13171
- return clientInvite;
13172
- }));
13021
+ .pipe(map((clientInvite) => clientInvite));
13173
13022
  }
13174
13023
  /**
13175
13024
  * Accept client invitation from firm to user
@@ -13270,19 +13119,13 @@ class ClientMovementService extends RestService {
13270
13119
  * @TODO BaseRestService should return collection
13271
13120
  */
13272
13121
  getAll() {
13273
- return this.get().pipe(map((clientMovements) => {
13274
- return new ClientMovementCollection(clientMovements);
13275
- }));
13122
+ return this.get().pipe(map((clientMovements) => new ClientMovementCollection(clientMovements)));
13276
13123
  }
13277
13124
  getActive() {
13278
- return this.getAll().pipe(map((clientMovements) => {
13279
- return clientMovements.active;
13280
- }));
13125
+ return this.getAll().pipe(map((clientMovements) => clientMovements.active));
13281
13126
  }
13282
13127
  getActiveByFirmType(type) {
13283
- return this.getActive().pipe(map((clientMovements) => {
13284
- return clientMovements.getByFirmType(type);
13285
- }));
13128
+ return this.getActive().pipe(map((clientMovements) => clientMovements.getByFirmType(type)));
13286
13129
  }
13287
13130
  update(movement) {
13288
13131
  // extend base 'add' method and pass into it movement without id
@@ -13381,9 +13224,7 @@ class EmployeeInviteService extends RestService {
13381
13224
  const formData = new FormData();
13382
13225
  formData.append('file', file);
13383
13226
  return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
13384
- .pipe(map((employeeInvite) => {
13385
- return employeeInvite;
13386
- }));
13227
+ .pipe(map((employeeInvite) => employeeInvite));
13387
13228
  }
13388
13229
  /**
13389
13230
  * Resend invitation from firm to client
@@ -13455,16 +13296,12 @@ class FirmService {
13455
13296
  */
13456
13297
  register(data) {
13457
13298
  return this.http.post(`${this.environment.apiV2}/firms/registration`, data)
13458
- .pipe(map((firm) => {
13459
- return plainToClass(Firm, firm);
13460
- }));
13299
+ .pipe(map((firm) => plainToClass(Firm, firm)));
13461
13300
  }
13462
13301
  get() {
13463
13302
  if (!this.firm) {
13464
13303
  this.http.get(`${this.environment.apiV2}/firms/current`)
13465
- .pipe(map((firm) => {
13466
- return plainToClass(Firm, firm);
13467
- }))
13304
+ .pipe(map((firm) => plainToClass(Firm, firm)))
13468
13305
  .subscribe((firm) => {
13469
13306
  this.firm = firm;
13470
13307
  this.firmSubject.next(this.firm);
@@ -13484,14 +13321,10 @@ class FirmService {
13484
13321
  */
13485
13322
  getAll() {
13486
13323
  return this.http.get(`${this.environment.apiV2}/firms`)
13487
- .pipe(map((response) => {
13488
- return response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase));
13489
- }));
13324
+ .pipe(map((response) => response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase))));
13490
13325
  }
13491
13326
  getByType(type) {
13492
- return this.getAll().pipe(map((firms) => {
13493
- return firms.filter((firm) => firm.type === type);
13494
- }));
13327
+ return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
13495
13328
  }
13496
13329
  updatePhoto(firm, photo) {
13497
13330
  return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
@@ -13755,9 +13588,7 @@ class IncomeSourceService extends RestService {
13755
13588
  */
13756
13589
  getTaxCalculation(salaryForecast) {
13757
13590
  return this.http.post(`${this.environment.apiV2}/${this.url}/tax-calculation`, salaryForecast)
13758
- .pipe(map((response) => {
13759
- return plainToClass(SalaryForecast, response);
13760
- }));
13591
+ .pipe(map((response) => plainToClass(SalaryForecast, response)));
13761
13592
  }
13762
13593
  /**
13763
13594
  * Add batch of income sources
@@ -13808,9 +13639,7 @@ class IncomeSourceService extends RestService {
13808
13639
  if (!this.incomeSourceTypes) {
13809
13640
  this.incomeSourceTypes = [];
13810
13641
  this.http.get(`${this.environment.apiV2}/income-source-types`)
13811
- .pipe(map((response) => {
13812
- return response.map((item) => plainToClass(IncomeSourceType, item));
13813
- }))
13642
+ .pipe(map((response) => response.map((item) => plainToClass(IncomeSourceType, item))))
13814
13643
  .subscribe((otherIncomesTypes) => {
13815
13644
  this.incomeSourceTypes = otherIncomesTypes;
13816
13645
  this.incomeSourceTypeSubject.next(this.incomeSourceTypes);
@@ -13852,9 +13681,7 @@ class BorrowingExpenseService {
13852
13681
  get() {
13853
13682
  if (!this._borrowingExpenses) {
13854
13683
  this.http.get(`${this.environment.apiV2}/borrowing-expenses`)
13855
- .pipe(map((response) => {
13856
- return response.map((item) => plainToClass(BorrowingExpense, item));
13857
- }))
13684
+ .pipe(map((response) => response.map((item) => plainToClass(BorrowingExpense, item))))
13858
13685
  .subscribe((borrowingExpenses) => {
13859
13686
  this._borrowingExpenses = borrowingExpenses;
13860
13687
  this.borrowingExpensesSubject.next(this._borrowingExpenses);
@@ -13932,9 +13759,7 @@ class LoanService extends RestService$1 {
13932
13759
  * Calculate loan payments
13933
13760
  */
13934
13761
  calculateLoanPayments(loan) {
13935
- return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) => {
13936
- return plainToClass(Loan, response);
13937
- }));
13762
+ return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) => plainToClass(Loan, response)));
13938
13763
  }
13939
13764
  /**
13940
13765
  * Add new loan payout
@@ -14338,7 +14163,7 @@ class SoleBusinessService extends RestService {
14338
14163
  if (error.status === 422) {
14339
14164
  this.toastService.error(error.error.violations[0].message);
14340
14165
  }
14341
- return throwError$1(error);
14166
+ return throwError(error);
14342
14167
  }));
14343
14168
  }
14344
14169
  }
@@ -14471,7 +14296,7 @@ class SoleDepreciationMethodService {
14471
14296
  return this.cache;
14472
14297
  }), catchError((error) => {
14473
14298
  this.toastService.error(error.error['hydra:description']);
14474
- return throwError$1(error);
14299
+ return throwError(error);
14475
14300
  }));
14476
14301
  }
14477
14302
  listenSoleDetailsChanges() {
@@ -14827,9 +14652,7 @@ class SubscriptionService extends RestService$1 {
14827
14652
  * Get difference between current subscription and selected new subscription
14828
14653
  */
14829
14654
  getProrationCost(subscription) {
14830
- return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) => {
14831
- return prorationCost;
14832
- }));
14655
+ return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) => prorationCost));
14833
14656
  }
14834
14657
  /**
14835
14658
  * Change subscription plan
@@ -15146,9 +14969,7 @@ class TransactionAllocationService extends RestService {
15146
14969
  getByTransactions(transactions) {
15147
14970
  const ids = transactions.map((transaction) => transaction.id);
15148
14971
  return this.get()
15149
- .pipe(map((transactionAllocations) => {
15150
- return transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id));
15151
- }));
14972
+ .pipe(map((transactionAllocations) => transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id))));
15152
14973
  }
15153
14974
  listenEvents() {
15154
14975
  this.onTransactionsCreated();
@@ -15298,41 +15119,31 @@ class TransactionService extends RestService {
15298
15119
  */
15299
15120
  getByPropertyId(propertyId) {
15300
15121
  return this.get()
15301
- .pipe(map((transactions) => {
15302
- return transactions.filter((transaction) => {
15303
- return transaction.property?.id === propertyId;
15304
- });
15305
- }));
15122
+ .pipe(map((transactions) => transactions.filter((transaction) => transaction.property?.id === propertyId)));
15306
15123
  }
15307
15124
  /**
15308
15125
  * get list of transactions with tank type 'Work'
15309
15126
  */
15310
15127
  getWorkTransactions() {
15311
15128
  return this.get()
15312
- .pipe(map((transactions) => {
15313
- return transactions.filter((transaction) => transaction.isWorkTank());
15314
- }));
15129
+ .pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
15315
15130
  }
15316
15131
  /**
15317
15132
  * Get list of property holding costs (transactions related to vacant land property)
15318
15133
  */
15319
15134
  getPropertyHoldingCosts(propertyId) {
15320
15135
  return this.get()
15321
- .pipe(map((transactions) => {
15322
- return new TransactionCollection(transactions)
15323
- .filterBy('property.id', propertyId)
15324
- .filterBy('property.category.id', PropertyCategoryListEnum.VACANT_LAND)
15325
- .toArray();
15326
- }));
15136
+ .pipe(map((transactions) => new TransactionCollection(transactions)
15137
+ .filterBy('property.id', propertyId)
15138
+ .filterBy('property.category.id', PropertyCategoryListEnum.VACANT_LAND)
15139
+ .toArray()));
15327
15140
  }
15328
15141
  /**
15329
15142
  * get list of taxable transactions with tank type 'Work'
15330
15143
  */
15331
15144
  getTaxableWorkTransactions() {
15332
15145
  return this.getWorkTransactions()
15333
- .pipe(map((transactions) => {
15334
- return transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem);
15335
- }));
15146
+ .pipe(map((transactions) => transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem)));
15336
15147
  }
15337
15148
  /**
15338
15149
  * add multiple transactions
@@ -15807,9 +15618,7 @@ class OccupationService {
15807
15618
  getOccupations() {
15808
15619
  if (!this._occupations) {
15809
15620
  this.http.get(`${this.environment.apiV2}/occupations`)
15810
- .pipe(map((response) => {
15811
- return response.map((item) => plainToClass(Occupation, item));
15812
- }))
15621
+ .pipe(map((response) => response.map((item) => plainToClass(Occupation, item))))
15813
15622
  .subscribe((occupations) => {
15814
15623
  this._occupations = occupations;
15815
15624
  this.occupationsSubject.next(occupations);
@@ -16401,18 +16210,14 @@ class BankTransactionCalculationService {
16401
16210
  * @TODO Alex: consider to move to collection
16402
16211
  */
16403
16212
  getAllocatedBankTransactions(bankTransactions, allocations) {
16404
- return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => {
16405
- return this.isAllocated(bankTransaction, allocations);
16406
- }));
16213
+ return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => this.isAllocated(bankTransaction, allocations)));
16407
16214
  }
16408
16215
  /**
16409
16216
  * Get collection of unallocated bank transactions
16410
16217
  * @TODO Alex: consider to move to collection
16411
16218
  */
16412
16219
  getUnallocated(bankTransactions, allocations) {
16413
- return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => {
16414
- return !this.isAllocated(bankTransaction, allocations);
16415
- }));
16220
+ return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => !this.isAllocated(bankTransaction, allocations)));
16416
16221
  }
16417
16222
  /**
16418
16223
  * Allocated sum of credit transactions
@@ -16794,19 +16599,13 @@ class EquityPositionChartService {
16794
16599
  get() {
16795
16600
  // @TODO refactor backend
16796
16601
  return this.http.get(`${this.environment.apiV2}/properties/categories/equity`)
16797
- .pipe(map((response) => {
16798
- return response.map((item) => {
16799
- return plainToClass(ChartData, {
16800
- name: item.category.name,
16801
- data: item.equity.map((serie) => {
16802
- return plainToClass(ChartSerie, {
16803
- label: serie.date,
16804
- value: serie.amount
16805
- });
16806
- })
16807
- });
16808
- });
16809
- }));
16602
+ .pipe(map((response) => response.map((item) => plainToClass(ChartData, {
16603
+ name: item.category.name,
16604
+ data: item.equity.map((serie) => plainToClass(ChartSerie, {
16605
+ label: serie.date,
16606
+ value: serie.amount
16607
+ }))
16608
+ }))));
16810
16609
  }
16811
16610
  }
16812
16611
  EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -16834,9 +16633,7 @@ class PropertyCalculationService {
16834
16633
  return combineLatest([
16835
16634
  transactions$,
16836
16635
  depreciations$
16837
- ]).pipe(map(([transactions, depreciations]) => {
16838
- return this.getTaxPosition(transactions, depreciations);
16839
- }));
16636
+ ]).pipe(map(([transactions, depreciations]) => this.getTaxPosition(transactions, depreciations)));
16840
16637
  }
16841
16638
  taxPositionGrowth(properties, transactions, depreciations) {
16842
16639
  const forecastedTaxPosition = properties.sumBy('forecastedTaxPosition');
@@ -16851,28 +16648,18 @@ class PropertyCalculationService {
16851
16648
  properties$,
16852
16649
  transactions$,
16853
16650
  depreciations$
16854
- ]).pipe(map(([properties, transactions, depreciations]) => {
16855
- return this.taxPositionGrowth(properties, transactions, depreciations);
16856
- }));
16651
+ ]).pipe(map(([properties, transactions, depreciations]) => this.taxPositionGrowth(properties, transactions, depreciations)));
16857
16652
  }
16858
16653
  getRentalReturn(properties, transactions) {
16859
16654
  return transactions.claimIncome / properties.marketValue;
16860
16655
  }
16861
16656
  getLoanAmount(properties, bankAccounts, loans) {
16862
- return properties.items.reduce((totalAmount, property) => {
16863
- return totalAmount + bankAccounts.items
16864
- .reduce((propertyAmount, bankAccount) => {
16865
- return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.amount || 0);
16866
- }, 0);
16867
- }, 0);
16657
+ return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
16658
+ .reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.amount || 0), 0), 0);
16868
16659
  }
16869
16660
  getLoanValue(properties, bankAccounts) {
16870
- return properties.items.reduce((totalAmount, property) => {
16871
- return totalAmount + bankAccounts.items
16872
- .reduce((propertyAmount, bankAccount) => {
16873
- return propertyAmount + bankAccount.getPropertyBalanceAmount(property.id);
16874
- }, 0);
16875
- }, 0);
16661
+ return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
16662
+ .reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyBalanceAmount(property.id), 0), 0);
16876
16663
  }
16877
16664
  /**
16878
16665
  * LVR
@@ -16885,9 +16672,7 @@ class PropertyCalculationService {
16885
16672
  return combineLatest([
16886
16673
  properties$,
16887
16674
  bankAccounts$
16888
- ]).pipe(map(([properties, bankAccounts]) => {
16889
- return this.getLvr(properties, bankAccounts);
16890
- }));
16675
+ ]).pipe(map(([properties, bankAccounts]) => this.getLvr(properties, bankAccounts)));
16891
16676
  }
16892
16677
  getLvrCommencement(properties, loans, bankAccounts) {
16893
16678
  // Math abs is required for correct percentage calculation
@@ -16898,9 +16683,7 @@ class PropertyCalculationService {
16898
16683
  properties$,
16899
16684
  bankAccounts$,
16900
16685
  loans$
16901
- ]).pipe(map(([properties, bankAccounts, loans]) => {
16902
- return this.getLvrCommencement(properties, loans, bankAccounts);
16903
- }));
16686
+ ]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrCommencement(properties, loans, bankAccounts)));
16904
16687
  }
16905
16688
  getLvrGrowth(properties, bankAccounts, loans) {
16906
16689
  const lvr = this.getLvr(properties, bankAccounts);
@@ -16916,9 +16699,7 @@ class PropertyCalculationService {
16916
16699
  properties$,
16917
16700
  bankAccounts$,
16918
16701
  loans$
16919
- ]).pipe(map(([properties, bankAccounts, loans]) => {
16920
- return this.getLvrGrowth(properties, bankAccounts, loans);
16921
- }));
16702
+ ]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrGrowth(properties, bankAccounts, loans)));
16922
16703
  }
16923
16704
  /**
16924
16705
  * Equity position = Market value - current loan value
@@ -17010,9 +16791,7 @@ class PropertyTransactionReportService {
17010
16791
  this.getTransactions(),
17011
16792
  this.getDepreciations(),
17012
16793
  this.chartAccountsService.get()
17013
- ]).pipe(map(([properties, transactions, depreciations, chartAccounts]) => {
17014
- return new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId');
17015
- }));
16794
+ ]).pipe(map(([properties, transactions, depreciations, chartAccounts]) => new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId')));
17016
16795
  }
17017
16796
  create(transactions, depreciations, properties, chartAccounts) {
17018
16797
  return new PropertyReportItemCollection([
@@ -17024,21 +16803,17 @@ class PropertyTransactionReportService {
17024
16803
  * Get collection of property transactions
17025
16804
  */
17026
16805
  getTransactions() {
17027
- return this.transactionService.get().pipe(map((transactions) => {
17028
- return new TransactionCollection(transactions)
17029
- .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property);
17030
- }));
16806
+ return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
16807
+ .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)));
17031
16808
  }
17032
16809
  /**
17033
16810
  * Get list of asset & capital property depreciations
17034
16811
  */
17035
16812
  getDepreciations() {
17036
- return this.depreciationService.get().pipe(map((depreciations) => {
17037
- return depreciations
17038
- .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
17039
- // we don't need borrowing expenses for this report
17040
- .getWithoutBorrowingExpenses();
17041
- }));
16813
+ return this.depreciationService.get().pipe(map((depreciations) => depreciations
16814
+ .getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
16815
+ // we don't need borrowing expenses for this report
16816
+ .getWithoutBorrowingExpenses()));
17042
16817
  }
17043
16818
  }
17044
16819
  PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -17071,9 +16846,7 @@ class TransactionCalculationService {
17071
16846
  * @TODO Alex: consider to move to collection
17072
16847
  */
17073
16848
  getAllocatedTransactions(transactions, allocations) {
17074
- return new TransactionCollection(transactions.items.filter((transaction) => {
17075
- return transaction.isAllocated(allocations);
17076
- }));
16849
+ return new TransactionCollection(transactions.items.filter((transaction) => transaction.isAllocated(allocations)));
17077
16850
  }
17078
16851
  getUnallocatedInvoices(invoices, allocations) {
17079
16852
  return invoices.filter((invoice) => {
@@ -17619,7 +17392,7 @@ class LoanForm extends AbstractForm {
17619
17392
  listenEvents() {
17620
17393
  // We need to set term automatically only for bank loans.
17621
17394
  // For vehicle loans user should fill it manually with validation depended of frequency
17622
- if (!!this.loan.bankAccount) {
17395
+ if (this.loan.bankAccount) {
17623
17396
  this.listenTypeChanges();
17624
17397
  }
17625
17398
  else {
@@ -17647,7 +17420,7 @@ class LoanForm extends AbstractForm {
17647
17420
  */
17648
17421
  updateTermValidation() {
17649
17422
  // no need terms for bank loans
17650
- if (!!this.loan.bankAccount) {
17423
+ if (this.loan.bankAccount) {
17651
17424
  return;
17652
17425
  }
17653
17426
  const currentRepaymentFrequency = this.get('repaymentFrequency').value;
@@ -17669,10 +17442,8 @@ LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LI
17669
17442
  * Use with groups of boolean form controls (checkbox, toggle, etc.)
17670
17443
  */
17671
17444
  function atLeastOneCheckedValidator() {
17672
- return (formGroup) => {
17673
- return Object.values(formGroup.controls)
17674
- .find((control) => control.value) ? null : { nothingChecked: true };
17675
- };
17445
+ return (formGroup) => Object.values(formGroup.controls)
17446
+ .find((control) => control.value) ? null : { nothingChecked: true };
17676
17447
  }
17677
17448
 
17678
17449
  /**
@@ -17680,9 +17451,7 @@ function atLeastOneCheckedValidator() {
17680
17451
  * @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
17681
17452
  */
17682
17453
  function autocompleteValidator() {
17683
- return (control) => {
17684
- return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
17685
- };
17454
+ return (control) => (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
17686
17455
  }
17687
17456
 
17688
17457
  function conditionalValidator(condition, validator) {
@@ -17782,15 +17551,13 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
17782
17551
  if (fieldsSum <= summary) {
17783
17552
  return null;
17784
17553
  }
17785
- else {
17786
- return {
17787
- fieldsSum: {
17788
- name: field,
17789
- alias: fieldAlias,
17790
- summary
17791
- }
17792
- };
17793
- }
17554
+ return {
17555
+ fieldsSum: {
17556
+ name: field,
17557
+ alias: fieldAlias,
17558
+ summary
17559
+ }
17560
+ };
17794
17561
  };
17795
17562
  }
17796
17563
 
@@ -17848,12 +17615,10 @@ class FileValidator {
17848
17615
  class BankAccountPropertiesForm extends UntypedFormArray {
17849
17616
  constructor(bankAccountProperties) {
17850
17617
  super((bankAccountProperties?.length ? bankAccountProperties : [plainToClass(BankAccountProperty, {})])
17851
- .map((bankAccountProperty) => {
17852
- return new UntypedFormGroup({
17853
- property: new UntypedFormControl(bankAccountProperty?.property, Validators.required),
17854
- percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
17855
- });
17856
- }), [
17618
+ .map((bankAccountProperty) => new UntypedFormGroup({
17619
+ property: new UntypedFormControl(bankAccountProperty?.property, Validators.required),
17620
+ percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
17621
+ })), [
17857
17622
  conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
17858
17623
  fieldsSumValidator('percent', 100)
17859
17624
  ]);
@@ -17972,12 +17737,10 @@ class SoleBusinessForm extends AbstractForm {
17972
17737
  class SoleBusinessAllocationsForm extends UntypedFormArray {
17973
17738
  constructor(businessAllocations) {
17974
17739
  super((businessAllocations?.length ? businessAllocations : [plainToClass(SoleBusinessAllocation, {})])
17975
- .map((businessAllocation) => {
17976
- return new UntypedFormGroup({
17977
- business: new UntypedFormControl(businessAllocation?.business, Validators.required),
17978
- percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
17979
- });
17980
- }), [
17740
+ .map((businessAllocation) => new UntypedFormGroup({
17741
+ business: new UntypedFormControl(businessAllocation?.business, Validators.required),
17742
+ percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
17743
+ })), [
17981
17744
  conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
17982
17745
  fieldsSumValidator('percent', 100)
17983
17746
  ]);
@@ -18453,11 +18216,9 @@ function dateRangeValidator(dateStart, dateEnd) {
18453
18216
  * Validator check if at least one control in formArray is enabled
18454
18217
  */
18455
18218
  function atLeastOneEnabledValidator(arrayName) {
18456
- return (formGroup) => {
18457
- return !!formGroup.get(arrayName).controls.find((control) => control.enabled)
18458
- ? null
18459
- : { arrayControlsDisabled: true };
18460
- };
18219
+ return (formGroup) => formGroup.get(arrayName).controls.find((control) => control.enabled)
18220
+ ? null
18221
+ : { arrayControlsDisabled: true };
18461
18222
  }
18462
18223
 
18463
18224
  /**
@@ -18481,7 +18242,7 @@ class BankAccountsImportForm extends AbstractForm {
18481
18242
  }
18482
18243
  const bankAccounts = [];
18483
18244
  // form is valid when all selected bank accounts forms are valid
18484
- for (let bankAccountImportForm of this.get('bankAccounts').controls) {
18245
+ for (const bankAccountImportForm of this.get('bankAccounts').controls) {
18485
18246
  // skip disabled forms
18486
18247
  if (bankAccountImportForm.disabled) {
18487
18248
  continue;
@@ -18578,9 +18339,7 @@ const phonePattern = /^(((\s*)?([- ()]?\d[- ()]?){0,30}(\s*)?)|)$/;
18578
18339
  * Allowed special symbols"-", "(", ")"
18579
18340
  */
18580
18341
  function phoneNumberValidator() {
18581
- return (control) => {
18582
- return phonePattern.test(control.value) ? null : { phoneInvalid: true };
18583
- };
18342
+ return (control) => phonePattern.test(control.value) ? null : { phoneInvalid: true };
18584
18343
  }
18585
18344
 
18586
18345
  class PhoneForm extends AbstractForm {
@@ -19995,7 +19754,7 @@ function checkDividends(metaFields, formGroup) {
19995
19754
  const frankedAndUnfrankedControls = (formGroup.get('metaFields')).controls
19996
19755
  .filter((control) => frankedAndUnfrankedIds.includes(control.get('chartAccountsMetaField').value.id));
19997
19756
  const frankedAndUnfrankedAmount = frankedAndUnfrankedControls.reduce((sum, control) => sum + (+control.get('value').value), 0);
19998
- for (let control of frankedAndUnfrankedControls) {
19757
+ for (const control of frankedAndUnfrankedControls) {
19999
19758
  if (control.get('value').value !== null && frankedAndUnfrankedAmount !== amount) {
20000
19759
  return { metaFields: `Field ${control.get('chartAccountsMetaField').value.label} is required` };
20001
19760
  }
@@ -20007,12 +19766,10 @@ class WorkTransactionForm extends TransactionForm {
20007
19766
  constructor(transaction, registeredForGst, allocations, controls = {}) {
20008
19767
  super(transaction, registeredForGst, allocations, Object.assign(controls, {
20009
19768
  // additional data related to work (like tax instalments)
20010
- metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
20011
- return new FormGroup({
20012
- value: new FormControl(transactionMetaField.value),
20013
- chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
20014
- });
20015
- }))
19769
+ metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => new FormGroup({
19770
+ value: new FormControl(transactionMetaField.value),
19771
+ chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
19772
+ })))
20016
19773
  }));
20017
19774
  this.setValidators(transactionsMetaFieldsValidator());
20018
19775
  this.listenEvents();