taxtank-core 0.12.4 → 0.13.0

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 (472) hide show
  1. package/bundles/taxtank-core.umd.js +464 -325
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +44 -28
  4. package/esm2015/lib/collections/income-source.collection.js +1 -8
  5. package/esm2015/lib/collections/report/property/property-report-item-depreciation.collection.js +2 -2
  6. package/esm2015/lib/collections/report/property/property-report-item-transaction.collection.js +2 -2
  7. package/esm2015/lib/collections/subscription/service-subscription.collection.js +17 -0
  8. package/esm2015/lib/db/Enums/subscription/service-payment-status.enum.js +6 -0
  9. package/esm2015/lib/db/Enums/subscription/service-price-list.enum.js +5 -0
  10. package/esm2015/lib/db/Enums/{service-price-recurring-interval.enum.js → subscription/service-price-recurring-interval.enum.js} +1 -1
  11. package/esm2015/lib/db/Enums/subscription/service-price-type.enum.js +6 -0
  12. package/esm2015/lib/db/Enums/subscription/service-product-id.enum.js +10 -0
  13. package/esm2015/lib/db/Enums/subscription/service-product-status.enum.js +6 -0
  14. package/esm2015/lib/db/Enums/{service-subscription-status.enum.js → subscription/service-subscription-status.enum.js} +1 -1
  15. package/esm2015/lib/db/Enums/user-roles.enum.js +1 -2
  16. package/esm2015/lib/db/Models/abstract-model.js +7 -0
  17. package/esm2015/lib/db/Models/address.js +3 -2
  18. package/esm2015/lib/db/Models/bank/bank-account-balance.js +4 -0
  19. package/esm2015/lib/db/Models/bank/bank-account-property.js +4 -0
  20. package/esm2015/lib/db/Models/bank/bank-account.js +4 -0
  21. package/esm2015/lib/db/Models/bank/bank-connection.js +4 -0
  22. package/esm2015/lib/db/Models/bank/bank-transaction-import.js +4 -0
  23. package/esm2015/lib/db/Models/bank/bank-transaction.js +4 -0
  24. package/esm2015/lib/db/Models/bank/bank.js +4 -0
  25. package/esm2015/lib/db/Models/bank/basiq-job.js +4 -0
  26. package/esm2015/lib/db/Models/bank/financial-data-system.js +4 -0
  27. package/esm2015/lib/db/Models/chart-accounts/chart-accounts-depreciation.js +4 -0
  28. package/esm2015/lib/db/Models/chart-accounts/chart-accounts-heading.js +4 -0
  29. package/esm2015/lib/db/Models/chart-accounts/chart-accounts-metadata.js +4 -0
  30. package/esm2015/lib/db/Models/chart-accounts/chart-accounts-value.js +4 -0
  31. package/esm2015/lib/db/Models/chart-accounts/chart-accounts.js +4 -0
  32. package/esm2015/lib/db/Models/country.js +3 -2
  33. package/esm2015/lib/db/Models/depreciation/depreciation-capital-project.js +4 -0
  34. package/esm2015/lib/db/Models/depreciation/depreciation-forecast.js +4 -0
  35. package/esm2015/lib/db/Models/depreciation/depreciation-receipt.js +4 -0
  36. package/esm2015/lib/db/Models/depreciation/depreciation.js +4 -0
  37. package/esm2015/lib/db/Models/document/document-folder.js +4 -0
  38. package/esm2015/lib/db/Models/document/document.js +4 -0
  39. package/esm2015/lib/db/Models/document/property-document.js +10 -0
  40. package/esm2015/lib/db/Models/firm/accountant/tax-review.js +4 -0
  41. package/esm2015/lib/db/Models/firm/accountant/ticket.js +4 -0
  42. package/esm2015/lib/db/Models/firm/chat.js +4 -0
  43. package/esm2015/lib/db/Models/firm/client-invite.js +4 -0
  44. package/esm2015/lib/db/Models/firm/client-movement.js +4 -0
  45. package/esm2015/lib/db/Models/firm/employee-invite.js +4 -0
  46. package/esm2015/lib/db/Models/firm/firm.js +4 -0
  47. package/esm2015/lib/db/Models/firm/message-document.js +4 -0
  48. package/esm2015/lib/db/Models/firm/message.js +4 -0
  49. package/esm2015/lib/db/Models/incomeSource/income-source-forecast.js +4 -0
  50. package/esm2015/lib/db/Models/incomeSource/income-source-type.js +4 -0
  51. package/esm2015/lib/db/Models/incomeSource/income-source.js +4 -0
  52. package/esm2015/lib/db/Models/incomeSource/salary-forecast.js +4 -0
  53. package/esm2015/lib/db/Models/loan/borrowing-expense-loan.js +4 -0
  54. package/esm2015/lib/db/Models/loan/borrowing-expense.js +4 -0
  55. package/esm2015/lib/db/Models/loan/loan-payout.js +4 -0
  56. package/esm2015/lib/db/Models/loan/loan.js +4 -0
  57. package/esm2015/lib/db/Models/phone.js +3 -2
  58. package/esm2015/lib/db/Models/property/property-category-movement.js +3 -2
  59. package/esm2015/lib/db/Models/property/property-category.js +3 -2
  60. package/esm2015/lib/db/Models/property/property-forecast.js +3 -2
  61. package/esm2015/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.js +3 -2
  62. package/esm2015/lib/db/Models/property/property-sale/property-sale.js +3 -2
  63. package/esm2015/lib/db/Models/property/property-sale/tax-exemption-metadata.js +3 -2
  64. package/esm2015/lib/db/Models/property/property-sale/tax-exemption.js +3 -2
  65. package/esm2015/lib/db/Models/property/property-share.js +3 -2
  66. package/esm2015/lib/db/Models/property/property-subscription.js +3 -2
  67. package/esm2015/lib/db/Models/property/property-valuation.js +3 -2
  68. package/esm2015/lib/db/Models/property/property.js +3 -2
  69. package/esm2015/lib/db/Models/service-notification.js +3 -2
  70. package/esm2015/lib/db/Models/sole/sole-forecast.js +4 -0
  71. package/esm2015/lib/db/Models/subscription/service-payment.js +4 -0
  72. package/esm2015/lib/db/Models/subscription/service-price.js +4 -0
  73. package/esm2015/lib/db/Models/subscription/service-product.js +4 -0
  74. package/esm2015/lib/db/Models/subscription/service-subscription-item.js +4 -0
  75. package/esm2015/lib/db/Models/subscription/service-subscription.js +4 -0
  76. package/esm2015/lib/db/Models/tax-return/tax-return-category.js +4 -0
  77. package/esm2015/lib/db/Models/tax-return/tax-return-item.js +4 -0
  78. package/esm2015/lib/db/Models/tax-return/tax-return.js +4 -0
  79. package/esm2015/lib/db/Models/transaction/transaction-allocation.js +4 -0
  80. package/esm2015/lib/db/Models/transaction/transaction-base.js +26 -0
  81. package/esm2015/lib/db/Models/transaction/transaction-metadata.js +4 -0
  82. package/esm2015/lib/db/Models/transaction/transaction-receipt.js +4 -0
  83. package/esm2015/lib/db/Models/transaction/transaction.js +4 -0
  84. package/esm2015/lib/db/Models/user/client-details.js +4 -0
  85. package/esm2015/lib/db/Models/user/client-income-types.js +4 -0
  86. package/esm2015/lib/db/Models/user/employee-details.js +4 -0
  87. package/esm2015/lib/db/Models/user/occupation.js +4 -0
  88. package/esm2015/lib/db/Models/user/registration-invite.js +4 -0
  89. package/esm2015/lib/db/Models/user/user-event-setting.js +4 -0
  90. package/esm2015/lib/db/Models/user/user-event-type-category.js +4 -0
  91. package/esm2015/lib/db/Models/user/user-event-type.js +4 -0
  92. package/esm2015/lib/db/Models/user/user-event.js +4 -0
  93. package/esm2015/lib/db/Models/user/user.js +4 -0
  94. package/esm2015/lib/db/Models/vehicle/vehicle-claim.js +4 -0
  95. package/esm2015/lib/db/Models/vehicle/vehicle-logbook.js +4 -0
  96. package/esm2015/lib/db/Models/vehicle/vehicle.js +4 -0
  97. package/esm2015/lib/interfaces/document.interface.js +1 -1
  98. package/esm2015/lib/models/bank/bank-account-property.js +2 -2
  99. package/esm2015/lib/models/bank/bank-account.js +3 -3
  100. package/esm2015/lib/models/bank/bank-connection.js +2 -2
  101. package/esm2015/lib/models/bank/bank-transaction.js +2 -2
  102. package/esm2015/lib/models/bank/bank.js +2 -2
  103. package/esm2015/lib/models/bank/basiq-job.js +2 -2
  104. package/esm2015/lib/models/borrowing-expense/borrowing-expense-loan.js +2 -2
  105. package/esm2015/lib/models/borrowing-expense/borrowing-expense.js +2 -2
  106. package/esm2015/lib/models/chart-accounts/chart-accounts-depreciation.js +2 -2
  107. package/esm2015/lib/models/chart-accounts/chart-accounts-heading.js +2 -2
  108. package/esm2015/lib/models/chart-accounts/chart-accounts-metadata.js +2 -2
  109. package/esm2015/lib/models/chart-accounts/chart-accounts-value.js +2 -2
  110. package/esm2015/lib/models/chart-accounts/chart-accounts.js +2 -2
  111. package/esm2015/lib/models/chat/chat.js +2 -2
  112. package/esm2015/lib/models/chat/message-document.js +2 -2
  113. package/esm2015/lib/models/chat/message.js +2 -2
  114. package/esm2015/lib/models/client/client-details.js +2 -2
  115. package/esm2015/lib/models/client/client-income-types.js +2 -2
  116. package/esm2015/lib/models/client/client-invite.js +2 -2
  117. package/esm2015/lib/models/client/client-movement.js +2 -2
  118. package/esm2015/lib/models/depreciation/depreciation-capital-project.js +2 -2
  119. package/esm2015/lib/models/depreciation/depreciation-forecast.js +2 -2
  120. package/esm2015/lib/models/depreciation/depreciation-receipt.js +2 -2
  121. package/esm2015/lib/models/depreciation/depreciation.js +2 -2
  122. package/esm2015/lib/models/document/document-folder.js +2 -2
  123. package/esm2015/lib/models/document/document.js +2 -2
  124. package/esm2015/lib/models/employee/employee-details.js +2 -2
  125. package/esm2015/lib/models/employee/employee-invite.js +2 -2
  126. package/esm2015/lib/models/firm/firm.js +2 -2
  127. package/esm2015/lib/models/income-source/income-source-forecast.js +2 -2
  128. package/esm2015/lib/models/income-source/income-source-type.js +2 -2
  129. package/esm2015/lib/models/income-source/income-source.js +2 -2
  130. package/esm2015/lib/models/income-source/salary-forecast.js +2 -2
  131. package/esm2015/lib/models/income-source/sole-forecast.js +2 -2
  132. package/esm2015/lib/models/loan/loan-payout.js +2 -2
  133. package/esm2015/lib/models/loan/loan.js +2 -2
  134. package/esm2015/lib/models/logbook/vehicle-claim.js +2 -2
  135. package/esm2015/lib/models/logbook/vehicle-logbook.js +2 -2
  136. package/esm2015/lib/models/logbook/vehicle.js +2 -2
  137. package/esm2015/lib/models/property/property-document.js +2 -2
  138. package/esm2015/lib/models/property/property.js +1 -1
  139. package/esm2015/lib/models/registration-invite/registration-invite.js +2 -2
  140. package/esm2015/lib/models/service-subscription/service-payment.js +2 -2
  141. package/esm2015/lib/models/service-subscription/service-price.js +2 -2
  142. package/esm2015/lib/models/service-subscription/service-product.js +14 -6
  143. package/esm2015/lib/models/service-subscription/service-subscription-item.js +12 -3
  144. package/esm2015/lib/models/service-subscription/service-subscription.js +29 -12
  145. package/esm2015/lib/models/tax-review/tax-review.js +2 -2
  146. package/esm2015/lib/models/tax-summary/report-item.js +1 -1
  147. package/esm2015/lib/models/transaction/transaction-allocation.js +2 -2
  148. package/esm2015/lib/models/transaction/transaction-metadata.js +2 -2
  149. package/esm2015/lib/models/transaction/transaction-receipt.js +2 -2
  150. package/esm2015/lib/models/transaction/transaction.js +2 -2
  151. package/esm2015/lib/models/user/occupation.js +2 -2
  152. package/esm2015/lib/models/user/user-roles.const.js +1 -2
  153. package/esm2015/lib/models/user/user.js +2 -2
  154. package/esm2015/lib/models/user-event/user-event-setting.js +2 -2
  155. package/esm2015/lib/models/user-event/user-event-type-category.js +2 -2
  156. package/esm2015/lib/models/user-event/user-event-type.js +2 -2
  157. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +1 -1
  158. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +1 -1
  159. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +1 -1
  160. package/esm2015/lib/services/http/bank/bank.service.js +1 -1
  161. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +1 -1
  162. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +1 -1
  163. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +1 -1
  164. package/esm2015/lib/services/http/chat/chat.service.js +1 -1
  165. package/esm2015/lib/services/http/chat/message/message.service.js +1 -1
  166. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +1 -1
  167. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +1 -1
  168. package/esm2015/lib/services/http/depreciation/depreciation.service.js +1 -1
  169. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +1 -1
  170. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +1 -1
  171. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +1 -1
  172. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +1 -1
  173. package/esm2015/lib/services/http/firm/employee/employee.service.js +1 -1
  174. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +1 -1
  175. package/esm2015/lib/services/http/firm/firm.service.js +1 -1
  176. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +1 -1
  177. package/esm2015/lib/services/http/income-source/income-source.service.js +1 -1
  178. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +1 -1
  179. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +1 -1
  180. package/esm2015/lib/services/http/loan/loan.service.js +1 -1
  181. package/esm2015/lib/services/http/property/property-document/property-document.service.js +1 -1
  182. package/esm2015/lib/services/http/rest/rest.service.js +2 -2
  183. package/esm2015/lib/services/http/subscription/service-price.service.js +24 -0
  184. package/esm2015/lib/services/http/subscription/subscription.service.js +5 -48
  185. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +1 -1
  186. package/esm2015/lib/services/http/tax-review/tax-review.service.js +1 -1
  187. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +2 -8
  188. package/esm2015/lib/services/http/transaction/transaction.service.js +1 -1
  189. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +1 -1
  190. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +1 -1
  191. package/esm2015/lib/services/http/user/user.service.js +1 -1
  192. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +1 -1
  193. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +1 -1
  194. package/esm2015/lib/services/http/vehicle/vehicle.service.js +1 -1
  195. package/esm2015/public-api.js +9 -10
  196. package/fesm2015/taxtank-core.js +222 -216
  197. package/fesm2015/taxtank-core.js.map +1 -1
  198. package/lib/collections/collection.d.ts +14 -11
  199. package/lib/collections/income-source.collection.d.ts +0 -5
  200. package/lib/collections/{service-subscription.collection.d.ts → subscription/service-subscription.collection.d.ts} +2 -2
  201. package/lib/db/Enums/{service-payment-status.enum.d.ts → subscription/service-payment-status.enum.d.ts} +0 -0
  202. package/lib/db/Enums/subscription/service-price-list.enum.d.ts +3 -0
  203. package/lib/db/Enums/{service-price-recurring-interval.enum.d.ts → subscription/service-price-recurring-interval.enum.d.ts} +0 -0
  204. package/lib/db/Enums/{service-price-type.enum.d.ts → subscription/service-price-type.enum.d.ts} +0 -0
  205. package/lib/db/Enums/subscription/service-product-id.enum.d.ts +8 -0
  206. package/lib/db/Enums/subscription/service-product-status.enum.d.ts +4 -0
  207. package/lib/db/Enums/{service-subscription-status.enum.d.ts → subscription/service-subscription-status.enum.d.ts} +0 -0
  208. package/lib/db/Enums/user-roles.enum.d.ts +0 -1
  209. package/lib/db/Models/abstract-model.d.ts +3 -0
  210. package/lib/db/Models/address.d.ts +2 -1
  211. package/lib/db/Models/{bank-account-balance.d.ts → bank/bank-account-balance.d.ts} +2 -1
  212. package/lib/db/Models/bank/bank-account-property.d.ts +9 -0
  213. package/lib/db/Models/{bank-account.d.ts → bank/bank-account.d.ts} +6 -5
  214. package/lib/db/Models/{bank-connection.d.ts → bank/bank-connection.d.ts} +4 -3
  215. package/lib/db/Models/{bank-transaction-import.d.ts → bank/bank-transaction-import.d.ts} +2 -1
  216. package/lib/db/Models/{bank-transaction.d.ts → bank/bank-transaction.d.ts} +4 -3
  217. package/lib/db/Models/{bank.d.ts → bank/bank.d.ts} +2 -1
  218. package/lib/db/Models/{basiq-job.d.ts → bank/basiq-job.d.ts} +2 -1
  219. package/lib/db/Models/{financial-data-system.d.ts → bank/financial-data-system.d.ts} +2 -1
  220. package/lib/db/Models/{chart-accounts-depreciation.d.ts → chart-accounts/chart-accounts-depreciation.d.ts} +2 -1
  221. package/lib/db/Models/{chart-accounts-heading.d.ts → chart-accounts/chart-accounts-heading.d.ts} +2 -1
  222. package/lib/db/Models/chart-accounts/chart-accounts-metadata.d.ts +12 -0
  223. package/lib/db/Models/{chart-accounts-value.d.ts → chart-accounts/chart-accounts-value.d.ts} +2 -1
  224. package/lib/db/Models/{chart-accounts.d.ts → chart-accounts/chart-accounts.d.ts} +5 -4
  225. package/lib/db/Models/country.d.ts +2 -1
  226. package/lib/db/Models/depreciation/depreciation-capital-project.d.ts +14 -0
  227. package/lib/db/Models/{depreciation-forecast.d.ts → depreciation/depreciation-forecast.d.ts} +3 -2
  228. package/lib/db/Models/{depreciation-receipt.d.ts → depreciation/depreciation-receipt.d.ts} +2 -1
  229. package/lib/db/Models/{depreciation.d.ts → depreciation/depreciation.d.ts} +9 -9
  230. package/lib/db/Models/{document-folder.d.ts → document/document-folder.d.ts} +3 -2
  231. package/lib/db/Models/{document.d.ts → document/document.d.ts} +2 -1
  232. package/lib/db/Models/document/property-document.d.ts +18 -0
  233. package/lib/db/Models/firm/accountant/tax-review.d.ts +14 -0
  234. package/lib/db/Models/firm/accountant/ticket.d.ts +20 -0
  235. package/lib/db/Models/{chat.d.ts → firm/chat.d.ts} +4 -3
  236. package/lib/db/Models/firm/client-invite.d.ts +17 -0
  237. package/lib/db/Models/firm/client-movement.d.ts +13 -0
  238. package/lib/db/Models/firm/employee-invite.d.ts +10 -0
  239. package/lib/db/Models/{firm.d.ts → firm/firm.d.ts} +7 -6
  240. package/lib/db/Models/{message-document.d.ts → firm/message-document.d.ts} +3 -2
  241. package/lib/db/Models/{message.d.ts → firm/message.d.ts} +4 -3
  242. package/lib/db/Models/{income-source-forecast.d.ts → incomeSource/income-source-forecast.d.ts} +2 -1
  243. package/lib/db/Models/{income-source-type.d.ts → incomeSource/income-source-type.d.ts} +3 -2
  244. package/lib/db/Models/{income-source.d.ts → incomeSource/income-source.d.ts} +5 -4
  245. package/lib/db/Models/{salary-forecast.d.ts → incomeSource/salary-forecast.d.ts} +3 -2
  246. package/lib/db/Models/{borrowing-expense-loan.d.ts → loan/borrowing-expense-loan.d.ts} +3 -2
  247. package/lib/db/Models/loan/borrowing-expense.d.ts +8 -0
  248. package/lib/db/Models/{loan-payout.d.ts → loan/loan-payout.d.ts} +3 -2
  249. package/lib/db/Models/{loan.d.ts → loan/loan.d.ts} +9 -8
  250. package/lib/db/Models/phone.d.ts +2 -1
  251. package/lib/db/Models/property/property-category-movement.d.ts +3 -2
  252. package/lib/db/Models/property/property-category.d.ts +3 -2
  253. package/lib/db/Models/property/property-forecast.d.ts +2 -1
  254. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +2 -1
  255. package/lib/db/Models/property/property-sale/property-sale.d.ts +2 -1
  256. package/lib/db/Models/property/property-sale/tax-exemption-metadata.d.ts +2 -1
  257. package/lib/db/Models/property/property-sale/tax-exemption.d.ts +2 -1
  258. package/lib/db/Models/property/property-share.d.ts +4 -3
  259. package/lib/db/Models/property/property-subscription.d.ts +3 -2
  260. package/lib/db/Models/property/property-valuation.d.ts +3 -2
  261. package/lib/db/Models/property/property.d.ts +6 -5
  262. package/lib/db/Models/service-notification.d.ts +4 -3
  263. package/lib/db/Models/sole/sole-forecast.d.ts +9 -0
  264. package/lib/db/Models/{service-payment.d.ts → subscription/service-payment.d.ts} +3 -2
  265. package/lib/db/Models/{service-price.d.ts → subscription/service-price.d.ts} +4 -3
  266. package/lib/db/Models/subscription/service-product.d.ts +19 -0
  267. package/lib/db/Models/{service-subscription-item.d.ts → subscription/service-subscription-item.d.ts} +2 -1
  268. package/lib/db/Models/{service-subscription.d.ts → subscription/service-subscription.d.ts} +4 -3
  269. package/lib/db/Models/{tax-return-category.d.ts → tax-return/tax-return-category.d.ts} +3 -2
  270. package/lib/db/Models/{tax-return-item.d.ts → tax-return/tax-return-item.d.ts} +2 -1
  271. package/lib/db/Models/{tax-return.d.ts → tax-return/tax-return.d.ts} +2 -1
  272. package/lib/db/Models/transaction/transaction-allocation.d.ts +9 -0
  273. package/lib/db/Models/{transaction-base.d.ts → transaction/transaction-base.d.ts} +4 -3
  274. package/lib/db/Models/{transaction-metadata.d.ts → transaction/transaction-metadata.d.ts} +3 -2
  275. package/lib/db/Models/{transaction-receipt.d.ts → transaction/transaction-receipt.d.ts} +2 -1
  276. package/lib/db/Models/{transaction.d.ts → transaction/transaction.d.ts} +9 -9
  277. package/lib/db/Models/{client-details.d.ts → user/client-details.d.ts} +7 -6
  278. package/lib/db/Models/{client-income-types.d.ts → user/client-income-types.d.ts} +2 -1
  279. package/lib/db/Models/user/employee-details.d.ts +8 -0
  280. package/lib/db/Models/user/occupation.d.ts +6 -0
  281. package/lib/db/Models/{registration-invite.d.ts → user/registration-invite.d.ts} +3 -2
  282. package/lib/db/Models/{user-event-setting.d.ts → user/user-event-setting.d.ts} +2 -1
  283. package/lib/db/Models/user/user-event-type-category.d.ts +5 -0
  284. package/lib/db/Models/{user-event-type.d.ts → user/user-event-type.d.ts} +3 -2
  285. package/lib/db/Models/{user-event.d.ts → user/user-event.d.ts} +3 -2
  286. package/lib/db/Models/{user.d.ts → user/user.d.ts} +14 -13
  287. package/lib/db/Models/vehicle/vehicle-claim.d.ts +14 -0
  288. package/lib/db/Models/{vehicle-logbook.d.ts → vehicle/vehicle-logbook.d.ts} +4 -3
  289. package/lib/db/Models/vehicle/vehicle.d.ts +11 -0
  290. package/lib/models/bank/bank-account-property.d.ts +1 -1
  291. package/lib/models/bank/bank-account.d.ts +2 -2
  292. package/lib/models/bank/bank-connection.d.ts +1 -1
  293. package/lib/models/bank/bank-transaction.d.ts +1 -1
  294. package/lib/models/bank/bank.d.ts +1 -1
  295. package/lib/models/bank/basiq-job.d.ts +1 -1
  296. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts +1 -1
  297. package/lib/models/borrowing-expense/borrowing-expense.d.ts +1 -1
  298. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts +1 -1
  299. package/lib/models/chart-accounts/chart-accounts-heading.d.ts +1 -1
  300. package/lib/models/chart-accounts/chart-accounts-metadata.d.ts +1 -1
  301. package/lib/models/chart-accounts/chart-accounts-value.d.ts +1 -1
  302. package/lib/models/chart-accounts/chart-accounts.d.ts +1 -1
  303. package/lib/models/chat/chat.d.ts +1 -1
  304. package/lib/models/chat/message-document.d.ts +1 -1
  305. package/lib/models/chat/message.d.ts +1 -1
  306. package/lib/models/client/client-details.d.ts +1 -1
  307. package/lib/models/client/client-income-types.d.ts +1 -1
  308. package/lib/models/client/client-invite.d.ts +1 -1
  309. package/lib/models/client/client-movement.d.ts +1 -1
  310. package/lib/models/depreciation/depreciation-capital-project.d.ts +1 -1
  311. package/lib/models/depreciation/depreciation-forecast.d.ts +1 -1
  312. package/lib/models/depreciation/depreciation-receipt.d.ts +1 -1
  313. package/lib/models/depreciation/depreciation.d.ts +3 -3
  314. package/lib/models/document/document-folder.d.ts +1 -1
  315. package/lib/models/document/document.d.ts +1 -1
  316. package/lib/models/employee/employee-details.d.ts +1 -1
  317. package/lib/models/employee/employee-invite.d.ts +1 -1
  318. package/lib/models/firm/firm.d.ts +1 -1
  319. package/lib/models/income-source/income-source-forecast.d.ts +1 -1
  320. package/lib/models/income-source/income-source-type.d.ts +1 -1
  321. package/lib/models/income-source/income-source.d.ts +1 -1
  322. package/lib/models/income-source/salary-forecast.d.ts +1 -1
  323. package/lib/models/income-source/sole-forecast.d.ts +1 -1
  324. package/lib/models/loan/loan-payout.d.ts +1 -1
  325. package/lib/models/loan/loan.d.ts +1 -1
  326. package/lib/models/logbook/vehicle-claim.d.ts +1 -1
  327. package/lib/models/logbook/vehicle-logbook.d.ts +1 -1
  328. package/lib/models/logbook/vehicle.d.ts +1 -1
  329. package/lib/models/property/property-document.d.ts +1 -1
  330. package/lib/models/property/property.d.ts +0 -2
  331. package/lib/models/registration-invite/registration-invite.d.ts +1 -1
  332. package/lib/models/service-subscription/service-payment.d.ts +1 -1
  333. package/lib/models/service-subscription/service-price.d.ts +1 -1
  334. package/lib/models/service-subscription/service-product.d.ts +5 -3
  335. package/lib/models/service-subscription/service-subscription-item.d.ts +1 -1
  336. package/lib/models/service-subscription/service-subscription.d.ts +13 -3
  337. package/lib/models/tax-review/tax-review.d.ts +1 -1
  338. package/lib/models/tax-summary/report-item.d.ts +1 -1
  339. package/lib/models/transaction/transaction-allocation.d.ts +1 -1
  340. package/lib/models/transaction/transaction-metadata.d.ts +1 -1
  341. package/lib/models/transaction/transaction-receipt.d.ts +1 -1
  342. package/lib/models/transaction/transaction.d.ts +1 -1
  343. package/lib/models/user/occupation.d.ts +1 -1
  344. package/lib/models/user/user.d.ts +1 -1
  345. package/lib/models/user-event/user-event-setting.d.ts +1 -1
  346. package/lib/models/user-event/user-event-type-category.d.ts +1 -1
  347. package/lib/models/user-event/user-event-type.d.ts +1 -1
  348. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +1 -1
  349. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +1 -1
  350. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +1 -1
  351. package/lib/services/http/bank/bank.service.d.ts +1 -1
  352. package/lib/services/http/bank/basiq/basiq.service.d.ts +1 -1
  353. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +1 -1
  354. package/lib/services/http/chat/chat.service.d.ts +1 -1
  355. package/lib/services/http/chat/message/message.service.d.ts +1 -1
  356. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -1
  357. package/lib/services/http/document/document-folder/document-folder.service.d.ts +1 -1
  358. package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
  359. package/lib/services/http/firm/client-movement/client-movement.service.d.ts +1 -1
  360. package/lib/services/http/firm/employee/employee.service.d.ts +1 -1
  361. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +1 -1
  362. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts +1 -1
  363. package/lib/services/http/income-source/income-source.service.d.ts +1 -1
  364. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts +1 -1
  365. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +1 -1
  366. package/lib/services/http/loan/loan.service.d.ts +1 -1
  367. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -1
  368. package/lib/services/http/rest/rest.service.d.ts +1 -1
  369. package/lib/services/http/subscription/service-price.service.d.ts +14 -0
  370. package/lib/services/http/subscription/subscription.service.d.ts +2 -9
  371. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts +1 -1
  372. package/lib/services/http/tax-review/tax-review.service.d.ts +1 -1
  373. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts +1 -1
  374. package/lib/services/http/transaction/transaction.service.d.ts +1 -1
  375. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts +1 -1
  376. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts +1 -1
  377. package/lib/services/http/vehicle/vehicle-claim.service.d.ts +1 -1
  378. package/lib/services/http/vehicle/vehicle.service.d.ts +1 -1
  379. package/package.json +1 -1
  380. package/public-api.d.ts +8 -9
  381. package/esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js +0 -20
  382. package/esm2015/lib/collections/service-price.collection.js +0 -10
  383. package/esm2015/lib/collections/service-subscription.collection.js +0 -17
  384. package/esm2015/lib/db/Enums/service-payment-status.enum.js +0 -6
  385. package/esm2015/lib/db/Enums/service-price-type.enum.js +0 -6
  386. package/esm2015/lib/db/Models/bank-account-balance.js +0 -3
  387. package/esm2015/lib/db/Models/bank-account-property.js +0 -3
  388. package/esm2015/lib/db/Models/bank-account.js +0 -3
  389. package/esm2015/lib/db/Models/bank-connection.js +0 -3
  390. package/esm2015/lib/db/Models/bank-transaction-import.js +0 -3
  391. package/esm2015/lib/db/Models/bank-transaction.js +0 -3
  392. package/esm2015/lib/db/Models/bank.js +0 -3
  393. package/esm2015/lib/db/Models/basiq-job.js +0 -3
  394. package/esm2015/lib/db/Models/borrowing-expense-loan.js +0 -3
  395. package/esm2015/lib/db/Models/borrowing-expense.js +0 -3
  396. package/esm2015/lib/db/Models/chart-accounts-depreciation.js +0 -3
  397. package/esm2015/lib/db/Models/chart-accounts-heading.js +0 -3
  398. package/esm2015/lib/db/Models/chart-accounts-metadata.js +0 -3
  399. package/esm2015/lib/db/Models/chart-accounts-value.js +0 -3
  400. package/esm2015/lib/db/Models/chart-accounts.js +0 -3
  401. package/esm2015/lib/db/Models/chat.js +0 -3
  402. package/esm2015/lib/db/Models/client-details.js +0 -3
  403. package/esm2015/lib/db/Models/client-income-types.js +0 -3
  404. package/esm2015/lib/db/Models/client-invite.js +0 -3
  405. package/esm2015/lib/db/Models/client-movement.js +0 -3
  406. package/esm2015/lib/db/Models/depreciation-capital-project.js +0 -3
  407. package/esm2015/lib/db/Models/depreciation-forecast.js +0 -3
  408. package/esm2015/lib/db/Models/depreciation-receipt.js +0 -3
  409. package/esm2015/lib/db/Models/depreciation.js +0 -4
  410. package/esm2015/lib/db/Models/document-folder.js +0 -3
  411. package/esm2015/lib/db/Models/document.js +0 -3
  412. package/esm2015/lib/db/Models/employee-details.js +0 -3
  413. package/esm2015/lib/db/Models/employee-invite.js +0 -3
  414. package/esm2015/lib/db/Models/financial-data-system.js +0 -3
  415. package/esm2015/lib/db/Models/firm.js +0 -3
  416. package/esm2015/lib/db/Models/income-source-forecast.js +0 -3
  417. package/esm2015/lib/db/Models/income-source-type.js +0 -3
  418. package/esm2015/lib/db/Models/income-source.js +0 -3
  419. package/esm2015/lib/db/Models/loan-payout.js +0 -3
  420. package/esm2015/lib/db/Models/loan.js +0 -3
  421. package/esm2015/lib/db/Models/message-document.js +0 -3
  422. package/esm2015/lib/db/Models/message.js +0 -3
  423. package/esm2015/lib/db/Models/occupation.js +0 -3
  424. package/esm2015/lib/db/Models/property/property-document.js +0 -3
  425. package/esm2015/lib/db/Models/registration-invite.js +0 -3
  426. package/esm2015/lib/db/Models/salary-forecast.js +0 -3
  427. package/esm2015/lib/db/Models/service-payment.js +0 -3
  428. package/esm2015/lib/db/Models/service-price.js +0 -3
  429. package/esm2015/lib/db/Models/service-product.js +0 -3
  430. package/esm2015/lib/db/Models/service-subscription-item.js +0 -3
  431. package/esm2015/lib/db/Models/service-subscription.js +0 -3
  432. package/esm2015/lib/db/Models/sole-forecast.js +0 -3
  433. package/esm2015/lib/db/Models/tax-return-category.js +0 -3
  434. package/esm2015/lib/db/Models/tax-return-item.js +0 -3
  435. package/esm2015/lib/db/Models/tax-return.js +0 -3
  436. package/esm2015/lib/db/Models/tax-review.js +0 -3
  437. package/esm2015/lib/db/Models/ticket.js +0 -3
  438. package/esm2015/lib/db/Models/transaction-allocation.js +0 -3
  439. package/esm2015/lib/db/Models/transaction-base.js +0 -25
  440. package/esm2015/lib/db/Models/transaction-metadata.js +0 -3
  441. package/esm2015/lib/db/Models/transaction-receipt.js +0 -3
  442. package/esm2015/lib/db/Models/transaction.js +0 -4
  443. package/esm2015/lib/db/Models/user-event-setting.js +0 -3
  444. package/esm2015/lib/db/Models/user-event-type-category.js +0 -3
  445. package/esm2015/lib/db/Models/user-event-type.js +0 -3
  446. package/esm2015/lib/db/Models/user-event.js +0 -3
  447. package/esm2015/lib/db/Models/user.js +0 -3
  448. package/esm2015/lib/db/Models/vehicle-claim.js +0 -3
  449. package/esm2015/lib/db/Models/vehicle-logbook.js +0 -3
  450. package/esm2015/lib/db/Models/vehicle.js +0 -3
  451. package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +0 -14
  452. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +0 -9
  453. package/lib/collections/service-price.collection.d.ts +0 -6
  454. package/lib/db/Models/bank-account-property.d.ts +0 -8
  455. package/lib/db/Models/borrowing-expense.d.ts +0 -7
  456. package/lib/db/Models/chart-accounts-metadata.d.ts +0 -11
  457. package/lib/db/Models/client-invite.d.ts +0 -16
  458. package/lib/db/Models/client-movement.d.ts +0 -12
  459. package/lib/db/Models/depreciation-capital-project.d.ts +0 -13
  460. package/lib/db/Models/employee-details.d.ts +0 -7
  461. package/lib/db/Models/employee-invite.d.ts +0 -9
  462. package/lib/db/Models/occupation.d.ts +0 -5
  463. package/lib/db/Models/property/property-document.d.ts +0 -13
  464. package/lib/db/Models/service-product.d.ts +0 -12
  465. package/lib/db/Models/sole-forecast.d.ts +0 -8
  466. package/lib/db/Models/tax-review.d.ts +0 -13
  467. package/lib/db/Models/ticket.d.ts +0 -19
  468. package/lib/db/Models/transaction-allocation.d.ts +0 -8
  469. package/lib/db/Models/user-event-type-category.d.ts +0 -4
  470. package/lib/db/Models/vehicle-claim.d.ts +0 -13
  471. package/lib/db/Models/vehicle.d.ts +0 -10
  472. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +0 -10
@@ -874,9 +874,44 @@ class Collection {
874
874
  create(items = []) {
875
875
  return new this.constructor(items);
876
876
  }
877
+ /**
878
+ * Iterator that allow to iterate collection items
879
+ */
880
+ [Symbol.iterator]() {
881
+ return this.items.values();
882
+ }
883
+ get first() {
884
+ return first(this.items);
885
+ }
886
+ get last() {
887
+ return last(this.items);
888
+ }
889
+ push(item) {
890
+ return this.items.push(item);
891
+ }
892
+ replaceBy(path, item) {
893
+ const index = this.findIndexBy(path, get(item, path));
894
+ if (index >= 0) {
895
+ this.items.splice(index, 1, item);
896
+ }
897
+ return this;
898
+ }
899
+ removeBy(path, item) {
900
+ const index = this.findIndexBy(path, get(item, path));
901
+ if (index >= 0) {
902
+ this.items.splice(index, 1);
903
+ }
904
+ return this;
905
+ }
906
+ toArray() {
907
+ return [...this.items];
908
+ }
877
909
  groupBy(path = '') {
878
910
  return new CollectionDictionary(this, path);
879
911
  }
912
+ /**
913
+ * @TODO remove and use dictionary instead
914
+ */
880
915
  indexBy(path) {
881
916
  // Create empty initial object for groups
882
917
  const result = {};
@@ -885,13 +920,6 @@ class Collection {
885
920
  });
886
921
  return result;
887
922
  }
888
- /**
889
- * Iterator that allow to iterate collection items
890
- */
891
- [Symbol.iterator]() {
892
- // .values() returns Iterator instance for array
893
- return this.items.values();
894
- }
895
923
  /**
896
924
  * get collection length
897
925
  */
@@ -904,30 +932,24 @@ class Collection {
904
932
  getIds() {
905
933
  return this.items.map((item) => item['id']);
906
934
  }
907
- findBy(path, value) {
908
- return this.items.find((item) => get(item, path) === value);
909
- }
910
935
  getBy(path, value) {
911
936
  return this.create(this.items.filter((item) => get(item, path) === value));
912
937
  }
913
- /**
914
- * Get single item by id
915
- */
916
- getById(id) {
917
- return this.items.find((item) => item['id'] === id);
918
- }
919
938
  getByIds(ids) {
920
939
  return this.items.filter((item) => ids.includes(item['id']));
921
940
  }
941
+ findBy(path, value) {
942
+ return this.items.find((item) => get(item, path) === value);
943
+ }
944
+ findIndexBy(path, value) {
945
+ return this.items.findIndex((item) => get(item, path) === value);
946
+ }
922
947
  /**
923
948
  * Get total sum of items by field
924
949
  */
925
950
  sumBy(path) {
926
951
  return +this.items.reduce((sum, item) => sum + Number(get(item, path)), 0).toFixed(2);
927
952
  }
928
- toArray() {
929
- return [...this.items];
930
- }
931
953
  /**
932
954
  * Filter items by specific provided callback
933
955
  */
@@ -937,14 +959,8 @@ class Collection {
937
959
  /**
938
960
  * Sort collection items by provided field
939
961
  */
940
- sortBy(field = 'id', isDesc = true) {
941
- sort(this.items, field, isDesc);
942
- }
943
- get first() {
944
- return first(this.items);
945
- }
946
- get last() {
947
- return last(this.items);
962
+ sortBy(filed = 'id', isDesc = true) {
963
+ sort(this.items, filed, isDesc);
948
964
  }
949
965
  getByDateRange(from, to, dateField = 'date') {
950
966
  return this.create(this.items.filter((item) => item[dateField] >= from && item[dateField] <= to));
@@ -1602,13 +1618,6 @@ class IncomeSourceCollection extends Collection {
1602
1618
  filterByTypes(types) {
1603
1619
  return this.items.filter((incomeSource) => types.includes(incomeSource.type));
1604
1620
  }
1605
- /**
1606
- * Get income source by provided Id
1607
- * @param id
1608
- */
1609
- getById(id) {
1610
- return this.items.find((incomeSource) => incomeSource.id === id);
1611
- }
1612
1621
  /**
1613
1622
  * Get income sources list of forecasts
1614
1623
  */
@@ -1909,7 +1918,13 @@ const CHART_ACCOUNTS_CATEGORIES = {
1909
1918
  ]
1910
1919
  };
1911
1920
 
1912
- class TransactionBase {
1921
+ class AbstractModel {
1922
+ hasValue(value, path = 'id') {
1923
+ return get(path) === value;
1924
+ }
1925
+ }
1926
+
1927
+ class TransactionBase extends AbstractModel {
1913
1928
  /**
1914
1929
  * Check if current tank is Property
1915
1930
  */
@@ -1983,7 +1998,7 @@ var ChartAccountsListEnum;
1983
1998
  ChartAccountsListEnum[ChartAccountsListEnum["TAX_OFFSETS_N_R_A_S"] = 571] = "TAX_OFFSETS_N_R_A_S";
1984
1999
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
1985
2000
 
1986
- class DepreciationCapitalProject$1 {
2001
+ class DepreciationCapitalProject$1 extends AbstractModel {
1987
2002
  }
1988
2003
 
1989
2004
  class DepreciationCapitalProject extends DepreciationCapitalProject$1 {
@@ -1992,7 +2007,7 @@ __decorate([
1992
2007
  Type(() => Date)
1993
2008
  ], DepreciationCapitalProject.prototype, "effectiveDate", void 0);
1994
2009
 
1995
- class DepreciationForecast$1 {
2010
+ class DepreciationForecast$1 extends AbstractModel {
1996
2011
  }
1997
2012
 
1998
2013
  class DepreciationForecast extends DepreciationForecast$1 {
@@ -2026,16 +2041,16 @@ class DepreciationForecast extends DepreciationForecast$1 {
2026
2041
  }
2027
2042
  }
2028
2043
 
2029
- class ChartAccounts$1 {
2044
+ class ChartAccounts$1 extends AbstractModel {
2030
2045
  }
2031
2046
 
2032
- class ChartAccountsHeading$1 {
2047
+ class ChartAccountsHeading$1 extends AbstractModel {
2033
2048
  }
2034
2049
 
2035
2050
  class ChartAccountsHeading extends ChartAccountsHeading$1 {
2036
2051
  }
2037
2052
 
2038
- class ChartAccountsMetadata$1 {
2053
+ class ChartAccountsMetadata$1 extends AbstractModel {
2039
2054
  }
2040
2055
 
2041
2056
  var ChartAccountsMetadataListEnum;
@@ -2212,7 +2227,7 @@ __decorate([
2212
2227
  Type(() => ChartAccountsMetadata)
2213
2228
  ], ChartAccounts.prototype, "metadata", void 0);
2214
2229
 
2215
- class BankTransaction$1 {
2230
+ class BankTransaction$1 extends AbstractModel {
2216
2231
  }
2217
2232
 
2218
2233
  var BankTransactionTypeEnum;
@@ -2236,13 +2251,13 @@ var TransactionTypeEnum;
2236
2251
  TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
2237
2252
  })(TransactionTypeEnum || (TransactionTypeEnum = {}));
2238
2253
 
2239
- class Property$1 {
2254
+ class Property$1 extends AbstractModel {
2240
2255
  }
2241
2256
 
2242
- class PropertySubscription$1 {
2257
+ class PropertySubscription$1 extends AbstractModel {
2243
2258
  }
2244
2259
 
2245
- class User$1 {
2260
+ class User$1 extends AbstractModel {
2246
2261
  }
2247
2262
 
2248
2263
  var UserStatusEnum;
@@ -2264,14 +2279,13 @@ var UserRolesEnum;
2264
2279
  UserRolesEnum["SUBSCRIPTION"] = "ROLE_USER_SUBSCRIPTION";
2265
2280
  UserRolesEnum["WORK_TANK"] = "ROLE_USER_WORK";
2266
2281
  UserRolesEnum["PROPERTY_TANK"] = "ROLE_USER_PROPERTY";
2267
- UserRolesEnum["SOLE_TANK"] = "ROLE_USER_SOLE";
2268
2282
  UserRolesEnum["SWITCH_USER"] = "ROLE_PREVIOUS_ADMIN";
2269
2283
  })(UserRolesEnum || (UserRolesEnum = {}));
2270
2284
 
2271
- class Address$1 {
2285
+ class Address$1 extends AbstractModel {
2272
2286
  }
2273
2287
 
2274
- class Country$1 {
2288
+ class Country$1 extends AbstractModel {
2275
2289
  }
2276
2290
 
2277
2291
  class Country extends Country$1 {
@@ -2320,19 +2334,19 @@ const USER_WORK_POSITION = {
2320
2334
  [UserRolesEnum.FIRM_OWNER]: 'Firm Owner'
2321
2335
  };
2322
2336
 
2323
- class ClientDetails$1 {
2337
+ class ClientDetails$1 extends AbstractModel {
2324
2338
  }
2325
2339
 
2326
2340
  class ClientDetails extends ClientDetails$1 {
2327
2341
  }
2328
2342
 
2329
- class EmployeeDetails$1 {
2343
+ class EmployeeDetails$1 extends AbstractModel {
2330
2344
  }
2331
2345
 
2332
- class Firm$1 {
2346
+ class Firm$1 extends AbstractModel {
2333
2347
  }
2334
2348
 
2335
- class Phone$1 {
2349
+ class Phone$1 extends AbstractModel {
2336
2350
  }
2337
2351
 
2338
2352
  var PhoneTypeEnum;
@@ -2381,24 +2395,46 @@ __decorate([
2381
2395
  Type(() => Firm)
2382
2396
  ], EmployeeDetails.prototype, "firm", void 0);
2383
2397
 
2384
- class ServiceSubscription$1 {
2398
+ class ServiceSubscription$1 extends AbstractModel {
2385
2399
  }
2386
2400
 
2387
- class ServiceSubscriptionItem$1 {
2401
+ class ServiceSubscriptionItem$1 extends AbstractModel {
2388
2402
  }
2389
2403
 
2390
- class ServicePrice$1 {
2404
+ class ServicePrice$1 extends AbstractModel {
2391
2405
  }
2392
2406
 
2393
- class ServiceProduct$1 {
2407
+ class ServiceProduct$1 extends AbstractModel {
2394
2408
  }
2395
2409
 
2410
+ var ServiceProductStatusEnum;
2411
+ (function (ServiceProductStatusEnum) {
2412
+ ServiceProductStatusEnum[ServiceProductStatusEnum["ARCHIVED"] = 0] = "ARCHIVED";
2413
+ ServiceProductStatusEnum[ServiceProductStatusEnum["ACTIVE"] = 1] = "ACTIVE";
2414
+ })(ServiceProductStatusEnum || (ServiceProductStatusEnum = {}));
2415
+
2416
+ var ServiceProductIdEnum;
2417
+ (function (ServiceProductIdEnum) {
2418
+ ServiceProductIdEnum[ServiceProductIdEnum["WORK_TANK_OLD"] = 1] = "WORK_TANK_OLD";
2419
+ ServiceProductIdEnum[ServiceProductIdEnum["PROPERTY_OLD"] = 2] = "PROPERTY_OLD";
2420
+ ServiceProductIdEnum[ServiceProductIdEnum["PROPERTY_TANK"] = 3] = "PROPERTY_TANK";
2421
+ ServiceProductIdEnum[ServiceProductIdEnum["WORK_TANK"] = 4] = "WORK_TANK";
2422
+ ServiceProductIdEnum[ServiceProductIdEnum["PROPERTIES"] = 5] = "PROPERTIES";
2423
+ ServiceProductIdEnum[ServiceProductIdEnum["SOLE_TANK"] = 6] = "SOLE_TANK";
2424
+ })(ServiceProductIdEnum || (ServiceProductIdEnum = {}));
2425
+
2396
2426
  class ServiceProduct extends ServiceProduct$1 {
2397
- isProperty() {
2398
- return this.title === 'Property';
2427
+ isProperties() {
2428
+ return [ServiceProductIdEnum.PROPERTY_OLD, ServiceProductIdEnum.PROPERTIES].includes(this.id);
2399
2429
  }
2400
- isWork() {
2401
- return this.title === 'Work Tank';
2430
+ isWorkTank() {
2431
+ return [ServiceProductIdEnum.WORK_TANK_OLD, ServiceProductIdEnum.WORK_TANK].includes(this.id);
2432
+ }
2433
+ isSoleTank() {
2434
+ return this.id === ServiceProductIdEnum.SOLE_TANK;
2435
+ }
2436
+ isArchived() {
2437
+ return this.status === ServiceProductStatusEnum.ARCHIVED;
2402
2438
  }
2403
2439
  }
2404
2440
 
@@ -2408,9 +2444,22 @@ __decorate([
2408
2444
  Type(() => ServiceProduct)
2409
2445
  ], ServicePrice.prototype, "product", void 0);
2410
2446
 
2447
+ var ServicePriceListEnum;
2448
+ (function (ServicePriceListEnum) {
2449
+ ServicePriceListEnum[ServicePriceListEnum["PROPERTIES"] = 5] = "PROPERTIES";
2450
+ })(ServicePriceListEnum || (ServicePriceListEnum = {}));
2451
+
2452
+ /**
2453
+ * backend bd doesn't support dynamic prices, as far as we have just one product like that we keep it hardcoded
2454
+ */
2455
+ const PROPERTY_TANK_PRICE = 9;
2411
2456
  class ServiceSubscriptionItem extends ServiceSubscriptionItem$1 {
2412
2457
  get total() {
2413
- return this.price.amount * this.quantity;
2458
+ let price = this.price.amount * this.quantity;
2459
+ if (this.price.id === ServicePriceListEnum.PROPERTIES) {
2460
+ price += PROPERTY_TANK_PRICE;
2461
+ }
2462
+ return price;
2414
2463
  }
2415
2464
  }
2416
2465
  __decorate([
@@ -2453,14 +2502,14 @@ class ServiceSubscription extends ServiceSubscription$1 {
2453
2502
  return this.items.reduce((sum, item) => sum + item.total, 0);
2454
2503
  }
2455
2504
  get propertyQuantity() {
2456
- return this.propertyTankItem ? this.propertyTankItem.quantity : 0;
2505
+ return this.propertiesItem ? this.propertiesItem.quantity : 0;
2457
2506
  }
2458
2507
  /**
2459
2508
  * get type of subscription
2460
2509
  */
2461
2510
  get type() {
2462
2511
  const workTankProduct = this.items.find((item) => {
2463
- return item.price.product.isWork();
2512
+ return item.price.product.isWorkTank();
2464
2513
  });
2465
2514
  if (!this.workTankItem || !this.isActive) {
2466
2515
  return SubscriptionTypeEnum.WITHOUT_SUBSCRIPTION;
@@ -2469,9 +2518,9 @@ class ServiceSubscription extends ServiceSubscription$1 {
2469
2518
  return SubscriptionTypeEnum.INDIVIDUAL;
2470
2519
  }
2471
2520
  const propertyTankProduct = this.items.find((item) => {
2472
- return item.price.product.isProperty();
2521
+ return item.price.product.isProperties();
2473
2522
  });
2474
- if (!!this.propertyTankItem && propertyTankProduct.quantity === PROPERTY_INVESTOR_MAX_PROPERTIES) {
2523
+ if (!!this.propertiesItem && propertyTankProduct.quantity === PROPERTY_INVESTOR_MAX_PROPERTIES) {
2475
2524
  return SubscriptionTypeEnum.INVESTOR;
2476
2525
  }
2477
2526
  return SubscriptionTypeEnum.INVESTOR_PLUS;
@@ -2488,12 +2537,6 @@ class ServiceSubscription extends ServiceSubscription$1 {
2488
2537
  get description() {
2489
2538
  return SUBSCRIPTION_DESCRIPTION[this.type];
2490
2539
  }
2491
- get workTankItem() {
2492
- return this.items.find((item) => item.price.product.isWork());
2493
- }
2494
- get propertyTankItem() {
2495
- return this.items.find((item) => item.price.product.isProperty());
2496
- }
2497
2540
  /**
2498
2541
  * This check on getIsActive need for firm. Accountant has a endDate, but user has not endDate
2499
2542
  * and for user we add check for endDate
@@ -2538,6 +2581,21 @@ class ServiceSubscription extends ServiceSubscription$1 {
2538
2581
  isTrialExpiring() {
2539
2582
  return this.daysRemain > 0 && this.daysRemain <= this.lastTrialDays;
2540
2583
  }
2584
+ isRenewable() {
2585
+ return !this.isTrial && !this.isArchived() && this.isActive;
2586
+ }
2587
+ /**
2588
+ * @TODO move to collection
2589
+ */
2590
+ get workTankItem() {
2591
+ return this.items.find((item) => item.price.product.isWorkTank());
2592
+ }
2593
+ get soleTankItem() {
2594
+ return this.items.find((item) => item.price.product.isSoleTank());
2595
+ }
2596
+ get propertiesItem() {
2597
+ return this.items.find((item) => item.price.product.isProperties());
2598
+ }
2541
2599
  hasPropertyTank() {
2542
2600
  return !!this.items.find((subscriptionItem) => {
2543
2601
  return subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK);
@@ -2548,6 +2606,14 @@ class ServiceSubscription extends ServiceSubscription$1 {
2548
2606
  return subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK);
2549
2607
  });
2550
2608
  }
2609
+ /**
2610
+ * bought before price updates, active for some time to let customer select a new plan
2611
+ * impossible to update, only prolong or buy new
2612
+ */
2613
+ isArchived() {
2614
+ // subscription with at least one archived product considered as archived
2615
+ return !!this.items.map((item) => item.price.product.isArchived()).length;
2616
+ }
2551
2617
  }
2552
2618
  __decorate([
2553
2619
  Type(() => Date)
@@ -2695,7 +2761,7 @@ __decorate([
2695
2761
  Type(() => User)
2696
2762
  ], PropertySubscription.prototype, "user", void 0);
2697
2763
 
2698
- class PropertyCategory$1 {
2764
+ class PropertyCategory$1 extends AbstractModel {
2699
2765
  }
2700
2766
 
2701
2767
  class PropertyCategory extends PropertyCategory$1 {
@@ -2708,10 +2774,16 @@ class PropertyCategory extends PropertyCategory$1 {
2708
2774
  }
2709
2775
  }
2710
2776
 
2711
- class PropertyValuation$1 {
2777
+ class PropertyValuation$1 extends AbstractModel {
2712
2778
  }
2713
2779
 
2714
- class PropertyDocument$1 {
2780
+ class PropertyDocument$1 extends AbstractModel {
2781
+ getApiUrlPrefix() {
2782
+ return '';
2783
+ }
2784
+ getEntity() {
2785
+ return undefined;
2786
+ }
2715
2787
  }
2716
2788
 
2717
2789
  // @TODO this enum should come from backend
@@ -2769,7 +2841,7 @@ __decorate([
2769
2841
  Exclude()
2770
2842
  ], PropertyValuation.prototype, "documentFile", void 0);
2771
2843
 
2772
- class PropertyForecast$1 {
2844
+ class PropertyForecast$1 extends AbstractModel {
2773
2845
  }
2774
2846
 
2775
2847
  class PropertyForecast extends PropertyForecast$1 {
@@ -2820,7 +2892,7 @@ __decorate([
2820
2892
  Transform(({ value }) => +value)
2821
2893
  ], PropertyForecast.prototype, "marketValue", void 0);
2822
2894
 
2823
- class PropertyCategoryMovement$1 {
2895
+ class PropertyCategoryMovement$1 extends AbstractModel {
2824
2896
  }
2825
2897
 
2826
2898
  class PropertyCategoryMovement extends PropertyCategoryMovement$1 {
@@ -3086,7 +3158,7 @@ __decorate([
3086
3158
  Exclude()
3087
3159
  ], Property.prototype, "documentFile", void 0);
3088
3160
 
3089
- class TransactionReceipt$1 {
3161
+ class TransactionReceipt$1 extends AbstractModel {
3090
3162
  }
3091
3163
 
3092
3164
  class TransactionReceipt extends TransactionReceipt$1 {
@@ -3097,7 +3169,7 @@ class TransactionReceipt extends TransactionReceipt$1 {
3097
3169
  }
3098
3170
  }
3099
3171
 
3100
- class IncomeSource$1 {
3172
+ class IncomeSource$1 extends AbstractModel {
3101
3173
  }
3102
3174
 
3103
3175
  var IncomeSourceTypeEnum;
@@ -3108,7 +3180,7 @@ var IncomeSourceTypeEnum;
3108
3180
  IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 4] = "SOLE";
3109
3181
  })(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
3110
3182
 
3111
- class SalaryForecast$1 {
3183
+ class SalaryForecast$1 extends AbstractModel {
3112
3184
  }
3113
3185
 
3114
3186
  class SalaryForecast extends SalaryForecast$1 {
@@ -3121,7 +3193,7 @@ __decorate([
3121
3193
  Type(() => IncomeSource)
3122
3194
  ], SalaryForecast.prototype, "incomeSource", void 0);
3123
3195
 
3124
- class SoleForecast$1 {
3196
+ class SoleForecast$1 extends AbstractModel {
3125
3197
  }
3126
3198
 
3127
3199
  class SoleForecast extends SoleForecast$1 {
@@ -3134,7 +3206,7 @@ __decorate([
3134
3206
  Type(() => IncomeSource)
3135
3207
  ], SoleForecast.prototype, "incomeSource", void 0);
3136
3208
 
3137
- class IncomeSourceForecast$1 {
3209
+ class IncomeSourceForecast$1 extends AbstractModel {
3138
3210
  }
3139
3211
 
3140
3212
  var SalaryForecastFrequencyEnum;
@@ -3145,7 +3217,7 @@ var SalaryForecastFrequencyEnum;
3145
3217
  SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
3146
3218
  })(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
3147
3219
 
3148
- class IncomeSourceType$1 {
3220
+ class IncomeSourceType$1 extends AbstractModel {
3149
3221
  }
3150
3222
 
3151
3223
  var IncomeSourceTypeListSalaryEnum;
@@ -3273,7 +3345,7 @@ __decorate([
3273
3345
  Type(() => Date)
3274
3346
  ], IncomeSource.prototype, "dateTo", void 0);
3275
3347
 
3276
- class TransactionMetadata$1 {
3348
+ class TransactionMetadata$1 extends AbstractModel {
3277
3349
  }
3278
3350
 
3279
3351
  class TransactionMetadata extends TransactionMetadata$1 {
@@ -3282,7 +3354,7 @@ __decorate([
3282
3354
  Type(() => ChartAccountsMetadata)
3283
3355
  ], TransactionMetadata.prototype, "metadata", void 0);
3284
3356
 
3285
- class Loan$1 {
3357
+ class Loan$1 extends AbstractModel {
3286
3358
  }
3287
3359
 
3288
3360
  var LoanRepaymentTypeEnum;
@@ -3308,7 +3380,7 @@ __decorate([
3308
3380
  Type(() => Date)
3309
3381
  ], LoanPayment.prototype, "date", void 0);
3310
3382
 
3311
- class LoanPayout$1 {
3383
+ class LoanPayout$1 extends AbstractModel {
3312
3384
  }
3313
3385
 
3314
3386
  var LoanPayoutTypeEnum;
@@ -3356,7 +3428,7 @@ __decorate([
3356
3428
  Type(() => LoanPayout)
3357
3429
  ], Loan.prototype, "payout", void 0);
3358
3430
 
3359
- class TransactionAllocation$1 {
3431
+ class TransactionAllocation$1 extends AbstractModel {
3360
3432
  }
3361
3433
 
3362
3434
  class TransactionAllocation extends TransactionAllocation$1 {
@@ -3915,7 +3987,7 @@ class PropertyReportItemTransactionCollection extends PropertyReportItemCollecti
3915
3987
  properties.items.forEach((property) => {
3916
3988
  const transactionsDictionary = new CollectionDictionary(transactions.getByPropertiesIds([property.id]), 'chartAccounts.id');
3917
3989
  transactionsDictionary.keys.map((chartAccountId) => {
3918
- this.items.push(new PropertyReportItemTransaction(transactionsDictionary.get(chartAccountId), property, chartAccounts.getById(+chartAccountId)));
3990
+ this.items.push(new PropertyReportItemTransaction(transactionsDictionary.get(chartAccountId), property, chartAccounts.findBy('id', +chartAccountId)));
3919
3991
  });
3920
3992
  });
3921
3993
  }
@@ -3952,52 +4024,12 @@ class PropertyReportItemDepreciationCollection extends PropertyReportItemCollect
3952
4024
  properties.items.forEach((property) => {
3953
4025
  const depreciationsByType = new CollectionDictionary(depreciations, 'type');
3954
4026
  depreciationsByType.keys.map((type) => {
3955
- this.items.push(new PropertyReportItemDepreciation(depreciationsByType.get(type), property, chartAccounts.getById(depreciationsByType.get(type).first.chartAccounts.id)));
4027
+ this.items.push(new PropertyReportItemDepreciation(depreciationsByType.get(type), property, chartAccounts.findBy('id', depreciationsByType.get(type).first.chartAccounts.id)));
3956
4028
  });
3957
4029
  });
3958
4030
  }
3959
4031
  }
3960
4032
 
3961
- /**
3962
- * Vehicle expense for logbook section
3963
- */
3964
- class VehicleExpense {
3965
- constructor(amount, claimPercent, description) {
3966
- this.amount = amount;
3967
- this.claimPercent = claimPercent;
3968
- this.description = description;
3969
- }
3970
- getClaimAmount() {
3971
- return +(this.amount * (this.claimPercent / 100)).toFixed(2);
3972
- }
3973
- }
3974
-
3975
- class VehicleExpenseCollection extends Collection {
3976
- constructor(transactions, depreciations, vehicleClaim) {
3977
- super();
3978
- this.setItems(transactions, depreciations, vehicleClaim);
3979
- }
3980
- setItems(transactions, depreciations, vehicleClaim) {
3981
- this.items = [];
3982
- const transactionsByChartAccounts = new CollectionDictionary(transactions, 'chartAccounts.name');
3983
- const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => {
3984
- return new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName);
3985
- });
3986
- // group all depreciations into one expense item
3987
- const depreciationExpense = new VehicleExpense(depreciations.getCurrentYearForecastAmount(), vehicleClaim.workUsage, 'Depreciation');
3988
- this.items.push(...[depreciationExpense, ...transactionExpenses]);
3989
- }
3990
- }
3991
-
3992
- class ServicePriceCollection extends Collection {
3993
- get work() {
3994
- return this.items.filter((price) => price.product.isWork())[0];
3995
- }
3996
- get property() {
3997
- return this.items.filter((price) => price.product.isProperty())[0];
3998
- }
3999
- }
4000
-
4001
4033
  class ServiceSubscriptionCollection extends Collection {
4002
4034
  get individual() {
4003
4035
  return this.items.filter((subscription) => subscription.isIndividual())[0];
@@ -4835,7 +4867,7 @@ var VehicleLogbookPurposeEnum;
4835
4867
  class AccountSetupItem {
4836
4868
  }
4837
4869
 
4838
- class Bank$1 {
4870
+ class Bank$1 extends AbstractModel {
4839
4871
  }
4840
4872
 
4841
4873
  class Bank extends Bank$1 {
@@ -4850,13 +4882,13 @@ class Bank extends Bank$1 {
4850
4882
  }
4851
4883
  }
4852
4884
 
4853
- class BankAccount$1 {
4885
+ class BankAccount$1 extends AbstractModel {
4854
4886
  }
4855
4887
 
4856
- class BankAccountBalance {
4888
+ class BankAccountBalance extends AbstractModel {
4857
4889
  }
4858
4890
 
4859
- class BankAccountProperty$1 {
4891
+ class BankAccountProperty$1 extends AbstractModel {
4860
4892
  }
4861
4893
 
4862
4894
  class BankAccountProperty extends BankAccountProperty$1 {
@@ -4865,10 +4897,10 @@ __decorate([
4865
4897
  Type(() => Property)
4866
4898
  ], BankAccountProperty.prototype, "property", void 0);
4867
4899
 
4868
- class BankConnection$1 {
4900
+ class BankConnection$1 extends AbstractModel {
4869
4901
  }
4870
4902
 
4871
- class BasiqJob$1 {
4903
+ class BasiqJob$1 extends AbstractModel {
4872
4904
  }
4873
4905
 
4874
4906
  class BasiqJob extends BasiqJob$1 {
@@ -5224,13 +5256,13 @@ class BasiqToken {
5224
5256
  }
5225
5257
  }
5226
5258
 
5227
- class BorrowingExpense$1 {
5259
+ class BorrowingExpense$1 extends AbstractModel {
5228
5260
  }
5229
5261
 
5230
5262
  class BorrowingExpense extends BorrowingExpense$1 {
5231
5263
  }
5232
5264
 
5233
- class BorrowingExpenseLoan$1 {
5265
+ class BorrowingExpenseLoan$1 extends AbstractModel {
5234
5266
  }
5235
5267
 
5236
5268
  class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
@@ -5253,7 +5285,7 @@ __decorate([
5253
5285
  Type(() => ChartSerie)
5254
5286
  ], ChartData.prototype, "data", void 0);
5255
5287
 
5256
- class ChartAccountsDepreciation$1 {
5288
+ class ChartAccountsDepreciation$1 extends AbstractModel {
5257
5289
  }
5258
5290
 
5259
5291
  class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
@@ -5275,13 +5307,13 @@ var ChartAccountsTaxLabelsEnum;
5275
5307
  ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
5276
5308
  })(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
5277
5309
 
5278
- class ChartAccountsValue$1 {
5310
+ class ChartAccountsValue$1 extends AbstractModel {
5279
5311
  }
5280
5312
 
5281
5313
  class ChartAccountsValue extends ChartAccountsValue$1 {
5282
5314
  }
5283
5315
 
5284
- class Chat$1 {
5316
+ class Chat$1 extends AbstractModel {
5285
5317
  }
5286
5318
 
5287
5319
  class Chat extends Chat$1 {
@@ -5308,10 +5340,10 @@ var ChatViewTypeEnum;
5308
5340
  ChatViewTypeEnum[ChatViewTypeEnum["ATTACHMENTS"] = 1] = "ATTACHMENTS";
5309
5341
  })(ChatViewTypeEnum || (ChatViewTypeEnum = {}));
5310
5342
 
5311
- class Message$1 {
5343
+ class Message$1 extends AbstractModel {
5312
5344
  }
5313
5345
 
5314
- class MessageDocument$1 {
5346
+ class MessageDocument$1 extends AbstractModel {
5315
5347
  }
5316
5348
 
5317
5349
  class MessageDocument extends MessageDocument$1 {
@@ -5362,7 +5394,7 @@ __decorate([
5362
5394
  Expose()
5363
5395
  ], Message.prototype, "documents", void 0);
5364
5396
 
5365
- class ClientIncomeTypes$1 {
5397
+ class ClientIncomeTypes$1 extends AbstractModel {
5366
5398
  }
5367
5399
 
5368
5400
  class ClientIncomeTypes extends ClientIncomeTypes$1 {
@@ -5374,10 +5406,10 @@ class ClientIncomeTypes extends ClientIncomeTypes$1 {
5374
5406
  }
5375
5407
  }
5376
5408
 
5377
- class ClientInvite$1 {
5409
+ class ClientInvite$1 extends AbstractModel {
5378
5410
  }
5379
5411
 
5380
- class RegistrationInvite$1 {
5412
+ class RegistrationInvite$1 extends AbstractModel {
5381
5413
  }
5382
5414
 
5383
5415
  class RegistrationInvite extends RegistrationInvite$1 {
@@ -5448,7 +5480,7 @@ __decorate([
5448
5480
  Type(() => RegistrationInvite)
5449
5481
  ], ClientInvite.prototype, "registrationInvite", void 0);
5450
5482
 
5451
- class ClientMovement$1 {
5483
+ class ClientMovement$1 extends AbstractModel {
5452
5484
  }
5453
5485
 
5454
5486
  class ClientMovement extends ClientMovement$1 {
@@ -5628,7 +5660,7 @@ const DEPRECIATION_GROUPS = {
5628
5660
  }
5629
5661
  };
5630
5662
 
5631
- class DepreciationReceipt$1 {
5663
+ class DepreciationReceipt$1 extends AbstractModel {
5632
5664
  }
5633
5665
 
5634
5666
  class DepreciationReceipt extends DepreciationReceipt$1 {
@@ -5639,7 +5671,7 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
5639
5671
  }
5640
5672
  }
5641
5673
 
5642
- class Document$1 {
5674
+ class Document$1 extends AbstractModel {
5643
5675
  }
5644
5676
 
5645
5677
  /**
@@ -5694,7 +5726,7 @@ const DOCUMENT_FILE_TYPES = {
5694
5726
  ]
5695
5727
  };
5696
5728
 
5697
- class DocumentFolder$1 {
5729
+ class DocumentFolder$1 extends AbstractModel {
5698
5730
  }
5699
5731
 
5700
5732
  class DocumentFolder extends DocumentFolder$1 {
@@ -5703,7 +5735,7 @@ __decorate([
5703
5735
  Type(() => Document)
5704
5736
  ], DocumentFolder.prototype, "documents", void 0);
5705
5737
 
5706
- class EmployeeInvite$1 {
5738
+ class EmployeeInvite$1 extends AbstractModel {
5707
5739
  }
5708
5740
 
5709
5741
  class EmployeeInvite extends EmployeeInvite$1 {
@@ -5870,10 +5902,10 @@ const WORK_TANK_LOGBOOK_PURPOSE_OPTIONS = [
5870
5902
  { label: 'Personal', value: VehicleLogbookPurposeEnum.PERSONAL }
5871
5903
  ];
5872
5904
 
5873
- class Vehicle$1 {
5905
+ class Vehicle$1 extends AbstractModel {
5874
5906
  }
5875
5907
 
5876
- class VehicleLogbook$1 {
5908
+ class VehicleLogbook$1 extends AbstractModel {
5877
5909
  }
5878
5910
 
5879
5911
  class VehicleLogbook extends VehicleLogbook$1 {
@@ -5906,7 +5938,7 @@ __decorate([
5906
5938
  Type(() => VehicleLogbook)
5907
5939
  ], Vehicle.prototype, "logbook", void 0);
5908
5940
 
5909
- class VehicleClaim$1 {
5941
+ class VehicleClaim$1 extends AbstractModel {
5910
5942
  }
5911
5943
 
5912
5944
  const WEEKS_IN_YEAR = 52;
@@ -5991,7 +6023,7 @@ class VehicleClaim extends VehicleClaim$1 {
5991
6023
  }
5992
6024
  }
5993
6025
 
5994
- class ServiceNotification {
6026
+ class ServiceNotification extends AbstractModel {
5995
6027
  }
5996
6028
 
5997
6029
  class Notification extends ServiceNotification {
@@ -6312,7 +6344,7 @@ class PropertyEquityChartData {
6312
6344
  }
6313
6345
  }
6314
6346
 
6315
- class PropertyShare$1 {
6347
+ class PropertyShare$1 extends AbstractModel {
6316
6348
  }
6317
6349
 
6318
6350
  class PropertyShare extends PropertyShare$1 {
@@ -6356,10 +6388,10 @@ __decorate([
6356
6388
  Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
6357
6389
  ], PropertyShare.prototype, "email", void 0);
6358
6390
 
6359
- class PropertySale$1 {
6391
+ class PropertySale$1 extends AbstractModel {
6360
6392
  }
6361
6393
 
6362
- class PropertySaleTaxExemptionMetadata$1 {
6394
+ class PropertySaleTaxExemptionMetadata$1 extends AbstractModel {
6363
6395
  }
6364
6396
 
6365
6397
  class PropertySale extends PropertySale$1 {
@@ -6377,13 +6409,13 @@ __decorate([
6377
6409
  Type(() => PropertySaleTaxExemptionMetadata$1)
6378
6410
  ], PropertySale.prototype, "taxExemptionMetadata", void 0);
6379
6411
 
6380
- class TaxExemption$1 {
6412
+ class TaxExemption$1 extends AbstractModel {
6381
6413
  }
6382
6414
 
6383
6415
  class TaxExemption extends TaxExemption$1 {
6384
6416
  }
6385
6417
 
6386
- class TaxExemptionMetadata$1 {
6418
+ class TaxExemptionMetadata$1 extends AbstractModel {
6387
6419
  }
6388
6420
 
6389
6421
  class TaxExemptionMetadata extends TaxExemptionMetadata$1 {
@@ -6404,7 +6436,7 @@ const MODULE_URL_LIST = {
6404
6436
  myAccount: '/client/my-account/subscription'
6405
6437
  };
6406
6438
 
6407
- class ServicePayment$1 {
6439
+ class ServicePayment$1 extends AbstractModel {
6408
6440
  }
6409
6441
 
6410
6442
  class ServicePayment extends ServicePayment$1 {
@@ -6413,7 +6445,7 @@ __decorate([
6413
6445
  Type(() => ServiceSubscription)
6414
6446
  ], ServicePayment.prototype, "subscription", void 0);
6415
6447
 
6416
- class TaxReview$1 {
6448
+ class TaxReview$1 extends AbstractModel {
6417
6449
  }
6418
6450
 
6419
6451
  class TaxReview extends TaxReview$1 {
@@ -6661,7 +6693,7 @@ var MyAccountHistoryTypeEnum;
6661
6693
  MyAccountHistoryTypeEnum[MyAccountHistoryTypeEnum["UPLOAD_DOCUMENT"] = 2] = "UPLOAD_DOCUMENT";
6662
6694
  })(MyAccountHistoryTypeEnum || (MyAccountHistoryTypeEnum = {}));
6663
6695
 
6664
- class Occupation$1 {
6696
+ class Occupation$1 extends AbstractModel {
6665
6697
  }
6666
6698
 
6667
6699
  class Occupation extends Occupation$1 {
@@ -6676,7 +6708,6 @@ const USER_ROLES = {
6676
6708
  ROLE_USER_SUBSCRIPTION: [UserRolesEnum.SUBSCRIPTION],
6677
6709
  ROLE_USER_WORK: [UserRolesEnum.WORK_TANK],
6678
6710
  ROLE_USER_PROPERTY: [UserRolesEnum.PROPERTY_TANK],
6679
- ROLE_USER_SOLE: [UserRolesEnum.SOLE_TANK],
6680
6711
  ROLE_PREVIOUS_ADMIN: [UserRolesEnum.SWITCH_USER]
6681
6712
  };
6682
6713
 
@@ -6686,16 +6717,16 @@ const USER_ROLES = {
6686
6717
  class UserToRegister {
6687
6718
  }
6688
6719
 
6689
- class UserEventTypeCategory$1 {
6720
+ class UserEventTypeCategory$1 extends AbstractModel {
6690
6721
  }
6691
6722
 
6692
6723
  class UserEventTypeCategory extends UserEventTypeCategory$1 {
6693
6724
  }
6694
6725
 
6695
- class UserEventSetting$1 {
6726
+ class UserEventSetting$1 extends AbstractModel {
6696
6727
  }
6697
6728
 
6698
- class UserEventType$1 {
6729
+ class UserEventType$1 extends AbstractModel {
6699
6730
  }
6700
6731
 
6701
6732
  class UserEventType extends UserEventType$1 {
@@ -6942,7 +6973,7 @@ class RestService {
6942
6973
  * get instance by id from cache
6943
6974
  * @param id ID of required item
6944
6975
  */
6945
- getById(id) {
6976
+ findById(id) {
6946
6977
  return this.get()
6947
6978
  .pipe(map((items) => {
6948
6979
  return items.find((item) => item['id'] === id);
@@ -7451,11 +7482,7 @@ class TransactionAllocationService extends RestService {
7451
7482
  * Reset cache on transactions created
7452
7483
  */
7453
7484
  onTransactionsCreated() {
7454
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTIONS_CREATED).subscribe((transactions) => {
7455
- // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
7456
- if (transactions[0].isTransfer) {
7457
- return;
7458
- }
7485
+ this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTIONS_CREATED).subscribe(() => {
7459
7486
  // Update allocations cache to synchronize data and fire subscriptions
7460
7487
  this.resetCache();
7461
7488
  });
@@ -7465,7 +7492,6 @@ class TransactionAllocationService extends RestService {
7465
7492
  */
7466
7493
  onDepreciationCreated() {
7467
7494
  this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATIONS_CREATED).subscribe(() => {
7468
- // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time depreciations changed
7469
7495
  // Update allocations cache to synchronize data and fire subscriptions
7470
7496
  this.resetCache();
7471
7497
  });
@@ -7475,7 +7501,6 @@ class TransactionAllocationService extends RestService {
7475
7501
  */
7476
7502
  onTransactionDeleted() {
7477
7503
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
7478
- // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
7479
7504
  // Update allocations cache to synchronize data and fire subscriptions
7480
7505
  this.resetCache();
7481
7506
  });
@@ -10453,55 +10478,16 @@ class SubscriptionService {
10453
10478
  }
10454
10479
  return this.serviceSubscriptionSubject.asObservable();
10455
10480
  }
10456
- /**
10457
- * @TODO right now we have only monthly prices, the function should be refactored to support other options in future
10458
- *
10459
- * create available subscription plans based on existing products
10460
- */
10461
- getSubscriptionPlans() {
10462
- if (!this._serviceSubscriptions) {
10463
- this.http.get(`${this.environment.apiV2}/service-prices`)
10464
- .pipe(map((response) => {
10465
- return new ServicePriceCollection(response['hydra:member'].map((item) => plainToClass(ServicePrice, item)));
10466
- }))
10467
- .subscribe((prices) => {
10468
- this._serviceSubscriptions = new ServiceSubscriptionCollection([
10469
- plainToClass(ServiceSubscription, { items: [] }),
10470
- plainToClass(ServiceSubscription, {
10471
- items: [plainToClass(ServiceSubscriptionItem, {
10472
- price: prices.property,
10473
- quantity: 2
10474
- })]
10475
- }),
10476
- plainToClass(ServiceSubscription, {
10477
- items: [plainToClass(ServiceSubscriptionItem, {
10478
- price: prices.property,
10479
- quantity: 3
10480
- })]
10481
- })
10482
- ]);
10483
- this._serviceSubscriptions.items.forEach((subscription) => {
10484
- subscription.items.push(plainToClass(ServiceSubscriptionItem, { price: prices.work, quantity: 1 }));
10485
- });
10486
- this.serviceSubscriptionsSubject.next(this._serviceSubscriptions);
10487
- });
10488
- }
10489
- return this.serviceSubscriptionsSubject.asObservable();
10490
- }
10491
10481
  /**
10492
10482
  * redirect to stripe payment page
10493
10483
  */
10494
- checkoutRedirect(subscription, successUrl, cancelUrl) {
10484
+ checkoutRedirect(subscription) {
10495
10485
  return __awaiter(this, void 0, void 0, function* () {
10496
10486
  const stripe = yield loadStripe(this.environment.stripePk);
10497
- // @TODO vik
10498
- const lineItems = subscription.items.map((item) => {
10499
- return { servicePriceId: item.price.id, quantity: item.quantity };
10500
- });
10501
10487
  this.http.post(`${this.environment.apiV2}/stripe/checkout-session`, {
10502
- lineItems,
10503
- successUrl: successUrl,
10504
- cancelUrl: cancelUrl
10488
+ items: subscription.items,
10489
+ successUrl: window.location.href,
10490
+ cancelUrl: window.location.href
10505
10491
  })
10506
10492
  .subscribe((session) => {
10507
10493
  // @Todo remove user TRIAL status
@@ -10564,6 +10550,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
10564
10550
  args: ['environment']
10565
10551
  }] }]; } });
10566
10552
 
10553
+ /**
10554
+ * Service that handling banks logic
10555
+ */
10556
+ class ServicePriceService extends RestService {
10557
+ constructor() {
10558
+ super(...arguments);
10559
+ this.modelClass = ServicePrice;
10560
+ this.url = 'service-prices';
10561
+ this.isHydra = true;
10562
+ }
10563
+ }
10564
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10565
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
10566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, decorators: [{
10567
+ type: Injectable,
10568
+ args: [{
10569
+ providedIn: 'root'
10570
+ }]
10571
+ }] });
10572
+
10567
10573
  /**
10568
10574
  * Service to work with tax review
10569
10575
  */
@@ -11487,5 +11493,5 @@ class VehicleClaimForm extends AbstractForm {
11487
11493
  * Generated bundle index. Do not edit.
11488
11494
  */
11489
11495
 
11490
- export { AbstractForm, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSalaryEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, Occupation, OccupationService, PasswordForm, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyHoldingCostsService, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceTypeEnum, ServiceProduct, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
11496
+ export { AbstractForm, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSalaryEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, Occupation, OccupationService, PasswordForm, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyHoldingCostsService, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
11491
11497
  //# sourceMappingURL=taxtank-core.js.map