taxtank-core 0.30.143 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/esm2020/lib/collections/collection.mjs +2 -2
  2. package/esm2020/lib/db/Models/depreciation/depreciation.mjs +1 -1
  3. package/esm2020/lib/db/Models/document/document-folder.mjs +1 -1
  4. package/esm2020/lib/db/Models/document/document.mjs +1 -1
  5. package/esm2020/lib/db/Models/document/property-document.mjs +1 -7
  6. package/esm2020/lib/db/Models/firm/firm.mjs +1 -1
  7. package/esm2020/lib/db/Models/index.mjs +1 -3
  8. package/esm2020/lib/db/Models/property/property-valuation.mjs +3 -8
  9. package/esm2020/lib/db/Models/property/property.mjs +1 -1
  10. package/esm2020/lib/db/Models/sole/sole-business.mjs +1 -1
  11. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +10 -7
  12. package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
  13. package/esm2020/lib/db/Models/user/user.mjs +1 -1
  14. package/esm2020/lib/forms/document-folder/document-folder.form.mjs +11 -0
  15. package/esm2020/lib/forms/document-folder/document.form.mjs +11 -0
  16. package/esm2020/lib/forms/document-folder/index.mjs +3 -0
  17. package/esm2020/lib/forms/firm/firm.form.mjs +17 -0
  18. package/esm2020/lib/forms/firm/index.mjs +2 -0
  19. package/esm2020/lib/forms/index.mjs +3 -1
  20. package/esm2020/lib/forms/property/index.mjs +5 -2
  21. package/esm2020/lib/forms/property/property-document.form.mjs +14 -0
  22. package/esm2020/lib/forms/property/property-edit.form.mjs +17 -0
  23. package/esm2020/lib/forms/property/property-valuation.form.mjs +17 -0
  24. package/esm2020/lib/forms/sole/sole-business.form.mjs +4 -3
  25. package/esm2020/lib/forms/transaction/transaction-base.form.mjs +4 -7
  26. package/esm2020/lib/forms/user/client-details.form.mjs +34 -0
  27. package/esm2020/lib/forms/user/index.mjs +3 -1
  28. package/esm2020/lib/forms/user/user.form.mjs +15 -0
  29. package/esm2020/lib/functions/get-doc-icon.mjs +3 -3
  30. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  31. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
  32. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  33. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
  34. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  35. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  36. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  37. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  38. package/esm2020/lib/interfaces/asset-type.enum.mjs +1 -3
  39. package/esm2020/lib/interfaces/document.interface.mjs +1 -1
  40. package/esm2020/lib/interfaces/documentable.interface.mjs +1 -1
  41. package/esm2020/lib/interfaces/fileable.interface.mjs +2 -0
  42. package/esm2020/lib/interfaces/index.mjs +2 -3
  43. package/esm2020/lib/models/bank/bank.mjs +5 -10
  44. package/esm2020/lib/models/chat/message-document.mjs +4 -3
  45. package/esm2020/lib/models/depreciation/depreciation.mjs +1 -1
  46. package/esm2020/lib/models/depreciation/index.mjs +1 -2
  47. package/esm2020/lib/models/document/document-folder.mjs +1 -7
  48. package/esm2020/lib/models/document/document.mjs +12 -19
  49. package/esm2020/lib/models/endpoint/endpoints.const.mjs +7 -8
  50. package/esm2020/lib/models/event/app-event-type.enum.mjs +45 -53
  51. package/esm2020/lib/models/file/file.mjs +5 -1
  52. package/esm2020/lib/models/firm/firm.mjs +5 -13
  53. package/esm2020/lib/models/property/property-document.mjs +12 -12
  54. package/esm2020/lib/models/property/property-valuation.mjs +2 -5
  55. package/esm2020/lib/models/property/property.mjs +5 -13
  56. package/esm2020/lib/models/registration-invite/registration-invite.mjs +7 -7
  57. package/esm2020/lib/models/sole/sole-business.mjs +6 -8
  58. package/esm2020/lib/models/sole/sole-contact.mjs +5 -8
  59. package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
  60. package/esm2020/lib/models/transaction/index.mjs +1 -2
  61. package/esm2020/lib/models/transaction/transaction.mjs +1 -5
  62. package/esm2020/lib/models/user/user.mjs +6 -14
  63. package/esm2020/lib/services/account-setup/account-setup.service.mjs +3 -3
  64. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  65. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  66. package/esm2020/lib/services/auth/auth.service.mjs +3 -3
  67. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  68. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  69. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  70. package/esm2020/lib/services/data.service.mjs +3 -3
  71. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  72. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  73. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  74. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  75. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  76. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
  77. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  78. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
  79. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  80. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  81. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
  82. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  83. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  84. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  85. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  86. package/esm2020/lib/services/http/chat/message-document.service.mjs +5 -5
  87. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  88. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  89. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  90. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  91. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +7 -55
  92. package/esm2020/lib/services/http/depreciation/index.mjs +1 -2
  93. package/esm2020/lib/services/http/document/document-folder/document-folder-messages.enum.mjs +8 -0
  94. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +9 -59
  95. package/esm2020/lib/services/http/document/document-folder/index.mjs +3 -0
  96. package/esm2020/lib/services/http/document/document-messages.enum.mjs +8 -0
  97. package/esm2020/lib/services/http/document/document.service.mjs +10 -6
  98. package/esm2020/lib/services/http/document/index.mjs +3 -2
  99. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  100. package/esm2020/lib/services/http/file/file.service.mjs +10 -4
  101. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  102. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
  103. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  104. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  105. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  106. package/esm2020/lib/services/http/firm/firm-messages.enum.mjs +6 -0
  107. package/esm2020/lib/services/http/firm/firm.service.mjs +4 -12
  108. package/esm2020/lib/services/http/firm/index.mjs +2 -1
  109. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  110. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  111. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  112. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  113. package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
  114. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  115. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
  116. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  117. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
  118. package/esm2020/lib/services/http/index.mjs +1 -2
  119. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  120. package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
  121. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  122. package/esm2020/lib/services/http/property/index.mjs +3 -1
  123. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  124. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  125. package/esm2020/lib/services/http/property/property-document/index.mjs +2 -1
  126. package/esm2020/lib/services/http/property/property-document/property-document-messages.enum.mjs +8 -0
  127. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +7 -6
  128. package/esm2020/lib/services/http/property/property-messages.enum.mjs +6 -0
  129. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  130. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
  131. package/esm2020/lib/services/http/property/property-valuation/index.mjs +3 -0
  132. package/esm2020/lib/services/http/property/property-valuation/property-valuation-messages.enum.mjs +6 -0
  133. package/esm2020/lib/services/http/property/property-valuation/property-valuation.service.mjs +39 -0
  134. package/esm2020/lib/services/http/property/property.service.mjs +9 -5
  135. package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
  136. package/esm2020/lib/services/http/rest/rest.service.mjs +9 -9
  137. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  138. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  139. package/esm2020/lib/services/http/sole/index.mjs +2 -2
  140. package/esm2020/lib/services/http/sole/sole-business/index.mjs +3 -0
  141. package/esm2020/lib/services/http/sole/sole-business/sole-business-messages.enum.mjs +5 -0
  142. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +5 -28
  143. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  144. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  145. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
  146. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  147. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  148. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
  149. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
  150. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  151. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  152. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  153. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  154. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  155. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  156. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  157. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  158. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  159. package/esm2020/lib/services/http/transaction/index.mjs +1 -2
  160. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  161. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
  162. package/esm2020/lib/services/http/transaction/transaction.service.mjs +6 -43
  163. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  164. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +3 -3
  165. package/esm2020/lib/services/http/user/index.mjs +2 -1
  166. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  167. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  168. package/esm2020/lib/services/http/user/user-messages.enum.mjs +7 -0
  169. package/esm2020/lib/services/http/user/user.service.mjs +3 -3
  170. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  171. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  172. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
  173. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
  174. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  175. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  176. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  177. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  178. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  179. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  180. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  181. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  182. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  183. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  184. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  185. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  186. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  187. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  188. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  189. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  190. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  191. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  192. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  193. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  194. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  195. package/esm2020/lib/tt-core.module.mjs +4 -4
  196. package/esm2020/public-api.mjs +2 -18
  197. package/fesm2015/taxtank-core.mjs +1124 -1306
  198. package/fesm2015/taxtank-core.mjs.map +1 -1
  199. package/fesm2020/taxtank-core.mjs +1111 -1289
  200. package/fesm2020/taxtank-core.mjs.map +1 -1
  201. package/lib/db/Models/depreciation/depreciation.d.ts +0 -2
  202. package/lib/db/Models/document/document-folder.d.ts +1 -2
  203. package/lib/db/Models/document/property-document.d.ts +6 -5
  204. package/lib/db/Models/firm/firm.d.ts +2 -0
  205. package/lib/db/Models/index.d.ts +0 -2
  206. package/lib/db/Models/property/property-valuation.d.ts +2 -2
  207. package/lib/db/Models/property/property.d.ts +2 -0
  208. package/lib/db/Models/sole/sole-business.d.ts +2 -0
  209. package/lib/db/Models/transaction/transaction-base.d.ts +5 -7
  210. package/lib/db/Models/transaction/transaction.d.ts +0 -2
  211. package/lib/db/Models/user/user.d.ts +2 -1
  212. package/lib/forms/document-folder/document-folder.form.d.ts +5 -0
  213. package/lib/forms/document-folder/document.form.d.ts +5 -0
  214. package/lib/forms/document-folder/index.d.ts +2 -0
  215. package/lib/forms/firm/firm.form.d.ts +5 -0
  216. package/lib/forms/firm/index.d.ts +1 -0
  217. package/lib/forms/index.d.ts +2 -0
  218. package/lib/forms/property/index.d.ts +4 -1
  219. package/lib/forms/property/property-document.form.d.ts +6 -0
  220. package/lib/forms/property/property-edit.form.d.ts +5 -0
  221. package/lib/forms/property/property-valuation.form.d.ts +6 -0
  222. package/lib/forms/user/client-details.form.d.ts +7 -0
  223. package/lib/forms/user/index.d.ts +2 -0
  224. package/lib/forms/user/user.form.d.ts +5 -0
  225. package/lib/functions/get-doc-icon.d.ts +2 -2
  226. package/lib/interfaces/asset-type.enum.d.ts +0 -2
  227. package/lib/interfaces/document.interface.d.ts +4 -14
  228. package/lib/interfaces/documentable.interface.d.ts +2 -2
  229. package/lib/interfaces/fileable.interface.d.ts +8 -0
  230. package/lib/interfaces/index.d.ts +1 -2
  231. package/lib/models/bank/bank.d.ts +4 -4
  232. package/lib/models/chat/message-document.d.ts +2 -1
  233. package/lib/models/depreciation/depreciation.d.ts +2 -4
  234. package/lib/models/depreciation/index.d.ts +0 -1
  235. package/lib/models/document/document-folder.d.ts +1 -5
  236. package/lib/models/document/document.d.ts +5 -17
  237. package/lib/models/event/app-event-type.enum.d.ts +44 -52
  238. package/lib/models/file/file.d.ts +2 -0
  239. package/lib/models/firm/firm.d.ts +4 -10
  240. package/lib/models/property/property-document.d.ts +5 -10
  241. package/lib/models/property/property-valuation.d.ts +0 -1
  242. package/lib/models/property/property.d.ts +4 -10
  243. package/lib/models/registration-invite/registration-invite.d.ts +4 -4
  244. package/lib/models/sole/sole-business.d.ts +4 -4
  245. package/lib/models/sole/sole-contact.d.ts +4 -4
  246. package/lib/models/transaction/index.d.ts +0 -1
  247. package/lib/models/transaction/transaction.d.ts +2 -5
  248. package/lib/models/user/user.d.ts +6 -12
  249. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -7
  250. package/lib/services/http/depreciation/index.d.ts +0 -1
  251. package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts +6 -0
  252. package/lib/services/http/document/document-folder/document-folder.service.d.ts +6 -24
  253. package/lib/services/http/document/document-folder/index.d.ts +2 -0
  254. package/lib/services/http/document/document-messages.enum.d.ts +6 -0
  255. package/lib/services/http/document/document.service.d.ts +7 -3
  256. package/lib/services/http/document/index.d.ts +2 -1
  257. package/lib/services/http/file/file.service.d.ts +2 -0
  258. package/lib/services/http/firm/firm-messages.enum.d.ts +4 -0
  259. package/lib/services/http/firm/firm.service.d.ts +0 -1
  260. package/lib/services/http/firm/index.d.ts +1 -0
  261. package/lib/services/http/index.d.ts +0 -1
  262. package/lib/services/http/property/index.d.ts +2 -0
  263. package/lib/services/http/property/property-document/index.d.ts +1 -0
  264. package/lib/services/http/property/property-document/property-document-messages.enum.d.ts +6 -0
  265. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -0
  266. package/lib/services/http/property/property-messages.enum.d.ts +4 -0
  267. package/lib/services/http/property/property-valuation/index.d.ts +2 -0
  268. package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts +4 -0
  269. package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +21 -0
  270. package/lib/services/http/property/property.service.d.ts +1 -0
  271. package/lib/services/http/rest/rest.service.d.ts +2 -2
  272. package/lib/services/http/sole/index.d.ts +1 -1
  273. package/lib/services/http/sole/sole-business/index.d.ts +2 -0
  274. package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts +3 -0
  275. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +0 -1
  276. package/lib/services/http/transaction/index.d.ts +0 -1
  277. package/lib/services/http/transaction/transaction.service.d.ts +1 -5
  278. package/lib/services/http/user/index.d.ts +1 -0
  279. package/lib/services/http/user/user-messages.enum.d.ts +5 -0
  280. package/package.json +1 -1
  281. package/public-api.d.ts +1 -17
  282. package/esm2020/lib/db/Models/depreciation/depreciation-receipt.mjs +0 -4
  283. package/esm2020/lib/db/Models/transaction/transaction-receipt.mjs +0 -4
  284. package/esm2020/lib/interfaces/photoable.mjs +0 -2
  285. package/esm2020/lib/interfaces/receipt.interface.mjs +0 -2
  286. package/esm2020/lib/models/depreciation/depreciation-receipt.mjs +0 -11
  287. package/esm2020/lib/models/transaction/transaction-receipt.mjs +0 -11
  288. package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +0 -40
  289. package/esm2020/lib/services/http/depreciation/depreciation-receipt/index.mjs +0 -2
  290. package/esm2020/lib/services/http/receipt/index.mjs +0 -2
  291. package/esm2020/lib/services/http/receipt/receipt.service.mjs +0 -76
  292. package/esm2020/lib/services/http/sole/sole-business/messages.enum.mjs +0 -7
  293. package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +0 -40
  294. package/lib/db/Models/depreciation/depreciation-receipt.d.ts +0 -12
  295. package/lib/db/Models/transaction/transaction-receipt.d.ts +0 -12
  296. package/lib/interfaces/photoable.d.ts +0 -13
  297. package/lib/interfaces/receipt.interface.d.ts +0 -12
  298. package/lib/models/depreciation/depreciation-receipt.d.ts +0 -8
  299. package/lib/models/transaction/transaction-receipt.d.ts +0 -8
  300. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts +0 -28
  301. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts +0 -1
  302. package/lib/services/http/receipt/index.d.ts +0 -1
  303. package/lib/services/http/receipt/receipt.service.d.ts +0 -62
  304. package/lib/services/http/sole/sole-business/messages.enum.d.ts +0 -5
  305. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts +0 -28
@@ -4,7 +4,6 @@ export declare class PropertyValuation extends PropertyValuationBase {
4
4
  date: Date;
5
5
  document: PropertyDocument;
6
6
  marketValue: number;
7
- documentFile: File;
8
7
  get financialYear(): number;
9
8
  isCurrentYear(): boolean;
10
9
  }
@@ -1,5 +1,5 @@
1
1
  import { Property as PropertyBase } from '../../db/Models/property/property';
2
- import { Documentable, Photoable } from '../../interfaces';
2
+ import { Fileable } from '../../interfaces';
3
3
  import { PropertyShare } from '../../db/Models';
4
4
  import { PropertySubscription } from './property-subscription';
5
5
  import { Address } from '../address';
@@ -12,10 +12,11 @@ import { TaxExemptionEnum } from '../../db/Enums/property/property-sale/tax-exem
12
12
  import { PropertySale } from './property-sale';
13
13
  import { unitOfTime } from 'moment';
14
14
  import { DepreciationCollection, TransactionCollection } from '../../collections';
15
+ import { AppFile } from '../file';
15
16
  /**
16
17
  * propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
17
18
  */
18
- export declare class Property extends PropertyBase implements Photoable, Documentable {
19
+ export declare class Property extends PropertyBase implements Fileable {
19
20
  /**
20
21
  * Property acquired before 20 September 1985 will generally be treated as pre-Capital Gains Tax (CGT) assets.
21
22
  * Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
@@ -35,19 +36,12 @@ export declare class Property extends PropertyBase implements Photoable, Documen
35
36
  categoryMovements: PropertyCategoryMovement[];
36
37
  user: User;
37
38
  subscriptions: PropertySubscription[];
39
+ file: AppFile;
38
40
  documentFile: File;
39
41
  get name(): string;
40
42
  get isActive(): boolean;
41
43
  isOwn(): boolean;
42
44
  isSold(): boolean;
43
- /**
44
- * Get initials of property. Required by Photoable interface
45
- */
46
- getPhotoPlaceholder(): string;
47
- /**
48
- * Get property photo. Required by Photoable interface
49
- */
50
- getPhoto(): string;
51
45
  get capitalCostsTotalAmount(): number;
52
46
  get currentYearValuations(): PropertyValuation[];
53
47
  get marketValue(): number;
@@ -1,6 +1,6 @@
1
1
  import { RegistrationInvite as RegistrationInviteBase } from '../../db/Models/user/registration-invite';
2
- import { Photoable } from '../../interfaces/photoable';
3
- export declare class RegistrationInvite extends RegistrationInviteBase implements Photoable {
4
- getPhotoPlaceholder(): string;
5
- getPhoto(): string;
2
+ import { Fileable } from '../../interfaces';
3
+ import { AppFile } from '../file';
4
+ export declare class RegistrationInvite extends RegistrationInviteBase implements Fileable {
5
+ file: AppFile;
6
6
  }
@@ -7,10 +7,11 @@ import { SoleInvoiceTemplate } from './sole-invoice-template';
7
7
  import { VehicleClaim } from '../vehicle';
8
8
  import { Depreciation } from '../depreciation';
9
9
  import { Transaction } from '../transaction';
10
- import { Photoable } from '../../interfaces';
11
10
  import { SoleBusinessActivity } from '../../db/Models';
12
11
  import { IncomeSource } from '../income-source';
13
- export declare class SoleBusiness extends SoleBusinessBase implements Photoable {
12
+ import { Fileable } from '../../interfaces';
13
+ import { AppFile } from '../file';
14
+ export declare class SoleBusiness extends SoleBusinessBase implements Fileable {
14
15
  /**
15
16
  * Maximum number of businesses that a person can have, according to the ATO
16
17
  */
@@ -26,6 +27,5 @@ export declare class SoleBusiness extends SoleBusinessBase implements Photoable
26
27
  activity: SoleBusinessActivity;
27
28
  incomeSource: IncomeSource;
28
29
  isPrimaryProduction: boolean;
29
- getPhotoPlaceholder(): string;
30
- getPhoto(): string;
30
+ file: AppFile;
31
31
  }
@@ -3,13 +3,13 @@ import { User } from '../user/user';
3
3
  import { Address } from '../address/address';
4
4
  import { Phone } from '../phone/phone';
5
5
  import { SoleInvoice } from './sole-invoice';
6
- import { Photoable } from '../../interfaces/photoable';
7
- export declare class SoleContact extends SoleContactBase implements Photoable {
6
+ import { Fileable } from '../../interfaces';
7
+ import { AppFile } from '../file';
8
+ export declare class SoleContact extends SoleContactBase implements Fileable {
8
9
  user: User;
9
10
  phone: Phone;
10
11
  address: Address;
11
12
  invoices: SoleInvoice[];
13
+ file: AppFile;
12
14
  get fullName(): string;
13
- getPhotoPlaceholder(): string;
14
- getPhoto(): string;
15
15
  }
@@ -6,4 +6,3 @@ export * from './transaction';
6
6
  export * from './transaction-allocation';
7
7
  export * from './transaction-category.enum';
8
8
  export * from './transaction-meta-field';
9
- export * from './transaction-receipt';
@@ -2,21 +2,18 @@ import { Transaction as TransactionBase } from '../../db/Models/transaction/tran
2
2
  import { ChartAccountsCategoryEnum, ChartAccountsMetaFieldListEnum } from '../../db/Enums';
3
3
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
4
4
  import { Property } from '../property';
5
- import { TransactionReceipt } from './transaction-receipt';
6
5
  import { ChartAccounts } from '../chart-accounts';
7
6
  import { IncomeSource } from '../income-source';
8
7
  import { TransactionMetaField } from './transaction-meta-field';
9
8
  import { Loan } from '../loan';
10
9
  import { TransactionAllocation } from './transaction-allocation';
11
- import { IReceipt } from '../../interfaces';
12
10
  import { TransactionAllocationCollection } from '../../collections';
13
11
  import { Depreciation } from '../depreciation';
14
- import { Expense } from '../../interfaces';
12
+ import { Expense, Fileable } from '../../interfaces';
15
13
  import { SoleInvoiceItem } from '../sole';
16
- export declare class Transaction extends TransactionBase implements Expense, IReceipt {
14
+ export declare class Transaction extends TransactionBase implements Expense, Fileable {
17
15
  transactions: Transaction[];
18
16
  property: Property;
19
- receipt: TransactionReceipt;
20
17
  chartAccounts: ChartAccounts;
21
18
  incomeSource: IncomeSource;
22
19
  metaFields: TransactionMetaField[];
@@ -4,11 +4,12 @@ import { Address } from '../address';
4
4
  import { ClientDetails } from '../client';
5
5
  import { EmployeeDetails } from '../employee/employee-details';
6
6
  import { Phone } from '../phone/phone';
7
- import { ServiceSubscription } from '../service-subscription';
8
- import { ServiceSubscriptionItem } from '../service-subscription';
9
- import { Photoable } from '../../interfaces';
7
+ import { ServiceSubscription } from '../service-subscription/service-subscription';
8
+ import { ServiceSubscriptionItem } from '../service-subscription/service-subscription-item';
10
9
  import { SoleDetails } from '../sole';
11
- export declare class User extends BaseUser implements Photoable {
10
+ import { AppFile } from '../file';
11
+ import { Fileable } from '../../interfaces/fileable.interface';
12
+ export declare class User extends BaseUser implements Fileable {
12
13
  subscriptions: ServiceSubscription[];
13
14
  clientDetails: ClientDetails;
14
15
  employeeDetails: EmployeeDetails;
@@ -17,6 +18,7 @@ export declare class User extends BaseUser implements Photoable {
17
18
  phone: Phone;
18
19
  createdAt: Date;
19
20
  clients: User[];
21
+ file: AppFile;
20
22
  get fullName(): string;
21
23
  get activeSubscription(): ServiceSubscription;
22
24
  get lastSubscription(): ServiceSubscription;
@@ -59,14 +61,6 @@ export declare class User extends BaseUser implements Photoable {
59
61
  * @param roleType by which role should be returned
60
62
  */
61
63
  getSubscriptionRole(roleType: UserRolesEnum): ServiceSubscriptionItem;
62
- /**
63
- * Get user's photo link
64
- */
65
- getPhoto(): string;
66
- /**
67
- * get user's initials
68
- */
69
- getPhotoPlaceholder(): string;
70
64
  isCurrentFinancialYear(): boolean;
71
65
  /**
72
66
  * financial years available in the app for user
@@ -5,27 +5,21 @@ import { Depreciation } from '../../../models';
5
5
  import { DepreciationCollection } from '../../../collections';
6
6
  import { HttpClient } from '@angular/common/http';
7
7
  import { EventDispatcherService } from '../../event';
8
- import { DepreciationReceiptService } from './depreciation-receipt';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class DepreciationService extends RestService<DepreciationBase, Depreciation, DepreciationCollection> {
11
10
  protected http: HttpClient;
12
11
  protected eventDispatcherService: EventDispatcherService;
13
12
  protected environment: any;
14
- private depreciationReceiptService;
15
13
  modelClass: typeof Depreciation;
16
14
  collectionClass: typeof DepreciationCollection;
17
15
  endpointUri: string;
18
16
  disabledMethods: RestMethod[];
19
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, depreciationReceiptService: DepreciationReceiptService);
20
- postBatch(depreciations: Depreciation[]): Observable<Depreciation[]>;
21
- put(depreciation: Depreciation): Observable<Depreciation>;
17
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
22
18
  /**
23
19
  * Listen to Depreciations events
24
20
  */
25
21
  listenEvents(): void;
26
22
  getOpenBalance(depreciation: Depreciation): Observable<number>;
27
- private listenReceiptAdded;
28
- private listenReceiptDeleted;
29
23
  /**
30
24
  * Listen to EventDispatcherService event related to updated bank loan
31
25
  */
@@ -1,3 +1,2 @@
1
1
  export * from './depreciation.service';
2
2
  export * from './depreciation-capital-project';
3
- export * from './depreciation-receipt';
@@ -0,0 +1,6 @@
1
+ export declare enum DocumentFolderMessagesEnum {
2
+ CREATED = "Folder created!",
3
+ UPDATED = "Folder updated!",
4
+ CONFIRM_DELETE = "Are you sure you want to delete the folder?",
5
+ DELETED = "Folder deleted!"
6
+ }
@@ -1,34 +1,16 @@
1
1
  import { DocumentFolder as DocumentFolderBase } from '../../../../db/Models/document/document-folder';
2
- import { Document } from '../../../../models/document/document';
3
- import { Observable } from 'rxjs';
4
- import { RestService } from '../../rest/rest-old.service';
5
2
  import { DocumentFolder } from '../../../../models/document/document-folder';
3
+ import { RestMethod, RestService } from '../../rest';
4
+ import { Collection } from '../../../../collections';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
8
7
  * Service to handle document-folders and depending documents logic
9
8
  */
10
- export declare class DocumentFolderService extends RestService<DocumentFolderBase, DocumentFolder> {
11
- url: string;
9
+ export declare class DocumentFolderService extends RestService<DocumentFolderBase, DocumentFolder, Collection<DocumentFolder>> {
10
+ endpointUri: string;
11
+ collectionClass: typeof Collection;
12
12
  modelClass: typeof DocumentFolder;
13
- /**
14
- * Add new document to the folder
15
- * @param file to be uploaded to the folder
16
- * @param folder for document
17
- */
18
- addDocument(file: File, folder: DocumentFolder): Observable<void>;
19
- /**
20
- * Edit folder document by moving it from one folder to another
21
- * @param editedDocument
22
- * @param selectedFolder to move the document to
23
- * @param oldFolderId: id of old folder from which need to remove the document
24
- */
25
- updateDocument(editedDocument: Document, selectedFolder: DocumentFolder, oldFolderId: number): Observable<void>;
26
- /**
27
- * Delete document from folder
28
- * @param document to remove
29
- * @param folder from which document should be removed
30
- */
31
- deleteDocument(document: Document, folder: DocumentFolder): Observable<void>;
13
+ disabledMethods: RestMethod[];
32
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentFolderService, never>;
33
15
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentFolderService>;
34
16
  }
@@ -0,0 +1,2 @@
1
+ export * from './document-folder-messages.enum';
2
+ export * from './document-folder.service';
@@ -0,0 +1,6 @@
1
+ export declare enum DocumentMessagesEnum {
2
+ CREATED = "Document created!",
3
+ UPDATED = "Document updated!",
4
+ CONFIRM_DELETE = "Are you sure you want to delete the document?",
5
+ DELETED = "Document deleted!"
6
+ }
@@ -1,10 +1,14 @@
1
1
  import { Document as DocumentBase } from '../../../db/Models/document/document';
2
2
  import { Document } from '../../../models';
3
- import { RestService } from '../rest/rest-old.service';
3
+ import { RestMethod, RestService } from '../rest';
4
+ import { Collection } from '../../../collections';
4
5
  import * as i0 from "@angular/core";
5
- export declare class DocumentService extends RestService<DocumentBase, Document> {
6
- url: string;
6
+ export declare class DocumentService extends RestService<DocumentBase, Document, Collection<Document>> {
7
+ endpointUri: string;
7
8
  modelClass: typeof Document;
9
+ collectionClass: typeof Collection;
10
+ disabledMethods: RestMethod[];
11
+ protected isApiPlatform: boolean;
8
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
9
13
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
10
14
  }
@@ -1,2 +1,3 @@
1
+ export * from './document-folder';
1
2
  export * from './document.service';
2
- export * from './document-folder/document-folder.service';
3
+ export * from './document-messages.enum';
@@ -10,6 +10,8 @@ export declare class FileService extends RestService<FileBase, AppFile, Collecti
10
10
  collectionClass: typeof Collection;
11
11
  isApiPlatform: boolean;
12
12
  disabledMethods: RestMethod[];
13
+ getById(id: number): Observable<AppFile>;
14
+ getLink(id: number): Observable<string>;
13
15
  upload(file: File): Observable<AppFile>;
14
16
  download(file: AppFile): Observable<Blob>;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
@@ -0,0 +1,4 @@
1
+ export declare enum FirmMessagesEnum {
2
+ LOGO_UPDATED = "Firm logo updated",
3
+ DATA_UPDATED = "Firm data updated"
4
+ }
@@ -21,7 +21,6 @@ export declare class FirmService {
21
21
  */
22
22
  getAll(): Observable<Firm[]>;
23
23
  getByType(type: FirmTypeEnum): Observable<Firm[]>;
24
- updatePhoto(firm: Firm, photo: FormData): Observable<Firm>;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<FirmService, never>;
26
25
  static ɵprov: i0.ɵɵInjectableDeclaration<FirmService>;
27
26
  }
@@ -4,4 +4,5 @@ export * from './client-movement';
4
4
  export * from './employee';
5
5
  export * from './employee-invite';
6
6
  export * from './portfolio-report';
7
+ export * from './firm-messages.enum';
7
8
  export * from './firm.service';
@@ -12,7 +12,6 @@ export * from './firm';
12
12
  export * from './income-source';
13
13
  export * from './loan';
14
14
  export * from './property';
15
- export * from './receipt';
16
15
  export * from './rest';
17
16
  export * from './service-notification';
18
17
  export * from './sole';
@@ -4,4 +4,6 @@ export * from './property-category-movement';
4
4
  export * from './property-document';
5
5
  export * from './property-sale';
6
6
  export * from './property-share';
7
+ export * from './property-valuation';
8
+ export * from './property-messages.enum';
7
9
  export * from './property.service';
@@ -1 +1,2 @@
1
+ export * from './property-document-messages.enum';
1
2
  export * from './property-document.service';
@@ -0,0 +1,6 @@
1
+ export declare enum PropertyDocumentMessagesEnum {
2
+ CREATED = "Property document created",
3
+ UPDATED = "Property document updated",
4
+ CONFIRM_DELETE = "Are you sure you want to delete the document?",
5
+ DELETED = "Property document deleted"
6
+ }
@@ -13,6 +13,7 @@ export declare class PropertyDocumentService extends RestService<PropertyDocumen
13
13
  collectionClass: typeof Collection;
14
14
  endpointUri: string;
15
15
  disabledMethods: RestMethod[];
16
+ protected isApiPlatform: boolean;
16
17
  /**
17
18
  * Add new Property Document
18
19
  */
@@ -0,0 +1,4 @@
1
+ export declare enum PropertyMessagesEnum {
2
+ PHOTO_UPDATED = "Property photo updated",
3
+ PROPERTY_UPDATED = "Property updated"
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './property-valuation.service';
2
+ export * from './property-valuation-messages.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum PropertyValuationMessages {
2
+ CREATED = "Property valuation created",
3
+ UPDATED = "Property valuation updated"
4
+ }
@@ -0,0 +1,21 @@
1
+ import { RestMethod, RestService } from '../../rest';
2
+ import { PropertyValuation as PropertyValuationBase } from '../../../../db/Models';
3
+ import { PropertyValuation } from '../../../../models';
4
+ import { Collection } from '../../../../collections';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @TODO Alex: refacotor with api platform (old endpoint)
9
+ */
10
+ export declare class PropertyValuationService extends RestService<PropertyValuationBase, PropertyValuation, Collection<PropertyValuation>> {
11
+ protected endpointUri: string;
12
+ modelClass: typeof PropertyValuation;
13
+ collectionClass: typeof Collection<PropertyValuation>;
14
+ disabledMethods: RestMethod[];
15
+ protected isApiPlatform: boolean;
16
+ get(propertyId: string): Observable<Collection<PropertyValuation>>;
17
+ post(valuation: PropertyValuation, propertyId: string): Observable<PropertyValuation>;
18
+ put(valuation: PropertyValuation, propertyId: string): Observable<PropertyValuation>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PropertyValuationService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<PropertyValuationService>;
21
+ }
@@ -29,6 +29,7 @@ export declare class PropertyService extends RestService<PropertyBase, Property,
29
29
  * Update cache when property sales changed
30
30
  */
31
31
  private listenSalesChanges;
32
+ private listenValuations;
32
33
  updateDepreciationCalculation(property: Property): Observable<void>;
33
34
  /**
34
35
  * Activate deactivated property
@@ -51,13 +51,13 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
51
51
  * Get data from backend and fill the cache
52
52
  */
53
53
  protected fetch(path?: string): Observable<CollectionModel>;
54
- get(): Observable<CollectionModel>;
54
+ get(path?: string): Observable<CollectionModel>;
55
55
  getFirst(): Observable<Model>;
56
56
  getArray(): Observable<Model[]>;
57
57
  /**
58
58
  * Create a new Model instance in database
59
59
  */
60
- post(model: Model): Observable<Model>;
60
+ post(model: Model, path?: string): Observable<Model>;
61
61
  /**
62
62
  * Create multiple new Model instances in database
63
63
  */
@@ -1,4 +1,4 @@
1
- export * from './sole-business/sole-business.service';
1
+ export * from './sole-business';
2
2
  export * from './sole-business-activity/sole-business-activity.service';
3
3
  export * from './sole-business-loss/sole-business-loss.service';
4
4
  export * from './sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service';
@@ -0,0 +1,2 @@
1
+ export * from './sole-business-messages.enum';
2
+ export * from './sole-business.service';
@@ -0,0 +1,3 @@
1
+ export declare enum SoleBusinessMessagesEnum {
2
+ LOGO_UPDATED = "Logo updated successfully"
3
+ }
@@ -8,7 +8,6 @@ export declare class SoleBusinessService extends RestService<SoleBusinessBase, S
8
8
  url: string;
9
9
  isHydra: boolean;
10
10
  add(soleBusiness: SoleBusiness): Observable<SoleBusiness>;
11
- uploadLogo(business: SoleBusiness, file: File): Observable<void>;
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SoleBusinessService, never>;
13
12
  static ɵprov: i0.ɵɵInjectableDeclaration<SoleBusinessService>;
14
13
  }
@@ -1,4 +1,3 @@
1
1
  export * from './transaction-allocation/allocation-rule/allocation-rule.service';
2
2
  export * from './transaction-allocation/transaction-allocation.service';
3
- export * from './transaction-receipt/transaction-receipt.service';
4
3
  export * from './transaction.service';
@@ -3,7 +3,6 @@ import { Observable } from 'rxjs';
3
3
  import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
4
4
  import { RestService } from '../rest/rest-old.service';
5
5
  import { Transaction } from '../../../models';
6
- import { TransactionReceiptService } from './transaction-receipt/transaction-receipt.service';
7
6
  import { HttpClient } from '@angular/common/http';
8
7
  import { EventDispatcherService } from '../../event';
9
8
  import { ToastService } from '../../toast';
@@ -17,11 +16,10 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
17
16
  protected eventDispatcherService: EventDispatcherService;
18
17
  protected environment: any;
19
18
  protected toastService: ToastService;
20
- private transactionReceiptService;
21
19
  url: string;
22
20
  modelClass: typeof Transaction;
23
21
  transactionDeleted: EventEmitter<Transaction>;
24
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, transactionReceiptService: TransactionReceiptService);
22
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService);
25
23
  /**
26
24
  * Listen events from Event Dispatcher services
27
25
  */
@@ -85,8 +83,6 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
85
83
  * Listen to EventDispatcherService event related to Property Share changing
86
84
  */
87
85
  private listenPropertyShareUpdate;
88
- private listenReceiptAdded;
89
- private listenReceiptDeleted;
90
86
  private listenVehicleClaimChanges;
91
87
  /**
92
88
  * property forecast includes claimPercent which affects property related expenses
@@ -1,6 +1,7 @@
1
1
  export * from '../client/occupation/occupation.service';
2
2
  export * from './user-event-setting/user-event-setting.service';
3
3
  export * from './user-event-type/user-event-type.service';
4
+ export * from './user-messages.enum';
4
5
  export * from './users-invite/users-invite.service';
5
6
  export * from './user.service';
6
7
  export * from './financial-year/financial-year.service';
@@ -0,0 +1,5 @@
1
+ export declare enum UserMessagesEnum {
2
+ PHOTO_UPDATED = "Profile photo updated",
3
+ USER_DATA_UPDATED = "Data was successfully updated!",
4
+ CLIENT_DETAILS_UPDATED = "Client details updated"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.143",
3
+ "version": "0.31.1",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",
package/public-api.d.ts CHANGED
@@ -152,7 +152,6 @@ export * from './lib/models/transaction/transaction';
152
152
  export * from './lib/models/transaction/transaction-allocation';
153
153
  export * from './lib/models/transaction/transaction-category.enum';
154
154
  export * from './lib/models/transaction/transaction-meta-field';
155
- export * from './lib/models/transaction/transaction-receipt';
156
155
  export * from './lib/models/user-event/user-event-type-category';
157
156
  export * from './lib/models/user-event/user-event-setting';
158
157
  export * from './lib/models/user-event/user-event-setting-field.enum';
@@ -164,22 +163,7 @@ export * from './lib/services';
164
163
  /**
165
164
  * Interfaces
166
165
  */
167
- export * from './lib/interfaces/asset.interface';
168
- export * from './lib/interfaces/asset-entity-type.enum';
169
- export * from './lib/interfaces/asset-type.enum';
170
- export * from './lib/interfaces/chart-data.interface';
171
- export * from './lib/interfaces/chart-serie.interface';
172
- export * from './lib/interfaces/document.interface';
173
- export * from './lib/interfaces/documentable.interface';
174
- export * from './lib/interfaces/event-listener.interface';
175
- export * from './lib/interfaces/income-source-forecast.interface';
176
- export * from './lib/interfaces/option.interface';
177
- export * from './lib/interfaces/photoable';
178
- export * from './lib/interfaces/receipt.interface';
179
- export * from './lib/interfaces/tank.interface';
180
- export * from './lib/interfaces/table-exportable.interface';
181
- export * from './lib/interfaces/updatable.interface';
182
- export * from './lib/interfaces/expense.interface';
166
+ export * from './lib/interfaces';
183
167
  export * from './lib/services/http/tutorial-video/video-source.interface';
184
168
  /**
185
169
  * Functions
@@ -1,4 +0,0 @@
1
- import { AbstractModel } from '../abstract-model';
2
- export class DepreciationReceipt extends AbstractModel {
3
- }
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLXJlY2VpcHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvTW9kZWxzL2RlcHJlY2lhdGlvbi9kZXByZWNpYXRpb24tcmVjZWlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFaEQsTUFBTSxPQUFPLG1CQUFvQixTQUFRLGFBQWE7Q0FTckQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEZXByZWNpYXRpb24gfSBmcm9tICcuL2RlcHJlY2lhdGlvbic7XG5pbXBvcnQge0Fic3RyYWN0TW9kZWx9IGZyb20gJy4uL2Fic3RyYWN0LW1vZGVsJztcblxuZXhwb3J0IGNsYXNzIERlcHJlY2lhdGlvblJlY2VpcHQgZXh0ZW5kcyBBYnN0cmFjdE1vZGVsIHtcbiAgaWQ/OiBudW1iZXI7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIG9yaWdpbmFsTmFtZT86IHN0cmluZztcbiAgc2l6ZT86IG51bWJlcjtcbiAgbWltZVR5cGU/OiBzdHJpbmc7XG4gIGNyZWF0ZWRBdD86IERhdGU7XG4gIHVwZGF0ZWRBdD86IERhdGU7XG4gIGRlcHJlY2lhdGlvbj86IERlcHJlY2lhdGlvbjtcbn1cbiJdfQ==
@@ -1,4 +0,0 @@
1
- import { AbstractModel } from '../abstract-model';
2
- export class TransactionReceipt extends AbstractModel {
3
- }
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVjZWlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24tcmVjZWlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFaEQsTUFBTSxPQUFPLGtCQUFtQixTQUFRLGFBQWE7Q0FTcEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUcmFuc2FjdGlvbiB9IGZyb20gJy4vdHJhbnNhY3Rpb24nO1xuaW1wb3J0IHtBYnN0cmFjdE1vZGVsfSBmcm9tICcuLi9hYnN0cmFjdC1tb2RlbCc7XG5cbmV4cG9ydCBjbGFzcyBUcmFuc2FjdGlvblJlY2VpcHQgZXh0ZW5kcyBBYnN0cmFjdE1vZGVsIHtcbiAgaWQ/OiBudW1iZXI7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIG9yaWdpbmFsTmFtZT86IHN0cmluZztcbiAgc2l6ZT86IG51bWJlcjtcbiAgbWltZVR5cGU/OiBzdHJpbmc7XG4gIGNyZWF0ZWRBdD86IERhdGU7XG4gIHVwZGF0ZWRBdD86IERhdGU7XG4gIHRyYW5zYWN0aW9uPzogVHJhbnNhY3Rpb247XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhvdG9hYmxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2ludGVyZmFjZXMvcGhvdG9hYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogSW50ZXJmYWNlIHRoYXQgc2hvdyBpZiBvYmplY3QgaGFzIHBob3RvXHJcbiAqL1xyXG5leHBvcnQgaW50ZXJmYWNlIFBob3RvYWJsZSB7XHJcbiAgLyoqXHJcbiAgICogR2V0IGxpbmsgdG8gb2JqZWN0J3MgcGhvdG9cclxuICAgKi9cclxuICBnZXRQaG90bygpOiBzdHJpbmc7XHJcblxyXG4gIC8qKlxyXG4gICAqIGdldCBvYmplY3QncyBpbml0aWFscyBmb3IgcGhvdG8gcGxhY2Vob2xkZXJcclxuICAgKi9cclxuICBnZXRQaG90b1BsYWNlaG9sZGVyKCk6IHN0cmluZztcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjZWlwdC5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvaW50ZXJmYWNlcy9yZWNlaXB0LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSUFzc2V0IH0gZnJvbSAnLi9hc3NldC5pbnRlcmZhY2UnO1xuaW1wb3J0IHsgQ2hhcnRBY2NvdW50cyB9IGZyb20gJy4uL21vZGVscy9jaGFydC1hY2NvdW50cy9jaGFydC1hY2NvdW50cyc7XG5cbi8qKlxuICogSW50ZXJmYWNlIHRoYXQgY29udGFpbnMgbWFpbiBmaWVsZHMgZm9yIHRyYW5zYWN0aW9uLWxpa2UgY2xhc3Nlc1xuICovXG5leHBvcnQgaW50ZXJmYWNlIElSZWNlaXB0IHtcbiAgaWQ/OiBudW1iZXI7XG4gIGFtb3VudD86IG51bWJlcjtcbiAgcmVjZWlwdDogSUFzc2V0O1xuICBjaGFydEFjY291bnRzOiBDaGFydEFjY291bnRzO1xuICBnZXREYXRlKCk6IERhdGU7XG59XG4iXX0=
@@ -1,11 +0,0 @@
1
- import { DepreciationReceipt as DepreciationReceiptBase } from '../../db/Models/depreciation/depreciation-receipt';
2
- import { AssetTypeEnum } from '../../interfaces/asset-type.enum';
3
- import { AssetEntityTypeEnum } from '../../interfaces/asset-entity-type.enum';
4
- export class DepreciationReceipt extends DepreciationReceiptBase {
5
- constructor() {
6
- super(...arguments);
7
- this.type = AssetTypeEnum.DEPRECIATION_RECEIPT;
8
- this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
9
- }
10
- }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLXJlY2VpcHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2RlcHJlY2lhdGlvbi9kZXByZWNpYXRpb24tcmVjZWlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLElBQUksdUJBQXVCLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUVuSCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDakUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFFOUUsTUFBTSxPQUFPLG1CQUFvQixTQUFRLHVCQUF1QjtJQUFoRTs7UUFDRSxTQUFJLEdBQWtCLGFBQWEsQ0FBQyxvQkFBb0IsQ0FBQztRQUN6RCxlQUFVLEdBQXdCLG1CQUFtQixDQUFDLGFBQWEsQ0FBQztJQUN0RSxDQUFDO0NBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEZXByZWNpYXRpb25SZWNlaXB0IGFzIERlcHJlY2lhdGlvblJlY2VpcHRCYXNlIH0gZnJvbSAnLi4vLi4vZGIvTW9kZWxzL2RlcHJlY2lhdGlvbi9kZXByZWNpYXRpb24tcmVjZWlwdCc7XG5pbXBvcnQgeyBJQXNzZXQgfSBmcm9tICcuLi8uLi9pbnRlcmZhY2VzL2Fzc2V0LmludGVyZmFjZSc7XG5pbXBvcnQgeyBBc3NldFR5cGVFbnVtIH0gZnJvbSAnLi4vLi4vaW50ZXJmYWNlcy9hc3NldC10eXBlLmVudW0nO1xuaW1wb3J0IHsgQXNzZXRFbnRpdHlUeXBlRW51bSB9IGZyb20gJy4uLy4uL2ludGVyZmFjZXMvYXNzZXQtZW50aXR5LXR5cGUuZW51bSc7XG5cbmV4cG9ydCBjbGFzcyBEZXByZWNpYXRpb25SZWNlaXB0IGV4dGVuZHMgRGVwcmVjaWF0aW9uUmVjZWlwdEJhc2UgaW1wbGVtZW50cyBJQXNzZXQge1xuICB0eXBlOiBBc3NldFR5cGVFbnVtID0gQXNzZXRUeXBlRW51bS5ERVBSRUNJQVRJT05fUkVDRUlQVDtcbiAgZW50aXR5VHlwZTogQXNzZXRFbnRpdHlUeXBlRW51bSA9IEFzc2V0RW50aXR5VHlwZUVudW0uREVQUkVDSUFUSU9OUztcbn1cbiJdfQ==
@@ -1,11 +0,0 @@
1
- import { TransactionReceipt as TransactionReceiptBase } from '../../db/Models/transaction/transaction-receipt';
2
- import { AssetTypeEnum } from '../../interfaces/asset-type.enum';
3
- import { AssetEntityTypeEnum } from '../../interfaces/asset-entity-type.enum';
4
- export class TransactionReceipt extends TransactionReceiptBase {
5
- constructor() {
6
- super(...arguments);
7
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
8
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
9
- }
10
- }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVjZWlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24tcmVjZWlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLElBQUksc0JBQXNCLEVBQUUsTUFBTSxpREFBaUQsQ0FBQztBQUUvRyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDakUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFFOUUsTUFBTSxPQUFPLGtCQUFtQixTQUFRLHNCQUFzQjtJQUE5RDs7UUFDRSxTQUFJLEdBQWtCLGFBQWEsQ0FBQyxtQkFBbUIsQ0FBQztRQUN4RCxlQUFVLEdBQXdCLG1CQUFtQixDQUFDLFlBQVksQ0FBQztJQUNyRSxDQUFDO0NBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUcmFuc2FjdGlvblJlY2VpcHQgYXMgVHJhbnNhY3Rpb25SZWNlaXB0QmFzZSB9IGZyb20gJy4uLy4uL2RiL01vZGVscy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1yZWNlaXB0JztcbmltcG9ydCB7IElBc3NldCB9IGZyb20gJy4uLy4uL2ludGVyZmFjZXMvYXNzZXQuaW50ZXJmYWNlJztcbmltcG9ydCB7IEFzc2V0VHlwZUVudW0gfSBmcm9tICcuLi8uLi9pbnRlcmZhY2VzL2Fzc2V0LXR5cGUuZW51bSc7XG5pbXBvcnQgeyBBc3NldEVudGl0eVR5cGVFbnVtIH0gZnJvbSAnLi4vLi4vaW50ZXJmYWNlcy9hc3NldC1lbnRpdHktdHlwZS5lbnVtJztcblxuZXhwb3J0IGNsYXNzIFRyYW5zYWN0aW9uUmVjZWlwdCBleHRlbmRzIFRyYW5zYWN0aW9uUmVjZWlwdEJhc2UgaW1wbGVtZW50cyBJQXNzZXQge1xuICB0eXBlOiBBc3NldFR5cGVFbnVtID0gQXNzZXRUeXBlRW51bS5UUkFOU0FDVElPTl9SRUNFSVBUO1xuICBlbnRpdHlUeXBlOiBBc3NldEVudGl0eVR5cGVFbnVtID0gQXNzZXRFbnRpdHlUeXBlRW51bS5UUkFOU0FDVElPTlM7XG59XG4iXX0=