taxtank-core 0.28.117 → 0.29.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 (254) hide show
  1. package/bundles/taxtank-core.umd.js +8542 -8749
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/bank-account.collection.js +5 -1
  4. package/esm2015/lib/collections/chart-accounts.collection.js +12 -2
  5. package/esm2015/lib/collections/chat/chat.collection.js +26 -0
  6. package/esm2015/lib/collections/chat/index.js +4 -0
  7. package/esm2015/lib/collections/chat/message-document.collection.js +13 -0
  8. package/esm2015/lib/collections/chat/message.collection.js +33 -0
  9. package/esm2015/lib/collections/collection.js +5 -1
  10. package/esm2015/lib/collections/index.js +25 -3
  11. package/esm2015/lib/collections/loan/index.js +3 -0
  12. package/esm2015/lib/collections/loan/loan.collection.js +7 -1
  13. package/esm2015/lib/collections/property/index.js +2 -1
  14. package/esm2015/lib/collections/property/property-share.collection.js +13 -0
  15. package/esm2015/lib/collections/report/index.js +7 -0
  16. package/esm2015/lib/collections/sole/index.js +2 -1
  17. package/esm2015/lib/collections/subscription/index.js +2 -0
  18. package/esm2015/lib/collections/tax-summary/index.js +3 -0
  19. package/esm2015/lib/collections/user-event-type-collection.js +7 -0
  20. package/esm2015/lib/db/Models/bank/bank-account.js +3 -3
  21. package/esm2015/lib/db/Models/bank/bank-connection.js +3 -3
  22. package/esm2015/lib/db/Models/bank/bank-transaction-rule.js +4 -0
  23. package/esm2015/lib/db/Models/bank/bank-transaction.js +3 -3
  24. package/esm2015/lib/db/Models/document/document-base.js +4 -0
  25. package/esm2015/lib/db/Models/firm/firm-invite.js +4 -0
  26. package/esm2015/lib/db/Models/firm/message.js +3 -3
  27. package/esm2015/lib/db/Models/index.js +102 -0
  28. package/esm2015/lib/db/Models/loan/loan-payout.js +3 -3
  29. package/esm2015/lib/db/Models/loan/loan.js +3 -3
  30. package/esm2015/lib/db/Models/property/property-category-movement.js +3 -3
  31. package/esm2015/lib/db/Models/property/property-category.js +3 -3
  32. package/esm2015/lib/db/Models/property/property-sale/property-sale.js +3 -3
  33. package/esm2015/lib/db/Models/property/property-share.js +3 -3
  34. package/esm2015/lib/db/Models/spare/spare-document-category.js +4 -0
  35. package/esm2015/lib/db/Models/spare/spare-document.js +4 -0
  36. package/esm2015/lib/db/Models/tax-calculation.js +4 -0
  37. package/esm2015/lib/db/Models/transaction/transaction-base.js +3 -3
  38. package/esm2015/lib/forms/transaction/transaction.form.js +2 -2
  39. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  40. package/esm2015/lib/interceptors/basiq-token.interceptor.js +5 -5
  41. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  42. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  43. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  44. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  45. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  46. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  47. package/esm2015/lib/interfaces/index.js +18 -0
  48. package/esm2015/lib/models/bank/basiq/basiq-token.js +4 -2
  49. package/esm2015/lib/models/borrowing-expense/index.js +3 -0
  50. package/esm2015/lib/models/chart-accounts/index.js +2 -2
  51. package/esm2015/lib/models/chat/index.js +5 -0
  52. package/esm2015/lib/models/depreciation/depreciation-lvp-rate.enum.js +9 -0
  53. package/esm2015/lib/models/depreciation/index.js +10 -0
  54. package/esm2015/lib/models/dictionary/index.js +2 -0
  55. package/esm2015/lib/models/event/app-event-type.enum.js +68 -70
  56. package/esm2015/lib/models/event/index.js +3 -0
  57. package/esm2015/lib/models/financial-year/index.js +5 -0
  58. package/esm2015/lib/models/index.js +12 -2
  59. package/esm2015/lib/models/loan/index.js +5 -0
  60. package/esm2015/lib/models/notification/index.js +2 -0
  61. package/esm2015/lib/models/property/index.js +18 -0
  62. package/esm2015/lib/models/property/property.js +1 -3
  63. package/esm2015/lib/models/user/index.js +10 -0
  64. package/esm2015/lib/services/account-setup/account-setup.service.js +6 -6
  65. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  66. package/esm2015/lib/services/asset/assets.service.js +3 -3
  67. package/esm2015/lib/services/auth/auth.service.js +3 -3
  68. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  69. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  70. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  71. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  72. package/esm2015/lib/services/event/sse.service.js +3 -3
  73. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  74. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  75. package/esm2015/lib/services/http/address/address.service.js +3 -3
  76. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +16 -71
  77. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +39 -42
  78. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +17 -33
  79. package/esm2015/lib/services/http/bank/bank.service.js +15 -10
  80. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +17 -20
  81. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +15 -27
  82. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +10 -21
  83. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +20 -64
  84. package/esm2015/lib/services/http/chat/chat.service.js +24 -30
  85. package/esm2015/lib/services/http/chat/index.js +3 -3
  86. package/esm2015/lib/services/http/chat/message-document.service.js +78 -0
  87. package/esm2015/lib/services/http/chat/message.service.js +68 -0
  88. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  89. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  90. package/esm2015/lib/services/http/depreciation/depreciation.service.js +29 -57
  91. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  92. package/esm2015/lib/services/http/document/document.service.js +3 -3
  93. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  94. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  95. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  96. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  97. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  98. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  99. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  100. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  101. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  102. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  103. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  104. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  105. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +7 -4
  106. package/esm2015/lib/services/http/loan/index.js +1 -1
  107. package/esm2015/lib/services/http/loan/loan.service.js +20 -69
  108. package/esm2015/lib/services/http/property/property-category/property-category.service.js +10 -7
  109. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +10 -34
  110. package/esm2015/lib/services/http/property/property-document/property-document.service.js +11 -21
  111. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +10 -27
  112. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +11 -8
  113. package/esm2015/lib/services/http/property/property-share/property-share.service.js +15 -89
  114. package/esm2015/lib/services/http/property/property.service.js +16 -34
  115. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  116. package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
  117. package/esm2015/lib/services/http/rest/rest.service.js +13 -10
  118. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  119. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
  120. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  121. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
  122. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
  123. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
  124. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  125. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  126. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  127. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
  128. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
  129. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  130. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  131. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  132. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  133. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  134. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +6 -7
  135. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  136. package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
  137. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  138. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  139. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  140. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  141. package/esm2015/lib/services/http/user/user.service.js +3 -3
  142. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  143. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  144. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  145. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  146. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  147. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  148. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  149. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  150. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  151. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  152. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  153. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  154. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  155. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  156. package/esm2015/lib/services/report/property/property-transaction-report.service.js +7 -9
  157. package/esm2015/lib/services/toast/toast.service.js +3 -3
  158. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  159. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  160. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  161. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  162. package/esm2015/lib/tt-core.module.js +4 -4
  163. package/esm2015/public-api.js +1 -85
  164. package/fesm2015/taxtank-core.js +6987 -7252
  165. package/fesm2015/taxtank-core.js.map +1 -1
  166. package/lib/collections/bank-account.collection.d.ts +1 -0
  167. package/lib/collections/chart-accounts.collection.d.ts +1 -0
  168. package/lib/collections/{chat.collection.d.ts → chat/chat.collection.d.ts} +2 -3
  169. package/lib/collections/chat/index.d.ts +3 -0
  170. package/lib/collections/{message-document.collection.d.ts → chat/message-document.collection.d.ts} +2 -2
  171. package/lib/collections/{message.collection.d.ts → chat/message.collection.d.ts} +2 -3
  172. package/lib/collections/collection.d.ts +1 -0
  173. package/lib/collections/index.d.ts +23 -2
  174. package/lib/collections/loan/index.d.ts +2 -0
  175. package/lib/collections/loan/loan.collection.d.ts +4 -0
  176. package/lib/collections/property/index.d.ts +1 -0
  177. package/lib/collections/property/property-share.collection.d.ts +6 -0
  178. package/lib/collections/report/index.d.ts +6 -0
  179. package/lib/collections/sole/index.d.ts +1 -0
  180. package/lib/collections/subscription/index.d.ts +1 -0
  181. package/lib/collections/tax-summary/index.d.ts +2 -0
  182. package/lib/collections/user-event-type-collection.d.ts +7 -0
  183. package/lib/db/Models/bank/bank-account.d.ts +2 -2
  184. package/lib/db/Models/bank/bank-connection.d.ts +2 -2
  185. package/lib/db/Models/bank/bank-transaction-rule.d.ts +26 -0
  186. package/lib/db/Models/bank/bank-transaction.d.ts +2 -2
  187. package/lib/db/Models/document/document-base.d.ts +11 -0
  188. package/lib/db/Models/firm/firm-invite.d.ts +15 -0
  189. package/lib/db/Models/firm/message.d.ts +2 -2
  190. package/lib/db/Models/index.d.ts +101 -0
  191. package/lib/db/Models/loan/loan-payout.d.ts +2 -2
  192. package/lib/db/Models/loan/loan.d.ts +2 -2
  193. package/lib/db/Models/property/property-category-movement.d.ts +2 -2
  194. package/lib/db/Models/property/property-category.d.ts +2 -2
  195. package/lib/db/Models/property/property-sale/property-sale.d.ts +2 -2
  196. package/lib/db/Models/property/property-share.d.ts +2 -2
  197. package/lib/db/Models/spare/spare-document-category.d.ts +7 -0
  198. package/lib/db/Models/spare/spare-document.d.ts +16 -0
  199. package/lib/db/Models/tax-calculation.d.ts +19 -0
  200. package/lib/db/Models/transaction/transaction-base.d.ts +2 -2
  201. package/lib/interfaces/index.d.ts +17 -0
  202. package/lib/models/bank/basiq/basiq-token.d.ts +2 -1
  203. package/lib/models/borrowing-expense/index.d.ts +2 -0
  204. package/lib/models/chart-accounts/index.d.ts +1 -1
  205. package/lib/models/chat/index.d.ts +4 -0
  206. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts +7 -0
  207. package/lib/models/depreciation/index.d.ts +9 -0
  208. package/lib/models/dictionary/index.d.ts +1 -0
  209. package/lib/models/event/app-event-type.enum.d.ts +67 -69
  210. package/lib/models/event/index.d.ts +2 -0
  211. package/lib/models/financial-year/index.d.ts +4 -0
  212. package/lib/models/index.d.ts +11 -1
  213. package/lib/models/loan/index.d.ts +4 -0
  214. package/lib/models/notification/index.d.ts +1 -0
  215. package/lib/models/property/index.d.ts +17 -0
  216. package/lib/models/property/property.d.ts +0 -2
  217. package/lib/models/user/index.d.ts +9 -0
  218. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +10 -25
  219. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +18 -8
  220. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +10 -13
  221. package/lib/services/http/bank/bank.service.d.ts +10 -7
  222. package/lib/services/http/bank/basiq/basiq-token.service.d.ts +10 -9
  223. package/lib/services/http/bank/basiq/basiq.service.d.ts +12 -15
  224. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +8 -10
  225. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +11 -24
  226. package/lib/services/http/chat/chat.service.d.ts +12 -11
  227. package/lib/services/http/chat/index.d.ts +2 -2
  228. package/lib/services/http/chat/message-document.service.d.ts +35 -0
  229. package/lib/services/http/chat/message.service.d.ts +38 -0
  230. package/lib/services/http/depreciation/depreciation.service.d.ts +12 -23
  231. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts +3 -0
  232. package/lib/services/http/loan/loan.service.d.ts +16 -29
  233. package/lib/services/http/property/property-category/property-category.service.d.ts +8 -5
  234. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +8 -10
  235. package/lib/services/http/property/property-document/property-document.service.d.ts +9 -11
  236. package/lib/services/http/property/property-sale/property-sale.service.d.ts +8 -14
  237. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +9 -6
  238. package/lib/services/http/property/property-share/property-share.service.d.ts +10 -22
  239. package/lib/services/http/property/property.service.d.ts +9 -9
  240. package/lib/services/http/rest/rest.service.d.ts +6 -4
  241. package/lib/services/report/property/property-transaction-report.service.d.ts +2 -3
  242. package/package.json +1 -1
  243. package/public-api.d.ts +0 -84
  244. package/esm2015/lib/collections/chat.collection.js +0 -26
  245. package/esm2015/lib/collections/message-document.collection.js +0 -13
  246. package/esm2015/lib/collections/message.collection.js +0 -33
  247. package/esm2015/lib/services/http/chat/message/index.js +0 -2
  248. package/esm2015/lib/services/http/chat/message/message.service.js +0 -61
  249. package/esm2015/lib/services/http/chat/message-document/index.js +0 -2
  250. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +0 -118
  251. package/lib/services/http/chat/message/index.d.ts +0 -1
  252. package/lib/services/http/chat/message/message.service.d.ts +0 -28
  253. package/lib/services/http/chat/message-document/index.d.ts +0 -1
  254. package/lib/services/http/chat/message-document/message-document.service.d.ts +0 -50
@@ -1,73 +1,71 @@
1
1
  export declare enum AppEventTypeEnum {
2
2
  CLIENT_MOVEMENT_CLOSED = 0,
3
3
  BANK_CONNECTION_ADDED = 1,
4
- BANK_ACCOUNT_CREATED = 2,
5
- BANK_ACCOUNT_UPDATED = 3,
6
- BANK_TRANSACTION_ALLOCATED = 4,
7
- BANK_TRANSACTIONS_ADDED = 5,
8
- BANK_TRANSACTIONS_DELETED = 6,
9
- BASIQ_CONSENT_UPDATED = 7,
10
- BASIQ_CONNECTION_UPDATED = 8,
11
- BASIQ_JOB_CREATED = 9,
12
- BASIQ_LOGIN_SUCCESS = 10,
13
- BASIQ_LOGIN_FAILED = 11,
14
- CLIENT_INVITE_ACCEPTED = 12,
15
- CLIENT_OPEN_CHAT = 13,
16
- CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 14,
17
- CURRENT_USER_GET_FAILED = 15,
18
- DEPRECIATION_DELETED = 16,
19
- DEPRECIATIONS_CREATED = 17,
20
- DEPRECIATION_UPDATED_WITH_RECEIPT = 18,
21
- DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT = 19,
22
- DEPRECIATION_RECEIPT_CREATED = 20,
23
- DEPRECIATION_RECEIPT_DELETED = 21,
24
- INCOME_SOURCES_CREATED = 22,
25
- INCOME_SOURCES_UPDATED = 23,
26
- INCOME_SOURCES_FORECASTS_CREATED = 24,
27
- INCOME_SOURCES_FORECASTS_UPDATED = 25,
28
- LOAN_UPDATED = 26,
29
- LOAN_PAYOUT_UPDATED = 27,
30
- MESSAGE_CREATED = 28,
31
- MESSAGE_FILE_CREATED = 29,
32
- MESSAGE_FILE_DELETED = 30,
33
- NOTIFICATION_ADDED = 31,
34
- PROPERTY_DEPRECIATION_CALCULATION_UPDATED = 32,
35
- PROPERTY_UPDATED = 33,
36
- PROPERTY_UPDATED_WITH_DOCUMENT = 34,
37
- PROPERTY_DOCUMENT_ADDED = 35,
38
- PROPERTY_MOVEMENT_CREATED = 36,
39
- PROPERTY_MOVEMENT_UPDATED = 37,
40
- PROPERTY_MOVEMENT_DELETED = 38,
41
- PROPERTY_SHARE_UPDATED = 39,
42
- PROPERTY_SALE_ADDED = 40,
43
- PROPERTY_SALE_DELETED = 41,
44
- PROPERTY_SUBSCRIPTION_ADDED = 42,
45
- PROPERTY_SUBSCRIPTION_DELETED = 43,
46
- PROPERTY_VALUATION_DOCUMENT_CREATED = 44,
47
- SERVICE_SUBSCRIPTION_UPDATED = 45,
48
- SOLE_BUSINESS_CREATED = 46,
49
- SOLE_DEPRECIATION_METHOD_UPDATED = 47,
50
- SOLE_DETAILS_CREATED = 48,
51
- SOLE_DETAILS_UPDATED = 49,
52
- SOLE_INVOICE_PUBLISHED = 50,
53
- TAX_REVIEW_UPDATED = 51,
54
- TRANSACTION_ALLOCATION_CREATED = 52,
55
- TRANSACTION_ALLOCATION_DELETED = 53,
56
- TRANSACTION_CREATED = 54,
57
- TRANSACTION_DELETED = 55,
58
- TRANSACTION_UPDATED = 56,
59
- TRANSACTION_UPDATED_WITH_RECEIPT = 57,
60
- TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 58,
61
- TRANSACTION_RECEIPT_CREATED = 59,
62
- TRANSACTION_RECEIPT_DELETED = 60,
63
- TRANSACTIONS_CREATED = 61,
64
- USER_UPDATED = 62,
65
- VEHICLE_CLAIM_UPDATED = 63,
66
- VEHICLE_CLAIM_CREATED = 64,
67
- VEHICLE_CLAIM_DETAILS_UPDATED = 65,
68
- VEHICLE_CLAIM_DETAILS_CREATED = 66,
69
- VEHICLE_LOGBOOK_CREATED = 67,
70
- VEHICLE_LOGBOOK_UPDATED = 68,
71
- VEHICLE_LOGBOOK_DELETED = 69,
72
- VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 70
4
+ BANK_TRANSACTION_ALLOCATED = 2,
5
+ BANK_TRANSACTIONS_ADDED = 3,
6
+ BANK_TRANSACTIONS_DELETED = 4,
7
+ BASIQ_CONSENT_UPDATED = 5,
8
+ BASIQ_CONNECTION_UPDATED = 6,
9
+ BASIQ_JOB_CREATED = 7,
10
+ BASIQ_LOGIN_SUCCESS = 8,
11
+ BASIQ_LOGIN_FAILED = 9,
12
+ CLIENT_INVITE_ACCEPTED = 10,
13
+ CLIENT_OPEN_CHAT = 11,
14
+ CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 12,
15
+ CURRENT_USER_GET_FAILED = 13,
16
+ DEPRECIATION_DELETED = 14,
17
+ DEPRECIATIONS_CREATED = 15,
18
+ DEPRECIATION_UPDATED_WITH_RECEIPT = 16,
19
+ DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT = 17,
20
+ DEPRECIATION_RECEIPT_CREATED = 18,
21
+ DEPRECIATION_RECEIPT_DELETED = 19,
22
+ INCOME_SOURCES_CREATED = 20,
23
+ INCOME_SOURCES_UPDATED = 21,
24
+ INCOME_SOURCES_FORECASTS_CREATED = 22,
25
+ INCOME_SOURCES_FORECASTS_UPDATED = 23,
26
+ LOAN_UPDATED = 24,
27
+ LOAN_PAYOUT_UPDATED = 25,
28
+ MESSAGE_CREATED = 26,
29
+ MESSAGE_FILE_CREATED = 27,
30
+ MESSAGE_FILE_DELETED = 28,
31
+ NOTIFICATION_ADDED = 29,
32
+ PROPERTY_DEPRECIATION_CALCULATION_UPDATED = 30,
33
+ PROPERTY_UPDATED = 31,
34
+ PROPERTY_UPDATED_WITH_DOCUMENT = 32,
35
+ PROPERTY_DOCUMENT_ADDED = 33,
36
+ PROPERTY_MOVEMENT_CREATED = 34,
37
+ PROPERTY_MOVEMENT_UPDATED = 35,
38
+ PROPERTY_MOVEMENT_DELETED = 36,
39
+ PROPERTY_SHARE_UPDATED = 37,
40
+ PROPERTY_SALE_ADDED = 38,
41
+ PROPERTY_SALE_DELETED = 39,
42
+ PROPERTY_SUBSCRIPTION_ADDED = 40,
43
+ PROPERTY_SUBSCRIPTION_DELETED = 41,
44
+ PROPERTY_VALUATION_DOCUMENT_CREATED = 42,
45
+ SERVICE_SUBSCRIPTION_UPDATED = 43,
46
+ SOLE_BUSINESS_CREATED = 44,
47
+ SOLE_DEPRECIATION_METHOD_UPDATED = 45,
48
+ SOLE_DETAILS_CREATED = 46,
49
+ SOLE_DETAILS_UPDATED = 47,
50
+ SOLE_INVOICE_PUBLISHED = 48,
51
+ TAX_REVIEW_UPDATED = 49,
52
+ TRANSACTION_ALLOCATION_CREATED = 50,
53
+ TRANSACTION_ALLOCATION_DELETED = 51,
54
+ TRANSACTION_CREATED = 52,
55
+ TRANSACTION_DELETED = 53,
56
+ TRANSACTION_UPDATED = 54,
57
+ TRANSACTION_UPDATED_WITH_RECEIPT = 55,
58
+ TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 56,
59
+ TRANSACTION_RECEIPT_CREATED = 57,
60
+ TRANSACTION_RECEIPT_DELETED = 58,
61
+ TRANSACTIONS_CREATED = 59,
62
+ USER_UPDATED = 60,
63
+ VEHICLE_CLAIM_UPDATED = 61,
64
+ VEHICLE_CLAIM_CREATED = 62,
65
+ VEHICLE_CLAIM_DETAILS_UPDATED = 63,
66
+ VEHICLE_CLAIM_DETAILS_CREATED = 64,
67
+ VEHICLE_LOGBOOK_CREATED = 65,
68
+ VEHICLE_LOGBOOK_UPDATED = 66,
69
+ VEHICLE_LOGBOOK_DELETED = 67,
70
+ VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 68
73
71
  }
@@ -0,0 +1,2 @@
1
+ export * from './app-event-type.enum';
2
+ export * from './app-event';
@@ -0,0 +1,4 @@
1
+ export * from './financial-year';
2
+ export * from './month-name-short.enum';
3
+ export * from './month-number.enum';
4
+ export * from './months.const';
@@ -1,7 +1,17 @@
1
1
  export * from './address';
2
2
  export * from './bank';
3
+ export * from './borrowing-expense';
4
+ export * from './chart-accounts';
5
+ export * from './chat';
6
+ export * from './depreciation';
7
+ export * from './dictionary';
8
+ export * from './event';
9
+ export * from './financial-year';
10
+ export * from './loan';
11
+ export * from './notification';
3
12
  export * from './sole';
4
13
  export * from './vehicle';
5
14
  export * from './document';
6
- export * from './chart-accounts';
15
+ export * from './property';
7
16
  export * from './transaction';
17
+ export * from './user';
@@ -0,0 +1,4 @@
1
+ export * from './loan-max-number-of-payments.enum';
2
+ export * from './loan-payment';
3
+ export * from './loan-payout';
4
+ export * from './loan';
@@ -0,0 +1 @@
1
+ export * from './notification';
@@ -0,0 +1,17 @@
1
+ export * from './property-sale';
2
+ export * from './calculation-form-item';
3
+ export * from './calculation-form-type.enum';
4
+ export * from './capital-costs-itmes.const';
5
+ export * from './corelogic-suggestion';
6
+ export * from './property-category-movement';
7
+ export * from './property-category';
8
+ export * from './property-document';
9
+ export * from './property-equity-chart-data';
10
+ export * from './property-equity-chart-item';
11
+ export * from './property-equity-chart-type.enum';
12
+ export * from './property-forecast';
13
+ export * from './property-share';
14
+ export * from './property-subscription';
15
+ export * from './property-valuation';
16
+ export * from './property';
17
+ export * from './share-filter-options.enum';
@@ -14,7 +14,6 @@ import { PropertySale } from './property-sale/property-sale';
14
14
  import { unitOfTime } from 'moment';
15
15
  import { TransactionCollection } from '../../collections/transaction/transaction.collection';
16
16
  import { DepreciationCollection } from '../../collections/depreciation.collection';
17
- import { PropertyCollection } from '../../collections';
18
17
  /**
19
18
  * propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
20
19
  */
@@ -24,7 +23,6 @@ export declare class Property extends PropertyBase implements Photoable, Documen
24
23
  * Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
25
24
  */
26
25
  static preCGTAssetDate: Date;
27
- static collectionClass: typeof PropertyCollection;
28
26
  contractDate: Date;
29
27
  settlementDate: Date;
30
28
  address: Address;
@@ -0,0 +1,9 @@
1
+ export * from './my-account-history-initiated-by.enum';
2
+ export * from './my-account-history-status.enum';
3
+ export * from './my-account-history-type.enum';
4
+ export * from './my-account-history';
5
+ export * from './occupation';
6
+ export * from './user-roles.const';
7
+ export * from './user-to-register';
8
+ export * from './user-work-position.const';
9
+ export * from './user';
@@ -1,42 +1,27 @@
1
1
  import { Observable } from 'rxjs';
2
- import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
3
- import { RestService } from '../../rest/rest-old.service';
4
- import { BankAccount } from '../../../../models/bank/bank-account';
5
- import { IEventListener } from '../../../../interfaces/event-listener.interface';
6
- import { BankConnection } from '../../../../models/bank/bank-connection';
7
- import { BankAccountCollection } from '../../../../collections/bank-account.collection';
2
+ import { BankAccount as BankAccountBase } from '../../../../db/Models';
3
+ import { BankAccount } from '../../../../models';
4
+ import { RestMethod, RestService } from '../../rest';
5
+ import { IEventListener } from '../../../../interfaces';
6
+ import { BankAccountCollection } from '../../../../collections';
8
7
  import * as i0 from "@angular/core";
9
8
  /**
10
9
  * Service that handling user's bank accounts logic
11
10
  */
12
- export declare class BankAccountService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
13
- url: string;
11
+ export declare class BankAccountService extends RestService<BankAccountBase, BankAccount, BankAccountCollection> implements IEventListener {
12
+ endpointUri: string;
14
13
  modelClass: typeof BankAccount;
14
+ collectionClass: typeof BankAccountCollection;
15
+ disabledMethods: RestMethod[];
15
16
  /**
16
17
  * Listen system notifications and update cache when got basiq notification received
17
18
  */
18
19
  listenEvents(): void;
19
- /**
20
- * Created manual bank account
21
- * @param bankAccounts
22
- * @param queryParams
23
- */
24
- addBatch(bankAccounts: BankAccount[], queryParams?: object): Observable<BankAccount[]>;
25
- /**
26
- * Update bank account and fire event
27
- */
28
- update(bankAccount: BankAccount): Observable<BankAccount>;
29
- /**
30
- * Update bank account opening balance
31
- * @param bankAccount Bank account for balance updating
32
- */
33
- updateOpeningBalance(bankAccount: BankAccount): Observable<any>;
34
20
  /**
35
21
  * Update bank account current balance
22
+ * @TODO Vik: refactor once backend updated (should be separated endpoint for BankAccountBalance entity)
36
23
  */
37
24
  updateCurrentBalance(bankAccount: BankAccount): Observable<BankAccount>;
38
- getOwn(): Observable<BankAccount[]>;
39
- getByConnection(connection: BankConnection): Observable<BankAccountCollection>;
40
25
  /**
41
26
  * Listen to EventDispatcherService events
42
27
  */
@@ -1,21 +1,31 @@
1
1
  import { Observable } from 'rxjs';
2
- import { BankConnection as BankConnectionBase } from '../../../../db/Models/bank/bank-connection';
3
- import { BankConnection } from '../../../../models/bank/bank-connection';
4
- import { RestService } from '../../rest/rest-old.service';
5
- import { IEventListener } from '../../../../interfaces/event-listener.interface';
2
+ import { BankConnection as BankConnectionBase } from '../../../../db/Models';
3
+ import { RestMethod, RestService } from '../../rest';
4
+ import { BankConnection } from '../../../../models';
5
+ import { IEventListener } from '../../../../interfaces';
6
6
  import { UserEventTypeTypeEnum } from '../../../../db/Enums/user-event-type-type.enum';
7
+ import { HttpClient } from '@angular/common/http';
8
+ import { Collection } from '../../../../collections';
9
+ import { ToastService } from '../../../toast';
10
+ import { EventDispatcherService } from '../../../event';
7
11
  import * as i0 from "@angular/core";
8
12
  /**
9
13
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
10
14
  * service handles BankConnection management
11
15
  */
12
- export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection> implements IEventListener {
16
+ export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection, Collection<BankConnection>> implements IEventListener {
17
+ protected http: HttpClient;
18
+ protected eventDispatcherService: EventDispatcherService;
19
+ protected environment: any;
20
+ private toastService;
13
21
  static userEventTypes: UserEventTypeTypeEnum[];
14
22
  modelClass: typeof BankConnection;
15
- url: string;
23
+ collectionClass: typeof Collection;
24
+ endpointUri: string;
25
+ disabledMethods: RestMethod[];
26
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService);
16
27
  listenEvents(): void;
17
- add(bankConnection: BankConnection): Observable<BankConnection>;
18
- listenToAddedBankAccounts(): void;
28
+ post(bankConnection: BankConnection): Observable<BankConnection>;
19
29
  /**
20
30
  * Update cache when basiq accounts were retrieved or login to basic was failed to get actual connections statuses
21
31
  */
@@ -1,33 +1,30 @@
1
- import { BankTransaction as BankTransactionBase } from '../../../../db/Models/bank/bank-transaction';
1
+ import { BankTransaction as BankTransactionBase } from '../../../../db/Models';
2
2
  import { Observable } from 'rxjs';
3
- import { RestService } from '../../rest/rest-old.service';
4
- import { BankTransaction } from '../../../../models/bank/bank-transaction';
5
- import { IEventListener } from '../../../../interfaces/event-listener.interface';
3
+ import { RestMethod, RestService } from '../../rest';
4
+ import { BankTransaction } from '../../../../models';
5
+ import { IEventListener } from '../../../../interfaces';
6
+ import { BankTransactionCollection } from '../../../../collections';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Service for bank transactions business logic
9
10
  */
10
- export declare class BankTransactionService extends RestService<BankTransactionBase, BankTransaction> implements IEventListener {
11
- url: string;
11
+ export declare class BankTransactionService extends RestService<BankTransactionBase, BankTransaction, BankTransactionCollection> implements IEventListener {
12
+ endpointUri: string;
12
13
  modelClass: typeof BankTransaction;
14
+ collectionClass: typeof BankTransactionCollection;
15
+ disabledMethods: RestMethod[];
13
16
  listenEvents(): void;
14
- /**
15
- * get list of bank transactions for passed bank account id
16
- * @param bankAccountId Id of bank account we search bank transactions for
17
- */
18
- getByBankAccountId(bankAccountId: number): Observable<BankTransaction[]>;
19
17
  /**
20
18
  * Get list of bank transactions for provided financial year
21
19
  * @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
22
20
  */
23
- getTransactionsByYear(finYear: number): Observable<BankTransaction[]>;
21
+ getByYear(finYear: number): Observable<BankTransaction[]>;
24
22
  /**
25
23
  * import bank transactions from csv file
26
24
  * @param bankAccountId Bank account id we import bank transactions for
27
25
  * @param file File with bank transactions for import
28
26
  */
29
27
  import(bankAccountId: number, file: File): Observable<BankTransaction[]>;
30
- delete(model: BankTransaction): Observable<void>;
31
28
  /**
32
29
  * @TODO move to sse when backend send mercure event
33
30
  */
@@ -1,16 +1,19 @@
1
- import { Bank as BankBase } from '../../../db/Models/bank/bank';
2
- import { Bank } from '../../../models/bank/bank';
3
- import { RestService } from '../rest/rest-old.service';
1
+ import { Bank as BankBase } from '../../../db/Models';
2
+ import { Bank } from '../../../models';
3
+ import { RestService, RestMethod } from '../rest';
4
4
  import { Observable } from 'rxjs';
5
+ import { Collection } from '../../../collections';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
7
8
  * Service that handling banks logic
8
9
  */
9
- export declare class BankService extends RestService<BankBase, Bank> {
10
+ export declare class BankService extends RestService<BankBase, Bank, Collection<Bank>> {
10
11
  modelClass: typeof Bank;
11
- url: string;
12
- isHydra: boolean;
13
- get(): Observable<Bank[]>;
12
+ collectionClass: typeof Collection;
13
+ endpointUri: string;
14
+ isApiPlatform: boolean;
15
+ disabledMethods: RestMethod[];
16
+ get(): Observable<Collection<Bank>>;
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BankService, never>;
15
18
  static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
16
19
  }
@@ -1,17 +1,18 @@
1
- import { Observable, ReplaySubject } from 'rxjs';
2
- import { HttpClient } from '@angular/common/http';
1
+ import { AbstractModel } from '../../../../db/Models';
2
+ import { Observable } from 'rxjs';
3
3
  import { BasiqToken } from '../../../../models';
4
+ import { RestMethod, RestService } from '../../rest';
5
+ import { Collection } from '../../../../collections';
4
6
  import * as i0 from "@angular/core";
5
- export declare class BasiqTokenService {
6
- protected http: HttpClient;
7
- protected environment: any;
8
- cache: BasiqToken;
9
- cacheSubject: ReplaySubject<BasiqToken>;
10
- constructor(http: HttpClient, environment: any);
7
+ export declare class BasiqTokenService extends RestService<AbstractModel, BasiqToken, Collection<BasiqToken>> {
8
+ protected endpointUri: string;
9
+ modelClass: any;
10
+ collectionClass: any;
11
+ disabledMethods: RestMethod[];
11
12
  /**
12
13
  * Access token to use basiq flow
13
14
  */
14
- get(): Observable<BasiqToken>;
15
+ get(): Observable<Collection<BasiqToken>>;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BasiqTokenService, never>;
16
17
  static ɵprov: i0.ɵɵInjectableDeclaration<BasiqTokenService>;
17
18
  }
@@ -1,32 +1,31 @@
1
- import { Observable } from 'rxjs';
2
- import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
3
- import { RestService } from '../../rest/rest-old.service';
4
- import { IEventListener } from '../../../../interfaces/event-listener.interface';
1
+ import { BankAccount as BankAccountBase } from '../../../../db/Models';
2
+ import { RestMethod, RestService } from '../../rest';
3
+ import { IEventListener } from '../../../../interfaces';
5
4
  import { HttpClient } from '@angular/common/http';
6
- import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
- import { BankConnectionService } from '../bank-connection/bank-connection.service';
8
- import { ToastService } from '../../../toast/toast.service';
9
- import { BankAccountCollection } from '../../../../collections/bank-account.collection';
10
- import { BankAccount, BankConnection, BankLoginData } from '../../../../models';
5
+ import { EventDispatcherService } from '../../../event';
6
+ import { BankConnectionService } from '../bank-connection';
7
+ import { BankAccountCollection } from '../../../../collections';
8
+ import { BankAccount, BankLoginData } from '../../../../models';
11
9
  import * as i0 from "@angular/core";
12
10
  /**
13
11
  * basiq is a middleman between bank and user
14
12
  * service is responsible for fetching bank related information
15
13
  */
16
- export declare class BasiqService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
14
+ export declare class BasiqService extends RestService<BankAccountBase, BankAccount, BankAccountCollection> implements IEventListener {
17
15
  protected http: HttpClient;
18
16
  protected eventDispatcherService: EventDispatcherService;
19
17
  protected environment: any;
20
- protected toastService: ToastService;
21
18
  private bankConnectionService;
22
19
  static basiqApiUrl: string;
23
20
  /**
24
21
  * Basiq does not provide a hook, so we have to check job status manually every x seconds
25
22
  */
26
23
  static bankCredintialsCheckInterval: number;
27
- url: string;
24
+ protected endpointUri: string;
25
+ collectionClass: typeof BankAccountCollection;
28
26
  modelClass: typeof BankAccount;
29
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, bankConnectionService: BankConnectionService);
27
+ disabledMethods: RestMethod[];
28
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, bankConnectionService: BankConnectionService);
30
29
  /**
31
30
  * Listen events from Event Dispatcher service
32
31
  */
@@ -37,8 +36,6 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
37
36
  * We can not see login result immediately, because it may take some time (average 10-20 sec)
38
37
  */
39
38
  login(loginData: BankLoginData, userId: string): void;
40
- getByConnection(connection: BankConnection): Observable<BankAccountCollection>;
41
- getNotImportedByConnection(savedAccounts: BankAccountCollection, connection: BankConnection): Observable<BankAccountCollection>;
42
39
  /**
43
40
  * Get status of credentials verifying. Expected statuses: 'in-progress', 'failed' or 'success'
44
41
  * We send this request by interval until basiq return success or failed.
@@ -1,19 +1,17 @@
1
- import { RestService } from '../../rest/rest-old.service';
2
- import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../../../db/Models/chart-accounts/chart-accounts-depreciation';
3
- import { Observable } from 'rxjs';
1
+ import { RestMethod, RestService } from '../../rest';
2
+ import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../../../db/Models';
4
3
  import { ChartAccountsDepreciation } from '../../../../models';
4
+ import { Collection } from '../../../../collections';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Service to work with depreciation chart accounts
8
8
  */
9
- export declare class ChartAccountsDepreciationService extends RestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation> {
10
- url: string;
9
+ export declare class ChartAccountsDepreciationService extends RestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation, Collection<ChartAccountsDepreciation>> {
10
+ endpointUri: string;
11
11
  modelClass: typeof ChartAccountsDepreciation;
12
- isHydra: boolean;
13
- /**
14
- * Get depreciation chart accounts for current financial year
15
- */
16
- getCurrent(): Observable<ChartAccountsDepreciation>;
12
+ collectionClass: typeof Collection;
13
+ isApiPlatform: boolean;
14
+ disabledMethods: RestMethod[];
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartAccountsDepreciationService, never>;
18
16
  static ɵprov: i0.ɵɵInjectableDeclaration<ChartAccountsDepreciationService>;
19
17
  }
@@ -1,35 +1,22 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable, ReplaySubject } from 'rxjs';
1
+ import { Observable } from 'rxjs';
3
2
  import { ChartAccountsCategoryEnum } from '../../../db/Enums';
3
+ import { ChartAccounts as ChartAccountsBase } from '../../../db/Models';
4
4
  import { ChartAccounts, ChartAccountsHeading } from '../../../models';
5
+ import { RestMethod, RestService } from '../rest';
6
+ import { ChartAccountsCollection } from '../../../collections';
5
7
  import * as i0 from "@angular/core";
6
8
  /**
7
9
  * Chart accounts service
8
10
  */
9
- export declare class ChartAccountsService {
10
- private http;
11
- private environment;
12
- _chartAccounts: ChartAccounts[];
13
- chartAccountsSubject: ReplaySubject<ChartAccounts[]>;
14
- constructor(http: HttpClient, environment: any);
11
+ export declare class ChartAccountsService extends RestService<ChartAccountsBase, ChartAccounts, ChartAccountsCollection> {
12
+ protected endpointUri: string;
13
+ modelClass: typeof ChartAccounts;
14
+ collectionClass: typeof ChartAccountsCollection;
15
+ disabledMethods: RestMethod[];
15
16
  /**
16
- * get all parent and child chart accounts and group it
17
+ * Get list of chart accounts headings by catogory with chart accounts inside
17
18
  */
18
- getChartAccounts(): Observable<ChartAccounts[]>;
19
- /**
20
- * Get list of chart accounts heading
21
- */
22
- getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[], chartAccountsIds?: number[]): Observable<ChartAccountsHeading[]>;
23
- /**
24
- * Get heading of chart accounts by it Id
25
- * @param id
26
- */
27
- getHeadingByChartAccountsId(id: number): Observable<ChartAccountsHeading>;
28
- /**
29
- * Get chart accounts by Id
30
- * @param id
31
- */
32
- getChartAccountsById(id: number): Observable<ChartAccounts>;
19
+ getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[]): Observable<ChartAccountsHeading[]>;
33
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartAccountsService, never>;
34
21
  static ɵprov: i0.ɵɵInjectableDeclaration<ChartAccountsService>;
35
22
  }
@@ -1,24 +1,25 @@
1
- import { Chat as ChatBase } from '../../../db/Models/firm/chat';
1
+ import { Chat as ChatBase } from '../../../db/Models';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { SseService } from '../../event/sse.service';
4
- import { RestService } from '../rest/rest-old.service';
5
- import { Chat } from '../../../models/chat/chat';
6
- import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
- import { ToastService } from '../../toast/toast.service';
3
+ import { SseService, EventDispatcherService } from '../../event';
4
+ import { RestMethod, RestService } from '../rest';
5
+ import { Chat } from '../../../models';
6
+ import { ChatCollection } from '../../../collections';
7
+ import { IEventListener } from '../../../interfaces';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service for work with chats
11
11
  */
12
- export declare class ChatService extends RestService<ChatBase, Chat> {
12
+ export declare class ChatService extends RestService<ChatBase, Chat, ChatCollection> implements IEventListener {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
16
- protected toastService: ToastService;
17
16
  private sseService;
18
17
  modelClass: typeof Chat;
19
- url: string;
20
- isHydra: boolean;
21
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, sseService: SseService);
18
+ collectionClass: typeof ChatCollection;
19
+ endpointUri: string;
20
+ isApiPlatform: boolean;
21
+ disabledMethods: RestMethod[];
22
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, sseService: SseService);
22
23
  /**
23
24
  * Listen chats events
24
25
  */
@@ -1,3 +1,3 @@
1
- export * from './message';
2
- export * from './message-document';
3
1
  export * from './chat.service';
2
+ export * from './message.service';
3
+ export * from './message-document.service';
@@ -0,0 +1,35 @@
1
+ import { MessageDocument as MessageDocumentBase } from '../../../db/Models';
2
+ import { Observable } from 'rxjs';
3
+ import { IEventListener } from '../../../interfaces';
4
+ import { MessageDocument } from '../../../models';
5
+ import { RestMethod, RestService } from '../rest';
6
+ import { MessageDocumentCollection } from '../../../collections';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Service for work with Message Documents
10
+ */
11
+ export declare class MessageDocumentService extends RestService<MessageDocumentBase, MessageDocument, MessageDocumentCollection> implements IEventListener {
12
+ modelClass: typeof MessageDocument;
13
+ collectionClass: typeof MessageDocumentCollection;
14
+ endpointUri: string;
15
+ disabledMethods: RestMethod[];
16
+ isApiPlatform: boolean;
17
+ /**
18
+ * SSE and Event Dispatcher Services listeners
19
+ */
20
+ listenEvents(): void;
21
+ /**
22
+ * listen new messages event to update documents cache
23
+ */
24
+ listenMessages(): void;
25
+ /**
26
+ * Upload file to chat
27
+ */
28
+ add(chatId: number, file: File): Observable<MessageDocument>;
29
+ /**
30
+ * Upload multiple files to chat
31
+ */
32
+ addBatch(chatId: number, files: File[]): Observable<MessageDocument[]>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageDocumentService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageDocumentService>;
35
+ }