taxtank-core 0.30.139 → 0.30.141

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 (964) hide show
  1. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +3 -2
  2. package/esm2020/lib/db/Models/user/user.mjs +3 -3
  3. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +2 -2
  4. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +1 -1
  5. package/esm2020/lib/models/event/app-event-type.enum.mjs +9 -10
  6. package/esm2020/lib/services/account-setup/account-setup.service.mjs +4 -4
  7. package/esm2020/lib/services/auth/auth.service.mjs +4 -20
  8. package/esm2020/lib/services/data.service.mjs +7 -1
  9. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
  10. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +2 -2
  11. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +2 -2
  12. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +2 -2
  13. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +7 -7
  14. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +2 -2
  15. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  16. package/esm2020/lib/services/http/holding/holding.service.mjs +2 -2
  17. package/esm2020/lib/services/http/income-source/income-source.service.mjs +2 -2
  18. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +2 -2
  19. package/esm2020/lib/services/http/loan/loan.service.mjs +6 -6
  20. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +5 -6
  21. package/esm2020/lib/services/http/property/property.service.mjs +4 -4
  22. package/esm2020/lib/services/http/rest/rest-old.service.mjs +16 -12
  23. package/esm2020/lib/services/http/rest/rest.service.mjs +29 -28
  24. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +2 -2
  25. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -4
  26. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +4 -2
  27. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  28. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +4 -4
  29. package/esm2020/lib/services/http/transaction/transaction.service.mjs +7 -20
  30. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +29 -0
  31. package/esm2020/lib/services/http/user/index.mjs +2 -1
  32. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +1 -1
  33. package/esm2020/lib/services/http/user/user.service.mjs +32 -135
  34. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +2 -2
  35. package/fesm2015/taxtank-core.mjs +205 -295
  36. package/fesm2015/taxtank-core.mjs.map +1 -1
  37. package/fesm2020/taxtank-core.mjs +202 -294
  38. package/fesm2020/taxtank-core.mjs.map +1 -1
  39. package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
  40. package/lib/collections/allocation-group.collection.d.ts.map +1 -0
  41. package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
  42. package/lib/collections/asset-sale.collection.d.ts.map +1 -0
  43. package/lib/collections/bank-account.collection.d.ts.map +1 -0
  44. package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
  45. package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
  46. package/lib/collections/chat/chat.collection.d.ts.map +1 -0
  47. package/lib/collections/chat/index.d.ts.map +1 -0
  48. package/lib/collections/chat/message-document.collection.d.ts.map +1 -0
  49. package/lib/collections/chat/message.collection.d.ts.map +1 -0
  50. package/lib/collections/client-invite.collection.d.ts.map +1 -0
  51. package/lib/collections/client-movement.collection.d.ts.map +1 -0
  52. package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
  53. package/lib/collections/client.collection.d.ts.map +1 -0
  54. package/lib/collections/collection-dictionary.d.ts.map +1 -0
  55. package/lib/collections/collection.d.ts.map +1 -0
  56. package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
  57. package/lib/collections/depreciation.collection.d.ts.map +1 -0
  58. package/lib/collections/employee.collection.d.ts.map +1 -0
  59. package/lib/collections/exportable.collection.d.ts.map +1 -0
  60. package/lib/collections/holding/holding-sale.collection.d.ts.map +1 -0
  61. package/lib/collections/holding/holding-type.collection.d.ts.map +1 -0
  62. package/lib/collections/holding/holding.collection.d.ts.map +1 -0
  63. package/lib/collections/holding/index.d.ts.map +1 -0
  64. package/lib/collections/income-source/income-source-forecast.collection.d.ts.map +1 -0
  65. package/lib/collections/income-source/income-source.collection.d.ts.map +1 -0
  66. package/lib/collections/income-source/index.d.ts.map +1 -0
  67. package/lib/collections/index.d.ts.map +1 -0
  68. package/lib/collections/loan/index.d.ts.map +1 -0
  69. package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
  70. package/lib/collections/loan/loan.collection.d.ts.map +1 -0
  71. package/lib/collections/property/index.d.ts.map +1 -0
  72. package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
  73. package/lib/collections/property/property-sale/index.d.ts.map +1 -0
  74. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
  75. package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
  76. package/lib/collections/property/property-share.collection.d.ts.map +1 -0
  77. package/lib/collections/property/property.collection.d.ts.map +1 -0
  78. package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
  79. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
  80. package/lib/collections/report/index.d.ts.map +1 -0
  81. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
  82. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
  83. package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
  84. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
  85. package/lib/collections/sole/index.d.ts.map +1 -0
  86. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
  87. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
  88. package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
  89. package/lib/collections/subscription/index.d.ts.map +1 -0
  90. package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
  91. package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
  92. package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
  93. package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
  94. package/lib/collections/tax-review.collection.d.ts.map +1 -0
  95. package/lib/collections/tax-summary/index.d.ts.map +1 -0
  96. package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
  97. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
  98. package/lib/collections/transaction/index.d.ts.map +1 -0
  99. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
  100. package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
  101. package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
  102. package/lib/collections/user-event-type-collection.d.ts.map +1 -0
  103. package/lib/collections/vehicle/index.d.ts.map +1 -0
  104. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
  105. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
  106. package/lib/db/Enums/address-type.enum.d.ts.map +1 -0
  107. package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +1 -0
  108. package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +1 -0
  109. package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +1 -0
  110. package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +1 -0
  111. package/lib/db/Enums/annual-frequency.enum.d.ts.map +1 -0
  112. package/lib/db/Enums/bank/bank-account-status.enum.d.ts.map +1 -0
  113. package/lib/db/Enums/bank/bank-account-type.enum.d.ts.map +1 -0
  114. package/lib/db/Enums/bank/bank-connection-status.enum.d.ts.map +1 -0
  115. package/lib/db/Enums/bank/bank-popular.enum.d.ts.map +1 -0
  116. package/lib/db/Enums/bank/bank-provider.enum.d.ts.map +1 -0
  117. package/lib/db/Enums/bank/bank-transaction-type.enum.d.ts.map +1 -0
  118. package/lib/db/Enums/bank/index.d.ts.map +1 -0
  119. package/lib/db/Enums/bank/loan/index.d.ts.map +1 -0
  120. package/lib/db/Enums/bank/loan/loan-bank-type.enum.d.ts.map +1 -0
  121. package/lib/db/Enums/bank/loan/loan-frequency.enum.d.ts.map +1 -0
  122. package/lib/db/Enums/bank/loan/loan-interest-type-label.enum.d.ts.map +1 -0
  123. package/lib/db/Enums/bank/loan/loan-interest-type.enum.d.ts.map +1 -0
  124. package/lib/db/Enums/bank/loan/loan-payout-type.enum.d.ts.map +1 -0
  125. package/lib/db/Enums/bank/loan/loan-repayment-frequency.enum.d.ts.map +1 -0
  126. package/lib/db/Enums/bank/loan/loan-repayment-type-label.enum.d.ts.map +1 -0
  127. package/lib/db/Enums/bank/loan/loan-repayment-type.enum.d.ts.map +1 -0
  128. package/lib/db/Enums/bank/loan/loan-type.enum.d.ts.map +1 -0
  129. package/lib/db/Enums/bank/loan/loan-vehicle-type.enum.d.ts.map +1 -0
  130. package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +1 -0
  131. package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +1 -0
  132. package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +1 -0
  133. package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +1 -0
  134. package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +1 -0
  135. package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +1 -0
  136. package/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.d.ts.map +1 -0
  137. package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts.map +1 -0
  138. package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +1 -0
  139. package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +1 -0
  140. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +1 -0
  141. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +1 -0
  142. package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +1 -0
  143. package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +1 -0
  144. package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +1 -0
  145. package/lib/db/Enums/chart-accounts/index.d.ts.map +1 -0
  146. package/lib/db/Enums/chat-status.enum.d.ts.map +1 -0
  147. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +1 -0
  148. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +1 -0
  149. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +1 -0
  150. package/lib/db/Enums/client-invite-status.enum.d.ts.map +1 -0
  151. package/lib/db/Enums/client-invite-type.enum.d.ts.map +1 -0
  152. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +1 -0
  153. package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +1 -0
  154. package/lib/db/Enums/depreciation-type.enum.d.ts.map +1 -0
  155. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
  156. package/lib/db/Enums/document-type.enum.d.ts.map +1 -0
  157. package/lib/db/Enums/file-type.enum.d.ts.map +1 -0
  158. package/lib/db/Enums/firm-type.enum.d.ts.map +1 -0
  159. package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +1 -0
  160. package/lib/db/Enums/income-source/income-source-forecast-trust-type.enum.d.ts.map +1 -0
  161. package/lib/db/Enums/income-source/income-source-type-list-holding.enum.d.ts.map +1 -0
  162. package/lib/db/Enums/income-source/income-source-type-list-other.enum.d.ts.map +1 -0
  163. package/lib/db/Enums/income-source/income-source-type-list-sole.enum.d.ts.map +1 -0
  164. package/lib/db/Enums/income-source/income-source-type-list-work.enum.d.ts.map +1 -0
  165. package/lib/db/Enums/income-source/income-source-type.enum.d.ts.map +1 -0
  166. package/lib/db/Enums/income-source/index.d.ts.map +1 -0
  167. package/lib/db/Enums/index.d.ts.map +1 -0
  168. package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
  169. package/lib/db/Enums/phone-type.enum.d.ts.map +1 -0
  170. package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
  171. package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +1 -0
  172. package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +1 -0
  173. package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +1 -0
  174. package/lib/db/Enums/property/property-share-access.enum.d.ts.map +1 -0
  175. package/lib/db/Enums/property/property-share-status.enum.d.ts.map +1 -0
  176. package/lib/db/Enums/registration-invite-status.enum.d.ts.map +1 -0
  177. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +1 -0
  178. package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
  179. package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
  180. package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +1 -0
  181. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +1 -0
  182. package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +1 -0
  183. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +1 -0
  184. package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +1 -0
  185. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
  186. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
  187. package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +1 -0
  188. package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +1 -0
  189. package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +1 -0
  190. package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +1 -0
  191. package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +1 -0
  192. package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +1 -0
  193. package/lib/db/Enums/tank-type.enum.d.ts.map +1 -0
  194. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +1 -0
  195. package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +1 -0
  196. package/lib/db/Enums/tax-return/index.d.ts.map +1 -0
  197. package/lib/db/Enums/tax-return/tax-return-category-list.enum.d.ts.map +1 -0
  198. package/lib/db/Enums/tax-return/tax-return-category-section.enum.d.ts.map +1 -0
  199. package/lib/db/Enums/tax-return/tax-return-item.enum.d.ts.map +1 -0
  200. package/lib/db/Enums/tax-review-status.enum.d.ts.map +1 -0
  201. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
  202. package/lib/db/Enums/tax-summary-section.enum.d.ts.map +1 -0
  203. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
  204. package/lib/db/Enums/ticket-feedback.enum.d.ts.map +1 -0
  205. package/lib/db/Enums/ticket-status.enum.d.ts.map +1 -0
  206. package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
  207. package/lib/db/Enums/transaction-operation.enum.d.ts.map +1 -0
  208. package/lib/db/Enums/transaction-source.enum.d.ts.map +1 -0
  209. package/lib/db/Enums/transaction-type.enum.d.ts.map +1 -0
  210. package/lib/db/Enums/user-event-status.enum.d.ts.map +1 -0
  211. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
  212. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
  213. package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +1 -0
  214. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
  215. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
  216. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
  217. package/lib/db/Enums/user-roles.enum.d.ts.map +1 -0
  218. package/lib/db/Enums/user-status.enum.d.ts.map +1 -0
  219. package/lib/db/Enums/user-title.enum.d.ts.map +1 -0
  220. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
  221. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
  222. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +1 -0
  223. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +1 -0
  224. package/lib/db/Models/abstract-model.d.ts.map +1 -0
  225. package/lib/db/Models/address.d.ts.map +1 -0
  226. package/lib/db/Models/bank/bank-account-balance.d.ts.map +1 -0
  227. package/lib/db/Models/bank/bank-account-property.d.ts.map +1 -0
  228. package/lib/db/Models/bank/bank-account.d.ts.map +1 -0
  229. package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
  230. package/lib/db/Models/bank/bank-transaction-import.d.ts.map +1 -0
  231. package/lib/db/Models/bank/bank-transaction.d.ts.map +1 -0
  232. package/lib/db/Models/bank/bank.d.ts.map +1 -0
  233. package/lib/db/Models/bank/basiq-job-step.enum.d.ts.map +1 -0
  234. package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
  235. package/lib/db/Models/budget/budget-rule.d.ts.map +1 -0
  236. package/lib/db/Models/budget/budget.d.ts.map +1 -0
  237. package/lib/db/Models/budget/index.d.ts.map +1 -0
  238. package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  239. package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  240. package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  241. package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  242. package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +1 -0
  243. package/lib/db/Models/client/annual-client-details.d.ts.map +1 -0
  244. package/lib/db/Models/client/client-details.d.ts.map +1 -0
  245. package/lib/db/Models/client/client-income-types.d.ts.map +1 -0
  246. package/lib/db/Models/client/index.d.ts.map +1 -0
  247. package/lib/db/Models/client/occupation.d.ts.map +1 -0
  248. package/lib/db/Models/country.d.ts.map +1 -0
  249. package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  250. package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +1 -0
  251. package/lib/db/Models/depreciation/depreciation-receipt.d.ts.map +1 -0
  252. package/lib/db/Models/depreciation/depreciation.d.ts.map +1 -0
  253. package/lib/db/Models/document/document-base.d.ts.map +1 -0
  254. package/lib/db/Models/document/document-folder.d.ts.map +1 -0
  255. package/lib/db/Models/document/document.d.ts.map +1 -0
  256. package/lib/db/Models/document/property-document.d.ts.map +1 -0
  257. package/lib/db/Models/file.d.ts.map +1 -0
  258. package/lib/db/Models/firm/accountant/tax-review.d.ts.map +1 -0
  259. package/lib/db/Models/firm/accountant/ticket.d.ts.map +1 -0
  260. package/lib/db/Models/firm/chat.d.ts.map +1 -0
  261. package/lib/db/Models/firm/client-invite.d.ts.map +1 -0
  262. package/lib/db/Models/firm/client-movement.d.ts.map +1 -0
  263. package/lib/db/Models/firm/employee-invite.d.ts.map +1 -0
  264. package/lib/db/Models/firm/firm-invite.d.ts.map +1 -0
  265. package/lib/db/Models/firm/firm.d.ts.map +1 -0
  266. package/lib/db/Models/firm/message-document.d.ts.map +1 -0
  267. package/lib/db/Models/firm/message.d.ts.map +1 -0
  268. package/lib/db/Models/holding/holding-sale.d.ts.map +1 -0
  269. package/lib/db/Models/holding/holding-type-exchange.d.ts.map +1 -0
  270. package/lib/db/Models/holding/holding-type.d.ts.map +1 -0
  271. package/lib/db/Models/holding/holding.d.ts.map +1 -0
  272. package/lib/db/Models/holding/index.d.ts.map +1 -0
  273. package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +1 -0
  274. package/lib/db/Models/incomeSource/income-source-type.d.ts.map +1 -0
  275. package/lib/db/Models/incomeSource/income-source.d.ts.map +1 -0
  276. package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +1 -0
  277. package/lib/db/Models/index.d.ts.map +1 -0
  278. package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +1 -0
  279. package/lib/db/Models/loan/borrowing-expense.d.ts.map +1 -0
  280. package/lib/db/Models/loan/loan-payout.d.ts.map +1 -0
  281. package/lib/db/Models/loan/loan.d.ts.map +1 -0
  282. package/lib/db/Models/observable-model.d.ts.map +1 -0
  283. package/lib/db/Models/phone.d.ts.map +1 -0
  284. package/lib/db/Models/property/borrowing-report.d.ts.map +1 -0
  285. package/lib/db/Models/property/property-category-movement.d.ts.map +1 -0
  286. package/lib/db/Models/property/property-category.d.ts.map +1 -0
  287. package/lib/db/Models/property/property-forecast.d.ts.map +1 -0
  288. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  289. package/lib/db/Models/property/property-sale/property-sale.d.ts.map +1 -0
  290. package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  291. package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +1 -0
  292. package/lib/db/Models/property/property-share.d.ts.map +1 -0
  293. package/lib/db/Models/property/property-subscription.d.ts.map +1 -0
  294. package/lib/db/Models/property/property-valuation.d.ts.map +1 -0
  295. package/lib/db/Models/property/property.d.ts.map +1 -0
  296. package/lib/db/Models/service-notification.d.ts.map +1 -0
  297. package/lib/db/Models/sole/bas-report.d.ts.map +1 -0
  298. package/lib/db/Models/sole/sole-business-activity.d.ts.map +1 -0
  299. package/lib/db/Models/sole/sole-business-allocation.d.ts.map +1 -0
  300. package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  301. package/lib/db/Models/sole/sole-business-loss.d.ts.map +1 -0
  302. package/lib/db/Models/sole/sole-business.d.ts.map +1 -0
  303. package/lib/db/Models/sole/sole-contact.d.ts.map +1 -0
  304. package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +1 -0
  305. package/lib/db/Models/sole/sole-details.d.ts.map +1 -0
  306. package/lib/db/Models/sole/sole-forecast.d.ts.map +1 -0
  307. package/lib/db/Models/sole/sole-invoice-item.d.ts.map +1 -0
  308. package/lib/db/Models/sole/sole-invoice-template.d.ts.map +1 -0
  309. package/lib/db/Models/sole/sole-invoice.d.ts.map +1 -0
  310. package/lib/db/Models/spare/spare-document-category.d.ts.map +1 -0
  311. package/lib/db/Models/spare/spare-document.d.ts.map +1 -0
  312. package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
  313. package/lib/db/Models/subscription/service-payment.d.ts.map +1 -0
  314. package/lib/db/Models/subscription/service-price.d.ts.map +1 -0
  315. package/lib/db/Models/subscription/service-product.d.ts.map +1 -0
  316. package/lib/db/Models/subscription/service-subscription-item.d.ts.map +1 -0
  317. package/lib/db/Models/subscription/service-subscription.d.ts.map +1 -0
  318. package/lib/db/Models/tax-calculation.d.ts.map +1 -0
  319. package/lib/db/Models/tax-return/index.d.ts.map +1 -0
  320. package/lib/db/Models/tax-return/tax-return-category.d.ts.map +1 -0
  321. package/lib/db/Models/tax-return/tax-return-item.d.ts.map +1 -0
  322. package/lib/db/Models/tax-return/tax-return.d.ts.map +1 -0
  323. package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
  324. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  325. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  326. package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
  327. package/lib/db/Models/transaction/transaction-allocation.d.ts.map +1 -0
  328. package/lib/db/Models/transaction/transaction-base.d.ts.map +1 -0
  329. package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +1 -0
  330. package/lib/db/Models/transaction/transaction-receipt.d.ts.map +1 -0
  331. package/lib/db/Models/transaction/transaction.d.ts.map +1 -0
  332. package/lib/db/Models/user/employee-details.d.ts.map +1 -0
  333. package/lib/db/Models/user/registration-invite.d.ts.map +1 -0
  334. package/lib/db/Models/user/user-event-setting.d.ts.map +1 -0
  335. package/lib/db/Models/user/user-event-type-category.d.ts.map +1 -0
  336. package/lib/db/Models/user/user-event-type.d.ts.map +1 -0
  337. package/lib/db/Models/user/user-event.d.ts.map +1 -0
  338. package/lib/db/Models/user/user.d.ts +2 -2
  339. package/lib/db/Models/user/user.d.ts.map +1 -0
  340. package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  341. package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +1 -0
  342. package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +1 -0
  343. package/lib/db/Models/vehicle/vehicle.d.ts.map +1 -0
  344. package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
  345. package/lib/forms/abstract.form.d.ts.map +1 -0
  346. package/lib/forms/address/address.form.d.ts.map +1 -0
  347. package/lib/forms/address/index.d.ts.map +1 -0
  348. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  349. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  350. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  351. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  352. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  353. package/lib/forms/budget/budget.form.d.ts.map +1 -0
  354. package/lib/forms/budget/index.d.ts.map +1 -0
  355. package/lib/forms/client/annual-client-details.form.d.ts.map +1 -0
  356. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  357. package/lib/forms/client/index.d.ts.map +1 -0
  358. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  359. package/lib/forms/depreciation/index.d.ts.map +1 -0
  360. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  361. package/lib/forms/holding/holding-reinvest.form.d.ts.map +1 -0
  362. package/lib/forms/holding/holding-sale.form.d.ts.map +1 -0
  363. package/lib/forms/holding/holding-type.form.d.ts.map +1 -0
  364. package/lib/forms/holding/holding.form.d.ts.map +1 -0
  365. package/lib/forms/holding/index.d.ts.map +1 -0
  366. package/lib/forms/index.d.ts.map +1 -0
  367. package/lib/forms/loan/index.d.ts.map +1 -0
  368. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  369. package/lib/forms/login/login.form.d.ts.map +1 -0
  370. package/lib/forms/phone/index.d.ts.map +1 -0
  371. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  372. package/lib/forms/property/borrowing-report.form.d.ts.map +1 -0
  373. package/lib/forms/property/index.d.ts.map +1 -0
  374. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  375. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  376. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  377. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  378. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  379. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  380. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  381. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
  382. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
  383. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  384. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
  385. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  386. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  387. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  388. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  389. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  390. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  391. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  392. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  393. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  394. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  395. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  396. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  397. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  398. package/lib/forms/sole/index.d.ts.map +1 -0
  399. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  400. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  401. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  402. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  403. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  404. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  405. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  406. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  407. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  408. package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
  409. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
  410. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
  411. package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
  412. package/lib/forms/transaction/holding/holding-income.form.d.ts.map +1 -0
  413. package/lib/forms/transaction/index.d.ts.map +1 -0
  414. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  415. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  416. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  417. package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
  418. package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
  419. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
  420. package/lib/forms/user/index.d.ts.map +1 -0
  421. package/lib/forms/user/password.form.d.ts.map +1 -0
  422. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  423. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  424. package/lib/forms/vehicle/index.d.ts.map +1 -0
  425. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  426. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  427. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  428. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  429. package/lib/functions/array/index.d.ts.map +1 -0
  430. package/lib/functions/array/replace.d.ts.map +1 -0
  431. package/lib/functions/array/sort-deep.d.ts.map +1 -0
  432. package/lib/functions/array/sort.d.ts.map +1 -0
  433. package/lib/functions/array/to-array.d.ts.map +1 -0
  434. package/lib/functions/clone-deep.d.ts.map +1 -0
  435. package/lib/functions/create-date.d.ts.map +1 -0
  436. package/lib/functions/enum-to-list.d.ts.map +1 -0
  437. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  438. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  439. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  440. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  441. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
  442. package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
  443. package/lib/interceptors/corelogic-interceptor.d.ts.map +1 -0
  444. package/lib/interceptors/financial-year-interceptor.d.ts.map +1 -0
  445. package/lib/interceptors/interceptors.module.d.ts.map +1 -0
  446. package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
  447. package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
  448. package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
  449. package/lib/interfaces/asset-entity-type.enum.d.ts.map +1 -0
  450. package/lib/interfaces/asset-type.enum.d.ts.map +1 -0
  451. package/lib/interfaces/asset.interface.d.ts.map +1 -0
  452. package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
  453. package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
  454. package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
  455. package/lib/interfaces/document.interface.d.ts.map +1 -0
  456. package/lib/interfaces/documentable.interface.d.ts.map +1 -0
  457. package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
  458. package/lib/interfaces/expense.interface.d.ts.map +1 -0
  459. package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
  460. package/lib/interfaces/index.d.ts.map +1 -0
  461. package/lib/interfaces/option.interface.d.ts.map +1 -0
  462. package/lib/interfaces/photoable.d.ts.map +1 -0
  463. package/lib/interfaces/receipt.interface.d.ts.map +1 -0
  464. package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
  465. package/lib/interfaces/tank.interface.d.ts.map +1 -0
  466. package/lib/interfaces/updatable.interface.d.ts.map +1 -0
  467. package/lib/messages/index.d.ts.map +1 -0
  468. package/lib/messages/messages.enum.d.ts.map +1 -0
  469. package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
  470. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  471. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  472. package/lib/models/address/address.d.ts.map +1 -0
  473. package/lib/models/address/country.d.ts.map +1 -0
  474. package/lib/models/address/index.d.ts.map +1 -0
  475. package/lib/models/address/states.enum.d.ts.map +1 -0
  476. package/lib/models/asset-sale.d.ts.map +1 -0
  477. package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
  478. package/lib/models/badge/badge.d.ts.map +1 -0
  479. package/lib/models/bank/allocation-group.d.ts.map +1 -0
  480. package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
  481. package/lib/models/bank/bank-account-property.d.ts.map +1 -0
  482. package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
  483. package/lib/models/bank/bank-account.d.ts.map +1 -0
  484. package/lib/models/bank/bank-connection.d.ts.map +1 -0
  485. package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
  486. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
  487. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
  488. package/lib/models/bank/bank-transaction.d.ts.map +1 -0
  489. package/lib/models/bank/bank.d.ts.map +1 -0
  490. package/lib/models/bank/basiq/basiq-config.d.ts.map +1 -0
  491. package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +1 -0
  492. package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +1 -0
  493. package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
  494. package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
  495. package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
  496. package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
  497. package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
  498. package/lib/models/bank/basiq/index.d.ts.map +1 -0
  499. package/lib/models/bank/index.d.ts.map +1 -0
  500. package/lib/models/bank/type-loan.const.d.ts.map +1 -0
  501. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
  502. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
  503. package/lib/models/borrowing-expense/index.d.ts.map +1 -0
  504. package/lib/models/budget/budget-rule.d.ts.map +1 -0
  505. package/lib/models/budget/budget.d.ts.map +1 -0
  506. package/lib/models/budget/index.d.ts.map +1 -0
  507. package/lib/models/chart/chart-data.d.ts.map +1 -0
  508. package/lib/models/chart/chart-serie.d.ts.map +1 -0
  509. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
  510. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
  511. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  512. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  513. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  514. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
  515. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  516. package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
  517. package/lib/models/chart-accounts/index.d.ts.map +1 -0
  518. package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
  519. package/lib/models/chat/chat.d.ts.map +1 -0
  520. package/lib/models/chat/index.d.ts.map +1 -0
  521. package/lib/models/chat/message-document.d.ts.map +1 -0
  522. package/lib/models/chat/message.d.ts.map +1 -0
  523. package/lib/models/client/annual-client-details.d.ts.map +1 -0
  524. package/lib/models/client/client-details.d.ts.map +1 -0
  525. package/lib/models/client/client-income-types.d.ts.map +1 -0
  526. package/lib/models/client/client-invite.d.ts.map +1 -0
  527. package/lib/models/client/client-movement.d.ts.map +1 -0
  528. package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
  529. package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
  530. package/lib/models/client/index.d.ts.map +1 -0
  531. package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
  532. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  533. package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
  534. package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
  535. package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
  536. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
  537. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
  538. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
  539. package/lib/models/depreciation/depreciation-receipt.d.ts.map +1 -0
  540. package/lib/models/depreciation/depreciation.d.ts.map +1 -0
  541. package/lib/models/depreciation/index.d.ts.map +1 -0
  542. package/lib/models/dictionary/dictionary.d.ts.map +1 -0
  543. package/lib/models/dictionary/index.d.ts.map +1 -0
  544. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
  545. package/lib/models/document/document-file-types.const.d.ts.map +1 -0
  546. package/lib/models/document/document-folder.d.ts.map +1 -0
  547. package/lib/models/document/document.d.ts.map +1 -0
  548. package/lib/models/document/index.d.ts.map +1 -0
  549. package/lib/models/employee/employee-details.d.ts.map +1 -0
  550. package/lib/models/employee/employee-invite.d.ts.map +1 -0
  551. package/lib/models/endpoint/endpoint.d.ts.map +1 -0
  552. package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
  553. package/lib/models/event/app-event-type.enum.d.ts +8 -9
  554. package/lib/models/event/app-event-type.enum.d.ts.map +1 -0
  555. package/lib/models/event/app-event.d.ts.map +1 -0
  556. package/lib/models/event/index.d.ts.map +1 -0
  557. package/lib/models/export/export-cell-type.enum.d.ts.map +1 -0
  558. package/lib/models/export/export-cell.d.ts.map +1 -0
  559. package/lib/models/export/export-data-table.d.ts.map +1 -0
  560. package/lib/models/export/export-format.enum.d.ts.map +1 -0
  561. package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
  562. package/lib/models/export/export-row.d.ts.map +1 -0
  563. package/lib/models/file/file.d.ts.map +1 -0
  564. package/lib/models/file/icons-file.enum.d.ts.map +1 -0
  565. package/lib/models/file/index.d.ts.map +1 -0
  566. package/lib/models/financial-year/financial-year.d.ts.map +1 -0
  567. package/lib/models/financial-year/index.d.ts.map +1 -0
  568. package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
  569. package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
  570. package/lib/models/financial-year/months.const.d.ts.map +1 -0
  571. package/lib/models/firm/firm.d.ts.map +1 -0
  572. package/lib/models/holding/holding-reinvest.d.ts.map +1 -0
  573. package/lib/models/holding/holding-sale.d.ts.map +1 -0
  574. package/lib/models/holding/holding-type-exchange.d.ts.map +1 -0
  575. package/lib/models/holding/holding-type.d.ts.map +1 -0
  576. package/lib/models/holding/holding.d.ts.map +1 -0
  577. package/lib/models/holding/index.d.ts.map +1 -0
  578. package/lib/models/income-position/income-position.d.ts.map +1 -0
  579. package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
  580. package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
  581. package/lib/models/income-source/income-source-type.d.ts.map +1 -0
  582. package/lib/models/income-source/income-source.d.ts.map +1 -0
  583. package/lib/models/income-source/index.d.ts.map +1 -0
  584. package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
  585. package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
  586. package/lib/models/index.d.ts.map +1 -0
  587. package/lib/models/loan/index.d.ts.map +1 -0
  588. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
  589. package/lib/models/loan/loan-payment.d.ts.map +1 -0
  590. package/lib/models/loan/loan-payout.d.ts.map +1 -0
  591. package/lib/models/loan/loan.d.ts.map +1 -0
  592. package/lib/models/notification/index.d.ts.map +1 -0
  593. package/lib/models/notification/notification.d.ts.map +1 -0
  594. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
  595. package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
  596. package/lib/models/phone/phone.d.ts.map +1 -0
  597. package/lib/models/property/borrowing-report.d.ts.map +1 -0
  598. package/lib/models/property/calculation-form-item.d.ts.map +1 -0
  599. package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
  600. package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
  601. package/lib/models/property/corelogic-suggestion.d.ts.map +1 -0
  602. package/lib/models/property/index.d.ts.map +1 -0
  603. package/lib/models/property/property-category-movement.d.ts.map +1 -0
  604. package/lib/models/property/property-category.d.ts.map +1 -0
  605. package/lib/models/property/property-document.d.ts.map +1 -0
  606. package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
  607. package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
  608. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
  609. package/lib/models/property/property-forecast.d.ts.map +1 -0
  610. package/lib/models/property/property-sale/index.d.ts.map +1 -0
  611. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
  612. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  613. package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
  614. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  615. package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
  616. package/lib/models/property/property-share.d.ts.map +1 -0
  617. package/lib/models/property/property-subscription.d.ts.map +1 -0
  618. package/lib/models/property/property-valuation.d.ts.map +1 -0
  619. package/lib/models/property/property.d.ts.map +1 -0
  620. package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
  621. package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
  622. package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
  623. package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
  624. package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
  625. package/lib/models/report/depreciation/index.d.ts.map +1 -0
  626. package/lib/models/report/index.d.ts.map +1 -0
  627. package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
  628. package/lib/models/report/my-tax/index.d.ts.map +1 -0
  629. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
  630. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
  631. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
  632. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +1 -0
  633. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +1 -0
  634. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +1 -0
  635. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
  636. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
  637. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
  638. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
  639. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
  640. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
  641. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
  642. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
  643. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
  644. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
  645. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
  646. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
  647. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
  648. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
  649. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
  650. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
  651. package/lib/models/report/property/index.d.ts.map +1 -0
  652. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
  653. package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
  654. package/lib/models/report/property/property-report-item.d.ts.map +1 -0
  655. package/lib/models/report/sole/index.d.ts.map +1 -0
  656. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
  657. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
  658. package/lib/models/service-subscription/index.d.ts.map +1 -0
  659. package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
  660. package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
  661. package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
  662. package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
  663. package/lib/models/service-subscription/service-price.d.ts.map +1 -0
  664. package/lib/models/service-subscription/service-product.d.ts.map +1 -0
  665. package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +1 -0
  666. package/lib/models/service-subscription/service-promo-code.d.ts.map +1 -0
  667. package/lib/models/service-subscription/service-subscription-item.d.ts.map +1 -0
  668. package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
  669. package/lib/models/sole/bas-report.d.ts.map +1 -0
  670. package/lib/models/sole/index.d.ts.map +1 -0
  671. package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
  672. package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
  673. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  674. package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
  675. package/lib/models/sole/sole-business.d.ts.map +1 -0
  676. package/lib/models/sole/sole-contact.d.ts.map +1 -0
  677. package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
  678. package/lib/models/sole/sole-details.d.ts.map +1 -0
  679. package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
  680. package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
  681. package/lib/models/sole/sole-invoice.d.ts.map +1 -0
  682. package/lib/models/tax-return/index.d.ts.map +1 -0
  683. package/lib/models/tax-return/tax-return-category.d.ts.map +1 -0
  684. package/lib/models/tax-return/tax-return-item.d.ts.map +1 -0
  685. package/lib/models/tax-return/tax-return.d.ts.map +1 -0
  686. package/lib/models/tax-review/tax-review.d.ts.map +1 -0
  687. package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
  688. package/lib/models/tax-summary/report-item.d.ts.map +1 -0
  689. package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
  690. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
  691. package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
  692. package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
  693. package/lib/models/toast/toast.d.ts.map +1 -0
  694. package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
  695. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  696. package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  697. package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
  698. package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
  699. package/lib/models/transaction/index.d.ts.map +1 -0
  700. package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
  701. package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
  702. package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
  703. package/lib/models/transaction/transaction-receipt.d.ts.map +1 -0
  704. package/lib/models/transaction/transaction.d.ts.map +1 -0
  705. package/lib/models/user/index.d.ts.map +1 -0
  706. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
  707. package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
  708. package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
  709. package/lib/models/user/my-account-history.d.ts.map +1 -0
  710. package/lib/models/user/occupation.d.ts.map +1 -0
  711. package/lib/models/user/user-roles.const.d.ts.map +1 -0
  712. package/lib/models/user/user-to-register.d.ts.map +1 -0
  713. package/lib/models/user/user-work-position.const.d.ts.map +1 -0
  714. package/lib/models/user/user.d.ts.map +1 -0
  715. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
  716. package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
  717. package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
  718. package/lib/models/user-event/user-event-type.d.ts.map +1 -0
  719. package/lib/models/vehicle/index.d.ts.map +1 -0
  720. package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
  721. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  722. package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
  723. package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
  724. package/lib/models/vehicle/vehicle.d.ts.map +1 -0
  725. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  726. package/lib/services/account-setup/index.d.ts.map +1 -0
  727. package/lib/services/affiliate/index.d.ts.map +1 -0
  728. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  729. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  730. package/lib/services/asset/assets.service.d.ts.map +1 -0
  731. package/lib/services/asset/index.d.ts.map +1 -0
  732. package/lib/services/auth/auth.service.d.ts +3 -14
  733. package/lib/services/auth/auth.service.d.ts.map +1 -0
  734. package/lib/services/auth/index.d.ts.map +1 -0
  735. package/lib/services/auth/jwt.service.d.ts.map +1 -0
  736. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  737. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  738. package/lib/services/bank/index.d.ts.map +1 -0
  739. package/lib/services/data.service.d.ts +4 -0
  740. package/lib/services/data.service.d.ts.map +1 -0
  741. package/lib/services/event/event-dispatcher.service.d.ts.map +1 -0
  742. package/lib/services/event/index.d.ts.map +1 -0
  743. package/lib/services/event/sse.service.d.ts.map +1 -0
  744. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  745. package/lib/services/export/index.d.ts.map +1 -0
  746. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  747. package/lib/services/header-title/index.d.ts.map +1 -0
  748. package/lib/services/http/address/address.service.d.ts.map +1 -0
  749. package/lib/services/http/address/index.d.ts.map +1 -0
  750. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
  751. package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
  752. package/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts.map +1 -0
  753. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
  754. package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
  755. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
  756. package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
  757. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  758. package/lib/services/http/bank/basiq/basiq-messages.enum.d.ts.map +1 -0
  759. package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
  760. package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
  761. package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
  762. package/lib/services/http/bank/index.d.ts.map +1 -0
  763. package/lib/services/http/budget/budget-messages.enum.d.ts.map +1 -0
  764. package/lib/services/http/budget/budget.service.d.ts.map +1 -0
  765. package/lib/services/http/budget/index.d.ts.map +1 -0
  766. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  767. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  768. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  769. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  770. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  771. package/lib/services/http/chat/index.d.ts.map +1 -0
  772. package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
  773. package/lib/services/http/chat/message.service.d.ts.map +1 -0
  774. package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +1 -0
  775. package/lib/services/http/client/index.d.ts.map +1 -0
  776. package/lib/services/http/client/occupation/occupation.service.d.ts.map +1 -0
  777. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  778. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  779. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +1 -0
  780. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +1 -0
  781. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  782. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  783. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  784. package/lib/services/http/document/document.service.d.ts.map +1 -0
  785. package/lib/services/http/document/index.d.ts.map +1 -0
  786. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  787. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  788. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  789. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  790. package/lib/services/http/facebook/index.d.ts.map +1 -0
  791. package/lib/services/http/file/file.service.d.ts.map +1 -0
  792. package/lib/services/http/file/index.d.ts.map +1 -0
  793. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  794. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  795. package/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts.map +1 -0
  796. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  797. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  798. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  799. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  800. package/lib/services/http/firm/employee/employee-messages.enum.d.ts.map +1 -0
  801. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  802. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  803. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  804. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  805. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  806. package/lib/services/http/firm/index.d.ts.map +1 -0
  807. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  808. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  809. package/lib/services/http/google/google.service.d.ts.map +1 -0
  810. package/lib/services/http/google/index.d.ts.map +1 -0
  811. package/lib/services/http/holding/holding-messages.enum.d.ts.map +1 -0
  812. package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +1 -0
  813. package/lib/services/http/holding/holding-sale.service.d.ts.map +1 -0
  814. package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +1 -0
  815. package/lib/services/http/holding/holding-type.service.d.ts.map +1 -0
  816. package/lib/services/http/holding/holding.service.d.ts.map +1 -0
  817. package/lib/services/http/holding/index.d.ts.map +1 -0
  818. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  819. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  820. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  821. package/lib/services/http/income-source/index.d.ts.map +1 -0
  822. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  823. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  824. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  825. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  826. package/lib/services/http/index.d.ts.map +1 -0
  827. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  828. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  829. package/lib/services/http/loan/index.d.ts.map +1 -0
  830. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  831. package/lib/services/http/property/borrowing-report/borrowing-report-messages.enum.d.ts.map +1 -0
  832. package/lib/services/http/property/borrowing-report/borrowing-report.service.d.ts.map +1 -0
  833. package/lib/services/http/property/borrowing-report/index.d.ts.map +1 -0
  834. package/lib/services/http/property/index.d.ts.map +1 -0
  835. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  836. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  837. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  838. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  839. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  840. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  841. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  842. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  843. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  844. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  845. package/lib/services/http/property/property.service.d.ts.map +1 -0
  846. package/lib/services/http/receipt/index.d.ts.map +1 -0
  847. package/lib/services/http/receipt/receipt.service.d.ts.map +1 -0
  848. package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
  849. package/lib/services/http/rest/index.d.ts.map +1 -0
  850. package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
  851. package/lib/services/http/rest/rest-old.service.d.ts +2 -1
  852. package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
  853. package/lib/services/http/rest/rest.service.d.ts +10 -10
  854. package/lib/services/http/rest/rest.service.d.ts.map +1 -0
  855. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  856. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  857. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  858. package/lib/services/http/sole/index.d.ts.map +1 -0
  859. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +1 -0
  860. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  861. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  862. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  863. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  864. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  865. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  866. package/lib/services/http/sole/sole-details/sole-details.service.d.ts +1 -1
  867. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  868. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +2 -0
  869. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  870. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  871. package/lib/services/http/subscription/index.d.ts.map +1 -0
  872. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
  873. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
  874. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
  875. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
  876. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
  877. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  878. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  879. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  880. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  881. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  882. package/lib/services/http/transaction/index.d.ts.map +1 -0
  883. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
  884. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  885. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +1 -0
  886. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  887. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  888. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  889. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  890. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  891. package/lib/services/http/user/financial-year/financial-year.service.d.ts +11 -0
  892. package/lib/services/http/user/financial-year/financial-year.service.d.ts.map +1 -0
  893. package/lib/services/http/user/index.d.ts +1 -0
  894. package/lib/services/http/user/index.d.ts.map +1 -0
  895. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  896. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  897. package/lib/services/http/user/user.service.d.ts +17 -68
  898. package/lib/services/http/user/user.service.d.ts.map +1 -0
  899. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  900. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  901. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  902. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  903. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  904. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  905. package/lib/services/index.d.ts.map +1 -0
  906. package/lib/services/intercom/index.d.ts.map +1 -0
  907. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  908. package/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts.map +1 -0
  909. package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +1 -0
  910. package/lib/services/json/income-source/income-source-type.service.d.ts.map +1 -0
  911. package/lib/services/json/index.d.ts.map +1 -0
  912. package/lib/services/json/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  913. package/lib/services/json/tax-return/tax-return-item.service.d.ts.map +1 -0
  914. package/lib/services/pdf/index.d.ts.map +1 -0
  915. package/lib/services/pdf/js-pdf.d.ts.map +1 -0
  916. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  917. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  918. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  919. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  920. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  921. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  922. package/lib/services/preloader/index.d.ts.map +1 -0
  923. package/lib/services/preloader/preloader.service.d.ts.map +1 -0
  924. package/lib/services/property/corelogic/corelogic.service.d.ts.map +1 -0
  925. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  926. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  927. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  928. package/lib/services/property/index.d.ts.map +1 -0
  929. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  930. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  931. package/lib/services/report/index.d.ts.map +1 -0
  932. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  933. package/lib/services/toast/index.d.ts.map +1 -0
  934. package/lib/services/toast/toast.service.d.ts.map +1 -0
  935. package/lib/services/transaction/index.d.ts.map +1 -0
  936. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  937. package/lib/services/user/index.d.ts.map +1 -0
  938. package/lib/services/user/user-switcher.service.d.ts.map +1 -0
  939. package/lib/services/vehicle/index.d.ts.map +1 -0
  940. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  941. package/lib/services/xlsx/index.d.ts.map +1 -0
  942. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  943. package/lib/tt-core.module.d.ts.map +1 -0
  944. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  945. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  946. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  947. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  948. package/lib/validators/conditional.validator.d.ts.map +1 -0
  949. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  950. package/lib/validators/date-range.validator.d.ts.map +1 -0
  951. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  952. package/lib/validators/file.validator.d.ts.map +1 -0
  953. package/lib/validators/greater-than.validator.d.ts.map +1 -0
  954. package/lib/validators/index.d.ts.map +1 -0
  955. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  956. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  957. package/lib/validators/password-match.validator.d.ts.map +1 -0
  958. package/lib/validators/password.validator.d.ts.map +1 -0
  959. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  960. package/lib/validators/required-length.validator.d.ts.map +1 -0
  961. package/lib/validators/transactions-meta-fields.validator.d.ts.map +1 -0
  962. package/package.json +1 -1
  963. package/public-api.d.ts.map +1 -0
  964. package/taxtank-core.d.ts.map +1 -0
@@ -5,7 +5,7 @@ import { CommonModule, DatePipe } from '@angular/common';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
7
7
  import { map, mergeMap, filter, first as first$1, catchError, skip, take, switchMap, finalize, debounceTime, distinctUntilChanged } from 'rxjs/operators';
8
- import { ReplaySubject, Subject, BehaviorSubject, Observable, throwError, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
8
+ import { ReplaySubject, BehaviorSubject, Subject, Observable, throwError, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
9
9
  import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
10
10
  import get from 'lodash/get';
11
11
  import { __decorate, __awaiter } from 'tslib';
@@ -434,7 +434,8 @@ class TransactionBase extends ObservableModel {
434
434
  /**
435
435
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
436
436
  */
437
- set tankType(tankType) { }
437
+ set tankType(tankType) {
438
+ }
438
439
  /**
439
440
  * Check if current tank is Property
440
441
  */
@@ -777,7 +778,7 @@ let UserEventType$1 = class UserEventType extends AbstractModel {
777
778
  class UserEvent extends AbstractModel {
778
779
  }
779
780
 
780
- let User$1 = class User extends AbstractModel {
781
+ let User$1 = class User extends ObservableModel {
781
782
  };
782
783
 
783
784
  let VehicleClaimDetails$1 = class VehicleClaimDetails extends AbstractModel {
@@ -9799,15 +9800,14 @@ var AppEventTypeEnum;
9799
9800
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
9800
9801
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
9801
9802
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
9802
- AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 61] = "USER_UPDATED";
9803
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 62] = "VEHICLE_CLAIM_UPDATED";
9804
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 63] = "VEHICLE_CLAIM_CREATED";
9805
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 64] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9806
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 65] = "VEHICLE_CLAIM_DETAILS_CREATED";
9807
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 66] = "VEHICLE_LOGBOOK_CREATED";
9808
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 67] = "VEHICLE_LOGBOOK_UPDATED";
9809
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 68] = "VEHICLE_LOGBOOK_DELETED";
9810
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 69] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9803
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
9804
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
9805
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9806
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
9807
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
9808
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
9809
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
9810
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9811
9811
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
9812
9812
 
9813
9813
  /**
@@ -10252,6 +10252,13 @@ class DataService {
10252
10252
  getCache() {
10253
10253
  return clone(this.cache);
10254
10254
  }
10255
+ /**
10256
+ * never return cache directly to prevent update
10257
+ */
10258
+ getCacheFirst() {
10259
+ var _a;
10260
+ return clone((_a = this.cache) === null || _a === void 0 ? void 0 : _a.first);
10261
+ }
10255
10262
  /**
10256
10263
  * @TODO vik any[] because of problems with base models extending abstractModel
10257
10264
  */
@@ -10305,64 +10312,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
10305
10312
  }]
10306
10313
  }] });
10307
10314
 
10308
- /**
10309
- * @TODO Alex (TT-1777): replace old logic with the new when all services ready
10310
- * @TODO Alex (TT-1777): rename old logic and keep it for custom events
10311
- */
10312
- class EventDispatcherService {
10313
- constructor() {
10314
- this.eventSubject = new Subject();
10315
- this.eventSubject2 = new Subject();
10316
- }
10317
- /**
10318
- * subscription to specific event type
10319
- */
10320
- on(eventType) {
10321
- return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
10322
- }
10323
- on2(...names) {
10324
- return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
10325
- }
10326
- /**
10327
- * deliver new event
10328
- */
10329
- dispatch(event) {
10330
- this.eventSubject.next(event);
10331
- }
10332
- dispatch2(event) {
10333
- this.eventSubject2.next(event);
10334
- }
10335
- }
10336
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10337
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
10339
- type: Injectable,
10340
- args: [{
10341
- providedIn: 'root'
10342
- }]
10343
- }] });
10344
-
10345
10315
  class AuthService {
10346
- constructor(http, jwtService, eventDispatcherService, environment) {
10316
+ constructor(http, jwtService, environment) {
10347
10317
  this.http = http;
10348
10318
  this.jwtService = jwtService;
10349
- this.eventDispatcherService = eventDispatcherService;
10350
10319
  this.environment = environment;
10351
- this.listenEvents();
10352
10320
  this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
10353
10321
  }
10354
- /**
10355
- * Listen to Event Dispatcher events
10356
- */
10357
- listenEvents() {
10358
- this.listenUserGetFailed();
10359
- }
10360
- /**
10361
- * User logout if failed current user get
10362
- */
10363
- listenUserGetFailed() {
10364
- this.eventDispatcherService.on(AppEventTypeEnum.CURRENT_USER_GET_FAILED).subscribe(() => this.logoutFront());
10365
- }
10366
10322
  setAuth(response) {
10367
10323
  this.jwtService.saveTokens(response);
10368
10324
  this.isLoggedInSubject.next(true);
@@ -10384,7 +10340,7 @@ class AuthService {
10384
10340
  location.replace(url);
10385
10341
  }
10386
10342
  }
10387
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10343
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10388
10344
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, providedIn: 'root' });
10389
10345
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, decorators: [{
10390
10346
  type: Injectable,
@@ -10392,12 +10348,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
10392
10348
  providedIn: 'root'
10393
10349
  }]
10394
10350
  }], ctorParameters: function () {
10395
- return [{ type: i1.HttpClient }, { type: JwtService }, { type: EventDispatcherService }, { type: undefined, decorators: [{
10351
+ return [{ type: i1.HttpClient }, { type: JwtService }, { type: undefined, decorators: [{
10396
10352
  type: Inject,
10397
10353
  args: ['environment']
10398
10354
  }] }];
10399
10355
  } });
10400
10356
 
10357
+ /**
10358
+ * @TODO Alex (TT-1777): replace old logic with the new when all services ready
10359
+ * @TODO Alex (TT-1777): rename old logic and keep it for custom events
10360
+ */
10361
+ class EventDispatcherService {
10362
+ constructor() {
10363
+ this.eventSubject = new Subject();
10364
+ this.eventSubject2 = new Subject();
10365
+ }
10366
+ /**
10367
+ * subscription to specific event type
10368
+ */
10369
+ on(eventType) {
10370
+ return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
10371
+ }
10372
+ on2(...names) {
10373
+ return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
10374
+ }
10375
+ /**
10376
+ * deliver new event
10377
+ */
10378
+ dispatch(event) {
10379
+ this.eventSubject.next(event);
10380
+ }
10381
+ dispatch2(event) {
10382
+ this.eventSubject2.next(event);
10383
+ }
10384
+ }
10385
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10386
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
10388
+ type: Injectable,
10389
+ args: [{
10390
+ providedIn: 'root'
10391
+ }]
10392
+ }] });
10393
+
10401
10394
  /**
10402
10395
  * server sent events service
10403
10396
  * https://symfony.com/doc/current/mercure.html
@@ -10473,16 +10466,39 @@ let RestService$1 = class RestService extends DataService {
10473
10466
  get apiUrl() {
10474
10467
  return `${this.environment.apiV2}/${this.endpointUri}`;
10475
10468
  }
10476
- get() {
10469
+ setCache(data, next = false) {
10470
+ super.setCache(data);
10471
+ if (next) {
10472
+ this.cacheSubject.next(this.cache);
10473
+ }
10474
+ }
10475
+ /**
10476
+ * Refresh cache with actual backend data
10477
+ */
10478
+ refreshCache() {
10479
+ this.cache = undefined;
10480
+ this.get();
10481
+ }
10482
+ /**
10483
+ * Get data from backend and fill the cache
10484
+ */
10485
+ fetch(path = this.apiUrl) {
10477
10486
  this.handleAccessError('get');
10487
+ // Set cache as empty collection to avoid multiple requests before cache filled
10488
+ this.setCache([]);
10489
+ return this.http.get(path)
10490
+ .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10491
+ this.setCache(response, true);
10492
+ return this.cache;
10493
+ }));
10494
+ }
10495
+ get() {
10478
10496
  if (!this.cache) {
10479
- // Set cache as empty collection to avoid multiple requests before cache filled
10480
- this.setCache([], false);
10481
- this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.setCache([]);
10497
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
10482
10498
  }
10483
10499
  return this.cacheSubject.asObservable();
10484
10500
  }
10485
- getSingle() {
10501
+ getFirst() {
10486
10502
  this.handleAccessError('get');
10487
10503
  return this.get().pipe(map((collection) => collection.first));
10488
10504
  }
@@ -10557,22 +10573,6 @@ let RestService$1 = class RestService extends DataService {
10557
10573
  this.handleResponse(models, 'delete');
10558
10574
  }));
10559
10575
  }
10560
- /**
10561
- * Refresh cache with actual backend data
10562
- */
10563
- resetCache() {
10564
- this.fetch().pipe(first$1()).subscribe();
10565
- }
10566
- /**
10567
- * Get data from backend and fill the cache
10568
- */
10569
- fetch() {
10570
- return this.http.get(this.apiUrl)
10571
- .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10572
- this.setCache(response);
10573
- return this.cache;
10574
- }));
10575
- }
10576
10576
  /**
10577
10577
  * Handle response data - update cache and dispatch event if it is needed
10578
10578
  */
@@ -10640,12 +10640,6 @@ let RestService$1 = class RestService extends DataService {
10640
10640
  });
10641
10641
  });
10642
10642
  }
10643
- setCache(data, next = true) {
10644
- super.setCache(data);
10645
- if (next) {
10646
- this.cacheSubject.next(this.cache);
10647
- }
10648
- }
10649
10643
  /**
10650
10644
  * // @TODO Alex remove
10651
10645
  * Method that call all listeners. Empty by default. Should be redefined by child services if required
@@ -10687,9 +10681,9 @@ class BankAccountService extends RestService$1 {
10687
10681
  */
10688
10682
  listenEvents() {
10689
10683
  this.listenToEventDispatcherChanges();
10690
- this.listenCSE(BankTransaction, ['post', 'delete'], this.resetCache);
10691
- this.listenCSE(PropertyShare, ['put'], this.resetCache);
10692
- this.listenCSE(BankConnection, ['post'], this.resetCache);
10684
+ this.listenCSE(BankTransaction, ['post', 'delete'], this.refreshCache);
10685
+ this.listenCSE(PropertyShare, ['put'], this.refreshCache);
10686
+ this.listenCSE(BankConnection, ['post'], this.refreshCache);
10693
10687
  }
10694
10688
  /**
10695
10689
  * Update bank account current balance
@@ -10711,7 +10705,7 @@ class BankAccountService extends RestService$1 {
10711
10705
  AppEventTypeEnum.LOAN_PAYOUT_UPDATED,
10712
10706
  AppEventTypeEnum.BANK_TRANSACTIONS_ADDED
10713
10707
  ]).subscribe(() => {
10714
- this.resetCache();
10708
+ this.refreshCache();
10715
10709
  });
10716
10710
  }
10717
10711
  /**
@@ -10720,7 +10714,7 @@ class BankAccountService extends RestService$1 {
10720
10714
  */
10721
10715
  listenConnections() {
10722
10716
  this.sseService.on(`bankConnections`).subscribe((connection) => {
10723
- this.resetCache();
10717
+ this.refreshCache();
10724
10718
  });
10725
10719
  }
10726
10720
  }
@@ -10899,7 +10893,7 @@ class BankConnectionService extends RestService$1 {
10899
10893
  */
10900
10894
  listenBankConnections() {
10901
10895
  this.sseService.on(`bankConnections`).subscribe((bankConnection) => {
10902
- this.resetCache();
10896
+ this.refreshCache();
10903
10897
  });
10904
10898
  }
10905
10899
  }
@@ -11015,7 +11009,7 @@ class BankTransactionService extends RestService$1 {
11015
11009
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
11016
11010
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_FIRST_IMPORT_COMPLETE) {
11017
11011
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BANK_TRANSACTIONS_ADDED, []));
11018
- this.resetCache();
11012
+ this.refreshCache();
11019
11013
  }
11020
11014
  });
11021
11015
  }
@@ -11167,7 +11161,7 @@ class BasiqService extends RestService$1 {
11167
11161
  listenNotifications() {
11168
11162
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
11169
11163
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS) {
11170
- this.resetCache();
11164
+ this.refreshCache();
11171
11165
  }
11172
11166
  });
11173
11167
  }
@@ -11701,7 +11695,7 @@ class DepreciationService extends RestService$1 {
11701
11695
  * Listen to EventDispatcherService event related to updated bank loan
11702
11696
  */
11703
11697
  listenToUpdatedLoan() {
11704
- this.listenCSE(Loan, ['put'], this.resetCache);
11698
+ this.listenCSE(Loan, ['put'], this.refreshCache);
11705
11699
  }
11706
11700
  /**
11707
11701
  * Listen to EventDispatcherService event related to updated bank account
@@ -11709,7 +11703,7 @@ class DepreciationService extends RestService$1 {
11709
11703
  listenToUpdatedBankAccount() {
11710
11704
  this.listenCSE(BankAccount, ['put'], (bankAccounts) => {
11711
11705
  if (bankAccounts.find(ba => ba.isPropertyTank())) {
11712
- this.resetCache();
11706
+ this.refreshCache();
11713
11707
  }
11714
11708
  });
11715
11709
  }
@@ -11722,7 +11716,7 @@ class DepreciationService extends RestService$1 {
11722
11716
  AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
11723
11717
  AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
11724
11718
  ]).subscribe(() => {
11725
- this.resetCache();
11719
+ this.refreshCache();
11726
11720
  });
11727
11721
  }
11728
11722
  /**
@@ -11730,7 +11724,7 @@ class DepreciationService extends RestService$1 {
11730
11724
  */
11731
11725
  listenSoleDepreciationMethodChanges() {
11732
11726
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED).subscribe(() => {
11733
- this.resetCache();
11727
+ this.refreshCache();
11734
11728
  });
11735
11729
  }
11736
11730
  /**
@@ -11738,13 +11732,13 @@ class DepreciationService extends RestService$1 {
11738
11732
  */
11739
11733
  listenPropertyDepreciationCalculationChanges() {
11740
11734
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_DEPRECIATION_CALCULATION_UPDATED).subscribe(() => {
11741
- this.resetCache();
11735
+ this.refreshCache();
11742
11736
  });
11743
11737
  }
11744
11738
  listenTransactions() {
11745
11739
  // @TODO reset cache only when required (transaction has depreciation)
11746
11740
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
11747
- this.resetCache();
11741
+ this.refreshCache();
11748
11742
  });
11749
11743
  }
11750
11744
  }
@@ -11839,12 +11833,12 @@ class RestService {
11839
11833
  * get list of base class instances directly from backend
11840
11834
  */
11841
11835
  fetch() {
11836
+ this.setCache([]);
11842
11837
  return this.http.get(`${this.environment.apiV2}/${this.url}`)
11843
11838
  .pipe(map((response) => {
11844
11839
  const items = (this.isHydra ? response['hydra:member'] : response)
11845
11840
  .map((item) => this.createModelInstance(item));
11846
- this.cache = items;
11847
- this.updateCache();
11841
+ this.setCache(items, true);
11848
11842
  return items;
11849
11843
  }));
11850
11844
  }
@@ -11853,8 +11847,7 @@ class RestService {
11853
11847
  */
11854
11848
  get() {
11855
11849
  if (!this.cache) {
11856
- this.cache = [];
11857
- this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.updateCache();
11850
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11858
11851
  }
11859
11852
  return this.cacheSubject.asObservable();
11860
11853
  }
@@ -11971,8 +11964,7 @@ class RestService {
11971
11964
  delete(model) {
11972
11965
  return this.http.delete(`${this.environment.apiV2}/${this.url}/${model['id']}`)
11973
11966
  .pipe(map(() => {
11974
- this.cache = this.cache.filter((item) => item['id'] !== model['id']);
11975
- this.updateCache();
11967
+ this.setCache(this.cache.filter((item) => item['id'] !== model['id']), true);
11976
11968
  if (this.messageDeleted) {
11977
11969
  this.toastService.success(this.messageDeleted);
11978
11970
  }
@@ -11986,8 +11978,7 @@ class RestService {
11986
11978
  return this.http.post(`${this.environment.apiV2}/${this.url}/delete`, classToPlain(models))
11987
11979
  .pipe(map(() => {
11988
11980
  const ids = models.map((model) => model['id']);
11989
- this.cache = this.cache.filter((item) => !ids.includes(item['id']));
11990
- this.updateCache();
11981
+ this.setCache(this.cache.filter((item) => !ids.includes(item['id'])), true);
11991
11982
  if (this.messageDeletedBatch) {
11992
11983
  this.toastService.success(this.messageDeletedBatch);
11993
11984
  }
@@ -11996,8 +11987,15 @@ class RestService {
11996
11987
  /**
11997
11988
  * clear service cache
11998
11989
  */
11999
- resetCache() {
12000
- this.fetch().subscribe();
11990
+ refreshCache() {
11991
+ this.setCache(undefined);
11992
+ this.get();
11993
+ }
11994
+ setCache(data, next = false) {
11995
+ this.cache = data;
11996
+ if (next) {
11997
+ this.updateCache();
11998
+ }
12001
11999
  }
12002
12000
  /**
12003
12001
  * Update cache subject with current cache array value
@@ -12424,7 +12422,7 @@ class ClientInviteService extends RestService {
12424
12422
  listenNotifications() {
12425
12423
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
12426
12424
  if (!notification.isRead && (notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED || notification.eventType === UserEventTypeTypeEnum.CLIENT_INVITE)) {
12427
- this.resetCache();
12425
+ this.refreshCache();
12428
12426
  }
12429
12427
  });
12430
12428
  }
@@ -12504,7 +12502,7 @@ class ClientMovementService extends RestService {
12504
12502
  listenNotifications() {
12505
12503
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
12506
12504
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
12507
- this.resetCache();
12505
+ this.refreshCache();
12508
12506
  }
12509
12507
  });
12510
12508
  }
@@ -12514,7 +12512,7 @@ class ClientMovementService extends RestService {
12514
12512
  listenClientInvites() {
12515
12513
  this.eventDispatcherService.on(AppEventTypeEnum.CLIENT_INVITE_ACCEPTED)
12516
12514
  .subscribe(() => {
12517
- this.resetCache();
12515
+ this.refreshCache();
12518
12516
  });
12519
12517
  }
12520
12518
  }
@@ -12952,7 +12950,7 @@ class SoleForecastService extends RestService {
12952
12950
  */
12953
12951
  listenBusinessCreated() {
12954
12952
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
12955
- this.resetCache();
12953
+ this.refreshCache();
12956
12954
  });
12957
12955
  }
12958
12956
  }
@@ -13033,7 +13031,7 @@ class IncomeSourceService extends RestService {
13033
13031
  listenSoleBusinessCreated() {
13034
13032
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
13035
13033
  // @TODO Alex/Vik (TT-1777): we clear cache a lot, a better and easier way required, add todo and task to refactor
13036
- this.resetCache();
13034
+ this.refreshCache();
13037
13035
  });
13038
13036
  }
13039
13037
  }
@@ -13132,10 +13130,10 @@ class LoanService extends RestService$1 {
13132
13130
  // Update list of loans when added/changed loan bank account
13133
13131
  this.listenCSE(BankAccount, ['post', 'put'], (bankAccounts) => {
13134
13132
  if (bankAccounts.find(ba => !!ba.loan)) {
13135
- this.resetCache();
13133
+ this.refreshCache();
13136
13134
  }
13137
13135
  });
13138
- this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.resetCache);
13136
+ this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.refreshCache);
13139
13137
  }
13140
13138
  /**
13141
13139
  * Calculate loan payments
@@ -13153,7 +13151,7 @@ class LoanService extends RestService$1 {
13153
13151
  loan.payout = plainToClass(LoanPayout, response);
13154
13152
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13155
13153
  // reset cache to fetch loans with updated data
13156
- this.resetCache();
13154
+ this.refreshCache();
13157
13155
  }));
13158
13156
  }
13159
13157
  /**
@@ -13166,7 +13164,7 @@ class LoanService extends RestService$1 {
13166
13164
  loan.payout = null;
13167
13165
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13168
13166
  // reset cache to fetch loans with updated data
13169
- this.resetCache();
13167
+ this.refreshCache();
13170
13168
  }));
13171
13169
  }
13172
13170
  /**
@@ -13180,7 +13178,7 @@ class LoanService extends RestService$1 {
13180
13178
  loan.payout = plainToClass(LoanPayout, response);
13181
13179
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13182
13180
  // reset cache to fetch loans with updated data
13183
- this.resetCache();
13181
+ this.refreshCache();
13184
13182
  }));
13185
13183
  }
13186
13184
  }
@@ -13424,16 +13422,15 @@ class PropertyShareService extends RestService$1 {
13424
13422
  * Listen to User updated event
13425
13423
  */
13426
13424
  listenUserUpdated() {
13427
- this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
13428
- .subscribe(() => {
13429
- this.resetCache();
13425
+ this.eventDispatcherService.on2(User.getEventName('put')).subscribe(() => {
13426
+ this.refreshCache();
13430
13427
  });
13431
13428
  }
13432
13429
  /**
13433
13430
  * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
13434
13431
  */
13435
13432
  listenSalesChanges() {
13436
- this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
13433
+ this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13437
13434
  }
13438
13435
  }
13439
13436
  PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
@@ -13481,19 +13478,19 @@ class PropertyService extends RestService$1 {
13481
13478
  * Update cache when share invitation accepted
13482
13479
  */
13483
13480
  listenShareInviteAccepted() {
13484
- this.listenCSE(PropertyShare, ['put'], this.resetCache);
13481
+ this.listenCSE(PropertyShare, ['put'], this.refreshCache);
13485
13482
  }
13486
13483
  /**
13487
13484
  * Update cache when property category changed
13488
13485
  */
13489
13486
  listenMovementsChanges() {
13490
- this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.resetCache);
13487
+ this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.refreshCache);
13491
13488
  }
13492
13489
  /**
13493
13490
  * Update cache when property sales changed
13494
13491
  */
13495
13492
  listenSalesChanges() {
13496
- this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
13493
+ this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13497
13494
  }
13498
13495
  updateDepreciationCalculation(property) {
13499
13496
  const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
@@ -13685,7 +13682,7 @@ class SoleBusinessLossService extends RestService {
13685
13682
  */
13686
13683
  listenBusinessCreated() {
13687
13684
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
13688
- this.resetCache();
13685
+ this.refreshCache();
13689
13686
  });
13690
13687
  }
13691
13688
  }
@@ -13861,6 +13858,7 @@ class SoleInvoiceService extends RestService {
13861
13858
  this.modelClass = SoleInvoice;
13862
13859
  this.url = 'sole-invoices';
13863
13860
  this.isHydra = true;
13861
+ this.roles = [UserRolesEnum.SOLE_TANK];
13864
13862
  }
13865
13863
  listenEvents() {
13866
13864
  this.listenAllocations();
@@ -13915,7 +13913,7 @@ class SoleInvoiceService extends RestService {
13915
13913
  AppEventTypeEnum.TRANSACTION_ALLOCATION_CREATED,
13916
13914
  AppEventTypeEnum.TRANSACTION_ALLOCATION_DELETED
13917
13915
  ]).subscribe(() => {
13918
- this.resetCache();
13916
+ this.refreshCache();
13919
13917
  });
13920
13918
  }
13921
13919
  }
@@ -14392,7 +14390,7 @@ class TaxReviewService extends RestService {
14392
14390
  listenFirmChanges() {
14393
14391
  this.eventDispatcherService.on([AppEventTypeEnum.CLIENT_MOVEMENT_CLOSED, AppEventTypeEnum.CLIENT_INVITE_ACCEPTED])
14394
14392
  .subscribe(() => {
14395
- this.resetCache();
14393
+ this.refreshCache();
14396
14394
  });
14397
14395
  }
14398
14396
  /**
@@ -14415,7 +14413,7 @@ class TaxReviewService extends RestService {
14415
14413
  listenNotifications() {
14416
14414
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
14417
14415
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
14418
- this.resetCache();
14416
+ this.refreshCache();
14419
14417
  }
14420
14418
  });
14421
14419
  }
@@ -14788,7 +14786,7 @@ class TransactionAllocationService extends RestService {
14788
14786
  return;
14789
14787
  }
14790
14788
  // Update allocations cache to synchronize data and fire subscriptions
14791
- this.resetCache();
14789
+ this.refreshCache();
14792
14790
  });
14793
14791
  }
14794
14792
  /**
@@ -14797,7 +14795,7 @@ class TransactionAllocationService extends RestService {
14797
14795
  watchDepreciations() {
14798
14796
  // @TODO reset cache only when required (depreciation has transaction with allocations)
14799
14797
  this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
14800
- this.resetCache();
14798
+ this.refreshCache();
14801
14799
  });
14802
14800
  }
14803
14801
  /**
@@ -14807,7 +14805,7 @@ class TransactionAllocationService extends RestService {
14807
14805
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
14808
14806
  // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
14809
14807
  // Update allocations cache to synchronize data and fire subscriptions
14810
- this.resetCache();
14808
+ this.refreshCache();
14811
14809
  });
14812
14810
  }
14813
14811
  }
@@ -14885,16 +14883,7 @@ class TransactionService extends RestService {
14885
14883
  * get list of all user's TaxTank transactions
14886
14884
  */
14887
14885
  get() {
14888
- if (!this.cache) {
14889
- // set cache as default empty array to avoid multiple backend requests
14890
- this.cache = [];
14891
- this.fetch()
14892
- .subscribe((transactions) => {
14893
- this.cache = transactions;
14894
- this.updateCache();
14895
- });
14896
- }
14897
- return this.cacheSubject.asObservable().pipe(
14886
+ return super.get().pipe(
14898
14887
  // assign child transactions (fees) to parent transactions
14899
14888
  map((transactions) => {
14900
14889
  transactions.forEach((transaction) => {
@@ -15096,18 +15085,14 @@ class TransactionService extends RestService {
15096
15085
  listenDepreciationChange() {
15097
15086
  // @TODO reset cache only when required (depreciation has transaction)
15098
15087
  this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
15099
- this.fetch()
15100
- .subscribe((transactions) => {
15101
- this.cache = transactions;
15102
- this.updateCache();
15103
- });
15088
+ this.refreshCache();
15104
15089
  });
15105
15090
  }
15106
15091
  /**
15107
15092
  * Listen to EventDispatcherService event related to Property Share changing
15108
15093
  */
15109
15094
  listenPropertyShareUpdate() {
15110
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.resetCache());
15095
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
15111
15096
  }
15112
15097
  listenReceiptAdded() {
15113
15098
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
@@ -15131,7 +15116,7 @@ class TransactionService extends RestService {
15131
15116
  AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
15132
15117
  AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
15133
15118
  ]).subscribe(() => {
15134
- this.resetCache();
15119
+ this.refreshCache();
15135
15120
  });
15136
15121
  }
15137
15122
  /**
@@ -15140,7 +15125,7 @@ class TransactionService extends RestService {
15140
15125
  */
15141
15126
  listenPropertyForecastUpdate() {
15142
15127
  this.eventDispatcherService.on([AppEventTypeEnum.PROPERTY_UPDATED]).subscribe(() => {
15143
- this.resetCache();
15128
+ this.refreshCache();
15144
15129
  });
15145
15130
  }
15146
15131
  replaceInCache(transactionToReplace) {
@@ -15149,7 +15134,7 @@ class TransactionService extends RestService {
15149
15134
  }
15150
15135
  listenInvoicesPublish() {
15151
15136
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_INVOICE_PUBLISHED).subscribe(() => {
15152
- this.resetCache();
15137
+ this.refreshCache();
15153
15138
  });
15154
15139
  }
15155
15140
  }
@@ -15249,7 +15234,7 @@ class VehicleClaimService extends RestService {
15249
15234
  listenVehicleClaimDetailsChanges() {
15250
15235
  this.eventDispatcherService.on(AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED)
15251
15236
  .subscribe(() => {
15252
- this.resetCache();
15237
+ this.refreshCache();
15253
15238
  });
15254
15239
  }
15255
15240
  /**
@@ -15564,153 +15549,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
15564
15549
  }]
15565
15550
  }] });
15566
15551
 
15567
- /**
15568
- * Service to work with user
15569
- */
15570
- class UserService {
15571
- constructor(http, jwtService, eventDispatcherService, sseService, environment) {
15552
+ class UserService extends RestService$1 {
15553
+ constructor(http, eventDispatcherService, environment) {
15554
+ super(http, eventDispatcherService, environment);
15572
15555
  this.http = http;
15573
- this.jwtService = jwtService;
15574
15556
  this.eventDispatcherService = eventDispatcherService;
15575
- this.sseService = sseService;
15576
15557
  this.environment = environment;
15577
- this.cacheSubject = new ReplaySubject(1);
15578
- this.listenEvents();
15579
- }
15580
- /**
15581
- * never return cache directly to prevent update
15582
- */
15583
- getCache() {
15584
- return clone(this.cache);
15558
+ this.modelClass = User;
15559
+ this.collectionClass = Collection;
15560
+ this.endpointUri = 'users';
15561
+ this.isApiPlatform = false;
15562
+ this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15585
15563
  }
15586
15564
  listenEvents() {
15587
15565
  this.listenServiceSubscriptionUpdated();
15588
15566
  this.listenBasiqConsentUpdated();
15589
15567
  }
15590
- get() {
15591
- if (!this.cache) {
15592
- this.fetch().subscribe(() => { }, (error) => {
15593
- // force logout user (clear localStorage) when get current user return error
15594
- if (error.status === 500) {
15595
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.CURRENT_USER_GET_FAILED, null));
15596
- }
15597
- });
15598
- }
15599
- return this.cacheSubject.asObservable();
15600
- }
15601
- /**
15602
- * Get current user
15603
- */
15604
15568
  fetch() {
15605
- return this.http.get(`${this.environment.apiV2}/users/current`)
15606
- .pipe(map((userBase) => {
15607
- const user = plainToClass(User, userBase);
15608
- // @TODO Vik remove
15609
- localStorage.setItem('userId', user.id.toString());
15610
- localStorage.setItem('financialYear', user.financialYear.toString());
15611
- this.cache = user;
15612
- this.cacheSubject.next(this.cache);
15613
- return user;
15569
+ return super.fetch(`${this.apiUrl}/current`).pipe(map((users) => {
15570
+ localStorage.setItem('userId', this.getCacheFirst().id.toString());
15571
+ localStorage.setItem('financialYear', this.getCacheFirst().financialYear.toString());
15572
+ return users;
15614
15573
  }));
15615
15574
  }
15616
- /**
15617
- * Register new user
15618
- */
15619
15575
  register(data) {
15620
- return this.http.post(`${this.environment.apiV2}/users/registration`, data);
15576
+ return this.http.post(`${this.apiUrl}/registration`, data);
15621
15577
  }
15622
- /**
15623
- * Update user
15624
- */
15625
- update(user) {
15626
- return this.http.put(`${this.environment.apiV2}/users/${user.id}`, user)
15627
- .pipe(map((userBase) => {
15628
- this.cache = plainToClass(User, userBase);
15629
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.USER_UPDATED, null));
15630
- this.cacheSubject.next(this.cache);
15631
- }));
15632
- }
15633
- /**
15634
- * Change user password
15635
- */
15636
15578
  changePassword(currentPassword, newPassword) {
15637
- return this.http.put(`${this.environment.apiV2}/users/password/change`, { currentPassword, newPassword });
15579
+ return this.http.put(`${this.apiUrl}/password/change`, { currentPassword, newPassword });
15638
15580
  }
15639
- /**
15640
- * Recovery user password
15641
- */
15642
15581
  recoveryPassword(email) {
15643
- return this.http.put(`${this.environment.apiV2}/users/password/recovery`, { email });
15582
+ return this.http.put(`${this.apiUrl}/password/recovery`, { email });
15644
15583
  }
15645
- /**
15646
- * Reset user password
15647
- */
15648
15584
  resetPassword(newPassword, resetToken) {
15649
- return this.http.put(`${this.environment.apiV2}/users/password/reset`, { newPassword, resetToken });
15585
+ return this.http.put(`${this.apiUrl}/password/reset`, { newPassword, resetToken });
15650
15586
  }
15651
15587
  resendConfirmationEmail(email) {
15652
- return this.http.post(`${this.environment.apiV2}/users/confirmation/resend`, { email });
15588
+ return this.http.post(`${this.apiUrl}/confirmation/resend`, { email });
15653
15589
  }
15654
15590
  /**
15655
15591
  * Confirm registered user
15656
15592
  */
15657
15593
  confirm(verificationCode) {
15658
- return this.http.post(`${this.environment.apiV2}/users/confirmation`, { verificationCode });
15594
+ return this.http.post(`${this.apiUrl}/confirmation`, { verificationCode });
15659
15595
  }
15660
15596
  /**
15661
15597
  * Search existing user
15662
15598
  */
15663
15599
  search(email) {
15664
- return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
15665
- .pipe(map((userBase) => plainToClass(User, userBase)));
15600
+ return this.http.get(`${this.apiUrl}/search?email=${email}`).pipe(map((userBase) => this.createModelInstance(userBase)));
15666
15601
  }
15667
- /**
15668
- * Finish onboarding process
15669
- */
15670
15602
  finishOnboarding(user) {
15671
- return this.http.put(`${this.environment.apiV2}/users/status`, user)
15672
- .pipe(map(() => {
15673
- this.cache = user;
15674
- this.cacheSubject.next(this.cache);
15675
- }));
15603
+ return this.put(user, `${this.apiUrl}/status`);
15676
15604
  }
15677
- /**
15678
- * Update user photo
15679
- */
15680
15605
  updatePhoto(photo) {
15681
- return this.http.post(`${this.environment.apiV2}/users/photo?_method=PUT`, photo)
15682
- .pipe(map((photoUrl) => {
15683
- this.cache = plainToClass(User, Object.assign(this.cache, { photo: photoUrl }));
15684
- this.cacheSubject.next(this.cache);
15606
+ return this.http.post(`${this.apiUrl}/photo?_method=PUT`, photo).pipe(map((photoUrl) => {
15607
+ this.setCache([Object.assign(this.cache, { photo: photoUrl })], true);
15685
15608
  }));
15686
15609
  }
15687
- switchFinancialYear(year) {
15688
- return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
15689
- localStorage.setItem('financialYear', year.toString());
15690
- window.location.reload();
15691
- }));
15692
- }
15693
- /**
15694
- * clear service cache
15695
- */
15696
- resetCache() {
15697
- this.fetch().subscribe();
15698
- }
15699
- /**
15700
- * @TODO Alex refactor, it's not createBasiq
15701
- * Create basiq (if not exist yet) to provide access to basiq api
15702
- */
15703
15610
  createBasiq() {
15704
- var _a;
15705
- // no need to create basiqId if already exist
15706
- // @TODO Alex (TT-2431): move this check to component or separated method
15707
- if ((_a = this.cache) === null || _a === void 0 ? void 0 : _a.basiqId) {
15708
- return of(this.cache.basiqId);
15709
- }
15710
15611
  return this.http.post(`${this.environment.apiV2}/basiq/user`, {})
15711
15612
  .pipe(map((basiqId) => {
15712
- this.cache = plainToClass(User, Object.assign(this.cache, { basiqId }));
15713
- this.cacheSubject.next(this.cache);
15613
+ this.setCache([Object.assign(this.cache, { basiqId })], true);
15714
15614
  return basiqId;
15715
15615
  }));
15716
15616
  }
@@ -15718,32 +15618,16 @@ class UserService {
15718
15618
  * Update cache when user's service subscription is updated
15719
15619
  */
15720
15620
  listenServiceSubscriptionUpdated() {
15721
- this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
15621
+ this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.refreshCache());
15722
15622
  }
15723
15623
  /**
15724
15624
  * Update cache when user's basiq consent flag is updated
15725
15625
  */
15726
15626
  listenBasiqConsentUpdated() {
15727
- this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.resetCache());
15728
- }
15729
- /**
15730
- * @TODO remove when the class refactored on RestService
15731
- * Subscribe to http events and run callback.
15732
- * CSE - Cleint Sent Events
15733
- * @param modelClass
15734
- * @param methods The list of http methods should be listened for
15735
- * @param callback The function to be called when event triggered
15736
- */
15737
- listenCSE(modelClass, methods, callback) {
15738
- callback = callback.bind(this);
15739
- methods.forEach((method) => {
15740
- this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
15741
- callback(data);
15742
- });
15743
- });
15627
+ this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
15744
15628
  }
15745
15629
  }
15746
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15630
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15747
15631
  UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, providedIn: 'root' });
15748
15632
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, decorators: [{
15749
15633
  type: Injectable,
@@ -15751,7 +15635,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
15751
15635
  providedIn: 'root'
15752
15636
  }]
15753
15637
  }], ctorParameters: function () {
15754
- return [{ type: i1.HttpClient }, { type: JwtService }, { type: EventDispatcherService }, { type: SseService }, { type: undefined, decorators: [{
15638
+ return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15639
+ type: Inject,
15640
+ args: ['environment']
15641
+ }] }];
15642
+ } });
15643
+
15644
+ class FinancialYearService {
15645
+ constructor(http, environment) {
15646
+ this.http = http;
15647
+ this.environment = environment;
15648
+ }
15649
+ switch(year) {
15650
+ return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
15651
+ localStorage.setItem('financialYear', year.toString());
15652
+ window.location.reload();
15653
+ }));
15654
+ }
15655
+ }
15656
+ FinancialYearService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15657
+ FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearService, decorators: [{
15659
+ type: Injectable,
15660
+ args: [{
15661
+ providedIn: 'root'
15662
+ }]
15663
+ }], ctorParameters: function () {
15664
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
15755
15665
  type: Inject,
15756
15666
  args: ['environment']
15757
15667
  }] }];
@@ -15768,7 +15678,7 @@ class HoldingService extends RestService$1 {
15768
15678
  this.roles = [UserRolesEnum.HOLDING_TANK];
15769
15679
  }
15770
15680
  listenEvents() {
15771
- this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.resetCache);
15681
+ this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
15772
15682
  }
15773
15683
  }
15774
15684
  HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
@@ -18248,7 +18158,7 @@ class AccountSetupService {
18248
18158
  get() {
18249
18159
  if (!this.cache) {
18250
18160
  this.cache = new AccountSetupItemCollection([]);
18251
- this.clientIncomeTypesService.getSingle()
18161
+ this.clientIncomeTypesService.getFirst()
18252
18162
  .pipe(mergeMap((incomeTypes) => {
18253
18163
  this.clientIncomeTypesId = incomeTypes.id;
18254
18164
  return this.createBatch(incomeTypes);
@@ -18292,7 +18202,7 @@ class AccountSetupService {
18292
18202
  */
18293
18203
  createBatch(incomeTypes) {
18294
18204
  const batch = [];
18295
- const user = this.userService.getCache();
18205
+ const user = this.userService.getCacheFirst();
18296
18206
  // Salary item is completed when user added salary income source
18297
18207
  if (incomeTypes.work && user.hasRoles(UserRolesEnum.WORK_TANK)) {
18298
18208
  batch.push(this.create(AccountSetupItemsEnum.SALARY, this.getIncomeSources(true)),
@@ -18352,7 +18262,7 @@ class AccountSetupService {
18352
18262
  * Show bank feeds item when user has only holding tank
18353
18263
  */
18354
18264
  getBankFeedsItem() {
18355
- const userRoles = this.userService.getCache().roles;
18265
+ const userRoles = this.userService.getCacheFirst().roles;
18356
18266
  const bankFeedsRoles = [UserRolesEnum.PROPERTY_TANK, UserRolesEnum.WORK_TANK, UserRolesEnum.SOLE_TANK];
18357
18267
  if (!intersection(bankFeedsRoles, userRoles).length) {
18358
18268
  return of(null);
@@ -19892,7 +19802,7 @@ class BasiqTokenInterceptor {
19892
19802
  if (!request.url.includes(BasiqService.basiqApiUrl)) {
19893
19803
  return next.handle(request);
19894
19804
  }
19895
- return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
19805
+ return this.basiqTokenService.getFirst().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
19896
19806
  }
19897
19807
  addToken(request, token) {
19898
19808
  return request.clone({
@@ -23667,5 +23577,5 @@ var MessagesEnum;
23667
23577
  * Generated bundle index. Do not edit.
23668
23578
  */
23669
23579
 
23670
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
23580
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
23671
23581
  //# sourceMappingURL=taxtank-core.mjs.map