taxtank-core 0.30.143 → 0.31.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 (1230) hide show
  1. package/esm2020/lib/collections/collection.mjs +2 -2
  2. package/esm2020/lib/db/Models/depreciation/depreciation.mjs +1 -1
  3. package/esm2020/lib/db/Models/document/document-folder.mjs +1 -1
  4. package/esm2020/lib/db/Models/document/document.mjs +1 -1
  5. package/esm2020/lib/db/Models/document/property-document.mjs +1 -7
  6. package/esm2020/lib/db/Models/firm/firm.mjs +1 -1
  7. package/esm2020/lib/db/Models/index.mjs +1 -3
  8. package/esm2020/lib/db/Models/property/property-valuation.mjs +3 -8
  9. package/esm2020/lib/db/Models/property/property.mjs +1 -1
  10. package/esm2020/lib/db/Models/sole/sole-business.mjs +1 -1
  11. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +10 -7
  12. package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
  13. package/esm2020/lib/db/Models/user/user.mjs +1 -1
  14. package/esm2020/lib/forms/document-folder/document-folder.form.mjs +11 -0
  15. package/esm2020/lib/forms/document-folder/document.form.mjs +11 -0
  16. package/esm2020/lib/forms/document-folder/index.mjs +3 -0
  17. package/esm2020/lib/forms/firm/firm.form.mjs +17 -0
  18. package/esm2020/lib/forms/firm/index.mjs +2 -0
  19. package/esm2020/lib/forms/index.mjs +3 -1
  20. package/esm2020/lib/forms/property/index.mjs +5 -2
  21. package/esm2020/lib/forms/property/property-document.form.mjs +14 -0
  22. package/esm2020/lib/forms/property/property-edit.form.mjs +17 -0
  23. package/esm2020/lib/forms/property/property-valuation.form.mjs +17 -0
  24. package/esm2020/lib/forms/sole/sole-business.form.mjs +4 -3
  25. package/esm2020/lib/forms/transaction/transaction-base.form.mjs +4 -7
  26. package/esm2020/lib/forms/user/client-details.form.mjs +34 -0
  27. package/esm2020/lib/forms/user/index.mjs +3 -1
  28. package/esm2020/lib/forms/user/user.form.mjs +15 -0
  29. package/esm2020/lib/functions/get-doc-icon.mjs +2 -2
  30. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  31. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
  32. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  33. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
  34. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  35. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  36. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  37. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  38. package/esm2020/lib/interfaces/asset-type.enum.mjs +1 -3
  39. package/esm2020/lib/interfaces/document.interface.mjs +1 -1
  40. package/esm2020/lib/interfaces/documentable.interface.mjs +1 -1
  41. package/esm2020/lib/interfaces/fileable.interface.mjs +2 -0
  42. package/esm2020/lib/interfaces/index.mjs +2 -3
  43. package/esm2020/lib/models/bank/bank.mjs +5 -10
  44. package/esm2020/lib/models/chat/message-document.mjs +4 -3
  45. package/esm2020/lib/models/depreciation/depreciation.mjs +1 -1
  46. package/esm2020/lib/models/depreciation/index.mjs +1 -2
  47. package/esm2020/lib/models/document/document-folder.mjs +1 -7
  48. package/esm2020/lib/models/document/document.mjs +12 -19
  49. package/esm2020/lib/models/endpoint/endpoints.const.mjs +7 -8
  50. package/esm2020/lib/models/event/app-event-type.enum.mjs +45 -53
  51. package/esm2020/lib/models/file/file.mjs +5 -1
  52. package/esm2020/lib/models/firm/firm.mjs +5 -13
  53. package/esm2020/lib/models/property/property-document.mjs +12 -12
  54. package/esm2020/lib/models/property/property-valuation.mjs +2 -5
  55. package/esm2020/lib/models/property/property.mjs +5 -13
  56. package/esm2020/lib/models/registration-invite/registration-invite.mjs +7 -7
  57. package/esm2020/lib/models/sole/sole-business.mjs +6 -8
  58. package/esm2020/lib/models/sole/sole-contact.mjs +5 -8
  59. package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
  60. package/esm2020/lib/models/transaction/index.mjs +1 -2
  61. package/esm2020/lib/models/transaction/transaction.mjs +1 -5
  62. package/esm2020/lib/models/user/user.mjs +6 -14
  63. package/esm2020/lib/services/account-setup/account-setup.service.mjs +3 -3
  64. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  65. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  66. package/esm2020/lib/services/auth/auth.service.mjs +3 -3
  67. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  68. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  69. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  70. package/esm2020/lib/services/data.service.mjs +3 -3
  71. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  72. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  73. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  74. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  75. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  76. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
  77. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  78. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
  79. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  80. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  81. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
  82. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  83. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  84. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  85. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  86. package/esm2020/lib/services/http/chat/message-document.service.mjs +5 -5
  87. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  88. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  89. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  90. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  91. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +7 -55
  92. package/esm2020/lib/services/http/depreciation/index.mjs +1 -2
  93. package/esm2020/lib/services/http/document/document-folder/document-folder-messages.enum.mjs +8 -0
  94. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +9 -59
  95. package/esm2020/lib/services/http/document/document-folder/index.mjs +3 -0
  96. package/esm2020/lib/services/http/document/document-messages.enum.mjs +8 -0
  97. package/esm2020/lib/services/http/document/document.service.mjs +10 -6
  98. package/esm2020/lib/services/http/document/index.mjs +3 -2
  99. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  100. package/esm2020/lib/services/http/file/file.service.mjs +10 -4
  101. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  102. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
  103. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  104. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  105. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  106. package/esm2020/lib/services/http/firm/firm-messages.enum.mjs +6 -0
  107. package/esm2020/lib/services/http/firm/firm.service.mjs +4 -12
  108. package/esm2020/lib/services/http/firm/index.mjs +2 -1
  109. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  110. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  111. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  112. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  113. package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
  114. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  115. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
  116. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  117. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
  118. package/esm2020/lib/services/http/index.mjs +1 -2
  119. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  120. package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
  121. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  122. package/esm2020/lib/services/http/property/index.mjs +3 -1
  123. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  124. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  125. package/esm2020/lib/services/http/property/property-document/index.mjs +2 -1
  126. package/esm2020/lib/services/http/property/property-document/property-document-messages.enum.mjs +8 -0
  127. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +7 -6
  128. package/esm2020/lib/services/http/property/property-messages.enum.mjs +6 -0
  129. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  130. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
  131. package/esm2020/lib/services/http/property/property-valuation/index.mjs +3 -0
  132. package/esm2020/lib/services/http/property/property-valuation/property-valuation-messages.enum.mjs +6 -0
  133. package/esm2020/lib/services/http/property/property-valuation/property-valuation.service.mjs +39 -0
  134. package/esm2020/lib/services/http/property/property.service.mjs +9 -5
  135. package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
  136. package/esm2020/lib/services/http/rest/rest.service.mjs +9 -9
  137. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  138. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  139. package/esm2020/lib/services/http/sole/index.mjs +2 -2
  140. package/esm2020/lib/services/http/sole/sole-business/index.mjs +3 -0
  141. package/esm2020/lib/services/http/sole/sole-business/sole-business-messages.enum.mjs +5 -0
  142. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +5 -28
  143. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  144. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  145. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
  146. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  147. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  148. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
  149. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
  150. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  151. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  152. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  153. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  154. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  155. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  156. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  157. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  158. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  159. package/esm2020/lib/services/http/transaction/index.mjs +1 -2
  160. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  161. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
  162. package/esm2020/lib/services/http/transaction/transaction.service.mjs +6 -43
  163. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  164. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +3 -3
  165. package/esm2020/lib/services/http/user/index.mjs +2 -1
  166. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  167. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  168. package/esm2020/lib/services/http/user/user-messages.enum.mjs +7 -0
  169. package/esm2020/lib/services/http/user/user.service.mjs +3 -3
  170. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  171. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  172. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
  173. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
  174. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  175. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  176. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  177. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  178. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  179. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  180. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  181. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  182. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  183. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  184. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  185. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  186. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  187. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  188. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  189. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  190. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  191. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  192. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  193. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  194. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  195. package/esm2020/lib/tt-core.module.mjs +4 -4
  196. package/esm2020/public-api.mjs +2 -18
  197. package/fesm2015/taxtank-core.mjs +1123 -1305
  198. package/fesm2015/taxtank-core.mjs.map +1 -1
  199. package/fesm2020/taxtank-core.mjs +1110 -1288
  200. package/fesm2020/taxtank-core.mjs.map +1 -1
  201. package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
  202. package/lib/collections/allocation-group.collection.d.ts.map +1 -0
  203. package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
  204. package/lib/collections/asset-sale.collection.d.ts.map +1 -0
  205. package/lib/collections/bank-account.collection.d.ts.map +1 -0
  206. package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
  207. package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
  208. package/lib/collections/chat/chat.collection.d.ts.map +1 -0
  209. package/lib/collections/chat/index.d.ts.map +1 -0
  210. package/lib/collections/chat/message-document.collection.d.ts.map +1 -0
  211. package/lib/collections/chat/message.collection.d.ts.map +1 -0
  212. package/lib/collections/client-invite.collection.d.ts.map +1 -0
  213. package/lib/collections/client-movement.collection.d.ts.map +1 -0
  214. package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
  215. package/lib/collections/client.collection.d.ts.map +1 -0
  216. package/lib/collections/collection-dictionary.d.ts.map +1 -0
  217. package/lib/collections/collection.d.ts.map +1 -0
  218. package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
  219. package/lib/collections/depreciation.collection.d.ts.map +1 -0
  220. package/lib/collections/employee.collection.d.ts.map +1 -0
  221. package/lib/collections/exportable.collection.d.ts.map +1 -0
  222. package/lib/collections/holding/holding-sale.collection.d.ts.map +1 -0
  223. package/lib/collections/holding/holding-type.collection.d.ts.map +1 -0
  224. package/lib/collections/holding/holding.collection.d.ts.map +1 -0
  225. package/lib/collections/holding/index.d.ts.map +1 -0
  226. package/lib/collections/income-source/income-source-forecast.collection.d.ts.map +1 -0
  227. package/lib/collections/income-source/income-source.collection.d.ts.map +1 -0
  228. package/lib/collections/income-source/index.d.ts.map +1 -0
  229. package/lib/collections/index.d.ts.map +1 -0
  230. package/lib/collections/loan/index.d.ts.map +1 -0
  231. package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
  232. package/lib/collections/loan/loan.collection.d.ts.map +1 -0
  233. package/lib/collections/property/index.d.ts.map +1 -0
  234. package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
  235. package/lib/collections/property/property-sale/index.d.ts.map +1 -0
  236. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
  237. package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
  238. package/lib/collections/property/property-share.collection.d.ts.map +1 -0
  239. package/lib/collections/property/property.collection.d.ts.map +1 -0
  240. package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
  241. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
  242. package/lib/collections/report/index.d.ts.map +1 -0
  243. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
  244. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
  245. package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
  246. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
  247. package/lib/collections/sole/index.d.ts.map +1 -0
  248. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
  249. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
  250. package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
  251. package/lib/collections/subscription/index.d.ts.map +1 -0
  252. package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
  253. package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
  254. package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
  255. package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
  256. package/lib/collections/tax-review.collection.d.ts.map +1 -0
  257. package/lib/collections/tax-summary/index.d.ts.map +1 -0
  258. package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
  259. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
  260. package/lib/collections/transaction/index.d.ts.map +1 -0
  261. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
  262. package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
  263. package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
  264. package/lib/collections/user-event-type-collection.d.ts.map +1 -0
  265. package/lib/collections/vehicle/index.d.ts.map +1 -0
  266. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
  267. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
  268. package/lib/db/Enums/address-type.enum.d.ts.map +1 -0
  269. package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +1 -0
  270. package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +1 -0
  271. package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +1 -0
  272. package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +1 -0
  273. package/lib/db/Enums/annual-frequency.enum.d.ts.map +1 -0
  274. package/lib/db/Enums/bank/bank-account-status.enum.d.ts.map +1 -0
  275. package/lib/db/Enums/bank/bank-account-type.enum.d.ts.map +1 -0
  276. package/lib/db/Enums/bank/bank-connection-status.enum.d.ts.map +1 -0
  277. package/lib/db/Enums/bank/bank-popular.enum.d.ts.map +1 -0
  278. package/lib/db/Enums/bank/bank-provider.enum.d.ts.map +1 -0
  279. package/lib/db/Enums/bank/bank-transaction-type.enum.d.ts.map +1 -0
  280. package/lib/db/Enums/bank/index.d.ts.map +1 -0
  281. package/lib/db/Enums/bank/loan/index.d.ts.map +1 -0
  282. package/lib/db/Enums/bank/loan/loan-bank-type.enum.d.ts.map +1 -0
  283. package/lib/db/Enums/bank/loan/loan-frequency.enum.d.ts.map +1 -0
  284. package/lib/db/Enums/bank/loan/loan-interest-type-label.enum.d.ts.map +1 -0
  285. package/lib/db/Enums/bank/loan/loan-interest-type.enum.d.ts.map +1 -0
  286. package/lib/db/Enums/bank/loan/loan-payout-type.enum.d.ts.map +1 -0
  287. package/lib/db/Enums/bank/loan/loan-repayment-frequency.enum.d.ts.map +1 -0
  288. package/lib/db/Enums/bank/loan/loan-repayment-type-label.enum.d.ts.map +1 -0
  289. package/lib/db/Enums/bank/loan/loan-repayment-type.enum.d.ts.map +1 -0
  290. package/lib/db/Enums/bank/loan/loan-type.enum.d.ts.map +1 -0
  291. package/lib/db/Enums/bank/loan/loan-vehicle-type.enum.d.ts.map +1 -0
  292. package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +1 -0
  293. package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +1 -0
  294. package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +1 -0
  295. package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +1 -0
  296. package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +1 -0
  297. package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +1 -0
  298. package/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.d.ts.map +1 -0
  299. package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts.map +1 -0
  300. package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +1 -0
  301. package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +1 -0
  302. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +1 -0
  303. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +1 -0
  304. package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +1 -0
  305. package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +1 -0
  306. package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +1 -0
  307. package/lib/db/Enums/chart-accounts/index.d.ts.map +1 -0
  308. package/lib/db/Enums/chat-status.enum.d.ts.map +1 -0
  309. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +1 -0
  310. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +1 -0
  311. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +1 -0
  312. package/lib/db/Enums/client-invite-status.enum.d.ts.map +1 -0
  313. package/lib/db/Enums/client-invite-type.enum.d.ts.map +1 -0
  314. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +1 -0
  315. package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +1 -0
  316. package/lib/db/Enums/depreciation-type.enum.d.ts.map +1 -0
  317. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
  318. package/lib/db/Enums/document-type.enum.d.ts.map +1 -0
  319. package/lib/db/Enums/file-type.enum.d.ts.map +1 -0
  320. package/lib/db/Enums/firm-type.enum.d.ts.map +1 -0
  321. package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +1 -0
  322. package/lib/db/Enums/income-source/income-source-forecast-trust-type.enum.d.ts.map +1 -0
  323. package/lib/db/Enums/income-source/income-source-type-list-holding.enum.d.ts.map +1 -0
  324. package/lib/db/Enums/income-source/income-source-type-list-other.enum.d.ts.map +1 -0
  325. package/lib/db/Enums/income-source/income-source-type-list-sole.enum.d.ts.map +1 -0
  326. package/lib/db/Enums/income-source/income-source-type-list-work.enum.d.ts.map +1 -0
  327. package/lib/db/Enums/income-source/income-source-type.enum.d.ts.map +1 -0
  328. package/lib/db/Enums/income-source/index.d.ts.map +1 -0
  329. package/lib/db/Enums/index.d.ts.map +1 -0
  330. package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
  331. package/lib/db/Enums/phone-type.enum.d.ts.map +1 -0
  332. package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
  333. package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +1 -0
  334. package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +1 -0
  335. package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +1 -0
  336. package/lib/db/Enums/property/property-share-access.enum.d.ts.map +1 -0
  337. package/lib/db/Enums/property/property-share-status.enum.d.ts.map +1 -0
  338. package/lib/db/Enums/registration-invite-status.enum.d.ts.map +1 -0
  339. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +1 -0
  340. package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
  341. package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
  342. package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +1 -0
  343. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +1 -0
  344. package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +1 -0
  345. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +1 -0
  346. package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +1 -0
  347. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
  348. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
  349. package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +1 -0
  350. package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +1 -0
  351. package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +1 -0
  352. package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +1 -0
  353. package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +1 -0
  354. package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +1 -0
  355. package/lib/db/Enums/tank-type.enum.d.ts.map +1 -0
  356. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +1 -0
  357. package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +1 -0
  358. package/lib/db/Enums/tax-return/index.d.ts.map +1 -0
  359. package/lib/db/Enums/tax-return/tax-return-category-list.enum.d.ts.map +1 -0
  360. package/lib/db/Enums/tax-return/tax-return-category-section.enum.d.ts.map +1 -0
  361. package/lib/db/Enums/tax-return/tax-return-item.enum.d.ts.map +1 -0
  362. package/lib/db/Enums/tax-review-status.enum.d.ts.map +1 -0
  363. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
  364. package/lib/db/Enums/tax-summary-section.enum.d.ts.map +1 -0
  365. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
  366. package/lib/db/Enums/ticket-feedback.enum.d.ts.map +1 -0
  367. package/lib/db/Enums/ticket-status.enum.d.ts.map +1 -0
  368. package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
  369. package/lib/db/Enums/transaction-operation.enum.d.ts.map +1 -0
  370. package/lib/db/Enums/transaction-source.enum.d.ts.map +1 -0
  371. package/lib/db/Enums/transaction-type.enum.d.ts.map +1 -0
  372. package/lib/db/Enums/user-event-status.enum.d.ts.map +1 -0
  373. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
  374. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
  375. package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +1 -0
  376. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
  377. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
  378. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
  379. package/lib/db/Enums/user-roles.enum.d.ts.map +1 -0
  380. package/lib/db/Enums/user-status.enum.d.ts.map +1 -0
  381. package/lib/db/Enums/user-title.enum.d.ts.map +1 -0
  382. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
  383. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
  384. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +1 -0
  385. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +1 -0
  386. package/lib/db/Models/abstract-model.d.ts.map +1 -0
  387. package/lib/db/Models/address.d.ts.map +1 -0
  388. package/lib/db/Models/bank/bank-account-balance.d.ts.map +1 -0
  389. package/lib/db/Models/bank/bank-account-property.d.ts.map +1 -0
  390. package/lib/db/Models/bank/bank-account.d.ts.map +1 -0
  391. package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
  392. package/lib/db/Models/bank/bank-transaction-import.d.ts.map +1 -0
  393. package/lib/db/Models/bank/bank-transaction.d.ts.map +1 -0
  394. package/lib/db/Models/bank/bank.d.ts.map +1 -0
  395. package/lib/db/Models/bank/basiq-job-step.enum.d.ts.map +1 -0
  396. package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
  397. package/lib/db/Models/budget/budget-rule.d.ts.map +1 -0
  398. package/lib/db/Models/budget/budget.d.ts.map +1 -0
  399. package/lib/db/Models/budget/index.d.ts.map +1 -0
  400. package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  401. package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  402. package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  403. package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  404. package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +1 -0
  405. package/lib/db/Models/client/annual-client-details.d.ts.map +1 -0
  406. package/lib/db/Models/client/client-details.d.ts.map +1 -0
  407. package/lib/db/Models/client/client-income-types.d.ts.map +1 -0
  408. package/lib/db/Models/client/index.d.ts.map +1 -0
  409. package/lib/db/Models/client/occupation.d.ts.map +1 -0
  410. package/lib/db/Models/country.d.ts.map +1 -0
  411. package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  412. package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +1 -0
  413. package/lib/db/Models/depreciation/depreciation.d.ts +0 -2
  414. package/lib/db/Models/depreciation/depreciation.d.ts.map +1 -0
  415. package/lib/db/Models/document/document-base.d.ts.map +1 -0
  416. package/lib/db/Models/document/document-folder.d.ts +1 -2
  417. package/lib/db/Models/document/document-folder.d.ts.map +1 -0
  418. package/lib/db/Models/document/document.d.ts.map +1 -0
  419. package/lib/db/Models/document/property-document.d.ts +6 -5
  420. package/lib/db/Models/document/property-document.d.ts.map +1 -0
  421. package/lib/db/Models/file.d.ts.map +1 -0
  422. package/lib/db/Models/firm/accountant/tax-review.d.ts.map +1 -0
  423. package/lib/db/Models/firm/accountant/ticket.d.ts.map +1 -0
  424. package/lib/db/Models/firm/chat.d.ts.map +1 -0
  425. package/lib/db/Models/firm/client-invite.d.ts.map +1 -0
  426. package/lib/db/Models/firm/client-movement.d.ts.map +1 -0
  427. package/lib/db/Models/firm/employee-invite.d.ts.map +1 -0
  428. package/lib/db/Models/firm/firm-invite.d.ts.map +1 -0
  429. package/lib/db/Models/firm/firm.d.ts +2 -0
  430. package/lib/db/Models/firm/firm.d.ts.map +1 -0
  431. package/lib/db/Models/firm/message-document.d.ts.map +1 -0
  432. package/lib/db/Models/firm/message.d.ts.map +1 -0
  433. package/lib/db/Models/holding/holding-sale.d.ts.map +1 -0
  434. package/lib/db/Models/holding/holding-type-exchange.d.ts.map +1 -0
  435. package/lib/db/Models/holding/holding-type.d.ts.map +1 -0
  436. package/lib/db/Models/holding/holding.d.ts.map +1 -0
  437. package/lib/db/Models/holding/index.d.ts.map +1 -0
  438. package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +1 -0
  439. package/lib/db/Models/incomeSource/income-source-type.d.ts.map +1 -0
  440. package/lib/db/Models/incomeSource/income-source.d.ts.map +1 -0
  441. package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +1 -0
  442. package/lib/db/Models/index.d.ts +0 -2
  443. package/lib/db/Models/index.d.ts.map +1 -0
  444. package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +1 -0
  445. package/lib/db/Models/loan/borrowing-expense.d.ts.map +1 -0
  446. package/lib/db/Models/loan/loan-payout.d.ts.map +1 -0
  447. package/lib/db/Models/loan/loan.d.ts.map +1 -0
  448. package/lib/db/Models/observable-model.d.ts.map +1 -0
  449. package/lib/db/Models/phone.d.ts.map +1 -0
  450. package/lib/db/Models/property/borrowing-report.d.ts.map +1 -0
  451. package/lib/db/Models/property/property-category-movement.d.ts.map +1 -0
  452. package/lib/db/Models/property/property-category.d.ts.map +1 -0
  453. package/lib/db/Models/property/property-forecast.d.ts.map +1 -0
  454. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  455. package/lib/db/Models/property/property-sale/property-sale.d.ts.map +1 -0
  456. package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  457. package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +1 -0
  458. package/lib/db/Models/property/property-share.d.ts.map +1 -0
  459. package/lib/db/Models/property/property-subscription.d.ts.map +1 -0
  460. package/lib/db/Models/property/property-valuation.d.ts +2 -2
  461. package/lib/db/Models/property/property-valuation.d.ts.map +1 -0
  462. package/lib/db/Models/property/property.d.ts +2 -0
  463. package/lib/db/Models/property/property.d.ts.map +1 -0
  464. package/lib/db/Models/service-notification.d.ts.map +1 -0
  465. package/lib/db/Models/sole/bas-report.d.ts.map +1 -0
  466. package/lib/db/Models/sole/sole-business-activity.d.ts.map +1 -0
  467. package/lib/db/Models/sole/sole-business-allocation.d.ts.map +1 -0
  468. package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  469. package/lib/db/Models/sole/sole-business-loss.d.ts.map +1 -0
  470. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  471. package/lib/db/Models/sole/sole-business.d.ts.map +1 -0
  472. package/lib/db/Models/sole/sole-contact.d.ts.map +1 -0
  473. package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +1 -0
  474. package/lib/db/Models/sole/sole-details.d.ts.map +1 -0
  475. package/lib/db/Models/sole/sole-forecast.d.ts.map +1 -0
  476. package/lib/db/Models/sole/sole-invoice-item.d.ts.map +1 -0
  477. package/lib/db/Models/sole/sole-invoice-template.d.ts.map +1 -0
  478. package/lib/db/Models/sole/sole-invoice.d.ts.map +1 -0
  479. package/lib/db/Models/spare/spare-document-category.d.ts.map +1 -0
  480. package/lib/db/Models/spare/spare-document.d.ts.map +1 -0
  481. package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
  482. package/lib/db/Models/subscription/service-payment.d.ts.map +1 -0
  483. package/lib/db/Models/subscription/service-price.d.ts.map +1 -0
  484. package/lib/db/Models/subscription/service-product.d.ts.map +1 -0
  485. package/lib/db/Models/subscription/service-subscription-item.d.ts.map +1 -0
  486. package/lib/db/Models/subscription/service-subscription.d.ts.map +1 -0
  487. package/lib/db/Models/tax-calculation.d.ts.map +1 -0
  488. package/lib/db/Models/tax-return/index.d.ts.map +1 -0
  489. package/lib/db/Models/tax-return/tax-return-category.d.ts.map +1 -0
  490. package/lib/db/Models/tax-return/tax-return-item.d.ts.map +1 -0
  491. package/lib/db/Models/tax-return/tax-return.d.ts.map +1 -0
  492. package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
  493. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  494. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  495. package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
  496. package/lib/db/Models/transaction/transaction-allocation.d.ts.map +1 -0
  497. package/lib/db/Models/transaction/transaction-base.d.ts +5 -7
  498. package/lib/db/Models/transaction/transaction-base.d.ts.map +1 -0
  499. package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +1 -0
  500. package/lib/db/Models/transaction/transaction.d.ts +0 -2
  501. package/lib/db/Models/transaction/transaction.d.ts.map +1 -0
  502. package/lib/db/Models/user/employee-details.d.ts.map +1 -0
  503. package/lib/db/Models/user/registration-invite.d.ts.map +1 -0
  504. package/lib/db/Models/user/user-event-setting.d.ts.map +1 -0
  505. package/lib/db/Models/user/user-event-type-category.d.ts.map +1 -0
  506. package/lib/db/Models/user/user-event-type.d.ts.map +1 -0
  507. package/lib/db/Models/user/user-event.d.ts.map +1 -0
  508. package/lib/db/Models/user/user.d.ts +2 -1
  509. package/lib/db/Models/user/user.d.ts.map +1 -0
  510. package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  511. package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +1 -0
  512. package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +1 -0
  513. package/lib/db/Models/vehicle/vehicle.d.ts.map +1 -0
  514. package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
  515. package/lib/forms/abstract.form.d.ts.map +1 -0
  516. package/lib/forms/address/address.form.d.ts.map +1 -0
  517. package/lib/forms/address/index.d.ts.map +1 -0
  518. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  519. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  520. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  521. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  522. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  523. package/lib/forms/budget/budget.form.d.ts.map +1 -0
  524. package/lib/forms/budget/index.d.ts.map +1 -0
  525. package/lib/forms/client/annual-client-details.form.d.ts.map +1 -0
  526. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  527. package/lib/forms/client/index.d.ts.map +1 -0
  528. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  529. package/lib/forms/depreciation/index.d.ts.map +1 -0
  530. package/lib/forms/document-folder/document-folder.form.d.ts +5 -0
  531. package/lib/forms/document-folder/document-folder.form.d.ts.map +1 -0
  532. package/lib/forms/document-folder/document.form.d.ts +5 -0
  533. package/lib/forms/document-folder/document.form.d.ts.map +1 -0
  534. package/lib/forms/document-folder/index.d.ts +2 -0
  535. package/lib/forms/document-folder/index.d.ts.map +1 -0
  536. package/lib/forms/firm/firm.form.d.ts +5 -0
  537. package/lib/forms/firm/firm.form.d.ts.map +1 -0
  538. package/lib/forms/firm/index.d.ts +1 -0
  539. package/lib/forms/firm/index.d.ts.map +1 -0
  540. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  541. package/lib/forms/holding/holding-reinvest.form.d.ts.map +1 -0
  542. package/lib/forms/holding/holding-sale.form.d.ts.map +1 -0
  543. package/lib/forms/holding/holding-type.form.d.ts.map +1 -0
  544. package/lib/forms/holding/holding.form.d.ts.map +1 -0
  545. package/lib/forms/holding/index.d.ts.map +1 -0
  546. package/lib/forms/index.d.ts +2 -0
  547. package/lib/forms/index.d.ts.map +1 -0
  548. package/lib/forms/loan/index.d.ts.map +1 -0
  549. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  550. package/lib/forms/login/login.form.d.ts.map +1 -0
  551. package/lib/forms/phone/index.d.ts.map +1 -0
  552. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  553. package/lib/forms/property/borrowing-report.form.d.ts.map +1 -0
  554. package/lib/forms/property/index.d.ts +4 -1
  555. package/lib/forms/property/index.d.ts.map +1 -0
  556. package/lib/forms/property/property-document.form.d.ts +6 -0
  557. package/lib/forms/property/property-document.form.d.ts.map +1 -0
  558. package/lib/forms/property/property-edit.form.d.ts +5 -0
  559. package/lib/forms/property/property-edit.form.d.ts.map +1 -0
  560. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  561. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  562. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  563. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  564. package/lib/forms/property/property-valuation.form.d.ts +6 -0
  565. package/lib/forms/property/property-valuation.form.d.ts.map +1 -0
  566. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  567. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  568. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  569. 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
  570. 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
  571. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  572. 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
  573. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  574. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  575. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  576. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  577. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  578. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  579. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  580. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  581. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  582. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  583. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  584. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  585. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  586. package/lib/forms/sole/index.d.ts.map +1 -0
  587. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  588. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  589. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  590. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  591. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  592. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  593. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  594. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  595. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  596. package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
  597. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
  598. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
  599. package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
  600. package/lib/forms/transaction/holding/holding-income.form.d.ts.map +1 -0
  601. package/lib/forms/transaction/index.d.ts.map +1 -0
  602. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  603. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  604. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  605. package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
  606. package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
  607. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
  608. package/lib/forms/user/client-details.form.d.ts +7 -0
  609. package/lib/forms/user/client-details.form.d.ts.map +1 -0
  610. package/lib/forms/user/index.d.ts +2 -0
  611. package/lib/forms/user/index.d.ts.map +1 -0
  612. package/lib/forms/user/password.form.d.ts.map +1 -0
  613. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  614. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  615. package/lib/forms/user/user.form.d.ts +5 -0
  616. package/lib/forms/user/user.form.d.ts.map +1 -0
  617. package/lib/forms/vehicle/index.d.ts.map +1 -0
  618. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  619. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  620. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  621. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  622. package/lib/functions/array/index.d.ts.map +1 -0
  623. package/lib/functions/array/replace.d.ts.map +1 -0
  624. package/lib/functions/array/sort-deep.d.ts.map +1 -0
  625. package/lib/functions/array/sort.d.ts.map +1 -0
  626. package/lib/functions/array/to-array.d.ts.map +1 -0
  627. package/lib/functions/clone-deep.d.ts.map +1 -0
  628. package/lib/functions/create-date.d.ts.map +1 -0
  629. package/lib/functions/enum-to-list.d.ts.map +1 -0
  630. package/lib/functions/get-doc-icon.d.ts +2 -2
  631. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  632. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  633. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  634. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  635. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
  636. package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
  637. package/lib/interceptors/corelogic-interceptor.d.ts.map +1 -0
  638. package/lib/interceptors/financial-year-interceptor.d.ts.map +1 -0
  639. package/lib/interceptors/interceptors.module.d.ts.map +1 -0
  640. package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
  641. package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
  642. package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
  643. package/lib/interfaces/asset-entity-type.enum.d.ts.map +1 -0
  644. package/lib/interfaces/asset-type.enum.d.ts +0 -2
  645. package/lib/interfaces/asset-type.enum.d.ts.map +1 -0
  646. package/lib/interfaces/asset.interface.d.ts.map +1 -0
  647. package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
  648. package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
  649. package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
  650. package/lib/interfaces/document.interface.d.ts +4 -14
  651. package/lib/interfaces/document.interface.d.ts.map +1 -0
  652. package/lib/interfaces/documentable.interface.d.ts +2 -2
  653. package/lib/interfaces/documentable.interface.d.ts.map +1 -0
  654. package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
  655. package/lib/interfaces/expense.interface.d.ts.map +1 -0
  656. package/lib/interfaces/fileable.interface.d.ts +8 -0
  657. package/lib/interfaces/fileable.interface.d.ts.map +1 -0
  658. package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
  659. package/lib/interfaces/index.d.ts +1 -2
  660. package/lib/interfaces/index.d.ts.map +1 -0
  661. package/lib/interfaces/option.interface.d.ts.map +1 -0
  662. package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
  663. package/lib/interfaces/tank.interface.d.ts.map +1 -0
  664. package/lib/interfaces/updatable.interface.d.ts.map +1 -0
  665. package/lib/messages/index.d.ts.map +1 -0
  666. package/lib/messages/messages.enum.d.ts.map +1 -0
  667. package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
  668. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  669. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  670. package/lib/models/address/address.d.ts.map +1 -0
  671. package/lib/models/address/country.d.ts.map +1 -0
  672. package/lib/models/address/index.d.ts.map +1 -0
  673. package/lib/models/address/states.enum.d.ts.map +1 -0
  674. package/lib/models/asset-sale.d.ts.map +1 -0
  675. package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
  676. package/lib/models/badge/badge.d.ts.map +1 -0
  677. package/lib/models/bank/allocation-group.d.ts.map +1 -0
  678. package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
  679. package/lib/models/bank/bank-account-property.d.ts.map +1 -0
  680. package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
  681. package/lib/models/bank/bank-account.d.ts.map +1 -0
  682. package/lib/models/bank/bank-connection.d.ts.map +1 -0
  683. package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
  684. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
  685. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
  686. package/lib/models/bank/bank-transaction.d.ts.map +1 -0
  687. package/lib/models/bank/bank.d.ts +4 -4
  688. package/lib/models/bank/bank.d.ts.map +1 -0
  689. package/lib/models/bank/basiq/basiq-config.d.ts.map +1 -0
  690. package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +1 -0
  691. package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +1 -0
  692. package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
  693. package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
  694. package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
  695. package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
  696. package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
  697. package/lib/models/bank/basiq/index.d.ts.map +1 -0
  698. package/lib/models/bank/index.d.ts.map +1 -0
  699. package/lib/models/bank/type-loan.const.d.ts.map +1 -0
  700. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
  701. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
  702. package/lib/models/borrowing-expense/index.d.ts.map +1 -0
  703. package/lib/models/budget/budget-rule.d.ts.map +1 -0
  704. package/lib/models/budget/budget.d.ts.map +1 -0
  705. package/lib/models/budget/index.d.ts.map +1 -0
  706. package/lib/models/chart/chart-data.d.ts.map +1 -0
  707. package/lib/models/chart/chart-serie.d.ts.map +1 -0
  708. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
  709. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
  710. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  711. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  712. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  713. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
  714. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  715. package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
  716. package/lib/models/chart-accounts/index.d.ts.map +1 -0
  717. package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
  718. package/lib/models/chat/chat.d.ts.map +1 -0
  719. package/lib/models/chat/index.d.ts.map +1 -0
  720. package/lib/models/chat/message-document.d.ts +2 -1
  721. package/lib/models/chat/message-document.d.ts.map +1 -0
  722. package/lib/models/chat/message.d.ts.map +1 -0
  723. package/lib/models/client/annual-client-details.d.ts.map +1 -0
  724. package/lib/models/client/client-details.d.ts.map +1 -0
  725. package/lib/models/client/client-income-types.d.ts.map +1 -0
  726. package/lib/models/client/client-invite.d.ts.map +1 -0
  727. package/lib/models/client/client-movement.d.ts.map +1 -0
  728. package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
  729. package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
  730. package/lib/models/client/index.d.ts.map +1 -0
  731. package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
  732. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  733. package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
  734. package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
  735. package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
  736. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
  737. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
  738. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
  739. package/lib/models/depreciation/depreciation.d.ts +2 -4
  740. package/lib/models/depreciation/depreciation.d.ts.map +1 -0
  741. package/lib/models/depreciation/index.d.ts +0 -1
  742. package/lib/models/depreciation/index.d.ts.map +1 -0
  743. package/lib/models/dictionary/dictionary.d.ts.map +1 -0
  744. package/lib/models/dictionary/index.d.ts.map +1 -0
  745. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
  746. package/lib/models/document/document-file-types.const.d.ts.map +1 -0
  747. package/lib/models/document/document-folder.d.ts +1 -5
  748. package/lib/models/document/document-folder.d.ts.map +1 -0
  749. package/lib/models/document/document.d.ts +5 -17
  750. package/lib/models/document/document.d.ts.map +1 -0
  751. package/lib/models/document/index.d.ts.map +1 -0
  752. package/lib/models/employee/employee-details.d.ts.map +1 -0
  753. package/lib/models/employee/employee-invite.d.ts.map +1 -0
  754. package/lib/models/endpoint/endpoint.d.ts.map +1 -0
  755. package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
  756. package/lib/models/event/app-event-type.enum.d.ts +44 -52
  757. package/lib/models/event/app-event-type.enum.d.ts.map +1 -0
  758. package/lib/models/event/app-event.d.ts.map +1 -0
  759. package/lib/models/event/index.d.ts.map +1 -0
  760. package/lib/models/export/export-cell-type.enum.d.ts.map +1 -0
  761. package/lib/models/export/export-cell.d.ts.map +1 -0
  762. package/lib/models/export/export-data-table.d.ts.map +1 -0
  763. package/lib/models/export/export-format.enum.d.ts.map +1 -0
  764. package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
  765. package/lib/models/export/export-row.d.ts.map +1 -0
  766. package/lib/models/file/file.d.ts +2 -0
  767. package/lib/models/file/file.d.ts.map +1 -0
  768. package/lib/models/file/icons-file.enum.d.ts.map +1 -0
  769. package/lib/models/file/index.d.ts.map +1 -0
  770. package/lib/models/financial-year/financial-year.d.ts.map +1 -0
  771. package/lib/models/financial-year/index.d.ts.map +1 -0
  772. package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
  773. package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
  774. package/lib/models/financial-year/months.const.d.ts.map +1 -0
  775. package/lib/models/firm/firm.d.ts +4 -10
  776. package/lib/models/firm/firm.d.ts.map +1 -0
  777. package/lib/models/holding/holding-reinvest.d.ts.map +1 -0
  778. package/lib/models/holding/holding-sale.d.ts.map +1 -0
  779. package/lib/models/holding/holding-type-exchange.d.ts.map +1 -0
  780. package/lib/models/holding/holding-type.d.ts.map +1 -0
  781. package/lib/models/holding/holding.d.ts.map +1 -0
  782. package/lib/models/holding/index.d.ts.map +1 -0
  783. package/lib/models/income-position/income-position.d.ts.map +1 -0
  784. package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
  785. package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
  786. package/lib/models/income-source/income-source-type.d.ts.map +1 -0
  787. package/lib/models/income-source/income-source.d.ts.map +1 -0
  788. package/lib/models/income-source/index.d.ts.map +1 -0
  789. package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
  790. package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
  791. package/lib/models/index.d.ts.map +1 -0
  792. package/lib/models/loan/index.d.ts.map +1 -0
  793. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
  794. package/lib/models/loan/loan-payment.d.ts.map +1 -0
  795. package/lib/models/loan/loan-payout.d.ts.map +1 -0
  796. package/lib/models/loan/loan.d.ts.map +1 -0
  797. package/lib/models/notification/index.d.ts.map +1 -0
  798. package/lib/models/notification/notification.d.ts.map +1 -0
  799. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
  800. package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
  801. package/lib/models/phone/phone.d.ts.map +1 -0
  802. package/lib/models/property/borrowing-report.d.ts.map +1 -0
  803. package/lib/models/property/calculation-form-item.d.ts.map +1 -0
  804. package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
  805. package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
  806. package/lib/models/property/corelogic-suggestion.d.ts.map +1 -0
  807. package/lib/models/property/index.d.ts.map +1 -0
  808. package/lib/models/property/property-category-movement.d.ts.map +1 -0
  809. package/lib/models/property/property-category.d.ts.map +1 -0
  810. package/lib/models/property/property-document.d.ts +5 -10
  811. package/lib/models/property/property-document.d.ts.map +1 -0
  812. package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
  813. package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
  814. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
  815. package/lib/models/property/property-forecast.d.ts.map +1 -0
  816. package/lib/models/property/property-sale/index.d.ts.map +1 -0
  817. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
  818. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  819. package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
  820. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  821. package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
  822. package/lib/models/property/property-share.d.ts.map +1 -0
  823. package/lib/models/property/property-subscription.d.ts.map +1 -0
  824. package/lib/models/property/property-valuation.d.ts +0 -1
  825. package/lib/models/property/property-valuation.d.ts.map +1 -0
  826. package/lib/models/property/property.d.ts +4 -10
  827. package/lib/models/property/property.d.ts.map +1 -0
  828. package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
  829. package/lib/models/registration-invite/registration-invite.d.ts +4 -4
  830. package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
  831. package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
  832. package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
  833. package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
  834. package/lib/models/report/depreciation/index.d.ts.map +1 -0
  835. package/lib/models/report/index.d.ts.map +1 -0
  836. package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
  837. package/lib/models/report/my-tax/index.d.ts.map +1 -0
  838. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
  839. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
  840. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
  841. 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
  842. 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
  843. 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
  844. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
  845. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
  846. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
  847. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
  848. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
  849. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
  850. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
  851. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
  852. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
  853. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
  854. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
  855. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
  856. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
  857. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
  858. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
  859. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
  860. package/lib/models/report/property/index.d.ts.map +1 -0
  861. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
  862. package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
  863. package/lib/models/report/property/property-report-item.d.ts.map +1 -0
  864. package/lib/models/report/sole/index.d.ts.map +1 -0
  865. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
  866. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
  867. package/lib/models/service-subscription/index.d.ts.map +1 -0
  868. package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
  869. package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
  870. package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
  871. package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
  872. package/lib/models/service-subscription/service-price.d.ts.map +1 -0
  873. package/lib/models/service-subscription/service-product.d.ts.map +1 -0
  874. package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +1 -0
  875. package/lib/models/service-subscription/service-promo-code.d.ts.map +1 -0
  876. package/lib/models/service-subscription/service-subscription-item.d.ts.map +1 -0
  877. package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
  878. package/lib/models/sole/bas-report.d.ts.map +1 -0
  879. package/lib/models/sole/index.d.ts.map +1 -0
  880. package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
  881. package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
  882. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  883. package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
  884. package/lib/models/sole/sole-business.d.ts +4 -4
  885. package/lib/models/sole/sole-business.d.ts.map +1 -0
  886. package/lib/models/sole/sole-contact.d.ts +4 -4
  887. package/lib/models/sole/sole-contact.d.ts.map +1 -0
  888. package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
  889. package/lib/models/sole/sole-details.d.ts.map +1 -0
  890. package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
  891. package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
  892. package/lib/models/sole/sole-invoice.d.ts.map +1 -0
  893. package/lib/models/tax-return/index.d.ts.map +1 -0
  894. package/lib/models/tax-return/tax-return-category.d.ts.map +1 -0
  895. package/lib/models/tax-return/tax-return-item.d.ts.map +1 -0
  896. package/lib/models/tax-return/tax-return.d.ts.map +1 -0
  897. package/lib/models/tax-review/tax-review.d.ts.map +1 -0
  898. package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
  899. package/lib/models/tax-summary/report-item.d.ts.map +1 -0
  900. package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
  901. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
  902. package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
  903. package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
  904. package/lib/models/toast/toast.d.ts.map +1 -0
  905. package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
  906. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  907. package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  908. package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
  909. package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
  910. package/lib/models/transaction/index.d.ts +0 -1
  911. package/lib/models/transaction/index.d.ts.map +1 -0
  912. package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
  913. package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
  914. package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
  915. package/lib/models/transaction/transaction.d.ts +2 -5
  916. package/lib/models/transaction/transaction.d.ts.map +1 -0
  917. package/lib/models/user/index.d.ts.map +1 -0
  918. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
  919. package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
  920. package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
  921. package/lib/models/user/my-account-history.d.ts.map +1 -0
  922. package/lib/models/user/occupation.d.ts.map +1 -0
  923. package/lib/models/user/user-roles.const.d.ts.map +1 -0
  924. package/lib/models/user/user-to-register.d.ts.map +1 -0
  925. package/lib/models/user/user-work-position.const.d.ts.map +1 -0
  926. package/lib/models/user/user.d.ts +6 -12
  927. package/lib/models/user/user.d.ts.map +1 -0
  928. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
  929. package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
  930. package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
  931. package/lib/models/user-event/user-event-type.d.ts.map +1 -0
  932. package/lib/models/vehicle/index.d.ts.map +1 -0
  933. package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
  934. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  935. package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
  936. package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
  937. package/lib/models/vehicle/vehicle.d.ts.map +1 -0
  938. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  939. package/lib/services/account-setup/index.d.ts.map +1 -0
  940. package/lib/services/affiliate/index.d.ts.map +1 -0
  941. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  942. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  943. package/lib/services/asset/assets.service.d.ts.map +1 -0
  944. package/lib/services/asset/index.d.ts.map +1 -0
  945. package/lib/services/auth/auth.service.d.ts.map +1 -0
  946. package/lib/services/auth/index.d.ts.map +1 -0
  947. package/lib/services/auth/jwt.service.d.ts.map +1 -0
  948. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  949. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  950. package/lib/services/bank/index.d.ts.map +1 -0
  951. package/lib/services/data.service.d.ts.map +1 -0
  952. package/lib/services/event/event-dispatcher.service.d.ts.map +1 -0
  953. package/lib/services/event/index.d.ts.map +1 -0
  954. package/lib/services/event/sse.service.d.ts.map +1 -0
  955. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  956. package/lib/services/export/index.d.ts.map +1 -0
  957. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  958. package/lib/services/header-title/index.d.ts.map +1 -0
  959. package/lib/services/http/address/address.service.d.ts.map +1 -0
  960. package/lib/services/http/address/index.d.ts.map +1 -0
  961. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
  962. package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
  963. package/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts.map +1 -0
  964. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
  965. package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
  966. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
  967. package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
  968. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  969. package/lib/services/http/bank/basiq/basiq-messages.enum.d.ts.map +1 -0
  970. package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
  971. package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
  972. package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
  973. package/lib/services/http/bank/index.d.ts.map +1 -0
  974. package/lib/services/http/budget/budget-messages.enum.d.ts.map +1 -0
  975. package/lib/services/http/budget/budget.service.d.ts.map +1 -0
  976. package/lib/services/http/budget/index.d.ts.map +1 -0
  977. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  978. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  979. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  980. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  981. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  982. package/lib/services/http/chat/index.d.ts.map +1 -0
  983. package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
  984. package/lib/services/http/chat/message.service.d.ts.map +1 -0
  985. package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +1 -0
  986. package/lib/services/http/client/index.d.ts.map +1 -0
  987. package/lib/services/http/client/occupation/occupation.service.d.ts.map +1 -0
  988. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  989. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  990. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -7
  991. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  992. package/lib/services/http/depreciation/index.d.ts +0 -1
  993. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  994. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts +6 -0
  995. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts.map +1 -0
  996. package/lib/services/http/document/document-folder/document-folder.service.d.ts +6 -24
  997. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  998. package/lib/services/http/document/document-folder/index.d.ts +2 -0
  999. package/lib/services/http/document/document-folder/index.d.ts.map +1 -0
  1000. package/lib/services/http/document/document-messages.enum.d.ts +6 -0
  1001. package/lib/services/http/document/document-messages.enum.d.ts.map +1 -0
  1002. package/lib/services/http/document/document.service.d.ts +7 -3
  1003. package/lib/services/http/document/document.service.d.ts.map +1 -0
  1004. package/lib/services/http/document/index.d.ts +2 -1
  1005. package/lib/services/http/document/index.d.ts.map +1 -0
  1006. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  1007. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  1008. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  1009. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  1010. package/lib/services/http/facebook/index.d.ts.map +1 -0
  1011. package/lib/services/http/file/file.service.d.ts +2 -0
  1012. package/lib/services/http/file/file.service.d.ts.map +1 -0
  1013. package/lib/services/http/file/index.d.ts.map +1 -0
  1014. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  1015. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  1016. package/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts.map +1 -0
  1017. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  1018. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  1019. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  1020. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  1021. package/lib/services/http/firm/employee/employee-messages.enum.d.ts.map +1 -0
  1022. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  1023. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  1024. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  1025. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  1026. package/lib/services/http/firm/firm-messages.enum.d.ts +4 -0
  1027. package/lib/services/http/firm/firm-messages.enum.d.ts.map +1 -0
  1028. package/lib/services/http/firm/firm.service.d.ts +0 -1
  1029. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  1030. package/lib/services/http/firm/index.d.ts +1 -0
  1031. package/lib/services/http/firm/index.d.ts.map +1 -0
  1032. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  1033. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  1034. package/lib/services/http/google/google.service.d.ts.map +1 -0
  1035. package/lib/services/http/google/index.d.ts.map +1 -0
  1036. package/lib/services/http/holding/holding-messages.enum.d.ts.map +1 -0
  1037. package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +1 -0
  1038. package/lib/services/http/holding/holding-sale.service.d.ts.map +1 -0
  1039. package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +1 -0
  1040. package/lib/services/http/holding/holding-type.service.d.ts.map +1 -0
  1041. package/lib/services/http/holding/holding.service.d.ts.map +1 -0
  1042. package/lib/services/http/holding/index.d.ts.map +1 -0
  1043. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  1044. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  1045. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  1046. package/lib/services/http/income-source/index.d.ts.map +1 -0
  1047. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  1048. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  1049. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  1050. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  1051. package/lib/services/http/index.d.ts +0 -1
  1052. package/lib/services/http/index.d.ts.map +1 -0
  1053. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  1054. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  1055. package/lib/services/http/loan/index.d.ts.map +1 -0
  1056. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  1057. package/lib/services/http/property/borrowing-report/borrowing-report-messages.enum.d.ts.map +1 -0
  1058. package/lib/services/http/property/borrowing-report/borrowing-report.service.d.ts.map +1 -0
  1059. package/lib/services/http/property/borrowing-report/index.d.ts.map +1 -0
  1060. package/lib/services/http/property/index.d.ts +2 -0
  1061. package/lib/services/http/property/index.d.ts.map +1 -0
  1062. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  1063. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  1064. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  1065. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  1066. package/lib/services/http/property/property-document/index.d.ts +1 -0
  1067. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  1068. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts +6 -0
  1069. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts.map +1 -0
  1070. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -0
  1071. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  1072. package/lib/services/http/property/property-messages.enum.d.ts +4 -0
  1073. package/lib/services/http/property/property-messages.enum.d.ts.map +1 -0
  1074. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  1075. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  1076. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  1077. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  1078. package/lib/services/http/property/property-valuation/index.d.ts +2 -0
  1079. package/lib/services/http/property/property-valuation/index.d.ts.map +1 -0
  1080. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts +4 -0
  1081. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts.map +1 -0
  1082. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +21 -0
  1083. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts.map +1 -0
  1084. package/lib/services/http/property/property.service.d.ts +1 -0
  1085. package/lib/services/http/property/property.service.d.ts.map +1 -0
  1086. package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
  1087. package/lib/services/http/rest/index.d.ts.map +1 -0
  1088. package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
  1089. package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
  1090. package/lib/services/http/rest/rest.service.d.ts +2 -2
  1091. package/lib/services/http/rest/rest.service.d.ts.map +1 -0
  1092. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  1093. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  1094. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  1095. package/lib/services/http/sole/index.d.ts +1 -1
  1096. package/lib/services/http/sole/index.d.ts.map +1 -0
  1097. package/lib/services/http/sole/sole-business/index.d.ts +2 -0
  1098. package/lib/services/http/sole/sole-business/index.d.ts.map +1 -0
  1099. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts +3 -0
  1100. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts.map +1 -0
  1101. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +0 -1
  1102. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  1103. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  1104. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  1105. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  1106. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  1107. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  1108. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  1109. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  1110. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  1111. package/lib/services/http/subscription/index.d.ts.map +1 -0
  1112. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
  1113. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
  1114. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
  1115. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
  1116. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
  1117. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  1118. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  1119. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  1120. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  1121. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  1122. package/lib/services/http/transaction/index.d.ts +0 -1
  1123. package/lib/services/http/transaction/index.d.ts.map +1 -0
  1124. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
  1125. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  1126. package/lib/services/http/transaction/transaction.service.d.ts +1 -5
  1127. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  1128. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  1129. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  1130. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  1131. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  1132. package/lib/services/http/user/financial-year/financial-year.service.d.ts.map +1 -0
  1133. package/lib/services/http/user/index.d.ts +1 -0
  1134. package/lib/services/http/user/index.d.ts.map +1 -0
  1135. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  1136. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  1137. package/lib/services/http/user/user-messages.enum.d.ts +5 -0
  1138. package/lib/services/http/user/user-messages.enum.d.ts.map +1 -0
  1139. package/lib/services/http/user/user.service.d.ts.map +1 -0
  1140. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  1141. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  1142. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  1143. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  1144. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  1145. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  1146. package/lib/services/index.d.ts.map +1 -0
  1147. package/lib/services/intercom/index.d.ts.map +1 -0
  1148. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  1149. package/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts.map +1 -0
  1150. package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +1 -0
  1151. package/lib/services/json/income-source/income-source-type.service.d.ts.map +1 -0
  1152. package/lib/services/json/index.d.ts.map +1 -0
  1153. package/lib/services/json/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  1154. package/lib/services/json/tax-return/tax-return-item.service.d.ts.map +1 -0
  1155. package/lib/services/pdf/index.d.ts.map +1 -0
  1156. package/lib/services/pdf/js-pdf.d.ts.map +1 -0
  1157. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  1158. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  1159. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  1160. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  1161. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  1162. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  1163. package/lib/services/preloader/index.d.ts.map +1 -0
  1164. package/lib/services/preloader/preloader.service.d.ts.map +1 -0
  1165. package/lib/services/property/corelogic/corelogic.service.d.ts.map +1 -0
  1166. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  1167. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  1168. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  1169. package/lib/services/property/index.d.ts.map +1 -0
  1170. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  1171. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  1172. package/lib/services/report/index.d.ts.map +1 -0
  1173. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  1174. package/lib/services/toast/index.d.ts.map +1 -0
  1175. package/lib/services/toast/toast.service.d.ts.map +1 -0
  1176. package/lib/services/transaction/index.d.ts.map +1 -0
  1177. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  1178. package/lib/services/user/index.d.ts.map +1 -0
  1179. package/lib/services/user/user-switcher.service.d.ts.map +1 -0
  1180. package/lib/services/vehicle/index.d.ts.map +1 -0
  1181. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  1182. package/lib/services/xlsx/index.d.ts.map +1 -0
  1183. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  1184. package/lib/tt-core.module.d.ts.map +1 -0
  1185. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  1186. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  1187. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  1188. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  1189. package/lib/validators/conditional.validator.d.ts.map +1 -0
  1190. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  1191. package/lib/validators/date-range.validator.d.ts.map +1 -0
  1192. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  1193. package/lib/validators/file.validator.d.ts.map +1 -0
  1194. package/lib/validators/greater-than.validator.d.ts.map +1 -0
  1195. package/lib/validators/index.d.ts.map +1 -0
  1196. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  1197. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  1198. package/lib/validators/password-match.validator.d.ts.map +1 -0
  1199. package/lib/validators/password.validator.d.ts.map +1 -0
  1200. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  1201. package/lib/validators/required-length.validator.d.ts.map +1 -0
  1202. package/lib/validators/transactions-meta-fields.validator.d.ts.map +1 -0
  1203. package/package.json +1 -1
  1204. package/public-api.d.ts +1 -17
  1205. package/public-api.d.ts.map +1 -0
  1206. package/taxtank-core.d.ts.map +1 -0
  1207. package/esm2020/lib/db/Models/depreciation/depreciation-receipt.mjs +0 -4
  1208. package/esm2020/lib/db/Models/transaction/transaction-receipt.mjs +0 -4
  1209. package/esm2020/lib/interfaces/photoable.mjs +0 -2
  1210. package/esm2020/lib/interfaces/receipt.interface.mjs +0 -2
  1211. package/esm2020/lib/models/depreciation/depreciation-receipt.mjs +0 -11
  1212. package/esm2020/lib/models/transaction/transaction-receipt.mjs +0 -11
  1213. package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +0 -40
  1214. package/esm2020/lib/services/http/depreciation/depreciation-receipt/index.mjs +0 -2
  1215. package/esm2020/lib/services/http/receipt/index.mjs +0 -2
  1216. package/esm2020/lib/services/http/receipt/receipt.service.mjs +0 -76
  1217. package/esm2020/lib/services/http/sole/sole-business/messages.enum.mjs +0 -7
  1218. package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +0 -40
  1219. package/lib/db/Models/depreciation/depreciation-receipt.d.ts +0 -12
  1220. package/lib/db/Models/transaction/transaction-receipt.d.ts +0 -12
  1221. package/lib/interfaces/photoable.d.ts +0 -13
  1222. package/lib/interfaces/receipt.interface.d.ts +0 -12
  1223. package/lib/models/depreciation/depreciation-receipt.d.ts +0 -8
  1224. package/lib/models/transaction/transaction-receipt.d.ts +0 -8
  1225. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts +0 -28
  1226. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts +0 -1
  1227. package/lib/services/http/receipt/index.d.ts +0 -1
  1228. package/lib/services/http/receipt/receipt.service.d.ts +0 -62
  1229. package/lib/services/http/sole/sole-business/messages.enum.d.ts +0 -5
  1230. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts +0 -28
@@ -72,9 +72,9 @@ class CorelogicService {
72
72
  .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
73
73
  }
74
74
  }
75
- CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
76
- CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, providedIn: 'root' });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, decorators: [{
75
+ CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
76
+ CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicService, providedIn: 'root' });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicService, decorators: [{
78
78
  type: Injectable,
79
79
  args: [{
80
80
  providedIn: 'root'
@@ -114,9 +114,9 @@ class CorelogicInterceptor {
114
114
  });
115
115
  }
116
116
  }
117
- CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
118
- CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor });
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, decorators: [{
117
+ CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
118
+ CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicInterceptor });
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicInterceptor, decorators: [{
120
120
  type: Injectable
121
121
  }], ctorParameters: function () {
122
122
  return [{ type: CorelogicService }, { type: undefined, decorators: [{
@@ -155,9 +155,9 @@ class FinancialYearInterceptor {
155
155
  return next.handle(clonedReq);
156
156
  }
157
157
  }
158
- FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
159
- FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
158
+ FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
159
+ FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor });
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
161
161
  type: Injectable
162
162
  }], ctorParameters: function () {
163
163
  return [{ type: undefined, decorators: [{
@@ -212,9 +212,9 @@ class AddressService {
212
212
  return this.countriesSubject.asObservable();
213
213
  }
214
214
  }
215
- AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
216
- AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, providedIn: 'root' });
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, decorators: [{
215
+ AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
216
+ AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AddressService, providedIn: 'root' });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AddressService, decorators: [{
218
218
  type: Injectable,
219
219
  args: [{
220
220
  providedIn: 'root'
@@ -401,9 +401,6 @@ let DepreciationCapitalProject$1 = class DepreciationCapitalProject extends Abst
401
401
  let DepreciationForecast$1 = class DepreciationForecast extends AbstractModel {
402
402
  };
403
403
 
404
- let DepreciationReceipt$1 = class DepreciationReceipt extends AbstractModel {
405
- };
406
-
407
404
  var TankTypeEnum;
408
405
  (function (TankTypeEnum) {
409
406
  TankTypeEnum[TankTypeEnum["PROPERTY"] = 1] = "PROPERTY";
@@ -434,8 +431,7 @@ class TransactionBase extends ObservableModel {
434
431
  /**
435
432
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
436
433
  */
437
- set tankType(tankType) {
438
- }
434
+ set tankType(tankType) { }
439
435
  /**
440
436
  * Check if current tank is Property
441
437
  */
@@ -477,6 +473,13 @@ class TransactionBase extends ObservableModel {
477
473
  // @TODO Alex we need another way to distinguish work/holding
478
474
  return !this.isPropertyTank() && !this.isSoleTank();
479
475
  }
476
+ isPersonalTank() {
477
+ var _a;
478
+ if (!this.chartAccounts) {
479
+ return false;
480
+ }
481
+ return CHART_ACCOUNTS_CATEGORIES.personal.includes((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.category);
482
+ }
480
483
  get amountWithGst() {
481
484
  return this.isGST ? round(this.amount * ChartAccounts.GSTCoefficient, 2) : this.amount;
482
485
  }
@@ -500,9 +503,7 @@ __decorate([
500
503
  Transform(({ value }) => +value)
501
504
  ], TransactionBase.prototype, "amount", void 0);
502
505
  __decorate([
503
- Exclude({ toPlainOnly: true }),
504
- Type(() => Object),
505
- Transform(({ obj }) => obj.file)
506
+ Type(() => AppFile)
506
507
  ], TransactionBase.prototype, "file", void 0);
507
508
  __decorate([
508
509
  Transform(({ value }) => +value)
@@ -530,12 +531,6 @@ let Document$1 = class Document extends AbstractModel {
530
531
  };
531
532
 
532
533
  let PropertyDocument$1 = class PropertyDocument extends AbstractModel {
533
- getApiUrlPrefix() {
534
- return '';
535
- }
536
- getEntity() {
537
- return undefined;
538
- }
539
534
  };
540
535
 
541
536
  let TaxReview$1 = class TaxReview extends AbstractModel {
@@ -643,11 +638,8 @@ __decorate([
643
638
  let PropertySubscription$1 = class PropertySubscription extends AbstractModel {
644
639
  };
645
640
 
646
- let PropertyValuation$1 = class PropertyValuation extends AbstractModel {
641
+ let PropertyValuation$1 = class PropertyValuation extends ObservableModel {
647
642
  };
648
- __decorate([
649
- Type(() => Number)
650
- ], PropertyValuation$1.prototype, "marketValue", void 0);
651
643
 
652
644
  let Property$1 = class Property extends ObservableModel {
653
645
  };
@@ -742,9 +734,6 @@ let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel
742
734
  let TransactionMetaField$1 = class TransactionMetaField extends AbstractModel {
743
735
  };
744
736
 
745
- let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
746
- };
747
-
748
737
  let Transaction$1 = class Transaction extends TransactionBase {
749
738
  };
750
739
 
@@ -1408,22 +1397,24 @@ var TaxReturnItemEnum;
1408
1397
  class BankExternalStats {
1409
1398
  }
1410
1399
 
1411
- class Bank extends Bank$1 {
1412
- getPhotoPlaceholder() {
1413
- return this.name[0] + this.name[1];
1400
+ /**
1401
+ * The model renamed for more comfortable work because File already exist in JS
1402
+ * @TODO Alex: consider a better name like document
1403
+ */
1404
+ class AppFile extends File$1 {
1405
+ isImage() {
1406
+ return AppFile.imageMimeTypes.includes[this.mimeType];
1414
1407
  }
1408
+ }
1409
+ AppFile.imageMimeTypes = ['image/jpg, image/jpeg, image/png, image/tiff, image/bmp'];
1410
+
1411
+ class Bank extends Bank$1 {
1415
1412
  isManual() {
1416
1413
  return this.provider === BankProviderEnum.MANUAL;
1417
1414
  }
1418
1415
  isBasiq() {
1419
1416
  return this.provider !== BankProviderEnum.MANUAL;
1420
1417
  }
1421
- getPhoto() {
1422
- if (!this.logo) {
1423
- return null;
1424
- }
1425
- return this.logo.includes('http') ? `${this.logo}` : `${localStorage.getItem('api_uri')}${this.logo}`;
1426
- }
1427
1418
  }
1428
1419
  __decorate([
1429
1420
  Transform(({ value }) => value ? value.replace(' ', '%20') : null)
@@ -1435,6 +1426,9 @@ __decorate([
1435
1426
  __decorate([
1436
1427
  Type(() => BankExternalStats)
1437
1428
  ], Bank.prototype, "externalStats", void 0);
1429
+ __decorate([
1430
+ Type(() => AppFile)
1431
+ ], Bank.prototype, "file", void 0);
1438
1432
 
1439
1433
  /**
1440
1434
  * Enum with maximum number of payments, depending on the frequency.
@@ -1870,7 +1864,7 @@ class Collection {
1870
1864
  if (index >= 0) {
1871
1865
  this.items.splice(index, 1, item);
1872
1866
  }
1873
- return this;
1867
+ return this.create(this.items);
1874
1868
  }
1875
1869
  diff(items) {
1876
1870
  return this.filter((model) => !items.map((item) => item.id).includes(model.id));
@@ -3874,13 +3868,10 @@ var ClientInviteTypeEnum;
3874
3868
  })(ClientInviteTypeEnum || (ClientInviteTypeEnum = {}));
3875
3869
 
3876
3870
  class RegistrationInvite extends RegistrationInvite$1 {
3877
- getPhotoPlaceholder() {
3878
- return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
3879
- }
3880
- getPhoto() {
3881
- return null;
3882
- }
3883
3871
  }
3872
+ __decorate([
3873
+ Type(() => AppFile)
3874
+ ], RegistrationInvite.prototype, "file", void 0);
3884
3875
 
3885
3876
  var PhoneTypeEnum;
3886
3877
  (function (PhoneTypeEnum) {
@@ -3953,18 +3944,6 @@ class UserToRegister {
3953
3944
  }
3954
3945
 
3955
3946
  class Firm extends Firm$1 {
3956
- /**
3957
- * get firm photo link
3958
- */
3959
- getPhoto() {
3960
- return this.photo;
3961
- }
3962
- /**
3963
- * get firm initials
3964
- */
3965
- getPhotoPlaceholder() {
3966
- return `${this.name[0].toUpperCase()}${this.name[1]}`;
3967
- }
3968
3947
  }
3969
3948
  __decorate([
3970
3949
  Type(() => User)
@@ -3975,6 +3954,9 @@ __decorate([
3975
3954
  __decorate([
3976
3955
  Type(() => Phone)
3977
3956
  ], Firm.prototype, "phone", void 0);
3957
+ __decorate([
3958
+ Type(() => AppFile)
3959
+ ], Firm.prototype, "file", void 0);
3978
3960
 
3979
3961
  class ClientInvite extends ClientInvite$1 {
3980
3962
  /**
@@ -4396,84 +4378,6 @@ __decorate([
4396
4378
  Type(() => Firm)
4397
4379
  ], EmployeeDetails.prototype, "firm", void 0);
4398
4380
 
4399
- class ServicePayment extends ServicePayment$1 {
4400
- /**
4401
- * Stripe stores actual links to payment invoices for 30 days.
4402
- * Link expires after 30 days
4403
- */
4404
- isInvoiceLinkExpired() {
4405
- const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
4406
- return expirationDate.getTime() < new Date().getTime();
4407
- }
4408
- }
4409
- ServicePayment.daysToInvoiceUrlExpired = 30;
4410
- __decorate([
4411
- Type(() => ServiceSubscription)
4412
- ], ServicePayment.prototype, "subscription", void 0);
4413
- __decorate([
4414
- Type(() => Date)
4415
- ], ServicePayment.prototype, "date", void 0);
4416
-
4417
- let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
4418
- };
4419
-
4420
- var PaymentMethodBrandEnum;
4421
- (function (PaymentMethodBrandEnum) {
4422
- PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
4423
- PaymentMethodBrandEnum["AMEX"] = "American Express";
4424
- PaymentMethodBrandEnum["DINERS"] = "Diners Club";
4425
- PaymentMethodBrandEnum["DISCOVER"] = "Discover";
4426
- PaymentMethodBrandEnum["JCB"] = "JCB";
4427
- PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
4428
- PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
4429
- PaymentMethodBrandEnum["VISA"] = "Visa";
4430
- })(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
4431
-
4432
- var ServicePaymentMethodCardBrandEnum;
4433
- (function (ServicePaymentMethodCardBrandEnum) {
4434
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
4435
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
4436
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
4437
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
4438
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
4439
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
4440
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
4441
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
4442
- })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
4443
-
4444
- var ServicePaymentMethodTypeEnum;
4445
- (function (ServicePaymentMethodTypeEnum) {
4446
- ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
4447
- ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
4448
- })(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
4449
-
4450
- class ServicePaymentMethod extends ServicePaymentMethod$1 {
4451
- get logo() {
4452
- if (!this.isCard()) {
4453
- return null;
4454
- }
4455
- return `/assets/img/payment-methods/${this.cardBrand}.svg`;
4456
- }
4457
- get brandName() {
4458
- return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
4459
- }
4460
- /**
4461
- * Get expiration date formatted string (MM/YY)
4462
- */
4463
- get expirationDate() {
4464
- if (!this.isCard()) {
4465
- return null;
4466
- }
4467
- return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
4468
- }
4469
- get description() {
4470
- return `${this.brandName} ***${this.lastFourDigits}`;
4471
- }
4472
- isCard() {
4473
- return this.type === ServicePaymentMethodTypeEnum.CARD;
4474
- }
4475
- }
4476
-
4477
4381
  class SoleBusinessAllocation extends SoleBusinessAllocation$1 {
4478
4382
  }
4479
4383
  __decorate([
@@ -4538,13 +4442,6 @@ class SoleContact extends SoleContact$1 {
4538
4442
  get fullName() {
4539
4443
  return `${this.firstName} ${this.lastName}`;
4540
4444
  }
4541
- getPhotoPlaceholder() {
4542
- return `${this.firstName[0].toUpperCase()}${this.lastName[0].toUpperCase()}`;
4543
- }
4544
- // @TODO Vik: add photo field to SoleContact
4545
- getPhoto() {
4546
- return '';
4547
- }
4548
4445
  }
4549
4446
  __decorate([
4550
4447
  Type(() => User)
@@ -4558,6 +4455,9 @@ __decorate([
4558
4455
  __decorate([
4559
4456
  Type(() => SoleInvoice)
4560
4457
  ], SoleContact.prototype, "invoices", void 0);
4458
+ __decorate([
4459
+ Type(() => AppFile)
4460
+ ], SoleContact.prototype, "file", void 0);
4561
4461
 
4562
4462
  var SoleInvoiceStatusesEnum;
4563
4463
  (function (SoleInvoiceStatusesEnum) {
@@ -4975,41 +4875,6 @@ var DepreciationLvpRateEnum;
4975
4875
  DepreciationLvpRateEnum[DepreciationLvpRateEnum["DEFAULT"] = 0.375] = "DEFAULT";
4976
4876
  })(DepreciationLvpRateEnum || (DepreciationLvpRateEnum = {}));
4977
4877
 
4978
- /**
4979
- * Enum with asset types
4980
- */
4981
- var AssetTypeEnum;
4982
- (function (AssetTypeEnum) {
4983
- AssetTypeEnum["TRANSACTION_RECEIPT"] = "transactionReceipt";
4984
- AssetTypeEnum["PROPERTY"] = "property";
4985
- AssetTypeEnum["DOCUMENT"] = "document";
4986
- AssetTypeEnum["MESSAGE"] = "message";
4987
- AssetTypeEnum["USER_PHOTO"] = "userPhoto";
4988
- AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
4989
- AssetTypeEnum["DEPRECIATION_RECEIPT"] = "depreciationReceipt";
4990
- AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
4991
- })(AssetTypeEnum || (AssetTypeEnum = {}));
4992
-
4993
- /**
4994
- * Enum with asset entity types
4995
- */
4996
- var AssetEntityTypeEnum;
4997
- (function (AssetEntityTypeEnum) {
4998
- AssetEntityTypeEnum["PROPERTIES"] = "properties";
4999
- AssetEntityTypeEnum["FOLDERS"] = "folders";
5000
- AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
5001
- AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
5002
- AssetEntityTypeEnum["MESSAGES"] = "messages";
5003
- })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
5004
-
5005
- class DepreciationReceipt extends DepreciationReceipt$1 {
5006
- constructor() {
5007
- super(...arguments);
5008
- this.type = AssetTypeEnum.DEPRECIATION_RECEIPT;
5009
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
5010
- }
5011
- }
5012
-
5013
4878
  /**
5014
4879
  * Income sources chart data
5015
4880
  */
@@ -5053,12 +4918,6 @@ class IncomeSourceChartData {
5053
4918
  }
5054
4919
 
5055
4920
  class SoleBusiness extends SoleBusiness$1 {
5056
- getPhotoPlaceholder() {
5057
- return `${this.name[0]}${this.name[1]}`;
5058
- }
5059
- getPhoto() {
5060
- return this.logo;
5061
- }
5062
4921
  }
5063
4922
  /**
5064
4923
  * Maximum number of businesses that a person can have, according to the ATO
@@ -5097,6 +4956,9 @@ __decorate([
5097
4956
  __decorate([
5098
4957
  Transform(({ value }) => value || false)
5099
4958
  ], SoleBusiness.prototype, "isPrimaryProduction", void 0);
4959
+ __decorate([
4960
+ Type(() => AppFile)
4961
+ ], SoleBusiness.prototype, "file", void 0);
5100
4962
 
5101
4963
  class SoleBusinessActivity extends SoleBusinessActivity$1 {
5102
4964
  }
@@ -5258,18 +5120,6 @@ class User extends User$1 {
5258
5120
  */
5259
5121
  return (_a = this.activeSubscription) === null || _a === void 0 ? void 0 : _a.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(roleType));
5260
5122
  }
5261
- /**
5262
- * Get user's photo link
5263
- */
5264
- getPhoto() {
5265
- return this.photo;
5266
- }
5267
- /**
5268
- * get user's initials
5269
- */
5270
- getPhotoPlaceholder() {
5271
- return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
5272
- }
5273
5123
  isCurrentFinancialYear() {
5274
5124
  return new FinancialYear(new Date()).year === this.financialYear;
5275
5125
  }
@@ -5305,6 +5155,9 @@ __decorate([
5305
5155
  __decorate([
5306
5156
  Type(() => User)
5307
5157
  ], User.prototype, "clients", void 0);
5158
+ __decorate([
5159
+ Type(() => AppFile)
5160
+ ], User.prototype, "file", void 0);
5308
5161
 
5309
5162
  class PropertySubscription extends PropertySubscription$1 {
5310
5163
  }
@@ -5336,18 +5189,16 @@ class PropertyCategory extends PropertyCategory$1 {
5336
5189
  }
5337
5190
 
5338
5191
  class PropertyDocument extends PropertyDocument$1 {
5339
- constructor() {
5340
- super(...arguments);
5341
- this.type = AssetTypeEnum.PROPERTY;
5342
- this.entityType = AssetEntityTypeEnum.PROPERTIES;
5343
- }
5344
- getApiUrlPrefix() {
5345
- return '';
5346
- }
5347
- getEntity() {
5192
+ get parent() {
5348
5193
  return this.property;
5349
5194
  }
5350
5195
  }
5196
+ __decorate([
5197
+ Type(() => Property)
5198
+ ], PropertyDocument.prototype, "property", void 0);
5199
+ __decorate([
5200
+ Type(() => AppFile)
5201
+ ], PropertyDocument.prototype, "file", void 0);
5351
5202
 
5352
5203
  class PropertyValuation extends PropertyValuation$1 {
5353
5204
  get financialYear() {
@@ -5366,9 +5217,6 @@ __decorate([
5366
5217
  __decorate([
5367
5218
  Type(() => Number)
5368
5219
  ], PropertyValuation.prototype, "marketValue", void 0);
5369
- __decorate([
5370
- Exclude()
5371
- ], PropertyValuation.prototype, "documentFile", void 0);
5372
5220
 
5373
5221
  class PropertyForecast extends PropertyForecast$1 {
5374
5222
  constructor() {
@@ -5455,18 +5303,6 @@ class Property extends Property$1 {
5455
5303
  var _a;
5456
5304
  return !!((_a = this.myShare) === null || _a === void 0 ? void 0 : _a.sale);
5457
5305
  }
5458
- /**
5459
- * Get initials of property. Required by Photoable interface
5460
- */
5461
- getPhotoPlaceholder() {
5462
- return this.name.split(' ')[1].slice(0, 2);
5463
- }
5464
- /**
5465
- * Get property photo. Required by Photoable interface
5466
- */
5467
- getPhoto() {
5468
- return this.photo;
5469
- }
5470
5306
  get capitalCostsTotalAmount() {
5471
5307
  return this.stampDuty + this.legalFees + this.otherCapitalCosts;
5472
5308
  }
@@ -5690,6 +5526,9 @@ __decorate([
5690
5526
  __decorate([
5691
5527
  Type(() => PropertySubscription)
5692
5528
  ], Property.prototype, "subscriptions", void 0);
5529
+ __decorate([
5530
+ Type(() => AppFile)
5531
+ ], Property.prototype, "file", void 0);
5693
5532
  __decorate([
5694
5533
  Exclude()
5695
5534
  ], Property.prototype, "documentFile", void 0);
@@ -6082,14 +5921,6 @@ var ShareFilterOptionsEnum;
6082
5921
  ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
6083
5922
  })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
6084
5923
 
6085
- class TransactionReceipt extends TransactionReceipt$1 {
6086
- constructor() {
6087
- super(...arguments);
6088
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
6089
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
6090
- }
6091
- }
6092
-
6093
5924
  class TransactionMetaField extends TransactionMetaField$1 {
6094
5925
  }
6095
5926
  __decorate([
@@ -6379,9 +6210,6 @@ __decorate([
6379
6210
  __decorate([
6380
6211
  Type(() => Property)
6381
6212
  ], Transaction.prototype, "property", void 0);
6382
- __decorate([
6383
- Type(() => TransactionReceipt)
6384
- ], Transaction.prototype, "receipt", void 0);
6385
6213
  __decorate([
6386
6214
  Type(() => ChartAccounts)
6387
6215
  ], Transaction.prototype, "chartAccounts", void 0);
@@ -9680,6 +9508,31 @@ __decorate([
9680
9508
  Type(() => Date)
9681
9509
  ], Chat.prototype, "updatedAt", void 0);
9682
9510
 
9511
+ /**
9512
+ * Enum with asset entity types
9513
+ */
9514
+ var AssetEntityTypeEnum;
9515
+ (function (AssetEntityTypeEnum) {
9516
+ AssetEntityTypeEnum["PROPERTIES"] = "properties";
9517
+ AssetEntityTypeEnum["FOLDERS"] = "folders";
9518
+ AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
9519
+ AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
9520
+ AssetEntityTypeEnum["MESSAGES"] = "messages";
9521
+ })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
9522
+
9523
+ /**
9524
+ * Enum with asset types
9525
+ */
9526
+ var AssetTypeEnum;
9527
+ (function (AssetTypeEnum) {
9528
+ AssetTypeEnum["PROPERTY"] = "property";
9529
+ AssetTypeEnum["DOCUMENT"] = "document";
9530
+ AssetTypeEnum["MESSAGE"] = "message";
9531
+ AssetTypeEnum["USER_PHOTO"] = "userPhoto";
9532
+ AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
9533
+ AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
9534
+ })(AssetTypeEnum || (AssetTypeEnum = {}));
9535
+
9683
9536
  class MessageDocument extends MessageDocument$1 {
9684
9537
  constructor() {
9685
9538
  super(...arguments);
@@ -9691,7 +9544,7 @@ __decorate([
9691
9544
  Type(() => User)
9692
9545
  ], MessageDocument.prototype, "user", void 0);
9693
9546
  __decorate([
9694
- Exclude({ toPlainOnly: true })
9547
+ Type(() => AppFile)
9695
9548
  ], MessageDocument.prototype, "file", void 0);
9696
9549
 
9697
9550
  class Message extends Message$1 {
@@ -9753,58 +9606,50 @@ var AppEventTypeEnum;
9753
9606
  AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 14] = "CURRENT_USER_GET_FAILED";
9754
9607
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 15] = "DEPRECIATION_DELETED";
9755
9608
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 16] = "DEPRECIATIONS_CREATED";
9756
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_RECEIPT"] = 17] = "DEPRECIATION_UPDATED_WITH_RECEIPT";
9757
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT"] = 18] = "DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT";
9758
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_CREATED"] = 19] = "DEPRECIATION_RECEIPT_CREATED";
9759
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_DELETED"] = 20] = "DEPRECIATION_RECEIPT_DELETED";
9760
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 21] = "INCOME_SOURCES_CREATED";
9761
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 22] = "INCOME_SOURCES_UPDATED";
9762
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 23] = "INCOME_SOURCES_FORECASTS_CREATED";
9763
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 24] = "INCOME_SOURCES_FORECASTS_UPDATED";
9764
- AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 25] = "LOAN_UPDATED";
9765
- AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 26] = "LOAN_PAYOUT_UPDATED";
9766
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 27] = "MESSAGE_CREATED";
9767
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 28] = "MESSAGE_FILE_CREATED";
9768
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 29] = "MESSAGE_FILE_DELETED";
9769
- AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 30] = "NOTIFICATION_ADDED";
9770
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 31] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
9771
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 32] = "PROPERTY_UPDATED";
9772
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 33] = "PROPERTY_UPDATED_WITH_DOCUMENT";
9773
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 34] = "PROPERTY_DOCUMENT_ADDED";
9774
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 35] = "PROPERTY_MOVEMENT_CREATED";
9775
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 36] = "PROPERTY_MOVEMENT_UPDATED";
9776
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 37] = "PROPERTY_MOVEMENT_DELETED";
9777
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 38] = "PROPERTY_SHARE_UPDATED";
9778
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 39] = "PROPERTY_SALE_ADDED";
9779
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 40] = "PROPERTY_SALE_DELETED";
9780
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 41] = "PROPERTY_SUBSCRIPTION_ADDED";
9781
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 42] = "PROPERTY_SUBSCRIPTION_DELETED";
9782
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 43] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
9783
- AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 44] = "SERVICE_SUBSCRIPTION_UPDATED";
9784
- AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 45] = "SOLE_BUSINESS_CREATED";
9785
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 46] = "SOLE_DEPRECIATION_METHOD_UPDATED";
9786
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 47] = "SOLE_DETAILS_CREATED";
9787
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 48] = "SOLE_DETAILS_UPDATED";
9788
- AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 49] = "SOLE_INVOICE_PUBLISHED";
9789
- AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 50] = "TAX_REVIEW_UPDATED";
9790
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 51] = "TRANSACTION_ALLOCATION_CREATED";
9791
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 52] = "TRANSACTION_ALLOCATION_DELETED";
9792
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 53] = "TRANSACTION_CREATED";
9793
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 54] = "TRANSACTION_DELETED";
9794
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 55] = "TRANSACTION_UPDATED";
9795
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 56] = "TRANSACTION_UPDATED_WITH_RECEIPT";
9796
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 57] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
9797
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
9798
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
9799
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
9800
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
9801
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
9802
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9803
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
9804
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
9805
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
9806
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
9807
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9609
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 17] = "INCOME_SOURCES_CREATED";
9610
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 18] = "INCOME_SOURCES_UPDATED";
9611
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 19] = "INCOME_SOURCES_FORECASTS_CREATED";
9612
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 20] = "INCOME_SOURCES_FORECASTS_UPDATED";
9613
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 21] = "LOAN_UPDATED";
9614
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 22] = "LOAN_PAYOUT_UPDATED";
9615
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 23] = "MESSAGE_CREATED";
9616
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 24] = "MESSAGE_FILE_CREATED";
9617
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 25] = "MESSAGE_FILE_DELETED";
9618
+ AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 26] = "NOTIFICATION_ADDED";
9619
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 27] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
9620
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 28] = "PROPERTY_UPDATED";
9621
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 29] = "PROPERTY_UPDATED_WITH_DOCUMENT";
9622
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 30] = "PROPERTY_DOCUMENT_ADDED";
9623
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 31] = "PROPERTY_MOVEMENT_CREATED";
9624
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 32] = "PROPERTY_MOVEMENT_UPDATED";
9625
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 33] = "PROPERTY_MOVEMENT_DELETED";
9626
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 34] = "PROPERTY_SHARE_UPDATED";
9627
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 35] = "PROPERTY_SALE_ADDED";
9628
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 36] = "PROPERTY_SALE_DELETED";
9629
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 37] = "PROPERTY_SUBSCRIPTION_ADDED";
9630
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 38] = "PROPERTY_SUBSCRIPTION_DELETED";
9631
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 39] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
9632
+ AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 40] = "SERVICE_SUBSCRIPTION_UPDATED";
9633
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 41] = "SOLE_BUSINESS_CREATED";
9634
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 42] = "SOLE_DEPRECIATION_METHOD_UPDATED";
9635
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 43] = "SOLE_DETAILS_CREATED";
9636
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 44] = "SOLE_DETAILS_UPDATED";
9637
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 45] = "SOLE_INVOICE_PUBLISHED";
9638
+ AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 46] = "TAX_REVIEW_UPDATED";
9639
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 47] = "TRANSACTION_ALLOCATION_CREATED";
9640
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 48] = "TRANSACTION_ALLOCATION_DELETED";
9641
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 49] = "TRANSACTION_CREATED";
9642
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 50] = "TRANSACTION_DELETED";
9643
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 51] = "TRANSACTION_UPDATED";
9644
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 52] = "TRANSACTIONS_CREATED";
9645
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 53] = "VEHICLE_CLAIM_UPDATED";
9646
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 54] = "VEHICLE_CLAIM_CREATED";
9647
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 55] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9648
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 56] = "VEHICLE_CLAIM_DETAILS_CREATED";
9649
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 57] = "VEHICLE_LOGBOOK_CREATED";
9650
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 58] = "VEHICLE_LOGBOOK_UPDATED";
9651
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 59] = "VEHICLE_LOGBOOK_DELETED";
9652
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 60] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9808
9653
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
9809
9654
 
9810
9655
  /**
@@ -9828,13 +9673,6 @@ class AppEvent2 {
9828
9673
  }
9829
9674
  }
9830
9675
 
9831
- /**
9832
- * The model renamed for more comfortable work because File already exist in JS
9833
- * @TODO Alex: consider a better name like document
9834
- */
9835
- class AppFile extends File$1 {
9836
- }
9837
-
9838
9676
  class Notification extends ServiceNotification {
9839
9677
  get eventType() {
9840
9678
  return this.userEvent.type.type;
@@ -9870,38 +9708,111 @@ __decorate([
9870
9708
  })
9871
9709
  ], Notification.prototype, "redirectionLink", void 0);
9872
9710
 
9873
- /**
9874
- * Enum with document types which used to API url prefix
9875
- */
9876
- var DocumentApiUrlPrefixEnum;
9877
- (function (DocumentApiUrlPrefixEnum) {
9878
- DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
9879
- DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
9880
- })(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
9881
-
9882
- class Document extends Document$1 {
9883
- constructor() {
9884
- super(...arguments);
9885
- this.type = AssetTypeEnum.DOCUMENT;
9886
- this.entityType = AssetEntityTypeEnum.FOLDERS;
9887
- }
9888
- /**
9889
- * Get folder as document parent entity
9890
- */
9891
- getEntity() {
9892
- return this.folder;
9893
- }
9711
+ class ServicePayment extends ServicePayment$1 {
9894
9712
  /**
9895
- * Get API url prefix
9713
+ * Stripe stores actual links to payment invoices for 30 days.
9714
+ * Link expires after 30 days
9896
9715
  */
9897
- getApiUrlPrefix() {
9898
- return DocumentApiUrlPrefixEnum.FOLDERS;
9716
+ isInvoiceLinkExpired() {
9717
+ const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
9718
+ return expirationDate.getTime() < new Date().getTime();
9899
9719
  }
9900
9720
  }
9901
-
9902
- const DOCUMENT_FILE_TYPES = {
9903
- image: [
9904
- 'image/png',
9721
+ ServicePayment.daysToInvoiceUrlExpired = 30;
9722
+ __decorate([
9723
+ Type(() => ServiceSubscription)
9724
+ ], ServicePayment.prototype, "subscription", void 0);
9725
+ __decorate([
9726
+ Type(() => Date)
9727
+ ], ServicePayment.prototype, "date", void 0);
9728
+
9729
+ let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
9730
+ };
9731
+
9732
+ var PaymentMethodBrandEnum;
9733
+ (function (PaymentMethodBrandEnum) {
9734
+ PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
9735
+ PaymentMethodBrandEnum["AMEX"] = "American Express";
9736
+ PaymentMethodBrandEnum["DINERS"] = "Diners Club";
9737
+ PaymentMethodBrandEnum["DISCOVER"] = "Discover";
9738
+ PaymentMethodBrandEnum["JCB"] = "JCB";
9739
+ PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
9740
+ PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
9741
+ PaymentMethodBrandEnum["VISA"] = "Visa";
9742
+ })(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
9743
+
9744
+ var ServicePaymentMethodCardBrandEnum;
9745
+ (function (ServicePaymentMethodCardBrandEnum) {
9746
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
9747
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
9748
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
9749
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
9750
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
9751
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
9752
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
9753
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
9754
+ })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
9755
+
9756
+ var ServicePaymentMethodTypeEnum;
9757
+ (function (ServicePaymentMethodTypeEnum) {
9758
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
9759
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
9760
+ })(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
9761
+
9762
+ class ServicePaymentMethod extends ServicePaymentMethod$1 {
9763
+ get logo() {
9764
+ if (!this.isCard()) {
9765
+ return null;
9766
+ }
9767
+ return `/assets/img/payment-methods/${this.cardBrand}.svg`;
9768
+ }
9769
+ get brandName() {
9770
+ return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
9771
+ }
9772
+ /**
9773
+ * Get expiration date formatted string (MM/YY)
9774
+ */
9775
+ get expirationDate() {
9776
+ if (!this.isCard()) {
9777
+ return null;
9778
+ }
9779
+ return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
9780
+ }
9781
+ get description() {
9782
+ return `${this.brandName} ***${this.lastFourDigits}`;
9783
+ }
9784
+ isCard() {
9785
+ return this.type === ServicePaymentMethodTypeEnum.CARD;
9786
+ }
9787
+ }
9788
+
9789
+ class DocumentFolder extends DocumentFolder$1 {
9790
+ }
9791
+
9792
+ class Document extends Document$1 {
9793
+ get parent() {
9794
+ return this.folder;
9795
+ }
9796
+ }
9797
+ __decorate([
9798
+ Type(() => DocumentFolder)
9799
+ ], Document.prototype, "folder", void 0);
9800
+ __decorate([
9801
+ Type(() => AppFile)
9802
+ ], Document.prototype, "file", void 0);
9803
+
9804
+ /**
9805
+ * Enum with document types which used to API url prefix
9806
+ */
9807
+ var DocumentApiUrlPrefixEnum;
9808
+ (function (DocumentApiUrlPrefixEnum) {
9809
+ DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
9810
+ DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
9811
+ })(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
9812
+
9813
+ const DOCUMENT_FILE_TYPES = {
9814
+ image: [
9815
+ 'image/png',
9905
9816
  'image/jpg',
9906
9817
  'image/jpeg',
9907
9818
  'image/tiff',
@@ -9922,12 +9833,6 @@ const DOCUMENT_FILE_TYPES = {
9922
9833
  ]
9923
9834
  };
9924
9835
 
9925
- class DocumentFolder extends DocumentFolder$1 {
9926
- }
9927
- __decorate([
9928
- Type(() => Document)
9929
- ], DocumentFolder.prototype, "documents", void 0);
9930
-
9931
9836
  class HoldingTypeExchange extends AbstractModel {
9932
9837
  }
9933
9838
  __decorate([
@@ -10263,9 +10168,9 @@ class DataService {
10263
10168
  this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
10264
10169
  }
10265
10170
  }
10266
- DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10267
- DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, providedIn: 'root' });
10268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, decorators: [{
10171
+ DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10172
+ DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, providedIn: 'root' });
10173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, decorators: [{
10269
10174
  type: Injectable,
10270
10175
  args: [{
10271
10176
  providedIn: 'root'
@@ -10300,9 +10205,9 @@ class JwtService extends JwtHelperService {
10300
10205
  return this.getUser().id === userId;
10301
10206
  }
10302
10207
  }
10303
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10304
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, providedIn: 'root' });
10305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, decorators: [{
10208
+ JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10209
+ JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, providedIn: 'root' });
10210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, decorators: [{
10306
10211
  type: Injectable,
10307
10212
  args: [{
10308
10213
  providedIn: 'root'
@@ -10337,9 +10242,9 @@ class AuthService {
10337
10242
  location.replace(url);
10338
10243
  }
10339
10244
  }
10340
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10341
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, providedIn: 'root' });
10342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, decorators: [{
10245
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10246
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AuthService, providedIn: 'root' });
10247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AuthService, decorators: [{
10343
10248
  type: Injectable,
10344
10249
  args: [{
10345
10250
  providedIn: 'root'
@@ -10379,9 +10284,9 @@ class EventDispatcherService {
10379
10284
  this.eventSubject2.next(event);
10380
10285
  }
10381
10286
  }
10382
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10383
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, decorators: [{
10287
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10288
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, decorators: [{
10385
10290
  type: Injectable,
10386
10291
  args: [{
10387
10292
  providedIn: 'root'
@@ -10418,9 +10323,9 @@ class SseService {
10418
10323
  .pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
10419
10324
  }
10420
10325
  }
10421
- SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10422
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, providedIn: 'root' });
10423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, decorators: [{
10326
+ SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10327
+ SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SseService, providedIn: 'root' });
10328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SseService, decorators: [{
10424
10329
  type: Injectable,
10425
10330
  args: [{
10426
10331
  providedIn: 'root'
@@ -10489,9 +10394,9 @@ let RestService$1 = class RestService extends DataService {
10489
10394
  return this.cache;
10490
10395
  }));
10491
10396
  }
10492
- get() {
10397
+ get(path = this.apiUrl) {
10493
10398
  if (!this.cache) {
10494
- this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
10399
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch(path).pipe(first$1()).subscribe() : this.setCache([], true);
10495
10400
  }
10496
10401
  return this.cacheSubject.asObservable();
10497
10402
  }
@@ -10505,9 +10410,9 @@ let RestService$1 = class RestService extends DataService {
10505
10410
  /**
10506
10411
  * Create a new Model instance in database
10507
10412
  */
10508
- post(model) {
10413
+ post(model, path = this.apiUrl) {
10509
10414
  this.handleAccessError('post');
10510
- return this.http.post(this.apiUrl, classToPlain(model))
10415
+ return this.http.post(path, classToPlain(model))
10511
10416
  .pipe(map((response) => {
10512
10417
  const result = this.createModelInstance(response);
10513
10418
  this.handleResponse([result], 'post');
@@ -10643,9 +10548,9 @@ let RestService$1 = class RestService extends DataService {
10643
10548
  */
10644
10549
  listenEvents() { }
10645
10550
  };
10646
- RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10647
- RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, providedIn: 'root' });
10648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, decorators: [{
10551
+ RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10552
+ RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService$1, providedIn: 'root' });
10553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService$1, decorators: [{
10649
10554
  type: Injectable,
10650
10555
  args: [{
10651
10556
  providedIn: 'root'
@@ -10715,9 +10620,9 @@ class BankAccountService extends RestService$1 {
10715
10620
  });
10716
10621
  }
10717
10622
  }
10718
- BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10719
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, decorators: [{
10623
+ BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10624
+ BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountService, decorators: [{
10721
10626
  type: Injectable,
10722
10627
  args: [{
10723
10628
  providedIn: 'root'
@@ -10814,9 +10719,9 @@ class ToastService {
10814
10719
  }));
10815
10720
  }
10816
10721
  }
10817
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10818
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
10819
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, decorators: [{
10722
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10723
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, providedIn: 'root' });
10724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, decorators: [{
10820
10725
  type: Injectable,
10821
10726
  args: [{
10822
10727
  providedIn: 'root'
@@ -10894,9 +10799,9 @@ class BankConnectionService extends RestService$1 {
10894
10799
  });
10895
10800
  }
10896
10801
  }
10897
- BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10898
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10899
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, decorators: [{
10802
+ BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10803
+ BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10804
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankConnectionService, decorators: [{
10900
10805
  type: Injectable,
10901
10806
  args: [{
10902
10807
  providedIn: 'root'
@@ -11011,9 +10916,9 @@ class BankTransactionService extends RestService$1 {
11011
10916
  });
11012
10917
  }
11013
10918
  }
11014
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11015
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
11016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, decorators: [{
10919
+ BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10920
+ BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10921
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, decorators: [{
11017
10922
  type: Injectable,
11018
10923
  args: [{
11019
10924
  providedIn: 'root'
@@ -11045,9 +10950,9 @@ class BasiqTokenService extends RestService$1 {
11045
10950
  return new BasiqToken(tokenResponse['access_token'], new Date(now + tokenResponse['expires_in'] * 1000));
11046
10951
  }
11047
10952
  }
11048
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11049
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
11050
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, decorators: [{
10953
+ BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10954
+ BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
10955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, decorators: [{
11051
10956
  type: Injectable,
11052
10957
  args: [{
11053
10958
  providedIn: 'root'
@@ -11173,9 +11078,9 @@ BasiqService.retrieveAccountsCheckInterval = 3000;
11173
11078
  * How long we will wait accounts retrieving, break after timeout if not retireved
11174
11079
  */
11175
11080
  BasiqService.retrieveAccountsTimeout = 20000;
11176
- BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
11177
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, providedIn: 'root' });
11178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, decorators: [{
11081
+ BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
11082
+ BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqService, providedIn: 'root' });
11083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqService, decorators: [{
11179
11084
  type: Injectable,
11180
11085
  args: [{
11181
11086
  providedIn: 'root'
@@ -11207,9 +11112,9 @@ class BankService extends RestService$1 {
11207
11112
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11208
11113
  }
11209
11114
  }
11210
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11211
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, providedIn: 'root' });
11212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, decorators: [{
11115
+ BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11116
+ BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, providedIn: 'root' });
11117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, decorators: [{
11213
11118
  type: Injectable,
11214
11119
  args: [{
11215
11120
  providedIn: 'root'
@@ -11226,9 +11131,9 @@ class BudgetService extends RestService$1 {
11226
11131
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
11227
11132
  }
11228
11133
  }
11229
- BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11230
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, providedIn: 'root' });
11231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, decorators: [{
11134
+ BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11135
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, providedIn: 'root' });
11136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, decorators: [{
11232
11137
  type: Injectable,
11233
11138
  args: [{
11234
11139
  providedIn: 'root'
@@ -11256,9 +11161,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
11256
11161
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11257
11162
  }
11258
11163
  }
11259
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11260
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11164
+ ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11165
+ ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11262
11167
  type: Injectable,
11263
11168
  args: [{
11264
11169
  providedIn: 'root'
@@ -11298,9 +11203,9 @@ class ChartAccountsService extends RestService$1 {
11298
11203
  }));
11299
11204
  }
11300
11205
  }
11301
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11302
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, decorators: [{
11206
+ ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11207
+ ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, decorators: [{
11304
11209
  type: Injectable,
11305
11210
  args: [{
11306
11211
  providedIn: 'root'
@@ -11369,9 +11274,9 @@ class ChatService extends RestService$1 {
11369
11274
  });
11370
11275
  }
11371
11276
  }
11372
- ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11373
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, providedIn: 'root' });
11374
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, decorators: [{
11277
+ ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11278
+ ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChatService, providedIn: 'root' });
11279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChatService, decorators: [{
11375
11280
  type: Injectable,
11376
11281
  args: [{
11377
11282
  providedIn: 'root'
@@ -11430,9 +11335,9 @@ class MessageService extends RestService$1 {
11430
11335
  });
11431
11336
  }
11432
11337
  }
11433
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11434
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, providedIn: 'root' });
11435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, decorators: [{
11338
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11339
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageService, providedIn: 'root' });
11340
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageService, decorators: [{
11436
11341
  type: Injectable,
11437
11342
  args: [{
11438
11343
  providedIn: 'root'
@@ -11453,7 +11358,7 @@ class MessageDocumentService extends RestService$1 {
11453
11358
  this.modelClass = MessageDocument;
11454
11359
  this.collectionClass = MessageDocumentCollection;
11455
11360
  this.endpointUri = 'message-documents';
11456
- this.disabledMethods = ['postBatch', 'post', 'deleteBatch', 'put', 'putBatch'];
11361
+ this.disabledMethods = ['postBatch', 'deleteBatch', 'put', 'putBatch'];
11457
11362
  this.isApiPlatform = true;
11458
11363
  }
11459
11364
  /**
@@ -11504,165 +11409,31 @@ class MessageDocumentService extends RestService$1 {
11504
11409
  return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
11505
11410
  }
11506
11411
  }
11507
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11508
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, decorators: [{
11412
+ MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11413
+ MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, decorators: [{
11510
11415
  type: Injectable,
11511
11416
  args: [{
11512
11417
  providedIn: 'root'
11513
11418
  }]
11514
11419
  }] });
11515
11420
 
11516
- /**
11517
- * Abstract service class to work with transactions-like receipt files (transactions, depreciations, e.t.c.)
11518
- * @Todo TT-2191 refactor service when receipts API will be updated
11519
- */
11520
- class ReceiptService {
11521
- constructor(http, eventDispatcherService, environment, toastService) {
11522
- this.http = http;
11523
- this.eventDispatcherService = eventDispatcherService;
11524
- this.environment = environment;
11525
- this.toastService = toastService;
11526
- }
11527
- listenEvents() {
11528
- this.listenParentWithReceiptUpdated();
11529
- this.listenParentWithoutReceiptUpdated();
11530
- }
11531
- /**
11532
- * Entity is necessary to take the ID and the receipt file from it.
11533
- */
11534
- add(receiptEntity) {
11535
- const formData = new FormData();
11536
- formData.append('file', receiptEntity.file);
11537
- return this.http.post(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts`, formData)
11538
- .pipe(map((receipt) => {
11539
- const uploadedReceipt = this.createModelInstance(receipt);
11540
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptCreatedEvent, uploadedReceipt));
11541
- return uploadedReceipt;
11542
- }));
11543
- }
11544
- delete(receiptEntity) {
11545
- return this.http.delete(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts/${receiptEntity.receipt.id}`)
11546
- .pipe(map(() => {
11547
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptDeletedEvent, receiptEntity));
11548
- }));
11549
- }
11550
- /**
11551
- * Parent entity was updated with attached receipt
11552
- */
11553
- listenParentWithReceiptUpdated() {
11554
- this.eventDispatcherService.on(this.entityUpdatedWithReceiptEvent)
11555
- .subscribe((receiptEntity) => {
11556
- this.add(receiptEntity).subscribe();
11557
- });
11558
- }
11559
- /**
11560
- * Parent entity was updated, but receipt was removed
11561
- */
11562
- listenParentWithoutReceiptUpdated() {
11563
- this.eventDispatcherService.on(this.entityUpdatedWithDeletedReceiptEvent)
11564
- .subscribe((receiptEntity) => {
11565
- this.delete(receiptEntity).subscribe();
11566
- });
11567
- }
11568
- createModelInstance(data) {
11569
- return plainToClass(this.modelClass, data);
11570
- }
11571
- }
11572
- ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11573
- ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, decorators: [{
11575
- type: Injectable,
11576
- args: [{
11577
- providedIn: 'root'
11578
- }]
11579
- }], ctorParameters: function () {
11580
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11581
- type: Inject,
11582
- args: ['environment']
11583
- }] }, { type: ToastService }];
11584
- } });
11585
-
11586
- /**
11587
- * @Todo TT-2191 refactor service when receipts API will be updated
11588
- */
11589
- class DepreciationReceiptService extends ReceiptService {
11590
- constructor(http, eventDispatcherService, environment, toastService) {
11591
- super(http, eventDispatcherService, environment, toastService);
11592
- this.http = http;
11593
- this.eventDispatcherService = eventDispatcherService;
11594
- this.environment = environment;
11595
- this.toastService = toastService;
11596
- this.modelClass = DepreciationReceipt;
11597
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
11598
- this.receiptCreatedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED;
11599
- this.receiptDeletedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED;
11600
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT;
11601
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT;
11602
- this.listenEvents();
11603
- }
11604
- }
11605
- DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11606
- DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11607
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11608
- type: Injectable,
11609
- args: [{
11610
- providedIn: 'root'
11611
- }]
11612
- }], ctorParameters: function () {
11613
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11614
- type: Inject,
11615
- args: ['environment']
11616
- }] }, { type: ToastService }];
11617
- } });
11618
-
11619
11421
  class DepreciationService extends RestService$1 {
11620
- constructor(http, eventDispatcherService, environment, depreciationReceiptService) {
11422
+ constructor(http, eventDispatcherService, environment) {
11621
11423
  super(http, eventDispatcherService, environment);
11622
11424
  this.http = http;
11623
11425
  this.eventDispatcherService = eventDispatcherService;
11624
11426
  this.environment = environment;
11625
- this.depreciationReceiptService = depreciationReceiptService;
11626
11427
  this.modelClass = Depreciation;
11627
11428
  this.collectionClass = DepreciationCollection;
11628
11429
  this.endpointUri = 'depreciations';
11629
11430
  this.disabledMethods = ['post', 'putBatch', 'deleteBatch'];
11630
11431
  }
11631
- postBatch(depreciations) {
11632
- return super.postBatch(depreciations).pipe(map((newDepreciations) => {
11633
- depreciations.forEach((depreciation, index) => {
11634
- // @TODO backend: need to upload file in the same backend endpoint with depreciation add/update
11635
- // check if passed receipt and upload file
11636
- if (depreciation.file && (depreciation.file instanceof File)) {
11637
- depreciation.id = newDepreciations[index].id;
11638
- newDepreciations[index].file = depreciation.file;
11639
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, newDepreciations[index]));
11640
- }
11641
- });
11642
- return depreciations;
11643
- }));
11644
- }
11645
- put(depreciation) {
11646
- return super.put(depreciation)
11647
- .pipe(map((updatedDepreciation) => {
11648
- if (depreciation.file && (depreciation.file instanceof File)) {
11649
- updatedDepreciation.file = depreciation.file;
11650
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, updatedDepreciation));
11651
- // receipt file was removed from form - we should delete receipt from transaction
11652
- }
11653
- else if (!depreciation.file && depreciation.receipt) {
11654
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT, updatedDepreciation));
11655
- }
11656
- return updatedDepreciation;
11657
- }));
11658
- }
11659
11432
  /**
11660
11433
  * Listen to Depreciations events
11661
11434
  */
11662
11435
  listenEvents() {
11663
11436
  this.listenToUpdatedLoan();
11664
- this.listenReceiptAdded();
11665
- this.listenReceiptDeleted();
11666
11437
  this.listenVehicleClaimChanges();
11667
11438
  this.listenToUpdatedBankAccount();
11668
11439
  this.listenSoleDepreciationMethodChanges();
@@ -11672,22 +11443,6 @@ class DepreciationService extends RestService$1 {
11672
11443
  return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
11673
11444
  .pipe(map((response) => response || 0));
11674
11445
  }
11675
- listenReceiptAdded() {
11676
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
11677
- const depreciationToUpdate = this.cache.findBy('id', receipt.depreciation.id);
11678
- // we don't need to keep file after save
11679
- depreciationToUpdate.file = null;
11680
- depreciationToUpdate.receipt = receipt;
11681
- this.updateCache([depreciationToUpdate], 'put');
11682
- });
11683
- }
11684
- listenReceiptDeleted() {
11685
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED).subscribe((depreciation) => {
11686
- const depreciationToUpdate = this.cache.findBy('id', depreciation.id);
11687
- depreciationToUpdate.receipt = null;
11688
- this.updateCache([depreciationToUpdate], 'put');
11689
- });
11690
- }
11691
11446
  /**
11692
11447
  * Listen to EventDispatcherService event related to updated bank loan
11693
11448
  */
@@ -11739,9 +11494,9 @@ class DepreciationService extends RestService$1 {
11739
11494
  });
11740
11495
  }
11741
11496
  }
11742
- DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
11743
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11744
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, decorators: [{
11497
+ DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11498
+ DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationService, decorators: [{
11745
11500
  type: Injectable,
11746
11501
  args: [{
11747
11502
  providedIn: 'root'
@@ -11750,7 +11505,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11750
11505
  return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11751
11506
  type: Inject,
11752
11507
  args: ['environment']
11753
- }] }, { type: DepreciationReceiptService }];
11508
+ }] }];
11754
11509
  } });
11755
11510
 
11756
11511
  /**
@@ -11793,9 +11548,9 @@ class DepreciationCapitalProjectService {
11793
11548
  }));
11794
11549
  }
11795
11550
  }
11796
- DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11797
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11798
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11551
+ DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11552
+ DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11799
11554
  type: Injectable,
11800
11555
  args: [{
11801
11556
  providedIn: 'root'
@@ -11807,40 +11562,305 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11807
11562
  }] }];
11808
11563
  } });
11809
11564
 
11565
+ var DocumentFolderMessagesEnum;
11566
+ (function (DocumentFolderMessagesEnum) {
11567
+ DocumentFolderMessagesEnum["CREATED"] = "Folder created!";
11568
+ DocumentFolderMessagesEnum["UPDATED"] = "Folder updated!";
11569
+ DocumentFolderMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the folder?";
11570
+ DocumentFolderMessagesEnum["DELETED"] = "Folder deleted!";
11571
+ })(DocumentFolderMessagesEnum || (DocumentFolderMessagesEnum = {}));
11572
+
11810
11573
  /**
11811
- * Abstract base service that implements common services functionality
11812
- * and describe abstract methods/properties that have to be implemented in child services
11813
- * Model - entity service is working with
11814
- * BaseModel - base entity model that extends by Model
11815
- * @TODO TT-1777 Alex: remove when all services refactored
11574
+ * Service to handle document-folders and depending documents logic
11816
11575
  */
11817
- class RestService {
11818
- constructor(http, eventDispatcherService, environment, toastService) {
11576
+ class DocumentFolderService extends RestService$1 {
11577
+ constructor() {
11578
+ super(...arguments);
11579
+ this.endpointUri = 'folders';
11580
+ this.collectionClass = Collection;
11581
+ this.modelClass = DocumentFolder;
11582
+ this.disabledMethods = ['deleteBatch', 'postBatch', 'putBatch'];
11583
+ }
11584
+ }
11585
+ DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11586
+ DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
11587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, decorators: [{
11588
+ type: Injectable,
11589
+ args: [{
11590
+ providedIn: 'root'
11591
+ }]
11592
+ }] });
11593
+
11594
+ class DocumentService extends RestService$1 {
11595
+ constructor() {
11596
+ super(...arguments);
11597
+ this.endpointUri = 'folder-documents';
11598
+ this.modelClass = Document;
11599
+ this.collectionClass = Collection;
11600
+ this.disabledMethods = ['postBatch', 'putBatch'];
11601
+ this.isApiPlatform = true;
11602
+ }
11603
+ }
11604
+ DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11605
+ DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, providedIn: 'root' });
11606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, decorators: [{
11607
+ type: Injectable,
11608
+ args: [{
11609
+ providedIn: 'root'
11610
+ }]
11611
+ }] });
11612
+
11613
+ var DocumentMessagesEnum;
11614
+ (function (DocumentMessagesEnum) {
11615
+ DocumentMessagesEnum["CREATED"] = "Document created!";
11616
+ DocumentMessagesEnum["UPDATED"] = "Document updated!";
11617
+ DocumentMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the document?";
11618
+ DocumentMessagesEnum["DELETED"] = "Document deleted!";
11619
+ })(DocumentMessagesEnum || (DocumentMessagesEnum = {}));
11620
+
11621
+ const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
11622
+ class FacebookService {
11623
+ /**
11624
+ * @TODO when google login will be done, it needs to be moved to an abstract class
11625
+ */
11626
+ constructor(http, toastService, jwtService, router, environment) {
11819
11627
  this.http = http;
11820
- this.eventDispatcherService = eventDispatcherService;
11821
- this.environment = environment;
11822
11628
  this.toastService = toastService;
11823
- this.jwtService = inject(JwtService);
11824
- // subject for service cache
11825
- this.cacheSubject = new ReplaySubject(1);
11826
- this.roles = [];
11827
- this.listenEvents();
11629
+ this.jwtService = jwtService;
11630
+ this.router = router;
11631
+ this.environment = environment;
11632
+ this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
11633
+ this.isFacebookEnabled = !!environment['facebookAppId'];
11634
+ }
11635
+ login(redirectUrl = '/client') {
11636
+ return __awaiter(this, void 0, void 0, function* () {
11637
+ const accessToken = yield this.getAccessToken();
11638
+ this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
11639
+ .subscribe((response) => {
11640
+ this.setAuth(response);
11641
+ this.router.navigate([redirectUrl]);
11642
+ }, (error) => {
11643
+ this.toastService.error(error.error.violations[0].message);
11644
+ this.logout();
11645
+ });
11646
+ });
11828
11647
  }
11829
11648
  /**
11830
- * get list of base class instances directly from backend
11649
+ * save user's auth tokens
11650
+ * @TODO move to abstract class
11831
11651
  */
11832
- fetch() {
11833
- this.setCache([]);
11834
- return this.http.get(`${this.environment.apiV2}/${this.url}`)
11835
- .pipe(map((response) => {
11836
- const items = (this.isHydra ? response['hydra:member'] : response)
11837
- .map((item) => this.createModelInstance(item));
11838
- this.setCache(items, true);
11839
- return items;
11840
- }));
11652
+ setAuth(response) {
11653
+ this.jwtService.saveTokens(response);
11654
+ this.isLoggedInSubject.next(true);
11841
11655
  }
11842
11656
  /**
11843
- * get cached list of all instances
11657
+ * get facebook auth access token
11658
+ */
11659
+ getAccessToken() {
11660
+ return new Promise((resolve) => {
11661
+ FB.login((response) => {
11662
+ // authResponse will be empty if you close the Facebook login window or enter incorrect user data
11663
+ if (!response.authResponse) {
11664
+ return;
11665
+ }
11666
+ if (!response.authResponse.grantedScopes.includes('email')) {
11667
+ this.toastService.error(ERROR_EMAIL_PERMISSION);
11668
+ return;
11669
+ }
11670
+ resolve(response.authResponse.accessToken);
11671
+ }, FacebookService.authOptions);
11672
+ });
11673
+ }
11674
+ /**
11675
+ * logout user from facebook.
11676
+ * Need to logout when user is trying to login with facebook with manually registered email
11677
+ */
11678
+ logout() {
11679
+ return new Promise((resolve, reject) => {
11680
+ FB.logout((response) => {
11681
+ resolve(response);
11682
+ });
11683
+ });
11684
+ }
11685
+ }
11686
+ FacebookService.authOptions = {
11687
+ scope: 'email, public_profile',
11688
+ auth_type: 'rerequest',
11689
+ return_scopes: true
11690
+ };
11691
+ FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11692
+ FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FacebookService, providedIn: 'root' });
11693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FacebookService, decorators: [{
11694
+ type: Injectable,
11695
+ args: [{
11696
+ providedIn: 'root'
11697
+ }]
11698
+ }], ctorParameters: function () {
11699
+ return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
11700
+ type: Inject,
11701
+ args: ['environment']
11702
+ }] }];
11703
+ } });
11704
+
11705
+ /**
11706
+ * Google instance
11707
+ * https://developers.google.com/identity/oauth2/web/guides/overview
11708
+ * https://developers.google.com/identity/gsi/web/guides/overview
11709
+ */
11710
+ class GoogleService {
11711
+ constructor(http, toastService, jwtService, router, environment) {
11712
+ this.http = http;
11713
+ this.toastService = toastService;
11714
+ this.jwtService = jwtService;
11715
+ this.router = router;
11716
+ this.environment = environment;
11717
+ this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
11718
+ this.isGoogleEnabled = !!this.environment['googleClientId'];
11719
+ // depending on the level of access
11720
+ this.googleScope = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
11721
+ }
11722
+ /**
11723
+ * prompt for user consent and obtain an access token to work with user data
11724
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token.
11725
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
11726
+ */
11727
+ // prompt for user consent and obtain an access token to work with user data
11728
+ login() {
11729
+ return google.accounts.oauth2.initTokenClient({
11730
+ client_id: this.environment['googleClientId'],
11731
+ scope: this.googleScope,
11732
+ callback: (response) => {
11733
+ this.setAuth(response.access_token);
11734
+ },
11735
+ }).requestAccessToken();
11736
+ }
11737
+ /**
11738
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token:
11739
+ * Choose their account;
11740
+ * sign-in to the Google Account if not already signed-in;
11741
+ * grant consent for your web app to access each requested scope.
11742
+ */
11743
+ setAuth(accessToken, redirectUrl = '/client') {
11744
+ this.http.post(`${this.environment.apiV2}/users/authentication/google`, { accessToken })
11745
+ .subscribe((response) => {
11746
+ this.jwtService.saveTokens(response);
11747
+ this.isLoggedInSubject.next(true);
11748
+ this.router.navigate([redirectUrl]);
11749
+ }, (error) => {
11750
+ this.toastService.error(error.error.violations[0].message);
11751
+ this.logout();
11752
+ });
11753
+ }
11754
+ /**
11755
+ * When the user signs out of your website, you need to call the method
11756
+ * google.accounts.id.disableAutoSelect to record the status in cookies.
11757
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
11758
+ */
11759
+ logout() {
11760
+ google.accounts.id.disableAutoSelect();
11761
+ }
11762
+ }
11763
+ GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11764
+ GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: GoogleService, providedIn: 'root' });
11765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: GoogleService, decorators: [{
11766
+ type: Injectable,
11767
+ args: [{
11768
+ providedIn: 'root'
11769
+ }]
11770
+ }], ctorParameters: function () {
11771
+ return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
11772
+ type: Inject,
11773
+ args: ['environment']
11774
+ }] }];
11775
+ } });
11776
+
11777
+ class FileService extends RestService$1 {
11778
+ constructor() {
11779
+ super(...arguments);
11780
+ this.endpointUri = 'files';
11781
+ this.modelClass = AppFile;
11782
+ this.collectionClass = Collection;
11783
+ this.isApiPlatform = true;
11784
+ this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11785
+ }
11786
+ getById(id) {
11787
+ return this.http.get(this.apiUrl + '/' + id).pipe(map((response) => plainToClass(AppFile, response)));
11788
+ }
11789
+ getLink(id) {
11790
+ return this.http.get(this.apiUrl + '/' + id + '/view').pipe(map((response) => response));
11791
+ }
11792
+ upload(file) {
11793
+ const formData = new FormData();
11794
+ formData.append('file', file);
11795
+ return this.http.post(this.apiUrl, formData)
11796
+ .pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
11797
+ }
11798
+ download(file) {
11799
+ return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
11800
+ }
11801
+ }
11802
+ FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11803
+ FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, providedIn: 'root' });
11804
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, decorators: [{
11805
+ type: Injectable,
11806
+ args: [{
11807
+ providedIn: 'root'
11808
+ }]
11809
+ }] });
11810
+
11811
+ class ClientIncomeTypesService extends RestService$1 {
11812
+ constructor() {
11813
+ super(...arguments);
11814
+ this.modelClass = ClientIncomeTypes;
11815
+ this.collectionClass = Collection;
11816
+ this.endpointUri = 'client-income-types';
11817
+ this.isApiPlatform = true;
11818
+ this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
11819
+ }
11820
+ }
11821
+ ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11822
+ ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
11823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
11824
+ type: Injectable,
11825
+ args: [{
11826
+ providedIn: 'root'
11827
+ }]
11828
+ }] });
11829
+
11830
+ /**
11831
+ * Abstract base service that implements common services functionality
11832
+ * and describe abstract methods/properties that have to be implemented in child services
11833
+ * Model - entity service is working with
11834
+ * BaseModel - base entity model that extends by Model
11835
+ * @TODO TT-1777 Alex: remove when all services refactored
11836
+ */
11837
+ class RestService {
11838
+ constructor(http, eventDispatcherService, environment, toastService) {
11839
+ this.http = http;
11840
+ this.eventDispatcherService = eventDispatcherService;
11841
+ this.environment = environment;
11842
+ this.toastService = toastService;
11843
+ this.jwtService = inject(JwtService);
11844
+ // subject for service cache
11845
+ this.cacheSubject = new ReplaySubject(1);
11846
+ this.roles = [];
11847
+ this.listenEvents();
11848
+ }
11849
+ /**
11850
+ * get list of base class instances directly from backend
11851
+ */
11852
+ fetch() {
11853
+ this.setCache([]);
11854
+ return this.http.get(`${this.environment.apiV2}/${this.url}`)
11855
+ .pipe(map((response) => {
11856
+ const items = (this.isHydra ? response['hydra:member'] : response)
11857
+ .map((item) => this.createModelInstance(item));
11858
+ this.setCache(items, true);
11859
+ return items;
11860
+ }));
11861
+ }
11862
+ /**
11863
+ * get cached list of all instances
11844
11864
  */
11845
11865
  get() {
11846
11866
  if (!this.cache) {
@@ -11991,329 +12011,42 @@ class RestService {
11991
12011
  setCache(data, next = false) {
11992
12012
  this.cache = data;
11993
12013
  if (next) {
11994
- this.updateCache();
11995
- }
11996
- }
11997
- /**
11998
- * Update cache subject with current cache array value
11999
- */
12000
- updateCache() {
12001
- this.cacheSubject.next(this.cache.slice());
12002
- }
12003
- /**
12004
- * @TODO use excludeExtraneousValues when all models refactored (exposed all needed properties)
12005
- * Create new instance of class
12006
- * @param model instance that we will use as constructor options
12007
- */
12008
- createModelInstance(model) {
12009
- return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
12010
- }
12011
- /**
12012
- * Method that call all listeners. Empty by default. Should be redefined by child services if required
12013
- */
12014
- listenEvents() { }
12015
- }
12016
- RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
12017
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, providedIn: 'root' });
12018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, decorators: [{
12019
- type: Injectable,
12020
- args: [{
12021
- providedIn: 'root'
12022
- }]
12023
- }], ctorParameters: function () {
12024
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12025
- type: Inject,
12026
- args: ['environment']
12027
- }] }, { type: ToastService }];
12028
- } });
12029
-
12030
- class DocumentService extends RestService {
12031
- constructor() {
12032
- super(...arguments);
12033
- this.url = 'documents';
12034
- this.modelClass = Document;
12035
- }
12036
- }
12037
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12038
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, providedIn: 'root' });
12039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, decorators: [{
12040
- type: Injectable,
12041
- args: [{
12042
- providedIn: 'root'
12043
- }]
12044
- }] });
12045
-
12046
- /**
12047
- * Service to handle document-folders and depending documents logic
12048
- */
12049
- class DocumentFolderService extends RestService {
12050
- constructor() {
12051
- super(...arguments);
12052
- this.url = 'folders';
12053
- this.modelClass = DocumentFolder;
12054
- }
12055
- /**
12056
- * Add new document to the folder
12057
- * @param file to be uploaded to the folder
12058
- * @param folder for document
12059
- */
12060
- addDocument(file, folder) {
12061
- // create formData object with provided file
12062
- const formDataDocument = new FormData();
12063
- formDataDocument.append('file', file);
12064
- return this.http.post(`${this.environment.apiV2}/folders/${folder.id}/documents`, formDataDocument).pipe(map((response) => {
12065
- const updatedFolder = Object.assign(plainToClass(DocumentFolder, {}), folder);
12066
- updatedFolder.documents.push(plainToClass(Document, response));
12067
- replace(this.cache, plainToClass(DocumentFolder, updatedFolder));
12068
- this.cacheSubject.next(this.cache);
12069
- }));
12070
- }
12071
- /**
12072
- * Edit folder document by moving it from one folder to another
12073
- * @param editedDocument
12074
- * @param selectedFolder to move the document to
12075
- * @param oldFolderId: id of old folder from which need to remove the document
12076
- */
12077
- updateDocument(editedDocument, selectedFolder, oldFolderId) {
12078
- return this.http.put(`${this.environment.apiV2}/folders/${selectedFolder.id}/documents/${editedDocument.id}`, editedDocument).pipe(map((response) => {
12079
- const oldFolder = this.cache.find((folder) => folder.id === oldFolderId);
12080
- // Remove document from old folder
12081
- oldFolder.documents = oldFolder.documents.filter((deletedDocument) => deletedDocument.id !== response.id);
12082
- // update old folder and replace it in cache
12083
- response.folder = plainToClass(DocumentFolder, { id: selectedFolder.id, name: selectedFolder.name });
12084
- replace(this.cache, plainToClass(DocumentFolder, oldFolder));
12085
- // update new document folder and replace it in cache
12086
- selectedFolder.documents.push(plainToClass(Document, response));
12087
- replace(this.cache, plainToClass(DocumentFolder, selectedFolder));
12088
- this.cacheSubject.next(this.cache);
12089
- }));
12090
- }
12091
- /**
12092
- * Delete document from folder
12093
- * @param document to remove
12094
- * @param folder from which document should be removed
12095
- */
12096
- deleteDocument(document, folder) {
12097
- return this.http.delete(`${this.environment.apiV2}/folders/${folder.id}/documents/${document.id}`).pipe(map(() => {
12098
- folder.documents = folder.documents
12099
- .filter((deletedDocument) => deletedDocument.id !== document.id);
12100
- replace(this.cache, plainToClass(DocumentFolder, folder));
12101
- this.cacheSubject.next(this.cache);
12102
- }));
12103
- }
12104
- }
12105
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12106
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
12107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, decorators: [{
12108
- type: Injectable,
12109
- args: [{
12110
- providedIn: 'root'
12111
- }]
12112
- }] });
12113
-
12114
- const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
12115
- class FacebookService {
12116
- /**
12117
- * @TODO when google login will be done, it needs to be moved to an abstract class
12118
- */
12119
- constructor(http, toastService, jwtService, router, environment) {
12120
- this.http = http;
12121
- this.toastService = toastService;
12122
- this.jwtService = jwtService;
12123
- this.router = router;
12124
- this.environment = environment;
12125
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12126
- this.isFacebookEnabled = !!environment['facebookAppId'];
12127
- }
12128
- login(redirectUrl = '/client') {
12129
- return __awaiter(this, void 0, void 0, function* () {
12130
- const accessToken = yield this.getAccessToken();
12131
- this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
12132
- .subscribe((response) => {
12133
- this.setAuth(response);
12134
- this.router.navigate([redirectUrl]);
12135
- }, (error) => {
12136
- this.toastService.error(error.error.violations[0].message);
12137
- this.logout();
12138
- });
12139
- });
12140
- }
12141
- /**
12142
- * save user's auth tokens
12143
- * @TODO move to abstract class
12144
- */
12145
- setAuth(response) {
12146
- this.jwtService.saveTokens(response);
12147
- this.isLoggedInSubject.next(true);
12148
- }
12149
- /**
12150
- * get facebook auth access token
12151
- */
12152
- getAccessToken() {
12153
- return new Promise((resolve) => {
12154
- FB.login((response) => {
12155
- // authResponse will be empty if you close the Facebook login window or enter incorrect user data
12156
- if (!response.authResponse) {
12157
- return;
12158
- }
12159
- if (!response.authResponse.grantedScopes.includes('email')) {
12160
- this.toastService.error(ERROR_EMAIL_PERMISSION);
12161
- return;
12162
- }
12163
- resolve(response.authResponse.accessToken);
12164
- }, FacebookService.authOptions);
12165
- });
12166
- }
12167
- /**
12168
- * logout user from facebook.
12169
- * Need to logout when user is trying to login with facebook with manually registered email
12170
- */
12171
- logout() {
12172
- return new Promise((resolve, reject) => {
12173
- FB.logout((response) => {
12174
- resolve(response);
12175
- });
12176
- });
12177
- }
12178
- }
12179
- FacebookService.authOptions = {
12180
- scope: 'email, public_profile',
12181
- auth_type: 'rerequest',
12182
- return_scopes: true
12183
- };
12184
- FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12185
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, providedIn: 'root' });
12186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, decorators: [{
12187
- type: Injectable,
12188
- args: [{
12189
- providedIn: 'root'
12190
- }]
12191
- }], ctorParameters: function () {
12192
- return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
12193
- type: Inject,
12194
- args: ['environment']
12195
- }] }];
12196
- } });
12197
-
12198
- /**
12199
- * Google instance
12200
- * https://developers.google.com/identity/oauth2/web/guides/overview
12201
- * https://developers.google.com/identity/gsi/web/guides/overview
12202
- */
12203
- class GoogleService {
12204
- constructor(http, toastService, jwtService, router, environment) {
12205
- this.http = http;
12206
- this.toastService = toastService;
12207
- this.jwtService = jwtService;
12208
- this.router = router;
12209
- this.environment = environment;
12210
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12211
- this.isGoogleEnabled = !!this.environment['googleClientId'];
12212
- // depending on the level of access
12213
- this.googleScope = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
12214
- }
12215
- /**
12216
- * prompt for user consent and obtain an access token to work with user data
12217
- * requestAccessToken() method to trigger the token UX flow and obtain an access token.
12218
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
12219
- */
12220
- // prompt for user consent and obtain an access token to work with user data
12221
- login() {
12222
- return google.accounts.oauth2.initTokenClient({
12223
- client_id: this.environment['googleClientId'],
12224
- scope: this.googleScope,
12225
- callback: (response) => {
12226
- this.setAuth(response.access_token);
12227
- },
12228
- }).requestAccessToken();
12229
- }
12230
- /**
12231
- * requestAccessToken() method to trigger the token UX flow and obtain an access token:
12232
- * Choose their account;
12233
- * sign-in to the Google Account if not already signed-in;
12234
- * grant consent for your web app to access each requested scope.
12235
- */
12236
- setAuth(accessToken, redirectUrl = '/client') {
12237
- this.http.post(`${this.environment.apiV2}/users/authentication/google`, { accessToken })
12238
- .subscribe((response) => {
12239
- this.jwtService.saveTokens(response);
12240
- this.isLoggedInSubject.next(true);
12241
- this.router.navigate([redirectUrl]);
12242
- }, (error) => {
12243
- this.toastService.error(error.error.violations[0].message);
12244
- this.logout();
12245
- });
12014
+ this.updateCache();
12015
+ }
12246
12016
  }
12247
12017
  /**
12248
- * When the user signs out of your website, you need to call the method
12249
- * google.accounts.id.disableAutoSelect to record the status in cookies.
12250
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
12018
+ * Update cache subject with current cache array value
12251
12019
  */
12252
- logout() {
12253
- google.accounts.id.disableAutoSelect();
12020
+ updateCache() {
12021
+ this.cacheSubject.next(this.cache.slice());
12022
+ }
12023
+ /**
12024
+ * @TODO use excludeExtraneousValues when all models refactored (exposed all needed properties)
12025
+ * Create new instance of class
12026
+ * @param model instance that we will use as constructor options
12027
+ */
12028
+ createModelInstance(model) {
12029
+ return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
12254
12030
  }
12031
+ /**
12032
+ * Method that call all listeners. Empty by default. Should be redefined by child services if required
12033
+ */
12034
+ listenEvents() { }
12255
12035
  }
12256
- GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12257
- GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, providedIn: 'root' });
12258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, decorators: [{
12036
+ RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
12037
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService, providedIn: 'root' });
12038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService, decorators: [{
12259
12039
  type: Injectable,
12260
12040
  args: [{
12261
12041
  providedIn: 'root'
12262
12042
  }]
12263
12043
  }], ctorParameters: function () {
12264
- return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
12044
+ return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12265
12045
  type: Inject,
12266
12046
  args: ['environment']
12267
- }] }];
12047
+ }] }, { type: ToastService }];
12268
12048
  } });
12269
12049
 
12270
- class FileService extends RestService$1 {
12271
- constructor() {
12272
- super(...arguments);
12273
- this.endpointUri = 'files';
12274
- this.modelClass = AppFile;
12275
- this.collectionClass = Collection;
12276
- this.isApiPlatform = true;
12277
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
12278
- }
12279
- upload(file) {
12280
- const formData = new FormData();
12281
- formData.append('file', file);
12282
- return this.http.post(this.apiUrl, formData)
12283
- .pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
12284
- }
12285
- download(file) {
12286
- return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
12287
- }
12288
- }
12289
- FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12290
- FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, providedIn: 'root' });
12291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, decorators: [{
12292
- type: Injectable,
12293
- args: [{
12294
- providedIn: 'root'
12295
- }]
12296
- }] });
12297
-
12298
- class ClientIncomeTypesService extends RestService$1 {
12299
- constructor() {
12300
- super(...arguments);
12301
- this.modelClass = ClientIncomeTypes;
12302
- this.collectionClass = Collection;
12303
- this.endpointUri = 'client-income-types';
12304
- this.isApiPlatform = true;
12305
- this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
12306
- }
12307
- }
12308
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12309
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
12310
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
12311
- type: Injectable,
12312
- args: [{
12313
- providedIn: 'root'
12314
- }]
12315
- }] });
12316
-
12317
12050
  class ClientInviteService extends RestService {
12318
12051
  constructor() {
12319
12052
  super(...arguments);
@@ -12424,9 +12157,9 @@ class ClientInviteService extends RestService {
12424
12157
  });
12425
12158
  }
12426
12159
  }
12427
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12428
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, decorators: [{
12160
+ ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12161
+ ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, decorators: [{
12430
12163
  type: Injectable,
12431
12164
  args: [{
12432
12165
  providedIn: 'root'
@@ -12513,9 +12246,9 @@ class ClientMovementService extends RestService {
12513
12246
  });
12514
12247
  }
12515
12248
  }
12516
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12517
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, decorators: [{
12249
+ ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12250
+ ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, decorators: [{
12519
12252
  type: Injectable,
12520
12253
  args: [{
12521
12254
  providedIn: 'root'
@@ -12566,9 +12299,9 @@ class EmployeeService extends RestService {
12566
12299
  }));
12567
12300
  }
12568
12301
  }
12569
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12570
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, decorators: [{
12302
+ EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12303
+ EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, decorators: [{
12572
12305
  type: Injectable,
12573
12306
  args: [{
12574
12307
  providedIn: 'root'
@@ -12630,9 +12363,9 @@ class EmployeeInviteService extends RestService {
12630
12363
  }));
12631
12364
  }
12632
12365
  }
12633
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12634
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12635
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, decorators: [{
12366
+ EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12367
+ EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, decorators: [{
12636
12369
  type: Injectable,
12637
12370
  args: [{
12638
12371
  providedIn: 'root'
@@ -12657,9 +12390,9 @@ class ClientPortfolioReportService {
12657
12390
  }));
12658
12391
  }
12659
12392
  }
12660
- ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12661
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12662
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12393
+ ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12394
+ ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12663
12396
  type: Injectable,
12664
12397
  args: [{
12665
12398
  providedIn: 'root'
@@ -12671,6 +12404,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
12671
12404
  }] }];
12672
12405
  } });
12673
12406
 
12407
+ var FirmMessagesEnum;
12408
+ (function (FirmMessagesEnum) {
12409
+ FirmMessagesEnum["LOGO_UPDATED"] = "Firm logo updated";
12410
+ FirmMessagesEnum["DATA_UPDATED"] = "Firm data updated";
12411
+ })(FirmMessagesEnum || (FirmMessagesEnum = {}));
12412
+
12674
12413
  // @TODO Alex: think about extend base rest service
12675
12414
  class FirmService {
12676
12415
  constructor(http, environment) {
@@ -12714,18 +12453,10 @@ class FirmService {
12714
12453
  getByType(type) {
12715
12454
  return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
12716
12455
  }
12717
- updatePhoto(firm, photo) {
12718
- return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
12719
- .pipe(map((firmPhoto) => {
12720
- this.firm = plainToClass(Firm, Object.assign(firm, { photo: firmPhoto }));
12721
- this.firmSubject.next(this.firm);
12722
- return firm;
12723
- }));
12724
- }
12725
12456
  }
12726
- FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12727
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, providedIn: 'root' });
12728
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, decorators: [{
12457
+ FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12458
+ FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FirmService, providedIn: 'root' });
12459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FirmService, decorators: [{
12729
12460
  type: Injectable,
12730
12461
  args: [{
12731
12462
  providedIn: 'root'
@@ -12801,9 +12532,9 @@ class IncomeSourceForecastService extends RestService {
12801
12532
  }).flat();
12802
12533
  }
12803
12534
  }
12804
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12805
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12535
+ IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12536
+ IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12807
12538
  type: Injectable,
12808
12539
  args: [{
12809
12540
  providedIn: 'root'
@@ -12873,9 +12604,9 @@ class SalaryForecastService extends RestService {
12873
12604
  }).flat();
12874
12605
  }
12875
12606
  }
12876
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12877
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12878
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, decorators: [{
12607
+ SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12608
+ SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, decorators: [{
12879
12610
  type: Injectable,
12880
12611
  args: [{
12881
12612
  providedIn: 'root'
@@ -12951,9 +12682,9 @@ class SoleForecastService extends RestService {
12951
12682
  });
12952
12683
  }
12953
12684
  }
12954
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12955
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12956
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, decorators: [{
12685
+ SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12686
+ SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, decorators: [{
12957
12688
  type: Injectable,
12958
12689
  args: [{
12959
12690
  providedIn: 'root'
@@ -13032,9 +12763,9 @@ class IncomeSourceService extends RestService {
13032
12763
  });
13033
12764
  }
13034
12765
  }
13035
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13036
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
13037
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, decorators: [{
12766
+ IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12767
+ IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, decorators: [{
13038
12769
  type: Injectable,
13039
12770
  args: [{
13040
12771
  providedIn: 'root'
@@ -13095,9 +12826,9 @@ class BorrowingExpenseService {
13095
12826
  }));
13096
12827
  }
13097
12828
  }
13098
- BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13099
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
13100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, decorators: [{
12829
+ BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12830
+ BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
12831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingExpenseService, decorators: [{
13101
12832
  type: Injectable,
13102
12833
  args: [{
13103
12834
  providedIn: 'root'
@@ -13179,9 +12910,9 @@ class LoanService extends RestService$1 {
13179
12910
  }));
13180
12911
  }
13181
12912
  }
13182
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13183
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, providedIn: 'root' });
13184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, decorators: [{
12913
+ LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12914
+ LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, providedIn: 'root' });
12915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, decorators: [{
13185
12916
  type: Injectable,
13186
12917
  args: [{
13187
12918
  providedIn: 'root'
@@ -13198,9 +12929,9 @@ class BorrowingReportService extends RestService$1 {
13198
12929
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13199
12930
  }
13200
12931
  }
13201
- BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13202
- BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
13203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, decorators: [{
12932
+ BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12933
+ BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
12934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, decorators: [{
13204
12935
  type: Injectable,
13205
12936
  args: [{
13206
12937
  providedIn: 'root'
@@ -13226,9 +12957,9 @@ class PropertyCategoryService extends RestService$1 {
13226
12957
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13227
12958
  }
13228
12959
  }
13229
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13230
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
13231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, decorators: [{
12960
+ PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12961
+ PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
12962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, decorators: [{
13232
12963
  type: Injectable,
13233
12964
  args: [{
13234
12965
  providedIn: 'root'
@@ -13244,15 +12975,23 @@ class PropertyCategoryMovementService extends RestService$1 {
13244
12975
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13245
12976
  }
13246
12977
  }
13247
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13248
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
13249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
12978
+ PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12979
+ PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
12980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
13250
12981
  type: Injectable,
13251
12982
  args: [{
13252
12983
  providedIn: 'root'
13253
12984
  }]
13254
12985
  }] });
13255
12986
 
12987
+ var PropertyDocumentMessagesEnum;
12988
+ (function (PropertyDocumentMessagesEnum) {
12989
+ PropertyDocumentMessagesEnum["CREATED"] = "Property document created";
12990
+ PropertyDocumentMessagesEnum["UPDATED"] = "Property document updated";
12991
+ PropertyDocumentMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the document?";
12992
+ PropertyDocumentMessagesEnum["DELETED"] = "Property document deleted";
12993
+ })(PropertyDocumentMessagesEnum || (PropertyDocumentMessagesEnum = {}));
12994
+
13256
12995
  /**
13257
12996
  * Class for work with Property Documents
13258
12997
  */
@@ -13261,8 +13000,9 @@ class PropertyDocumentService extends RestService$1 {
13261
13000
  super(...arguments);
13262
13001
  this.modelClass = PropertyDocument;
13263
13002
  this.collectionClass = Collection;
13264
- this.endpointUri = 'properties/documents';
13265
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch'];
13003
+ this.endpointUri = 'property-documents';
13004
+ this.disabledMethods = ['postBatch', 'putBatch'];
13005
+ this.isApiPlatform = true;
13266
13006
  }
13267
13007
  /**
13268
13008
  * Add new Property Document
@@ -13288,9 +13028,9 @@ class PropertyDocumentService extends RestService$1 {
13288
13028
  });
13289
13029
  }
13290
13030
  }
13291
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13292
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, decorators: [{
13031
+ PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13032
+ PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13033
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, decorators: [{
13294
13034
  type: Injectable,
13295
13035
  args: [{
13296
13036
  providedIn: 'root'
@@ -13364,9 +13104,9 @@ class TaxExemptionService extends DataService {
13364
13104
  this.setCache(TaxExemptions);
13365
13105
  }
13366
13106
  }
13367
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13368
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, decorators: [{
13107
+ TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13108
+ TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, decorators: [{
13370
13110
  type: Injectable,
13371
13111
  args: [{
13372
13112
  providedIn: 'root'
@@ -13382,9 +13122,9 @@ class PropertySaleService extends RestService$1 {
13382
13122
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13383
13123
  }
13384
13124
  }
13385
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13386
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, decorators: [{
13125
+ PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13126
+ PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, decorators: [{
13388
13128
  type: Injectable,
13389
13129
  args: [{
13390
13130
  providedIn: 'root'
@@ -13430,15 +13170,59 @@ class PropertyShareService extends RestService$1 {
13430
13170
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13431
13171
  }
13432
13172
  }
13433
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13434
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, decorators: [{
13173
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13174
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, decorators: [{
13176
+ type: Injectable,
13177
+ args: [{
13178
+ providedIn: 'root'
13179
+ }]
13180
+ }] });
13181
+
13182
+ /**
13183
+ * @TODO Alex: refacotor with api platform (old endpoint)
13184
+ */
13185
+ class PropertyValuationService extends RestService$1 {
13186
+ constructor() {
13187
+ super(...arguments);
13188
+ this.endpointUri = 'properties';
13189
+ this.modelClass = PropertyValuation;
13190
+ this.collectionClass = (Collection);
13191
+ this.disabledMethods = ['postBatch', 'putBatch'];
13192
+ this.isApiPlatform = true;
13193
+ }
13194
+ get(propertyId) {
13195
+ return this.http.get(`${this.apiUrl}/${propertyId}/valuations`)
13196
+ .pipe(map((valuations) => new Collection(valuations.map((valuation) => plainToClass(PropertyValuation, valuation)))));
13197
+ }
13198
+ post(valuation, propertyId) {
13199
+ return super.post(valuation, `${this.apiUrl}/${propertyId}/valuations`);
13200
+ }
13201
+ put(valuation, propertyId) {
13202
+ return super.put(valuation, `${this.apiUrl}/${propertyId}/valuations/${valuation.id}`);
13203
+ }
13204
+ }
13205
+ PropertyValuationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13206
+ PropertyValuationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, providedIn: 'root' });
13207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, decorators: [{
13436
13208
  type: Injectable,
13437
13209
  args: [{
13438
13210
  providedIn: 'root'
13439
13211
  }]
13440
13212
  }] });
13441
13213
 
13214
+ var PropertyValuationMessages;
13215
+ (function (PropertyValuationMessages) {
13216
+ PropertyValuationMessages["CREATED"] = "Property valuation created";
13217
+ PropertyValuationMessages["UPDATED"] = "Property valuation updated";
13218
+ })(PropertyValuationMessages || (PropertyValuationMessages = {}));
13219
+
13220
+ var PropertyMessagesEnum;
13221
+ (function (PropertyMessagesEnum) {
13222
+ PropertyMessagesEnum["PHOTO_UPDATED"] = "Property photo updated";
13223
+ PropertyMessagesEnum["PROPERTY_UPDATED"] = "Property updated";
13224
+ })(PropertyMessagesEnum || (PropertyMessagesEnum = {}));
13225
+
13442
13226
  /**
13443
13227
  * @Todo Alex remove functionality related to PropertyShare
13444
13228
  * @TODO Alex (TT-1777): replace all event listeners with the new this.listen()
@@ -13470,6 +13254,7 @@ class PropertyService extends RestService$1 {
13470
13254
  // @TODO Alex: consider to refactor property movements logic similar to client-movements
13471
13255
  this.listenMovementsChanges();
13472
13256
  this.listenSalesChanges();
13257
+ this.listenValuations();
13473
13258
  }
13474
13259
  /**
13475
13260
  * Update cache when share invitation accepted
@@ -13489,6 +13274,9 @@ class PropertyService extends RestService$1 {
13489
13274
  listenSalesChanges() {
13490
13275
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13491
13276
  }
13277
+ listenValuations() {
13278
+ this.listenCSE(PropertyValuation, ['post', 'put'], this.refreshCache);
13279
+ }
13492
13280
  updateDepreciationCalculation(property) {
13493
13281
  const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
13494
13282
  return this.put(propertyToUpdate)
@@ -13529,9 +13317,9 @@ class PropertyService extends RestService$1 {
13529
13317
  }));
13530
13318
  }
13531
13319
  }
13532
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13533
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, providedIn: 'root' });
13534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, decorators: [{
13320
+ PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13321
+ PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, providedIn: 'root' });
13322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, decorators: [{
13535
13323
  type: Injectable,
13536
13324
  args: [{
13537
13325
  providedIn: 'root'
@@ -13585,9 +13373,9 @@ class ServiceNotificationService extends RestService {
13585
13373
  });
13586
13374
  }
13587
13375
  }
13588
- ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13589
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13590
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, decorators: [{
13376
+ ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13377
+ ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceNotificationService, decorators: [{
13591
13379
  type: Injectable,
13592
13380
  args: [{
13593
13381
  providedIn: 'root'
@@ -13599,12 +13387,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
13599
13387
  }] }, { type: ToastService }, { type: SseService }];
13600
13388
  } });
13601
13389
 
13602
- var MessagesEnum$3;
13603
- (function (MessagesEnum) {
13604
- MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13605
- MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
13606
- MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
13607
- })(MessagesEnum$3 || (MessagesEnum$3 = {}));
13390
+ var SoleBusinessMessagesEnum;
13391
+ (function (SoleBusinessMessagesEnum) {
13392
+ SoleBusinessMessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13393
+ })(SoleBusinessMessagesEnum || (SoleBusinessMessagesEnum = {}));
13608
13394
 
13609
13395
  class SoleBusinessService extends RestService {
13610
13396
  constructor() {
@@ -13619,28 +13405,10 @@ class SoleBusinessService extends RestService {
13619
13405
  return business;
13620
13406
  }));
13621
13407
  }
13622
- uploadLogo(business, file) {
13623
- const formData = new FormData();
13624
- formData.append('file', file);
13625
- return this.http.post(`${this.environment.apiV2}/${this.url}/${business.id}/logo`, formData)
13626
- .pipe(map((updatedBusiness) => {
13627
- const tempCache = cloneDeep$1(this.cache);
13628
- replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
13629
- this.cache = tempCache;
13630
- this.cacheSubject.next(this.cache);
13631
- this.toastService.success(MessagesEnum$3.LOGO_UPDATED);
13632
- }), catchError((error) => {
13633
- // Show error when user provided wrong image (format or size)
13634
- if (error.status === 422) {
13635
- this.toastService.error(error.error.violations[0].message);
13636
- }
13637
- return throwError(error);
13638
- }));
13639
- }
13640
13408
  }
13641
- SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13642
- SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, decorators: [{
13409
+ SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13410
+ SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, decorators: [{
13644
13412
  type: Injectable,
13645
13413
  args: [{
13646
13414
  providedIn: 'root'
@@ -13655,9 +13423,9 @@ class SoleBusinessActivityService extends RestService {
13655
13423
  this.isHydra = true;
13656
13424
  }
13657
13425
  }
13658
- SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13659
- SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13426
+ SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13427
+ SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13661
13429
  type: Injectable,
13662
13430
  args: [{
13663
13431
  providedIn: 'root'
@@ -13683,9 +13451,9 @@ class SoleBusinessLossService extends RestService {
13683
13451
  });
13684
13452
  }
13685
13453
  }
13686
- SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13687
- SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13688
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13454
+ SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13455
+ SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13689
13457
  type: Injectable,
13690
13458
  args: [{
13691
13459
  providedIn: 'root'
@@ -13703,9 +13471,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
13703
13471
  this.isHydra = true;
13704
13472
  }
13705
13473
  }
13706
- SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13707
- SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13708
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13474
+ SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13475
+ SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13709
13477
  type: Injectable,
13710
13478
  args: [{
13711
13479
  providedIn: 'root'
@@ -13720,9 +13488,9 @@ class SoleContactService extends RestService {
13720
13488
  this.isHydra = true;
13721
13489
  }
13722
13490
  }
13723
- SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13724
- SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13725
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, decorators: [{
13491
+ SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13492
+ SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, decorators: [{
13726
13494
  type: Injectable,
13727
13495
  args: [{
13728
13496
  providedIn: 'root'
@@ -13778,9 +13546,9 @@ class SoleDepreciationMethodService {
13778
13546
  });
13779
13547
  }
13780
13548
  }
13781
- SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13782
- SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13549
+ SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13550
+ SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13784
13552
  type: Injectable,
13785
13553
  args: [{
13786
13554
  providedIn: 'root'
@@ -13835,9 +13603,9 @@ class SoleDetailsService {
13835
13603
  }));
13836
13604
  }
13837
13605
  }
13838
- SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13839
- SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13840
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, decorators: [{
13606
+ SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13607
+ SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDetailsService, decorators: [{
13841
13609
  type: Injectable,
13842
13610
  args: [{
13843
13611
  providedIn: 'root'
@@ -13914,9 +13682,9 @@ class SoleInvoiceService extends RestService {
13914
13682
  });
13915
13683
  }
13916
13684
  }
13917
- SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13918
- SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13919
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, decorators: [{
13685
+ SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13686
+ SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, decorators: [{
13920
13688
  type: Injectable,
13921
13689
  args: [{
13922
13690
  providedIn: 'root'
@@ -13931,9 +13699,9 @@ class SoleInvoiceTemplateService extends RestService {
13931
13699
  this.isHydra = true;
13932
13700
  }
13933
13701
  }
13934
- SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13935
- SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13702
+ SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13703
+ SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13704
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13937
13705
  type: Injectable,
13938
13706
  args: [{
13939
13707
  providedIn: 'root'
@@ -13948,9 +13716,9 @@ class BasReportService extends RestService {
13948
13716
  this.isHydra = true;
13949
13717
  }
13950
13718
  }
13951
- BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13952
- BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, providedIn: 'root' });
13953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, decorators: [{
13719
+ BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13720
+ BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, providedIn: 'root' });
13721
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, decorators: [{
13954
13722
  type: Injectable,
13955
13723
  args: [{
13956
13724
  providedIn: 'root'
@@ -13976,9 +13744,9 @@ class ServicePaymentService extends RestService$1 {
13976
13744
  return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
13977
13745
  }
13978
13746
  }
13979
- ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13980
- ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13981
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, decorators: [{
13747
+ ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13748
+ ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, decorators: [{
13982
13750
  type: Injectable,
13983
13751
  args: [{
13984
13752
  providedIn: 'root'
@@ -14026,9 +13794,9 @@ class ServicePaymentMethodService extends RestService$1 {
14026
13794
  });
14027
13795
  }
14028
13796
  }
14029
- ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
14030
- ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
14031
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13797
+ ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13798
+ ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
14032
13800
  type: Injectable,
14033
13801
  args: [{
14034
13802
  providedIn: 'root'
@@ -14053,9 +13821,9 @@ class ServicePriceService extends RestService$1 {
14053
13821
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
14054
13822
  }
14055
13823
  }
14056
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14057
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
14058
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, decorators: [{
13824
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13825
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, decorators: [{
14059
13827
  type: Injectable,
14060
13828
  args: [{
14061
13829
  providedIn: 'root'
@@ -14172,9 +13940,9 @@ class SubscriptionService extends RestService$1 {
14172
13940
  });
14173
13941
  }
14174
13942
  }
14175
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14176
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
14177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, decorators: [{
13943
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13944
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
13945
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SubscriptionService, decorators: [{
14178
13946
  type: Injectable,
14179
13947
  args: [{
14180
13948
  providedIn: 'root'
@@ -14196,9 +13964,9 @@ class ServiceProductService extends RestService$1 {
14196
13964
  this.isApiPlatform = true;
14197
13965
  }
14198
13966
  }
14199
- ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14200
- ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
14201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, decorators: [{
13967
+ ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13968
+ ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
13969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, decorators: [{
14202
13970
  type: Injectable,
14203
13971
  args: [{
14204
13972
  providedIn: 'root'
@@ -14324,9 +14092,9 @@ class TaxReviewHistoryService extends RestService {
14324
14092
  });
14325
14093
  }
14326
14094
  }
14327
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14328
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
14095
+ TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14096
+ TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
14330
14098
  type: Injectable,
14331
14099
  args: [{
14332
14100
  providedIn: 'root'
@@ -14415,9 +14183,9 @@ class TaxReviewService extends RestService {
14415
14183
  });
14416
14184
  }
14417
14185
  }
14418
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14419
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, decorators: [{
14186
+ TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14187
+ TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, decorators: [{
14421
14189
  type: Injectable,
14422
14190
  args: [{
14423
14191
  providedIn: 'root'
@@ -14691,9 +14459,9 @@ class TaxSummaryService {
14691
14459
  });
14692
14460
  }
14693
14461
  }
14694
- TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14695
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, decorators: [{
14462
+ TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14463
+ TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxSummaryService, decorators: [{
14697
14465
  type: Injectable,
14698
14466
  args: [{
14699
14467
  providedIn: 'root'
@@ -14714,9 +14482,9 @@ class AllocationRuleService extends RestService$1 {
14714
14482
  this.isApiPlatform = true;
14715
14483
  }
14716
14484
  }
14717
- AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14718
- AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14719
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, decorators: [{
14485
+ AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14486
+ AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, decorators: [{
14720
14488
  type: Injectable,
14721
14489
  args: [{
14722
14490
  providedIn: 'root'
@@ -14806,59 +14574,25 @@ class TransactionAllocationService extends RestService {
14806
14574
  });
14807
14575
  }
14808
14576
  }
14809
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14810
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14811
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, decorators: [{
14577
+ TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14578
+ TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, decorators: [{
14812
14580
  type: Injectable,
14813
14581
  args: [{
14814
14582
  providedIn: 'root'
14815
14583
  }]
14816
14584
  }] });
14817
14585
 
14818
- /**
14819
- * @Todo TT-2191 refactor service when receipts API will be updated
14820
- */
14821
- class TransactionReceiptService extends ReceiptService {
14822
- constructor(http, eventDispatcherService, environment, toastService) {
14823
- super(http, eventDispatcherService, environment, toastService);
14824
- this.http = http;
14825
- this.eventDispatcherService = eventDispatcherService;
14826
- this.environment = environment;
14827
- this.toastService = toastService;
14828
- this.modelClass = TransactionReceipt;
14829
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
14830
- this.receiptCreatedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED;
14831
- this.receiptDeletedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED;
14832
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT;
14833
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT;
14834
- this.listenEvents();
14835
- }
14836
- }
14837
- TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
14838
- TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
14839
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, decorators: [{
14840
- type: Injectable,
14841
- args: [{
14842
- providedIn: 'root'
14843
- }]
14844
- }], ctorParameters: function () {
14845
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
14846
- type: Inject,
14847
- args: ['environment']
14848
- }] }, { type: ToastService }];
14849
- } });
14850
-
14851
14586
  /**
14852
14587
  * Service for transactions business logic
14853
14588
  */
14854
14589
  class TransactionService extends RestService {
14855
- constructor(http, eventDispatcherService, environment, toastService, transactionReceiptService) {
14590
+ constructor(http, eventDispatcherService, environment, toastService) {
14856
14591
  super(http, eventDispatcherService, environment, toastService);
14857
14592
  this.http = http;
14858
14593
  this.eventDispatcherService = eventDispatcherService;
14859
14594
  this.environment = environment;
14860
14595
  this.toastService = toastService;
14861
- this.transactionReceiptService = transactionReceiptService;
14862
14596
  // url part for Transaction API
14863
14597
  this.url = 'transactions';
14864
14598
  this.modelClass = Transaction;
@@ -14870,8 +14604,6 @@ class TransactionService extends RestService {
14870
14604
  listenEvents() {
14871
14605
  this.listenDepreciationChange();
14872
14606
  this.listenPropertyShareUpdate();
14873
- this.listenReceiptAdded();
14874
- this.listenReceiptDeleted();
14875
14607
  this.listenVehicleClaimChanges();
14876
14608
  this.listenPropertyForecastUpdate();
14877
14609
  this.listenInvoicesPublish();
@@ -14946,13 +14678,6 @@ class TransactionService extends RestService {
14946
14678
  .pipe(map((response) => {
14947
14679
  const addedTransactions = response.map((item) => this.createModelInstance(item));
14948
14680
  transactions.forEach((transaction, index) => {
14949
- // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
14950
- // check if passed receipt and upload file
14951
- if (transaction.file) {
14952
- transaction.id = response[index].id;
14953
- addedTransactions[index].file = transaction.file;
14954
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, addedTransactions[index]));
14955
- }
14956
14681
  // @TODO Viktor: implement API for saving of nested transactions
14957
14682
  // add child transactions if exist
14958
14683
  if (transaction.transactions.length) {
@@ -14982,16 +14707,6 @@ class TransactionService extends RestService {
14982
14707
  return this.http.put(`${this.environment.apiV2}/${this.url}/${transaction.id}`, classToPlain(transaction))
14983
14708
  .pipe(map((response) => {
14984
14709
  const updatedTransaction = this.createModelInstance(response);
14985
- // @TODO need to upload file in the same backend endpoint with transaction add/update
14986
- // check if passed new receipt and upload file
14987
- if (transaction.file) {
14988
- updatedTransaction.file = transaction.file;
14989
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, updatedTransaction));
14990
- // receipt file was removed from form - we should delete receipt from transaction
14991
- }
14992
- else if (!transaction.file && transaction.receipt) {
14993
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT, updatedTransaction));
14994
- }
14995
14710
  // @TODO Viktor: implement API for saving of nested transactions
14996
14711
  if (transaction.transactions.length) {
14997
14712
  // add parent transaction to child transactions
@@ -15091,22 +14806,6 @@ class TransactionService extends RestService {
15091
14806
  listenPropertyShareUpdate() {
15092
14807
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
15093
14808
  }
15094
- listenReceiptAdded() {
15095
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
15096
- const transactionToUpdate = this.find(transactionReceipt.transaction.id);
15097
- // we don't need to keep file after save
15098
- transactionToUpdate.file = null;
15099
- transactionToUpdate.receipt = transactionReceipt;
15100
- this.replaceInCache(transactionToUpdate);
15101
- });
15102
- }
15103
- listenReceiptDeleted() {
15104
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED).subscribe((transaction) => {
15105
- const transactionToUpdate = this.find(transaction.id);
15106
- transactionToUpdate.receipt = null;
15107
- this.replaceInCache(transactionToUpdate);
15108
- });
15109
- }
15110
14809
  listenVehicleClaimChanges() {
15111
14810
  this.eventDispatcherService.on([
15112
14811
  AppEventTypeEnum.VEHICLE_CLAIM_CREATED,
@@ -15135,9 +14834,9 @@ class TransactionService extends RestService {
15135
14834
  });
15136
14835
  }
15137
14836
  }
15138
- TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
15139
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, providedIn: 'root' });
15140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, decorators: [{
14837
+ TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
14838
+ TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionService, providedIn: 'root' });
14839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionService, decorators: [{
15141
14840
  type: Injectable,
15142
14841
  args: [{
15143
14842
  providedIn: 'root'
@@ -15146,7 +14845,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
15146
14845
  return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15147
14846
  type: Inject,
15148
14847
  args: ['environment']
15149
- }] }, { type: ToastService }, { type: TransactionReceiptService }];
14848
+ }] }, { type: ToastService }];
15150
14849
  } });
15151
14850
 
15152
14851
  // @TODO Artem: implement cache and extend rest?
@@ -15168,9 +14867,9 @@ class TutorialVideoService {
15168
14867
  }
15169
14868
  TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
15170
14869
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
15171
- TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15172
- TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
15173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, decorators: [{
14870
+ TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14871
+ TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
14872
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TutorialVideoService, decorators: [{
15174
14873
  type: Injectable,
15175
14874
  args: [{
15176
14875
  providedIn: 'root'
@@ -15192,9 +14891,9 @@ class VehicleService extends RestService {
15192
14891
  this.modelClass = Vehicle;
15193
14892
  }
15194
14893
  }
15195
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15196
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, providedIn: 'root' });
15197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, decorators: [{
14894
+ VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14895
+ VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, providedIn: 'root' });
14896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, decorators: [{
15198
14897
  type: Injectable,
15199
14898
  args: [{
15200
14899
  providedIn: 'root'
@@ -15267,9 +14966,9 @@ class VehicleClaimService extends RestService {
15267
14966
  combineLatest(batch$).subscribe();
15268
14967
  }
15269
14968
  }
15270
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15271
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
15272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, decorators: [{
14969
+ VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14970
+ VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
14971
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, decorators: [{
15273
14972
  type: Injectable,
15274
14973
  args: [{
15275
14974
  providedIn: 'root'
@@ -15346,9 +15045,9 @@ class VehicleClaimDetailsService {
15346
15045
  this.update(vehicleClaimDetails).subscribe();
15347
15046
  }
15348
15047
  }
15349
- VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15350
- VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
15048
+ VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15049
+ VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
15352
15051
  type: Injectable,
15353
15052
  args: [{
15354
15053
  providedIn: 'root'
@@ -15370,9 +15069,9 @@ class VehicleLogbookService extends RestService {
15370
15069
  this.modelClass = VehicleLogbook;
15371
15070
  }
15372
15071
  }
15373
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15374
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, decorators: [{
15072
+ VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15073
+ VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, decorators: [{
15376
15075
  type: Injectable,
15377
15076
  args: [{
15378
15077
  providedIn: 'root'
@@ -15389,9 +15088,9 @@ class AnnualClientDetailsService extends RestService$1 {
15389
15088
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15390
15089
  }
15391
15090
  }
15392
- AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15393
- AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
15091
+ AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15092
+ AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
15395
15094
  type: Injectable,
15396
15095
  args: [{
15397
15096
  providedIn: 'root'
@@ -15422,9 +15121,9 @@ class OccupationService {
15422
15121
  return this.occupationsSubject.asObservable();
15423
15122
  }
15424
15123
  }
15425
- OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15426
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, providedIn: 'root' });
15427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, decorators: [{
15124
+ OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15125
+ OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OccupationService, providedIn: 'root' });
15126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OccupationService, decorators: [{
15428
15127
  type: Injectable,
15429
15128
  args: [{
15430
15129
  providedIn: 'root'
@@ -15501,9 +15200,9 @@ class UserEventSettingService extends RestService {
15501
15200
  }));
15502
15201
  }
15503
15202
  }
15504
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15505
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, decorators: [{
15203
+ UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15204
+ UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, decorators: [{
15507
15206
  type: Injectable,
15508
15207
  args: [{
15509
15208
  providedIn: 'root'
@@ -15518,15 +15217,22 @@ class UserEventTypeService extends RestService {
15518
15217
  this.isHydra = true;
15519
15218
  }
15520
15219
  }
15521
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15522
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, decorators: [{
15220
+ UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15221
+ UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, decorators: [{
15524
15223
  type: Injectable,
15525
15224
  args: [{
15526
15225
  providedIn: 'root'
15527
15226
  }]
15528
15227
  }] });
15529
15228
 
15229
+ var UserMessagesEnum;
15230
+ (function (UserMessagesEnum) {
15231
+ UserMessagesEnum["PHOTO_UPDATED"] = "Profile photo updated";
15232
+ UserMessagesEnum["USER_DATA_UPDATED"] = "Data was successfully updated!";
15233
+ UserMessagesEnum["CLIENT_DETAILS_UPDATED"] = "Client details updated";
15234
+ })(UserMessagesEnum || (UserMessagesEnum = {}));
15235
+
15530
15236
  /**
15531
15237
  * Service to work with invitations for unregistered users
15532
15238
  */
@@ -15537,9 +15243,9 @@ class UsersInviteService extends RestService {
15537
15243
  this.url = 'users/invite';
15538
15244
  }
15539
15245
  }
15540
- UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15541
- UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, decorators: [{
15246
+ UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15247
+ UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, decorators: [{
15543
15249
  type: Injectable,
15544
15250
  args: [{
15545
15251
  providedIn: 'root'
@@ -15624,9 +15330,9 @@ class UserService extends RestService$1 {
15624
15330
  this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
15625
15331
  }
15626
15332
  }
15627
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15628
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, providedIn: 'root' });
15629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, decorators: [{
15333
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15334
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserService, providedIn: 'root' });
15335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserService, decorators: [{
15630
15336
  type: Injectable,
15631
15337
  args: [{
15632
15338
  providedIn: 'root'
@@ -15650,9 +15356,9 @@ class FinancialYearService {
15650
15356
  }));
15651
15357
  }
15652
15358
  }
15653
- FinancialYearService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15654
- FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, decorators: [{
15359
+ FinancialYearService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15360
+ FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearService, decorators: [{
15656
15362
  type: Injectable,
15657
15363
  args: [{
15658
15364
  providedIn: 'root'
@@ -15678,9 +15384,9 @@ class HoldingService extends RestService$1 {
15678
15384
  this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
15679
15385
  }
15680
15386
  }
15681
- HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15682
- HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, providedIn: 'root' });
15683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, decorators: [{
15387
+ HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15388
+ HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, providedIn: 'root' });
15389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, decorators: [{
15684
15390
  type: Injectable,
15685
15391
  args: [{
15686
15392
  providedIn: 'root'
@@ -15697,9 +15403,9 @@ class HoldingTypeService extends RestService$1 {
15697
15403
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15698
15404
  }
15699
15405
  }
15700
- HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15701
- HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, decorators: [{
15406
+ HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15407
+ HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, decorators: [{
15703
15409
  type: Injectable,
15704
15410
  args: [{
15705
15411
  providedIn: 'root'
@@ -15716,9 +15422,9 @@ class HoldingSaleService extends RestService$1 {
15716
15422
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15717
15423
  }
15718
15424
  }
15719
- HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15720
- HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15721
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, decorators: [{
15425
+ HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15426
+ HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, decorators: [{
15722
15428
  type: Injectable,
15723
15429
  args: [{
15724
15430
  providedIn: 'root'
@@ -15813,9 +15519,9 @@ class HoldingTypeExchangeService extends DataService {
15813
15519
  this.setCache(HoldingTypeExchanges);
15814
15520
  }
15815
15521
  }
15816
- HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15817
- HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15522
+ HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15523
+ HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15819
15525
  type: Injectable,
15820
15526
  args: [{
15821
15527
  providedIn: 'root'
@@ -15919,9 +15625,9 @@ class IncomeSourceTypeService extends DataService {
15919
15625
  this.setCache(IncomeSourceTypes);
15920
15626
  }
15921
15627
  }
15922
- IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15923
- IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15924
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15628
+ IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15629
+ IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15925
15631
  type: Injectable,
15926
15632
  args: [{
15927
15633
  providedIn: 'root'
@@ -15943,9 +15649,9 @@ class ChartAccountsValueService extends DataService {
15943
15649
  return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
15944
15650
  }
15945
15651
  }
15946
- ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15947
- ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15652
+ ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15653
+ ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15949
15655
  type: Injectable,
15950
15656
  args: [{
15951
15657
  providedIn: 'root'
@@ -18035,9 +17741,9 @@ class TaxReturnItemService extends DataService {
18035
17741
  this.setCache(TaxReturnItems);
18036
17742
  }
18037
17743
  }
18038
- TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18039
- TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
18040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, decorators: [{
17744
+ TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17745
+ TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
17746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, decorators: [{
18041
17747
  type: Injectable,
18042
17748
  args: [{
18043
17749
  providedIn: 'root'
@@ -18267,9 +17973,9 @@ class AccountSetupService {
18267
17973
  return this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.getArray());
18268
17974
  }
18269
17975
  }
18270
- AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
18271
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
18272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, decorators: [{
17976
+ AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
17977
+ AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
17978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AccountSetupService, decorators: [{
18273
17979
  type: Injectable,
18274
17980
  args: [{
18275
17981
  providedIn: 'root'
@@ -18295,9 +18001,9 @@ class RewardfulService {
18295
18001
  });
18296
18002
  }
18297
18003
  }
18298
- RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18299
- RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18300
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, decorators: [{
18004
+ RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18005
+ RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18006
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, decorators: [{
18301
18007
  type: Injectable,
18302
18008
  args: [{
18303
18009
  providedIn: 'root'
@@ -18335,9 +18041,9 @@ class UserSwitcherService {
18335
18041
  window.location.replace('/firm/dashboard');
18336
18042
  }
18337
18043
  }
18338
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18339
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, decorators: [{
18044
+ UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18045
+ UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, decorators: [{
18341
18047
  type: Injectable,
18342
18048
  args: [{
18343
18049
  providedIn: 'root'
@@ -18379,9 +18085,9 @@ class AssetsService {
18379
18085
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
18380
18086
  }
18381
18087
  }
18382
- AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18383
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, providedIn: 'root' });
18384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, decorators: [{
18088
+ AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18089
+ AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AssetsService, providedIn: 'root' });
18090
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AssetsService, decorators: [{
18385
18091
  type: Injectable,
18386
18092
  args: [{
18387
18093
  providedIn: 'root'
@@ -18442,9 +18148,9 @@ class BankTransactionCalculationService {
18442
18148
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
18443
18149
  }
18444
18150
  }
18445
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18446
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18151
+ BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18152
+ BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18448
18154
  type: Injectable,
18449
18155
  args: [{
18450
18156
  providedIn: 'root'
@@ -18473,9 +18179,9 @@ class BankAccountCalculationService {
18473
18179
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
18474
18180
  }
18475
18181
  }
18476
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18477
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18478
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18182
+ BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18183
+ BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18479
18185
  type: Injectable,
18480
18186
  args: [{
18481
18187
  providedIn: 'root'
@@ -18503,9 +18209,9 @@ class ExportFormatterService {
18503
18209
  }));
18504
18210
  }
18505
18211
  }
18506
- ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.PercentPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
18507
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, decorators: [{
18212
+ ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.PercentPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
18213
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ExportFormatterService, decorators: [{
18509
18215
  type: Injectable,
18510
18216
  args: [{
18511
18217
  providedIn: 'root'
@@ -18526,9 +18232,9 @@ class HeaderTitleService {
18526
18232
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
18527
18233
  }
18528
18234
  }
18529
- HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
18530
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, decorators: [{
18235
+ HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
18236
+ HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HeaderTitleService, decorators: [{
18532
18238
  type: Injectable,
18533
18239
  args: [{
18534
18240
  providedIn: 'root'
@@ -18562,9 +18268,9 @@ class IntercomService {
18562
18268
  window.Intercom('boot', connectionCredentials);
18563
18269
  }
18564
18270
  }
18565
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18566
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, providedIn: 'root' });
18567
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, decorators: [{
18271
+ IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18272
+ IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, providedIn: 'root' });
18273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, decorators: [{
18568
18274
  type: Injectable,
18569
18275
  args: [{
18570
18276
  providedIn: 'root'
@@ -18636,9 +18342,9 @@ class PdfFromDomElementService {
18636
18342
  .then((blob) => new File([blob], filename, { type: 'application/pdf' })));
18637
18343
  }
18638
18344
  }
18639
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18640
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18345
+ PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18346
+ PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18642
18348
  type: Injectable,
18643
18349
  args: [{
18644
18350
  providedIn: 'root'
@@ -18732,9 +18438,9 @@ class PdfFromTableService {
18732
18438
  .setTextColor(FILE_SETTINGS.text.colorPrimary);
18733
18439
  }
18734
18440
  }
18735
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18736
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, decorators: [{
18441
+ PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18442
+ PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, decorators: [{
18738
18444
  type: Injectable,
18739
18445
  args: [{
18740
18446
  providedIn: 'root'
@@ -18768,9 +18474,9 @@ class PdfFromDataTableService extends PdfFromTableService {
18768
18474
  return pdf;
18769
18475
  }
18770
18476
  }
18771
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18772
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18477
+ PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18478
+ PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18479
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18774
18480
  type: Injectable,
18775
18481
  args: [{
18776
18482
  providedIn: 'root'
@@ -18803,9 +18509,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
18803
18509
  return pdf;
18804
18510
  }
18805
18511
  }
18806
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18807
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18808
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18512
+ PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18513
+ PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18809
18515
  type: Injectable,
18810
18516
  args: [{
18811
18517
  providedIn: 'root'
@@ -18830,9 +18536,9 @@ class PreloaderService {
18830
18536
  this.activePreloaders.next(activePreloaders);
18831
18537
  }
18832
18538
  }
18833
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18834
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, decorators: [{
18539
+ PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18540
+ PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, decorators: [{
18836
18542
  type: Injectable,
18837
18543
  args: [{
18838
18544
  providedIn: 'root'
@@ -18859,9 +18565,9 @@ class EquityPositionChartService {
18859
18565
  }))));
18860
18566
  }
18861
18567
  }
18862
- EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18863
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18864
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, decorators: [{
18568
+ EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18569
+ EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EquityPositionChartService, decorators: [{
18865
18571
  type: Injectable,
18866
18572
  args: [{
18867
18573
  providedIn: 'root'
@@ -19036,9 +18742,9 @@ class PropertyCalculationService {
19036
18742
  }
19037
18743
  }
19038
18744
  }
19039
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19040
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
19041
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, decorators: [{
18745
+ PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18746
+ PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
18747
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, decorators: [{
19042
18748
  type: Injectable,
19043
18749
  args: [{
19044
18750
  providedIn: 'root'
@@ -19091,9 +18797,9 @@ class PropertyTransactionReportService {
19091
18797
  .getWithoutBorrowingExpenses()));
19092
18798
  }
19093
18799
  }
19094
- PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
19095
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
19096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
18800
+ PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
18801
+ PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
18802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
19097
18803
  type: Injectable,
19098
18804
  args: [{
19099
18805
  providedIn: 'root'
@@ -19164,9 +18870,9 @@ class TransactionCalculationService {
19164
18870
  return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
19165
18871
  }
19166
18872
  }
19167
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19168
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
19169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, decorators: [{
18873
+ TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18874
+ TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
18875
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, decorators: [{
19170
18876
  type: Injectable,
19171
18877
  args: [{
19172
18878
  providedIn: 'root'
@@ -19226,9 +18932,9 @@ class LogbookBestPeriodService {
19226
18932
  });
19227
18933
  }
19228
18934
  }
19229
- LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
19230
- LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
19231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
18935
+ LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
18936
+ LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
18937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
19232
18938
  type: Injectable,
19233
18939
  args: [{
19234
18940
  providedIn: 'root'
@@ -19307,9 +19013,9 @@ class XlsxService {
19307
19013
  FileSaver.saveAs(data, `${fileName}.xlsx`);
19308
19014
  }
19309
19015
  }
19310
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19311
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, providedIn: 'root' });
19312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, decorators: [{
19016
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19017
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, providedIn: 'root' });
19018
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, decorators: [{
19313
19019
  type: Injectable,
19314
19020
  args: [{
19315
19021
  providedIn: 'root'
@@ -19440,9 +19146,9 @@ class JwtInterceptor {
19440
19146
  });
19441
19147
  }
19442
19148
  }
19443
- JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19444
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor });
19445
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, decorators: [{
19149
+ JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19150
+ JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor });
19151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor, decorators: [{
19446
19152
  type: Injectable
19447
19153
  }], ctorParameters: function () {
19448
19154
  return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
@@ -19490,9 +19196,9 @@ class UserSwitcherInterceptor {
19490
19196
  return next.handle(this.switch(request, this.userSwitcherService.get()));
19491
19197
  }
19492
19198
  }
19493
- UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19494
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor });
19495
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19199
+ UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19200
+ UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherInterceptor });
19201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19496
19202
  type: Injectable
19497
19203
  }], ctorParameters: function () {
19498
19204
  return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
@@ -19578,8 +19284,6 @@ const ENDPOINTS = {
19578
19284
  DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
19579
19285
  DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
19580
19286
  DEPRECIATIONS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+'),
19581
- DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
19582
- DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
19583
19287
  DOWNLOAD_FILE_GET: new Endpoint('GET', '\\/files\\/\\d+\\/download'),
19584
19288
  EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
19585
19289
  EMPLOYEES_INVITES_GET: new Endpoint('GET', '\\/employees\\/\\invites'),
@@ -19590,17 +19294,20 @@ const ENDPOINTS = {
19590
19294
  EMPLOYEES_DEACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\deactivate'),
19591
19295
  EMPLOYEES_ACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\activate'),
19592
19296
  FACEBOOK_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/facebook'),
19297
+ FILE_POST: new Endpoint('POST', '\\/api\\/files'),
19593
19298
  FIRM_GET: new Endpoint('GET', '\\/firms'),
19594
19299
  FIRM_CURRENT_GET: new Endpoint('GET', '\\/firms\\/current'),
19595
19300
  FIRM_CURRENT_PUT: new Endpoint('PUT', '\\/firms\\/current\.\*'),
19596
19301
  FIRM_INVITE_POST: new Endpoint('POST', '\\/firms\\/invite'),
19597
19302
  FIRM_REGISTRATION_POST: new Endpoint('POST', '\\/firms\\/registration'),
19598
- FIRM_UPDATE_PHOTO_POST: new Endpoint('POST', '\\/firms\\/photo\.\*'),
19599
19303
  FOLDERS_GET: new Endpoint('GET', '\\/folders'),
19600
19304
  FOLDERS_POST: new Endpoint('POST', '\\/folders'),
19601
19305
  FOLDERS_PUT: new Endpoint('PUT', '\\/folders\\/\\d+'),
19602
- FOLDERS_DOCUMENTS_POST: new Endpoint('POST', '\\/folders\\/\\d+\\/documents'),
19603
- FOLDERS_DOCUMENTS_PUT: new Endpoint('PUT', '\\/folders\\/\\d+\\/documents\\/\\d+'),
19306
+ FOLDERS_DELETE: new Endpoint('DELETE', '\\/folders\\/\\d+'),
19307
+ DOCUMENTS_GET: new Endpoint('GET', '\\/folder-documents'),
19308
+ DOCUMENTS_POST: new Endpoint('POST', '\\/folder-documents'),
19309
+ DOCUMENTS_PUT: new Endpoint('PUT', '\\/folder-documents\\/\\d+'),
19310
+ DOCUMENTS_DELETE: new Endpoint('DELETE', '\\/folder-documents\\/\\d+'),
19604
19311
  GOOGLE_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/google'),
19605
19312
  INCOME_SOURCES_GET: new Endpoint('GET', '\\/income-sources'),
19606
19313
  INCOME_SOURCES_POST: new Endpoint('POST', '\\/income-sources'),
@@ -19728,8 +19435,6 @@ const ENDPOINTS = {
19728
19435
  TRANSACTIONS_ALLOCATIONS_GET: new Endpoint('GET', '\\/transactions-allocations'),
19729
19436
  TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/transactions-allocations'),
19730
19437
  TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/transactions-allocations\\/\\d+'),
19731
- TRANSACTION_RECEIPTS_POST: new Endpoint('POST', '\\/transactions\\/\\d+\\/receipts'),
19732
- TRANSACTION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/transactions\\/\\d+\\/receipts\\/\\d+'),
19733
19438
  USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
19734
19439
  USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
19735
19440
  USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
@@ -19781,9 +19486,9 @@ class PreloaderInterceptor {
19781
19486
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
19782
19487
  }
19783
19488
  }
19784
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19785
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor });
19786
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19489
+ PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19490
+ PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor });
19491
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19787
19492
  type: Injectable
19788
19493
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
19789
19494
 
@@ -19809,9 +19514,9 @@ class BasiqTokenInterceptor {
19809
19514
  });
19810
19515
  }
19811
19516
  }
19812
- BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19813
- BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor });
19814
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19517
+ BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19518
+ BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor });
19519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19815
19520
  type: Injectable
19816
19521
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
19817
19522
 
@@ -19835,17 +19540,17 @@ class BasiqClientIdInterceptor {
19835
19540
  });
19836
19541
  }
19837
19542
  }
19838
- BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19839
- BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor });
19840
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19543
+ BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19544
+ BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor });
19545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19841
19546
  type: Injectable
19842
19547
  }], ctorParameters: function () { return [{ type: UserService }]; } });
19843
19548
 
19844
19549
  class InterceptorsModule {
19845
19550
  }
19846
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19847
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule });
19848
- InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, providers: [
19551
+ InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19552
+ InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule });
19553
+ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, providers: [
19849
19554
  {
19850
19555
  provide: HTTP_INTERCEPTORS,
19851
19556
  useClass: CorelogicInterceptor,
@@ -19883,7 +19588,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
19883
19588
  multi: true
19884
19589
  }
19885
19590
  ] });
19886
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, decorators: [{
19591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, decorators: [{
19887
19592
  type: NgModule,
19888
19593
  args: [{
19889
19594
  providers: [
@@ -19941,12 +19646,12 @@ class TtCoreModule {
19941
19646
  };
19942
19647
  }
19943
19648
  }
19944
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19945
- TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19649
+ TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19650
+ TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19946
19651
  InterceptorsModule] });
19947
- TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19652
+ TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19948
19653
  InterceptorsModule] });
19949
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, decorators: [{
19654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, decorators: [{
19950
19655
  type: NgModule,
19951
19656
  args: [{
19952
19657
  declarations: [],
@@ -20340,7 +20045,7 @@ function createDate(date) {
20340
20045
  * @param document
20341
20046
  */
20342
20047
  function getDocIcon(document) {
20343
- switch (document.mimeType) {
20048
+ switch (document.file.mimeType) {
20344
20049
  case 'image/gif':
20345
20050
  case 'image/jpeg':
20346
20051
  case 'image/png':
@@ -20737,6 +20442,35 @@ class BudgetForm extends AbstractForm {
20737
20442
  }
20738
20443
  }
20739
20444
 
20445
+ /**
20446
+ * general validation rules
20447
+ */
20448
+ var FormValidationsEnum;
20449
+ (function (FormValidationsEnum) {
20450
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
20451
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
20452
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
20453
+ // @TODO move to file uploader component
20454
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
20455
+ })(FormValidationsEnum || (FormValidationsEnum = {}));
20456
+
20457
+ class DocumentFolderForm extends AbstractForm {
20458
+ constructor(folder) {
20459
+ super({
20460
+ name: new UntypedFormControl(folder.name, [Validators.required, Validators.maxLength(FormValidationsEnum.INPUT_MAX_LENGTH)])
20461
+ }, folder);
20462
+ }
20463
+ }
20464
+
20465
+ class DocumentForm extends AbstractForm {
20466
+ constructor(document) {
20467
+ super({
20468
+ folder: new FormControl(document.folder, Validators.required),
20469
+ file: new FormControl(document.file)
20470
+ }, document);
20471
+ }
20472
+ }
20473
+
20740
20474
  /**
20741
20475
  * Form with loan details.
20742
20476
  * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
@@ -20818,6 +20552,21 @@ class LoanForm extends AbstractForm {
20818
20552
  }
20819
20553
  LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LINE_OF_CREDIT, LoanTypeEnum.HOME_LOAN];
20820
20554
 
20555
+ class FirmForm extends AbstractForm {
20556
+ constructor(firm) {
20557
+ super({
20558
+ name: new UntypedFormControl(firm.name, Validators.required),
20559
+ shortName: new UntypedFormControl(firm.shortName),
20560
+ abn: new UntypedFormControl(firm.abn, Validators.required),
20561
+ tan: new UntypedFormControl(firm.tan, Validators.required),
20562
+ website: new UntypedFormControl(firm.website),
20563
+ address: new UntypedFormControl(firm.address),
20564
+ phone: new UntypedFormControl(firm.phone),
20565
+ file: new UntypedFormControl(firm.file)
20566
+ }, firm);
20567
+ }
20568
+ }
20569
+
20821
20570
  /**
20822
20571
  * Check if at least one form field is true, otherwise form is invalid.
20823
20572
  * Use with groups of boolean form controls (checkbox, toggle, etc.)
@@ -21066,6 +20815,7 @@ class SoleBusinessForm extends AbstractForm {
21066
20815
  activity: new UntypedFormControl(business.activity, Validators.required),
21067
20816
  description: new UntypedFormControl(business.description),
21068
20817
  website: new UntypedFormControl(business.website),
20818
+ file: new UntypedFormControl(business.file),
21069
20819
  isPrimaryProduction: new FormControl(business.isPrimaryProduction),
21070
20820
  }, business);
21071
20821
  this.business = business;
@@ -21805,6 +21555,78 @@ class UserInviteForm extends AbstractForm {
21805
21555
  }
21806
21556
  }
21807
21557
 
21558
+ class UserForm extends AbstractForm {
21559
+ constructor(user) {
21560
+ super({
21561
+ title: new UntypedFormControl(user.title),
21562
+ firstName: new UntypedFormControl(user.firstName, Validators.required),
21563
+ lastName: new UntypedFormControl(user.lastName, Validators.required),
21564
+ address: new UntypedFormControl(user.address),
21565
+ phone: new UntypedFormControl(user.phone),
21566
+ file: new UntypedFormControl(user.file)
21567
+ }, user);
21568
+ }
21569
+ }
21570
+
21571
+ class ClientDetailsForm extends AbstractForm {
21572
+ constructor(clientDetails) {
21573
+ super({
21574
+ isAustralianResident: new UntypedFormControl(clientDetails.isAustralianResident),
21575
+ taxFileNumber: new UntypedFormControl(clientDetails.taxFileNumber),
21576
+ occupation: new UntypedFormControl(clientDetails.occupation, autocompleteValidator()),
21577
+ medicareExemption: new UntypedFormControl({ value: clientDetails.medicareExemption, disabled: !clientDetails.medicareExemption }, Validators.required),
21578
+ pensionersTax: new UntypedFormControl(clientDetails.pensionersTax),
21579
+ workingHolidayMaker: new UntypedFormControl(clientDetails.workingHolidayMaker)
21580
+ }), clientDetails;
21581
+ }
21582
+ toggleMedicareExemption(enabled) {
21583
+ const control = this.get('medicareExemption');
21584
+ // @TODO Alex/Vik: think about FormControl extension and implement control.toggle() method
21585
+ // then we can optimize the code:
21586
+ // control.setValue(enabled ? null : UserMedicareExemptionEnum.NO)
21587
+ // control.toggle(enabled);
21588
+ if (enabled) {
21589
+ control.setValue(null);
21590
+ control.enable();
21591
+ return;
21592
+ }
21593
+ control.setValue(UserMedicareExemptionEnum.NO);
21594
+ control.disable();
21595
+ }
21596
+ submit() {
21597
+ return super.submit({}, true);
21598
+ }
21599
+ }
21600
+
21601
+ /**
21602
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4717608961/Borrowing+Power+Report+-+Property+Tank
21603
+ */
21604
+ class BorrowingReportForm extends AbstractForm {
21605
+ /**
21606
+ * extra params are auto-calculated numbers used if user didn't specify manual numbers
21607
+ */
21608
+ constructor(report = plainToClass(BorrowingReport, {}), netSalary, spouseNetSalary) {
21609
+ var _a, _b;
21610
+ super({
21611
+ netRentIncome: new FormControl(report.netRentIncome, Validators.required),
21612
+ loanRepaymentAmount: new FormControl(report.loanRepaymentAmount, Validators.required),
21613
+ netSalary: new FormControl((_a = report.netSalary) !== null && _a !== void 0 ? _a : netSalary),
21614
+ spouseNetSalary: new FormControl((_b = report.spouseNetSalary) !== null && _b !== void 0 ? _b : spouseNetSalary),
21615
+ otherLiabilities: new FormControl(report.otherLiabilities, Validators.required),
21616
+ livingExpenses: new FormControl(report.livingExpenses, Validators.required),
21617
+ }, report);
21618
+ }
21619
+ /**
21620
+ * some fields are auto-calculated, shouldn't be updated until changed by user
21621
+ */
21622
+ submit(data = {}, includeDisabledFields = false) {
21623
+ return super.submit({
21624
+ netSalary: (this.model.netSalary || this.fieldChanged('netSalary')) ? this.get('netSalary').value : null,
21625
+ spouseNetSalary: (this.model.netSalary || this.fieldChanged('spouseNetSalary')) ? this.get('spouseNetSalary').value : null,
21626
+ }, includeDisabledFields);
21627
+ }
21628
+ }
21629
+
21808
21630
  /**
21809
21631
  * @Todo TT-2143 remove Property stuff and use this form just for PropertySale
21810
21632
  * @Todo TT-2143 create and extend from abstract PropertySale form
@@ -21986,32 +21808,46 @@ class PropertySaleExemptionsForm extends AbstractForm {
21986
21808
  }
21987
21809
  }
21988
21810
 
21989
- /**
21990
- * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4717608961/Borrowing+Power+Report+-+Property+Tank
21991
- */
21992
- class BorrowingReportForm extends AbstractForm {
21993
- /**
21994
- * extra params are auto-calculated numbers used if user didn't specify manual numbers
21995
- */
21996
- constructor(report = plainToClass(BorrowingReport, {}), netSalary, spouseNetSalary) {
21997
- var _a, _b;
21811
+ class PropertyEditForm extends AbstractForm {
21812
+ constructor(property) {
21998
21813
  super({
21999
- netRentIncome: new FormControl(report.netRentIncome, Validators.required),
22000
- loanRepaymentAmount: new FormControl(report.loanRepaymentAmount, Validators.required),
22001
- netSalary: new FormControl((_a = report.netSalary) !== null && _a !== void 0 ? _a : netSalary),
22002
- spouseNetSalary: new FormControl((_b = report.spouseNetSalary) !== null && _b !== void 0 ? _b : spouseNetSalary),
22003
- otherLiabilities: new FormControl(report.otherLiabilities, Validators.required),
22004
- livingExpenses: new FormControl(report.livingExpenses, Validators.required),
22005
- }, report);
21814
+ address: new UntypedFormControl(property.address, Validators.required),
21815
+ purchasePrice: new UntypedFormControl(property.purchasePrice, Validators.required),
21816
+ contractDate: new UntypedFormControl(property.contractDate, Validators.required),
21817
+ settlementDate: new UntypedFormControl(property.settlementDate, Validators.required),
21818
+ stampDuty: new UntypedFormControl(property.stampDuty),
21819
+ legalFees: new UntypedFormControl(property.legalFees),
21820
+ otherCapitalCosts: new UntypedFormControl(property.otherCapitalCosts),
21821
+ file: new UntypedFormControl(property.file)
21822
+ }, property);
22006
21823
  }
22007
- /**
22008
- * some fields are auto-calculated, shouldn't be updated until changed by user
22009
- */
22010
- submit(data = {}, includeDisabledFields = false) {
22011
- return super.submit({
22012
- netSalary: (this.model.netSalary || this.fieldChanged('netSalary')) ? this.get('netSalary').value : null,
22013
- spouseNetSalary: (this.model.netSalary || this.fieldChanged('spouseNetSalary')) ? this.get('spouseNetSalary').value : null,
22014
- }, includeDisabledFields);
21824
+ }
21825
+
21826
+ class PropertyDocumentForm extends AbstractForm {
21827
+ constructor(document) {
21828
+ super({
21829
+ property: new FormControl(document.property, Validators.required),
21830
+ file: new FormControl(document.file)
21831
+ }, document);
21832
+ }
21833
+ submit() {
21834
+ return super.submit({ property: { id: this.value.property.id } });
21835
+ }
21836
+ }
21837
+
21838
+ class PropertyValuationForm extends AbstractForm {
21839
+ constructor(valuation) {
21840
+ var _a;
21841
+ super({
21842
+ date: new UntypedFormControl(valuation.date || new Date(), Validators.required),
21843
+ marketValue: new UntypedFormControl(valuation.marketValue, Validators.required),
21844
+ document: new UntypedFormGroup({
21845
+ file: new UntypedFormControl((_a = valuation.document) === null || _a === void 0 ? void 0 : _a.file)
21846
+ })
21847
+ }, valuation);
21848
+ }
21849
+ submit() {
21850
+ return super.submit({ document: this.value.document.file ? this.value.document : null });
22015
21851
  }
22016
21852
  }
22017
21853
 
@@ -22717,18 +22553,6 @@ class VehicleLogbookForm extends AbstractForm {
22717
22553
  }
22718
22554
  VehicleLogbookForm.maxDescriptionLength = 60;
22719
22555
 
22720
- /**
22721
- * general validation rules
22722
- */
22723
- var FormValidationsEnum;
22724
- (function (FormValidationsEnum) {
22725
- FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
22726
- FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
22727
- FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
22728
- // @TODO move to file uploader component
22729
- FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
22730
- })(FormValidationsEnum || (FormValidationsEnum = {}));
22731
-
22732
22556
  class AllocationRuleConditionForm extends AbstractForm {
22733
22557
  constructor(condition = plainToClass(AllocationRuleCondition, {})) {
22734
22558
  super({
@@ -23020,10 +22844,7 @@ class TransactionBaseForm extends AbstractForm {
23020
22844
  gstAmount: new UntypedFormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
23021
22845
  date: new UntypedFormControl(transaction.date, [Validators.required]),
23022
22846
  description: new UntypedFormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
23023
- // @TODO Alex: refactor (TT-1996)
23024
- file: new UntypedFormControl(transaction['receipt'], [
23025
- FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
23026
- ]),
22847
+ file: new UntypedFormControl(transaction.file),
23027
22848
  property: new UntypedFormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
23028
22849
  }, controls), transaction);
23029
22850
  this.registeredForGst = registeredForGst;
@@ -23577,13 +23398,10 @@ var MessagesEnum;
23577
23398
  })(MessagesEnum || (MessagesEnum = {}));
23578
23399
 
23579
23400
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
23580
- /**
23581
- * Public API Surface of tt-core
23582
- */
23583
23401
 
23584
23402
  /**
23585
23403
  * Generated bundle index. Do not edit.
23586
23404
  */
23587
23405
 
23588
- 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 };
23406
+ 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, ClientDetailsForm, 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, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmForm, FirmMessagesEnum, 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, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, 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, SoleBusinessMessagesEnum, 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, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, 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 };
23589
23407
  //# sourceMappingURL=taxtank-core.mjs.map