taxtank-core 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/bundles/taxtank-core.umd.js +754 -617
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +6 -3
  4. package/esm2015/lib/db/Enums/bank-popular.enum.js +14 -0
  5. package/esm2015/lib/forms/abstract.form.js +11 -4
  6. package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +75 -0
  7. package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +43 -0
  8. package/esm2015/lib/forms/bank/bank-account/bank-account-loan.form.js +23 -0
  9. package/esm2015/lib/forms/bank/bank-account/bank-account-properties.form.js +36 -0
  10. package/esm2015/lib/forms/bank/bank-account/bank-accounts-import.form.js +50 -0
  11. package/esm2015/lib/forms/index.js +6 -7
  12. package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +3 -3
  13. package/esm2015/lib/forms/user/password.form.js +3 -2
  14. package/esm2015/lib/forms/user/reset-password.form.js +2 -1
  15. package/esm2015/lib/interceptors/basiq.interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  19. package/esm2015/lib/interceptors/jwt-interceptor.js +9 -4
  20. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  21. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  22. package/esm2015/lib/models/bank/bank.js +7 -2
  23. package/esm2015/lib/models/dictionary/dictionary.js +35 -0
  24. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  25. package/esm2015/lib/services/asset/assets.service.js +3 -3
  26. package/esm2015/lib/services/auth/auth.service.js +3 -3
  27. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  28. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  29. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  30. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  31. package/esm2015/lib/services/event/sse.service.js +3 -3
  32. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  33. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  34. package/esm2015/lib/services/http/address/address.service.js +3 -3
  35. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +10 -4
  36. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +18 -48
  37. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  38. package/esm2015/lib/services/http/bank/bank.service.js +11 -4
  39. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  40. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +55 -17
  41. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  42. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  43. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  44. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  45. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  46. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  47. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  48. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  49. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  50. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  51. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  52. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  53. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  54. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  55. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  56. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  57. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  58. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  59. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  60. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  61. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  62. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  63. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  64. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  65. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  66. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  67. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  68. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  69. package/esm2015/lib/services/http/property/property.service.js +3 -3
  70. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  71. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  72. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  73. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  74. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  75. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  76. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  77. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  78. package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
  79. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  80. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  81. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  82. package/esm2015/lib/services/http/user/user.service.js +3 -3
  83. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  84. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  85. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  86. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  87. package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
  88. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  89. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  90. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  91. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  92. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  93. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  94. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  95. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  96. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  97. package/esm2015/lib/services/toast/toast.service.js +3 -3
  98. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  99. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  100. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  101. package/esm2015/lib/tt-core.module.js +4 -4
  102. package/esm2015/lib/validators/at-least-one-enabled.validator.js +11 -0
  103. package/esm2015/lib/validators/autocomplete.validator.js +10 -0
  104. package/esm2015/lib/validators/index.js +2 -3
  105. package/esm2015/public-api.js +2 -2
  106. package/fesm2015/taxtank-core.js +705 -562
  107. package/fesm2015/taxtank-core.js.map +1 -1
  108. package/lib/collections/collection.d.ts +2 -1
  109. package/lib/db/Enums/bank-popular.enum.d.ts +12 -0
  110. package/lib/forms/abstract.form.d.ts +5 -3
  111. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +25 -0
  112. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts +15 -0
  113. package/lib/forms/bank/bank-account/bank-account-loan.form.d.ts +8 -0
  114. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +11 -0
  115. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +12 -0
  116. package/lib/forms/index.d.ts +5 -6
  117. package/lib/models/bank/bank.d.ts +1 -0
  118. package/lib/models/dictionary/dictionary.d.ts +12 -0
  119. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +3 -0
  120. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +0 -8
  121. package/lib/services/http/bank/bank.service.d.ts +2 -0
  122. package/lib/services/http/bank/basiq/basiq.service.d.ts +12 -3
  123. package/lib/validators/at-least-one-enabled.validator.d.ts +5 -0
  124. package/lib/validators/{require-autocomplete.d.ts → autocomplete.validator.d.ts} +2 -1
  125. package/lib/validators/index.d.ts +1 -2
  126. package/package.json +1 -1
  127. package/public-api.d.ts +1 -1
  128. package/esm2015/lib/collections/bank.collection.js +0 -15
  129. package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +0 -19
  130. package/esm2015/lib/forms/bank/bank-account-loan.form.js +0 -20
  131. package/esm2015/lib/forms/bank/bank-account-migrate.form.js +0 -15
  132. package/esm2015/lib/forms/bank/bank-account-properties.form.js +0 -15
  133. package/esm2015/lib/forms/bank/bank-account-property.form.js +0 -13
  134. package/esm2015/lib/forms/bank/bank-account.form.js +0 -66
  135. package/esm2015/lib/validators/require-autocomplete.js +0 -14
  136. package/esm2015/lib/validators/require-select.validator.js +0 -15
  137. package/lib/collections/bank.collection.d.ts +0 -7
  138. package/lib/forms/bank/bank-account-add-manual.form.d.ts +0 -10
  139. package/lib/forms/bank/bank-account-loan.form.d.ts +0 -5
  140. package/lib/forms/bank/bank-account-migrate.form.d.ts +0 -9
  141. package/lib/forms/bank/bank-account-properties.form.d.ts +0 -8
  142. package/lib/forms/bank/bank-account-property.form.d.ts +0 -5
  143. package/lib/forms/bank/bank-account.form.d.ts +0 -28
  144. package/lib/validators/require-select.validator.d.ts +0 -5
@@ -15,10 +15,11 @@ import * as moment from 'moment';
15
15
  import flatten from 'lodash/flatten';
16
16
  import hasIn from 'lodash/hasIn';
17
17
  import first from 'lodash/first';
18
- import cloneDeep$1 from 'lodash/cloneDeep';
19
- import compact from 'lodash/compact';
20
18
  import uniqBy from 'lodash/uniqBy';
21
19
  import concat from 'lodash/concat';
20
+ import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
21
+ import cloneDeep$1 from 'lodash/cloneDeep';
22
+ import compact from 'lodash/compact';
22
23
  import { DateRange } from 'moment-range';
23
24
  import { Validators, FormGroup, FormControl, FormArray } from '@angular/forms';
24
25
  import fromPairs from 'lodash/fromPairs';
@@ -68,9 +69,9 @@ class CorelogicService {
68
69
  }));
69
70
  }
70
71
  }
71
- CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
72
- CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, providedIn: 'root' });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, decorators: [{
72
+ CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
73
+ CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, providedIn: 'root' });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, decorators: [{
74
75
  type: Injectable,
75
76
  args: [{
76
77
  providedIn: 'root'
@@ -112,9 +113,9 @@ class CorelogicInterceptor {
112
113
  return next.handle(this.addToken(request));
113
114
  }
114
115
  }
115
- CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
116
- CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor });
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, decorators: [{
116
+ CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
117
+ CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor });
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor, decorators: [{
118
119
  type: Injectable
119
120
  }], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
120
121
  type: Inject,
@@ -150,9 +151,9 @@ class FinancialYearInterceptor {
150
151
  return next.handle(clonedReq);
151
152
  }
152
153
  }
153
- FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
154
- FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor });
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
154
+ FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
155
+ FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor });
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
156
157
  type: Injectable
157
158
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
158
159
  type: Inject,
@@ -183,9 +184,9 @@ class JwtService extends JwtHelperService {
183
184
  return this.getUser().id === userId;
184
185
  }
185
186
  }
186
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
187
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, providedIn: 'root' });
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, decorators: [{
187
+ JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
188
+ JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, providedIn: 'root' });
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, decorators: [{
189
190
  type: Injectable,
190
191
  args: [{
191
192
  providedIn: 'root'
@@ -258,9 +259,9 @@ class EventDispatcherService {
258
259
  this.eventSubject.next(event);
259
260
  }
260
261
  }
261
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
262
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, decorators: [{
262
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
263
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, decorators: [{
264
265
  type: Injectable,
265
266
  args: [{
266
267
  providedIn: 'root'
@@ -309,9 +310,9 @@ class AuthService {
309
310
  location.replace(url);
310
311
  }
311
312
  }
312
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
313
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, providedIn: 'root' });
314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, decorators: [{
313
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
314
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, providedIn: 'root' });
315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, decorators: [{
315
316
  type: Injectable,
316
317
  args: [{
317
318
  providedIn: 'root'
@@ -396,6 +397,11 @@ class JwtInterceptor {
396
397
  // });
397
398
  }
398
399
  handle401Error(req, next, err) {
400
+ var _a;
401
+ // skip 401 errors not from JWT (basiq login case or other)
402
+ if (!((_a = err.error.message) === null || _a === void 0 ? void 0 : _a.includes('JWT Token'))) {
403
+ return throwError(err);
404
+ }
399
405
  if (req.url.includes('token/refresh') || req.url.includes('login')) {
400
406
  if (req.url.includes('token/refresh')) {
401
407
  this.authService.logoutFront();
@@ -442,9 +448,9 @@ class JwtInterceptor {
442
448
  });
443
449
  }
444
450
  }
445
- JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
446
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor });
447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, decorators: [{
451
+ JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
452
+ JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor });
453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor, decorators: [{
448
454
  type: Injectable
449
455
  }], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
450
456
  type: Inject,
@@ -477,9 +483,9 @@ class UserSwitcherService {
477
483
  window.location.replace('/firm/dashboard');
478
484
  }
479
485
  }
480
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
481
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, decorators: [{
486
+ UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
487
+ UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, decorators: [{
483
489
  type: Injectable,
484
490
  args: [{
485
491
  providedIn: 'root'
@@ -515,9 +521,9 @@ class UserSwitcherInterceptor {
515
521
  return next.handle(this.switch(request, this.userSwitcherService.get()));
516
522
  }
517
523
  }
518
- UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
519
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor });
520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
524
+ UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
525
+ UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor });
526
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
521
527
  type: Injectable
522
528
  }], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
523
529
  type: Inject,
@@ -713,9 +719,9 @@ class PreloaderService {
713
719
  this.activePreloaders.next(activePreloaders);
714
720
  }
715
721
  }
716
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
717
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, providedIn: 'root' });
718
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, decorators: [{
722
+ PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
723
+ PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, providedIn: 'root' });
724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, decorators: [{
719
725
  type: Injectable,
720
726
  args: [{
721
727
  providedIn: 'root'
@@ -743,9 +749,9 @@ class PreloaderInterceptor {
743
749
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
744
750
  }
745
751
  }
746
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
747
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor });
748
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, decorators: [{
752
+ PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
753
+ PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor });
754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor, decorators: [{
749
755
  type: Injectable
750
756
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
751
757
 
@@ -879,9 +885,9 @@ class ToastService {
879
885
  }));
880
886
  }
881
887
  }
882
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
883
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, providedIn: 'root' });
884
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, decorators: [{
888
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
889
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, providedIn: 'root' });
890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, decorators: [{
885
891
  type: Injectable,
886
892
  args: [{
887
893
  providedIn: 'root'
@@ -1074,9 +1080,9 @@ class RestService {
1074
1080
  */
1075
1081
  listenEvents() { }
1076
1082
  }
1077
- RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1078
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, providedIn: 'root' });
1079
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, decorators: [{
1083
+ RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1084
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, providedIn: 'root' });
1085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, decorators: [{
1080
1086
  type: Injectable,
1081
1087
  args: [{
1082
1088
  providedIn: 'root'
@@ -2041,6 +2047,9 @@ class Collection {
2041
2047
  getIds() {
2042
2048
  return this.items.map((item) => item['id']);
2043
2049
  }
2050
+ mapBy(path) {
2051
+ return this.items.map((item) => get(item, path));
2052
+ }
2044
2053
  sortBy(field = 'id', isDesc = true) {
2045
2054
  sort(this.items, field, isDesc);
2046
2055
  return this;
@@ -2095,8 +2104,8 @@ class Collection {
2095
2104
  remove(items) {
2096
2105
  return this.filter((model) => !items.map((item) => item.id).includes(model.id));
2097
2106
  }
2098
- removeBy(path, value) {
2099
- return this.filter((item) => get(item, path) !== value);
2107
+ removeBy(path, values) {
2108
+ return this.filter((item) => !(Array.isArray(values) ? values : [values]).includes(get(item, path)));
2100
2109
  }
2101
2110
  }
2102
2111
 
@@ -2358,6 +2367,20 @@ class BasiqJob extends BasiqJob$1 {
2358
2367
  class Bank$1 extends AbstractModel {
2359
2368
  }
2360
2369
 
2370
+ var BankPopularEnum;
2371
+ (function (BankPopularEnum) {
2372
+ BankPopularEnum["BANKWEST"] = "Bank of Western Australia trading as BankWest";
2373
+ BankPopularEnum["ANZ"] = "Australia and New Zealand Banking Group Limited";
2374
+ BankPopularEnum["CBA"] = "Commonwealth Bank Australia";
2375
+ BankPopularEnum["WESTPAC"] = "Westpac Banking Corporation";
2376
+ BankPopularEnum["BENDIGO"] = "Bendigo and Adelaide Bank Limited";
2377
+ BankPopularEnum["ING_DIRECT"] = "ING Bank (Australia) Limited (trading as ING Direct)";
2378
+ BankPopularEnum["ST_GEORGE"] = "St. George Bank (a subsidiary of Westpac)";
2379
+ BankPopularEnum["SUNCORP"] = "Suncorp-Metway Limited";
2380
+ BankPopularEnum["CITIBANK"] = "Citibank";
2381
+ BankPopularEnum["BOQ"] = "Bank of Queensland Limited";
2382
+ })(BankPopularEnum || (BankPopularEnum = {}));
2383
+
2361
2384
  class Bank extends Bank$1 {
2362
2385
  getInitials() {
2363
2386
  return this.name[0] + this.name[1];
@@ -2372,6 +2395,10 @@ class Bank extends Bank$1 {
2372
2395
  __decorate([
2373
2396
  Transform(({ value }) => value ? value.replace(' ', '%20') : null)
2374
2397
  ], Bank.prototype, "logo", void 0);
2398
+ __decorate([
2399
+ Transform(({ obj }) => Object.values(BankPopularEnum).includes(obj.name)),
2400
+ Expose()
2401
+ ], Bank.prototype, "isPopular", void 0);
2375
2402
 
2376
2403
  var BankConnectionStatusEnum;
2377
2404
  (function (BankConnectionStatusEnum) {
@@ -2522,13 +2549,139 @@ __decorate([
2522
2549
  Type(() => BankConnection)
2523
2550
  ], BankAccount.prototype, "bankConnection", void 0);
2524
2551
 
2552
+ const TYPE_LOAN = [
2553
+ BankAccountTypeEnum.MORTGAGE,
2554
+ BankAccountTypeEnum.CREDIT_CARD,
2555
+ BankAccountTypeEnum.LOAN
2556
+ ];
2557
+
2525
2558
  /**
2526
- * any event happened in the app, which needs to be handled somehow (distributed to other part of the app)
2559
+ * Collection of bank accounts.
2527
2560
  */
2528
- class AppEvent {
2529
- constructor(type, payload) {
2530
- this.type = type;
2531
- this.payload = payload;
2561
+ class BankAccountCollection extends Collection {
2562
+ /**
2563
+ * get list of bank accounts with passed types
2564
+ */
2565
+ getByType(types, isExclude = false) {
2566
+ // get types always as array (if only one passed)
2567
+ const typesArray = concat(types);
2568
+ return this.items.filter((bankAccount) => {
2569
+ if (isExclude) {
2570
+ return !typesArray.includes(bankAccount.type);
2571
+ }
2572
+ return typesArray.includes(bankAccount.type);
2573
+ });
2574
+ }
2575
+ /**
2576
+ * get amount of initial loans
2577
+ */
2578
+ getInitialLoanAmount() {
2579
+ return this.getByType(TYPE_LOAN)
2580
+ .reduce((sum, bankAccount) => {
2581
+ return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
2582
+ }, 0);
2583
+ }
2584
+ /**
2585
+ * get amount of current loans
2586
+ */
2587
+ getCurrentLoanAmount() {
2588
+ return this.getByType(TYPE_LOAN)
2589
+ .reduce((sum, bankAccount) => {
2590
+ return sum += bankAccount.currentBalance;
2591
+ }, 0);
2592
+ }
2593
+ /**
2594
+ * get collection filtered by property id
2595
+ */
2596
+ getByPropertyId(id) {
2597
+ return new BankAccountCollection(this.items.filter((bankAccount) => {
2598
+ return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
2599
+ return bankAccountProperty.property.id === id;
2600
+ });
2601
+ }));
2602
+ }
2603
+ /**
2604
+ * get collection filtered by properties ids
2605
+ */
2606
+ getByPropertiesIds(ids) {
2607
+ return new BankAccountCollection(this.items.filter((bankAccount) => {
2608
+ return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
2609
+ return ids.includes(bankAccountProperty.property.id);
2610
+ });
2611
+ }));
2612
+ }
2613
+ /**
2614
+ * get collection of active bank accounts
2615
+ */
2616
+ getActiveBankAccounts() {
2617
+ return new BankAccountCollection(this.items.filter((bankAccount) => {
2618
+ return bankAccount.isActive();
2619
+ }));
2620
+ }
2621
+ /**
2622
+ * get reduction of loan (reduction of principle) percentage
2623
+ */
2624
+ getPrincipleReductionPercent() {
2625
+ const initialLoans = this.getInitialLoanAmount();
2626
+ const currentLoans = this.getCurrentLoanAmount();
2627
+ if (!initialLoans) {
2628
+ return 0;
2629
+ }
2630
+ return (initialLoans - currentLoans) / initialLoans * 100;
2631
+ }
2632
+ /**
2633
+ * Get collection of loan bank accounts
2634
+ */
2635
+ getLoanAccounts() {
2636
+ return new BankAccountCollection(this.getByType(TYPE_LOAN));
2637
+ }
2638
+ getSavingsAccounts() {
2639
+ return new BankAccountCollection(this.getByType(TYPE_LOAN, true));
2640
+ }
2641
+ getOpeningBalance() {
2642
+ return this.items.reduce((sum, bankAccount) => sum + bankAccount.getOpeningBalance(), 0);
2643
+ }
2644
+ get currentBalance() {
2645
+ return this.sumBy('currentBalance');
2646
+ }
2647
+ /**
2648
+ * Get Collection of bank accounts with property tank type
2649
+ */
2650
+ getPropertyBankAccounts() {
2651
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isPropertyTank()));
2652
+ }
2653
+ /**
2654
+ * Get Collection of bank accounts with work tank type
2655
+ */
2656
+ getWorkBankAccounts() {
2657
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isWorkTank()));
2658
+ }
2659
+ /**
2660
+ * Get Collection of bank accounts by tank type
2661
+ */
2662
+ getByTankType(tankType) {
2663
+ return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.tankType === tankType));
2664
+ }
2665
+ /**
2666
+ * Get list of all bank account properties
2667
+ */
2668
+ getBankAccountPropertiesList() {
2669
+ return flatten(this.items.map((bankAccount) => {
2670
+ return bankAccount.bankAccountProperties;
2671
+ }));
2672
+ }
2673
+ /**
2674
+ * Get lis of unique properties from all bank accounts properties
2675
+ */
2676
+ getProperties() {
2677
+ return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => {
2678
+ return bankAccountProperty.property;
2679
+ }), 'id');
2680
+ }
2681
+ getPropertyBalanceAmount(propertyId) {
2682
+ return this.items.reduce((sum, bankAccount) => {
2683
+ return sum + bankAccount.getPropertyBalanceAmount(propertyId);
2684
+ }, 0);
2532
2685
  }
2533
2686
  }
2534
2687
 
@@ -2544,15 +2697,25 @@ class BankConnectionService extends RestService {
2544
2697
  }
2545
2698
  listenEvents() {
2546
2699
  this.listenToAddedBankAccounts();
2547
- this.listenBasiqJobCreated();
2548
- this.listenConnectionUpdated();
2549
2700
  this.listenNotifications();
2550
2701
  }
2551
2702
  add(bankConnection) {
2552
2703
  return this.http.post(`${this.environment.apiV2}/${this.url}`, bankConnection)
2553
2704
  .pipe(map((bankConnectionBase) => {
2554
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BANK_CONNECTION_ADDED, null));
2555
- return plainToClass(BankConnection, bankConnectionBase);
2705
+ const connection = plainToClass(BankConnection, bankConnectionBase);
2706
+ // We use this endpoint for create and reconnect bank connections because of basiq logic.
2707
+ // So we try to replace bank connection in cache for reconnection case.
2708
+ if (bankConnection.id) {
2709
+ const tempCache = cloneDeep$1(this.cache);
2710
+ replace(tempCache, connection);
2711
+ this.cache = cloneDeep$1(tempCache);
2712
+ this.cacheSubject.next(tempCache);
2713
+ }
2714
+ else {
2715
+ this.cache.push(connection);
2716
+ this.cacheSubject.next(cloneDeep$1(this.cache));
2717
+ }
2718
+ return plainToClass(BankConnection, connection);
2556
2719
  }));
2557
2720
  }
2558
2721
  listenToAddedBankAccounts() {
@@ -2560,45 +2723,6 @@ class BankConnectionService extends RestService {
2560
2723
  this.resetCache();
2561
2724
  });
2562
2725
  }
2563
- /**
2564
- * When user log in to bank, basiq create a job. We create a bank connection with based on this job
2565
- */
2566
- listenBasiqJobCreated() {
2567
- this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_JOB_CREATED).subscribe((result) => {
2568
- // push connection to cache temporary to show it to user directly with pending status and not wait until backend loaded
2569
- const tempCache = cloneDeep$1(this.cache);
2570
- result.connection.setPending();
2571
- tempCache.push(result.connection);
2572
- this.cache = tempCache;
2573
- this.cacheSubject.next(tempCache);
2574
- this.add(plainToClass(BankConnection, { basiqJob: { externalId: result.jobId } })).subscribe((newConnection) => {
2575
- // replace temporary connection with real saved connection
2576
- // no replace() because connection does not have id yet
2577
- tempCache.splice(-1, 1, newConnection);
2578
- this.cache = cloneDeep$1(tempCache);
2579
- this.cacheSubject.next(tempCache);
2580
- });
2581
- });
2582
- }
2583
- /**
2584
- * When basiq connection disconnected we create a basiq job and update this connection
2585
- */
2586
- listenConnectionUpdated() {
2587
- this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONNECTION_UPDATED).subscribe((result) => {
2588
- // replace connection to cache temporary to show pending status until backend loaded
2589
- const tempCache = cloneDeep$1(this.cache);
2590
- result.connection.setPending();
2591
- replace(tempCache, result.connection);
2592
- this.cache = tempCache;
2593
- this.cacheSubject.next(tempCache);
2594
- this.add(plainToClass(BankConnection, { basiqJob: { externalId: result.jobId } })).subscribe((updatedConnection) => {
2595
- // replace temporary connection again with real updated connection
2596
- replace(tempCache, updatedConnection);
2597
- this.cache = cloneDeep$1(tempCache);
2598
- this.cacheSubject.next(tempCache);
2599
- });
2600
- });
2601
- }
2602
2726
  /**
2603
2727
  * Update cache when basiq login failed to get actual connections statuses
2604
2728
  */
@@ -2610,9 +2734,9 @@ class BankConnectionService extends RestService {
2610
2734
  });
2611
2735
  }
2612
2736
  }
2613
- BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2614
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
2615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, decorators: [{
2737
+ BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2738
+ BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
2739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, decorators: [{
2616
2740
  type: Injectable,
2617
2741
  args: [{
2618
2742
  providedIn: 'root'
@@ -2624,9 +2748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2624
2748
  * service is responsible for fetching bank related information
2625
2749
  */
2626
2750
  class BasiqService extends RestService {
2627
- constructor(http, eventDispatcherService, environment, toastService,
2628
- // init BankConnectionService to listen events
2629
- bankConnectionService) {
2751
+ constructor(http, eventDispatcherService, environment, toastService, bankConnectionService) {
2630
2752
  super(http, eventDispatcherService, environment, toastService);
2631
2753
  this.http = http;
2632
2754
  this.eventDispatcherService = eventDispatcherService;
@@ -2643,21 +2765,58 @@ class BasiqService extends RestService {
2643
2765
  this.listenNotifications();
2644
2766
  }
2645
2767
  /**
2646
- * Create Basiq job for the new bank connection creation
2647
- */
2648
- createConnection(data, userId, connection) {
2649
- return this.http.post(`${BasiqService.basiqApiUrl}/users/${userId}/connections`, data).pipe(map((response) => {
2650
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BASIQ_JOB_CREATED, { jobId: response.id, connection }));
2651
- return response.id;
2768
+ * Create a new Bank connection based on Basiq job.
2769
+ * Here we have nested requests because we need to get a job id before we create a bank connection.
2770
+ * There is no way to use event dispatcher because we expect some errors from bank-connections API, but in components
2771
+ * we interact with basiq service.
2772
+ */
2773
+ createConnection(loginData, userId) {
2774
+ // Send login data to basiq API to create a basiq job
2775
+ return this.http.post(`${BasiqService.basiqApiUrl}/users/${userId}/connections`, loginData)
2776
+ .pipe(mergeMap((response) => {
2777
+ // Create bank connection based on basiq job
2778
+ return this.bankConnectionService.add(plainToClass(BankConnection, { basiqJob: { externalId: response.id } }));
2779
+ }), catchError((error) => {
2780
+ // Show error when user provided wrong login data
2781
+ if (error.status === 401) {
2782
+ this.toastService.error('Invalid credentials');
2783
+ }
2784
+ return throwError$1(error);
2652
2785
  }));
2653
2786
  }
2654
2787
  /**
2655
2788
  * Update disconnected bank connection
2789
+ * Here we have nested requests because we need to get a job id before we create a bank connection.
2790
+ * There is no way to use event dispatcher because we expect some errors from bank-connections API, but in components
2791
+ * we interact with basiq service.
2656
2792
  */
2657
2793
  updateConnection(data, userId, connection) {
2658
- return this.http.post(`${BasiqService.basiqApiUrl}/users/${userId}/connections`, Object.assign(data, { id: connection.externalId })).pipe(map((response) => {
2659
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BASIQ_CONNECTION_UPDATED, { jobId: response.id, connection }));
2660
- return response.id;
2794
+ // Send login data to basiq API to create a basiq job
2795
+ return this.http.post(`${BasiqService.basiqApiUrl}/users/${userId}/connections`, Object.assign(data, { id: connection.externalId }))
2796
+ .pipe(
2797
+ // Create bank connection based on basiq job
2798
+ mergeMap((response) => {
2799
+ return this.bankConnectionService.add(plainToClass(BankConnection, Object.assign({ id: connection.id, basiqJob: { externalId: response.id } })));
2800
+ }), catchError((error) => {
2801
+ // Show error when user provided wrong login data
2802
+ if (error.status === 401) {
2803
+ this.toastService.error('Invalid credentials');
2804
+ }
2805
+ // Show error when user provided another login (not login he used before)
2806
+ if (error.status === 400) {
2807
+ this.toastService.error('Please enter the login you used before');
2808
+ }
2809
+ return throwError$1(error);
2810
+ }));
2811
+ }
2812
+ getByConnection(connection) {
2813
+ return this.get().pipe(map((bankAccounts) => {
2814
+ return new BankAccountCollection(bankAccounts).filterBy('bankConnection.id', connection.id);
2815
+ }));
2816
+ }
2817
+ getNotImportedByConnection(savedAccounts, connection) {
2818
+ return this.getByConnection(connection).pipe(map((bankAccounts) => {
2819
+ return bankAccounts.removeBy('accountId', savedAccounts.mapBy('accountId'));
2661
2820
  }));
2662
2821
  }
2663
2822
  /**
@@ -2672,9 +2831,9 @@ class BasiqService extends RestService {
2672
2831
  }
2673
2832
  }
2674
2833
  BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
2675
- BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
2676
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, providedIn: 'root' });
2677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, decorators: [{
2834
+ BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
2835
+ BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, providedIn: 'root' });
2836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, decorators: [{
2678
2837
  type: Injectable,
2679
2838
  args: [{
2680
2839
  providedIn: 'root'
@@ -2721,9 +2880,9 @@ class BasiqTokenService {
2721
2880
  return this.cacheSubject.asObservable();
2722
2881
  }
2723
2882
  }
2724
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
2725
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
2726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, decorators: [{
2883
+ BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
2884
+ BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
2885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, decorators: [{
2727
2886
  type: Injectable,
2728
2887
  args: [{
2729
2888
  providedIn: 'root'
@@ -2757,17 +2916,17 @@ class BasiqInterceptor {
2757
2916
  });
2758
2917
  }
2759
2918
  }
2760
- BasiqInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
2761
- BasiqInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqInterceptor });
2762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqInterceptor, decorators: [{
2919
+ BasiqInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
2920
+ BasiqInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqInterceptor });
2921
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqInterceptor, decorators: [{
2763
2922
  type: Injectable
2764
2923
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
2765
2924
 
2766
2925
  class InterceptorsModule {
2767
2926
  }
2768
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2769
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule });
2770
- InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, providers: [
2927
+ InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2928
+ InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule });
2929
+ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, providers: [
2771
2930
  {
2772
2931
  provide: HTTP_INTERCEPTORS,
2773
2932
  useClass: CorelogicInterceptor,
@@ -2800,7 +2959,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
2800
2959
  multi: true
2801
2960
  }
2802
2961
  ] });
2803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, decorators: [{
2962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, decorators: [{
2804
2963
  type: NgModule,
2805
2964
  args: [{
2806
2965
  providers: [
@@ -2853,14 +3012,14 @@ class TtCoreModule {
2853
3012
  };
2854
3013
  }
2855
3014
  }
2856
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2857
- TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
3015
+ TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3016
+ TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
2858
3017
  InterceptorsModule] });
2859
- TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [[
3018
+ TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, imports: [[
2860
3019
  CommonModule,
2861
3020
  InterceptorsModule
2862
3021
  ]] });
2863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, decorators: [{
3022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, decorators: [{
2864
3023
  type: NgModule,
2865
3024
  args: [{
2866
3025
  declarations: [],
@@ -2881,156 +3040,6 @@ class AccountSetupItemCollection extends Collection {
2881
3040
  }
2882
3041
  }
2883
3042
 
2884
- class BankCollection extends Collection {
2885
- constructor(banks) {
2886
- super(banks);
2887
- this.sortByPopularity();
2888
- }
2889
- sortByPopularity() {
2890
- this.items.sort((bank1, bank2) => {
2891
- // Banks already sorted on backend by name, so we just need to up top-10 banks
2892
- return (BankCollection.tobBanksIds.includes(bank1.id) && !BankCollection.tobBanksIds.includes(bank2.id)) ? -1 : 1;
2893
- });
2894
- }
2895
- }
2896
- BankCollection.tobBanksIds = [124, 13, 134, 172, 126, 142, 135, 137, 138, 128];
2897
-
2898
- const TYPE_LOAN = [
2899
- BankAccountTypeEnum.MORTGAGE,
2900
- BankAccountTypeEnum.CREDIT_CARD,
2901
- BankAccountTypeEnum.LOAN
2902
- ];
2903
-
2904
- /**
2905
- * Collection of bank accounts.
2906
- */
2907
- class BankAccountCollection extends Collection {
2908
- /**
2909
- * get list of bank accounts with passed types
2910
- */
2911
- getByType(types, isExclude = false) {
2912
- // get types always as array (if only one passed)
2913
- const typesArray = concat(types);
2914
- return this.items.filter((bankAccount) => {
2915
- if (isExclude) {
2916
- return !typesArray.includes(bankAccount.type);
2917
- }
2918
- return typesArray.includes(bankAccount.type);
2919
- });
2920
- }
2921
- /**
2922
- * get amount of initial loans
2923
- */
2924
- getInitialLoanAmount() {
2925
- return this.getByType(TYPE_LOAN)
2926
- .reduce((sum, bankAccount) => {
2927
- return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
2928
- }, 0);
2929
- }
2930
- /**
2931
- * get amount of current loans
2932
- */
2933
- getCurrentLoanAmount() {
2934
- return this.getByType(TYPE_LOAN)
2935
- .reduce((sum, bankAccount) => {
2936
- return sum += bankAccount.currentBalance;
2937
- }, 0);
2938
- }
2939
- /**
2940
- * get collection filtered by property id
2941
- */
2942
- getByPropertyId(id) {
2943
- return new BankAccountCollection(this.items.filter((bankAccount) => {
2944
- return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
2945
- return bankAccountProperty.property.id === id;
2946
- });
2947
- }));
2948
- }
2949
- /**
2950
- * get collection filtered by properties ids
2951
- */
2952
- getByPropertiesIds(ids) {
2953
- return new BankAccountCollection(this.items.filter((bankAccount) => {
2954
- return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
2955
- return ids.includes(bankAccountProperty.property.id);
2956
- });
2957
- }));
2958
- }
2959
- /**
2960
- * get collection of active bank accounts
2961
- */
2962
- getActiveBankAccounts() {
2963
- return new BankAccountCollection(this.items.filter((bankAccount) => {
2964
- return bankAccount.isActive();
2965
- }));
2966
- }
2967
- /**
2968
- * get reduction of loan (reduction of principle) percentage
2969
- */
2970
- getPrincipleReductionPercent() {
2971
- const initialLoans = this.getInitialLoanAmount();
2972
- const currentLoans = this.getCurrentLoanAmount();
2973
- if (!initialLoans) {
2974
- return 0;
2975
- }
2976
- return (initialLoans - currentLoans) / initialLoans * 100;
2977
- }
2978
- /**
2979
- * Get collection of loan bank accounts
2980
- */
2981
- getLoanAccounts() {
2982
- return new BankAccountCollection(this.getByType(TYPE_LOAN));
2983
- }
2984
- getSavingsAccounts() {
2985
- return new BankAccountCollection(this.getByType(TYPE_LOAN, true));
2986
- }
2987
- getOpeningBalance() {
2988
- return this.items.reduce((sum, bankAccount) => sum + bankAccount.getOpeningBalance(), 0);
2989
- }
2990
- get currentBalance() {
2991
- return this.sumBy('currentBalance');
2992
- }
2993
- /**
2994
- * Get Collection of bank accounts with property tank type
2995
- */
2996
- getPropertyBankAccounts() {
2997
- return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isPropertyTank()));
2998
- }
2999
- /**
3000
- * Get Collection of bank accounts with work tank type
3001
- */
3002
- getWorkBankAccounts() {
3003
- return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isWorkTank()));
3004
- }
3005
- /**
3006
- * Get Collection of bank accounts by tank type
3007
- */
3008
- getByTankType(tankType) {
3009
- return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.tankType === tankType));
3010
- }
3011
- /**
3012
- * Get list of all bank account properties
3013
- */
3014
- getBankAccountPropertiesList() {
3015
- return flatten(this.items.map((bankAccount) => {
3016
- return bankAccount.bankAccountProperties;
3017
- }));
3018
- }
3019
- /**
3020
- * Get lis of unique properties from all bank accounts properties
3021
- */
3022
- getProperties() {
3023
- return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => {
3024
- return bankAccountProperty.property;
3025
- }), 'id');
3026
- }
3027
- getPropertyBalanceAmount(propertyId) {
3028
- return this.items.reduce((sum, bankAccount) => {
3029
- return sum + bankAccount.getPropertyBalanceAmount(propertyId);
3030
- }, 0);
3031
- }
3032
- }
3033
-
3034
3043
  var TransactionOperationEnum;
3035
3044
  (function (TransactionOperationEnum) {
3036
3045
  TransactionOperationEnum[TransactionOperationEnum["ALLOCATE"] = 1] = "ALLOCATE";
@@ -6566,6 +6575,39 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
6566
6575
  }
6567
6576
  }
6568
6577
 
6578
+ /**
6579
+ * List of objects grouped by passed property
6580
+ */
6581
+ class Dictionary {
6582
+ constructor(items, path = 'id') {
6583
+ this.items = {};
6584
+ if (!items.length) {
6585
+ return;
6586
+ }
6587
+ // Do nothing if provided path was not found in the 1st item
6588
+ if (!hasIn(items[0], path.split('.')[0])) {
6589
+ return;
6590
+ }
6591
+ this.groupItems(items, path);
6592
+ }
6593
+ add(key, value) {
6594
+ this.items[key] = value;
6595
+ }
6596
+ get(key) {
6597
+ return this.items[key] ? this.items[key] : null;
6598
+ }
6599
+ groupItems(items, path) {
6600
+ items.forEach((item) => {
6601
+ let key = get(item, path);
6602
+ // if object does not have property for grouping it will be grouped as 'other'
6603
+ if (key === undefined) {
6604
+ key = 'other';
6605
+ }
6606
+ this.items[key] = item;
6607
+ });
6608
+ }
6609
+ }
6610
+
6569
6611
  class Document$1 extends AbstractModel {
6570
6612
  }
6571
6613
 
@@ -6642,6 +6684,16 @@ __decorate([
6642
6684
  Type(() => User)
6643
6685
  ], EmployeeInvite.prototype, "employee", void 0);
6644
6686
 
6687
+ /**
6688
+ * any event happened in the app, which needs to be handled somehow (distributed to other part of the app)
6689
+ */
6690
+ class AppEvent {
6691
+ constructor(type, payload) {
6692
+ this.type = type;
6693
+ this.payload = payload;
6694
+ }
6695
+ }
6696
+
6645
6697
  var ExportFormatEnum;
6646
6698
  (function (ExportFormatEnum) {
6647
6699
  ExportFormatEnum["PDF"] = "PDF";
@@ -8113,9 +8165,9 @@ class ClientIncomeTypesService {
8113
8165
  }));
8114
8166
  }
8115
8167
  }
8116
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
8117
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
8118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
8168
+ ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
8169
+ ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
8170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
8119
8171
  type: Injectable,
8120
8172
  args: [{
8121
8173
  providedIn: 'root'
@@ -8216,9 +8268,9 @@ class PropertyService extends RestService {
8216
8268
  return this.get().pipe(map((properties) => properties.filter((property) => property.isActive)));
8217
8269
  }
8218
8270
  }
8219
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8220
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, providedIn: 'root' });
8221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, decorators: [{
8271
+ PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8272
+ PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, providedIn: 'root' });
8273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, decorators: [{
8222
8274
  type: Injectable,
8223
8275
  args: [{
8224
8276
  providedIn: 'root'
@@ -8305,9 +8357,9 @@ class IncomeSourceService extends RestService {
8305
8357
  return this.incomeSourceTypeSubject.asObservable();
8306
8358
  }
8307
8359
  }
8308
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8309
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
8310
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, decorators: [{
8360
+ IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8361
+ IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
8362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, decorators: [{
8311
8363
  type: Injectable,
8312
8364
  args: [{
8313
8365
  providedIn: 'root'
@@ -8388,6 +8440,11 @@ class BankAccountService extends RestService {
8388
8440
  return bankAccounts.filter((bankAccount) => bankAccount.isOwner(+localStorage.getItem('userId')));
8389
8441
  }));
8390
8442
  }
8443
+ getByConnection(connection) {
8444
+ return this.get().pipe(map((bankAccounts) => {
8445
+ return new BankAccountCollection(bankAccounts).filterBy('bankConnection.id', connection.id);
8446
+ }));
8447
+ }
8391
8448
  /**
8392
8449
  * Listen to EventDispatcherService events
8393
8450
  */
@@ -8401,9 +8458,9 @@ class BankAccountService extends RestService {
8401
8458
  });
8402
8459
  }
8403
8460
  }
8404
- BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8405
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, providedIn: 'root' });
8406
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, decorators: [{
8461
+ BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8462
+ BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, providedIn: 'root' });
8463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, decorators: [{
8407
8464
  type: Injectable,
8408
8465
  args: [{
8409
8466
  providedIn: 'root'
@@ -8477,9 +8534,9 @@ class TransactionAllocationService extends RestService {
8477
8534
  });
8478
8535
  }
8479
8536
  }
8480
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8481
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
8482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, decorators: [{
8537
+ TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8538
+ TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
8539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, decorators: [{
8483
8540
  type: Injectable,
8484
8541
  args: [{
8485
8542
  providedIn: 'root'
@@ -8509,9 +8566,9 @@ class VehicleClaimService extends RestService {
8509
8566
  this.messageDeleted = MessagesEnum$1.VEHICLE_CLAIM_DELETED;
8510
8567
  }
8511
8568
  }
8512
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8513
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
8514
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, decorators: [{
8569
+ VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8570
+ VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
8571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, decorators: [{
8515
8572
  type: Injectable,
8516
8573
  args: [{
8517
8574
  providedIn: 'root'
@@ -8833,9 +8890,9 @@ class TransactionService extends RestService {
8833
8890
  this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.resetCache());
8834
8891
  }
8835
8892
  }
8836
- TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8837
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, providedIn: 'root' });
8838
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, decorators: [{
8893
+ TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8894
+ TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, providedIn: 'root' });
8895
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, decorators: [{
8839
8896
  type: Injectable,
8840
8897
  args: [{
8841
8898
  providedIn: 'root'
@@ -8967,9 +9024,9 @@ class AccountSetupService {
8967
9024
  }));
8968
9025
  }
8969
9026
  }
8970
- AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }], target: i0.ɵɵFactoryTarget.Injectable });
8971
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
8972
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, decorators: [{
9027
+ AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }], target: i0.ɵɵFactoryTarget.Injectable });
9028
+ AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
9029
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, decorators: [{
8973
9030
  type: Injectable,
8974
9031
  args: [{
8975
9032
  providedIn: 'root'
@@ -8996,9 +9053,9 @@ class AddressService {
8996
9053
  return this.countriesSubject.asObservable();
8997
9054
  }
8998
9055
  }
8999
- AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9000
- AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, providedIn: 'root' });
9001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, decorators: [{
9056
+ AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9057
+ AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, providedIn: 'root' });
9058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, decorators: [{
9002
9059
  type: Injectable,
9003
9060
  args: [{
9004
9061
  providedIn: 'root'
@@ -9043,9 +9100,9 @@ class AssetsService {
9043
9100
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
9044
9101
  }
9045
9102
  }
9046
- AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9047
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, providedIn: 'root' });
9048
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, decorators: [{
9103
+ AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9104
+ AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, providedIn: 'root' });
9105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, decorators: [{
9049
9106
  type: Injectable,
9050
9107
  args: [{
9051
9108
  providedIn: 'root'
@@ -9065,10 +9122,16 @@ class BankService extends RestService {
9065
9122
  this.url = 'banks';
9066
9123
  this.isHydra = true;
9067
9124
  }
9125
+ get() {
9126
+ return super.get().pipe(map((banks) => {
9127
+ // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
9128
+ return banks.filter((bank) => !bank.externalId || (bank.externalId && bank.loginFields));
9129
+ }));
9130
+ }
9068
9131
  }
9069
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9070
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, providedIn: 'root' });
9071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, decorators: [{
9132
+ BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9133
+ BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, providedIn: 'root' });
9134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, decorators: [{
9072
9135
  type: Injectable,
9073
9136
  args: [{
9074
9137
  providedIn: 'root'
@@ -9128,9 +9191,9 @@ class BankTransactionCalculationService {
9128
9191
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
9129
9192
  }
9130
9193
  }
9131
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9132
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
9133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
9194
+ BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9195
+ BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
9196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
9134
9197
  type: Injectable,
9135
9198
  args: [{
9136
9199
  providedIn: 'root'
@@ -9155,9 +9218,9 @@ class BankAccountCalculationService {
9155
9218
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
9156
9219
  }
9157
9220
  }
9158
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
9159
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
9160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, decorators: [{
9221
+ BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
9222
+ BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
9223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, decorators: [{
9161
9224
  type: Injectable,
9162
9225
  args: [{
9163
9226
  providedIn: 'root'
@@ -9226,9 +9289,9 @@ class BankTransactionService extends RestService {
9226
9289
  });
9227
9290
  }
9228
9291
  }
9229
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9230
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
9231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, decorators: [{
9292
+ BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9293
+ BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
9294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, decorators: [{
9232
9295
  type: Injectable,
9233
9296
  args: [{
9234
9297
  providedIn: 'root'
@@ -9288,9 +9351,9 @@ class BorrowingExpenseService {
9288
9351
  }));
9289
9352
  }
9290
9353
  }
9291
- BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9292
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
9293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, decorators: [{
9354
+ BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9355
+ BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
9356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, decorators: [{
9294
9357
  type: Injectable,
9295
9358
  args: [{
9296
9359
  providedIn: 'root'
@@ -9368,9 +9431,9 @@ class ChartAccountsService {
9368
9431
  }));
9369
9432
  }
9370
9433
  }
9371
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9372
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
9373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, decorators: [{
9434
+ ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9435
+ ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
9436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, decorators: [{
9374
9437
  type: Injectable,
9375
9438
  args: [{
9376
9439
  providedIn: 'root'
@@ -9403,9 +9466,9 @@ class ChartAccountsDepreciationService extends RestService {
9403
9466
  }));
9404
9467
  }
9405
9468
  }
9406
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9407
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
9408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
9469
+ ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9470
+ ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
9471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
9409
9472
  type: Injectable,
9410
9473
  args: [{
9411
9474
  providedIn: 'root'
@@ -9443,9 +9506,9 @@ class SseService {
9443
9506
  }));
9444
9507
  }
9445
9508
  }
9446
- SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9447
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, providedIn: 'root' });
9448
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, decorators: [{
9509
+ SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9510
+ SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, providedIn: 'root' });
9511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, decorators: [{
9449
9512
  type: Injectable,
9450
9513
  args: [{
9451
9514
  providedIn: 'root'
@@ -9519,9 +9582,9 @@ class ChatService extends RestService {
9519
9582
  });
9520
9583
  }
9521
9584
  }
9522
- ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
9523
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, providedIn: 'root' });
9524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, decorators: [{
9585
+ ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
9586
+ ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, providedIn: 'root' });
9587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, decorators: [{
9525
9588
  type: Injectable,
9526
9589
  args: [{
9527
9590
  providedIn: 'root'
@@ -9567,9 +9630,9 @@ class MessageService extends RestService {
9567
9630
  });
9568
9631
  }
9569
9632
  }
9570
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
9571
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, providedIn: 'root' });
9572
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
9633
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
9634
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, providedIn: 'root' });
9635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, decorators: [{
9573
9636
  type: Injectable,
9574
9637
  args: [{
9575
9638
  providedIn: 'root'
@@ -9675,9 +9738,9 @@ class MessageDocumentService {
9675
9738
  }));
9676
9739
  }
9677
9740
  }
9678
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9679
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
9680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, decorators: [{
9741
+ MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9742
+ MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
9743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, decorators: [{
9681
9744
  type: Injectable,
9682
9745
  args: [{
9683
9746
  providedIn: 'root'
@@ -9770,9 +9833,9 @@ class ClientInviteService extends RestService {
9770
9833
  }));
9771
9834
  }
9772
9835
  }
9773
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9774
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
9775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, decorators: [{
9836
+ ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9837
+ ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
9838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, decorators: [{
9776
9839
  type: Injectable,
9777
9840
  args: [{
9778
9841
  providedIn: 'root'
@@ -9849,9 +9912,9 @@ class ClientMovementService extends RestService {
9849
9912
  });
9850
9913
  }
9851
9914
  }
9852
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9853
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
9854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, decorators: [{
9915
+ ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
9916
+ ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
9917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, decorators: [{
9855
9918
  type: Injectable,
9856
9919
  args: [{
9857
9920
  providedIn: 'root'
@@ -9876,9 +9939,9 @@ class ClientPortfolioReportService {
9876
9939
  }));
9877
9940
  }
9878
9941
  }
9879
- ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9880
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
9881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
9942
+ ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9943
+ ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
9944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
9882
9945
  type: Injectable,
9883
9946
  args: [{
9884
9947
  providedIn: 'root'
@@ -9930,9 +9993,9 @@ class DepreciationCapitalProjectService {
9930
9993
  }));
9931
9994
  }
9932
9995
  }
9933
- DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9934
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
9935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
9996
+ DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9997
+ DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
9998
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
9936
9999
  type: Injectable,
9937
10000
  args: [{
9938
10001
  providedIn: 'root'
@@ -10027,9 +10090,9 @@ class DepreciationService extends RestService {
10027
10090
  });
10028
10091
  }
10029
10092
  }
10030
- DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10031
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, providedIn: 'root' });
10032
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, decorators: [{
10093
+ DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10094
+ DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, providedIn: 'root' });
10095
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, decorators: [{
10033
10096
  type: Injectable,
10034
10097
  args: [{
10035
10098
  providedIn: 'root'
@@ -10095,9 +10158,9 @@ class DocumentFolderService extends RestService {
10095
10158
  }));
10096
10159
  }
10097
10160
  }
10098
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10099
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
10100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, decorators: [{
10161
+ DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10162
+ DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
10163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, decorators: [{
10101
10164
  type: Injectable,
10102
10165
  args: [{
10103
10166
  providedIn: 'root'
@@ -10126,9 +10189,9 @@ class EmployeeService extends RestService {
10126
10189
  }));
10127
10190
  }
10128
10191
  }
10129
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10130
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, providedIn: 'root' });
10131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, decorators: [{
10192
+ EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10193
+ EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, providedIn: 'root' });
10194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, decorators: [{
10132
10195
  type: Injectable,
10133
10196
  args: [{
10134
10197
  providedIn: 'root'
@@ -10171,9 +10234,9 @@ class EmployeeInviteService extends RestService {
10171
10234
  }));
10172
10235
  }
10173
10236
  }
10174
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10175
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
10176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, decorators: [{
10237
+ EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10238
+ EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
10239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, decorators: [{
10177
10240
  type: Injectable,
10178
10241
  args: [{
10179
10242
  providedIn: 'root'
@@ -10240,9 +10303,9 @@ class FirmService {
10240
10303
  }));
10241
10304
  }
10242
10305
  }
10243
- FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10244
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, providedIn: 'root' });
10245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, decorators: [{
10306
+ FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10307
+ FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, providedIn: 'root' });
10308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, decorators: [{
10246
10309
  type: Injectable,
10247
10310
  args: [{
10248
10311
  providedIn: 'root'
@@ -10270,9 +10333,9 @@ class ExportFormatterService {
10270
10333
  }));
10271
10334
  }
10272
10335
  }
10273
- ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
10274
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
10275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, decorators: [{
10336
+ ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
10337
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
10338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, decorators: [{
10276
10339
  type: Injectable,
10277
10340
  args: [{
10278
10341
  providedIn: 'root'
@@ -10293,9 +10356,9 @@ class HeaderTitleService {
10293
10356
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
10294
10357
  }
10295
10358
  }
10296
- HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
10297
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
10298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, decorators: [{
10359
+ HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
10360
+ HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
10361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, decorators: [{
10299
10362
  type: Injectable,
10300
10363
  args: [{
10301
10364
  providedIn: 'root'
@@ -10365,9 +10428,9 @@ class IncomeSourceForecastService extends RestService {
10365
10428
  }).flat();
10366
10429
  }
10367
10430
  }
10368
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10369
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
10370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
10431
+ IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10432
+ IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
10433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
10371
10434
  type: Injectable,
10372
10435
  args: [{
10373
10436
  providedIn: 'root'
@@ -10437,9 +10500,9 @@ class SalaryForecastService extends RestService {
10437
10500
  }).flat();
10438
10501
  }
10439
10502
  }
10440
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10441
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
10442
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, decorators: [{
10503
+ SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10504
+ SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
10505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, decorators: [{
10443
10506
  type: Injectable,
10444
10507
  args: [{
10445
10508
  providedIn: 'root'
@@ -10506,9 +10569,9 @@ class SoleForecastService extends RestService {
10506
10569
  }).flat();
10507
10570
  }
10508
10571
  }
10509
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10510
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
10511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, decorators: [{
10572
+ SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10573
+ SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
10574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, decorators: [{
10512
10575
  type: Injectable,
10513
10576
  args: [{
10514
10577
  providedIn: 'root'
@@ -10542,9 +10605,9 @@ class IntercomService {
10542
10605
  window.Intercom('boot', connectionCredentials);
10543
10606
  }
10544
10607
  }
10545
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10546
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, providedIn: 'root' });
10547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, decorators: [{
10608
+ IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10609
+ IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, providedIn: 'root' });
10610
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, decorators: [{
10548
10611
  type: Injectable,
10549
10612
  args: [{
10550
10613
  providedIn: 'root'
@@ -10572,9 +10635,9 @@ class KompassifyService {
10572
10635
  });
10573
10636
  }
10574
10637
  }
10575
- KompassifyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
10576
- KompassifyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, providedIn: 'root' });
10577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, decorators: [{
10638
+ KompassifyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: KompassifyService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
10639
+ KompassifyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: KompassifyService, providedIn: 'root' });
10640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: KompassifyService, decorators: [{
10578
10641
  type: Injectable,
10579
10642
  args: [{
10580
10643
  providedIn: 'root'
@@ -10698,9 +10761,9 @@ class LoanService extends RestService {
10698
10761
  }));
10699
10762
  }
10700
10763
  }
10701
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10702
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, providedIn: 'root' });
10703
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, decorators: [{
10764
+ LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10765
+ LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, providedIn: 'root' });
10766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, decorators: [{
10704
10767
  type: Injectable,
10705
10768
  args: [{
10706
10769
  providedIn: 'root'
@@ -10743,9 +10806,9 @@ class ServiceNotificationService extends RestService {
10743
10806
  });
10744
10807
  }
10745
10808
  }
10746
- ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
10747
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
10748
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, decorators: [{
10809
+ ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
10810
+ ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
10811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, decorators: [{
10749
10812
  type: Injectable,
10750
10813
  args: [{
10751
10814
  providedIn: 'root'
@@ -10795,9 +10858,9 @@ class PdfFromDomElementService {
10795
10858
  .then());
10796
10859
  }
10797
10860
  }
10798
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10799
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
10800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, decorators: [{
10861
+ PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10862
+ PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
10863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, decorators: [{
10801
10864
  type: Injectable,
10802
10865
  args: [{
10803
10866
  providedIn: 'root'
@@ -10876,9 +10939,9 @@ class PdfFromTableService {
10876
10939
  doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
10877
10940
  }
10878
10941
  }
10879
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10880
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
10881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, decorators: [{
10942
+ PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10943
+ PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
10944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, decorators: [{
10882
10945
  type: Injectable,
10883
10946
  args: [{
10884
10947
  providedIn: 'root'
@@ -10911,9 +10974,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
10911
10974
  return pdf;
10912
10975
  }
10913
10976
  }
10914
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10915
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
10916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
10977
+ PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10978
+ PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
10979
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
10917
10980
  type: Injectable,
10918
10981
  args: [{
10919
10982
  providedIn: 'root'
@@ -10945,9 +11008,9 @@ class PdfFromDataTableService extends PdfFromTableService {
10945
11008
  return pdf;
10946
11009
  }
10947
11010
  }
10948
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
10949
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
10950
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, decorators: [{
11011
+ PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
11012
+ PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
11013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, decorators: [{
10951
11014
  type: Injectable,
10952
11015
  args: [{
10953
11016
  providedIn: 'root'
@@ -11004,9 +11067,9 @@ class PropertyTransactionReportService {
11004
11067
  }));
11005
11068
  }
11006
11069
  }
11007
- PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
11008
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
11009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
11070
+ PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
11071
+ PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
11072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
11010
11073
  type: Injectable,
11011
11074
  args: [{
11012
11075
  providedIn: 'root'
@@ -11121,9 +11184,9 @@ class PropertyCalculationService {
11121
11184
  return properties.purchasePrice - Math.abs(this.getLoanAmount(properties, bankAccounts, loans));
11122
11185
  }
11123
11186
  }
11124
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11125
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
11126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, decorators: [{
11187
+ PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11188
+ PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
11189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, decorators: [{
11127
11190
  type: Injectable,
11128
11191
  args: [{
11129
11192
  providedIn: 'root'
@@ -11140,9 +11203,9 @@ class PropertyCategoryService extends RestService {
11140
11203
  this.url = 'properties/categories';
11141
11204
  }
11142
11205
  }
11143
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11144
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
11145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, decorators: [{
11206
+ PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11207
+ PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
11208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, decorators: [{
11146
11209
  type: Injectable,
11147
11210
  args: [{
11148
11211
  providedIn: 'root'
@@ -11194,9 +11257,9 @@ class PropertyDocumentService extends RestService {
11194
11257
  });
11195
11258
  }
11196
11259
  }
11197
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11198
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
11199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, decorators: [{
11260
+ PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11261
+ PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
11262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, decorators: [{
11200
11263
  type: Injectable,
11201
11264
  args: [{
11202
11265
  providedIn: 'root'
@@ -11291,9 +11354,9 @@ class PropertyShareService extends RestService {
11291
11354
  });
11292
11355
  }
11293
11356
  }
11294
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11295
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
11296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, decorators: [{
11357
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11358
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
11359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, decorators: [{
11297
11360
  type: Injectable,
11298
11361
  args: [{
11299
11362
  providedIn: 'root'
@@ -11307,9 +11370,9 @@ class PropertySaleService extends RestService {
11307
11370
  this.url = 'properties/sales';
11308
11371
  }
11309
11372
  }
11310
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11311
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
11312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, decorators: [{
11373
+ PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11374
+ PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
11375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, decorators: [{
11313
11376
  type: Injectable,
11314
11377
  args: [{
11315
11378
  providedIn: 'root'
@@ -11342,9 +11405,9 @@ class EquityPositionChartService {
11342
11405
  }));
11343
11406
  }
11344
11407
  }
11345
- EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11346
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
11347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, decorators: [{
11408
+ EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11409
+ EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
11410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, decorators: [{
11348
11411
  type: Injectable,
11349
11412
  args: [{
11350
11413
  providedIn: 'root'
@@ -11385,9 +11448,9 @@ class PropertyCategoryMovementService extends RestService {
11385
11448
  }));
11386
11449
  }
11387
11450
  }
11388
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11389
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
11390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
11451
+ PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11452
+ PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
11453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
11391
11454
  type: Injectable,
11392
11455
  args: [{
11393
11456
  providedIn: 'root'
@@ -11479,9 +11542,9 @@ class SubscriptionService {
11479
11542
  });
11480
11543
  }
11481
11544
  }
11482
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11483
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
11484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, decorators: [{
11545
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11546
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
11547
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, decorators: [{
11485
11548
  type: Injectable,
11486
11549
  args: [{
11487
11550
  providedIn: 'root'
@@ -11502,9 +11565,9 @@ class ServicePriceService extends RestService {
11502
11565
  this.isHydra = true;
11503
11566
  }
11504
11567
  }
11505
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11506
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
11507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, decorators: [{
11568
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11569
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
11570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, decorators: [{
11508
11571
  type: Injectable,
11509
11572
  args: [{
11510
11573
  providedIn: 'root'
@@ -11586,9 +11649,9 @@ class TaxReviewService extends RestService {
11586
11649
  });
11587
11650
  }
11588
11651
  }
11589
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11590
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
11591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, decorators: [{
11652
+ TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11653
+ TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
11654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, decorators: [{
11592
11655
  type: Injectable,
11593
11656
  args: [{
11594
11657
  providedIn: 'root'
@@ -11620,9 +11683,9 @@ class TaxReviewHistoryService extends RestService {
11620
11683
  });
11621
11684
  }
11622
11685
  }
11623
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11624
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
11625
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
11686
+ TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11687
+ TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
11688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
11626
11689
  type: Injectable,
11627
11690
  args: [{
11628
11691
  providedIn: 'root'
@@ -11679,9 +11742,9 @@ class TaxSummaryService {
11679
11742
  });
11680
11743
  }
11681
11744
  }
11682
- TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11683
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
11684
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, decorators: [{
11745
+ TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11746
+ TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
11747
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, decorators: [{
11685
11748
  type: Injectable,
11686
11749
  args: [{
11687
11750
  providedIn: 'root'
@@ -11726,9 +11789,9 @@ class TransactionCalculationService {
11726
11789
  }));
11727
11790
  }
11728
11791
  }
11729
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11730
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
11731
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, decorators: [{
11792
+ TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11793
+ TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
11794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, decorators: [{
11732
11795
  type: Injectable,
11733
11796
  args: [{
11734
11797
  providedIn: 'root'
@@ -11761,9 +11824,9 @@ class OccupationService {
11761
11824
  return this.occupationsSubject.asObservable();
11762
11825
  }
11763
11826
  }
11764
- OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11765
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, providedIn: 'root' });
11766
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, decorators: [{
11827
+ OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11828
+ OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, providedIn: 'root' });
11829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, decorators: [{
11767
11830
  type: Injectable,
11768
11831
  args: [{
11769
11832
  providedIn: 'root'
@@ -11907,9 +11970,9 @@ class UserService {
11907
11970
  this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
11908
11971
  }
11909
11972
  }
11910
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11911
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, providedIn: 'root' });
11912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, decorators: [{
11973
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11974
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, providedIn: 'root' });
11975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, decorators: [{
11913
11976
  type: Injectable,
11914
11977
  args: [{
11915
11978
  providedIn: 'root'
@@ -11953,9 +12016,9 @@ class UserEventSettingService extends RestService {
11953
12016
  }));
11954
12017
  }
11955
12018
  }
11956
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11957
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
11958
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, decorators: [{
12019
+ UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12020
+ UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
12021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, decorators: [{
11959
12022
  type: Injectable,
11960
12023
  args: [{
11961
12024
  providedIn: 'root'
@@ -11970,9 +12033,9 @@ class UserEventTypeService extends RestService {
11970
12033
  this.isHydra = true;
11971
12034
  }
11972
12035
  }
11973
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11974
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
11975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, decorators: [{
12036
+ UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12037
+ UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
12038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, decorators: [{
11976
12039
  type: Injectable,
11977
12040
  args: [{
11978
12041
  providedIn: 'root'
@@ -12035,9 +12098,9 @@ class VehicleService extends RestService {
12035
12098
  });
12036
12099
  }
12037
12100
  }
12038
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12039
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, providedIn: 'root' });
12040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, decorators: [{
12101
+ VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12102
+ VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, providedIn: 'root' });
12103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, decorators: [{
12041
12104
  type: Injectable,
12042
12105
  args: [{
12043
12106
  providedIn: 'root'
@@ -12080,9 +12143,9 @@ class VehicleLogbookService {
12080
12143
  }));
12081
12144
  }
12082
12145
  }
12083
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
12084
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
12085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, decorators: [{
12146
+ VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
12147
+ VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
12148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, decorators: [{
12086
12149
  type: Injectable,
12087
12150
  args: [{
12088
12151
  providedIn: 'root'
@@ -12126,9 +12189,9 @@ class XlsxService {
12126
12189
  return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
12127
12190
  }
12128
12191
  }
12129
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
12130
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, providedIn: 'root' });
12131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, decorators: [{
12192
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
12193
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, providedIn: 'root' });
12194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, decorators: [{
12132
12195
  type: Injectable,
12133
12196
  args: [{
12134
12197
  providedIn: 'root'
@@ -12143,9 +12206,9 @@ class TaxExemptionService extends RestService {
12143
12206
  this.isHydra = true;
12144
12207
  }
12145
12208
  }
12146
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12147
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
12148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, decorators: [{
12209
+ TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12210
+ TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
12211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, decorators: [{
12149
12212
  type: Injectable,
12150
12213
  args: [{
12151
12214
  providedIn: 'root'
@@ -12222,9 +12285,9 @@ FacebookService.authOptions = {
12222
12285
  auth_type: 'rerequest',
12223
12286
  return_scopes: true
12224
12287
  };
12225
- FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$2.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12226
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, providedIn: 'root' });
12227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, decorators: [{
12288
+ FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$2.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12289
+ FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, providedIn: 'root' });
12290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, decorators: [{
12228
12291
  type: Injectable,
12229
12292
  args: [{
12230
12293
  providedIn: 'root'
@@ -12308,9 +12371,10 @@ function taxReviewFilterPredicate(data, filter) {
12308
12371
  * Abstract form class
12309
12372
  */
12310
12373
  class AbstractForm extends FormGroup {
12311
- constructor(controls, model = {}, validatorOrOpts, asyncValidator) {
12374
+ constructor(controls, model, validatorOrOpts, asyncValidator) {
12312
12375
  super(controls, validatorOrOpts, asyncValidator);
12313
- this.model = model;
12376
+ this.onSubmit = new EventEmitter();
12377
+ this.model = model || this.createModelInstance();
12314
12378
  this.modelClass = this.model.constructor;
12315
12379
  }
12316
12380
  /**
@@ -12324,10 +12388,18 @@ class AbstractForm extends FormGroup {
12324
12388
  if (!this.valid) {
12325
12389
  return null;
12326
12390
  }
12327
- return plainToClass(this.modelClass, Object.assign({}, this.model, this.value, data));
12391
+ const model = this.createModelInstance(Object.assign({}, this.model, this.value, data));
12392
+ this.onSubmit.emit(model);
12393
+ return model;
12394
+ }
12395
+ createModelInstance(data = {}) {
12396
+ return plainToClass(this.modelClass, data);
12328
12397
  }
12329
12398
  }
12330
12399
 
12400
+ /**
12401
+ * Form with bank account loan details
12402
+ */
12331
12403
  class BankAccountLoanForm extends AbstractForm {
12332
12404
  constructor(loan = plainToClass(Loan, {})) {
12333
12405
  super({
@@ -12344,89 +12416,79 @@ class BankAccountLoanForm extends AbstractForm {
12344
12416
  }
12345
12417
  }
12346
12418
 
12347
- class BankAccountPropertyForm extends AbstractForm {
12348
- constructor(isLoan, bankAccountProperty = plainToClass(BankAccountProperty, {})) {
12349
- super({
12350
- property: new FormControl(bankAccountProperty.property, Validators.required),
12351
- percent: new FormControl({ value: bankAccountProperty.percent, disabled: !isLoan }, Validators.required)
12352
- }, bankAccountProperty);
12353
- }
12354
- }
12355
-
12419
+ /**
12420
+ * Form array with bank account properties
12421
+ */
12356
12422
  class BankAccountPropertiesForm extends FormArray {
12357
- constructor(isLoan, bankAccountProperties = []) {
12358
- super(bankAccountProperties.length
12359
- ? bankAccountProperties.map((bankAccountProperty) => new BankAccountPropertyForm(isLoan, bankAccountProperty))
12360
- : [new BankAccountPropertyForm(isLoan)]);
12361
- this.isLoan = isLoan;
12362
- this.bankAccountProperties = bankAccountProperties;
12423
+ constructor(bankAccountProperties = [plainToClass(BankAccountProperty, {})]) {
12424
+ super(bankAccountProperties.map((bankAccountProperty) => {
12425
+ return new FormGroup({
12426
+ property: new FormControl(bankAccountProperty.property, Validators.required),
12427
+ percent: new FormControl(bankAccountProperty.percent, Validators.required)
12428
+ });
12429
+ }));
12363
12430
  }
12364
12431
  add() {
12365
- this.push(new BankAccountPropertyForm(this.isLoan));
12432
+ this.push(new FormGroup({
12433
+ property: new FormControl(null, Validators.required),
12434
+ percent: new FormControl({
12435
+ value: 100,
12436
+ disabled: !this.at(0).contains('percent')
12437
+ }, Validators.required)
12438
+ }));
12439
+ }
12440
+ enablePercent() {
12441
+ this.controls.forEach((propertyFormGroup) => {
12442
+ propertyFormGroup.get('percent').enable();
12443
+ });
12444
+ }
12445
+ disablePercent() {
12446
+ this.controls.forEach((propertyFormGroup) => {
12447
+ propertyFormGroup.get('percent').disable();
12448
+ });
12366
12449
  }
12367
12450
  }
12368
12451
 
12369
12452
  /**
12370
- * Form for additional data for bank accounts. Allow user to set tank type, loan and properties for new not-saved bank accounts.
12371
- * Works with manual and basiq bank accounts.
12453
+ * Form is using for import basiq bank accounts.
12454
+ * Basiq accounts has all data except tank type, properties and loan partially
12372
12455
  */
12373
- class BankAccountForm extends AbstractForm {
12374
- constructor(bankAccount = plainToClass(BankAccount, {})) {
12456
+ class BankAccountImportForm extends AbstractForm {
12457
+ constructor(bankAccount) {
12375
12458
  super({
12376
12459
  tankType: new FormControl(bankAccount.tankType, Validators.required),
12377
12460
  }, bankAccount);
12378
- this.bankAccount = bankAccount;
12379
12461
  if (bankAccount.isLoan()) {
12380
12462
  this.addControl('loan', new BankAccountLoanForm(bankAccount.loan));
12381
12463
  }
12464
+ // basiq account import form should be disabled (unchecked) by default
12465
+ this.disable();
12382
12466
  this.listenEvents();
12383
12467
  }
12384
12468
  listenEvents() {
12385
12469
  this.listenTankTypeChanges();
12386
- this.listenValueChanges();
12387
- }
12388
- get properties() {
12389
- return this.get('bankAccountProperties');
12390
- }
12391
- isLoan() {
12392
- return BankAccount.loanTypes.includes(this.bankAccount.type);
12393
- }
12394
- isPropertyTank() {
12395
- return this.get('tankType').value === TankTypeEnum.PROPERTY;
12396
- }
12397
- confirm() {
12398
- this.markAllAsTouched();
12399
- if (this.invalid) {
12400
- return;
12401
- }
12402
- this.isConfirmed = true;
12403
- }
12404
- addPropertiesArray() {
12405
- const control = new BankAccountPropertiesForm(this.isLoan(), this.bankAccount.bankAccountProperties);
12406
- // Default form behaviour is: if we add enabled form control to disabled form group then this form group enable.
12407
- // Disable form control before add to avoid form group enabling.
12408
- if (this.disabled) {
12409
- control.disable();
12410
- }
12411
- this.addControl('bankAccountProperties', control);
12412
12470
  }
12413
12471
  /**
12414
- * Add/Remove properties form array depending on selected tank type
12472
+ * Add/Remove bank account properties form depends on selected tank type
12415
12473
  */
12416
12474
  listenTankTypeChanges() {
12417
- this.get('tankType').valueChanges.subscribe(() => {
12418
- this.isPropertyTank() ? this.addPropertiesArray() : this.removeControl('bankAccountProperties');
12419
- });
12420
- }
12421
- listenValueChanges() {
12422
- this.valueChanges.subscribe(() => {
12423
- this.isConfirmed = false;
12475
+ this.get('tankType').valueChanges.subscribe((tankType) => {
12476
+ if (tankType === TankTypeEnum.PROPERTY) {
12477
+ this.addControl('bankAccountProperties', new BankAccountPropertiesForm());
12478
+ // property percent allowed only for loan bank accounts
12479
+ if (!this.contains('loan')) {
12480
+ this.get('bankAccountProperties').disablePercent();
12481
+ }
12482
+ }
12483
+ else {
12484
+ this.removeControl('bankAccountProperties');
12485
+ }
12424
12486
  });
12425
12487
  }
12426
12488
  }
12427
12489
 
12428
12490
  /**
12429
- * Form is using for manual bank account creation (not Basiq), prepares bank account data for the next saving.
12491
+ * Form is using for single manual bank account creation (not Basiq)
12430
12492
  */
12431
12493
  class BankAccountAddManualForm extends AbstractForm {
12432
12494
  constructor(connection) {
@@ -12435,7 +12497,61 @@ class BankAccountAddManualForm extends AbstractForm {
12435
12497
  accountName: new FormControl(null, Validators.required),
12436
12498
  currentBalance: new FormControl(null, Validators.required),
12437
12499
  accountNumber: new FormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]),
12438
- }, plainToClass(BankAccount, { bankConnection: connection }));
12500
+ tankType: new FormControl(null, Validators.required),
12501
+ });
12502
+ this.connection = connection;
12503
+ this.listenEvents();
12504
+ }
12505
+ listenEvents() {
12506
+ this.listenTypeChanges();
12507
+ this.listenTankTypeChanges();
12508
+ }
12509
+ /**
12510
+ * Add/Remove loan form depends on selected bank account type
12511
+ */
12512
+ listenTypeChanges() {
12513
+ this.get('type').valueChanges.subscribe((type) => {
12514
+ if (BankAccount.loanTypes.includes(type)) {
12515
+ this.addControl('loan', new BankAccountLoanForm());
12516
+ // property percent allowed only for loan bank accounts
12517
+ if (this.contains('bankAccountProperties')) {
12518
+ this.get('bankAccountProperties').enablePercent();
12519
+ }
12520
+ }
12521
+ else {
12522
+ this.removeControl('loan');
12523
+ // property percent allowed only for loan bank accounts
12524
+ if (this.contains('bankAccountProperties')) {
12525
+ this.get('bankAccountProperties').disablePercent();
12526
+ }
12527
+ }
12528
+ });
12529
+ }
12530
+ /**
12531
+ * Add/Remove bank account properties form depends on selected tank type
12532
+ */
12533
+ listenTankTypeChanges() {
12534
+ this.get('tankType').valueChanges.subscribe((tankType) => {
12535
+ if (tankType === TankTypeEnum.PROPERTY) {
12536
+ this.addControl('bankAccountProperties', new BankAccountPropertiesForm());
12537
+ // property percent allowed only for loan bank accounts
12538
+ if (this.contains('loan')) {
12539
+ this.get('bankAccountProperties').enablePercent();
12540
+ }
12541
+ else {
12542
+ this.get('bankAccountProperties').disablePercent();
12543
+ }
12544
+ }
12545
+ else {
12546
+ this.removeControl('bankAccountProperties');
12547
+ }
12548
+ });
12549
+ }
12550
+ /**
12551
+ * Attach bank connection to manual bank account
12552
+ */
12553
+ submit() {
12554
+ return super.submit({ bankConnection: this.connection });
12439
12555
  }
12440
12556
  }
12441
12557
  BankAccountAddManualForm.accountNumberPattern = '^[0-9]{6}[ ]{1}[0-9]{1,}$';
@@ -12462,16 +12578,60 @@ function dateRangeValidator(dateStart, dateEnd) {
12462
12578
  };
12463
12579
  }
12464
12580
 
12465
- class BankAccountMigrateForm extends AbstractForm {
12466
- constructor() {
12581
+ /**
12582
+ * Validator check if at least one control in formArray is enabled
12583
+ */
12584
+ function atLeastOneEnabledValidator(arrayName) {
12585
+ return (formGroup) => {
12586
+ return !!formGroup.get(arrayName).controls.find((control) => control.enabled)
12587
+ ? null
12588
+ : { arrayControlsDisabled: true };
12589
+ };
12590
+ }
12591
+
12592
+ /**
12593
+ * Form for import multiple basiq bank accounts
12594
+ */
12595
+ class BankAccountsImportForm extends AbstractForm {
12596
+ constructor(bankAccounts) {
12467
12597
  super({
12468
- migrateFrom: new FormControl(BankAccountMigrateForm.minDate, [Validators.required, dateRangeValidator(BankAccountMigrateForm.minDate, BankAccountMigrateForm.maxDate)]),
12469
- migrateTo: new FormControl(BankAccountMigrateForm.maxDate, [Validators.required, dateRangeValidator(BankAccountMigrateForm.minDate, BankAccountMigrateForm.maxDate)])
12598
+ migrateFrom: new FormControl(BankAccountsImportForm.minDate, [Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
12599
+ migrateTo: new FormControl(BankAccountsImportForm.maxDate, [Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
12600
+ bankAccounts: new FormArray(bankAccounts.map((bankAccount) => new BankAccountImportForm(bankAccount)))
12601
+ }, [], {
12602
+ validators: [atLeastOneEnabledValidator('bankAccounts')]
12470
12603
  });
12604
+ this.bankAccounts = bankAccounts;
12605
+ }
12606
+ submit() {
12607
+ this.submitted = true;
12608
+ if (this.invalid) {
12609
+ return null;
12610
+ }
12611
+ const bankAccounts = [];
12612
+ // form is valid when all selected bank accounts forms are valid
12613
+ for (let bankAccountImportForm of this.get('bankAccounts').controls) {
12614
+ // skip disabled forms
12615
+ if (bankAccountImportForm.disabled) {
12616
+ continue;
12617
+ }
12618
+ const bankAccount = bankAccountImportForm.submit({
12619
+ migrateFrom: this.value.migrateFrom,
12620
+ migrateTo: this.value.migrateTo
12621
+ });
12622
+ if (!bankAccount) {
12623
+ return null;
12624
+ }
12625
+ bankAccounts.push(bankAccount);
12626
+ }
12627
+ if (!bankAccounts.length) {
12628
+ return null;
12629
+ }
12630
+ return bankAccounts;
12471
12631
  }
12472
12632
  }
12473
- BankAccountMigrateForm.minDate = new FinancialYear().prevFinYear.startDate;
12474
- BankAccountMigrateForm.maxDate = new Date();
12633
+ BankAccountsImportForm.minDate = new FinancialYear().prevFinYear.startDate;
12634
+ BankAccountsImportForm.maxDate = new Date();
12475
12635
 
12476
12636
  /**
12477
12637
  * Form with basiq bank login fields.
@@ -12501,15 +12661,11 @@ function atLeastOneCheckedValidator() {
12501
12661
 
12502
12662
  /**
12503
12663
  * Validation function for autocomplete fields. Checks that the user should select a value from a list rather than type in input field
12664
+ * @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
12504
12665
  */
12505
- function requireAutocomplete() {
12666
+ function autocompleteValidator() {
12506
12667
  return (control) => {
12507
- if (typeof control.value === 'string' && !!control.value) {
12508
- return { notFromList: true };
12509
- }
12510
- else {
12511
- return null;
12512
- }
12668
+ return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
12513
12669
  };
12514
12670
  }
12515
12671
 
@@ -12550,21 +12706,6 @@ function passwordMatchValidator(newPassControlName, confirmPassControlName) {
12550
12706
  };
12551
12707
  }
12552
12708
 
12553
- /**
12554
- * Validation function, that checks that the user should select a value from a list rather than type in input field
12555
- */
12556
- function requireSelectValidator() {
12557
- return (control) => {
12558
- const selection = control.value;
12559
- if (typeof selection === 'string' && !!selection) {
12560
- return { notFromList: true };
12561
- }
12562
- else {
12563
- return null;
12564
- }
12565
- };
12566
- }
12567
-
12568
12709
  class ClientIncomeTypesForm extends AbstractForm {
12569
12710
  constructor(clientIncomeTypes) {
12570
12711
  super({
@@ -12587,12 +12728,13 @@ class LoginForm extends AbstractForm {
12587
12728
  }
12588
12729
  }
12589
12730
 
12731
+ // @TODO Alex: Create a model and handle request fields via class-transformer
12590
12732
  class PasswordForm extends AbstractForm {
12591
12733
  constructor() {
12592
12734
  super({
12593
12735
  password: new FormControl(null, [Validators.required, passwordValidator()]),
12594
12736
  confirm: new FormControl(null, Validators.required),
12595
- }, {}, passwordMatchValidator('password', 'confirm'));
12737
+ }, { password: null, confirm: null }, passwordMatchValidator('password', 'confirm'));
12596
12738
  }
12597
12739
  }
12598
12740
 
@@ -12635,6 +12777,7 @@ class RegisterFirmForm extends AbstractForm {
12635
12777
  }
12636
12778
  }
12637
12779
 
12780
+ // @TODO Alex: Create a model and handle request fields via class-transformer
12638
12781
  class ResetPasswordForm extends AbstractForm {
12639
12782
  constructor() {
12640
12783
  super({
@@ -12880,7 +13023,7 @@ class MyTaxEmployeeShareSchemesForm extends AbstractForm {
12880
13023
  class MyTaxIncomeStatementsForm extends AbstractForm {
12881
13024
  constructor(incomeStatements, user) {
12882
13025
  super({
12883
- occupation: new FormControl(user.clientDetails.occupation, [Validators.required, requireSelectValidator()]),
13026
+ occupation: new FormControl(user.clientDetails.occupation, [Validators.required, autocompleteValidator()]),
12884
13027
  allowanceTotalAmount: new FormControl({
12885
13028
  value: incomeStatements.allowanceTotalAmount,
12886
13029
  disabled: true
@@ -13119,5 +13262,5 @@ class MyTaxRentForm extends AbstractForm {
13119
13262
  * Generated bundle index. Do not edit.
13120
13263
  */
13121
13264
 
13122
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountAddManualForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountForm, BankAccountLoanForm, BankAccountMigrateForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountPropertyForm, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankCollection, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, 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, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, atLeastOneCheckedValidator, atoLinks, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, passwordMatchValidator, passwordValidator, replace, requireAutocomplete, requireSelectValidator, roundTo, sort, sortDeep, taxReviewFilterPredicate };
13265
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountAddManualForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountLoanForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, 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, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
13123
13266
  //# sourceMappingURL=taxtank-core.js.map