taxtank-core 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/bundles/taxtank-core.umd.js +180 -134
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/tax-summary/report-item.collection.js +141 -0
  4. package/esm2015/lib/db/Models/transaction-base.js +2 -1
  5. package/esm2015/lib/models/tax-summary/report-item-details.js +9 -0
  6. package/esm2015/lib/models/tax-summary/report-item.js +15 -0
  7. package/esm2015/lib/models/tax-summary/tax-summary-section.js +5 -5
  8. package/esm2015/lib/models/toast/toast-type.enum.js +8 -0
  9. package/esm2015/lib/models/toast/toast.js +9 -0
  10. package/esm2015/lib/services/http/address/address.service.js +39 -0
  11. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +118 -0
  12. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +52 -0
  13. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +89 -0
  14. package/esm2015/lib/services/http/bank/bank.service.js +24 -0
  15. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +94 -0
  16. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +38 -0
  17. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +89 -0
  18. package/esm2015/lib/services/http/chat/chat.service.js +77 -0
  19. package/esm2015/lib/services/http/chat/message/message.service.js +65 -0
  20. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +118 -0
  21. package/esm2015/lib/services/{depreciation/capital-project.service.js → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js} +7 -7
  22. package/esm2015/lib/services/http/depreciation/depreciation.service.js +146 -0
  23. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +84 -0
  24. package/esm2015/lib/services/{client → http/firm/client-invite}/client-invite.service.js +7 -7
  25. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +98 -0
  26. package/esm2015/lib/services/http/firm/employee/employee.service.js +39 -0
  27. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +53 -0
  28. package/esm2015/lib/services/http/firm/firm.service.js +79 -0
  29. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +37 -0
  30. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +90 -0
  31. package/esm2015/lib/services/http/income-source/income-source.service.js +109 -0
  32. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +90 -0
  33. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +87 -0
  34. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +73 -0
  35. package/esm2015/lib/services/http/loan/loan.service.js +145 -0
  36. package/esm2015/lib/services/http/property/property-category/property-category.service.js +23 -0
  37. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +47 -0
  38. package/esm2015/lib/services/http/property/property-document/property-document.service.js +70 -0
  39. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +20 -0
  40. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +21 -0
  41. package/esm2015/lib/services/http/property/property-share/property-share.service.js +115 -0
  42. package/esm2015/lib/services/http/property/property.service.js +126 -0
  43. package/esm2015/lib/services/http/rest/rest.service.js +190 -0
  44. package/esm2015/lib/services/http/service-notification/service-notification.service.js +65 -0
  45. package/esm2015/lib/services/http/subscription/subscription.service.js +157 -0
  46. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +41 -0
  47. package/esm2015/lib/services/http/tax-review/tax-review.service.js +103 -0
  48. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +71 -0
  49. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +85 -0
  50. package/esm2015/lib/services/http/transaction/transaction.service.js +319 -0
  51. package/esm2015/lib/services/http/user/occupation/occupation.service.js +45 -0
  52. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +59 -0
  53. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +29 -0
  54. package/esm2015/lib/services/http/user/user.service.js +124 -0
  55. package/esm2015/lib/services/http/vehicle/vehicle.service.js +237 -0
  56. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +45 -0
  57. package/esm2015/lib/services/toast/toast.service.js +26 -0
  58. package/esm2015/public-api.js +54 -51
  59. package/fesm2015/taxtank-core.js +98 -56
  60. package/fesm2015/taxtank-core.js.map +1 -1
  61. package/lib/collections/{tax-return-category-item.collection.d.ts → tax-summary/report-item.collection.d.ts} +5 -5
  62. package/lib/models/tax-summary/{tax-return-category-item-details.d.ts → report-item-details.d.ts} +2 -2
  63. package/lib/models/tax-summary/{tax-return-category-item.d.ts → report-item.d.ts} +4 -4
  64. package/lib/models/tax-summary/tax-summary-section.d.ts +2 -2
  65. package/lib/models/toast/toast-type.enum.d.ts +6 -0
  66. package/lib/models/toast/toast.d.ts +10 -0
  67. package/lib/services/{address → http/address}/address.service.d.ts +1 -1
  68. package/lib/services/{bank → http/bank/bank-account}/bank-account.service.d.ts +5 -5
  69. package/lib/services/{bank → http/bank/bank-connection}/bank-connection.service.d.ts +5 -5
  70. package/lib/services/{bank → http/bank/bank-transaction}/bank-transaction.service.d.ts +5 -5
  71. package/lib/services/{bank → http/bank}/bank.service.d.ts +4 -4
  72. package/lib/services/{bank → http/bank/basiq}/basiq.service.d.ts +7 -7
  73. package/lib/services/{chart-accounts → http/chart-accounts/chart-accounts-depreciations}/chart-accounts-depreciations.service.d.ts +4 -4
  74. package/lib/services/{chart-accounts → http/chart-accounts}/chart-accounts.service.d.ts +3 -3
  75. package/lib/services/{chat → http/chat}/chat.service.d.ts +7 -7
  76. package/lib/services/{chat → http/chat/message}/message.service.d.ts +7 -7
  77. package/lib/services/{chat → http/chat/message-document}/message-document.service.d.ts +3 -3
  78. package/lib/services/{depreciation/capital-project.service.d.ts → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts} +4 -4
  79. package/lib/services/{depreciation → http/depreciation}/depreciation.service.d.ts +5 -5
  80. package/lib/services/{document → http/document/document-folder}/document-folder.service.d.ts +6 -6
  81. package/lib/services/{client → http/firm/client-invite}/client-invite.service.d.ts +4 -4
  82. package/lib/services/{client → http/firm/client-movement}/client-movement.service.d.ts +7 -7
  83. package/lib/services/{employee → http/firm/employee}/employee.service.d.ts +4 -4
  84. package/lib/services/{employee → http/firm/employee-invite}/employee-invite.service.d.ts +4 -4
  85. package/lib/services/{firm → http/firm}/firm.service.d.ts +2 -2
  86. package/lib/services/{client → http/firm/portfolio-report}/client-portfolio-report.service.d.ts +1 -1
  87. package/lib/services/{income-source → http/income-source/income-source-forecast}/income-source-forecast.service.d.ts +5 -5
  88. package/lib/services/{income-source → http/income-source}/income-source.service.d.ts +8 -8
  89. package/lib/services/{income-source → http/income-source/salary-forecast}/salary-forecast.service.d.ts +6 -6
  90. package/lib/services/{income-source → http/income-source/sole-forecast}/sole-forecast.service.d.ts +5 -5
  91. package/lib/services/{borrowing-expense → http/loan/borrowing-expense}/borrowing-expense.service.d.ts +2 -2
  92. package/lib/services/{loan → http/loan}/loan.service.d.ts +6 -6
  93. package/lib/services/{property → http/property}/property-category/property-category.service.d.ts +4 -4
  94. package/lib/services/{property → http/property/property-category-movement}/property-category-movement.service.d.ts +4 -4
  95. package/lib/services/{property → http/property}/property-document/property-document.service.d.ts +5 -5
  96. package/lib/services/http/property/property-sale/property-sale.service.d.ts +10 -0
  97. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +11 -0
  98. package/lib/services/{property → http/property}/property-share/property-share.service.d.ts +5 -5
  99. package/lib/services/{property → http/property}/property.service.d.ts +5 -5
  100. package/lib/services/{base-rest.service.d.ts → http/rest/rest.service.d.ts} +4 -4
  101. package/lib/services/http/service-notification/service-notification.service.d.ts +31 -0
  102. package/lib/services/{subscription → http/subscription}/subscription.service.d.ts +6 -6
  103. package/lib/services/{tax-review → http/tax-review/tax-review-history}/tax-review-history.service.d.ts +5 -5
  104. package/lib/services/{tax-review → http/tax-review}/tax-review.service.d.ts +6 -6
  105. package/lib/services/{tax-summary → http/tax-summary}/tax-summary.service.d.ts +2 -2
  106. package/lib/services/{transaction → http/transaction/transaction-allocation}/transaction-allocation.service.d.ts +6 -6
  107. package/lib/services/{transaction → http/transaction}/transaction.service.d.ts +7 -7
  108. package/lib/services/{user → http/user/occupation}/occupation.service.d.ts +1 -1
  109. package/lib/services/{user-event → http/user/user-event-setting}/user-event-setting.service.d.ts +5 -5
  110. package/lib/services/{user-event → http/user/user-event-type}/user-event-type.service.d.ts +5 -5
  111. package/lib/services/{user → http/user}/user.service.d.ts +3 -3
  112. package/lib/services/{work/work-tank.service.d.ts → http/vehicle/vehicle.service.d.ts} +9 -8
  113. package/lib/services/property/{equity-position-chart.service.d.ts → equity-position-chart/equity-position-chart.service.d.ts} +1 -1
  114. package/lib/services/toast/toast.service.d.ts +13 -0
  115. package/package.json +1 -1
  116. package/public-api.d.ts +53 -50
  117. package/esm2015/lib/collections/tax-return-category-item.collection.js +0 -141
  118. package/esm2015/lib/models/tax-summary/tax-return-category-item-details.js +0 -9
  119. package/esm2015/lib/models/tax-summary/tax-return-category-item.js +0 -15
  120. package/esm2015/lib/services/address/address.service.js +0 -39
  121. package/esm2015/lib/services/bank/bank-account.service.js +0 -118
  122. package/esm2015/lib/services/bank/bank-connection.service.js +0 -52
  123. package/esm2015/lib/services/bank/bank-transaction.service.js +0 -89
  124. package/esm2015/lib/services/bank/bank.service.js +0 -24
  125. package/esm2015/lib/services/bank/basiq.service.js +0 -94
  126. package/esm2015/lib/services/base-rest.service.js +0 -190
  127. package/esm2015/lib/services/borrowing-expense/borrowing-expense.service.js +0 -73
  128. package/esm2015/lib/services/chart-accounts/chart-accounts-depreciations.service.js +0 -38
  129. package/esm2015/lib/services/chart-accounts/chart-accounts.service.js +0 -89
  130. package/esm2015/lib/services/chat/chat.service.js +0 -77
  131. package/esm2015/lib/services/chat/message-document.service.js +0 -118
  132. package/esm2015/lib/services/chat/message.service.js +0 -65
  133. package/esm2015/lib/services/client/client-movement.service.js +0 -98
  134. package/esm2015/lib/services/client/client-portfolio-report.service.js +0 -37
  135. package/esm2015/lib/services/depreciation/depreciation.service.js +0 -146
  136. package/esm2015/lib/services/document/document-folder.service.js +0 -84
  137. package/esm2015/lib/services/employee/employee-invite.service.js +0 -53
  138. package/esm2015/lib/services/employee/employee.service.js +0 -39
  139. package/esm2015/lib/services/firm/firm.service.js +0 -79
  140. package/esm2015/lib/services/income-source/income-source-forecast.service.js +0 -90
  141. package/esm2015/lib/services/income-source/income-source.service.js +0 -109
  142. package/esm2015/lib/services/income-source/salary-forecast.service.js +0 -90
  143. package/esm2015/lib/services/income-source/sole-forecast.service.js +0 -87
  144. package/esm2015/lib/services/loan/loan.service.js +0 -145
  145. package/esm2015/lib/services/notification/notification.service.js +0 -65
  146. package/esm2015/lib/services/property/equity-position-chart.service.js +0 -45
  147. package/esm2015/lib/services/property/property-category/property-category.service.js +0 -23
  148. package/esm2015/lib/services/property/property-category-movement.service.js +0 -47
  149. package/esm2015/lib/services/property/property-document/property-document.service.js +0 -70
  150. package/esm2015/lib/services/property/property-sale/property-sale.service.js +0 -20
  151. package/esm2015/lib/services/property/property-sale/tax-exemption/tax-exemption.service.js +0 -21
  152. package/esm2015/lib/services/property/property-share/property-share.service.js +0 -115
  153. package/esm2015/lib/services/property/property.service.js +0 -126
  154. package/esm2015/lib/services/subscription/subscription.service.js +0 -157
  155. package/esm2015/lib/services/tax-review/tax-review-history.service.js +0 -41
  156. package/esm2015/lib/services/tax-review/tax-review.service.js +0 -103
  157. package/esm2015/lib/services/tax-summary/tax-summary.service.js +0 -71
  158. package/esm2015/lib/services/transaction/transaction-allocation.service.js +0 -85
  159. package/esm2015/lib/services/transaction/transaction.service.js +0 -319
  160. package/esm2015/lib/services/user/occupation.service.js +0 -45
  161. package/esm2015/lib/services/user/user.service.js +0 -124
  162. package/esm2015/lib/services/user-event/user-event-setting.service.js +0 -59
  163. package/esm2015/lib/services/user-event/user-event-type.service.js +0 -29
  164. package/esm2015/lib/services/work/work-tank.service.js +0 -236
  165. package/lib/services/notification/notification.service.d.ts +0 -31
  166. package/lib/services/property/property-sale/property-sale.service.d.ts +0 -10
  167. package/lib/services/property/property-sale/tax-exemption/tax-exemption.service.d.ts +0 -11
@@ -2536,12 +2536,12 @@
2536
2536
  /**
2537
2537
  * collection for tax return category items
2538
2538
  */
2539
- var TaxReturnCategoryItemCollection = /** @class */ (function (_super) {
2540
- __extends(TaxReturnCategoryItemCollection, _super);
2541
- function TaxReturnCategoryItemCollection() {
2539
+ var ReportItemCollection = /** @class */ (function (_super) {
2540
+ __extends(ReportItemCollection, _super);
2541
+ function ReportItemCollection() {
2542
2542
  return _super !== null && _super.apply(this, arguments) || this;
2543
2543
  }
2544
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "salary", {
2544
+ Object.defineProperty(ReportItemCollection.prototype, "salary", {
2545
2545
  /**
2546
2546
  * Work income
2547
2547
  */
@@ -2552,7 +2552,7 @@
2552
2552
  enumerable: false,
2553
2553
  configurable: true
2554
2554
  });
2555
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "workExpenses", {
2555
+ Object.defineProperty(ReportItemCollection.prototype, "workExpenses", {
2556
2556
  /**
2557
2557
  * Work expenses
2558
2558
  */
@@ -2563,7 +2563,7 @@
2563
2563
  enumerable: false,
2564
2564
  configurable: true
2565
2565
  });
2566
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "rentalIncome", {
2566
+ Object.defineProperty(ReportItemCollection.prototype, "rentalIncome", {
2567
2567
  /**
2568
2568
  * Property income
2569
2569
  */
@@ -2574,7 +2574,7 @@
2574
2574
  enumerable: false,
2575
2575
  configurable: true
2576
2576
  });
2577
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "rentalDeductions", {
2577
+ Object.defineProperty(ReportItemCollection.prototype, "rentalDeductions", {
2578
2578
  /**
2579
2579
  * Property rental deductions
2580
2580
  */
@@ -2585,7 +2585,7 @@
2585
2585
  enumerable: false,
2586
2586
  configurable: true
2587
2587
  });
2588
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "propertyExpenses", {
2588
+ Object.defineProperty(ReportItemCollection.prototype, "propertyExpenses", {
2589
2589
  /**
2590
2590
  * Property expenses
2591
2591
  */
@@ -2595,7 +2595,7 @@
2595
2595
  enumerable: false,
2596
2596
  configurable: true
2597
2597
  });
2598
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "interestDeductions", {
2598
+ Object.defineProperty(ReportItemCollection.prototype, "interestDeductions", {
2599
2599
  /**
2600
2600
  * Property interest
2601
2601
  */
@@ -2606,7 +2606,7 @@
2606
2606
  enumerable: false,
2607
2607
  configurable: true
2608
2608
  });
2609
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "capitalWorks", {
2609
+ Object.defineProperty(ReportItemCollection.prototype, "capitalWorks", {
2610
2610
  /**
2611
2611
  * Property capital works depreciations
2612
2612
  */
@@ -2617,7 +2617,7 @@
2617
2617
  enumerable: false,
2618
2618
  configurable: true
2619
2619
  });
2620
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "plantEquipment", {
2620
+ Object.defineProperty(ReportItemCollection.prototype, "plantEquipment", {
2621
2621
  /**
2622
2622
  * Property plant & equipment depreciations
2623
2623
  */
@@ -2628,7 +2628,7 @@
2628
2628
  enumerable: false,
2629
2629
  configurable: true
2630
2630
  });
2631
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "propertyDepreciations", {
2631
+ Object.defineProperty(ReportItemCollection.prototype, "propertyDepreciations", {
2632
2632
  /**
2633
2633
  * Total property depreciaions
2634
2634
  */
@@ -2638,7 +2638,7 @@
2638
2638
  enumerable: false,
2639
2639
  configurable: true
2640
2640
  });
2641
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "partnershipsAndTrusts", {
2641
+ Object.defineProperty(ReportItemCollection.prototype, "partnershipsAndTrusts", {
2642
2642
  get: function () {
2643
2643
  var _a;
2644
2644
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.PARTNERSHIPS_TRUSTS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2646,7 +2646,7 @@
2646
2646
  enumerable: false,
2647
2647
  configurable: true
2648
2648
  });
2649
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "pciAndSbeIncome", {
2649
+ Object.defineProperty(ReportItemCollection.prototype, "pciAndSbeIncome", {
2650
2650
  get: function () {
2651
2651
  var _a;
2652
2652
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.PCI_SBE_INCOME)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2654,7 +2654,7 @@
2654
2654
  enumerable: false,
2655
2655
  configurable: true
2656
2656
  });
2657
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "capitalGains", {
2657
+ Object.defineProperty(ReportItemCollection.prototype, "capitalGains", {
2658
2658
  get: function () {
2659
2659
  var _a;
2660
2660
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.CAPITAL_GAINS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2662,7 +2662,7 @@
2662
2662
  enumerable: false,
2663
2663
  configurable: true
2664
2664
  });
2665
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "foreignSourceIncome", {
2665
+ Object.defineProperty(ReportItemCollection.prototype, "foreignSourceIncome", {
2666
2666
  get: function () {
2667
2667
  var _a;
2668
2668
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.FOREIGN_SOURCE_INCOME)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2670,7 +2670,7 @@
2670
2670
  enumerable: false,
2671
2671
  configurable: true
2672
2672
  });
2673
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "otherIncome", {
2673
+ Object.defineProperty(ReportItemCollection.prototype, "otherIncome", {
2674
2674
  /**
2675
2675
  * Other income
2676
2676
  */
@@ -2685,7 +2685,7 @@
2685
2685
  enumerable: false,
2686
2686
  configurable: true
2687
2687
  });
2688
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "otherDeductions", {
2688
+ Object.defineProperty(ReportItemCollection.prototype, "otherDeductions", {
2689
2689
  /**
2690
2690
  * Other expenses
2691
2691
  */
@@ -2696,7 +2696,7 @@
2696
2696
  enumerable: false,
2697
2697
  configurable: true
2698
2698
  });
2699
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "taxInstalments", {
2699
+ Object.defineProperty(ReportItemCollection.prototype, "taxInstalments", {
2700
2700
  get: function () {
2701
2701
  var _a;
2702
2702
  return ((_a = this.getTaxCreditsCollection().getByCategory(exports.TaxReturnCategoryListEnum.TAX_INSTALMENTS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2704,7 +2704,7 @@
2704
2704
  enumerable: false,
2705
2705
  configurable: true
2706
2706
  });
2707
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "frankingCredits", {
2707
+ Object.defineProperty(ReportItemCollection.prototype, "frankingCredits", {
2708
2708
  get: function () {
2709
2709
  var _a;
2710
2710
  return ((_a = this.getTaxCreditsCollection().getByCategory(exports.TaxReturnCategoryListEnum.FRANKING_CREDITS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2712,7 +2712,7 @@
2712
2712
  enumerable: false,
2713
2713
  configurable: true
2714
2714
  });
2715
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "taxOffsets", {
2715
+ Object.defineProperty(ReportItemCollection.prototype, "taxOffsets", {
2716
2716
  get: function () {
2717
2717
  var _a;
2718
2718
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.TAX_OFFSETS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2720,7 +2720,7 @@
2720
2720
  enumerable: false,
2721
2721
  configurable: true
2722
2722
  });
2723
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "borrowingExpenses", {
2723
+ Object.defineProperty(ReportItemCollection.prototype, "borrowingExpenses", {
2724
2724
  get: function () {
2725
2725
  var _a;
2726
2726
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.BORROWING_EXPENSES)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2728,7 +2728,7 @@
2728
2728
  enumerable: false,
2729
2729
  configurable: true
2730
2730
  });
2731
- Object.defineProperty(TaxReturnCategoryItemCollection.prototype, "grossTaxPayable", {
2731
+ Object.defineProperty(ReportItemCollection.prototype, "grossTaxPayable", {
2732
2732
  get: function () {
2733
2733
  var _a;
2734
2734
  return ((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.GROSS_TAX_PAYABLE)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
@@ -2739,22 +2739,22 @@
2739
2739
  /**
2740
2740
  * taxWithheld by section (work or other)
2741
2741
  */
2742
- TaxReturnCategoryItemCollection.prototype.getTaxWithheld = function (section) {
2742
+ ReportItemCollection.prototype.getTaxWithheld = function (section) {
2743
2743
  if (section === void 0) { section = exports.TaxReturnCategorySectionEnum.WORK_TANK; }
2744
2744
  var _a;
2745
2745
  return ((_a = this.getTaxCreditsCollection().getByCategory(exports.TaxReturnCategoryListEnum.TAX_WITHHELD)) === null || _a === void 0 ? void 0 : _a.details.filter(function (details) { return details.section === section; }).reduce(function (sum, details) { return sum + details.amount; }, 0)) || 0;
2746
2746
  };
2747
- TaxReturnCategoryItemCollection.prototype.getTaxCreditsCollection = function () {
2747
+ ReportItemCollection.prototype.getTaxCreditsCollection = function () {
2748
2748
  var _a;
2749
- return new TaxReturnCategoryItemCollection(((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.TAX_CREDITS)) === null || _a === void 0 ? void 0 : _a.items) || []);
2749
+ return new ReportItemCollection(((_a = this.getByCategory(exports.TaxReturnCategoryListEnum.TAX_CREDITS)) === null || _a === void 0 ? void 0 : _a.items) || []);
2750
2750
  };
2751
- TaxReturnCategoryItemCollection.prototype.getTotalAmountByIncomeSourceName = function (name) {
2751
+ ReportItemCollection.prototype.getTotalAmountByIncomeSourceName = function (name) {
2752
2752
  return this.items.reduce((function (sum, item) { return sum + item.getAmountByIncomeSourceName(name); }), 0);
2753
2753
  };
2754
- TaxReturnCategoryItemCollection.prototype.getByCategory = function (category) {
2754
+ ReportItemCollection.prototype.getByCategory = function (category) {
2755
2755
  return this.items.find(function (item) { return item.taxReturnCategory.id === category; });
2756
2756
  };
2757
- return TaxReturnCategoryItemCollection;
2757
+ return ReportItemCollection;
2758
2758
  }(Collection));
2759
2759
 
2760
2760
  /**
@@ -2992,6 +2992,7 @@
2992
2992
  * Check if current tank is Work
2993
2993
  */
2994
2994
  TransactionBase.prototype.isWorkTank = function () {
2995
+ // @TODO remove this hack
2995
2996
  if (this.tankType) {
2996
2997
  return this.tankType === exports.TankTypeEnum.WORK;
2997
2998
  }
@@ -7793,30 +7794,30 @@
7793
7794
  * Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
7794
7795
  * amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
7795
7796
  */
7796
- var TaxReturnCategoryItem = /** @class */ (function () {
7797
- function TaxReturnCategoryItem() {
7797
+ var ReportItem = /** @class */ (function () {
7798
+ function ReportItem() {
7798
7799
  }
7799
7800
  /**
7800
7801
  * Get amount for one income source
7801
7802
  * @param name Name of income source for filter
7802
7803
  */
7803
- TaxReturnCategoryItem.prototype.getAmountByIncomeSourceName = function (name) {
7804
+ ReportItem.prototype.getAmountByIncomeSourceName = function (name) {
7804
7805
  var _a;
7805
7806
  return ((_a = this.details.find(function (detail) { return detail.name === name; })) === null || _a === void 0 ? void 0 : _a.amount) || 0;
7806
7807
  };
7807
- return TaxReturnCategoryItem;
7808
+ return ReportItem;
7808
7809
  }());
7809
7810
 
7810
7811
  /**
7811
7812
  * Used in tax summary reports to show specific details relating to an amount in the report.
7812
- * See structure in TaxReturnCategoryItem class.
7813
+ * See structure in ReportItem class.
7813
7814
  * Example an amount of $550 for property income could be comprised of 2 different property amounts of $300 and $250.
7814
7815
  * This is useful in providing drill-down information for the tax summary report.
7815
7816
  */
7816
- var TaxReturnCategoryItemDetails = /** @class */ (function () {
7817
- function TaxReturnCategoryItemDetails() {
7817
+ var ReportItemDetails = /** @class */ (function () {
7818
+ function ReportItemDetails() {
7818
7819
  }
7819
- return TaxReturnCategoryItemDetails;
7820
+ return ReportItemDetails;
7820
7821
  }());
7821
7822
 
7822
7823
  /**
@@ -7829,10 +7830,10 @@
7829
7830
  return TaxSummarySection;
7830
7831
  }());
7831
7832
  __decorate([
7832
- classTransformer.Type(function () { return TaxReturnCategoryItem; }),
7833
+ classTransformer.Type(function () { return ReportItem; }),
7833
7834
  classTransformer.Transform(function (_a) {
7834
7835
  var value = _a.value;
7835
- return new TaxReturnCategoryItemCollection(value);
7836
+ return new ReportItemCollection(value);
7836
7837
  })
7837
7838
  ], TaxSummarySection.prototype, "items", void 0);
7838
7839
  __decorate([
@@ -7962,6 +7963,24 @@
7962
7963
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
7963
7964
  })(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
7964
7965
 
7966
+ /**
7967
+ * Common toast message class
7968
+ */
7969
+ var Toast = /** @class */ (function () {
7970
+ function Toast() {
7971
+ this.duration = 3000;
7972
+ }
7973
+ return Toast;
7974
+ }());
7975
+
7976
+ exports.ToastTypeEnum = void 0;
7977
+ (function (ToastTypeEnum) {
7978
+ ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
7979
+ ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
7980
+ ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
7981
+ ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
7982
+ })(exports.ToastTypeEnum || (exports.ToastTypeEnum = {}));
7983
+
7965
7984
  var MyAccountHistory = /** @class */ (function () {
7966
7985
  function MyAccountHistory() {
7967
7986
  }
@@ -8259,8 +8278,8 @@
8259
8278
  * Model - entity service is working with
8260
8279
  * BaseModel - base entity model that extends by Model
8261
8280
  */
8262
- var BaseRestService = /** @class */ (function () {
8263
- function BaseRestService(http, eventDispatcherService, environment) {
8281
+ var RestService = /** @class */ (function () {
8282
+ function RestService(http, eventDispatcherService, environment) {
8264
8283
  this.http = http;
8265
8284
  this.eventDispatcherService = eventDispatcherService;
8266
8285
  this.environment = environment;
@@ -8270,7 +8289,7 @@
8270
8289
  /**
8271
8290
  * get cached list of all instances
8272
8291
  */
8273
- BaseRestService.prototype.get = function () {
8292
+ RestService.prototype.get = function () {
8274
8293
  if (!this.cache) {
8275
8294
  this.fetch().subscribe();
8276
8295
  }
@@ -8280,7 +8299,7 @@
8280
8299
  * get instance by id from cache
8281
8300
  * @param id ID of required item
8282
8301
  */
8283
- BaseRestService.prototype.getById = function (id) {
8302
+ RestService.prototype.getById = function (id) {
8284
8303
  return this.get()
8285
8304
  .pipe(operators.map(function (items) {
8286
8305
  return items.find(function (item) { return item['id'] === id; });
@@ -8290,7 +8309,7 @@
8290
8309
  * get list of items filtered by id.
8291
8310
  * @param models Array of objects contains required items ids
8292
8311
  */
8293
- BaseRestService.prototype.getByIds = function (models) {
8312
+ RestService.prototype.getByIds = function (models) {
8294
8313
  var idsArray = models.map(function (model) { return model['id']; });
8295
8314
  return this.get()
8296
8315
  .pipe(operators.map(function (items) {
@@ -8301,7 +8320,7 @@
8301
8320
  * add new instance and update cache
8302
8321
  * @TODO rename to post
8303
8322
  */
8304
- BaseRestService.prototype.add = function (model, shouldUpdateCache) {
8323
+ RestService.prototype.add = function (model, shouldUpdateCache) {
8305
8324
  var _this = this;
8306
8325
  if (shouldUpdateCache === void 0) { shouldUpdateCache = true; }
8307
8326
  return this.http.post(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(model))
@@ -8323,7 +8342,7 @@
8323
8342
  * @param queryParams query parameters for request
8324
8343
  * @TODO rename to postBatch
8325
8344
  */
8326
- BaseRestService.prototype.addBatch = function (models, queryParams) {
8345
+ RestService.prototype.addBatch = function (models, queryParams) {
8327
8346
  var _this = this;
8328
8347
  if (queryParams === void 0) { queryParams = {}; }
8329
8348
  return this.http.post(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(models), queryParams)
@@ -8343,7 +8362,7 @@
8343
8362
  * @param queryParams query parameters for request
8344
8363
  * @TODO rename to put
8345
8364
  */
8346
- BaseRestService.prototype.update = function (model, queryParams) {
8365
+ RestService.prototype.update = function (model, queryParams) {
8347
8366
  var _this = this;
8348
8367
  if (queryParams === void 0) { queryParams = {}; }
8349
8368
  return this.http.put(this.environment.apiV2 + "/" + this.url + "/" + model['id'], classTransformer.classToPlain(model), queryParams)
@@ -8360,7 +8379,7 @@
8360
8379
  * @param queryParams query parameters for request
8361
8380
  * TODO rename to putBatch
8362
8381
  */
8363
- BaseRestService.prototype.updateBatch = function (models, queryParams) {
8382
+ RestService.prototype.updateBatch = function (models, queryParams) {
8364
8383
  var _this = this;
8365
8384
  if (queryParams === void 0) { queryParams = {}; }
8366
8385
  return this.http.put(this.environment.apiV2 + "/" + this.url, classTransformer.classToPlain(models), queryParams)
@@ -8377,7 +8396,7 @@
8377
8396
  * delete instance of class
8378
8397
  * @param model Class instance for deleting
8379
8398
  */
8380
- BaseRestService.prototype.delete = function (model) {
8399
+ RestService.prototype.delete = function (model) {
8381
8400
  var _this = this;
8382
8401
  return this.http.delete(this.environment.apiV2 + "/" + this.url + "/" + model['id'])
8383
8402
  .pipe(operators.map(function () {
@@ -8389,7 +8408,7 @@
8389
8408
  * delete multiple instances of class
8390
8409
  * @param models Class instances array for deleting
8391
8410
  */
8392
- BaseRestService.prototype.deleteBatch = function (models) {
8411
+ RestService.prototype.deleteBatch = function (models) {
8393
8412
  var _this = this;
8394
8413
  return this.http.post(this.environment.apiV2 + "/" + this.url + "/delete", models)
8395
8414
  .pipe(operators.map(function () {
@@ -8401,13 +8420,13 @@
8401
8420
  /**
8402
8421
  * clear service cache
8403
8422
  */
8404
- BaseRestService.prototype.resetCache = function () {
8423
+ RestService.prototype.resetCache = function () {
8405
8424
  this.fetch().subscribe();
8406
8425
  };
8407
8426
  /**
8408
8427
  * get list of base class instances directly from backend
8409
8428
  */
8410
- BaseRestService.prototype.fetch = function () {
8429
+ RestService.prototype.fetch = function () {
8411
8430
  var _this = this;
8412
8431
  return this.http.get(this.environment.apiV2 + "/" + this.url)
8413
8432
  .pipe(operators.map(function (response) {
@@ -8423,7 +8442,7 @@
8423
8442
  /**
8424
8443
  * Update cache subject with current cache array value
8425
8444
  */
8426
- BaseRestService.prototype.updateCache = function () {
8445
+ RestService.prototype.updateCache = function () {
8427
8446
  this.cacheSubject.next(this.cache.slice());
8428
8447
  };
8429
8448
  /**
@@ -8431,14 +8450,14 @@
8431
8450
  * @param model The class for which you want to create an instance
8432
8451
  * @param baseModel base model instance that we will use as constructor options
8433
8452
  */
8434
- BaseRestService.prototype.createModelInstance = function (model, baseModel) {
8453
+ RestService.prototype.createModelInstance = function (model, baseModel) {
8435
8454
  return classTransformer.plainToClass(model, baseModel, { excludePrefixes: ['@'] });
8436
8455
  };
8437
- return BaseRestService;
8456
+ return RestService;
8438
8457
  }());
8439
- BaseRestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BaseRestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8440
- BaseRestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BaseRestService, providedIn: 'root' });
8441
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BaseRestService, decorators: [{
8458
+ RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8459
+ RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
8460
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, decorators: [{
8442
8461
  type: i0.Injectable,
8443
8462
  args: [{
8444
8463
  providedIn: 'root'
@@ -8463,7 +8482,7 @@
8463
8482
  return _this;
8464
8483
  }
8465
8484
  return BankService;
8466
- }(BaseRestService));
8485
+ }(RestService));
8467
8486
  BankService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
8468
8487
  BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
8469
8488
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, decorators: [{
@@ -8575,7 +8594,7 @@
8575
8594
  });
8576
8595
  };
8577
8596
  return BankAccountService;
8578
- }(BaseRestService));
8597
+ }(RestService));
8579
8598
  BankAccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8580
8599
  BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
8581
8600
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, decorators: [{
@@ -8719,7 +8738,7 @@
8719
8738
  });
8720
8739
  };
8721
8740
  return BankConnectionService;
8722
- }(BaseRestService));
8741
+ }(RestService));
8723
8742
  BankConnectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8724
8743
  BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
8725
8744
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
@@ -8805,7 +8824,7 @@
8805
8824
  });
8806
8825
  };
8807
8826
  return BankTransactionService;
8808
- }(BaseRestService));
8827
+ }(RestService));
8809
8828
  BankTransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8810
8829
  BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
8811
8830
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
@@ -8896,7 +8915,7 @@
8896
8915
  });
8897
8916
  };
8898
8917
  return BasiqService;
8899
- }(BaseRestService));
8918
+ }(RestService));
8900
8919
  BasiqService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8901
8920
  BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
8902
8921
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, decorators: [{
@@ -9090,7 +9109,7 @@
9090
9109
  }));
9091
9110
  };
9092
9111
  return ChartAccountsDepreciationService;
9093
- }(BaseRestService));
9112
+ }(RestService));
9094
9113
  ChartAccountsDepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
9095
9114
  ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
9096
9115
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
@@ -9202,7 +9221,7 @@
9202
9221
  });
9203
9222
  };
9204
9223
  return ChatService;
9205
- }(BaseRestService));
9224
+ }(RestService));
9206
9225
  ChatService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9207
9226
  ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
9208
9227
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, decorators: [{
@@ -9261,7 +9280,7 @@
9261
9280
  });
9262
9281
  };
9263
9282
  return MessageService;
9264
- }(BaseRestService));
9283
+ }(RestService));
9265
9284
  MessageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9266
9285
  MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
9267
9286
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, decorators: [{
@@ -9481,7 +9500,7 @@
9481
9500
  }));
9482
9501
  };
9483
9502
  return ClientInviteService;
9484
- }(BaseRestService));
9503
+ }(RestService));
9485
9504
  ClientInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
9486
9505
  ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
9487
9506
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
@@ -9571,7 +9590,7 @@
9571
9590
  });
9572
9591
  };
9573
9592
  return ClientMovementService;
9574
- }(BaseRestService));
9593
+ }(RestService));
9575
9594
  ClientMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9576
9595
  ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
9577
9596
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
@@ -9622,13 +9641,13 @@
9622
9641
  /**
9623
9642
  * Service for work with DepreciationCapitalProjects
9624
9643
  */
9625
- var CapitalProjectService = /** @class */ (function () {
9626
- function CapitalProjectService(http, environment) {
9644
+ var DepreciationCapitalProjectService = /** @class */ (function () {
9645
+ function DepreciationCapitalProjectService(http, environment) {
9627
9646
  this.http = http;
9628
9647
  this.environment = environment;
9629
9648
  this.cacheSubject = new rxjs.ReplaySubject(1);
9630
9649
  }
9631
- CapitalProjectService.prototype.get = function (propertyId) {
9650
+ DepreciationCapitalProjectService.prototype.get = function (propertyId) {
9632
9651
  var _this = this;
9633
9652
  this.cacheSubject.next([]);
9634
9653
  this.http.get(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects")
@@ -9640,7 +9659,7 @@
9640
9659
  });
9641
9660
  return this.cacheSubject.asObservable();
9642
9661
  };
9643
- CapitalProjectService.prototype.add = function (capitalProject, propertyId) {
9662
+ DepreciationCapitalProjectService.prototype.add = function (capitalProject, propertyId) {
9644
9663
  var _this = this;
9645
9664
  return this.http.post(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects", capitalProject)
9646
9665
  .pipe(operators.map(function (capitalProjectBase) {
@@ -9648,7 +9667,7 @@
9648
9667
  _this.cacheSubject.next(_this.cache);
9649
9668
  }));
9650
9669
  };
9651
- CapitalProjectService.prototype.update = function (capitalProject, propertyId) {
9670
+ DepreciationCapitalProjectService.prototype.update = function (capitalProject, propertyId) {
9652
9671
  var _this = this;
9653
9672
  return this.http.put(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id, capitalProject)
9654
9673
  .pipe(operators.map(function (capitalProjectBase) {
@@ -9656,7 +9675,7 @@
9656
9675
  _this.cacheSubject.next(_this.cache);
9657
9676
  }));
9658
9677
  };
9659
- CapitalProjectService.prototype.delete = function (capitalProject, propertyId) {
9678
+ DepreciationCapitalProjectService.prototype.delete = function (capitalProject, propertyId) {
9660
9679
  var _this = this;
9661
9680
  return this.http.delete(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id)
9662
9681
  .pipe(operators.map(function () {
@@ -9664,11 +9683,11 @@
9664
9683
  _this.cacheSubject.next(_this.cache);
9665
9684
  }));
9666
9685
  };
9667
- return CapitalProjectService;
9686
+ return DepreciationCapitalProjectService;
9668
9687
  }());
9669
- CapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9670
- CapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CapitalProjectService, providedIn: 'root' });
9671
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CapitalProjectService, decorators: [{
9688
+ DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9689
+ DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
9690
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
9672
9691
  type: i0.Injectable,
9673
9692
  args: [{
9674
9693
  providedIn: 'root'
@@ -9811,7 +9830,7 @@
9811
9830
  });
9812
9831
  };
9813
9832
  return DepreciationService;
9814
- }(BaseRestService));
9833
+ }(RestService));
9815
9834
  DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9816
9835
  DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
9817
9836
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, decorators: [{
@@ -9893,7 +9912,7 @@
9893
9912
  }));
9894
9913
  };
9895
9914
  return DocumentFolderService;
9896
- }(BaseRestService));
9915
+ }(RestService));
9897
9916
  DocumentFolderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
9898
9917
  DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
9899
9918
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
@@ -9933,7 +9952,7 @@
9933
9952
  }));
9934
9953
  };
9935
9954
  return EmployeeService;
9936
- }(BaseRestService));
9955
+ }(RestService));
9937
9956
  EmployeeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
9938
9957
  EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
9939
9958
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, decorators: [{
@@ -9982,7 +10001,7 @@
9982
10001
  }));
9983
10002
  };
9984
10003
  return EmployeeInviteService;
9985
- }(BaseRestService));
10004
+ }(RestService));
9986
10005
  EmployeeInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
9987
10006
  EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
9988
10007
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
@@ -10185,7 +10204,7 @@
10185
10204
  return this.incomeSourceTypeSubject.asObservable();
10186
10205
  };
10187
10206
  return IncomeSourceService;
10188
- }(BaseRestService));
10207
+ }(RestService));
10189
10208
  IncomeSourceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10190
10209
  IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
10191
10210
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
@@ -10271,7 +10290,7 @@
10271
10290
  }).flat();
10272
10291
  };
10273
10292
  return IncomeSourceForecastService;
10274
- }(BaseRestService));
10293
+ }(RestService));
10275
10294
  IncomeSourceForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10276
10295
  IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
10277
10296
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
@@ -10357,7 +10376,7 @@
10357
10376
  }).flat();
10358
10377
  };
10359
10378
  return SalaryForecastService;
10360
- }(BaseRestService));
10379
+ }(RestService));
10361
10380
  SalaryForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10362
10381
  SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
10363
10382
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
@@ -10440,7 +10459,7 @@
10440
10459
  }).flat();
10441
10460
  };
10442
10461
  return SoleForecastService;
10443
- }(BaseRestService));
10462
+ }(RestService));
10444
10463
  SoleForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10445
10464
  SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
10446
10465
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
@@ -10626,7 +10645,7 @@
10626
10645
  }));
10627
10646
  };
10628
10647
  return LoanService;
10629
- }(BaseRestService));
10648
+ }(RestService));
10630
10649
  LoanService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10631
10650
  LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
10632
10651
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, decorators: [{
@@ -10644,9 +10663,9 @@
10644
10663
  /**
10645
10664
  * Service to handle service notifications logic
10646
10665
  */
10647
- var NotificationService = /** @class */ (function (_super) {
10648
- __extends(NotificationService, _super);
10649
- function NotificationService(http, eventDispatcherService, environment, sseService) {
10666
+ var ServiceNotificationService = /** @class */ (function (_super) {
10667
+ __extends(ServiceNotificationService, _super);
10668
+ function ServiceNotificationService(http, eventDispatcherService, environment, sseService) {
10650
10669
  var _this = _super.call(this, http, eventDispatcherService, environment) || this;
10651
10670
  _this.http = http;
10652
10671
  _this.eventDispatcherService = eventDispatcherService;
@@ -10661,13 +10680,13 @@
10661
10680
  /**
10662
10681
  * SSE and Event Dispatcher Services listeners
10663
10682
  */
10664
- NotificationService.prototype.listenEvents = function () {
10683
+ ServiceNotificationService.prototype.listenEvents = function () {
10665
10684
  this.listenNotifications();
10666
10685
  };
10667
10686
  /**
10668
10687
  * subscribe to new chat messages
10669
10688
  */
10670
- NotificationService.prototype.listenNotifications = function () {
10689
+ ServiceNotificationService.prototype.listenNotifications = function () {
10671
10690
  var _this = this;
10672
10691
  this.sseService.on("serviceNotification").subscribe(function (notificationBase) {
10673
10692
  var notification = classTransformer.plainToClass(Notification, notificationBase);
@@ -10684,11 +10703,11 @@
10684
10703
  _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.NOTIFICATION_ADDED, notification));
10685
10704
  });
10686
10705
  };
10687
- return NotificationService;
10688
- }(BaseRestService));
10689
- NotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: NotificationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10690
- NotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: NotificationService, providedIn: 'root' });
10691
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: NotificationService, decorators: [{
10706
+ return ServiceNotificationService;
10707
+ }(RestService));
10708
+ ServiceNotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10709
+ ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
10710
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
10692
10711
  type: i0.Injectable,
10693
10712
  args: [{
10694
10713
  providedIn: 'root'
@@ -10955,7 +10974,7 @@
10955
10974
  return this.get().pipe(operators.map(function (properties) { return properties.filter(function (property) { return property.isActive; }); }));
10956
10975
  };
10957
10976
  return PropertyService;
10958
- }(BaseRestService));
10977
+ }(RestService));
10959
10978
  PropertyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10960
10979
  PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
10961
10980
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, decorators: [{
@@ -11112,7 +11131,7 @@
11112
11131
  return _this;
11113
11132
  }
11114
11133
  return PropertyCategoryService;
11115
- }(BaseRestService));
11134
+ }(RestService));
11116
11135
  PropertyCategoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11117
11136
  PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
11118
11137
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
@@ -11175,7 +11194,7 @@
11175
11194
  });
11176
11195
  };
11177
11196
  return PropertyDocumentService;
11178
- }(BaseRestService));
11197
+ }(RestService));
11179
11198
  PropertyDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11180
11199
  PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
11181
11200
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
@@ -11287,7 +11306,7 @@
11287
11306
  });
11288
11307
  };
11289
11308
  return PropertyShareService;
11290
- }(BaseRestService));
11309
+ }(RestService));
11291
11310
  PropertyShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11292
11311
  PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
11293
11312
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
@@ -11311,7 +11330,7 @@
11311
11330
  return _this;
11312
11331
  }
11313
11332
  return PropertySaleService;
11314
- }(BaseRestService));
11333
+ }(RestService));
11315
11334
  PropertySaleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11316
11335
  PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
11317
11336
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
@@ -11398,7 +11417,7 @@
11398
11417
  }));
11399
11418
  };
11400
11419
  return PropertyCategoryMovementService;
11401
- }(BaseRestService));
11420
+ }(RestService));
11402
11421
  PropertyCategoryMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11403
11422
  PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
11404
11423
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
@@ -11647,7 +11666,7 @@
11647
11666
  });
11648
11667
  };
11649
11668
  return TaxReviewService;
11650
- }(BaseRestService));
11669
+ }(RestService));
11651
11670
  TaxReviewService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11652
11671
  TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
11653
11672
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
@@ -11685,7 +11704,7 @@
11685
11704
  return _this;
11686
11705
  }
11687
11706
  return TaxReviewHistoryService;
11688
- }(BaseRestService));
11707
+ }(RestService));
11689
11708
  TaxReviewHistoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11690
11709
  TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
11691
11710
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
@@ -11768,6 +11787,30 @@
11768
11787
  }] }];
11769
11788
  } });
11770
11789
 
11790
+ /**
11791
+ * popup notifications service (toast, snackbar).
11792
+ */
11793
+ var ToastService = /** @class */ (function () {
11794
+ function ToastService() {
11795
+ this.toast$ = new rxjs.ReplaySubject(1);
11796
+ }
11797
+ ToastService.prototype.get = function () {
11798
+ return this.toast$.asObservable();
11799
+ };
11800
+ ToastService.prototype.add = function (toast) {
11801
+ this.toast$.next(toast);
11802
+ };
11803
+ return ToastService;
11804
+ }());
11805
+ ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11806
+ ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
11807
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, decorators: [{
11808
+ type: i0.Injectable,
11809
+ args: [{
11810
+ providedIn: 'root'
11811
+ }]
11812
+ }] });
11813
+
11771
11814
  function enumToList(data) {
11772
11815
  var list = [];
11773
11816
  for (var key in data) {
@@ -12080,7 +12123,7 @@
12080
12123
  });
12081
12124
  };
12082
12125
  return TransactionService;
12083
- }(BaseRestService));
12126
+ }(RestService));
12084
12127
  TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12085
12128
  TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
12086
12129
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, decorators: [{
@@ -12165,7 +12208,7 @@
12165
12208
  });
12166
12209
  };
12167
12210
  return TransactionAllocationService;
12168
- }(BaseRestService));
12211
+ }(RestService));
12169
12212
  TransactionAllocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12170
12213
  TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
12171
12214
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
@@ -12431,7 +12474,7 @@
12431
12474
  }));
12432
12475
  };
12433
12476
  return UserEventSettingService;
12434
- }(BaseRestService));
12477
+ }(RestService));
12435
12478
  UserEventSettingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12436
12479
  UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
12437
12480
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
@@ -12459,7 +12502,7 @@
12459
12502
  return _this;
12460
12503
  }
12461
12504
  return UserEventTypeService;
12462
- }(BaseRestService));
12505
+ }(RestService));
12463
12506
  UserEventTypeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12464
12507
  UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
12465
12508
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
@@ -12476,9 +12519,10 @@
12476
12519
 
12477
12520
  /**
12478
12521
  * Service that allows to work with WorkTank operations
12522
+ * @TODO separate into multiple services, extend restService
12479
12523
  */
12480
- var WorkTankService = /** @class */ (function () {
12481
- function WorkTankService(http, transactionService, depreciationService, chartAccountsService, eventDispatcherService, environment) {
12524
+ var VehicleService = /** @class */ (function () {
12525
+ function VehicleService(http, transactionService, depreciationService, chartAccountsService, eventDispatcherService, environment) {
12482
12526
  this.http = http;
12483
12527
  this.transactionService = transactionService;
12484
12528
  this.depreciationService = depreciationService;
@@ -12491,7 +12535,7 @@
12491
12535
  this.vehicleTaxReturnSubject = new rxjs.ReplaySubject(1);
12492
12536
  this.incomePositionsSubject = new rxjs.ReplaySubject(1);
12493
12537
  }
12494
- WorkTankService.prototype.getVehicles = function () {
12538
+ VehicleService.prototype.getVehicles = function () {
12495
12539
  var _this = this;
12496
12540
  // @TODO create backend for get logbook
12497
12541
  if (!this._vehicles) {
@@ -12509,7 +12553,7 @@
12509
12553
  /**
12510
12554
  * Get vehicles claim amount
12511
12555
  */
12512
- WorkTankService.prototype.getVehiclesClaim = function () {
12556
+ VehicleService.prototype.getVehiclesClaim = function () {
12513
12557
  var _this = this;
12514
12558
  if (!this._vehicleClaim) {
12515
12559
  this.http.get(this.environment.apiV2 + "/vehicle-claims")
@@ -12528,7 +12572,7 @@
12528
12572
  * Add new vehicle claim
12529
12573
  * @param claim object which should be added
12530
12574
  */
12531
- WorkTankService.prototype.addVehicleClaim = function (claim) {
12575
+ VehicleService.prototype.addVehicleClaim = function (claim) {
12532
12576
  var _this = this;
12533
12577
  return this.http.post(this.environment.apiV2 + "/vehicle-claims", claim).pipe(operators.map(function (response) {
12534
12578
  _this._vehicleClaim = classTransformer.plainToClass(VehicleClaim, response);
@@ -12539,7 +12583,7 @@
12539
12583
  /**
12540
12584
  * Get vehicles claim rate for current financial year
12541
12585
  */
12542
- WorkTankService.prototype.getVehiclesClaimRate = function () {
12586
+ VehicleService.prototype.getVehiclesClaimRate = function () {
12543
12587
  var _this = this;
12544
12588
  if (!this._vehicleClaimRate) {
12545
12589
  this.chartAccountsService.getChartAccountsById(exports.ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK)
@@ -12556,7 +12600,7 @@
12556
12600
  /**
12557
12601
  * Get vehicles tax return for vehicle transactions & depreciations
12558
12602
  */
12559
- WorkTankService.prototype.getVehiclesTaxReturn = function () {
12603
+ VehicleService.prototype.getVehiclesTaxReturn = function () {
12560
12604
  var _this = this;
12561
12605
  if (!this._vehicleTaxReturn) {
12562
12606
  rxjs.combineLatest([
@@ -12593,7 +12637,7 @@
12593
12637
  *
12594
12638
  * @TODO alex refresh depreciation/transaction cache
12595
12639
  */
12596
- WorkTankService.prototype.updateVehicleClaim = function (claim) {
12640
+ VehicleService.prototype.updateVehicleClaim = function (claim) {
12597
12641
  var _this = this;
12598
12642
  return this.http.put(this.environment.apiV2 + "/vehicle-claims/" + claim.id, claim).pipe(operators.map(function (response) {
12599
12643
  var updatedVehicleClaim = classTransformer.plainToClass(VehicleClaim, response);
@@ -12608,7 +12652,7 @@
12608
12652
  * @param logbook which should be added
12609
12653
  * @param vehicle for which logbook object should be added
12610
12654
  */
12611
- WorkTankService.prototype.addLogbook = function (logbook, vehicle) {
12655
+ VehicleService.prototype.addLogbook = function (logbook, vehicle) {
12612
12656
  var _this = this;
12613
12657
  return this.http.post(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks", logbook)
12614
12658
  .pipe(operators.map(function (response) {
@@ -12623,7 +12667,7 @@
12623
12667
  * @param logbook which should be updated
12624
12668
  * @param vehicle for which logbook object should be updated
12625
12669
  */
12626
- WorkTankService.prototype.updateLogbook = function (logbook, vehicle) {
12670
+ VehicleService.prototype.updateLogbook = function (logbook, vehicle) {
12627
12671
  var _this = this;
12628
12672
  return this.http.put(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks/" + logbook.id, logbook).pipe(operators.map(function (response) {
12629
12673
  var editedVehicle = _this._vehicles.find(function (v) { return v.id === vehicle.id; });
@@ -12639,7 +12683,7 @@
12639
12683
  * @param logbook for which trip should be deleted
12640
12684
  * @param vehicle for which trip should be deleted
12641
12685
  */
12642
- WorkTankService.prototype.deleteTrip = function (logbook, vehicle) {
12686
+ VehicleService.prototype.deleteTrip = function (logbook, vehicle) {
12643
12687
  var _this = this;
12644
12688
  return this.http.delete(this.environment.apiV2 + "/vehicles/" + vehicle.id + "/logbooks/" + logbook.id)
12645
12689
  .pipe(operators.map(function () {
@@ -12655,7 +12699,7 @@
12655
12699
  * Add new vehicle
12656
12700
  * @param vehicle which should be added
12657
12701
  */
12658
- WorkTankService.prototype.addVehicle = function (vehicle) {
12702
+ VehicleService.prototype.addVehicle = function (vehicle) {
12659
12703
  var _this = this;
12660
12704
  return this.http.post(this.environment.apiV2 + "/vehicles", { name: vehicle.name })
12661
12705
  .pipe(operators.map(function (response) {
@@ -12667,7 +12711,7 @@
12667
12711
  * Update vehicle
12668
12712
  * @param vehicle which should be updated
12669
12713
  */
12670
- WorkTankService.prototype.updateVehicle = function (vehicle) {
12714
+ VehicleService.prototype.updateVehicle = function (vehicle) {
12671
12715
  var _this = this;
12672
12716
  return this.http.put(this.environment.apiV2 + "/vehicles/" + vehicle.id, { name: vehicle.name })
12673
12717
  .pipe(operators.map(function (response) {
@@ -12680,7 +12724,7 @@
12680
12724
  * Delete vehicle
12681
12725
  * @param vehicle which should be deleted
12682
12726
  */
12683
- WorkTankService.prototype.deleteVehicle = function (vehicle) {
12727
+ VehicleService.prototype.deleteVehicle = function (vehicle) {
12684
12728
  var _this = this;
12685
12729
  return this.http.delete(this.environment.apiV2 + "/vehicles/" + vehicle.id)
12686
12730
  .pipe(operators.map(function () {
@@ -12691,11 +12735,11 @@
12691
12735
  _this.vehiclesSubject.next(_this._vehicles.map(function (item) { return classTransformer.plainToClass(Vehicle, item); }));
12692
12736
  }));
12693
12737
  };
12694
- return WorkTankService;
12738
+ return VehicleService;
12695
12739
  }());
12696
- WorkTankService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: WorkTankService, deps: [{ token: i1__namespace.HttpClient }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12697
- WorkTankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: WorkTankService, providedIn: 'root' });
12698
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: WorkTankService, decorators: [{
12740
+ VehicleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, deps: [{ token: i1__namespace.HttpClient }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12741
+ VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
12742
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, decorators: [{
12699
12743
  type: i0.Injectable,
12700
12744
  args: [{
12701
12745
  providedIn: 'root'
@@ -12770,7 +12814,7 @@
12770
12814
  return _this;
12771
12815
  }
12772
12816
  return TaxExemptionService;
12773
- }(BaseRestService));
12817
+ }(RestService));
12774
12818
  TaxExemptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12775
12819
  TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
12776
12820
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
@@ -12989,7 +13033,6 @@
12989
13033
  exports.CAPITAL_COSTS_ITEMS = CAPITAL_COSTS_ITEMS;
12990
13034
  exports.CHART_ACCOUNTS_CATEGORIES = CHART_ACCOUNTS_CATEGORIES;
12991
13035
  exports.CalculationFormItem = CalculationFormItem;
12992
- exports.CapitalProjectService = CapitalProjectService;
12993
13036
  exports.ChartAccounts = ChartAccounts;
12994
13037
  exports.ChartAccountsDepreciation = ChartAccountsDepreciation;
12995
13038
  exports.ChartAccountsDepreciationService = ChartAccountsDepreciationService;
@@ -13023,6 +13066,7 @@
13023
13066
  exports.DataTableColumn = DataTableColumn;
13024
13067
  exports.Depreciation = Depreciation;
13025
13068
  exports.DepreciationCapitalProject = DepreciationCapitalProject;
13069
+ exports.DepreciationCapitalProjectService = DepreciationCapitalProjectService;
13026
13070
  exports.DepreciationCollection = DepreciationCollection;
13027
13071
  exports.DepreciationForecast = DepreciationForecast;
13028
13072
  exports.DepreciationForecastCollection = DepreciationForecastCollection;
@@ -13075,7 +13119,6 @@
13075
13119
  exports.MessageService = MessageService;
13076
13120
  exports.MyAccountHistory = MyAccountHistory;
13077
13121
  exports.Notification = Notification;
13078
- exports.NotificationService = NotificationService;
13079
13122
  exports.Occupation = Occupation;
13080
13123
  exports.OccupationService = OccupationService;
13081
13124
  exports.PasswordForm = PasswordForm;
@@ -13105,11 +13148,15 @@
13105
13148
  exports.RegisterClientForm = RegisterClientForm;
13106
13149
  exports.RegisterFirmForm = RegisterFirmForm;
13107
13150
  exports.RegistrationInvite = RegistrationInvite;
13151
+ exports.ReportItem = ReportItem;
13152
+ exports.ReportItemCollection = ReportItemCollection;
13153
+ exports.ReportItemDetails = ReportItemDetails;
13108
13154
  exports.ResetPasswordForm = ResetPasswordForm;
13109
13155
  exports.SUBSCRIPTION_DESCRIPTION = SUBSCRIPTION_DESCRIPTION;
13110
13156
  exports.SUBSCRIPTION_TITLE = SUBSCRIPTION_TITLE;
13111
13157
  exports.SalaryForecast = SalaryForecast;
13112
13158
  exports.SalaryForecastService = SalaryForecastService;
13159
+ exports.ServiceNotificationService = ServiceNotificationService;
13113
13160
  exports.ServicePayment = ServicePayment;
13114
13161
  exports.ServicePrice = ServicePrice;
13115
13162
  exports.ServicePriceCollection = ServicePriceCollection;
@@ -13125,9 +13172,6 @@
13125
13172
  exports.TaxExemption = TaxExemption;
13126
13173
  exports.TaxExemptionMetadata = TaxExemptionMetadata;
13127
13174
  exports.TaxExemptionService = TaxExemptionService;
13128
- exports.TaxReturnCategoryItem = TaxReturnCategoryItem;
13129
- exports.TaxReturnCategoryItemCollection = TaxReturnCategoryItemCollection;
13130
- exports.TaxReturnCategoryItemDetails = TaxReturnCategoryItemDetails;
13131
13175
  exports.TaxReview = TaxReview;
13132
13176
  exports.TaxReviewCollection = TaxReviewCollection;
13133
13177
  exports.TaxReviewHistoryService = TaxReviewHistoryService;
@@ -13135,6 +13179,8 @@
13135
13179
  exports.TaxSummary = TaxSummary;
13136
13180
  exports.TaxSummarySection = TaxSummarySection;
13137
13181
  exports.TaxSummaryService = TaxSummaryService;
13182
+ exports.Toast = Toast;
13183
+ exports.ToastService = ToastService;
13138
13184
  exports.Transaction = Transaction;
13139
13185
  exports.TransactionAllocation = TransactionAllocation;
13140
13186
  exports.TransactionAllocationCollection = TransactionAllocationCollection;
@@ -13161,8 +13207,8 @@
13161
13207
  exports.Vehicle = Vehicle;
13162
13208
  exports.VehicleClaim = VehicleClaim;
13163
13209
  exports.VehicleLogbook = VehicleLogbook;
13210
+ exports.VehicleService = VehicleService;
13164
13211
  exports.WORK_TANK_LOGBOOK_PURPOSE_OPTIONS = WORK_TANK_LOGBOOK_PURPOSE_OPTIONS;
13165
- exports.WorkTankService = WorkTankService;
13166
13212
  exports.XlsxService = XlsxService;
13167
13213
  exports.cloneDeep = cloneDeep;
13168
13214
  exports.compare = compare;