taxtank-core 0.30.143 → 0.31.1

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 (305) hide show
  1. package/esm2020/lib/collections/collection.mjs +2 -2
  2. package/esm2020/lib/db/Models/depreciation/depreciation.mjs +1 -1
  3. package/esm2020/lib/db/Models/document/document-folder.mjs +1 -1
  4. package/esm2020/lib/db/Models/document/document.mjs +1 -1
  5. package/esm2020/lib/db/Models/document/property-document.mjs +1 -7
  6. package/esm2020/lib/db/Models/firm/firm.mjs +1 -1
  7. package/esm2020/lib/db/Models/index.mjs +1 -3
  8. package/esm2020/lib/db/Models/property/property-valuation.mjs +3 -8
  9. package/esm2020/lib/db/Models/property/property.mjs +1 -1
  10. package/esm2020/lib/db/Models/sole/sole-business.mjs +1 -1
  11. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +10 -7
  12. package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
  13. package/esm2020/lib/db/Models/user/user.mjs +1 -1
  14. package/esm2020/lib/forms/document-folder/document-folder.form.mjs +11 -0
  15. package/esm2020/lib/forms/document-folder/document.form.mjs +11 -0
  16. package/esm2020/lib/forms/document-folder/index.mjs +3 -0
  17. package/esm2020/lib/forms/firm/firm.form.mjs +17 -0
  18. package/esm2020/lib/forms/firm/index.mjs +2 -0
  19. package/esm2020/lib/forms/index.mjs +3 -1
  20. package/esm2020/lib/forms/property/index.mjs +5 -2
  21. package/esm2020/lib/forms/property/property-document.form.mjs +14 -0
  22. package/esm2020/lib/forms/property/property-edit.form.mjs +17 -0
  23. package/esm2020/lib/forms/property/property-valuation.form.mjs +17 -0
  24. package/esm2020/lib/forms/sole/sole-business.form.mjs +4 -3
  25. package/esm2020/lib/forms/transaction/transaction-base.form.mjs +4 -7
  26. package/esm2020/lib/forms/user/client-details.form.mjs +34 -0
  27. package/esm2020/lib/forms/user/index.mjs +3 -1
  28. package/esm2020/lib/forms/user/user.form.mjs +15 -0
  29. package/esm2020/lib/functions/get-doc-icon.mjs +3 -3
  30. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  31. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
  32. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  33. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
  34. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  35. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  36. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  37. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  38. package/esm2020/lib/interfaces/asset-type.enum.mjs +1 -3
  39. package/esm2020/lib/interfaces/document.interface.mjs +1 -1
  40. package/esm2020/lib/interfaces/documentable.interface.mjs +1 -1
  41. package/esm2020/lib/interfaces/fileable.interface.mjs +2 -0
  42. package/esm2020/lib/interfaces/index.mjs +2 -3
  43. package/esm2020/lib/models/bank/bank.mjs +5 -10
  44. package/esm2020/lib/models/chat/message-document.mjs +4 -3
  45. package/esm2020/lib/models/depreciation/depreciation.mjs +1 -1
  46. package/esm2020/lib/models/depreciation/index.mjs +1 -2
  47. package/esm2020/lib/models/document/document-folder.mjs +1 -7
  48. package/esm2020/lib/models/document/document.mjs +12 -19
  49. package/esm2020/lib/models/endpoint/endpoints.const.mjs +7 -8
  50. package/esm2020/lib/models/event/app-event-type.enum.mjs +45 -53
  51. package/esm2020/lib/models/file/file.mjs +5 -1
  52. package/esm2020/lib/models/firm/firm.mjs +5 -13
  53. package/esm2020/lib/models/property/property-document.mjs +12 -12
  54. package/esm2020/lib/models/property/property-valuation.mjs +2 -5
  55. package/esm2020/lib/models/property/property.mjs +5 -13
  56. package/esm2020/lib/models/registration-invite/registration-invite.mjs +7 -7
  57. package/esm2020/lib/models/sole/sole-business.mjs +6 -8
  58. package/esm2020/lib/models/sole/sole-contact.mjs +5 -8
  59. package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
  60. package/esm2020/lib/models/transaction/index.mjs +1 -2
  61. package/esm2020/lib/models/transaction/transaction.mjs +1 -5
  62. package/esm2020/lib/models/user/user.mjs +6 -14
  63. package/esm2020/lib/services/account-setup/account-setup.service.mjs +3 -3
  64. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  65. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  66. package/esm2020/lib/services/auth/auth.service.mjs +3 -3
  67. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  68. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  69. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  70. package/esm2020/lib/services/data.service.mjs +3 -3
  71. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  72. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  73. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  74. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  75. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  76. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
  77. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  78. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
  79. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  80. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  81. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
  82. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  83. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  84. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  85. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  86. package/esm2020/lib/services/http/chat/message-document.service.mjs +5 -5
  87. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  88. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  89. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  90. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  91. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +7 -55
  92. package/esm2020/lib/services/http/depreciation/index.mjs +1 -2
  93. package/esm2020/lib/services/http/document/document-folder/document-folder-messages.enum.mjs +8 -0
  94. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +9 -59
  95. package/esm2020/lib/services/http/document/document-folder/index.mjs +3 -0
  96. package/esm2020/lib/services/http/document/document-messages.enum.mjs +8 -0
  97. package/esm2020/lib/services/http/document/document.service.mjs +10 -6
  98. package/esm2020/lib/services/http/document/index.mjs +3 -2
  99. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  100. package/esm2020/lib/services/http/file/file.service.mjs +10 -4
  101. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  102. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
  103. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  104. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  105. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  106. package/esm2020/lib/services/http/firm/firm-messages.enum.mjs +6 -0
  107. package/esm2020/lib/services/http/firm/firm.service.mjs +4 -12
  108. package/esm2020/lib/services/http/firm/index.mjs +2 -1
  109. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  110. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  111. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  112. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  113. package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
  114. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  115. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
  116. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  117. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
  118. package/esm2020/lib/services/http/index.mjs +1 -2
  119. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  120. package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
  121. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  122. package/esm2020/lib/services/http/property/index.mjs +3 -1
  123. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  124. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  125. package/esm2020/lib/services/http/property/property-document/index.mjs +2 -1
  126. package/esm2020/lib/services/http/property/property-document/property-document-messages.enum.mjs +8 -0
  127. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +7 -6
  128. package/esm2020/lib/services/http/property/property-messages.enum.mjs +6 -0
  129. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  130. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
  131. package/esm2020/lib/services/http/property/property-valuation/index.mjs +3 -0
  132. package/esm2020/lib/services/http/property/property-valuation/property-valuation-messages.enum.mjs +6 -0
  133. package/esm2020/lib/services/http/property/property-valuation/property-valuation.service.mjs +39 -0
  134. package/esm2020/lib/services/http/property/property.service.mjs +9 -5
  135. package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
  136. package/esm2020/lib/services/http/rest/rest.service.mjs +9 -9
  137. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  138. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  139. package/esm2020/lib/services/http/sole/index.mjs +2 -2
  140. package/esm2020/lib/services/http/sole/sole-business/index.mjs +3 -0
  141. package/esm2020/lib/services/http/sole/sole-business/sole-business-messages.enum.mjs +5 -0
  142. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +5 -28
  143. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  144. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  145. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
  146. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  147. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  148. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
  149. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
  150. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  151. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  152. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  153. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  154. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  155. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  156. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  157. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  158. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  159. package/esm2020/lib/services/http/transaction/index.mjs +1 -2
  160. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  161. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
  162. package/esm2020/lib/services/http/transaction/transaction.service.mjs +6 -43
  163. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  164. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +3 -3
  165. package/esm2020/lib/services/http/user/index.mjs +2 -1
  166. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  167. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  168. package/esm2020/lib/services/http/user/user-messages.enum.mjs +7 -0
  169. package/esm2020/lib/services/http/user/user.service.mjs +3 -3
  170. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  171. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  172. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
  173. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
  174. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  175. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  176. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  177. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  178. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  179. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  180. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  181. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  182. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  183. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  184. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  185. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  186. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  187. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  188. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  189. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  190. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  191. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  192. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  193. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  194. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  195. package/esm2020/lib/tt-core.module.mjs +4 -4
  196. package/esm2020/public-api.mjs +2 -18
  197. package/fesm2015/taxtank-core.mjs +1124 -1306
  198. package/fesm2015/taxtank-core.mjs.map +1 -1
  199. package/fesm2020/taxtank-core.mjs +1111 -1289
  200. package/fesm2020/taxtank-core.mjs.map +1 -1
  201. package/lib/db/Models/depreciation/depreciation.d.ts +0 -2
  202. package/lib/db/Models/document/document-folder.d.ts +1 -2
  203. package/lib/db/Models/document/property-document.d.ts +6 -5
  204. package/lib/db/Models/firm/firm.d.ts +2 -0
  205. package/lib/db/Models/index.d.ts +0 -2
  206. package/lib/db/Models/property/property-valuation.d.ts +2 -2
  207. package/lib/db/Models/property/property.d.ts +2 -0
  208. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  209. package/lib/db/Models/transaction/transaction-base.d.ts +5 -7
  210. package/lib/db/Models/transaction/transaction.d.ts +0 -2
  211. package/lib/db/Models/user/user.d.ts +2 -1
  212. package/lib/forms/document-folder/document-folder.form.d.ts +5 -0
  213. package/lib/forms/document-folder/document.form.d.ts +5 -0
  214. package/lib/forms/document-folder/index.d.ts +2 -0
  215. package/lib/forms/firm/firm.form.d.ts +5 -0
  216. package/lib/forms/firm/index.d.ts +1 -0
  217. package/lib/forms/index.d.ts +2 -0
  218. package/lib/forms/property/index.d.ts +4 -1
  219. package/lib/forms/property/property-document.form.d.ts +6 -0
  220. package/lib/forms/property/property-edit.form.d.ts +5 -0
  221. package/lib/forms/property/property-valuation.form.d.ts +6 -0
  222. package/lib/forms/user/client-details.form.d.ts +7 -0
  223. package/lib/forms/user/index.d.ts +2 -0
  224. package/lib/forms/user/user.form.d.ts +5 -0
  225. package/lib/functions/get-doc-icon.d.ts +2 -2
  226. package/lib/interfaces/asset-type.enum.d.ts +0 -2
  227. package/lib/interfaces/document.interface.d.ts +4 -14
  228. package/lib/interfaces/documentable.interface.d.ts +2 -2
  229. package/lib/interfaces/fileable.interface.d.ts +8 -0
  230. package/lib/interfaces/index.d.ts +1 -2
  231. package/lib/models/bank/bank.d.ts +4 -4
  232. package/lib/models/chat/message-document.d.ts +2 -1
  233. package/lib/models/depreciation/depreciation.d.ts +2 -4
  234. package/lib/models/depreciation/index.d.ts +0 -1
  235. package/lib/models/document/document-folder.d.ts +1 -5
  236. package/lib/models/document/document.d.ts +5 -17
  237. package/lib/models/event/app-event-type.enum.d.ts +44 -52
  238. package/lib/models/file/file.d.ts +2 -0
  239. package/lib/models/firm/firm.d.ts +4 -10
  240. package/lib/models/property/property-document.d.ts +5 -10
  241. package/lib/models/property/property-valuation.d.ts +0 -1
  242. package/lib/models/property/property.d.ts +4 -10
  243. package/lib/models/registration-invite/registration-invite.d.ts +4 -4
  244. package/lib/models/sole/sole-business.d.ts +4 -4
  245. package/lib/models/sole/sole-contact.d.ts +4 -4
  246. package/lib/models/transaction/index.d.ts +0 -1
  247. package/lib/models/transaction/transaction.d.ts +2 -5
  248. package/lib/models/user/user.d.ts +6 -12
  249. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -7
  250. package/lib/services/http/depreciation/index.d.ts +0 -1
  251. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts +6 -0
  252. package/lib/services/http/document/document-folder/document-folder.service.d.ts +6 -24
  253. package/lib/services/http/document/document-folder/index.d.ts +2 -0
  254. package/lib/services/http/document/document-messages.enum.d.ts +6 -0
  255. package/lib/services/http/document/document.service.d.ts +7 -3
  256. package/lib/services/http/document/index.d.ts +2 -1
  257. package/lib/services/http/file/file.service.d.ts +2 -0
  258. package/lib/services/http/firm/firm-messages.enum.d.ts +4 -0
  259. package/lib/services/http/firm/firm.service.d.ts +0 -1
  260. package/lib/services/http/firm/index.d.ts +1 -0
  261. package/lib/services/http/index.d.ts +0 -1
  262. package/lib/services/http/property/index.d.ts +2 -0
  263. package/lib/services/http/property/property-document/index.d.ts +1 -0
  264. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts +6 -0
  265. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -0
  266. package/lib/services/http/property/property-messages.enum.d.ts +4 -0
  267. package/lib/services/http/property/property-valuation/index.d.ts +2 -0
  268. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts +4 -0
  269. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +21 -0
  270. package/lib/services/http/property/property.service.d.ts +1 -0
  271. package/lib/services/http/rest/rest.service.d.ts +2 -2
  272. package/lib/services/http/sole/index.d.ts +1 -1
  273. package/lib/services/http/sole/sole-business/index.d.ts +2 -0
  274. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts +3 -0
  275. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +0 -1
  276. package/lib/services/http/transaction/index.d.ts +0 -1
  277. package/lib/services/http/transaction/transaction.service.d.ts +1 -5
  278. package/lib/services/http/user/index.d.ts +1 -0
  279. package/lib/services/http/user/user-messages.enum.d.ts +5 -0
  280. package/package.json +1 -1
  281. package/public-api.d.ts +1 -17
  282. package/esm2020/lib/db/Models/depreciation/depreciation-receipt.mjs +0 -4
  283. package/esm2020/lib/db/Models/transaction/transaction-receipt.mjs +0 -4
  284. package/esm2020/lib/interfaces/photoable.mjs +0 -2
  285. package/esm2020/lib/interfaces/receipt.interface.mjs +0 -2
  286. package/esm2020/lib/models/depreciation/depreciation-receipt.mjs +0 -11
  287. package/esm2020/lib/models/transaction/transaction-receipt.mjs +0 -11
  288. package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +0 -40
  289. package/esm2020/lib/services/http/depreciation/depreciation-receipt/index.mjs +0 -2
  290. package/esm2020/lib/services/http/receipt/index.mjs +0 -2
  291. package/esm2020/lib/services/http/receipt/receipt.service.mjs +0 -76
  292. package/esm2020/lib/services/http/sole/sole-business/messages.enum.mjs +0 -7
  293. package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +0 -40
  294. package/lib/db/Models/depreciation/depreciation-receipt.d.ts +0 -12
  295. package/lib/db/Models/transaction/transaction-receipt.d.ts +0 -12
  296. package/lib/interfaces/photoable.d.ts +0 -13
  297. package/lib/interfaces/receipt.interface.d.ts +0 -12
  298. package/lib/models/depreciation/depreciation-receipt.d.ts +0 -8
  299. package/lib/models/transaction/transaction-receipt.d.ts +0 -8
  300. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts +0 -28
  301. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts +0 -1
  302. package/lib/services/http/receipt/index.d.ts +0 -1
  303. package/lib/services/http/receipt/receipt.service.d.ts +0 -62
  304. package/lib/services/http/sole/sole-business/messages.enum.d.ts +0 -5
  305. 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'
@@ -112,9 +112,9 @@ class CorelogicInterceptor {
112
112
  });
113
113
  }
114
114
  }
115
- 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 });
116
- CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor });
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, decorators: [{
115
+ 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 });
116
+ CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicInterceptor });
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CorelogicInterceptor, decorators: [{
118
118
  type: Injectable
119
119
  }], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
120
120
  type: Inject,
@@ -151,9 +151,9 @@ class FinancialYearInterceptor {
151
151
  return next.handle(clonedReq);
152
152
  }
153
153
  }
154
- FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
155
- FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor });
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
154
+ FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
155
+ FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor });
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
157
157
  type: Injectable
158
158
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
159
159
  type: Inject,
@@ -206,9 +206,9 @@ class AddressService {
206
206
  return this.countriesSubject.asObservable();
207
207
  }
208
208
  }
209
- 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 });
210
- AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, providedIn: 'root' });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, decorators: [{
209
+ 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 });
210
+ AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AddressService, providedIn: 'root' });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AddressService, decorators: [{
212
212
  type: Injectable,
213
213
  args: [{
214
214
  providedIn: 'root'
@@ -393,9 +393,6 @@ let DepreciationCapitalProject$1 = class DepreciationCapitalProject extends Abst
393
393
  let DepreciationForecast$1 = class DepreciationForecast extends AbstractModel {
394
394
  };
395
395
 
396
- let DepreciationReceipt$1 = class DepreciationReceipt extends AbstractModel {
397
- };
398
-
399
396
  var TankTypeEnum;
400
397
  (function (TankTypeEnum) {
401
398
  TankTypeEnum[TankTypeEnum["PROPERTY"] = 1] = "PROPERTY";
@@ -426,8 +423,7 @@ class TransactionBase extends ObservableModel {
426
423
  /**
427
424
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
428
425
  */
429
- set tankType(tankType) {
430
- }
426
+ set tankType(tankType) { }
431
427
  /**
432
428
  * Check if current tank is Property
433
429
  */
@@ -466,6 +462,12 @@ class TransactionBase extends ObservableModel {
466
462
  // @TODO Alex we need another way to distinguish work/holding
467
463
  return !this.isPropertyTank() && !this.isSoleTank();
468
464
  }
465
+ isPersonalTank() {
466
+ if (!this.chartAccounts) {
467
+ return false;
468
+ }
469
+ return CHART_ACCOUNTS_CATEGORIES.personal.includes(this.chartAccounts?.category);
470
+ }
469
471
  get amountWithGst() {
470
472
  return this.isGST ? round(this.amount * ChartAccounts.GSTCoefficient, 2) : this.amount;
471
473
  }
@@ -489,9 +491,7 @@ __decorate([
489
491
  Transform(({ value }) => +value)
490
492
  ], TransactionBase.prototype, "amount", void 0);
491
493
  __decorate([
492
- Exclude({ toPlainOnly: true }),
493
- Type(() => Object),
494
- Transform(({ obj }) => obj.file)
494
+ Type(() => AppFile)
495
495
  ], TransactionBase.prototype, "file", void 0);
496
496
  __decorate([
497
497
  Transform(({ value }) => +value)
@@ -519,12 +519,6 @@ let Document$1 = class Document extends AbstractModel {
519
519
  };
520
520
 
521
521
  let PropertyDocument$1 = class PropertyDocument extends AbstractModel {
522
- getApiUrlPrefix() {
523
- return '';
524
- }
525
- getEntity() {
526
- return undefined;
527
- }
528
522
  };
529
523
 
530
524
  let TaxReview$1 = class TaxReview extends AbstractModel {
@@ -632,11 +626,8 @@ __decorate([
632
626
  let PropertySubscription$1 = class PropertySubscription extends AbstractModel {
633
627
  };
634
628
 
635
- let PropertyValuation$1 = class PropertyValuation extends AbstractModel {
629
+ let PropertyValuation$1 = class PropertyValuation extends ObservableModel {
636
630
  };
637
- __decorate([
638
- Type(() => Number)
639
- ], PropertyValuation$1.prototype, "marketValue", void 0);
640
631
 
641
632
  let Property$1 = class Property extends ObservableModel {
642
633
  };
@@ -731,9 +722,6 @@ let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel
731
722
  let TransactionMetaField$1 = class TransactionMetaField extends AbstractModel {
732
723
  };
733
724
 
734
- let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
735
- };
736
-
737
725
  let Transaction$1 = class Transaction extends TransactionBase {
738
726
  };
739
727
 
@@ -1397,22 +1385,24 @@ var TaxReturnItemEnum;
1397
1385
  class BankExternalStats {
1398
1386
  }
1399
1387
 
1400
- class Bank extends Bank$1 {
1401
- getPhotoPlaceholder() {
1402
- return this.name[0] + this.name[1];
1388
+ /**
1389
+ * The model renamed for more comfortable work because File already exist in JS
1390
+ * @TODO Alex: consider a better name like document
1391
+ */
1392
+ class AppFile extends File$1 {
1393
+ isImage() {
1394
+ return AppFile.imageMimeTypes.includes[this.mimeType];
1403
1395
  }
1396
+ }
1397
+ AppFile.imageMimeTypes = ['image/jpg, image/jpeg, image/png, image/tiff, image/bmp'];
1398
+
1399
+ class Bank extends Bank$1 {
1404
1400
  isManual() {
1405
1401
  return this.provider === BankProviderEnum.MANUAL;
1406
1402
  }
1407
1403
  isBasiq() {
1408
1404
  return this.provider !== BankProviderEnum.MANUAL;
1409
1405
  }
1410
- getPhoto() {
1411
- if (!this.logo) {
1412
- return null;
1413
- }
1414
- return this.logo.includes('http') ? `${this.logo}` : `${localStorage.getItem('api_uri')}${this.logo}`;
1415
- }
1416
1406
  }
1417
1407
  __decorate([
1418
1408
  Transform(({ value }) => value ? value.replace(' ', '%20') : null)
@@ -1424,6 +1414,9 @@ __decorate([
1424
1414
  __decorate([
1425
1415
  Type(() => BankExternalStats)
1426
1416
  ], Bank.prototype, "externalStats", void 0);
1417
+ __decorate([
1418
+ Type(() => AppFile)
1419
+ ], Bank.prototype, "file", void 0);
1427
1420
 
1428
1421
  /**
1429
1422
  * Enum with maximum number of payments, depending on the frequency.
@@ -1858,7 +1851,7 @@ class Collection {
1858
1851
  if (index >= 0) {
1859
1852
  this.items.splice(index, 1, item);
1860
1853
  }
1861
- return this;
1854
+ return this.create(this.items);
1862
1855
  }
1863
1856
  diff(items) {
1864
1857
  return this.filter((model) => !items.map((item) => item.id).includes(model.id));
@@ -3855,13 +3848,10 @@ var ClientInviteTypeEnum;
3855
3848
  })(ClientInviteTypeEnum || (ClientInviteTypeEnum = {}));
3856
3849
 
3857
3850
  class RegistrationInvite extends RegistrationInvite$1 {
3858
- getPhotoPlaceholder() {
3859
- return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
3860
- }
3861
- getPhoto() {
3862
- return null;
3863
- }
3864
3851
  }
3852
+ __decorate([
3853
+ Type(() => AppFile)
3854
+ ], RegistrationInvite.prototype, "file", void 0);
3865
3855
 
3866
3856
  var PhoneTypeEnum;
3867
3857
  (function (PhoneTypeEnum) {
@@ -3934,18 +3924,6 @@ class UserToRegister {
3934
3924
  }
3935
3925
 
3936
3926
  class Firm extends Firm$1 {
3937
- /**
3938
- * get firm photo link
3939
- */
3940
- getPhoto() {
3941
- return this.photo;
3942
- }
3943
- /**
3944
- * get firm initials
3945
- */
3946
- getPhotoPlaceholder() {
3947
- return `${this.name[0].toUpperCase()}${this.name[1]}`;
3948
- }
3949
3927
  }
3950
3928
  __decorate([
3951
3929
  Type(() => User)
@@ -3956,6 +3934,9 @@ __decorate([
3956
3934
  __decorate([
3957
3935
  Type(() => Phone)
3958
3936
  ], Firm.prototype, "phone", void 0);
3937
+ __decorate([
3938
+ Type(() => AppFile)
3939
+ ], Firm.prototype, "file", void 0);
3959
3940
 
3960
3941
  class ClientInvite extends ClientInvite$1 {
3961
3942
  /**
@@ -4372,84 +4353,6 @@ __decorate([
4372
4353
  Type(() => Firm)
4373
4354
  ], EmployeeDetails.prototype, "firm", void 0);
4374
4355
 
4375
- class ServicePayment extends ServicePayment$1 {
4376
- /**
4377
- * Stripe stores actual links to payment invoices for 30 days.
4378
- * Link expires after 30 days
4379
- */
4380
- isInvoiceLinkExpired() {
4381
- const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
4382
- return expirationDate.getTime() < new Date().getTime();
4383
- }
4384
- }
4385
- ServicePayment.daysToInvoiceUrlExpired = 30;
4386
- __decorate([
4387
- Type(() => ServiceSubscription)
4388
- ], ServicePayment.prototype, "subscription", void 0);
4389
- __decorate([
4390
- Type(() => Date)
4391
- ], ServicePayment.prototype, "date", void 0);
4392
-
4393
- let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
4394
- };
4395
-
4396
- var PaymentMethodBrandEnum;
4397
- (function (PaymentMethodBrandEnum) {
4398
- PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
4399
- PaymentMethodBrandEnum["AMEX"] = "American Express";
4400
- PaymentMethodBrandEnum["DINERS"] = "Diners Club";
4401
- PaymentMethodBrandEnum["DISCOVER"] = "Discover";
4402
- PaymentMethodBrandEnum["JCB"] = "JCB";
4403
- PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
4404
- PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
4405
- PaymentMethodBrandEnum["VISA"] = "Visa";
4406
- })(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
4407
-
4408
- var ServicePaymentMethodCardBrandEnum;
4409
- (function (ServicePaymentMethodCardBrandEnum) {
4410
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
4411
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
4412
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
4413
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
4414
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
4415
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
4416
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
4417
- ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
4418
- })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
4419
-
4420
- var ServicePaymentMethodTypeEnum;
4421
- (function (ServicePaymentMethodTypeEnum) {
4422
- ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
4423
- ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
4424
- })(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
4425
-
4426
- class ServicePaymentMethod extends ServicePaymentMethod$1 {
4427
- get logo() {
4428
- if (!this.isCard()) {
4429
- return null;
4430
- }
4431
- return `/assets/img/payment-methods/${this.cardBrand}.svg`;
4432
- }
4433
- get brandName() {
4434
- return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
4435
- }
4436
- /**
4437
- * Get expiration date formatted string (MM/YY)
4438
- */
4439
- get expirationDate() {
4440
- if (!this.isCard()) {
4441
- return null;
4442
- }
4443
- return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
4444
- }
4445
- get description() {
4446
- return `${this.brandName} ***${this.lastFourDigits}`;
4447
- }
4448
- isCard() {
4449
- return this.type === ServicePaymentMethodTypeEnum.CARD;
4450
- }
4451
- }
4452
-
4453
4356
  class SoleBusinessAllocation extends SoleBusinessAllocation$1 {
4454
4357
  }
4455
4358
  __decorate([
@@ -4514,13 +4417,6 @@ class SoleContact extends SoleContact$1 {
4514
4417
  get fullName() {
4515
4418
  return `${this.firstName} ${this.lastName}`;
4516
4419
  }
4517
- getPhotoPlaceholder() {
4518
- return `${this.firstName[0].toUpperCase()}${this.lastName[0].toUpperCase()}`;
4519
- }
4520
- // @TODO Vik: add photo field to SoleContact
4521
- getPhoto() {
4522
- return '';
4523
- }
4524
4420
  }
4525
4421
  __decorate([
4526
4422
  Type(() => User)
@@ -4534,6 +4430,9 @@ __decorate([
4534
4430
  __decorate([
4535
4431
  Type(() => SoleInvoice)
4536
4432
  ], SoleContact.prototype, "invoices", void 0);
4433
+ __decorate([
4434
+ Type(() => AppFile)
4435
+ ], SoleContact.prototype, "file", void 0);
4537
4436
 
4538
4437
  var SoleInvoiceStatusesEnum;
4539
4438
  (function (SoleInvoiceStatusesEnum) {
@@ -4951,41 +4850,6 @@ var DepreciationLvpRateEnum;
4951
4850
  DepreciationLvpRateEnum[DepreciationLvpRateEnum["DEFAULT"] = 0.375] = "DEFAULT";
4952
4851
  })(DepreciationLvpRateEnum || (DepreciationLvpRateEnum = {}));
4953
4852
 
4954
- /**
4955
- * Enum with asset types
4956
- */
4957
- var AssetTypeEnum;
4958
- (function (AssetTypeEnum) {
4959
- AssetTypeEnum["TRANSACTION_RECEIPT"] = "transactionReceipt";
4960
- AssetTypeEnum["PROPERTY"] = "property";
4961
- AssetTypeEnum["DOCUMENT"] = "document";
4962
- AssetTypeEnum["MESSAGE"] = "message";
4963
- AssetTypeEnum["USER_PHOTO"] = "userPhoto";
4964
- AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
4965
- AssetTypeEnum["DEPRECIATION_RECEIPT"] = "depreciationReceipt";
4966
- AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
4967
- })(AssetTypeEnum || (AssetTypeEnum = {}));
4968
-
4969
- /**
4970
- * Enum with asset entity types
4971
- */
4972
- var AssetEntityTypeEnum;
4973
- (function (AssetEntityTypeEnum) {
4974
- AssetEntityTypeEnum["PROPERTIES"] = "properties";
4975
- AssetEntityTypeEnum["FOLDERS"] = "folders";
4976
- AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
4977
- AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
4978
- AssetEntityTypeEnum["MESSAGES"] = "messages";
4979
- })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
4980
-
4981
- class DepreciationReceipt extends DepreciationReceipt$1 {
4982
- constructor() {
4983
- super(...arguments);
4984
- this.type = AssetTypeEnum.DEPRECIATION_RECEIPT;
4985
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
4986
- }
4987
- }
4988
-
4989
4853
  /**
4990
4854
  * Income sources chart data
4991
4855
  */
@@ -5029,12 +4893,6 @@ class IncomeSourceChartData {
5029
4893
  }
5030
4894
 
5031
4895
  class SoleBusiness extends SoleBusiness$1 {
5032
- getPhotoPlaceholder() {
5033
- return `${this.name[0]}${this.name[1]}`;
5034
- }
5035
- getPhoto() {
5036
- return this.logo;
5037
- }
5038
4896
  }
5039
4897
  /**
5040
4898
  * Maximum number of businesses that a person can have, according to the ATO
@@ -5073,6 +4931,9 @@ __decorate([
5073
4931
  __decorate([
5074
4932
  Transform(({ value }) => value || false)
5075
4933
  ], SoleBusiness.prototype, "isPrimaryProduction", void 0);
4934
+ __decorate([
4935
+ Type(() => AppFile)
4936
+ ], SoleBusiness.prototype, "file", void 0);
5076
4937
 
5077
4938
  class SoleBusinessActivity extends SoleBusinessActivity$1 {
5078
4939
  }
@@ -5234,18 +5095,6 @@ class User extends User$1 {
5234
5095
  return this.activeSubscription?.items
5235
5096
  .find((subscriptionItem) => subscriptionItem.price.product.role.includes(roleType));
5236
5097
  }
5237
- /**
5238
- * Get user's photo link
5239
- */
5240
- getPhoto() {
5241
- return this.photo;
5242
- }
5243
- /**
5244
- * get user's initials
5245
- */
5246
- getPhotoPlaceholder() {
5247
- return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
5248
- }
5249
5098
  isCurrentFinancialYear() {
5250
5099
  return new FinancialYear(new Date()).year === this.financialYear;
5251
5100
  }
@@ -5281,6 +5130,9 @@ __decorate([
5281
5130
  __decorate([
5282
5131
  Type(() => User)
5283
5132
  ], User.prototype, "clients", void 0);
5133
+ __decorate([
5134
+ Type(() => AppFile)
5135
+ ], User.prototype, "file", void 0);
5284
5136
 
5285
5137
  class PropertySubscription extends PropertySubscription$1 {
5286
5138
  }
@@ -5312,18 +5164,16 @@ class PropertyCategory extends PropertyCategory$1 {
5312
5164
  }
5313
5165
 
5314
5166
  class PropertyDocument extends PropertyDocument$1 {
5315
- constructor() {
5316
- super(...arguments);
5317
- this.type = AssetTypeEnum.PROPERTY;
5318
- this.entityType = AssetEntityTypeEnum.PROPERTIES;
5319
- }
5320
- getApiUrlPrefix() {
5321
- return '';
5322
- }
5323
- getEntity() {
5167
+ get parent() {
5324
5168
  return this.property;
5325
5169
  }
5326
5170
  }
5171
+ __decorate([
5172
+ Type(() => Property)
5173
+ ], PropertyDocument.prototype, "property", void 0);
5174
+ __decorate([
5175
+ Type(() => AppFile)
5176
+ ], PropertyDocument.prototype, "file", void 0);
5327
5177
 
5328
5178
  class PropertyValuation extends PropertyValuation$1 {
5329
5179
  get financialYear() {
@@ -5342,9 +5192,6 @@ __decorate([
5342
5192
  __decorate([
5343
5193
  Type(() => Number)
5344
5194
  ], PropertyValuation.prototype, "marketValue", void 0);
5345
- __decorate([
5346
- Exclude()
5347
- ], PropertyValuation.prototype, "documentFile", void 0);
5348
5195
 
5349
5196
  class PropertyForecast extends PropertyForecast$1 {
5350
5197
  constructor() {
@@ -5429,18 +5276,6 @@ class Property extends Property$1 {
5429
5276
  isSold() {
5430
5277
  return !!this.myShare?.sale;
5431
5278
  }
5432
- /**
5433
- * Get initials of property. Required by Photoable interface
5434
- */
5435
- getPhotoPlaceholder() {
5436
- return this.name.split(' ')[1].slice(0, 2);
5437
- }
5438
- /**
5439
- * Get property photo. Required by Photoable interface
5440
- */
5441
- getPhoto() {
5442
- return this.photo;
5443
- }
5444
5279
  get capitalCostsTotalAmount() {
5445
5280
  return this.stampDuty + this.legalFees + this.otherCapitalCosts;
5446
5281
  }
@@ -5658,6 +5493,9 @@ __decorate([
5658
5493
  __decorate([
5659
5494
  Type(() => PropertySubscription)
5660
5495
  ], Property.prototype, "subscriptions", void 0);
5496
+ __decorate([
5497
+ Type(() => AppFile)
5498
+ ], Property.prototype, "file", void 0);
5661
5499
  __decorate([
5662
5500
  Exclude()
5663
5501
  ], Property.prototype, "documentFile", void 0);
@@ -6046,14 +5884,6 @@ var ShareFilterOptionsEnum;
6046
5884
  ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
6047
5885
  })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
6048
5886
 
6049
- class TransactionReceipt extends TransactionReceipt$1 {
6050
- constructor() {
6051
- super(...arguments);
6052
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
6053
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
6054
- }
6055
- }
6056
-
6057
5887
  class TransactionMetaField extends TransactionMetaField$1 {
6058
5888
  }
6059
5889
  __decorate([
@@ -6340,9 +6170,6 @@ __decorate([
6340
6170
  __decorate([
6341
6171
  Type(() => Property)
6342
6172
  ], Transaction.prototype, "property", void 0);
6343
- __decorate([
6344
- Type(() => TransactionReceipt)
6345
- ], Transaction.prototype, "receipt", void 0);
6346
6173
  __decorate([
6347
6174
  Type(() => ChartAccounts)
6348
6175
  ], Transaction.prototype, "chartAccounts", void 0);
@@ -9621,6 +9448,31 @@ __decorate([
9621
9448
  Type(() => Date)
9622
9449
  ], Chat.prototype, "updatedAt", void 0);
9623
9450
 
9451
+ /**
9452
+ * Enum with asset entity types
9453
+ */
9454
+ var AssetEntityTypeEnum;
9455
+ (function (AssetEntityTypeEnum) {
9456
+ AssetEntityTypeEnum["PROPERTIES"] = "properties";
9457
+ AssetEntityTypeEnum["FOLDERS"] = "folders";
9458
+ AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
9459
+ AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
9460
+ AssetEntityTypeEnum["MESSAGES"] = "messages";
9461
+ })(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
9462
+
9463
+ /**
9464
+ * Enum with asset types
9465
+ */
9466
+ var AssetTypeEnum;
9467
+ (function (AssetTypeEnum) {
9468
+ AssetTypeEnum["PROPERTY"] = "property";
9469
+ AssetTypeEnum["DOCUMENT"] = "document";
9470
+ AssetTypeEnum["MESSAGE"] = "message";
9471
+ AssetTypeEnum["USER_PHOTO"] = "userPhoto";
9472
+ AssetTypeEnum["PROPERTY_PHOTO"] = "propertyPhoto";
9473
+ AssetTypeEnum["FIRM_PHOTO"] = "firmPhoto";
9474
+ })(AssetTypeEnum || (AssetTypeEnum = {}));
9475
+
9624
9476
  class MessageDocument extends MessageDocument$1 {
9625
9477
  constructor() {
9626
9478
  super(...arguments);
@@ -9632,7 +9484,7 @@ __decorate([
9632
9484
  Type(() => User)
9633
9485
  ], MessageDocument.prototype, "user", void 0);
9634
9486
  __decorate([
9635
- Exclude({ toPlainOnly: true })
9487
+ Type(() => AppFile)
9636
9488
  ], MessageDocument.prototype, "file", void 0);
9637
9489
 
9638
9490
  class Message extends Message$1 {
@@ -9694,58 +9546,50 @@ var AppEventTypeEnum;
9694
9546
  AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 14] = "CURRENT_USER_GET_FAILED";
9695
9547
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 15] = "DEPRECIATION_DELETED";
9696
9548
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 16] = "DEPRECIATIONS_CREATED";
9697
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_RECEIPT"] = 17] = "DEPRECIATION_UPDATED_WITH_RECEIPT";
9698
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT"] = 18] = "DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT";
9699
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_CREATED"] = 19] = "DEPRECIATION_RECEIPT_CREATED";
9700
- AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_DELETED"] = 20] = "DEPRECIATION_RECEIPT_DELETED";
9701
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 21] = "INCOME_SOURCES_CREATED";
9702
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 22] = "INCOME_SOURCES_UPDATED";
9703
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 23] = "INCOME_SOURCES_FORECASTS_CREATED";
9704
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 24] = "INCOME_SOURCES_FORECASTS_UPDATED";
9705
- AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 25] = "LOAN_UPDATED";
9706
- AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 26] = "LOAN_PAYOUT_UPDATED";
9707
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 27] = "MESSAGE_CREATED";
9708
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 28] = "MESSAGE_FILE_CREATED";
9709
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 29] = "MESSAGE_FILE_DELETED";
9710
- AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 30] = "NOTIFICATION_ADDED";
9711
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 31] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
9712
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 32] = "PROPERTY_UPDATED";
9713
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 33] = "PROPERTY_UPDATED_WITH_DOCUMENT";
9714
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 34] = "PROPERTY_DOCUMENT_ADDED";
9715
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 35] = "PROPERTY_MOVEMENT_CREATED";
9716
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 36] = "PROPERTY_MOVEMENT_UPDATED";
9717
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 37] = "PROPERTY_MOVEMENT_DELETED";
9718
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 38] = "PROPERTY_SHARE_UPDATED";
9719
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 39] = "PROPERTY_SALE_ADDED";
9720
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 40] = "PROPERTY_SALE_DELETED";
9721
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 41] = "PROPERTY_SUBSCRIPTION_ADDED";
9722
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 42] = "PROPERTY_SUBSCRIPTION_DELETED";
9723
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 43] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
9724
- AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 44] = "SERVICE_SUBSCRIPTION_UPDATED";
9725
- AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 45] = "SOLE_BUSINESS_CREATED";
9726
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 46] = "SOLE_DEPRECIATION_METHOD_UPDATED";
9727
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 47] = "SOLE_DETAILS_CREATED";
9728
- AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 48] = "SOLE_DETAILS_UPDATED";
9729
- AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 49] = "SOLE_INVOICE_PUBLISHED";
9730
- AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 50] = "TAX_REVIEW_UPDATED";
9731
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 51] = "TRANSACTION_ALLOCATION_CREATED";
9732
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 52] = "TRANSACTION_ALLOCATION_DELETED";
9733
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 53] = "TRANSACTION_CREATED";
9734
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 54] = "TRANSACTION_DELETED";
9735
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 55] = "TRANSACTION_UPDATED";
9736
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 56] = "TRANSACTION_UPDATED_WITH_RECEIPT";
9737
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 57] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
9738
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
9739
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
9740
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
9741
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
9742
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
9743
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9744
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
9745
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
9746
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
9747
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
9748
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9549
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 17] = "INCOME_SOURCES_CREATED";
9550
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 18] = "INCOME_SOURCES_UPDATED";
9551
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 19] = "INCOME_SOURCES_FORECASTS_CREATED";
9552
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 20] = "INCOME_SOURCES_FORECASTS_UPDATED";
9553
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 21] = "LOAN_UPDATED";
9554
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 22] = "LOAN_PAYOUT_UPDATED";
9555
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 23] = "MESSAGE_CREATED";
9556
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 24] = "MESSAGE_FILE_CREATED";
9557
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 25] = "MESSAGE_FILE_DELETED";
9558
+ AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 26] = "NOTIFICATION_ADDED";
9559
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 27] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
9560
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 28] = "PROPERTY_UPDATED";
9561
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 29] = "PROPERTY_UPDATED_WITH_DOCUMENT";
9562
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 30] = "PROPERTY_DOCUMENT_ADDED";
9563
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 31] = "PROPERTY_MOVEMENT_CREATED";
9564
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 32] = "PROPERTY_MOVEMENT_UPDATED";
9565
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 33] = "PROPERTY_MOVEMENT_DELETED";
9566
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 34] = "PROPERTY_SHARE_UPDATED";
9567
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 35] = "PROPERTY_SALE_ADDED";
9568
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 36] = "PROPERTY_SALE_DELETED";
9569
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 37] = "PROPERTY_SUBSCRIPTION_ADDED";
9570
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 38] = "PROPERTY_SUBSCRIPTION_DELETED";
9571
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 39] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
9572
+ AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 40] = "SERVICE_SUBSCRIPTION_UPDATED";
9573
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 41] = "SOLE_BUSINESS_CREATED";
9574
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 42] = "SOLE_DEPRECIATION_METHOD_UPDATED";
9575
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 43] = "SOLE_DETAILS_CREATED";
9576
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 44] = "SOLE_DETAILS_UPDATED";
9577
+ AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 45] = "SOLE_INVOICE_PUBLISHED";
9578
+ AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 46] = "TAX_REVIEW_UPDATED";
9579
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 47] = "TRANSACTION_ALLOCATION_CREATED";
9580
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 48] = "TRANSACTION_ALLOCATION_DELETED";
9581
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 49] = "TRANSACTION_CREATED";
9582
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 50] = "TRANSACTION_DELETED";
9583
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 51] = "TRANSACTION_UPDATED";
9584
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 52] = "TRANSACTIONS_CREATED";
9585
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 53] = "VEHICLE_CLAIM_UPDATED";
9586
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 54] = "VEHICLE_CLAIM_CREATED";
9587
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 55] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9588
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 56] = "VEHICLE_CLAIM_DETAILS_CREATED";
9589
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 57] = "VEHICLE_LOGBOOK_CREATED";
9590
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 58] = "VEHICLE_LOGBOOK_UPDATED";
9591
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 59] = "VEHICLE_LOGBOOK_DELETED";
9592
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 60] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9749
9593
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
9750
9594
 
9751
9595
  /**
@@ -9769,13 +9613,6 @@ class AppEvent2 {
9769
9613
  }
9770
9614
  }
9771
9615
 
9772
- /**
9773
- * The model renamed for more comfortable work because File already exist in JS
9774
- * @TODO Alex: consider a better name like document
9775
- */
9776
- class AppFile extends File$1 {
9777
- }
9778
-
9779
9616
  class Notification extends ServiceNotification {
9780
9617
  get eventType() {
9781
9618
  return this.userEvent.type.type;
@@ -9811,39 +9648,112 @@ __decorate([
9811
9648
  })
9812
9649
  ], Notification.prototype, "redirectionLink", void 0);
9813
9650
 
9814
- /**
9815
- * Enum with document types which used to API url prefix
9816
- */
9817
- var DocumentApiUrlPrefixEnum;
9818
- (function (DocumentApiUrlPrefixEnum) {
9819
- DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
9820
- DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
9821
- })(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
9822
-
9823
- class Document extends Document$1 {
9824
- constructor() {
9825
- super(...arguments);
9826
- this.type = AssetTypeEnum.DOCUMENT;
9827
- this.entityType = AssetEntityTypeEnum.FOLDERS;
9828
- }
9829
- /**
9830
- * Get folder as document parent entity
9831
- */
9832
- getEntity() {
9833
- return this.folder;
9834
- }
9651
+ class ServicePayment extends ServicePayment$1 {
9835
9652
  /**
9836
- * Get API url prefix
9653
+ * Stripe stores actual links to payment invoices for 30 days.
9654
+ * Link expires after 30 days
9837
9655
  */
9838
- getApiUrlPrefix() {
9839
- return DocumentApiUrlPrefixEnum.FOLDERS;
9656
+ isInvoiceLinkExpired() {
9657
+ const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
9658
+ return expirationDate.getTime() < new Date().getTime();
9840
9659
  }
9841
9660
  }
9842
-
9843
- const DOCUMENT_FILE_TYPES = {
9844
- image: [
9845
- 'image/png',
9846
- 'image/jpg',
9661
+ ServicePayment.daysToInvoiceUrlExpired = 30;
9662
+ __decorate([
9663
+ Type(() => ServiceSubscription)
9664
+ ], ServicePayment.prototype, "subscription", void 0);
9665
+ __decorate([
9666
+ Type(() => Date)
9667
+ ], ServicePayment.prototype, "date", void 0);
9668
+
9669
+ let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
9670
+ };
9671
+
9672
+ var PaymentMethodBrandEnum;
9673
+ (function (PaymentMethodBrandEnum) {
9674
+ PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
9675
+ PaymentMethodBrandEnum["AMEX"] = "American Express";
9676
+ PaymentMethodBrandEnum["DINERS"] = "Diners Club";
9677
+ PaymentMethodBrandEnum["DISCOVER"] = "Discover";
9678
+ PaymentMethodBrandEnum["JCB"] = "JCB";
9679
+ PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
9680
+ PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
9681
+ PaymentMethodBrandEnum["VISA"] = "Visa";
9682
+ })(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
9683
+
9684
+ var ServicePaymentMethodCardBrandEnum;
9685
+ (function (ServicePaymentMethodCardBrandEnum) {
9686
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
9687
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
9688
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
9689
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
9690
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
9691
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
9692
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
9693
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
9694
+ })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
9695
+
9696
+ var ServicePaymentMethodTypeEnum;
9697
+ (function (ServicePaymentMethodTypeEnum) {
9698
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
9699
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
9700
+ })(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
9701
+
9702
+ class ServicePaymentMethod extends ServicePaymentMethod$1 {
9703
+ get logo() {
9704
+ if (!this.isCard()) {
9705
+ return null;
9706
+ }
9707
+ return `/assets/img/payment-methods/${this.cardBrand}.svg`;
9708
+ }
9709
+ get brandName() {
9710
+ return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
9711
+ }
9712
+ /**
9713
+ * Get expiration date formatted string (MM/YY)
9714
+ */
9715
+ get expirationDate() {
9716
+ if (!this.isCard()) {
9717
+ return null;
9718
+ }
9719
+ return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
9720
+ }
9721
+ get description() {
9722
+ return `${this.brandName} ***${this.lastFourDigits}`;
9723
+ }
9724
+ isCard() {
9725
+ return this.type === ServicePaymentMethodTypeEnum.CARD;
9726
+ }
9727
+ }
9728
+
9729
+ class DocumentFolder extends DocumentFolder$1 {
9730
+ }
9731
+
9732
+ class Document extends Document$1 {
9733
+ get parent() {
9734
+ return this.folder;
9735
+ }
9736
+ }
9737
+ __decorate([
9738
+ Type(() => DocumentFolder)
9739
+ ], Document.prototype, "folder", void 0);
9740
+ __decorate([
9741
+ Type(() => AppFile)
9742
+ ], Document.prototype, "file", void 0);
9743
+
9744
+ /**
9745
+ * Enum with document types which used to API url prefix
9746
+ */
9747
+ var DocumentApiUrlPrefixEnum;
9748
+ (function (DocumentApiUrlPrefixEnum) {
9749
+ DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
9750
+ DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
9751
+ })(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
9752
+
9753
+ const DOCUMENT_FILE_TYPES = {
9754
+ image: [
9755
+ 'image/png',
9756
+ 'image/jpg',
9847
9757
  'image/jpeg',
9848
9758
  'image/tiff',
9849
9759
  'image/bmp'
@@ -9863,12 +9773,6 @@ const DOCUMENT_FILE_TYPES = {
9863
9773
  ]
9864
9774
  };
9865
9775
 
9866
- class DocumentFolder extends DocumentFolder$1 {
9867
- }
9868
- __decorate([
9869
- Type(() => Document)
9870
- ], DocumentFolder.prototype, "documents", void 0);
9871
-
9872
9776
  class HoldingTypeExchange extends AbstractModel {
9873
9777
  }
9874
9778
  __decorate([
@@ -10203,9 +10107,9 @@ class DataService {
10203
10107
  this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
10204
10108
  }
10205
10109
  }
10206
- DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10207
- DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, providedIn: 'root' });
10208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, decorators: [{
10110
+ DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10111
+ DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, providedIn: 'root' });
10112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DataService, decorators: [{
10209
10113
  type: Injectable,
10210
10114
  args: [{
10211
10115
  providedIn: 'root'
@@ -10240,9 +10144,9 @@ class JwtService extends JwtHelperService {
10240
10144
  return this.getUser().id === userId;
10241
10145
  }
10242
10146
  }
10243
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10244
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, providedIn: 'root' });
10245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, decorators: [{
10147
+ JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10148
+ JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, providedIn: 'root' });
10149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, decorators: [{
10246
10150
  type: Injectable,
10247
10151
  args: [{
10248
10152
  providedIn: 'root'
@@ -10277,9 +10181,9 @@ class AuthService {
10277
10181
  location.replace(url);
10278
10182
  }
10279
10183
  }
10280
- 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 });
10281
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, providedIn: 'root' });
10282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, decorators: [{
10184
+ 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 });
10185
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AuthService, providedIn: 'root' });
10186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AuthService, decorators: [{
10283
10187
  type: Injectable,
10284
10188
  args: [{
10285
10189
  providedIn: 'root'
@@ -10317,9 +10221,9 @@ class EventDispatcherService {
10317
10221
  this.eventSubject2.next(event);
10318
10222
  }
10319
10223
  }
10320
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10321
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, decorators: [{
10224
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10225
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EventDispatcherService, decorators: [{
10323
10227
  type: Injectable,
10324
10228
  args: [{
10325
10229
  providedIn: 'root'
@@ -10356,9 +10260,9 @@ class SseService {
10356
10260
  .pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
10357
10261
  }
10358
10262
  }
10359
- 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 });
10360
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, providedIn: 'root' });
10361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, decorators: [{
10263
+ 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 });
10264
+ SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SseService, providedIn: 'root' });
10265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SseService, decorators: [{
10362
10266
  type: Injectable,
10363
10267
  args: [{
10364
10268
  providedIn: 'root'
@@ -10425,9 +10329,9 @@ let RestService$1 = class RestService extends DataService {
10425
10329
  return this.cache;
10426
10330
  }));
10427
10331
  }
10428
- get() {
10332
+ get(path = this.apiUrl) {
10429
10333
  if (!this.cache) {
10430
- this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
10334
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch(path).pipe(first$1()).subscribe() : this.setCache([], true);
10431
10335
  }
10432
10336
  return this.cacheSubject.asObservable();
10433
10337
  }
@@ -10441,9 +10345,9 @@ let RestService$1 = class RestService extends DataService {
10441
10345
  /**
10442
10346
  * Create a new Model instance in database
10443
10347
  */
10444
- post(model) {
10348
+ post(model, path = this.apiUrl) {
10445
10349
  this.handleAccessError('post');
10446
- return this.http.post(this.apiUrl, classToPlain(model))
10350
+ return this.http.post(path, classToPlain(model))
10447
10351
  .pipe(map((response) => {
10448
10352
  const result = this.createModelInstance(response);
10449
10353
  this.handleResponse([result], 'post');
@@ -10579,9 +10483,9 @@ let RestService$1 = class RestService extends DataService {
10579
10483
  */
10580
10484
  listenEvents() { }
10581
10485
  };
10582
- 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 });
10583
- RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, providedIn: 'root' });
10584
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, decorators: [{
10486
+ 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 });
10487
+ RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService$1, providedIn: 'root' });
10488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService$1, decorators: [{
10585
10489
  type: Injectable,
10586
10490
  args: [{
10587
10491
  providedIn: 'root'
@@ -10649,9 +10553,9 @@ class BankAccountService extends RestService$1 {
10649
10553
  });
10650
10554
  }
10651
10555
  }
10652
- 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 });
10653
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, decorators: [{
10556
+ 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 });
10557
+ BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountService, decorators: [{
10655
10559
  type: Injectable,
10656
10560
  args: [{
10657
10561
  providedIn: 'root'
@@ -10746,9 +10650,9 @@ class ToastService {
10746
10650
  }));
10747
10651
  }
10748
10652
  }
10749
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10750
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
10751
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, decorators: [{
10653
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10654
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, providedIn: 'root' });
10655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ToastService, decorators: [{
10752
10656
  type: Injectable,
10753
10657
  args: [{
10754
10658
  providedIn: 'root'
@@ -10826,9 +10730,9 @@ class BankConnectionService extends RestService$1 {
10826
10730
  });
10827
10731
  }
10828
10732
  }
10829
- 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 });
10830
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, decorators: [{
10733
+ 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 });
10734
+ BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankConnectionService, decorators: [{
10832
10736
  type: Injectable,
10833
10737
  args: [{
10834
10738
  providedIn: 'root'
@@ -10941,9 +10845,9 @@ class BankTransactionService extends RestService$1 {
10941
10845
  });
10942
10846
  }
10943
10847
  }
10944
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10945
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, decorators: [{
10848
+ BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10849
+ BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionService, decorators: [{
10947
10851
  type: Injectable,
10948
10852
  args: [{
10949
10853
  providedIn: 'root'
@@ -10975,9 +10879,9 @@ class BasiqTokenService extends RestService$1 {
10975
10879
  return new BasiqToken(tokenResponse['access_token'], new Date(now + tokenResponse['expires_in'] * 1000));
10976
10880
  }
10977
10881
  }
10978
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10979
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
10980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, decorators: [{
10882
+ BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10883
+ BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
10884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenService, decorators: [{
10981
10885
  type: Injectable,
10982
10886
  args: [{
10983
10887
  providedIn: 'root'
@@ -11103,9 +11007,9 @@ BasiqService.retrieveAccountsCheckInterval = 3000;
11103
11007
  * How long we will wait accounts retrieving, break after timeout if not retireved
11104
11008
  */
11105
11009
  BasiqService.retrieveAccountsTimeout = 20000;
11106
- 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 });
11107
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, providedIn: 'root' });
11108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, decorators: [{
11010
+ 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 });
11011
+ BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqService, providedIn: 'root' });
11012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqService, decorators: [{
11109
11013
  type: Injectable,
11110
11014
  args: [{
11111
11015
  providedIn: 'root'
@@ -11135,9 +11039,9 @@ class BankService extends RestService$1 {
11135
11039
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11136
11040
  }
11137
11041
  }
11138
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11139
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, providedIn: 'root' });
11140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, decorators: [{
11042
+ BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11043
+ BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, providedIn: 'root' });
11044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankService, decorators: [{
11141
11045
  type: Injectable,
11142
11046
  args: [{
11143
11047
  providedIn: 'root'
@@ -11154,9 +11058,9 @@ class BudgetService extends RestService$1 {
11154
11058
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
11155
11059
  }
11156
11060
  }
11157
- BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11158
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, providedIn: 'root' });
11159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, decorators: [{
11061
+ BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11062
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, providedIn: 'root' });
11063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BudgetService, decorators: [{
11160
11064
  type: Injectable,
11161
11065
  args: [{
11162
11066
  providedIn: 'root'
@@ -11184,9 +11088,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
11184
11088
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11185
11089
  }
11186
11090
  }
11187
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11188
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11091
+ ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11092
+ ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11190
11094
  type: Injectable,
11191
11095
  args: [{
11192
11096
  providedIn: 'root'
@@ -11226,9 +11130,9 @@ class ChartAccountsService extends RestService$1 {
11226
11130
  }));
11227
11131
  }
11228
11132
  }
11229
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11230
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, decorators: [{
11133
+ ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11134
+ ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsService, decorators: [{
11232
11136
  type: Injectable,
11233
11137
  args: [{
11234
11138
  providedIn: 'root'
@@ -11297,9 +11201,9 @@ class ChatService extends RestService$1 {
11297
11201
  });
11298
11202
  }
11299
11203
  }
11300
- 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 });
11301
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, providedIn: 'root' });
11302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, decorators: [{
11204
+ 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 });
11205
+ ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChatService, providedIn: 'root' });
11206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChatService, decorators: [{
11303
11207
  type: Injectable,
11304
11208
  args: [{
11305
11209
  providedIn: 'root'
@@ -11356,9 +11260,9 @@ class MessageService extends RestService$1 {
11356
11260
  });
11357
11261
  }
11358
11262
  }
11359
- 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 });
11360
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, providedIn: 'root' });
11361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, decorators: [{
11263
+ 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 });
11264
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageService, providedIn: 'root' });
11265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageService, decorators: [{
11362
11266
  type: Injectable,
11363
11267
  args: [{
11364
11268
  providedIn: 'root'
@@ -11377,7 +11281,7 @@ class MessageDocumentService extends RestService$1 {
11377
11281
  this.modelClass = MessageDocument;
11378
11282
  this.collectionClass = MessageDocumentCollection;
11379
11283
  this.endpointUri = 'message-documents';
11380
- this.disabledMethods = ['postBatch', 'post', 'deleteBatch', 'put', 'putBatch'];
11284
+ this.disabledMethods = ['postBatch', 'deleteBatch', 'put', 'putBatch'];
11381
11285
  this.isApiPlatform = true;
11382
11286
  }
11383
11287
  /**
@@ -11427,161 +11331,31 @@ class MessageDocumentService extends RestService$1 {
11427
11331
  return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
11428
11332
  }
11429
11333
  }
11430
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11431
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, decorators: [{
11334
+ MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11335
+ MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MessageDocumentService, decorators: [{
11433
11337
  type: Injectable,
11434
11338
  args: [{
11435
11339
  providedIn: 'root'
11436
11340
  }]
11437
11341
  }] });
11438
11342
 
11439
- /**
11440
- * Abstract service class to work with transactions-like receipt files (transactions, depreciations, e.t.c.)
11441
- * @Todo TT-2191 refactor service when receipts API will be updated
11442
- */
11443
- class ReceiptService {
11444
- constructor(http, eventDispatcherService, environment, toastService) {
11445
- this.http = http;
11446
- this.eventDispatcherService = eventDispatcherService;
11447
- this.environment = environment;
11448
- this.toastService = toastService;
11449
- }
11450
- listenEvents() {
11451
- this.listenParentWithReceiptUpdated();
11452
- this.listenParentWithoutReceiptUpdated();
11453
- }
11454
- /**
11455
- * Entity is necessary to take the ID and the receipt file from it.
11456
- */
11457
- add(receiptEntity) {
11458
- const formData = new FormData();
11459
- formData.append('file', receiptEntity.file);
11460
- return this.http.post(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts`, formData)
11461
- .pipe(map((receipt) => {
11462
- const uploadedReceipt = this.createModelInstance(receipt);
11463
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptCreatedEvent, uploadedReceipt));
11464
- return uploadedReceipt;
11465
- }));
11466
- }
11467
- delete(receiptEntity) {
11468
- return this.http.delete(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts/${receiptEntity.receipt.id}`)
11469
- .pipe(map(() => {
11470
- this.eventDispatcherService.dispatch(new AppEvent(this.receiptDeletedEvent, receiptEntity));
11471
- }));
11472
- }
11473
- /**
11474
- * Parent entity was updated with attached receipt
11475
- */
11476
- listenParentWithReceiptUpdated() {
11477
- this.eventDispatcherService.on(this.entityUpdatedWithReceiptEvent)
11478
- .subscribe((receiptEntity) => {
11479
- this.add(receiptEntity).subscribe();
11480
- });
11481
- }
11482
- /**
11483
- * Parent entity was updated, but receipt was removed
11484
- */
11485
- listenParentWithoutReceiptUpdated() {
11486
- this.eventDispatcherService.on(this.entityUpdatedWithDeletedReceiptEvent)
11487
- .subscribe((receiptEntity) => {
11488
- this.delete(receiptEntity).subscribe();
11489
- });
11490
- }
11491
- createModelInstance(data) {
11492
- return plainToClass(this.modelClass, data);
11493
- }
11494
- }
11495
- 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 });
11496
- ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, decorators: [{
11498
- type: Injectable,
11499
- args: [{
11500
- providedIn: 'root'
11501
- }]
11502
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11503
- type: Inject,
11504
- args: ['environment']
11505
- }] }, { type: ToastService }]; } });
11506
-
11507
- /**
11508
- * @Todo TT-2191 refactor service when receipts API will be updated
11509
- */
11510
- class DepreciationReceiptService extends ReceiptService {
11511
- constructor(http, eventDispatcherService, environment, toastService) {
11512
- super(http, eventDispatcherService, environment, toastService);
11513
- this.http = http;
11514
- this.eventDispatcherService = eventDispatcherService;
11515
- this.environment = environment;
11516
- this.toastService = toastService;
11517
- this.modelClass = DepreciationReceipt;
11518
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
11519
- this.receiptCreatedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED;
11520
- this.receiptDeletedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED;
11521
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT;
11522
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT;
11523
- this.listenEvents();
11524
- }
11525
- }
11526
- 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 });
11527
- DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11529
- type: Injectable,
11530
- args: [{
11531
- providedIn: 'root'
11532
- }]
11533
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11534
- type: Inject,
11535
- args: ['environment']
11536
- }] }, { type: ToastService }]; } });
11537
-
11538
11343
  class DepreciationService extends RestService$1 {
11539
- constructor(http, eventDispatcherService, environment, depreciationReceiptService) {
11344
+ constructor(http, eventDispatcherService, environment) {
11540
11345
  super(http, eventDispatcherService, environment);
11541
11346
  this.http = http;
11542
11347
  this.eventDispatcherService = eventDispatcherService;
11543
11348
  this.environment = environment;
11544
- this.depreciationReceiptService = depreciationReceiptService;
11545
11349
  this.modelClass = Depreciation;
11546
11350
  this.collectionClass = DepreciationCollection;
11547
11351
  this.endpointUri = 'depreciations';
11548
11352
  this.disabledMethods = ['post', 'putBatch', 'deleteBatch'];
11549
11353
  }
11550
- postBatch(depreciations) {
11551
- return super.postBatch(depreciations).pipe(map((newDepreciations) => {
11552
- depreciations.forEach((depreciation, index) => {
11553
- // @TODO backend: need to upload file in the same backend endpoint with depreciation add/update
11554
- // check if passed receipt and upload file
11555
- if (depreciation.file && (depreciation.file instanceof File)) {
11556
- depreciation.id = newDepreciations[index].id;
11557
- newDepreciations[index].file = depreciation.file;
11558
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, newDepreciations[index]));
11559
- }
11560
- });
11561
- return depreciations;
11562
- }));
11563
- }
11564
- put(depreciation) {
11565
- return super.put(depreciation)
11566
- .pipe(map((updatedDepreciation) => {
11567
- if (depreciation.file && (depreciation.file instanceof File)) {
11568
- updatedDepreciation.file = depreciation.file;
11569
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, updatedDepreciation));
11570
- // receipt file was removed from form - we should delete receipt from transaction
11571
- }
11572
- else if (!depreciation.file && depreciation.receipt) {
11573
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT, updatedDepreciation));
11574
- }
11575
- return updatedDepreciation;
11576
- }));
11577
- }
11578
11354
  /**
11579
11355
  * Listen to Depreciations events
11580
11356
  */
11581
11357
  listenEvents() {
11582
11358
  this.listenToUpdatedLoan();
11583
- this.listenReceiptAdded();
11584
- this.listenReceiptDeleted();
11585
11359
  this.listenVehicleClaimChanges();
11586
11360
  this.listenToUpdatedBankAccount();
11587
11361
  this.listenSoleDepreciationMethodChanges();
@@ -11591,22 +11365,6 @@ class DepreciationService extends RestService$1 {
11591
11365
  return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
11592
11366
  .pipe(map((response) => response || 0));
11593
11367
  }
11594
- listenReceiptAdded() {
11595
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
11596
- const depreciationToUpdate = this.cache.findBy('id', receipt.depreciation.id);
11597
- // we don't need to keep file after save
11598
- depreciationToUpdate.file = null;
11599
- depreciationToUpdate.receipt = receipt;
11600
- this.updateCache([depreciationToUpdate], 'put');
11601
- });
11602
- }
11603
- listenReceiptDeleted() {
11604
- this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED).subscribe((depreciation) => {
11605
- const depreciationToUpdate = this.cache.findBy('id', depreciation.id);
11606
- depreciationToUpdate.receipt = null;
11607
- this.updateCache([depreciationToUpdate], 'put');
11608
- });
11609
- }
11610
11368
  /**
11611
11369
  * Listen to EventDispatcherService event related to updated bank loan
11612
11370
  */
@@ -11658,9 +11416,9 @@ class DepreciationService extends RestService$1 {
11658
11416
  });
11659
11417
  }
11660
11418
  }
11661
- 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 });
11662
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, decorators: [{
11419
+ 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 });
11420
+ DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationService, decorators: [{
11664
11422
  type: Injectable,
11665
11423
  args: [{
11666
11424
  providedIn: 'root'
@@ -11668,7 +11426,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11668
11426
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11669
11427
  type: Inject,
11670
11428
  args: ['environment']
11671
- }] }, { type: DepreciationReceiptService }]; } });
11429
+ }] }]; } });
11672
11430
 
11673
11431
  /**
11674
11432
  * Service for work with DepreciationCapitalProjects
@@ -11710,9 +11468,9 @@ class DepreciationCapitalProjectService {
11710
11468
  }));
11711
11469
  }
11712
11470
  }
11713
- 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 });
11714
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11715
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11471
+ 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 });
11472
+ DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11716
11474
  type: Injectable,
11717
11475
  args: [{
11718
11476
  providedIn: 'root'
@@ -11722,45 +11480,304 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11722
11480
  args: ['environment']
11723
11481
  }] }]; } });
11724
11482
 
11483
+ var DocumentFolderMessagesEnum;
11484
+ (function (DocumentFolderMessagesEnum) {
11485
+ DocumentFolderMessagesEnum["CREATED"] = "Folder created!";
11486
+ DocumentFolderMessagesEnum["UPDATED"] = "Folder updated!";
11487
+ DocumentFolderMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the folder?";
11488
+ DocumentFolderMessagesEnum["DELETED"] = "Folder deleted!";
11489
+ })(DocumentFolderMessagesEnum || (DocumentFolderMessagesEnum = {}));
11490
+
11725
11491
  /**
11726
- * Abstract base service that implements common services functionality
11727
- * and describe abstract methods/properties that have to be implemented in child services
11728
- * Model - entity service is working with
11729
- * BaseModel - base entity model that extends by Model
11730
- * @TODO TT-1777 Alex: remove when all services refactored
11492
+ * Service to handle document-folders and depending documents logic
11731
11493
  */
11732
- class RestService {
11733
- constructor(http, eventDispatcherService, environment, toastService) {
11494
+ class DocumentFolderService extends RestService$1 {
11495
+ constructor() {
11496
+ super(...arguments);
11497
+ this.endpointUri = 'folders';
11498
+ this.collectionClass = Collection;
11499
+ this.modelClass = DocumentFolder;
11500
+ this.disabledMethods = ['deleteBatch', 'postBatch', 'putBatch'];
11501
+ }
11502
+ }
11503
+ DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11504
+ DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
11505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentFolderService, decorators: [{
11506
+ type: Injectable,
11507
+ args: [{
11508
+ providedIn: 'root'
11509
+ }]
11510
+ }] });
11511
+
11512
+ class DocumentService extends RestService$1 {
11513
+ constructor() {
11514
+ super(...arguments);
11515
+ this.endpointUri = 'folder-documents';
11516
+ this.modelClass = Document;
11517
+ this.collectionClass = Collection;
11518
+ this.disabledMethods = ['postBatch', 'putBatch'];
11519
+ this.isApiPlatform = true;
11520
+ }
11521
+ }
11522
+ DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11523
+ DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, providedIn: 'root' });
11524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DocumentService, decorators: [{
11525
+ type: Injectable,
11526
+ args: [{
11527
+ providedIn: 'root'
11528
+ }]
11529
+ }] });
11530
+
11531
+ var DocumentMessagesEnum;
11532
+ (function (DocumentMessagesEnum) {
11533
+ DocumentMessagesEnum["CREATED"] = "Document created!";
11534
+ DocumentMessagesEnum["UPDATED"] = "Document updated!";
11535
+ DocumentMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the document?";
11536
+ DocumentMessagesEnum["DELETED"] = "Document deleted!";
11537
+ })(DocumentMessagesEnum || (DocumentMessagesEnum = {}));
11538
+
11539
+ const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
11540
+ class FacebookService {
11541
+ /**
11542
+ * @TODO when google login will be done, it needs to be moved to an abstract class
11543
+ */
11544
+ constructor(http, toastService, jwtService, router, environment) {
11734
11545
  this.http = http;
11735
- this.eventDispatcherService = eventDispatcherService;
11736
- this.environment = environment;
11737
11546
  this.toastService = toastService;
11738
- this.jwtService = inject(JwtService);
11739
- // subject for service cache
11740
- this.cacheSubject = new ReplaySubject(1);
11741
- this.roles = [];
11742
- this.listenEvents();
11547
+ this.jwtService = jwtService;
11548
+ this.router = router;
11549
+ this.environment = environment;
11550
+ this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
11551
+ this.isFacebookEnabled = !!environment['facebookAppId'];
11552
+ }
11553
+ async login(redirectUrl = '/client') {
11554
+ const accessToken = await this.getAccessToken();
11555
+ this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
11556
+ .subscribe((response) => {
11557
+ this.setAuth(response);
11558
+ this.router.navigate([redirectUrl]);
11559
+ }, (error) => {
11560
+ this.toastService.error(error.error.violations[0].message);
11561
+ this.logout();
11562
+ });
11743
11563
  }
11744
11564
  /**
11745
- * get list of base class instances directly from backend
11565
+ * save user's auth tokens
11566
+ * @TODO move to abstract class
11746
11567
  */
11747
- fetch() {
11748
- this.setCache([]);
11749
- return this.http.get(`${this.environment.apiV2}/${this.url}`)
11750
- .pipe(map((response) => {
11751
- const items = (this.isHydra ? response['hydra:member'] : response)
11752
- .map((item) => this.createModelInstance(item));
11753
- this.setCache(items, true);
11754
- return items;
11755
- }));
11568
+ setAuth(response) {
11569
+ this.jwtService.saveTokens(response);
11570
+ this.isLoggedInSubject.next(true);
11756
11571
  }
11757
11572
  /**
11758
- * get cached list of all instances
11573
+ * get facebook auth access token
11759
11574
  */
11760
- get() {
11761
- if (!this.cache) {
11762
- this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11763
- }
11575
+ getAccessToken() {
11576
+ return new Promise((resolve) => {
11577
+ FB.login((response) => {
11578
+ // authResponse will be empty if you close the Facebook login window or enter incorrect user data
11579
+ if (!response.authResponse) {
11580
+ return;
11581
+ }
11582
+ if (!response.authResponse.grantedScopes.includes('email')) {
11583
+ this.toastService.error(ERROR_EMAIL_PERMISSION);
11584
+ return;
11585
+ }
11586
+ resolve(response.authResponse.accessToken);
11587
+ }, FacebookService.authOptions);
11588
+ });
11589
+ }
11590
+ /**
11591
+ * logout user from facebook.
11592
+ * Need to logout when user is trying to login with facebook with manually registered email
11593
+ */
11594
+ logout() {
11595
+ return new Promise((resolve, reject) => {
11596
+ FB.logout((response) => {
11597
+ resolve(response);
11598
+ });
11599
+ });
11600
+ }
11601
+ }
11602
+ FacebookService.authOptions = {
11603
+ scope: 'email, public_profile',
11604
+ auth_type: 'rerequest',
11605
+ return_scopes: true
11606
+ };
11607
+ 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 });
11608
+ FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FacebookService, providedIn: 'root' });
11609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FacebookService, decorators: [{
11610
+ type: Injectable,
11611
+ args: [{
11612
+ providedIn: 'root'
11613
+ }]
11614
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
11615
+ type: Inject,
11616
+ args: ['environment']
11617
+ }] }]; } });
11618
+
11619
+ /**
11620
+ * Google instance
11621
+ * https://developers.google.com/identity/oauth2/web/guides/overview
11622
+ * https://developers.google.com/identity/gsi/web/guides/overview
11623
+ */
11624
+ class GoogleService {
11625
+ constructor(http, toastService, jwtService, router, environment) {
11626
+ this.http = http;
11627
+ this.toastService = toastService;
11628
+ this.jwtService = jwtService;
11629
+ this.router = router;
11630
+ this.environment = environment;
11631
+ this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
11632
+ this.isGoogleEnabled = !!this.environment['googleClientId'];
11633
+ // depending on the level of access
11634
+ this.googleScope = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
11635
+ }
11636
+ /**
11637
+ * prompt for user consent and obtain an access token to work with user data
11638
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token.
11639
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
11640
+ */
11641
+ // prompt for user consent and obtain an access token to work with user data
11642
+ login() {
11643
+ return google.accounts.oauth2.initTokenClient({
11644
+ client_id: this.environment['googleClientId'],
11645
+ scope: this.googleScope,
11646
+ callback: (response) => {
11647
+ this.setAuth(response.access_token);
11648
+ },
11649
+ }).requestAccessToken();
11650
+ }
11651
+ /**
11652
+ * requestAccessToken() method to trigger the token UX flow and obtain an access token:
11653
+ * Choose their account;
11654
+ * sign-in to the Google Account if not already signed-in;
11655
+ * grant consent for your web app to access each requested scope.
11656
+ */
11657
+ setAuth(accessToken, redirectUrl = '/client') {
11658
+ this.http.post(`${this.environment.apiV2}/users/authentication/google`, { accessToken })
11659
+ .subscribe((response) => {
11660
+ this.jwtService.saveTokens(response);
11661
+ this.isLoggedInSubject.next(true);
11662
+ this.router.navigate([redirectUrl]);
11663
+ }, (error) => {
11664
+ this.toastService.error(error.error.violations[0].message);
11665
+ this.logout();
11666
+ });
11667
+ }
11668
+ /**
11669
+ * When the user signs out of your website, you need to call the method
11670
+ * google.accounts.id.disableAutoSelect to record the status in cookies.
11671
+ * https://developers.google.com/identity/oauth2/web/guides/use-token-model
11672
+ */
11673
+ logout() {
11674
+ google.accounts.id.disableAutoSelect();
11675
+ }
11676
+ }
11677
+ 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 });
11678
+ GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: GoogleService, providedIn: 'root' });
11679
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: GoogleService, decorators: [{
11680
+ type: Injectable,
11681
+ args: [{
11682
+ providedIn: 'root'
11683
+ }]
11684
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
11685
+ type: Inject,
11686
+ args: ['environment']
11687
+ }] }]; } });
11688
+
11689
+ class FileService extends RestService$1 {
11690
+ constructor() {
11691
+ super(...arguments);
11692
+ this.endpointUri = 'files';
11693
+ this.modelClass = AppFile;
11694
+ this.collectionClass = Collection;
11695
+ this.isApiPlatform = true;
11696
+ this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11697
+ }
11698
+ getById(id) {
11699
+ return this.http.get(this.apiUrl + '/' + id).pipe(map((response) => plainToClass(AppFile, response)));
11700
+ }
11701
+ getLink(id) {
11702
+ return this.http.get(this.apiUrl + '/' + id + '/view').pipe(map((response) => response));
11703
+ }
11704
+ upload(file) {
11705
+ const formData = new FormData();
11706
+ formData.append('file', file);
11707
+ return this.http.post(this.apiUrl, formData)
11708
+ .pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
11709
+ }
11710
+ download(file) {
11711
+ return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
11712
+ }
11713
+ }
11714
+ FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11715
+ FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, providedIn: 'root' });
11716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FileService, decorators: [{
11717
+ type: Injectable,
11718
+ args: [{
11719
+ providedIn: 'root'
11720
+ }]
11721
+ }] });
11722
+
11723
+ class ClientIncomeTypesService extends RestService$1 {
11724
+ constructor() {
11725
+ super(...arguments);
11726
+ this.modelClass = ClientIncomeTypes;
11727
+ this.collectionClass = Collection;
11728
+ this.endpointUri = 'client-income-types';
11729
+ this.isApiPlatform = true;
11730
+ this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
11731
+ }
11732
+ }
11733
+ ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11734
+ ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
11735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
11736
+ type: Injectable,
11737
+ args: [{
11738
+ providedIn: 'root'
11739
+ }]
11740
+ }] });
11741
+
11742
+ /**
11743
+ * Abstract base service that implements common services functionality
11744
+ * and describe abstract methods/properties that have to be implemented in child services
11745
+ * Model - entity service is working with
11746
+ * BaseModel - base entity model that extends by Model
11747
+ * @TODO TT-1777 Alex: remove when all services refactored
11748
+ */
11749
+ class RestService {
11750
+ constructor(http, eventDispatcherService, environment, toastService) {
11751
+ this.http = http;
11752
+ this.eventDispatcherService = eventDispatcherService;
11753
+ this.environment = environment;
11754
+ this.toastService = toastService;
11755
+ this.jwtService = inject(JwtService);
11756
+ // subject for service cache
11757
+ this.cacheSubject = new ReplaySubject(1);
11758
+ this.roles = [];
11759
+ this.listenEvents();
11760
+ }
11761
+ /**
11762
+ * get list of base class instances directly from backend
11763
+ */
11764
+ fetch() {
11765
+ this.setCache([]);
11766
+ return this.http.get(`${this.environment.apiV2}/${this.url}`)
11767
+ .pipe(map((response) => {
11768
+ const items = (this.isHydra ? response['hydra:member'] : response)
11769
+ .map((item) => this.createModelInstance(item));
11770
+ this.setCache(items, true);
11771
+ return items;
11772
+ }));
11773
+ }
11774
+ /**
11775
+ * get cached list of all instances
11776
+ */
11777
+ get() {
11778
+ if (!this.cache) {
11779
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11780
+ }
11764
11781
  return this.cacheSubject.asObservable();
11765
11782
  }
11766
11783
  /**
@@ -11913,313 +11930,32 @@ class RestService {
11913
11930
  * Update cache subject with current cache array value
11914
11931
  */
11915
11932
  updateCache() {
11916
- this.cacheSubject.next(this.cache.slice());
11917
- }
11918
- /**
11919
- * @TODO use excludeExtraneousValues when all models refactored (exposed all needed properties)
11920
- * Create new instance of class
11921
- * @param model instance that we will use as constructor options
11922
- */
11923
- createModelInstance(model) {
11924
- return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
11925
- }
11926
- /**
11927
- * Method that call all listeners. Empty by default. Should be redefined by child services if required
11928
- */
11929
- listenEvents() { }
11930
- }
11931
- 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 });
11932
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, providedIn: 'root' });
11933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, decorators: [{
11934
- type: Injectable,
11935
- args: [{
11936
- providedIn: 'root'
11937
- }]
11938
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
11939
- type: Inject,
11940
- args: ['environment']
11941
- }] }, { type: ToastService }]; } });
11942
-
11943
- class DocumentService extends RestService {
11944
- constructor() {
11945
- super(...arguments);
11946
- this.url = 'documents';
11947
- this.modelClass = Document;
11948
- }
11949
- }
11950
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11951
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, providedIn: 'root' });
11952
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, decorators: [{
11953
- type: Injectable,
11954
- args: [{
11955
- providedIn: 'root'
11956
- }]
11957
- }] });
11958
-
11959
- /**
11960
- * Service to handle document-folders and depending documents logic
11961
- */
11962
- class DocumentFolderService extends RestService {
11963
- constructor() {
11964
- super(...arguments);
11965
- this.url = 'folders';
11966
- this.modelClass = DocumentFolder;
11967
- }
11968
- /**
11969
- * Add new document to the folder
11970
- * @param file to be uploaded to the folder
11971
- * @param folder for document
11972
- */
11973
- addDocument(file, folder) {
11974
- // create formData object with provided file
11975
- const formDataDocument = new FormData();
11976
- formDataDocument.append('file', file);
11977
- return this.http.post(`${this.environment.apiV2}/folders/${folder.id}/documents`, formDataDocument).pipe(map((response) => {
11978
- const updatedFolder = Object.assign(plainToClass(DocumentFolder, {}), folder);
11979
- updatedFolder.documents.push(plainToClass(Document, response));
11980
- replace(this.cache, plainToClass(DocumentFolder, updatedFolder));
11981
- this.cacheSubject.next(this.cache);
11982
- }));
11983
- }
11984
- /**
11985
- * Edit folder document by moving it from one folder to another
11986
- * @param editedDocument
11987
- * @param selectedFolder to move the document to
11988
- * @param oldFolderId: id of old folder from which need to remove the document
11989
- */
11990
- updateDocument(editedDocument, selectedFolder, oldFolderId) {
11991
- return this.http.put(`${this.environment.apiV2}/folders/${selectedFolder.id}/documents/${editedDocument.id}`, editedDocument).pipe(map((response) => {
11992
- const oldFolder = this.cache.find((folder) => folder.id === oldFolderId);
11993
- // Remove document from old folder
11994
- oldFolder.documents = oldFolder.documents.filter((deletedDocument) => deletedDocument.id !== response.id);
11995
- // update old folder and replace it in cache
11996
- response.folder = plainToClass(DocumentFolder, { id: selectedFolder.id, name: selectedFolder.name });
11997
- replace(this.cache, plainToClass(DocumentFolder, oldFolder));
11998
- // update new document folder and replace it in cache
11999
- selectedFolder.documents.push(plainToClass(Document, response));
12000
- replace(this.cache, plainToClass(DocumentFolder, selectedFolder));
12001
- this.cacheSubject.next(this.cache);
12002
- }));
12003
- }
12004
- /**
12005
- * Delete document from folder
12006
- * @param document to remove
12007
- * @param folder from which document should be removed
12008
- */
12009
- deleteDocument(document, folder) {
12010
- return this.http.delete(`${this.environment.apiV2}/folders/${folder.id}/documents/${document.id}`).pipe(map(() => {
12011
- folder.documents = folder.documents
12012
- .filter((deletedDocument) => deletedDocument.id !== document.id);
12013
- replace(this.cache, plainToClass(DocumentFolder, folder));
12014
- this.cacheSubject.next(this.cache);
12015
- }));
12016
- }
12017
- }
12018
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12019
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
12020
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, decorators: [{
12021
- type: Injectable,
12022
- args: [{
12023
- providedIn: 'root'
12024
- }]
12025
- }] });
12026
-
12027
- const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
12028
- class FacebookService {
12029
- /**
12030
- * @TODO when google login will be done, it needs to be moved to an abstract class
12031
- */
12032
- constructor(http, toastService, jwtService, router, environment) {
12033
- this.http = http;
12034
- this.toastService = toastService;
12035
- this.jwtService = jwtService;
12036
- this.router = router;
12037
- this.environment = environment;
12038
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12039
- this.isFacebookEnabled = !!environment['facebookAppId'];
12040
- }
12041
- async login(redirectUrl = '/client') {
12042
- const accessToken = await this.getAccessToken();
12043
- this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
12044
- .subscribe((response) => {
12045
- this.setAuth(response);
12046
- this.router.navigate([redirectUrl]);
12047
- }, (error) => {
12048
- this.toastService.error(error.error.violations[0].message);
12049
- this.logout();
12050
- });
12051
- }
12052
- /**
12053
- * save user's auth tokens
12054
- * @TODO move to abstract class
12055
- */
12056
- setAuth(response) {
12057
- this.jwtService.saveTokens(response);
12058
- this.isLoggedInSubject.next(true);
12059
- }
12060
- /**
12061
- * get facebook auth access token
12062
- */
12063
- getAccessToken() {
12064
- return new Promise((resolve) => {
12065
- FB.login((response) => {
12066
- // authResponse will be empty if you close the Facebook login window or enter incorrect user data
12067
- if (!response.authResponse) {
12068
- return;
12069
- }
12070
- if (!response.authResponse.grantedScopes.includes('email')) {
12071
- this.toastService.error(ERROR_EMAIL_PERMISSION);
12072
- return;
12073
- }
12074
- resolve(response.authResponse.accessToken);
12075
- }, FacebookService.authOptions);
12076
- });
12077
- }
12078
- /**
12079
- * logout user from facebook.
12080
- * Need to logout when user is trying to login with facebook with manually registered email
12081
- */
12082
- logout() {
12083
- return new Promise((resolve, reject) => {
12084
- FB.logout((response) => {
12085
- resolve(response);
12086
- });
12087
- });
12088
- }
12089
- }
12090
- FacebookService.authOptions = {
12091
- scope: 'email, public_profile',
12092
- auth_type: 'rerequest',
12093
- return_scopes: true
12094
- };
12095
- 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 });
12096
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, providedIn: 'root' });
12097
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, decorators: [{
12098
- type: Injectable,
12099
- args: [{
12100
- providedIn: 'root'
12101
- }]
12102
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
12103
- type: Inject,
12104
- args: ['environment']
12105
- }] }]; } });
12106
-
12107
- /**
12108
- * Google instance
12109
- * https://developers.google.com/identity/oauth2/web/guides/overview
12110
- * https://developers.google.com/identity/gsi/web/guides/overview
12111
- */
12112
- class GoogleService {
12113
- constructor(http, toastService, jwtService, router, environment) {
12114
- this.http = http;
12115
- this.toastService = toastService;
12116
- this.jwtService = jwtService;
12117
- this.router = router;
12118
- this.environment = environment;
12119
- this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
12120
- this.isGoogleEnabled = !!this.environment['googleClientId'];
12121
- // depending on the level of access
12122
- this.googleScope = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
12123
- }
12124
- /**
12125
- * prompt for user consent and obtain an access token to work with user data
12126
- * requestAccessToken() method to trigger the token UX flow and obtain an access token.
12127
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
12128
- */
12129
- // prompt for user consent and obtain an access token to work with user data
12130
- login() {
12131
- return google.accounts.oauth2.initTokenClient({
12132
- client_id: this.environment['googleClientId'],
12133
- scope: this.googleScope,
12134
- callback: (response) => {
12135
- this.setAuth(response.access_token);
12136
- },
12137
- }).requestAccessToken();
11933
+ this.cacheSubject.next(this.cache.slice());
12138
11934
  }
12139
11935
  /**
12140
- * requestAccessToken() method to trigger the token UX flow and obtain an access token:
12141
- * Choose their account;
12142
- * sign-in to the Google Account if not already signed-in;
12143
- * grant consent for your web app to access each requested scope.
11936
+ * @TODO use excludeExtraneousValues when all models refactored (exposed all needed properties)
11937
+ * Create new instance of class
11938
+ * @param model instance that we will use as constructor options
12144
11939
  */
12145
- setAuth(accessToken, redirectUrl = '/client') {
12146
- this.http.post(`${this.environment.apiV2}/users/authentication/google`, { accessToken })
12147
- .subscribe((response) => {
12148
- this.jwtService.saveTokens(response);
12149
- this.isLoggedInSubject.next(true);
12150
- this.router.navigate([redirectUrl]);
12151
- }, (error) => {
12152
- this.toastService.error(error.error.violations[0].message);
12153
- this.logout();
12154
- });
11940
+ createModelInstance(model) {
11941
+ return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
12155
11942
  }
12156
11943
  /**
12157
- * When the user signs out of your website, you need to call the method
12158
- * google.accounts.id.disableAutoSelect to record the status in cookies.
12159
- * https://developers.google.com/identity/oauth2/web/guides/use-token-model
11944
+ * Method that call all listeners. Empty by default. Should be redefined by child services if required
12160
11945
  */
12161
- logout() {
12162
- google.accounts.id.disableAutoSelect();
12163
- }
11946
+ listenEvents() { }
12164
11947
  }
12165
- 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 });
12166
- GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, providedIn: 'root' });
12167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, decorators: [{
11948
+ 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 });
11949
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService, providedIn: 'root' });
11950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RestService, decorators: [{
12168
11951
  type: Injectable,
12169
11952
  args: [{
12170
11953
  providedIn: 'root'
12171
11954
  }]
12172
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ToastService }, { type: JwtService }, { type: i4.Router }, { type: undefined, decorators: [{
11955
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12173
11956
  type: Inject,
12174
11957
  args: ['environment']
12175
- }] }]; } });
12176
-
12177
- class FileService extends RestService$1 {
12178
- constructor() {
12179
- super(...arguments);
12180
- this.endpointUri = 'files';
12181
- this.modelClass = AppFile;
12182
- this.collectionClass = Collection;
12183
- this.isApiPlatform = true;
12184
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
12185
- }
12186
- upload(file) {
12187
- const formData = new FormData();
12188
- formData.append('file', file);
12189
- return this.http.post(this.apiUrl, formData)
12190
- .pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
12191
- }
12192
- download(file) {
12193
- return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
12194
- }
12195
- }
12196
- FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12197
- FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, providedIn: 'root' });
12198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, decorators: [{
12199
- type: Injectable,
12200
- args: [{
12201
- providedIn: 'root'
12202
- }]
12203
- }] });
12204
-
12205
- class ClientIncomeTypesService extends RestService$1 {
12206
- constructor() {
12207
- super(...arguments);
12208
- this.modelClass = ClientIncomeTypes;
12209
- this.collectionClass = Collection;
12210
- this.endpointUri = 'client-income-types';
12211
- this.isApiPlatform = true;
12212
- this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
12213
- }
12214
- }
12215
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12216
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
12217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
12218
- type: Injectable,
12219
- args: [{
12220
- providedIn: 'root'
12221
- }]
12222
- }] });
11958
+ }] }, { type: ToastService }]; } });
12223
11959
 
12224
11960
  class ClientInviteService extends RestService {
12225
11961
  constructor() {
@@ -12331,9 +12067,9 @@ class ClientInviteService extends RestService {
12331
12067
  });
12332
12068
  }
12333
12069
  }
12334
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12335
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, decorators: [{
12070
+ ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12071
+ ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientInviteService, decorators: [{
12337
12073
  type: Injectable,
12338
12074
  args: [{
12339
12075
  providedIn: 'root'
@@ -12420,9 +12156,9 @@ class ClientMovementService extends RestService {
12420
12156
  });
12421
12157
  }
12422
12158
  }
12423
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12424
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, decorators: [{
12159
+ ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12160
+ ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientMovementService, decorators: [{
12426
12162
  type: Injectable,
12427
12163
  args: [{
12428
12164
  providedIn: 'root'
@@ -12473,9 +12209,9 @@ class EmployeeService extends RestService {
12473
12209
  }));
12474
12210
  }
12475
12211
  }
12476
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12477
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12478
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, decorators: [{
12212
+ EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12213
+ EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeService, decorators: [{
12479
12215
  type: Injectable,
12480
12216
  args: [{
12481
12217
  providedIn: 'root'
@@ -12537,9 +12273,9 @@ class EmployeeInviteService extends RestService {
12537
12273
  }));
12538
12274
  }
12539
12275
  }
12540
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12541
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, decorators: [{
12276
+ EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12277
+ EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EmployeeInviteService, decorators: [{
12543
12279
  type: Injectable,
12544
12280
  args: [{
12545
12281
  providedIn: 'root'
@@ -12564,9 +12300,9 @@ class ClientPortfolioReportService {
12564
12300
  }));
12565
12301
  }
12566
12302
  }
12567
- 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 });
12568
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12303
+ 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 });
12304
+ ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12570
12306
  type: Injectable,
12571
12307
  args: [{
12572
12308
  providedIn: 'root'
@@ -12576,6 +12312,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
12576
12312
  args: ['environment']
12577
12313
  }] }]; } });
12578
12314
 
12315
+ var FirmMessagesEnum;
12316
+ (function (FirmMessagesEnum) {
12317
+ FirmMessagesEnum["LOGO_UPDATED"] = "Firm logo updated";
12318
+ FirmMessagesEnum["DATA_UPDATED"] = "Firm data updated";
12319
+ })(FirmMessagesEnum || (FirmMessagesEnum = {}));
12320
+
12579
12321
  // @TODO Alex: think about extend base rest service
12580
12322
  class FirmService {
12581
12323
  constructor(http, environment) {
@@ -12619,18 +12361,10 @@ class FirmService {
12619
12361
  getByType(type) {
12620
12362
  return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
12621
12363
  }
12622
- updatePhoto(firm, photo) {
12623
- return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
12624
- .pipe(map((firmPhoto) => {
12625
- this.firm = plainToClass(Firm, Object.assign(firm, { photo: firmPhoto }));
12626
- this.firmSubject.next(this.firm);
12627
- return firm;
12628
- }));
12629
- }
12630
12364
  }
12631
- 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 });
12632
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, providedIn: 'root' });
12633
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, decorators: [{
12365
+ 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 });
12366
+ FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FirmService, providedIn: 'root' });
12367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FirmService, decorators: [{
12634
12368
  type: Injectable,
12635
12369
  args: [{
12636
12370
  providedIn: 'root'
@@ -12704,9 +12438,9 @@ class IncomeSourceForecastService extends RestService {
12704
12438
  }).flat();
12705
12439
  }
12706
12440
  }
12707
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12708
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12709
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12441
+ IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12442
+ IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12710
12444
  type: Injectable,
12711
12445
  args: [{
12712
12446
  providedIn: 'root'
@@ -12776,9 +12510,9 @@ class SalaryForecastService extends RestService {
12776
12510
  }).flat();
12777
12511
  }
12778
12512
  }
12779
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12780
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, decorators: [{
12513
+ SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12514
+ SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12515
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SalaryForecastService, decorators: [{
12782
12516
  type: Injectable,
12783
12517
  args: [{
12784
12518
  providedIn: 'root'
@@ -12854,9 +12588,9 @@ class SoleForecastService extends RestService {
12854
12588
  });
12855
12589
  }
12856
12590
  }
12857
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12858
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, decorators: [{
12591
+ SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12592
+ SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleForecastService, decorators: [{
12860
12594
  type: Injectable,
12861
12595
  args: [{
12862
12596
  providedIn: 'root'
@@ -12935,9 +12669,9 @@ class IncomeSourceService extends RestService {
12935
12669
  });
12936
12670
  }
12937
12671
  }
12938
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12939
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, decorators: [{
12672
+ IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12673
+ IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceService, decorators: [{
12941
12675
  type: Injectable,
12942
12676
  args: [{
12943
12677
  providedIn: 'root'
@@ -12998,9 +12732,9 @@ class BorrowingExpenseService {
12998
12732
  }));
12999
12733
  }
13000
12734
  }
13001
- 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 });
13002
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
13003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, decorators: [{
12735
+ 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 });
12736
+ BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
12737
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingExpenseService, decorators: [{
13004
12738
  type: Injectable,
13005
12739
  args: [{
13006
12740
  providedIn: 'root'
@@ -13080,9 +12814,9 @@ class LoanService extends RestService$1 {
13080
12814
  }));
13081
12815
  }
13082
12816
  }
13083
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13084
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, providedIn: 'root' });
13085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, decorators: [{
12817
+ LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12818
+ LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, providedIn: 'root' });
12819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LoanService, decorators: [{
13086
12820
  type: Injectable,
13087
12821
  args: [{
13088
12822
  providedIn: 'root'
@@ -13099,9 +12833,9 @@ class BorrowingReportService extends RestService$1 {
13099
12833
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13100
12834
  }
13101
12835
  }
13102
- BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13103
- BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
13104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, decorators: [{
12836
+ BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12837
+ BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
12838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BorrowingReportService, decorators: [{
13105
12839
  type: Injectable,
13106
12840
  args: [{
13107
12841
  providedIn: 'root'
@@ -13127,9 +12861,9 @@ class PropertyCategoryService extends RestService$1 {
13127
12861
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13128
12862
  }
13129
12863
  }
13130
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13131
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
13132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, decorators: [{
12864
+ PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12865
+ PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
12866
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryService, decorators: [{
13133
12867
  type: Injectable,
13134
12868
  args: [{
13135
12869
  providedIn: 'root'
@@ -13145,15 +12879,23 @@ class PropertyCategoryMovementService extends RestService$1 {
13145
12879
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13146
12880
  }
13147
12881
  }
13148
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13149
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
13150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
12882
+ PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12883
+ PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
12884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
13151
12885
  type: Injectable,
13152
12886
  args: [{
13153
12887
  providedIn: 'root'
13154
12888
  }]
13155
12889
  }] });
13156
12890
 
12891
+ var PropertyDocumentMessagesEnum;
12892
+ (function (PropertyDocumentMessagesEnum) {
12893
+ PropertyDocumentMessagesEnum["CREATED"] = "Property document created";
12894
+ PropertyDocumentMessagesEnum["UPDATED"] = "Property document updated";
12895
+ PropertyDocumentMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete the document?";
12896
+ PropertyDocumentMessagesEnum["DELETED"] = "Property document deleted";
12897
+ })(PropertyDocumentMessagesEnum || (PropertyDocumentMessagesEnum = {}));
12898
+
13157
12899
  /**
13158
12900
  * Class for work with Property Documents
13159
12901
  */
@@ -13162,8 +12904,9 @@ class PropertyDocumentService extends RestService$1 {
13162
12904
  super(...arguments);
13163
12905
  this.modelClass = PropertyDocument;
13164
12906
  this.collectionClass = Collection;
13165
- this.endpointUri = 'properties/documents';
13166
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch'];
12907
+ this.endpointUri = 'property-documents';
12908
+ this.disabledMethods = ['postBatch', 'putBatch'];
12909
+ this.isApiPlatform = true;
13167
12910
  }
13168
12911
  /**
13169
12912
  * Add new Property Document
@@ -13189,9 +12932,9 @@ class PropertyDocumentService extends RestService$1 {
13189
12932
  });
13190
12933
  }
13191
12934
  }
13192
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13193
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, decorators: [{
12935
+ PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12936
+ PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
12937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyDocumentService, decorators: [{
13195
12938
  type: Injectable,
13196
12939
  args: [{
13197
12940
  providedIn: 'root'
@@ -13270,9 +13013,9 @@ class TaxExemptionService extends DataService {
13270
13013
  this.setCache(TaxExemptions);
13271
13014
  }
13272
13015
  }
13273
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13274
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, decorators: [{
13016
+ TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13017
+ TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13018
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxExemptionService, decorators: [{
13276
13019
  type: Injectable,
13277
13020
  args: [{
13278
13021
  providedIn: 'root'
@@ -13288,9 +13031,9 @@ class PropertySaleService extends RestService$1 {
13288
13031
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13289
13032
  }
13290
13033
  }
13291
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13292
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, decorators: [{
13034
+ PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13035
+ PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13036
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertySaleService, decorators: [{
13294
13037
  type: Injectable,
13295
13038
  args: [{
13296
13039
  providedIn: 'root'
@@ -13336,15 +13079,59 @@ class PropertyShareService extends RestService$1 {
13336
13079
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13337
13080
  }
13338
13081
  }
13339
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13340
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, decorators: [{
13082
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13083
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyShareService, decorators: [{
13085
+ type: Injectable,
13086
+ args: [{
13087
+ providedIn: 'root'
13088
+ }]
13089
+ }] });
13090
+
13091
+ /**
13092
+ * @TODO Alex: refacotor with api platform (old endpoint)
13093
+ */
13094
+ class PropertyValuationService extends RestService$1 {
13095
+ constructor() {
13096
+ super(...arguments);
13097
+ this.endpointUri = 'properties';
13098
+ this.modelClass = PropertyValuation;
13099
+ this.collectionClass = (Collection);
13100
+ this.disabledMethods = ['postBatch', 'putBatch'];
13101
+ this.isApiPlatform = true;
13102
+ }
13103
+ get(propertyId) {
13104
+ return this.http.get(`${this.apiUrl}/${propertyId}/valuations`)
13105
+ .pipe(map((valuations) => new Collection(valuations.map((valuation) => plainToClass(PropertyValuation, valuation)))));
13106
+ }
13107
+ post(valuation, propertyId) {
13108
+ return super.post(valuation, `${this.apiUrl}/${propertyId}/valuations`);
13109
+ }
13110
+ put(valuation, propertyId) {
13111
+ return super.put(valuation, `${this.apiUrl}/${propertyId}/valuations/${valuation.id}`);
13112
+ }
13113
+ }
13114
+ PropertyValuationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13115
+ PropertyValuationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, providedIn: 'root' });
13116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyValuationService, decorators: [{
13342
13117
  type: Injectable,
13343
13118
  args: [{
13344
13119
  providedIn: 'root'
13345
13120
  }]
13346
13121
  }] });
13347
13122
 
13123
+ var PropertyValuationMessages;
13124
+ (function (PropertyValuationMessages) {
13125
+ PropertyValuationMessages["CREATED"] = "Property valuation created";
13126
+ PropertyValuationMessages["UPDATED"] = "Property valuation updated";
13127
+ })(PropertyValuationMessages || (PropertyValuationMessages = {}));
13128
+
13129
+ var PropertyMessagesEnum;
13130
+ (function (PropertyMessagesEnum) {
13131
+ PropertyMessagesEnum["PHOTO_UPDATED"] = "Property photo updated";
13132
+ PropertyMessagesEnum["PROPERTY_UPDATED"] = "Property updated";
13133
+ })(PropertyMessagesEnum || (PropertyMessagesEnum = {}));
13134
+
13348
13135
  /**
13349
13136
  * @Todo Alex remove functionality related to PropertyShare
13350
13137
  * @TODO Alex (TT-1777): replace all event listeners with the new this.listen()
@@ -13376,6 +13163,7 @@ class PropertyService extends RestService$1 {
13376
13163
  // @TODO Alex: consider to refactor property movements logic similar to client-movements
13377
13164
  this.listenMovementsChanges();
13378
13165
  this.listenSalesChanges();
13166
+ this.listenValuations();
13379
13167
  }
13380
13168
  /**
13381
13169
  * Update cache when share invitation accepted
@@ -13395,6 +13183,9 @@ class PropertyService extends RestService$1 {
13395
13183
  listenSalesChanges() {
13396
13184
  this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13397
13185
  }
13186
+ listenValuations() {
13187
+ this.listenCSE(PropertyValuation, ['post', 'put'], this.refreshCache);
13188
+ }
13398
13189
  updateDepreciationCalculation(property) {
13399
13190
  const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
13400
13191
  return this.put(propertyToUpdate)
@@ -13435,9 +13226,9 @@ class PropertyService extends RestService$1 {
13435
13226
  }));
13436
13227
  }
13437
13228
  }
13438
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13439
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, providedIn: 'root' });
13440
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, decorators: [{
13229
+ PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13230
+ PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, providedIn: 'root' });
13231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyService, decorators: [{
13441
13232
  type: Injectable,
13442
13233
  args: [{
13443
13234
  providedIn: 'root'
@@ -13491,9 +13282,9 @@ class ServiceNotificationService extends RestService {
13491
13282
  });
13492
13283
  }
13493
13284
  }
13494
- 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 });
13495
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13496
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, decorators: [{
13285
+ 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 });
13286
+ ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceNotificationService, decorators: [{
13497
13288
  type: Injectable,
13498
13289
  args: [{
13499
13290
  providedIn: 'root'
@@ -13503,12 +13294,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
13503
13294
  args: ['environment']
13504
13295
  }] }, { type: ToastService }, { type: SseService }]; } });
13505
13296
 
13506
- var MessagesEnum$3;
13507
- (function (MessagesEnum) {
13508
- MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13509
- MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
13510
- MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
13511
- })(MessagesEnum$3 || (MessagesEnum$3 = {}));
13297
+ var SoleBusinessMessagesEnum;
13298
+ (function (SoleBusinessMessagesEnum) {
13299
+ SoleBusinessMessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
13300
+ })(SoleBusinessMessagesEnum || (SoleBusinessMessagesEnum = {}));
13512
13301
 
13513
13302
  class SoleBusinessService extends RestService {
13514
13303
  constructor() {
@@ -13523,28 +13312,10 @@ class SoleBusinessService extends RestService {
13523
13312
  return business;
13524
13313
  }));
13525
13314
  }
13526
- uploadLogo(business, file) {
13527
- const formData = new FormData();
13528
- formData.append('file', file);
13529
- return this.http.post(`${this.environment.apiV2}/${this.url}/${business.id}/logo`, formData)
13530
- .pipe(map((updatedBusiness) => {
13531
- const tempCache = cloneDeep$1(this.cache);
13532
- replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
13533
- this.cache = tempCache;
13534
- this.cacheSubject.next(this.cache);
13535
- this.toastService.success(MessagesEnum$3.LOGO_UPDATED);
13536
- }), catchError((error) => {
13537
- // Show error when user provided wrong image (format or size)
13538
- if (error.status === 422) {
13539
- this.toastService.error(error.error.violations[0].message);
13540
- }
13541
- return throwError(error);
13542
- }));
13543
- }
13544
13315
  }
13545
- SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13546
- SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, decorators: [{
13316
+ SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13317
+ SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessService, decorators: [{
13548
13319
  type: Injectable,
13549
13320
  args: [{
13550
13321
  providedIn: 'root'
@@ -13559,9 +13330,9 @@ class SoleBusinessActivityService extends RestService {
13559
13330
  this.isHydra = true;
13560
13331
  }
13561
13332
  }
13562
- SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13563
- SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13564
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13333
+ SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13334
+ SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13565
13336
  type: Injectable,
13566
13337
  args: [{
13567
13338
  providedIn: 'root'
@@ -13587,9 +13358,9 @@ class SoleBusinessLossService extends RestService {
13587
13358
  });
13588
13359
  }
13589
13360
  }
13590
- SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13591
- SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13592
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13361
+ SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13362
+ SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13593
13364
  type: Injectable,
13594
13365
  args: [{
13595
13366
  providedIn: 'root'
@@ -13607,9 +13378,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
13607
13378
  this.isHydra = true;
13608
13379
  }
13609
13380
  }
13610
- SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13611
- SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13381
+ SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13382
+ SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13613
13384
  type: Injectable,
13614
13385
  args: [{
13615
13386
  providedIn: 'root'
@@ -13624,9 +13395,9 @@ class SoleContactService extends RestService {
13624
13395
  this.isHydra = true;
13625
13396
  }
13626
13397
  }
13627
- SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13628
- SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, decorators: [{
13398
+ SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13399
+ SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleContactService, decorators: [{
13630
13401
  type: Injectable,
13631
13402
  args: [{
13632
13403
  providedIn: 'root'
@@ -13682,9 +13453,9 @@ class SoleDepreciationMethodService {
13682
13453
  });
13683
13454
  }
13684
13455
  }
13685
- 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 });
13686
- SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13456
+ 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 });
13457
+ SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13688
13459
  type: Injectable,
13689
13460
  args: [{
13690
13461
  providedIn: 'root'
@@ -13737,9 +13508,9 @@ class SoleDetailsService {
13737
13508
  }));
13738
13509
  }
13739
13510
  }
13740
- 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 });
13741
- SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13742
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, decorators: [{
13511
+ 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 });
13512
+ SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleDetailsService, decorators: [{
13743
13514
  type: Injectable,
13744
13515
  args: [{
13745
13516
  providedIn: 'root'
@@ -13813,9 +13584,9 @@ class SoleInvoiceService extends RestService {
13813
13584
  });
13814
13585
  }
13815
13586
  }
13816
- SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13817
- SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, decorators: [{
13587
+ SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13588
+ SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceService, decorators: [{
13819
13590
  type: Injectable,
13820
13591
  args: [{
13821
13592
  providedIn: 'root'
@@ -13830,9 +13601,9 @@ class SoleInvoiceTemplateService extends RestService {
13830
13601
  this.isHydra = true;
13831
13602
  }
13832
13603
  }
13833
- SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13834
- SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13604
+ SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13605
+ SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13836
13607
  type: Injectable,
13837
13608
  args: [{
13838
13609
  providedIn: 'root'
@@ -13847,9 +13618,9 @@ class BasReportService extends RestService {
13847
13618
  this.isHydra = true;
13848
13619
  }
13849
13620
  }
13850
- BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13851
- BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, providedIn: 'root' });
13852
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, decorators: [{
13621
+ BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13622
+ BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, providedIn: 'root' });
13623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasReportService, decorators: [{
13853
13624
  type: Injectable,
13854
13625
  args: [{
13855
13626
  providedIn: 'root'
@@ -13875,9 +13646,9 @@ class ServicePaymentService extends RestService$1 {
13875
13646
  return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
13876
13647
  }
13877
13648
  }
13878
- ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13879
- ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, decorators: [{
13649
+ ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13650
+ ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentService, decorators: [{
13881
13652
  type: Injectable,
13882
13653
  args: [{
13883
13654
  providedIn: 'root'
@@ -13925,9 +13696,9 @@ class ServicePaymentMethodService extends RestService$1 {
13925
13696
  });
13926
13697
  }
13927
13698
  }
13928
- 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 });
13929
- ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13699
+ 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 });
13700
+ ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13931
13702
  type: Injectable,
13932
13703
  args: [{
13933
13704
  providedIn: 'root'
@@ -13950,9 +13721,9 @@ class ServicePriceService extends RestService$1 {
13950
13721
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
13951
13722
  }
13952
13723
  }
13953
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13954
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13955
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, decorators: [{
13724
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13725
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServicePriceService, decorators: [{
13956
13727
  type: Injectable,
13957
13728
  args: [{
13958
13729
  providedIn: 'root'
@@ -14067,9 +13838,9 @@ class SubscriptionService extends RestService$1 {
14067
13838
  });
14068
13839
  }
14069
13840
  }
14070
- 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 });
14071
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
14072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, decorators: [{
13841
+ 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 });
13842
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
13843
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SubscriptionService, decorators: [{
14073
13844
  type: Injectable,
14074
13845
  args: [{
14075
13846
  providedIn: 'root'
@@ -14089,9 +13860,9 @@ class ServiceProductService extends RestService$1 {
14089
13860
  this.isApiPlatform = true;
14090
13861
  }
14091
13862
  }
14092
- ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14093
- ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
14094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, decorators: [{
13863
+ ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13864
+ ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
13865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ServiceProductService, decorators: [{
14095
13866
  type: Injectable,
14096
13867
  args: [{
14097
13868
  providedIn: 'root'
@@ -14217,9 +13988,9 @@ class TaxReviewHistoryService extends RestService {
14217
13988
  });
14218
13989
  }
14219
13990
  }
14220
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14221
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
13991
+ TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13992
+ TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
13993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
14223
13994
  type: Injectable,
14224
13995
  args: [{
14225
13996
  providedIn: 'root'
@@ -14308,9 +14079,9 @@ class TaxReviewService extends RestService {
14308
14079
  });
14309
14080
  }
14310
14081
  }
14311
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14312
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, decorators: [{
14082
+ TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14083
+ TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReviewService, decorators: [{
14314
14085
  type: Injectable,
14315
14086
  args: [{
14316
14087
  providedIn: 'root'
@@ -14581,9 +14352,9 @@ class TaxSummaryService {
14581
14352
  });
14582
14353
  }
14583
14354
  }
14584
- 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 });
14585
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, decorators: [{
14355
+ 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 });
14356
+ TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxSummaryService, decorators: [{
14587
14358
  type: Injectable,
14588
14359
  args: [{
14589
14360
  providedIn: 'root'
@@ -14602,9 +14373,9 @@ class AllocationRuleService extends RestService$1 {
14602
14373
  this.isApiPlatform = true;
14603
14374
  }
14604
14375
  }
14605
- AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14606
- AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14607
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, decorators: [{
14376
+ AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14377
+ AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AllocationRuleService, decorators: [{
14608
14379
  type: Injectable,
14609
14380
  args: [{
14610
14381
  providedIn: 'root'
@@ -14694,57 +14465,25 @@ class TransactionAllocationService extends RestService {
14694
14465
  });
14695
14466
  }
14696
14467
  }
14697
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14698
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, decorators: [{
14468
+ TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14469
+ TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionAllocationService, decorators: [{
14700
14471
  type: Injectable,
14701
14472
  args: [{
14702
14473
  providedIn: 'root'
14703
14474
  }]
14704
14475
  }] });
14705
14476
 
14706
- /**
14707
- * @Todo TT-2191 refactor service when receipts API will be updated
14708
- */
14709
- class TransactionReceiptService extends ReceiptService {
14710
- constructor(http, eventDispatcherService, environment, toastService) {
14711
- super(http, eventDispatcherService, environment, toastService);
14712
- this.http = http;
14713
- this.eventDispatcherService = eventDispatcherService;
14714
- this.environment = environment;
14715
- this.toastService = toastService;
14716
- this.modelClass = TransactionReceipt;
14717
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
14718
- this.receiptCreatedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED;
14719
- this.receiptDeletedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED;
14720
- this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT;
14721
- this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT;
14722
- this.listenEvents();
14723
- }
14724
- }
14725
- 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 });
14726
- TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
14727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, decorators: [{
14728
- type: Injectable,
14729
- args: [{
14730
- providedIn: 'root'
14731
- }]
14732
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
14733
- type: Inject,
14734
- args: ['environment']
14735
- }] }, { type: ToastService }]; } });
14736
-
14737
14477
  /**
14738
14478
  * Service for transactions business logic
14739
14479
  */
14740
14480
  class TransactionService extends RestService {
14741
- constructor(http, eventDispatcherService, environment, toastService, transactionReceiptService) {
14481
+ constructor(http, eventDispatcherService, environment, toastService) {
14742
14482
  super(http, eventDispatcherService, environment, toastService);
14743
14483
  this.http = http;
14744
14484
  this.eventDispatcherService = eventDispatcherService;
14745
14485
  this.environment = environment;
14746
14486
  this.toastService = toastService;
14747
- this.transactionReceiptService = transactionReceiptService;
14748
14487
  // url part for Transaction API
14749
14488
  this.url = 'transactions';
14750
14489
  this.modelClass = Transaction;
@@ -14756,8 +14495,6 @@ class TransactionService extends RestService {
14756
14495
  listenEvents() {
14757
14496
  this.listenDepreciationChange();
14758
14497
  this.listenPropertyShareUpdate();
14759
- this.listenReceiptAdded();
14760
- this.listenReceiptDeleted();
14761
14498
  this.listenVehicleClaimChanges();
14762
14499
  this.listenPropertyForecastUpdate();
14763
14500
  this.listenInvoicesPublish();
@@ -14832,13 +14569,6 @@ class TransactionService extends RestService {
14832
14569
  .pipe(map((response) => {
14833
14570
  const addedTransactions = response.map((item) => this.createModelInstance(item));
14834
14571
  transactions.forEach((transaction, index) => {
14835
- // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
14836
- // check if passed receipt and upload file
14837
- if (transaction.file) {
14838
- transaction.id = response[index].id;
14839
- addedTransactions[index].file = transaction.file;
14840
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, addedTransactions[index]));
14841
- }
14842
14572
  // @TODO Viktor: implement API for saving of nested transactions
14843
14573
  // add child transactions if exist
14844
14574
  if (transaction.transactions.length) {
@@ -14868,16 +14598,6 @@ class TransactionService extends RestService {
14868
14598
  return this.http.put(`${this.environment.apiV2}/${this.url}/${transaction.id}`, classToPlain(transaction))
14869
14599
  .pipe(map((response) => {
14870
14600
  const updatedTransaction = this.createModelInstance(response);
14871
- // @TODO need to upload file in the same backend endpoint with transaction add/update
14872
- // check if passed new receipt and upload file
14873
- if (transaction.file) {
14874
- updatedTransaction.file = transaction.file;
14875
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, updatedTransaction));
14876
- // receipt file was removed from form - we should delete receipt from transaction
14877
- }
14878
- else if (!transaction.file && transaction.receipt) {
14879
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT, updatedTransaction));
14880
- }
14881
14601
  // @TODO Viktor: implement API for saving of nested transactions
14882
14602
  if (transaction.transactions.length) {
14883
14603
  // add parent transaction to child transactions
@@ -14976,22 +14696,6 @@ class TransactionService extends RestService {
14976
14696
  listenPropertyShareUpdate() {
14977
14697
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
14978
14698
  }
14979
- listenReceiptAdded() {
14980
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
14981
- const transactionToUpdate = this.find(transactionReceipt.transaction.id);
14982
- // we don't need to keep file after save
14983
- transactionToUpdate.file = null;
14984
- transactionToUpdate.receipt = transactionReceipt;
14985
- this.replaceInCache(transactionToUpdate);
14986
- });
14987
- }
14988
- listenReceiptDeleted() {
14989
- this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED).subscribe((transaction) => {
14990
- const transactionToUpdate = this.find(transaction.id);
14991
- transactionToUpdate.receipt = null;
14992
- this.replaceInCache(transactionToUpdate);
14993
- });
14994
- }
14995
14699
  listenVehicleClaimChanges() {
14996
14700
  this.eventDispatcherService.on([
14997
14701
  AppEventTypeEnum.VEHICLE_CLAIM_CREATED,
@@ -15020,9 +14724,9 @@ class TransactionService extends RestService {
15020
14724
  });
15021
14725
  }
15022
14726
  }
15023
- 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 });
15024
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, providedIn: 'root' });
15025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, decorators: [{
14727
+ 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 });
14728
+ TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionService, providedIn: 'root' });
14729
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionService, decorators: [{
15026
14730
  type: Injectable,
15027
14731
  args: [{
15028
14732
  providedIn: 'root'
@@ -15030,7 +14734,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
15030
14734
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15031
14735
  type: Inject,
15032
14736
  args: ['environment']
15033
- }] }, { type: ToastService }, { type: TransactionReceiptService }]; } });
14737
+ }] }, { type: ToastService }]; } });
15034
14738
 
15035
14739
  // @TODO Artem: implement cache and extend rest?
15036
14740
  class TutorialVideoService {
@@ -15051,9 +14755,9 @@ class TutorialVideoService {
15051
14755
  }
15052
14756
  TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
15053
14757
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
15054
- 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 });
15055
- TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
15056
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, decorators: [{
14758
+ 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 });
14759
+ TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
14760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TutorialVideoService, decorators: [{
15057
14761
  type: Injectable,
15058
14762
  args: [{
15059
14763
  providedIn: 'root'
@@ -15073,9 +14777,9 @@ class VehicleService extends RestService {
15073
14777
  this.modelClass = Vehicle;
15074
14778
  }
15075
14779
  }
15076
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15077
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, providedIn: 'root' });
15078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, decorators: [{
14780
+ VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14781
+ VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, providedIn: 'root' });
14782
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleService, decorators: [{
15079
14783
  type: Injectable,
15080
14784
  args: [{
15081
14785
  providedIn: 'root'
@@ -15148,9 +14852,9 @@ class VehicleClaimService extends RestService {
15148
14852
  combineLatest(batch$).subscribe();
15149
14853
  }
15150
14854
  }
15151
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15152
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
15153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, decorators: [{
14855
+ VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14856
+ VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
14857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimService, decorators: [{
15154
14858
  type: Injectable,
15155
14859
  args: [{
15156
14860
  providedIn: 'root'
@@ -15227,9 +14931,9 @@ class VehicleClaimDetailsService {
15227
14931
  this.update(vehicleClaimDetails).subscribe();
15228
14932
  }
15229
14933
  }
15230
- 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 });
15231
- VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
14934
+ 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 });
14935
+ VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
14936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
15233
14937
  type: Injectable,
15234
14938
  args: [{
15235
14939
  providedIn: 'root'
@@ -15249,9 +14953,9 @@ class VehicleLogbookService extends RestService {
15249
14953
  this.modelClass = VehicleLogbook;
15250
14954
  }
15251
14955
  }
15252
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15253
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, decorators: [{
14956
+ VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14957
+ VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
14958
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VehicleLogbookService, decorators: [{
15255
14959
  type: Injectable,
15256
14960
  args: [{
15257
14961
  providedIn: 'root'
@@ -15268,9 +14972,9 @@ class AnnualClientDetailsService extends RestService$1 {
15268
14972
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15269
14973
  }
15270
14974
  }
15271
- AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15272
- AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
14975
+ AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14976
+ AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
14977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
15274
14978
  type: Injectable,
15275
14979
  args: [{
15276
14980
  providedIn: 'root'
@@ -15301,9 +15005,9 @@ class OccupationService {
15301
15005
  return this.occupationsSubject.asObservable();
15302
15006
  }
15303
15007
  }
15304
- 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 });
15305
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, providedIn: 'root' });
15306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, decorators: [{
15008
+ 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 });
15009
+ OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OccupationService, providedIn: 'root' });
15010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OccupationService, decorators: [{
15307
15011
  type: Injectable,
15308
15012
  args: [{
15309
15013
  providedIn: 'root'
@@ -15378,9 +15082,9 @@ class UserEventSettingService extends RestService {
15378
15082
  }));
15379
15083
  }
15380
15084
  }
15381
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15382
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, decorators: [{
15085
+ UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15086
+ UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventSettingService, decorators: [{
15384
15088
  type: Injectable,
15385
15089
  args: [{
15386
15090
  providedIn: 'root'
@@ -15395,15 +15099,22 @@ class UserEventTypeService extends RestService {
15395
15099
  this.isHydra = true;
15396
15100
  }
15397
15101
  }
15398
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15399
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, decorators: [{
15102
+ UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15103
+ UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserEventTypeService, decorators: [{
15401
15105
  type: Injectable,
15402
15106
  args: [{
15403
15107
  providedIn: 'root'
15404
15108
  }]
15405
15109
  }] });
15406
15110
 
15111
+ var UserMessagesEnum;
15112
+ (function (UserMessagesEnum) {
15113
+ UserMessagesEnum["PHOTO_UPDATED"] = "Profile photo updated";
15114
+ UserMessagesEnum["USER_DATA_UPDATED"] = "Data was successfully updated!";
15115
+ UserMessagesEnum["CLIENT_DETAILS_UPDATED"] = "Client details updated";
15116
+ })(UserMessagesEnum || (UserMessagesEnum = {}));
15117
+
15407
15118
  /**
15408
15119
  * Service to work with invitations for unregistered users
15409
15120
  */
@@ -15414,9 +15125,9 @@ class UsersInviteService extends RestService {
15414
15125
  this.url = 'users/invite';
15415
15126
  }
15416
15127
  }
15417
- UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15418
- UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, decorators: [{
15128
+ UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15129
+ UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UsersInviteService, decorators: [{
15420
15131
  type: Injectable,
15421
15132
  args: [{
15422
15133
  providedIn: 'root'
@@ -15501,9 +15212,9 @@ class UserService extends RestService$1 {
15501
15212
  this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
15502
15213
  }
15503
15214
  }
15504
- 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 });
15505
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, providedIn: 'root' });
15506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, decorators: [{
15215
+ 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 });
15216
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserService, providedIn: 'root' });
15217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserService, decorators: [{
15507
15218
  type: Injectable,
15508
15219
  args: [{
15509
15220
  providedIn: 'root'
@@ -15525,9 +15236,9 @@ class FinancialYearService {
15525
15236
  }));
15526
15237
  }
15527
15238
  }
15528
- 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 });
15529
- FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15530
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, decorators: [{
15239
+ 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 });
15240
+ FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: FinancialYearService, decorators: [{
15531
15242
  type: Injectable,
15532
15243
  args: [{
15533
15244
  providedIn: 'root'
@@ -15551,9 +15262,9 @@ class HoldingService extends RestService$1 {
15551
15262
  this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
15552
15263
  }
15553
15264
  }
15554
- HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15555
- HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, providedIn: 'root' });
15556
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, decorators: [{
15265
+ HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15266
+ HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, providedIn: 'root' });
15267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingService, decorators: [{
15557
15268
  type: Injectable,
15558
15269
  args: [{
15559
15270
  providedIn: 'root'
@@ -15570,9 +15281,9 @@ class HoldingTypeService extends RestService$1 {
15570
15281
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15571
15282
  }
15572
15283
  }
15573
- HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15574
- HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15575
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, decorators: [{
15284
+ HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15285
+ HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeService, decorators: [{
15576
15287
  type: Injectable,
15577
15288
  args: [{
15578
15289
  providedIn: 'root'
@@ -15589,9 +15300,9 @@ class HoldingSaleService extends RestService$1 {
15589
15300
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15590
15301
  }
15591
15302
  }
15592
- HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15593
- HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, decorators: [{
15303
+ HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15304
+ HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingSaleService, decorators: [{
15595
15306
  type: Injectable,
15596
15307
  args: [{
15597
15308
  providedIn: 'root'
@@ -15686,9 +15397,9 @@ class HoldingTypeExchangeService extends DataService {
15686
15397
  this.setCache(HoldingTypeExchanges);
15687
15398
  }
15688
15399
  }
15689
- HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15690
- HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15691
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15400
+ HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15401
+ HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15692
15403
  type: Injectable,
15693
15404
  args: [{
15694
15405
  providedIn: 'root'
@@ -15792,9 +15503,9 @@ class IncomeSourceTypeService extends DataService {
15792
15503
  this.setCache(IncomeSourceTypes);
15793
15504
  }
15794
15505
  }
15795
- IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15796
- IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15506
+ IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15507
+ IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15508
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15798
15509
  type: Injectable,
15799
15510
  args: [{
15800
15511
  providedIn: 'root'
@@ -15816,9 +15527,9 @@ class ChartAccountsValueService extends DataService {
15816
15527
  return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
15817
15528
  }
15818
15529
  }
15819
- ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15820
- ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15821
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15530
+ ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15531
+ ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15822
15533
  type: Injectable,
15823
15534
  args: [{
15824
15535
  providedIn: 'root'
@@ -17908,9 +17619,9 @@ class TaxReturnItemService extends DataService {
17908
17619
  this.setCache(TaxReturnItems);
17909
17620
  }
17910
17621
  }
17911
- TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17912
- TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
17913
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, decorators: [{
17622
+ TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17623
+ TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
17624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TaxReturnItemService, decorators: [{
17914
17625
  type: Injectable,
17915
17626
  args: [{
17916
17627
  providedIn: 'root'
@@ -18140,9 +17851,9 @@ class AccountSetupService {
18140
17851
  return this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.getArray());
18141
17852
  }
18142
17853
  }
18143
- 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 });
18144
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
18145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, decorators: [{
17854
+ 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 });
17855
+ AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
17856
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AccountSetupService, decorators: [{
18146
17857
  type: Injectable,
18147
17858
  args: [{
18148
17859
  providedIn: 'root'
@@ -18168,9 +17879,9 @@ class RewardfulService {
18168
17879
  });
18169
17880
  }
18170
17881
  }
18171
- RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18172
- RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, decorators: [{
17882
+ RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
17883
+ RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, providedIn: 'root' });
17884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RewardfulService, decorators: [{
18174
17885
  type: Injectable,
18175
17886
  args: [{
18176
17887
  providedIn: 'root'
@@ -18206,9 +17917,9 @@ class UserSwitcherService {
18206
17917
  window.location.replace('/firm/dashboard');
18207
17918
  }
18208
17919
  }
18209
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18210
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, decorators: [{
17920
+ UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17921
+ UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
17922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherService, decorators: [{
18212
17923
  type: Injectable,
18213
17924
  args: [{
18214
17925
  providedIn: 'root'
@@ -18250,9 +17961,9 @@ class AssetsService {
18250
17961
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
18251
17962
  }
18252
17963
  }
18253
- 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 });
18254
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, providedIn: 'root' });
18255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, decorators: [{
17964
+ 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 });
17965
+ AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AssetsService, providedIn: 'root' });
17966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: AssetsService, decorators: [{
18256
17967
  type: Injectable,
18257
17968
  args: [{
18258
17969
  providedIn: 'root'
@@ -18311,9 +18022,9 @@ class BankTransactionCalculationService {
18311
18022
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
18312
18023
  }
18313
18024
  }
18314
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18315
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18025
+ BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18026
+ BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18317
18028
  type: Injectable,
18318
18029
  args: [{
18319
18030
  providedIn: 'root'
@@ -18342,9 +18053,9 @@ class BankAccountCalculationService {
18342
18053
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
18343
18054
  }
18344
18055
  }
18345
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18346
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18056
+ BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18057
+ BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18348
18059
  type: Injectable,
18349
18060
  args: [{
18350
18061
  providedIn: 'root'
@@ -18372,9 +18083,9 @@ class ExportFormatterService {
18372
18083
  }));
18373
18084
  }
18374
18085
  }
18375
- 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 });
18376
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18377
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, decorators: [{
18086
+ 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 });
18087
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ExportFormatterService, decorators: [{
18378
18089
  type: Injectable,
18379
18090
  args: [{
18380
18091
  providedIn: 'root'
@@ -18395,9 +18106,9 @@ class HeaderTitleService {
18395
18106
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
18396
18107
  }
18397
18108
  }
18398
- 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 });
18399
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, decorators: [{
18109
+ 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 });
18110
+ HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: HeaderTitleService, decorators: [{
18401
18112
  type: Injectable,
18402
18113
  args: [{
18403
18114
  providedIn: 'root'
@@ -18431,9 +18142,9 @@ class IntercomService {
18431
18142
  window.Intercom('boot', connectionCredentials);
18432
18143
  }
18433
18144
  }
18434
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18435
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, providedIn: 'root' });
18436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, decorators: [{
18145
+ IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18146
+ IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, providedIn: 'root' });
18147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: IntercomService, decorators: [{
18437
18148
  type: Injectable,
18438
18149
  args: [{
18439
18150
  providedIn: 'root'
@@ -18503,9 +18214,9 @@ class PdfFromDomElementService {
18503
18214
  .then((blob) => new File([blob], filename, { type: 'application/pdf' })));
18504
18215
  }
18505
18216
  }
18506
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18507
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18217
+ PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18218
+ PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18509
18220
  type: Injectable,
18510
18221
  args: [{
18511
18222
  providedIn: 'root'
@@ -18599,9 +18310,9 @@ class PdfFromTableService {
18599
18310
  .setTextColor(FILE_SETTINGS.text.colorPrimary);
18600
18311
  }
18601
18312
  }
18602
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18603
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, decorators: [{
18313
+ PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18314
+ PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromTableService, decorators: [{
18605
18316
  type: Injectable,
18606
18317
  args: [{
18607
18318
  providedIn: 'root'
@@ -18640,9 +18351,9 @@ class PdfFromDataTableService extends PdfFromTableService {
18640
18351
  return pdf;
18641
18352
  }
18642
18353
  }
18643
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18644
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18354
+ PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18355
+ PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18646
18357
  type: Injectable,
18647
18358
  args: [{
18648
18359
  providedIn: 'root'
@@ -18678,9 +18389,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
18678
18389
  return pdf;
18679
18390
  }
18680
18391
  }
18681
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18682
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18392
+ PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18393
+ PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18684
18395
  type: Injectable,
18685
18396
  args: [{
18686
18397
  providedIn: 'root'
@@ -18705,9 +18416,9 @@ class PreloaderService {
18705
18416
  this.activePreloaders.next(activePreloaders);
18706
18417
  }
18707
18418
  }
18708
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18709
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18710
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, decorators: [{
18419
+ PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18420
+ PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderService, decorators: [{
18711
18422
  type: Injectable,
18712
18423
  args: [{
18713
18424
  providedIn: 'root'
@@ -18734,9 +18445,9 @@ class EquityPositionChartService {
18734
18445
  }))));
18735
18446
  }
18736
18447
  }
18737
- 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 });
18738
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18739
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, decorators: [{
18448
+ 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 });
18449
+ EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: EquityPositionChartService, decorators: [{
18740
18451
  type: Injectable,
18741
18452
  args: [{
18742
18453
  providedIn: 'root'
@@ -18909,9 +18620,9 @@ class PropertyCalculationService {
18909
18620
  }
18910
18621
  }
18911
18622
  }
18912
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18913
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
18914
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, decorators: [{
18623
+ PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18624
+ PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
18625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyCalculationService, decorators: [{
18915
18626
  type: Injectable,
18916
18627
  args: [{
18917
18628
  providedIn: 'root'
@@ -18964,9 +18675,9 @@ class PropertyTransactionReportService {
18964
18675
  .getWithoutBorrowingExpenses()));
18965
18676
  }
18966
18677
  }
18967
- 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 });
18968
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
18969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
18678
+ 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 });
18679
+ PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
18680
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
18970
18681
  type: Injectable,
18971
18682
  args: [{
18972
18683
  providedIn: 'root'
@@ -19037,9 +18748,9 @@ class TransactionCalculationService {
19037
18748
  return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
19038
18749
  }
19039
18750
  }
19040
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19041
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
19042
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, decorators: [{
18751
+ TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18752
+ TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
18753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TransactionCalculationService, decorators: [{
19043
18754
  type: Injectable,
19044
18755
  args: [{
19045
18756
  providedIn: 'root'
@@ -19099,9 +18810,9 @@ class LogbookBestPeriodService {
19099
18810
  });
19100
18811
  }
19101
18812
  }
19102
- 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 });
19103
- LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
19104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
18813
+ 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 });
18814
+ LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
18815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
19105
18816
  type: Injectable,
19106
18817
  args: [{
19107
18818
  providedIn: 'root'
@@ -19179,9 +18890,9 @@ class XlsxService {
19179
18890
  FileSaver.saveAs(data, `${fileName}.xlsx`);
19180
18891
  }
19181
18892
  }
19182
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19183
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, providedIn: 'root' });
19184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, decorators: [{
18893
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18894
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, providedIn: 'root' });
18895
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: XlsxService, decorators: [{
19185
18896
  type: Injectable,
19186
18897
  args: [{
19187
18898
  providedIn: 'root'
@@ -19311,9 +19022,9 @@ class JwtInterceptor {
19311
19022
  });
19312
19023
  }
19313
19024
  }
19314
- 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 });
19315
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor });
19316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, decorators: [{
19025
+ 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 });
19026
+ JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor });
19027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor, decorators: [{
19317
19028
  type: Injectable
19318
19029
  }], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
19319
19030
  type: Inject,
@@ -19359,9 +19070,9 @@ class UserSwitcherInterceptor {
19359
19070
  return next.handle(this.switch(request, this.userSwitcherService.get()));
19360
19071
  }
19361
19072
  }
19362
- 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 });
19363
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor });
19364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19073
+ 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 });
19074
+ UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherInterceptor });
19075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19365
19076
  type: Injectable
19366
19077
  }], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
19367
19078
  type: Inject,
@@ -19445,8 +19156,6 @@ const ENDPOINTS = {
19445
19156
  DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
19446
19157
  DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
19447
19158
  DEPRECIATIONS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+'),
19448
- DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
19449
- DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
19450
19159
  DOWNLOAD_FILE_GET: new Endpoint('GET', '\\/files\\/\\d+\\/download'),
19451
19160
  EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
19452
19161
  EMPLOYEES_INVITES_GET: new Endpoint('GET', '\\/employees\\/\\invites'),
@@ -19457,17 +19166,20 @@ const ENDPOINTS = {
19457
19166
  EMPLOYEES_DEACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\deactivate'),
19458
19167
  EMPLOYEES_ACTIVATE_PUT: new Endpoint('PUT', '\\/employees\\/\\d+\\/\\activate'),
19459
19168
  FACEBOOK_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/facebook'),
19169
+ FILE_POST: new Endpoint('POST', '\\/api\\/files'),
19460
19170
  FIRM_GET: new Endpoint('GET', '\\/firms'),
19461
19171
  FIRM_CURRENT_GET: new Endpoint('GET', '\\/firms\\/current'),
19462
19172
  FIRM_CURRENT_PUT: new Endpoint('PUT', '\\/firms\\/current\.\*'),
19463
19173
  FIRM_INVITE_POST: new Endpoint('POST', '\\/firms\\/invite'),
19464
19174
  FIRM_REGISTRATION_POST: new Endpoint('POST', '\\/firms\\/registration'),
19465
- FIRM_UPDATE_PHOTO_POST: new Endpoint('POST', '\\/firms\\/photo\.\*'),
19466
19175
  FOLDERS_GET: new Endpoint('GET', '\\/folders'),
19467
19176
  FOLDERS_POST: new Endpoint('POST', '\\/folders'),
19468
19177
  FOLDERS_PUT: new Endpoint('PUT', '\\/folders\\/\\d+'),
19469
- FOLDERS_DOCUMENTS_POST: new Endpoint('POST', '\\/folders\\/\\d+\\/documents'),
19470
- FOLDERS_DOCUMENTS_PUT: new Endpoint('PUT', '\\/folders\\/\\d+\\/documents\\/\\d+'),
19178
+ FOLDERS_DELETE: new Endpoint('DELETE', '\\/folders\\/\\d+'),
19179
+ DOCUMENTS_GET: new Endpoint('GET', '\\/folder-documents'),
19180
+ DOCUMENTS_POST: new Endpoint('POST', '\\/folder-documents'),
19181
+ DOCUMENTS_PUT: new Endpoint('PUT', '\\/folder-documents\\/\\d+'),
19182
+ DOCUMENTS_DELETE: new Endpoint('DELETE', '\\/folder-documents\\/\\d+'),
19471
19183
  GOOGLE_LOGIN_POST: new Endpoint('POST', '\\/users\\/authentication\\/google'),
19472
19184
  INCOME_SOURCES_GET: new Endpoint('GET', '\\/income-sources'),
19473
19185
  INCOME_SOURCES_POST: new Endpoint('POST', '\\/income-sources'),
@@ -19595,8 +19307,6 @@ const ENDPOINTS = {
19595
19307
  TRANSACTIONS_ALLOCATIONS_GET: new Endpoint('GET', '\\/transactions-allocations'),
19596
19308
  TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/transactions-allocations'),
19597
19309
  TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/transactions-allocations\\/\\d+'),
19598
- TRANSACTION_RECEIPTS_POST: new Endpoint('POST', '\\/transactions\\/\\d+\\/receipts'),
19599
- TRANSACTION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/transactions\\/\\d+\\/receipts\\/\\d+'),
19600
19310
  USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
19601
19311
  USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
19602
19312
  USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
@@ -19648,9 +19358,9 @@ class PreloaderInterceptor {
19648
19358
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
19649
19359
  }
19650
19360
  }
19651
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19652
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor });
19653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19361
+ PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19362
+ PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor });
19363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19654
19364
  type: Injectable
19655
19365
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
19656
19366
 
@@ -19676,9 +19386,9 @@ class BasiqTokenInterceptor {
19676
19386
  });
19677
19387
  }
19678
19388
  }
19679
- BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19680
- BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor });
19681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19389
+ BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19390
+ BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor });
19391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19682
19392
  type: Injectable
19683
19393
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
19684
19394
 
@@ -19702,17 +19412,17 @@ class BasiqClientIdInterceptor {
19702
19412
  });
19703
19413
  }
19704
19414
  }
19705
- BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19706
- BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor });
19707
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19415
+ BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19416
+ BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor });
19417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19708
19418
  type: Injectable
19709
19419
  }], ctorParameters: function () { return [{ type: UserService }]; } });
19710
19420
 
19711
19421
  class InterceptorsModule {
19712
19422
  }
19713
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19714
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule });
19715
- InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, providers: [
19423
+ InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19424
+ InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule });
19425
+ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, providers: [
19716
19426
  {
19717
19427
  provide: HTTP_INTERCEPTORS,
19718
19428
  useClass: CorelogicInterceptor,
@@ -19750,7 +19460,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
19750
19460
  multi: true
19751
19461
  }
19752
19462
  ] });
19753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, decorators: [{
19463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: InterceptorsModule, decorators: [{
19754
19464
  type: NgModule,
19755
19465
  args: [{
19756
19466
  providers: [
@@ -19808,12 +19518,12 @@ class TtCoreModule {
19808
19518
  };
19809
19519
  }
19810
19520
  }
19811
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19812
- TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19521
+ TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19522
+ TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19813
19523
  InterceptorsModule] });
19814
- TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19524
+ TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19815
19525
  InterceptorsModule] });
19816
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, decorators: [{
19526
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TtCoreModule, decorators: [{
19817
19527
  type: NgModule,
19818
19528
  args: [{
19819
19529
  declarations: [],
@@ -20210,8 +19920,8 @@ function createDate(date) {
20210
19920
  * Function which returns icon depends on document extension
20211
19921
  * @param document
20212
19922
  */
20213
- function getDocIcon(document) {
20214
- switch (document.mimeType) {
19923
+ function getDocIcon(file) {
19924
+ switch (file.mimeType) {
20215
19925
  case 'image/gif':
20216
19926
  case 'image/jpeg':
20217
19927
  case 'image/png':
@@ -20606,6 +20316,35 @@ class BudgetForm extends AbstractForm {
20606
20316
  }
20607
20317
  }
20608
20318
 
20319
+ /**
20320
+ * general validation rules
20321
+ */
20322
+ var FormValidationsEnum;
20323
+ (function (FormValidationsEnum) {
20324
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
20325
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
20326
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
20327
+ // @TODO move to file uploader component
20328
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
20329
+ })(FormValidationsEnum || (FormValidationsEnum = {}));
20330
+
20331
+ class DocumentFolderForm extends AbstractForm {
20332
+ constructor(folder) {
20333
+ super({
20334
+ name: new UntypedFormControl(folder.name, [Validators.required, Validators.maxLength(FormValidationsEnum.INPUT_MAX_LENGTH)])
20335
+ }, folder);
20336
+ }
20337
+ }
20338
+
20339
+ class DocumentForm extends AbstractForm {
20340
+ constructor(document) {
20341
+ super({
20342
+ folder: new FormControl(document.folder, Validators.required),
20343
+ file: new FormControl(document.file)
20344
+ }, document);
20345
+ }
20346
+ }
20347
+
20609
20348
  /**
20610
20349
  * Form with loan details.
20611
20350
  * Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
@@ -20687,6 +20426,21 @@ class LoanForm extends AbstractForm {
20687
20426
  }
20688
20427
  LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LINE_OF_CREDIT, LoanTypeEnum.HOME_LOAN];
20689
20428
 
20429
+ class FirmForm extends AbstractForm {
20430
+ constructor(firm) {
20431
+ super({
20432
+ name: new UntypedFormControl(firm.name, Validators.required),
20433
+ shortName: new UntypedFormControl(firm.shortName),
20434
+ abn: new UntypedFormControl(firm.abn, Validators.required),
20435
+ tan: new UntypedFormControl(firm.tan, Validators.required),
20436
+ website: new UntypedFormControl(firm.website),
20437
+ address: new UntypedFormControl(firm.address),
20438
+ phone: new UntypedFormControl(firm.phone),
20439
+ file: new UntypedFormControl(firm.file)
20440
+ }, firm);
20441
+ }
20442
+ }
20443
+
20690
20444
  /**
20691
20445
  * Check if at least one form field is true, otherwise form is invalid.
20692
20446
  * Use with groups of boolean form controls (checkbox, toggle, etc.)
@@ -20935,6 +20689,7 @@ class SoleBusinessForm extends AbstractForm {
20935
20689
  activity: new UntypedFormControl(business.activity, Validators.required),
20936
20690
  description: new UntypedFormControl(business.description),
20937
20691
  website: new UntypedFormControl(business.website),
20692
+ file: new UntypedFormControl(business.file),
20938
20693
  isPrimaryProduction: new FormControl(business.isPrimaryProduction),
20939
20694
  }, business);
20940
20695
  this.business = business;
@@ -21670,6 +21425,77 @@ class UserInviteForm extends AbstractForm {
21670
21425
  }
21671
21426
  }
21672
21427
 
21428
+ class UserForm extends AbstractForm {
21429
+ constructor(user) {
21430
+ super({
21431
+ title: new UntypedFormControl(user.title),
21432
+ firstName: new UntypedFormControl(user.firstName, Validators.required),
21433
+ lastName: new UntypedFormControl(user.lastName, Validators.required),
21434
+ address: new UntypedFormControl(user.address),
21435
+ phone: new UntypedFormControl(user.phone),
21436
+ file: new UntypedFormControl(user.file)
21437
+ }, user);
21438
+ }
21439
+ }
21440
+
21441
+ class ClientDetailsForm extends AbstractForm {
21442
+ constructor(clientDetails) {
21443
+ super({
21444
+ isAustralianResident: new UntypedFormControl(clientDetails.isAustralianResident),
21445
+ taxFileNumber: new UntypedFormControl(clientDetails.taxFileNumber),
21446
+ occupation: new UntypedFormControl(clientDetails.occupation, autocompleteValidator()),
21447
+ medicareExemption: new UntypedFormControl({ value: clientDetails.medicareExemption, disabled: !clientDetails.medicareExemption }, Validators.required),
21448
+ pensionersTax: new UntypedFormControl(clientDetails.pensionersTax),
21449
+ workingHolidayMaker: new UntypedFormControl(clientDetails.workingHolidayMaker)
21450
+ }), clientDetails;
21451
+ }
21452
+ toggleMedicareExemption(enabled) {
21453
+ const control = this.get('medicareExemption');
21454
+ // @TODO Alex/Vik: think about FormControl extension and implement control.toggle() method
21455
+ // then we can optimize the code:
21456
+ // control.setValue(enabled ? null : UserMedicareExemptionEnum.NO)
21457
+ // control.toggle(enabled);
21458
+ if (enabled) {
21459
+ control.setValue(null);
21460
+ control.enable();
21461
+ return;
21462
+ }
21463
+ control.setValue(UserMedicareExemptionEnum.NO);
21464
+ control.disable();
21465
+ }
21466
+ submit() {
21467
+ return super.submit({}, true);
21468
+ }
21469
+ }
21470
+
21471
+ /**
21472
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4717608961/Borrowing+Power+Report+-+Property+Tank
21473
+ */
21474
+ class BorrowingReportForm extends AbstractForm {
21475
+ /**
21476
+ * extra params are auto-calculated numbers used if user didn't specify manual numbers
21477
+ */
21478
+ constructor(report = plainToClass(BorrowingReport, {}), netSalary, spouseNetSalary) {
21479
+ super({
21480
+ netRentIncome: new FormControl(report.netRentIncome, Validators.required),
21481
+ loanRepaymentAmount: new FormControl(report.loanRepaymentAmount, Validators.required),
21482
+ netSalary: new FormControl(report.netSalary ?? netSalary),
21483
+ spouseNetSalary: new FormControl(report.spouseNetSalary ?? spouseNetSalary),
21484
+ otherLiabilities: new FormControl(report.otherLiabilities, Validators.required),
21485
+ livingExpenses: new FormControl(report.livingExpenses, Validators.required),
21486
+ }, report);
21487
+ }
21488
+ /**
21489
+ * some fields are auto-calculated, shouldn't be updated until changed by user
21490
+ */
21491
+ submit(data = {}, includeDisabledFields = false) {
21492
+ return super.submit({
21493
+ netSalary: (this.model.netSalary || this.fieldChanged('netSalary')) ? this.get('netSalary').value : null,
21494
+ spouseNetSalary: (this.model.netSalary || this.fieldChanged('spouseNetSalary')) ? this.get('spouseNetSalary').value : null,
21495
+ }, includeDisabledFields);
21496
+ }
21497
+ }
21498
+
21673
21499
  /**
21674
21500
  * @Todo TT-2143 remove Property stuff and use this form just for PropertySale
21675
21501
  * @Todo TT-2143 create and extend from abstract PropertySale form
@@ -21850,31 +21676,45 @@ class PropertySaleExemptionsForm extends AbstractForm {
21850
21676
  }
21851
21677
  }
21852
21678
 
21853
- /**
21854
- * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4717608961/Borrowing+Power+Report+-+Property+Tank
21855
- */
21856
- class BorrowingReportForm extends AbstractForm {
21857
- /**
21858
- * extra params are auto-calculated numbers used if user didn't specify manual numbers
21859
- */
21860
- constructor(report = plainToClass(BorrowingReport, {}), netSalary, spouseNetSalary) {
21679
+ class PropertyEditForm extends AbstractForm {
21680
+ constructor(property) {
21861
21681
  super({
21862
- netRentIncome: new FormControl(report.netRentIncome, Validators.required),
21863
- loanRepaymentAmount: new FormControl(report.loanRepaymentAmount, Validators.required),
21864
- netSalary: new FormControl(report.netSalary ?? netSalary),
21865
- spouseNetSalary: new FormControl(report.spouseNetSalary ?? spouseNetSalary),
21866
- otherLiabilities: new FormControl(report.otherLiabilities, Validators.required),
21867
- livingExpenses: new FormControl(report.livingExpenses, Validators.required),
21868
- }, report);
21682
+ address: new UntypedFormControl(property.address, Validators.required),
21683
+ purchasePrice: new UntypedFormControl(property.purchasePrice, Validators.required),
21684
+ contractDate: new UntypedFormControl(property.contractDate, Validators.required),
21685
+ settlementDate: new UntypedFormControl(property.settlementDate, Validators.required),
21686
+ stampDuty: new UntypedFormControl(property.stampDuty),
21687
+ legalFees: new UntypedFormControl(property.legalFees),
21688
+ otherCapitalCosts: new UntypedFormControl(property.otherCapitalCosts),
21689
+ file: new UntypedFormControl(property.file)
21690
+ }, property);
21869
21691
  }
21870
- /**
21871
- * some fields are auto-calculated, shouldn't be updated until changed by user
21872
- */
21873
- submit(data = {}, includeDisabledFields = false) {
21874
- return super.submit({
21875
- netSalary: (this.model.netSalary || this.fieldChanged('netSalary')) ? this.get('netSalary').value : null,
21876
- spouseNetSalary: (this.model.netSalary || this.fieldChanged('spouseNetSalary')) ? this.get('spouseNetSalary').value : null,
21877
- }, includeDisabledFields);
21692
+ }
21693
+
21694
+ class PropertyDocumentForm extends AbstractForm {
21695
+ constructor(document) {
21696
+ super({
21697
+ property: new FormControl(document.property, Validators.required),
21698
+ file: new FormControl(document.file)
21699
+ }, document);
21700
+ }
21701
+ submit() {
21702
+ return super.submit({ property: { id: this.value.property.id } });
21703
+ }
21704
+ }
21705
+
21706
+ class PropertyValuationForm extends AbstractForm {
21707
+ constructor(valuation) {
21708
+ super({
21709
+ date: new UntypedFormControl(valuation.date || new Date(), Validators.required),
21710
+ marketValue: new UntypedFormControl(valuation.marketValue, Validators.required),
21711
+ document: new UntypedFormGroup({
21712
+ file: new UntypedFormControl(valuation.document?.file)
21713
+ })
21714
+ }, valuation);
21715
+ }
21716
+ submit() {
21717
+ return super.submit({ document: this.value.document.file ? this.value.document : null });
21878
21718
  }
21879
21719
  }
21880
21720
 
@@ -22577,18 +22417,6 @@ class VehicleLogbookForm extends AbstractForm {
22577
22417
  }
22578
22418
  VehicleLogbookForm.maxDescriptionLength = 60;
22579
22419
 
22580
- /**
22581
- * general validation rules
22582
- */
22583
- var FormValidationsEnum;
22584
- (function (FormValidationsEnum) {
22585
- FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
22586
- FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
22587
- FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
22588
- // @TODO move to file uploader component
22589
- FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
22590
- })(FormValidationsEnum || (FormValidationsEnum = {}));
22591
-
22592
22420
  class AllocationRuleConditionForm extends AbstractForm {
22593
22421
  constructor(condition = plainToClass(AllocationRuleCondition, {})) {
22594
22422
  super({
@@ -22878,10 +22706,7 @@ class TransactionBaseForm extends AbstractForm {
22878
22706
  gstAmount: new UntypedFormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
22879
22707
  date: new UntypedFormControl(transaction.date, [Validators.required]),
22880
22708
  description: new UntypedFormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
22881
- // @TODO Alex: refactor (TT-1996)
22882
- file: new UntypedFormControl(transaction['receipt'], [
22883
- FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
22884
- ]),
22709
+ file: new UntypedFormControl(transaction.file),
22885
22710
  property: new UntypedFormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
22886
22711
  }, controls), transaction);
22887
22712
  this.registeredForGst = registeredForGst;
@@ -23430,13 +23255,10 @@ var MessagesEnum;
23430
23255
  })(MessagesEnum || (MessagesEnum = {}));
23431
23256
 
23432
23257
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
23433
- /**
23434
- * Public API Surface of tt-core
23435
- */
23436
23258
 
23437
23259
  /**
23438
23260
  * Generated bundle index. Do not edit.
23439
23261
  */
23440
23262
 
23441
- 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 };
23263
+ 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 };
23442
23264
  //# sourceMappingURL=taxtank-core.mjs.map