taxtank-core 0.17.16 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/bundles/taxtank-core.umd.js +6764 -5446
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/account-setup-item.collection.js +2 -2
  4. package/esm2015/lib/collections/bank.collection.js +15 -0
  5. package/esm2015/lib/collections/collection-dictionary.js +1 -1
  6. package/esm2015/lib/collections/collection.js +41 -55
  7. package/esm2015/lib/collections/depreciation.collection.js +6 -3
  8. package/esm2015/lib/collections/exportable.collection.js +1 -1
  9. package/esm2015/lib/collections/property/property.collection.js +3 -3
  10. package/esm2015/lib/collections/transaction/transaction.collection.js +11 -7
  11. package/esm2015/lib/collections/vehicle-logbook.collection.js +2 -2
  12. package/esm2015/lib/db/Enums/chart-accounts-heading-list.enum.js +20 -1
  13. package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +37 -1
  14. package/esm2015/lib/db/Enums/chart-accounts-metadata-list.enum.js +4 -1
  15. package/esm2015/lib/db/Models/abstract-model.js +1 -1
  16. package/esm2015/lib/db/Models/bank/bank.js +1 -1
  17. package/esm2015/lib/forms/abstract.form.js +18 -3
  18. package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +19 -0
  19. package/esm2015/lib/forms/bank/bank-account-loan.form.js +20 -0
  20. package/esm2015/lib/forms/bank/bank-account-migrate.form.js +15 -0
  21. package/esm2015/lib/forms/bank/bank-account-properties.form.js +15 -0
  22. package/esm2015/lib/forms/bank/bank-account-property.form.js +13 -0
  23. package/esm2015/lib/forms/bank/bank-account.form.js +53 -0
  24. package/esm2015/lib/forms/bank/bank-login.form.js +19 -0
  25. package/esm2015/lib/forms/client/client-income-types.form.js +2 -8
  26. package/esm2015/lib/forms/index.js +9 -1
  27. package/esm2015/lib/forms/login/login.form.js +1 -1
  28. package/esm2015/lib/forms/register/register-client.form.js +4 -3
  29. package/esm2015/lib/forms/register/register-firm.form.js +2 -9
  30. package/esm2015/lib/forms/report/my-tax/index.js +14 -0
  31. package/esm2015/lib/forms/report/my-tax/my-tax-business-or-losses.form.js +10 -0
  32. package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +75 -0
  33. package/esm2015/lib/forms/report/my-tax/my-tax-dividends.form.js +23 -0
  34. package/esm2015/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.js +14 -0
  35. package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +92 -0
  36. package/esm2015/lib/forms/report/my-tax/my-tax-income-tests.form.js +10 -0
  37. package/esm2015/lib/forms/report/my-tax/my-tax-interest.form.js +12 -0
  38. package/esm2015/lib/forms/report/my-tax/my-tax-losses.form.js +10 -0
  39. package/esm2015/lib/forms/report/my-tax/my-tax-medicare.form.js +33 -0
  40. package/esm2015/lib/forms/report/my-tax/my-tax-offsets.form.js +10 -0
  41. package/esm2015/lib/forms/report/my-tax/my-tax-other-income.form.js +38 -0
  42. package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +32 -0
  43. package/esm2015/lib/forms/report/my-tax/my-tax-rent.form.js +13 -0
  44. package/esm2015/lib/forms/user/password.form.js +6 -6
  45. package/esm2015/lib/forms/user/reset-password.form.js +1 -1
  46. package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +2 -2
  47. package/esm2015/lib/forms/vehicle/vehicle.form.js +6 -12
  48. package/esm2015/lib/interceptors/basiq.interceptor.js +35 -0
  49. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  50. package/esm2015/lib/interceptors/financial-year-interceptor.js +17 -6
  51. package/esm2015/lib/interceptors/interceptors.module.js +16 -5
  52. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  53. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  54. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  55. package/esm2015/lib/models/account-setup/account-setup-item.js +4 -2
  56. package/esm2015/lib/models/bank/bank-account-property.js +6 -2
  57. package/esm2015/lib/models/bank/bank-account.js +2 -1
  58. package/esm2015/lib/models/bank/bank-connection.js +18 -3
  59. package/esm2015/lib/models/bank/bank-login-data.js +6 -0
  60. package/esm2015/lib/models/bank/bank.js +6 -1
  61. package/esm2015/lib/models/client/client-portfolio-report.js +3 -2
  62. package/esm2015/lib/models/endpoint/endpoints.const.js +4 -1
  63. package/esm2015/lib/models/event/app-event-type.enum.js +39 -38
  64. package/esm2015/lib/models/loan/loan-payment.js +3 -2
  65. package/esm2015/lib/models/loan/loan.js +1 -6
  66. package/esm2015/lib/models/pdf/pdf-settings.js +3 -1
  67. package/esm2015/lib/models/report/my-tax/ato-links.js +11 -0
  68. package/esm2015/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.js +8 -0
  69. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.js +13 -0
  70. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +57 -0
  71. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.js +10 -0
  72. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +72 -0
  73. package/esm2015/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.js +18 -0
  74. package/esm2015/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.js +24 -0
  75. package/esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js +68 -0
  76. package/esm2015/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.js +8 -0
  77. package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +11 -0
  78. package/esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js +10 -0
  79. package/esm2015/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.js +8 -0
  80. package/esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js +28 -0
  81. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +31 -0
  82. package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +24 -0
  83. package/esm2015/lib/models/report/property/property-report-item.js +4 -2
  84. package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +4 -2
  85. package/esm2015/lib/models/tax-summary/report-item-details.js +3 -2
  86. package/esm2015/lib/models/tax-summary/report-item.js +3 -2
  87. package/esm2015/lib/models/transaction/transaction.js +2 -1
  88. package/esm2015/lib/services/account-setup/account-setup.service.js +5 -5
  89. package/esm2015/lib/services/asset/assets.service.js +3 -3
  90. package/esm2015/lib/services/auth/auth.service.js +3 -3
  91. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  92. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  93. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  94. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  95. package/esm2015/lib/services/event/sse.service.js +7 -4
  96. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  97. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  98. package/esm2015/lib/services/http/address/address.service.js +3 -3
  99. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +5 -8
  100. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +60 -5
  101. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  102. package/esm2015/lib/services/http/bank/bank.service.js +3 -3
  103. package/esm2015/lib/services/http/bank/basiq/basiq-connections-response.interface.js +2 -0
  104. package/esm2015/lib/services/http/bank/basiq/basiq-token-response.interface.js +2 -0
  105. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +42 -0
  106. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +37 -46
  107. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  108. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  109. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  110. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  111. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  112. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  113. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  114. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  115. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  116. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  117. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  118. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  119. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  120. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  121. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  122. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  123. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  124. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  125. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  126. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  127. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  128. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  129. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  130. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  131. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  132. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  133. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  134. package/esm2015/lib/services/http/property/property.service.js +3 -3
  135. package/esm2015/lib/services/http/rest/rest.service.js +4 -15
  136. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  137. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  138. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  139. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  140. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  141. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  142. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  143. package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
  144. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  145. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  146. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  147. package/esm2015/lib/services/http/user/user.service.js +4 -17
  148. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  149. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  150. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  151. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  152. package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
  153. package/esm2015/lib/services/pdf/pdf-from-dom-element/file-settings.js +19 -0
  154. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +35 -0
  155. package/esm2015/lib/services/pdf/pdf-from-table/file-settings.js +31 -0
  156. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +40 -0
  157. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +40 -0
  158. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +53 -0
  159. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  160. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  161. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  162. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  163. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  164. package/esm2015/lib/services/toast/toast.service.js +3 -3
  165. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  166. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  167. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  168. package/esm2015/lib/tt-core.module.js +4 -4
  169. package/esm2015/lib/validators/date-range.validator.js +22 -0
  170. package/esm2015/lib/validators/index.js +3 -1
  171. package/esm2015/lib/validators/require-autocomplete.js +14 -0
  172. package/esm2015/lib/validators/require-select.validator.js +15 -0
  173. package/esm2015/public-api.js +27 -2
  174. package/fesm2015/taxtank-core.js +7135 -5965
  175. package/fesm2015/taxtank-core.js.map +1 -1
  176. package/lib/collections/bank.collection.d.ts +7 -0
  177. package/lib/collections/collection-dictionary.d.ts +2 -1
  178. package/lib/collections/collection.d.ts +18 -31
  179. package/lib/collections/depreciation.collection.d.ts +3 -2
  180. package/lib/collections/exportable.collection.d.ts +2 -1
  181. package/lib/collections/transaction/transaction.collection.d.ts +5 -4
  182. package/lib/db/Enums/chart-accounts-heading-list.enum.d.ts +20 -1
  183. package/lib/db/Enums/chart-accounts-list.enum.d.ts +37 -1
  184. package/lib/db/Enums/chart-accounts-metadata-list.enum.d.ts +4 -1
  185. package/lib/db/Models/abstract-model.d.ts +1 -0
  186. package/lib/db/Models/bank/bank.d.ts +4 -0
  187. package/lib/forms/abstract.form.d.ts +18 -3
  188. package/lib/forms/bank/bank-account-add-manual.form.d.ts +10 -0
  189. package/lib/forms/bank/bank-account-loan.form.d.ts +5 -0
  190. package/lib/forms/bank/bank-account-migrate.form.d.ts +9 -0
  191. package/lib/forms/bank/bank-account-properties.form.d.ts +8 -0
  192. package/lib/forms/bank/bank-account-property.form.d.ts +5 -0
  193. package/lib/forms/bank/bank-account.form.d.ts +21 -0
  194. package/lib/forms/bank/bank-login.form.d.ts +11 -0
  195. package/lib/forms/client/client-income-types.form.d.ts +1 -2
  196. package/lib/forms/index.d.ts +8 -0
  197. package/lib/forms/login/login.form.d.ts +4 -1
  198. package/lib/forms/register/register-client.form.d.ts +1 -1
  199. package/lib/forms/register/register-firm.form.d.ts +2 -2
  200. package/lib/forms/report/my-tax/index.d.ts +13 -0
  201. package/lib/forms/report/my-tax/my-tax-business-or-losses.form.d.ts +8 -0
  202. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +5 -0
  203. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts +5 -0
  204. package/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.d.ts +5 -0
  205. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts +7 -0
  206. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts +8 -0
  207. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts +5 -0
  208. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts +8 -0
  209. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts +9 -0
  210. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts +8 -0
  211. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts +5 -0
  212. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts +5 -0
  213. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts +5 -0
  214. package/lib/forms/user/password.form.d.ts +4 -1
  215. package/lib/forms/user/reset-password.form.d.ts +3 -1
  216. package/lib/forms/vehicle/vehicle-claim.form.d.ts +1 -1
  217. package/lib/forms/vehicle/vehicle.form.d.ts +3 -7
  218. package/lib/interceptors/basiq.interceptor.d.ts +15 -0
  219. package/lib/interceptors/financial-year-interceptor.d.ts +2 -0
  220. package/lib/models/account-setup/account-setup-item.d.ts +2 -1
  221. package/lib/models/bank/bank-account-property.d.ts +1 -0
  222. package/lib/models/bank/bank-account.d.ts +2 -0
  223. package/lib/models/bank/bank-connection.d.ts +8 -1
  224. package/lib/models/bank/bank-login-data.d.ts +17 -0
  225. package/lib/models/bank/bank.d.ts +1 -0
  226. package/lib/models/client/client-portfolio-report.d.ts +2 -1
  227. package/lib/models/event/app-event-type.enum.d.ts +38 -37
  228. package/lib/models/loan/loan-payment.d.ts +2 -1
  229. package/lib/models/loan/loan.d.ts +0 -2
  230. package/lib/models/report/my-tax/ato-links.d.ts +6 -0
  231. package/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.d.ts +7 -0
  232. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts +11 -0
  233. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts +8 -0
  234. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts +8 -0
  235. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +39 -0
  236. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts +9 -0
  237. package/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.d.ts +10 -0
  238. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts +30 -0
  239. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts +7 -0
  240. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts +9 -0
  241. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +8 -0
  242. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts +7 -0
  243. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts +13 -0
  244. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +17 -0
  245. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +11 -0
  246. package/lib/models/report/property/property-report-item.d.ts +2 -1
  247. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +2 -1
  248. package/lib/models/tax-summary/report-item-details.d.ts +2 -1
  249. package/lib/models/tax-summary/report-item.d.ts +2 -1
  250. package/lib/models/transaction/transaction.d.ts +3 -1
  251. package/lib/services/event/sse.service.d.ts +3 -0
  252. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +13 -1
  253. package/lib/services/http/bank/basiq/basiq-connections-response.interface.d.ts +9 -0
  254. package/lib/services/http/bank/basiq/basiq-token-response.interface.d.ts +9 -0
  255. package/lib/services/http/bank/basiq/basiq-token.service.d.ts +17 -0
  256. package/lib/services/http/bank/basiq/basiq.service.d.ts +20 -11
  257. package/lib/services/http/rest/rest.service.d.ts +0 -5
  258. package/lib/services/http/user/user.service.d.ts +0 -1
  259. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts +6 -0
  260. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts +13 -0
  261. package/lib/services/pdf/pdf-from-table/file-settings.d.ts +8 -0
  262. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts +19 -0
  263. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts +15 -0
  264. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts +16 -0
  265. package/lib/validators/date-range.validator.d.ts +5 -0
  266. package/lib/validators/index.d.ts +2 -0
  267. package/lib/validators/require-autocomplete.d.ts +5 -0
  268. package/lib/validators/require-select.validator.d.ts +5 -0
  269. package/package.json +2 -1
  270. package/public-api.d.ts +26 -1
  271. package/esm2015/lib/models/pdf/pdf-config.js +0 -43
  272. package/esm2015/lib/services/pdf/pdf.service.js +0 -99
  273. package/lib/models/pdf/pdf-config.d.ts +0 -8
  274. package/lib/services/pdf/pdf.service.d.ts +0 -29
@@ -1,9 +1,11 @@
1
1
  import { BankAccount as BankAccountBase } from '../../db/Models/bank/bank-account';
2
+ import { BankAccountTypeEnum } from '../../db/Enums/bank-account-type.enum';
2
3
  import { Loan } from '../loan/loan';
3
4
  import { BankAccountBalance } from '../../db/Models/bank/bank-account-balance';
4
5
  import { BankAccountProperty } from './bank-account-property';
5
6
  import { BankConnection } from './bank-connection';
6
7
  export declare class BankAccount extends BankAccountBase {
8
+ static loanTypes: BankAccountTypeEnum[];
7
9
  bankAccountProperties: BankAccountProperty[];
8
10
  balances: BankAccountBalance[];
9
11
  loan: Loan;
@@ -7,5 +7,12 @@ export declare class BankConnection extends BankConnectionBase {
7
7
  /**
8
8
  * Check if status of connection is inactive (invalid)
9
9
  */
10
- isInactive(): boolean;
10
+ isInvalid(): boolean;
11
+ isPending(): boolean;
12
+ isActive(): boolean;
13
+ /**
14
+ * login required for new or disconnected external connections
15
+ */
16
+ isLoginRequired(): boolean;
17
+ setPending(): void;
11
18
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Login data object for basiq banks
3
+ */
4
+ export declare class BankLoginData {
5
+ /**
6
+ * Object with bank external id
7
+ */
8
+ institution: {
9
+ id: string;
10
+ };
11
+ /**
12
+ * Dynamic login data fields. These fields may be different for different banks
13
+ */
14
+ [key: string]: string | {
15
+ id: string;
16
+ };
17
+ }
@@ -1,6 +1,7 @@
1
1
  import { Bank as BankBase } from '../../db/Models/bank/bank';
2
2
  import { Photoable } from '../../interfaces/photoable';
3
3
  export declare class Bank extends BankBase implements Photoable {
4
+ logo: string;
4
5
  getInitials(): string;
5
6
  getPhoto(): string;
6
7
  }
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Class describes client's portfolio report information
3
3
  */
4
- export declare class ClientPortfolioReport {
4
+ import { AbstractModel } from '../../db/Models/abstract-model';
5
+ export declare class ClientPortfolioReport extends AbstractModel {
5
6
  category: string;
6
7
  count: number;
7
8
  marketValue: number;
@@ -6,41 +6,42 @@ export declare enum AppEventTypeEnum {
6
6
  BANK_TRANSACTION_ALLOCATED = 4,
7
7
  BASIQ_CONSENT_UPDATED = 5,
8
8
  BASIQ_CONNECTION_UPDATED = 6,
9
- CLIENT_INVITE_ACCEPTED = 7,
10
- CLIENT_OPEN_CHAT = 8,
11
- CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 9,
12
- CURRENT_USER_GET_FAILED = 10,
13
- DEPRECIATION_DELETED = 11,
14
- DEPRECIATIONS_CREATED = 12,
15
- INCOME_SOURCES_CREATED = 13,
16
- INCOME_SOURCES_UPDATED = 14,
17
- INCOME_SOURCES_FORECASTS_CREATED = 15,
18
- INCOME_SOURCES_FORECASTS_UPDATED = 16,
19
- LOAN_UPDATED = 17,
20
- LOAN_PAYOUT_UPDATED = 18,
21
- MESSAGE_CREATED = 19,
22
- MESSAGE_FILE_CREATED = 20,
23
- MESSAGE_FILE_DELETED = 21,
24
- NOTIFICATION_ADDED = 22,
25
- PROPERTY_UPDATED_WITH_DOCUMENT = 23,
26
- PROPERTY_DOCUMENT_ADDED = 24,
27
- PROPERTY_MOVEMENT_CREATED = 25,
28
- PROPERTY_MOVEMENT_UPDATED = 26,
29
- PROPERTY_MOVEMENT_DELETED = 27,
30
- PROPERTY_SHARE_UPDATED = 28,
31
- PROPERTY_SUBSCRIPTION_ADDED = 29,
32
- PROPERTY_SUBSCRIPTION_DELETED = 30,
33
- PROPERTY_VALUATION_DOCUMENT_CREATED = 31,
34
- SERVICE_SUBSCRIPTION_UPDATED = 32,
35
- TAX_REVIEW_UPDATED = 33,
36
- TRANSACTION_CREATED = 34,
37
- TRANSACTION_DELETED = 35,
38
- TRANSACTION_UPDATED = 36,
39
- TRANSACTIONS_CREATED = 37,
40
- USER_UPDATED = 38,
41
- VEHICLE_CLAIM_UPDATED = 39,
42
- VEHICLE_CLAIM_CREATED = 40,
43
- VEHICLE_LOGBOOK_CREATED = 41,
44
- VEHICLE_LOGBOOK_UPDATED = 42,
45
- VEHICLE_LOGBOOK_DELETED = 43
9
+ BASIQ_JOB_CREATED = 7,
10
+ CLIENT_INVITE_ACCEPTED = 8,
11
+ CLIENT_OPEN_CHAT = 9,
12
+ CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 10,
13
+ CURRENT_USER_GET_FAILED = 11,
14
+ DEPRECIATION_DELETED = 12,
15
+ DEPRECIATIONS_CREATED = 13,
16
+ INCOME_SOURCES_CREATED = 14,
17
+ INCOME_SOURCES_UPDATED = 15,
18
+ INCOME_SOURCES_FORECASTS_CREATED = 16,
19
+ INCOME_SOURCES_FORECASTS_UPDATED = 17,
20
+ LOAN_UPDATED = 18,
21
+ LOAN_PAYOUT_UPDATED = 19,
22
+ MESSAGE_CREATED = 20,
23
+ MESSAGE_FILE_CREATED = 21,
24
+ MESSAGE_FILE_DELETED = 22,
25
+ NOTIFICATION_ADDED = 23,
26
+ PROPERTY_UPDATED_WITH_DOCUMENT = 24,
27
+ PROPERTY_DOCUMENT_ADDED = 25,
28
+ PROPERTY_MOVEMENT_CREATED = 26,
29
+ PROPERTY_MOVEMENT_UPDATED = 27,
30
+ PROPERTY_MOVEMENT_DELETED = 28,
31
+ PROPERTY_SHARE_UPDATED = 29,
32
+ PROPERTY_SUBSCRIPTION_ADDED = 30,
33
+ PROPERTY_SUBSCRIPTION_DELETED = 31,
34
+ PROPERTY_VALUATION_DOCUMENT_CREATED = 32,
35
+ SERVICE_SUBSCRIPTION_UPDATED = 33,
36
+ TAX_REVIEW_UPDATED = 34,
37
+ TRANSACTION_CREATED = 35,
38
+ TRANSACTION_DELETED = 36,
39
+ TRANSACTION_UPDATED = 37,
40
+ TRANSACTIONS_CREATED = 38,
41
+ USER_UPDATED = 39,
42
+ VEHICLE_CLAIM_UPDATED = 40,
43
+ VEHICLE_CLAIM_CREATED = 41,
44
+ VEHICLE_LOGBOOK_CREATED = 42,
45
+ VEHICLE_LOGBOOK_UPDATED = 43,
46
+ VEHICLE_LOGBOOK_DELETED = 44
46
47
  }
@@ -1,7 +1,8 @@
1
+ import { AbstractModel } from '../../db/Models/abstract-model';
1
2
  /**
2
3
  * Loan payment class
3
4
  */
4
- export declare class LoanPayment {
5
+ export declare class LoanPayment extends AbstractModel {
5
6
  date: Date;
6
7
  interestAccrued: number;
7
8
  interestBalance: number;
@@ -1,12 +1,10 @@
1
1
  import { Loan as LoanBase } from '../../db/Models/loan/loan';
2
- import { LoanRepaymentTypeEnum } from '../../db/Enums/loan-repayment-type.enum';
3
2
  import { LoanPayment } from './loan-payment';
4
3
  import { LoanPayout } from './loan-payout';
5
4
  export declare class Loan extends LoanBase {
6
5
  payments: LoanPayment[];
7
6
  commencementDate: Date;
8
7
  payout: LoanPayout;
9
- repaymentType: LoanRepaymentTypeEnum;
10
8
  currentBalance: number;
11
9
  /**
12
10
  * Check if loan type is related to LoanVehicleTypeEnum
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Australian Taxation Office (ATO) website links
3
+ */
4
+ export declare const atoLinks: {
5
+ [key: string]: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for the Sole tank implementation
4
+ */
5
+ export declare class MyTaxBusinessOrLosses {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Enum with work-related clothing, laundry, dry cleaning expenses types
3
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
4
+ * ("Deductions" section, "D3. Work-related clothing, laundry and dry cleaning expenses" field)
5
+ */
6
+ export declare enum DeductionClothingTypeEnum {
7
+ COMPULSORY_C = 0,
8
+ NON_COMPULSORY_N = 1,
9
+ PROTECTION_P = 2,
10
+ OCCUPATIONAL_SPECIFIC_S = 3
11
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Const with the categories for my-tax 'Deductions' report.
3
+ * Grouped by ChartAccountsHeadingListEnum / ChartAccountsListEnum based on rules from documentation
4
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Deduction")
5
+ */
6
+ export declare const DEDUCTION_CATEGORIES: {
7
+ [key: string]: number[];
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enum with work-related self-education expenses types
3
+ */
4
+ export declare enum DeductionSelfEducationTypeEnum {
5
+ IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K = 0,
6
+ INCOME_FROM_CURRENT_EARNINGS_I = 1,
7
+ OTHER_O = 2
8
+ }
@@ -0,0 +1,39 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { DepreciationCollection } from '../../../../collections/depreciation.collection';
3
+ import { VehicleClaim } from '../../../logbook/vehicle-claim';
4
+ import { DeductionClothingTypeEnum } from './deduction-clothing-type.enum';
5
+ import { DeductionSelfEducationTypeEnum } from './deduction-self-education-type.enum';
6
+ export declare class MyTaxDeductions {
7
+ transactions: TransactionCollection;
8
+ depreciations: DepreciationCollection;
9
+ vehicleClaim: VehicleClaim;
10
+ vehicleClaimRate: number;
11
+ workRelatedClothingExpenses: TransactionCollection;
12
+ workRelatedSelfEducationExpenses: TransactionCollection;
13
+ personalSuperContributions: TransactionCollection;
14
+ otherWorkRelatedExpensesTotalAmount: number;
15
+ klmsMethodClaimAmount: number;
16
+ totalExpensesAmount: number;
17
+ vehicleExpensesTotalAmount: number;
18
+ workRelatedTravelExpensesTotalAmount: number;
19
+ workRelatedClothingType: DeductionClothingTypeEnum;
20
+ workRelatedClothingTotalAmount: number;
21
+ workRelatedSelfEducationType: DeductionSelfEducationTypeEnum;
22
+ workRelatedSelfEducationTotalAmount: number;
23
+ lowValuePoolDeductionTotalAmount: number;
24
+ interestExpensesTotalAmount: number;
25
+ dividendExpensesTotalAmount: number;
26
+ donationsTotalAmount: number;
27
+ interestsChargedByATOTotalAmount: number;
28
+ litigationCostsTotalAmount: number;
29
+ otherManagingCostsTotalAmount: number;
30
+ personalSuperContributionsTotalAmount: number;
31
+ forestryManagedInvestmentSchemesDeductionsTotalAmount: number;
32
+ otherDeductionsTotalAmount: number;
33
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimRate: number);
34
+ private setVehicleClaimData;
35
+ /**
36
+ * Total amount from Other work related expenses and Tools & equipment depreciations
37
+ */
38
+ private setOtherWorkRelatedExpensesTotalAmount;
39
+ }
@@ -0,0 +1,9 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxDividends {
3
+ transactions: TransactionCollection;
4
+ dividendsUnfrankedAmount: number;
5
+ dividendsFrankedAmount: number;
6
+ dividendsFrankingCreditsAmount: number;
7
+ dividendsTotalTax: number;
8
+ constructor(transactions: TransactionCollection);
9
+ }
@@ -0,0 +1,10 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxEmployeeShareSchemes {
3
+ transactions: TransactionCollection;
4
+ eligibleForReductionAmount: number;
5
+ notEligibleForReductionAmount: number;
6
+ discountFromDeferredSchemeAmount: number;
7
+ totalAssessableDiscountAmount: number;
8
+ shareSchemesTotalTax: number;
9
+ constructor(transactions: TransactionCollection);
10
+ }
@@ -0,0 +1,30 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { CollectionDictionary } from '../../../../collections/collection-dictionary';
3
+ export declare class MyTaxIncomeStatements {
4
+ transactionsByChartAccounts: CollectionDictionary<TransactionCollection>;
5
+ transactionsByChartAccountsHeadings: CollectionDictionary<TransactionCollection>;
6
+ salaryTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
7
+ etpTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
8
+ superannuationLumpSumTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
9
+ allowanceTotalAmount: number;
10
+ allowanceTotalTax: number;
11
+ lumpATransactionsTotalAmount: number;
12
+ lumpATransactionsTotalTax: number;
13
+ hasGenuineLumpATransactions: boolean;
14
+ hasOtherLumpATransactions: boolean;
15
+ lumpBTransactionsTotalAmount: number;
16
+ lumpBTransactionsTotalTax: number;
17
+ australianAllowancesAndPaymentsTotalAmount: number;
18
+ australianAllowancesAndPaymentsTotalTax: number;
19
+ australianPensionsAndAllowancesTotalAmount: number;
20
+ australianPensionsAndAllowancesTotalTax: number;
21
+ australianAnnuitiesSuperannuationIncomesTotalTax: number;
22
+ australianAnnuityPaymentsTaxed: number;
23
+ australianAnnuityPaymentsUntaxed: number;
24
+ assessableCappedDefinedBenefitTotalAmount: number;
25
+ superannuationIncomeStreamsTotalTaxed: number;
26
+ superannuationIncomeStreamsTotalUntaxed: number;
27
+ attributablePsiTransactionsTotalAmount: number;
28
+ attributablePsiTransactionsTotalTax: number;
29
+ constructor(transactions: TransactionCollection);
30
+ }
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo future functionality
4
+ */
5
+ export declare class MyTaxIncomeTests {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,9 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxInterest {
3
+ interestEarnedTransactions: TransactionCollection;
4
+ interestPaidTransactions: TransactionCollection;
5
+ interestEarnedTotalAmount: number;
6
+ interestEarnedTotalTax: number;
7
+ interestPaidTotalAmount: number;
8
+ constructor(transactions: TransactionCollection);
9
+ }
@@ -0,0 +1,8 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for Sole tank implementation
4
+ */
5
+ export declare class MyTaxLosses {
6
+ transactions: TransactionCollection;
7
+ constructor(transactions: TransactionCollection);
8
+ }
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for new chart accounts implemented (TT-1739 & TT-1740)
4
+ */
5
+ export declare class MyTaxOffsets {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,13 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxOtherIncome {
3
+ transactions: TransactionCollection;
4
+ lumpSumPaymentsInArrearsTransactions: TransactionCollection;
5
+ bonusesTotalAmount: number;
6
+ forestryManagedInvestmentSchemesIncomeTotalAmount: number;
7
+ lumpSumPaymentsInArrearsTotalTax: number;
8
+ specialProfessionIncomeTotalAmount: number;
9
+ category1TotalIncome: number;
10
+ atoInterestPaidTotalAmount: number;
11
+ gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount: number;
12
+ constructor(transactions: TransactionCollection);
13
+ }
@@ -0,0 +1,17 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxPartnershipsAndTrusts {
3
+ transactions: TransactionCollection;
4
+ partnershipIncomes: TransactionCollection;
5
+ partnershipExpenses: TransactionCollection;
6
+ trustsIncomes: TransactionCollection;
7
+ trustsExpenses: TransactionCollection;
8
+ netNonPrimaryProductionAmount: number;
9
+ partnershipsNetIncome: number;
10
+ trustsNetIncome: number;
11
+ partnershipsSmallBusinessNetIncome: number;
12
+ trustsSmallBusinessNetIncome: number;
13
+ taxPaidTotal: number;
14
+ frankingCreditsTotal: number;
15
+ taxOffsetNRASTotalAmount: number;
16
+ constructor(transactions: TransactionCollection);
17
+ }
@@ -0,0 +1,11 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { DepreciationCollection } from '../../../../collections/depreciation.collection';
3
+ export declare class MyTaxRent {
4
+ propertyExpenses: TransactionCollection;
5
+ grossRentAmount: number;
6
+ interestDeductionsAmount: number;
7
+ capitalWorksDeductionsAmount: number;
8
+ otherRentalDeductionsAmount: number;
9
+ netRent: number;
10
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection);
11
+ }
@@ -1,9 +1,10 @@
1
1
  import { Property } from '../../property/property';
2
2
  import { ChartAccounts } from '../../chart-accounts/chart-accounts';
3
+ import { AbstractModel } from '../../../db/Models/abstract-model';
3
4
  /**
4
5
  * Class with property transactions report entities
5
6
  */
6
- export declare class PropertyReportItem {
7
+ export declare class PropertyReportItem extends AbstractModel {
7
8
  amount: number;
8
9
  description: string;
9
10
  /**
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Vehicle expense for logbook section
3
3
  */
4
- export declare class VehicleExpense {
4
+ import { AbstractModel } from '../../../db/Models/abstract-model';
5
+ export declare class VehicleExpense extends AbstractModel {
5
6
  description: string;
6
7
  amount: number;
7
8
  claimPercent: number;
@@ -1,11 +1,12 @@
1
1
  import { TaxReturnCategorySectionEnum } from '../../db/Enums/tax-return-category-section.enum';
2
+ import { AbstractModel } from '../../db/Models/abstract-model';
2
3
  /**
3
4
  * Used in tax summary reports to show specific details relating to an amount in the report.
4
5
  * See structure in ReportItem class.
5
6
  * Example an amount of $550 for property income could be comprised of 2 different property amounts of $300 and $250.
6
7
  * This is useful in providing drill-down information for the tax summary report.
7
8
  */
8
- export declare class ReportItemDetails {
9
+ export declare class ReportItemDetails extends AbstractModel {
9
10
  amount: number;
10
11
  name: string;
11
12
  type: number;
@@ -1,11 +1,12 @@
1
1
  import { TaxReturnCategory } from '../../db/Models/tax-return/tax-return-category';
2
2
  import { ReportItemDetails } from './report-item-details';
3
3
  import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
4
+ import { AbstractModel } from '../../db/Models/abstract-model';
4
5
  /**
5
6
  * Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
6
7
  * amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
7
8
  */
8
- export declare class ReportItem {
9
+ export declare class ReportItem extends AbstractModel {
9
10
  amount: number;
10
11
  details: ReportItemDetails[];
11
12
  taxReturnCategory: TaxReturnCategory;
@@ -1,6 +1,7 @@
1
1
  import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
2
2
  import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
3
3
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
4
+ import { ChartAccountsMetadataListEnum } from '../../db/Enums/chart-accounts-metadata-list.enum';
4
5
  import { Property } from '../property/property';
5
6
  import { TransactionReceipt } from './transaction-receipt';
6
7
  import { ChartAccounts } from '../chart-accounts/chart-accounts';
@@ -70,8 +71,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
70
71
  /**
71
72
  * Get value of transaction metadata field
72
73
  * @param field for which value should be returned
74
+ * @Todo modify 'metadata' property from array to Collection
73
75
  */
74
- private getMetadataFieldValue;
76
+ getMetadataFieldValue(field: ChartAccountsMetadataListEnum): number;
75
77
  /**
76
78
  * Returns Net or Gross income amount based on provided income type
77
79
  * @param incomeType by which amount should be returned
@@ -2,6 +2,9 @@ import { NgZone } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { JwtService } from '../auth/jwt.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * server sent events service
7
+ */
5
8
  export declare class SseService {
6
9
  private zone;
7
10
  private jwtService;
@@ -12,8 +12,20 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
12
12
  modelClass: typeof BankConnection;
13
13
  url: string;
14
14
  listenEvents(): void;
15
- post(bankConnection: BankConnection): Observable<BankConnection>;
15
+ add(bankConnection: BankConnection): Observable<BankConnection>;
16
16
  listenToAddedBankAccounts(): void;
17
+ /**
18
+ * When user log in to bank, basiq create a job. We create a bank connection with based on this job
19
+ */
20
+ listenBasiqJobCreated(): void;
21
+ /**
22
+ * When basiq connection disconnected we create a basiq job and update this connection
23
+ */
24
+ listenConnectionUpdated(): void;
25
+ /**
26
+ * Update cache when basiq login failed to get actual connections statuses
27
+ */
28
+ listenNotifications(): void;
17
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
18
30
  static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
19
31
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Response from Basiq api with data to create a Bank Connection
3
+ * https://api.basiq.io/v2.0/docs/build-your-own-1#step-3-create-a-connection
4
+ */
5
+ export interface BasiqConnectionsResponse {
6
+ id: string;
7
+ links: object;
8
+ type: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Response contains Basiq token
3
+ * http://tt.service/api/doc (GET /api/basiq/tokens)
4
+ */
5
+ export interface BasiqTokenResponse {
6
+ access_token: string;
7
+ expires_in: number;
8
+ token_type: string;
9
+ }
@@ -0,0 +1,17 @@
1
+ import { BasiqToken } from '../../../../models/bank/basiq-token';
2
+ import { Observable, ReplaySubject } from 'rxjs';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BasiqTokenService {
6
+ protected http: HttpClient;
7
+ protected environment: any;
8
+ cache: BasiqToken;
9
+ cacheSubject: ReplaySubject<BasiqToken>;
10
+ constructor(http: HttpClient, environment: any);
11
+ /**
12
+ * Access token to use basiq flow
13
+ */
14
+ get(): Observable<BasiqToken>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasiqTokenService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<BasiqTokenService>;
17
+ }
@@ -1,32 +1,41 @@
1
- import { Observable, ReplaySubject } from 'rxjs';
1
+ import { Observable } from 'rxjs';
2
2
  import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
3
- import { BankAccount } from '../../../../models/bank/bank-account';
4
3
  import { RestService } from '../../rest/rest.service';
5
- import { BasiqToken } from '../../../../models/bank/basiq-token';
4
+ import { BankAccount } from '../../../../models/bank/bank-account';
6
5
  import { BankConnection } from '../../../../models/bank/bank-connection';
6
+ import { IEventListener } from '../../../../interfaces/event-listener.interface';
7
+ import { HttpClient } from '@angular/common/http';
8
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
9
+ import { BankConnectionService } from '../bank-connection/bank-connection.service';
10
+ import { ToastService } from '../../../toast/toast.service';
11
+ import { BankLoginData } from '../../../../models/bank/bank-login-data';
7
12
  import * as i0 from "@angular/core";
8
13
  /**
9
14
  * basiq is a middleman between bank and user
10
15
  * service is responsible for fetching bank related information
11
16
  */
12
- export declare class BasiqService extends RestService<BankAccountBase, BankAccount> {
13
- token: BasiqToken;
14
- tokenSubject: ReplaySubject<BasiqToken>;
17
+ export declare class BasiqService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
18
+ protected http: HttpClient;
19
+ protected eventDispatcherService: EventDispatcherService;
20
+ protected environment: any;
21
+ protected toastService: ToastService;
22
+ private bankConnectionService;
23
+ static basiqApiUrl: string;
15
24
  url: string;
16
25
  modelClass: typeof BankAccount;
26
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, bankConnectionService: BankConnectionService);
17
27
  /**
18
28
  * Listen events from Event Dispatcher service
19
29
  */
20
30
  listenEvents(): void;
21
31
  /**
22
- * access token to use basiq connect ui iframe
32
+ * Create Basiq job for the new bank connection creation
23
33
  */
24
- getToken(): Observable<BasiqToken>;
25
- getConnections(): Observable<BankConnection[]>;
34
+ createConnection(data: BankLoginData, userId: string, connection: BankConnection): Observable<string>;
26
35
  /**
27
- * Listen to EventDispatcherService event related to added Bank connection
36
+ * Update disconnected bank connection
28
37
  */
29
- private listenToBankConnectionAdded;
38
+ updateConnection(data: object, userId: string, connection: BankConnection): Observable<string>;
30
39
  /**
31
40
  * listen to notifications to update basiq accounts list
32
41
  */
@@ -38,11 +38,6 @@ export declare abstract class RestService<BaseModel, Model extends BaseModel> im
38
38
  * @param id ID of required item
39
39
  */
40
40
  findById(id: number): Observable<Model>;
41
- /**
42
- * get list of items filtered by id.
43
- * @param models Array of objects contains required items ids
44
- */
45
- getByIds(models: Model[]): Observable<Model[]>;
46
41
  /**
47
42
  * add new instance and update cache
48
43
  * @TODO rename to post
@@ -72,7 +72,6 @@ export declare class UserService implements IEventListener {
72
72
  * Update cache when user's service subscription is updated
73
73
  */
74
74
  private listenServiceSubscriptionUpdated;
75
- private listenBasiqConcentUpdated;
76
75
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
77
76
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
78
77
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Settings for generated PDF file from DOM elements
3
+ */
4
+ export declare const FILE_SETTINGS: {
5
+ [key: string]: any;
6
+ };