taxtank-core 0.0.2 → 0.0.3

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 (794) hide show
  1. package/bundles/taxtank-core.umd.js +11955 -31
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/abstract.collection.js +67 -0
  4. package/esm2015/lib/collections/bank-account.collection.js +135 -0
  5. package/esm2015/lib/collections/bank-transaction.collection.js +119 -0
  6. package/esm2015/lib/collections/client-movement.collection.js +31 -0
  7. package/esm2015/lib/collections/client-portfolio-report.collection.js +40 -0
  8. package/esm2015/lib/collections/client.collection.js +4 -0
  9. package/esm2015/lib/collections/collection-dictionary.js +83 -0
  10. package/esm2015/lib/collections/depreciation-forecast.collection.js +19 -0
  11. package/esm2015/lib/collections/depreciation.collection.js +67 -0
  12. package/esm2015/lib/collections/employee.collection.js +12 -0
  13. package/esm2015/lib/collections/income-source.collection.js +38 -0
  14. package/esm2015/lib/collections/loan.collection.js +18 -0
  15. package/esm2015/lib/collections/logbook.collection.js +97 -0
  16. package/esm2015/lib/collections/message-document.collection.js +13 -0
  17. package/esm2015/lib/collections/message.collection.js +21 -0
  18. package/esm2015/lib/collections/property.collection.js +65 -0
  19. package/esm2015/lib/collections/service-price.collection.js +10 -0
  20. package/esm2015/lib/collections/service-subscription.collection.js +17 -0
  21. package/esm2015/lib/collections/tax-return-category-item.collection.js +141 -0
  22. package/esm2015/lib/collections/tax-review.collection.js +55 -0
  23. package/esm2015/lib/collections/transaction-allocation.collection.js +40 -0
  24. package/esm2015/lib/collections/transaction.collection.js +120 -0
  25. package/esm2015/lib/collections/user-event-setting.collection.js +62 -0
  26. package/esm2015/lib/db/Enums/address-type.enum.js +6 -0
  27. package/esm2015/lib/db/Enums/bank-account-status.enum.js +6 -0
  28. package/esm2015/lib/db/Enums/bank-account-type.enum.js +12 -0
  29. package/esm2015/lib/db/Enums/bank-connection-status.enum.js +7 -0
  30. package/esm2015/lib/db/Enums/bank-transaction-type.enum.js +6 -0
  31. package/esm2015/lib/db/Enums/chart-accounts-category.enum.js +15 -0
  32. package/esm2015/lib/db/Enums/chart-accounts-etp.enum.js +9 -0
  33. package/esm2015/lib/db/Enums/chart-accounts-heading-tax-deductible.enum.js +8 -0
  34. package/esm2015/lib/db/Enums/chart-accounts-heading-taxable.enum.js +8 -0
  35. package/esm2015/lib/db/Enums/chart-accounts-heading-vehicle-list.enum.js +6 -0
  36. package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +21 -0
  37. package/esm2015/lib/db/Enums/chart-accounts-metadata-list.enum.js +16 -0
  38. package/esm2015/lib/db/Enums/chart-accounts-metadata-type.enum.js +6 -0
  39. package/esm2015/lib/db/Enums/chart-accounts-type.enum.js +6 -0
  40. package/esm2015/lib/db/Enums/chat-status.enum.js +6 -0
  41. package/esm2015/lib/db/Enums/client-details-medicare-exemption.enum.js +7 -0
  42. package/esm2015/lib/db/Enums/client-details-work-depreciation-calculation.enum.js +6 -0
  43. package/esm2015/lib/db/Enums/client-details-working-holiday-maker.enum.js +7 -0
  44. package/esm2015/lib/db/Enums/client-invite-status.enum.js +6 -0
  45. package/esm2015/lib/db/Enums/client-invite-type.enum.js +6 -0
  46. package/esm2015/lib/db/Enums/depreciation-calculation-percent.enum.js +9 -0
  47. package/esm2015/lib/db/Enums/depreciation-calculation.enum.js +9 -0
  48. package/esm2015/lib/db/Enums/depreciation-type.enum.js +8 -0
  49. package/esm2015/lib/db/Enums/depreciation-write-off-amount.enum.js +6 -0
  50. package/esm2015/lib/db/Enums/firm-type.enum.js +6 -0
  51. package/esm2015/lib/db/Enums/income-source-type-list-other.enum.js +8 -0
  52. package/esm2015/lib/db/Enums/income-source-type-list-salary.enum.js +5 -0
  53. package/esm2015/lib/db/Enums/income-source-type-list-work.enum.js +10 -0
  54. package/esm2015/lib/db/Enums/income-source-type.enum.js +7 -0
  55. package/esm2015/lib/db/Enums/invite-status.enum.js +7 -0
  56. package/esm2015/lib/db/Enums/loan-bank-type.enum.js +12 -0
  57. package/esm2015/lib/db/Enums/loan-frequency.enum.js +8 -0
  58. package/esm2015/lib/db/Enums/loan-interest-type.enum.js +6 -0
  59. package/esm2015/lib/db/Enums/loan-payout-type.enum.js +6 -0
  60. package/esm2015/lib/db/Enums/loan-repayment-frequency.enum.js +7 -0
  61. package/esm2015/lib/db/Enums/loan-repayment-type.enum.js +6 -0
  62. package/esm2015/lib/db/Enums/loan-type.enum.js +14 -0
  63. package/esm2015/lib/db/Enums/loan-vehicle-type.enum.js +7 -0
  64. package/esm2015/lib/db/Enums/phone-type.enum.js +6 -0
  65. package/esm2015/lib/db/Enums/property-depreciation-calculation.enum.js +6 -0
  66. package/esm2015/lib/db/Enums/property-owner-access.enum.js +6 -0
  67. package/esm2015/lib/db/Enums/property-owner-status.enum.js +7 -0
  68. package/esm2015/lib/db/Enums/registration-invite-status.enum.js +6 -0
  69. package/esm2015/lib/db/Enums/salary-forecast-frequency.enum.js +8 -0
  70. package/esm2015/lib/db/Enums/service-notification-status.enum.js +7 -0
  71. package/esm2015/lib/db/Enums/service-notification-type.enum.js +6 -0
  72. package/esm2015/lib/db/Enums/service-payment-status.enum.js +6 -0
  73. package/esm2015/lib/db/Enums/service-price-recurring-interval.enum.js +8 -0
  74. package/esm2015/lib/db/Enums/service-price-type.enum.js +6 -0
  75. package/esm2015/lib/db/Enums/service-subscription-status.enum.js +10 -0
  76. package/esm2015/lib/db/Enums/spare-document-spare-type.enum.js +6 -0
  77. package/esm2015/lib/db/Enums/tank-type.enum.js +7 -0
  78. package/esm2015/lib/db/Enums/tax-calculation-medicare-exemption.enum.js +6 -0
  79. package/esm2015/lib/db/Enums/tax-calculation-type.enum.js +14 -0
  80. package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +28 -0
  81. package/esm2015/lib/db/Enums/tax-return-category-section.enum.js +8 -0
  82. package/esm2015/lib/db/Enums/tax-review-status.enum.js +13 -0
  83. package/esm2015/lib/db/Enums/tax-summary-list.enum.js +17 -0
  84. package/esm2015/lib/db/Enums/tax-summary-section.enum.js +8 -0
  85. package/esm2015/lib/db/Enums/tax-summary-tax-summary.enum.js +17 -0
  86. package/esm2015/lib/db/Enums/ticket-feedback.enum.js +6 -0
  87. package/esm2015/lib/db/Enums/ticket-status.enum.js +9 -0
  88. package/esm2015/lib/db/Enums/ticket-types.enum.js +5 -0
  89. package/esm2015/lib/db/Enums/transaction-operation.enum.js +7 -0
  90. package/esm2015/lib/db/Enums/transaction-source.enum.js +6 -0
  91. package/esm2015/lib/db/Enums/transaction-type.enum.js +6 -0
  92. package/esm2015/lib/db/Enums/user-event-status.enum.js +8 -0
  93. package/esm2015/lib/db/Enums/user-event-type-frequency.enum.js +8 -0
  94. package/esm2015/lib/db/Enums/user-event-type-reminder-type.enum.js +8 -0
  95. package/esm2015/lib/db/Enums/user-event-type-reminder.enum.js +7 -0
  96. package/esm2015/lib/db/Enums/user-event-type-type.enum.js +35 -0
  97. package/esm2015/lib/db/Enums/user-medicare-exemption.enum.js +7 -0
  98. package/esm2015/lib/db/Enums/user-roles.enum.js +15 -0
  99. package/esm2015/lib/db/Enums/user-status.enum.js +8 -0
  100. package/esm2015/lib/db/Enums/user-title.enum.js +9 -0
  101. package/esm2015/lib/db/Enums/user-work-depreciation-calculation.enum.js +6 -0
  102. package/esm2015/lib/db/Enums/user-working-holiday-maker.enum.js +7 -0
  103. package/esm2015/lib/db/Enums/vehicle-claim-method.enum.js +6 -0
  104. package/esm2015/lib/db/Enums/vehicle-logbook-purpose.enum.js +6 -0
  105. package/esm2015/lib/db/Models/address.js +3 -0
  106. package/esm2015/lib/db/Models/bank-account-balance.js +3 -0
  107. package/esm2015/lib/db/Models/bank-account-property.js +3 -0
  108. package/esm2015/lib/db/Models/bank-account.js +3 -0
  109. package/esm2015/lib/db/Models/bank-connection.js +3 -0
  110. package/esm2015/lib/db/Models/bank-transaction-import.js +3 -0
  111. package/esm2015/lib/db/Models/bank-transaction.js +3 -0
  112. package/esm2015/lib/db/Models/bank.js +3 -0
  113. package/esm2015/lib/db/Models/basiq-job.js +3 -0
  114. package/esm2015/lib/db/Models/borrowing-expense-loan.js +3 -0
  115. package/esm2015/lib/db/Models/borrowing-expense.js +3 -0
  116. package/esm2015/lib/db/Models/capital-cost-property.js +3 -0
  117. package/esm2015/lib/db/Models/capital-cost.js +3 -0
  118. package/esm2015/lib/db/Models/chart-accounts-depreciation.js +3 -0
  119. package/esm2015/lib/db/Models/chart-accounts-heading.js +3 -0
  120. package/esm2015/lib/db/Models/chart-accounts-metadata.js +3 -0
  121. package/esm2015/lib/db/Models/chart-accounts-value.js +3 -0
  122. package/esm2015/lib/db/Models/chart-accounts.js +3 -0
  123. package/esm2015/lib/db/Models/chat.js +3 -0
  124. package/esm2015/lib/db/Models/client-details.js +3 -0
  125. package/esm2015/lib/db/Models/client-invite.js +3 -0
  126. package/esm2015/lib/db/Models/client-movement.js +3 -0
  127. package/esm2015/lib/db/Models/country.js +3 -0
  128. package/esm2015/lib/db/Models/depreciation-capital-project.js +3 -0
  129. package/esm2015/lib/db/Models/depreciation-forecast.js +3 -0
  130. package/esm2015/lib/db/Models/depreciation-receipt.js +3 -0
  131. package/esm2015/lib/db/Models/depreciation.js +4 -0
  132. package/esm2015/lib/db/Models/document-folder.js +3 -0
  133. package/esm2015/lib/db/Models/document.js +3 -0
  134. package/esm2015/lib/db/Models/employee-details.js +3 -0
  135. package/esm2015/lib/db/Models/employee-invite.js +3 -0
  136. package/esm2015/lib/db/Models/financial-data-system.js +3 -0
  137. package/esm2015/lib/db/Models/firm.js +3 -0
  138. package/esm2015/lib/db/Models/income-source-forecast.js +3 -0
  139. package/esm2015/lib/db/Models/income-source-type.js +3 -0
  140. package/esm2015/lib/db/Models/income-source.js +3 -0
  141. package/esm2015/lib/db/Models/loan-payout.js +3 -0
  142. package/esm2015/lib/db/Models/loan.js +3 -0
  143. package/esm2015/lib/db/Models/message-document.js +3 -0
  144. package/esm2015/lib/db/Models/message.js +3 -0
  145. package/esm2015/lib/db/Models/occupation.js +3 -0
  146. package/esm2015/lib/db/Models/phone.js +3 -0
  147. package/esm2015/lib/db/Models/property-capital-cost.js +3 -0
  148. package/esm2015/lib/db/Models/property-category-movement.js +3 -0
  149. package/esm2015/lib/db/Models/property-category.js +3 -0
  150. package/esm2015/lib/db/Models/property-document.js +3 -0
  151. package/esm2015/lib/db/Models/property-forecast.js +3 -0
  152. package/esm2015/lib/db/Models/property-owner.js +3 -0
  153. package/esm2015/lib/db/Models/property-sold.js +3 -0
  154. package/esm2015/lib/db/Models/property-subscription.js +3 -0
  155. package/esm2015/lib/db/Models/property-valuation.js +3 -0
  156. package/esm2015/lib/db/Models/property.js +3 -0
  157. package/esm2015/lib/db/Models/registration-invite.js +3 -0
  158. package/esm2015/lib/db/Models/salary-forecast.js +3 -0
  159. package/esm2015/lib/db/Models/service-notification.js +3 -0
  160. package/esm2015/lib/db/Models/service-payment.js +3 -0
  161. package/esm2015/lib/db/Models/service-price.js +3 -0
  162. package/esm2015/lib/db/Models/service-product.js +3 -0
  163. package/esm2015/lib/db/Models/service-subscription-item.js +3 -0
  164. package/esm2015/lib/db/Models/service-subscription.js +3 -0
  165. package/esm2015/lib/db/Models/tax-return-category.js +3 -0
  166. package/esm2015/lib/db/Models/tax-return-item.js +3 -0
  167. package/esm2015/lib/db/Models/tax-return.js +3 -0
  168. package/esm2015/lib/db/Models/tax-review.js +3 -0
  169. package/esm2015/lib/db/Models/ticket.js +3 -0
  170. package/esm2015/lib/db/Models/transaction-allocation.js +3 -0
  171. package/esm2015/lib/db/Models/transaction-base.js +20 -0
  172. package/esm2015/lib/db/Models/transaction-metadata.js +3 -0
  173. package/esm2015/lib/db/Models/transaction-receipt.js +3 -0
  174. package/esm2015/lib/db/Models/transaction.js +4 -0
  175. package/esm2015/lib/db/Models/user-event-setting.js +3 -0
  176. package/esm2015/lib/db/Models/user-event-type.js +3 -0
  177. package/esm2015/lib/db/Models/user-event.js +3 -0
  178. package/esm2015/lib/db/Models/user.js +3 -0
  179. package/esm2015/lib/db/Models/vehicle-claim.js +3 -0
  180. package/esm2015/lib/db/Models/vehicle-logbook.js +3 -0
  181. package/esm2015/lib/db/Models/vehicle.js +3 -0
  182. package/esm2015/lib/functions/array/index.js +4 -0
  183. package/esm2015/lib/functions/array/replace.js +6 -0
  184. package/esm2015/lib/functions/array/sort-deep.js +22 -0
  185. package/esm2015/lib/functions/array/sort.js +13 -0
  186. package/esm2015/lib/functions/clone-deep.js +5 -0
  187. package/esm2015/lib/functions/create-date.js +8 -0
  188. package/esm2015/lib/functions/enum-to-list.js +13 -0
  189. package/esm2015/lib/functions/get-doc-icon.js +18 -0
  190. package/esm2015/lib/functions/mat-options-functions.js +10 -0
  191. package/esm2015/lib/functions/mat-sort-options.js +10 -0
  192. package/esm2015/lib/functions/round-to.js +10 -0
  193. package/esm2015/lib/functions/tax-review-filter-predicate.js +10 -0
  194. package/esm2015/lib/interfaces/asset-entity-type.enum.js +12 -0
  195. package/esm2015/lib/interfaces/asset-type.enum.js +11 -0
  196. package/esm2015/lib/interfaces/asset.interface.js +2 -0
  197. package/esm2015/lib/interfaces/chart-data.interface.js +2 -0
  198. package/esm2015/lib/interfaces/chart-serie.interface.js +2 -0
  199. package/esm2015/lib/interfaces/document.interface.js +2 -0
  200. package/esm2015/lib/interfaces/documentable.interface.js +2 -0
  201. package/esm2015/lib/interfaces/event-listener.interface.js +2 -0
  202. package/esm2015/lib/interfaces/income-source-forecast.interface.js +2 -0
  203. package/esm2015/lib/interfaces/option.interface.js +2 -0
  204. package/esm2015/lib/interfaces/photoable.js +2 -0
  205. package/esm2015/lib/interfaces/receipt.interface.js +2 -0
  206. package/esm2015/lib/interfaces/salary-forecast.interface.js +2 -0
  207. package/esm2015/lib/interfaces/tank.interface.js +2 -0
  208. package/esm2015/lib/models/address/address.js +24 -0
  209. package/esm2015/lib/models/address/country.js +16 -0
  210. package/esm2015/lib/models/bank/bank-account-chart-data.js +34 -0
  211. package/esm2015/lib/models/bank/bank-account-property.js +10 -0
  212. package/esm2015/lib/models/bank/bank-account-types.const.js +15 -0
  213. package/esm2015/lib/models/bank/bank-account.js +122 -0
  214. package/esm2015/lib/models/bank/bank-connection.js +14 -0
  215. package/esm2015/lib/models/bank/bank-transaction-chart-data.js +106 -0
  216. package/esm2015/lib/models/bank/bank-transaction-summary-fields.enum.js +6 -0
  217. package/esm2015/lib/models/bank/bank-transaction.js +67 -0
  218. package/esm2015/lib/models/bank/bank.js +23 -0
  219. package/esm2015/lib/models/bank/basiq-job.js +4 -0
  220. package/esm2015/lib/models/bank/basiq-token.js +13 -0
  221. package/esm2015/lib/models/bank/type-loan.const.js +7 -0
  222. package/esm2015/lib/models/borrowing-expense/borrowing-expense-loan.js +4 -0
  223. package/esm2015/lib/models/borrowing-expense/borrowing-expense.js +4 -0
  224. package/esm2015/lib/models/chart/chart-data.js +13 -0
  225. package/esm2015/lib/models/chart/chart-serie.js +7 -0
  226. package/esm2015/lib/models/chart-accounts/chart-accounts-categories.const.js +85 -0
  227. package/esm2015/lib/models/chart-accounts/chart-accounts-depreciation.js +16 -0
  228. package/esm2015/lib/models/chart-accounts/chart-accounts-heading.js +4 -0
  229. package/esm2015/lib/models/chart-accounts/chart-accounts-metadata.js +14 -0
  230. package/esm2015/lib/models/chart-accounts/chart-accounts-tax-labels.enum.js +7 -0
  231. package/esm2015/lib/models/chart-accounts/chart-accounts.js +120 -0
  232. package/esm2015/lib/models/chat/chat-view-type.enum.js +6 -0
  233. package/esm2015/lib/models/chat/chat.js +23 -0
  234. package/esm2015/lib/models/chat/message-document.js +20 -0
  235. package/esm2015/lib/models/chat/message.js +39 -0
  236. package/esm2015/lib/models/client/client-details.js +4 -0
  237. package/esm2015/lib/models/client/client-invite.js +67 -0
  238. package/esm2015/lib/models/client/client-movement.js +27 -0
  239. package/esm2015/lib/models/client/client-portfolio-chart-data.js +57 -0
  240. package/esm2015/lib/models/client/client-portfolio-report.js +6 -0
  241. package/esm2015/lib/models/depreciation/depreciation-capital-project.js +9 -0
  242. package/esm2015/lib/models/depreciation/depreciation-forecast.js +22 -0
  243. package/esm2015/lib/models/depreciation/depreciation-group-item.js +14 -0
  244. package/esm2015/lib/models/depreciation/depreciation-group.enum.js +9 -0
  245. package/esm2015/lib/models/depreciation/depreciation-group.js +15 -0
  246. package/esm2015/lib/models/depreciation/depreciation-groups.const.js +29 -0
  247. package/esm2015/lib/models/depreciation/depreciation-receipt.js +11 -0
  248. package/esm2015/lib/models/depreciation/depreciation.js +159 -0
  249. package/esm2015/lib/models/document/document-api-url-prefix.enum.js +9 -0
  250. package/esm2015/lib/models/document/document-file-types.const.js +23 -0
  251. package/esm2015/lib/models/document/document-folder.js +10 -0
  252. package/esm2015/lib/models/document/document.js +24 -0
  253. package/esm2015/lib/models/employee/employee-details.js +10 -0
  254. package/esm2015/lib/models/employee/employee-invite.js +14 -0
  255. package/esm2015/lib/models/endpoint/endpoint.js +23 -0
  256. package/esm2015/lib/models/endpoint/endpoints.const.js +142 -0
  257. package/esm2015/lib/models/event/app-event-type.enum.js +39 -0
  258. package/esm2015/lib/models/event/app-event.js +10 -0
  259. package/esm2015/lib/models/file/icons-file.enum.js +7 -0
  260. package/esm2015/lib/models/financial-year/financial-year.js +44 -0
  261. package/esm2015/lib/models/financial-year/month-name-short.enum.js +21 -0
  262. package/esm2015/lib/models/financial-year/month-number.enum.js +21 -0
  263. package/esm2015/lib/models/financial-year/months.const.js +2 -0
  264. package/esm2015/lib/models/firm/firm.js +30 -0
  265. package/esm2015/lib/models/income-position/income-position.js +9 -0
  266. package/esm2015/lib/models/income-source/income-source-chart-data.js +45 -0
  267. package/esm2015/lib/models/income-source/income-source-forecast.js +31 -0
  268. package/esm2015/lib/models/income-source/income-source-type.js +27 -0
  269. package/esm2015/lib/models/income-source/income-source.js +51 -0
  270. package/esm2015/lib/models/income-source/salary-forecast.js +14 -0
  271. package/esm2015/lib/models/loan/loan-max-number-of-payments.enum.js +10 -0
  272. package/esm2015/lib/models/loan/loan-payment.js +12 -0
  273. package/esm2015/lib/models/loan/loan-payout.js +11 -0
  274. package/esm2015/lib/models/loan/loan.js +39 -0
  275. package/esm2015/lib/models/logbook/default-vehicle-expense.js +20 -0
  276. package/esm2015/lib/models/logbook/logbook-period.js +11 -0
  277. package/esm2015/lib/models/logbook/logbook-purpose-options.const.js +6 -0
  278. package/esm2015/lib/models/logbook/vehicle-claim.js +26 -0
  279. package/esm2015/lib/models/logbook/vehicle-logbook.js +16 -0
  280. package/esm2015/lib/models/logbook/vehicle.js +39 -0
  281. package/esm2015/lib/models/notification/notification-event-types.const.js +43 -0
  282. package/esm2015/lib/models/notification/notification.js +63 -0
  283. package/esm2015/lib/models/phone/phone.js +12 -0
  284. package/esm2015/lib/models/property/calculation-form-item.js +17 -0
  285. package/esm2015/lib/models/property/calculation-form-type.enum.js +9 -0
  286. package/esm2015/lib/models/property/capital-costs-itmes.const.js +57 -0
  287. package/esm2015/lib/models/property/corelogic-suggestion.js +7 -0
  288. package/esm2015/lib/models/property/ownership-filter-options.enum.js +10 -0
  289. package/esm2015/lib/models/property/property-capital-cost.js +4 -0
  290. package/esm2015/lib/models/property/property-category-movement.js +20 -0
  291. package/esm2015/lib/models/property/property-category.js +8 -0
  292. package/esm2015/lib/models/property/property-document.js +17 -0
  293. package/esm2015/lib/models/property/property-equity-chart-data.js +155 -0
  294. package/esm2015/lib/models/property/property-equity-chart-item.js +24 -0
  295. package/esm2015/lib/models/property/property-equity-chart-type.enum.js +6 -0
  296. package/esm2015/lib/models/property/property-forecast.js +52 -0
  297. package/esm2015/lib/models/property/property-owner.js +48 -0
  298. package/esm2015/lib/models/property/property-sold.js +12 -0
  299. package/esm2015/lib/models/property/property-subscription.js +13 -0
  300. package/esm2015/lib/models/property/property-valuation.js +23 -0
  301. package/esm2015/lib/models/property/property.js +130 -0
  302. package/esm2015/lib/models/registration-invite/registration-invite.js +10 -0
  303. package/esm2015/lib/models/service-subscription/module-url-list.const.js +12 -0
  304. package/esm2015/lib/models/service-subscription/service-payment.js +10 -0
  305. package/esm2015/lib/models/service-subscription/service-price.js +10 -0
  306. package/esm2015/lib/models/service-subscription/service-product.js +10 -0
  307. package/esm2015/lib/models/service-subscription/service-subscription-item.js +13 -0
  308. package/esm2015/lib/models/service-subscription/service-subscription.js +128 -0
  309. package/esm2015/lib/models/service-subscription/subscription-description.const.js +8 -0
  310. package/esm2015/lib/models/service-subscription/subscription-title.const.js +8 -0
  311. package/esm2015/lib/models/service-subscription/subscription-type.enum.js +8 -0
  312. package/esm2015/lib/models/tax-review/tax-review.js +86 -0
  313. package/esm2015/lib/models/tax-summary/tax-return-category-item-details.js +9 -0
  314. package/esm2015/lib/models/tax-summary/tax-return-category-item.js +15 -0
  315. package/esm2015/lib/models/tax-summary/tax-summary-section.js +30 -0
  316. package/esm2015/lib/models/tax-summary/tax-summary-type.enum.js +9 -0
  317. package/esm2015/lib/models/tax-summary/tax-summary.js +71 -0
  318. package/esm2015/lib/models/transaction/income-amount-type.enum.js +9 -0
  319. package/esm2015/lib/models/transaction/transaction-allocation.js +21 -0
  320. package/esm2015/lib/models/transaction/transaction-metadata.js +10 -0
  321. package/esm2015/lib/models/transaction/transaction-receipt.js +11 -0
  322. package/esm2015/lib/models/transaction/transaction.js +214 -0
  323. package/esm2015/lib/models/user/my-account-history-initiated-by.enum.js +6 -0
  324. package/esm2015/lib/models/user/my-account-history-status.enum.js +6 -0
  325. package/esm2015/lib/models/user/my-account-history-type.enum.js +7 -0
  326. package/esm2015/lib/models/user/my-account-history.js +3 -0
  327. package/esm2015/lib/models/user/occupation.js +4 -0
  328. package/esm2015/lib/models/user/user-roles.const.js +13 -0
  329. package/esm2015/lib/models/user/user-to-register.js +6 -0
  330. package/esm2015/lib/models/user/user-work-position.const.js +7 -0
  331. package/esm2015/lib/models/user/user.js +138 -0
  332. package/esm2015/lib/models/user-event/user-event-category.enum.js +11 -0
  333. package/esm2015/lib/models/user-event/user-event-category.js +6 -0
  334. package/esm2015/lib/models/user-event/user-event-setting-field.enum.js +10 -0
  335. package/esm2015/lib/models/user-event/user-event-setting.js +18 -0
  336. package/esm2015/lib/models/user-event/user-event-type.js +24 -0
  337. package/esm2015/lib/services/address/address.service.js +39 -0
  338. package/esm2015/lib/services/asset/assets.service.js +51 -0
  339. package/esm2015/lib/services/auth/auth.service.js +46 -0
  340. package/esm2015/lib/services/auth/jwt.service.js +38 -0
  341. package/esm2015/lib/services/bank/bank-account-calculation.service.js +30 -0
  342. package/esm2015/lib/services/bank/bank-account.service.js +108 -0
  343. package/esm2015/lib/services/bank/bank-connection.service.js +43 -0
  344. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +65 -0
  345. package/esm2015/lib/services/bank/bank-transaction.service.js +89 -0
  346. package/esm2015/lib/services/bank/bank.service.js +24 -0
  347. package/esm2015/lib/services/bank/basiq.service.js +94 -0
  348. package/esm2015/lib/services/base-rest.service.js +190 -0
  349. package/esm2015/lib/services/borrowing-expense/borrowing-expense.service.js +73 -0
  350. package/esm2015/lib/services/chart-accounts/chart-accounts-depreciations.service.js +38 -0
  351. package/esm2015/lib/services/chart-accounts/chart-accounts.service.js +89 -0
  352. package/esm2015/lib/services/chat/chat.service.js +77 -0
  353. package/esm2015/lib/services/chat/message-document.service.js +118 -0
  354. package/esm2015/lib/services/chat/message.service.js +65 -0
  355. package/esm2015/lib/services/client/client-invite.service.js +102 -0
  356. package/esm2015/lib/services/client/client-movement.service.js +98 -0
  357. package/esm2015/lib/services/client/client-portfolio-report.service.js +37 -0
  358. package/esm2015/lib/services/depreciation/capital-project.service.js +62 -0
  359. package/esm2015/lib/services/depreciation/depreciation.service.js +146 -0
  360. package/esm2015/lib/services/document/document-folder.service.js +84 -0
  361. package/esm2015/lib/services/employee/employee-invite.service.js +53 -0
  362. package/esm2015/lib/services/employee/employee.service.js +39 -0
  363. package/esm2015/lib/services/event/event-dispatcher.service.js +30 -0
  364. package/esm2015/lib/services/event/sse.service.js +46 -0
  365. package/esm2015/lib/services/firm/firm.service.js +79 -0
  366. package/esm2015/lib/services/header-title/header-title.service.js +28 -0
  367. package/esm2015/lib/services/income-source/income-source-forecast.service.js +90 -0
  368. package/esm2015/lib/services/income-source/income-source.service.js +109 -0
  369. package/esm2015/lib/services/income-source/salary-forecast.service.js +90 -0
  370. package/esm2015/lib/services/intercom/intercom.service.js +41 -0
  371. package/esm2015/lib/services/loan/loan.service.js +145 -0
  372. package/esm2015/lib/services/notification/notification.service.js +65 -0
  373. package/esm2015/lib/services/preloader/preloader.service.js +30 -0
  374. package/esm2015/lib/services/property/corelogic.service.js +46 -0
  375. package/esm2015/lib/services/property/property-calculation.service.js +121 -0
  376. package/esm2015/lib/services/property/property-capital-cost.service.js +46 -0
  377. package/esm2015/lib/services/property/property-category.service.js +23 -0
  378. package/esm2015/lib/services/property/property-document.service.js +68 -0
  379. package/esm2015/lib/services/property/property-owner.service.js +123 -0
  380. package/esm2015/lib/services/property/property-sold.service.js +23 -0
  381. package/esm2015/lib/services/property/property.service.js +115 -0
  382. package/esm2015/lib/services/subscription/subscription.service.js +138 -0
  383. package/esm2015/lib/services/tax-review/tax-review-history.service.js +41 -0
  384. package/esm2015/lib/services/tax-review/tax-review.service.js +103 -0
  385. package/esm2015/lib/services/tax-summary/tax-summary.service.js +71 -0
  386. package/esm2015/lib/services/transaction/transaction-allocation.service.js +85 -0
  387. package/esm2015/lib/services/transaction/transaction-calculation.service.js +47 -0
  388. package/esm2015/lib/services/transaction/transaction.service.js +319 -0
  389. package/esm2015/lib/services/user/occupation.service.js +45 -0
  390. package/esm2015/lib/services/user/user-switcher.service.js +37 -0
  391. package/esm2015/lib/services/user/user.service.js +124 -0
  392. package/esm2015/lib/services/user-event/user-event-setting.service.js +59 -0
  393. package/esm2015/lib/services/user-event/user-event-type.service.js +29 -0
  394. package/esm2015/lib/services/work/work-tank.service.js +236 -0
  395. package/esm2015/lib/tt-core.module.js +1 -3
  396. package/esm2015/public-api.js +334 -3
  397. package/fesm2015/taxtank-core.js +9738 -25
  398. package/fesm2015/taxtank-core.js.map +1 -1
  399. package/lib/collections/abstract.collection.d.ts +40 -0
  400. package/lib/collections/bank-account.collection.d.ts +67 -0
  401. package/lib/collections/bank-transaction.collection.d.ts +72 -0
  402. package/lib/collections/client-movement.collection.d.ts +17 -0
  403. package/lib/collections/client-portfolio-report.collection.d.ts +26 -0
  404. package/lib/collections/client.collection.d.ts +4 -0
  405. package/lib/collections/collection-dictionary.d.ts +44 -0
  406. package/lib/collections/depreciation-forecast.collection.d.ts +11 -0
  407. package/lib/collections/depreciation.collection.d.ts +27 -0
  408. package/lib/collections/employee.collection.d.ts +6 -0
  409. package/lib/collections/income-source.collection.d.ts +25 -0
  410. package/lib/collections/loan.collection.d.ts +14 -0
  411. package/lib/collections/logbook.collection.d.ts +19 -0
  412. package/lib/collections/message-document.collection.d.ts +11 -0
  413. package/lib/collections/message.collection.d.ts +14 -0
  414. package/lib/collections/property.collection.d.ts +33 -0
  415. package/lib/collections/service-price.collection.d.ts +6 -0
  416. package/lib/collections/service-subscription.collection.d.ts +8 -0
  417. package/lib/collections/tax-return-category-item.collection.d.ts +68 -0
  418. package/lib/collections/tax-review.collection.d.ts +35 -0
  419. package/lib/collections/transaction-allocation.collection.d.ts +23 -0
  420. package/lib/collections/transaction.collection.d.ts +76 -0
  421. package/lib/collections/user-event-setting.collection.d.ts +30 -0
  422. package/lib/db/Enums/address-type.enum.d.ts +4 -0
  423. package/lib/db/Enums/bank-account-status.enum.d.ts +4 -0
  424. package/lib/db/Enums/bank-account-type.enum.d.ts +10 -0
  425. package/lib/db/Enums/bank-connection-status.enum.d.ts +5 -0
  426. package/lib/db/Enums/bank-transaction-type.enum.d.ts +4 -0
  427. package/lib/db/Enums/chart-accounts-category.enum.d.ts +13 -0
  428. package/lib/db/Enums/chart-accounts-etp.enum.d.ts +7 -0
  429. package/lib/db/Enums/chart-accounts-heading-tax-deductible.enum.d.ts +6 -0
  430. package/lib/db/Enums/chart-accounts-heading-taxable.enum.d.ts +6 -0
  431. package/lib/db/Enums/chart-accounts-heading-vehicle-list.enum.d.ts +4 -0
  432. package/lib/db/Enums/chart-accounts-list.enum.d.ts +19 -0
  433. package/lib/db/Enums/chart-accounts-metadata-list.enum.d.ts +14 -0
  434. package/lib/db/Enums/chart-accounts-metadata-type.enum.d.ts +4 -0
  435. package/lib/db/Enums/chart-accounts-type.enum.d.ts +4 -0
  436. package/lib/db/Enums/chat-status.enum.d.ts +4 -0
  437. package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts +5 -0
  438. package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts +4 -0
  439. package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts +5 -0
  440. package/lib/db/Enums/client-invite-status.enum.d.ts +4 -0
  441. package/lib/db/Enums/client-invite-type.enum.d.ts +4 -0
  442. package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts +7 -0
  443. package/lib/db/Enums/depreciation-calculation.enum.d.ts +7 -0
  444. package/lib/db/Enums/depreciation-type.enum.d.ts +6 -0
  445. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts +4 -0
  446. package/lib/db/Enums/firm-type.enum.d.ts +4 -0
  447. package/lib/db/Enums/income-source-type-list-other.enum.d.ts +6 -0
  448. package/lib/db/Enums/income-source-type-list-salary.enum.d.ts +3 -0
  449. package/lib/db/Enums/income-source-type-list-work.enum.d.ts +8 -0
  450. package/lib/db/Enums/income-source-type.enum.d.ts +5 -0
  451. package/lib/db/Enums/invite-status.enum.d.ts +5 -0
  452. package/lib/db/Enums/loan-bank-type.enum.d.ts +10 -0
  453. package/lib/db/Enums/loan-frequency.enum.d.ts +6 -0
  454. package/lib/db/Enums/loan-interest-type.enum.d.ts +4 -0
  455. package/lib/db/Enums/loan-payout-type.enum.d.ts +4 -0
  456. package/lib/db/Enums/loan-repayment-frequency.enum.d.ts +5 -0
  457. package/lib/db/Enums/loan-repayment-type.enum.d.ts +4 -0
  458. package/lib/db/Enums/loan-type.enum.d.ts +12 -0
  459. package/lib/db/Enums/loan-vehicle-type.enum.d.ts +5 -0
  460. package/lib/db/Enums/phone-type.enum.d.ts +4 -0
  461. package/lib/db/Enums/property-depreciation-calculation.enum.d.ts +4 -0
  462. package/lib/db/Enums/property-owner-access.enum.d.ts +4 -0
  463. package/lib/db/Enums/property-owner-status.enum.d.ts +5 -0
  464. package/lib/db/Enums/registration-invite-status.enum.d.ts +4 -0
  465. package/lib/db/Enums/salary-forecast-frequency.enum.d.ts +6 -0
  466. package/lib/db/Enums/service-notification-status.enum.d.ts +5 -0
  467. package/lib/db/Enums/service-notification-type.enum.d.ts +4 -0
  468. package/lib/db/Enums/service-payment-status.enum.d.ts +4 -0
  469. package/lib/db/Enums/service-price-recurring-interval.enum.d.ts +6 -0
  470. package/lib/db/Enums/service-price-type.enum.d.ts +4 -0
  471. package/lib/db/Enums/service-subscription-status.enum.d.ts +8 -0
  472. package/lib/db/Enums/spare-document-spare-type.enum.d.ts +4 -0
  473. package/lib/db/Enums/tank-type.enum.d.ts +5 -0
  474. package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts +4 -0
  475. package/lib/db/Enums/tax-calculation-type.enum.d.ts +12 -0
  476. package/lib/db/Enums/tax-return-category-list.enum.d.ts +26 -0
  477. package/lib/db/Enums/tax-return-category-section.enum.d.ts +6 -0
  478. package/lib/db/Enums/tax-review-status.enum.d.ts +11 -0
  479. package/lib/db/Enums/tax-summary-list.enum.d.ts +15 -0
  480. package/lib/db/Enums/tax-summary-section.enum.d.ts +6 -0
  481. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts +15 -0
  482. package/lib/db/Enums/ticket-feedback.enum.d.ts +4 -0
  483. package/lib/db/Enums/ticket-status.enum.d.ts +7 -0
  484. package/lib/db/Enums/ticket-types.enum.d.ts +3 -0
  485. package/lib/db/Enums/transaction-operation.enum.d.ts +5 -0
  486. package/lib/db/Enums/transaction-source.enum.d.ts +4 -0
  487. package/lib/db/Enums/transaction-type.enum.d.ts +4 -0
  488. package/lib/db/Enums/user-event-status.enum.d.ts +6 -0
  489. package/lib/db/Enums/user-event-type-frequency.enum.d.ts +6 -0
  490. package/lib/db/Enums/user-event-type-reminder-type.enum.d.ts +6 -0
  491. package/lib/db/Enums/user-event-type-reminder.enum.d.ts +5 -0
  492. package/lib/db/Enums/user-event-type-type.enum.d.ts +33 -0
  493. package/lib/db/Enums/user-medicare-exemption.enum.d.ts +5 -0
  494. package/lib/db/Enums/user-roles.enum.d.ts +13 -0
  495. package/lib/db/Enums/user-status.enum.d.ts +6 -0
  496. package/lib/db/Enums/user-title.enum.d.ts +7 -0
  497. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts +4 -0
  498. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts +5 -0
  499. package/lib/db/Enums/vehicle-claim-method.enum.d.ts +4 -0
  500. package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts +4 -0
  501. package/lib/db/Models/address.d.ts +19 -0
  502. package/lib/db/Models/bank-account-balance.d.ts +12 -0
  503. package/lib/db/Models/bank-account-property.d.ts +8 -0
  504. package/lib/db/Models/bank-account.d.ts +33 -0
  505. package/lib/db/Models/bank-connection.d.ts +14 -0
  506. package/lib/db/Models/bank-transaction-import.d.ts +11 -0
  507. package/lib/db/Models/bank-transaction.d.ts +16 -0
  508. package/lib/db/Models/bank.d.ts +11 -0
  509. package/lib/db/Models/basiq-job.d.ts +8 -0
  510. package/lib/db/Models/borrowing-expense-loan.d.ts +14 -0
  511. package/lib/db/Models/borrowing-expense.d.ts +7 -0
  512. package/lib/db/Models/capital-cost-property.d.ts +13 -0
  513. package/lib/db/Models/capital-cost.d.ts +4 -0
  514. package/lib/db/Models/chart-accounts-depreciation.d.ts +10 -0
  515. package/lib/db/Models/chart-accounts-heading.d.ts +6 -0
  516. package/lib/db/Models/chart-accounts-metadata.d.ts +11 -0
  517. package/lib/db/Models/chart-accounts-value.d.ts +12 -0
  518. package/lib/db/Models/chart-accounts.d.ts +23 -0
  519. package/lib/db/Models/chat.d.ts +17 -0
  520. package/lib/db/Models/client-details.d.ts +29 -0
  521. package/lib/db/Models/client-invite.d.ts +16 -0
  522. package/lib/db/Models/client-movement.d.ts +12 -0
  523. package/lib/db/Models/country.d.ts +5 -0
  524. package/lib/db/Models/depreciation-capital-project.d.ts +13 -0
  525. package/lib/db/Models/depreciation-forecast.d.ts +18 -0
  526. package/lib/db/Models/depreciation-receipt.d.ts +11 -0
  527. package/lib/db/Models/depreciation.d.ts +42 -0
  528. package/lib/db/Models/document-folder.d.ts +9 -0
  529. package/lib/db/Models/document.d.ts +11 -0
  530. package/lib/db/Models/employee-details.d.ts +7 -0
  531. package/lib/db/Models/employee-invite.d.ts +9 -0
  532. package/lib/db/Models/financial-data-system.d.ts +9 -0
  533. package/lib/db/Models/firm.d.ts +28 -0
  534. package/lib/db/Models/income-source-forecast.d.ts +12 -0
  535. package/lib/db/Models/income-source-type.d.ts +8 -0
  536. package/lib/db/Models/income-source.d.ts +20 -0
  537. package/lib/db/Models/loan-payout.d.ts +12 -0
  538. package/lib/db/Models/loan.d.ts +33 -0
  539. package/lib/db/Models/message-document.d.ts +15 -0
  540. package/lib/db/Models/message.d.ts +15 -0
  541. package/lib/db/Models/occupation.d.ts +5 -0
  542. package/lib/db/Models/phone.d.ts +12 -0
  543. package/lib/db/Models/property-capital-cost.d.ts +13 -0
  544. package/lib/db/Models/property-category-movement.d.ts +17 -0
  545. package/lib/db/Models/property-category.d.ts +13 -0
  546. package/lib/db/Models/property-document.d.ts +13 -0
  547. package/lib/db/Models/property-forecast.d.ts +14 -0
  548. package/lib/db/Models/property-owner.d.ts +20 -0
  549. package/lib/db/Models/property-sold.d.ts +12 -0
  550. package/lib/db/Models/property-subscription.d.ts +9 -0
  551. package/lib/db/Models/property-valuation.d.ts +12 -0
  552. package/lib/db/Models/property.d.ts +41 -0
  553. package/lib/db/Models/registration-invite.d.ts +12 -0
  554. package/lib/db/Models/salary-forecast.d.ts +15 -0
  555. package/lib/db/Models/service-notification.d.ts +13 -0
  556. package/lib/db/Models/service-payment.d.ts +11 -0
  557. package/lib/db/Models/service-price.d.ts +15 -0
  558. package/lib/db/Models/service-product.d.ts +12 -0
  559. package/lib/db/Models/service-subscription-item.d.ts +9 -0
  560. package/lib/db/Models/service-subscription.d.ts +14 -0
  561. package/lib/db/Models/tax-return-category.d.ts +12 -0
  562. package/lib/db/Models/tax-return-item.d.ts +15 -0
  563. package/lib/db/Models/tax-return.d.ts +8 -0
  564. package/lib/db/Models/tax-review.d.ts +13 -0
  565. package/lib/db/Models/ticket.d.ts +19 -0
  566. package/lib/db/Models/transaction-allocation.d.ts +8 -0
  567. package/lib/db/Models/transaction-base.d.ts +22 -0
  568. package/lib/db/Models/transaction-metadata.d.ts +11 -0
  569. package/lib/db/Models/transaction-receipt.d.ts +11 -0
  570. package/lib/db/Models/transaction.d.ts +43 -0
  571. package/lib/db/Models/user-event-setting.d.ts +10 -0
  572. package/lib/db/Models/user-event-type.d.ts +15 -0
  573. package/lib/db/Models/user-event.d.ts +13 -0
  574. package/lib/db/Models/user.d.ts +51 -0
  575. package/lib/db/Models/vehicle-claim.d.ts +11 -0
  576. package/lib/db/Models/vehicle-logbook.d.ts +16 -0
  577. package/lib/db/Models/vehicle.d.ts +8 -0
  578. package/lib/functions/array/index.d.ts +3 -0
  579. package/lib/functions/array/replace.d.ts +1 -0
  580. package/lib/functions/array/sort-deep.d.ts +1 -0
  581. package/lib/functions/array/sort.d.ts +1 -0
  582. package/lib/functions/clone-deep.d.ts +1 -0
  583. package/lib/functions/create-date.d.ts +5 -0
  584. package/lib/functions/enum-to-list.d.ts +2 -0
  585. package/lib/functions/get-doc-icon.d.ts +7 -0
  586. package/lib/functions/mat-options-functions.d.ts +2 -0
  587. package/lib/functions/mat-sort-options.d.ts +7 -0
  588. package/lib/functions/round-to.d.ts +6 -0
  589. package/lib/functions/tax-review-filter-predicate.d.ts +7 -0
  590. package/lib/interfaces/asset-entity-type.enum.d.ts +10 -0
  591. package/lib/interfaces/asset-type.enum.d.ts +8 -0
  592. package/lib/interfaces/asset.interface.d.ts +17 -0
  593. package/lib/interfaces/chart-data.interface.d.ts +10 -0
  594. package/lib/interfaces/chart-serie.interface.d.ts +8 -0
  595. package/lib/interfaces/document.interface.d.ts +18 -0
  596. package/lib/interfaces/documentable.interface.d.ts +8 -0
  597. package/lib/interfaces/event-listener.interface.d.ts +9 -0
  598. package/lib/interfaces/income-source-forecast.interface.d.ts +7 -0
  599. package/lib/interfaces/option.interface.d.ts +4 -0
  600. package/lib/interfaces/photoable.d.ts +13 -0
  601. package/lib/interfaces/receipt.interface.d.ts +12 -0
  602. package/lib/interfaces/salary-forecast.interface.d.ts +16 -0
  603. package/lib/interfaces/tank.interface.d.ts +7 -0
  604. package/lib/models/address/address.d.ts +11 -0
  605. package/lib/models/address/country.d.ts +11 -0
  606. package/lib/models/bank/bank-account-chart-data.d.ts +17 -0
  607. package/lib/models/bank/bank-account-property.d.ts +5 -0
  608. package/lib/models/bank/bank-account-types.const.d.ts +7 -0
  609. package/lib/models/bank/bank-account.d.ts +72 -0
  610. package/lib/models/bank/bank-connection.d.ts +7 -0
  611. package/lib/models/bank/bank-transaction-chart-data.d.ts +30 -0
  612. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts +4 -0
  613. package/lib/models/bank/bank-transaction.d.ts +38 -0
  614. package/lib/models/bank/bank.d.ts +8 -0
  615. package/lib/models/bank/basiq-job.d.ts +3 -0
  616. package/lib/models/bank/basiq-token.d.ts +9 -0
  617. package/lib/models/bank/type-loan.const.d.ts +2 -0
  618. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts +3 -0
  619. package/lib/models/borrowing-expense/borrowing-expense.d.ts +3 -0
  620. package/lib/models/chart/chart-data.d.ts +9 -0
  621. package/lib/models/chart/chart-serie.d.ts +8 -0
  622. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts +4 -0
  623. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts +7 -0
  624. package/lib/models/chart-accounts/chart-accounts-heading.d.ts +5 -0
  625. package/lib/models/chart-accounts/chart-accounts-metadata.d.ts +8 -0
  626. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts +5 -0
  627. package/lib/models/chart-accounts/chart-accounts.d.ts +66 -0
  628. package/lib/models/chat/chat-view-type.enum.d.ts +4 -0
  629. package/lib/models/chat/chat.d.ts +10 -0
  630. package/lib/models/chat/message-document.d.ts +11 -0
  631. package/lib/models/chat/message.d.ts +20 -0
  632. package/lib/models/client/client-details.d.ts +3 -0
  633. package/lib/models/client/client-invite.d.ts +34 -0
  634. package/lib/models/client/client-movement.d.ts +12 -0
  635. package/lib/models/client/client-portfolio-chart-data.d.ts +11 -0
  636. package/lib/models/client/client-portfolio-report.d.ts +10 -0
  637. package/lib/models/depreciation/depreciation-capital-project.d.ts +5 -0
  638. package/lib/models/depreciation/depreciation-forecast.d.ts +8 -0
  639. package/lib/models/depreciation/depreciation-group-item.d.ts +10 -0
  640. package/lib/models/depreciation/depreciation-group.d.ts +11 -0
  641. package/lib/models/depreciation/depreciation-group.enum.d.ts +7 -0
  642. package/lib/models/depreciation/depreciation-groups.const.d.ts +9 -0
  643. package/lib/models/depreciation/depreciation-receipt.d.ts +8 -0
  644. package/lib/models/depreciation/depreciation.d.ts +69 -0
  645. package/lib/models/document/document-api-url-prefix.enum.d.ts +7 -0
  646. package/lib/models/document/document-file-types.const.d.ts +3 -0
  647. package/lib/models/document/document-folder.d.ts +7 -0
  648. package/lib/models/document/document.d.ts +21 -0
  649. package/lib/models/employee/employee-details.d.ts +5 -0
  650. package/lib/models/employee/employee-invite.d.ts +7 -0
  651. package/lib/models/endpoint/endpoint.d.ts +22 -0
  652. package/lib/models/endpoint/endpoints.const.d.ts +7 -0
  653. package/lib/models/event/app-event-type.enum.d.ts +37 -0
  654. package/lib/models/event/app-event.d.ts +9 -0
  655. package/lib/models/file/icons-file.enum.d.ts +5 -0
  656. package/lib/models/financial-year/financial-year.d.ts +19 -0
  657. package/lib/models/financial-year/month-name-short.enum.d.ts +19 -0
  658. package/lib/models/financial-year/month-number.enum.d.ts +19 -0
  659. package/lib/models/financial-year/months.const.d.ts +1 -0
  660. package/lib/models/firm/firm.d.ts +18 -0
  661. package/lib/models/income-position/income-position.d.ts +9 -0
  662. package/lib/models/income-source/income-source-chart-data.d.ts +14 -0
  663. package/lib/models/income-source/income-source-forecast.d.ts +22 -0
  664. package/lib/models/income-source/income-source-type.d.ts +8 -0
  665. package/lib/models/income-source/income-source.d.ts +27 -0
  666. package/lib/models/income-source/salary-forecast.d.ts +16 -0
  667. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts +8 -0
  668. package/lib/models/loan/loan-payment.d.ts +13 -0
  669. package/lib/models/loan/loan-payout.d.ts +9 -0
  670. package/lib/models/loan/loan.d.ts +20 -0
  671. package/lib/models/logbook/default-vehicle-expense.d.ts +5 -0
  672. package/lib/models/logbook/logbook-period.d.ts +6 -0
  673. package/lib/models/logbook/logbook-purpose-options.const.d.ts +4 -0
  674. package/lib/models/logbook/vehicle-claim.d.ts +15 -0
  675. package/lib/models/logbook/vehicle-logbook.d.ts +6 -0
  676. package/lib/models/logbook/vehicle.d.ts +12 -0
  677. package/lib/models/notification/notification-event-types.const.d.ts +7 -0
  678. package/lib/models/notification/notification.d.ts +16 -0
  679. package/lib/models/phone/phone.d.ts +6 -0
  680. package/lib/models/property/calculation-form-item.d.ts +15 -0
  681. package/lib/models/property/calculation-form-type.enum.d.ts +7 -0
  682. package/lib/models/property/capital-costs-itmes.const.d.ts +2 -0
  683. package/lib/models/property/corelogic-suggestion.d.ts +18 -0
  684. package/lib/models/property/ownership-filter-options.enum.d.ts +8 -0
  685. package/lib/models/property/property-capital-cost.d.ts +3 -0
  686. package/lib/models/property/property-category-movement.d.ts +9 -0
  687. package/lib/models/property/property-category.d.ts +4 -0
  688. package/lib/models/property/property-document.d.ts +14 -0
  689. package/lib/models/property/property-equity-chart-data.d.ts +62 -0
  690. package/lib/models/property/property-equity-chart-item.d.ts +19 -0
  691. package/lib/models/property/property-equity-chart-type.enum.d.ts +4 -0
  692. package/lib/models/property/property-forecast.d.ts +28 -0
  693. package/lib/models/property/property-owner.d.ts +21 -0
  694. package/lib/models/property/property-sold.d.ts +5 -0
  695. package/lib/models/property/property-subscription.d.ts +6 -0
  696. package/lib/models/property/property-valuation.d.ts +9 -0
  697. package/lib/models/property/property.d.ts +55 -0
  698. package/lib/models/registration-invite/registration-invite.d.ts +6 -0
  699. package/lib/models/service-subscription/module-url-list.const.d.ts +6 -0
  700. package/lib/models/service-subscription/service-payment.d.ts +5 -0
  701. package/lib/models/service-subscription/service-price.d.ts +5 -0
  702. package/lib/models/service-subscription/service-product.d.ts +5 -0
  703. package/lib/models/service-subscription/service-subscription-item.d.ts +6 -0
  704. package/lib/models/service-subscription/service-subscription.d.ts +55 -0
  705. package/lib/models/service-subscription/subscription-description.const.d.ts +3 -0
  706. package/lib/models/service-subscription/subscription-title.const.d.ts +3 -0
  707. package/lib/models/service-subscription/subscription-type.enum.d.ts +6 -0
  708. package/lib/models/tax-review/tax-review.d.ts +52 -0
  709. package/lib/models/tax-summary/tax-return-category-item-details.d.ts +13 -0
  710. package/lib/models/tax-summary/tax-return-category-item.d.ts +18 -0
  711. package/lib/models/tax-summary/tax-summary-section.d.ts +12 -0
  712. package/lib/models/tax-summary/tax-summary-type.enum.d.ts +7 -0
  713. package/lib/models/tax-summary/tax-summary.d.ts +44 -0
  714. package/lib/models/transaction/income-amount-type.enum.d.ts +7 -0
  715. package/lib/models/transaction/transaction-allocation.d.ts +12 -0
  716. package/lib/models/transaction/transaction-metadata.d.ts +5 -0
  717. package/lib/models/transaction/transaction-receipt.d.ts +8 -0
  718. package/lib/models/transaction/transaction.d.ts +98 -0
  719. package/lib/models/user/my-account-history-initiated-by.enum.d.ts +4 -0
  720. package/lib/models/user/my-account-history-status.enum.d.ts +4 -0
  721. package/lib/models/user/my-account-history-type.enum.d.ts +5 -0
  722. package/lib/models/user/my-account-history.d.ts +11 -0
  723. package/lib/models/user/occupation.d.ts +3 -0
  724. package/lib/models/user/user-roles.const.d.ts +4 -0
  725. package/lib/models/user/user-to-register.d.ts +7 -0
  726. package/lib/models/user/user-work-position.const.d.ts +3 -0
  727. package/lib/models/user/user.d.ts +64 -0
  728. package/lib/models/user-event/user-event-category.d.ts +8 -0
  729. package/lib/models/user-event/user-event-category.enum.d.ts +9 -0
  730. package/lib/models/user-event/user-event-setting-field.enum.d.ts +8 -0
  731. package/lib/models/user-event/user-event-setting.d.ts +6 -0
  732. package/lib/models/user-event/user-event-type.d.ts +5 -0
  733. package/lib/services/address/address.service.d.ts +14 -0
  734. package/lib/services/asset/assets.service.d.ts +34 -0
  735. package/lib/services/auth/auth.service.d.ts +17 -0
  736. package/lib/services/auth/jwt.service.d.ts +16 -0
  737. package/lib/services/bank/bank-account-calculation.service.d.ts +19 -0
  738. package/lib/services/bank/bank-account.service.d.ts +47 -0
  739. package/lib/services/bank/bank-connection.service.d.ts +22 -0
  740. package/lib/services/bank/bank-transaction-calculation.service.d.ts +41 -0
  741. package/lib/services/bank/bank-transaction.service.d.ts +38 -0
  742. package/lib/services/bank/bank.service.d.ts +14 -0
  743. package/lib/services/bank/basiq.service.d.ts +42 -0
  744. package/lib/services/base-rest.service.d.ts +91 -0
  745. package/lib/services/borrowing-expense/borrowing-expense.service.d.ts +19 -0
  746. package/lib/services/chart-accounts/chart-accounts-depreciations.service.d.ts +19 -0
  747. package/lib/services/chart-accounts/chart-accounts.service.d.ts +37 -0
  748. package/lib/services/chat/chat.service.d.ts +31 -0
  749. package/lib/services/chat/message-document.service.d.ts +50 -0
  750. package/lib/services/chat/message.service.d.ts +31 -0
  751. package/lib/services/client/client-invite.service.d.ts +36 -0
  752. package/lib/services/client/client-movement.service.d.ts +40 -0
  753. package/lib/services/client/client-portfolio-report.service.d.ts +16 -0
  754. package/lib/services/depreciation/capital-project.service.d.ts +20 -0
  755. package/lib/services/depreciation/depreciation.service.d.ts +59 -0
  756. package/lib/services/document/document-folder.service.d.ts +40 -0
  757. package/lib/services/employee/employee-invite.service.d.ts +21 -0
  758. package/lib/services/employee/employee.service.d.ts +16 -0
  759. package/lib/services/event/event-dispatcher.service.d.ts +17 -0
  760. package/lib/services/event/sse.service.d.ts +16 -0
  761. package/lib/services/firm/firm.service.d.ts +27 -0
  762. package/lib/services/header-title/header-title.service.d.ts +11 -0
  763. package/lib/services/income-source/income-source-forecast.service.d.ts +36 -0
  764. package/lib/services/income-source/income-source.service.d.ts +48 -0
  765. package/lib/services/income-source/salary-forecast.service.d.ts +37 -0
  766. package/lib/services/intercom/intercom.service.d.ts +21 -0
  767. package/lib/services/loan/loan.service.d.ts +63 -0
  768. package/lib/services/notification/notification.service.d.ts +31 -0
  769. package/lib/services/preloader/preloader.service.d.ts +12 -0
  770. package/lib/services/property/corelogic.service.d.ts +15 -0
  771. package/lib/services/property/property-calculation.service.d.ts +33 -0
  772. package/lib/services/property/property-capital-cost.service.d.ts +20 -0
  773. package/lib/services/property/property-category.service.d.ts +13 -0
  774. package/lib/services/property/property-document.service.d.ts +31 -0
  775. package/lib/services/property/property-owner.service.d.ts +52 -0
  776. package/lib/services/property/property-sold.service.d.ts +13 -0
  777. package/lib/services/property/property.service.d.ts +50 -0
  778. package/lib/services/subscription/subscription.service.d.ts +47 -0
  779. package/lib/services/tax-review/tax-review-history.service.d.ts +19 -0
  780. package/lib/services/tax-review/tax-review.service.d.ts +44 -0
  781. package/lib/services/tax-summary/tax-summary.service.d.ts +31 -0
  782. package/lib/services/transaction/transaction-allocation.service.d.ts +43 -0
  783. package/lib/services/transaction/transaction-calculation.service.d.ts +29 -0
  784. package/lib/services/transaction/transaction.service.d.ts +92 -0
  785. package/lib/services/user/occupation.service.d.ts +20 -0
  786. package/lib/services/user/user-switcher.service.d.ts +20 -0
  787. package/lib/services/user/user.service.d.ts +60 -0
  788. package/lib/services/user-event/user-event-setting.service.d.ts +22 -0
  789. package/lib/services/user-event/user-event-type.service.d.ts +17 -0
  790. package/lib/services/work/work-tank.service.d.ts +93 -0
  791. package/package.json +9 -3
  792. package/public-api.d.ts +335 -1
  793. package/esm2015/lib/tt-core.service.js +0 -23
  794. package/lib/tt-core.service.d.ts +0 -8
@@ -0,0 +1,44 @@
1
+ import { TaxReview as TaxReviewBase } from '../../db/Models/tax-review';
2
+ import { Observable } from 'rxjs';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { BaseRestService } from '../base-rest.service';
5
+ import { IEventListener } from '../../interfaces/event-listener.interface';
6
+ import { TaxReview } from '../../models/tax-review/tax-review';
7
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Service to work with tax review
11
+ */
12
+ export declare class TaxReviewService extends BaseRestService<TaxReviewBase, TaxReview> implements IEventListener {
13
+ protected http: HttpClient;
14
+ protected eventDispatcherService: EventDispatcherService;
15
+ protected environment: any;
16
+ url: string;
17
+ modelClass: typeof TaxReview;
18
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
19
+ /**
20
+ * Listen events from SSE and Event Dispatcher services
21
+ */
22
+ listenEvents(): void;
23
+ /**
24
+ * Add new Tax Review (request from client to firm)
25
+ * @param finYear
26
+ */
27
+ request(finYear: number): Observable<TaxReview>;
28
+ /**
29
+ * Update tax review
30
+ * @param taxReview to be updated
31
+ */
32
+ update(taxReview: TaxReview): Observable<TaxReview>;
33
+ /**
34
+ * Clear cache when user reject firm
35
+ */
36
+ private listenFirmChanges;
37
+ /**
38
+ * Update firm for all transferred clients
39
+ * @private
40
+ */
41
+ private listenClientTransfer;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaxReviewService, never>;
43
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaxReviewService>;
44
+ }
@@ -0,0 +1,31 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable, ReplaySubject } from 'rxjs';
3
+ import { TaxSummary } from '../../models/tax-summary/tax-summary';
4
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Service to work with tax summary logic
8
+ */
9
+ export declare class TaxSummaryService {
10
+ private http;
11
+ private eventDispatcherService;
12
+ protected environment: any;
13
+ taxSummaryActualsSubject: ReplaySubject<TaxSummary>;
14
+ taxSummaryForecastsSubject: ReplaySubject<TaxSummary>;
15
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
16
+ listenEvents(): void;
17
+ /**
18
+ * Get actual tax summary items
19
+ */
20
+ getActuals(): Observable<TaxSummary>;
21
+ /**
22
+ * Get forecast tax summary items
23
+ */
24
+ getForecast(): Observable<TaxSummary>;
25
+ /**
26
+ * Listen to EventDispatcherService events related to Income source forecasts
27
+ */
28
+ private listenToIncomeSourceForecastsEvents;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaxSummaryService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaxSummaryService>;
31
+ }
@@ -0,0 +1,43 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { TransactionAllocation as TransactionAllocationBase } from '../../db/Models/transaction-allocation';
3
+ import { TransactionAllocation } from '../../models/transaction/transaction-allocation';
4
+ import { Transaction } from '../../models/transaction/transaction';
5
+ import { BaseRestService } from '../base-rest.service';
6
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
7
+ import { Observable } from 'rxjs';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Service for transaction allocations business logic
11
+ * @TODO alex refactor
12
+ */
13
+ export declare class TransactionAllocationService extends BaseRestService<TransactionAllocationBase, TransactionAllocation> {
14
+ protected http: HttpClient;
15
+ protected eventDispatcherService: EventDispatcherService;
16
+ protected environment: any;
17
+ url: string;
18
+ modelClass: typeof TransactionAllocation;
19
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
20
+ /**
21
+ * Add single transaction allocation
22
+ */
23
+ add(allocation: TransactionAllocation): Observable<TransactionAllocation>;
24
+ /**
25
+ * get list of transactions allocations related with passed bank transactions list
26
+ */
27
+ getByTransactions(transactions: Transaction[]): Observable<TransactionAllocation[]>;
28
+ private listenEvents;
29
+ /**
30
+ * Reset cache on transactions created
31
+ */
32
+ private onTransactionsCreated;
33
+ /**
34
+ * Reset cache on depreciation created
35
+ */
36
+ private onDepreciationCreated;
37
+ /**
38
+ * Reset cache on transaction deleted
39
+ */
40
+ private onTransactionDeleted;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionAllocationService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransactionAllocationService>;
43
+ }
@@ -0,0 +1,29 @@
1
+ import { TransactionAllocationCollection } from '../../collections/transaction-allocation.collection';
2
+ import { TransactionCollection } from '../../collections/transaction.collection';
3
+ import { Transaction } from '../../models/transaction/transaction';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * @TODO move to collection
7
+ */
8
+ export declare class TransactionCalculationService {
9
+ /**
10
+ * Sum of allocations for passed transactions
11
+ */
12
+ getAllocatedAmount(transactions: TransactionCollection, allocations: TransactionAllocationCollection): number;
13
+ /**
14
+ * Check if transaction is allocated
15
+ */
16
+ isAllocated(transaction: Transaction, allocations: TransactionAllocationCollection): boolean;
17
+ /**
18
+ * Get collection of allocated transactions
19
+ * @TODO Alex: consider to move to collection
20
+ */
21
+ getAllocatedTransactions(transactions: TransactionCollection, allocations: TransactionAllocationCollection): TransactionCollection;
22
+ /**
23
+ * Get collection of unallocated transactions
24
+ * @TODO Alex: consider to move to collection
25
+ */
26
+ getUnallocatedTransactions(transactions: TransactionCollection, allocations: TransactionAllocationCollection): TransactionCollection;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionCalculationService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransactionCalculationService>;
29
+ }
@@ -0,0 +1,92 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { Transaction as TransactionBase } from '../../db/Models/transaction';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
6
+ import { BaseRestService } from '../base-rest.service';
7
+ import { Transaction } from '../../models/transaction/transaction';
8
+ import { ChartAccounts } from '../../models/chart-accounts/chart-accounts';
9
+ import { ChartAccountsTaxLabelsEnum } from '../../models/chart-accounts/chart-accounts-tax-labels.enum';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * Service for transactions business logic
13
+ */
14
+ export declare class TransactionService extends BaseRestService<TransactionBase, Transaction> {
15
+ protected http: HttpClient;
16
+ protected eventDispatcherService: EventDispatcherService;
17
+ protected environment: any;
18
+ url: string;
19
+ modelClass: typeof Transaction;
20
+ transactionDeleted: EventEmitter<Transaction>;
21
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
22
+ /**
23
+ * Listen events from Event Dispatcher services
24
+ */
25
+ listenEvents(): void;
26
+ /**
27
+ * get list of all user's TaxTank transactions
28
+ */
29
+ get(): Observable<Transaction[]>;
30
+ /**
31
+ * Add single new transaction
32
+ * @param model New Transaction instance for saving
33
+ */
34
+ add(model: Transaction): Observable<Transaction>;
35
+ /**
36
+ * get transactions related with property
37
+ */
38
+ getByPropertyId(propertyId: number): Observable<Transaction[]>;
39
+ /**
40
+ * get list of transactions with tank type 'Work'
41
+ */
42
+ getWorkTransactions(): Observable<Transaction[]>;
43
+ /**
44
+ * get list of taxable transactions with tank type 'Work'
45
+ */
46
+ getTaxableWorkTransactions(): Observable<Transaction[]>;
47
+ /**
48
+ * add multiple transactions
49
+ * @param transactions List of new Transaction instances for saving
50
+ */
51
+ addBatch(transactions: Transaction[]): Observable<Transaction[]>;
52
+ /**
53
+ * update existing transaction
54
+ * @param transaction Transaction instance for updating
55
+ */
56
+ update(transaction: Transaction): Observable<Transaction>;
57
+ /**
58
+ * update multiple transactions
59
+ * @param transactions list of transactions for updating
60
+ */
61
+ updateBatch(transactions: Transaction[]): Observable<Transaction[]>;
62
+ /**
63
+ * delete transaction and related transactions
64
+ * @param model
65
+ */
66
+ delete(model: Transaction): Observable<void>;
67
+ /**
68
+ * upload transaction receipt image
69
+ * @param transaction Еhe transaction for which the receipt will be imported
70
+ */
71
+ uploadReceipt(transaction: Transaction): void;
72
+ /**
73
+ * calculate gross income amount based on transaction amount and taxes (fees)
74
+ * @param transaction Transaction instance for calculation
75
+ */
76
+ calculateGrossAmount(transaction: Transaction): number;
77
+ /**
78
+ * get label for transaction tax field depended of selected chart account.
79
+ * tax type depends of chart account heading or category.
80
+ */
81
+ getTaxLabel(chartAccounts: ChartAccounts): ChartAccountsTaxLabelsEnum;
82
+ /**
83
+ * Get transactions related to Vehicle category
84
+ */
85
+ getVehicleTransactions(): Observable<Transaction[]>;
86
+ /**
87
+ * Listen to EventDispatcherService event related to Depreciation changing
88
+ */
89
+ private listenDepreciationChange;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionService, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransactionService>;
92
+ }
@@ -0,0 +1,20 @@
1
+ import { Observable, ReplaySubject } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Occupation } from '../../models/user/occupation';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Service that works with Occupations
7
+ */
8
+ export declare class OccupationService {
9
+ private http;
10
+ private environment;
11
+ _occupations: Occupation[];
12
+ occupationsSubject: ReplaySubject<Occupation[]>;
13
+ constructor(http: HttpClient, environment: any);
14
+ /**
15
+ * Get list of occupations
16
+ */
17
+ getOccupations(): Observable<Occupation[]>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<OccupationService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<OccupationService>;
20
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * provides user management to managers (users with ROLE_ACCOUNTANT for now, more in future)
4
+ */
5
+ export declare class UserSwitcherService {
6
+ /**
7
+ * get switched username
8
+ */
9
+ get(): string;
10
+ /**
11
+ * switch to user (username should be used for correct work of backend)
12
+ */
13
+ set(username: string): void;
14
+ /**
15
+ * go back to original user
16
+ */
17
+ reset(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserSwitcherService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserSwitcherService>;
20
+ }
@@ -0,0 +1,60 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable, ReplaySubject } from 'rxjs';
3
+ import { User } from '../../models/user/user';
4
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { JwtService } from '../auth/jwt.service';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Service to work with user
9
+ */
10
+ export declare class UserService {
11
+ private http;
12
+ private jwtService;
13
+ private eventDispatcherService;
14
+ private environment;
15
+ cache: User;
16
+ cacheSubject: ReplaySubject<User>;
17
+ constructor(http: HttpClient, jwtService: JwtService, eventDispatcherService: EventDispatcherService, environment: any);
18
+ /**
19
+ * Get current user
20
+ */
21
+ get(): Observable<User>;
22
+ /**
23
+ * Register new user
24
+ */
25
+ register(data: object): Observable<object>;
26
+ /**
27
+ * Update user
28
+ */
29
+ update(user: User): Observable<void>;
30
+ /**
31
+ * Change user password
32
+ */
33
+ changePassword(currentPassword: string, newPassword: string): Observable<object>;
34
+ /**
35
+ * Reset user password
36
+ */
37
+ resetPassword(email: string): Observable<object>;
38
+ /**
39
+ * Confirm registered user
40
+ */
41
+ confirm(verificationCode: string): Observable<object>;
42
+ /**
43
+ * Search existing user
44
+ */
45
+ search(email: string): Observable<User>;
46
+ /**
47
+ * Finish onboarding process
48
+ */
49
+ finishOnboarding(user: User): Observable<void>;
50
+ /**
51
+ * Update user photo
52
+ */
53
+ updatePhoto(photo: FormData): Observable<void>;
54
+ /**
55
+ * Run forecast update script on backend when user switched financial year
56
+ */
57
+ switchFinancialYear(): Observable<object>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
60
+ }
@@ -0,0 +1,22 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { UserEventSetting } from '../../models/user-event/user-event-setting';
3
+ import { UserEventSetting as UserEventSettingBase } from '../../db/Models/user-event-setting';
4
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { BaseRestService } from '../base-rest.service';
6
+ import { Observable } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ export declare class UserEventSettingService extends BaseRestService<UserEventSettingBase, UserEventSetting> {
9
+ protected http: HttpClient;
10
+ protected eventDispatcherService: EventDispatcherService;
11
+ protected environment: any;
12
+ modelClass: typeof UserEventSetting;
13
+ url: string;
14
+ isHydra: boolean;
15
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
16
+ /**
17
+ * Send batch to add/updated settings
18
+ */
19
+ saveBatch(settings: UserEventSetting[]): Observable<void>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserEventSettingService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserEventSettingService>;
22
+ }
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { UserEventType as UserEventTypeBase } from '../../db/Models/user-event-type';
3
+ import { UserEventType } from '../../models/user-event/user-event-type';
4
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { BaseRestService } from '../base-rest.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class UserEventTypeService extends BaseRestService<UserEventTypeBase, UserEventType> {
8
+ protected http: HttpClient;
9
+ protected eventDispatcherService: EventDispatcherService;
10
+ protected environment: any;
11
+ modelClass: typeof UserEventType;
12
+ url: string;
13
+ isHydra: boolean;
14
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserEventTypeService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserEventTypeService>;
17
+ }
@@ -0,0 +1,93 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable, ReplaySubject } from 'rxjs';
3
+ import { TransactionService } from '../transaction/transaction.service';
4
+ import { Vehicle } from '../../models/logbook/vehicle';
5
+ import { VehicleClaim } from '../../models/logbook/vehicle-claim';
6
+ import { VehicleLogbook } from '../../models/logbook/vehicle-logbook';
7
+ import { IncomePosition } from '../../models/income-position/income-position';
8
+ import { DepreciationService } from '../depreciation/depreciation.service';
9
+ import { ChartAccountsService } from '../chart-accounts/chart-accounts.service';
10
+ import { EventDispatcherService } from '../event/event-dispatcher.service';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * Service that allows to work with WorkTank operations
14
+ */
15
+ export declare class WorkTankService {
16
+ private http;
17
+ private transactionService;
18
+ private depreciationService;
19
+ private chartAccountsService;
20
+ private eventDispatcherService;
21
+ private environment;
22
+ _vehicles: Vehicle[];
23
+ vehiclesSubject: ReplaySubject<Vehicle[]>;
24
+ _vehicleClaim: VehicleClaim;
25
+ vehicleClaimSubject: ReplaySubject<VehicleClaim>;
26
+ _vehicleClaimRate: number;
27
+ vehicleClaimRateSubject: ReplaySubject<number>;
28
+ _vehicleTaxReturn: number;
29
+ vehicleTaxReturnSubject: ReplaySubject<number>;
30
+ _incomePositions: IncomePosition[];
31
+ incomePositionsSubject: ReplaySubject<IncomePosition[]>;
32
+ constructor(http: HttpClient, transactionService: TransactionService, depreciationService: DepreciationService, chartAccountsService: ChartAccountsService, eventDispatcherService: EventDispatcherService, environment: any);
33
+ getVehicles(): Observable<Vehicle[]>;
34
+ /**
35
+ * Get vehicles claim amount
36
+ */
37
+ getVehiclesClaim(): Observable<VehicleClaim>;
38
+ /**
39
+ * Add new vehicle claim
40
+ * @param claim object which should be added
41
+ */
42
+ addVehicleClaim(claim: VehicleClaim): Observable<any>;
43
+ /**
44
+ * Get vehicles claim rate for current financial year
45
+ */
46
+ getVehiclesClaimRate(): Observable<number>;
47
+ /**
48
+ * Get vehicles tax return for vehicle transactions & depreciations
49
+ */
50
+ getVehiclesTaxReturn(): Observable<number>;
51
+ /**
52
+ * Update vehicle claim
53
+ * @param claim which should be updated
54
+ *
55
+ * @TODO alex refresh depreciation/transaction cache
56
+ */
57
+ updateVehicleClaim(claim: VehicleClaim): Observable<any>;
58
+ /**
59
+ * Add new logbook for desired vehicle
60
+ * @param logbook which should be added
61
+ * @param vehicle for which logbook object should be added
62
+ */
63
+ addLogbook(logbook: VehicleLogbook, vehicle: Vehicle): Observable<void>;
64
+ /**
65
+ * Update logbook
66
+ * @param logbook which should be updated
67
+ * @param vehicle for which logbook object should be updated
68
+ */
69
+ updateLogbook(logbook: VehicleLogbook, vehicle: Vehicle): Observable<any>;
70
+ /**
71
+ * Delete trip
72
+ * @param logbook for which trip should be deleted
73
+ * @param vehicle for which trip should be deleted
74
+ */
75
+ deleteTrip(logbook: VehicleLogbook, vehicle: Vehicle): Observable<any>;
76
+ /**
77
+ * Add new vehicle
78
+ * @param vehicle which should be added
79
+ */
80
+ addVehicle(vehicle: Vehicle): Observable<any>;
81
+ /**
82
+ * Update vehicle
83
+ * @param vehicle which should be updated
84
+ */
85
+ updateVehicle(vehicle: Vehicle): Observable<any>;
86
+ /**
87
+ * Delete vehicle
88
+ * @param vehicle which should be deleted
89
+ */
90
+ deleteVehicle(vehicle: Vehicle): Observable<void>;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<WorkTankService, never>;
92
+ static ɵprov: i0.ɵɵInjectableDeclaration<WorkTankService>;
93
+ }
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3",
7
- "@angular/core": "^12.2.3"
7
+ "@angular/core": "^12.2.3",
8
+ "@auth0/angular-jwt": "^4.0.0",
9
+ "@stripe/stripe-js": "^1.11.0",
10
+ "class-transformer": "^0.4.0",
11
+ "event-source-polyfill": "^1.0.22",
12
+ "moment": "^2.29.1",
13
+ "moment-range": "^4.0.2"
8
14
  },
9
15
  "dependencies": {
10
16
  "tslib": "^2.0.0"
@@ -16,4 +22,4 @@
16
22
  "fesm2015": "fesm2015/taxtank-core.js",
17
23
  "typings": "taxtank-core.d.ts",
18
24
  "sideEffects": false
19
- }
25
+ }