taxtank-core 0.30.139 → 0.30.142

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 (145) hide show
  1. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +3 -2
  2. package/esm2020/lib/db/Models/user/user.mjs +3 -3
  3. package/esm2020/lib/forms/address/address.form.mjs +2 -2
  4. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  5. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +5 -5
  6. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  7. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +4 -4
  8. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  9. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  10. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  11. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  12. package/esm2020/lib/models/event/app-event-type.enum.mjs +9 -10
  13. package/esm2020/lib/services/account-setup/account-setup.service.mjs +7 -7
  14. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  15. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  16. package/esm2020/lib/services/auth/auth.service.mjs +6 -22
  17. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  18. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  19. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  20. package/esm2020/lib/services/data.service.mjs +10 -4
  21. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  22. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  23. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  24. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  25. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  26. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +9 -9
  27. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -5
  28. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -5
  29. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  30. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  31. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +5 -5
  32. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  33. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  34. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  35. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  36. package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -3
  37. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  38. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  39. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  40. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  41. package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +3 -3
  42. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +10 -10
  43. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
  44. package/esm2020/lib/services/http/document/document.service.mjs +3 -3
  45. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  46. package/esm2020/lib/services/http/file/file.service.mjs +3 -3
  47. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  48. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +5 -5
  49. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +6 -6
  50. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  51. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  52. package/esm2020/lib/services/http/firm/firm.service.mjs +3 -3
  53. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  54. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  55. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  56. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  57. package/esm2020/lib/services/http/holding/holding.service.mjs +5 -5
  58. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  59. package/esm2020/lib/services/http/income-source/income-source.service.mjs +5 -5
  60. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  61. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +5 -5
  62. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  63. package/esm2020/lib/services/http/loan/loan.service.mjs +9 -9
  64. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  65. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  66. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  67. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +3 -3
  68. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  69. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +8 -9
  70. package/esm2020/lib/services/http/property/property.service.mjs +7 -7
  71. package/esm2020/lib/services/http/receipt/receipt.service.mjs +3 -3
  72. package/esm2020/lib/services/http/rest/rest-old.service.mjs +19 -15
  73. package/esm2020/lib/services/http/rest/rest.service.mjs +32 -31
  74. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  75. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  76. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
  77. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  78. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  79. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +5 -5
  80. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  81. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  82. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -7
  83. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +7 -5
  84. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  85. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  86. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  87. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  88. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  89. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  90. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  91. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +6 -6
  92. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  93. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  94. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +7 -7
  95. package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +3 -3
  96. package/esm2020/lib/services/http/transaction/transaction.service.mjs +10 -23
  97. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  98. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +29 -0
  99. package/esm2020/lib/services/http/user/index.mjs +2 -1
  100. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
  101. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  102. package/esm2020/lib/services/http/user/user.service.mjs +34 -137
  103. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  104. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  105. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +5 -5
  106. package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
  107. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  108. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  109. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  110. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  111. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  112. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  113. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  114. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  115. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  116. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  117. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  118. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  119. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  120. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  121. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  122. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  123. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  124. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  125. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  126. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  127. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  128. package/esm2020/lib/tt-core.module.mjs +4 -4
  129. package/esm2020/lib/validators/address-corelogic.validator.mjs +5 -1
  130. package/fesm2015/taxtank-core.mjs +575 -658
  131. package/fesm2015/taxtank-core.mjs.map +1 -1
  132. package/fesm2020/taxtank-core.mjs +572 -657
  133. package/fesm2020/taxtank-core.mjs.map +1 -1
  134. package/lib/db/Models/user/user.d.ts +2 -2
  135. package/lib/models/event/app-event-type.enum.d.ts +8 -9
  136. package/lib/services/auth/auth.service.d.ts +3 -14
  137. package/lib/services/data.service.d.ts +4 -0
  138. package/lib/services/http/rest/rest-old.service.d.ts +2 -1
  139. package/lib/services/http/rest/rest.service.d.ts +10 -10
  140. package/lib/services/http/sole/sole-details/sole-details.service.d.ts +1 -1
  141. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +2 -0
  142. package/lib/services/http/user/financial-year/financial-year.service.d.ts +11 -0
  143. package/lib/services/http/user/index.d.ts +1 -0
  144. package/lib/services/http/user/user.service.d.ts +17 -68
  145. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { CommonModule, DatePipe } from '@angular/common';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
7
7
  import { map, mergeMap, filter, first as first$1, catchError, skip, take, switchMap, finalize, debounceTime, distinctUntilChanged } from 'rxjs/operators';
8
- import { ReplaySubject, Subject, BehaviorSubject, Observable, throwError, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
8
+ import { ReplaySubject, BehaviorSubject, Subject, Observable, throwError, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
9
9
  import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
10
10
  import get from 'lodash/get';
11
11
  import { __decorate } from 'tslib';
@@ -72,9 +72,9 @@ class CorelogicService {
72
72
  .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
73
73
  }
74
74
  }
75
- CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
76
- CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, providedIn: 'root' });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, decorators: [{
75
+ CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
76
+ CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, providedIn: 'root' });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, decorators: [{
78
78
  type: Injectable,
79
79
  args: [{
80
80
  providedIn: 'root'
@@ -112,9 +112,9 @@ class CorelogicInterceptor {
112
112
  });
113
113
  }
114
114
  }
115
- CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
116
- CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor });
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, decorators: [{
115
+ CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
116
+ CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor });
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, decorators: [{
118
118
  type: Injectable
119
119
  }], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
120
120
  type: Inject,
@@ -151,9 +151,9 @@ class FinancialYearInterceptor {
151
151
  return next.handle(clonedReq);
152
152
  }
153
153
  }
154
- FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
155
- FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor });
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
154
+ FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
155
+ FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor });
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
157
157
  type: Injectable
158
158
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
159
159
  type: Inject,
@@ -206,9 +206,9 @@ class AddressService {
206
206
  return this.countriesSubject.asObservable();
207
207
  }
208
208
  }
209
- AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
210
- AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, providedIn: 'root' });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, decorators: [{
209
+ AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
210
+ AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, providedIn: 'root' });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, decorators: [{
212
212
  type: Injectable,
213
213
  args: [{
214
214
  providedIn: 'root'
@@ -426,7 +426,8 @@ class TransactionBase extends ObservableModel {
426
426
  /**
427
427
  * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
428
428
  */
429
- set tankType(tankType) { }
429
+ set tankType(tankType) {
430
+ }
430
431
  /**
431
432
  * Check if current tank is Property
432
433
  */
@@ -766,7 +767,7 @@ let UserEventType$1 = class UserEventType extends AbstractModel {
766
767
  class UserEvent extends AbstractModel {
767
768
  }
768
769
 
769
- let User$1 = class User extends AbstractModel {
770
+ let User$1 = class User extends ObservableModel {
770
771
  };
771
772
 
772
773
  let VehicleClaimDetails$1 = class VehicleClaimDetails extends AbstractModel {
@@ -9741,15 +9742,14 @@ var AppEventTypeEnum;
9741
9742
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
9742
9743
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
9743
9744
  AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
9744
- AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 61] = "USER_UPDATED";
9745
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 62] = "VEHICLE_CLAIM_UPDATED";
9746
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 63] = "VEHICLE_CLAIM_CREATED";
9747
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 64] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9748
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 65] = "VEHICLE_CLAIM_DETAILS_CREATED";
9749
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 66] = "VEHICLE_LOGBOOK_CREATED";
9750
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 67] = "VEHICLE_LOGBOOK_UPDATED";
9751
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 68] = "VEHICLE_LOGBOOK_DELETED";
9752
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 69] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9745
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
9746
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
9747
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
9748
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
9749
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
9750
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
9751
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
9752
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
9753
9753
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
9754
9754
 
9755
9755
  /**
@@ -10194,6 +10194,12 @@ class DataService {
10194
10194
  getCache() {
10195
10195
  return clone(this.cache);
10196
10196
  }
10197
+ /**
10198
+ * never return cache directly to prevent update
10199
+ */
10200
+ getCacheFirst() {
10201
+ return clone(this.cache?.first);
10202
+ }
10197
10203
  /**
10198
10204
  * @TODO vik any[] because of problems with base models extending abstractModel
10199
10205
  */
@@ -10201,9 +10207,9 @@ class DataService {
10201
10207
  this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
10202
10208
  }
10203
10209
  }
10204
- DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10205
- DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, providedIn: 'root' });
10206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, decorators: [{
10210
+ DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10211
+ DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, providedIn: 'root' });
10212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, decorators: [{
10207
10213
  type: Injectable,
10208
10214
  args: [{
10209
10215
  providedIn: 'root'
@@ -10238,46 +10244,9 @@ class JwtService extends JwtHelperService {
10238
10244
  return this.getUser().id === userId;
10239
10245
  }
10240
10246
  }
10241
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10242
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, providedIn: 'root' });
10243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, decorators: [{
10244
- type: Injectable,
10245
- args: [{
10246
- providedIn: 'root'
10247
- }]
10248
- }] });
10249
-
10250
- /**
10251
- * @TODO Alex (TT-1777): replace old logic with the new when all services ready
10252
- * @TODO Alex (TT-1777): rename old logic and keep it for custom events
10253
- */
10254
- class EventDispatcherService {
10255
- constructor() {
10256
- this.eventSubject = new Subject();
10257
- this.eventSubject2 = new Subject();
10258
- }
10259
- /**
10260
- * subscription to specific event type
10261
- */
10262
- on(eventType) {
10263
- return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
10264
- }
10265
- on2(...names) {
10266
- return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
10267
- }
10268
- /**
10269
- * deliver new event
10270
- */
10271
- dispatch(event) {
10272
- this.eventSubject.next(event);
10273
- }
10274
- dispatch2(event) {
10275
- this.eventSubject2.next(event);
10276
- }
10277
- }
10278
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10279
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
10247
+ JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10248
+ JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, providedIn: 'root' });
10249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, decorators: [{
10281
10250
  type: Injectable,
10282
10251
  args: [{
10283
10252
  providedIn: 'root'
@@ -10285,26 +10254,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
10285
10254
  }] });
10286
10255
 
10287
10256
  class AuthService {
10288
- constructor(http, jwtService, eventDispatcherService, environment) {
10257
+ constructor(http, jwtService, environment) {
10289
10258
  this.http = http;
10290
10259
  this.jwtService = jwtService;
10291
- this.eventDispatcherService = eventDispatcherService;
10292
10260
  this.environment = environment;
10293
- this.listenEvents();
10294
10261
  this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
10295
10262
  }
10296
- /**
10297
- * Listen to Event Dispatcher events
10298
- */
10299
- listenEvents() {
10300
- this.listenUserGetFailed();
10301
- }
10302
- /**
10303
- * User logout if failed current user get
10304
- */
10305
- listenUserGetFailed() {
10306
- this.eventDispatcherService.on(AppEventTypeEnum.CURRENT_USER_GET_FAILED).subscribe(() => this.logoutFront());
10307
- }
10308
10263
  setAuth(response) {
10309
10264
  this.jwtService.saveTokens(response);
10310
10265
  this.isLoggedInSubject.next(true);
@@ -10326,18 +10281,55 @@ class AuthService {
10326
10281
  location.replace(url);
10327
10282
  }
10328
10283
  }
10329
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10330
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, providedIn: 'root' });
10331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, decorators: [{
10284
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10285
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, providedIn: 'root' });
10286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, decorators: [{
10332
10287
  type: Injectable,
10333
10288
  args: [{
10334
10289
  providedIn: 'root'
10335
10290
  }]
10336
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: JwtService }, { type: EventDispatcherService }, { type: undefined, decorators: [{
10291
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: JwtService }, { type: undefined, decorators: [{
10337
10292
  type: Inject,
10338
10293
  args: ['environment']
10339
10294
  }] }]; } });
10340
10295
 
10296
+ /**
10297
+ * @TODO Alex (TT-1777): replace old logic with the new when all services ready
10298
+ * @TODO Alex (TT-1777): rename old logic and keep it for custom events
10299
+ */
10300
+ class EventDispatcherService {
10301
+ constructor() {
10302
+ this.eventSubject = new Subject();
10303
+ this.eventSubject2 = new Subject();
10304
+ }
10305
+ /**
10306
+ * subscription to specific event type
10307
+ */
10308
+ on(eventType) {
10309
+ return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
10310
+ }
10311
+ on2(...names) {
10312
+ return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
10313
+ }
10314
+ /**
10315
+ * deliver new event
10316
+ */
10317
+ dispatch(event) {
10318
+ this.eventSubject.next(event);
10319
+ }
10320
+ dispatch2(event) {
10321
+ this.eventSubject2.next(event);
10322
+ }
10323
+ }
10324
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10325
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
10326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, decorators: [{
10327
+ type: Injectable,
10328
+ args: [{
10329
+ providedIn: 'root'
10330
+ }]
10331
+ }] });
10332
+
10341
10333
  /**
10342
10334
  * server sent events service
10343
10335
  * https://symfony.com/doc/current/mercure.html
@@ -10368,9 +10360,9 @@ class SseService {
10368
10360
  .pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
10369
10361
  }
10370
10362
  }
10371
- SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10372
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, providedIn: 'root' });
10373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, decorators: [{
10363
+ SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10364
+ SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, providedIn: 'root' });
10365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, decorators: [{
10374
10366
  type: Injectable,
10375
10367
  args: [{
10376
10368
  providedIn: 'root'
@@ -10411,16 +10403,39 @@ let RestService$1 = class RestService extends DataService {
10411
10403
  get apiUrl() {
10412
10404
  return `${this.environment.apiV2}/${this.endpointUri}`;
10413
10405
  }
10414
- get() {
10406
+ setCache(data, next = false) {
10407
+ super.setCache(data);
10408
+ if (next) {
10409
+ this.cacheSubject.next(this.cache);
10410
+ }
10411
+ }
10412
+ /**
10413
+ * Refresh cache with actual backend data
10414
+ */
10415
+ refreshCache() {
10416
+ this.cache = undefined;
10417
+ this.get();
10418
+ }
10419
+ /**
10420
+ * Get data from backend and fill the cache
10421
+ */
10422
+ fetch(path = this.apiUrl) {
10415
10423
  this.handleAccessError('get');
10424
+ // Set cache as empty collection to avoid multiple requests before cache filled
10425
+ this.setCache([]);
10426
+ return this.http.get(path)
10427
+ .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10428
+ this.setCache(response, true);
10429
+ return this.cache;
10430
+ }));
10431
+ }
10432
+ get() {
10416
10433
  if (!this.cache) {
10417
- // Set cache as empty collection to avoid multiple requests before cache filled
10418
- this.setCache([], false);
10419
- this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.setCache([]);
10434
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
10420
10435
  }
10421
10436
  return this.cacheSubject.asObservable();
10422
10437
  }
10423
- getSingle() {
10438
+ getFirst() {
10424
10439
  this.handleAccessError('get');
10425
10440
  return this.get().pipe(map((collection) => collection.first));
10426
10441
  }
@@ -10495,22 +10510,6 @@ let RestService$1 = class RestService extends DataService {
10495
10510
  this.handleResponse(models, 'delete');
10496
10511
  }));
10497
10512
  }
10498
- /**
10499
- * Refresh cache with actual backend data
10500
- */
10501
- resetCache() {
10502
- this.fetch().pipe(first$1()).subscribe();
10503
- }
10504
- /**
10505
- * Get data from backend and fill the cache
10506
- */
10507
- fetch() {
10508
- return this.http.get(this.apiUrl)
10509
- .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10510
- this.setCache(response);
10511
- return this.cache;
10512
- }));
10513
- }
10514
10513
  /**
10515
10514
  * Handle response data - update cache and dispatch event if it is needed
10516
10515
  */
@@ -10578,21 +10577,15 @@ let RestService$1 = class RestService extends DataService {
10578
10577
  });
10579
10578
  });
10580
10579
  }
10581
- setCache(data, next = true) {
10582
- super.setCache(data);
10583
- if (next) {
10584
- this.cacheSubject.next(this.cache);
10585
- }
10586
- }
10587
10580
  /**
10588
10581
  * // @TODO Alex remove
10589
10582
  * Method that call all listeners. Empty by default. Should be redefined by child services if required
10590
10583
  */
10591
10584
  listenEvents() { }
10592
10585
  };
10593
- RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10594
- RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, providedIn: 'root' });
10595
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, decorators: [{
10586
+ RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10587
+ RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, providedIn: 'root' });
10588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, decorators: [{
10596
10589
  type: Injectable,
10597
10590
  args: [{
10598
10591
  providedIn: 'root'
@@ -10623,9 +10616,9 @@ class BankAccountService extends RestService$1 {
10623
10616
  */
10624
10617
  listenEvents() {
10625
10618
  this.listenToEventDispatcherChanges();
10626
- this.listenCSE(BankTransaction, ['post', 'delete'], this.resetCache);
10627
- this.listenCSE(PropertyShare, ['put'], this.resetCache);
10628
- this.listenCSE(BankConnection, ['post'], this.resetCache);
10619
+ this.listenCSE(BankTransaction, ['post', 'delete'], this.refreshCache);
10620
+ this.listenCSE(PropertyShare, ['put'], this.refreshCache);
10621
+ this.listenCSE(BankConnection, ['post'], this.refreshCache);
10629
10622
  }
10630
10623
  /**
10631
10624
  * Update bank account current balance
@@ -10647,7 +10640,7 @@ class BankAccountService extends RestService$1 {
10647
10640
  AppEventTypeEnum.LOAN_PAYOUT_UPDATED,
10648
10641
  AppEventTypeEnum.BANK_TRANSACTIONS_ADDED
10649
10642
  ]).subscribe(() => {
10650
- this.resetCache();
10643
+ this.refreshCache();
10651
10644
  });
10652
10645
  }
10653
10646
  /**
@@ -10656,13 +10649,13 @@ class BankAccountService extends RestService$1 {
10656
10649
  */
10657
10650
  listenConnections() {
10658
10651
  this.sseService.on(`bankConnections`).subscribe((connection) => {
10659
- this.resetCache();
10652
+ this.refreshCache();
10660
10653
  });
10661
10654
  }
10662
10655
  }
10663
- BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10664
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, decorators: [{
10656
+ BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10657
+ BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, decorators: [{
10666
10659
  type: Injectable,
10667
10660
  args: [{
10668
10661
  providedIn: 'root'
@@ -10757,9 +10750,9 @@ class ToastService {
10757
10750
  }));
10758
10751
  }
10759
10752
  }
10760
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10761
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, providedIn: 'root' });
10762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, decorators: [{
10753
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10754
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
10755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, decorators: [{
10763
10756
  type: Injectable,
10764
10757
  args: [{
10765
10758
  providedIn: 'root'
@@ -10833,13 +10826,13 @@ class BankConnectionService extends RestService$1 {
10833
10826
  */
10834
10827
  listenBankConnections() {
10835
10828
  this.sseService.on(`bankConnections`).subscribe((bankConnection) => {
10836
- this.resetCache();
10829
+ this.refreshCache();
10837
10830
  });
10838
10831
  }
10839
10832
  }
10840
- BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10841
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, decorators: [{
10833
+ BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10834
+ BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
10835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, decorators: [{
10843
10836
  type: Injectable,
10844
10837
  args: [{
10845
10838
  providedIn: 'root'
@@ -10947,14 +10940,14 @@ class BankTransactionService extends RestService$1 {
10947
10940
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
10948
10941
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_FIRST_IMPORT_COMPLETE) {
10949
10942
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BANK_TRANSACTIONS_ADDED, []));
10950
- this.resetCache();
10943
+ this.refreshCache();
10951
10944
  }
10952
10945
  });
10953
10946
  }
10954
10947
  }
10955
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10956
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, decorators: [{
10948
+ BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10949
+ BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, decorators: [{
10958
10951
  type: Injectable,
10959
10952
  args: [{
10960
10953
  providedIn: 'root'
@@ -10986,9 +10979,9 @@ class BasiqTokenService extends RestService$1 {
10986
10979
  return new BasiqToken(tokenResponse['access_token'], new Date(now + tokenResponse['expires_in'] * 1000));
10987
10980
  }
10988
10981
  }
10989
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10990
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
10991
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, decorators: [{
10982
+ BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10983
+ BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
10984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, decorators: [{
10992
10985
  type: Injectable,
10993
10986
  args: [{
10994
10987
  providedIn: 'root'
@@ -11099,7 +11092,7 @@ class BasiqService extends RestService$1 {
11099
11092
  listenNotifications() {
11100
11093
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
11101
11094
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS) {
11102
- this.resetCache();
11095
+ this.refreshCache();
11103
11096
  }
11104
11097
  });
11105
11098
  }
@@ -11114,9 +11107,9 @@ BasiqService.retrieveAccountsCheckInterval = 3000;
11114
11107
  * How long we will wait accounts retrieving, break after timeout if not retireved
11115
11108
  */
11116
11109
  BasiqService.retrieveAccountsTimeout = 20000;
11117
- BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
11118
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, providedIn: 'root' });
11119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, decorators: [{
11110
+ BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
11111
+ BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, providedIn: 'root' });
11112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, decorators: [{
11120
11113
  type: Injectable,
11121
11114
  args: [{
11122
11115
  providedIn: 'root'
@@ -11146,9 +11139,9 @@ class BankService extends RestService$1 {
11146
11139
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11147
11140
  }
11148
11141
  }
11149
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11150
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, providedIn: 'root' });
11151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, decorators: [{
11142
+ BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11143
+ BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, providedIn: 'root' });
11144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, decorators: [{
11152
11145
  type: Injectable,
11153
11146
  args: [{
11154
11147
  providedIn: 'root'
@@ -11165,9 +11158,9 @@ class BudgetService extends RestService$1 {
11165
11158
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
11166
11159
  }
11167
11160
  }
11168
- BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11169
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BudgetService, providedIn: 'root' });
11170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BudgetService, decorators: [{
11161
+ BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11162
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, providedIn: 'root' });
11163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, decorators: [{
11171
11164
  type: Injectable,
11172
11165
  args: [{
11173
11166
  providedIn: 'root'
@@ -11195,9 +11188,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
11195
11188
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
11196
11189
  }
11197
11190
  }
11198
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11199
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11191
+ ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11192
+ ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
11193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
11201
11194
  type: Injectable,
11202
11195
  args: [{
11203
11196
  providedIn: 'root'
@@ -11237,9 +11230,9 @@ class ChartAccountsService extends RestService$1 {
11237
11230
  }));
11238
11231
  }
11239
11232
  }
11240
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11241
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, decorators: [{
11233
+ ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11234
+ ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
11235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, decorators: [{
11243
11236
  type: Injectable,
11244
11237
  args: [{
11245
11238
  providedIn: 'root'
@@ -11308,9 +11301,9 @@ class ChatService extends RestService$1 {
11308
11301
  });
11309
11302
  }
11310
11303
  }
11311
- ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11312
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, providedIn: 'root' });
11313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, decorators: [{
11304
+ ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11305
+ ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, providedIn: 'root' });
11306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, decorators: [{
11314
11307
  type: Injectable,
11315
11308
  args: [{
11316
11309
  providedIn: 'root'
@@ -11367,9 +11360,9 @@ class MessageService extends RestService$1 {
11367
11360
  });
11368
11361
  }
11369
11362
  }
11370
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11371
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, providedIn: 'root' });
11372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, decorators: [{
11363
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11364
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, providedIn: 'root' });
11365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, decorators: [{
11373
11366
  type: Injectable,
11374
11367
  args: [{
11375
11368
  providedIn: 'root'
@@ -11438,9 +11431,9 @@ class MessageDocumentService extends RestService$1 {
11438
11431
  return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
11439
11432
  }
11440
11433
  }
11441
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11442
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, decorators: [{
11434
+ MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11435
+ MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, decorators: [{
11444
11437
  type: Injectable,
11445
11438
  args: [{
11446
11439
  providedIn: 'root'
@@ -11503,9 +11496,9 @@ class ReceiptService {
11503
11496
  return plainToClass(this.modelClass, data);
11504
11497
  }
11505
11498
  }
11506
- ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11507
- ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, decorators: [{
11499
+ ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11500
+ ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, decorators: [{
11509
11502
  type: Injectable,
11510
11503
  args: [{
11511
11504
  providedIn: 'root'
@@ -11534,9 +11527,9 @@ class DepreciationReceiptService extends ReceiptService {
11534
11527
  this.listenEvents();
11535
11528
  }
11536
11529
  }
11537
- DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11538
- DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11530
+ DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11531
+ DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11540
11533
  type: Injectable,
11541
11534
  args: [{
11542
11535
  providedIn: 'root'
@@ -11622,7 +11615,7 @@ class DepreciationService extends RestService$1 {
11622
11615
  * Listen to EventDispatcherService event related to updated bank loan
11623
11616
  */
11624
11617
  listenToUpdatedLoan() {
11625
- this.listenCSE(Loan, ['put'], this.resetCache);
11618
+ this.listenCSE(Loan, ['put'], this.refreshCache);
11626
11619
  }
11627
11620
  /**
11628
11621
  * Listen to EventDispatcherService event related to updated bank account
@@ -11630,7 +11623,7 @@ class DepreciationService extends RestService$1 {
11630
11623
  listenToUpdatedBankAccount() {
11631
11624
  this.listenCSE(BankAccount, ['put'], (bankAccounts) => {
11632
11625
  if (bankAccounts.find(ba => ba.isPropertyTank())) {
11633
- this.resetCache();
11626
+ this.refreshCache();
11634
11627
  }
11635
11628
  });
11636
11629
  }
@@ -11643,7 +11636,7 @@ class DepreciationService extends RestService$1 {
11643
11636
  AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
11644
11637
  AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
11645
11638
  ]).subscribe(() => {
11646
- this.resetCache();
11639
+ this.refreshCache();
11647
11640
  });
11648
11641
  }
11649
11642
  /**
@@ -11651,7 +11644,7 @@ class DepreciationService extends RestService$1 {
11651
11644
  */
11652
11645
  listenSoleDepreciationMethodChanges() {
11653
11646
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED).subscribe(() => {
11654
- this.resetCache();
11647
+ this.refreshCache();
11655
11648
  });
11656
11649
  }
11657
11650
  /**
@@ -11659,19 +11652,19 @@ class DepreciationService extends RestService$1 {
11659
11652
  */
11660
11653
  listenPropertyDepreciationCalculationChanges() {
11661
11654
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_DEPRECIATION_CALCULATION_UPDATED).subscribe(() => {
11662
- this.resetCache();
11655
+ this.refreshCache();
11663
11656
  });
11664
11657
  }
11665
11658
  listenTransactions() {
11666
11659
  // @TODO reset cache only when required (transaction has depreciation)
11667
11660
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
11668
- this.resetCache();
11661
+ this.refreshCache();
11669
11662
  });
11670
11663
  }
11671
11664
  }
11672
- DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
11673
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11674
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, decorators: [{
11665
+ DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
11666
+ DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, decorators: [{
11675
11668
  type: Injectable,
11676
11669
  args: [{
11677
11670
  providedIn: 'root'
@@ -11721,9 +11714,9 @@ class DepreciationCapitalProjectService {
11721
11714
  }));
11722
11715
  }
11723
11716
  }
11724
- DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11725
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11717
+ DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11718
+ DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11727
11720
  type: Injectable,
11728
11721
  args: [{
11729
11722
  providedIn: 'root'
@@ -11756,12 +11749,12 @@ class RestService {
11756
11749
  * get list of base class instances directly from backend
11757
11750
  */
11758
11751
  fetch() {
11752
+ this.setCache([]);
11759
11753
  return this.http.get(`${this.environment.apiV2}/${this.url}`)
11760
11754
  .pipe(map((response) => {
11761
11755
  const items = (this.isHydra ? response['hydra:member'] : response)
11762
11756
  .map((item) => this.createModelInstance(item));
11763
- this.cache = items;
11764
- this.updateCache();
11757
+ this.setCache(items, true);
11765
11758
  return items;
11766
11759
  }));
11767
11760
  }
@@ -11770,8 +11763,7 @@ class RestService {
11770
11763
  */
11771
11764
  get() {
11772
11765
  if (!this.cache) {
11773
- this.cache = [];
11774
- this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.updateCache();
11766
+ this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11775
11767
  }
11776
11768
  return this.cacheSubject.asObservable();
11777
11769
  }
@@ -11888,8 +11880,7 @@ class RestService {
11888
11880
  delete(model) {
11889
11881
  return this.http.delete(`${this.environment.apiV2}/${this.url}/${model['id']}`)
11890
11882
  .pipe(map(() => {
11891
- this.cache = this.cache.filter((item) => item['id'] !== model['id']);
11892
- this.updateCache();
11883
+ this.setCache(this.cache.filter((item) => item['id'] !== model['id']), true);
11893
11884
  if (this.messageDeleted) {
11894
11885
  this.toastService.success(this.messageDeleted);
11895
11886
  }
@@ -11903,8 +11894,7 @@ class RestService {
11903
11894
  return this.http.post(`${this.environment.apiV2}/${this.url}/delete`, classToPlain(models))
11904
11895
  .pipe(map(() => {
11905
11896
  const ids = models.map((model) => model['id']);
11906
- this.cache = this.cache.filter((item) => !ids.includes(item['id']));
11907
- this.updateCache();
11897
+ this.setCache(this.cache.filter((item) => !ids.includes(item['id'])), true);
11908
11898
  if (this.messageDeletedBatch) {
11909
11899
  this.toastService.success(this.messageDeletedBatch);
11910
11900
  }
@@ -11913,8 +11903,15 @@ class RestService {
11913
11903
  /**
11914
11904
  * clear service cache
11915
11905
  */
11916
- resetCache() {
11917
- this.fetch().subscribe();
11906
+ refreshCache() {
11907
+ this.setCache(undefined);
11908
+ this.get();
11909
+ }
11910
+ setCache(data, next = false) {
11911
+ this.cache = data;
11912
+ if (next) {
11913
+ this.updateCache();
11914
+ }
11918
11915
  }
11919
11916
  /**
11920
11917
  * Update cache subject with current cache array value
@@ -11935,9 +11932,9 @@ class RestService {
11935
11932
  */
11936
11933
  listenEvents() { }
11937
11934
  }
11938
- RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11939
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, providedIn: 'root' });
11940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, decorators: [{
11935
+ RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11936
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, providedIn: 'root' });
11937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, decorators: [{
11941
11938
  type: Injectable,
11942
11939
  args: [{
11943
11940
  providedIn: 'root'
@@ -11954,9 +11951,9 @@ class DocumentService extends RestService {
11954
11951
  this.modelClass = Document;
11955
11952
  }
11956
11953
  }
11957
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11958
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, providedIn: 'root' });
11959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, decorators: [{
11954
+ DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11955
+ DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, providedIn: 'root' });
11956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, decorators: [{
11960
11957
  type: Injectable,
11961
11958
  args: [{
11962
11959
  providedIn: 'root'
@@ -12022,9 +12019,9 @@ class DocumentFolderService extends RestService {
12022
12019
  }));
12023
12020
  }
12024
12021
  }
12025
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12026
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
12027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, decorators: [{
12022
+ DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12023
+ DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
12024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, decorators: [{
12028
12025
  type: Injectable,
12029
12026
  args: [{
12030
12027
  providedIn: 'root'
@@ -12099,9 +12096,9 @@ FacebookService.authOptions = {
12099
12096
  auth_type: 'rerequest',
12100
12097
  return_scopes: true
12101
12098
  };
12102
- FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12103
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, providedIn: 'root' });
12104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, decorators: [{
12099
+ FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12100
+ FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, providedIn: 'root' });
12101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, decorators: [{
12105
12102
  type: Injectable,
12106
12103
  args: [{
12107
12104
  providedIn: 'root'
@@ -12169,9 +12166,9 @@ class GoogleService {
12169
12166
  google.accounts.id.disableAutoSelect();
12170
12167
  }
12171
12168
  }
12172
- GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12173
- GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, providedIn: 'root' });
12174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, decorators: [{
12169
+ GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12170
+ GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, providedIn: 'root' });
12171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, decorators: [{
12175
12172
  type: Injectable,
12176
12173
  args: [{
12177
12174
  providedIn: 'root'
@@ -12200,9 +12197,9 @@ class FileService extends RestService$1 {
12200
12197
  return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
12201
12198
  }
12202
12199
  }
12203
- FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12204
- FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, providedIn: 'root' });
12205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, decorators: [{
12200
+ FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12201
+ FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, providedIn: 'root' });
12202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, decorators: [{
12206
12203
  type: Injectable,
12207
12204
  args: [{
12208
12205
  providedIn: 'root'
@@ -12219,9 +12216,9 @@ class ClientIncomeTypesService extends RestService$1 {
12219
12216
  this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
12220
12217
  }
12221
12218
  }
12222
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12223
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
12224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
12219
+ ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12220
+ ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
12221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
12225
12222
  type: Injectable,
12226
12223
  args: [{
12227
12224
  providedIn: 'root'
@@ -12333,14 +12330,14 @@ class ClientInviteService extends RestService {
12333
12330
  listenNotifications() {
12334
12331
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
12335
12332
  if (!notification.isRead && (notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED || notification.eventType === UserEventTypeTypeEnum.CLIENT_INVITE)) {
12336
- this.resetCache();
12333
+ this.refreshCache();
12337
12334
  }
12338
12335
  });
12339
12336
  }
12340
12337
  }
12341
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12342
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, decorators: [{
12338
+ ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12339
+ ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
12340
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, decorators: [{
12344
12341
  type: Injectable,
12345
12342
  args: [{
12346
12343
  providedIn: 'root'
@@ -12413,7 +12410,7 @@ class ClientMovementService extends RestService {
12413
12410
  listenNotifications() {
12414
12411
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
12415
12412
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
12416
- this.resetCache();
12413
+ this.refreshCache();
12417
12414
  }
12418
12415
  });
12419
12416
  }
@@ -12423,13 +12420,13 @@ class ClientMovementService extends RestService {
12423
12420
  listenClientInvites() {
12424
12421
  this.eventDispatcherService.on(AppEventTypeEnum.CLIENT_INVITE_ACCEPTED)
12425
12422
  .subscribe(() => {
12426
- this.resetCache();
12423
+ this.refreshCache();
12427
12424
  });
12428
12425
  }
12429
12426
  }
12430
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12431
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, decorators: [{
12427
+ ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12428
+ ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
12429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, decorators: [{
12433
12430
  type: Injectable,
12434
12431
  args: [{
12435
12432
  providedIn: 'root'
@@ -12480,9 +12477,9 @@ class EmployeeService extends RestService {
12480
12477
  }));
12481
12478
  }
12482
12479
  }
12483
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12484
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, decorators: [{
12480
+ EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12481
+ EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, providedIn: 'root' });
12482
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, decorators: [{
12486
12483
  type: Injectable,
12487
12484
  args: [{
12488
12485
  providedIn: 'root'
@@ -12544,9 +12541,9 @@ class EmployeeInviteService extends RestService {
12544
12541
  }));
12545
12542
  }
12546
12543
  }
12547
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12548
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, decorators: [{
12544
+ EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12545
+ EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
12546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, decorators: [{
12550
12547
  type: Injectable,
12551
12548
  args: [{
12552
12549
  providedIn: 'root'
@@ -12571,9 +12568,9 @@ class ClientPortfolioReportService {
12571
12568
  }));
12572
12569
  }
12573
12570
  }
12574
- ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12575
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12576
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12571
+ ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12572
+ ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
12573
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
12577
12574
  type: Injectable,
12578
12575
  args: [{
12579
12576
  providedIn: 'root'
@@ -12635,9 +12632,9 @@ class FirmService {
12635
12632
  }));
12636
12633
  }
12637
12634
  }
12638
- FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12639
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, providedIn: 'root' });
12640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, decorators: [{
12635
+ FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12636
+ FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, providedIn: 'root' });
12637
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, decorators: [{
12641
12638
  type: Injectable,
12642
12639
  args: [{
12643
12640
  providedIn: 'root'
@@ -12711,9 +12708,9 @@ class IncomeSourceForecastService extends RestService {
12711
12708
  }).flat();
12712
12709
  }
12713
12710
  }
12714
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12715
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12711
+ IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12712
+ IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12717
12714
  type: Injectable,
12718
12715
  args: [{
12719
12716
  providedIn: 'root'
@@ -12783,9 +12780,9 @@ class SalaryForecastService extends RestService {
12783
12780
  }).flat();
12784
12781
  }
12785
12782
  }
12786
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12787
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, decorators: [{
12783
+ SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12784
+ SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, decorators: [{
12789
12786
  type: Injectable,
12790
12787
  args: [{
12791
12788
  providedIn: 'root'
@@ -12857,13 +12854,13 @@ class SoleForecastService extends RestService {
12857
12854
  */
12858
12855
  listenBusinessCreated() {
12859
12856
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
12860
- this.resetCache();
12857
+ this.refreshCache();
12861
12858
  });
12862
12859
  }
12863
12860
  }
12864
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12865
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12866
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, decorators: [{
12861
+ SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12862
+ SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, decorators: [{
12867
12864
  type: Injectable,
12868
12865
  args: [{
12869
12866
  providedIn: 'root'
@@ -12938,13 +12935,13 @@ class IncomeSourceService extends RestService {
12938
12935
  listenSoleBusinessCreated() {
12939
12936
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
12940
12937
  // @TODO Alex/Vik (TT-1777): we clear cache a lot, a better and easier way required, add todo and task to refactor
12941
- this.resetCache();
12938
+ this.refreshCache();
12942
12939
  });
12943
12940
  }
12944
12941
  }
12945
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12946
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12947
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, decorators: [{
12942
+ IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12943
+ IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, decorators: [{
12948
12945
  type: Injectable,
12949
12946
  args: [{
12950
12947
  providedIn: 'root'
@@ -13005,9 +13002,9 @@ class BorrowingExpenseService {
13005
13002
  }));
13006
13003
  }
13007
13004
  }
13008
- BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13009
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
13010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, decorators: [{
13005
+ BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13006
+ BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
13007
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, decorators: [{
13011
13008
  type: Injectable,
13012
13009
  args: [{
13013
13010
  providedIn: 'root'
@@ -13035,10 +13032,10 @@ class LoanService extends RestService$1 {
13035
13032
  // Update list of loans when added/changed loan bank account
13036
13033
  this.listenCSE(BankAccount, ['post', 'put'], (bankAccounts) => {
13037
13034
  if (bankAccounts.find(ba => !!ba.loan)) {
13038
- this.resetCache();
13035
+ this.refreshCache();
13039
13036
  }
13040
13037
  });
13041
- this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.resetCache);
13038
+ this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.refreshCache);
13042
13039
  }
13043
13040
  /**
13044
13041
  * Calculate loan payments
@@ -13056,7 +13053,7 @@ class LoanService extends RestService$1 {
13056
13053
  loan.payout = plainToClass(LoanPayout, response);
13057
13054
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13058
13055
  // reset cache to fetch loans with updated data
13059
- this.resetCache();
13056
+ this.refreshCache();
13060
13057
  }));
13061
13058
  }
13062
13059
  /**
@@ -13069,7 +13066,7 @@ class LoanService extends RestService$1 {
13069
13066
  loan.payout = null;
13070
13067
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13071
13068
  // reset cache to fetch loans with updated data
13072
- this.resetCache();
13069
+ this.refreshCache();
13073
13070
  }));
13074
13071
  }
13075
13072
  /**
@@ -13083,13 +13080,13 @@ class LoanService extends RestService$1 {
13083
13080
  loan.payout = plainToClass(LoanPayout, response);
13084
13081
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
13085
13082
  // reset cache to fetch loans with updated data
13086
- this.resetCache();
13083
+ this.refreshCache();
13087
13084
  }));
13088
13085
  }
13089
13086
  }
13090
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13091
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, providedIn: 'root' });
13092
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, decorators: [{
13087
+ LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13088
+ LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, providedIn: 'root' });
13089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, decorators: [{
13093
13090
  type: Injectable,
13094
13091
  args: [{
13095
13092
  providedIn: 'root'
@@ -13106,9 +13103,9 @@ class BorrowingReportService extends RestService$1 {
13106
13103
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13107
13104
  }
13108
13105
  }
13109
- BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13110
- BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
13111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingReportService, decorators: [{
13106
+ BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13107
+ BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
13108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, decorators: [{
13112
13109
  type: Injectable,
13113
13110
  args: [{
13114
13111
  providedIn: 'root'
@@ -13134,9 +13131,9 @@ class PropertyCategoryService extends RestService$1 {
13134
13131
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13135
13132
  }
13136
13133
  }
13137
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13138
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
13139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, decorators: [{
13134
+ PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13135
+ PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
13136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, decorators: [{
13140
13137
  type: Injectable,
13141
13138
  args: [{
13142
13139
  providedIn: 'root'
@@ -13152,9 +13149,9 @@ class PropertyCategoryMovementService extends RestService$1 {
13152
13149
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13153
13150
  }
13154
13151
  }
13155
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13156
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
13157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
13152
+ PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13153
+ PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
13154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
13158
13155
  type: Injectable,
13159
13156
  args: [{
13160
13157
  providedIn: 'root'
@@ -13196,9 +13193,9 @@ class PropertyDocumentService extends RestService$1 {
13196
13193
  });
13197
13194
  }
13198
13195
  }
13199
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13200
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, decorators: [{
13196
+ PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13197
+ PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
13198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, decorators: [{
13202
13199
  type: Injectable,
13203
13200
  args: [{
13204
13201
  providedIn: 'root'
@@ -13277,9 +13274,9 @@ class TaxExemptionService extends DataService {
13277
13274
  this.setCache(TaxExemptions);
13278
13275
  }
13279
13276
  }
13280
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13281
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, decorators: [{
13277
+ TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13278
+ TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
13279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, decorators: [{
13283
13280
  type: Injectable,
13284
13281
  args: [{
13285
13282
  providedIn: 'root'
@@ -13295,9 +13292,9 @@ class PropertySaleService extends RestService$1 {
13295
13292
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
13296
13293
  }
13297
13294
  }
13298
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13299
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13300
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, decorators: [{
13295
+ PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13296
+ PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
13297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, decorators: [{
13301
13298
  type: Injectable,
13302
13299
  args: [{
13303
13300
  providedIn: 'root'
@@ -13332,21 +13329,20 @@ class PropertyShareService extends RestService$1 {
13332
13329
  * Listen to User updated event
13333
13330
  */
13334
13331
  listenUserUpdated() {
13335
- this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
13336
- .subscribe(() => {
13337
- this.resetCache();
13332
+ this.eventDispatcherService.on2(User.getEventName('put')).subscribe(() => {
13333
+ this.refreshCache();
13338
13334
  });
13339
13335
  }
13340
13336
  /**
13341
13337
  * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
13342
13338
  */
13343
13339
  listenSalesChanges() {
13344
- this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
13340
+ this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13345
13341
  }
13346
13342
  }
13347
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13348
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, decorators: [{
13343
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13344
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
13345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, decorators: [{
13350
13346
  type: Injectable,
13351
13347
  args: [{
13352
13348
  providedIn: 'root'
@@ -13389,19 +13385,19 @@ class PropertyService extends RestService$1 {
13389
13385
  * Update cache when share invitation accepted
13390
13386
  */
13391
13387
  listenShareInviteAccepted() {
13392
- this.listenCSE(PropertyShare, ['put'], this.resetCache);
13388
+ this.listenCSE(PropertyShare, ['put'], this.refreshCache);
13393
13389
  }
13394
13390
  /**
13395
13391
  * Update cache when property category changed
13396
13392
  */
13397
13393
  listenMovementsChanges() {
13398
- this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.resetCache);
13394
+ this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.refreshCache);
13399
13395
  }
13400
13396
  /**
13401
13397
  * Update cache when property sales changed
13402
13398
  */
13403
13399
  listenSalesChanges() {
13404
- this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
13400
+ this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
13405
13401
  }
13406
13402
  updateDepreciationCalculation(property) {
13407
13403
  const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
@@ -13443,9 +13439,9 @@ class PropertyService extends RestService$1 {
13443
13439
  }));
13444
13440
  }
13445
13441
  }
13446
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13447
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, providedIn: 'root' });
13448
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, decorators: [{
13442
+ PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13443
+ PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, providedIn: 'root' });
13444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, decorators: [{
13449
13445
  type: Injectable,
13450
13446
  args: [{
13451
13447
  providedIn: 'root'
@@ -13499,9 +13495,9 @@ class ServiceNotificationService extends RestService {
13499
13495
  });
13500
13496
  }
13501
13497
  }
13502
- ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13503
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, decorators: [{
13498
+ ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13499
+ ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
13500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, decorators: [{
13505
13501
  type: Injectable,
13506
13502
  args: [{
13507
13503
  providedIn: 'root'
@@ -13550,9 +13546,9 @@ class SoleBusinessService extends RestService {
13550
13546
  }));
13551
13547
  }
13552
13548
  }
13553
- SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13554
- SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13555
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, decorators: [{
13549
+ SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13550
+ SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
13551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, decorators: [{
13556
13552
  type: Injectable,
13557
13553
  args: [{
13558
13554
  providedIn: 'root'
@@ -13567,9 +13563,9 @@ class SoleBusinessActivityService extends RestService {
13567
13563
  this.isHydra = true;
13568
13564
  }
13569
13565
  }
13570
- SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13571
- SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13572
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13566
+ SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13567
+ SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13568
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13573
13569
  type: Injectable,
13574
13570
  args: [{
13575
13571
  providedIn: 'root'
@@ -13591,13 +13587,13 @@ class SoleBusinessLossService extends RestService {
13591
13587
  */
13592
13588
  listenBusinessCreated() {
13593
13589
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
13594
- this.resetCache();
13590
+ this.refreshCache();
13595
13591
  });
13596
13592
  }
13597
13593
  }
13598
- SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13599
- SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13600
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13594
+ SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13595
+ SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13601
13597
  type: Injectable,
13602
13598
  args: [{
13603
13599
  providedIn: 'root'
@@ -13615,9 +13611,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
13615
13611
  this.isHydra = true;
13616
13612
  }
13617
13613
  }
13618
- SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13619
- SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13620
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13614
+ SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13615
+ SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13621
13617
  type: Injectable,
13622
13618
  args: [{
13623
13619
  providedIn: 'root'
@@ -13632,9 +13628,9 @@ class SoleContactService extends RestService {
13632
13628
  this.isHydra = true;
13633
13629
  }
13634
13630
  }
13635
- SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13636
- SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13637
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, decorators: [{
13631
+ SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13632
+ SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, decorators: [{
13638
13634
  type: Injectable,
13639
13635
  args: [{
13640
13636
  providedIn: 'root'
@@ -13690,9 +13686,9 @@ class SoleDepreciationMethodService {
13690
13686
  });
13691
13687
  }
13692
13688
  }
13693
- SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13694
- SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13695
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13689
+ SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13690
+ SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13696
13692
  type: Injectable,
13697
13693
  args: [{
13698
13694
  providedIn: 'root'
@@ -13745,9 +13741,9 @@ class SoleDetailsService {
13745
13741
  }));
13746
13742
  }
13747
13743
  }
13748
- SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13749
- SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, decorators: [{
13744
+ SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13745
+ SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, decorators: [{
13751
13747
  type: Injectable,
13752
13748
  args: [{
13753
13749
  providedIn: 'root'
@@ -13763,6 +13759,7 @@ class SoleInvoiceService extends RestService {
13763
13759
  this.modelClass = SoleInvoice;
13764
13760
  this.url = 'sole-invoices';
13765
13761
  this.isHydra = true;
13762
+ this.roles = [UserRolesEnum.SOLE_TANK];
13766
13763
  }
13767
13764
  listenEvents() {
13768
13765
  this.listenAllocations();
@@ -13816,13 +13813,13 @@ class SoleInvoiceService extends RestService {
13816
13813
  AppEventTypeEnum.TRANSACTION_ALLOCATION_CREATED,
13817
13814
  AppEventTypeEnum.TRANSACTION_ALLOCATION_DELETED
13818
13815
  ]).subscribe(() => {
13819
- this.resetCache();
13816
+ this.refreshCache();
13820
13817
  });
13821
13818
  }
13822
13819
  }
13823
- SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13824
- SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13825
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, decorators: [{
13820
+ SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13821
+ SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13822
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, decorators: [{
13826
13823
  type: Injectable,
13827
13824
  args: [{
13828
13825
  providedIn: 'root'
@@ -13837,9 +13834,9 @@ class SoleInvoiceTemplateService extends RestService {
13837
13834
  this.isHydra = true;
13838
13835
  }
13839
13836
  }
13840
- SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13841
- SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13837
+ SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13838
+ SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13843
13840
  type: Injectable,
13844
13841
  args: [{
13845
13842
  providedIn: 'root'
@@ -13854,9 +13851,9 @@ class BasReportService extends RestService {
13854
13851
  this.isHydra = true;
13855
13852
  }
13856
13853
  }
13857
- BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13858
- BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, providedIn: 'root' });
13859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, decorators: [{
13854
+ BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13855
+ BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, providedIn: 'root' });
13856
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, decorators: [{
13860
13857
  type: Injectable,
13861
13858
  args: [{
13862
13859
  providedIn: 'root'
@@ -13882,9 +13879,9 @@ class ServicePaymentService extends RestService$1 {
13882
13879
  return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
13883
13880
  }
13884
13881
  }
13885
- ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13886
- ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13887
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, decorators: [{
13882
+ ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13883
+ ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
13884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, decorators: [{
13888
13885
  type: Injectable,
13889
13886
  args: [{
13890
13887
  providedIn: 'root'
@@ -13932,9 +13929,9 @@ class ServicePaymentMethodService extends RestService$1 {
13932
13929
  });
13933
13930
  }
13934
13931
  }
13935
- ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13936
- ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13937
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13932
+ ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13933
+ ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13938
13935
  type: Injectable,
13939
13936
  args: [{
13940
13937
  providedIn: 'root'
@@ -13957,9 +13954,9 @@ class ServicePriceService extends RestService$1 {
13957
13954
  this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
13958
13955
  }
13959
13956
  }
13960
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13961
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
13957
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13958
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, decorators: [{
13963
13960
  type: Injectable,
13964
13961
  args: [{
13965
13962
  providedIn: 'root'
@@ -14074,9 +14071,9 @@ class SubscriptionService extends RestService$1 {
14074
14071
  });
14075
14072
  }
14076
14073
  }
14077
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14078
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
14079
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, decorators: [{
14074
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14075
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
14076
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, decorators: [{
14080
14077
  type: Injectable,
14081
14078
  args: [{
14082
14079
  providedIn: 'root'
@@ -14096,9 +14093,9 @@ class ServiceProductService extends RestService$1 {
14096
14093
  this.isApiPlatform = true;
14097
14094
  }
14098
14095
  }
14099
- ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14100
- ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
14101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, decorators: [{
14096
+ ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14097
+ ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
14098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, decorators: [{
14102
14099
  type: Injectable,
14103
14100
  args: [{
14104
14101
  providedIn: 'root'
@@ -14224,9 +14221,9 @@ class TaxReviewHistoryService extends RestService {
14224
14221
  });
14225
14222
  }
14226
14223
  }
14227
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14228
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
14224
+ TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14225
+ TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
14226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
14230
14227
  type: Injectable,
14231
14228
  args: [{
14232
14229
  providedIn: 'root'
@@ -14287,7 +14284,7 @@ class TaxReviewService extends RestService {
14287
14284
  listenFirmChanges() {
14288
14285
  this.eventDispatcherService.on([AppEventTypeEnum.CLIENT_MOVEMENT_CLOSED, AppEventTypeEnum.CLIENT_INVITE_ACCEPTED])
14289
14286
  .subscribe(() => {
14290
- this.resetCache();
14287
+ this.refreshCache();
14291
14288
  });
14292
14289
  }
14293
14290
  /**
@@ -14310,14 +14307,14 @@ class TaxReviewService extends RestService {
14310
14307
  listenNotifications() {
14311
14308
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
14312
14309
  if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
14313
- this.resetCache();
14310
+ this.refreshCache();
14314
14311
  }
14315
14312
  });
14316
14313
  }
14317
14314
  }
14318
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14319
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, decorators: [{
14315
+ TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14316
+ TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
14317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, decorators: [{
14321
14318
  type: Injectable,
14322
14319
  args: [{
14323
14320
  providedIn: 'root'
@@ -14588,9 +14585,9 @@ class TaxSummaryService {
14588
14585
  });
14589
14586
  }
14590
14587
  }
14591
- TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14592
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14593
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, decorators: [{
14588
+ TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14589
+ TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
14590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, decorators: [{
14594
14591
  type: Injectable,
14595
14592
  args: [{
14596
14593
  providedIn: 'root'
@@ -14609,9 +14606,9 @@ class AllocationRuleService extends RestService$1 {
14609
14606
  this.isApiPlatform = true;
14610
14607
  }
14611
14608
  }
14612
- AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14613
- AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14614
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
14609
+ AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14610
+ AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
14611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, decorators: [{
14615
14612
  type: Injectable,
14616
14613
  args: [{
14617
14614
  providedIn: 'root'
@@ -14678,7 +14675,7 @@ class TransactionAllocationService extends RestService {
14678
14675
  return;
14679
14676
  }
14680
14677
  // Update allocations cache to synchronize data and fire subscriptions
14681
- this.resetCache();
14678
+ this.refreshCache();
14682
14679
  });
14683
14680
  }
14684
14681
  /**
@@ -14687,7 +14684,7 @@ class TransactionAllocationService extends RestService {
14687
14684
  watchDepreciations() {
14688
14685
  // @TODO reset cache only when required (depreciation has transaction with allocations)
14689
14686
  this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
14690
- this.resetCache();
14687
+ this.refreshCache();
14691
14688
  });
14692
14689
  }
14693
14690
  /**
@@ -14697,13 +14694,13 @@ class TransactionAllocationService extends RestService {
14697
14694
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
14698
14695
  // @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
14699
14696
  // Update allocations cache to synchronize data and fire subscriptions
14700
- this.resetCache();
14697
+ this.refreshCache();
14701
14698
  });
14702
14699
  }
14703
14700
  }
14704
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14705
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14706
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, decorators: [{
14701
+ TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14702
+ TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
14703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, decorators: [{
14707
14704
  type: Injectable,
14708
14705
  args: [{
14709
14706
  providedIn: 'root'
@@ -14729,9 +14726,9 @@ class TransactionReceiptService extends ReceiptService {
14729
14726
  this.listenEvents();
14730
14727
  }
14731
14728
  }
14732
- TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
14733
- TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
14734
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, decorators: [{
14729
+ TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
14730
+ TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
14731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, decorators: [{
14735
14732
  type: Injectable,
14736
14733
  args: [{
14737
14734
  providedIn: 'root'
@@ -14773,16 +14770,7 @@ class TransactionService extends RestService {
14773
14770
  * get list of all user's TaxTank transactions
14774
14771
  */
14775
14772
  get() {
14776
- if (!this.cache) {
14777
- // set cache as default empty array to avoid multiple backend requests
14778
- this.cache = [];
14779
- this.fetch()
14780
- .subscribe((transactions) => {
14781
- this.cache = transactions;
14782
- this.updateCache();
14783
- });
14784
- }
14785
- return this.cacheSubject.asObservable().pipe(
14773
+ return super.get().pipe(
14786
14774
  // assign child transactions (fees) to parent transactions
14787
14775
  map((transactions) => {
14788
14776
  transactions.forEach((transaction) => {
@@ -14983,18 +14971,14 @@ class TransactionService extends RestService {
14983
14971
  listenDepreciationChange() {
14984
14972
  // @TODO reset cache only when required (depreciation has transaction)
14985
14973
  this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
14986
- this.fetch()
14987
- .subscribe((transactions) => {
14988
- this.cache = transactions;
14989
- this.updateCache();
14990
- });
14974
+ this.refreshCache();
14991
14975
  });
14992
14976
  }
14993
14977
  /**
14994
14978
  * Listen to EventDispatcherService event related to Property Share changing
14995
14979
  */
14996
14980
  listenPropertyShareUpdate() {
14997
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.resetCache());
14981
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
14998
14982
  }
14999
14983
  listenReceiptAdded() {
15000
14984
  this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
@@ -15018,7 +15002,7 @@ class TransactionService extends RestService {
15018
15002
  AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
15019
15003
  AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
15020
15004
  ]).subscribe(() => {
15021
- this.resetCache();
15005
+ this.refreshCache();
15022
15006
  });
15023
15007
  }
15024
15008
  /**
@@ -15027,7 +15011,7 @@ class TransactionService extends RestService {
15027
15011
  */
15028
15012
  listenPropertyForecastUpdate() {
15029
15013
  this.eventDispatcherService.on([AppEventTypeEnum.PROPERTY_UPDATED]).subscribe(() => {
15030
- this.resetCache();
15014
+ this.refreshCache();
15031
15015
  });
15032
15016
  }
15033
15017
  replaceInCache(transactionToReplace) {
@@ -15036,13 +15020,13 @@ class TransactionService extends RestService {
15036
15020
  }
15037
15021
  listenInvoicesPublish() {
15038
15022
  this.eventDispatcherService.on(AppEventTypeEnum.SOLE_INVOICE_PUBLISHED).subscribe(() => {
15039
- this.resetCache();
15023
+ this.refreshCache();
15040
15024
  });
15041
15025
  }
15042
15026
  }
15043
- TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
15044
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, providedIn: 'root' });
15045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, decorators: [{
15027
+ TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
15028
+ TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, providedIn: 'root' });
15029
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, decorators: [{
15046
15030
  type: Injectable,
15047
15031
  args: [{
15048
15032
  providedIn: 'root'
@@ -15071,9 +15055,9 @@ class TutorialVideoService {
15071
15055
  }
15072
15056
  TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
15073
15057
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
15074
- TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15075
- TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
15076
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, decorators: [{
15058
+ TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15059
+ TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
15060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, decorators: [{
15077
15061
  type: Injectable,
15078
15062
  args: [{
15079
15063
  providedIn: 'root'
@@ -15093,9 +15077,9 @@ class VehicleService extends RestService {
15093
15077
  this.modelClass = Vehicle;
15094
15078
  }
15095
15079
  }
15096
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15097
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, providedIn: 'root' });
15098
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, decorators: [{
15080
+ VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15081
+ VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, providedIn: 'root' });
15082
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, decorators: [{
15099
15083
  type: Injectable,
15100
15084
  args: [{
15101
15085
  providedIn: 'root'
@@ -15132,7 +15116,7 @@ class VehicleClaimService extends RestService {
15132
15116
  listenVehicleClaimDetailsChanges() {
15133
15117
  this.eventDispatcherService.on(AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED)
15134
15118
  .subscribe(() => {
15135
- this.resetCache();
15119
+ this.refreshCache();
15136
15120
  });
15137
15121
  }
15138
15122
  /**
@@ -15168,9 +15152,9 @@ class VehicleClaimService extends RestService {
15168
15152
  combineLatest(batch$).subscribe();
15169
15153
  }
15170
15154
  }
15171
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15172
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
15173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, decorators: [{
15155
+ VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15156
+ VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
15157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, decorators: [{
15174
15158
  type: Injectable,
15175
15159
  args: [{
15176
15160
  providedIn: 'root'
@@ -15247,9 +15231,9 @@ class VehicleClaimDetailsService {
15247
15231
  this.update(vehicleClaimDetails).subscribe();
15248
15232
  }
15249
15233
  }
15250
- VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15251
- VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
15234
+ VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15235
+ VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
15236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
15253
15237
  type: Injectable,
15254
15238
  args: [{
15255
15239
  providedIn: 'root'
@@ -15269,9 +15253,9 @@ class VehicleLogbookService extends RestService {
15269
15253
  this.modelClass = VehicleLogbook;
15270
15254
  }
15271
15255
  }
15272
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15273
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, decorators: [{
15256
+ VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15257
+ VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
15258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, decorators: [{
15275
15259
  type: Injectable,
15276
15260
  args: [{
15277
15261
  providedIn: 'root'
@@ -15288,9 +15272,9 @@ class AnnualClientDetailsService extends RestService$1 {
15288
15272
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15289
15273
  }
15290
15274
  }
15291
- AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15292
- AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
15275
+ AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15276
+ AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
15277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
15294
15278
  type: Injectable,
15295
15279
  args: [{
15296
15280
  providedIn: 'root'
@@ -15321,9 +15305,9 @@ class OccupationService {
15321
15305
  return this.occupationsSubject.asObservable();
15322
15306
  }
15323
15307
  }
15324
- OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15325
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, providedIn: 'root' });
15326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, decorators: [{
15308
+ OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15309
+ OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, providedIn: 'root' });
15310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, decorators: [{
15327
15311
  type: Injectable,
15328
15312
  args: [{
15329
15313
  providedIn: 'root'
@@ -15398,9 +15382,9 @@ class UserEventSettingService extends RestService {
15398
15382
  }));
15399
15383
  }
15400
15384
  }
15401
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15402
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, decorators: [{
15385
+ UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15386
+ UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
15387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, decorators: [{
15404
15388
  type: Injectable,
15405
15389
  args: [{
15406
15390
  providedIn: 'root'
@@ -15415,9 +15399,9 @@ class UserEventTypeService extends RestService {
15415
15399
  this.isHydra = true;
15416
15400
  }
15417
15401
  }
15418
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15419
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, decorators: [{
15402
+ UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15403
+ UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
15404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, decorators: [{
15421
15405
  type: Injectable,
15422
15406
  args: [{
15423
15407
  providedIn: 'root'
@@ -15434,161 +15418,77 @@ class UsersInviteService extends RestService {
15434
15418
  this.url = 'users/invite';
15435
15419
  }
15436
15420
  }
15437
- UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15438
- UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, decorators: [{
15421
+ UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15422
+ UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
15423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, decorators: [{
15440
15424
  type: Injectable,
15441
15425
  args: [{
15442
15426
  providedIn: 'root'
15443
15427
  }]
15444
15428
  }] });
15445
15429
 
15446
- /**
15447
- * Service to work with user
15448
- */
15449
- class UserService {
15450
- constructor(http, jwtService, eventDispatcherService, sseService, environment) {
15430
+ class UserService extends RestService$1 {
15431
+ constructor(http, eventDispatcherService, environment) {
15432
+ super(http, eventDispatcherService, environment);
15451
15433
  this.http = http;
15452
- this.jwtService = jwtService;
15453
15434
  this.eventDispatcherService = eventDispatcherService;
15454
- this.sseService = sseService;
15455
15435
  this.environment = environment;
15456
- this.cacheSubject = new ReplaySubject(1);
15457
- this.listenEvents();
15458
- }
15459
- /**
15460
- * never return cache directly to prevent update
15461
- */
15462
- getCache() {
15463
- return clone(this.cache);
15436
+ this.modelClass = User;
15437
+ this.collectionClass = Collection;
15438
+ this.endpointUri = 'users';
15439
+ this.isApiPlatform = false;
15440
+ this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
15464
15441
  }
15465
15442
  listenEvents() {
15466
15443
  this.listenServiceSubscriptionUpdated();
15467
15444
  this.listenBasiqConsentUpdated();
15468
15445
  }
15469
- get() {
15470
- if (!this.cache) {
15471
- this.fetch().subscribe(() => { }, (error) => {
15472
- // force logout user (clear localStorage) when get current user return error
15473
- if (error.status === 500) {
15474
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.CURRENT_USER_GET_FAILED, null));
15475
- }
15476
- });
15477
- }
15478
- return this.cacheSubject.asObservable();
15479
- }
15480
- /**
15481
- * Get current user
15482
- */
15483
15446
  fetch() {
15484
- return this.http.get(`${this.environment.apiV2}/users/current`)
15485
- .pipe(map((userBase) => {
15486
- const user = plainToClass(User, userBase);
15487
- // @TODO Vik remove
15488
- localStorage.setItem('userId', user.id.toString());
15489
- localStorage.setItem('financialYear', user.financialYear.toString());
15490
- this.cache = user;
15491
- this.cacheSubject.next(this.cache);
15492
- return user;
15447
+ return super.fetch(`${this.apiUrl}/current`).pipe(map((users) => {
15448
+ localStorage.setItem('userId', this.getCacheFirst().id.toString());
15449
+ localStorage.setItem('financialYear', this.getCacheFirst().financialYear.toString());
15450
+ return users;
15493
15451
  }));
15494
15452
  }
15495
- /**
15496
- * Register new user
15497
- */
15498
15453
  register(data) {
15499
- return this.http.post(`${this.environment.apiV2}/users/registration`, data);
15500
- }
15501
- /**
15502
- * Update user
15503
- */
15504
- update(user) {
15505
- return this.http.put(`${this.environment.apiV2}/users/${user.id}`, user)
15506
- .pipe(map((userBase) => {
15507
- this.cache = plainToClass(User, userBase);
15508
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.USER_UPDATED, null));
15509
- this.cacheSubject.next(this.cache);
15510
- }));
15454
+ return this.http.post(`${this.apiUrl}/registration`, data);
15511
15455
  }
15512
- /**
15513
- * Change user password
15514
- */
15515
15456
  changePassword(currentPassword, newPassword) {
15516
- return this.http.put(`${this.environment.apiV2}/users/password/change`, { currentPassword, newPassword });
15457
+ return this.http.put(`${this.apiUrl}/password/change`, { currentPassword, newPassword });
15517
15458
  }
15518
- /**
15519
- * Recovery user password
15520
- */
15521
15459
  recoveryPassword(email) {
15522
- return this.http.put(`${this.environment.apiV2}/users/password/recovery`, { email });
15460
+ return this.http.put(`${this.apiUrl}/password/recovery`, { email });
15523
15461
  }
15524
- /**
15525
- * Reset user password
15526
- */
15527
15462
  resetPassword(newPassword, resetToken) {
15528
- return this.http.put(`${this.environment.apiV2}/users/password/reset`, { newPassword, resetToken });
15463
+ return this.http.put(`${this.apiUrl}/password/reset`, { newPassword, resetToken });
15529
15464
  }
15530
15465
  resendConfirmationEmail(email) {
15531
- return this.http.post(`${this.environment.apiV2}/users/confirmation/resend`, { email });
15466
+ return this.http.post(`${this.apiUrl}/confirmation/resend`, { email });
15532
15467
  }
15533
15468
  /**
15534
15469
  * Confirm registered user
15535
15470
  */
15536
15471
  confirm(verificationCode) {
15537
- return this.http.post(`${this.environment.apiV2}/users/confirmation`, { verificationCode });
15472
+ return this.http.post(`${this.apiUrl}/confirmation`, { verificationCode });
15538
15473
  }
15539
15474
  /**
15540
15475
  * Search existing user
15541
15476
  */
15542
15477
  search(email) {
15543
- return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
15544
- .pipe(map((userBase) => plainToClass(User, userBase)));
15478
+ return this.http.get(`${this.apiUrl}/search?email=${email}`).pipe(map((userBase) => this.createModelInstance(userBase)));
15545
15479
  }
15546
- /**
15547
- * Finish onboarding process
15548
- */
15549
15480
  finishOnboarding(user) {
15550
- return this.http.put(`${this.environment.apiV2}/users/status`, user)
15551
- .pipe(map(() => {
15552
- this.cache = user;
15553
- this.cacheSubject.next(this.cache);
15554
- }));
15481
+ return this.put(user, `${this.apiUrl}/status`);
15555
15482
  }
15556
- /**
15557
- * Update user photo
15558
- */
15559
15483
  updatePhoto(photo) {
15560
- return this.http.post(`${this.environment.apiV2}/users/photo?_method=PUT`, photo)
15561
- .pipe(map((photoUrl) => {
15562
- this.cache = plainToClass(User, Object.assign(this.cache, { photo: photoUrl }));
15563
- this.cacheSubject.next(this.cache);
15484
+ return this.http.post(`${this.apiUrl}/photo?_method=PUT`, photo).pipe(map((photoUrl) => {
15485
+ this.setCache([Object.assign(this.cache, { photo: photoUrl })], true);
15564
15486
  }));
15565
15487
  }
15566
- switchFinancialYear(year) {
15567
- return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
15568
- localStorage.setItem('financialYear', year.toString());
15569
- window.location.reload();
15570
- }));
15571
- }
15572
- /**
15573
- * clear service cache
15574
- */
15575
- resetCache() {
15576
- this.fetch().subscribe();
15577
- }
15578
- /**
15579
- * @TODO Alex refactor, it's not createBasiq
15580
- * Create basiq (if not exist yet) to provide access to basiq api
15581
- */
15582
15488
  createBasiq() {
15583
- // no need to create basiqId if already exist
15584
- // @TODO Alex (TT-2431): move this check to component or separated method
15585
- if (this.cache?.basiqId) {
15586
- return of(this.cache.basiqId);
15587
- }
15588
15489
  return this.http.post(`${this.environment.apiV2}/basiq/user`, {})
15589
15490
  .pipe(map((basiqId) => {
15590
- this.cache = plainToClass(User, Object.assign(this.cache, { basiqId }));
15591
- this.cacheSubject.next(this.cache);
15491
+ this.setCache([Object.assign(this.cache, { basiqId })], true);
15592
15492
  return basiqId;
15593
15493
  }));
15594
15494
  }
@@ -15596,39 +15496,47 @@ class UserService {
15596
15496
  * Update cache when user's service subscription is updated
15597
15497
  */
15598
15498
  listenServiceSubscriptionUpdated() {
15599
- this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
15499
+ this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.refreshCache());
15600
15500
  }
15601
15501
  /**
15602
15502
  * Update cache when user's basiq consent flag is updated
15603
15503
  */
15604
15504
  listenBasiqConsentUpdated() {
15605
- this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.resetCache());
15505
+ this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
15606
15506
  }
15607
- /**
15608
- * @TODO remove when the class refactored on RestService
15609
- * Subscribe to http events and run callback.
15610
- * CSE - Cleint Sent Events
15611
- * @param modelClass
15612
- * @param methods The list of http methods should be listened for
15613
- * @param callback The function to be called when event triggered
15614
- */
15615
- listenCSE(modelClass, methods, callback) {
15616
- callback = callback.bind(this);
15617
- methods.forEach((method) => {
15618
- this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
15619
- callback(data);
15620
- });
15621
- });
15507
+ }
15508
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15509
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, providedIn: 'root' });
15510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, decorators: [{
15511
+ type: Injectable,
15512
+ args: [{
15513
+ providedIn: 'root'
15514
+ }]
15515
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15516
+ type: Inject,
15517
+ args: ['environment']
15518
+ }] }]; } });
15519
+
15520
+ class FinancialYearService {
15521
+ constructor(http, environment) {
15522
+ this.http = http;
15523
+ this.environment = environment;
15524
+ }
15525
+ switch(year) {
15526
+ return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
15527
+ localStorage.setItem('financialYear', year.toString());
15528
+ window.location.reload();
15529
+ }));
15622
15530
  }
15623
15531
  }
15624
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15625
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, providedIn: 'root' });
15626
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, decorators: [{
15532
+ FinancialYearService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15533
+ FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
15534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, decorators: [{
15627
15535
  type: Injectable,
15628
15536
  args: [{
15629
15537
  providedIn: 'root'
15630
15538
  }]
15631
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: JwtService }, { type: EventDispatcherService }, { type: SseService }, { type: undefined, decorators: [{
15539
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
15632
15540
  type: Inject,
15633
15541
  args: ['environment']
15634
15542
  }] }]; } });
@@ -15644,12 +15552,12 @@ class HoldingService extends RestService$1 {
15644
15552
  this.roles = [UserRolesEnum.HOLDING_TANK];
15645
15553
  }
15646
15554
  listenEvents() {
15647
- this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.resetCache);
15555
+ this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
15648
15556
  }
15649
15557
  }
15650
- HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15651
- HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, providedIn: 'root' });
15652
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, decorators: [{
15558
+ HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15559
+ HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, providedIn: 'root' });
15560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, decorators: [{
15653
15561
  type: Injectable,
15654
15562
  args: [{
15655
15563
  providedIn: 'root'
@@ -15666,9 +15574,9 @@ class HoldingTypeService extends RestService$1 {
15666
15574
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15667
15575
  }
15668
15576
  }
15669
- HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15670
- HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, decorators: [{
15577
+ HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15578
+ HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
15579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, decorators: [{
15672
15580
  type: Injectable,
15673
15581
  args: [{
15674
15582
  providedIn: 'root'
@@ -15685,9 +15593,9 @@ class HoldingSaleService extends RestService$1 {
15685
15593
  this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
15686
15594
  }
15687
15595
  }
15688
- HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15689
- HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15690
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, decorators: [{
15596
+ HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15597
+ HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
15598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, decorators: [{
15691
15599
  type: Injectable,
15692
15600
  args: [{
15693
15601
  providedIn: 'root'
@@ -15782,9 +15690,9 @@ class HoldingTypeExchangeService extends DataService {
15782
15690
  this.setCache(HoldingTypeExchanges);
15783
15691
  }
15784
15692
  }
15785
- HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15786
- HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15693
+ HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15694
+ HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
15695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
15788
15696
  type: Injectable,
15789
15697
  args: [{
15790
15698
  providedIn: 'root'
@@ -15888,9 +15796,9 @@ class IncomeSourceTypeService extends DataService {
15888
15796
  this.setCache(IncomeSourceTypes);
15889
15797
  }
15890
15798
  }
15891
- IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15892
- IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15799
+ IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15800
+ IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
15801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
15894
15802
  type: Injectable,
15895
15803
  args: [{
15896
15804
  providedIn: 'root'
@@ -15912,9 +15820,9 @@ class ChartAccountsValueService extends DataService {
15912
15820
  return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
15913
15821
  }
15914
15822
  }
15915
- ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15916
- ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15823
+ ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15824
+ ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
15825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, decorators: [{
15918
15826
  type: Injectable,
15919
15827
  args: [{
15920
15828
  providedIn: 'root'
@@ -18004,9 +17912,9 @@ class TaxReturnItemService extends DataService {
18004
17912
  this.setCache(TaxReturnItems);
18005
17913
  }
18006
17914
  }
18007
- TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18008
- TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
18009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReturnItemService, decorators: [{
17915
+ TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17916
+ TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
17917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, decorators: [{
18010
17918
  type: Injectable,
18011
17919
  args: [{
18012
17920
  providedIn: 'root'
@@ -18124,7 +18032,7 @@ class AccountSetupService {
18124
18032
  get() {
18125
18033
  if (!this.cache) {
18126
18034
  this.cache = new AccountSetupItemCollection([]);
18127
- this.clientIncomeTypesService.getSingle()
18035
+ this.clientIncomeTypesService.getFirst()
18128
18036
  .pipe(mergeMap((incomeTypes) => {
18129
18037
  this.clientIncomeTypesId = incomeTypes.id;
18130
18038
  return this.createBatch(incomeTypes);
@@ -18168,7 +18076,7 @@ class AccountSetupService {
18168
18076
  */
18169
18077
  createBatch(incomeTypes) {
18170
18078
  const batch = [];
18171
- const user = this.userService.getCache();
18079
+ const user = this.userService.getCacheFirst();
18172
18080
  // Salary item is completed when user added salary income source
18173
18081
  if (incomeTypes.work && user.hasRoles(UserRolesEnum.WORK_TANK)) {
18174
18082
  batch.push(this.create(AccountSetupItemsEnum.SALARY, this.getIncomeSources(true)),
@@ -18228,7 +18136,7 @@ class AccountSetupService {
18228
18136
  * Show bank feeds item when user has only holding tank
18229
18137
  */
18230
18138
  getBankFeedsItem() {
18231
- const userRoles = this.userService.getCache().roles;
18139
+ const userRoles = this.userService.getCacheFirst().roles;
18232
18140
  const bankFeedsRoles = [UserRolesEnum.PROPERTY_TANK, UserRolesEnum.WORK_TANK, UserRolesEnum.SOLE_TANK];
18233
18141
  if (!intersection(bankFeedsRoles, userRoles).length) {
18234
18142
  return of(null);
@@ -18236,9 +18144,9 @@ class AccountSetupService {
18236
18144
  return this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.getArray());
18237
18145
  }
18238
18146
  }
18239
- AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
18240
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
18241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, decorators: [{
18147
+ AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
18148
+ AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
18149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, decorators: [{
18242
18150
  type: Injectable,
18243
18151
  args: [{
18244
18152
  providedIn: 'root'
@@ -18264,9 +18172,9 @@ class RewardfulService {
18264
18172
  });
18265
18173
  }
18266
18174
  }
18267
- RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18268
- RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, decorators: [{
18175
+ RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18176
+ RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, providedIn: 'root' });
18177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, decorators: [{
18270
18178
  type: Injectable,
18271
18179
  args: [{
18272
18180
  providedIn: 'root'
@@ -18302,9 +18210,9 @@ class UserSwitcherService {
18302
18210
  window.location.replace('/firm/dashboard');
18303
18211
  }
18304
18212
  }
18305
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18306
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, decorators: [{
18213
+ UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18214
+ UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
18215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, decorators: [{
18308
18216
  type: Injectable,
18309
18217
  args: [{
18310
18218
  providedIn: 'root'
@@ -18346,9 +18254,9 @@ class AssetsService {
18346
18254
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
18347
18255
  }
18348
18256
  }
18349
- AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18350
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, providedIn: 'root' });
18351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, decorators: [{
18257
+ AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18258
+ AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, providedIn: 'root' });
18259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, decorators: [{
18352
18260
  type: Injectable,
18353
18261
  args: [{
18354
18262
  providedIn: 'root'
@@ -18407,9 +18315,9 @@ class BankTransactionCalculationService {
18407
18315
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
18408
18316
  }
18409
18317
  }
18410
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18411
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18318
+ BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18319
+ BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
18320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
18413
18321
  type: Injectable,
18414
18322
  args: [{
18415
18323
  providedIn: 'root'
@@ -18438,9 +18346,9 @@ class BankAccountCalculationService {
18438
18346
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
18439
18347
  }
18440
18348
  }
18441
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18442
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18349
+ BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
18350
+ BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
18351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, decorators: [{
18444
18352
  type: Injectable,
18445
18353
  args: [{
18446
18354
  providedIn: 'root'
@@ -18468,9 +18376,9 @@ class ExportFormatterService {
18468
18376
  }));
18469
18377
  }
18470
18378
  }
18471
- ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.PercentPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
18472
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18473
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, decorators: [{
18379
+ ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.PercentPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
18380
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
18381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, decorators: [{
18474
18382
  type: Injectable,
18475
18383
  args: [{
18476
18384
  providedIn: 'root'
@@ -18491,9 +18399,9 @@ class HeaderTitleService {
18491
18399
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
18492
18400
  }
18493
18401
  }
18494
- HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
18495
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18496
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, decorators: [{
18402
+ HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
18403
+ HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
18404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, decorators: [{
18497
18405
  type: Injectable,
18498
18406
  args: [{
18499
18407
  providedIn: 'root'
@@ -18527,9 +18435,9 @@ class IntercomService {
18527
18435
  window.Intercom('boot', connectionCredentials);
18528
18436
  }
18529
18437
  }
18530
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18531
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, providedIn: 'root' });
18532
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, decorators: [{
18438
+ IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18439
+ IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, providedIn: 'root' });
18440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, decorators: [{
18533
18441
  type: Injectable,
18534
18442
  args: [{
18535
18443
  providedIn: 'root'
@@ -18599,9 +18507,9 @@ class PdfFromDomElementService {
18599
18507
  .then((blob) => new File([blob], filename, { type: 'application/pdf' })));
18600
18508
  }
18601
18509
  }
18602
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18603
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18510
+ PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18511
+ PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
18512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, decorators: [{
18605
18513
  type: Injectable,
18606
18514
  args: [{
18607
18515
  providedIn: 'root'
@@ -18695,9 +18603,9 @@ class PdfFromTableService {
18695
18603
  .setTextColor(FILE_SETTINGS.text.colorPrimary);
18696
18604
  }
18697
18605
  }
18698
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18699
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18700
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, decorators: [{
18606
+ PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18607
+ PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
18608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, decorators: [{
18701
18609
  type: Injectable,
18702
18610
  args: [{
18703
18611
  providedIn: 'root'
@@ -18736,9 +18644,9 @@ class PdfFromDataTableService extends PdfFromTableService {
18736
18644
  return pdf;
18737
18645
  }
18738
18646
  }
18739
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18740
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18647
+ PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
18648
+ PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
18649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, decorators: [{
18742
18650
  type: Injectable,
18743
18651
  args: [{
18744
18652
  providedIn: 'root'
@@ -18774,9 +18682,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
18774
18682
  return pdf;
18775
18683
  }
18776
18684
  }
18777
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18778
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18779
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18685
+ PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
18686
+ PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
18687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
18780
18688
  type: Injectable,
18781
18689
  args: [{
18782
18690
  providedIn: 'root'
@@ -18801,9 +18709,9 @@ class PreloaderService {
18801
18709
  this.activePreloaders.next(activePreloaders);
18802
18710
  }
18803
18711
  }
18804
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18805
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, decorators: [{
18712
+ PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18713
+ PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, providedIn: 'root' });
18714
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, decorators: [{
18807
18715
  type: Injectable,
18808
18716
  args: [{
18809
18717
  providedIn: 'root'
@@ -18830,9 +18738,9 @@ class EquityPositionChartService {
18830
18738
  }))));
18831
18739
  }
18832
18740
  }
18833
- EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18834
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, decorators: [{
18741
+ EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
18742
+ EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
18743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, decorators: [{
18836
18744
  type: Injectable,
18837
18745
  args: [{
18838
18746
  providedIn: 'root'
@@ -19005,9 +18913,9 @@ class PropertyCalculationService {
19005
18913
  }
19006
18914
  }
19007
18915
  }
19008
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19009
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
19010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, decorators: [{
18916
+ PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18917
+ PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
18918
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, decorators: [{
19011
18919
  type: Injectable,
19012
18920
  args: [{
19013
18921
  providedIn: 'root'
@@ -19060,9 +18968,9 @@ class PropertyTransactionReportService {
19060
18968
  .getWithoutBorrowingExpenses()));
19061
18969
  }
19062
18970
  }
19063
- PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
19064
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
19065
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
18971
+ PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
18972
+ PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
18973
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
19066
18974
  type: Injectable,
19067
18975
  args: [{
19068
18976
  providedIn: 'root'
@@ -19133,9 +19041,9 @@ class TransactionCalculationService {
19133
19041
  return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
19134
19042
  }
19135
19043
  }
19136
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19137
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
19138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, decorators: [{
19044
+ TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19045
+ TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
19046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, decorators: [{
19139
19047
  type: Injectable,
19140
19048
  args: [{
19141
19049
  providedIn: 'root'
@@ -19195,9 +19103,9 @@ class LogbookBestPeriodService {
19195
19103
  });
19196
19104
  }
19197
19105
  }
19198
- LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
19199
- LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
19200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
19106
+ LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
19107
+ LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
19108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
19201
19109
  type: Injectable,
19202
19110
  args: [{
19203
19111
  providedIn: 'root'
@@ -19275,9 +19183,9 @@ class XlsxService {
19275
19183
  FileSaver.saveAs(data, `${fileName}.xlsx`);
19276
19184
  }
19277
19185
  }
19278
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19279
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, providedIn: 'root' });
19280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, decorators: [{
19186
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19187
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, providedIn: 'root' });
19188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, decorators: [{
19281
19189
  type: Injectable,
19282
19190
  args: [{
19283
19191
  providedIn: 'root'
@@ -19407,9 +19315,9 @@ class JwtInterceptor {
19407
19315
  });
19408
19316
  }
19409
19317
  }
19410
- JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19411
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor });
19412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, decorators: [{
19318
+ JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19319
+ JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor });
19320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, decorators: [{
19413
19321
  type: Injectable
19414
19322
  }], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
19415
19323
  type: Inject,
@@ -19455,9 +19363,9 @@ class UserSwitcherInterceptor {
19455
19363
  return next.handle(this.switch(request, this.userSwitcherService.get()));
19456
19364
  }
19457
19365
  }
19458
- UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19459
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor });
19460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19366
+ UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
19367
+ UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor });
19368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
19461
19369
  type: Injectable
19462
19370
  }], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
19463
19371
  type: Inject,
@@ -19744,9 +19652,9 @@ class PreloaderInterceptor {
19744
19652
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
19745
19653
  }
19746
19654
  }
19747
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19748
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor });
19749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19655
+ PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
19656
+ PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor });
19657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, decorators: [{
19750
19658
  type: Injectable
19751
19659
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
19752
19660
 
@@ -19762,7 +19670,7 @@ class BasiqTokenInterceptor {
19762
19670
  if (!request.url.includes(BasiqService.basiqApiUrl)) {
19763
19671
  return next.handle(request);
19764
19672
  }
19765
- return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
19673
+ return this.basiqTokenService.getFirst().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
19766
19674
  }
19767
19675
  addToken(request, token) {
19768
19676
  return request.clone({
@@ -19772,9 +19680,9 @@ class BasiqTokenInterceptor {
19772
19680
  });
19773
19681
  }
19774
19682
  }
19775
- BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19776
- BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor });
19777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19683
+ BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
19684
+ BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor });
19685
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
19778
19686
  type: Injectable
19779
19687
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
19780
19688
 
@@ -19798,17 +19706,17 @@ class BasiqClientIdInterceptor {
19798
19706
  });
19799
19707
  }
19800
19708
  }
19801
- BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19802
- BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor });
19803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19709
+ BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
19710
+ BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor });
19711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
19804
19712
  type: Injectable
19805
19713
  }], ctorParameters: function () { return [{ type: UserService }]; } });
19806
19714
 
19807
19715
  class InterceptorsModule {
19808
19716
  }
19809
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19810
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule });
19811
- InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, providers: [
19717
+ InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19718
+ InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule });
19719
+ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, providers: [
19812
19720
  {
19813
19721
  provide: HTTP_INTERCEPTORS,
19814
19722
  useClass: CorelogicInterceptor,
@@ -19846,7 +19754,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
19846
19754
  multi: true
19847
19755
  }
19848
19756
  ] });
19849
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, decorators: [{
19757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, decorators: [{
19850
19758
  type: NgModule,
19851
19759
  args: [{
19852
19760
  providers: [
@@ -19904,12 +19812,12 @@ class TtCoreModule {
19904
19812
  };
19905
19813
  }
19906
19814
  }
19907
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19908
- TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19815
+ TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19816
+ TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19909
19817
  InterceptorsModule] });
19910
- TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19818
+ TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
19911
19819
  InterceptorsModule] });
19912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, decorators: [{
19820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, decorators: [{
19913
19821
  type: NgModule,
19914
19822
  args: [{
19915
19823
  declarations: [],
@@ -20465,9 +20373,13 @@ function addressCorelogicValidator() {
20465
20373
  }
20466
20374
  // we need at least corelogic locality id to get growth percent
20467
20375
  const locIdControl = form.get('corelogicLocId');
20376
+ const refIdControl = form.get('corelogicRefId');
20468
20377
  if (locIdControl.enabled && locIdControl.hasError('required')) {
20469
20378
  return { address: 'City, state or postal code not specified' };
20470
20379
  }
20380
+ if (refIdControl.enabled && refIdControl.hasError('required')) {
20381
+ return { address: 'Street number not specified' };
20382
+ }
20471
20383
  return null;
20472
20384
  };
20473
20385
  }
@@ -20486,7 +20398,7 @@ class AddressForm extends AbstractForm {
20486
20398
  type: new UntypedFormControl(address?.type || AddressTypeEnum.STREET, Validators.required),
20487
20399
  // corelogic fields (required for Australia and disabled for other countries)
20488
20400
  corelogicLocId: new UntypedFormControl({ value: address?.corelogicLocId, disabled: true }, Validators.required),
20489
- corelogicRefId: new UntypedFormControl({ value: address?.corelogicRefId, disabled: true }),
20401
+ corelogicRefId: new UntypedFormControl({ value: address?.corelogicRefId, disabled: true }, Validators.required),
20490
20402
  // manual fields (using when address not found in corelogic)
20491
20403
  unitNumber: new UntypedFormControl({ value: address?.unitNumber, disabled: true }),
20492
20404
  address: new UntypedFormControl({ value: address?.address, disabled: true }, Validators.required),
@@ -23519,10 +23431,13 @@ var MessagesEnum;
23519
23431
  })(MessagesEnum || (MessagesEnum = {}));
23520
23432
 
23521
23433
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
23434
+ /**
23435
+ * Public API Surface of tt-core
23436
+ */
23522
23437
 
23523
23438
  /**
23524
23439
  * Generated bundle index. Do not edit.
23525
23440
  */
23526
23441
 
23527
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, 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, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, 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, ServicePromoCode, 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, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, 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, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
23442
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, 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, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, 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, ServicePromoCode, 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, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, 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, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
23528
23443
  //# sourceMappingURL=taxtank-core.mjs.map