taxtank-core 0.30.17 → 0.30.19

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 (742) hide show
  1. package/esm2020/lib/collections/allocation-rule.collection.mjs +27 -0
  2. package/esm2020/lib/collections/index.mjs +2 -1
  3. package/esm2020/lib/collections/property/property-sale/index.mjs +2 -2
  4. package/esm2020/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.mjs +17 -0
  5. package/esm2020/lib/collections/transaction/transaction.collection.mjs +6 -6
  6. package/esm2020/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.mjs +9 -0
  7. package/esm2020/lib/db/Enums/allocation-rule-condition-field.enum.mjs +6 -0
  8. package/esm2020/lib/db/Enums/allocation-rule-condition-operator.enum.mjs +6 -0
  9. package/esm2020/lib/db/Enums/allocation-rule-type.enum.mjs +7 -0
  10. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.mjs +19 -0
  11. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.mjs +6 -0
  12. package/esm2020/lib/db/Enums/chart-accounts/index.mjs +3 -3
  13. package/esm2020/lib/db/Enums/index.mjs +6 -2
  14. package/esm2020/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.mjs +9 -0
  15. package/esm2020/lib/db/Models/chart-accounts/chart-accounts-meta-field.mjs +4 -0
  16. package/esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
  17. package/esm2020/lib/db/Models/index.mjs +5 -6
  18. package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +4 -0
  19. package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
  20. package/esm2020/lib/db/Models/property/property-sale/tax-exemption-meta-field.mjs +4 -0
  21. package/esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs +1 -1
  22. package/esm2020/lib/db/Models/transaction/allocation-rule-condition.mjs +4 -0
  23. package/esm2020/lib/db/Models/transaction/allocation-rule-transaction-meta-field.mjs +4 -0
  24. package/esm2020/lib/db/Models/transaction/allocation-rule-transaction.mjs +4 -0
  25. package/esm2020/lib/db/Models/transaction/allocation-rule.mjs +4 -0
  26. package/esm2020/lib/db/Models/transaction/transaction-meta-field.mjs +4 -0
  27. package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
  28. package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +18 -18
  29. package/esm2020/lib/forms/transaction/allocation-rule-condition.form.mjs +14 -0
  30. package/esm2020/lib/forms/transaction/allocation-rule-transaction-meta-field.form.mjs +12 -0
  31. package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +125 -0
  32. package/esm2020/lib/forms/transaction/allocation-rule.form.mjs +135 -0
  33. package/esm2020/lib/forms/transaction/index.mjs +2 -1
  34. package/esm2020/lib/forms/transaction/work/work-expense.form.mjs +10 -10
  35. package/esm2020/lib/forms/transaction/work/work-transaction.form.mjs +12 -12
  36. package/esm2020/lib/models/chart-accounts/chart-accounts-meta-field.mjs +14 -0
  37. package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +10 -4
  38. package/esm2020/lib/models/chart-accounts/index.mjs +2 -2
  39. package/esm2020/lib/models/endpoint/endpoints.const.mjs +5 -1
  40. package/esm2020/lib/models/property/property-sale/index.mjs +3 -3
  41. package/esm2020/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +4 -0
  42. package/esm2020/lib/models/property/property-sale/property-sale.mjs +4 -4
  43. package/esm2020/lib/models/property/property-sale/tax-exemption-meta-field.mjs +4 -0
  44. package/esm2020/lib/models/property/property.mjs +6 -6
  45. package/esm2020/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.mjs +8 -8
  46. package/esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs +12 -12
  47. package/esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs +6 -6
  48. package/esm2020/lib/models/transaction/allocation-rule-condition.mjs +35 -0
  49. package/esm2020/lib/models/transaction/allocation-rule-transaction-meta-field.mjs +4 -0
  50. package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +95 -0
  51. package/esm2020/lib/models/transaction/allocation-rule.mjs +139 -0
  52. package/esm2020/lib/models/transaction/index.mjs +5 -2
  53. package/esm2020/lib/models/transaction/transaction-meta-field.mjs +10 -0
  54. package/esm2020/lib/models/transaction/transaction.mjs +15 -15
  55. package/esm2020/lib/services/http/transaction/index.mjs +2 -1
  56. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +23 -0
  57. package/esm2020/lib/services/http/tutorial-video/video-source.interface.mjs +1 -1
  58. package/esm2020/public-api.mjs +5 -5
  59. package/fesm2015/taxtank-core.mjs +992 -390
  60. package/fesm2015/taxtank-core.mjs.map +1 -1
  61. package/fesm2020/taxtank-core.mjs +992 -392
  62. package/fesm2020/taxtank-core.mjs.map +1 -1
  63. package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
  64. package/lib/collections/allocation-group.collection.d.ts.map +1 -0
  65. package/lib/collections/allocation-rule.collection.d.ts +15 -0
  66. package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
  67. package/lib/collections/bank-account.collection.d.ts.map +1 -0
  68. package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
  69. package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
  70. package/lib/collections/client-invite.collection.d.ts.map +1 -0
  71. package/lib/collections/client-movement.collection.d.ts.map +1 -0
  72. package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
  73. package/lib/collections/client.collection.d.ts.map +1 -0
  74. package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
  75. package/lib/collections/depreciation.collection.d.ts.map +1 -0
  76. package/lib/collections/employee.collection.d.ts.map +1 -0
  77. package/lib/collections/exportable.collection.d.ts.map +1 -0
  78. package/lib/collections/income-source.collection.d.ts.map +1 -0
  79. package/lib/collections/index.d.ts +1 -0
  80. package/lib/collections/index.d.ts.map +1 -0
  81. package/lib/collections/loan/index.d.ts.map +1 -0
  82. package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
  83. package/lib/collections/loan/loan.collection.d.ts.map +1 -0
  84. package/lib/collections/property/index.d.ts.map +1 -0
  85. package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
  86. package/lib/collections/property/property-sale/index.d.ts +1 -1
  87. package/lib/collections/property/property-sale/index.d.ts.map +1 -0
  88. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts +8 -0
  89. package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
  90. package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
  91. package/lib/collections/property/property-share.collection.d.ts.map +1 -0
  92. package/lib/collections/property/property.collection.d.ts.map +1 -0
  93. package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
  94. package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
  95. package/lib/collections/report/index.d.ts.map +1 -0
  96. package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
  97. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
  98. package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
  99. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
  100. package/lib/collections/sole/index.d.ts.map +1 -0
  101. package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
  102. package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
  103. package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
  104. package/lib/collections/subscription/index.d.ts.map +1 -0
  105. package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
  106. package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
  107. package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
  108. package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
  109. package/lib/collections/tax-review.collection.d.ts.map +1 -0
  110. package/lib/collections/tax-summary/index.d.ts.map +1 -0
  111. package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
  112. package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
  113. package/lib/collections/transaction/index.d.ts.map +1 -0
  114. package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
  115. package/lib/collections/transaction/transaction.collection.d.ts +3 -3
  116. package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
  117. package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
  118. package/lib/collections/user-event-type-collection.d.ts.map +1 -0
  119. package/lib/collections/vehicle/index.d.ts.map +1 -0
  120. package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
  121. package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
  122. package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts +7 -0
  123. package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts +4 -0
  124. package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts +4 -0
  125. package/lib/db/Enums/allocation-rule-type.enum.d.ts +5 -0
  126. package/lib/db/Enums/bank-popular.enum.d.ts.map +1 -0
  127. package/lib/db/Enums/chart-accounts/{chart-accounts-metadata-list.enum.d.ts → chart-accounts-meta-field-list.enum.d.ts} +1 -1
  128. package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts +4 -0
  129. package/lib/db/Enums/chart-accounts/index.d.ts +2 -2
  130. package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
  131. package/lib/db/Enums/income-source-type-list-other.enum.d.ts.map +1 -0
  132. package/lib/db/Enums/income-source-type-list-sole.enum.d.ts.map +1 -0
  133. package/lib/db/Enums/income-source-type-list-work.enum.d.ts.map +1 -0
  134. package/lib/db/Enums/index.d.ts +5 -1
  135. package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
  136. package/lib/db/Enums/loan-bank-type.enum.d.ts.map +1 -0
  137. package/lib/db/Enums/loan-frequency.enum.d.ts.map +1 -0
  138. package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
  139. package/lib/db/Enums/property/property-sale/{tax-exemption-metadata.enum.d.ts → tax-exemption-meta-field.enum.d.ts} +1 -1
  140. package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
  141. package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
  142. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
  143. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
  144. package/lib/db/Enums/tax-return-category-list.enum.d.ts.map +1 -0
  145. package/lib/db/Enums/tax-return-category-section.enum.d.ts.map +1 -0
  146. package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
  147. package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
  148. package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
  149. package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
  150. package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
  151. package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
  152. package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
  153. package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
  154. package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
  155. package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
  156. package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
  157. package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
  158. package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts +11 -0
  159. package/lib/db/Models/chart-accounts/chart-accounts.d.ts +2 -2
  160. package/lib/db/Models/index.d.ts +4 -5
  161. package/lib/db/Models/observable-model.d.ts.map +1 -0
  162. package/lib/db/Models/property/property-category.d.ts.map +1 -0
  163. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts +9 -0
  164. package/lib/db/Models/property/property-sale/property-sale.d.ts +2 -2
  165. package/lib/db/Models/property/property-sale/{tax-exemption-metadata.d.ts → tax-exemption-meta-field.d.ts} +1 -1
  166. package/lib/db/Models/property/property-sale/tax-exemption.d.ts +2 -2
  167. package/lib/db/Models/property/property.d.ts.map +1 -0
  168. package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
  169. package/lib/db/Models/transaction/allocation-rule-condition.d.ts +10 -0
  170. package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
  171. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts +9 -0
  172. package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  173. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts +25 -0
  174. package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  175. package/lib/db/Models/transaction/allocation-rule.d.ts +22 -0
  176. package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
  177. package/lib/db/Models/transaction/{transaction-metadata.d.ts → transaction-meta-field.d.ts} +3 -3
  178. package/lib/db/Models/transaction/transaction.d.ts +2 -2
  179. package/lib/db/Models/user/user.d.ts.map +1 -0
  180. package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
  181. package/lib/forms/abstract.form.d.ts.map +1 -0
  182. package/lib/forms/address/address.form.d.ts.map +1 -0
  183. package/lib/forms/address/index.d.ts.map +1 -0
  184. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  185. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  186. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  187. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  188. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  189. package/lib/forms/bank/bank-login.form.d.ts.map +1 -0
  190. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  191. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  192. package/lib/forms/depreciation/index.d.ts.map +1 -0
  193. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  194. package/lib/forms/index.d.ts.map +1 -0
  195. package/lib/forms/loan/index.d.ts.map +1 -0
  196. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  197. package/lib/forms/login/login.form.d.ts.map +1 -0
  198. package/lib/forms/phone/index.d.ts.map +1 -0
  199. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  200. package/lib/forms/property/index.d.ts.map +1 -0
  201. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  202. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  203. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  204. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts +2 -2
  205. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  206. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  207. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  208. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  209. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
  210. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
  211. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  212. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
  213. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  214. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  215. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  216. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  217. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  218. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  219. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  220. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  221. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  222. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  223. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  224. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  225. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  226. package/lib/forms/sole/index.d.ts.map +1 -0
  227. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  228. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  229. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  230. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  231. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  232. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  233. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  234. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  235. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  236. package/lib/forms/transaction/allocation-rule-condition.form.d.ts +5 -0
  237. package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
  238. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts +5 -0
  239. package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
  240. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts +33 -0
  241. package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
  242. package/lib/forms/transaction/allocation-rule.form.d.ts +31 -0
  243. package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
  244. package/lib/forms/transaction/index.d.ts +1 -0
  245. package/lib/forms/transaction/index.d.ts.map +1 -0
  246. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  247. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  248. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  249. package/lib/forms/transaction/work/work-expense.form.d.ts +1 -1
  250. package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
  251. package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
  252. package/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
  253. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
  254. package/lib/forms/user/index.d.ts.map +1 -0
  255. package/lib/forms/user/password.form.d.ts.map +1 -0
  256. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  257. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  258. package/lib/forms/vehicle/index.d.ts.map +1 -0
  259. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  260. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  261. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  262. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  263. package/lib/functions/clone-deep.d.ts.map +1 -0
  264. package/lib/functions/create-date.d.ts.map +1 -0
  265. package/lib/functions/enum-to-list.d.ts.map +1 -0
  266. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  267. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  268. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  269. package/lib/functions/round-to.d.ts.map +1 -0
  270. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  271. package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
  272. package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
  273. package/lib/interceptors/interceptors.module.d.ts.map +1 -0
  274. package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
  275. package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
  276. package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
  277. package/lib/interfaces/asset.interface.d.ts.map +1 -0
  278. package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
  279. package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
  280. package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
  281. package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
  282. package/lib/interfaces/expense.interface.d.ts.map +1 -0
  283. package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
  284. package/lib/interfaces/index.d.ts.map +1 -0
  285. package/lib/interfaces/option.interface.d.ts.map +1 -0
  286. package/lib/interfaces/receipt.interface.d.ts.map +1 -0
  287. package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
  288. package/lib/interfaces/tank.interface.d.ts.map +1 -0
  289. package/lib/interfaces/updatable.interface.d.ts.map +1 -0
  290. package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
  291. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  292. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  293. package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
  294. package/lib/models/badge/badge.d.ts.map +1 -0
  295. package/lib/models/bank/allocation-group.d.ts.map +1 -0
  296. package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
  297. package/lib/models/bank/bank-account-property.d.ts.map +1 -0
  298. package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
  299. package/lib/models/bank/bank-account.d.ts.map +1 -0
  300. package/lib/models/bank/bank-connection.d.ts.map +1 -0
  301. package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
  302. package/lib/models/bank/bank-login-data.d.ts.map +1 -0
  303. package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
  304. package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
  305. package/lib/models/bank/bank-transaction.d.ts.map +1 -0
  306. package/lib/models/bank/bank.d.ts.map +1 -0
  307. package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
  308. package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
  309. package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
  310. package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
  311. package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
  312. package/lib/models/bank/basiq/index.d.ts.map +1 -0
  313. package/lib/models/bank/index.d.ts.map +1 -0
  314. package/lib/models/bank/type-loan.const.d.ts.map +1 -0
  315. package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
  316. package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
  317. package/lib/models/borrowing-expense/index.d.ts.map +1 -0
  318. package/lib/models/chart/chart-data.d.ts.map +1 -0
  319. package/lib/models/chart/chart-serie.d.ts.map +1 -0
  320. package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
  321. package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
  322. package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
  323. package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
  324. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts +8 -0
  325. package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
  326. package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
  327. package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
  328. package/lib/models/chart-accounts/chart-accounts.d.ts +4 -2
  329. package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
  330. package/lib/models/chart-accounts/index.d.ts +1 -1
  331. package/lib/models/chart-accounts/index.d.ts.map +1 -0
  332. package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
  333. package/lib/models/chat/chat.d.ts.map +1 -0
  334. package/lib/models/chat/index.d.ts.map +1 -0
  335. package/lib/models/chat/message-document.d.ts.map +1 -0
  336. package/lib/models/chat/message.d.ts.map +1 -0
  337. package/lib/models/client/client-income-types.d.ts.map +1 -0
  338. package/lib/models/client/client-invite.d.ts.map +1 -0
  339. package/lib/models/client/client-movement.d.ts.map +1 -0
  340. package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
  341. package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
  342. package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
  343. package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
  344. package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
  345. package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
  346. package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
  347. package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
  348. package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
  349. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
  350. package/lib/models/depreciation/depreciation-receipt.d.ts.map +1 -0
  351. package/lib/models/depreciation/depreciation.d.ts.map +1 -0
  352. package/lib/models/depreciation/index.d.ts.map +1 -0
  353. package/lib/models/dictionary/dictionary.d.ts.map +1 -0
  354. package/lib/models/dictionary/index.d.ts.map +1 -0
  355. package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
  356. package/lib/models/document/document-file-types.const.d.ts.map +1 -0
  357. package/lib/models/document/document-folder.d.ts.map +1 -0
  358. package/lib/models/document/document.d.ts.map +1 -0
  359. package/lib/models/document/index.d.ts.map +1 -0
  360. package/lib/models/employee/employee-invite.d.ts.map +1 -0
  361. package/lib/models/endpoint/endpoint.d.ts.map +1 -0
  362. package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
  363. package/lib/models/event/index.d.ts.map +1 -0
  364. package/lib/models/export/export-format.enum.d.ts.map +1 -0
  365. package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
  366. package/lib/models/export/export-row.d.ts.map +1 -0
  367. package/lib/models/file/file.d.ts.map +1 -0
  368. package/lib/models/file/icons-file.enum.d.ts.map +1 -0
  369. package/lib/models/file/index.d.ts.map +1 -0
  370. package/lib/models/financial-year/financial-year.d.ts.map +1 -0
  371. package/lib/models/financial-year/index.d.ts.map +1 -0
  372. package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
  373. package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
  374. package/lib/models/financial-year/months.const.d.ts.map +1 -0
  375. package/lib/models/income-position/income-position.d.ts.map +1 -0
  376. package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
  377. package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
  378. package/lib/models/income-source/income-source-type.d.ts.map +1 -0
  379. package/lib/models/income-source/income-source.d.ts.map +1 -0
  380. package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
  381. package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
  382. package/lib/models/index.d.ts.map +1 -0
  383. package/lib/models/loan/index.d.ts.map +1 -0
  384. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
  385. package/lib/models/loan/loan.d.ts.map +1 -0
  386. package/lib/models/notification/index.d.ts.map +1 -0
  387. package/lib/models/notification/notification.d.ts.map +1 -0
  388. package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
  389. package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
  390. package/lib/models/property/calculation-form-item.d.ts.map +1 -0
  391. package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
  392. package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
  393. package/lib/models/property/index.d.ts.map +1 -0
  394. package/lib/models/property/property-category-movement.d.ts.map +1 -0
  395. package/lib/models/property/property-category.d.ts.map +1 -0
  396. package/lib/models/property/property-document.d.ts.map +1 -0
  397. package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
  398. package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
  399. package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
  400. package/lib/models/property/property-forecast.d.ts.map +1 -0
  401. package/lib/models/property/property-sale/index.d.ts +2 -2
  402. package/lib/models/property/property-sale/index.d.ts.map +1 -0
  403. package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
  404. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts +3 -0
  405. package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
  406. package/lib/models/property/property-sale/property-sale.d.ts +2 -2
  407. package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
  408. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts +3 -0
  409. package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
  410. package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
  411. package/lib/models/property/property-share.d.ts.map +1 -0
  412. package/lib/models/property/property-subscription.d.ts.map +1 -0
  413. package/lib/models/property/property-valuation.d.ts.map +1 -0
  414. package/lib/models/property/property.d.ts.map +1 -0
  415. package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
  416. package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
  417. package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
  418. package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
  419. package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
  420. package/lib/models/report/depreciation/index.d.ts.map +1 -0
  421. package/lib/models/report/index.d.ts.map +1 -0
  422. package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
  423. package/lib/models/report/my-tax/index.d.ts.map +1 -0
  424. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
  425. package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
  426. package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
  427. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +1 -0
  428. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +1 -0
  429. package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +1 -0
  430. package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
  431. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
  432. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
  433. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
  434. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
  435. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
  436. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
  437. package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
  438. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
  439. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
  440. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
  441. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
  442. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
  443. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
  444. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
  445. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
  446. package/lib/models/report/property/index.d.ts.map +1 -0
  447. package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
  448. package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
  449. package/lib/models/report/property/property-report-item.d.ts.map +1 -0
  450. package/lib/models/report/sole/index.d.ts.map +1 -0
  451. package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
  452. package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
  453. package/lib/models/service-subscription/index.d.ts.map +1 -0
  454. package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
  455. package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
  456. package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
  457. package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
  458. package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
  459. package/lib/models/service-subscription/stripe-promo-code.d.ts.map +1 -0
  460. package/lib/models/sole/bas-report.d.ts.map +1 -0
  461. package/lib/models/sole/index.d.ts.map +1 -0
  462. package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
  463. package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
  464. package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
  465. package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
  466. package/lib/models/sole/sole-business.d.ts.map +1 -0
  467. package/lib/models/sole/sole-contact.d.ts.map +1 -0
  468. package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
  469. package/lib/models/sole/sole-details.d.ts.map +1 -0
  470. package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
  471. package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
  472. package/lib/models/sole/sole-invoice.d.ts.map +1 -0
  473. package/lib/models/tax-review/tax-review.d.ts.map +1 -0
  474. package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
  475. package/lib/models/tax-summary/report-item.d.ts.map +1 -0
  476. package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
  477. package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
  478. package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
  479. package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
  480. package/lib/models/toast/toast.d.ts.map +1 -0
  481. package/lib/models/transaction/allocation-rule-condition.d.ts +7 -0
  482. package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
  483. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts +3 -0
  484. package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
  485. package/lib/models/transaction/allocation-rule-transaction.d.ts +21 -0
  486. package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
  487. package/lib/models/transaction/allocation-rule.d.ts +42 -0
  488. package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
  489. package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
  490. package/lib/models/transaction/index.d.ts +4 -1
  491. package/lib/models/transaction/index.d.ts.map +1 -0
  492. package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
  493. package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
  494. package/lib/models/transaction/transaction-meta-field.d.ts +5 -0
  495. package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
  496. package/lib/models/transaction/transaction-receipt.d.ts.map +1 -0
  497. package/lib/models/transaction/transaction.d.ts +6 -6
  498. package/lib/models/transaction/transaction.d.ts.map +1 -0
  499. package/lib/models/user/index.d.ts.map +1 -0
  500. package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
  501. package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
  502. package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
  503. package/lib/models/user/my-account-history.d.ts.map +1 -0
  504. package/lib/models/user/occupation.d.ts.map +1 -0
  505. package/lib/models/user/user-roles.const.d.ts.map +1 -0
  506. package/lib/models/user/user-to-register.d.ts.map +1 -0
  507. package/lib/models/user/user.d.ts.map +1 -0
  508. package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
  509. package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
  510. package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
  511. package/lib/models/user-event/user-event-type.d.ts.map +1 -0
  512. package/lib/models/vehicle/index.d.ts.map +1 -0
  513. package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
  514. package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
  515. package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
  516. package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
  517. package/lib/models/vehicle/vehicle.d.ts.map +1 -0
  518. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  519. package/lib/services/account-setup/index.d.ts.map +1 -0
  520. package/lib/services/affiliate/index.d.ts.map +1 -0
  521. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  522. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  523. package/lib/services/asset/assets.service.d.ts.map +1 -0
  524. package/lib/services/asset/index.d.ts.map +1 -0
  525. package/lib/services/auth/auth.service.d.ts.map +1 -0
  526. package/lib/services/auth/index.d.ts.map +1 -0
  527. package/lib/services/auth/jwt.service.d.ts.map +1 -0
  528. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  529. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  530. package/lib/services/bank/index.d.ts.map +1 -0
  531. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  532. package/lib/services/export/index.d.ts.map +1 -0
  533. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  534. package/lib/services/header-title/index.d.ts.map +1 -0
  535. package/lib/services/http/address/address.service.d.ts.map +1 -0
  536. package/lib/services/http/address/index.d.ts.map +1 -0
  537. package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
  538. package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
  539. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
  540. package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
  541. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
  542. package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
  543. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  544. package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
  545. package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
  546. package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
  547. package/lib/services/http/bank/index.d.ts.map +1 -0
  548. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  549. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  550. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  551. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  552. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  553. package/lib/services/http/chat/index.d.ts.map +1 -0
  554. package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
  555. package/lib/services/http/chat/message.service.d.ts.map +1 -0
  556. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  557. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  558. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +1 -0
  559. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +1 -0
  560. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  561. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  562. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  563. package/lib/services/http/document/document.service.d.ts.map +1 -0
  564. package/lib/services/http/document/index.d.ts.map +1 -0
  565. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  566. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  567. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  568. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  569. package/lib/services/http/facebook/index.d.ts.map +1 -0
  570. package/lib/services/http/file/file.service.d.ts.map +1 -0
  571. package/lib/services/http/file/index.d.ts.map +1 -0
  572. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  573. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  574. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  575. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  576. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  577. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  578. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  579. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  580. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  581. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  582. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  583. package/lib/services/http/firm/index.d.ts.map +1 -0
  584. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  585. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  586. package/lib/services/http/google/google.service.d.ts.map +1 -0
  587. package/lib/services/http/google/index.d.ts.map +1 -0
  588. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  589. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  590. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  591. package/lib/services/http/income-source/index.d.ts.map +1 -0
  592. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  593. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  594. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  595. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  596. package/lib/services/http/index.d.ts.map +1 -0
  597. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  598. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  599. package/lib/services/http/loan/index.d.ts.map +1 -0
  600. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  601. package/lib/services/http/property/index.d.ts.map +1 -0
  602. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  603. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  604. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  605. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  606. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  607. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  608. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  609. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  610. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  611. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  612. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  613. package/lib/services/http/property/property.service.d.ts.map +1 -0
  614. package/lib/services/http/receipt/index.d.ts.map +1 -0
  615. package/lib/services/http/receipt/receipt.service.d.ts.map +1 -0
  616. package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
  617. package/lib/services/http/rest/index.d.ts.map +1 -0
  618. package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
  619. package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
  620. package/lib/services/http/rest/rest.service.d.ts.map +1 -0
  621. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  622. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  623. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  624. package/lib/services/http/sole/index.d.ts.map +1 -0
  625. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +1 -0
  626. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  627. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  628. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  629. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  630. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  631. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  632. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  633. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  634. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  635. package/lib/services/http/subscription/index.d.ts.map +1 -0
  636. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
  637. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
  638. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
  639. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
  640. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
  641. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  642. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  643. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  644. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  645. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  646. package/lib/services/http/transaction/index.d.ts +1 -0
  647. package/lib/services/http/transaction/index.d.ts.map +1 -0
  648. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +13 -0
  649. package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
  650. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  651. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +1 -0
  652. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  653. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  654. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  655. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  656. package/lib/services/http/tutorial-video/video-source.interface.d.ts +1 -1
  657. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  658. package/lib/services/http/user/index.d.ts.map +1 -0
  659. package/lib/services/http/user/occupation/occupation.service.d.ts.map +1 -0
  660. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  661. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  662. package/lib/services/http/user/user.service.d.ts.map +1 -0
  663. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  664. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  665. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  666. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  667. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  668. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  669. package/lib/services/index.d.ts.map +1 -0
  670. package/lib/services/intercom/index.d.ts.map +1 -0
  671. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  672. package/lib/services/pdf/index.d.ts.map +1 -0
  673. package/lib/services/pdf/js-pdf.d.ts.map +1 -0
  674. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  675. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  676. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  677. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  678. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  679. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  680. package/lib/services/preloader/index.d.ts.map +1 -0
  681. package/lib/services/preloader/preloader.service.d.ts.map +1 -0
  682. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  683. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  684. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  685. package/lib/services/property/index.d.ts.map +1 -0
  686. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  687. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  688. package/lib/services/report/index.d.ts.map +1 -0
  689. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  690. package/lib/services/toast/index.d.ts.map +1 -0
  691. package/lib/services/toast/toast.service.d.ts.map +1 -0
  692. package/lib/services/transaction/index.d.ts.map +1 -0
  693. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  694. package/lib/services/user/index.d.ts.map +1 -0
  695. package/lib/services/user/user-switcher.service.d.ts.map +1 -0
  696. package/lib/services/vehicle/index.d.ts.map +1 -0
  697. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  698. package/lib/services/xlsx/index.d.ts.map +1 -0
  699. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  700. package/lib/tt-core.module.d.ts.map +1 -0
  701. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  702. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  703. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  704. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  705. package/lib/validators/conditional.validator.d.ts.map +1 -0
  706. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  707. package/lib/validators/date-range.validator.d.ts.map +1 -0
  708. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  709. package/lib/validators/file.validator.d.ts.map +1 -0
  710. package/lib/validators/index.d.ts.map +1 -0
  711. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  712. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  713. package/lib/validators/password-match.validator.d.ts.map +1 -0
  714. package/lib/validators/password.validator.d.ts.map +1 -0
  715. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  716. package/lib/validators/required-length.validator.d.ts.map +1 -0
  717. package/package.json +1 -1
  718. package/public-api.d.ts +4 -4
  719. package/public-api.d.ts.map +1 -0
  720. package/taxtank-core.d.ts.map +1 -0
  721. package/esm2020/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.mjs +0 -17
  722. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-list.enum.mjs +0 -19
  723. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.mjs +0 -6
  724. package/esm2020/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.mjs +0 -9
  725. package/esm2020/lib/db/Models/bank/bank-transaction-rule.mjs +0 -4
  726. package/esm2020/lib/db/Models/chart-accounts/chart-accounts-metadata.mjs +0 -4
  727. package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.mjs +0 -4
  728. package/esm2020/lib/db/Models/property/property-sale/tax-exemption-metadata.mjs +0 -4
  729. package/esm2020/lib/db/Models/transaction/transaction-metadata.mjs +0 -4
  730. package/esm2020/lib/models/chart-accounts/chart-accounts-metadata.mjs +0 -14
  731. package/esm2020/lib/models/property/property-sale/property-sale-tax-exemption-metadata.mjs +0 -4
  732. package/esm2020/lib/models/property/property-sale/tax-exemption-metadata.mjs +0 -4
  733. package/esm2020/lib/models/transaction/transaction-metadata.mjs +0 -10
  734. package/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.d.ts +0 -8
  735. package/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.d.ts +0 -4
  736. package/lib/db/Models/bank/bank-transaction-rule.d.ts +0 -26
  737. package/lib/db/Models/chart-accounts/chart-accounts-metadata.d.ts +0 -11
  738. package/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +0 -9
  739. package/lib/models/chart-accounts/chart-accounts-metadata.d.ts +0 -8
  740. package/lib/models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +0 -3
  741. package/lib/models/property/property-sale/tax-exemption-metadata.d.ts +0 -3
  742. package/lib/models/transaction/transaction-metadata.d.ts +0 -5
@@ -327,9 +327,6 @@ let BankConnection$1 = class BankConnection extends ObservableModel {
327
327
  class BankTransactionImport extends AbstractModel {
328
328
  }
329
329
 
330
- class BankTransactionRule extends AbstractModel {
331
- }
332
-
333
330
  let BankTransaction$1 = class BankTransaction extends ObservableModel {
334
331
  };
335
332
 
@@ -345,7 +342,7 @@ let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends Abstra
345
342
  let ChartAccountsHeading$1 = class ChartAccountsHeading extends AbstractModel {
346
343
  };
347
344
 
348
- let ChartAccountsMetadata$1 = class ChartAccountsMetadata extends AbstractModel {
345
+ let ChartAccountsMetaField$1 = class ChartAccountsMetaField extends AbstractModel {
349
346
  };
350
347
 
351
348
  let ChartAccountsValue$1 = class ChartAccountsValue extends AbstractModel {
@@ -534,13 +531,13 @@ let LoanPayout$1 = class LoanPayout extends ObservableModel {
534
531
  let Loan$1 = class Loan extends ObservableModel {
535
532
  };
536
533
 
537
- let PropertySaleTaxExemptionMetadata$1 = class PropertySaleTaxExemptionMetadata extends AbstractModel {
534
+ let PropertySaleTaxExemptionMetaField$1 = class PropertySaleTaxExemptionMetaField extends AbstractModel {
538
535
  };
539
536
 
540
537
  let PropertySale$1 = class PropertySale extends ObservableModel {
541
538
  };
542
539
 
543
- let TaxExemptionMetadata$1 = class TaxExemptionMetadata extends AbstractModel {
540
+ let TaxExemptionMetaField$1 = class TaxExemptionMetaField extends AbstractModel {
544
541
  };
545
542
 
546
543
  let TaxExemption$1 = class TaxExemption extends AbstractModel {
@@ -636,7 +633,7 @@ class TaxReturn extends AbstractModel {
636
633
  let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel {
637
634
  };
638
635
 
639
- let TransactionMetadata$1 = class TransactionMetadata extends AbstractModel {
636
+ let TransactionMetaField$1 = class TransactionMetaField extends AbstractModel {
640
637
  };
641
638
 
642
639
  let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
@@ -1615,30 +1612,30 @@ class PropertySaleCollection extends Collection {
1615
1612
  }
1616
1613
  }
1617
1614
 
1618
- var TaxExemptionMetadataEnum;
1619
- (function (TaxExemptionMetadataEnum) {
1615
+ var TaxExemptionMetaFieldEnum;
1616
+ (function (TaxExemptionMetaFieldEnum) {
1620
1617
  // principle place of residence
1621
- TaxExemptionMetadataEnum[TaxExemptionMetadataEnum["PPR_DAYS"] = 1] = "PPR_DAYS";
1618
+ TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["PPR_DAYS"] = 1] = "PPR_DAYS";
1622
1619
  // market value once it was moved, decimal
1623
- TaxExemptionMetadataEnum[TaxExemptionMetadataEnum["MARKET_VALUE"] = 2] = "MARKET_VALUE";
1624
- TaxExemptionMetadataEnum[TaxExemptionMetadataEnum["CLAIM_PERCENT"] = 3] = "CLAIM_PERCENT";
1625
- })(TaxExemptionMetadataEnum || (TaxExemptionMetadataEnum = {}));
1620
+ TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["MARKET_VALUE"] = 2] = "MARKET_VALUE";
1621
+ TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["CLAIM_PERCENT"] = 3] = "CLAIM_PERCENT";
1622
+ })(TaxExemptionMetaFieldEnum || (TaxExemptionMetaFieldEnum = {}));
1626
1623
 
1627
- class PropertySaleTaxExemptionMetadataCollection extends Collection {
1624
+ class PropertySaleTaxExemptionMetaFieldCollection extends Collection {
1628
1625
  getPPRDays() {
1629
1626
  var _a, _b;
1630
- return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.PPR_DAYS)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
1627
+ return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.PPR_DAYS)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
1631
1628
  }
1632
1629
  getMarketValue() {
1633
1630
  var _a, _b;
1634
- return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.MARKET_VALUE)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
1631
+ return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.MARKET_VALUE)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
1635
1632
  }
1636
1633
  getClaimPercent() {
1637
1634
  var _a, _b;
1638
- return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.CLAIM_PERCENT)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 100;
1635
+ return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.CLAIM_PERCENT)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 100;
1639
1636
  }
1640
- getByMetadataId(id) {
1641
- return this.items.find((metadata) => metadata.metadata.id === id);
1637
+ getByMetaFieldId(id) {
1638
+ return this.items.find((metaField) => metaField.metaField.id === id);
1642
1639
  }
1643
1640
  }
1644
1641
 
@@ -1820,10 +1817,33 @@ var DepreciationCalculationEnum;
1820
1817
  DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
1821
1818
  })(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
1822
1819
 
1823
- var DocumentTypeEnum;
1824
- (function (DocumentTypeEnum) {
1825
- DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
1826
- })(DocumentTypeEnum || (DocumentTypeEnum = {}));
1820
+ var AllocationRuleConditionComparisonOperatorEnum;
1821
+ (function (AllocationRuleConditionComparisonOperatorEnum) {
1822
+ AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS"] = 1] = "EQUALS";
1823
+ AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["CONTAINS"] = 2] = "CONTAINS";
1824
+ AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["STARTS"] = 3] = "STARTS";
1825
+ AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_GREATER"] = 4] = "EQUALS_OR_GREATER";
1826
+ AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_LESS"] = 5] = "EQUALS_OR_LESS";
1827
+ })(AllocationRuleConditionComparisonOperatorEnum || (AllocationRuleConditionComparisonOperatorEnum = {}));
1828
+
1829
+ var AllocationRuleConditionFieldEnum;
1830
+ (function (AllocationRuleConditionFieldEnum) {
1831
+ AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["AMOUNT"] = 1] = "AMOUNT";
1832
+ AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["DESCRIPTION"] = 2] = "DESCRIPTION";
1833
+ })(AllocationRuleConditionFieldEnum || (AllocationRuleConditionFieldEnum = {}));
1834
+
1835
+ var AllocationRuleConditionOperatorEnum;
1836
+ (function (AllocationRuleConditionOperatorEnum) {
1837
+ AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["AND"] = 1] = "AND";
1838
+ AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["OR"] = 2] = "OR";
1839
+ })(AllocationRuleConditionOperatorEnum || (AllocationRuleConditionOperatorEnum = {}));
1840
+
1841
+ var AllocationRuleTypeEnum;
1842
+ (function (AllocationRuleTypeEnum) {
1843
+ AllocationRuleTypeEnum[AllocationRuleTypeEnum["EXPENSE"] = 1] = "EXPENSE";
1844
+ AllocationRuleTypeEnum[AllocationRuleTypeEnum["INCOME"] = 2] = "INCOME";
1845
+ AllocationRuleTypeEnum[AllocationRuleTypeEnum["TRANSFER"] = 3] = "TRANSFER";
1846
+ })(AllocationRuleTypeEnum || (AllocationRuleTypeEnum = {}));
1827
1847
 
1828
1848
  var AnnualFrequencyEnum;
1829
1849
  (function (AnnualFrequencyEnum) {
@@ -2029,30 +2049,30 @@ var ChartAccountsListEnum;
2029
2049
  ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
2030
2050
  })(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
2031
2051
 
2032
- var ChartAccountsMetadataListEnum;
2033
- (function (ChartAccountsMetadataListEnum) {
2034
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
2035
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
2036
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
2037
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
2038
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
2039
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["HOURS"] = 11] = "HOURS";
2040
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_PAID"] = 13] = "TAX_PAID";
2041
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
2042
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
2043
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
2044
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
2045
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["FRANKED"] = 26] = "FRANKED";
2046
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["UNFRANKED"] = 27] = "UNFRANKED";
2047
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
2048
- ChartAccountsMetadataListEnum[ChartAccountsMetadataListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
2049
- })(ChartAccountsMetadataListEnum || (ChartAccountsMetadataListEnum = {}));
2050
-
2051
- var ChartAccountsMetadataTypeEnum;
2052
- (function (ChartAccountsMetadataTypeEnum) {
2053
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
2054
- ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
2055
- })(ChartAccountsMetadataTypeEnum || (ChartAccountsMetadataTypeEnum = {}));
2052
+ var ChartAccountsMetaFieldListEnum;
2053
+ (function (ChartAccountsMetaFieldListEnum) {
2054
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
2055
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
2056
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
2057
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
2058
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
2059
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["HOURS"] = 11] = "HOURS";
2060
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_PAID"] = 13] = "TAX_PAID";
2061
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
2062
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
2063
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
2064
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
2065
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKED"] = 26] = "FRANKED";
2066
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNFRANKED"] = 27] = "UNFRANKED";
2067
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
2068
+ ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
2069
+ })(ChartAccountsMetaFieldListEnum || (ChartAccountsMetaFieldListEnum = {}));
2070
+
2071
+ var ChartAccountsMetaFieldTypeEnum;
2072
+ (function (ChartAccountsMetaFieldTypeEnum) {
2073
+ ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["NUMBER"] = 3] = "NUMBER";
2074
+ ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
2075
+ })(ChartAccountsMetaFieldTypeEnum || (ChartAccountsMetaFieldTypeEnum = {}));
2056
2076
 
2057
2077
  var ChartAccountsSalaryAdjustmentsListEnum;
2058
2078
  (function (ChartAccountsSalaryAdjustmentsListEnum) {
@@ -2101,6 +2121,11 @@ var ChartAccountsKeepSign;
2101
2121
  ChartAccountsKeepSign[ChartAccountsKeepSign["ADVANCE"] = 556] = "ADVANCE";
2102
2122
  })(ChartAccountsKeepSign || (ChartAccountsKeepSign = {}));
2103
2123
 
2124
+ var DocumentTypeEnum;
2125
+ (function (DocumentTypeEnum) {
2126
+ DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
2127
+ })(DocumentTypeEnum || (DocumentTypeEnum = {}));
2128
+
2104
2129
  // @TODO Artem TT-2308 move everything
2105
2130
 
2106
2131
  class DepreciationCapitalProject extends DepreciationCapitalProject$1 {
@@ -2292,15 +2317,15 @@ class ChartAccountsCategoryECollection {
2292
2317
  class ChartAccountsHeading extends ChartAccountsHeading$1 {
2293
2318
  }
2294
2319
 
2295
- class ChartAccountsMetadata extends ChartAccountsMetadata$1 {
2320
+ class ChartAccountsMetaField extends ChartAccountsMetaField$1 {
2296
2321
  /**
2297
- * Check if metadata id is related to SHARE_PERCENTAGE value
2322
+ * Check if meta field id is related to SHARE_PERCENTAGE value
2298
2323
  */
2299
2324
  isSharePercentage() {
2300
- return this.id === ChartAccountsMetadataListEnum.SHARE_PERCENTAGE;
2325
+ return this.id === ChartAccountsMetaFieldListEnum.SHARE_PERCENTAGE;
2301
2326
  }
2302
2327
  isHours() {
2303
- return this.id === ChartAccountsMetadataListEnum.HOURS;
2328
+ return this.id === ChartAccountsMetaFieldListEnum.HOURS;
2304
2329
  }
2305
2330
  }
2306
2331
 
@@ -3011,6 +3036,12 @@ class ChartAccounts extends ChartAccounts$1 {
3011
3036
  isPropertyCapitalWorks() {
3012
3037
  return this.category === ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS;
3013
3038
  }
3039
+ isTaxable() {
3040
+ return !this.isNRAS() && this.isWorkIncome();
3041
+ }
3042
+ isTransfer() {
3043
+ return this.id === ChartAccountsListEnum.TRANSFER;
3044
+ }
3014
3045
  }
3015
3046
  /**
3016
3047
  * Australian GST percent value (VAT)
@@ -3022,8 +3053,8 @@ __decorate([
3022
3053
  Type(() => ChartAccountsHeading)
3023
3054
  ], ChartAccounts.prototype, "heading", void 0);
3024
3055
  __decorate([
3025
- Type(() => ChartAccountsMetadata)
3026
- ], ChartAccounts.prototype, "metadata", void 0);
3056
+ Type(() => ChartAccountsMetaField)
3057
+ ], ChartAccounts.prototype, "metaFields", void 0);
3027
3058
  __decorate([
3028
3059
  Type(() => ChartAccountsValue),
3029
3060
  Transform(({ obj }) => CHART_ACCOUNTS_VALUES.get(obj.id).toArray(), { toClassOnly: true }),
@@ -3043,6 +3074,440 @@ __decorate([
3043
3074
  Transform(({ value }) => +value)
3044
3075
  ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
3045
3076
 
3077
+ let AllocationRule$1 = class AllocationRule extends AbstractModel {
3078
+ };
3079
+
3080
+ let AllocationRuleCondition$1 = class AllocationRuleCondition extends AbstractModel {
3081
+ };
3082
+
3083
+ class AllocationRuleCondition extends AllocationRuleCondition$1 {
3084
+ matchBankTransaction(bankTransaction) {
3085
+ return this.field === AllocationRuleConditionFieldEnum.AMOUNT ? this.matchBankTransactionByAmount(bankTransaction) : this.matchBankTransactionByDescription(bankTransaction);
3086
+ }
3087
+ matchBankTransactionByAmount(bankTransaction) {
3088
+ // Amount should be compared as number
3089
+ const value = +this.value;
3090
+ switch (this.comparisonOperator) {
3091
+ case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
3092
+ return bankTransaction.amount === value;
3093
+ case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_LESS:
3094
+ return bankTransaction.amount <= value;
3095
+ case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_GREATER:
3096
+ return bankTransaction.amount >= value;
3097
+ }
3098
+ return false;
3099
+ }
3100
+ matchBankTransactionByDescription(bankTransaction) {
3101
+ // Prepare value and description for comparison
3102
+ const description = bankTransaction.description.toLowerCase();
3103
+ const value = this.value.trim().toLowerCase();
3104
+ switch (this.comparisonOperator) {
3105
+ case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
3106
+ return description === value;
3107
+ case AllocationRuleConditionComparisonOperatorEnum.CONTAINS:
3108
+ return description.includes(value);
3109
+ case AllocationRuleConditionComparisonOperatorEnum.STARTS:
3110
+ return description.startsWith(value);
3111
+ }
3112
+ return false;
3113
+ }
3114
+ }
3115
+
3116
+ let AllocationRuleTransaction$1 = class AllocationRuleTransaction extends TransactionBase {
3117
+ };
3118
+
3119
+ let AllocationRuleTransactionMetaField$1 = class AllocationRuleTransactionMetaField extends AbstractModel {
3120
+ };
3121
+
3122
+ class AllocationRuleTransactionMetaField extends AllocationRuleTransactionMetaField$1 {
3123
+ }
3124
+
3125
+ var IncomeSourceTypeEnum;
3126
+ (function (IncomeSourceTypeEnum) {
3127
+ IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
3128
+ IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
3129
+ IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
3130
+ })(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
3131
+
3132
+ class SalaryForecast extends SalaryForecast$1 {
3133
+ get taxWithheld() {
3134
+ return this.grossAmount - this.netPay;
3135
+ }
3136
+ }
3137
+ __decorate([
3138
+ Transform(({ obj }) => obj.netPay + obj.tax),
3139
+ Expose()
3140
+ ], SalaryForecast.prototype, "grossAmount", void 0);
3141
+ __decorate([
3142
+ Type(() => IncomeSource)
3143
+ ], SalaryForecast.prototype, "incomeSource", void 0);
3144
+
3145
+ class SoleForecast extends SoleForecast$1 {
3146
+ get netPay() {
3147
+ return this.amount;
3148
+ }
3149
+ ;
3150
+ }
3151
+ __decorate([
3152
+ Type(() => IncomeSource)
3153
+ ], SoleForecast.prototype, "incomeSource", void 0);
3154
+
3155
+ var SalaryForecastFrequencyEnum;
3156
+ (function (SalaryForecastFrequencyEnum) {
3157
+ SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
3158
+ SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
3159
+ SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
3160
+ SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
3161
+ })(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
3162
+
3163
+ var IncomeSourceTypeListWorkEnum;
3164
+ (function (IncomeSourceTypeListWorkEnum) {
3165
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
3166
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
3167
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
3168
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
3169
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
3170
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
3171
+ IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
3172
+ })(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
3173
+
3174
+ var IncomeSourceTypeListOtherEnum;
3175
+ (function (IncomeSourceTypeListOtherEnum) {
3176
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
3177
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
3178
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
3179
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
3180
+ IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
3181
+ })(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
3182
+
3183
+ var IncomeSourceTypeListSoleEnum;
3184
+ (function (IncomeSourceTypeListSoleEnum) {
3185
+ IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
3186
+ })(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
3187
+
3188
+ class IncomeSourceType extends IncomeSourceType$1 {
3189
+ isBonuses() {
3190
+ return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
3191
+ }
3192
+ isWork() {
3193
+ return !!IncomeSourceTypeListWorkEnum[this.id];
3194
+ }
3195
+ isOther() {
3196
+ return !!IncomeSourceTypeListOtherEnum[this.id];
3197
+ }
3198
+ isSole() {
3199
+ return !!IncomeSourceTypeListSoleEnum[this.id];
3200
+ }
3201
+ get type() {
3202
+ switch (true) {
3203
+ case this.isWork():
3204
+ return IncomeSourceTypeEnum.WORK;
3205
+ case this.isSole():
3206
+ return IncomeSourceTypeEnum.SOLE;
3207
+ default:
3208
+ return IncomeSourceTypeEnum.OTHER;
3209
+ }
3210
+ }
3211
+ }
3212
+
3213
+ class IncomeSourceForecast extends IncomeSourceForecast$1 {
3214
+ constructor() {
3215
+ super(...arguments);
3216
+ this.paygIncome = 0;
3217
+ this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
3218
+ this.isTaxFree = false;
3219
+ }
3220
+ /**
3221
+ * Sometimes Income source has Salary & Income source forecasts,
3222
+ * and we need these fields to work with Income source forecasts like with Salary Forecasts
3223
+ */
3224
+ get netPay() {
3225
+ return this.amount;
3226
+ }
3227
+ get grossAmount() {
3228
+ return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
3229
+ }
3230
+ }
3231
+ __decorate([
3232
+ Type(() => IncomeSourceType)
3233
+ ], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
3234
+ __decorate([
3235
+ Type(() => IncomeSource)
3236
+ ], IncomeSourceForecast.prototype, "incomeSource", void 0);
3237
+
3238
+ class IncomeSource extends IncomeSource$1 {
3239
+ isSalaryIncome() {
3240
+ return !!this.salaryForecasts.length;
3241
+ // @TODO Vik: old code
3242
+ // return this.type === IncomeSourceTypeEnum.SALARY;
3243
+ }
3244
+ isSoleIncome() {
3245
+ return !!this.soleForecasts.length;
3246
+ }
3247
+ isWorkIncome() {
3248
+ return this.type === IncomeSourceTypeEnum.WORK;
3249
+ }
3250
+ isOtherIncome() {
3251
+ return this.type === IncomeSourceTypeEnum.OTHER || (!this.isSoleIncome() && !this.isSalaryIncome());
3252
+ }
3253
+ /**
3254
+ * Get salary and other income forecasts
3255
+ */
3256
+ get forecasts() {
3257
+ return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
3258
+ }
3259
+ /**
3260
+ * Get actual (1st from the list) forecast
3261
+ */
3262
+ get actualForecast() {
3263
+ return this.forecasts[0];
3264
+ }
3265
+ /**
3266
+ * Check if user was working in month taken by the index
3267
+ * @param monthIndex by which month should be taken
3268
+ */
3269
+ isWorkedInMonth(monthIndex) {
3270
+ const monthDate = new FinancialYear().getMonthDate(monthIndex);
3271
+ return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
3272
+ }
3273
+ }
3274
+ __decorate([
3275
+ Type(() => SalaryForecast)
3276
+ ], IncomeSource.prototype, "salaryForecasts", void 0);
3277
+ __decorate([
3278
+ Type(() => SoleForecast)
3279
+ ], IncomeSource.prototype, "soleForecasts", void 0);
3280
+ __decorate([
3281
+ Type(() => IncomeSourceForecast)
3282
+ ], IncomeSource.prototype, "incomeSourceForecasts", void 0);
3283
+ __decorate([
3284
+ Type(() => Date)
3285
+ ], IncomeSource.prototype, "dateFrom", void 0);
3286
+ __decorate([
3287
+ Type(() => Date)
3288
+ ], IncomeSource.prototype, "dateTo", void 0);
3289
+
3290
+ var TransactionSourceEnum;
3291
+ (function (TransactionSourceEnum) {
3292
+ TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
3293
+ TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
3294
+ })(TransactionSourceEnum || (TransactionSourceEnum = {}));
3295
+
3296
+ class AllocationRuleTransaction extends AllocationRuleTransaction$1 {
3297
+ calculateClaimPercent() {
3298
+ var _a, _b;
3299
+ if (!this.chartAccounts) {
3300
+ return null;
3301
+ }
3302
+ let claimPercent = this.chartAccounts.taxablePercent;
3303
+ // Property claim (ownership% x shared%) for property expenses, taxable percent for others
3304
+ if (((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.isProperty()) && this.property) {
3305
+ if (this.chartAccounts.isPropertyExpense() && this.chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
3306
+ claimPercent *= (_b = this.property) === null || _b === void 0 ? void 0 : _b.claimCoefficient;
3307
+ }
3308
+ }
3309
+ return claimPercent;
3310
+ }
3311
+ /**
3312
+ * Create Transaction instance based on passed bank transaction and rule transaction
3313
+ */
3314
+ toTransaction(bankTransaction) {
3315
+ return plainToClass(Transaction, {
3316
+ amount: bankTransaction.amount,
3317
+ description: bankTransaction.description,
3318
+ type: bankTransaction.type,
3319
+ date: bankTransaction.date,
3320
+ source: TransactionSourceEnum.BANK_TRANSACTION,
3321
+ tax: this.tax,
3322
+ claimPercent: this.claimPercent,
3323
+ isGST: this.isGST,
3324
+ chartAccounts: this.chartAccounts,
3325
+ property: this.property,
3326
+ loan: this.loan,
3327
+ incomeSource: this.incomeSource,
3328
+ metaFields: this.metaFields,
3329
+ parentTransaction: this.parentTransaction,
3330
+ childTransactions: this.childTransactions,
3331
+ business: this.business,
3332
+ operation: TransactionOperationEnum.ALLOCATE,
3333
+ allocations: [TransactionAllocation.create(bankTransaction.amount, bankTransaction)],
3334
+ });
3335
+ }
3336
+ }
3337
+ __decorate([
3338
+ Type(() => ChartAccounts)
3339
+ // @TODO Alex: Create custom decorator for this transform
3340
+ ,
3341
+ Transform(({ value }) => {
3342
+ return { id: value.id };
3343
+ }, { toPlainOnly: true })
3344
+ ], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
3345
+ __decorate([
3346
+ Type(() => Property),
3347
+ Transform(({ value }) => {
3348
+ return value ? { id: value.id } : null;
3349
+ }, { toPlainOnly: true })
3350
+ ], AllocationRuleTransaction.prototype, "property", void 0);
3351
+ __decorate([
3352
+ Type(() => Loan),
3353
+ Transform(({ value }) => {
3354
+ return value ? { id: value.id } : null;
3355
+ }, { toPlainOnly: true })
3356
+ ], AllocationRuleTransaction.prototype, "loan", void 0);
3357
+ __decorate([
3358
+ Type(() => IncomeSource),
3359
+ Transform(({ value }) => {
3360
+ return value ? { id: value.id } : null;
3361
+ }, { toPlainOnly: true })
3362
+ ], AllocationRuleTransaction.prototype, "incomeSource", void 0);
3363
+ __decorate([
3364
+ Type(() => SoleBusiness),
3365
+ Transform(({ value }) => {
3366
+ return value ? { id: value.id } : null;
3367
+ }, { toPlainOnly: true })
3368
+ ], AllocationRuleTransaction.prototype, "business", void 0);
3369
+ __decorate([
3370
+ Type(() => AllocationRuleTransactionMetaField)
3371
+ ], AllocationRuleTransaction.prototype, "metaFields", void 0);
3372
+ __decorate([
3373
+ Type(() => AllocationRuleTransaction)
3374
+ ], AllocationRuleTransaction.prototype, "parentTransaction", void 0);
3375
+ __decorate([
3376
+ Type(() => AllocationRuleTransaction)
3377
+ ], AllocationRuleTransaction.prototype, "childTransactions", void 0);
3378
+ __decorate([
3379
+ Type(() => Number)
3380
+ ], AllocationRuleTransaction.prototype, "claimPercent", void 0);
3381
+
3382
+ class AllocationRule extends AllocationRule$1 {
3383
+ constructor() {
3384
+ super(...arguments);
3385
+ this.type = AllocationRuleTypeEnum.EXPENSE;
3386
+ this.conditionOperator = AllocationRuleConditionOperatorEnum.OR;
3387
+ }
3388
+ get typeLabel() {
3389
+ switch (this.type) {
3390
+ case AllocationRuleTypeEnum.EXPENSE:
3391
+ return 'expense';
3392
+ case AllocationRuleTypeEnum.INCOME:
3393
+ return 'income';
3394
+ default:
3395
+ return 'transfer';
3396
+ }
3397
+ }
3398
+ get tankTypeLabel() {
3399
+ switch (this.transaction.tankType) {
3400
+ case TankTypeEnum.WORK:
3401
+ return 'work';
3402
+ case TankTypeEnum.PROPERTY:
3403
+ return 'property';
3404
+ case TankTypeEnum.SOLE:
3405
+ return 'sole';
3406
+ default:
3407
+ return 'personal';
3408
+ }
3409
+ }
3410
+ isIncome() {
3411
+ return this.type === AllocationRuleTypeEnum.INCOME;
3412
+ }
3413
+ isExpense() {
3414
+ return this.type === AllocationRuleTypeEnum.EXPENSE;
3415
+ }
3416
+ isTransfer() {
3417
+ return this.type === AllocationRuleTypeEnum.TRANSFER;
3418
+ }
3419
+ isPropertyTank() {
3420
+ return this.transaction.tankType === TankTypeEnum.PROPERTY;
3421
+ }
3422
+ isWorkTank() {
3423
+ return this.transaction.tankType === TankTypeEnum.WORK;
3424
+ }
3425
+ isSoleTank() {
3426
+ return this.transaction.tankType === TankTypeEnum.SOLE;
3427
+ }
3428
+ isPropertyIncome() {
3429
+ return this.isIncome() && this.isPropertyTank();
3430
+ }
3431
+ isWorkIncome() {
3432
+ return this.isIncome() && this.isWorkTank();
3433
+ }
3434
+ isSoleIncome() {
3435
+ return this.isIncome() && this.isSoleTank();
3436
+ }
3437
+ /**
3438
+ * @TODO Alex: move to collection
3439
+ */
3440
+ matchBankTransaction(bankTransaction) {
3441
+ return this.conditionOperator === AllocationRuleConditionOperatorEnum.AND ? this.checkAnd(bankTransaction) : this.checkOr(bankTransaction);
3442
+ }
3443
+ createTransaction(bankTransaction) {
3444
+ if (this.isTransfer()) {
3445
+ const transaction = bankTransaction.toTransaction();
3446
+ transaction.operation = TransactionOperationEnum.TRANSFER;
3447
+ transaction.chartAccounts = plainToClass(ChartAccounts, { id: ChartAccountsListEnum.TRANSFER });
3448
+ return transaction;
3449
+ }
3450
+ return this.transaction.toTransaction(bankTransaction);
3451
+ }
3452
+ /**
3453
+ * Rule is matched when all conditions matched
3454
+ */
3455
+ checkAnd(bankTransaction) {
3456
+ for (let condition of this.conditions) {
3457
+ if (!condition.matchBankTransaction(bankTransaction)) {
3458
+ return false;
3459
+ }
3460
+ }
3461
+ return true;
3462
+ }
3463
+ /**
3464
+ * Rule is matched when at least one condition matched
3465
+ */
3466
+ checkOr(bankTransaction) {
3467
+ for (let condition of this.conditions) {
3468
+ if (condition.matchBankTransaction(bankTransaction)) {
3469
+ return true;
3470
+ }
3471
+ }
3472
+ return false;
3473
+ }
3474
+ /**
3475
+ * Create allocation rule based on bank transaction (just prefill rule fields with bank transaction values)
3476
+ */
3477
+ static fromBankTransaction(bankTransaction) {
3478
+ return plainToClass(AllocationRule, {
3479
+ type: bankTransaction.isDebit() ? AllocationRuleTypeEnum.EXPENSE : AllocationRuleTypeEnum.INCOME,
3480
+ bankAccount: bankTransaction.bankAccount,
3481
+ conditionOperator: AllocationRuleConditionOperatorEnum.AND,
3482
+ conditions: [
3483
+ plainToClass(AllocationRuleCondition, {
3484
+ field: AllocationRuleConditionFieldEnum.AMOUNT,
3485
+ comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
3486
+ value: bankTransaction.amount
3487
+ }),
3488
+ plainToClass(AllocationRuleCondition, {
3489
+ field: AllocationRuleConditionFieldEnum.DESCRIPTION,
3490
+ comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
3491
+ value: bankTransaction.description
3492
+ })
3493
+ ]
3494
+ });
3495
+ }
3496
+ }
3497
+ __decorate([
3498
+ Type(() => BankAccount),
3499
+ Transform(({ value }) => { return { id: value.id }; }, { toPlainOnly: true })
3500
+ ], AllocationRule.prototype, "bankAccount", void 0);
3501
+ __decorate([
3502
+ Type(() => AllocationRuleCondition)
3503
+ ], AllocationRule.prototype, "conditions", void 0);
3504
+ __decorate([
3505
+ Type(() => AllocationRuleTransaction)
3506
+ ], AllocationRule.prototype, "transaction", void 0);
3507
+ __decorate([
3508
+ Type(() => BankAccount)
3509
+ ], AllocationRule.prototype, "transferBankAccount", void 0);
3510
+
3046
3511
  /**
3047
3512
  * Enum with income amount types (Net or Gross)
3048
3513
  */
@@ -3058,12 +3523,6 @@ var TransactionTypeEnum;
3058
3523
  TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
3059
3524
  })(TransactionTypeEnum || (TransactionTypeEnum = {}));
3060
3525
 
3061
- var TransactionSourceEnum;
3062
- (function (TransactionSourceEnum) {
3063
- TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
3064
- TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
3065
- })(TransactionSourceEnum || (TransactionSourceEnum = {}));
3066
-
3067
3526
  var TaxExemptionEnum;
3068
3527
  (function (TaxExemptionEnum) {
3069
3528
  TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
@@ -3111,8 +3570,8 @@ __decorate([
3111
3570
  Type(() => Date)
3112
3571
  ], PropertySale.prototype, "contractDate", void 0);
3113
3572
  __decorate([
3114
- Type(() => PropertySaleTaxExemptionMetadata$1)
3115
- ], PropertySale.prototype, "taxExemptionMetadata", void 0);
3573
+ Type(() => PropertySaleTaxExemptionMetaField$1)
3574
+ ], PropertySale.prototype, "taxExemptionMetaFields", void 0);
3116
3575
 
3117
3576
  /**
3118
3577
  * @Todo TT-2143 should be removed when PropertySaleCostBaseForm refactored (cut property to separated form)
@@ -3131,13 +3590,13 @@ class PropertySaleCostBase {
3131
3590
  }
3132
3591
  }
3133
3592
 
3134
- class PropertySaleTaxExemptionMetadata extends PropertySaleTaxExemptionMetadata$1 {
3593
+ class PropertySaleTaxExemptionMetaField extends PropertySaleTaxExemptionMetaField$1 {
3135
3594
  }
3136
3595
 
3137
3596
  class TaxExemption extends TaxExemption$1 {
3138
3597
  }
3139
3598
 
3140
- class TaxExemptionMetadata extends TaxExemptionMetadata$1 {
3599
+ class TaxExemptionMetaField extends TaxExemptionMetaField$1 {
3141
3600
  }
3142
3601
 
3143
3602
  /**
@@ -3524,282 +3983,117 @@ class PropertyForecast extends PropertyForecast$1 {
3524
3983
  /**
3525
3984
  * Get rental return percent
3526
3985
  * Rental Return = Income / Market Value
3527
- */
3528
- get rentalReturn() {
3529
- return this.income / this.marketValue;
3530
- }
3531
- /**
3532
- * Check if forecast is for real current fin year (not selected in the sidebar)
3533
- */
3534
- isCurrentYear() {
3535
- return this.financialYear === new FinancialYear(new Date()).year;
3536
- }
3537
- }
3538
- __decorate([
3539
- Transform(({ value }) => +value)
3540
- ], PropertyForecast.prototype, "income", void 0);
3541
- __decorate([
3542
- Transform(({ value }) => -Math.abs(+value))
3543
- ], PropertyForecast.prototype, "expense", void 0);
3544
- __decorate([
3545
- Transform(({ value }) => -Math.abs(+value))
3546
- ], PropertyForecast.prototype, "interest", void 0);
3547
- __decorate([
3548
- Transform(({ value }) => -Math.abs(+value))
3549
- ], PropertyForecast.prototype, "depreciation", void 0);
3550
- __decorate([
3551
- Transform(({ value }) => +value)
3552
- ], PropertyForecast.prototype, "loanBalance", void 0);
3553
- __decorate([
3554
- Transform(({ value }) => +value)
3555
- ], PropertyForecast.prototype, "marketValue", void 0);
3556
-
3557
- var PropertyShareStatusEnum;
3558
- (function (PropertyShareStatusEnum) {
3559
- PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
3560
- PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
3561
- PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
3562
- })(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
3563
-
3564
- class RegistrationInvite extends RegistrationInvite$1 {
3565
- getPhotoPlaceholder() {
3566
- return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
3567
- }
3568
- getPhoto() {
3569
- return null;
3570
- }
3571
- }
3572
-
3573
- class PropertyShare extends PropertyShare$1 {
3574
- isAccepted() {
3575
- return this.status === PropertyShareStatusEnum.APPROVED;
3576
- }
3577
- isPending() {
3578
- return this.status === PropertyShareStatusEnum.PENDING;
3579
- }
3580
- isRejected() {
3581
- return this.status === PropertyShareStatusEnum.REJECTED;
3582
- }
3583
- get statusName() {
3584
- var _a;
3585
- return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
3586
- }
3587
- /**
3588
- * Return full user name if user is already registered.
3589
- * Otherwise - return first name from invitation
3590
- */
3591
- get userName() {
3592
- return this.user ? this.user.fullName : `${this.invite.firstName}`;
3593
- }
3594
- }
3595
- __decorate([
3596
- Type(() => Date)
3597
- ], PropertyShare.prototype, "fromDate", void 0);
3598
- __decorate([
3599
- Type(() => Date)
3600
- ], PropertyShare.prototype, "toDate", void 0);
3601
- __decorate([
3602
- Type(() => User)
3603
- ], PropertyShare.prototype, "user", void 0);
3604
- __decorate([
3605
- Type(() => RegistrationInvite)
3606
- ], PropertyShare.prototype, "invite", void 0);
3607
- __decorate([
3608
- Type(() => Property)
3609
- ], PropertyShare.prototype, "property", void 0);
3610
- __decorate([
3611
- Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
3612
- ], PropertyShare.prototype, "email", void 0);
3613
-
3614
- /**
3615
- * @TODO used only on dashboard, move from tt-core
3616
- * Enum with properties ownership filter options
3617
- */
3618
- var ShareFilterOptionsEnum;
3619
- (function (ShareFilterOptionsEnum) {
3620
- ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
3621
- ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
3622
- ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
3623
- })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
3624
-
3625
- class TransactionReceipt extends TransactionReceipt$1 {
3626
- constructor() {
3627
- super(...arguments);
3628
- this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
3629
- this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
3630
- }
3631
- }
3632
-
3633
- var IncomeSourceTypeEnum;
3634
- (function (IncomeSourceTypeEnum) {
3635
- IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
3636
- IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
3637
- IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
3638
- })(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
3639
-
3640
- class SalaryForecast extends SalaryForecast$1 {
3641
- get taxWithheld() {
3642
- return this.grossAmount - this.netPay;
3643
- }
3644
- }
3645
- __decorate([
3646
- Transform(({ obj }) => obj.netPay + obj.tax),
3647
- Expose()
3648
- ], SalaryForecast.prototype, "grossAmount", void 0);
3649
- __decorate([
3650
- Type(() => IncomeSource)
3651
- ], SalaryForecast.prototype, "incomeSource", void 0);
3652
-
3653
- class SoleForecast extends SoleForecast$1 {
3654
- get netPay() {
3655
- return this.amount;
3656
- }
3657
- ;
3658
- }
3659
- __decorate([
3660
- Type(() => IncomeSource)
3661
- ], SoleForecast.prototype, "incomeSource", void 0);
3662
-
3663
- var SalaryForecastFrequencyEnum;
3664
- (function (SalaryForecastFrequencyEnum) {
3665
- SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
3666
- SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
3667
- SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
3668
- SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
3669
- })(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
3670
-
3671
- var IncomeSourceTypeListWorkEnum;
3672
- (function (IncomeSourceTypeListWorkEnum) {
3673
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
3674
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
3675
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
3676
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
3677
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
3678
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
3679
- IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
3680
- })(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
3681
-
3682
- var IncomeSourceTypeListOtherEnum;
3683
- (function (IncomeSourceTypeListOtherEnum) {
3684
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
3685
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
3686
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
3687
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
3688
- IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
3689
- })(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
3690
-
3691
- var IncomeSourceTypeListSoleEnum;
3692
- (function (IncomeSourceTypeListSoleEnum) {
3693
- IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
3694
- })(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
3695
-
3696
- class IncomeSourceType extends IncomeSourceType$1 {
3697
- isBonuses() {
3698
- return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
3699
- }
3700
- isWork() {
3701
- return !!IncomeSourceTypeListWorkEnum[this.id];
3702
- }
3703
- isOther() {
3704
- return !!IncomeSourceTypeListOtherEnum[this.id];
3705
- }
3706
- isSole() {
3707
- return !!IncomeSourceTypeListSoleEnum[this.id];
3708
- }
3709
- get type() {
3710
- switch (true) {
3711
- case this.isWork():
3712
- return IncomeSourceTypeEnum.WORK;
3713
- case this.isSole():
3714
- return IncomeSourceTypeEnum.SOLE;
3715
- default:
3716
- return IncomeSourceTypeEnum.OTHER;
3717
- }
3718
- }
3719
- }
3720
-
3721
- class IncomeSourceForecast extends IncomeSourceForecast$1 {
3722
- constructor() {
3723
- super(...arguments);
3724
- this.paygIncome = 0;
3725
- this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
3726
- this.isTaxFree = false;
3986
+ */
3987
+ get rentalReturn() {
3988
+ return this.income / this.marketValue;
3727
3989
  }
3728
3990
  /**
3729
- * Sometimes Income source has Salary & Income source forecasts,
3730
- * and we need these fields to work with Income source forecasts like with Salary Forecasts
3991
+ * Check if forecast is for real current fin year (not selected in the sidebar)
3731
3992
  */
3732
- get netPay() {
3733
- return this.amount;
3734
- }
3735
- get grossAmount() {
3736
- return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
3993
+ isCurrentYear() {
3994
+ return this.financialYear === new FinancialYear(new Date()).year;
3737
3995
  }
3738
3996
  }
3739
3997
  __decorate([
3740
- Type(() => IncomeSourceType)
3741
- ], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
3998
+ Transform(({ value }) => +value)
3999
+ ], PropertyForecast.prototype, "income", void 0);
3742
4000
  __decorate([
3743
- Type(() => IncomeSource)
3744
- ], IncomeSourceForecast.prototype, "incomeSource", void 0);
4001
+ Transform(({ value }) => -Math.abs(+value))
4002
+ ], PropertyForecast.prototype, "expense", void 0);
4003
+ __decorate([
4004
+ Transform(({ value }) => -Math.abs(+value))
4005
+ ], PropertyForecast.prototype, "interest", void 0);
4006
+ __decorate([
4007
+ Transform(({ value }) => -Math.abs(+value))
4008
+ ], PropertyForecast.prototype, "depreciation", void 0);
4009
+ __decorate([
4010
+ Transform(({ value }) => +value)
4011
+ ], PropertyForecast.prototype, "loanBalance", void 0);
4012
+ __decorate([
4013
+ Transform(({ value }) => +value)
4014
+ ], PropertyForecast.prototype, "marketValue", void 0);
3745
4015
 
3746
- class IncomeSource extends IncomeSource$1 {
3747
- isSalaryIncome() {
3748
- return !!this.salaryForecasts.length;
3749
- // @TODO Vik: old code
3750
- // return this.type === IncomeSourceTypeEnum.SALARY;
4016
+ var PropertyShareStatusEnum;
4017
+ (function (PropertyShareStatusEnum) {
4018
+ PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
4019
+ PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
4020
+ PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
4021
+ })(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
4022
+
4023
+ class RegistrationInvite extends RegistrationInvite$1 {
4024
+ getPhotoPlaceholder() {
4025
+ return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
3751
4026
  }
3752
- isSoleIncome() {
3753
- return !!this.soleForecasts.length;
4027
+ getPhoto() {
4028
+ return null;
3754
4029
  }
3755
- isWorkIncome() {
3756
- return this.type === IncomeSourceTypeEnum.WORK;
4030
+ }
4031
+
4032
+ class PropertyShare extends PropertyShare$1 {
4033
+ isAccepted() {
4034
+ return this.status === PropertyShareStatusEnum.APPROVED;
3757
4035
  }
3758
- isOtherIncome() {
3759
- return this.type === IncomeSourceTypeEnum.OTHER || (!this.isSoleIncome() && !this.isSalaryIncome());
4036
+ isPending() {
4037
+ return this.status === PropertyShareStatusEnum.PENDING;
3760
4038
  }
3761
- /**
3762
- * Get salary and other income forecasts
3763
- */
3764
- get forecasts() {
3765
- return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
4039
+ isRejected() {
4040
+ return this.status === PropertyShareStatusEnum.REJECTED;
3766
4041
  }
3767
- /**
3768
- * Get actual (1st from the list) forecast
3769
- */
3770
- get actualForecast() {
3771
- return this.forecasts[0];
4042
+ get statusName() {
4043
+ var _a;
4044
+ return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
3772
4045
  }
3773
4046
  /**
3774
- * Check if user was working in month taken by the index
3775
- * @param monthIndex by which month should be taken
4047
+ * Return full user name if user is already registered.
4048
+ * Otherwise - return first name from invitation
3776
4049
  */
3777
- isWorkedInMonth(monthIndex) {
3778
- const monthDate = new FinancialYear().getMonthDate(monthIndex);
3779
- return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
4050
+ get userName() {
4051
+ return this.user ? this.user.fullName : `${this.invite.firstName}`;
3780
4052
  }
3781
4053
  }
3782
4054
  __decorate([
3783
- Type(() => SalaryForecast)
3784
- ], IncomeSource.prototype, "salaryForecasts", void 0);
4055
+ Type(() => Date)
4056
+ ], PropertyShare.prototype, "fromDate", void 0);
3785
4057
  __decorate([
3786
- Type(() => SoleForecast)
3787
- ], IncomeSource.prototype, "soleForecasts", void 0);
4058
+ Type(() => Date)
4059
+ ], PropertyShare.prototype, "toDate", void 0);
3788
4060
  __decorate([
3789
- Type(() => IncomeSourceForecast)
3790
- ], IncomeSource.prototype, "incomeSourceForecasts", void 0);
4061
+ Type(() => User)
4062
+ ], PropertyShare.prototype, "user", void 0);
3791
4063
  __decorate([
3792
- Type(() => Date)
3793
- ], IncomeSource.prototype, "dateFrom", void 0);
4064
+ Type(() => RegistrationInvite)
4065
+ ], PropertyShare.prototype, "invite", void 0);
3794
4066
  __decorate([
3795
- Type(() => Date)
3796
- ], IncomeSource.prototype, "dateTo", void 0);
4067
+ Type(() => Property)
4068
+ ], PropertyShare.prototype, "property", void 0);
4069
+ __decorate([
4070
+ Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
4071
+ ], PropertyShare.prototype, "email", void 0);
4072
+
4073
+ /**
4074
+ * @TODO used only on dashboard, move from tt-core
4075
+ * Enum with properties ownership filter options
4076
+ */
4077
+ var ShareFilterOptionsEnum;
4078
+ (function (ShareFilterOptionsEnum) {
4079
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
4080
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
4081
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
4082
+ })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
4083
+
4084
+ class TransactionReceipt extends TransactionReceipt$1 {
4085
+ constructor() {
4086
+ super(...arguments);
4087
+ this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
4088
+ this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
4089
+ }
4090
+ }
3797
4091
 
3798
- class TransactionMetadata extends TransactionMetadata$1 {
4092
+ class TransactionMetaField extends TransactionMetaField$1 {
3799
4093
  }
3800
4094
  __decorate([
3801
- Type(() => ChartAccountsMetadata)
3802
- ], TransactionMetadata.prototype, "metadata", void 0);
4095
+ Type(() => ChartAccountsMetaField)
4096
+ ], TransactionMetaField.prototype, "metaField", void 0);
3803
4097
 
3804
4098
  /**
3805
4099
  * Enum with maximum number of payments, depending on the frequency.
@@ -4558,7 +4852,7 @@ class Transaction extends Transaction$1 {
4558
4852
  super(...arguments);
4559
4853
  // list of child transactions (fees)
4560
4854
  this.transactions = [];
4561
- this.metadata = [];
4855
+ this.metaFields = [];
4562
4856
  this.allocations = [];
4563
4857
  this.tax = 0;
4564
4858
  this.operation = TransactionOperationEnum.FIND_AND_MATCH;
@@ -4626,16 +4920,16 @@ class Transaction extends Transaction$1 {
4626
4920
  return this.chartAccounts.isVehicleExpense();
4627
4921
  }
4628
4922
  get taxFreeComponent() {
4629
- return this.getMetadataFieldValue(ChartAccountsMetadataListEnum.TAX_FREE_COMPONENT);
4923
+ return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.TAX_FREE_COMPONENT);
4630
4924
  }
4631
4925
  get frankingCredit() {
4632
- return this.getMetadataFieldValue(ChartAccountsMetadataListEnum.FRANKING_CREDIT);
4926
+ return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.FRANKING_CREDIT);
4633
4927
  }
4634
4928
  get eligibleForReduction() {
4635
- return this.getMetadataFieldValue(ChartAccountsMetadataListEnum.ELIGIBLE_FOR_REDUCTION);
4929
+ return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION);
4636
4930
  }
4637
4931
  get untaxedElement() {
4638
- return this.getMetadataFieldValue(ChartAccountsMetadataListEnum.UNTAXED_ELEMENT);
4932
+ return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.UNTAXED_ELEMENT);
4639
4933
  }
4640
4934
  /**
4641
4935
  * Check if transaction reconcile operation if TRANSFER
@@ -4657,14 +4951,14 @@ class Transaction extends Transaction$1 {
4657
4951
  return this.isCredit() ? Math.abs(this.grossAmount) : 0;
4658
4952
  }
4659
4953
  /**
4660
- * Get value of transaction metadata field
4954
+ * Get value of transaction meta field
4661
4955
  * @param field for which value should be returned
4662
- * @Todo modify 'metadata' property from array to Collection
4956
+ * @Todo modify 'metaFields' property from array to Collection
4663
4957
  */
4664
- getMetadataFieldValue(field) {
4958
+ getMetaFieldValue(field) {
4665
4959
  var _a;
4666
- return +((_a = this.metadata.find((transactionMetadata) => {
4667
- return transactionMetadata.chartAccountsMetadata.id === field;
4960
+ return +((_a = this.metaFields.find((transactionMetaField) => {
4961
+ return transactionMetaField.chartAccountsMetaField.id === field;
4668
4962
  })) === null || _a === void 0 ? void 0 : _a.value) || 0;
4669
4963
  }
4670
4964
  isCash() {
@@ -4756,8 +5050,8 @@ __decorate([
4756
5050
  Type(() => IncomeSource)
4757
5051
  ], Transaction.prototype, "incomeSource", void 0);
4758
5052
  __decorate([
4759
- Type(() => TransactionMetadata)
4760
- ], Transaction.prototype, "metadata", void 0);
5053
+ Type(() => TransactionMetaField)
5054
+ ], Transaction.prototype, "metaFields", void 0);
4761
5055
  __decorate([
4762
5056
  Type(() => Transaction)
4763
5057
  ], Transaction.prototype, "transfer", void 0);
@@ -5054,14 +5348,14 @@ class TransactionCollection extends ExportableCollection {
5054
5348
  return new TransactionCollection(this.items.filter((transaction) => transaction.date.getMonth() === monthIndex));
5055
5349
  }
5056
5350
  /**
5057
- * Get collection of transactions metadata
5351
+ * Get collection of transactions meta fields
5058
5352
  */
5059
- getTransactionsMetadata() {
5060
- const metadataArray = [];
5353
+ getTransactionsMetaFields() {
5354
+ const metaFieldsArray = [];
5061
5355
  this.items.forEach((transaction) => {
5062
- metadataArray.push(...transaction.metadata);
5356
+ metaFieldsArray.push(...transaction.metaFields);
5063
5357
  });
5064
- return new Collection(metadataArray);
5358
+ return new Collection(metaFieldsArray);
5065
5359
  }
5066
5360
  getIncomeTransactions() {
5067
5361
  return new TransactionCollection(this.items.filter((transaction) => transaction.isIncome()));
@@ -6179,6 +6473,30 @@ class AllocationGroupCollection extends Collection {
6179
6473
  }
6180
6474
  }
6181
6475
 
6476
+ class AllocationRuleCollection extends Collection {
6477
+ getExpense() {
6478
+ return this.filterBy('type', AllocationRuleTypeEnum.EXPENSE);
6479
+ }
6480
+ getIncome() {
6481
+ return this.filterBy('type', AllocationRuleTypeEnum.INCOME);
6482
+ }
6483
+ getTransfer() {
6484
+ return this.filterBy('type', AllocationRuleTypeEnum.TRANSFER);
6485
+ }
6486
+ /**
6487
+ * Get dictionary where key is bank transaction id and value is collection of matched rules.
6488
+ * Group by this way for better performance
6489
+ * @TODO Alex: break bank transactions by pagination in case of bad performance
6490
+ */
6491
+ groupByBankTransaction(bankTransactions) {
6492
+ const rulesByBankTransaction = new CollectionDictionary(new AllocationRuleCollection([]));
6493
+ bankTransactions.toArray().forEach((bankTransaction) => {
6494
+ rulesByBankTransaction.add(bankTransaction.id, this.filter((rule) => rule.matchBankTransaction(bankTransaction)));
6495
+ });
6496
+ return rulesByBankTransaction;
6497
+ }
6498
+ }
6499
+
6182
6500
  class AccountSetupItemCollection extends Collection {
6183
6501
  constructor(items) {
6184
6502
  super(compact(items));
@@ -7056,7 +7374,7 @@ class Property extends Property$1 {
7056
7374
  * in that case it's equal to market value, when property became an investment property
7057
7375
  */
7058
7376
  calculateCostBase(sale) {
7059
- const marketValue = new PropertySaleTaxExemptionMetadataCollection(sale.taxExemptionMetadata).getMarketValue();
7377
+ const marketValue = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields).getMarketValue();
7060
7378
  if (marketValue) {
7061
7379
  return marketValue;
7062
7380
  }
@@ -7097,7 +7415,7 @@ class Property extends Property$1 {
7097
7415
  */
7098
7416
  getCGTExemptionRatio(sale) {
7099
7417
  var _a;
7100
- const metadata = new PropertySaleTaxExemptionMetadataCollection(sale.taxExemptionMetadata);
7418
+ const metaFields = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields);
7101
7419
  switch ((_a = sale.taxExemption) === null || _a === void 0 ? void 0 : _a.id) {
7102
7420
  // 50% exemption for investments owned for at least one year
7103
7421
  case TaxExemptionEnum.ONE_YEAR_RULE:
@@ -7105,12 +7423,12 @@ class Property extends Property$1 {
7105
7423
  // investment property become main residence (exemption for main residence ownership duration)
7106
7424
  case TaxExemptionEnum.INVESTMENT_TO_PPR:
7107
7425
  const ownershipDays = this.getOwnershipDuration(sale);
7108
- return (ownershipDays - metadata.getPPRDays()) / ownershipDays;
7426
+ return (ownershipDays - metaFields.getPPRDays()) / ownershipDays;
7109
7427
  // main residence become investment (exemption for home office percent usage)
7110
7428
  case TaxExemptionEnum.PPR_TO_INVESTMENT:
7111
7429
  // 1 year CGT discount can still apply (on the income producing % if used for 12 months or more)
7112
7430
  const ratio = this.isOneYearExemptionApplicable(sale) ? 0.5 : 1;
7113
- return metadata.getClaimPercent() / 100 * ratio;
7431
+ return metaFields.getClaimPercent() / 100 * ratio;
7114
7432
  // full exemption
7115
7433
  case TaxExemptionEnum.PPR:
7116
7434
  case TaxExemptionEnum.SIX_YEARS_RULE:
@@ -8303,6 +8621,10 @@ class Endpoint {
8303
8621
  */
8304
8622
  const ENDPOINTS = {
8305
8623
  ASSETS_GET: new Endpoint('GET', '\\/assets\\/\.\*\\/\\d+'),
8624
+ ALLOCATION_RULES_GET: new Endpoint('GET', '\\/allocation-rules'),
8625
+ ALLOCATION_RULES_POST: new Endpoint('POST', '\\/allocation-rules'),
8626
+ ALLOCATION_RULES_PUT: new Endpoint('PUT', '\\/allocation-rules\\/\\d+'),
8627
+ ALLOCATION_RULES_DELETE: new Endpoint('DELETE', '\\/allocation-rules\\/\\d+'),
8306
8628
  BANKS_GET: new Endpoint('GET', '\\/banks'),
8307
8629
  BANK_ACCOUNTS_GET: new Endpoint('GET', '\\/bank-accounts'),
8308
8630
  BANK_ACCOUNTS_POST: new Endpoint('POST', '\\/bank-accounts'),
@@ -10665,14 +10987,14 @@ MyTaxDeductions.selfEducationNotDeductibleAmount = -250;
10665
10987
  class MyTaxDividends {
10666
10988
  constructor(transactions) {
10667
10989
  this.transactions = transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.DIVIDENDS);
10668
- this.dividendsUnfrankedAmount = this.transactions.getTransactionsMetadata()
10669
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.UNFRANKED)
10990
+ this.dividendsUnfrankedAmount = this.transactions.getTransactionsMetaFields()
10991
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.UNFRANKED)
10670
10992
  .sumBy('value');
10671
- this.dividendsFrankedAmount = this.transactions.getTransactionsMetadata()
10672
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.FRANKED)
10993
+ this.dividendsFrankedAmount = this.transactions.getTransactionsMetaFields()
10994
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKED)
10673
10995
  .sumBy('value');
10674
- this.dividendsFrankingCreditsAmount = this.transactions.getTransactionsMetadata()
10675
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.FRANKING_CREDIT)
10996
+ this.dividendsFrankingCreditsAmount = this.transactions.getTransactionsMetaFields()
10997
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
10676
10998
  .sumBy('value');
10677
10999
  this.dividendsTotalTax = this.transactions.sumBy('tax');
10678
11000
  }
@@ -10827,20 +11149,20 @@ class MyTaxOtherIncome {
10827
11149
  this.employeeShareSchemesTransactions = transactions
10828
11150
  .filterBy('chartAccounts.id', ChartAccountsListEnum.EMPLOYEE_SHARE_SCHEME_INCOME);
10829
11151
  // Employee Share Schemes data
10830
- this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
10831
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.ELIGIBLE_FOR_REDUCTION)
11152
+ this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
11153
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION)
10832
11154
  .sumBy('value');
10833
- this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
10834
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11155
+ this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
11156
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
10835
11157
  .sumBy('value');
10836
- this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
10837
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11158
+ this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
11159
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
10838
11160
  .sumBy('value');
10839
- this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.getTransactionsMetadata()
10840
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
11161
+ this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
11162
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
10841
11163
  .sumBy('value') +
10842
- this.employeeShareSchemesTransactions.getTransactionsMetadata()
10843
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
11164
+ this.employeeShareSchemesTransactions.getTransactionsMetaFields()
11165
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
10844
11166
  .sumBy('value');
10845
11167
  this.shareSchemesTotalTax = this.employeeShareSchemesTransactions.sumBy('tax');
10846
11168
  // Other income data
@@ -10883,14 +11205,14 @@ class MyTaxPartnershipsAndTrusts {
10883
11205
  this.trustsNetNonPrimaryProductionAmount = this.trustsIncomeTotalAmount - this.trustsExpenseTotalAmount;
10884
11206
  this.frankingCreditsTotal = this.transactions
10885
11207
  .filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
10886
- .getTransactionsMetadata()
10887
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.FRANKING_CREDIT)
11208
+ .getTransactionsMetaFields()
11209
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
10888
11210
  .sumBy('value');
10889
11211
  this.trustsIncomeTotalTax = this.trustsIncomes.sumBy('tax');
10890
11212
  this.frankingCreditsTotal = this.transactions
10891
11213
  .filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
10892
- .getTransactionsMetadata()
10893
- .filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.FRANKING_CREDIT)
11214
+ .getTransactionsMetaFields()
11215
+ .filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
10894
11216
  .sumBy('value');
10895
11217
  this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
10896
11218
  }
@@ -14512,6 +14834,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
14512
14834
  }] }];
14513
14835
  } });
14514
14836
 
14837
+ class AllocationRuleService extends RestService$1 {
14838
+ constructor() {
14839
+ super(...arguments);
14840
+ this.endpointUri = 'allocation-rules';
14841
+ this.collectionClass = AllocationRuleCollection;
14842
+ this.modelClass = AllocationRule;
14843
+ this.isApiPlatform = true;
14844
+ }
14845
+ }
14846
+ AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14847
+ AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
14849
+ type: Injectable,
14850
+ args: [{
14851
+ providedIn: 'root'
14852
+ }]
14853
+ }] });
14854
+
14515
14855
  // @TODO Don't look at the commented code. Will be refactored/removed during TT-1503
14516
14856
  /**
14517
14857
  * Service for transaction allocations business logic
@@ -17928,14 +18268,14 @@ class PropertySaleExemptionsForm extends AbstractForm {
17928
18268
  var _a, _b;
17929
18269
  super({
17930
18270
  taxExemption: new UntypedFormControl(taxExemptions.findBy('id', (_b = (_a = propertySale.taxExemption) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : property.getCGTExemption(propertySale))),
17931
- taxExemptionMetadata: new UntypedFormArray([]),
18271
+ taxExemptionMetaFields: new UntypedFormArray([]),
17932
18272
  netCGT: new UntypedFormControl(propertySale.netCGT)
17933
18273
  }, propertySale);
17934
18274
  this.propertySale = propertySale;
17935
18275
  this.property = property;
17936
18276
  this.taxExemptions = taxExemptions;
17937
18277
  if (propertySale.taxExemption) {
17938
- this.setFormMetadataControls();
18278
+ this.setFormMetaFieldsControls();
17939
18279
  }
17940
18280
  this.updateNetCGT();
17941
18281
  this.listenEvents();
@@ -17955,36 +18295,36 @@ class PropertySaleExemptionsForm extends AbstractForm {
17955
18295
  listenTaxExemptionUpdated() {
17956
18296
  this.get('taxExemption').valueChanges.subscribe((taxExemption) => {
17957
18297
  this.updateNetCGT();
17958
- this.setFormMetadataControls(taxExemption);
18298
+ this.setFormMetaFieldsControls(taxExemption);
17959
18299
  });
17960
18300
  }
17961
18301
  /**
17962
- * show metadata related to passed tax exemption or existing property sale metadata
18302
+ * show meta fields related to passed tax exemption or existing property sale meta fields
17963
18303
  */
17964
- setFormMetadataControls(taxExemption) {
18304
+ setFormMetaFieldsControls(taxExemption) {
17965
18305
  // use property sale tax exemption if it exists to preselect data
17966
18306
  const currentTaxExemption = this.propertySale.taxExemption ?
17967
18307
  this.taxExemptions.findBy('id', this.propertySale.taxExemption.id) :
17968
18308
  taxExemption;
17969
- const formArray = this.get('taxExemptionMetadata');
18309
+ const formArray = this.get('taxExemptionMetaFields');
17970
18310
  // clean up
17971
18311
  formArray.clear();
17972
- // show all tax exemption metadata fields
17973
- currentTaxExemption.metadata.forEach((metadata) => {
17974
- // use property sale tax exemption metadata value if it exists
17975
- const metadataValue = this.propertySale.taxExemption ?
17976
- this.propertySale.taxExemptionMetadata
17977
- .find((saleMetadata) => saleMetadata.metadata.id === metadata.id).value :
18312
+ // show all tax exemption meta fields
18313
+ currentTaxExemption.metaFields.forEach((metaField) => {
18314
+ // use property sale tax exemption meta field value if it exists
18315
+ const metaFieldValue = this.propertySale.taxExemption ?
18316
+ this.propertySale.taxExemptionMetaFields
18317
+ .find((saleMetaField) => saleMetaField.metaField.id === metaField.id).value :
17978
18318
  null;
17979
18319
  const validators = [
17980
18320
  // claim percent is optional
17981
- metadata.id !== TaxExemptionMetadataEnum.CLAIM_PERCENT && Validators.required,
18321
+ metaField.id !== TaxExemptionMetaFieldEnum.CLAIM_PERCENT && Validators.required,
17982
18322
  // ppr days can't be more than ownership days
17983
- metadata.id === TaxExemptionMetadataEnum.PPR_DAYS && Validators.max(this.property.getOwnershipDuration(this.propertySale))
18323
+ metaField.id === TaxExemptionMetaFieldEnum.PPR_DAYS && Validators.max(this.property.getOwnershipDuration(this.propertySale))
17984
18324
  ].filter(Boolean);
17985
18325
  formArray.push(new UntypedFormGroup({
17986
- metadata: new UntypedFormControl(metadata),
17987
- value: new UntypedFormControl(metadataValue, validators)
18326
+ metaField: new UntypedFormControl(metaField),
18327
+ value: new UntypedFormControl(metaFieldValue, validators)
17988
18328
  }));
17989
18329
  });
17990
18330
  }
@@ -18682,6 +19022,268 @@ var FormValidationsEnum;
18682
19022
  FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
18683
19023
  })(FormValidationsEnum || (FormValidationsEnum = {}));
18684
19024
 
19025
+ class AllocationRuleConditionForm extends AbstractForm {
19026
+ constructor(condition = plainToClass(AllocationRuleCondition, {})) {
19027
+ super({
19028
+ field: new UntypedFormControl(condition.field, Validators.required),
19029
+ comparisonOperator: new UntypedFormControl(condition.comparisonOperator, Validators.required),
19030
+ value: new UntypedFormControl(condition.value, Validators.required)
19031
+ }, condition);
19032
+ }
19033
+ }
19034
+
19035
+ class AllocationRuleTransactionMetaFieldForm extends AbstractForm {
19036
+ constructor(metaField = plainToClass(AllocationRuleTransactionMetaField, {})) {
19037
+ super({
19038
+ value: new UntypedFormControl(metaField.value)
19039
+ }, metaField);
19040
+ }
19041
+ }
19042
+
19043
+ /**
19044
+ * @TODO Alex: extend transaction form(s) when transaction forms refactored
19045
+ */
19046
+ class AllocationRuleTransactionForm extends AbstractForm {
19047
+ constructor(transaction,
19048
+ // Flag to enable transaction GST field
19049
+ isGST) {
19050
+ super({
19051
+ amount: new UntypedFormControl(null),
19052
+ tax: new UntypedFormControl(transaction.tax || 0, Validators.required),
19053
+ claimPercent: new UntypedFormControl(transaction.claimPercent || 100, [Validators.required, Validators.min(0), Validators.max(100)]),
19054
+ chartAccounts: new UntypedFormControl(transaction.chartAccounts, Validators.required),
19055
+ isGST: new UntypedFormControl({ value: transaction.isGST || false, disabled: !isGST }),
19056
+ loan: new UntypedFormControl(transaction.loan),
19057
+ incomeSource: new UntypedFormControl(transaction.incomeSource, conditionalValidator(() => { var _a; return (_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isWorkIncome(); }, Validators.required)),
19058
+ metaFields: new UntypedFormArray((transaction.metaFields || []).map((metaField) => new AllocationRuleTransactionMetaFieldForm(metaField))),
19059
+ business: new UntypedFormControl(transaction.business, Validators.required),
19060
+ property: new UntypedFormControl(transaction.property, Validators.required),
19061
+ // Show null as default value for new transaction to avoid preselecting of not allowed tank types
19062
+ tankType: new UntypedFormControl(transaction.id ? transaction.tankType : null, Validators.required),
19063
+ childTransactions: new UntypedFormArray((transaction.childTransactions || []).map((childTransaction) => new UntypedFormGroup({
19064
+ chartAccounts: new UntypedFormControl(childTransaction.chartAccounts, Validators.required),
19065
+ amount: new UntypedFormControl(childTransaction.amount, Validators.required)
19066
+ })))
19067
+ }, transaction);
19068
+ this.listenEvents();
19069
+ }
19070
+ /**
19071
+ * @TODO Alex: move to abstract form, universal method getArray(arrayName)
19072
+ */
19073
+ get metaFieldsArray() {
19074
+ return this.get('metaFields');
19075
+ }
19076
+ get childTransactionsArray() {
19077
+ return this.get('childTransactions');
19078
+ }
19079
+ addChildTransactionForm() {
19080
+ this.childTransactionsArray.push(new UntypedFormGroup({
19081
+ chartAccounts: new UntypedFormControl(null, Validators.required),
19082
+ amount: new UntypedFormControl(null, Validators.required)
19083
+ }));
19084
+ }
19085
+ submit() {
19086
+ const data = {
19087
+ metaFields: this.metaFieldsArray.controls.map((metaFieldForm) => metaFieldForm.submit())
19088
+ };
19089
+ return super.submit(data);
19090
+ }
19091
+ listenEvents() {
19092
+ this.listenChartAccountsChanges();
19093
+ this.listenTankTypeChanges();
19094
+ this.listenIncomeSourceChanges();
19095
+ this.listenPropertyChanges();
19096
+ }
19097
+ listenChartAccountsChanges() {
19098
+ this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
19099
+ this.get('incomeSource').removeValidators(Validators.required);
19100
+ if (!chartAccounts) {
19101
+ return;
19102
+ }
19103
+ this.updateClaimPercent();
19104
+ // User have to select income source for work income
19105
+ if (chartAccounts.isWorkIncome()) {
19106
+ this.get('incomeSource').setValidators(Validators.required);
19107
+ }
19108
+ // Rebuild meta fields
19109
+ this.metaFieldsArray.clear();
19110
+ chartAccounts.metaFields.forEach((chartAccountsMetaField) => {
19111
+ this.metaFieldsArray.push(new AllocationRuleTransactionMetaFieldForm(plainToClass(AllocationRuleTransactionMetaField, { chartAccountsMetaField })));
19112
+ });
19113
+ });
19114
+ }
19115
+ /**
19116
+ * Child transaction allowance depends on tank type.
19117
+ * Also chart accounts are different, so we just reset child transactions when tank type changed
19118
+ */
19119
+ listenTankTypeChanges() {
19120
+ this.get('tankType').valueChanges.subscribe(() => {
19121
+ this.childTransactionsArray.reset();
19122
+ });
19123
+ }
19124
+ /**
19125
+ * Set tax automatically when salary income source selected
19126
+ */
19127
+ listenIncomeSourceChanges() {
19128
+ this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
19129
+ if (!incomeSource) {
19130
+ this.get('tax').setValue(0);
19131
+ return;
19132
+ }
19133
+ // prefill salary tax with its income source forecast
19134
+ if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
19135
+ this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
19136
+ }
19137
+ });
19138
+ }
19139
+ listenPropertyChanges() {
19140
+ this.get('property').valueChanges.subscribe(() => {
19141
+ this.updateClaimPercent();
19142
+ });
19143
+ }
19144
+ /**
19145
+ * Update claim percent value and state depends on business logic
19146
+ */
19147
+ updateClaimPercent() {
19148
+ const claimPercentControl = this.get('claimPercent');
19149
+ // claim percent is changeable only for work and sole expenses except vehicle and personal
19150
+ claimPercentControl.disable();
19151
+ if (!this.currentValue.chartAccounts) {
19152
+ return;
19153
+ }
19154
+ if (this.currentValue.chartAccounts.isClaimPercentEditable()) {
19155
+ claimPercentControl.enable();
19156
+ }
19157
+ claimPercentControl.setValue(this.currentValue.calculateClaimPercent());
19158
+ }
19159
+ }
19160
+
19161
+ class AllocationRuleForm extends AbstractForm {
19162
+ constructor(
19163
+ // rule is required because we have to keep bank account relation
19164
+ rule,
19165
+ // Flag to enable transaction GST field
19166
+ isGST) {
19167
+ var _a, _b;
19168
+ super({
19169
+ type: new UntypedFormControl(rule.type, Validators.required),
19170
+ name: new UntypedFormControl(rule.name, Validators.required),
19171
+ conditionOperator: new UntypedFormControl(rule.conditionOperator, Validators.required),
19172
+ conditions: new UntypedFormArray((rule.conditions || [plainToClass(AllocationRuleCondition, {})])
19173
+ .map((condition) => new AllocationRuleConditionForm(condition))),
19174
+ transaction: new AllocationRuleTransactionForm(rule.transaction || plainToClass(AllocationRuleTransaction, {}), isGST),
19175
+ transferBankAccount: new UntypedFormControl(rule.transferBankAccount, Validators.required),
19176
+ autoAllocate: new UntypedFormControl(rule.autoAllocate || false, Validators.required)
19177
+ }, rule);
19178
+ this.isGST = isGST;
19179
+ this.listenEvents();
19180
+ this.setupFieldsByType(rule.type);
19181
+ this.setupFieldsByTankType((_a = rule.transaction) === null || _a === void 0 ? void 0 : _a.tankType);
19182
+ this.updateChartAccountsCategories();
19183
+ if (!((_b = this.transactionFormGroup.get('chartAccounts').value) === null || _b === void 0 ? void 0 : _b.isClaimPercentEditable())) {
19184
+ this.transactionFormGroup.get('claimPercent').disable();
19185
+ }
19186
+ }
19187
+ get conditionsArray() {
19188
+ return this.get('conditions');
19189
+ }
19190
+ get childTransactionsArray() {
19191
+ return this.transactionFormGroup.get('childTransactions');
19192
+ }
19193
+ get transactionFormGroup() {
19194
+ return this.get('transaction');
19195
+ }
19196
+ addConditionForm() {
19197
+ this.conditionsArray.push(new AllocationRuleConditionForm());
19198
+ }
19199
+ isTaxFieldHidden() {
19200
+ const chartAccounts = this.transactionFormGroup.get('chartAccounts').value;
19201
+ return !chartAccounts || !chartAccounts.isTaxable();
19202
+ }
19203
+ /**
19204
+ * TODO Alex: disable sole tank in form control when income selected
19205
+ */
19206
+ isTransactionFieldsHidden() {
19207
+ return this.transactionFormGroup.get('tankType').value === null || this.currentValue.isSoleIncome();
19208
+ }
19209
+ submit() {
19210
+ const data = {
19211
+ conditions: this.conditionsArray.controls.map((conditionForm) => conditionForm.submit()),
19212
+ transaction: null
19213
+ };
19214
+ if (!this.currentValue.isTransfer()) {
19215
+ data.transaction = this.transactionFormGroup.submit();
19216
+ }
19217
+ return super.submit(data);
19218
+ }
19219
+ listenEvents() {
19220
+ this.listenTankTypeChanges();
19221
+ this.listenTypeChanges();
19222
+ }
19223
+ listenTypeChanges() {
19224
+ this.get('type').valueChanges.subscribe((type) => {
19225
+ this.setupFieldsByType(type);
19226
+ this.updateChartAccountsCategories();
19227
+ // we have different fields for different types
19228
+ this.get('transaction').reset();
19229
+ });
19230
+ }
19231
+ listenTankTypeChanges() {
19232
+ this.transactionFormGroup.get('tankType').valueChanges.subscribe((tankType) => {
19233
+ this.updateChartAccountsCategories();
19234
+ this.setupFieldsByTankType(tankType);
19235
+ });
19236
+ }
19237
+ /**
19238
+ * Update list of chart accounts categories allowed for transaction
19239
+ * Depends on transaction type and tank type
19240
+ */
19241
+ updateChartAccountsCategories() {
19242
+ // We use unique one Chart Accounts for transfer
19243
+ if (this.currentValue.isTransfer()) {
19244
+ this.chartAccountsCategories = null;
19245
+ return;
19246
+ }
19247
+ const excludedCategories = [...CHART_ACCOUNTS_CATEGORIES.depreciation];
19248
+ this.chartAccountsCategories = intersection(CHART_ACCOUNTS_CATEGORIES[this.currentValue.typeLabel], CHART_ACCOUNTS_CATEGORIES[this.currentValue.tankTypeLabel])
19249
+ .filter((category) => !excludedCategories.includes(category));
19250
+ }
19251
+ setupFieldsByType(type) {
19252
+ switch (type) {
19253
+ case AllocationRuleTypeEnum.EXPENSE:
19254
+ case AllocationRuleTypeEnum.INCOME:
19255
+ this.get('transaction').enable({ emitEvent: false });
19256
+ this.get('transferBankAccount').disable({ emitEvent: false });
19257
+ break;
19258
+ case AllocationRuleTypeEnum.TRANSFER:
19259
+ this.get('transaction').disable({ emitEvent: false });
19260
+ this.get('transferBankAccount').enable({ emitEvent: false });
19261
+ return;
19262
+ }
19263
+ }
19264
+ setupFieldsByTankType(tankType) {
19265
+ // First disable tankType-related fields, second enable for selected tank type
19266
+ this.transactionFormGroup.get('property').disable({ emitEvent: false });
19267
+ this.transactionFormGroup.get('business').disable({ emitEvent: false });
19268
+ this.transactionFormGroup.get('isGST').disable({ emitEvent: false });
19269
+ this.transactionFormGroup.get('incomeSource').disable({ emitEvent: false });
19270
+ switch (tankType) {
19271
+ case TankTypeEnum.WORK:
19272
+ this.transactionFormGroup.get('incomeSource').enable({ emitEvent: false });
19273
+ break;
19274
+ case TankTypeEnum.PROPERTY:
19275
+ this.transactionFormGroup.get('property').enable({ emitEvent: false });
19276
+ break;
19277
+ case TankTypeEnum.SOLE:
19278
+ this.transactionFormGroup.get('business').enable({ emitEvent: false });
19279
+ if (this.isGST) {
19280
+ this.transactionFormGroup.get('isGST').enable({ emitEvent: false });
19281
+ }
19282
+ break;
19283
+ }
19284
+ }
19285
+ }
19286
+
18685
19287
  /**
18686
19288
  * @TODO refactor, move specific fields like property in separated forms
18687
19289
  * @TODO remove useless getters
@@ -18844,10 +19446,10 @@ class WorkTransactionForm extends TransactionForm {
18844
19446
  constructor(transaction, registeredForGst, allocations, controls = {}) {
18845
19447
  super(transaction, registeredForGst, allocations, Object.assign(controls, {
18846
19448
  // additional data related to work (like tax instalments)
18847
- metadata: new FormArray((transaction.metadata || []).map((transactionMetadata) => {
19449
+ metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
18848
19450
  return new FormGroup({
18849
- value: new FormControl(transactionMetadata.value),
18850
- chartAccountsMetadata: new FormControl(transactionMetadata.chartAccountsMetadata)
19451
+ value: new FormControl(transactionMetaField.value),
19452
+ chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
18851
19453
  });
18852
19454
  }))
18853
19455
  }));
@@ -18859,20 +19461,20 @@ class WorkTransactionForm extends TransactionForm {
18859
19461
  watchChartAccounts() {
18860
19462
  super.watchChartAccounts();
18861
19463
  this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
18862
- this.buildMetadataForm();
19464
+ this.buildMetaFieldsForm();
18863
19465
  });
18864
19466
  }
18865
19467
  /**
18866
19468
  * depends on chartAccounts the form could include different extra fields
18867
19469
  */
18868
- buildMetadataForm() {
19470
+ buildMetaFieldsForm() {
18869
19471
  // Remove all controls in the FormArray before pushing
18870
- this.get('metadata').clear();
18871
- // create form controls for each metadata object from selected chart accounts
18872
- (this.get('chartAccounts').value.metadata).forEach((chartAccountsMetadata) => {
18873
- this.get('metadata').push(new FormGroup({
18874
- value: new FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
18875
- chartAccountsMetadata: new FormControl(chartAccountsMetadata),
19472
+ this.get('metaFields').clear();
19473
+ // create form controls for each metaField object from selected chart accounts
19474
+ (this.get('chartAccounts').value.metaFields).forEach((chartAccountsMetaField) => {
19475
+ this.get('metaFields').push(new FormGroup({
19476
+ value: new FormControl(chartAccountsMetaField.isSharePercentage() ? 100 : 0),
19477
+ chartAccountsMetaField: new FormControl(chartAccountsMetaField),
18876
19478
  }));
18877
19479
  });
18878
19480
  }
@@ -18962,24 +19564,24 @@ class WorkIncomeForm extends WorkTransactionForm {
18962
19564
  class WorkExpenseForm extends WorkTransactionForm {
18963
19565
  constructor(transaction, registeredForGst, allocations, controls = {}) {
18964
19566
  super(transaction, registeredForGst, allocations, controls);
18965
- // amount set automatically for chartAccounts with hours metadata
18966
- if (transaction.getMetadataFieldValue(ChartAccountsMetadataListEnum.HOURS)) {
19567
+ // amount set automatically for chartAccounts with hours meta field
19568
+ if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
18967
19569
  this.get('amount').disable();
18968
19570
  }
18969
19571
  }
18970
19572
  listenEvents() {
18971
- this.watchChartAccountsMetadata();
19573
+ this.watchChartAccountsMetaFields();
18972
19574
  }
18973
- watchChartAccountsMetadata() {
18974
- this.get('metadata').valueChanges.subscribe((metadata) => {
18975
- const hoursMetadata = new Collection(metadata).findBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.HOURS);
18976
- if (!hoursMetadata) {
19575
+ watchChartAccountsMetaFields() {
19576
+ this.get('metaFields').valueChanges.subscribe((metaFields) => {
19577
+ const hoursMetaField = new Collection(metaFields).findBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.HOURS);
19578
+ if (!hoursMetaField) {
18977
19579
  return;
18978
19580
  }
18979
19581
  // for home office hours expense amount is a fixed rate per hour
18980
19582
  this.get('amount').reset();
18981
19583
  this.get('amount').disable();
18982
- this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +hoursMetadata.value).toFixed(2));
19584
+ this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +hoursMetaField.value).toFixed(2));
18983
19585
  });
18984
19586
  }
18985
19587
  }
@@ -19025,5 +19627,5 @@ class DepreciationForm extends TransactionBaseForm {
19025
19627
  * Generated bundle index. Do not edit.
19026
19628
  */
19027
19629
 
19028
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, StripePromoCode, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
19630
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, StripePromoCode, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
19029
19631
  //# sourceMappingURL=taxtank-core.mjs.map