taxtank-core 0.5.1 → 0.6.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 (870) hide show
  1. package/README.md +5 -5
  2. package/bundles/taxtank-core.umd.js +12108 -11915
  3. package/bundles/taxtank-core.umd.js.map +1 -1
  4. package/esm2015/lib/collections/bank-account.collection.js +135 -135
  5. package/esm2015/lib/collections/bank-transaction.collection.js +119 -119
  6. package/esm2015/lib/collections/client-movement.collection.js +31 -31
  7. package/esm2015/lib/collections/client-portfolio-report.collection.js +40 -40
  8. package/esm2015/lib/collections/client.collection.js +4 -4
  9. package/esm2015/lib/collections/collection-dictionary.js +86 -86
  10. package/esm2015/lib/collections/collection.js +74 -74
  11. package/esm2015/lib/collections/depreciation-forecast.collection.js +19 -19
  12. package/esm2015/lib/collections/depreciation.collection.js +90 -72
  13. package/esm2015/lib/collections/employee.collection.js +12 -12
  14. package/esm2015/lib/collections/income-source.collection.js +38 -38
  15. package/esm2015/lib/collections/loan.collection.js +18 -18
  16. package/esm2015/lib/collections/logbook.collection.js +97 -97
  17. package/esm2015/lib/collections/message-document.collection.js +13 -13
  18. package/esm2015/lib/collections/message.collection.js +21 -21
  19. package/esm2015/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.js +20 -0
  20. package/esm2015/lib/collections/property/property.collection.js +72 -0
  21. package/esm2015/lib/collections/service-price.collection.js +10 -10
  22. package/esm2015/lib/collections/service-subscription.collection.js +17 -17
  23. package/esm2015/lib/collections/tax-return-category-item.collection.js +141 -141
  24. package/esm2015/lib/collections/tax-review.collection.js +55 -55
  25. package/esm2015/lib/collections/transaction-allocation.collection.js +40 -40
  26. package/esm2015/lib/collections/transaction.collection.js +123 -120
  27. package/esm2015/lib/collections/user-event-setting.collection.js +10 -10
  28. package/esm2015/lib/db/Enums/address-type.enum.js +6 -6
  29. package/esm2015/lib/db/Enums/bank-account-status.enum.js +6 -6
  30. package/esm2015/lib/db/Enums/bank-account-type.enum.js +12 -12
  31. package/esm2015/lib/db/Enums/bank-connection-status.enum.js +7 -7
  32. package/esm2015/lib/db/Enums/bank-transaction-type.enum.js +6 -6
  33. package/esm2015/lib/db/Enums/chart-accounts-category.enum.js +18 -15
  34. package/esm2015/lib/db/Enums/chart-accounts-etp.enum.js +9 -9
  35. package/esm2015/lib/db/Enums/chart-accounts-heading-tax-deductible.enum.js +8 -8
  36. package/esm2015/lib/db/Enums/chart-accounts-heading-taxable.enum.js +8 -8
  37. package/esm2015/lib/db/Enums/chart-accounts-heading-vehicle-list.enum.js +6 -6
  38. package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +21 -21
  39. package/esm2015/lib/db/Enums/chart-accounts-metadata-list.enum.js +16 -16
  40. package/esm2015/lib/db/Enums/chart-accounts-metadata-type.enum.js +6 -6
  41. package/esm2015/lib/db/Enums/chart-accounts-type.enum.js +6 -6
  42. package/esm2015/lib/db/Enums/chat-status.enum.js +6 -6
  43. package/esm2015/lib/db/Enums/client-details-medicare-exemption.enum.js +7 -7
  44. package/esm2015/lib/db/Enums/client-details-work-depreciation-calculation.enum.js +6 -6
  45. package/esm2015/lib/db/Enums/client-details-working-holiday-maker.enum.js +7 -7
  46. package/esm2015/lib/db/Enums/client-invite-status.enum.js +6 -6
  47. package/esm2015/lib/db/Enums/client-invite-type.enum.js +6 -6
  48. package/esm2015/lib/db/Enums/depreciation-calculation-percent.enum.js +9 -9
  49. package/esm2015/lib/db/Enums/depreciation-calculation.enum.js +9 -9
  50. package/esm2015/lib/db/Enums/depreciation-type.enum.js +8 -8
  51. package/esm2015/lib/db/Enums/depreciation-write-off-amount.enum.js +6 -6
  52. package/esm2015/lib/db/Enums/firm-type.enum.js +6 -6
  53. package/esm2015/lib/db/Enums/income-source-type-list-other.enum.js +8 -8
  54. package/esm2015/lib/db/Enums/income-source-type-list-salary.enum.js +5 -5
  55. package/esm2015/lib/db/Enums/income-source-type-list-work.enum.js +10 -10
  56. package/esm2015/lib/db/Enums/income-source-type.enum.js +8 -8
  57. package/esm2015/lib/db/Enums/invite-status.enum.js +7 -7
  58. package/esm2015/lib/db/Enums/loan-bank-type.enum.js +12 -12
  59. package/esm2015/lib/db/Enums/loan-frequency.enum.js +8 -8
  60. package/esm2015/lib/db/Enums/loan-interest-type.enum.js +6 -6
  61. package/esm2015/lib/db/Enums/loan-payout-type.enum.js +6 -6
  62. package/esm2015/lib/db/Enums/loan-repayment-frequency.enum.js +7 -7
  63. package/esm2015/lib/db/Enums/loan-repayment-type.enum.js +6 -6
  64. package/esm2015/lib/db/Enums/loan-type.enum.js +14 -14
  65. package/esm2015/lib/db/Enums/loan-vehicle-type.enum.js +7 -7
  66. package/esm2015/lib/db/Enums/phone-type.enum.js +6 -6
  67. package/esm2015/lib/db/Enums/property/property-category-list.enum.js +5 -0
  68. package/esm2015/lib/db/Enums/{property-depreciation-calculation.enum.js → property/property-depreciation-calculation.enum.js} +6 -6
  69. package/esm2015/lib/db/Enums/property/property-owner-access.enum.js +6 -0
  70. package/esm2015/lib/db/Enums/property/property-owner-status.enum.js +7 -0
  71. package/esm2015/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.js +9 -0
  72. package/esm2015/lib/db/Enums/property/property-sale/tax-exemption.enum.js +12 -0
  73. package/esm2015/lib/db/Enums/registration-invite-status.enum.js +6 -6
  74. package/esm2015/lib/db/Enums/salary-forecast-frequency.enum.js +8 -8
  75. package/esm2015/lib/db/Enums/service-notification-status.enum.js +7 -7
  76. package/esm2015/lib/db/Enums/service-notification-type.enum.js +6 -6
  77. package/esm2015/lib/db/Enums/service-payment-status.enum.js +6 -6
  78. package/esm2015/lib/db/Enums/service-price-recurring-interval.enum.js +8 -8
  79. package/esm2015/lib/db/Enums/service-price-type.enum.js +6 -6
  80. package/esm2015/lib/db/Enums/service-subscription-status.enum.js +10 -10
  81. package/esm2015/lib/db/Enums/spare-document-spare-type.enum.js +6 -6
  82. package/esm2015/lib/db/Enums/tank-type.enum.js +8 -7
  83. package/esm2015/lib/db/Enums/tax-calculation-medicare-exemption.enum.js +6 -6
  84. package/esm2015/lib/db/Enums/tax-calculation-type.enum.js +14 -14
  85. package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +28 -28
  86. package/esm2015/lib/db/Enums/tax-return-category-section.enum.js +8 -8
  87. package/esm2015/lib/db/Enums/tax-review-status.enum.js +13 -13
  88. package/esm2015/lib/db/Enums/tax-summary-list.enum.js +17 -17
  89. package/esm2015/lib/db/Enums/tax-summary-section.enum.js +8 -8
  90. package/esm2015/lib/db/Enums/tax-summary-tax-summary.enum.js +17 -17
  91. package/esm2015/lib/db/Enums/ticket-feedback.enum.js +6 -6
  92. package/esm2015/lib/db/Enums/ticket-status.enum.js +9 -9
  93. package/esm2015/lib/db/Enums/ticket-types.enum.js +5 -5
  94. package/esm2015/lib/db/Enums/transaction-operation.enum.js +7 -7
  95. package/esm2015/lib/db/Enums/transaction-source.enum.js +6 -6
  96. package/esm2015/lib/db/Enums/transaction-type.enum.js +6 -6
  97. package/esm2015/lib/db/Enums/user-event-status.enum.js +9 -9
  98. package/esm2015/lib/db/Enums/user-event-type-client-type.enum.js +29 -29
  99. package/esm2015/lib/db/Enums/user-event-type-employee-type.enum.js +17 -17
  100. package/esm2015/lib/db/Enums/user-event-type-frequency.enum.js +7 -7
  101. package/esm2015/lib/db/Enums/user-event-type-user-type.enum.js +7 -7
  102. package/esm2015/lib/db/Enums/user-medicare-exemption.enum.js +7 -7
  103. package/esm2015/lib/db/Enums/user-roles.enum.js +15 -15
  104. package/esm2015/lib/db/Enums/user-status.enum.js +8 -8
  105. package/esm2015/lib/db/Enums/user-title.enum.js +9 -9
  106. package/esm2015/lib/db/Enums/user-work-depreciation-calculation.enum.js +6 -6
  107. package/esm2015/lib/db/Enums/user-working-holiday-maker.enum.js +7 -7
  108. package/esm2015/lib/db/Enums/vehicle-claim-method.enum.js +6 -6
  109. package/esm2015/lib/db/Enums/vehicle-logbook-purpose.enum.js +6 -6
  110. package/esm2015/lib/db/Models/address.js +3 -3
  111. package/esm2015/lib/db/Models/bank-account-balance.js +3 -3
  112. package/esm2015/lib/db/Models/bank-account-property.js +3 -3
  113. package/esm2015/lib/db/Models/bank-account.js +3 -3
  114. package/esm2015/lib/db/Models/bank-connection.js +3 -3
  115. package/esm2015/lib/db/Models/bank-transaction-import.js +3 -3
  116. package/esm2015/lib/db/Models/bank-transaction.js +3 -3
  117. package/esm2015/lib/db/Models/bank.js +3 -3
  118. package/esm2015/lib/db/Models/basiq-job.js +3 -3
  119. package/esm2015/lib/db/Models/borrowing-expense-loan.js +3 -3
  120. package/esm2015/lib/db/Models/borrowing-expense.js +3 -3
  121. package/esm2015/lib/db/Models/chart-accounts-depreciation.js +3 -3
  122. package/esm2015/lib/db/Models/chart-accounts-heading.js +3 -3
  123. package/esm2015/lib/db/Models/chart-accounts-metadata.js +3 -3
  124. package/esm2015/lib/db/Models/chart-accounts-value.js +3 -3
  125. package/esm2015/lib/db/Models/chart-accounts.js +3 -3
  126. package/esm2015/lib/db/Models/chat.js +3 -3
  127. package/esm2015/lib/db/Models/client-details.js +3 -3
  128. package/esm2015/lib/db/Models/client-invite.js +3 -3
  129. package/esm2015/lib/db/Models/client-movement.js +3 -3
  130. package/esm2015/lib/db/Models/country.js +3 -3
  131. package/esm2015/lib/db/Models/depreciation-capital-project.js +3 -3
  132. package/esm2015/lib/db/Models/depreciation-forecast.js +3 -3
  133. package/esm2015/lib/db/Models/depreciation-receipt.js +3 -3
  134. package/esm2015/lib/db/Models/depreciation.js +4 -4
  135. package/esm2015/lib/db/Models/document-folder.js +3 -3
  136. package/esm2015/lib/db/Models/document.js +3 -3
  137. package/esm2015/lib/db/Models/employee-details.js +3 -3
  138. package/esm2015/lib/db/Models/employee-invite.js +3 -3
  139. package/esm2015/lib/db/Models/financial-data-system.js +3 -3
  140. package/esm2015/lib/db/Models/firm.js +3 -3
  141. package/esm2015/lib/db/Models/income-source-forecast.js +3 -3
  142. package/esm2015/lib/db/Models/income-source-type.js +3 -3
  143. package/esm2015/lib/db/Models/income-source.js +3 -3
  144. package/esm2015/lib/db/Models/loan-payout.js +3 -3
  145. package/esm2015/lib/db/Models/loan.js +3 -3
  146. package/esm2015/lib/db/Models/message-document.js +3 -3
  147. package/esm2015/lib/db/Models/message.js +3 -3
  148. package/esm2015/lib/db/Models/occupation.js +3 -3
  149. package/esm2015/lib/db/Models/phone.js +3 -3
  150. package/esm2015/lib/db/Models/property/property-category-movement.js +3 -0
  151. package/esm2015/lib/db/Models/property/property-category.js +3 -0
  152. package/esm2015/lib/db/Models/property/property-document.js +3 -0
  153. package/esm2015/lib/db/Models/property/property-forecast.js +3 -0
  154. package/esm2015/lib/db/Models/property/property-owner.js +3 -0
  155. package/esm2015/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.js +3 -0
  156. package/esm2015/lib/db/Models/property/property-sale/property-sale.js +3 -0
  157. package/esm2015/lib/db/Models/property/property-sale/tax-exemption-metadata.js +3 -0
  158. package/esm2015/lib/db/Models/property/property-sale/tax-exemption.js +3 -0
  159. package/esm2015/lib/db/Models/property/property-subscription.js +3 -0
  160. package/esm2015/lib/db/Models/property/property-valuation.js +3 -0
  161. package/esm2015/lib/db/Models/property/property.js +3 -0
  162. package/esm2015/lib/db/Models/registration-invite.js +3 -3
  163. package/esm2015/lib/db/Models/salary-forecast.js +3 -3
  164. package/esm2015/lib/db/Models/service-notification.js +3 -3
  165. package/esm2015/lib/db/Models/service-payment.js +3 -3
  166. package/esm2015/lib/db/Models/service-price.js +3 -3
  167. package/esm2015/lib/db/Models/service-product.js +3 -3
  168. package/esm2015/lib/db/Models/service-subscription-item.js +3 -3
  169. package/esm2015/lib/db/Models/service-subscription.js +3 -3
  170. package/esm2015/lib/db/Models/sole-forecast.js +3 -3
  171. package/esm2015/lib/db/Models/tax-return-category.js +3 -3
  172. package/esm2015/lib/db/Models/tax-return-item.js +3 -3
  173. package/esm2015/lib/db/Models/tax-return.js +3 -3
  174. package/esm2015/lib/db/Models/tax-review.js +3 -3
  175. package/esm2015/lib/db/Models/ticket.js +3 -3
  176. package/esm2015/lib/db/Models/transaction-allocation.js +3 -3
  177. package/esm2015/lib/db/Models/transaction-base.js +20 -20
  178. package/esm2015/lib/db/Models/transaction-metadata.js +3 -3
  179. package/esm2015/lib/db/Models/transaction-receipt.js +3 -3
  180. package/esm2015/lib/db/Models/transaction.js +4 -4
  181. package/esm2015/lib/db/Models/user-event-setting.js +3 -3
  182. package/esm2015/lib/db/Models/user-event-type-category.js +3 -3
  183. package/esm2015/lib/db/Models/user-event-type.js +3 -3
  184. package/esm2015/lib/db/Models/user-event.js +3 -3
  185. package/esm2015/lib/db/Models/user.js +3 -3
  186. package/esm2015/lib/db/Models/vehicle-claim.js +3 -3
  187. package/esm2015/lib/db/Models/vehicle-logbook.js +3 -3
  188. package/esm2015/lib/db/Models/vehicle.js +3 -3
  189. package/esm2015/lib/functions/array/index.js +3 -3
  190. package/esm2015/lib/functions/array/replace.js +5 -5
  191. package/esm2015/lib/functions/array/sort-deep.js +21 -21
  192. package/esm2015/lib/functions/array/sort.js +12 -12
  193. package/esm2015/lib/functions/clone-deep.js +5 -5
  194. package/esm2015/lib/functions/create-date.js +8 -8
  195. package/esm2015/lib/functions/enum-to-list.js +12 -12
  196. package/esm2015/lib/functions/get-doc-icon.js +18 -18
  197. package/esm2015/lib/functions/mat-options-functions.js +9 -9
  198. package/esm2015/lib/functions/mat-sort-options.js +10 -10
  199. package/esm2015/lib/functions/round-to.js +10 -10
  200. package/esm2015/lib/functions/tax-review-filter-predicate.js +10 -10
  201. package/esm2015/lib/interceptors/corelogic-interceptor.js +44 -44
  202. package/esm2015/lib/interceptors/financial-year-interceptor.js +29 -29
  203. package/esm2015/lib/interceptors/interceptors.module.js +73 -73
  204. package/esm2015/lib/interceptors/jwt-interceptor.js +137 -137
  205. package/esm2015/lib/interceptors/preloader.interceptor.js +32 -32
  206. package/esm2015/lib/interceptors/user-switcher-interceptor.js +42 -42
  207. package/esm2015/lib/interfaces/asset-entity-type.enum.js +12 -12
  208. package/esm2015/lib/interfaces/asset-type.enum.js +10 -10
  209. package/esm2015/lib/interfaces/asset.interface.js +2 -2
  210. package/esm2015/lib/interfaces/chart-data.interface.js +1 -1
  211. package/esm2015/lib/interfaces/chart-serie.interface.js +1 -1
  212. package/esm2015/lib/interfaces/document.interface.js +2 -2
  213. package/esm2015/lib/interfaces/documentable.interface.js +2 -2
  214. package/esm2015/lib/interfaces/event-listener.interface.js +1 -1
  215. package/esm2015/lib/interfaces/income-source-forecast.interface.js +2 -2
  216. package/esm2015/lib/interfaces/option.interface.js +1 -1
  217. package/esm2015/lib/interfaces/photoable.js +1 -1
  218. package/esm2015/lib/interfaces/receipt.interface.js +2 -2
  219. package/esm2015/lib/interfaces/tank.interface.js +2 -2
  220. package/esm2015/lib/models/address/address.js +23 -23
  221. package/esm2015/lib/models/address/country.js +15 -15
  222. package/esm2015/lib/models/bank/bank-account-chart-data.js +34 -34
  223. package/esm2015/lib/models/bank/bank-account-property.js +10 -10
  224. package/esm2015/lib/models/bank/bank-account-types.const.js +15 -15
  225. package/esm2015/lib/models/bank/bank-account.js +122 -122
  226. package/esm2015/lib/models/bank/bank-connection.js +21 -21
  227. package/esm2015/lib/models/bank/bank-transaction-chart-data.js +106 -106
  228. package/esm2015/lib/models/bank/bank-transaction-summary-fields.enum.js +6 -6
  229. package/esm2015/lib/models/bank/bank-transaction.js +67 -67
  230. package/esm2015/lib/models/bank/bank.js +13 -13
  231. package/esm2015/lib/models/bank/basiq-job.js +4 -4
  232. package/esm2015/lib/models/bank/basiq-token.js +13 -13
  233. package/esm2015/lib/models/bank/type-loan.const.js +7 -7
  234. package/esm2015/lib/models/borrowing-expense/borrowing-expense-loan.js +4 -4
  235. package/esm2015/lib/models/borrowing-expense/borrowing-expense.js +4 -4
  236. package/esm2015/lib/models/chart/chart-data.js +12 -12
  237. package/esm2015/lib/models/chart/chart-serie.js +6 -6
  238. package/esm2015/lib/models/chart-accounts/chart-accounts-categories.const.js +84 -84
  239. package/esm2015/lib/models/chart-accounts/chart-accounts-depreciation.js +16 -16
  240. package/esm2015/lib/models/chart-accounts/chart-accounts-heading.js +3 -3
  241. package/esm2015/lib/models/chart-accounts/chart-accounts-metadata.js +13 -13
  242. package/esm2015/lib/models/chart-accounts/chart-accounts-tax-labels.enum.js +6 -6
  243. package/esm2015/lib/models/chart-accounts/chart-accounts.js +119 -119
  244. package/esm2015/lib/models/chat/chat-view-type.enum.js +6 -6
  245. package/esm2015/lib/models/chat/chat.js +22 -22
  246. package/esm2015/lib/models/chat/message-document.js +19 -19
  247. package/esm2015/lib/models/chat/message.js +38 -38
  248. package/esm2015/lib/models/client/client-details.js +4 -4
  249. package/esm2015/lib/models/client/client-invite.js +66 -66
  250. package/esm2015/lib/models/client/client-movement.js +26 -26
  251. package/esm2015/lib/models/client/client-portfolio-chart-data.js +57 -57
  252. package/esm2015/lib/models/client/client-portfolio-report.js +6 -6
  253. package/esm2015/lib/models/color/alphabet-colors.enum.js +29 -29
  254. package/esm2015/lib/models/data-table/data-table-column.js +13 -13
  255. package/esm2015/lib/models/data-table/data-table.js +42 -42
  256. package/esm2015/lib/models/depreciation/depreciation-capital-project.js +9 -9
  257. package/esm2015/lib/models/depreciation/depreciation-forecast.js +22 -22
  258. package/esm2015/lib/models/depreciation/depreciation-group-item.js +14 -14
  259. package/esm2015/lib/models/depreciation/depreciation-group.enum.js +9 -9
  260. package/esm2015/lib/models/depreciation/depreciation-group.js +15 -15
  261. package/esm2015/lib/models/depreciation/depreciation-groups.const.js +29 -29
  262. package/esm2015/lib/models/depreciation/depreciation-receipt.js +11 -11
  263. package/esm2015/lib/models/depreciation/depreciation.js +174 -163
  264. package/esm2015/lib/models/document/document-api-url-prefix.enum.js +9 -9
  265. package/esm2015/lib/models/document/document-file-types.const.js +23 -23
  266. package/esm2015/lib/models/document/document-folder.js +10 -10
  267. package/esm2015/lib/models/document/document.js +24 -24
  268. package/esm2015/lib/models/employee/employee-details.js +10 -10
  269. package/esm2015/lib/models/employee/employee-invite.js +13 -13
  270. package/esm2015/lib/models/endpoint/endpoint.js +22 -22
  271. package/esm2015/lib/models/endpoint/endpoints.const.js +143 -144
  272. package/esm2015/lib/models/event/app-event-type.enum.js +42 -42
  273. package/esm2015/lib/models/event/app-event.js +10 -10
  274. package/esm2015/lib/models/file/icons-file.enum.js +7 -7
  275. package/esm2015/lib/models/financial-year/financial-year.js +43 -43
  276. package/esm2015/lib/models/financial-year/month-name-short.enum.js +20 -20
  277. package/esm2015/lib/models/financial-year/month-number.enum.js +20 -20
  278. package/esm2015/lib/models/financial-year/months.const.js +2 -2
  279. package/esm2015/lib/models/firm/firm.js +29 -29
  280. package/esm2015/lib/models/income-position/income-position.js +9 -9
  281. package/esm2015/lib/models/income-source/income-source-chart-data.js +45 -45
  282. package/esm2015/lib/models/income-source/income-source-forecast.js +31 -31
  283. package/esm2015/lib/models/income-source/income-source-type.js +32 -32
  284. package/esm2015/lib/models/income-source/income-source.js +57 -57
  285. package/esm2015/lib/models/income-source/salary-forecast.js +14 -14
  286. package/esm2015/lib/models/income-source/sole-forecast.js +14 -14
  287. package/esm2015/lib/models/loan/loan-max-number-of-payments.enum.js +10 -10
  288. package/esm2015/lib/models/loan/loan-payment.js +12 -12
  289. package/esm2015/lib/models/loan/loan-payout.js +11 -11
  290. package/esm2015/lib/models/loan/loan.js +39 -39
  291. package/esm2015/lib/models/logbook/default-vehicle-expense.js +20 -20
  292. package/esm2015/lib/models/logbook/logbook-period.js +11 -11
  293. package/esm2015/lib/models/logbook/logbook-purpose-options.const.js +6 -6
  294. package/esm2015/lib/models/logbook/vehicle-claim.js +32 -32
  295. package/esm2015/lib/models/logbook/vehicle-logbook.js +16 -16
  296. package/esm2015/lib/models/logbook/vehicle.js +39 -39
  297. package/esm2015/lib/models/notification/notification.js +39 -39
  298. package/esm2015/lib/models/pdf/pdf-config.js +24 -24
  299. package/esm2015/lib/models/phone/phone.js +11 -11
  300. package/esm2015/lib/models/property/calculation-form-item.js +17 -17
  301. package/esm2015/lib/models/property/calculation-form-type.enum.js +9 -9
  302. package/esm2015/lib/models/property/capital-costs-itmes.const.js +57 -57
  303. package/esm2015/lib/models/property/corelogic-suggestion.js +6 -6
  304. package/esm2015/lib/models/property/ownership-filter-options.enum.js +10 -10
  305. package/esm2015/lib/models/property/property-category-movement.js +20 -20
  306. package/esm2015/lib/models/property/property-category.js +11 -8
  307. package/esm2015/lib/models/property/property-document.js +17 -17
  308. package/esm2015/lib/models/property/property-equity-chart-data.js +155 -155
  309. package/esm2015/lib/models/property/property-equity-chart-item.js +24 -24
  310. package/esm2015/lib/models/property/property-equity-chart-type.enum.js +6 -6
  311. package/esm2015/lib/models/property/property-forecast.js +52 -52
  312. package/esm2015/lib/models/property/property-owner.js +48 -48
  313. package/esm2015/lib/models/property/property-sale/property-sale-tax-exemption-metadata.js +4 -0
  314. package/esm2015/lib/models/property/property-sale/property-sale.js +19 -0
  315. package/esm2015/lib/models/property/property-sale/tax-exemption-metadata.js +4 -0
  316. package/esm2015/lib/models/property/property-sale/tax-exemption.js +4 -0
  317. package/esm2015/lib/models/property/property-subscription.js +13 -13
  318. package/esm2015/lib/models/property/property-valuation.js +23 -23
  319. package/esm2015/lib/models/property/property.js +213 -130
  320. package/esm2015/lib/models/registration-invite/registration-invite.js +10 -10
  321. package/esm2015/lib/models/service-subscription/module-url-list.const.js +12 -12
  322. package/esm2015/lib/models/service-subscription/service-payment.js +10 -10
  323. package/esm2015/lib/models/service-subscription/service-price.js +10 -10
  324. package/esm2015/lib/models/service-subscription/service-product.js +10 -10
  325. package/esm2015/lib/models/service-subscription/service-subscription-item.js +13 -13
  326. package/esm2015/lib/models/service-subscription/service-subscription.js +128 -128
  327. package/esm2015/lib/models/service-subscription/subscription-description.const.js +7 -7
  328. package/esm2015/lib/models/service-subscription/subscription-title.const.js +7 -7
  329. package/esm2015/lib/models/service-subscription/subscription-type.enum.js +7 -7
  330. package/esm2015/lib/models/tax-review/tax-review.js +86 -86
  331. package/esm2015/lib/models/tax-summary/tax-return-category-item-details.js +9 -9
  332. package/esm2015/lib/models/tax-summary/tax-return-category-item.js +15 -15
  333. package/esm2015/lib/models/tax-summary/tax-summary-section.js +30 -30
  334. package/esm2015/lib/models/tax-summary/tax-summary-type.enum.js +9 -9
  335. package/esm2015/lib/models/tax-summary/tax-summary.js +71 -71
  336. package/esm2015/lib/models/transaction/income-amount-type.enum.js +9 -9
  337. package/esm2015/lib/models/transaction/transaction-allocation.js +21 -21
  338. package/esm2015/lib/models/transaction/transaction-metadata.js +10 -10
  339. package/esm2015/lib/models/transaction/transaction-receipt.js +11 -11
  340. package/esm2015/lib/models/transaction/transaction.js +223 -223
  341. package/esm2015/lib/models/user/my-account-history-initiated-by.enum.js +6 -6
  342. package/esm2015/lib/models/user/my-account-history-status.enum.js +6 -6
  343. package/esm2015/lib/models/user/my-account-history-type.enum.js +7 -7
  344. package/esm2015/lib/models/user/my-account-history.js +3 -3
  345. package/esm2015/lib/models/user/occupation.js +4 -4
  346. package/esm2015/lib/models/user/user-roles.const.js +13 -13
  347. package/esm2015/lib/models/user/user-to-register.js +6 -6
  348. package/esm2015/lib/models/user/user-work-position.const.js +6 -6
  349. package/esm2015/lib/models/user/user.js +138 -138
  350. package/esm2015/lib/models/user-event/user-event-setting-field.enum.js +10 -10
  351. package/esm2015/lib/models/user-event/user-event-setting.js +18 -18
  352. package/esm2015/lib/models/user-event/user-event-type-category.js +4 -4
  353. package/esm2015/lib/models/user-event/user-event-type.js +19 -19
  354. package/esm2015/lib/services/address/address.service.js +39 -39
  355. package/esm2015/lib/services/asset/assets.service.js +51 -51
  356. package/esm2015/lib/services/auth/auth.service.js +46 -46
  357. package/esm2015/lib/services/auth/jwt.service.js +36 -36
  358. package/esm2015/lib/services/bank/bank-account-calculation.service.js +30 -30
  359. package/esm2015/lib/services/bank/bank-account.service.js +118 -118
  360. package/esm2015/lib/services/bank/bank-connection.service.js +52 -52
  361. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +65 -65
  362. package/esm2015/lib/services/bank/bank-transaction.service.js +89 -89
  363. package/esm2015/lib/services/bank/bank.service.js +24 -24
  364. package/esm2015/lib/services/bank/basiq.service.js +94 -94
  365. package/esm2015/lib/services/base-rest.service.js +190 -190
  366. package/esm2015/lib/services/borrowing-expense/borrowing-expense.service.js +73 -73
  367. package/esm2015/lib/services/chart-accounts/chart-accounts-depreciations.service.js +38 -38
  368. package/esm2015/lib/services/chart-accounts/chart-accounts.service.js +89 -89
  369. package/esm2015/lib/services/chat/chat.service.js +77 -77
  370. package/esm2015/lib/services/chat/message-document.service.js +118 -118
  371. package/esm2015/lib/services/chat/message.service.js +65 -65
  372. package/esm2015/lib/services/client/client-invite.service.js +102 -102
  373. package/esm2015/lib/services/client/client-movement.service.js +98 -98
  374. package/esm2015/lib/services/client/client-portfolio-report.service.js +37 -37
  375. package/esm2015/lib/services/depreciation/capital-project.service.js +62 -62
  376. package/esm2015/lib/services/depreciation/depreciation.service.js +146 -146
  377. package/esm2015/lib/services/document/document-folder.service.js +84 -84
  378. package/esm2015/lib/services/employee/employee-invite.service.js +53 -53
  379. package/esm2015/lib/services/employee/employee.service.js +39 -39
  380. package/esm2015/lib/services/event/event-dispatcher.service.js +30 -30
  381. package/esm2015/lib/services/event/sse.service.js +46 -46
  382. package/esm2015/lib/services/firm/firm.service.js +79 -79
  383. package/esm2015/lib/services/header-title/header-title.service.js +28 -28
  384. package/esm2015/lib/services/income-source/income-source-forecast.service.js +90 -90
  385. package/esm2015/lib/services/income-source/income-source.service.js +109 -109
  386. package/esm2015/lib/services/income-source/salary-forecast.service.js +90 -90
  387. package/esm2015/lib/services/income-source/sole-forecast.service.js +87 -87
  388. package/esm2015/lib/services/intercom/intercom.service.js +41 -41
  389. package/esm2015/lib/services/loan/loan.service.js +145 -145
  390. package/esm2015/lib/services/notification/notification.service.js +65 -65
  391. package/esm2015/lib/services/pdf/pdf.service.js +94 -88
  392. package/esm2015/lib/services/preloader/preloader.service.js +30 -30
  393. package/esm2015/lib/services/property/corelogic/corelogic.service.js +46 -0
  394. package/esm2015/lib/services/property/equity-position-chart.service.js +45 -45
  395. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +121 -0
  396. package/esm2015/lib/services/property/property-category/property-category.service.js +23 -0
  397. package/esm2015/lib/services/property/property-category-movement.service.js +47 -47
  398. package/esm2015/lib/services/property/property-document/property-document.service.js +70 -0
  399. package/esm2015/lib/services/property/property-owner/property-owner.service.js +123 -0
  400. package/esm2015/lib/services/property/property-sale/property-sale.service.js +20 -0
  401. package/esm2015/lib/services/property/property-sale/tax-exemption/tax-exemption.service.js +21 -0
  402. package/esm2015/lib/services/property/property.service.js +126 -126
  403. package/esm2015/lib/services/subscription/subscription.service.js +138 -138
  404. package/esm2015/lib/services/tax-review/tax-review-history.service.js +41 -41
  405. package/esm2015/lib/services/tax-review/tax-review.service.js +103 -103
  406. package/esm2015/lib/services/tax-summary/tax-summary.service.js +71 -71
  407. package/esm2015/lib/services/transaction/transaction-allocation.service.js +85 -85
  408. package/esm2015/lib/services/transaction/transaction-calculation.service.js +47 -47
  409. package/esm2015/lib/services/transaction/transaction.service.js +319 -319
  410. package/esm2015/lib/services/user/occupation.service.js +45 -45
  411. package/esm2015/lib/services/user/user-switcher.service.js +37 -37
  412. package/esm2015/lib/services/user/user.service.js +124 -124
  413. package/esm2015/lib/services/user-event/user-event-setting.service.js +59 -59
  414. package/esm2015/lib/services/user-event/user-event-type.service.js +29 -29
  415. package/esm2015/lib/services/work/work-tank.service.js +236 -236
  416. package/esm2015/lib/services/xlsx/xlsx.service.js +54 -54
  417. package/esm2015/lib/tt-core.module.js +36 -36
  418. package/esm2015/public-api.js +351 -347
  419. package/esm2015/taxtank-core.js +4 -4
  420. package/fesm2015/taxtank-core.js +10015 -9856
  421. package/fesm2015/taxtank-core.js.map +1 -1
  422. package/lib/collections/bank-account.collection.d.ts +67 -67
  423. package/lib/collections/bank-transaction.collection.d.ts +72 -72
  424. package/lib/collections/client-movement.collection.d.ts +17 -17
  425. package/lib/collections/client-portfolio-report.collection.d.ts +26 -26
  426. package/lib/collections/client.collection.d.ts +4 -4
  427. package/lib/collections/collection-dictionary.d.ts +47 -47
  428. package/lib/collections/collection.d.ts +37 -37
  429. package/lib/collections/depreciation-forecast.collection.d.ts +11 -11
  430. package/lib/collections/depreciation.collection.d.ts +36 -28
  431. package/lib/collections/employee.collection.d.ts +6 -6
  432. package/lib/collections/income-source.collection.d.ts +25 -25
  433. package/lib/collections/loan.collection.d.ts +14 -14
  434. package/lib/collections/logbook.collection.d.ts +19 -19
  435. package/lib/collections/message-document.collection.d.ts +11 -11
  436. package/lib/collections/message.collection.d.ts +14 -14
  437. package/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.d.ts +8 -0
  438. package/lib/collections/{property.collection.d.ts → property/property.collection.d.ts} +38 -38
  439. package/lib/collections/service-price.collection.d.ts +6 -6
  440. package/lib/collections/service-subscription.collection.d.ts +8 -8
  441. package/lib/collections/tax-return-category-item.collection.d.ts +68 -68
  442. package/lib/collections/tax-review.collection.d.ts +35 -35
  443. package/lib/collections/transaction-allocation.collection.d.ts +23 -23
  444. package/lib/collections/transaction.collection.d.ts +77 -76
  445. package/lib/collections/user-event-setting.collection.d.ts +8 -8
  446. package/lib/db/Enums/address-type.enum.d.ts +4 -4
  447. package/lib/db/Enums/bank-account-status.enum.d.ts +4 -4
  448. package/lib/db/Enums/bank-account-type.enum.d.ts +10 -10
  449. package/lib/db/Enums/bank-connection-status.enum.d.ts +5 -5
  450. package/lib/db/Enums/bank-transaction-type.enum.d.ts +4 -4
  451. package/lib/db/Enums/chart-accounts-category.enum.d.ts +16 -13
  452. package/lib/db/Enums/chart-accounts-etp.enum.d.ts +7 -7
  453. package/lib/db/Enums/chart-accounts-heading-tax-deductible.enum.d.ts +6 -6
  454. package/lib/db/Enums/chart-accounts-heading-taxable.enum.d.ts +6 -6
  455. package/lib/db/Enums/chart-accounts-heading-vehicle-list.enum.d.ts +4 -4
  456. package/lib/db/Enums/chart-accounts-list.enum.d.ts +19 -19
  457. package/lib/db/Enums/chart-accounts-metadata-list.enum.d.ts +14 -14
  458. package/lib/db/Enums/chart-accounts-metadata-type.enum.d.ts +4 -4
  459. package/lib/db/Enums/chart-accounts-type.enum.d.ts +4 -4
  460. package/lib/db/Enums/chat-status.enum.d.ts +4 -4
  461. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts +5 -5
  462. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts +4 -4
  463. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts +5 -5
  464. package/lib/db/Enums/client-invite-status.enum.d.ts +4 -4
  465. package/lib/db/Enums/client-invite-type.enum.d.ts +4 -4
  466. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts +7 -7
  467. package/lib/db/Enums/depreciation-calculation.enum.d.ts +7 -7
  468. package/lib/db/Enums/depreciation-type.enum.d.ts +6 -6
  469. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts +4 -4
  470. package/lib/db/Enums/firm-type.enum.d.ts +4 -4
  471. package/lib/db/Enums/income-source-type-list-other.enum.d.ts +6 -6
  472. package/lib/db/Enums/income-source-type-list-salary.enum.d.ts +3 -3
  473. package/lib/db/Enums/income-source-type-list-work.enum.d.ts +8 -8
  474. package/lib/db/Enums/income-source-type.enum.d.ts +6 -6
  475. package/lib/db/Enums/invite-status.enum.d.ts +5 -5
  476. package/lib/db/Enums/loan-bank-type.enum.d.ts +10 -10
  477. package/lib/db/Enums/loan-frequency.enum.d.ts +6 -6
  478. package/lib/db/Enums/loan-interest-type.enum.d.ts +4 -4
  479. package/lib/db/Enums/loan-payout-type.enum.d.ts +4 -4
  480. package/lib/db/Enums/loan-repayment-frequency.enum.d.ts +5 -5
  481. package/lib/db/Enums/loan-repayment-type.enum.d.ts +4 -4
  482. package/lib/db/Enums/loan-type.enum.d.ts +12 -12
  483. package/lib/db/Enums/loan-vehicle-type.enum.d.ts +5 -5
  484. package/lib/db/Enums/phone-type.enum.d.ts +4 -4
  485. package/lib/db/Enums/property/property-category-list.enum.d.ts +3 -0
  486. package/lib/db/Enums/{property-depreciation-calculation.enum.d.ts → property/property-depreciation-calculation.enum.d.ts} +4 -4
  487. package/lib/db/Enums/{property-owner-access.enum.d.ts → property/property-owner-access.enum.d.ts} +4 -4
  488. package/lib/db/Enums/{property-owner-status.enum.d.ts → property/property-owner-status.enum.d.ts} +5 -5
  489. package/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.d.ts +5 -0
  490. package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts +9 -0
  491. package/lib/db/Enums/registration-invite-status.enum.d.ts +4 -4
  492. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts +6 -6
  493. package/lib/db/Enums/service-notification-status.enum.d.ts +5 -5
  494. package/lib/db/Enums/service-notification-type.enum.d.ts +4 -4
  495. package/lib/db/Enums/service-payment-status.enum.d.ts +4 -4
  496. package/lib/db/Enums/service-price-recurring-interval.enum.d.ts +6 -6
  497. package/lib/db/Enums/service-price-type.enum.d.ts +4 -4
  498. package/lib/db/Enums/service-subscription-status.enum.d.ts +8 -8
  499. package/lib/db/Enums/spare-document-spare-type.enum.d.ts +4 -4
  500. package/lib/db/Enums/tank-type.enum.d.ts +6 -5
  501. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts +4 -4
  502. package/lib/db/Enums/tax-calculation-type.enum.d.ts +12 -12
  503. package/lib/db/Enums/tax-return-category-list.enum.d.ts +26 -26
  504. package/lib/db/Enums/tax-return-category-section.enum.d.ts +6 -6
  505. package/lib/db/Enums/tax-review-status.enum.d.ts +11 -11
  506. package/lib/db/Enums/tax-summary-list.enum.d.ts +15 -15
  507. package/lib/db/Enums/tax-summary-section.enum.d.ts +6 -6
  508. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts +15 -15
  509. package/lib/db/Enums/ticket-feedback.enum.d.ts +4 -4
  510. package/lib/db/Enums/ticket-status.enum.d.ts +7 -7
  511. package/lib/db/Enums/ticket-types.enum.d.ts +3 -3
  512. package/lib/db/Enums/transaction-operation.enum.d.ts +5 -5
  513. package/lib/db/Enums/transaction-source.enum.d.ts +4 -4
  514. package/lib/db/Enums/transaction-type.enum.d.ts +4 -4
  515. package/lib/db/Enums/user-event-status.enum.d.ts +7 -7
  516. package/lib/db/Enums/user-event-type-client-type.enum.d.ts +27 -27
  517. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts +15 -15
  518. package/lib/db/Enums/user-event-type-frequency.enum.d.ts +5 -5
  519. package/lib/db/Enums/user-event-type-user-type.enum.d.ts +5 -5
  520. package/lib/db/Enums/user-medicare-exemption.enum.d.ts +5 -5
  521. package/lib/db/Enums/user-roles.enum.d.ts +13 -13
  522. package/lib/db/Enums/user-status.enum.d.ts +6 -6
  523. package/lib/db/Enums/user-title.enum.d.ts +7 -7
  524. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts +4 -4
  525. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts +5 -5
  526. package/lib/db/Enums/vehicle-claim-method.enum.d.ts +4 -4
  527. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts +4 -4
  528. package/lib/db/Models/address.d.ts +19 -19
  529. package/lib/db/Models/bank-account-balance.d.ts +12 -12
  530. package/lib/db/Models/bank-account-property.d.ts +8 -8
  531. package/lib/db/Models/bank-account.d.ts +33 -33
  532. package/lib/db/Models/bank-connection.d.ts +14 -14
  533. package/lib/db/Models/bank-transaction-import.d.ts +11 -11
  534. package/lib/db/Models/bank-transaction.d.ts +16 -16
  535. package/lib/db/Models/bank.d.ts +11 -11
  536. package/lib/db/Models/basiq-job.d.ts +8 -8
  537. package/lib/db/Models/borrowing-expense-loan.d.ts +14 -14
  538. package/lib/db/Models/borrowing-expense.d.ts +7 -7
  539. package/lib/db/Models/chart-accounts-depreciation.d.ts +10 -10
  540. package/lib/db/Models/chart-accounts-heading.d.ts +6 -6
  541. package/lib/db/Models/chart-accounts-metadata.d.ts +11 -11
  542. package/lib/db/Models/chart-accounts-value.d.ts +12 -12
  543. package/lib/db/Models/chart-accounts.d.ts +23 -23
  544. package/lib/db/Models/chat.d.ts +17 -17
  545. package/lib/db/Models/client-details.d.ts +29 -29
  546. package/lib/db/Models/client-invite.d.ts +16 -16
  547. package/lib/db/Models/client-movement.d.ts +12 -12
  548. package/lib/db/Models/country.d.ts +5 -5
  549. package/lib/db/Models/depreciation-capital-project.d.ts +13 -13
  550. package/lib/db/Models/depreciation-forecast.d.ts +18 -18
  551. package/lib/db/Models/depreciation-receipt.d.ts +11 -11
  552. package/lib/db/Models/depreciation.d.ts +42 -42
  553. package/lib/db/Models/document-folder.d.ts +9 -9
  554. package/lib/db/Models/document.d.ts +11 -11
  555. package/lib/db/Models/employee-details.d.ts +7 -7
  556. package/lib/db/Models/employee-invite.d.ts +9 -9
  557. package/lib/db/Models/financial-data-system.d.ts +9 -9
  558. package/lib/db/Models/firm.d.ts +28 -28
  559. package/lib/db/Models/income-source-forecast.d.ts +12 -12
  560. package/lib/db/Models/income-source-type.d.ts +8 -8
  561. package/lib/db/Models/income-source.d.ts +22 -22
  562. package/lib/db/Models/loan-payout.d.ts +12 -12
  563. package/lib/db/Models/loan.d.ts +33 -33
  564. package/lib/db/Models/message-document.d.ts +15 -15
  565. package/lib/db/Models/message.d.ts +15 -15
  566. package/lib/db/Models/occupation.d.ts +5 -5
  567. package/lib/db/Models/phone.d.ts +12 -12
  568. package/lib/db/Models/{property-category-movement.d.ts → property/property-category-movement.d.ts} +17 -17
  569. package/lib/db/Models/{property-category.d.ts → property/property-category.d.ts} +13 -13
  570. package/lib/db/Models/{property-document.d.ts → property/property-document.d.ts} +13 -13
  571. package/lib/db/Models/{property-forecast.d.ts → property/property-forecast.d.ts} +14 -14
  572. package/lib/db/Models/{property-owner.d.ts → property/property-owner.d.ts} +20 -20
  573. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +8 -0
  574. package/lib/db/Models/property/property-sale/property-sale.d.ts +20 -0
  575. package/lib/db/Models/property/property-sale/tax-exemption-metadata.d.ts +6 -0
  576. package/lib/db/Models/property/property-sale/tax-exemption.d.ts +6 -0
  577. package/lib/db/Models/{property-subscription.d.ts → property/property-subscription.d.ts} +9 -9
  578. package/lib/db/Models/{property-valuation.d.ts → property/property-valuation.d.ts} +12 -12
  579. package/lib/db/Models/{property.d.ts → property/property.d.ts} +42 -41
  580. package/lib/db/Models/registration-invite.d.ts +12 -12
  581. package/lib/db/Models/salary-forecast.d.ts +15 -15
  582. package/lib/db/Models/service-notification.d.ts +13 -13
  583. package/lib/db/Models/service-payment.d.ts +11 -11
  584. package/lib/db/Models/service-price.d.ts +15 -15
  585. package/lib/db/Models/service-product.d.ts +12 -12
  586. package/lib/db/Models/service-subscription-item.d.ts +9 -9
  587. package/lib/db/Models/service-subscription.d.ts +14 -14
  588. package/lib/db/Models/sole-forecast.d.ts +8 -8
  589. package/lib/db/Models/tax-return-category.d.ts +12 -12
  590. package/lib/db/Models/tax-return-item.d.ts +15 -15
  591. package/lib/db/Models/tax-return.d.ts +8 -8
  592. package/lib/db/Models/tax-review.d.ts +13 -13
  593. package/lib/db/Models/ticket.d.ts +19 -19
  594. package/lib/db/Models/transaction-allocation.d.ts +8 -8
  595. package/lib/db/Models/transaction-base.d.ts +22 -22
  596. package/lib/db/Models/transaction-metadata.d.ts +11 -11
  597. package/lib/db/Models/transaction-receipt.d.ts +11 -11
  598. package/lib/db/Models/transaction.d.ts +43 -43
  599. package/lib/db/Models/user-event-setting.d.ts +10 -10
  600. package/lib/db/Models/user-event-type-category.d.ts +4 -4
  601. package/lib/db/Models/user-event-type.d.ts +17 -17
  602. package/lib/db/Models/user-event.d.ts +15 -15
  603. package/lib/db/Models/user.d.ts +51 -51
  604. package/lib/db/Models/vehicle-claim.d.ts +11 -11
  605. package/lib/db/Models/vehicle-logbook.d.ts +16 -16
  606. package/lib/db/Models/vehicle.d.ts +8 -8
  607. package/lib/functions/array/index.d.ts +3 -3
  608. package/lib/functions/array/replace.d.ts +1 -1
  609. package/lib/functions/array/sort-deep.d.ts +1 -1
  610. package/lib/functions/array/sort.d.ts +1 -1
  611. package/lib/functions/clone-deep.d.ts +1 -1
  612. package/lib/functions/create-date.d.ts +5 -5
  613. package/lib/functions/enum-to-list.d.ts +2 -2
  614. package/lib/functions/get-doc-icon.d.ts +7 -7
  615. package/lib/functions/mat-options-functions.d.ts +2 -2
  616. package/lib/functions/mat-sort-options.d.ts +7 -7
  617. package/lib/functions/round-to.d.ts +6 -6
  618. package/lib/functions/tax-review-filter-predicate.d.ts +7 -7
  619. package/lib/interceptors/corelogic-interceptor.d.ts +20 -20
  620. package/lib/interceptors/financial-year-interceptor.d.ts +12 -12
  621. package/lib/interceptors/interceptors.module.d.ts +6 -6
  622. package/lib/interceptors/jwt-interceptor.d.ts +42 -42
  623. package/lib/interceptors/preloader.interceptor.d.ts +15 -15
  624. package/lib/interceptors/user-switcher-interceptor.d.ts +19 -19
  625. package/lib/interfaces/asset-entity-type.enum.d.ts +10 -10
  626. package/lib/interfaces/asset-type.enum.d.ts +8 -8
  627. package/lib/interfaces/asset.interface.d.ts +17 -17
  628. package/lib/interfaces/chart-data.interface.d.ts +10 -10
  629. package/lib/interfaces/chart-serie.interface.d.ts +8 -8
  630. package/lib/interfaces/document.interface.d.ts +18 -18
  631. package/lib/interfaces/documentable.interface.d.ts +8 -8
  632. package/lib/interfaces/event-listener.interface.d.ts +9 -9
  633. package/lib/interfaces/income-source-forecast.interface.d.ts +10 -10
  634. package/lib/interfaces/option.interface.d.ts +4 -4
  635. package/lib/interfaces/photoable.d.ts +13 -13
  636. package/lib/interfaces/receipt.interface.d.ts +12 -12
  637. package/lib/interfaces/tank.interface.d.ts +7 -7
  638. package/lib/models/address/address.d.ts +11 -11
  639. package/lib/models/address/country.d.ts +11 -11
  640. package/lib/models/bank/bank-account-chart-data.d.ts +17 -17
  641. package/lib/models/bank/bank-account-property.d.ts +5 -5
  642. package/lib/models/bank/bank-account-types.const.d.ts +7 -7
  643. package/lib/models/bank/bank-account.d.ts +72 -72
  644. package/lib/models/bank/bank-connection.d.ts +11 -11
  645. package/lib/models/bank/bank-transaction-chart-data.d.ts +30 -30
  646. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts +4 -4
  647. package/lib/models/bank/bank-transaction.d.ts +38 -38
  648. package/lib/models/bank/bank.d.ts +6 -6
  649. package/lib/models/bank/basiq-job.d.ts +3 -3
  650. package/lib/models/bank/basiq-token.d.ts +9 -9
  651. package/lib/models/bank/type-loan.const.d.ts +2 -2
  652. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts +3 -3
  653. package/lib/models/borrowing-expense/borrowing-expense.d.ts +3 -3
  654. package/lib/models/chart/chart-data.d.ts +9 -9
  655. package/lib/models/chart/chart-serie.d.ts +8 -8
  656. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts +4 -4
  657. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts +7 -7
  658. package/lib/models/chart-accounts/chart-accounts-heading.d.ts +5 -5
  659. package/lib/models/chart-accounts/chart-accounts-metadata.d.ts +8 -8
  660. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts +5 -5
  661. package/lib/models/chart-accounts/chart-accounts.d.ts +66 -66
  662. package/lib/models/chat/chat-view-type.enum.d.ts +4 -4
  663. package/lib/models/chat/chat.d.ts +10 -10
  664. package/lib/models/chat/message-document.d.ts +11 -11
  665. package/lib/models/chat/message.d.ts +20 -20
  666. package/lib/models/client/client-details.d.ts +3 -3
  667. package/lib/models/client/client-invite.d.ts +34 -34
  668. package/lib/models/client/client-movement.d.ts +12 -12
  669. package/lib/models/client/client-portfolio-chart-data.d.ts +11 -11
  670. package/lib/models/client/client-portfolio-report.d.ts +10 -10
  671. package/lib/models/color/alphabet-colors.enum.d.ts +28 -28
  672. package/lib/models/data-table/data-table-column.d.ts +20 -20
  673. package/lib/models/data-table/data-table.d.ts +24 -24
  674. package/lib/models/depreciation/depreciation-capital-project.d.ts +5 -5
  675. package/lib/models/depreciation/depreciation-forecast.d.ts +8 -8
  676. package/lib/models/depreciation/depreciation-group-item.d.ts +10 -10
  677. package/lib/models/depreciation/depreciation-group.d.ts +11 -11
  678. package/lib/models/depreciation/depreciation-group.enum.d.ts +7 -7
  679. package/lib/models/depreciation/depreciation-groups.const.d.ts +9 -9
  680. package/lib/models/depreciation/depreciation-receipt.d.ts +8 -8
  681. package/lib/models/depreciation/depreciation.d.ts +76 -70
  682. package/lib/models/document/document-api-url-prefix.enum.d.ts +7 -7
  683. package/lib/models/document/document-file-types.const.d.ts +3 -3
  684. package/lib/models/document/document-folder.d.ts +7 -7
  685. package/lib/models/document/document.d.ts +21 -21
  686. package/lib/models/employee/employee-details.d.ts +5 -5
  687. package/lib/models/employee/employee-invite.d.ts +7 -7
  688. package/lib/models/endpoint/endpoint.d.ts +22 -22
  689. package/lib/models/endpoint/endpoints.const.d.ts +7 -7
  690. package/lib/models/event/app-event-type.enum.d.ts +40 -40
  691. package/lib/models/event/app-event.d.ts +9 -9
  692. package/lib/models/file/icons-file.enum.d.ts +5 -5
  693. package/lib/models/financial-year/financial-year.d.ts +19 -19
  694. package/lib/models/financial-year/month-name-short.enum.d.ts +19 -19
  695. package/lib/models/financial-year/month-number.enum.d.ts +19 -19
  696. package/lib/models/financial-year/months.const.d.ts +1 -1
  697. package/lib/models/firm/firm.d.ts +18 -18
  698. package/lib/models/income-position/income-position.d.ts +9 -9
  699. package/lib/models/income-source/income-source-chart-data.d.ts +14 -14
  700. package/lib/models/income-source/income-source-forecast.d.ts +18 -18
  701. package/lib/models/income-source/income-source-type.d.ts +9 -9
  702. package/lib/models/income-source/income-source.d.ts +29 -29
  703. package/lib/models/income-source/salary-forecast.d.ts +7 -7
  704. package/lib/models/income-source/sole-forecast.d.ts +7 -7
  705. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts +8 -8
  706. package/lib/models/loan/loan-payment.d.ts +13 -13
  707. package/lib/models/loan/loan-payout.d.ts +9 -9
  708. package/lib/models/loan/loan.d.ts +20 -20
  709. package/lib/models/logbook/default-vehicle-expense.d.ts +5 -5
  710. package/lib/models/logbook/logbook-period.d.ts +6 -6
  711. package/lib/models/logbook/logbook-purpose-options.const.d.ts +4 -4
  712. package/lib/models/logbook/vehicle-claim.d.ts +19 -19
  713. package/lib/models/logbook/vehicle-logbook.d.ts +6 -6
  714. package/lib/models/logbook/vehicle.d.ts +12 -12
  715. package/lib/models/notification/notification.d.ts +14 -14
  716. package/lib/models/pdf/pdf-config.d.ts +8 -8
  717. package/lib/models/phone/phone.d.ts +6 -6
  718. package/lib/models/property/calculation-form-item.d.ts +15 -15
  719. package/lib/models/property/calculation-form-type.enum.d.ts +7 -7
  720. package/lib/models/property/capital-costs-itmes.const.d.ts +2 -2
  721. package/lib/models/property/corelogic-suggestion.d.ts +18 -18
  722. package/lib/models/property/ownership-filter-options.enum.d.ts +8 -8
  723. package/lib/models/property/property-category-movement.d.ts +9 -9
  724. package/lib/models/property/property-category.d.ts +5 -4
  725. package/lib/models/property/property-document.d.ts +14 -14
  726. package/lib/models/property/property-equity-chart-data.d.ts +62 -62
  727. package/lib/models/property/property-equity-chart-item.d.ts +19 -19
  728. package/lib/models/property/property-equity-chart-type.enum.d.ts +4 -4
  729. package/lib/models/property/property-forecast.d.ts +28 -28
  730. package/lib/models/property/property-owner.d.ts +21 -21
  731. package/lib/models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +3 -0
  732. package/lib/models/property/property-sale/property-sale.d.ts +8 -0
  733. package/lib/models/property/property-sale/tax-exemption-metadata.d.ts +3 -0
  734. package/lib/models/property/property-sale/tax-exemption.d.ts +3 -0
  735. package/lib/models/property/property-subscription.d.ts +6 -6
  736. package/lib/models/property/property-valuation.d.ts +9 -9
  737. package/lib/models/property/property.d.ts +86 -55
  738. package/lib/models/registration-invite/registration-invite.d.ts +6 -6
  739. package/lib/models/service-subscription/module-url-list.const.d.ts +6 -6
  740. package/lib/models/service-subscription/service-payment.d.ts +5 -5
  741. package/lib/models/service-subscription/service-price.d.ts +5 -5
  742. package/lib/models/service-subscription/service-product.d.ts +5 -5
  743. package/lib/models/service-subscription/service-subscription-item.d.ts +6 -6
  744. package/lib/models/service-subscription/service-subscription.d.ts +55 -55
  745. package/lib/models/service-subscription/subscription-description.const.d.ts +3 -3
  746. package/lib/models/service-subscription/subscription-title.const.d.ts +3 -3
  747. package/lib/models/service-subscription/subscription-type.enum.d.ts +6 -6
  748. package/lib/models/tax-review/tax-review.d.ts +52 -52
  749. package/lib/models/tax-summary/tax-return-category-item-details.d.ts +13 -13
  750. package/lib/models/tax-summary/tax-return-category-item.d.ts +18 -18
  751. package/lib/models/tax-summary/tax-summary-section.d.ts +12 -12
  752. package/lib/models/tax-summary/tax-summary-type.enum.d.ts +7 -7
  753. package/lib/models/tax-summary/tax-summary.d.ts +44 -44
  754. package/lib/models/transaction/income-amount-type.enum.d.ts +7 -7
  755. package/lib/models/transaction/transaction-allocation.d.ts +12 -12
  756. package/lib/models/transaction/transaction-metadata.d.ts +5 -5
  757. package/lib/models/transaction/transaction-receipt.d.ts +8 -8
  758. package/lib/models/transaction/transaction.d.ts +99 -99
  759. package/lib/models/user/my-account-history-initiated-by.enum.d.ts +4 -4
  760. package/lib/models/user/my-account-history-status.enum.d.ts +4 -4
  761. package/lib/models/user/my-account-history-type.enum.d.ts +5 -5
  762. package/lib/models/user/my-account-history.d.ts +11 -11
  763. package/lib/models/user/occupation.d.ts +3 -3
  764. package/lib/models/user/user-roles.const.d.ts +4 -4
  765. package/lib/models/user/user-to-register.d.ts +7 -7
  766. package/lib/models/user/user-work-position.const.d.ts +3 -3
  767. package/lib/models/user/user.d.ts +64 -64
  768. package/lib/models/user-event/user-event-setting-field.enum.d.ts +8 -8
  769. package/lib/models/user-event/user-event-setting.d.ts +6 -6
  770. package/lib/models/user-event/user-event-type-category.d.ts +3 -3
  771. package/lib/models/user-event/user-event-type.d.ts +7 -7
  772. package/lib/services/address/address.service.d.ts +14 -14
  773. package/lib/services/asset/assets.service.d.ts +34 -34
  774. package/lib/services/auth/auth.service.d.ts +17 -17
  775. package/lib/services/auth/jwt.service.d.ts +16 -16
  776. package/lib/services/bank/bank-account-calculation.service.d.ts +19 -19
  777. package/lib/services/bank/bank-account.service.d.ts +48 -48
  778. package/lib/services/bank/bank-connection.service.d.ts +24 -24
  779. package/lib/services/bank/bank-transaction-calculation.service.d.ts +41 -41
  780. package/lib/services/bank/bank-transaction.service.d.ts +38 -38
  781. package/lib/services/bank/bank.service.d.ts +14 -14
  782. package/lib/services/bank/basiq.service.d.ts +42 -42
  783. package/lib/services/base-rest.service.d.ts +91 -91
  784. package/lib/services/borrowing-expense/borrowing-expense.service.d.ts +19 -19
  785. package/lib/services/chart-accounts/chart-accounts-depreciations.service.d.ts +19 -19
  786. package/lib/services/chart-accounts/chart-accounts.service.d.ts +37 -37
  787. package/lib/services/chat/chat.service.d.ts +31 -31
  788. package/lib/services/chat/message-document.service.d.ts +50 -50
  789. package/lib/services/chat/message.service.d.ts +31 -31
  790. package/lib/services/client/client-invite.service.d.ts +36 -36
  791. package/lib/services/client/client-movement.service.d.ts +40 -40
  792. package/lib/services/client/client-portfolio-report.service.d.ts +16 -16
  793. package/lib/services/depreciation/capital-project.service.d.ts +20 -20
  794. package/lib/services/depreciation/depreciation.service.d.ts +59 -59
  795. package/lib/services/document/document-folder.service.d.ts +40 -40
  796. package/lib/services/employee/employee-invite.service.d.ts +21 -21
  797. package/lib/services/employee/employee.service.d.ts +16 -16
  798. package/lib/services/event/event-dispatcher.service.d.ts +17 -17
  799. package/lib/services/event/sse.service.d.ts +16 -16
  800. package/lib/services/firm/firm.service.d.ts +27 -27
  801. package/lib/services/header-title/header-title.service.d.ts +11 -11
  802. package/lib/services/income-source/income-source-forecast.service.d.ts +36 -36
  803. package/lib/services/income-source/income-source.service.d.ts +48 -48
  804. package/lib/services/income-source/salary-forecast.service.d.ts +37 -37
  805. package/lib/services/income-source/sole-forecast.service.d.ts +33 -33
  806. package/lib/services/intercom/intercom.service.d.ts +21 -21
  807. package/lib/services/loan/loan.service.d.ts +63 -63
  808. package/lib/services/notification/notification.service.d.ts +31 -31
  809. package/lib/services/pdf/pdf.service.d.ts +24 -23
  810. package/lib/services/preloader/preloader.service.d.ts +12 -12
  811. package/lib/services/property/{corelogic.service.d.ts → corelogic/corelogic.service.d.ts} +15 -15
  812. package/lib/services/property/equity-position-chart.service.d.ts +15 -15
  813. package/lib/services/property/{property-calculation.service.d.ts → property-calculation/property-calculation.service.d.ts} +33 -33
  814. package/lib/services/property/{property-category.service.d.ts → property-category/property-category.service.d.ts} +13 -13
  815. package/lib/services/property/property-category-movement.service.d.ts +15 -15
  816. package/lib/services/property/{property-document.service.d.ts → property-document/property-document.service.d.ts} +31 -31
  817. package/lib/services/property/{property-owner.service.d.ts → property-owner/property-owner.service.d.ts} +52 -52
  818. package/lib/services/property/property-sale/property-sale.service.d.ts +10 -0
  819. package/lib/services/property/property-sale/tax-exemption/tax-exemption.service.d.ts +11 -0
  820. package/lib/services/property/property.service.d.ts +54 -54
  821. package/lib/services/subscription/subscription.service.d.ts +47 -47
  822. package/lib/services/tax-review/tax-review-history.service.d.ts +19 -19
  823. package/lib/services/tax-review/tax-review.service.d.ts +44 -44
  824. package/lib/services/tax-summary/tax-summary.service.d.ts +31 -31
  825. package/lib/services/transaction/transaction-allocation.service.d.ts +43 -43
  826. package/lib/services/transaction/transaction-calculation.service.d.ts +29 -29
  827. package/lib/services/transaction/transaction.service.d.ts +92 -92
  828. package/lib/services/user/occupation.service.d.ts +20 -20
  829. package/lib/services/user/user-switcher.service.d.ts +20 -20
  830. package/lib/services/user/user.service.d.ts +60 -60
  831. package/lib/services/user-event/user-event-setting.service.d.ts +22 -22
  832. package/lib/services/user-event/user-event-type.service.d.ts +17 -17
  833. package/lib/services/work/work-tank.service.d.ts +93 -93
  834. package/lib/services/xlsx/xlsx.service.d.ts +11 -11
  835. package/lib/tt-core.module.d.ts +10 -10
  836. package/package.json +1 -1
  837. package/public-api.d.ts +350 -346
  838. package/taxtank-core.d.ts +5 -5
  839. package/esm2015/lib/collections/property.collection.js +0 -72
  840. package/esm2015/lib/db/Enums/property-owner-access.enum.js +0 -6
  841. package/esm2015/lib/db/Enums/property-owner-status.enum.js +0 -7
  842. package/esm2015/lib/db/Models/capital-cost-property.js +0 -3
  843. package/esm2015/lib/db/Models/capital-cost.js +0 -3
  844. package/esm2015/lib/db/Models/property-capital-cost.js +0 -3
  845. package/esm2015/lib/db/Models/property-category-movement.js +0 -3
  846. package/esm2015/lib/db/Models/property-category.js +0 -3
  847. package/esm2015/lib/db/Models/property-document.js +0 -3
  848. package/esm2015/lib/db/Models/property-forecast.js +0 -3
  849. package/esm2015/lib/db/Models/property-owner.js +0 -3
  850. package/esm2015/lib/db/Models/property-sold.js +0 -3
  851. package/esm2015/lib/db/Models/property-subscription.js +0 -3
  852. package/esm2015/lib/db/Models/property-valuation.js +0 -3
  853. package/esm2015/lib/db/Models/property.js +0 -3
  854. package/esm2015/lib/models/property/property-capital-cost.js +0 -4
  855. package/esm2015/lib/models/property/property-sold.js +0 -12
  856. package/esm2015/lib/services/property/corelogic.service.js +0 -46
  857. package/esm2015/lib/services/property/property-calculation.service.js +0 -121
  858. package/esm2015/lib/services/property/property-capital-cost.service.js +0 -46
  859. package/esm2015/lib/services/property/property-category.service.js +0 -23
  860. package/esm2015/lib/services/property/property-document.service.js +0 -68
  861. package/esm2015/lib/services/property/property-owner.service.js +0 -123
  862. package/esm2015/lib/services/property/property-sold.service.js +0 -23
  863. package/lib/db/Models/capital-cost-property.d.ts +0 -13
  864. package/lib/db/Models/capital-cost.d.ts +0 -4
  865. package/lib/db/Models/property-capital-cost.d.ts +0 -13
  866. package/lib/db/Models/property-sold.d.ts +0 -12
  867. package/lib/models/property/property-capital-cost.d.ts +0 -3
  868. package/lib/models/property/property-sold.d.ts +0 -5
  869. package/lib/services/property/property-capital-cost.service.d.ts +0 -20
  870. package/lib/services/property/property-sold.service.d.ts +0 -13
@@ -1,19 +1,19 @@
1
- import { BankAccountCollection } from '../../collections/bank-account.collection';
2
- import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
3
- import { TransactionAllocationCollection } from '../../collections/transaction-allocation.collection';
4
- import { BankTransactionCalculationService } from './bank-transaction-calculation.service';
5
- import * as i0 from "@angular/core";
6
- export declare class BankAccountCalculationService {
7
- private bankTransactionCalculationService;
8
- constructor(bankTransactionCalculationService: BankTransactionCalculationService);
9
- /**
10
- * Sum of bank accounts opening balances and their bank transactions allocated amounts
11
- */
12
- getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
13
- /**
14
- * get difference between total loans amount and total cash amount
15
- */
16
- getNetPosition(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountCalculationService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountCalculationService>;
19
- }
1
+ import { BankAccountCollection } from '../../collections/bank-account.collection';
2
+ import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
3
+ import { TransactionAllocationCollection } from '../../collections/transaction-allocation.collection';
4
+ import { BankTransactionCalculationService } from './bank-transaction-calculation.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BankAccountCalculationService {
7
+ private bankTransactionCalculationService;
8
+ constructor(bankTransactionCalculationService: BankTransactionCalculationService);
9
+ /**
10
+ * Sum of bank accounts opening balances and their bank transactions allocated amounts
11
+ */
12
+ getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
13
+ /**
14
+ * get difference between total loans amount and total cash amount
15
+ */
16
+ getNetPosition(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountCalculationService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountCalculationService>;
19
+ }
@@ -1,48 +1,48 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { BankAccount } from '../../models/bank/bank-account';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Service that handling user's bank accounts logic
10
- */
11
- export declare class BankAccountService extends BaseRestService<BankAccountBase, BankAccount> {
12
- protected http: HttpClient;
13
- protected eventDispatcherService: EventDispatcherService;
14
- protected environment: any;
15
- url: string;
16
- modelClass: typeof BankAccount;
17
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
18
- /**
19
- * Listen system notifications and update cache when got basiq notification received
20
- */
21
- listenEvents(): void;
22
- /**
23
- * Created manual bank account
24
- * @param bankAccounts
25
- * @param queryParams
26
- */
27
- addBatch(bankAccounts: BankAccount[], queryParams?: object): Observable<BankAccount[]>;
28
- /**
29
- * Update bank account and fire event
30
- */
31
- update(bankAccount: BankAccount): Observable<BankAccount>;
32
- /**
33
- * Update bank account opening balance
34
- * @param bankAccount Bank account for balance updating
35
- */
36
- updateOpeningBalance(bankAccount: BankAccount): Observable<any>;
37
- /**
38
- * Update bank account current balance
39
- */
40
- updateCurrentBalance(bankAccount: BankAccount): Observable<BankAccount>;
41
- getOwn(): Observable<BankAccount[]>;
42
- /**
43
- * Listen to EventDispatcherService events
44
- */
45
- private listenToEventDispatcherChanges;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountService, never>;
47
- static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountService>;
48
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
+ import { BaseRestService } from '../base-rest.service';
5
+ import { BankAccount } from '../../models/bank/bank-account';
6
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Service that handling user's bank accounts logic
10
+ */
11
+ export declare class BankAccountService extends BaseRestService<BankAccountBase, BankAccount> {
12
+ protected http: HttpClient;
13
+ protected eventDispatcherService: EventDispatcherService;
14
+ protected environment: any;
15
+ url: string;
16
+ modelClass: typeof BankAccount;
17
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
18
+ /**
19
+ * Listen system notifications and update cache when got basiq notification received
20
+ */
21
+ listenEvents(): void;
22
+ /**
23
+ * Created manual bank account
24
+ * @param bankAccounts
25
+ * @param queryParams
26
+ */
27
+ addBatch(bankAccounts: BankAccount[], queryParams?: object): Observable<BankAccount[]>;
28
+ /**
29
+ * Update bank account and fire event
30
+ */
31
+ update(bankAccount: BankAccount): Observable<BankAccount>;
32
+ /**
33
+ * Update bank account opening balance
34
+ * @param bankAccount Bank account for balance updating
35
+ */
36
+ updateOpeningBalance(bankAccount: BankAccount): Observable<any>;
37
+ /**
38
+ * Update bank account current balance
39
+ */
40
+ updateCurrentBalance(bankAccount: BankAccount): Observable<BankAccount>;
41
+ getOwn(): Observable<BankAccount[]>;
42
+ /**
43
+ * Listen to EventDispatcherService events
44
+ */
45
+ private listenToEventDispatcherChanges;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankAccountService, never>;
47
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankAccountService>;
48
+ }
@@ -1,24 +1,24 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { BankConnection as BankConnectionBase } from '../../db/Models/bank-connection';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
- import { BankConnection } from '../../models/bank/bank-connection';
6
- import { BaseRestService } from '../base-rest.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * BankConnection means user account at specific bank (usually each user has only one at the same bank)
10
- * service handles BankConnection management
11
- */
12
- export declare class BankConnectionService extends BaseRestService<BankConnectionBase, BankConnection> {
13
- protected http: HttpClient;
14
- protected eventDispatcherService: EventDispatcherService;
15
- protected environment: any;
16
- modelClass: typeof BankConnection;
17
- url: string;
18
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
19
- listenEvents(): void;
20
- post(bankConnection: BankConnection): Observable<BankConnection>;
21
- listenToAddedBankAccounts(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
24
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { BankConnection as BankConnectionBase } from '../../db/Models/bank-connection';
4
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { BankConnection } from '../../models/bank/bank-connection';
6
+ import { BaseRestService } from '../base-rest.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * BankConnection means user account at specific bank (usually each user has only one at the same bank)
10
+ * service handles BankConnection management
11
+ */
12
+ export declare class BankConnectionService extends BaseRestService<BankConnectionBase, BankConnection> {
13
+ protected http: HttpClient;
14
+ protected eventDispatcherService: EventDispatcherService;
15
+ protected environment: any;
16
+ modelClass: typeof BankConnection;
17
+ url: string;
18
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
19
+ listenEvents(): void;
20
+ post(bankConnection: BankConnection): Observable<BankConnection>;
21
+ listenToAddedBankAccounts(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
24
+ }
@@ -1,41 +1,41 @@
1
- import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
2
- import { BankTransaction } from '../../models/bank/bank-transaction';
3
- import { TransactionAllocationCollection } from '../../collections/transaction-allocation.collection';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @TODO move to collection
7
- */
8
- export declare class BankTransactionCalculationService {
9
- /**
10
- * Sum of allocations for passed bank transactions
11
- */
12
- getAllocatedAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
13
- /**
14
- * Difference between total bank transactions amount and sum of allocations for passed bank transactions
15
- */
16
- getUnallocatedAmount(bankTransactionCollection: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
17
- /**
18
- * Check if bank transaction is allocated
19
- */
20
- isAllocated(bankTransaction: BankTransaction, allocations: TransactionAllocationCollection): boolean;
21
- /**
22
- * Get collection of allocated bank transactions
23
- * @TODO Alex: consider to move to collection
24
- */
25
- getAllocatedBankTransactions(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
26
- /**
27
- * Get collection of unallocated bank transactions
28
- * @TODO Alex: consider to move to collection
29
- */
30
- getUnallocatedBankTransactions(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
31
- /**
32
- * Allocated sum of credit transactions
33
- */
34
- getCreditAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
35
- /**
36
- * Allocated sum of debit transactions
37
- */
38
- getDebitAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<BankTransactionCalculationService, never>;
40
- static ɵprov: i0.ɵɵInjectableDeclaration<BankTransactionCalculationService>;
41
- }
1
+ import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
2
+ import { BankTransaction } from '../../models/bank/bank-transaction';
3
+ import { TransactionAllocationCollection } from '../../collections/transaction-allocation.collection';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * @TODO move to collection
7
+ */
8
+ export declare class BankTransactionCalculationService {
9
+ /**
10
+ * Sum of allocations for passed bank transactions
11
+ */
12
+ getAllocatedAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
13
+ /**
14
+ * Difference between total bank transactions amount and sum of allocations for passed bank transactions
15
+ */
16
+ getUnallocatedAmount(bankTransactionCollection: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
17
+ /**
18
+ * Check if bank transaction is allocated
19
+ */
20
+ isAllocated(bankTransaction: BankTransaction, allocations: TransactionAllocationCollection): boolean;
21
+ /**
22
+ * Get collection of allocated bank transactions
23
+ * @TODO Alex: consider to move to collection
24
+ */
25
+ getAllocatedBankTransactions(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
26
+ /**
27
+ * Get collection of unallocated bank transactions
28
+ * @TODO Alex: consider to move to collection
29
+ */
30
+ getUnallocatedBankTransactions(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
31
+ /**
32
+ * Allocated sum of credit transactions
33
+ */
34
+ getCreditAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
35
+ /**
36
+ * Allocated sum of debit transactions
37
+ */
38
+ getDebitAmount(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankTransactionCalculationService, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankTransactionCalculationService>;
41
+ }
@@ -1,38 +1,38 @@
1
- import { BankTransaction as BankTransactionBase } from '../../db/Models/bank-transaction';
2
- import { Observable } from 'rxjs';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { HttpClient } from '@angular/common/http';
5
- import { BankTransaction } from '../../models/bank/bank-transaction';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Service for bank transactions business logic
10
- */
11
- export declare class BankTransactionService extends BaseRestService<BankTransactionBase, BankTransaction> {
12
- protected http: HttpClient;
13
- protected eventDispatcherService: EventDispatcherService;
14
- protected environment: any;
15
- url: string;
16
- modelClass: typeof BankTransaction;
17
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
18
- private listenEvents;
19
- /**
20
- * get list of bank transactions for passed bank account id
21
- * @param bankAccountId Id of bank account we search bank transactions for
22
- */
23
- getByBankAccountId(bankAccountId: number): Observable<BankTransaction[]>;
24
- /**
25
- * Get list of bank transactions for provided financial year
26
- * @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
27
- */
28
- getTransactionsByYear(finYear: number): Observable<BankTransaction[]>;
29
- /**
30
- * import bank transactions from csv file
31
- * @param bankAccountId Bank account id we import bank transactions for
32
- * @param file File with bank transactions for import
33
- */
34
- import(bankAccountId: number, file: File): Observable<BankTransaction[]>;
35
- private listenBankTransactionsImport;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<BankTransactionService, never>;
37
- static ɵprov: i0.ɵɵInjectableDeclaration<BankTransactionService>;
38
- }
1
+ import { BankTransaction as BankTransactionBase } from '../../db/Models/bank-transaction';
2
+ import { Observable } from 'rxjs';
3
+ import { BaseRestService } from '../base-rest.service';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { BankTransaction } from '../../models/bank/bank-transaction';
6
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Service for bank transactions business logic
10
+ */
11
+ export declare class BankTransactionService extends BaseRestService<BankTransactionBase, BankTransaction> {
12
+ protected http: HttpClient;
13
+ protected eventDispatcherService: EventDispatcherService;
14
+ protected environment: any;
15
+ url: string;
16
+ modelClass: typeof BankTransaction;
17
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
18
+ private listenEvents;
19
+ /**
20
+ * get list of bank transactions for passed bank account id
21
+ * @param bankAccountId Id of bank account we search bank transactions for
22
+ */
23
+ getByBankAccountId(bankAccountId: number): Observable<BankTransaction[]>;
24
+ /**
25
+ * Get list of bank transactions for provided financial year
26
+ * @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
27
+ */
28
+ getTransactionsByYear(finYear: number): Observable<BankTransaction[]>;
29
+ /**
30
+ * import bank transactions from csv file
31
+ * @param bankAccountId Bank account id we import bank transactions for
32
+ * @param file File with bank transactions for import
33
+ */
34
+ import(bankAccountId: number, file: File): Observable<BankTransaction[]>;
35
+ private listenBankTransactionsImport;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankTransactionService, never>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankTransactionService>;
38
+ }
@@ -1,14 +1,14 @@
1
- import { Bank as BankBase } from '../../db/Models/bank';
2
- import { Bank } from '../../models/bank/bank';
3
- import { BaseRestService } from '../base-rest.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Service that handling banks logic
7
- */
8
- export declare class BankService extends BaseRestService<BankBase, Bank> {
9
- modelClass: typeof Bank;
10
- url: string;
11
- isHydra: boolean;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<BankService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
14
- }
1
+ import { Bank as BankBase } from '../../db/Models/bank';
2
+ import { Bank } from '../../models/bank/bank';
3
+ import { BaseRestService } from '../base-rest.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Service that handling banks logic
7
+ */
8
+ export declare class BankService extends BaseRestService<BankBase, Bank> {
9
+ modelClass: typeof Bank;
10
+ url: string;
11
+ isHydra: boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
14
+ }
@@ -1,42 +1,42 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable, ReplaySubject } from 'rxjs';
3
- import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { BankAccount } from '../../models/bank/bank-account';
6
- import { BasiqToken } from '../../models/bank/basiq-token';
7
- import { EventDispatcherService } from '../event/event-dispatcher.service';
8
- import { BankConnection } from '../../models/bank/bank-connection';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * basiq is a middleman between bank and user
12
- * service is responsible for fetching bank related information
13
- */
14
- export declare class BasiqService extends BaseRestService<BankAccountBase, BankAccount> {
15
- protected http: HttpClient;
16
- protected eventDispatcherService: EventDispatcherService;
17
- protected environment: any;
18
- token: BasiqToken;
19
- tokenSubject: ReplaySubject<BasiqToken>;
20
- url: string;
21
- modelClass: typeof BankAccount;
22
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
23
- /**
24
- * Listen events from Event Dispatcher service
25
- */
26
- listenEvents(): void;
27
- /**
28
- * access token to use basiq connect ui iframe
29
- */
30
- getToken(): Observable<BasiqToken>;
31
- getConnections(): Observable<BankConnection[]>;
32
- /**
33
- * Listen to EventDispatcherService event related to added Bank connection
34
- */
35
- private listenToBankConnectionAdded;
36
- /**
37
- * listen to notifications to update basiq accounts list
38
- */
39
- private listenNotifications;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
42
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable, ReplaySubject } from 'rxjs';
3
+ import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
+ import { BaseRestService } from '../base-rest.service';
5
+ import { BankAccount } from '../../models/bank/bank-account';
6
+ import { BasiqToken } from '../../models/bank/basiq-token';
7
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
8
+ import { BankConnection } from '../../models/bank/bank-connection';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * basiq is a middleman between bank and user
12
+ * service is responsible for fetching bank related information
13
+ */
14
+ export declare class BasiqService extends BaseRestService<BankAccountBase, BankAccount> {
15
+ protected http: HttpClient;
16
+ protected eventDispatcherService: EventDispatcherService;
17
+ protected environment: any;
18
+ token: BasiqToken;
19
+ tokenSubject: ReplaySubject<BasiqToken>;
20
+ url: string;
21
+ modelClass: typeof BankAccount;
22
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
23
+ /**
24
+ * Listen events from Event Dispatcher service
25
+ */
26
+ listenEvents(): void;
27
+ /**
28
+ * access token to use basiq connect ui iframe
29
+ */
30
+ getToken(): Observable<BasiqToken>;
31
+ getConnections(): Observable<BankConnection[]>;
32
+ /**
33
+ * Listen to EventDispatcherService event related to added Bank connection
34
+ */
35
+ private listenToBankConnectionAdded;
36
+ /**
37
+ * listen to notifications to update basiq accounts list
38
+ */
39
+ private listenNotifications;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
42
+ }
@@ -1,91 +1,91 @@
1
- import { Observable, ReplaySubject } from 'rxjs';
2
- import { HttpClient } from '@angular/common/http';
3
- import { EventDispatcherService } from './event/event-dispatcher.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Abstract base service that implements common services functionality
7
- * and describe abstract methods/properties that have to be implemented in child services
8
- * Model - entity service is working with
9
- * BaseModel - base entity model that extends by Model
10
- */
11
- export declare abstract class BaseRestService<BaseModel, Model extends BaseModel> {
12
- protected http: HttpClient;
13
- protected eventDispatcherService: EventDispatcherService;
14
- protected environment: any;
15
- abstract url: string;
16
- abstract modelClass: any;
17
- protected cache: Model[];
18
- protected cacheSubject: ReplaySubject<Model[]>;
19
- protected isHydra: boolean;
20
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
21
- /**
22
- * get cached list of all instances
23
- */
24
- get(): Observable<Model[]>;
25
- /**
26
- * get instance by id from cache
27
- * @param id ID of required item
28
- */
29
- getById(id: number): Observable<Model>;
30
- /**
31
- * get list of items filtered by id.
32
- * @param models Array of objects contains required items ids
33
- */
34
- getByIds(models: Model[]): Observable<Model[]>;
35
- /**
36
- * add new instance and update cache
37
- * @TODO rename to post
38
- */
39
- add(model: Model, shouldUpdateCache?: boolean): Observable<Model>;
40
- /**
41
- * Add several new items
42
- * @param models Array of new items for saving
43
- * @param queryParams query parameters for request
44
- * @TODO rename to postBatch
45
- */
46
- addBatch(models: Model[], queryParams?: object): Observable<Model[]>;
47
- /**
48
- * Update item
49
- * @param model Existing instance for updating
50
- * @param queryParams query parameters for request
51
- * @TODO rename to put
52
- */
53
- update(model: Model, queryParams?: object): Observable<Model>;
54
- /**
55
- * Update several items
56
- * @param models Array of items for updating
57
- * @param queryParams query parameters for request
58
- * TODO rename to putBatch
59
- */
60
- updateBatch(models: Model[], queryParams?: object): Observable<Model[]>;
61
- /**
62
- * delete instance of class
63
- * @param model Class instance for deleting
64
- */
65
- delete(model: Model): Observable<void>;
66
- /**
67
- * delete multiple instances of class
68
- * @param models Class instances array for deleting
69
- */
70
- deleteBatch(models: Model[]): Observable<void>;
71
- /**
72
- * clear service cache
73
- */
74
- resetCache(): void;
75
- /**
76
- * get list of base class instances directly from backend
77
- */
78
- protected fetch(): Observable<Model[]>;
79
- /**
80
- * Update cache subject with current cache array value
81
- */
82
- protected updateCache(): void;
83
- /**
84
- * Create new instance of class
85
- * @param model The class for which you want to create an instance
86
- * @param baseModel base model instance that we will use as constructor options
87
- */
88
- protected createModelInstance(model: new (bm: BaseModel) => Model, baseModel: BaseModel): Model;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseRestService<any, any>, never>;
90
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseRestService<any, any>>;
91
- }
1
+ import { Observable, ReplaySubject } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { EventDispatcherService } from './event/event-dispatcher.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Abstract base service that implements common services functionality
7
+ * and describe abstract methods/properties that have to be implemented in child services
8
+ * Model - entity service is working with
9
+ * BaseModel - base entity model that extends by Model
10
+ */
11
+ export declare abstract class BaseRestService<BaseModel, Model extends BaseModel> {
12
+ protected http: HttpClient;
13
+ protected eventDispatcherService: EventDispatcherService;
14
+ protected environment: any;
15
+ abstract url: string;
16
+ abstract modelClass: any;
17
+ protected cache: Model[];
18
+ protected cacheSubject: ReplaySubject<Model[]>;
19
+ protected isHydra: boolean;
20
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
21
+ /**
22
+ * get cached list of all instances
23
+ */
24
+ get(): Observable<Model[]>;
25
+ /**
26
+ * get instance by id from cache
27
+ * @param id ID of required item
28
+ */
29
+ getById(id: number): Observable<Model>;
30
+ /**
31
+ * get list of items filtered by id.
32
+ * @param models Array of objects contains required items ids
33
+ */
34
+ getByIds(models: Model[]): Observable<Model[]>;
35
+ /**
36
+ * add new instance and update cache
37
+ * @TODO rename to post
38
+ */
39
+ add(model: Model, shouldUpdateCache?: boolean): Observable<Model>;
40
+ /**
41
+ * Add several new items
42
+ * @param models Array of new items for saving
43
+ * @param queryParams query parameters for request
44
+ * @TODO rename to postBatch
45
+ */
46
+ addBatch(models: Model[], queryParams?: object): Observable<Model[]>;
47
+ /**
48
+ * Update item
49
+ * @param model Existing instance for updating
50
+ * @param queryParams query parameters for request
51
+ * @TODO rename to put
52
+ */
53
+ update(model: Model, queryParams?: object): Observable<Model>;
54
+ /**
55
+ * Update several items
56
+ * @param models Array of items for updating
57
+ * @param queryParams query parameters for request
58
+ * TODO rename to putBatch
59
+ */
60
+ updateBatch(models: Model[], queryParams?: object): Observable<Model[]>;
61
+ /**
62
+ * delete instance of class
63
+ * @param model Class instance for deleting
64
+ */
65
+ delete(model: Model): Observable<void>;
66
+ /**
67
+ * delete multiple instances of class
68
+ * @param models Class instances array for deleting
69
+ */
70
+ deleteBatch(models: Model[]): Observable<void>;
71
+ /**
72
+ * clear service cache
73
+ */
74
+ resetCache(): void;
75
+ /**
76
+ * get list of base class instances directly from backend
77
+ */
78
+ protected fetch(): Observable<Model[]>;
79
+ /**
80
+ * Update cache subject with current cache array value
81
+ */
82
+ protected updateCache(): void;
83
+ /**
84
+ * Create new instance of class
85
+ * @param model The class for which you want to create an instance
86
+ * @param baseModel base model instance that we will use as constructor options
87
+ */
88
+ protected createModelInstance(model: new (bm: BaseModel) => Model, baseModel: BaseModel): Model;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseRestService<any, any>, never>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseRestService<any, any>>;
91
+ }