taxtank-core 0.30.142 → 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 (1235) hide show
  1. package/esm2020/lib/collections/collection.mjs +2 -2
  2. package/esm2020/lib/db/Enums/user-roles.enum.mjs +2 -2
  3. package/esm2020/lib/db/Models/depreciation/depreciation.mjs +1 -1
  4. package/esm2020/lib/db/Models/document/document-folder.mjs +1 -1
  5. package/esm2020/lib/db/Models/document/document.mjs +1 -1
  6. package/esm2020/lib/db/Models/document/property-document.mjs +1 -7
  7. package/esm2020/lib/db/Models/firm/firm.mjs +1 -1
  8. package/esm2020/lib/db/Models/index.mjs +1 -3
  9. package/esm2020/lib/db/Models/property/property-valuation.mjs +3 -8
  10. package/esm2020/lib/db/Models/property/property.mjs +1 -1
  11. package/esm2020/lib/db/Models/sole/sole-business.mjs +1 -1
  12. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +10 -7
  13. package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
  14. package/esm2020/lib/db/Models/user/user.mjs +1 -1
  15. package/esm2020/lib/forms/document-folder/document-folder.form.mjs +11 -0
  16. package/esm2020/lib/forms/document-folder/document.form.mjs +11 -0
  17. package/esm2020/lib/forms/document-folder/index.mjs +3 -0
  18. package/esm2020/lib/forms/firm/firm.form.mjs +17 -0
  19. package/esm2020/lib/forms/firm/index.mjs +2 -0
  20. package/esm2020/lib/forms/index.mjs +3 -1
  21. package/esm2020/lib/forms/property/borrowing-report.form.mjs +12 -7
  22. package/esm2020/lib/forms/property/index.mjs +5 -2
  23. package/esm2020/lib/forms/property/property-document.form.mjs +14 -0
  24. package/esm2020/lib/forms/property/property-edit.form.mjs +17 -0
  25. package/esm2020/lib/forms/property/property-valuation.form.mjs +17 -0
  26. package/esm2020/lib/forms/sole/sole-business.form.mjs +4 -3
  27. package/esm2020/lib/forms/transaction/transaction-base.form.mjs +4 -7
  28. package/esm2020/lib/forms/user/client-details.form.mjs +34 -0
  29. package/esm2020/lib/forms/user/index.mjs +3 -1
  30. package/esm2020/lib/forms/user/user.form.mjs +15 -0
  31. package/esm2020/lib/functions/get-doc-icon.mjs +2 -2
  32. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  33. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
  34. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  35. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
  36. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  37. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  38. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  39. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  40. package/esm2020/lib/interfaces/asset-type.enum.mjs +1 -3
  41. package/esm2020/lib/interfaces/document.interface.mjs +1 -1
  42. package/esm2020/lib/interfaces/documentable.interface.mjs +1 -1
  43. package/esm2020/lib/interfaces/fileable.interface.mjs +2 -0
  44. package/esm2020/lib/interfaces/index.mjs +2 -3
  45. package/esm2020/lib/models/bank/bank.mjs +5 -10
  46. package/esm2020/lib/models/chat/message-document.mjs +4 -3
  47. package/esm2020/lib/models/depreciation/depreciation.mjs +1 -1
  48. package/esm2020/lib/models/depreciation/index.mjs +1 -2
  49. package/esm2020/lib/models/document/document-folder.mjs +1 -7
  50. package/esm2020/lib/models/document/document.mjs +12 -19
  51. package/esm2020/lib/models/endpoint/endpoints.const.mjs +7 -8
  52. package/esm2020/lib/models/event/app-event-type.enum.mjs +45 -53
  53. package/esm2020/lib/models/file/file.mjs +5 -1
  54. package/esm2020/lib/models/firm/firm.mjs +5 -13
  55. package/esm2020/lib/models/property/borrowing-report.mjs +4 -8
  56. package/esm2020/lib/models/property/property-document.mjs +12 -12
  57. package/esm2020/lib/models/property/property-valuation.mjs +2 -5
  58. package/esm2020/lib/models/property/property.mjs +5 -13
  59. package/esm2020/lib/models/registration-invite/registration-invite.mjs +7 -7
  60. package/esm2020/lib/models/sole/sole-business.mjs +6 -8
  61. package/esm2020/lib/models/sole/sole-contact.mjs +5 -8
  62. package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
  63. package/esm2020/lib/models/transaction/index.mjs +1 -2
  64. package/esm2020/lib/models/transaction/transaction.mjs +1 -5
  65. package/esm2020/lib/models/user/user.mjs +6 -14
  66. package/esm2020/lib/services/account-setup/account-setup.service.mjs +3 -3
  67. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  68. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  69. package/esm2020/lib/services/auth/auth.service.mjs +3 -3
  70. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  71. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  72. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  73. package/esm2020/lib/services/data.service.mjs +3 -3
  74. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  75. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  76. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  77. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  78. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  79. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
  80. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  81. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
  82. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  83. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  84. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
  85. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  86. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  87. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  88. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  89. package/esm2020/lib/services/http/chat/message-document.service.mjs +5 -5
  90. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  91. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  92. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  93. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  94. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +7 -55
  95. package/esm2020/lib/services/http/depreciation/index.mjs +1 -2
  96. package/esm2020/lib/services/http/document/document-folder/document-folder-messages.enum.mjs +8 -0
  97. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +9 -59
  98. package/esm2020/lib/services/http/document/document-folder/index.mjs +3 -0
  99. package/esm2020/lib/services/http/document/document-messages.enum.mjs +8 -0
  100. package/esm2020/lib/services/http/document/document.service.mjs +10 -6
  101. package/esm2020/lib/services/http/document/index.mjs +3 -2
  102. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  103. package/esm2020/lib/services/http/file/file.service.mjs +10 -4
  104. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  105. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
  106. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  107. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  108. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  109. package/esm2020/lib/services/http/firm/firm-messages.enum.mjs +6 -0
  110. package/esm2020/lib/services/http/firm/firm.service.mjs +4 -12
  111. package/esm2020/lib/services/http/firm/index.mjs +2 -1
  112. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  113. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  114. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  115. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  116. package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
  117. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  118. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
  119. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  120. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
  121. package/esm2020/lib/services/http/index.mjs +1 -2
  122. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  123. package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
  124. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  125. package/esm2020/lib/services/http/property/index.mjs +3 -1
  126. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  127. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  128. package/esm2020/lib/services/http/property/property-document/index.mjs +2 -1
  129. package/esm2020/lib/services/http/property/property-document/property-document-messages.enum.mjs +8 -0
  130. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +7 -6
  131. package/esm2020/lib/services/http/property/property-messages.enum.mjs +6 -0
  132. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  133. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
  134. package/esm2020/lib/services/http/property/property-valuation/index.mjs +3 -0
  135. package/esm2020/lib/services/http/property/property-valuation/property-valuation-messages.enum.mjs +6 -0
  136. package/esm2020/lib/services/http/property/property-valuation/property-valuation.service.mjs +39 -0
  137. package/esm2020/lib/services/http/property/property.service.mjs +9 -5
  138. package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
  139. package/esm2020/lib/services/http/rest/rest.service.mjs +9 -9
  140. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  141. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  142. package/esm2020/lib/services/http/sole/index.mjs +2 -2
  143. package/esm2020/lib/services/http/sole/sole-business/index.mjs +3 -0
  144. package/esm2020/lib/services/http/sole/sole-business/sole-business-messages.enum.mjs +5 -0
  145. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +5 -28
  146. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  147. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  148. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
  149. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  150. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  151. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
  152. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
  153. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  154. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  155. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  156. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  157. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  158. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  159. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  160. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  161. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  162. package/esm2020/lib/services/http/transaction/index.mjs +1 -2
  163. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  164. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
  165. package/esm2020/lib/services/http/transaction/transaction.service.mjs +6 -43
  166. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  167. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +3 -3
  168. package/esm2020/lib/services/http/user/index.mjs +2 -1
  169. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  170. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  171. package/esm2020/lib/services/http/user/user-messages.enum.mjs +7 -0
  172. package/esm2020/lib/services/http/user/user.service.mjs +3 -3
  173. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  174. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  175. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
  176. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
  177. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  178. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  179. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  180. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  181. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  182. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  183. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  184. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  185. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  186. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  187. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  188. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  189. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  190. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  191. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  192. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  193. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  194. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  195. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  196. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  197. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  198. package/esm2020/lib/tt-core.module.mjs +4 -4
  199. package/esm2020/public-api.mjs +2 -18
  200. package/fesm2015/taxtank-core.mjs +1130 -1311
  201. package/fesm2015/taxtank-core.mjs.map +1 -1
  202. package/fesm2020/taxtank-core.mjs +1120 -1299
  203. package/fesm2020/taxtank-core.mjs.map +1 -1
  204. package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
  205. package/lib/collections/allocation-group.collection.d.ts.map +1 -0
  206. package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
  207. package/lib/collections/asset-sale.collection.d.ts.map +1 -0
  208. package/lib/collections/bank-account.collection.d.ts.map +1 -0
  209. package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
  210. package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
  211. package/lib/collections/chat/chat.collection.d.ts.map +1 -0
  212. package/lib/collections/chat/index.d.ts.map +1 -0
  213. package/lib/collections/chat/message-document.collection.d.ts.map +1 -0
  214. package/lib/collections/chat/message.collection.d.ts.map +1 -0
  215. package/lib/collections/client-invite.collection.d.ts.map +1 -0
  216. package/lib/collections/client-movement.collection.d.ts.map +1 -0
  217. package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
  218. package/lib/collections/client.collection.d.ts.map +1 -0
  219. package/lib/collections/collection-dictionary.d.ts.map +1 -0
  220. package/lib/collections/collection.d.ts.map +1 -0
  221. package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
  222. package/lib/collections/depreciation.collection.d.ts.map +1 -0
  223. package/lib/collections/employee.collection.d.ts.map +1 -0
  224. package/lib/collections/exportable.collection.d.ts.map +1 -0
  225. package/lib/collections/holding/holding-sale.collection.d.ts.map +1 -0
  226. package/lib/collections/holding/holding-type.collection.d.ts.map +1 -0
  227. package/lib/collections/holding/holding.collection.d.ts.map +1 -0
  228. package/lib/collections/holding/index.d.ts.map +1 -0
  229. package/lib/collections/income-source/income-source-forecast.collection.d.ts.map +1 -0
  230. package/lib/collections/income-source/income-source.collection.d.ts.map +1 -0
  231. package/lib/collections/income-source/index.d.ts.map +1 -0
  232. package/lib/collections/index.d.ts.map +1 -0
  233. package/lib/collections/loan/index.d.ts.map +1 -0
  234. package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
  235. package/lib/collections/loan/loan.collection.d.ts.map +1 -0
  236. package/lib/collections/property/index.d.ts.map +1 -0
  237. package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
  238. package/lib/collections/property/property-sale/index.d.ts.map +1 -0
  239. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
  240. package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
  241. package/lib/collections/property/property-share.collection.d.ts.map +1 -0
  242. package/lib/collections/property/property.collection.d.ts.map +1 -0
  243. package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
  244. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
  245. package/lib/collections/report/index.d.ts.map +1 -0
  246. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
  247. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
  248. package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
  249. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
  250. package/lib/collections/sole/index.d.ts.map +1 -0
  251. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
  252. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
  253. package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
  254. package/lib/collections/subscription/index.d.ts.map +1 -0
  255. package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
  256. package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
  257. package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
  258. package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
  259. package/lib/collections/tax-review.collection.d.ts.map +1 -0
  260. package/lib/collections/tax-summary/index.d.ts.map +1 -0
  261. package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
  262. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
  263. package/lib/collections/transaction/index.d.ts.map +1 -0
  264. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
  265. package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
  266. package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
  267. package/lib/collections/user-event-type-collection.d.ts.map +1 -0
  268. package/lib/collections/vehicle/index.d.ts.map +1 -0
  269. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
  270. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
  271. package/lib/db/Enums/address-type.enum.d.ts.map +1 -0
  272. package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +1 -0
  273. package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +1 -0
  274. package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +1 -0
  275. package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +1 -0
  276. package/lib/db/Enums/annual-frequency.enum.d.ts.map +1 -0
  277. package/lib/db/Enums/bank/bank-account-status.enum.d.ts.map +1 -0
  278. package/lib/db/Enums/bank/bank-account-type.enum.d.ts.map +1 -0
  279. package/lib/db/Enums/bank/bank-connection-status.enum.d.ts.map +1 -0
  280. package/lib/db/Enums/bank/bank-popular.enum.d.ts.map +1 -0
  281. package/lib/db/Enums/bank/bank-provider.enum.d.ts.map +1 -0
  282. package/lib/db/Enums/bank/bank-transaction-type.enum.d.ts.map +1 -0
  283. package/lib/db/Enums/bank/index.d.ts.map +1 -0
  284. package/lib/db/Enums/bank/loan/index.d.ts.map +1 -0
  285. package/lib/db/Enums/bank/loan/loan-bank-type.enum.d.ts.map +1 -0
  286. package/lib/db/Enums/bank/loan/loan-frequency.enum.d.ts.map +1 -0
  287. package/lib/db/Enums/bank/loan/loan-interest-type-label.enum.d.ts.map +1 -0
  288. package/lib/db/Enums/bank/loan/loan-interest-type.enum.d.ts.map +1 -0
  289. package/lib/db/Enums/bank/loan/loan-payout-type.enum.d.ts.map +1 -0
  290. package/lib/db/Enums/bank/loan/loan-repayment-frequency.enum.d.ts.map +1 -0
  291. package/lib/db/Enums/bank/loan/loan-repayment-type-label.enum.d.ts.map +1 -0
  292. package/lib/db/Enums/bank/loan/loan-repayment-type.enum.d.ts.map +1 -0
  293. package/lib/db/Enums/bank/loan/loan-type.enum.d.ts.map +1 -0
  294. package/lib/db/Enums/bank/loan/loan-vehicle-type.enum.d.ts.map +1 -0
  295. package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +1 -0
  296. package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +1 -0
  297. package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +1 -0
  298. package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +1 -0
  299. package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +1 -0
  300. package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +1 -0
  301. package/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.d.ts.map +1 -0
  302. package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts.map +1 -0
  303. package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +1 -0
  304. package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +1 -0
  305. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +1 -0
  306. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +1 -0
  307. package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +1 -0
  308. package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +1 -0
  309. package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +1 -0
  310. package/lib/db/Enums/chart-accounts/index.d.ts.map +1 -0
  311. package/lib/db/Enums/chat-status.enum.d.ts.map +1 -0
  312. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +1 -0
  313. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +1 -0
  314. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +1 -0
  315. package/lib/db/Enums/client-invite-status.enum.d.ts.map +1 -0
  316. package/lib/db/Enums/client-invite-type.enum.d.ts.map +1 -0
  317. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +1 -0
  318. package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +1 -0
  319. package/lib/db/Enums/depreciation-type.enum.d.ts.map +1 -0
  320. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
  321. package/lib/db/Enums/document-type.enum.d.ts.map +1 -0
  322. package/lib/db/Enums/file-type.enum.d.ts.map +1 -0
  323. package/lib/db/Enums/firm-type.enum.d.ts.map +1 -0
  324. package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +1 -0
  325. package/lib/db/Enums/income-source/income-source-forecast-trust-type.enum.d.ts.map +1 -0
  326. package/lib/db/Enums/income-source/income-source-type-list-holding.enum.d.ts.map +1 -0
  327. package/lib/db/Enums/income-source/income-source-type-list-other.enum.d.ts.map +1 -0
  328. package/lib/db/Enums/income-source/income-source-type-list-sole.enum.d.ts.map +1 -0
  329. package/lib/db/Enums/income-source/income-source-type-list-work.enum.d.ts.map +1 -0
  330. package/lib/db/Enums/income-source/income-source-type.enum.d.ts.map +1 -0
  331. package/lib/db/Enums/income-source/index.d.ts.map +1 -0
  332. package/lib/db/Enums/index.d.ts.map +1 -0
  333. package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
  334. package/lib/db/Enums/phone-type.enum.d.ts.map +1 -0
  335. package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
  336. package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +1 -0
  337. package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +1 -0
  338. package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +1 -0
  339. package/lib/db/Enums/property/property-share-access.enum.d.ts.map +1 -0
  340. package/lib/db/Enums/property/property-share-status.enum.d.ts.map +1 -0
  341. package/lib/db/Enums/registration-invite-status.enum.d.ts.map +1 -0
  342. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +1 -0
  343. package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
  344. package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
  345. package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +1 -0
  346. package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +1 -0
  347. package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +1 -0
  348. package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +1 -0
  349. package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +1 -0
  350. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
  351. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
  352. package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +1 -0
  353. package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +1 -0
  354. package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +1 -0
  355. package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +1 -0
  356. package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +1 -0
  357. package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +1 -0
  358. package/lib/db/Enums/tank-type.enum.d.ts.map +1 -0
  359. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +1 -0
  360. package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +1 -0
  361. package/lib/db/Enums/tax-return/index.d.ts.map +1 -0
  362. package/lib/db/Enums/tax-return/tax-return-category-list.enum.d.ts.map +1 -0
  363. package/lib/db/Enums/tax-return/tax-return-category-section.enum.d.ts.map +1 -0
  364. package/lib/db/Enums/tax-return/tax-return-item.enum.d.ts.map +1 -0
  365. package/lib/db/Enums/tax-review-status.enum.d.ts.map +1 -0
  366. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
  367. package/lib/db/Enums/tax-summary-section.enum.d.ts.map +1 -0
  368. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
  369. package/lib/db/Enums/ticket-feedback.enum.d.ts.map +1 -0
  370. package/lib/db/Enums/ticket-status.enum.d.ts.map +1 -0
  371. package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
  372. package/lib/db/Enums/transaction-operation.enum.d.ts.map +1 -0
  373. package/lib/db/Enums/transaction-source.enum.d.ts.map +1 -0
  374. package/lib/db/Enums/transaction-type.enum.d.ts.map +1 -0
  375. package/lib/db/Enums/user-event-status.enum.d.ts.map +1 -0
  376. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
  377. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
  378. package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +1 -0
  379. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
  380. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
  381. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
  382. package/lib/db/Enums/user-roles.enum.d.ts +1 -1
  383. package/lib/db/Enums/user-roles.enum.d.ts.map +1 -0
  384. package/lib/db/Enums/user-status.enum.d.ts.map +1 -0
  385. package/lib/db/Enums/user-title.enum.d.ts.map +1 -0
  386. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
  387. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
  388. package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +1 -0
  389. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +1 -0
  390. package/lib/db/Models/abstract-model.d.ts.map +1 -0
  391. package/lib/db/Models/address.d.ts.map +1 -0
  392. package/lib/db/Models/bank/bank-account-balance.d.ts.map +1 -0
  393. package/lib/db/Models/bank/bank-account-property.d.ts.map +1 -0
  394. package/lib/db/Models/bank/bank-account.d.ts.map +1 -0
  395. package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
  396. package/lib/db/Models/bank/bank-transaction-import.d.ts.map +1 -0
  397. package/lib/db/Models/bank/bank-transaction.d.ts.map +1 -0
  398. package/lib/db/Models/bank/bank.d.ts.map +1 -0
  399. package/lib/db/Models/bank/basiq-job-step.enum.d.ts.map +1 -0
  400. package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
  401. package/lib/db/Models/budget/budget-rule.d.ts.map +1 -0
  402. package/lib/db/Models/budget/budget.d.ts.map +1 -0
  403. package/lib/db/Models/budget/index.d.ts.map +1 -0
  404. package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  405. package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  406. package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  407. package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  408. package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +1 -0
  409. package/lib/db/Models/client/annual-client-details.d.ts.map +1 -0
  410. package/lib/db/Models/client/client-details.d.ts.map +1 -0
  411. package/lib/db/Models/client/client-income-types.d.ts.map +1 -0
  412. package/lib/db/Models/client/index.d.ts.map +1 -0
  413. package/lib/db/Models/client/occupation.d.ts.map +1 -0
  414. package/lib/db/Models/country.d.ts.map +1 -0
  415. package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  416. package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +1 -0
  417. package/lib/db/Models/depreciation/depreciation.d.ts +0 -2
  418. package/lib/db/Models/depreciation/depreciation.d.ts.map +1 -0
  419. package/lib/db/Models/document/document-base.d.ts.map +1 -0
  420. package/lib/db/Models/document/document-folder.d.ts +1 -2
  421. package/lib/db/Models/document/document-folder.d.ts.map +1 -0
  422. package/lib/db/Models/document/document.d.ts.map +1 -0
  423. package/lib/db/Models/document/property-document.d.ts +6 -5
  424. package/lib/db/Models/document/property-document.d.ts.map +1 -0
  425. package/lib/db/Models/file.d.ts.map +1 -0
  426. package/lib/db/Models/firm/accountant/tax-review.d.ts.map +1 -0
  427. package/lib/db/Models/firm/accountant/ticket.d.ts.map +1 -0
  428. package/lib/db/Models/firm/chat.d.ts.map +1 -0
  429. package/lib/db/Models/firm/client-invite.d.ts.map +1 -0
  430. package/lib/db/Models/firm/client-movement.d.ts.map +1 -0
  431. package/lib/db/Models/firm/employee-invite.d.ts.map +1 -0
  432. package/lib/db/Models/firm/firm-invite.d.ts.map +1 -0
  433. package/lib/db/Models/firm/firm.d.ts +2 -0
  434. package/lib/db/Models/firm/firm.d.ts.map +1 -0
  435. package/lib/db/Models/firm/message-document.d.ts.map +1 -0
  436. package/lib/db/Models/firm/message.d.ts.map +1 -0
  437. package/lib/db/Models/holding/holding-sale.d.ts.map +1 -0
  438. package/lib/db/Models/holding/holding-type-exchange.d.ts.map +1 -0
  439. package/lib/db/Models/holding/holding-type.d.ts.map +1 -0
  440. package/lib/db/Models/holding/holding.d.ts.map +1 -0
  441. package/lib/db/Models/holding/index.d.ts.map +1 -0
  442. package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +1 -0
  443. package/lib/db/Models/incomeSource/income-source-type.d.ts.map +1 -0
  444. package/lib/db/Models/incomeSource/income-source.d.ts.map +1 -0
  445. package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +1 -0
  446. package/lib/db/Models/index.d.ts +0 -2
  447. package/lib/db/Models/index.d.ts.map +1 -0
  448. package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +1 -0
  449. package/lib/db/Models/loan/borrowing-expense.d.ts.map +1 -0
  450. package/lib/db/Models/loan/loan-payout.d.ts.map +1 -0
  451. package/lib/db/Models/loan/loan.d.ts.map +1 -0
  452. package/lib/db/Models/observable-model.d.ts.map +1 -0
  453. package/lib/db/Models/phone.d.ts.map +1 -0
  454. package/lib/db/Models/property/borrowing-report.d.ts.map +1 -0
  455. package/lib/db/Models/property/property-category-movement.d.ts.map +1 -0
  456. package/lib/db/Models/property/property-category.d.ts.map +1 -0
  457. package/lib/db/Models/property/property-forecast.d.ts.map +1 -0
  458. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  459. package/lib/db/Models/property/property-sale/property-sale.d.ts.map +1 -0
  460. package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  461. package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +1 -0
  462. package/lib/db/Models/property/property-share.d.ts.map +1 -0
  463. package/lib/db/Models/property/property-subscription.d.ts.map +1 -0
  464. package/lib/db/Models/property/property-valuation.d.ts +2 -2
  465. package/lib/db/Models/property/property-valuation.d.ts.map +1 -0
  466. package/lib/db/Models/property/property.d.ts +2 -0
  467. package/lib/db/Models/property/property.d.ts.map +1 -0
  468. package/lib/db/Models/service-notification.d.ts.map +1 -0
  469. package/lib/db/Models/sole/bas-report.d.ts.map +1 -0
  470. package/lib/db/Models/sole/sole-business-activity.d.ts.map +1 -0
  471. package/lib/db/Models/sole/sole-business-allocation.d.ts.map +1 -0
  472. package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  473. package/lib/db/Models/sole/sole-business-loss.d.ts.map +1 -0
  474. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  475. package/lib/db/Models/sole/sole-business.d.ts.map +1 -0
  476. package/lib/db/Models/sole/sole-contact.d.ts.map +1 -0
  477. package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +1 -0
  478. package/lib/db/Models/sole/sole-details.d.ts.map +1 -0
  479. package/lib/db/Models/sole/sole-forecast.d.ts.map +1 -0
  480. package/lib/db/Models/sole/sole-invoice-item.d.ts.map +1 -0
  481. package/lib/db/Models/sole/sole-invoice-template.d.ts.map +1 -0
  482. package/lib/db/Models/sole/sole-invoice.d.ts.map +1 -0
  483. package/lib/db/Models/spare/spare-document-category.d.ts.map +1 -0
  484. package/lib/db/Models/spare/spare-document.d.ts.map +1 -0
  485. package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
  486. package/lib/db/Models/subscription/service-payment.d.ts.map +1 -0
  487. package/lib/db/Models/subscription/service-price.d.ts.map +1 -0
  488. package/lib/db/Models/subscription/service-product.d.ts.map +1 -0
  489. package/lib/db/Models/subscription/service-subscription-item.d.ts.map +1 -0
  490. package/lib/db/Models/subscription/service-subscription.d.ts.map +1 -0
  491. package/lib/db/Models/tax-calculation.d.ts.map +1 -0
  492. package/lib/db/Models/tax-return/index.d.ts.map +1 -0
  493. package/lib/db/Models/tax-return/tax-return-category.d.ts.map +1 -0
  494. package/lib/db/Models/tax-return/tax-return-item.d.ts.map +1 -0
  495. package/lib/db/Models/tax-return/tax-return.d.ts.map +1 -0
  496. package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
  497. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  498. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  499. package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
  500. package/lib/db/Models/transaction/transaction-allocation.d.ts.map +1 -0
  501. package/lib/db/Models/transaction/transaction-base.d.ts +5 -7
  502. package/lib/db/Models/transaction/transaction-base.d.ts.map +1 -0
  503. package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +1 -0
  504. package/lib/db/Models/transaction/transaction.d.ts +0 -2
  505. package/lib/db/Models/transaction/transaction.d.ts.map +1 -0
  506. package/lib/db/Models/user/employee-details.d.ts.map +1 -0
  507. package/lib/db/Models/user/registration-invite.d.ts.map +1 -0
  508. package/lib/db/Models/user/user-event-setting.d.ts.map +1 -0
  509. package/lib/db/Models/user/user-event-type-category.d.ts.map +1 -0
  510. package/lib/db/Models/user/user-event-type.d.ts.map +1 -0
  511. package/lib/db/Models/user/user-event.d.ts.map +1 -0
  512. package/lib/db/Models/user/user.d.ts +2 -1
  513. package/lib/db/Models/user/user.d.ts.map +1 -0
  514. package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  515. package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +1 -0
  516. package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +1 -0
  517. package/lib/db/Models/vehicle/vehicle.d.ts.map +1 -0
  518. package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
  519. package/lib/forms/abstract.form.d.ts.map +1 -0
  520. package/lib/forms/address/address.form.d.ts.map +1 -0
  521. package/lib/forms/address/index.d.ts.map +1 -0
  522. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  523. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  524. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  525. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  526. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  527. package/lib/forms/budget/budget.form.d.ts.map +1 -0
  528. package/lib/forms/budget/index.d.ts.map +1 -0
  529. package/lib/forms/client/annual-client-details.form.d.ts.map +1 -0
  530. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  531. package/lib/forms/client/index.d.ts.map +1 -0
  532. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  533. package/lib/forms/depreciation/index.d.ts.map +1 -0
  534. package/lib/forms/document-folder/document-folder.form.d.ts +5 -0
  535. package/lib/forms/document-folder/document-folder.form.d.ts.map +1 -0
  536. package/lib/forms/document-folder/document.form.d.ts +5 -0
  537. package/lib/forms/document-folder/document.form.d.ts.map +1 -0
  538. package/lib/forms/document-folder/index.d.ts +2 -0
  539. package/lib/forms/document-folder/index.d.ts.map +1 -0
  540. package/lib/forms/firm/firm.form.d.ts +5 -0
  541. package/lib/forms/firm/firm.form.d.ts.map +1 -0
  542. package/lib/forms/firm/index.d.ts +1 -0
  543. package/lib/forms/firm/index.d.ts.map +1 -0
  544. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  545. package/lib/forms/holding/holding-reinvest.form.d.ts.map +1 -0
  546. package/lib/forms/holding/holding-sale.form.d.ts.map +1 -0
  547. package/lib/forms/holding/holding-type.form.d.ts.map +1 -0
  548. package/lib/forms/holding/holding.form.d.ts.map +1 -0
  549. package/lib/forms/holding/index.d.ts.map +1 -0
  550. package/lib/forms/index.d.ts +2 -0
  551. package/lib/forms/index.d.ts.map +1 -0
  552. package/lib/forms/loan/index.d.ts.map +1 -0
  553. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  554. package/lib/forms/login/login.form.d.ts.map +1 -0
  555. package/lib/forms/phone/index.d.ts.map +1 -0
  556. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  557. package/lib/forms/property/borrowing-report.form.d.ts +5 -2
  558. package/lib/forms/property/borrowing-report.form.d.ts.map +1 -0
  559. package/lib/forms/property/index.d.ts +4 -1
  560. package/lib/forms/property/index.d.ts.map +1 -0
  561. package/lib/forms/property/property-document.form.d.ts +6 -0
  562. package/lib/forms/property/property-document.form.d.ts.map +1 -0
  563. package/lib/forms/property/property-edit.form.d.ts +5 -0
  564. package/lib/forms/property/property-edit.form.d.ts.map +1 -0
  565. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  566. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  567. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  568. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  569. package/lib/forms/property/property-valuation.form.d.ts +6 -0
  570. package/lib/forms/property/property-valuation.form.d.ts.map +1 -0
  571. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  572. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  573. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  574. 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
  575. 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
  576. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  577. 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
  578. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  579. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  580. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  581. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  582. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  583. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  584. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  585. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  586. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  587. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  588. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  589. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  590. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  591. package/lib/forms/sole/index.d.ts.map +1 -0
  592. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  593. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  594. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  595. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  596. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  597. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  598. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  599. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  600. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  601. package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
  602. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
  603. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
  604. package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
  605. package/lib/forms/transaction/holding/holding-income.form.d.ts.map +1 -0
  606. package/lib/forms/transaction/index.d.ts.map +1 -0
  607. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  608. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  609. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  610. package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
  611. package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
  612. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
  613. package/lib/forms/user/client-details.form.d.ts +7 -0
  614. package/lib/forms/user/client-details.form.d.ts.map +1 -0
  615. package/lib/forms/user/index.d.ts +2 -0
  616. package/lib/forms/user/index.d.ts.map +1 -0
  617. package/lib/forms/user/password.form.d.ts.map +1 -0
  618. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  619. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  620. package/lib/forms/user/user.form.d.ts +5 -0
  621. package/lib/forms/user/user.form.d.ts.map +1 -0
  622. package/lib/forms/vehicle/index.d.ts.map +1 -0
  623. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  624. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  625. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  626. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  627. package/lib/functions/array/index.d.ts.map +1 -0
  628. package/lib/functions/array/replace.d.ts.map +1 -0
  629. package/lib/functions/array/sort-deep.d.ts.map +1 -0
  630. package/lib/functions/array/sort.d.ts.map +1 -0
  631. package/lib/functions/array/to-array.d.ts.map +1 -0
  632. package/lib/functions/clone-deep.d.ts.map +1 -0
  633. package/lib/functions/create-date.d.ts.map +1 -0
  634. package/lib/functions/enum-to-list.d.ts.map +1 -0
  635. package/lib/functions/get-doc-icon.d.ts +2 -2
  636. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  637. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  638. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  639. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  640. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
  641. package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
  642. package/lib/interceptors/corelogic-interceptor.d.ts.map +1 -0
  643. package/lib/interceptors/financial-year-interceptor.d.ts.map +1 -0
  644. package/lib/interceptors/interceptors.module.d.ts.map +1 -0
  645. package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
  646. package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
  647. package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
  648. package/lib/interfaces/asset-entity-type.enum.d.ts.map +1 -0
  649. package/lib/interfaces/asset-type.enum.d.ts +0 -2
  650. package/lib/interfaces/asset-type.enum.d.ts.map +1 -0
  651. package/lib/interfaces/asset.interface.d.ts.map +1 -0
  652. package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
  653. package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
  654. package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
  655. package/lib/interfaces/document.interface.d.ts +4 -14
  656. package/lib/interfaces/document.interface.d.ts.map +1 -0
  657. package/lib/interfaces/documentable.interface.d.ts +2 -2
  658. package/lib/interfaces/documentable.interface.d.ts.map +1 -0
  659. package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
  660. package/lib/interfaces/expense.interface.d.ts.map +1 -0
  661. package/lib/interfaces/fileable.interface.d.ts +8 -0
  662. package/lib/interfaces/fileable.interface.d.ts.map +1 -0
  663. package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
  664. package/lib/interfaces/index.d.ts +1 -2
  665. package/lib/interfaces/index.d.ts.map +1 -0
  666. package/lib/interfaces/option.interface.d.ts.map +1 -0
  667. package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
  668. package/lib/interfaces/tank.interface.d.ts.map +1 -0
  669. package/lib/interfaces/updatable.interface.d.ts.map +1 -0
  670. package/lib/messages/index.d.ts.map +1 -0
  671. package/lib/messages/messages.enum.d.ts.map +1 -0
  672. package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
  673. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  674. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  675. package/lib/models/address/address.d.ts.map +1 -0
  676. package/lib/models/address/country.d.ts.map +1 -0
  677. package/lib/models/address/index.d.ts.map +1 -0
  678. package/lib/models/address/states.enum.d.ts.map +1 -0
  679. package/lib/models/asset-sale.d.ts.map +1 -0
  680. package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
  681. package/lib/models/badge/badge.d.ts.map +1 -0
  682. package/lib/models/bank/allocation-group.d.ts.map +1 -0
  683. package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
  684. package/lib/models/bank/bank-account-property.d.ts.map +1 -0
  685. package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
  686. package/lib/models/bank/bank-account.d.ts.map +1 -0
  687. package/lib/models/bank/bank-connection.d.ts.map +1 -0
  688. package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
  689. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
  690. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
  691. package/lib/models/bank/bank-transaction.d.ts.map +1 -0
  692. package/lib/models/bank/bank.d.ts +4 -4
  693. package/lib/models/bank/bank.d.ts.map +1 -0
  694. package/lib/models/bank/basiq/basiq-config.d.ts.map +1 -0
  695. package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +1 -0
  696. package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +1 -0
  697. package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
  698. package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
  699. package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
  700. package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
  701. package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
  702. package/lib/models/bank/basiq/index.d.ts.map +1 -0
  703. package/lib/models/bank/index.d.ts.map +1 -0
  704. package/lib/models/bank/type-loan.const.d.ts.map +1 -0
  705. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
  706. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
  707. package/lib/models/borrowing-expense/index.d.ts.map +1 -0
  708. package/lib/models/budget/budget-rule.d.ts.map +1 -0
  709. package/lib/models/budget/budget.d.ts.map +1 -0
  710. package/lib/models/budget/index.d.ts.map +1 -0
  711. package/lib/models/chart/chart-data.d.ts.map +1 -0
  712. package/lib/models/chart/chart-serie.d.ts.map +1 -0
  713. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
  714. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
  715. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  716. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  717. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  718. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
  719. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  720. package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
  721. package/lib/models/chart-accounts/index.d.ts.map +1 -0
  722. package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
  723. package/lib/models/chat/chat.d.ts.map +1 -0
  724. package/lib/models/chat/index.d.ts.map +1 -0
  725. package/lib/models/chat/message-document.d.ts +2 -1
  726. package/lib/models/chat/message-document.d.ts.map +1 -0
  727. package/lib/models/chat/message.d.ts.map +1 -0
  728. package/lib/models/client/annual-client-details.d.ts.map +1 -0
  729. package/lib/models/client/client-details.d.ts.map +1 -0
  730. package/lib/models/client/client-income-types.d.ts.map +1 -0
  731. package/lib/models/client/client-invite.d.ts.map +1 -0
  732. package/lib/models/client/client-movement.d.ts.map +1 -0
  733. package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
  734. package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
  735. package/lib/models/client/index.d.ts.map +1 -0
  736. package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
  737. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  738. package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
  739. package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
  740. package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
  741. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
  742. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
  743. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
  744. package/lib/models/depreciation/depreciation.d.ts +2 -4
  745. package/lib/models/depreciation/depreciation.d.ts.map +1 -0
  746. package/lib/models/depreciation/index.d.ts +0 -1
  747. package/lib/models/depreciation/index.d.ts.map +1 -0
  748. package/lib/models/dictionary/dictionary.d.ts.map +1 -0
  749. package/lib/models/dictionary/index.d.ts.map +1 -0
  750. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
  751. package/lib/models/document/document-file-types.const.d.ts.map +1 -0
  752. package/lib/models/document/document-folder.d.ts +1 -5
  753. package/lib/models/document/document-folder.d.ts.map +1 -0
  754. package/lib/models/document/document.d.ts +5 -17
  755. package/lib/models/document/document.d.ts.map +1 -0
  756. package/lib/models/document/index.d.ts.map +1 -0
  757. package/lib/models/employee/employee-details.d.ts.map +1 -0
  758. package/lib/models/employee/employee-invite.d.ts.map +1 -0
  759. package/lib/models/endpoint/endpoint.d.ts.map +1 -0
  760. package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
  761. package/lib/models/event/app-event-type.enum.d.ts +44 -52
  762. package/lib/models/event/app-event-type.enum.d.ts.map +1 -0
  763. package/lib/models/event/app-event.d.ts.map +1 -0
  764. package/lib/models/event/index.d.ts.map +1 -0
  765. package/lib/models/export/export-cell-type.enum.d.ts.map +1 -0
  766. package/lib/models/export/export-cell.d.ts.map +1 -0
  767. package/lib/models/export/export-data-table.d.ts.map +1 -0
  768. package/lib/models/export/export-format.enum.d.ts.map +1 -0
  769. package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
  770. package/lib/models/export/export-row.d.ts.map +1 -0
  771. package/lib/models/file/file.d.ts +2 -0
  772. package/lib/models/file/file.d.ts.map +1 -0
  773. package/lib/models/file/icons-file.enum.d.ts.map +1 -0
  774. package/lib/models/file/index.d.ts.map +1 -0
  775. package/lib/models/financial-year/financial-year.d.ts.map +1 -0
  776. package/lib/models/financial-year/index.d.ts.map +1 -0
  777. package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
  778. package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
  779. package/lib/models/financial-year/months.const.d.ts.map +1 -0
  780. package/lib/models/firm/firm.d.ts +4 -10
  781. package/lib/models/firm/firm.d.ts.map +1 -0
  782. package/lib/models/holding/holding-reinvest.d.ts.map +1 -0
  783. package/lib/models/holding/holding-sale.d.ts.map +1 -0
  784. package/lib/models/holding/holding-type-exchange.d.ts.map +1 -0
  785. package/lib/models/holding/holding-type.d.ts.map +1 -0
  786. package/lib/models/holding/holding.d.ts.map +1 -0
  787. package/lib/models/holding/index.d.ts.map +1 -0
  788. package/lib/models/income-position/income-position.d.ts.map +1 -0
  789. package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
  790. package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
  791. package/lib/models/income-source/income-source-type.d.ts.map +1 -0
  792. package/lib/models/income-source/income-source.d.ts.map +1 -0
  793. package/lib/models/income-source/index.d.ts.map +1 -0
  794. package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
  795. package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
  796. package/lib/models/index.d.ts.map +1 -0
  797. package/lib/models/loan/index.d.ts.map +1 -0
  798. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
  799. package/lib/models/loan/loan-payment.d.ts.map +1 -0
  800. package/lib/models/loan/loan-payout.d.ts.map +1 -0
  801. package/lib/models/loan/loan.d.ts.map +1 -0
  802. package/lib/models/notification/index.d.ts.map +1 -0
  803. package/lib/models/notification/notification.d.ts.map +1 -0
  804. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
  805. package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
  806. package/lib/models/phone/phone.d.ts.map +1 -0
  807. package/lib/models/property/borrowing-report.d.ts.map +1 -0
  808. package/lib/models/property/calculation-form-item.d.ts.map +1 -0
  809. package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
  810. package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
  811. package/lib/models/property/corelogic-suggestion.d.ts.map +1 -0
  812. package/lib/models/property/index.d.ts.map +1 -0
  813. package/lib/models/property/property-category-movement.d.ts.map +1 -0
  814. package/lib/models/property/property-category.d.ts.map +1 -0
  815. package/lib/models/property/property-document.d.ts +5 -10
  816. package/lib/models/property/property-document.d.ts.map +1 -0
  817. package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
  818. package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
  819. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
  820. package/lib/models/property/property-forecast.d.ts.map +1 -0
  821. package/lib/models/property/property-sale/index.d.ts.map +1 -0
  822. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
  823. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  824. package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
  825. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  826. package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
  827. package/lib/models/property/property-share.d.ts.map +1 -0
  828. package/lib/models/property/property-subscription.d.ts.map +1 -0
  829. package/lib/models/property/property-valuation.d.ts +0 -1
  830. package/lib/models/property/property-valuation.d.ts.map +1 -0
  831. package/lib/models/property/property.d.ts +4 -10
  832. package/lib/models/property/property.d.ts.map +1 -0
  833. package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
  834. package/lib/models/registration-invite/registration-invite.d.ts +4 -4
  835. package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
  836. package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
  837. package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
  838. package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
  839. package/lib/models/report/depreciation/index.d.ts.map +1 -0
  840. package/lib/models/report/index.d.ts.map +1 -0
  841. package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
  842. package/lib/models/report/my-tax/index.d.ts.map +1 -0
  843. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
  844. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
  845. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
  846. 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
  847. 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
  848. 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
  849. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
  850. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
  851. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
  852. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
  853. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
  854. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
  855. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
  856. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
  857. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
  858. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
  859. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
  860. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
  861. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
  862. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
  863. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
  864. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
  865. package/lib/models/report/property/index.d.ts.map +1 -0
  866. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
  867. package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
  868. package/lib/models/report/property/property-report-item.d.ts.map +1 -0
  869. package/lib/models/report/sole/index.d.ts.map +1 -0
  870. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
  871. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
  872. package/lib/models/service-subscription/index.d.ts.map +1 -0
  873. package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
  874. package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
  875. package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
  876. package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
  877. package/lib/models/service-subscription/service-price.d.ts.map +1 -0
  878. package/lib/models/service-subscription/service-product.d.ts.map +1 -0
  879. package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +1 -0
  880. package/lib/models/service-subscription/service-promo-code.d.ts.map +1 -0
  881. package/lib/models/service-subscription/service-subscription-item.d.ts.map +1 -0
  882. package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
  883. package/lib/models/sole/bas-report.d.ts.map +1 -0
  884. package/lib/models/sole/index.d.ts.map +1 -0
  885. package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
  886. package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
  887. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  888. package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
  889. package/lib/models/sole/sole-business.d.ts +4 -4
  890. package/lib/models/sole/sole-business.d.ts.map +1 -0
  891. package/lib/models/sole/sole-contact.d.ts +4 -4
  892. package/lib/models/sole/sole-contact.d.ts.map +1 -0
  893. package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
  894. package/lib/models/sole/sole-details.d.ts.map +1 -0
  895. package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
  896. package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
  897. package/lib/models/sole/sole-invoice.d.ts.map +1 -0
  898. package/lib/models/tax-return/index.d.ts.map +1 -0
  899. package/lib/models/tax-return/tax-return-category.d.ts.map +1 -0
  900. package/lib/models/tax-return/tax-return-item.d.ts.map +1 -0
  901. package/lib/models/tax-return/tax-return.d.ts.map +1 -0
  902. package/lib/models/tax-review/tax-review.d.ts.map +1 -0
  903. package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
  904. package/lib/models/tax-summary/report-item.d.ts.map +1 -0
  905. package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
  906. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
  907. package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
  908. package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
  909. package/lib/models/toast/toast.d.ts.map +1 -0
  910. package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
  911. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  912. package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  913. package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
  914. package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
  915. package/lib/models/transaction/index.d.ts +0 -1
  916. package/lib/models/transaction/index.d.ts.map +1 -0
  917. package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
  918. package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
  919. package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
  920. package/lib/models/transaction/transaction.d.ts +2 -5
  921. package/lib/models/transaction/transaction.d.ts.map +1 -0
  922. package/lib/models/user/index.d.ts.map +1 -0
  923. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
  924. package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
  925. package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
  926. package/lib/models/user/my-account-history.d.ts.map +1 -0
  927. package/lib/models/user/occupation.d.ts.map +1 -0
  928. package/lib/models/user/user-roles.const.d.ts.map +1 -0
  929. package/lib/models/user/user-to-register.d.ts.map +1 -0
  930. package/lib/models/user/user-work-position.const.d.ts.map +1 -0
  931. package/lib/models/user/user.d.ts +6 -12
  932. package/lib/models/user/user.d.ts.map +1 -0
  933. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
  934. package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
  935. package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
  936. package/lib/models/user-event/user-event-type.d.ts.map +1 -0
  937. package/lib/models/vehicle/index.d.ts.map +1 -0
  938. package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
  939. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  940. package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
  941. package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
  942. package/lib/models/vehicle/vehicle.d.ts.map +1 -0
  943. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  944. package/lib/services/account-setup/index.d.ts.map +1 -0
  945. package/lib/services/affiliate/index.d.ts.map +1 -0
  946. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  947. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  948. package/lib/services/asset/assets.service.d.ts.map +1 -0
  949. package/lib/services/asset/index.d.ts.map +1 -0
  950. package/lib/services/auth/auth.service.d.ts.map +1 -0
  951. package/lib/services/auth/index.d.ts.map +1 -0
  952. package/lib/services/auth/jwt.service.d.ts.map +1 -0
  953. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  954. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  955. package/lib/services/bank/index.d.ts.map +1 -0
  956. package/lib/services/data.service.d.ts.map +1 -0
  957. package/lib/services/event/event-dispatcher.service.d.ts.map +1 -0
  958. package/lib/services/event/index.d.ts.map +1 -0
  959. package/lib/services/event/sse.service.d.ts.map +1 -0
  960. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  961. package/lib/services/export/index.d.ts.map +1 -0
  962. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  963. package/lib/services/header-title/index.d.ts.map +1 -0
  964. package/lib/services/http/address/address.service.d.ts.map +1 -0
  965. package/lib/services/http/address/index.d.ts.map +1 -0
  966. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
  967. package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
  968. package/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts.map +1 -0
  969. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
  970. package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
  971. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
  972. package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
  973. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  974. package/lib/services/http/bank/basiq/basiq-messages.enum.d.ts.map +1 -0
  975. package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
  976. package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
  977. package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
  978. package/lib/services/http/bank/index.d.ts.map +1 -0
  979. package/lib/services/http/budget/budget-messages.enum.d.ts.map +1 -0
  980. package/lib/services/http/budget/budget.service.d.ts.map +1 -0
  981. package/lib/services/http/budget/index.d.ts.map +1 -0
  982. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  983. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  984. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  985. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  986. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  987. package/lib/services/http/chat/index.d.ts.map +1 -0
  988. package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
  989. package/lib/services/http/chat/message.service.d.ts.map +1 -0
  990. package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +1 -0
  991. package/lib/services/http/client/index.d.ts.map +1 -0
  992. package/lib/services/http/client/occupation/occupation.service.d.ts.map +1 -0
  993. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  994. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  995. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -7
  996. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  997. package/lib/services/http/depreciation/index.d.ts +0 -1
  998. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  999. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts +6 -0
  1000. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts.map +1 -0
  1001. package/lib/services/http/document/document-folder/document-folder.service.d.ts +6 -24
  1002. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  1003. package/lib/services/http/document/document-folder/index.d.ts +2 -0
  1004. package/lib/services/http/document/document-folder/index.d.ts.map +1 -0
  1005. package/lib/services/http/document/document-messages.enum.d.ts +6 -0
  1006. package/lib/services/http/document/document-messages.enum.d.ts.map +1 -0
  1007. package/lib/services/http/document/document.service.d.ts +7 -3
  1008. package/lib/services/http/document/document.service.d.ts.map +1 -0
  1009. package/lib/services/http/document/index.d.ts +2 -1
  1010. package/lib/services/http/document/index.d.ts.map +1 -0
  1011. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  1012. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  1013. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  1014. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  1015. package/lib/services/http/facebook/index.d.ts.map +1 -0
  1016. package/lib/services/http/file/file.service.d.ts +2 -0
  1017. package/lib/services/http/file/file.service.d.ts.map +1 -0
  1018. package/lib/services/http/file/index.d.ts.map +1 -0
  1019. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  1020. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  1021. package/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts.map +1 -0
  1022. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  1023. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  1024. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  1025. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  1026. package/lib/services/http/firm/employee/employee-messages.enum.d.ts.map +1 -0
  1027. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  1028. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  1029. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  1030. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  1031. package/lib/services/http/firm/firm-messages.enum.d.ts +4 -0
  1032. package/lib/services/http/firm/firm-messages.enum.d.ts.map +1 -0
  1033. package/lib/services/http/firm/firm.service.d.ts +0 -1
  1034. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  1035. package/lib/services/http/firm/index.d.ts +1 -0
  1036. package/lib/services/http/firm/index.d.ts.map +1 -0
  1037. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  1038. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  1039. package/lib/services/http/google/google.service.d.ts.map +1 -0
  1040. package/lib/services/http/google/index.d.ts.map +1 -0
  1041. package/lib/services/http/holding/holding-messages.enum.d.ts.map +1 -0
  1042. package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +1 -0
  1043. package/lib/services/http/holding/holding-sale.service.d.ts.map +1 -0
  1044. package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +1 -0
  1045. package/lib/services/http/holding/holding-type.service.d.ts.map +1 -0
  1046. package/lib/services/http/holding/holding.service.d.ts.map +1 -0
  1047. package/lib/services/http/holding/index.d.ts.map +1 -0
  1048. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  1049. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  1050. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  1051. package/lib/services/http/income-source/index.d.ts.map +1 -0
  1052. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  1053. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  1054. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  1055. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  1056. package/lib/services/http/index.d.ts +0 -1
  1057. package/lib/services/http/index.d.ts.map +1 -0
  1058. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  1059. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  1060. package/lib/services/http/loan/index.d.ts.map +1 -0
  1061. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  1062. package/lib/services/http/property/borrowing-report/borrowing-report-messages.enum.d.ts.map +1 -0
  1063. package/lib/services/http/property/borrowing-report/borrowing-report.service.d.ts.map +1 -0
  1064. package/lib/services/http/property/borrowing-report/index.d.ts.map +1 -0
  1065. package/lib/services/http/property/index.d.ts +2 -0
  1066. package/lib/services/http/property/index.d.ts.map +1 -0
  1067. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  1068. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  1069. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  1070. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  1071. package/lib/services/http/property/property-document/index.d.ts +1 -0
  1072. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  1073. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts +6 -0
  1074. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts.map +1 -0
  1075. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -0
  1076. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  1077. package/lib/services/http/property/property-messages.enum.d.ts +4 -0
  1078. package/lib/services/http/property/property-messages.enum.d.ts.map +1 -0
  1079. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  1080. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  1081. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  1082. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  1083. package/lib/services/http/property/property-valuation/index.d.ts +2 -0
  1084. package/lib/services/http/property/property-valuation/index.d.ts.map +1 -0
  1085. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts +4 -0
  1086. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts.map +1 -0
  1087. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +21 -0
  1088. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts.map +1 -0
  1089. package/lib/services/http/property/property.service.d.ts +1 -0
  1090. package/lib/services/http/property/property.service.d.ts.map +1 -0
  1091. package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
  1092. package/lib/services/http/rest/index.d.ts.map +1 -0
  1093. package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
  1094. package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
  1095. package/lib/services/http/rest/rest.service.d.ts +2 -2
  1096. package/lib/services/http/rest/rest.service.d.ts.map +1 -0
  1097. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  1098. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  1099. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  1100. package/lib/services/http/sole/index.d.ts +1 -1
  1101. package/lib/services/http/sole/index.d.ts.map +1 -0
  1102. package/lib/services/http/sole/sole-business/index.d.ts +2 -0
  1103. package/lib/services/http/sole/sole-business/index.d.ts.map +1 -0
  1104. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts +3 -0
  1105. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts.map +1 -0
  1106. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +0 -1
  1107. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  1108. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  1109. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  1110. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  1111. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  1112. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  1113. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  1114. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  1115. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  1116. package/lib/services/http/subscription/index.d.ts.map +1 -0
  1117. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
  1118. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
  1119. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
  1120. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
  1121. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
  1122. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  1123. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  1124. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  1125. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  1126. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  1127. package/lib/services/http/transaction/index.d.ts +0 -1
  1128. package/lib/services/http/transaction/index.d.ts.map +1 -0
  1129. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
  1130. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  1131. package/lib/services/http/transaction/transaction.service.d.ts +1 -5
  1132. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  1133. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  1134. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  1135. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  1136. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  1137. package/lib/services/http/user/financial-year/financial-year.service.d.ts.map +1 -0
  1138. package/lib/services/http/user/index.d.ts +1 -0
  1139. package/lib/services/http/user/index.d.ts.map +1 -0
  1140. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  1141. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  1142. package/lib/services/http/user/user-messages.enum.d.ts +5 -0
  1143. package/lib/services/http/user/user-messages.enum.d.ts.map +1 -0
  1144. package/lib/services/http/user/user.service.d.ts.map +1 -0
  1145. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  1146. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  1147. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  1148. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  1149. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  1150. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  1151. package/lib/services/index.d.ts.map +1 -0
  1152. package/lib/services/intercom/index.d.ts.map +1 -0
  1153. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  1154. package/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts.map +1 -0
  1155. package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +1 -0
  1156. package/lib/services/json/income-source/income-source-type.service.d.ts.map +1 -0
  1157. package/lib/services/json/index.d.ts.map +1 -0
  1158. package/lib/services/json/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  1159. package/lib/services/json/tax-return/tax-return-item.service.d.ts.map +1 -0
  1160. package/lib/services/pdf/index.d.ts.map +1 -0
  1161. package/lib/services/pdf/js-pdf.d.ts.map +1 -0
  1162. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  1163. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  1164. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  1165. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  1166. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  1167. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  1168. package/lib/services/preloader/index.d.ts.map +1 -0
  1169. package/lib/services/preloader/preloader.service.d.ts.map +1 -0
  1170. package/lib/services/property/corelogic/corelogic.service.d.ts.map +1 -0
  1171. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  1172. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  1173. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  1174. package/lib/services/property/index.d.ts.map +1 -0
  1175. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  1176. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  1177. package/lib/services/report/index.d.ts.map +1 -0
  1178. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  1179. package/lib/services/toast/index.d.ts.map +1 -0
  1180. package/lib/services/toast/toast.service.d.ts.map +1 -0
  1181. package/lib/services/transaction/index.d.ts.map +1 -0
  1182. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  1183. package/lib/services/user/index.d.ts.map +1 -0
  1184. package/lib/services/user/user-switcher.service.d.ts.map +1 -0
  1185. package/lib/services/vehicle/index.d.ts.map +1 -0
  1186. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  1187. package/lib/services/xlsx/index.d.ts.map +1 -0
  1188. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  1189. package/lib/tt-core.module.d.ts.map +1 -0
  1190. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  1191. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  1192. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  1193. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  1194. package/lib/validators/conditional.validator.d.ts.map +1 -0
  1195. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  1196. package/lib/validators/date-range.validator.d.ts.map +1 -0
  1197. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  1198. package/lib/validators/file.validator.d.ts.map +1 -0
  1199. package/lib/validators/greater-than.validator.d.ts.map +1 -0
  1200. package/lib/validators/index.d.ts.map +1 -0
  1201. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  1202. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  1203. package/lib/validators/password-match.validator.d.ts.map +1 -0
  1204. package/lib/validators/password.validator.d.ts.map +1 -0
  1205. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  1206. package/lib/validators/required-length.validator.d.ts.map +1 -0
  1207. package/lib/validators/transactions-meta-fields.validator.d.ts.map +1 -0
  1208. package/package.json +1 -1
  1209. package/public-api.d.ts +1 -17
  1210. package/public-api.d.ts.map +1 -0
  1211. package/taxtank-core.d.ts.map +1 -0
  1212. package/esm2020/lib/db/Models/depreciation/depreciation-receipt.mjs +0 -4
  1213. package/esm2020/lib/db/Models/transaction/transaction-receipt.mjs +0 -4
  1214. package/esm2020/lib/interfaces/photoable.mjs +0 -2
  1215. package/esm2020/lib/interfaces/receipt.interface.mjs +0 -2
  1216. package/esm2020/lib/models/depreciation/depreciation-receipt.mjs +0 -11
  1217. package/esm2020/lib/models/transaction/transaction-receipt.mjs +0 -11
  1218. package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +0 -40
  1219. package/esm2020/lib/services/http/depreciation/depreciation-receipt/index.mjs +0 -2
  1220. package/esm2020/lib/services/http/receipt/index.mjs +0 -2
  1221. package/esm2020/lib/services/http/receipt/receipt.service.mjs +0 -76
  1222. package/esm2020/lib/services/http/sole/sole-business/messages.enum.mjs +0 -7
  1223. package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +0 -40
  1224. package/lib/db/Models/depreciation/depreciation-receipt.d.ts +0 -12
  1225. package/lib/db/Models/transaction/transaction-receipt.d.ts +0 -12
  1226. package/lib/interfaces/photoable.d.ts +0 -13
  1227. package/lib/interfaces/receipt.interface.d.ts +0 -12
  1228. package/lib/models/depreciation/depreciation-receipt.d.ts +0 -8
  1229. package/lib/models/transaction/transaction-receipt.d.ts +0 -8
  1230. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts +0 -28
  1231. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts +0 -1
  1232. package/lib/services/http/receipt/index.d.ts +0 -1
  1233. package/lib/services/http/receipt/receipt.service.d.ts +0 -62
  1234. package/lib/services/http/sole/sole-business/messages.enum.d.ts +0 -5
  1235. 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));
@@ -3826,7 +3820,7 @@ var UserRolesEnum;
3826
3820
  UserRolesEnum["PROPERTY_TANK"] = "ROLE_USER_PROPERTY";
3827
3821
  UserRolesEnum["SOLE_TANK"] = "ROLE_USER_SOLE";
3828
3822
  UserRolesEnum["HOLDING_TANK"] = "ROLE_USER_HOLDING";
3829
- UserRolesEnum["SWITCH_USER"] = "ROLE_PREVIOUS_ADMIN";
3823
+ UserRolesEnum["SWITCH_USER"] = "IS_IMPERSONATOR";
3830
3824
  })(UserRolesEnum || (UserRolesEnum = {}));
3831
3825
 
3832
3826
  const USER_WORK_POSITION = {
@@ -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);
@@ -6043,13 +5882,10 @@ class BorrowingReport extends BorrowingReport$1 {
6043
5882
  * some fields calculated automatically until user filled them manually
6044
5883
  */
6045
5884
  static calculate(salaryForecasts, incomeSourceForecasts, clientDetails = plainToClass(AnnualClientDetails, {}), report = plainToClass(BorrowingReport, {})) {
6046
- if (!report.netSalary) {
6047
- report.netSalary = new Collection(salaryForecasts).sumBy('monthlyAmount')
6048
- + new IncomeSourceForecastCollection(incomeSourceForecasts).bonuses.sumBy('monthlyAmount');
6049
- }
6050
- if (!report.spouseNetSalary) {
6051
- report.spouseNetSalary = clientDetails.spouseMonthlyIncome;
6052
- }
5885
+ var _a, _b;
5886
+ report.netSalary = (_a = report.netSalary) !== null && _a !== void 0 ? _a : new Collection(salaryForecasts).sumBy('monthlyAmount')
5887
+ + new IncomeSourceForecastCollection(incomeSourceForecasts).bonuses.sumBy('monthlyAmount');
5888
+ report.spouseNetSalary = (_b = report.spouseNetSalary) !== null && _b !== void 0 ? _b : clientDetails.spouseMonthlyIncome;
6053
5889
  return report;
6054
5890
  }
6055
5891
  /**
@@ -6085,14 +5921,6 @@ var ShareFilterOptionsEnum;
6085
5921
  ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
6086
5922
  })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
6087
5923
 
6088
- class TransactionReceipt extends TransactionReceipt$1 {
6089
- constructor() {
6090
- super(...arguments);
6091
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
6092
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
6093
- }
6094
- }
6095
-
6096
5924
  class TransactionMetaField extends TransactionMetaField$1 {
6097
5925
  }
6098
5926
  __decorate([
@@ -6382,9 +6210,6 @@ __decorate([
6382
6210
  __decorate([
6383
6211
  Type(() => Property)
6384
6212
  ], Transaction.prototype, "property", void 0);
6385
- __decorate([
6386
- Type(() => TransactionReceipt)
6387
- ], Transaction.prototype, "receipt", void 0);
6388
6213
  __decorate([
6389
6214
  Type(() => ChartAccounts)
6390
6215
  ], Transaction.prototype, "chartAccounts", void 0);
@@ -9683,6 +9508,31 @@ __decorate([
9683
9508
  Type(() => Date)
9684
9509
  ], Chat.prototype, "updatedAt", void 0);
9685
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
+
9686
9536
  class MessageDocument extends MessageDocument$1 {
9687
9537
  constructor() {
9688
9538
  super(...arguments);
@@ -9694,7 +9544,7 @@ __decorate([
9694
9544
  Type(() => User)
9695
9545
  ], MessageDocument.prototype, "user", void 0);
9696
9546
  __decorate([
9697
- Exclude({ toPlainOnly: true })
9547
+ Type(() => AppFile)
9698
9548
  ], MessageDocument.prototype, "file", void 0);
9699
9549
 
9700
9550
  class Message extends Message$1 {
@@ -9756,58 +9606,50 @@ var AppEventTypeEnum;
9756
9606
  AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 14] = "CURRENT_USER_GET_FAILED";
9757
9607
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 15] = "DEPRECIATION_DELETED";
9758
9608
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 16] = "DEPRECIATIONS_CREATED";
9759
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_RECEIPT"] = 17] = "DEPRECIATION_UPDATED_WITH_RECEIPT";
9760
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT"] = 18] = "DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT";
9761
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_CREATED"] = 19] = "DEPRECIATION_RECEIPT_CREATED";
9762
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_DELETED"] = 20] = "DEPRECIATION_RECEIPT_DELETED";
9763
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 21] = "INCOME_SOURCES_CREATED";
9764
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 22] = "INCOME_SOURCES_UPDATED";
9765
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 23] = "INCOME_SOURCES_FORECASTS_CREATED";
9766
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 24] = "INCOME_SOURCES_FORECASTS_UPDATED";
9767
- AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 25] = "LOAN_UPDATED";
9768
- AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 26] = "LOAN_PAYOUT_UPDATED";
9769
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 27] = "MESSAGE_CREATED";
9770
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 28] = "MESSAGE_FILE_CREATED";
9771
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 29] = "MESSAGE_FILE_DELETED";
9772
- AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 30] = "NOTIFICATION_ADDED";
9773
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 31] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
9774
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 32] = "PROPERTY_UPDATED";
9775
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 33] = "PROPERTY_UPDATED_WITH_DOCUMENT";
9776
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 34] = "PROPERTY_DOCUMENT_ADDED";
9777
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 35] = "PROPERTY_MOVEMENT_CREATED";
9778
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 36] = "PROPERTY_MOVEMENT_UPDATED";
9779
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 37] = "PROPERTY_MOVEMENT_DELETED";
9780
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 38] = "PROPERTY_SHARE_UPDATED";
9781
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 39] = "PROPERTY_SALE_ADDED";
9782
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 40] = "PROPERTY_SALE_DELETED";
9783
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 41] = "PROPERTY_SUBSCRIPTION_ADDED";
9784
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 42] = "PROPERTY_SUBSCRIPTION_DELETED";
9785
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 43] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
9786
- AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 44] = "SERVICE_SUBSCRIPTION_UPDATED";
9787
- AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 45] = "SOLE_BUSINESS_CREATED";
9788
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 46] = "SOLE_DEPRECIATION_METHOD_UPDATED";
9789
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 47] = "SOLE_DETAILS_CREATED";
9790
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 48] = "SOLE_DETAILS_UPDATED";
9791
- AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 49] = "SOLE_INVOICE_PUBLISHED";
9792
- AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 50] = "TAX_REVIEW_UPDATED";
9793
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 51] = "TRANSACTION_ALLOCATION_CREATED";
9794
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 52] = "TRANSACTION_ALLOCATION_DELETED";
9795
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 53] = "TRANSACTION_CREATED";
9796
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 54] = "TRANSACTION_DELETED";
9797
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 55] = "TRANSACTION_UPDATED";
9798
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 56] = "TRANSACTION_UPDATED_WITH_RECEIPT";
9799
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 57] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
9800
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
9801
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
9802
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
9803
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
9804
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
9805
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9806
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
9807
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
9808
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
9809
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
9810
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
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";
9811
9653
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
9812
9654
 
9813
9655
  /**
@@ -9831,13 +9673,6 @@ class AppEvent2 {
9831
9673
  }
9832
9674
  }
9833
9675
 
9834
- /**
9835
- * The model renamed for more comfortable work because File already exist in JS
9836
- * @TODO Alex: consider a better name like document
9837
- */
9838
- class AppFile extends File$1 {
9839
- }
9840
-
9841
9676
  class Notification extends ServiceNotification {
9842
9677
  get eventType() {
9843
9678
  return this.userEvent.type.type;
@@ -9873,35 +9708,108 @@ __decorate([
9873
9708
  })
9874
9709
  ], Notification.prototype, "redirectionLink", void 0);
9875
9710
 
9876
- /**
9877
- * Enum with document types which used to API url prefix
9878
- */
9879
- var DocumentApiUrlPrefixEnum;
9880
- (function (DocumentApiUrlPrefixEnum) {
9881
- DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
9882
- DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
9883
- })(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
9884
-
9885
- class Document extends Document$1 {
9886
- constructor() {
9887
- super(...arguments);
9888
- this.type = AssetTypeEnum.DOCUMENT;
9889
- this.entityType = AssetEntityTypeEnum.FOLDERS;
9890
- }
9891
- /**
9892
- * Get folder as document parent entity
9893
- */
9894
- getEntity() {
9895
- return this.folder;
9896
- }
9711
+ class ServicePayment extends ServicePayment$1 {
9897
9712
  /**
9898
- * Get API url prefix
9713
+ * Stripe stores actual links to payment invoices for 30 days.
9714
+ * Link expires after 30 days
9899
9715
  */
9900
- getApiUrlPrefix() {
9901
- 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();
9902
9719
  }
9903
9720
  }
9904
-
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
+
9905
9813
  const DOCUMENT_FILE_TYPES = {
9906
9814
  image: [
9907
9815
  'image/png',
@@ -9925,12 +9833,6 @@ const DOCUMENT_FILE_TYPES = {
9925
9833
  ]
9926
9834
  };
9927
9835
 
9928
- class DocumentFolder extends DocumentFolder$1 {
9929
- }
9930
- __decorate([
9931
- Type(() => Document)
9932
- ], DocumentFolder.prototype, "documents", void 0);
9933
-
9934
9836
  class HoldingTypeExchange extends AbstractModel {
9935
9837
  }
9936
9838
  __decorate([
@@ -10266,9 +10168,9 @@ class DataService {
10266
10168
  this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
10267
10169
  }
10268
10170
  }
10269
- DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10270
- DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, providedIn: 'root' });
10271
- 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: [{
10272
10174
  type: Injectable,
10273
10175
  args: [{
10274
10176
  providedIn: 'root'
@@ -10303,9 +10205,9 @@ class JwtService extends JwtHelperService {
10303
10205
  return this.getUser().id === userId;
10304
10206
  }
10305
10207
  }
10306
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10307
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, providedIn: 'root' });
10308
- 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: [{
10309
10211
  type: Injectable,
10310
10212
  args: [{
10311
10213
  providedIn: 'root'
@@ -10340,9 +10242,9 @@ class AuthService {
10340
10242
  location.replace(url);
10341
10243
  }
10342
10244
  }
10343
- 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 });
10344
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, providedIn: 'root' });
10345
- 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: [{
10346
10248
  type: Injectable,
10347
10249
  args: [{
10348
10250
  providedIn: 'root'
@@ -10382,9 +10284,9 @@ class EventDispatcherService {
10382
10284
  this.eventSubject2.next(event);
10383
10285
  }
10384
10286
  }
10385
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10386
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10387
- 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: [{
10388
10290
  type: Injectable,
10389
10291
  args: [{
10390
10292
  providedIn: 'root'
@@ -10421,9 +10323,9 @@ class SseService {
10421
10323
  .pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
10422
10324
  }
10423
10325
  }
10424
- 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 });
10425
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, providedIn: 'root' });
10426
- 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: [{
10427
10329
  type: Injectable,
10428
10330
  args: [{
10429
10331
  providedIn: 'root'
@@ -10492,9 +10394,9 @@ let RestService$1 = class RestService extends DataService {
10492
10394
  return this.cache;
10493
10395
  }));
10494
10396
  }
10495
- get() {
10397
+ get(path = this.apiUrl) {
10496
10398
  if (!this.cache) {
10497
- 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);
10498
10400
  }
10499
10401
  return this.cacheSubject.asObservable();
10500
10402
  }
@@ -10508,9 +10410,9 @@ let RestService$1 = class RestService extends DataService {
10508
10410
  /**
10509
10411
  * Create a new Model instance in database
10510
10412
  */
10511
- post(model) {
10413
+ post(model, path = this.apiUrl) {
10512
10414
  this.handleAccessError('post');
10513
- return this.http.post(this.apiUrl, classToPlain(model))
10415
+ return this.http.post(path, classToPlain(model))
10514
10416
  .pipe(map((response) => {
10515
10417
  const result = this.createModelInstance(response);
10516
10418
  this.handleResponse([result], 'post');
@@ -10646,9 +10548,9 @@ let RestService$1 = class RestService extends DataService {
10646
10548
  */
10647
10549
  listenEvents() { }
10648
10550
  };
10649
- 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 });
10650
- RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, providedIn: 'root' });
10651
- 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: [{
10652
10554
  type: Injectable,
10653
10555
  args: [{
10654
10556
  providedIn: 'root'
@@ -10718,9 +10620,9 @@ class BankAccountService extends RestService$1 {
10718
10620
  });
10719
10621
  }
10720
10622
  }
10721
- 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 });
10722
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10723
- 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: [{
10724
10626
  type: Injectable,
10725
10627
  args: [{
10726
10628
  providedIn: 'root'
@@ -10817,9 +10719,9 @@ class ToastService {
10817
10719
  }));
10818
10720
  }
10819
10721
  }
10820
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10821
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
10822
- 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: [{
10823
10725
  type: Injectable,
10824
10726
  args: [{
10825
10727
  providedIn: 'root'
@@ -10897,9 +10799,9 @@ class BankConnectionService extends RestService$1 {
10897
10799
  });
10898
10800
  }
10899
10801
  }
10900
- 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 });
10901
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10902
- 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: [{
10903
10805
  type: Injectable,
10904
10806
  args: [{
10905
10807
  providedIn: 'root'
@@ -11014,9 +10916,9 @@ class BankTransactionService extends RestService$1 {
11014
10916
  });
11015
10917
  }
11016
10918
  }
11017
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11018
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
11019
- 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: [{
11020
10922
  type: Injectable,
11021
10923
  args: [{
11022
10924
  providedIn: 'root'
@@ -11048,9 +10950,9 @@ class BasiqTokenService extends RestService$1 {
11048
10950
  return new BasiqToken(tokenResponse['access_token'], new Date(now + tokenResponse['expires_in'] * 1000));
11049
10951
  }
11050
10952
  }
11051
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11052
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
11053
- 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: [{
11054
10956
  type: Injectable,
11055
10957
  args: [{
11056
10958
  providedIn: 'root'
@@ -11176,9 +11078,9 @@ BasiqService.retrieveAccountsCheckInterval = 3000;
11176
11078
  * How long we will wait accounts retrieving, break after timeout if not retireved
11177
11079
  */
11178
11080
  BasiqService.retrieveAccountsTimeout = 20000;
11179
- 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 });
11180
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, providedIn: 'root' });
11181
- 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: [{
11182
11084
  type: Injectable,
11183
11085
  args: [{
11184
11086
  providedIn: 'root'
@@ -11210,9 +11112,9 @@ class BankService extends RestService$1 {
11210
11112
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11211
11113
  }
11212
11114
  }
11213
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11214
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, providedIn: 'root' });
11215
- 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: [{
11216
11118
  type: Injectable,
11217
11119
  args: [{
11218
11120
  providedIn: 'root'
@@ -11229,9 +11131,9 @@ class BudgetService extends RestService$1 {
11229
11131
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
11230
11132
  }
11231
11133
  }
11232
- BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11233
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, providedIn: 'root' });
11234
- 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: [{
11235
11137
  type: Injectable,
11236
11138
  args: [{
11237
11139
  providedIn: 'root'
@@ -11259,9 +11161,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
11259
11161
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11260
11162
  }
11261
11163
  }
11262
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11263
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11264
- 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: [{
11265
11167
  type: Injectable,
11266
11168
  args: [{
11267
11169
  providedIn: 'root'
@@ -11301,9 +11203,9 @@ class ChartAccountsService extends RestService$1 {
11301
11203
  }));
11302
11204
  }
11303
11205
  }
11304
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11305
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11306
- 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: [{
11307
11209
  type: Injectable,
11308
11210
  args: [{
11309
11211
  providedIn: 'root'
@@ -11372,9 +11274,9 @@ class ChatService extends RestService$1 {
11372
11274
  });
11373
11275
  }
11374
11276
  }
11375
- 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 });
11376
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, providedIn: 'root' });
11377
- 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: [{
11378
11280
  type: Injectable,
11379
11281
  args: [{
11380
11282
  providedIn: 'root'
@@ -11433,9 +11335,9 @@ class MessageService extends RestService$1 {
11433
11335
  });
11434
11336
  }
11435
11337
  }
11436
- 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 });
11437
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, providedIn: 'root' });
11438
- 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: [{
11439
11341
  type: Injectable,
11440
11342
  args: [{
11441
11343
  providedIn: 'root'
@@ -11456,7 +11358,7 @@ class MessageDocumentService extends RestService$1 {
11456
11358
  this.modelClass = MessageDocument;
11457
11359
  this.collectionClass = MessageDocumentCollection;
11458
11360
  this.endpointUri = 'message-documents';
11459
- this.disabledMethods = ['postBatch', 'post', 'deleteBatch', 'put', 'putBatch'];
11361
+ this.disabledMethods = ['postBatch', 'deleteBatch', 'put', 'putBatch'];
11460
11362
  this.isApiPlatform = true;
11461
11363
  }
11462
11364
  /**
@@ -11507,165 +11409,31 @@ class MessageDocumentService extends RestService$1 {
11507
11409
  return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
11508
11410
  }
11509
11411
  }
11510
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11511
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11512
- 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: [{
11513
11415
  type: Injectable,
11514
11416
  args: [{
11515
11417
  providedIn: 'root'
11516
11418
  }]
11517
11419
  }] });
11518
11420
 
11519
- /**
11520
- * Abstract service class to work with transactions-like receipt files (transactions, depreciations, e.t.c.)
11521
- * @Todo TT-2191 refactor service when receipts API will be updated
11522
- */
11523
- class ReceiptService {
11524
- constructor(http, eventDispatcherService, environment, toastService) {
11525
- this.http = http;
11526
- this.eventDispatcherService = eventDispatcherService;
11527
- this.environment = environment;
11528
- this.toastService = toastService;
11529
- }
11530
- listenEvents() {
11531
- this.listenParentWithReceiptUpdated();
11532
- this.listenParentWithoutReceiptUpdated();
11533
- }
11534
- /**
11535
- * Entity is necessary to take the ID and the receipt file from it.
11536
- */
11537
- add(receiptEntity) {
11538
- const formData = new FormData();
11539
- formData.append('file', receiptEntity.file);
11540
- return this.http.post(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts`, formData)
11541
- .pipe(map((receipt) => {
11542
- const uploadedReceipt = this.createModelInstance(receipt);
11543
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptCreatedEvent, uploadedReceipt));
11544
- return uploadedReceipt;
11545
- }));
11546
- }
11547
- delete(receiptEntity) {
11548
- return this.http.delete(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts/${receiptEntity.receipt.id}`)
11549
- .pipe(map(() => {
11550
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptDeletedEvent, receiptEntity));
11551
- }));
11552
- }
11553
- /**
11554
- * Parent entity was updated with attached receipt
11555
- */
11556
- listenParentWithReceiptUpdated() {
11557
- this.eventDispatcherService.on(this.entityUpdatedWithReceiptEvent)
11558
- .subscribe((receiptEntity) => {
11559
- this.add(receiptEntity).subscribe();
11560
- });
11561
- }
11562
- /**
11563
- * Parent entity was updated, but receipt was removed
11564
- */
11565
- listenParentWithoutReceiptUpdated() {
11566
- this.eventDispatcherService.on(this.entityUpdatedWithDeletedReceiptEvent)
11567
- .subscribe((receiptEntity) => {
11568
- this.delete(receiptEntity).subscribe();
11569
- });
11570
- }
11571
- createModelInstance(data) {
11572
- return plainToClass(this.modelClass, data);
11573
- }
11574
- }
11575
- 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 });
11576
- ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, decorators: [{
11578
- type: Injectable,
11579
- args: [{
11580
- providedIn: 'root'
11581
- }]
11582
- }], ctorParameters: function () {
11583
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11584
- type: Inject,
11585
- args: ['environment']
11586
- }] }, { type: ToastService }];
11587
- } });
11588
-
11589
- /**
11590
- * @Todo TT-2191 refactor service when receipts API will be updated
11591
- */
11592
- class DepreciationReceiptService extends ReceiptService {
11593
- constructor(http, eventDispatcherService, environment, toastService) {
11594
- super(http, eventDispatcherService, environment, toastService);
11595
- this.http = http;
11596
- this.eventDispatcherService = eventDispatcherService;
11597
- this.environment = environment;
11598
- this.toastService = toastService;
11599
- this.modelClass = DepreciationReceipt;
11600
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
11601
- this.receiptCreatedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED;
11602
- this.receiptDeletedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED;
11603
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT;
11604
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT;
11605
- this.listenEvents();
11606
- }
11607
- }
11608
- 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 });
11609
- DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11610
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11611
- type: Injectable,
11612
- args: [{
11613
- providedIn: 'root'
11614
- }]
11615
- }], ctorParameters: function () {
11616
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11617
- type: Inject,
11618
- args: ['environment']
11619
- }] }, { type: ToastService }];
11620
- } });
11621
-
11622
11421
  class DepreciationService extends RestService$1 {
11623
- constructor(http, eventDispatcherService, environment, depreciationReceiptService) {
11422
+ constructor(http, eventDispatcherService, environment) {
11624
11423
  super(http, eventDispatcherService, environment);
11625
11424
  this.http = http;
11626
11425
  this.eventDispatcherService = eventDispatcherService;
11627
11426
  this.environment = environment;
11628
- this.depreciationReceiptService = depreciationReceiptService;
11629
11427
  this.modelClass = Depreciation;
11630
11428
  this.collectionClass = DepreciationCollection;
11631
11429
  this.endpointUri = 'depreciations';
11632
11430
  this.disabledMethods = ['post', 'putBatch', 'deleteBatch'];
11633
11431
  }
11634
- postBatch(depreciations) {
11635
- return super.postBatch(depreciations).pipe(map((newDepreciations) => {
11636
- depreciations.forEach((depreciation, index) => {
11637
- // @TODO backend: need to upload file in the same backend endpoint with depreciation add/update
11638
- // check if passed receipt and upload file
11639
- if (depreciation.file && (depreciation.file instanceof File)) {
11640
- depreciation.id = newDepreciations[index].id;
11641
- newDepreciations[index].file = depreciation.file;
11642
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, newDepreciations[index]));
11643
- }
11644
- });
11645
- return depreciations;
11646
- }));
11647
- }
11648
- put(depreciation) {
11649
- return super.put(depreciation)
11650
- .pipe(map((updatedDepreciation) => {
11651
- if (depreciation.file && (depreciation.file instanceof File)) {
11652
- updatedDepreciation.file = depreciation.file;
11653
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, updatedDepreciation));
11654
- // receipt file was removed from form - we should delete receipt from transaction
11655
- }
11656
- else if (!depreciation.file && depreciation.receipt) {
11657
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT, updatedDepreciation));
11658
- }
11659
- return updatedDepreciation;
11660
- }));
11661
- }
11662
11432
  /**
11663
11433
  * Listen to Depreciations events
11664
11434
  */
11665
11435
  listenEvents() {
11666
11436
  this.listenToUpdatedLoan();
11667
- this.listenReceiptAdded();
11668
- this.listenReceiptDeleted();
11669
11437
  this.listenVehicleClaimChanges();
11670
11438
  this.listenToUpdatedBankAccount();
11671
11439
  this.listenSoleDepreciationMethodChanges();
@@ -11675,22 +11443,6 @@ class DepreciationService extends RestService$1 {
11675
11443
  return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
11676
11444
  .pipe(map((response) => response || 0));
11677
11445
  }
11678
- listenReceiptAdded() {
11679
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
11680
- const depreciationToUpdate = this.cache.findBy('id', receipt.depreciation.id);
11681
- // we don't need to keep file after save
11682
- depreciationToUpdate.file = null;
11683
- depreciationToUpdate.receipt = receipt;
11684
- this.updateCache([depreciationToUpdate], 'put');
11685
- });
11686
- }
11687
- listenReceiptDeleted() {
11688
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED).subscribe((depreciation) => {
11689
- const depreciationToUpdate = this.cache.findBy('id', depreciation.id);
11690
- depreciationToUpdate.receipt = null;
11691
- this.updateCache([depreciationToUpdate], 'put');
11692
- });
11693
- }
11694
11446
  /**
11695
11447
  * Listen to EventDispatcherService event related to updated bank loan
11696
11448
  */
@@ -11742,9 +11494,9 @@ class DepreciationService extends RestService$1 {
11742
11494
  });
11743
11495
  }
11744
11496
  }
11745
- 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 });
11746
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11747
- 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: [{
11748
11500
  type: Injectable,
11749
11501
  args: [{
11750
11502
  providedIn: 'root'
@@ -11753,7 +11505,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11753
11505
  return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11754
11506
  type: Inject,
11755
11507
  args: ['environment']
11756
- }] }, { type: DepreciationReceiptService }];
11508
+ }] }];
11757
11509
  } });
11758
11510
 
11759
11511
  /**
@@ -11796,9 +11548,9 @@ class DepreciationCapitalProjectService {
11796
11548
  }));
11797
11549
  }
11798
11550
  }
11799
- 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 });
11800
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11801
- 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: [{
11802
11554
  type: Injectable,
11803
11555
  args: [{
11804
11556
  providedIn: 'root'
@@ -11810,43 +11562,308 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11810
11562
  }] }];
11811
11563
  } });
11812
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
+
11813
11573
  /**
11814
- * Abstract base service that implements common services functionality
11815
- * and describe abstract methods/properties that have to be implemented in child services
11816
- * Model - entity service is working with
11817
- * BaseModel - base entity model that extends by Model
11818
- * @TODO TT-1777 Alex: remove when all services refactored
11574
+ * Service to handle document-folders and depending documents logic
11819
11575
  */
11820
- class RestService {
11821
- 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) {
11822
11627
  this.http = http;
11823
- this.eventDispatcherService = eventDispatcherService;
11824
- this.environment = environment;
11825
11628
  this.toastService = toastService;
11826
- this.jwtService = inject(JwtService);
11827
- // subject for service cache
11828
- this.cacheSubject = new ReplaySubject(1);
11829
- this.roles = [];
11830
- 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
+ });
11831
11647
  }
11832
11648
  /**
11833
- * get list of base class instances directly from backend
11649
+ * save user's auth tokens
11650
+ * @TODO move to abstract class
11834
11651
  */
11835
- fetch() {
11836
- this.setCache([]);
11837
- return this.http.get(`${this.environment.apiV2}/${this.url}`)
11838
- .pipe(map((response) => {
11839
- const items = (this.isHydra ? response['hydra:member'] : response)
11840
- .map((item) => this.createModelInstance(item));
11841
- this.setCache(items, true);
11842
- return items;
11843
- }));
11652
+ setAuth(response) {
11653
+ this.jwtService.saveTokens(response);
11654
+ this.isLoggedInSubject.next(true);
11844
11655
  }
11845
11656
  /**
11846
- * get cached list of all instances
11657
+ * get facebook auth access token
11847
11658
  */
11848
- get() {
11849
- if (!this.cache) {
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
11864
+ */
11865
+ get() {
11866
+ if (!this.cache) {
11850
11867
  this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11851
11868
  }
11852
11869
  return this.cacheSubject.asObservable();
@@ -11988,335 +12005,48 @@ class RestService {
11988
12005
  * clear service cache
11989
12006
  */
11990
12007
  refreshCache() {
11991
- this.setCache(undefined);
11992
- this.get();
11993
- }
11994
- setCache(data, next = false) {
11995
- this.cache = data;
11996
- if (next) {
11997
- this.updateCache();
11998
- }
11999
- }
12000
- /**
12001
- * Update cache subject with current cache array value
12002
- */
12003
- updateCache() {
12004
- this.cacheSubject.next(this.cache.slice());
12005
- }
12006
- /**
12007
- * @TODO use excludeExtraneousValues when all models refactored (exposed all needed properties)
12008
- * Create new instance of class
12009
- * @param model instance that we will use as constructor options
12010
- */
12011
- createModelInstance(model) {
12012
- return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
12013
- }
12014
- /**
12015
- * Method that call all listeners. Empty by default. Should be redefined by child services if required
12016
- */
12017
- listenEvents() { }
12018
- }
12019
- 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 });
12020
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, providedIn: 'root' });
12021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, decorators: [{
12022
- type: Injectable,
12023
- args: [{
12024
- providedIn: 'root'
12025
- }]
12026
- }], ctorParameters: function () {
12027
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12028
- type: Inject,
12029
- args: ['environment']
12030
- }] }, { type: ToastService }];
12031
- } });
12032
-
12033
- class DocumentService extends RestService {
12034
- constructor() {
12035
- super(...arguments);
12036
- this.url = 'documents';
12037
- this.modelClass = Document;
12038
- }
12039
- }
12040
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12041
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, providedIn: 'root' });
12042
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, decorators: [{
12043
- type: Injectable,
12044
- args: [{
12045
- providedIn: 'root'
12046
- }]
12047
- }] });
12048
-
12049
- /**
12050
- * Service to handle document-folders and depending documents logic
12051
- */
12052
- class DocumentFolderService extends RestService {
12053
- constructor() {
12054
- super(...arguments);
12055
- this.url = 'folders';
12056
- this.modelClass = DocumentFolder;
12057
- }
12058
- /**
12059
- * Add new document to the folder
12060
- * @param file to be uploaded to the folder
12061
- * @param folder for document
12062
- */
12063
- addDocument(file, folder) {
12064
- // create formData object with provided file
12065
- const formDataDocument = new FormData();
12066
- formDataDocument.append('file', file);
12067
- return this.http.post(`${this.environment.apiV2}/folders/${folder.id}/documents`, formDataDocument).pipe(map((response) => {
12068
- const updatedFolder = Object.assign(plainToClass(DocumentFolder, {}), folder);
12069
- updatedFolder.documents.push(plainToClass(Document, response));
12070
- replace(this.cache, plainToClass(DocumentFolder, updatedFolder));
12071
- this.cacheSubject.next(this.cache);
12072
- }));
12073
- }
12074
- /**
12075
- * Edit folder document by moving it from one folder to another
12076
- * @param editedDocument
12077
- * @param selectedFolder to move the document to
12078
- * @param oldFolderId: id of old folder from which need to remove the document
12079
- */
12080
- updateDocument(editedDocument, selectedFolder, oldFolderId) {
12081
- return this.http.put(`${this.environment.apiV2}/folders/${selectedFolder.id}/documents/${editedDocument.id}`, editedDocument).pipe(map((response) => {
12082
- const oldFolder = this.cache.find((folder) => folder.id === oldFolderId);
12083
- // Remove document from old folder
12084
- oldFolder.documents = oldFolder.documents.filter((deletedDocument) => deletedDocument.id !== response.id);
12085
- // update old folder and replace it in cache
12086
- response.folder = plainToClass(DocumentFolder, { id: selectedFolder.id, name: selectedFolder.name });
12087
- replace(this.cache, plainToClass(DocumentFolder, oldFolder));
12088
- // update new document folder and replace it in cache
12089
- selectedFolder.documents.push(plainToClass(Document, response));
12090
- replace(this.cache, plainToClass(DocumentFolder, selectedFolder));
12091
- this.cacheSubject.next(this.cache);
12092
- }));
12093
- }
12094
- /**
12095
- * Delete document from folder
12096
- * @param document to remove
12097
- * @param folder from which document should be removed
12098
- */
12099
- deleteDocument(document, folder) {
12100
- return this.http.delete(`${this.environment.apiV2}/folders/${folder.id}/documents/${document.id}`).pipe(map(() => {
12101
- folder.documents = folder.documents
12102
- .filter((deletedDocument) => deletedDocument.id !== document.id);
12103
- replace(this.cache, plainToClass(DocumentFolder, folder));
12104
- this.cacheSubject.next(this.cache);
12105
- }));
12106
- }
12107
- }
12108
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12109
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
12110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, decorators: [{
12111
- type: Injectable,
12112
- args: [{
12113
- providedIn: 'root'
12114
- }]
12115
- }] });
12116
-
12117
- const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
12118
- class FacebookService {
12119
- /**
12120
- * @TODO when google login will be done, it needs to be moved to an abstract class
12121
- */
12122
- constructor(http, toastService, jwtService, router, environment) {
12123
- this.http = http;
12124
- this.toastService = toastService;
12125
- this.jwtService = jwtService;
12126
- this.router = router;
12127
- this.environment = environment;
12128
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12129
- this.isFacebookEnabled = !!environment['facebookAppId'];
12130
- }
12131
- login(redirectUrl = '/client') {
12132
- return __awaiter(this, void 0, void 0, function* () {
12133
- const accessToken = yield this.getAccessToken();
12134
- this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
12135
- .subscribe((response) => {
12136
- this.setAuth(response);
12137
- this.router.navigate([redirectUrl]);
12138
- }, (error) => {
12139
- this.toastService.error(error.error.violations[0].message);
12140
- this.logout();
12141
- });
12142
- });
12143
- }
12144
- /**
12145
- * save user's auth tokens
12146
- * @TODO move to abstract class
12147
- */
12148
- setAuth(response) {
12149
- this.jwtService.saveTokens(response);
12150
- this.isLoggedInSubject.next(true);
12151
- }
12152
- /**
12153
- * get facebook auth access token
12154
- */
12155
- getAccessToken() {
12156
- return new Promise((resolve) => {
12157
- FB.login((response) => {
12158
- // authResponse will be empty if you close the Facebook login window or enter incorrect user data
12159
- if (!response.authResponse) {
12160
- return;
12161
- }
12162
- if (!response.authResponse.grantedScopes.includes('email')) {
12163
- this.toastService.error(ERROR_EMAIL_PERMISSION);
12164
- return;
12165
- }
12166
- resolve(response.authResponse.accessToken);
12167
- }, FacebookService.authOptions);
12168
- });
12169
- }
12170
- /**
12171
- * logout user from facebook.
12172
- * Need to logout when user is trying to login with facebook with manually registered email
12173
- */
12174
- logout() {
12175
- return new Promise((resolve, reject) => {
12176
- FB.logout((response) => {
12177
- resolve(response);
12178
- });
12179
- });
12180
- }
12181
- }
12182
- FacebookService.authOptions = {
12183
- scope: 'email, public_profile',
12184
- auth_type: 'rerequest',
12185
- return_scopes: true
12186
- };
12187
- 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 });
12188
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, providedIn: 'root' });
12189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, decorators: [{
12190
- type: Injectable,
12191
- args: [{
12192
- providedIn: 'root'
12193
- }]
12194
- }], ctorParameters: function () {
12195
- return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
12196
- type: Inject,
12197
- args: ['environment']
12198
- }] }];
12199
- } });
12200
-
12201
- /**
12202
- * Google instance
12203
- * https://developers.google.com/identity/oauth2/web/guides/overview
12204
- * https://developers.google.com/identity/gsi/web/guides/overview
12205
- */
12206
- class GoogleService {
12207
- constructor(http, toastService, jwtService, router, environment) {
12208
- this.http = http;
12209
- this.toastService = toastService;
12210
- this.jwtService = jwtService;
12211
- this.router = router;
12212
- this.environment = environment;
12213
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12214
- this.isGoogleEnabled = !!this.environment['googleClientId'];
12215
- // depending on the level of access
12216
- this.googleScope = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
12217
- }
12218
- /**
12219
- * prompt for user consent and obtain an access token to work with user data
12220
- * requestAccessToken() method to trigger the token UX flow and obtain an access token.
12221
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
12222
- */
12223
- // prompt for user consent and obtain an access token to work with user data
12224
- login() {
12225
- return google.accounts.oauth2.initTokenClient({
12226
- client_id: this.environment['googleClientId'],
12227
- scope: this.googleScope,
12228
- callback: (response) => {
12229
- this.setAuth(response.access_token);
12230
- },
12231
- }).requestAccessToken();
12008
+ this.setCache(undefined);
12009
+ this.get();
12010
+ }
12011
+ setCache(data, next = false) {
12012
+ this.cache = data;
12013
+ if (next) {
12014
+ this.updateCache();
12015
+ }
12232
12016
  }
12233
12017
  /**
12234
- * requestAccessToken() method to trigger the token UX flow and obtain an access token:
12235
- * Choose their account;
12236
- * sign-in to the Google Account if not already signed-in;
12237
- * grant consent for your web app to access each requested scope.
12018
+ * Update cache subject with current cache array value
12238
12019
  */
12239
- setAuth(accessToken, redirectUrl = '/client') {
12240
- this.http.post(`${this.environment.apiV2}/users/authentication/google`, { accessToken })
12241
- .subscribe((response) => {
12242
- this.jwtService.saveTokens(response);
12243
- this.isLoggedInSubject.next(true);
12244
- this.router.navigate([redirectUrl]);
12245
- }, (error) => {
12246
- this.toastService.error(error.error.violations[0].message);
12247
- this.logout();
12248
- });
12020
+ updateCache() {
12021
+ this.cacheSubject.next(this.cache.slice());
12249
12022
  }
12250
12023
  /**
12251
- * When the user signs out of your website, you need to call the method
12252
- * google.accounts.id.disableAutoSelect to record the status in cookies.
12253
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
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
12254
12027
  */
12255
- logout() {
12256
- google.accounts.id.disableAutoSelect();
12028
+ createModelInstance(model) {
12029
+ return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
12257
12030
  }
12031
+ /**
12032
+ * Method that call all listeners. Empty by default. Should be redefined by child services if required
12033
+ */
12034
+ listenEvents() { }
12258
12035
  }
12259
- 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 });
12260
- GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, providedIn: 'root' });
12261
- 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: [{
12262
12039
  type: Injectable,
12263
12040
  args: [{
12264
12041
  providedIn: 'root'
12265
12042
  }]
12266
12043
  }], ctorParameters: function () {
12267
- return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
12044
+ return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12268
12045
  type: Inject,
12269
12046
  args: ['environment']
12270
- }] }];
12047
+ }] }, { type: ToastService }];
12271
12048
  } });
12272
12049
 
12273
- class FileService extends RestService$1 {
12274
- constructor() {
12275
- super(...arguments);
12276
- this.endpointUri = 'files';
12277
- this.modelClass = AppFile;
12278
- this.collectionClass = Collection;
12279
- this.isApiPlatform = true;
12280
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
12281
- }
12282
- upload(file) {
12283
- const formData = new FormData();
12284
- formData.append('file', file);
12285
- return this.http.post(this.apiUrl, formData)
12286
- .pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
12287
- }
12288
- download(file) {
12289
- return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
12290
- }
12291
- }
12292
- FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12293
- FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, providedIn: 'root' });
12294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, decorators: [{
12295
- type: Injectable,
12296
- args: [{
12297
- providedIn: 'root'
12298
- }]
12299
- }] });
12300
-
12301
- class ClientIncomeTypesService extends RestService$1 {
12302
- constructor() {
12303
- super(...arguments);
12304
- this.modelClass = ClientIncomeTypes;
12305
- this.collectionClass = Collection;
12306
- this.endpointUri = 'client-income-types';
12307
- this.isApiPlatform = true;
12308
- this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
12309
- }
12310
- }
12311
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12312
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
12313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
12314
- type: Injectable,
12315
- args: [{
12316
- providedIn: 'root'
12317
- }]
12318
- }] });
12319
-
12320
12050
  class ClientInviteService extends RestService {
12321
12051
  constructor() {
12322
12052
  super(...arguments);
@@ -12427,9 +12157,9 @@ class ClientInviteService extends RestService {
12427
12157
  });
12428
12158
  }
12429
12159
  }
12430
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12431
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12432
- 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: [{
12433
12163
  type: Injectable,
12434
12164
  args: [{
12435
12165
  providedIn: 'root'
@@ -12516,9 +12246,9 @@ class ClientMovementService extends RestService {
12516
12246
  });
12517
12247
  }
12518
12248
  }
12519
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12520
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12521
- 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: [{
12522
12252
  type: Injectable,
12523
12253
  args: [{
12524
12254
  providedIn: 'root'
@@ -12569,9 +12299,9 @@ class EmployeeService extends RestService {
12569
12299
  }));
12570
12300
  }
12571
12301
  }
12572
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12573
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12574
- 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: [{
12575
12305
  type: Injectable,
12576
12306
  args: [{
12577
12307
  providedIn: 'root'
@@ -12633,9 +12363,9 @@ class EmployeeInviteService extends RestService {
12633
12363
  }));
12634
12364
  }
12635
12365
  }
12636
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12637
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12638
- 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: [{
12639
12369
  type: Injectable,
12640
12370
  args: [{
12641
12371
  providedIn: 'root'
@@ -12660,9 +12390,9 @@ class ClientPortfolioReportService {
12660
12390
  }));
12661
12391
  }
12662
12392
  }
12663
- 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 });
12664
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12665
- 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: [{
12666
12396
  type: Injectable,
12667
12397
  args: [{
12668
12398
  providedIn: 'root'
@@ -12674,6 +12404,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
12674
12404
  }] }];
12675
12405
  } });
12676
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
+
12677
12413
  // @TODO Alex: think about extend base rest service
12678
12414
  class FirmService {
12679
12415
  constructor(http, environment) {
@@ -12717,18 +12453,10 @@ class FirmService {
12717
12453
  getByType(type) {
12718
12454
  return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
12719
12455
  }
12720
- updatePhoto(firm, photo) {
12721
- return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
12722
- .pipe(map((firmPhoto) => {
12723
- this.firm = plainToClass(Firm, Object.assign(firm, { photo: firmPhoto }));
12724
- this.firmSubject.next(this.firm);
12725
- return firm;
12726
- }));
12727
- }
12728
12456
  }
12729
- 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 });
12730
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, providedIn: 'root' });
12731
- 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: [{
12732
12460
  type: Injectable,
12733
12461
  args: [{
12734
12462
  providedIn: 'root'
@@ -12804,9 +12532,9 @@ class IncomeSourceForecastService extends RestService {
12804
12532
  }).flat();
12805
12533
  }
12806
12534
  }
12807
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12808
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12809
- 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: [{
12810
12538
  type: Injectable,
12811
12539
  args: [{
12812
12540
  providedIn: 'root'
@@ -12876,9 +12604,9 @@ class SalaryForecastService extends RestService {
12876
12604
  }).flat();
12877
12605
  }
12878
12606
  }
12879
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12880
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12881
- 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: [{
12882
12610
  type: Injectable,
12883
12611
  args: [{
12884
12612
  providedIn: 'root'
@@ -12954,9 +12682,9 @@ class SoleForecastService extends RestService {
12954
12682
  });
12955
12683
  }
12956
12684
  }
12957
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12958
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12959
- 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: [{
12960
12688
  type: Injectable,
12961
12689
  args: [{
12962
12690
  providedIn: 'root'
@@ -13035,9 +12763,9 @@ class IncomeSourceService extends RestService {
13035
12763
  });
13036
12764
  }
13037
12765
  }
13038
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13039
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
13040
- 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: [{
13041
12769
  type: Injectable,
13042
12770
  args: [{
13043
12771
  providedIn: 'root'
@@ -13098,9 +12826,9 @@ class BorrowingExpenseService {
13098
12826
  }));
13099
12827
  }
13100
12828
  }
13101
- 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 });
13102
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
13103
- 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: [{
13104
12832
  type: Injectable,
13105
12833
  args: [{
13106
12834
  providedIn: 'root'
@@ -13182,9 +12910,9 @@ class LoanService extends RestService$1 {
13182
12910
  }));
13183
12911
  }
13184
12912
  }
13185
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13186
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, providedIn: 'root' });
13187
- 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: [{
13188
12916
  type: Injectable,
13189
12917
  args: [{
13190
12918
  providedIn: 'root'
@@ -13201,9 +12929,9 @@ class BorrowingReportService extends RestService$1 {
13201
12929
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13202
12930
  }
13203
12931
  }
13204
- BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13205
- BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
13206
- 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: [{
13207
12935
  type: Injectable,
13208
12936
  args: [{
13209
12937
  providedIn: 'root'
@@ -13229,9 +12957,9 @@ class PropertyCategoryService extends RestService$1 {
13229
12957
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13230
12958
  }
13231
12959
  }
13232
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13233
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
13234
- 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: [{
13235
12963
  type: Injectable,
13236
12964
  args: [{
13237
12965
  providedIn: 'root'
@@ -13247,15 +12975,23 @@ class PropertyCategoryMovementService extends RestService$1 {
13247
12975
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13248
12976
  }
13249
12977
  }
13250
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13251
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
13252
- 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: [{
13253
12981
  type: Injectable,
13254
12982
  args: [{
13255
12983
  providedIn: 'root'
13256
12984
  }]
13257
12985
  }] });
13258
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
+
13259
12995
  /**
13260
12996
  * Class for work with Property Documents
13261
12997
  */
@@ -13264,8 +13000,9 @@ class PropertyDocumentService extends RestService$1 {
13264
13000
  super(...arguments);
13265
13001
  this.modelClass = PropertyDocument;
13266
13002
  this.collectionClass = Collection;
13267
- this.endpointUri = 'properties/documents';
13268
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch'];
13003
+ this.endpointUri = 'property-documents';
13004
+ this.disabledMethods = ['postBatch', 'putBatch'];
13005
+ this.isApiPlatform = true;
13269
13006
  }
13270
13007
  /**
13271
13008
  * Add new Property Document
@@ -13291,9 +13028,9 @@ class PropertyDocumentService extends RestService$1 {
13291
13028
  });
13292
13029
  }
13293
13030
  }
13294
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13295
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13296
- 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: [{
13297
13034
  type: Injectable,
13298
13035
  args: [{
13299
13036
  providedIn: 'root'
@@ -13367,9 +13104,9 @@ class TaxExemptionService extends DataService {
13367
13104
  this.setCache(TaxExemptions);
13368
13105
  }
13369
13106
  }
13370
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13371
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13372
- 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: [{
13373
13110
  type: Injectable,
13374
13111
  args: [{
13375
13112
  providedIn: 'root'
@@ -13385,9 +13122,9 @@ class PropertySaleService extends RestService$1 {
13385
13122
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13386
13123
  }
13387
13124
  }
13388
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13389
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13390
- 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: [{
13391
13128
  type: Injectable,
13392
13129
  args: [{
13393
13130
  providedIn: 'root'
@@ -13433,15 +13170,59 @@ class PropertyShareService extends RestService$1 {
13433
13170
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13434
13171
  }
13435
13172
  }
13436
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13437
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13438
- 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: [{
13439
13208
  type: Injectable,
13440
13209
  args: [{
13441
13210
  providedIn: 'root'
13442
13211
  }]
13443
13212
  }] });
13444
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
+
13445
13226
  /**
13446
13227
  * @Todo Alex remove functionality related to PropertyShare
13447
13228
  * @TODO Alex (TT-1777): replace all event listeners with the new this.listen()
@@ -13473,6 +13254,7 @@ class PropertyService extends RestService$1 {
13473
13254
  // @TODO Alex: consider to refactor property movements logic similar to client-movements
13474
13255
  this.listenMovementsChanges();
13475
13256
  this.listenSalesChanges();
13257
+ this.listenValuations();
13476
13258
  }
13477
13259
  /**
13478
13260
  * Update cache when share invitation accepted
@@ -13492,6 +13274,9 @@ class PropertyService extends RestService$1 {
13492
13274
  listenSalesChanges() {
13493
13275
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13494
13276
  }
13277
+ listenValuations() {
13278
+ this.listenCSE(PropertyValuation, ['post', 'put'], this.refreshCache);
13279
+ }
13495
13280
  updateDepreciationCalculation(property) {
13496
13281
  const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
13497
13282
  return this.put(propertyToUpdate)
@@ -13532,9 +13317,9 @@ class PropertyService extends RestService$1 {
13532
13317
  }));
13533
13318
  }
13534
13319
  }
13535
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13536
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, providedIn: 'root' });
13537
- 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: [{
13538
13323
  type: Injectable,
13539
13324
  args: [{
13540
13325
  providedIn: 'root'
@@ -13588,9 +13373,9 @@ class ServiceNotificationService extends RestService {
13588
13373
  });
13589
13374
  }
13590
13375
  }
13591
- 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 });
13592
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13593
- 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: [{
13594
13379
  type: Injectable,
13595
13380
  args: [{
13596
13381
  providedIn: 'root'
@@ -13602,12 +13387,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
13602
13387
  }] }, { type: ToastService }, { type: SseService }];
13603
13388
  } });
13604
13389
 
13605
- var MessagesEnum$3;
13606
- (function (MessagesEnum) {
13607
- MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13608
- MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
13609
- MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
13610
- })(MessagesEnum$3 || (MessagesEnum$3 = {}));
13390
+ var SoleBusinessMessagesEnum;
13391
+ (function (SoleBusinessMessagesEnum) {
13392
+ SoleBusinessMessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13393
+ })(SoleBusinessMessagesEnum || (SoleBusinessMessagesEnum = {}));
13611
13394
 
13612
13395
  class SoleBusinessService extends RestService {
13613
13396
  constructor() {
@@ -13622,28 +13405,10 @@ class SoleBusinessService extends RestService {
13622
13405
  return business;
13623
13406
  }));
13624
13407
  }
13625
- uploadLogo(business, file) {
13626
- const formData = new FormData();
13627
- formData.append('file', file);
13628
- return this.http.post(`${this.environment.apiV2}/${this.url}/${business.id}/logo`, formData)
13629
- .pipe(map((updatedBusiness) => {
13630
- const tempCache = cloneDeep$1(this.cache);
13631
- replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
13632
- this.cache = tempCache;
13633
- this.cacheSubject.next(this.cache);
13634
- this.toastService.success(MessagesEnum$3.LOGO_UPDATED);
13635
- }), catchError((error) => {
13636
- // Show error when user provided wrong image (format or size)
13637
- if (error.status === 422) {
13638
- this.toastService.error(error.error.violations[0].message);
13639
- }
13640
- return throwError(error);
13641
- }));
13642
- }
13643
13408
  }
13644
- SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13645
- SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13646
- 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: [{
13647
13412
  type: Injectable,
13648
13413
  args: [{
13649
13414
  providedIn: 'root'
@@ -13658,9 +13423,9 @@ class SoleBusinessActivityService extends RestService {
13658
13423
  this.isHydra = true;
13659
13424
  }
13660
13425
  }
13661
- SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13662
- SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13663
- 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: [{
13664
13429
  type: Injectable,
13665
13430
  args: [{
13666
13431
  providedIn: 'root'
@@ -13686,9 +13451,9 @@ class SoleBusinessLossService extends RestService {
13686
13451
  });
13687
13452
  }
13688
13453
  }
13689
- SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13690
- SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13691
- 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: [{
13692
13457
  type: Injectable,
13693
13458
  args: [{
13694
13459
  providedIn: 'root'
@@ -13706,9 +13471,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
13706
13471
  this.isHydra = true;
13707
13472
  }
13708
13473
  }
13709
- SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13710
- SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13711
- 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: [{
13712
13477
  type: Injectable,
13713
13478
  args: [{
13714
13479
  providedIn: 'root'
@@ -13723,9 +13488,9 @@ class SoleContactService extends RestService {
13723
13488
  this.isHydra = true;
13724
13489
  }
13725
13490
  }
13726
- SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13727
- SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13728
- 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: [{
13729
13494
  type: Injectable,
13730
13495
  args: [{
13731
13496
  providedIn: 'root'
@@ -13781,9 +13546,9 @@ class SoleDepreciationMethodService {
13781
13546
  });
13782
13547
  }
13783
13548
  }
13784
- 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 });
13785
- SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13786
- 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: [{
13787
13552
  type: Injectable,
13788
13553
  args: [{
13789
13554
  providedIn: 'root'
@@ -13838,9 +13603,9 @@ class SoleDetailsService {
13838
13603
  }));
13839
13604
  }
13840
13605
  }
13841
- 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 });
13842
- SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13843
- 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: [{
13844
13609
  type: Injectable,
13845
13610
  args: [{
13846
13611
  providedIn: 'root'
@@ -13917,9 +13682,9 @@ class SoleInvoiceService extends RestService {
13917
13682
  });
13918
13683
  }
13919
13684
  }
13920
- SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13921
- SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13922
- 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: [{
13923
13688
  type: Injectable,
13924
13689
  args: [{
13925
13690
  providedIn: 'root'
@@ -13934,9 +13699,9 @@ class SoleInvoiceTemplateService extends RestService {
13934
13699
  this.isHydra = true;
13935
13700
  }
13936
13701
  }
13937
- SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13938
- SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13939
- 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: [{
13940
13705
  type: Injectable,
13941
13706
  args: [{
13942
13707
  providedIn: 'root'
@@ -13951,9 +13716,9 @@ class BasReportService extends RestService {
13951
13716
  this.isHydra = true;
13952
13717
  }
13953
13718
  }
13954
- BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13955
- BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, providedIn: 'root' });
13956
- 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: [{
13957
13722
  type: Injectable,
13958
13723
  args: [{
13959
13724
  providedIn: 'root'
@@ -13979,9 +13744,9 @@ class ServicePaymentService extends RestService$1 {
13979
13744
  return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
13980
13745
  }
13981
13746
  }
13982
- ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13983
- ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13984
- 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: [{
13985
13750
  type: Injectable,
13986
13751
  args: [{
13987
13752
  providedIn: 'root'
@@ -14029,9 +13794,9 @@ class ServicePaymentMethodService extends RestService$1 {
14029
13794
  });
14030
13795
  }
14031
13796
  }
14032
- 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 });
14033
- ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
14034
- 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: [{
14035
13800
  type: Injectable,
14036
13801
  args: [{
14037
13802
  providedIn: 'root'
@@ -14056,9 +13821,9 @@ class ServicePriceService extends RestService$1 {
14056
13821
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
14057
13822
  }
14058
13823
  }
14059
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14060
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
14061
- 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: [{
14062
13827
  type: Injectable,
14063
13828
  args: [{
14064
13829
  providedIn: 'root'
@@ -14175,9 +13940,9 @@ class SubscriptionService extends RestService$1 {
14175
13940
  });
14176
13941
  }
14177
13942
  }
14178
- 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 });
14179
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
14180
- 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: [{
14181
13946
  type: Injectable,
14182
13947
  args: [{
14183
13948
  providedIn: 'root'
@@ -14199,9 +13964,9 @@ class ServiceProductService extends RestService$1 {
14199
13964
  this.isApiPlatform = true;
14200
13965
  }
14201
13966
  }
14202
- ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14203
- ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
14204
- 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: [{
14205
13970
  type: Injectable,
14206
13971
  args: [{
14207
13972
  providedIn: 'root'
@@ -14327,9 +14092,9 @@ class TaxReviewHistoryService extends RestService {
14327
14092
  });
14328
14093
  }
14329
14094
  }
14330
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14331
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14332
- 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: [{
14333
14098
  type: Injectable,
14334
14099
  args: [{
14335
14100
  providedIn: 'root'
@@ -14418,9 +14183,9 @@ class TaxReviewService extends RestService {
14418
14183
  });
14419
14184
  }
14420
14185
  }
14421
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14422
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14423
- 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: [{
14424
14189
  type: Injectable,
14425
14190
  args: [{
14426
14191
  providedIn: 'root'
@@ -14694,9 +14459,9 @@ class TaxSummaryService {
14694
14459
  });
14695
14460
  }
14696
14461
  }
14697
- 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 });
14698
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14699
- 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: [{
14700
14465
  type: Injectable,
14701
14466
  args: [{
14702
14467
  providedIn: 'root'
@@ -14717,9 +14482,9 @@ class AllocationRuleService extends RestService$1 {
14717
14482
  this.isApiPlatform = true;
14718
14483
  }
14719
14484
  }
14720
- AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14721
- AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14722
- 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: [{
14723
14488
  type: Injectable,
14724
14489
  args: [{
14725
14490
  providedIn: 'root'
@@ -14809,59 +14574,25 @@ class TransactionAllocationService extends RestService {
14809
14574
  });
14810
14575
  }
14811
14576
  }
14812
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14813
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14814
- 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: [{
14815
14580
  type: Injectable,
14816
14581
  args: [{
14817
14582
  providedIn: 'root'
14818
14583
  }]
14819
14584
  }] });
14820
14585
 
14821
- /**
14822
- * @Todo TT-2191 refactor service when receipts API will be updated
14823
- */
14824
- class TransactionReceiptService extends ReceiptService {
14825
- constructor(http, eventDispatcherService, environment, toastService) {
14826
- super(http, eventDispatcherService, environment, toastService);
14827
- this.http = http;
14828
- this.eventDispatcherService = eventDispatcherService;
14829
- this.environment = environment;
14830
- this.toastService = toastService;
14831
- this.modelClass = TransactionReceipt;
14832
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
14833
- this.receiptCreatedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED;
14834
- this.receiptDeletedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED;
14835
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT;
14836
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT;
14837
- this.listenEvents();
14838
- }
14839
- }
14840
- 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 });
14841
- TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
14842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, decorators: [{
14843
- type: Injectable,
14844
- args: [{
14845
- providedIn: 'root'
14846
- }]
14847
- }], ctorParameters: function () {
14848
- return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
14849
- type: Inject,
14850
- args: ['environment']
14851
- }] }, { type: ToastService }];
14852
- } });
14853
-
14854
14586
  /**
14855
14587
  * Service for transactions business logic
14856
14588
  */
14857
14589
  class TransactionService extends RestService {
14858
- constructor(http, eventDispatcherService, environment, toastService, transactionReceiptService) {
14590
+ constructor(http, eventDispatcherService, environment, toastService) {
14859
14591
  super(http, eventDispatcherService, environment, toastService);
14860
14592
  this.http = http;
14861
14593
  this.eventDispatcherService = eventDispatcherService;
14862
14594
  this.environment = environment;
14863
14595
  this.toastService = toastService;
14864
- this.transactionReceiptService = transactionReceiptService;
14865
14596
  // url part for Transaction API
14866
14597
  this.url = 'transactions';
14867
14598
  this.modelClass = Transaction;
@@ -14873,8 +14604,6 @@ class TransactionService extends RestService {
14873
14604
  listenEvents() {
14874
14605
  this.listenDepreciationChange();
14875
14606
  this.listenPropertyShareUpdate();
14876
- this.listenReceiptAdded();
14877
- this.listenReceiptDeleted();
14878
14607
  this.listenVehicleClaimChanges();
14879
14608
  this.listenPropertyForecastUpdate();
14880
14609
  this.listenInvoicesPublish();
@@ -14949,13 +14678,6 @@ class TransactionService extends RestService {
14949
14678
  .pipe(map((response) => {
14950
14679
  const addedTransactions = response.map((item) => this.createModelInstance(item));
14951
14680
  transactions.forEach((transaction, index) => {
14952
- // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
14953
- // check if passed receipt and upload file
14954
- if (transaction.file) {
14955
- transaction.id = response[index].id;
14956
- addedTransactions[index].file = transaction.file;
14957
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, addedTransactions[index]));
14958
- }
14959
14681
  // @TODO Viktor: implement API for saving of nested transactions
14960
14682
  // add child transactions if exist
14961
14683
  if (transaction.transactions.length) {
@@ -14985,16 +14707,6 @@ class TransactionService extends RestService {
14985
14707
  return this.http.put(`${this.environment.apiV2}/${this.url}/${transaction.id}`, classToPlain(transaction))
14986
14708
  .pipe(map((response) => {
14987
14709
  const updatedTransaction = this.createModelInstance(response);
14988
- // @TODO need to upload file in the same backend endpoint with transaction add/update
14989
- // check if passed new receipt and upload file
14990
- if (transaction.file) {
14991
- updatedTransaction.file = transaction.file;
14992
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, updatedTransaction));
14993
- // receipt file was removed from form - we should delete receipt from transaction
14994
- }
14995
- else if (!transaction.file && transaction.receipt) {
14996
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT, updatedTransaction));
14997
- }
14998
14710
  // @TODO Viktor: implement API for saving of nested transactions
14999
14711
  if (transaction.transactions.length) {
15000
14712
  // add parent transaction to child transactions
@@ -15094,22 +14806,6 @@ class TransactionService extends RestService {
15094
14806
  listenPropertyShareUpdate() {
15095
14807
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
15096
14808
  }
15097
- listenReceiptAdded() {
15098
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
15099
- const transactionToUpdate = this.find(transactionReceipt.transaction.id);
15100
- // we don't need to keep file after save
15101
- transactionToUpdate.file = null;
15102
- transactionToUpdate.receipt = transactionReceipt;
15103
- this.replaceInCache(transactionToUpdate);
15104
- });
15105
- }
15106
- listenReceiptDeleted() {
15107
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED).subscribe((transaction) => {
15108
- const transactionToUpdate = this.find(transaction.id);
15109
- transactionToUpdate.receipt = null;
15110
- this.replaceInCache(transactionToUpdate);
15111
- });
15112
- }
15113
14809
  listenVehicleClaimChanges() {
15114
14810
  this.eventDispatcherService.on([
15115
14811
  AppEventTypeEnum.VEHICLE_CLAIM_CREATED,
@@ -15138,9 +14834,9 @@ class TransactionService extends RestService {
15138
14834
  });
15139
14835
  }
15140
14836
  }
15141
- 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 });
15142
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, providedIn: 'root' });
15143
- 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: [{
15144
14840
  type: Injectable,
15145
14841
  args: [{
15146
14842
  providedIn: 'root'
@@ -15149,7 +14845,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
15149
14845
  return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15150
14846
  type: Inject,
15151
14847
  args: ['environment']
15152
- }] }, { type: ToastService }, { type: TransactionReceiptService }];
14848
+ }] }, { type: ToastService }];
15153
14849
  } });
15154
14850
 
15155
14851
  // @TODO Artem: implement cache and extend rest?
@@ -15171,9 +14867,9 @@ class TutorialVideoService {
15171
14867
  }
15172
14868
  TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
15173
14869
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
15174
- 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 });
15175
- TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
15176
- 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: [{
15177
14873
  type: Injectable,
15178
14874
  args: [{
15179
14875
  providedIn: 'root'
@@ -15195,9 +14891,9 @@ class VehicleService extends RestService {
15195
14891
  this.modelClass = Vehicle;
15196
14892
  }
15197
14893
  }
15198
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15199
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, providedIn: 'root' });
15200
- 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: [{
15201
14897
  type: Injectable,
15202
14898
  args: [{
15203
14899
  providedIn: 'root'
@@ -15270,9 +14966,9 @@ class VehicleClaimService extends RestService {
15270
14966
  combineLatest(batch$).subscribe();
15271
14967
  }
15272
14968
  }
15273
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15274
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
15275
- 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: [{
15276
14972
  type: Injectable,
15277
14973
  args: [{
15278
14974
  providedIn: 'root'
@@ -15349,9 +15045,9 @@ class VehicleClaimDetailsService {
15349
15045
  this.update(vehicleClaimDetails).subscribe();
15350
15046
  }
15351
15047
  }
15352
- 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 });
15353
- VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15354
- 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: [{
15355
15051
  type: Injectable,
15356
15052
  args: [{
15357
15053
  providedIn: 'root'
@@ -15373,9 +15069,9 @@ class VehicleLogbookService extends RestService {
15373
15069
  this.modelClass = VehicleLogbook;
15374
15070
  }
15375
15071
  }
15376
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15377
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15378
- 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: [{
15379
15075
  type: Injectable,
15380
15076
  args: [{
15381
15077
  providedIn: 'root'
@@ -15392,9 +15088,9 @@ class AnnualClientDetailsService extends RestService$1 {
15392
15088
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15393
15089
  }
15394
15090
  }
15395
- AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15396
- AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15397
- 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: [{
15398
15094
  type: Injectable,
15399
15095
  args: [{
15400
15096
  providedIn: 'root'
@@ -15425,9 +15121,9 @@ class OccupationService {
15425
15121
  return this.occupationsSubject.asObservable();
15426
15122
  }
15427
15123
  }
15428
- 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 });
15429
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, providedIn: 'root' });
15430
- 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: [{
15431
15127
  type: Injectable,
15432
15128
  args: [{
15433
15129
  providedIn: 'root'
@@ -15504,9 +15200,9 @@ class UserEventSettingService extends RestService {
15504
15200
  }));
15505
15201
  }
15506
15202
  }
15507
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15508
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15509
- 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: [{
15510
15206
  type: Injectable,
15511
15207
  args: [{
15512
15208
  providedIn: 'root'
@@ -15521,15 +15217,22 @@ class UserEventTypeService extends RestService {
15521
15217
  this.isHydra = true;
15522
15218
  }
15523
15219
  }
15524
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15525
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15526
- 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: [{
15527
15223
  type: Injectable,
15528
15224
  args: [{
15529
15225
  providedIn: 'root'
15530
15226
  }]
15531
15227
  }] });
15532
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
+
15533
15236
  /**
15534
15237
  * Service to work with invitations for unregistered users
15535
15238
  */
@@ -15540,9 +15243,9 @@ class UsersInviteService extends RestService {
15540
15243
  this.url = 'users/invite';
15541
15244
  }
15542
15245
  }
15543
- UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15544
- UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15545
- 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: [{
15546
15249
  type: Injectable,
15547
15250
  args: [{
15548
15251
  providedIn: 'root'
@@ -15627,9 +15330,9 @@ class UserService extends RestService$1 {
15627
15330
  this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
15628
15331
  }
15629
15332
  }
15630
- 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 });
15631
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, providedIn: 'root' });
15632
- 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: [{
15633
15336
  type: Injectable,
15634
15337
  args: [{
15635
15338
  providedIn: 'root'
@@ -15653,9 +15356,9 @@ class FinancialYearService {
15653
15356
  }));
15654
15357
  }
15655
15358
  }
15656
- 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 });
15657
- FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15658
- 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: [{
15659
15362
  type: Injectable,
15660
15363
  args: [{
15661
15364
  providedIn: 'root'
@@ -15681,9 +15384,9 @@ class HoldingService extends RestService$1 {
15681
15384
  this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
15682
15385
  }
15683
15386
  }
15684
- HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15685
- HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, providedIn: 'root' });
15686
- 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: [{
15687
15390
  type: Injectable,
15688
15391
  args: [{
15689
15392
  providedIn: 'root'
@@ -15700,9 +15403,9 @@ class HoldingTypeService extends RestService$1 {
15700
15403
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15701
15404
  }
15702
15405
  }
15703
- HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15704
- HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15705
- 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: [{
15706
15409
  type: Injectable,
15707
15410
  args: [{
15708
15411
  providedIn: 'root'
@@ -15719,9 +15422,9 @@ class HoldingSaleService extends RestService$1 {
15719
15422
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15720
15423
  }
15721
15424
  }
15722
- HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15723
- HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15724
- 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: [{
15725
15428
  type: Injectable,
15726
15429
  args: [{
15727
15430
  providedIn: 'root'
@@ -15816,9 +15519,9 @@ class HoldingTypeExchangeService extends DataService {
15816
15519
  this.setCache(HoldingTypeExchanges);
15817
15520
  }
15818
15521
  }
15819
- HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15820
- HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15821
- 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: [{
15822
15525
  type: Injectable,
15823
15526
  args: [{
15824
15527
  providedIn: 'root'
@@ -15922,9 +15625,9 @@ class IncomeSourceTypeService extends DataService {
15922
15625
  this.setCache(IncomeSourceTypes);
15923
15626
  }
15924
15627
  }
15925
- IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15926
- IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15927
- 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: [{
15928
15631
  type: Injectable,
15929
15632
  args: [{
15930
15633
  providedIn: 'root'
@@ -15946,9 +15649,9 @@ class ChartAccountsValueService extends DataService {
15946
15649
  return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
15947
15650
  }
15948
15651
  }
15949
- ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15950
- ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15951
- 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: [{
15952
15655
  type: Injectable,
15953
15656
  args: [{
15954
15657
  providedIn: 'root'
@@ -18038,9 +17741,9 @@ class TaxReturnItemService extends DataService {
18038
17741
  this.setCache(TaxReturnItems);
18039
17742
  }
18040
17743
  }
18041
- TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18042
- TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
18043
- 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: [{
18044
17747
  type: Injectable,
18045
17748
  args: [{
18046
17749
  providedIn: 'root'
@@ -18270,9 +17973,9 @@ class AccountSetupService {
18270
17973
  return this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.getArray());
18271
17974
  }
18272
17975
  }
18273
- 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 });
18274
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
18275
- 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: [{
18276
17979
  type: Injectable,
18277
17980
  args: [{
18278
17981
  providedIn: 'root'
@@ -18298,9 +18001,9 @@ class RewardfulService {
18298
18001
  });
18299
18002
  }
18300
18003
  }
18301
- RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18302
- RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18303
- 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: [{
18304
18007
  type: Injectable,
18305
18008
  args: [{
18306
18009
  providedIn: 'root'
@@ -18338,9 +18041,9 @@ class UserSwitcherService {
18338
18041
  window.location.replace('/firm/dashboard');
18339
18042
  }
18340
18043
  }
18341
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18342
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18343
- 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: [{
18344
18047
  type: Injectable,
18345
18048
  args: [{
18346
18049
  providedIn: 'root'
@@ -18382,9 +18085,9 @@ class AssetsService {
18382
18085
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
18383
18086
  }
18384
18087
  }
18385
- 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 });
18386
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, providedIn: 'root' });
18387
- 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: [{
18388
18091
  type: Injectable,
18389
18092
  args: [{
18390
18093
  providedIn: 'root'
@@ -18445,9 +18148,9 @@ class BankTransactionCalculationService {
18445
18148
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
18446
18149
  }
18447
18150
  }
18448
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18449
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18450
- 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: [{
18451
18154
  type: Injectable,
18452
18155
  args: [{
18453
18156
  providedIn: 'root'
@@ -18476,9 +18179,9 @@ class BankAccountCalculationService {
18476
18179
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
18477
18180
  }
18478
18181
  }
18479
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18480
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18481
- 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: [{
18482
18185
  type: Injectable,
18483
18186
  args: [{
18484
18187
  providedIn: 'root'
@@ -18506,9 +18209,9 @@ class ExportFormatterService {
18506
18209
  }));
18507
18210
  }
18508
18211
  }
18509
- 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 });
18510
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18511
- 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: [{
18512
18215
  type: Injectable,
18513
18216
  args: [{
18514
18217
  providedIn: 'root'
@@ -18529,9 +18232,9 @@ class HeaderTitleService {
18529
18232
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
18530
18233
  }
18531
18234
  }
18532
- 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 });
18533
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18534
- 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: [{
18535
18238
  type: Injectable,
18536
18239
  args: [{
18537
18240
  providedIn: 'root'
@@ -18565,9 +18268,9 @@ class IntercomService {
18565
18268
  window.Intercom('boot', connectionCredentials);
18566
18269
  }
18567
18270
  }
18568
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18569
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, providedIn: 'root' });
18570
- 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: [{
18571
18274
  type: Injectable,
18572
18275
  args: [{
18573
18276
  providedIn: 'root'
@@ -18639,9 +18342,9 @@ class PdfFromDomElementService {
18639
18342
  .then((blob) => new File([blob], filename, { type: 'application/pdf' })));
18640
18343
  }
18641
18344
  }
18642
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18643
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18644
- 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: [{
18645
18348
  type: Injectable,
18646
18349
  args: [{
18647
18350
  providedIn: 'root'
@@ -18735,9 +18438,9 @@ class PdfFromTableService {
18735
18438
  .setTextColor(FILE_SETTINGS.text.colorPrimary);
18736
18439
  }
18737
18440
  }
18738
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18739
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18740
- 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: [{
18741
18444
  type: Injectable,
18742
18445
  args: [{
18743
18446
  providedIn: 'root'
@@ -18771,9 +18474,9 @@ class PdfFromDataTableService extends PdfFromTableService {
18771
18474
  return pdf;
18772
18475
  }
18773
18476
  }
18774
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18775
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18776
- 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: [{
18777
18480
  type: Injectable,
18778
18481
  args: [{
18779
18482
  providedIn: 'root'
@@ -18806,9 +18509,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
18806
18509
  return pdf;
18807
18510
  }
18808
18511
  }
18809
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18810
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18811
- 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: [{
18812
18515
  type: Injectable,
18813
18516
  args: [{
18814
18517
  providedIn: 'root'
@@ -18833,9 +18536,9 @@ class PreloaderService {
18833
18536
  this.activePreloaders.next(activePreloaders);
18834
18537
  }
18835
18538
  }
18836
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18837
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18838
- 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: [{
18839
18542
  type: Injectable,
18840
18543
  args: [{
18841
18544
  providedIn: 'root'
@@ -18862,9 +18565,9 @@ class EquityPositionChartService {
18862
18565
  }))));
18863
18566
  }
18864
18567
  }
18865
- 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 });
18866
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18867
- 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: [{
18868
18571
  type: Injectable,
18869
18572
  args: [{
18870
18573
  providedIn: 'root'
@@ -19039,9 +18742,9 @@ class PropertyCalculationService {
19039
18742
  }
19040
18743
  }
19041
18744
  }
19042
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19043
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
19044
- 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: [{
19045
18748
  type: Injectable,
19046
18749
  args: [{
19047
18750
  providedIn: 'root'
@@ -19094,9 +18797,9 @@ class PropertyTransactionReportService {
19094
18797
  .getWithoutBorrowingExpenses()));
19095
18798
  }
19096
18799
  }
19097
- 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 });
19098
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
19099
- 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: [{
19100
18803
  type: Injectable,
19101
18804
  args: [{
19102
18805
  providedIn: 'root'
@@ -19167,9 +18870,9 @@ class TransactionCalculationService {
19167
18870
  return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
19168
18871
  }
19169
18872
  }
19170
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19171
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
19172
- 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: [{
19173
18876
  type: Injectable,
19174
18877
  args: [{
19175
18878
  providedIn: 'root'
@@ -19229,9 +18932,9 @@ class LogbookBestPeriodService {
19229
18932
  });
19230
18933
  }
19231
18934
  }
19232
- 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 });
19233
- LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
19234
- 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: [{
19235
18938
  type: Injectable,
19236
18939
  args: [{
19237
18940
  providedIn: 'root'
@@ -19310,9 +19013,9 @@ class XlsxService {
19310
19013
  FileSaver.saveAs(data, `${fileName}.xlsx`);
19311
19014
  }
19312
19015
  }
19313
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19314
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, providedIn: 'root' });
19315
- 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: [{
19316
19019
  type: Injectable,
19317
19020
  args: [{
19318
19021
  providedIn: 'root'
@@ -19443,9 +19146,9 @@ class JwtInterceptor {
19443
19146
  });
19444
19147
  }
19445
19148
  }
19446
- 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 });
19447
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor });
19448
- 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: [{
19449
19152
  type: Injectable
19450
19153
  }], ctorParameters: function () {
19451
19154
  return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
@@ -19493,9 +19196,9 @@ class UserSwitcherInterceptor {
19493
19196
  return next.handle(this.switch(request, this.userSwitcherService.get()));
19494
19197
  }
19495
19198
  }
19496
- 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 });
19497
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor });
19498
- 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: [{
19499
19202
  type: Injectable
19500
19203
  }], ctorParameters: function () {
19501
19204
  return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
@@ -19581,8 +19284,6 @@ const ENDPOINTS = {
19581
19284
  DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
19582
19285
  DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
19583
19286
  DEPRECIATIONS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+'),
19584
- DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
19585
- DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
19586
19287
  DOWNLOAD_FILE_GET: new Endpoint('GET', '\\/files\\/\\d+\\/download'),
19587
19288
  EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
19588
19289
  EMPLOYEES_INVITES_GET: new Endpoint('GET', '\\/employees\\/\\invites'),
@@ -19593,17 +19294,20 @@ const ENDPOINTS = {
19593
19294
  EMPLOYEES_DEACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\deactivate'),
19594
19295
  EMPLOYEES_ACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\activate'),
19595
19296
  FACEBOOK_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/facebook'),
19297
+ FILE_POST: new Endpoint('POST', '\\/api\\/files'),
19596
19298
  FIRM_GET: new Endpoint('GET', '\\/firms'),
19597
19299
  FIRM_CURRENT_GET: new Endpoint('GET', '\\/firms\\/current'),
19598
19300
  FIRM_CURRENT_PUT: new Endpoint('PUT', '\\/firms\\/current\.\*'),
19599
19301
  FIRM_INVITE_POST: new Endpoint('POST', '\\/firms\\/invite'),
19600
19302
  FIRM_REGISTRATION_POST: new Endpoint('POST', '\\/firms\\/registration'),
19601
- FIRM_UPDATE_PHOTO_POST: new Endpoint('POST', '\\/firms\\/photo\.\*'),
19602
19303
  FOLDERS_GET: new Endpoint('GET', '\\/folders'),
19603
19304
  FOLDERS_POST: new Endpoint('POST', '\\/folders'),
19604
19305
  FOLDERS_PUT: new Endpoint('PUT', '\\/folders\\/\\d+'),
19605
- FOLDERS_DOCUMENTS_POST: new Endpoint('POST', '\\/folders\\/\\d+\\/documents'),
19606
- 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+'),
19607
19311
  GOOGLE_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/google'),
19608
19312
  INCOME_SOURCES_GET: new Endpoint('GET', '\\/income-sources'),
19609
19313
  INCOME_SOURCES_POST: new Endpoint('POST', '\\/income-sources'),
@@ -19731,8 +19435,6 @@ const ENDPOINTS = {
19731
19435
  TRANSACTIONS_ALLOCATIONS_GET: new Endpoint('GET', '\\/transactions-allocations'),
19732
19436
  TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/transactions-allocations'),
19733
19437
  TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/transactions-allocations\\/\\d+'),
19734
- TRANSACTION_RECEIPTS_POST: new Endpoint('POST', '\\/transactions\\/\\d+\\/receipts'),
19735
- TRANSACTION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/transactions\\/\\d+\\/receipts\\/\\d+'),
19736
19438
  USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
19737
19439
  USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
19738
19440
  USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
@@ -19784,9 +19486,9 @@ class PreloaderInterceptor {
19784
19486
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
19785
19487
  }
19786
19488
  }
19787
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19788
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor });
19789
- 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: [{
19790
19492
  type: Injectable
19791
19493
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
19792
19494
 
@@ -19812,9 +19514,9 @@ class BasiqTokenInterceptor {
19812
19514
  });
19813
19515
  }
19814
19516
  }
19815
- BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19816
- BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor });
19817
- 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: [{
19818
19520
  type: Injectable
19819
19521
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
19820
19522
 
@@ -19838,17 +19540,17 @@ class BasiqClientIdInterceptor {
19838
19540
  });
19839
19541
  }
19840
19542
  }
19841
- BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19842
- BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor });
19843
- 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: [{
19844
19546
  type: Injectable
19845
19547
  }], ctorParameters: function () { return [{ type: UserService }]; } });
19846
19548
 
19847
19549
  class InterceptorsModule {
19848
19550
  }
19849
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19850
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule });
19851
- 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: [
19852
19554
  {
19853
19555
  provide: HTTP_INTERCEPTORS,
19854
19556
  useClass: CorelogicInterceptor,
@@ -19886,7 +19588,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
19886
19588
  multi: true
19887
19589
  }
19888
19590
  ] });
19889
- 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: [{
19890
19592
  type: NgModule,
19891
19593
  args: [{
19892
19594
  providers: [
@@ -19944,12 +19646,12 @@ class TtCoreModule {
19944
19646
  };
19945
19647
  }
19946
19648
  }
19947
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19948
- 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,
19949
19651
  InterceptorsModule] });
19950
- 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,
19951
19653
  InterceptorsModule] });
19952
- 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: [{
19953
19655
  type: NgModule,
19954
19656
  args: [{
19955
19657
  declarations: [],
@@ -20343,7 +20045,7 @@ function createDate(date) {
20343
20045
  * @param document
20344
20046
  */
20345
20047
  function getDocIcon(document) {
20346
- switch (document.mimeType) {
20048
+ switch (document.file.mimeType) {
20347
20049
  case 'image/gif':
20348
20050
  case 'image/jpeg':
20349
20051
  case 'image/png':
@@ -20740,6 +20442,35 @@ class BudgetForm extends AbstractForm {
20740
20442
  }
20741
20443
  }
20742
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
+
20743
20474
  /**
20744
20475
  * Form with loan details.
20745
20476
  * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
@@ -20821,6 +20552,21 @@ class LoanForm extends AbstractForm {
20821
20552
  }
20822
20553
  LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LINE_OF_CREDIT, LoanTypeEnum.HOME_LOAN];
20823
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
+
20824
20570
  /**
20825
20571
  * Check if at least one form field is true, otherwise form is invalid.
20826
20572
  * Use with groups of boolean form controls (checkbox, toggle, etc.)
@@ -21069,6 +20815,7 @@ class SoleBusinessForm extends AbstractForm {
21069
20815
  activity: new UntypedFormControl(business.activity, Validators.required),
21070
20816
  description: new UntypedFormControl(business.description),
21071
20817
  website: new UntypedFormControl(business.website),
20818
+ file: new UntypedFormControl(business.file),
21072
20819
  isPrimaryProduction: new FormControl(business.isPrimaryProduction),
21073
20820
  }, business);
21074
20821
  this.business = business;
@@ -21808,6 +21555,78 @@ class UserInviteForm extends AbstractForm {
21808
21555
  }
21809
21556
  }
21810
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
+
21811
21630
  /**
21812
21631
  * @Todo TT-2143 remove Property stuff and use this form just for PropertySale
21813
21632
  * @Todo TT-2143 create and extend from abstract PropertySale form
@@ -21989,28 +21808,46 @@ class PropertySaleExemptionsForm extends AbstractForm {
21989
21808
  }
21990
21809
  }
21991
21810
 
21992
- /**
21993
- * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4717608961/Borrowing+Power+Report+-+Property+Tank
21994
- */
21995
- class BorrowingReportForm extends AbstractForm {
21996
- constructor(report) {
21811
+ class PropertyEditForm extends AbstractForm {
21812
+ constructor(property) {
21997
21813
  super({
21998
- netRentIncome: new FormControl(report.netRentIncome, Validators.required),
21999
- loanRepaymentAmount: new FormControl(report.loanRepaymentAmount, Validators.required),
22000
- netSalary: new FormControl(report.netSalary),
22001
- spouseNetSalary: new FormControl(report.spouseNetSalary),
22002
- otherLiabilities: new FormControl(report.otherLiabilities, Validators.required),
22003
- livingExpenses: new FormControl(report.livingExpenses, Validators.required),
22004
- }, 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);
22005
21823
  }
22006
- /**
22007
- * some fields are auto-calculated, shouldn't be updated until changedby user
22008
- */
22009
- submit(data = {}, includeDisabledFields = false) {
22010
- return super.submit({
22011
- netSalary: this.fieldChanged('netSalary') ? this.get('netSalary').value : null,
22012
- spouseNetSalary: this.fieldChanged('spouseNetSalary') ? this.get('spouseNetSalary').value : null,
22013
- }, 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 });
22014
21851
  }
22015
21852
  }
22016
21853
 
@@ -22716,18 +22553,6 @@ class VehicleLogbookForm extends AbstractForm {
22716
22553
  }
22717
22554
  VehicleLogbookForm.maxDescriptionLength = 60;
22718
22555
 
22719
- /**
22720
- * general validation rules
22721
- */
22722
- var FormValidationsEnum;
22723
- (function (FormValidationsEnum) {
22724
- FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
22725
- FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
22726
- FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
22727
- // @TODO move to file uploader component
22728
- FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
22729
- })(FormValidationsEnum || (FormValidationsEnum = {}));
22730
-
22731
22556
  class AllocationRuleConditionForm extends AbstractForm {
22732
22557
  constructor(condition = plainToClass(AllocationRuleCondition, {})) {
22733
22558
  super({
@@ -23019,10 +22844,7 @@ class TransactionBaseForm extends AbstractForm {
23019
22844
  gstAmount: new UntypedFormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
23020
22845
  date: new UntypedFormControl(transaction.date, [Validators.required]),
23021
22846
  description: new UntypedFormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
23022
- // @TODO Alex: refactor (TT-1996)
23023
- file: new UntypedFormControl(transaction['receipt'], [
23024
- FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
23025
- ]),
22847
+ file: new UntypedFormControl(transaction.file),
23026
22848
  property: new UntypedFormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
23027
22849
  }, controls), transaction);
23028
22850
  this.registeredForGst = registeredForGst;
@@ -23576,13 +23398,10 @@ var MessagesEnum;
23576
23398
  })(MessagesEnum || (MessagesEnum = {}));
23577
23399
 
23578
23400
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
23579
- /**
23580
- * Public API Surface of tt-core
23581
- */
23582
23401
 
23583
23402
  /**
23584
23403
  * Generated bundle index. Do not edit.
23585
23404
  */
23586
23405
 
23587
- 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 };
23588
23407
  //# sourceMappingURL=taxtank-core.mjs.map