taxtank-core 0.20.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/bundles/taxtank-core.umd.js +914 -693
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +6 -3
  4. package/esm2015/lib/collections/property/property.collection.js +24 -5
  5. package/esm2015/lib/db/Enums/bank-popular.enum.js +14 -0
  6. package/esm2015/lib/forms/abstract.form.js +11 -4
  7. package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +75 -0
  8. package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +43 -0
  9. package/esm2015/lib/forms/bank/bank-account/bank-account-loan.form.js +23 -0
  10. package/esm2015/lib/forms/bank/bank-account/bank-account-properties.form.js +36 -0
  11. package/esm2015/lib/forms/bank/bank-account/bank-accounts-import.form.js +50 -0
  12. package/esm2015/lib/forms/index.js +6 -7
  13. package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +3 -3
  14. package/esm2015/lib/forms/user/password.form.js +3 -2
  15. package/esm2015/lib/forms/user/reset-password.form.js +2 -1
  16. package/esm2015/lib/interceptors/basiq.interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  19. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  20. package/esm2015/lib/interceptors/jwt-interceptor.js +9 -4
  21. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  22. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  23. package/esm2015/lib/models/badge/badge-color.enum.js +8 -0
  24. package/esm2015/lib/models/badge/badge.js +14 -0
  25. package/esm2015/lib/models/bank/bank.js +7 -2
  26. package/esm2015/lib/models/dictionary/dictionary.js +35 -0
  27. package/esm2015/lib/models/endpoint/endpoints.const.js +2 -1
  28. package/esm2015/lib/models/property/property.js +6 -1
  29. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  30. package/esm2015/lib/services/asset/assets.service.js +3 -3
  31. package/esm2015/lib/services/auth/auth.service.js +3 -3
  32. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  33. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  34. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  35. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  36. package/esm2015/lib/services/event/sse.service.js +3 -3
  37. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  38. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  39. package/esm2015/lib/services/http/address/address.service.js +3 -3
  40. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +10 -4
  41. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +18 -48
  42. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  43. package/esm2015/lib/services/http/bank/bank.service.js +11 -4
  44. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  45. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +55 -17
  46. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  47. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  48. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  49. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  50. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  51. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  52. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  53. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  54. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  55. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  56. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  57. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  58. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  59. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  60. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  61. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  62. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  63. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  64. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  65. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  66. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  67. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  68. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  69. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  70. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  71. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  72. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  73. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  74. package/esm2015/lib/services/http/property/property.service.js +3 -3
  75. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  76. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  77. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  78. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  79. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  80. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  81. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  82. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  83. package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
  84. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  85. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  86. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  87. package/esm2015/lib/services/http/user/user.service.js +7 -4
  88. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  89. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  90. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  91. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  92. package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
  93. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  94. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  95. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  96. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  97. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  98. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  99. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  100. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +38 -4
  101. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  102. package/esm2015/lib/services/toast/toast.service.js +3 -3
  103. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  104. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  105. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  106. package/esm2015/lib/tt-core.module.js +4 -4
  107. package/esm2015/lib/validators/at-least-one-enabled.validator.js +11 -0
  108. package/esm2015/lib/validators/autocomplete.validator.js +10 -0
  109. package/esm2015/lib/validators/index.js +2 -3
  110. package/esm2015/public-api.js +5 -2
  111. package/fesm2015/taxtank-core.js +788 -566
  112. package/fesm2015/taxtank-core.js.map +1 -1
  113. package/lib/collections/collection.d.ts +2 -1
  114. package/lib/collections/property/property.collection.d.ts +5 -0
  115. package/lib/db/Enums/bank-popular.enum.d.ts +12 -0
  116. package/lib/forms/abstract.form.d.ts +5 -3
  117. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +25 -0
  118. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts +15 -0
  119. package/lib/forms/bank/bank-account/bank-account-loan.form.d.ts +8 -0
  120. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +11 -0
  121. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +12 -0
  122. package/lib/forms/index.d.ts +5 -6
  123. package/lib/models/badge/badge-color.enum.d.ts +6 -0
  124. package/lib/models/badge/badge.d.ts +10 -0
  125. package/lib/models/bank/bank.d.ts +1 -0
  126. package/lib/models/dictionary/dictionary.d.ts +12 -0
  127. package/lib/models/property/property.d.ts +5 -0
  128. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +3 -0
  129. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +0 -8
  130. package/lib/services/http/bank/bank.service.d.ts +2 -0
  131. package/lib/services/http/bank/basiq/basiq.service.d.ts +12 -3
  132. package/lib/services/http/user/user.service.d.ts +1 -0
  133. package/lib/services/property/property-calculation/property-calculation.service.d.ts +10 -0
  134. package/lib/validators/at-least-one-enabled.validator.d.ts +5 -0
  135. package/lib/validators/{require-autocomplete.d.ts → autocomplete.validator.d.ts} +2 -1
  136. package/lib/validators/index.d.ts +1 -2
  137. package/package.json +1 -1
  138. package/public-api.d.ts +4 -1
  139. package/esm2015/lib/collections/bank.collection.js +0 -15
  140. package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +0 -19
  141. package/esm2015/lib/forms/bank/bank-account-loan.form.js +0 -20
  142. package/esm2015/lib/forms/bank/bank-account-migrate.form.js +0 -15
  143. package/esm2015/lib/forms/bank/bank-account-properties.form.js +0 -15
  144. package/esm2015/lib/forms/bank/bank-account-property.form.js +0 -13
  145. package/esm2015/lib/forms/bank/bank-account.form.js +0 -66
  146. package/esm2015/lib/validators/require-autocomplete.js +0 -14
  147. package/esm2015/lib/validators/require-select.validator.js +0 -15
  148. package/lib/collections/bank.collection.d.ts +0 -7
  149. package/lib/forms/bank/bank-account-add-manual.form.d.ts +0 -10
  150. package/lib/forms/bank/bank-account-loan.form.d.ts +0 -5
  151. package/lib/forms/bank/bank-account-migrate.form.d.ts +0 -9
  152. package/lib/forms/bank/bank-account-properties.form.d.ts +0 -8
  153. package/lib/forms/bank/bank-account-property.form.d.ts +0 -5
  154. package/lib/forms/bank/bank-account.form.d.ts +0 -28
  155. package/lib/validators/require-select.validator.d.ts +0 -5
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('class-transformer'), require('@auth0/angular-jwt'), require('lodash/get'), require('lodash/last'), require('moment'), require('lodash/flatten'), require('lodash/hasIn'), require('lodash/first'), require('lodash/cloneDeep'), require('lodash/compact'), require('lodash/uniqBy'), require('lodash/concat'), require('moment-range'), require('@angular/forms'), require('lodash/fromPairs'), require('lodash'), require('event-source-polyfill/src/eventsource.min.js'), require('@angular/router'), require('lodash/clone'), require('html2pdf.js'), require('jspdf'), require('jspdf-autotable'), require('@stripe/stripe-js'), require('xlsx'), require('file-saver')) :
3
- typeof define === 'function' && define.amd ? define('taxtank-core', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs', 'rxjs/operators', 'class-transformer', '@auth0/angular-jwt', 'lodash/get', 'lodash/last', 'moment', 'lodash/flatten', 'lodash/hasIn', 'lodash/first', 'lodash/cloneDeep', 'lodash/compact', 'lodash/uniqBy', 'lodash/concat', 'moment-range', '@angular/forms', 'lodash/fromPairs', 'lodash', 'event-source-polyfill/src/eventsource.min.js', '@angular/router', 'lodash/clone', 'html2pdf.js', 'jspdf', 'jspdf-autotable', '@stripe/stripe-js', 'xlsx', 'file-saver'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["taxtank-core"] = {}, global.ng.core, global.ng.common, global.ng.common.http, global.rxjs, global.rxjs.operators, global.classTransformer, global.angularJwt, global.get, global.last, global.moment, global.flatten, global.hasIn, global.first, global.cloneDeep$1, global.compact, global.uniqBy, global.concat, global.momentRange, global.ng.forms, global.fromPairs, global._, global.eventsource_min_js, global.ng.router, global.clone, global.html2pdf, global.jsPDF, global.autoTable, global.stripeJs, global.xlsx, global.FileSaver));
5
- })(this, (function (exports, i0, i1$1, i1, rxjs, operators, classTransformer, angularJwt, get, last, moment, flatten, hasIn, first, cloneDeep$1, compact, uniqBy, concat, momentRange, forms, fromPairs, _, eventsource_min_js, i1$2, clone, html2pdf, jsPDF, autoTable, stripeJs, xlsx, FileSaver) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('class-transformer'), require('@auth0/angular-jwt'), require('lodash/get'), require('lodash/last'), require('moment'), require('lodash/flatten'), require('lodash/hasIn'), require('lodash/first'), require('lodash/uniqBy'), require('lodash/concat'), require('rxjs/internal/observable/throwError'), require('lodash/cloneDeep'), require('lodash/compact'), require('moment-range'), require('@angular/forms'), require('lodash/fromPairs'), require('lodash'), require('event-source-polyfill/src/eventsource.min.js'), require('@angular/router'), require('lodash/clone'), require('html2pdf.js'), require('jspdf'), require('jspdf-autotable'), require('@stripe/stripe-js'), require('xlsx'), require('file-saver')) :
3
+ typeof define === 'function' && define.amd ? define('taxtank-core', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs', 'rxjs/operators', 'class-transformer', '@auth0/angular-jwt', 'lodash/get', 'lodash/last', 'moment', 'lodash/flatten', 'lodash/hasIn', 'lodash/first', 'lodash/uniqBy', 'lodash/concat', 'rxjs/internal/observable/throwError', 'lodash/cloneDeep', 'lodash/compact', 'moment-range', '@angular/forms', 'lodash/fromPairs', 'lodash', 'event-source-polyfill/src/eventsource.min.js', '@angular/router', 'lodash/clone', 'html2pdf.js', 'jspdf', 'jspdf-autotable', '@stripe/stripe-js', 'xlsx', 'file-saver'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["taxtank-core"] = {}, global.ng.core, global.ng.common, global.ng.common.http, global.rxjs, global.rxjs.operators, global.classTransformer, global.angularJwt, global.get, global.last, global.moment, global.flatten, global.hasIn, global.first, global.uniqBy, global.concat, global.rxjs["internal/observable/throwError"], global.cloneDeep$1, global.compact, global.momentRange, global.ng.forms, global.fromPairs, global._, global.eventsource_min_js, global.ng.router, global.clone, global.html2pdf, global.jsPDF, global.autoTable, global.stripeJs, global.xlsx, global.FileSaver));
5
+ })(this, (function (exports, i0, i1$1, i1, rxjs, operators, classTransformer, angularJwt, get, last, moment, flatten, hasIn, first, uniqBy, concat, throwError, cloneDeep$1, compact, momentRange, forms, fromPairs, _, eventsource_min_js, i1$2, clone, html2pdf, jsPDF, autoTable, stripeJs, xlsx, FileSaver) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -33,10 +33,10 @@
33
33
  var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
34
34
  var hasIn__default = /*#__PURE__*/_interopDefaultLegacy(hasIn);
35
35
  var first__default = /*#__PURE__*/_interopDefaultLegacy(first);
36
- var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep$1);
37
- var compact__default = /*#__PURE__*/_interopDefaultLegacy(compact);
38
36
  var uniqBy__default = /*#__PURE__*/_interopDefaultLegacy(uniqBy);
39
37
  var concat__default = /*#__PURE__*/_interopDefaultLegacy(concat);
38
+ var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep$1);
39
+ var compact__default = /*#__PURE__*/_interopDefaultLegacy(compact);
40
40
  var fromPairs__default = /*#__PURE__*/_interopDefaultLegacy(fromPairs);
41
41
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
42
42
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
@@ -88,9 +88,9 @@
88
88
  };
89
89
  return CorelogicService;
90
90
  }());
91
- CorelogicService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
92
- CorelogicService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicService, providedIn: 'root' });
93
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicService, decorators: [{
91
+ CorelogicService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
92
+ CorelogicService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicService, providedIn: 'root' });
93
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicService, decorators: [{
94
94
  type: i0.Injectable,
95
95
  args: [{
96
96
  providedIn: 'root'
@@ -135,9 +135,9 @@
135
135
  };
136
136
  return CorelogicInterceptor;
137
137
  }());
138
- CorelogicInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
139
- CorelogicInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicInterceptor });
140
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicInterceptor, decorators: [{
138
+ CorelogicInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
139
+ CorelogicInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicInterceptor });
140
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicInterceptor, decorators: [{
141
141
  type: i0.Injectable
142
142
  }], ctorParameters: function () {
143
143
  return [{ type: CorelogicService }, { type: undefined, decorators: [{
@@ -176,9 +176,9 @@
176
176
  };
177
177
  return FinancialYearInterceptor;
178
178
  }());
179
- FinancialYearInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
180
- FinancialYearInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FinancialYearInterceptor });
181
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FinancialYearInterceptor, decorators: [{
179
+ FinancialYearInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
180
+ FinancialYearInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FinancialYearInterceptor });
181
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FinancialYearInterceptor, decorators: [{
182
182
  type: i0.Injectable
183
183
  }], ctorParameters: function () {
184
184
  return [{ type: undefined, decorators: [{
@@ -187,7 +187,7 @@
187
187
  }] }];
188
188
  } });
189
189
 
190
- /******************************************************************************
190
+ /*! *****************************************************************************
191
191
  Copyright (c) Microsoft Corporation.
192
192
 
193
193
  Permission to use, copy, modify, and/or distribute this software for any
@@ -349,11 +349,7 @@
349
349
  var __createBinding = Object.create ? (function (o, m, k, k2) {
350
350
  if (k2 === undefined)
351
351
  k2 = k;
352
- var desc = Object.getOwnPropertyDescriptor(m, k);
353
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
354
- desc = { enumerable: true, get: function () { return m[k]; } };
355
- }
356
- Object.defineProperty(o, k2, desc);
352
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
357
353
  }) : (function (o, m, k, k2) {
358
354
  if (k2 === undefined)
359
355
  k2 = k;
@@ -508,11 +504,6 @@
508
504
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
509
505
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
510
506
  }
511
- function __classPrivateFieldIn(state, receiver) {
512
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
513
- throw new TypeError("Cannot use 'in' operator on non-object");
514
- return typeof state === "function" ? receiver === state : state.has(receiver);
515
- }
516
507
 
517
508
  var NAME_TOKEN = 'token';
518
509
  var NAME_REFRESH_TOKEN = 'refreshToken';
@@ -543,9 +534,9 @@
543
534
  };
544
535
  return JwtService;
545
536
  }(angularJwt.JwtHelperService));
546
- JwtService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
547
- JwtService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtService, providedIn: 'root' });
548
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtService, decorators: [{
537
+ JwtService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
538
+ JwtService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtService, providedIn: 'root' });
539
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtService, decorators: [{
549
540
  type: i0.Injectable,
550
541
  args: [{
551
542
  providedIn: 'root'
@@ -619,9 +610,9 @@
619
610
  };
620
611
  return EventDispatcherService;
621
612
  }());
622
- EventDispatcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
623
- EventDispatcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, providedIn: 'root' });
624
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, decorators: [{
613
+ EventDispatcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
614
+ EventDispatcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, providedIn: 'root' });
615
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, decorators: [{
625
616
  type: i0.Injectable,
626
617
  args: [{
627
618
  providedIn: 'root'
@@ -675,9 +666,9 @@
675
666
  };
676
667
  return AuthService;
677
668
  }());
678
- AuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthService, deps: [{ token: i1__namespace.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
679
- AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
680
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthService, decorators: [{
669
+ AuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AuthService, deps: [{ token: i1__namespace.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
670
+ AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
671
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AuthService, decorators: [{
681
672
  type: i0.Injectable,
682
673
  args: [{
683
674
  providedIn: 'root'
@@ -766,6 +757,11 @@
766
757
  };
767
758
  JwtInterceptor.prototype.handle401Error = function (req, next, err) {
768
759
  var _this = this;
760
+ var _a;
761
+ // skip 401 errors not from JWT (basiq login case or other)
762
+ if (!((_a = err.error.message) === null || _a === void 0 ? void 0 : _a.includes('JWT Token'))) {
763
+ return rxjs.throwError(err);
764
+ }
769
765
  if (req.url.includes('token/refresh') || req.url.includes('login')) {
770
766
  if (req.url.includes('token/refresh')) {
771
767
  this.authService.logoutFront();
@@ -813,9 +809,9 @@
813
809
  };
814
810
  return JwtInterceptor;
815
811
  }());
816
- JwtInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
817
- JwtInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtInterceptor });
818
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtInterceptor, decorators: [{
812
+ JwtInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
813
+ JwtInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtInterceptor });
814
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtInterceptor, decorators: [{
819
815
  type: i0.Injectable
820
816
  }], ctorParameters: function () {
821
817
  return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
@@ -853,9 +849,9 @@
853
849
  };
854
850
  return UserSwitcherService;
855
851
  }());
856
- UserSwitcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
857
- UserSwitcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, providedIn: 'root' });
858
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, decorators: [{
852
+ UserSwitcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
853
+ UserSwitcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, providedIn: 'root' });
854
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, decorators: [{
859
855
  type: i0.Injectable,
860
856
  args: [{
861
857
  providedIn: 'root'
@@ -892,9 +888,9 @@
892
888
  };
893
889
  return UserSwitcherInterceptor;
894
890
  }());
895
- UserSwitcherInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
896
- UserSwitcherInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherInterceptor });
897
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherInterceptor, decorators: [{
891
+ UserSwitcherInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
892
+ UserSwitcherInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherInterceptor });
893
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherInterceptor, decorators: [{
898
894
  type: i0.Injectable
899
895
  }], ctorParameters: function () {
900
896
  return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
@@ -1055,6 +1051,7 @@
1055
1051
  TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/transactions-allocations'),
1056
1052
  TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/transactions-allocations\\/\\d+'),
1057
1053
  USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
1054
+ USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
1058
1055
  USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
1059
1056
  USER_CURRENT_PASSWORD_PUT: new Endpoint('PUT', '\\/users\\/current\\/password\.\*'),
1060
1057
  USER_EVENT_SETTINGS_GET: new Endpoint('GET', '\\/user-event-settings'),
@@ -1097,9 +1094,9 @@
1097
1094
  };
1098
1095
  return PreloaderService;
1099
1096
  }());
1100
- PreloaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1101
- PreloaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, providedIn: 'root' });
1102
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, decorators: [{
1097
+ PreloaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1098
+ PreloaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, providedIn: 'root' });
1099
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, decorators: [{
1103
1100
  type: i0.Injectable,
1104
1101
  args: [{
1105
1102
  providedIn: 'root'
@@ -1129,9 +1126,9 @@
1129
1126
  };
1130
1127
  return PreloaderInterceptor;
1131
1128
  }());
1132
- PreloaderInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1133
- PreloaderInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderInterceptor });
1134
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderInterceptor, decorators: [{
1129
+ PreloaderInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1130
+ PreloaderInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderInterceptor });
1131
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderInterceptor, decorators: [{
1135
1132
  type: i0.Injectable
1136
1133
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
1137
1134
 
@@ -1272,9 +1269,9 @@
1272
1269
  };
1273
1270
  return ToastService;
1274
1271
  }());
1275
- ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1276
- ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
1277
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, decorators: [{
1272
+ ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1273
+ ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
1274
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, decorators: [{
1278
1275
  type: i0.Injectable,
1279
1276
  args: [{
1280
1277
  providedIn: 'root'
@@ -1480,9 +1477,9 @@
1480
1477
  RestService.prototype.listenEvents = function () { };
1481
1478
  return RestService;
1482
1479
  }());
1483
- RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1484
- RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
1485
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService, decorators: [{
1480
+ RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1481
+ RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
1482
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, decorators: [{
1486
1483
  type: i0.Injectable,
1487
1484
  args: [{
1488
1485
  providedIn: 'root'
@@ -2802,6 +2799,9 @@
2802
2799
  Collection.prototype.getIds = function () {
2803
2800
  return this.items.map(function (item) { return item['id']; });
2804
2801
  };
2802
+ Collection.prototype.mapBy = function (path) {
2803
+ return this.items.map(function (item) { return get__default["default"](item, path); });
2804
+ };
2805
2805
  Collection.prototype.sortBy = function (field, isDesc) {
2806
2806
  if (field === void 0) { field = 'id'; }
2807
2807
  if (isDesc === void 0) { isDesc = true; }
@@ -2864,8 +2864,8 @@
2864
2864
  Collection.prototype.remove = function (items) {
2865
2865
  return this.filter(function (model) { return !items.map(function (item) { return item.id; }).includes(model.id); });
2866
2866
  };
2867
- Collection.prototype.removeBy = function (path, value) {
2868
- return this.filter(function (item) { return get__default["default"](item, path) !== value; });
2867
+ Collection.prototype.removeBy = function (path, values) {
2868
+ return this.filter(function (item) { return !(Array.isArray(values) ? values : [values]).includes(get__default["default"](item, path)); });
2869
2869
  };
2870
2870
  return Collection;
2871
2871
  }());
@@ -3149,6 +3149,11 @@
3149
3149
  if (unitOfTime === void 0) { unitOfTime = 'days'; }
3150
3150
  return moment__namespace(sale.contractDate).diff(moment__namespace(this.contractDate), unitOfTime);
3151
3151
  };
3152
+ /**
3153
+ * Tax Position = Income - Expense - Interest - Depreciation
3154
+ * Where (Income - Expense - Interest) is cash position.
3155
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217415928/Dashboard+Property
3156
+ */
3152
3157
  Property.prototype.getTaxPosition = function (transactions, depreciations) {
3153
3158
  return transactions.cashPosition - Math.abs(depreciations.claimAmount);
3154
3159
  };
@@ -3235,6 +3240,20 @@
3235
3240
  return Bank;
3236
3241
  }(AbstractModel));
3237
3242
 
3243
+ var BankPopularEnum;
3244
+ (function (BankPopularEnum) {
3245
+ BankPopularEnum["BANKWEST"] = "Bank of Western Australia trading as BankWest";
3246
+ BankPopularEnum["ANZ"] = "Australia and New Zealand Banking Group Limited";
3247
+ BankPopularEnum["CBA"] = "Commonwealth Bank Australia";
3248
+ BankPopularEnum["WESTPAC"] = "Westpac Banking Corporation";
3249
+ BankPopularEnum["BENDIGO"] = "Bendigo and Adelaide Bank Limited";
3250
+ BankPopularEnum["ING_DIRECT"] = "ING Bank (Australia) Limited (trading as ING Direct)";
3251
+ BankPopularEnum["ST_GEORGE"] = "St. George Bank (a subsidiary of Westpac)";
3252
+ BankPopularEnum["SUNCORP"] = "Suncorp-Metway Limited";
3253
+ BankPopularEnum["CITIBANK"] = "Citibank";
3254
+ BankPopularEnum["BOQ"] = "Bank of Queensland Limited";
3255
+ })(BankPopularEnum || (BankPopularEnum = {}));
3256
+
3238
3257
  var Bank = /** @class */ (function (_super) {
3239
3258
  __extends(Bank, _super);
3240
3259
  function Bank() {
@@ -3257,6 +3276,13 @@
3257
3276
  return value ? value.replace(' ', '%20') : null;
3258
3277
  })
3259
3278
  ], Bank.prototype, "logo", void 0);
3279
+ __decorate([
3280
+ classTransformer.Transform(function (_a) {
3281
+ var obj = _a.obj;
3282
+ return Object.values(BankPopularEnum).includes(obj.name);
3283
+ }),
3284
+ classTransformer.Expose()
3285
+ ], Bank.prototype, "isPopular", void 0);
3260
3286
 
3261
3287
  exports.BankConnectionStatusEnum = void 0;
3262
3288
  (function (BankConnectionStatusEnum) {
@@ -3417,16 +3443,151 @@
3417
3443
  classTransformer.Type(function () { return BankConnection; })
3418
3444
  ], BankAccount.prototype, "bankConnection", void 0);
3419
3445
 
3446
+ var TYPE_LOAN = [
3447
+ exports.BankAccountTypeEnum.MORTGAGE,
3448
+ exports.BankAccountTypeEnum.CREDIT_CARD,
3449
+ exports.BankAccountTypeEnum.LOAN
3450
+ ];
3451
+
3420
3452
  /**
3421
- * any event happened in the app, which needs to be handled somehow (distributed to other part of the app)
3453
+ * Collection of bank accounts.
3422
3454
  */
3423
- var AppEvent = /** @class */ (function () {
3424
- function AppEvent(type, payload) {
3425
- this.type = type;
3426
- this.payload = payload;
3455
+ var BankAccountCollection = /** @class */ (function (_super) {
3456
+ __extends(BankAccountCollection, _super);
3457
+ function BankAccountCollection() {
3458
+ return _super !== null && _super.apply(this, arguments) || this;
3427
3459
  }
3428
- return AppEvent;
3429
- }());
3460
+ /**
3461
+ * get list of bank accounts with passed types
3462
+ */
3463
+ BankAccountCollection.prototype.getByType = function (types, isExclude) {
3464
+ if (isExclude === void 0) { isExclude = false; }
3465
+ // get types always as array (if only one passed)
3466
+ var typesArray = concat__default["default"](types);
3467
+ return this.items.filter(function (bankAccount) {
3468
+ if (isExclude) {
3469
+ return !typesArray.includes(bankAccount.type);
3470
+ }
3471
+ return typesArray.includes(bankAccount.type);
3472
+ });
3473
+ };
3474
+ /**
3475
+ * get amount of initial loans
3476
+ */
3477
+ BankAccountCollection.prototype.getInitialLoanAmount = function () {
3478
+ return this.getByType(TYPE_LOAN)
3479
+ .reduce(function (sum, bankAccount) {
3480
+ return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
3481
+ }, 0);
3482
+ };
3483
+ /**
3484
+ * get amount of current loans
3485
+ */
3486
+ BankAccountCollection.prototype.getCurrentLoanAmount = function () {
3487
+ return this.getByType(TYPE_LOAN)
3488
+ .reduce(function (sum, bankAccount) {
3489
+ return sum += bankAccount.currentBalance;
3490
+ }, 0);
3491
+ };
3492
+ /**
3493
+ * get collection filtered by property id
3494
+ */
3495
+ BankAccountCollection.prototype.getByPropertyId = function (id) {
3496
+ return new BankAccountCollection(this.items.filter(function (bankAccount) {
3497
+ return bankAccount.bankAccountProperties.find(function (bankAccountProperty) {
3498
+ return bankAccountProperty.property.id === id;
3499
+ });
3500
+ }));
3501
+ };
3502
+ /**
3503
+ * get collection filtered by properties ids
3504
+ */
3505
+ BankAccountCollection.prototype.getByPropertiesIds = function (ids) {
3506
+ return new BankAccountCollection(this.items.filter(function (bankAccount) {
3507
+ return bankAccount.bankAccountProperties.find(function (bankAccountProperty) {
3508
+ return ids.includes(bankAccountProperty.property.id);
3509
+ });
3510
+ }));
3511
+ };
3512
+ /**
3513
+ * get collection of active bank accounts
3514
+ */
3515
+ BankAccountCollection.prototype.getActiveBankAccounts = function () {
3516
+ return new BankAccountCollection(this.items.filter(function (bankAccount) {
3517
+ return bankAccount.isActive();
3518
+ }));
3519
+ };
3520
+ /**
3521
+ * get reduction of loan (reduction of principle) percentage
3522
+ */
3523
+ BankAccountCollection.prototype.getPrincipleReductionPercent = function () {
3524
+ var initialLoans = this.getInitialLoanAmount();
3525
+ var currentLoans = this.getCurrentLoanAmount();
3526
+ if (!initialLoans) {
3527
+ return 0;
3528
+ }
3529
+ return (initialLoans - currentLoans) / initialLoans * 100;
3530
+ };
3531
+ /**
3532
+ * Get collection of loan bank accounts
3533
+ */
3534
+ BankAccountCollection.prototype.getLoanAccounts = function () {
3535
+ return new BankAccountCollection(this.getByType(TYPE_LOAN));
3536
+ };
3537
+ BankAccountCollection.prototype.getSavingsAccounts = function () {
3538
+ return new BankAccountCollection(this.getByType(TYPE_LOAN, true));
3539
+ };
3540
+ BankAccountCollection.prototype.getOpeningBalance = function () {
3541
+ return this.items.reduce(function (sum, bankAccount) { return sum + bankAccount.getOpeningBalance(); }, 0);
3542
+ };
3543
+ Object.defineProperty(BankAccountCollection.prototype, "currentBalance", {
3544
+ get: function () {
3545
+ return this.sumBy('currentBalance');
3546
+ },
3547
+ enumerable: false,
3548
+ configurable: true
3549
+ });
3550
+ /**
3551
+ * Get Collection of bank accounts with property tank type
3552
+ */
3553
+ BankAccountCollection.prototype.getPropertyBankAccounts = function () {
3554
+ return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.isPropertyTank(); }));
3555
+ };
3556
+ /**
3557
+ * Get Collection of bank accounts with work tank type
3558
+ */
3559
+ BankAccountCollection.prototype.getWorkBankAccounts = function () {
3560
+ return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.isWorkTank(); }));
3561
+ };
3562
+ /**
3563
+ * Get Collection of bank accounts by tank type
3564
+ */
3565
+ BankAccountCollection.prototype.getByTankType = function (tankType) {
3566
+ return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.tankType === tankType; }));
3567
+ };
3568
+ /**
3569
+ * Get list of all bank account properties
3570
+ */
3571
+ BankAccountCollection.prototype.getBankAccountPropertiesList = function () {
3572
+ return flatten__default["default"](this.items.map(function (bankAccount) {
3573
+ return bankAccount.bankAccountProperties;
3574
+ }));
3575
+ };
3576
+ /**
3577
+ * Get lis of unique properties from all bank accounts properties
3578
+ */
3579
+ BankAccountCollection.prototype.getProperties = function () {
3580
+ return uniqBy__default["default"](this.getBankAccountPropertiesList().map(function (bankAccountProperty) {
3581
+ return bankAccountProperty.property;
3582
+ }), 'id');
3583
+ };
3584
+ BankAccountCollection.prototype.getPropertyBalanceAmount = function (propertyId) {
3585
+ return this.items.reduce(function (sum, bankAccount) {
3586
+ return sum + bankAccount.getPropertyBalanceAmount(propertyId);
3587
+ }, 0);
3588
+ };
3589
+ return BankAccountCollection;
3590
+ }(Collection));
3430
3591
 
3431
3592
  /**
3432
3593
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
@@ -3442,16 +3603,26 @@
3442
3603
  }
3443
3604
  BankConnectionService.prototype.listenEvents = function () {
3444
3605
  this.listenToAddedBankAccounts();
3445
- this.listenBasiqJobCreated();
3446
- this.listenConnectionUpdated();
3447
3606
  this.listenNotifications();
3448
3607
  };
3449
3608
  BankConnectionService.prototype.add = function (bankConnection) {
3450
3609
  var _this = this;
3451
3610
  return this.http.post(this.environment.apiV2 + "/" + this.url, bankConnection)
3452
3611
  .pipe(operators.map(function (bankConnectionBase) {
3453
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.BANK_CONNECTION_ADDED, null));
3454
- return classTransformer.plainToClass(BankConnection, bankConnectionBase);
3612
+ var connection = classTransformer.plainToClass(BankConnection, bankConnectionBase);
3613
+ // We use this endpoint for create and reconnect bank connections because of basiq logic.
3614
+ // So we try to replace bank connection in cache for reconnection case.
3615
+ if (bankConnection.id) {
3616
+ var tempCache = cloneDeep__default["default"](_this.cache);
3617
+ replace(tempCache, connection);
3618
+ _this.cache = cloneDeep__default["default"](tempCache);
3619
+ _this.cacheSubject.next(tempCache);
3620
+ }
3621
+ else {
3622
+ _this.cache.push(connection);
3623
+ _this.cacheSubject.next(cloneDeep__default["default"](_this.cache));
3624
+ }
3625
+ return classTransformer.plainToClass(BankConnection, connection);
3455
3626
  }));
3456
3627
  };
3457
3628
  BankConnectionService.prototype.listenToAddedBankAccounts = function () {
@@ -3460,47 +3631,6 @@
3460
3631
  _this.resetCache();
3461
3632
  });
3462
3633
  };
3463
- /**
3464
- * When user log in to bank, basiq create a job. We create a bank connection with based on this job
3465
- */
3466
- BankConnectionService.prototype.listenBasiqJobCreated = function () {
3467
- var _this = this;
3468
- this.eventDispatcherService.on(exports.AppEventTypeEnum.BASIQ_JOB_CREATED).subscribe(function (result) {
3469
- // push connection to cache temporary to show it to user directly with pending status and not wait until backend loaded
3470
- var tempCache = cloneDeep__default["default"](_this.cache);
3471
- result.connection.setPending();
3472
- tempCache.push(result.connection);
3473
- _this.cache = tempCache;
3474
- _this.cacheSubject.next(tempCache);
3475
- _this.add(classTransformer.plainToClass(BankConnection, { basiqJob: { externalId: result.jobId } })).subscribe(function (newConnection) {
3476
- // replace temporary connection with real saved connection
3477
- // no replace() because connection does not have id yet
3478
- tempCache.splice(-1, 1, newConnection);
3479
- _this.cache = cloneDeep__default["default"](tempCache);
3480
- _this.cacheSubject.next(tempCache);
3481
- });
3482
- });
3483
- };
3484
- /**
3485
- * When basiq connection disconnected we create a basiq job and update this connection
3486
- */
3487
- BankConnectionService.prototype.listenConnectionUpdated = function () {
3488
- var _this = this;
3489
- this.eventDispatcherService.on(exports.AppEventTypeEnum.BASIQ_CONNECTION_UPDATED).subscribe(function (result) {
3490
- // replace connection to cache temporary to show pending status until backend loaded
3491
- var tempCache = cloneDeep__default["default"](_this.cache);
3492
- result.connection.setPending();
3493
- replace(tempCache, result.connection);
3494
- _this.cache = tempCache;
3495
- _this.cacheSubject.next(tempCache);
3496
- _this.add(classTransformer.plainToClass(BankConnection, { basiqJob: { externalId: result.jobId } })).subscribe(function (updatedConnection) {
3497
- // replace temporary connection again with real updated connection
3498
- replace(tempCache, updatedConnection);
3499
- _this.cache = cloneDeep__default["default"](tempCache);
3500
- _this.cacheSubject.next(tempCache);
3501
- });
3502
- });
3503
- };
3504
3634
  /**
3505
3635
  * Update cache when basiq login failed to get actual connections statuses
3506
3636
  */
@@ -3514,9 +3644,9 @@
3514
3644
  };
3515
3645
  return BankConnectionService;
3516
3646
  }(RestService));
3517
- BankConnectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankConnectionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
3518
- BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
3519
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
3647
+ BankConnectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
3648
+ BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
3649
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
3520
3650
  type: i0.Injectable,
3521
3651
  args: [{
3522
3652
  providedIn: 'root'
@@ -3529,9 +3659,7 @@
3529
3659
  */
3530
3660
  var BasiqService = /** @class */ (function (_super) {
3531
3661
  __extends(BasiqService, _super);
3532
- function BasiqService(http, eventDispatcherService, environment, toastService,
3533
- // init BankConnectionService to listen events
3534
- bankConnectionService) {
3662
+ function BasiqService(http, eventDispatcherService, environment, toastService, bankConnectionService) {
3535
3663
  var _this = _super.call(this, http, eventDispatcherService, environment, toastService) || this;
3536
3664
  _this.http = http;
3537
3665
  _this.eventDispatcherService = eventDispatcherService;
@@ -3549,23 +3677,60 @@
3549
3677
  this.listenNotifications();
3550
3678
  };
3551
3679
  /**
3552
- * Create Basiq job for the new bank connection creation
3680
+ * Create a new Bank connection based on Basiq job.
3681
+ * Here we have nested requests because we need to get a job id before we create a bank connection.
3682
+ * There is no way to use event dispatcher because we expect some errors from bank-connections API, but in components
3683
+ * we interact with basiq service.
3553
3684
  */
3554
- BasiqService.prototype.createConnection = function (data, userId, connection) {
3685
+ BasiqService.prototype.createConnection = function (loginData, userId) {
3555
3686
  var _this = this;
3556
- return this.http.post(BasiqService.basiqApiUrl + "/users/" + userId + "/connections", data).pipe(operators.map(function (response) {
3557
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.BASIQ_JOB_CREATED, { jobId: response.id, connection: connection }));
3558
- return response.id;
3687
+ // Send login data to basiq API to create a basiq job
3688
+ return this.http.post(BasiqService.basiqApiUrl + "/users/" + userId + "/connections", loginData)
3689
+ .pipe(operators.mergeMap(function (response) {
3690
+ // Create bank connection based on basiq job
3691
+ return _this.bankConnectionService.add(classTransformer.plainToClass(BankConnection, { basiqJob: { externalId: response.id } }));
3692
+ }), operators.catchError(function (error) {
3693
+ // Show error when user provided wrong login data
3694
+ if (error.status === 401) {
3695
+ _this.toastService.error('Invalid credentials');
3696
+ }
3697
+ return throwError.throwError(error);
3559
3698
  }));
3560
3699
  };
3561
3700
  /**
3562
3701
  * Update disconnected bank connection
3702
+ * Here we have nested requests because we need to get a job id before we create a bank connection.
3703
+ * There is no way to use event dispatcher because we expect some errors from bank-connections API, but in components
3704
+ * we interact with basiq service.
3563
3705
  */
3564
3706
  BasiqService.prototype.updateConnection = function (data, userId, connection) {
3565
3707
  var _this = this;
3566
- return this.http.post(BasiqService.basiqApiUrl + "/users/" + userId + "/connections", Object.assign(data, { id: connection.externalId })).pipe(operators.map(function (response) {
3567
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.BASIQ_CONNECTION_UPDATED, { jobId: response.id, connection: connection }));
3568
- return response.id;
3708
+ // Send login data to basiq API to create a basiq job
3709
+ return this.http.post(BasiqService.basiqApiUrl + "/users/" + userId + "/connections", Object.assign(data, { id: connection.externalId }))
3710
+ .pipe(
3711
+ // Create bank connection based on basiq job
3712
+ operators.mergeMap(function (response) {
3713
+ return _this.bankConnectionService.add(classTransformer.plainToClass(BankConnection, Object.assign({ id: connection.id, basiqJob: { externalId: response.id } })));
3714
+ }), operators.catchError(function (error) {
3715
+ // Show error when user provided wrong login data
3716
+ if (error.status === 401) {
3717
+ _this.toastService.error('Invalid credentials');
3718
+ }
3719
+ // Show error when user provided another login (not login he used before)
3720
+ if (error.status === 400) {
3721
+ _this.toastService.error('Please enter the login you used before');
3722
+ }
3723
+ return throwError.throwError(error);
3724
+ }));
3725
+ };
3726
+ BasiqService.prototype.getByConnection = function (connection) {
3727
+ return this.get().pipe(operators.map(function (bankAccounts) {
3728
+ return new BankAccountCollection(bankAccounts).filterBy('bankConnection.id', connection.id);
3729
+ }));
3730
+ };
3731
+ BasiqService.prototype.getNotImportedByConnection = function (savedAccounts, connection) {
3732
+ return this.getByConnection(connection).pipe(operators.map(function (bankAccounts) {
3733
+ return bankAccounts.removeBy('accountId', savedAccounts.mapBy('accountId'));
3569
3734
  }));
3570
3735
  };
3571
3736
  /**
@@ -3582,9 +3747,9 @@
3582
3747
  return BasiqService;
3583
3748
  }(RestService));
3584
3749
  BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
3585
- BasiqService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3586
- BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
3587
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqService, decorators: [{
3750
+ BasiqService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3751
+ BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
3752
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, decorators: [{
3588
3753
  type: i0.Injectable,
3589
3754
  args: [{
3590
3755
  providedIn: 'root'
@@ -3636,9 +3801,9 @@
3636
3801
  };
3637
3802
  return BasiqTokenService;
3638
3803
  }());
3639
- BasiqTokenService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3640
- BasiqTokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenService, providedIn: 'root' });
3641
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenService, decorators: [{
3804
+ BasiqTokenService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3805
+ BasiqTokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenService, providedIn: 'root' });
3806
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenService, decorators: [{
3642
3807
  type: i0.Injectable,
3643
3808
  args: [{
3644
3809
  providedIn: 'root'
@@ -3676,9 +3841,9 @@
3676
3841
  };
3677
3842
  return BasiqInterceptor;
3678
3843
  }());
3679
- BasiqInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqInterceptor, deps: [{ token: BasiqTokenService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3680
- BasiqInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqInterceptor });
3681
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqInterceptor, decorators: [{
3844
+ BasiqInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqInterceptor, deps: [{ token: BasiqTokenService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3845
+ BasiqInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqInterceptor });
3846
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqInterceptor, decorators: [{
3682
3847
  type: i0.Injectable
3683
3848
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
3684
3849
 
@@ -3687,9 +3852,9 @@
3687
3852
  }
3688
3853
  return InterceptorsModule;
3689
3854
  }());
3690
- InterceptorsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3691
- InterceptorsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule });
3692
- InterceptorsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, providers: [
3855
+ InterceptorsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3856
+ InterceptorsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule });
3857
+ InterceptorsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, providers: [
3693
3858
  {
3694
3859
  provide: i1.HTTP_INTERCEPTORS,
3695
3860
  useClass: CorelogicInterceptor,
@@ -3722,254 +3887,91 @@
3722
3887
  multi: true
3723
3888
  }
3724
3889
  ] });
3725
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, decorators: [{
3890
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, decorators: [{
3726
3891
  type: i0.NgModule,
3727
3892
  args: [{
3728
3893
  providers: [
3729
3894
  {
3730
3895
  provide: i1.HTTP_INTERCEPTORS,
3731
3896
  useClass: CorelogicInterceptor,
3732
- multi: true
3733
- },
3734
- // @TODO move to user module
3735
- {
3736
- provide: i1.HTTP_INTERCEPTORS,
3737
- useClass: FinancialYearInterceptor,
3738
- multi: true
3739
- },
3740
- {
3741
- provide: i1.HTTP_INTERCEPTORS,
3742
- useClass: JwtInterceptor,
3743
- multi: true
3744
- },
3745
- {
3746
- provide: i1.HTTP_INTERCEPTORS,
3747
- useClass: UserSwitcherInterceptor,
3748
- multi: true
3749
- },
3750
- {
3751
- provide: i1.HTTP_INTERCEPTORS,
3752
- useClass: PreloaderInterceptor,
3753
- multi: true
3754
- },
3755
- {
3756
- provide: i1.HTTP_INTERCEPTORS,
3757
- useClass: BasiqInterceptor,
3758
- multi: true
3759
- }
3760
- ]
3761
- }]
3762
- }] });
3763
-
3764
- var TtCoreModule = /** @class */ (function () {
3765
- function TtCoreModule() {
3766
- }
3767
- TtCoreModule.forRoot = function (environment) {
3768
- localStorage.setItem('api_uri', environment['api_uri']);
3769
- return {
3770
- ngModule: TtCoreModule,
3771
- providers: [
3772
- {
3773
- provide: 'environment',
3774
- useValue: environment
3775
- }
3776
- ]
3777
- };
3778
- };
3779
- return TtCoreModule;
3780
- }());
3781
- TtCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3782
- TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, imports: [i1$1.CommonModule,
3783
- InterceptorsModule] });
3784
- TtCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, imports: [[
3785
- i1$1.CommonModule,
3786
- InterceptorsModule
3787
- ]] });
3788
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, decorators: [{
3789
- type: i0.NgModule,
3790
- args: [{
3791
- declarations: [],
3792
- imports: [
3793
- i1$1.CommonModule,
3794
- InterceptorsModule
3795
- ]
3796
- }]
3797
- }] });
3798
-
3799
- var AccountSetupItemCollection = /** @class */ (function (_super) {
3800
- __extends(AccountSetupItemCollection, _super);
3801
- function AccountSetupItemCollection(items) {
3802
- var _this = _super.call(this, compact__default["default"](items)) || this;
3803
- _this.sortBy('isCompleted', false);
3804
- return _this;
3805
- }
3806
- AccountSetupItemCollection.prototype.isCompleted = function () {
3807
- return this.filterBy('isCompleted', true).length === this.length;
3808
- };
3809
- return AccountSetupItemCollection;
3810
- }(Collection));
3811
-
3812
- var BankCollection = /** @class */ (function (_super) {
3813
- __extends(BankCollection, _super);
3814
- function BankCollection(banks) {
3815
- var _this = _super.call(this, banks) || this;
3816
- _this.sortByPopularity();
3817
- return _this;
3818
- }
3819
- BankCollection.prototype.sortByPopularity = function () {
3820
- this.items.sort(function (bank1, bank2) {
3821
- // Banks already sorted on backend by name, so we just need to up top-10 banks
3822
- return (BankCollection.tobBanksIds.includes(bank1.id) && !BankCollection.tobBanksIds.includes(bank2.id)) ? -1 : 1;
3823
- });
3824
- };
3825
- return BankCollection;
3826
- }(Collection));
3827
- BankCollection.tobBanksIds = [124, 13, 134, 172, 126, 142, 135, 137, 138, 128];
3828
-
3829
- var TYPE_LOAN = [
3830
- exports.BankAccountTypeEnum.MORTGAGE,
3831
- exports.BankAccountTypeEnum.CREDIT_CARD,
3832
- exports.BankAccountTypeEnum.LOAN
3833
- ];
3834
-
3835
- /**
3836
- * Collection of bank accounts.
3837
- */
3838
- var BankAccountCollection = /** @class */ (function (_super) {
3839
- __extends(BankAccountCollection, _super);
3840
- function BankAccountCollection() {
3841
- return _super !== null && _super.apply(this, arguments) || this;
3842
- }
3843
- /**
3844
- * get list of bank accounts with passed types
3845
- */
3846
- BankAccountCollection.prototype.getByType = function (types, isExclude) {
3847
- if (isExclude === void 0) { isExclude = false; }
3848
- // get types always as array (if only one passed)
3849
- var typesArray = concat__default["default"](types);
3850
- return this.items.filter(function (bankAccount) {
3851
- if (isExclude) {
3852
- return !typesArray.includes(bankAccount.type);
3853
- }
3854
- return typesArray.includes(bankAccount.type);
3855
- });
3856
- };
3857
- /**
3858
- * get amount of initial loans
3859
- */
3860
- BankAccountCollection.prototype.getInitialLoanAmount = function () {
3861
- return this.getByType(TYPE_LOAN)
3862
- .reduce(function (sum, bankAccount) {
3863
- return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
3864
- }, 0);
3865
- };
3866
- /**
3867
- * get amount of current loans
3868
- */
3869
- BankAccountCollection.prototype.getCurrentLoanAmount = function () {
3870
- return this.getByType(TYPE_LOAN)
3871
- .reduce(function (sum, bankAccount) {
3872
- return sum += bankAccount.currentBalance;
3873
- }, 0);
3874
- };
3875
- /**
3876
- * get collection filtered by property id
3877
- */
3878
- BankAccountCollection.prototype.getByPropertyId = function (id) {
3879
- return new BankAccountCollection(this.items.filter(function (bankAccount) {
3880
- return bankAccount.bankAccountProperties.find(function (bankAccountProperty) {
3881
- return bankAccountProperty.property.id === id;
3882
- });
3883
- }));
3884
- };
3885
- /**
3886
- * get collection filtered by properties ids
3887
- */
3888
- BankAccountCollection.prototype.getByPropertiesIds = function (ids) {
3889
- return new BankAccountCollection(this.items.filter(function (bankAccount) {
3890
- return bankAccount.bankAccountProperties.find(function (bankAccountProperty) {
3891
- return ids.includes(bankAccountProperty.property.id);
3892
- });
3893
- }));
3894
- };
3895
- /**
3896
- * get collection of active bank accounts
3897
- */
3898
- BankAccountCollection.prototype.getActiveBankAccounts = function () {
3899
- return new BankAccountCollection(this.items.filter(function (bankAccount) {
3900
- return bankAccount.isActive();
3901
- }));
3902
- };
3903
- /**
3904
- * get reduction of loan (reduction of principle) percentage
3905
- */
3906
- BankAccountCollection.prototype.getPrincipleReductionPercent = function () {
3907
- var initialLoans = this.getInitialLoanAmount();
3908
- var currentLoans = this.getCurrentLoanAmount();
3909
- if (!initialLoans) {
3910
- return 0;
3911
- }
3912
- return (initialLoans - currentLoans) / initialLoans * 100;
3913
- };
3914
- /**
3915
- * Get collection of loan bank accounts
3916
- */
3917
- BankAccountCollection.prototype.getLoanAccounts = function () {
3918
- return new BankAccountCollection(this.getByType(TYPE_LOAN));
3919
- };
3920
- BankAccountCollection.prototype.getSavingsAccounts = function () {
3921
- return new BankAccountCollection(this.getByType(TYPE_LOAN, true));
3922
- };
3923
- BankAccountCollection.prototype.getOpeningBalance = function () {
3924
- return this.items.reduce(function (sum, bankAccount) { return sum + bankAccount.getOpeningBalance(); }, 0);
3925
- };
3926
- Object.defineProperty(BankAccountCollection.prototype, "currentBalance", {
3927
- get: function () {
3928
- return this.sumBy('currentBalance');
3929
- },
3930
- enumerable: false,
3931
- configurable: true
3932
- });
3933
- /**
3934
- * Get Collection of bank accounts with property tank type
3935
- */
3936
- BankAccountCollection.prototype.getPropertyBankAccounts = function () {
3937
- return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.isPropertyTank(); }));
3938
- };
3939
- /**
3940
- * Get Collection of bank accounts with work tank type
3941
- */
3942
- BankAccountCollection.prototype.getWorkBankAccounts = function () {
3943
- return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.isWorkTank(); }));
3944
- };
3945
- /**
3946
- * Get Collection of bank accounts by tank type
3947
- */
3948
- BankAccountCollection.prototype.getByTankType = function (tankType) {
3949
- return new BankAccountCollection(this.items.filter(function (bankAccount) { return bankAccount.tankType === tankType; }));
3950
- };
3951
- /**
3952
- * Get list of all bank account properties
3953
- */
3954
- BankAccountCollection.prototype.getBankAccountPropertiesList = function () {
3955
- return flatten__default["default"](this.items.map(function (bankAccount) {
3956
- return bankAccount.bankAccountProperties;
3957
- }));
3958
- };
3959
- /**
3960
- * Get lis of unique properties from all bank accounts properties
3961
- */
3962
- BankAccountCollection.prototype.getProperties = function () {
3963
- return uniqBy__default["default"](this.getBankAccountPropertiesList().map(function (bankAccountProperty) {
3964
- return bankAccountProperty.property;
3965
- }), 'id');
3897
+ multi: true
3898
+ },
3899
+ // @TODO move to user module
3900
+ {
3901
+ provide: i1.HTTP_INTERCEPTORS,
3902
+ useClass: FinancialYearInterceptor,
3903
+ multi: true
3904
+ },
3905
+ {
3906
+ provide: i1.HTTP_INTERCEPTORS,
3907
+ useClass: JwtInterceptor,
3908
+ multi: true
3909
+ },
3910
+ {
3911
+ provide: i1.HTTP_INTERCEPTORS,
3912
+ useClass: UserSwitcherInterceptor,
3913
+ multi: true
3914
+ },
3915
+ {
3916
+ provide: i1.HTTP_INTERCEPTORS,
3917
+ useClass: PreloaderInterceptor,
3918
+ multi: true
3919
+ },
3920
+ {
3921
+ provide: i1.HTTP_INTERCEPTORS,
3922
+ useClass: BasiqInterceptor,
3923
+ multi: true
3924
+ }
3925
+ ]
3926
+ }]
3927
+ }] });
3928
+
3929
+ var TtCoreModule = /** @class */ (function () {
3930
+ function TtCoreModule() {
3931
+ }
3932
+ TtCoreModule.forRoot = function (environment) {
3933
+ localStorage.setItem('api_uri', environment['api_uri']);
3934
+ return {
3935
+ ngModule: TtCoreModule,
3936
+ providers: [
3937
+ {
3938
+ provide: 'environment',
3939
+ useValue: environment
3940
+ }
3941
+ ]
3942
+ };
3966
3943
  };
3967
- BankAccountCollection.prototype.getPropertyBalanceAmount = function (propertyId) {
3968
- return this.items.reduce(function (sum, bankAccount) {
3969
- return sum + bankAccount.getPropertyBalanceAmount(propertyId);
3970
- }, 0);
3944
+ return TtCoreModule;
3945
+ }());
3946
+ TtCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3947
+ TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [i1$1.CommonModule,
3948
+ InterceptorsModule] });
3949
+ TtCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [[
3950
+ i1$1.CommonModule,
3951
+ InterceptorsModule
3952
+ ]] });
3953
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, decorators: [{
3954
+ type: i0.NgModule,
3955
+ args: [{
3956
+ declarations: [],
3957
+ imports: [
3958
+ i1$1.CommonModule,
3959
+ InterceptorsModule
3960
+ ]
3961
+ }]
3962
+ }] });
3963
+
3964
+ var AccountSetupItemCollection = /** @class */ (function (_super) {
3965
+ __extends(AccountSetupItemCollection, _super);
3966
+ function AccountSetupItemCollection(items) {
3967
+ var _this = _super.call(this, compact__default["default"](items)) || this;
3968
+ _this.sortBy('isCompleted', false);
3969
+ return _this;
3970
+ }
3971
+ AccountSetupItemCollection.prototype.isCompleted = function () {
3972
+ return this.filterBy('isCompleted', true).length === this.length;
3971
3973
  };
3972
- return BankAccountCollection;
3974
+ return AccountSetupItemCollection;
3973
3975
  }(Collection));
3974
3976
 
3975
3977
  exports.TransactionOperationEnum = void 0;
@@ -4908,13 +4910,32 @@
4908
4910
  * Get property with the lowest tax position
4909
4911
  */
4910
4912
  PropertyCollection.prototype.getBestPerformanceTaxProperty = function (transactions, depreciations) {
4913
+ var transactionsByProperty = transactions.groupBy('property.id');
4914
+ var depreciationsByProperty = depreciations.groupBy('property.id');
4911
4915
  return this.items.reduce(function (min, current) {
4912
- return min.getTaxPosition(transactions.filterBy('property.id', min.id), depreciations.filterBy('property.id', min.id))
4913
- > current.getTaxPosition(transactions.filterBy('property.id', current.id), depreciations.filterBy('property.id', current.id))
4914
- ? current
4915
- : min;
4916
+ var minTaxPosition = min.getTaxPosition(transactionsByProperty.get(min.id), depreciationsByProperty.get(min.id));
4917
+ var currentTaxPosition = current.getTaxPosition(transactionsByProperty.get(current.id), depreciationsByProperty.get(current.id));
4918
+ return minTaxPosition > currentTaxPosition ? current : min;
4916
4919
  }, this.first);
4917
4920
  };
4921
+ /**
4922
+ * Show best performance properties first
4923
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
4924
+ */
4925
+ PropertyCollection.prototype.sortByBestPerformance = function (transactions, depreciations) {
4926
+ var activeProperties = this.getActiveProperties();
4927
+ // nothing to sort when no active properties
4928
+ if (!activeProperties.length) {
4929
+ return this;
4930
+ }
4931
+ var bestProperties = uniqBy__default["default"](this.create([
4932
+ activeProperties.getBestPerformanceGrowthProperty(),
4933
+ activeProperties.getBestPerformanceTaxProperty(transactions, depreciations)
4934
+ ]).toArray(), 'id');
4935
+ var newItems = this.remove(bestProperties).toArray();
4936
+ newItems.unshift.apply(newItems, __spreadArray([], __read(bestProperties)));
4937
+ return this.create(newItems);
4938
+ };
4918
4939
  return PropertyCollection;
4919
4940
  }(Collection));
4920
4941
 
@@ -7514,6 +7535,29 @@
7514
7535
  return AccountSetupItem;
7515
7536
  }(AbstractModel));
7516
7537
 
7538
+ exports.BadgeColorEnum = void 0;
7539
+ (function (BadgeColorEnum) {
7540
+ BadgeColorEnum["DEFAULT"] = "default";
7541
+ BadgeColorEnum["GREEN"] = "green";
7542
+ BadgeColorEnum["GOLD"] = "gold";
7543
+ BadgeColorEnum["GRAY"] = "gray";
7544
+ })(exports.BadgeColorEnum || (exports.BadgeColorEnum = {}));
7545
+
7546
+ /**
7547
+ * Class for UI element badge
7548
+ */
7549
+ var Badge = /** @class */ (function (_super) {
7550
+ __extends(Badge, _super);
7551
+ function Badge(text, color) {
7552
+ var _this = _super.call(this) || this;
7553
+ _this.text = '';
7554
+ _this.text = text;
7555
+ _this.color = color || exports.BadgeColorEnum.DEFAULT;
7556
+ return _this;
7557
+ }
7558
+ return Badge;
7559
+ }(AbstractModel));
7560
+
7517
7561
  /**
7518
7562
  * bank account collection UI class with frontend specific data
7519
7563
  */
@@ -8222,6 +8266,42 @@
8222
8266
  AlphabetColorsEnum["Z"] = "#E3C9CE";
8223
8267
  })(exports.AlphabetColorsEnum || (exports.AlphabetColorsEnum = {}));
8224
8268
 
8269
+ /**
8270
+ * List of objects grouped by passed property
8271
+ */
8272
+ var Dictionary = /** @class */ (function () {
8273
+ function Dictionary(items, path) {
8274
+ if (path === void 0) { path = 'id'; }
8275
+ this.items = {};
8276
+ if (!items.length) {
8277
+ return;
8278
+ }
8279
+ // Do nothing if provided path was not found in the 1st item
8280
+ if (!hasIn__default["default"](items[0], path.split('.')[0])) {
8281
+ return;
8282
+ }
8283
+ this.groupItems(items, path);
8284
+ }
8285
+ Dictionary.prototype.add = function (key, value) {
8286
+ this.items[key] = value;
8287
+ };
8288
+ Dictionary.prototype.get = function (key) {
8289
+ return this.items[key] ? this.items[key] : null;
8290
+ };
8291
+ Dictionary.prototype.groupItems = function (items, path) {
8292
+ var _this = this;
8293
+ items.forEach(function (item) {
8294
+ var key = get__default["default"](item, path);
8295
+ // if object does not have property for grouping it will be grouped as 'other'
8296
+ if (key === undefined) {
8297
+ key = 'other';
8298
+ }
8299
+ _this.items[key] = item;
8300
+ });
8301
+ };
8302
+ return Dictionary;
8303
+ }());
8304
+
8225
8305
  exports.DepreciationGroupEnum = void 0;
8226
8306
  (function (DepreciationGroupEnum) {
8227
8307
  DepreciationGroupEnum[DepreciationGroupEnum["BUILDING_IMPROVEMENTS"] = 0] = "BUILDING_IMPROVEMENTS";
@@ -8415,6 +8495,17 @@
8415
8495
  classTransformer.Type(function () { return User; })
8416
8496
  ], EmployeeInvite.prototype, "employee", void 0);
8417
8497
 
8498
+ /**
8499
+ * any event happened in the app, which needs to be handled somehow (distributed to other part of the app)
8500
+ */
8501
+ var AppEvent = /** @class */ (function () {
8502
+ function AppEvent(type, payload) {
8503
+ this.type = type;
8504
+ this.payload = payload;
8505
+ }
8506
+ return AppEvent;
8507
+ }());
8508
+
8418
8509
  exports.ExportFormatEnum = void 0;
8419
8510
  (function (ExportFormatEnum) {
8420
8511
  ExportFormatEnum["PDF"] = "PDF";
@@ -10153,9 +10244,9 @@
10153
10244
  };
10154
10245
  return ClientIncomeTypesService;
10155
10246
  }());
10156
- ClientIncomeTypesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientIncomeTypesService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10157
- ClientIncomeTypesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientIncomeTypesService, providedIn: 'root' });
10158
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientIncomeTypesService, decorators: [{
10247
+ ClientIncomeTypesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
10248
+ ClientIncomeTypesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, providedIn: 'root' });
10249
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, decorators: [{
10159
10250
  type: i0.Injectable,
10160
10251
  args: [{
10161
10252
  providedIn: 'root'
@@ -10267,9 +10358,9 @@
10267
10358
  };
10268
10359
  return PropertyService;
10269
10360
  }(RestService));
10270
- PropertyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10271
- PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
10272
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyService, decorators: [{
10361
+ PropertyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10362
+ PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
10363
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, decorators: [{
10273
10364
  type: i0.Injectable,
10274
10365
  args: [{
10275
10366
  providedIn: 'root'
@@ -10364,9 +10455,9 @@
10364
10455
  };
10365
10456
  return IncomeSourceService;
10366
10457
  }(RestService));
10367
- IncomeSourceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10368
- IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
10369
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
10458
+ IncomeSourceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10459
+ IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
10460
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
10370
10461
  type: i0.Injectable,
10371
10462
  args: [{
10372
10463
  providedIn: 'root'
@@ -10454,6 +10545,11 @@
10454
10545
  return bankAccounts.filter(function (bankAccount) { return bankAccount.isOwner(+localStorage.getItem('userId')); });
10455
10546
  }));
10456
10547
  };
10548
+ BankAccountService.prototype.getByConnection = function (connection) {
10549
+ return this.get().pipe(operators.map(function (bankAccounts) {
10550
+ return new BankAccountCollection(bankAccounts).filterBy('bankConnection.id', connection.id);
10551
+ }));
10552
+ };
10457
10553
  /**
10458
10554
  * Listen to EventDispatcherService events
10459
10555
  */
@@ -10469,9 +10565,9 @@
10469
10565
  };
10470
10566
  return BankAccountService;
10471
10567
  }(RestService));
10472
- BankAccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10473
- BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
10474
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountService, decorators: [{
10568
+ BankAccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10569
+ BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
10570
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, decorators: [{
10475
10571
  type: i0.Injectable,
10476
10572
  args: [{
10477
10573
  providedIn: 'root'
@@ -10551,9 +10647,9 @@
10551
10647
  };
10552
10648
  return TransactionAllocationService;
10553
10649
  }(RestService));
10554
- TransactionAllocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionAllocationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10555
- TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
10556
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
10650
+ TransactionAllocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10651
+ TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
10652
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
10557
10653
  type: i0.Injectable,
10558
10654
  args: [{
10559
10655
  providedIn: 'root'
@@ -10586,9 +10682,9 @@
10586
10682
  }
10587
10683
  return VehicleClaimService;
10588
10684
  }(RestService));
10589
- VehicleClaimService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10590
- VehicleClaimService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimService, providedIn: 'root' });
10591
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimService, decorators: [{
10685
+ VehicleClaimService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10686
+ VehicleClaimService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, providedIn: 'root' });
10687
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, decorators: [{
10592
10688
  type: i0.Injectable,
10593
10689
  args: [{
10594
10690
  providedIn: 'root'
@@ -10923,9 +11019,9 @@
10923
11019
  };
10924
11020
  return TransactionService;
10925
11021
  }(RestService));
10926
- TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
10927
- TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
10928
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, decorators: [{
11022
+ TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11023
+ TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
11024
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, decorators: [{
10929
11025
  type: i0.Injectable,
10930
11026
  args: [{
10931
11027
  providedIn: 'root'
@@ -11061,9 +11157,9 @@
11061
11157
  };
11062
11158
  return AccountSetupService;
11063
11159
  }());
11064
- AccountSetupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11065
- AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
11066
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
11160
+ AccountSetupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11161
+ AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
11162
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
11067
11163
  type: i0.Injectable,
11068
11164
  args: [{
11069
11165
  providedIn: 'root'
@@ -11092,9 +11188,9 @@
11092
11188
  };
11093
11189
  return AddressService;
11094
11190
  }());
11095
- AddressService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AddressService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11096
- AddressService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AddressService, providedIn: 'root' });
11097
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AddressService, decorators: [{
11191
+ AddressService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11192
+ AddressService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, providedIn: 'root' });
11193
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, decorators: [{
11098
11194
  type: i0.Injectable,
11099
11195
  args: [{
11100
11196
  providedIn: 'root'
@@ -11142,9 +11238,9 @@
11142
11238
  };
11143
11239
  return AssetsService;
11144
11240
  }());
11145
- AssetsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AssetsService, deps: [{ token: i1__namespace.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11146
- AssetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AssetsService, providedIn: 'root' });
11147
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AssetsService, decorators: [{
11241
+ AssetsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, deps: [{ token: i1__namespace.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11242
+ AssetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, providedIn: 'root' });
11243
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, decorators: [{
11148
11244
  type: i0.Injectable,
11149
11245
  args: [{
11150
11246
  providedIn: 'root'
@@ -11168,11 +11264,17 @@
11168
11264
  _this.isHydra = true;
11169
11265
  return _this;
11170
11266
  }
11267
+ BankService.prototype.get = function () {
11268
+ return _super.prototype.get.call(this).pipe(operators.map(function (banks) {
11269
+ // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
11270
+ return banks.filter(function (bank) { return !bank.externalId || (bank.externalId && bank.loginFields); });
11271
+ }));
11272
+ };
11171
11273
  return BankService;
11172
11274
  }(RestService));
11173
- BankService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11174
- BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
11175
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankService, decorators: [{
11275
+ BankService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11276
+ BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
11277
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, decorators: [{
11176
11278
  type: i0.Injectable,
11177
11279
  args: [{
11178
11280
  providedIn: 'root'
@@ -11237,9 +11339,9 @@
11237
11339
  };
11238
11340
  return BankTransactionCalculationService;
11239
11341
  }());
11240
- BankTransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11241
- BankTransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, providedIn: 'root' });
11242
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, decorators: [{
11342
+ BankTransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11343
+ BankTransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, providedIn: 'root' });
11344
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, decorators: [{
11243
11345
  type: i0.Injectable,
11244
11346
  args: [{
11245
11347
  providedIn: 'root'
@@ -11265,9 +11367,9 @@
11265
11367
  };
11266
11368
  return BankAccountCalculationService;
11267
11369
  }());
11268
- BankAccountCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11269
- BankAccountCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountCalculationService, providedIn: 'root' });
11270
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountCalculationService, decorators: [{
11370
+ BankAccountCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11371
+ BankAccountCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, providedIn: 'root' });
11372
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, decorators: [{
11271
11373
  type: i0.Injectable,
11272
11374
  args: [{
11273
11375
  providedIn: 'root'
@@ -11342,9 +11444,9 @@
11342
11444
  };
11343
11445
  return BankTransactionService;
11344
11446
  }(RestService));
11345
- BankTransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11346
- BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
11347
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
11447
+ BankTransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11448
+ BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
11449
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
11348
11450
  type: i0.Injectable,
11349
11451
  args: [{
11350
11452
  providedIn: 'root'
@@ -11406,9 +11508,9 @@
11406
11508
  };
11407
11509
  return BorrowingExpenseService;
11408
11510
  }());
11409
- BorrowingExpenseService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BorrowingExpenseService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11410
- BorrowingExpenseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BorrowingExpenseService, providedIn: 'root' });
11411
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BorrowingExpenseService, decorators: [{
11511
+ BorrowingExpenseService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11512
+ BorrowingExpenseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, providedIn: 'root' });
11513
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, decorators: [{
11412
11514
  type: i0.Injectable,
11413
11515
  args: [{
11414
11516
  providedIn: 'root'
@@ -11491,9 +11593,9 @@
11491
11593
  };
11492
11594
  return ChartAccountsService;
11493
11595
  }());
11494
- ChartAccountsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11495
- ChartAccountsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsService, providedIn: 'root' });
11496
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsService, decorators: [{
11596
+ ChartAccountsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11597
+ ChartAccountsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, providedIn: 'root' });
11598
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, decorators: [{
11497
11599
  type: i0.Injectable,
11498
11600
  args: [{
11499
11601
  providedIn: 'root'
@@ -11531,9 +11633,9 @@
11531
11633
  };
11532
11634
  return ChartAccountsDepreciationService;
11533
11635
  }(RestService));
11534
- ChartAccountsDepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsDepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11535
- ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
11536
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
11636
+ ChartAccountsDepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11637
+ ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
11638
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
11537
11639
  type: i0.Injectable,
11538
11640
  args: [{
11539
11641
  providedIn: 'root'
@@ -11573,9 +11675,9 @@
11573
11675
  };
11574
11676
  return SseService;
11575
11677
  }());
11576
- SseService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SseService, deps: [{ token: i0__namespace.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11577
- SseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SseService, providedIn: 'root' });
11578
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SseService, decorators: [{
11678
+ SseService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SseService, deps: [{ token: i0__namespace.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11679
+ SseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SseService, providedIn: 'root' });
11680
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SseService, decorators: [{
11579
11681
  type: i0.Injectable,
11580
11682
  args: [{
11581
11683
  providedIn: 'root'
@@ -11656,9 +11758,9 @@
11656
11758
  };
11657
11759
  return ChatService;
11658
11760
  }(RestService));
11659
- ChatService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChatService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11660
- ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
11661
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChatService, decorators: [{
11761
+ ChatService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11762
+ ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
11763
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, decorators: [{
11662
11764
  type: i0.Injectable,
11663
11765
  args: [{
11664
11766
  providedIn: 'root'
@@ -11710,9 +11812,9 @@
11710
11812
  };
11711
11813
  return MessageService;
11712
11814
  }(RestService));
11713
- MessageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11714
- MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
11715
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageService, decorators: [{
11815
+ MessageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11816
+ MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
11817
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, decorators: [{
11716
11818
  type: i0.Injectable,
11717
11819
  args: [{
11718
11820
  providedIn: 'root'
@@ -11826,9 +11928,9 @@
11826
11928
  };
11827
11929
  return MessageDocumentService;
11828
11930
  }());
11829
- MessageDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageDocumentService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11830
- MessageDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageDocumentService, providedIn: 'root' });
11831
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageDocumentService, decorators: [{
11931
+ MessageDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11932
+ MessageDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, providedIn: 'root' });
11933
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, decorators: [{
11832
11934
  type: i0.Injectable,
11833
11935
  args: [{
11834
11936
  providedIn: 'root'
@@ -11930,9 +12032,9 @@
11930
12032
  };
11931
12033
  return ClientInviteService;
11932
12034
  }(RestService));
11933
- ClientInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
11934
- ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
11935
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
12035
+ ClientInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12036
+ ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
12037
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
11936
12038
  type: i0.Injectable,
11937
12039
  args: [{
11938
12040
  providedIn: 'root'
@@ -12016,9 +12118,9 @@
12016
12118
  };
12017
12119
  return ClientMovementService;
12018
12120
  }(RestService));
12019
- ClientMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12020
- ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
12021
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
12121
+ ClientMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12122
+ ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
12123
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
12022
12124
  type: i0.Injectable,
12023
12125
  args: [{
12024
12126
  providedIn: 'root'
@@ -12044,9 +12146,9 @@
12044
12146
  };
12045
12147
  return ClientPortfolioReportService;
12046
12148
  }());
12047
- ClientPortfolioReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientPortfolioReportService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12048
- ClientPortfolioReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientPortfolioReportService, providedIn: 'root' });
12049
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientPortfolioReportService, decorators: [{
12149
+ ClientPortfolioReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12150
+ ClientPortfolioReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, providedIn: 'root' });
12151
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, decorators: [{
12050
12152
  type: i0.Injectable,
12051
12153
  args: [{
12052
12154
  providedIn: 'root'
@@ -12105,9 +12207,9 @@
12105
12207
  };
12106
12208
  return DepreciationCapitalProjectService;
12107
12209
  }());
12108
- DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12109
- DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
12110
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
12210
+ DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12211
+ DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
12212
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
12111
12213
  type: i0.Injectable,
12112
12214
  args: [{
12113
12215
  providedIn: 'root'
@@ -12213,9 +12315,9 @@
12213
12315
  };
12214
12316
  return DepreciationService;
12215
12317
  }(RestService));
12216
- DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12217
- DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
12218
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, decorators: [{
12318
+ DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12319
+ DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
12320
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, decorators: [{
12219
12321
  type: i0.Injectable,
12220
12322
  args: [{
12221
12323
  providedIn: 'root'
@@ -12287,9 +12389,9 @@
12287
12389
  };
12288
12390
  return DocumentFolderService;
12289
12391
  }(RestService));
12290
- DocumentFolderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentFolderService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12291
- DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
12292
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
12392
+ DocumentFolderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12393
+ DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
12394
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
12293
12395
  type: i0.Injectable,
12294
12396
  args: [{
12295
12397
  providedIn: 'root'
@@ -12322,9 +12424,9 @@
12322
12424
  };
12323
12425
  return EmployeeService;
12324
12426
  }(RestService));
12325
- EmployeeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12326
- EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
12327
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeService, decorators: [{
12427
+ EmployeeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12428
+ EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
12429
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, decorators: [{
12328
12430
  type: i0.Injectable,
12329
12431
  args: [{
12330
12432
  providedIn: 'root'
@@ -12371,9 +12473,9 @@
12371
12473
  };
12372
12474
  return EmployeeInviteService;
12373
12475
  }(RestService));
12374
- EmployeeInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12375
- EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
12376
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
12476
+ EmployeeInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12477
+ EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
12478
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
12377
12479
  type: i0.Injectable,
12378
12480
  args: [{
12379
12481
  providedIn: 'root'
@@ -12444,9 +12546,9 @@
12444
12546
  };
12445
12547
  return FirmService;
12446
12548
  }());
12447
- FirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FirmService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12448
- FirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FirmService, providedIn: 'root' });
12449
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FirmService, decorators: [{
12549
+ FirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12550
+ FirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, providedIn: 'root' });
12551
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, decorators: [{
12450
12552
  type: i0.Injectable,
12451
12553
  args: [{
12452
12554
  providedIn: 'root'
@@ -12478,9 +12580,9 @@
12478
12580
  };
12479
12581
  return ExportFormatterService;
12480
12582
  }());
12481
- ExportFormatterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, deps: [{ token: i1__namespace$1.CurrencyPipe }, { token: i1__namespace$1.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12482
- ExportFormatterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, providedIn: 'root' });
12483
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, decorators: [{
12583
+ ExportFormatterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, deps: [{ token: i1__namespace$1.CurrencyPipe }, { token: i1__namespace$1.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12584
+ ExportFormatterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, providedIn: 'root' });
12585
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, decorators: [{
12484
12586
  type: i0.Injectable,
12485
12587
  args: [{
12486
12588
  providedIn: 'root'
@@ -12503,9 +12605,9 @@
12503
12605
  };
12504
12606
  return HeaderTitleService;
12505
12607
  }());
12506
- HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$2.Router }, { token: i1__namespace$2.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12507
- HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
12508
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, decorators: [{
12608
+ HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$2.Router }, { token: i1__namespace$2.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12609
+ HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
12610
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, decorators: [{
12509
12611
  type: i0.Injectable,
12510
12612
  args: [{
12511
12613
  providedIn: 'root'
@@ -12580,9 +12682,9 @@
12580
12682
  };
12581
12683
  return IncomeSourceForecastService;
12582
12684
  }(RestService));
12583
- IncomeSourceForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12584
- IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
12585
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
12685
+ IncomeSourceForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12686
+ IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
12687
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
12586
12688
  type: i0.Injectable,
12587
12689
  args: [{
12588
12690
  providedIn: 'root'
@@ -12657,9 +12759,9 @@
12657
12759
  };
12658
12760
  return SalaryForecastService;
12659
12761
  }(RestService));
12660
- SalaryForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalaryForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12661
- SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
12662
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
12762
+ SalaryForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12763
+ SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
12764
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
12663
12765
  type: i0.Injectable,
12664
12766
  args: [{
12665
12767
  providedIn: 'root'
@@ -12731,9 +12833,9 @@
12731
12833
  };
12732
12834
  return SoleForecastService;
12733
12835
  }(RestService));
12734
- SoleForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12735
- SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
12736
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
12836
+ SoleForecastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12837
+ SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
12838
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
12737
12839
  type: i0.Injectable,
12738
12840
  args: [{
12739
12841
  providedIn: 'root'
@@ -12768,9 +12870,9 @@
12768
12870
  };
12769
12871
  return IntercomService;
12770
12872
  }());
12771
- IntercomService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntercomService, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12772
- IntercomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntercomService, providedIn: 'root' });
12773
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntercomService, decorators: [{
12873
+ IntercomService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12874
+ IntercomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, providedIn: 'root' });
12875
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, decorators: [{
12774
12876
  type: i0.Injectable,
12775
12877
  args: [{
12776
12878
  providedIn: 'root'
@@ -12801,9 +12903,9 @@
12801
12903
  };
12802
12904
  return KompassifyService;
12803
12905
  }());
12804
- KompassifyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KompassifyService, deps: [{ token: i1__namespace$2.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12805
- KompassifyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KompassifyService, providedIn: 'root' });
12806
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KompassifyService, decorators: [{
12906
+ KompassifyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, deps: [{ token: i1__namespace$2.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12907
+ KompassifyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, providedIn: 'root' });
12908
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, decorators: [{
12807
12909
  type: i0.Injectable,
12808
12910
  args: [{
12809
12911
  providedIn: 'root'
@@ -12936,9 +13038,9 @@
12936
13038
  };
12937
13039
  return LoanService;
12938
13040
  }(RestService));
12939
- LoanService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoanService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
12940
- LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
12941
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoanService, decorators: [{
13041
+ LoanService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13042
+ LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
13043
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, decorators: [{
12942
13044
  type: i0.Injectable,
12943
13045
  args: [{
12944
13046
  providedIn: 'root'
@@ -12985,9 +13087,9 @@
12985
13087
  };
12986
13088
  return ServiceNotificationService;
12987
13089
  }(RestService));
12988
- ServiceNotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceNotificationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12989
- ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
12990
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
13090
+ ServiceNotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13091
+ ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
13092
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
12991
13093
  type: i0.Injectable,
12992
13094
  args: [{
12993
13095
  providedIn: 'root'
@@ -13042,9 +13144,9 @@
13042
13144
  };
13043
13145
  return PdfFromDomElementService;
13044
13146
  }());
13045
- PdfFromDomElementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13046
- PdfFromDomElementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, providedIn: 'root' });
13047
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, decorators: [{
13147
+ PdfFromDomElementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13148
+ PdfFromDomElementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, providedIn: 'root' });
13149
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, decorators: [{
13048
13150
  type: i0.Injectable,
13049
13151
  args: [{
13050
13152
  providedIn: 'root'
@@ -13127,9 +13229,9 @@
13127
13229
  };
13128
13230
  return PdfFromTableService;
13129
13231
  }());
13130
- PdfFromTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13131
- PdfFromTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, providedIn: 'root' });
13132
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, decorators: [{
13232
+ PdfFromTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13233
+ PdfFromTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, providedIn: 'root' });
13234
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, decorators: [{
13133
13235
  type: i0.Injectable,
13134
13236
  args: [{
13135
13237
  providedIn: 'root'
@@ -13168,9 +13270,9 @@
13168
13270
  };
13169
13271
  return PdfFromHtmlTableService;
13170
13272
  }(PdfFromTableService));
13171
- PdfFromHtmlTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromHtmlTableService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13172
- PdfFromHtmlTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromHtmlTableService, providedIn: 'root' });
13173
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromHtmlTableService, decorators: [{
13273
+ PdfFromHtmlTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13274
+ PdfFromHtmlTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, providedIn: 'root' });
13275
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, decorators: [{
13174
13276
  type: i0.Injectable,
13175
13277
  args: [{
13176
13278
  providedIn: 'root'
@@ -13206,9 +13308,9 @@
13206
13308
  };
13207
13309
  return PdfFromDataTableService;
13208
13310
  }(PdfFromTableService));
13209
- PdfFromDataTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13210
- PdfFromDataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDataTableService, providedIn: 'root' });
13211
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDataTableService, decorators: [{
13311
+ PdfFromDataTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13312
+ PdfFromDataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, providedIn: 'root' });
13313
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, decorators: [{
13212
13314
  type: i0.Injectable,
13213
13315
  args: [{
13214
13316
  providedIn: 'root'
@@ -13265,9 +13367,9 @@
13265
13367
  };
13266
13368
  return PropertyTransactionReportService;
13267
13369
  }());
13268
- PropertyTransactionReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13269
- PropertyTransactionReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyTransactionReportService, providedIn: 'root' });
13270
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyTransactionReportService, decorators: [{
13370
+ PropertyTransactionReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13371
+ PropertyTransactionReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, providedIn: 'root' });
13372
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, decorators: [{
13271
13373
  type: i0.Injectable,
13272
13374
  args: [{
13273
13375
  providedIn: 'root'
@@ -13393,11 +13495,43 @@
13393
13495
  // Math abs is required for correct percentage calculation
13394
13496
  return properties.purchasePrice - Math.abs(this.getLoanAmount(properties, bankAccounts, loans));
13395
13497
  };
13498
+ /**
13499
+ * Get dictionary of badges for each property in collection
13500
+ */
13501
+ PropertyCalculationService.prototype.getBadgesByProperty = function (properties, transactions, depreciations) {
13502
+ var _this = this;
13503
+ var badgesByProperty = new Dictionary([]);
13504
+ properties.toArray().forEach(function (property) {
13505
+ badgesByProperty.add(property.id, _this.getBadge(property, properties, transactions, depreciations));
13506
+ });
13507
+ return badgesByProperty;
13508
+ };
13509
+ /**
13510
+ * Get Badge for single property in collection
13511
+ */
13512
+ PropertyCalculationService.prototype.getBadge = function (property, properties, transactions, depreciations) {
13513
+ // best performance properties could be only from active properties list
13514
+ var activeProperties = properties.getActiveProperties();
13515
+ var bestPerformanceGrowthProperty = activeProperties.getBestPerformanceGrowthProperty();
13516
+ var bestPerformanceTaxProperty = activeProperties.getBestPerformanceTaxProperty(transactions, depreciations);
13517
+ switch (true) {
13518
+ case !property.isActive:
13519
+ return new Badge('Inactive', exports.BadgeColorEnum.GRAY);
13520
+ case property.id === bestPerformanceTaxProperty.id && property.id === bestPerformanceGrowthProperty.id:
13521
+ return new Badge('Best performance growth & tax', exports.BadgeColorEnum.GOLD);
13522
+ case property.id === bestPerformanceTaxProperty.id:
13523
+ return new Badge('Best performance tax', exports.BadgeColorEnum.GOLD);
13524
+ case property.id === bestPerformanceGrowthProperty.id:
13525
+ return new Badge('Best performance growth', exports.BadgeColorEnum.GREEN);
13526
+ default:
13527
+ return new Badge('Monitoring performance');
13528
+ }
13529
+ };
13396
13530
  return PropertyCalculationService;
13397
13531
  }());
13398
- PropertyCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13399
- PropertyCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, providedIn: 'root' });
13400
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, decorators: [{
13532
+ PropertyCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13533
+ PropertyCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, providedIn: 'root' });
13534
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, decorators: [{
13401
13535
  type: i0.Injectable,
13402
13536
  args: [{
13403
13537
  providedIn: 'root'
@@ -13417,9 +13551,9 @@
13417
13551
  }
13418
13552
  return PropertyCategoryService;
13419
13553
  }(RestService));
13420
- PropertyCategoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13421
- PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
13422
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
13554
+ PropertyCategoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13555
+ PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
13556
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
13423
13557
  type: i0.Injectable,
13424
13558
  args: [{
13425
13559
  providedIn: 'root'
@@ -13476,9 +13610,9 @@
13476
13610
  };
13477
13611
  return PropertyDocumentService;
13478
13612
  }(RestService));
13479
- PropertyDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyDocumentService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13480
- PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
13481
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
13613
+ PropertyDocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13614
+ PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
13615
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
13482
13616
  type: i0.Injectable,
13483
13617
  args: [{
13484
13618
  providedIn: 'root'
@@ -13579,9 +13713,9 @@
13579
13713
  };
13580
13714
  return PropertyShareService;
13581
13715
  }(RestService));
13582
- PropertyShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyShareService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13583
- PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
13584
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
13716
+ PropertyShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13717
+ PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
13718
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
13585
13719
  type: i0.Injectable,
13586
13720
  args: [{
13587
13721
  providedIn: 'root'
@@ -13598,9 +13732,9 @@
13598
13732
  }
13599
13733
  return PropertySaleService;
13600
13734
  }(RestService));
13601
- PropertySaleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertySaleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13602
- PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
13603
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
13735
+ PropertySaleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13736
+ PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
13737
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
13604
13738
  type: i0.Injectable,
13605
13739
  args: [{
13606
13740
  providedIn: 'root'
@@ -13634,9 +13768,9 @@
13634
13768
  };
13635
13769
  return EquityPositionChartService;
13636
13770
  }());
13637
- EquityPositionChartService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EquityPositionChartService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13638
- EquityPositionChartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EquityPositionChartService, providedIn: 'root' });
13639
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EquityPositionChartService, decorators: [{
13771
+ EquityPositionChartService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13772
+ EquityPositionChartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, providedIn: 'root' });
13773
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, decorators: [{
13640
13774
  type: i0.Injectable,
13641
13775
  args: [{
13642
13776
  providedIn: 'root'
@@ -13685,9 +13819,9 @@
13685
13819
  };
13686
13820
  return PropertyCategoryMovementService;
13687
13821
  }(RestService));
13688
- PropertyCategoryMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13689
- PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
13690
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
13822
+ PropertyCategoryMovementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13823
+ PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
13824
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
13691
13825
  type: i0.Injectable,
13692
13826
  args: [{
13693
13827
  providedIn: 'root'
@@ -13792,9 +13926,9 @@
13792
13926
  };
13793
13927
  return SubscriptionService;
13794
13928
  }());
13795
- SubscriptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SubscriptionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13796
- SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SubscriptionService, providedIn: 'root' });
13797
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
13929
+ SubscriptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13930
+ SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, providedIn: 'root' });
13931
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
13798
13932
  type: i0.Injectable,
13799
13933
  args: [{
13800
13934
  providedIn: 'root'
@@ -13820,9 +13954,9 @@
13820
13954
  }
13821
13955
  return ServicePriceService;
13822
13956
  }(RestService));
13823
- ServicePriceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServicePriceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13824
- ServicePriceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServicePriceService, providedIn: 'root' });
13825
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServicePriceService, decorators: [{
13957
+ ServicePriceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13958
+ ServicePriceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, providedIn: 'root' });
13959
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, decorators: [{
13826
13960
  type: i0.Injectable,
13827
13961
  args: [{
13828
13962
  providedIn: 'root'
@@ -13911,9 +14045,9 @@
13911
14045
  };
13912
14046
  return TaxReviewService;
13913
14047
  }(RestService));
13914
- TaxReviewService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13915
- TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
13916
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
14048
+ TaxReviewService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14049
+ TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
14050
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
13917
14051
  type: i0.Injectable,
13918
14052
  args: [{
13919
14053
  providedIn: 'root'
@@ -13949,9 +14083,9 @@
13949
14083
  };
13950
14084
  return TaxReviewHistoryService;
13951
14085
  }(RestService));
13952
- TaxReviewHistoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewHistoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13953
- TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
13954
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
14086
+ TaxReviewHistoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14087
+ TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
14088
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
13955
14089
  type: i0.Injectable,
13956
14090
  args: [{
13957
14091
  providedIn: 'root'
@@ -14012,9 +14146,9 @@
14012
14146
  };
14013
14147
  return TaxSummaryService;
14014
14148
  }());
14015
- TaxSummaryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxSummaryService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14016
- TaxSummaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxSummaryService, providedIn: 'root' });
14017
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxSummaryService, decorators: [{
14149
+ TaxSummaryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14150
+ TaxSummaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, providedIn: 'root' });
14151
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, decorators: [{
14018
14152
  type: i0.Injectable,
14019
14153
  args: [{
14020
14154
  providedIn: 'root'
@@ -14066,9 +14200,9 @@
14066
14200
  };
14067
14201
  return TransactionCalculationService;
14068
14202
  }());
14069
- TransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14070
- TransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, providedIn: 'root' });
14071
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, decorators: [{
14203
+ TransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14204
+ TransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, providedIn: 'root' });
14205
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, decorators: [{
14072
14206
  type: i0.Injectable,
14073
14207
  args: [{
14074
14208
  providedIn: 'root'
@@ -14103,9 +14237,9 @@
14103
14237
  };
14104
14238
  return OccupationService;
14105
14239
  }());
14106
- OccupationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OccupationService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14107
- OccupationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OccupationService, providedIn: 'root' });
14108
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OccupationService, decorators: [{
14240
+ OccupationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14241
+ OccupationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, providedIn: 'root' });
14242
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, decorators: [{
14109
14243
  type: i0.Injectable,
14110
14244
  args: [{
14111
14245
  providedIn: 'root'
@@ -14197,6 +14331,9 @@
14197
14331
  UserService.prototype.resetPassword = function (newPassword, resetToken) {
14198
14332
  return this.http.put(this.environment.apiV2 + "/users/password/reset", { newPassword: newPassword, resetToken: resetToken });
14199
14333
  };
14334
+ UserService.prototype.resendConfirmationEmail = function (email) {
14335
+ return this.http.post(this.environment.apiV2 + "/users/confirmation/resend", { email: email });
14336
+ };
14200
14337
  /**
14201
14338
  * Confirm registered user
14202
14339
  */
@@ -14255,9 +14392,9 @@
14255
14392
  };
14256
14393
  return UserService;
14257
14394
  }());
14258
- UserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserService, deps: [{ token: i1__namespace.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14259
- UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
14260
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserService, decorators: [{
14395
+ UserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserService, deps: [{ token: i1__namespace.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14396
+ UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
14397
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserService, decorators: [{
14261
14398
  type: i0.Injectable,
14262
14399
  args: [{
14263
14400
  providedIn: 'root'
@@ -14307,9 +14444,9 @@
14307
14444
  };
14308
14445
  return UserEventSettingService;
14309
14446
  }(RestService));
14310
- UserEventSettingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventSettingService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14311
- UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
14312
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
14447
+ UserEventSettingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14448
+ UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
14449
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
14313
14450
  type: i0.Injectable,
14314
14451
  args: [{
14315
14452
  providedIn: 'root'
@@ -14327,9 +14464,9 @@
14327
14464
  }
14328
14465
  return UserEventTypeService;
14329
14466
  }(RestService));
14330
- UserEventTypeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventTypeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14331
- UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
14332
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
14467
+ UserEventTypeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14468
+ UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
14469
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
14333
14470
  type: i0.Injectable,
14334
14471
  args: [{
14335
14472
  providedIn: 'root'
@@ -14398,9 +14535,9 @@
14398
14535
  };
14399
14536
  return VehicleService;
14400
14537
  }(RestService));
14401
- VehicleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14402
- VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
14403
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleService, decorators: [{
14538
+ VehicleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14539
+ VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
14540
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, decorators: [{
14404
14541
  type: i0.Injectable,
14405
14542
  args: [{
14406
14543
  providedIn: 'root'
@@ -14447,9 +14584,9 @@
14447
14584
  };
14448
14585
  return VehicleLogbookService;
14449
14586
  }());
14450
- VehicleLogbookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14451
- VehicleLogbookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, providedIn: 'root' });
14452
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, decorators: [{
14587
+ VehicleLogbookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14588
+ VehicleLogbookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, providedIn: 'root' });
14589
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, decorators: [{
14453
14590
  type: i0.Injectable,
14454
14591
  args: [{
14455
14592
  providedIn: 'root'
@@ -14498,9 +14635,9 @@
14498
14635
  };
14499
14636
  return XlsxService;
14500
14637
  }());
14501
- XlsxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14502
- XlsxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, providedIn: 'root' });
14503
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, decorators: [{
14638
+ XlsxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14639
+ XlsxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, providedIn: 'root' });
14640
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, decorators: [{
14504
14641
  type: i0.Injectable,
14505
14642
  args: [{
14506
14643
  providedIn: 'root'
@@ -14518,9 +14655,9 @@
14518
14655
  }
14519
14656
  return TaxExemptionService;
14520
14657
  }(RestService));
14521
- TaxExemptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxExemptionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14522
- TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
14523
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
14658
+ TaxExemptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
14659
+ TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
14660
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
14524
14661
  type: i0.Injectable,
14525
14662
  args: [{
14526
14663
  providedIn: 'root'
@@ -14609,9 +14746,9 @@
14609
14746
  auth_type: 'rerequest',
14610
14747
  return_scopes: true
14611
14748
  };
14612
- FacebookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FacebookService, deps: [{ token: i1__namespace.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1__namespace$2.Router }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14613
- FacebookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FacebookService, providedIn: 'root' });
14614
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FacebookService, decorators: [{
14749
+ FacebookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, deps: [{ token: i1__namespace.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1__namespace$2.Router }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14750
+ FacebookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, providedIn: 'root' });
14751
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, decorators: [{
14615
14752
  type: i0.Injectable,
14616
14753
  args: [{
14617
14754
  providedIn: 'root'
@@ -14700,9 +14837,9 @@
14700
14837
  var AbstractForm = /** @class */ (function (_super) {
14701
14838
  __extends(AbstractForm, _super);
14702
14839
  function AbstractForm(controls, model, validatorOrOpts, asyncValidator) {
14703
- if (model === void 0) { model = {}; }
14704
14840
  var _this = _super.call(this, controls, validatorOrOpts, asyncValidator) || this;
14705
- _this.model = model;
14841
+ _this.onSubmit = new i0.EventEmitter();
14842
+ _this.model = model || _this.createModelInstance();
14706
14843
  _this.modelClass = _this.model.constructor;
14707
14844
  return _this;
14708
14845
  }
@@ -14718,11 +14855,20 @@
14718
14855
  if (!this.valid) {
14719
14856
  return null;
14720
14857
  }
14721
- return classTransformer.plainToClass(this.modelClass, Object.assign({}, this.model, this.value, data));
14858
+ var model = this.createModelInstance(Object.assign({}, this.model, this.value, data));
14859
+ this.onSubmit.emit(model);
14860
+ return model;
14861
+ };
14862
+ AbstractForm.prototype.createModelInstance = function (data) {
14863
+ if (data === void 0) { data = {}; }
14864
+ return classTransformer.plainToClass(this.modelClass, data);
14722
14865
  };
14723
14866
  return AbstractForm;
14724
14867
  }(forms.FormGroup));
14725
14868
 
14869
+ /**
14870
+ * Form with bank account loan details
14871
+ */
14726
14872
  var BankAccountLoanForm = /** @class */ (function (_super) {
14727
14873
  __extends(BankAccountLoanForm, _super);
14728
14874
  function BankAccountLoanForm(loan) {
@@ -14742,117 +14888,154 @@
14742
14888
  return BankAccountLoanForm;
14743
14889
  }(AbstractForm));
14744
14890
 
14745
- var BankAccountPropertyForm = /** @class */ (function (_super) {
14746
- __extends(BankAccountPropertyForm, _super);
14747
- function BankAccountPropertyForm(isLoan, bankAccountProperty) {
14748
- if (bankAccountProperty === void 0) { bankAccountProperty = classTransformer.plainToClass(BankAccountProperty, {}); }
14749
- return _super.call(this, {
14750
- property: new forms.FormControl(bankAccountProperty.property, forms.Validators.required),
14751
- percent: new forms.FormControl({ value: bankAccountProperty.percent, disabled: !isLoan }, forms.Validators.required)
14752
- }, bankAccountProperty) || this;
14753
- }
14754
- return BankAccountPropertyForm;
14755
- }(AbstractForm));
14756
-
14891
+ /**
14892
+ * Form array with bank account properties
14893
+ */
14757
14894
  var BankAccountPropertiesForm = /** @class */ (function (_super) {
14758
14895
  __extends(BankAccountPropertiesForm, _super);
14759
- function BankAccountPropertiesForm(isLoan, bankAccountProperties) {
14760
- if (bankAccountProperties === void 0) { bankAccountProperties = []; }
14761
- var _this = _super.call(this, bankAccountProperties.length
14762
- ? bankAccountProperties.map(function (bankAccountProperty) { return new BankAccountPropertyForm(isLoan, bankAccountProperty); })
14763
- : [new BankAccountPropertyForm(isLoan)]) || this;
14764
- _this.isLoan = isLoan;
14765
- _this.bankAccountProperties = bankAccountProperties;
14766
- return _this;
14896
+ function BankAccountPropertiesForm(bankAccountProperties) {
14897
+ if (bankAccountProperties === void 0) { bankAccountProperties = [classTransformer.plainToClass(BankAccountProperty, {})]; }
14898
+ return _super.call(this, bankAccountProperties.map(function (bankAccountProperty) {
14899
+ return new forms.FormGroup({
14900
+ property: new forms.FormControl(bankAccountProperty.property, forms.Validators.required),
14901
+ percent: new forms.FormControl(bankAccountProperty.percent, forms.Validators.required)
14902
+ });
14903
+ })) || this;
14767
14904
  }
14768
14905
  BankAccountPropertiesForm.prototype.add = function () {
14769
- this.push(new BankAccountPropertyForm(this.isLoan));
14906
+ this.push(new forms.FormGroup({
14907
+ property: new forms.FormControl(null, forms.Validators.required),
14908
+ percent: new forms.FormControl({
14909
+ value: 100,
14910
+ disabled: !this.at(0).contains('percent')
14911
+ }, forms.Validators.required)
14912
+ }));
14913
+ };
14914
+ BankAccountPropertiesForm.prototype.enablePercent = function () {
14915
+ this.controls.forEach(function (propertyFormGroup) {
14916
+ propertyFormGroup.get('percent').enable();
14917
+ });
14918
+ };
14919
+ BankAccountPropertiesForm.prototype.disablePercent = function () {
14920
+ this.controls.forEach(function (propertyFormGroup) {
14921
+ propertyFormGroup.get('percent').disable();
14922
+ });
14770
14923
  };
14771
14924
  return BankAccountPropertiesForm;
14772
14925
  }(forms.FormArray));
14773
14926
 
14774
14927
  /**
14775
- * Form for additional data for bank accounts. Allow user to set tank type, loan and properties for new not-saved bank accounts.
14776
- * Works with manual and basiq bank accounts.
14928
+ * Form is using for import basiq bank accounts.
14929
+ * Basiq accounts has all data except tank type, properties and loan partially
14777
14930
  */
14778
- var BankAccountForm = /** @class */ (function (_super) {
14779
- __extends(BankAccountForm, _super);
14780
- function BankAccountForm(bankAccount) {
14781
- if (bankAccount === void 0) { bankAccount = classTransformer.plainToClass(BankAccount, {}); }
14931
+ var BankAccountImportForm = /** @class */ (function (_super) {
14932
+ __extends(BankAccountImportForm, _super);
14933
+ function BankAccountImportForm(bankAccount) {
14782
14934
  var _this = _super.call(this, {
14783
14935
  tankType: new forms.FormControl(bankAccount.tankType, forms.Validators.required),
14784
14936
  }, bankAccount) || this;
14785
- _this.bankAccount = bankAccount;
14786
14937
  if (bankAccount.isLoan()) {
14787
14938
  _this.addControl('loan', new BankAccountLoanForm(bankAccount.loan));
14788
14939
  }
14940
+ // basiq account import form should be disabled (unchecked) by default
14941
+ _this.disable();
14789
14942
  _this.listenEvents();
14790
14943
  return _this;
14791
14944
  }
14792
- BankAccountForm.prototype.listenEvents = function () {
14945
+ BankAccountImportForm.prototype.listenEvents = function () {
14793
14946
  this.listenTankTypeChanges();
14794
- this.listenValueChanges();
14795
- };
14796
- Object.defineProperty(BankAccountForm.prototype, "properties", {
14797
- get: function () {
14798
- return this.get('bankAccountProperties');
14799
- },
14800
- enumerable: false,
14801
- configurable: true
14802
- });
14803
- BankAccountForm.prototype.isLoan = function () {
14804
- return BankAccount.loanTypes.includes(this.bankAccount.type);
14805
- };
14806
- BankAccountForm.prototype.isPropertyTank = function () {
14807
- return this.get('tankType').value === exports.TankTypeEnum.PROPERTY;
14808
- };
14809
- BankAccountForm.prototype.confirm = function () {
14810
- this.markAllAsTouched();
14811
- if (this.invalid) {
14812
- return;
14813
- }
14814
- this.isConfirmed = true;
14815
- };
14816
- BankAccountForm.prototype.addPropertiesArray = function () {
14817
- var control = new BankAccountPropertiesForm(this.isLoan(), this.bankAccount.bankAccountProperties);
14818
- // Default form behaviour is: if we add enabled form control to disabled form group then this form group enable.
14819
- // Disable form control before add to avoid form group enabling.
14820
- if (this.disabled) {
14821
- control.disable();
14822
- }
14823
- this.addControl('bankAccountProperties', control);
14824
14947
  };
14825
14948
  /**
14826
- * Add/Remove properties form array depending on selected tank type
14949
+ * Add/Remove bank account properties form depends on selected tank type
14827
14950
  */
14828
- BankAccountForm.prototype.listenTankTypeChanges = function () {
14829
- var _this = this;
14830
- this.get('tankType').valueChanges.subscribe(function () {
14831
- _this.isPropertyTank() ? _this.addPropertiesArray() : _this.removeControl('bankAccountProperties');
14832
- });
14833
- };
14834
- BankAccountForm.prototype.listenValueChanges = function () {
14951
+ BankAccountImportForm.prototype.listenTankTypeChanges = function () {
14835
14952
  var _this = this;
14836
- this.valueChanges.subscribe(function () {
14837
- _this.isConfirmed = false;
14953
+ this.get('tankType').valueChanges.subscribe(function (tankType) {
14954
+ if (tankType === exports.TankTypeEnum.PROPERTY) {
14955
+ _this.addControl('bankAccountProperties', new BankAccountPropertiesForm());
14956
+ // property percent allowed only for loan bank accounts
14957
+ if (!_this.contains('loan')) {
14958
+ _this.get('bankAccountProperties').disablePercent();
14959
+ }
14960
+ }
14961
+ else {
14962
+ _this.removeControl('bankAccountProperties');
14963
+ }
14838
14964
  });
14839
14965
  };
14840
- return BankAccountForm;
14966
+ return BankAccountImportForm;
14841
14967
  }(AbstractForm));
14842
14968
 
14843
14969
  /**
14844
- * Form is using for manual bank account creation (not Basiq), prepares bank account data for the next saving.
14970
+ * Form is using for single manual bank account creation (not Basiq)
14845
14971
  */
14846
14972
  var BankAccountAddManualForm = /** @class */ (function (_super) {
14847
14973
  __extends(BankAccountAddManualForm, _super);
14848
14974
  function BankAccountAddManualForm(connection) {
14849
- return _super.call(this, {
14975
+ var _this = _super.call(this, {
14850
14976
  type: new forms.FormControl(null, forms.Validators.required),
14851
14977
  accountName: new forms.FormControl(null, forms.Validators.required),
14852
14978
  currentBalance: new forms.FormControl(null, forms.Validators.required),
14853
14979
  accountNumber: new forms.FormControl(null, [forms.Validators.required, forms.Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]),
14854
- }, classTransformer.plainToClass(BankAccount, { bankConnection: connection })) || this;
14980
+ tankType: new forms.FormControl(null, forms.Validators.required),
14981
+ }) || this;
14982
+ _this.connection = connection;
14983
+ _this.listenEvents();
14984
+ return _this;
14855
14985
  }
14986
+ BankAccountAddManualForm.prototype.listenEvents = function () {
14987
+ this.listenTypeChanges();
14988
+ this.listenTankTypeChanges();
14989
+ };
14990
+ /**
14991
+ * Add/Remove loan form depends on selected bank account type
14992
+ */
14993
+ BankAccountAddManualForm.prototype.listenTypeChanges = function () {
14994
+ var _this = this;
14995
+ this.get('type').valueChanges.subscribe(function (type) {
14996
+ if (BankAccount.loanTypes.includes(type)) {
14997
+ _this.addControl('loan', new BankAccountLoanForm());
14998
+ // property percent allowed only for loan bank accounts
14999
+ if (_this.contains('bankAccountProperties')) {
15000
+ _this.get('bankAccountProperties').enablePercent();
15001
+ }
15002
+ }
15003
+ else {
15004
+ _this.removeControl('loan');
15005
+ // property percent allowed only for loan bank accounts
15006
+ if (_this.contains('bankAccountProperties')) {
15007
+ _this.get('bankAccountProperties').disablePercent();
15008
+ }
15009
+ }
15010
+ });
15011
+ };
15012
+ /**
15013
+ * Add/Remove bank account properties form depends on selected tank type
15014
+ */
15015
+ BankAccountAddManualForm.prototype.listenTankTypeChanges = function () {
15016
+ var _this = this;
15017
+ this.get('tankType').valueChanges.subscribe(function (tankType) {
15018
+ if (tankType === exports.TankTypeEnum.PROPERTY) {
15019
+ _this.addControl('bankAccountProperties', new BankAccountPropertiesForm());
15020
+ // property percent allowed only for loan bank accounts
15021
+ if (_this.contains('loan')) {
15022
+ _this.get('bankAccountProperties').enablePercent();
15023
+ }
15024
+ else {
15025
+ _this.get('bankAccountProperties').disablePercent();
15026
+ }
15027
+ }
15028
+ else {
15029
+ _this.removeControl('bankAccountProperties');
15030
+ }
15031
+ });
15032
+ };
15033
+ /**
15034
+ * Attach bank connection to manual bank account
15035
+ */
15036
+ BankAccountAddManualForm.prototype.submit = function () {
15037
+ return _super.prototype.submit.call(this, { bankConnection: this.connection });
15038
+ };
14856
15039
  return BankAccountAddManualForm;
14857
15040
  }(AbstractForm));
14858
15041
  BankAccountAddManualForm.accountNumberPattern = '^[0-9]{6}[ ]{1}[0-9]{1,}$';
@@ -14879,18 +15062,74 @@
14879
15062
  };
14880
15063
  }
14881
15064
 
14882
- var BankAccountMigrateForm = /** @class */ (function (_super) {
14883
- __extends(BankAccountMigrateForm, _super);
14884
- function BankAccountMigrateForm() {
14885
- return _super.call(this, {
14886
- migrateFrom: new forms.FormControl(BankAccountMigrateForm.minDate, [forms.Validators.required, dateRangeValidator(BankAccountMigrateForm.minDate, BankAccountMigrateForm.maxDate)]),
14887
- migrateTo: new forms.FormControl(BankAccountMigrateForm.maxDate, [forms.Validators.required, dateRangeValidator(BankAccountMigrateForm.minDate, BankAccountMigrateForm.maxDate)])
15065
+ /**
15066
+ * Validator check if at least one control in formArray is enabled
15067
+ */
15068
+ function atLeastOneEnabledValidator(arrayName) {
15069
+ return function (formGroup) {
15070
+ return !!formGroup.get(arrayName).controls.find(function (control) { return control.enabled; })
15071
+ ? null
15072
+ : { arrayControlsDisabled: true };
15073
+ };
15074
+ }
15075
+
15076
+ /**
15077
+ * Form for import multiple basiq bank accounts
15078
+ */
15079
+ var BankAccountsImportForm = /** @class */ (function (_super) {
15080
+ __extends(BankAccountsImportForm, _super);
15081
+ function BankAccountsImportForm(bankAccounts) {
15082
+ var _this = _super.call(this, {
15083
+ migrateFrom: new forms.FormControl(BankAccountsImportForm.minDate, [forms.Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
15084
+ migrateTo: new forms.FormControl(BankAccountsImportForm.maxDate, [forms.Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
15085
+ bankAccounts: new forms.FormArray(bankAccounts.map(function (bankAccount) { return new BankAccountImportForm(bankAccount); }))
15086
+ }, [], {
15087
+ validators: [atLeastOneEnabledValidator('bankAccounts')]
14888
15088
  }) || this;
15089
+ _this.bankAccounts = bankAccounts;
15090
+ return _this;
14889
15091
  }
14890
- return BankAccountMigrateForm;
15092
+ BankAccountsImportForm.prototype.submit = function () {
15093
+ var e_1, _a;
15094
+ this.submitted = true;
15095
+ if (this.invalid) {
15096
+ return null;
15097
+ }
15098
+ var bankAccounts = [];
15099
+ try {
15100
+ // form is valid when all selected bank accounts forms are valid
15101
+ for (var _b = __values(this.get('bankAccounts').controls), _c = _b.next(); !_c.done; _c = _b.next()) {
15102
+ var bankAccountImportForm = _c.value;
15103
+ // skip disabled forms
15104
+ if (bankAccountImportForm.disabled) {
15105
+ continue;
15106
+ }
15107
+ var bankAccount = bankAccountImportForm.submit({
15108
+ migrateFrom: this.value.migrateFrom,
15109
+ migrateTo: this.value.migrateTo
15110
+ });
15111
+ if (!bankAccount) {
15112
+ return null;
15113
+ }
15114
+ bankAccounts.push(bankAccount);
15115
+ }
15116
+ }
15117
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
15118
+ finally {
15119
+ try {
15120
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
15121
+ }
15122
+ finally { if (e_1) throw e_1.error; }
15123
+ }
15124
+ if (!bankAccounts.length) {
15125
+ return null;
15126
+ }
15127
+ return bankAccounts;
15128
+ };
15129
+ return BankAccountsImportForm;
14891
15130
  }(AbstractForm));
14892
- BankAccountMigrateForm.minDate = new FinancialYear().prevFinYear.startDate;
14893
- BankAccountMigrateForm.maxDate = new Date();
15131
+ BankAccountsImportForm.minDate = new FinancialYear().prevFinYear.startDate;
15132
+ BankAccountsImportForm.maxDate = new Date();
14894
15133
 
14895
15134
  /**
14896
15135
  * Form with basiq bank login fields.
@@ -14923,15 +15162,11 @@
14923
15162
 
14924
15163
  /**
14925
15164
  * Validation function for autocomplete fields. Checks that the user should select a value from a list rather than type in input field
15165
+ * @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
14926
15166
  */
14927
- function requireAutocomplete() {
15167
+ function autocompleteValidator() {
14928
15168
  return function (control) {
14929
- if (typeof control.value === 'string' && !!control.value) {
14930
- return { notFromList: true };
14931
- }
14932
- else {
14933
- return null;
14934
- }
15169
+ return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
14935
15170
  };
14936
15171
  }
14937
15172
 
@@ -14973,21 +15208,6 @@
14973
15208
  };
14974
15209
  }
14975
15210
 
14976
- /**
14977
- * Validation function, that checks that the user should select a value from a list rather than type in input field
14978
- */
14979
- function requireSelectValidator() {
14980
- return function (control) {
14981
- var selection = control.value;
14982
- if (typeof selection === 'string' && !!selection) {
14983
- return { notFromList: true };
14984
- }
14985
- else {
14986
- return null;
14987
- }
14988
- };
14989
- }
14990
-
14991
15211
  var ClientIncomeTypesForm = /** @class */ (function (_super) {
14992
15212
  __extends(ClientIncomeTypesForm, _super);
14993
15213
  function ClientIncomeTypesForm(clientIncomeTypes) {
@@ -15015,13 +15235,14 @@
15015
15235
  return LoginForm;
15016
15236
  }(AbstractForm));
15017
15237
 
15238
+ // @TODO Alex: Create a model and handle request fields via class-transformer
15018
15239
  var PasswordForm = /** @class */ (function (_super) {
15019
15240
  __extends(PasswordForm, _super);
15020
15241
  function PasswordForm() {
15021
15242
  return _super.call(this, {
15022
15243
  password: new forms.FormControl(null, [forms.Validators.required, passwordValidator()]),
15023
15244
  confirm: new forms.FormControl(null, forms.Validators.required),
15024
- }, {}, passwordMatchValidator('password', 'confirm')) || this;
15245
+ }, { password: null, confirm: null }, passwordMatchValidator('password', 'confirm')) || this;
15025
15246
  }
15026
15247
  return PasswordForm;
15027
15248
  }(AbstractForm));
@@ -15070,6 +15291,7 @@
15070
15291
  return RegisterFirmForm;
15071
15292
  }(AbstractForm));
15072
15293
 
15294
+ // @TODO Alex: Create a model and handle request fields via class-transformer
15073
15295
  var ResetPasswordForm = /** @class */ (function (_super) {
15074
15296
  __extends(ResetPasswordForm, _super);
15075
15297
  function ResetPasswordForm() {
@@ -15335,7 +15557,7 @@
15335
15557
  __extends(MyTaxIncomeStatementsForm, _super);
15336
15558
  function MyTaxIncomeStatementsForm(incomeStatements, user) {
15337
15559
  var _this = _super.call(this, {
15338
- occupation: new forms.FormControl(user.clientDetails.occupation, [forms.Validators.required, requireSelectValidator()]),
15560
+ occupation: new forms.FormControl(user.clientDetails.occupation, [forms.Validators.required, autocompleteValidator()]),
15339
15561
  allowanceTotalAmount: new forms.FormControl({
15340
15562
  value: incomeStatements.allowanceTotalAmount,
15341
15563
  disabled: true
@@ -15606,20 +15828,19 @@
15606
15828
  exports.AssetsService = AssetsService;
15607
15829
  exports.AuthService = AuthService;
15608
15830
  exports.BANK_ACCOUNT_TYPES = BANK_ACCOUNT_TYPES;
15831
+ exports.Badge = Badge;
15609
15832
  exports.Bank = Bank;
15610
15833
  exports.BankAccount = BankAccount;
15611
15834
  exports.BankAccountAddManualForm = BankAccountAddManualForm;
15612
15835
  exports.BankAccountCalculationService = BankAccountCalculationService;
15613
15836
  exports.BankAccountChartData = BankAccountChartData;
15614
15837
  exports.BankAccountCollection = BankAccountCollection;
15615
- exports.BankAccountForm = BankAccountForm;
15838
+ exports.BankAccountImportForm = BankAccountImportForm;
15616
15839
  exports.BankAccountLoanForm = BankAccountLoanForm;
15617
- exports.BankAccountMigrateForm = BankAccountMigrateForm;
15618
15840
  exports.BankAccountPropertiesForm = BankAccountPropertiesForm;
15619
15841
  exports.BankAccountProperty = BankAccountProperty;
15620
- exports.BankAccountPropertyForm = BankAccountPropertyForm;
15621
15842
  exports.BankAccountService = BankAccountService;
15622
- exports.BankCollection = BankCollection;
15843
+ exports.BankAccountsImportForm = BankAccountsImportForm;
15623
15844
  exports.BankConnection = BankConnection;
15624
15845
  exports.BankConnectionService = BankConnectionService;
15625
15846
  exports.BankLoginData = BankLoginData;
@@ -15688,6 +15909,7 @@
15688
15909
  exports.DepreciationReportItem = DepreciationReportItem;
15689
15910
  exports.DepreciationReportItemCollection = DepreciationReportItemCollection;
15690
15911
  exports.DepreciationService = DepreciationService;
15912
+ exports.Dictionary = Dictionary;
15691
15913
  exports.Document = Document;
15692
15914
  exports.DocumentFolder = DocumentFolder;
15693
15915
  exports.DocumentFolderService = DocumentFolderService;
@@ -15875,6 +16097,7 @@
15875
16097
  exports.XlsxService = XlsxService;
15876
16098
  exports.atLeastOneCheckedValidator = atLeastOneCheckedValidator;
15877
16099
  exports.atoLinks = atoLinks;
16100
+ exports.autocompleteValidator = autocompleteValidator;
15878
16101
  exports.cloneDeep = cloneDeep;
15879
16102
  exports.compare = compare;
15880
16103
  exports.compareMatOptions = compareMatOptions;
@@ -15885,8 +16108,6 @@
15885
16108
  exports.passwordMatchValidator = passwordMatchValidator;
15886
16109
  exports.passwordValidator = passwordValidator;
15887
16110
  exports.replace = replace;
15888
- exports.requireAutocomplete = requireAutocomplete;
15889
- exports.requireSelectValidator = requireSelectValidator;
15890
16111
  exports.roundTo = roundTo;
15891
16112
  exports.sort = sort;
15892
16113
  exports.sortDeep = sortDeep;