taxtank-core 0.28.105 → 0.28.107

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 (156) hide show
  1. package/bundles/taxtank-core.umd.js +1289 -880
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.js +17 -0
  4. package/esm2015/lib/db/Enums/index.js +2 -1
  5. package/esm2015/lib/forms/depreciation/depreciation.form.js +35 -0
  6. package/esm2015/lib/forms/depreciation/index.js +2 -0
  7. package/esm2015/lib/forms/form-validations.enum.js +12 -0
  8. package/esm2015/lib/forms/index.js +4 -1
  9. package/esm2015/lib/forms/transaction/index.js +4 -0
  10. package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
  11. package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
  12. package/esm2015/lib/forms/transaction/transaction.form.js +12 -0
  13. package/esm2015/lib/forms/transaction/work-income.form.js +119 -0
  14. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  15. package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  19. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  20. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  21. package/esm2015/lib/interceptors/user-switcher-interceptor.js +15 -5
  22. package/esm2015/lib/models/chart-accounts/chart-accounts.js +37 -1
  23. package/esm2015/lib/models/chart-accounts/index.js +9 -0
  24. package/esm2015/lib/models/document/index.js +3 -1
  25. package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
  26. package/esm2015/lib/models/index.js +3 -1
  27. package/esm2015/lib/models/transaction/index.js +7 -0
  28. package/esm2015/lib/models/transaction/transaction.js +2 -3
  29. package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
  30. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  31. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  32. package/esm2015/lib/services/asset/assets.service.js +3 -3
  33. package/esm2015/lib/services/auth/auth.service.js +3 -3
  34. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  35. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  36. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  37. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  38. package/esm2015/lib/services/event/sse.service.js +3 -3
  39. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  40. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  41. package/esm2015/lib/services/http/address/address.service.js +3 -3
  42. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
  43. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
  44. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  45. package/esm2015/lib/services/http/bank/bank.service.js +13 -9
  46. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  47. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  48. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  49. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +6 -7
  50. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  51. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  52. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  53. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  54. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  55. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  56. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  57. package/esm2015/lib/services/http/document/document.service.js +3 -3
  58. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  59. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  60. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  61. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  62. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  63. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  64. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  65. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  66. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  67. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  68. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  69. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  70. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  71. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  72. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  73. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  74. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  75. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  76. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  77. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  78. package/esm2015/lib/services/http/property/property.service.js +3 -3
  79. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  80. package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
  81. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  82. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  83. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
  84. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  85. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
  86. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
  87. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
  88. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  89. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  90. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  91. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
  92. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
  93. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  94. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  95. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  96. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  97. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  98. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  99. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  100. package/esm2015/lib/services/http/transaction/transaction.service.js +4 -34
  101. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  102. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  103. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  104. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  105. package/esm2015/lib/services/http/user/user.service.js +3 -3
  106. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  107. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  108. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  109. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  110. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  111. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  112. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  113. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  114. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  115. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  116. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  117. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  118. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  119. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  120. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  121. package/esm2015/lib/services/toast/toast.service.js +3 -3
  122. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  123. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  124. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  125. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  126. package/esm2015/lib/tt-core.module.js +4 -4
  127. package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
  128. package/esm2015/lib/validators/file.validator.js +27 -0
  129. package/esm2015/lib/validators/index.js +3 -1
  130. package/fesm2015/taxtank-core.js +1246 -898
  131. package/fesm2015/taxtank-core.js.map +1 -1
  132. package/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
  133. package/lib/db/Enums/index.d.ts +1 -0
  134. package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
  135. package/lib/forms/depreciation/index.d.ts +1 -0
  136. package/lib/forms/form-validations.enum.d.ts +9 -0
  137. package/lib/forms/index.d.ts +3 -0
  138. package/lib/forms/transaction/index.d.ts +3 -0
  139. package/lib/forms/transaction/messages.enum.d.ts +3 -0
  140. package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
  141. package/lib/forms/transaction/transaction.form.d.ts +8 -0
  142. package/lib/forms/transaction/work-income.form.d.ts +21 -0
  143. package/lib/models/chart-accounts/chart-accounts.d.ts +8 -0
  144. package/lib/models/chart-accounts/index.d.ts +8 -0
  145. package/lib/models/document/index.d.ts +2 -0
  146. package/lib/models/income-source/salary-forecast.d.ts +1 -0
  147. package/lib/models/index.d.ts +2 -0
  148. package/lib/models/transaction/index.d.ts +6 -0
  149. package/lib/models/transaction/transaction.d.ts +2 -2
  150. package/lib/services/http/bank/bank.service.d.ts +9 -5
  151. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +1 -2
  152. package/lib/services/http/transaction/transaction.service.d.ts +0 -7
  153. package/lib/validators/current-fin-year.validator.d.ts +5 -0
  154. package/lib/validators/file.validator.d.ts +6 -0
  155. package/lib/validators/index.d.ts +2 -0
  156. package/package.json +1 -1
@@ -92,9 +92,9 @@
92
92
  };
93
93
  return CorelogicService;
94
94
  }());
95
- 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 });
96
- CorelogicService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicService, providedIn: 'root' });
97
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicService, decorators: [{
95
+ 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 });
96
+ CorelogicService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicService, providedIn: 'root' });
97
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicService, decorators: [{
98
98
  type: i0.Injectable,
99
99
  args: [{
100
100
  providedIn: 'root'
@@ -138,9 +138,9 @@
138
138
  };
139
139
  return CorelogicInterceptor;
140
140
  }());
141
- 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 });
142
- CorelogicInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicInterceptor });
143
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CorelogicInterceptor, decorators: [{
141
+ 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 });
142
+ CorelogicInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicInterceptor });
143
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CorelogicInterceptor, decorators: [{
144
144
  type: i0.Injectable
145
145
  }], ctorParameters: function () {
146
146
  return [{ type: CorelogicService }, { type: undefined, decorators: [{
@@ -180,9 +180,9 @@
180
180
  };
181
181
  return FinancialYearInterceptor;
182
182
  }());
183
- 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 });
184
- FinancialYearInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FinancialYearInterceptor });
185
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FinancialYearInterceptor, decorators: [{
183
+ 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 });
184
+ FinancialYearInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FinancialYearInterceptor });
185
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FinancialYearInterceptor, decorators: [{
186
186
  type: i0.Injectable
187
187
  }], ctorParameters: function () {
188
188
  return [{ type: undefined, decorators: [{
@@ -191,7 +191,7 @@
191
191
  }] }];
192
192
  } });
193
193
 
194
- /*! *****************************************************************************
194
+ /******************************************************************************
195
195
  Copyright (c) Microsoft Corporation.
196
196
 
197
197
  Permission to use, copy, modify, and/or distribute this software for any
@@ -353,7 +353,11 @@
353
353
  var __createBinding = Object.create ? (function (o, m, k, k2) {
354
354
  if (k2 === undefined)
355
355
  k2 = k;
356
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
356
+ var desc = Object.getOwnPropertyDescriptor(m, k);
357
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
358
+ desc = { enumerable: true, get: function () { return m[k]; } };
359
+ }
360
+ Object.defineProperty(o, k2, desc);
357
361
  }) : (function (o, m, k, k2) {
358
362
  if (k2 === undefined)
359
363
  k2 = k;
@@ -508,6 +512,11 @@
508
512
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
509
513
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
510
514
  }
515
+ function __classPrivateFieldIn(state, receiver) {
516
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
517
+ throw new TypeError("Cannot use 'in' operator on non-object");
518
+ return typeof state === "function" ? receiver === state : state.has(receiver);
519
+ }
511
520
 
512
521
  var NAME_TOKEN = 'token';
513
522
  var NAME_REFRESH_TOKEN = 'refreshToken';
@@ -538,9 +547,9 @@
538
547
  };
539
548
  return JwtService;
540
549
  }(angularJwt.JwtHelperService));
541
- 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 });
542
- JwtService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtService, providedIn: 'root' });
543
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtService, decorators: [{
550
+ 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 });
551
+ JwtService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtService, providedIn: 'root' });
552
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtService, decorators: [{
544
553
  type: i0.Injectable,
545
554
  args: [{
546
555
  providedIn: 'root'
@@ -651,9 +660,9 @@
651
660
  };
652
661
  return EventDispatcherService;
653
662
  }());
654
- EventDispatcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
655
- EventDispatcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, providedIn: 'root' });
656
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EventDispatcherService, decorators: [{
663
+ EventDispatcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
664
+ EventDispatcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, providedIn: 'root' });
665
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EventDispatcherService, decorators: [{
657
666
  type: i0.Injectable,
658
667
  args: [{
659
668
  providedIn: 'root'
@@ -707,9 +716,9 @@
707
716
  };
708
717
  return AuthService;
709
718
  }());
710
- 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 });
711
- AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
712
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AuthService, decorators: [{
719
+ 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 });
720
+ AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
721
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AuthService, decorators: [{
713
722
  type: i0.Injectable,
714
723
  args: [{
715
724
  providedIn: 'root'
@@ -850,9 +859,9 @@
850
859
  };
851
860
  return JwtInterceptor;
852
861
  }());
853
- 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 });
854
- JwtInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtInterceptor });
855
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: JwtInterceptor, decorators: [{
862
+ 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 });
863
+ JwtInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtInterceptor });
864
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: JwtInterceptor, decorators: [{
856
865
  type: i0.Injectable
857
866
  }], ctorParameters: function () {
858
867
  return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
@@ -890,9 +899,9 @@
890
899
  };
891
900
  return UserSwitcherService;
892
901
  }());
893
- UserSwitcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
894
- UserSwitcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, providedIn: 'root' });
895
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherService, decorators: [{
902
+ UserSwitcherService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
903
+ UserSwitcherService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, providedIn: 'root' });
904
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherService, decorators: [{
896
905
  type: i0.Injectable,
897
906
  args: [{
898
907
  providedIn: 'root'
@@ -915,7 +924,17 @@
915
924
  if (!req.url.includes(this.environment.api_uri) || !username) {
916
925
  return req;
917
926
  }
918
- var params = new i1.HttpParams({ fromString: req.params.toString() }).set('_switch_user', username);
927
+ var params = new i1.HttpParams({
928
+ fromString: req.params.toString(),
929
+ // custom encoder to encode '+' symbol and other (Problem: TT-2359)
930
+ // https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
931
+ encoder: {
932
+ encodeKey: function (key) { return encodeURIComponent(key); },
933
+ encodeValue: function (value) { return encodeURIComponent(value); },
934
+ decodeKey: function (key) { return decodeURIComponent(key); },
935
+ decodeValue: function (value) { return decodeURIComponent(value); }
936
+ }
937
+ }).set('_switch_user', username);
919
938
  return req.clone({ params: params });
920
939
  // @TODO move to header solution when backend can support it
921
940
  // return req.clone({
@@ -929,9 +948,9 @@
929
948
  };
930
949
  return UserSwitcherInterceptor;
931
950
  }());
932
- 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 });
933
- UserSwitcherInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherInterceptor });
934
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserSwitcherInterceptor, decorators: [{
951
+ 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 });
952
+ UserSwitcherInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherInterceptor });
953
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserSwitcherInterceptor, decorators: [{
935
954
  type: i0.Injectable
936
955
  }], ctorParameters: function () {
937
956
  return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
@@ -1178,9 +1197,9 @@
1178
1197
  };
1179
1198
  return PreloaderService;
1180
1199
  }());
1181
- PreloaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1182
- PreloaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, providedIn: 'root' });
1183
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderService, decorators: [{
1200
+ PreloaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1201
+ PreloaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, providedIn: 'root' });
1202
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderService, decorators: [{
1184
1203
  type: i0.Injectable,
1185
1204
  args: [{
1186
1205
  providedIn: 'root'
@@ -1210,9 +1229,9 @@
1210
1229
  };
1211
1230
  return PreloaderInterceptor;
1212
1231
  }());
1213
- 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 });
1214
- PreloaderInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderInterceptor });
1215
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreloaderInterceptor, decorators: [{
1232
+ 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 });
1233
+ PreloaderInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderInterceptor });
1234
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreloaderInterceptor, decorators: [{
1216
1235
  type: i0.Injectable
1217
1236
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
1218
1237
 
@@ -1331,9 +1350,9 @@
1331
1350
  };
1332
1351
  return ToastService;
1333
1352
  }());
1334
- ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1335
- ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
1336
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, decorators: [{
1353
+ ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1354
+ ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
1355
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastService, decorators: [{
1337
1356
  type: i0.Injectable,
1338
1357
  args: [{
1339
1358
  providedIn: 'root'
@@ -1559,9 +1578,9 @@
1559
1578
  RestService.prototype.listenEvents = function () { };
1560
1579
  return RestService;
1561
1580
  }());
1562
- RestService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService$1, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1563
- RestService$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService$1, providedIn: 'root' });
1564
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService$1, decorators: [{
1581
+ RestService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService$1, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1582
+ RestService$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService$1, providedIn: 'root' });
1583
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService$1, decorators: [{
1565
1584
  type: i0.Injectable,
1566
1585
  args: [{
1567
1586
  providedIn: 'root'
@@ -3465,6 +3484,92 @@
3465
3484
  ]
3466
3485
  };
3467
3486
 
3487
+ exports.ChartAccountsTaxLabelsEnum = void 0;
3488
+ (function (ChartAccountsTaxLabelsEnum) {
3489
+ ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
3490
+ ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
3491
+ ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
3492
+ })(exports.ChartAccountsTaxLabelsEnum || (exports.ChartAccountsTaxLabelsEnum = {}));
3493
+
3494
+ function enumToList(data) {
3495
+ var list = [];
3496
+ for (var key in data) {
3497
+ if (Number(key) >= 0) {
3498
+ list.push({
3499
+ label: data[key],
3500
+ value: Number(key)
3501
+ });
3502
+ }
3503
+ }
3504
+ return list;
3505
+ }
3506
+
3507
+ exports.ChartAccountsHeadingTaxableEnum = void 0;
3508
+ (function (ChartAccountsHeadingTaxableEnum) {
3509
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
3510
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
3511
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
3512
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
3513
+ })(exports.ChartAccountsHeadingTaxableEnum || (exports.ChartAccountsHeadingTaxableEnum = {}));
3514
+
3515
+ exports.ChartAccountsHeadingTaxDeductibleEnum = void 0;
3516
+ (function (ChartAccountsHeadingTaxDeductibleEnum) {
3517
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
3518
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
3519
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
3520
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
3521
+ })(exports.ChartAccountsHeadingTaxDeductibleEnum || (exports.ChartAccountsHeadingTaxDeductibleEnum = {}));
3522
+
3523
+ exports.ChartAccountsHeadingListEnum = void 0;
3524
+ (function (ChartAccountsHeadingListEnum) {
3525
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
3526
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
3527
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
3528
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
3529
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
3530
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
3531
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
3532
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
3533
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
3534
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
3535
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
3536
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
3537
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
3538
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
3539
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
3540
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
3541
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
3542
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
3543
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
3544
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
3545
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
3546
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
3547
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
3548
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
3549
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
3550
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
3551
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
3552
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
3553
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
3554
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
3555
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
3556
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
3557
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
3558
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
3559
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
3560
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
3561
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
3562
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
3563
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
3564
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
3565
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
3566
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
3567
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
3568
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
3569
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
3570
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
3571
+ })(exports.ChartAccountsHeadingListEnum || (exports.ChartAccountsHeadingListEnum = {}));
3572
+
3468
3573
  var ChartAccounts = /** @class */ (function (_super) {
3469
3574
  __extends(ChartAccounts, _super);
3470
3575
  function ChartAccounts() {
@@ -3619,6 +3724,37 @@
3619
3724
  ChartAccounts.prototype.isClaimPercentEditable = function () {
3620
3725
  return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
3621
3726
  };
3727
+ /**
3728
+ * get label for transaction tax field depended on selected chart account.
3729
+ * tax type depends on chart account heading or category.
3730
+ */
3731
+ ChartAccounts.prototype.getTaxLabel = function () {
3732
+ var _a, _b;
3733
+ // get simple array of ids from enum with taxable chart accounts headings
3734
+ var taxableCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxableEnum)
3735
+ .map(function (item) { return item.value; });
3736
+ // get simple array of ids from enum with tax-deductible chart accounts headings
3737
+ var deductibleCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxDeductibleEnum)
3738
+ .map(function (item) { return item.value; });
3739
+ // check if one of ids arrays includes current chart accounts heading id and set tax label
3740
+ // otherwise label is empty for this class
3741
+ switch (true) {
3742
+ case taxableCAHeadingsIds.includes((_a = this.heading) === null || _a === void 0 ? void 0 : _a.id):
3743
+ return exports.ChartAccountsTaxLabelsEnum.TAX_PAID;
3744
+ case deductibleCAHeadingsIds.includes((_b = this.heading) === null || _b === void 0 ? void 0 : _b.id):
3745
+ return exports.ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
3746
+ case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
3747
+ return exports.ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
3748
+ default:
3749
+ return null;
3750
+ }
3751
+ };
3752
+ ChartAccounts.prototype.isETP = function () {
3753
+ return this.heading.id === exports.ChartAccountsHeadingListEnum.ETP;
3754
+ };
3755
+ ChartAccounts.prototype.isSalary = function () {
3756
+ return this.id === exports.ChartAccountsListEnum.SALARY_OR_WAGES;
3757
+ };
3622
3758
  return ChartAccounts;
3623
3759
  }(ChartAccounts$1));
3624
3760
  /**
@@ -3844,6 +3980,103 @@
3844
3980
  return TransactionReceipt;
3845
3981
  }(TransactionReceipt$1));
3846
3982
 
3983
+ /**
3984
+ * @TODO Alex/Vik: think and create some new collection type
3985
+ * @TODO Alex: research all constants and make the same structure
3986
+ */
3987
+ var ChartAccountsCategoryECollection = /** @class */ (function () {
3988
+ function ChartAccountsCategoryECollection(items) {
3989
+ this.items = items || [
3990
+ exports.ChartAccountsCategoryEnum.PROPERTY_INCOME,
3991
+ exports.ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
3992
+ exports.ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
3993
+ exports.ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
3994
+ exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION,
3995
+ exports.ChartAccountsCategoryEnum.WORK_INCOME,
3996
+ exports.ChartAccountsCategoryEnum.WORK_EXPENSE,
3997
+ exports.ChartAccountsCategoryEnum.OTHER_INCOME,
3998
+ exports.ChartAccountsCategoryEnum.OTHER_EXPENSE,
3999
+ exports.ChartAccountsCategoryEnum.PERSONAL_INCOME,
4000
+ exports.ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
4001
+ exports.ChartAccountsCategoryEnum.SOLE_INCOME,
4002
+ exports.ChartAccountsCategoryEnum.SOLE_EXPENSE,
4003
+ exports.ChartAccountsCategoryEnum.SOLE_DEPRECIATION
4004
+ ];
4005
+ }
4006
+ ChartAccountsCategoryECollection.prototype.getByType = function (types) {
4007
+ var _this = this;
4008
+ if (!Array.isArray(types)) {
4009
+ types = [types];
4010
+ }
4011
+ var items = [];
4012
+ types.forEach(function (type) {
4013
+ var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(type.toUpperCase()); });
4014
+ items.push.apply(items, __spreadArray([], __read(filtered)));
4015
+ });
4016
+ return new ChartAccountsCategoryECollection(items);
4017
+ };
4018
+ ChartAccountsCategoryECollection.prototype.getByTankType = function (tankTypes) {
4019
+ var _this = this;
4020
+ if (!Array.isArray(tankTypes)) {
4021
+ tankTypes = [tankTypes];
4022
+ }
4023
+ var items = [];
4024
+ tankTypes.forEach(function (tankType) {
4025
+ var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()); });
4026
+ items.push.apply(items, __spreadArray([], __read(filtered)));
4027
+ });
4028
+ return new ChartAccountsCategoryECollection(items);
4029
+ };
4030
+ return ChartAccountsCategoryECollection;
4031
+ }());
4032
+
4033
+ var ChartAccountsDepreciation$1 = /** @class */ (function (_super) {
4034
+ __extends(ChartAccountsDepreciation, _super);
4035
+ function ChartAccountsDepreciation() {
4036
+ return _super !== null && _super.apply(this, arguments) || this;
4037
+ }
4038
+ return ChartAccountsDepreciation;
4039
+ }(AbstractModel));
4040
+
4041
+ var ChartAccountsDepreciation = /** @class */ (function (_super) {
4042
+ __extends(ChartAccountsDepreciation, _super);
4043
+ function ChartAccountsDepreciation() {
4044
+ return _super !== null && _super.apply(this, arguments) || this;
4045
+ }
4046
+ return ChartAccountsDepreciation;
4047
+ }(ChartAccountsDepreciation$1));
4048
+ __decorate([
4049
+ classTransformer.Type(function () { return ChartAccounts; })
4050
+ ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
4051
+ __decorate([
4052
+ classTransformer.Transform(function (_a) {
4053
+ var value = _a.value;
4054
+ return +value;
4055
+ })
4056
+ ], ChartAccountsDepreciation.prototype, "limit", void 0);
4057
+ __decorate([
4058
+ classTransformer.Transform(function (_a) {
4059
+ var value = _a.value;
4060
+ return +value;
4061
+ })
4062
+ ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
4063
+
4064
+ var ChartAccountsValue$1 = /** @class */ (function (_super) {
4065
+ __extends(ChartAccountsValue, _super);
4066
+ function ChartAccountsValue() {
4067
+ return _super !== null && _super.apply(this, arguments) || this;
4068
+ }
4069
+ return ChartAccountsValue;
4070
+ }(AbstractModel));
4071
+
4072
+ var ChartAccountsValue = /** @class */ (function (_super) {
4073
+ __extends(ChartAccountsValue, _super);
4074
+ function ChartAccountsValue() {
4075
+ return _super !== null && _super.apply(this, arguments) || this;
4076
+ }
4077
+ return ChartAccountsValue;
4078
+ }(ChartAccountsValue$1));
4079
+
3847
4080
  var IncomeSource$1 = /** @class */ (function (_super) {
3848
4081
  __extends(IncomeSource, _super);
3849
4082
  function IncomeSource() {
@@ -3872,6 +4105,13 @@
3872
4105
  function SalaryForecast() {
3873
4106
  return _super !== null && _super.apply(this, arguments) || this;
3874
4107
  }
4108
+ Object.defineProperty(SalaryForecast.prototype, "taxWithheld", {
4109
+ get: function () {
4110
+ return this.grossAmount - this.netPay;
4111
+ },
4112
+ enumerable: false,
4113
+ configurable: true
4114
+ });
3875
4115
  return SalaryForecast;
3876
4116
  }(SalaryForecast$1));
3877
4117
  __decorate([
@@ -5132,6 +5372,7 @@
5132
5372
  return VehicleLogbook;
5133
5373
  }(AbstractModel));
5134
5374
 
5375
+ // problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
5135
5376
  var moment = momentRange.extendMoment(moment__namespace);
5136
5377
  var VehicleLogbook = /** @class */ (function (_super) {
5137
5378
  __extends(VehicleLogbook, _super);
@@ -7535,6 +7776,29 @@
7535
7776
  return Document;
7536
7777
  }(Document$1));
7537
7778
 
7779
+ var DOCUMENT_FILE_TYPES = {
7780
+ image: [
7781
+ 'image/png',
7782
+ 'image/jpg',
7783
+ 'image/jpeg',
7784
+ 'image/tiff',
7785
+ 'image/bmp'
7786
+ ],
7787
+ all: [
7788
+ 'image/png',
7789
+ 'image/jpg',
7790
+ 'image/jpeg',
7791
+ 'image/tiff',
7792
+ 'image/bmp',
7793
+ 'application/msword',
7794
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
7795
+ 'application/pdf',
7796
+ 'application/vnd.ms-excel',
7797
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
7798
+ 'text/csv'
7799
+ ]
7800
+ };
7801
+
7538
7802
  var DocumentFolder$1 = /** @class */ (function (_super) {
7539
7803
  __extends(DocumentFolder, _super);
7540
7804
  function DocumentFolder() {
@@ -7554,6 +7818,23 @@
7554
7818
  classTransformer.Type(function () { return Document; })
7555
7819
  ], DocumentFolder.prototype, "documents", void 0);
7556
7820
 
7821
+ /**
7822
+ * Enum with income amount types (Net or Gross)
7823
+ */
7824
+ exports.IncomeAmountTypeEnum = void 0;
7825
+ (function (IncomeAmountTypeEnum) {
7826
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
7827
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
7828
+ })(exports.IncomeAmountTypeEnum || (exports.IncomeAmountTypeEnum = {}));
7829
+
7830
+ exports.TransactionCategoryEnum = void 0;
7831
+ (function (TransactionCategoryEnum) {
7832
+ TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
7833
+ TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
7834
+ TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
7835
+ TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
7836
+ })(exports.TransactionCategoryEnum || (exports.TransactionCategoryEnum = {}));
7837
+
7557
7838
  /**
7558
7839
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
7559
7840
  * service handles BankConnection management
@@ -7647,9 +7928,9 @@
7647
7928
  UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
7648
7929
  UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
7649
7930
  ];
7650
- 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 });
7651
- BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
7652
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
7931
+ 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 });
7932
+ BankConnectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankConnectionService, providedIn: 'root' });
7933
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankConnectionService, decorators: [{
7653
7934
  type: i0.Injectable,
7654
7935
  args: [{
7655
7936
  providedIn: 'root'
@@ -7772,9 +8053,9 @@
7772
8053
  * Basiq does not provide a hook, so we have to check job status manually every x seconds
7773
8054
  */
7774
8055
  BasiqService.bankCredintialsCheckInterval = 3000;
7775
- 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 });
7776
- BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
7777
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, decorators: [{
8056
+ 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 });
8057
+ BasiqService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqService, providedIn: 'root' });
8058
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqService, decorators: [{
7778
8059
  type: i0.Injectable,
7779
8060
  args: [{
7780
8061
  providedIn: 'root'
@@ -7812,9 +8093,9 @@
7812
8093
  };
7813
8094
  return BasiqTokenService;
7814
8095
  }());
7815
- 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 });
7816
- BasiqTokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenService, providedIn: 'root' });
7817
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenService, decorators: [{
8096
+ 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 });
8097
+ BasiqTokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenService, providedIn: 'root' });
8098
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenService, decorators: [{
7818
8099
  type: i0.Injectable,
7819
8100
  args: [{
7820
8101
  providedIn: 'root'
@@ -7852,9 +8133,9 @@
7852
8133
  };
7853
8134
  return BasiqTokenInterceptor;
7854
8135
  }());
7855
- BasiqTokenInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
7856
- BasiqTokenInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenInterceptor });
7857
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqTokenInterceptor, decorators: [{
8136
+ BasiqTokenInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8137
+ BasiqTokenInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenInterceptor });
8138
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqTokenInterceptor, decorators: [{
7858
8139
  type: i0.Injectable
7859
8140
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
7860
8141
 
@@ -7892,9 +8173,9 @@
7892
8173
  };
7893
8174
  return SseService;
7894
8175
  }());
7895
- 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 });
7896
- SseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SseService, providedIn: 'root' });
7897
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SseService, decorators: [{
8176
+ 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 });
8177
+ SseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SseService, providedIn: 'root' });
8178
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SseService, decorators: [{
7898
8179
  type: i0.Injectable,
7899
8180
  args: [{
7900
8181
  providedIn: 'root'
@@ -8071,9 +8352,9 @@
8071
8352
  };
8072
8353
  return UserService;
8073
8354
  }());
8074
- 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 });
8075
- UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
8076
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserService, decorators: [{
8355
+ 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 });
8356
+ UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
8357
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserService, decorators: [{
8077
8358
  type: i0.Injectable,
8078
8359
  args: [{
8079
8360
  providedIn: 'root'
@@ -8107,9 +8388,9 @@
8107
8388
  };
8108
8389
  return BasiqClientIdInterceptor;
8109
8390
  }());
8110
- BasiqClientIdInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8111
- BasiqClientIdInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqClientIdInterceptor });
8112
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqClientIdInterceptor, decorators: [{
8391
+ BasiqClientIdInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
8392
+ BasiqClientIdInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqClientIdInterceptor });
8393
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasiqClientIdInterceptor, decorators: [{
8113
8394
  type: i0.Injectable
8114
8395
  }], ctorParameters: function () { return [{ type: UserService }]; } });
8115
8396
 
@@ -8118,9 +8399,9 @@
8118
8399
  }
8119
8400
  return InterceptorsModule;
8120
8401
  }());
8121
- InterceptorsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
8122
- InterceptorsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule });
8123
- InterceptorsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, providers: [
8402
+ InterceptorsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
8403
+ InterceptorsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule });
8404
+ InterceptorsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, providers: [
8124
8405
  {
8125
8406
  provide: i1.HTTP_INTERCEPTORS,
8126
8407
  useClass: CorelogicInterceptor,
@@ -8158,7 +8439,7 @@
8158
8439
  multi: true
8159
8440
  }
8160
8441
  ] });
8161
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: InterceptorsModule, decorators: [{
8442
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InterceptorsModule, decorators: [{
8162
8443
  type: i0.NgModule,
8163
8444
  args: [{
8164
8445
  providers: [
@@ -8219,14 +8500,14 @@
8219
8500
  };
8220
8501
  return TtCoreModule;
8221
8502
  }());
8222
- TtCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
8223
- TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [i1$1.CommonModule,
8503
+ TtCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
8504
+ TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, imports: [i1$1.CommonModule,
8224
8505
  InterceptorsModule] });
8225
- TtCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [[
8506
+ TtCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, imports: [[
8226
8507
  i1$1.CommonModule,
8227
8508
  InterceptorsModule
8228
8509
  ]] });
8229
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, decorators: [{
8510
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TtCoreModule, decorators: [{
8230
8511
  type: i0.NgModule,
8231
8512
  args: [{
8232
8513
  declarations: [],
@@ -9571,56 +9852,6 @@
9571
9852
  return ClientInviteCollection;
9572
9853
  }(Collection));
9573
9854
 
9574
- /**
9575
- * @TODO Alex/Vik: think and create some new collection type
9576
- * @TODO Alex: research all constants and make the same structure
9577
- */
9578
- var ChartAccountsCategoryECollection = /** @class */ (function () {
9579
- function ChartAccountsCategoryECollection(items) {
9580
- this.items = items || [
9581
- exports.ChartAccountsCategoryEnum.PROPERTY_INCOME,
9582
- exports.ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
9583
- exports.ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
9584
- exports.ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
9585
- exports.ChartAccountsCategoryEnum.WORK_DEPRECIATION,
9586
- exports.ChartAccountsCategoryEnum.WORK_INCOME,
9587
- exports.ChartAccountsCategoryEnum.WORK_EXPENSE,
9588
- exports.ChartAccountsCategoryEnum.OTHER_INCOME,
9589
- exports.ChartAccountsCategoryEnum.OTHER_EXPENSE,
9590
- exports.ChartAccountsCategoryEnum.PERSONAL_INCOME,
9591
- exports.ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
9592
- exports.ChartAccountsCategoryEnum.SOLE_INCOME,
9593
- exports.ChartAccountsCategoryEnum.SOLE_EXPENSE,
9594
- exports.ChartAccountsCategoryEnum.SOLE_DEPRECIATION
9595
- ];
9596
- }
9597
- ChartAccountsCategoryECollection.prototype.getByType = function (types) {
9598
- var _this = this;
9599
- if (!Array.isArray(types)) {
9600
- types = [types];
9601
- }
9602
- var items = [];
9603
- types.forEach(function (type) {
9604
- var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(type.toUpperCase()); });
9605
- items.push.apply(items, __spreadArray([], __read(filtered)));
9606
- });
9607
- return new ChartAccountsCategoryECollection(items);
9608
- };
9609
- ChartAccountsCategoryECollection.prototype.getByTankType = function (tankTypes) {
9610
- var _this = this;
9611
- if (!Array.isArray(tankTypes)) {
9612
- tankTypes = [tankTypes];
9613
- }
9614
- var items = [];
9615
- tankTypes.forEach(function (tankType) {
9616
- var filtered = _this.items.filter(function (item) { return exports.ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()); });
9617
- items.push.apply(items, __spreadArray([], __read(filtered)));
9618
- });
9619
- return new ChartAccountsCategoryECollection(items);
9620
- };
9621
- return ChartAccountsCategoryECollection;
9622
- }());
9623
-
9624
9855
  exports.DocumentTypeEnum = void 0;
9625
9856
  (function (DocumentTypeEnum) {
9626
9857
  DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
@@ -9635,6 +9866,23 @@
9635
9866
  AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
9636
9867
  })(exports.AnnualFrequencyEnum || (exports.AnnualFrequencyEnum = {}));
9637
9868
 
9869
+ exports.ChartAccountsSalaryAdjustmentsListEnum = void 0;
9870
+ (function (ChartAccountsSalaryAdjustmentsListEnum) {
9871
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
9872
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TIPS"] = 5] = "TIPS";
9873
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
9874
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ADVANCE"] = 556] = "ADVANCE";
9875
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["POST_TAX_DEDUCTIONS_OTHER"] = 644] = "POST_TAX_DEDUCTIONS_OTHER";
9876
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PRE_TAX_DEDUCTIONS_OTHER"] = 645] = "PRE_TAX_DEDUCTIONS_OTHER";
9877
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
9878
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
9879
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
9880
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
9881
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
9882
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["LAFH"] = 651] = "LAFH";
9883
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
9884
+ })(exports.ChartAccountsSalaryAdjustmentsListEnum || (exports.ChartAccountsSalaryAdjustmentsListEnum = {}));
9885
+
9638
9886
  // @TODO Artem TT-2308 move everything
9639
9887
 
9640
9888
  exports.ChartAccountsEtpEnum = void 0;
@@ -9646,72 +9894,6 @@
9646
9894
  ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
9647
9895
  })(exports.ChartAccountsEtpEnum || (exports.ChartAccountsEtpEnum = {}));
9648
9896
 
9649
- exports.ChartAccountsHeadingListEnum = void 0;
9650
- (function (ChartAccountsHeadingListEnum) {
9651
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
9652
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
9653
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
9654
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
9655
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
9656
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
9657
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
9658
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
9659
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
9660
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
9661
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
9662
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
9663
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
9664
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
9665
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
9666
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
9667
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
9668
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
9669
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
9670
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
9671
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
9672
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
9673
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
9674
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
9675
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
9676
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
9677
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
9678
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
9679
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
9680
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
9681
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
9682
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
9683
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
9684
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
9685
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
9686
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
9687
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
9688
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
9689
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
9690
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
9691
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
9692
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
9693
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
9694
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
9695
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
9696
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
9697
- })(exports.ChartAccountsHeadingListEnum || (exports.ChartAccountsHeadingListEnum = {}));
9698
-
9699
- exports.ChartAccountsHeadingTaxableEnum = void 0;
9700
- (function (ChartAccountsHeadingTaxableEnum) {
9701
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
9702
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
9703
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
9704
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
9705
- })(exports.ChartAccountsHeadingTaxableEnum || (exports.ChartAccountsHeadingTaxableEnum = {}));
9706
-
9707
- exports.ChartAccountsHeadingTaxDeductibleEnum = void 0;
9708
- (function (ChartAccountsHeadingTaxDeductibleEnum) {
9709
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
9710
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
9711
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
9712
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
9713
- })(exports.ChartAccountsHeadingTaxDeductibleEnum || (exports.ChartAccountsHeadingTaxDeductibleEnum = {}));
9714
-
9715
9897
  exports.ChartAccountsMetadataTypeEnum = void 0;
9716
9898
  (function (ChartAccountsMetadataTypeEnum) {
9717
9899
  ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
@@ -10184,60 +10366,6 @@
10184
10366
  return BorrowingExpenseLoan;
10185
10367
  }(BorrowingExpenseLoan$1));
10186
10368
 
10187
- var ChartAccountsDepreciation$1 = /** @class */ (function (_super) {
10188
- __extends(ChartAccountsDepreciation, _super);
10189
- function ChartAccountsDepreciation() {
10190
- return _super !== null && _super.apply(this, arguments) || this;
10191
- }
10192
- return ChartAccountsDepreciation;
10193
- }(AbstractModel));
10194
-
10195
- var ChartAccountsDepreciation = /** @class */ (function (_super) {
10196
- __extends(ChartAccountsDepreciation, _super);
10197
- function ChartAccountsDepreciation() {
10198
- return _super !== null && _super.apply(this, arguments) || this;
10199
- }
10200
- return ChartAccountsDepreciation;
10201
- }(ChartAccountsDepreciation$1));
10202
- __decorate([
10203
- classTransformer.Type(function () { return ChartAccounts; })
10204
- ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
10205
- __decorate([
10206
- classTransformer.Transform(function (_a) {
10207
- var value = _a.value;
10208
- return +value;
10209
- })
10210
- ], ChartAccountsDepreciation.prototype, "limit", void 0);
10211
- __decorate([
10212
- classTransformer.Transform(function (_a) {
10213
- var value = _a.value;
10214
- return +value;
10215
- })
10216
- ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
10217
-
10218
- exports.ChartAccountsTaxLabelsEnum = void 0;
10219
- (function (ChartAccountsTaxLabelsEnum) {
10220
- ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
10221
- ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
10222
- ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
10223
- })(exports.ChartAccountsTaxLabelsEnum || (exports.ChartAccountsTaxLabelsEnum = {}));
10224
-
10225
- var ChartAccountsValue$1 = /** @class */ (function (_super) {
10226
- __extends(ChartAccountsValue, _super);
10227
- function ChartAccountsValue() {
10228
- return _super !== null && _super.apply(this, arguments) || this;
10229
- }
10230
- return ChartAccountsValue;
10231
- }(AbstractModel));
10232
-
10233
- var ChartAccountsValue = /** @class */ (function (_super) {
10234
- __extends(ChartAccountsValue, _super);
10235
- function ChartAccountsValue() {
10236
- return _super !== null && _super.apply(this, arguments) || this;
10237
- }
10238
- return ChartAccountsValue;
10239
- }(ChartAccountsValue$1));
10240
-
10241
10369
  var Chat$1 = /** @class */ (function (_super) {
10242
10370
  __extends(Chat, _super);
10243
10371
  function Chat() {
@@ -10713,29 +10841,6 @@
10713
10841
  return DepreciationReceipt;
10714
10842
  }(DepreciationReceipt$1));
10715
10843
 
10716
- var DOCUMENT_FILE_TYPES = {
10717
- image: [
10718
- 'image/png',
10719
- 'image/jpg',
10720
- 'image/jpeg',
10721
- 'image/tiff',
10722
- 'image/bmp'
10723
- ],
10724
- all: [
10725
- 'image/png',
10726
- 'image/jpg',
10727
- 'image/jpeg',
10728
- 'image/tiff',
10729
- 'image/bmp',
10730
- 'application/msword',
10731
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
10732
- 'application/pdf',
10733
- 'application/vnd.ms-excel',
10734
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
10735
- 'text/csv'
10736
- ]
10737
- };
10738
-
10739
10844
  var EmployeeInvite$1 = /** @class */ (function (_super) {
10740
10845
  __extends(EmployeeInvite, _super);
10741
10846
  function EmployeeInvite() {
@@ -12505,23 +12610,6 @@
12505
12610
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
12506
12611
  })(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
12507
12612
 
12508
- /**
12509
- * Enum with income amount types (Net or Gross)
12510
- */
12511
- exports.IncomeAmountTypeEnum = void 0;
12512
- (function (IncomeAmountTypeEnum) {
12513
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
12514
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
12515
- })(exports.IncomeAmountTypeEnum || (exports.IncomeAmountTypeEnum = {}));
12516
-
12517
- exports.TransactionCategoryEnum = void 0;
12518
- (function (TransactionCategoryEnum) {
12519
- TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
12520
- TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
12521
- TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
12522
- TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
12523
- })(exports.TransactionCategoryEnum || (exports.TransactionCategoryEnum = {}));
12524
-
12525
12613
  var MyAccountHistory = /** @class */ (function () {
12526
12614
  function MyAccountHistory() {
12527
12615
  }
@@ -12672,9 +12760,9 @@
12672
12760
  };
12673
12761
  return AddressService;
12674
12762
  }());
12675
- 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 });
12676
- AddressService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, providedIn: 'root' });
12677
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, decorators: [{
12763
+ 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 });
12764
+ AddressService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AddressService, providedIn: 'root' });
12765
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AddressService, decorators: [{
12678
12766
  type: i0.Injectable,
12679
12767
  args: [{
12680
12768
  providedIn: 'root'
@@ -12789,9 +12877,9 @@
12789
12877
  };
12790
12878
  return BankAccountService;
12791
12879
  }(RestService$1));
12792
- 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 });
12793
- BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
12794
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, decorators: [{
12880
+ 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 });
12881
+ BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
12882
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountService, decorators: [{
12795
12883
  type: i0.Injectable,
12796
12884
  args: [{
12797
12885
  providedIn: 'root'
@@ -12877,9 +12965,9 @@
12877
12965
  };
12878
12966
  return BankTransactionService;
12879
12967
  }(RestService$1));
12880
- 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 });
12881
- BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
12882
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
12968
+ 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 });
12969
+ BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
12970
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionService, decorators: [{
12883
12971
  type: i0.Injectable,
12884
12972
  args: [{
12885
12973
  providedIn: 'root'
@@ -12887,30 +12975,265 @@
12887
12975
  }] });
12888
12976
 
12889
12977
  /**
12890
- * Service that handling banks logic
12978
+ * Abstract base service that implements common services functionality
12979
+ * and describe abstract methods/properties that have to be implemented in child services
12980
+ * Model - entity service is working with
12981
+ * BaseModel - base entity model that extends by Model
12982
+ * CollectionModel - entity collection class
12891
12983
  */
12892
- var BankService = /** @class */ (function (_super) {
12893
- __extends(BankService, _super);
12894
- function BankService() {
12895
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
12896
- _this.modelClass = Bank;
12897
- _this.url = 'banks';
12898
- _this.isHydra = true;
12899
- return _this;
12984
+ var RestService = /** @class */ (function () {
12985
+ function RestService(http, eventDispatcherService, environment) {
12986
+ this.http = http;
12987
+ this.eventDispatcherService = eventDispatcherService;
12988
+ this.environment = environment;
12989
+ /**
12990
+ * Subject for service cache
12991
+ */
12992
+ this.cacheSubject = new rxjs.ReplaySubject(1);
12993
+ /**
12994
+ * List of methods unavailable for current API
12995
+ */
12996
+ this.disabledMethods = [];
12997
+ this.listenEvents();
12900
12998
  }
12901
- BankService.prototype.get = function () {
12902
- return _super.prototype.get.call(this).pipe(operators.map(function (banks) {
12903
- // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
12904
- return banks.filter(function (bank) { return bank.isManual || (bank.externalId && bank.loginFields); });
12905
- }));
12999
+ Object.defineProperty(RestService.prototype, "apiUrl", {
13000
+ get: function () {
13001
+ return this.environment.apiV2 + "/" + this.entityUrl;
13002
+ },
13003
+ enumerable: false,
13004
+ configurable: true
13005
+ });
13006
+ RestService.prototype.get = function () {
13007
+ this.handleAccessError('get');
13008
+ // Set cache as empty collection to avoid multiple requests before cache filled
13009
+ if (!this.cache) {
13010
+ this.cache = this.createCollectionInstance(this.collectionClass, []);
13011
+ this.resetCache();
13012
+ }
13013
+ return this.cacheSubject.asObservable();
12906
13014
  };
12907
- return BankService;
12908
- }(RestService$1));
12909
- 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 });
12910
- BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
12911
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, decorators: [{
12912
- type: i0.Injectable,
12913
- args: [{
13015
+ ;
13016
+ RestService.prototype.getSingle = function () {
13017
+ this.handleAccessError('get');
13018
+ return this.get().pipe(operators.map(function (collection) { return collection.first; }));
13019
+ };
13020
+ /**
13021
+ * Create a new Model instance in database
13022
+ */
13023
+ RestService.prototype.post = function (model) {
13024
+ var _this = this;
13025
+ this.handleAccessError('post');
13026
+ return this.http.post(this.apiUrl, model)
13027
+ .pipe(operators.map(function (response) {
13028
+ var result = _this.createModelInstance(_this.modelClass, response);
13029
+ _this.handleResponse([result], 'post');
13030
+ return result;
13031
+ }));
13032
+ };
13033
+ /**
13034
+ * Create multiple new Model instances in database
13035
+ */
13036
+ RestService.prototype.postBatch = function (models) {
13037
+ var _this = this;
13038
+ this.handleAccessError('postBatch');
13039
+ return this.http.post(this.apiUrl, models)
13040
+ .pipe(operators.map(function (response) {
13041
+ var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
13042
+ _this.handleResponse(result, 'post');
13043
+ return result;
13044
+ }));
13045
+ };
13046
+ /**
13047
+ * Change an existing Model instance in database
13048
+ */
13049
+ RestService.prototype.put = function (model) {
13050
+ var _this = this;
13051
+ this.handleAccessError('put');
13052
+ return this.http.put(this.apiUrl + "/" + model.id, model)
13053
+ .pipe(operators.map(function (response) {
13054
+ var result = _this.createModelInstance(_this.modelClass, response);
13055
+ _this.handleResponse([result], 'put');
13056
+ return result;
13057
+ }));
13058
+ };
13059
+ /**
13060
+ * Change multiple existing Model instances in database
13061
+ */
13062
+ RestService.prototype.putBatch = function (models) {
13063
+ var _this = this;
13064
+ this.handleAccessError('putBatch');
13065
+ return this.http.put(this.apiUrl, models)
13066
+ .pipe(operators.map(function (response) {
13067
+ var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
13068
+ _this.handleResponse(result, 'put');
13069
+ return result;
13070
+ }));
13071
+ };
13072
+ /**
13073
+ * Remove a Model instance from database
13074
+ */
13075
+ RestService.prototype.delete = function (model) {
13076
+ var _this = this;
13077
+ this.handleAccessError('delete');
13078
+ return this.http.delete(this.apiUrl + "/" + model.id)
13079
+ .pipe(operators.map(function () {
13080
+ _this.handleResponse([model], 'delete');
13081
+ }));
13082
+ };
13083
+ /**
13084
+ * Remove multiple Model instances from database
13085
+ */
13086
+ RestService.prototype.deleteBatch = function (models) {
13087
+ var _this = this;
13088
+ this.handleAccessError('deleteBatch');
13089
+ return this.http.post(this.apiUrl + "/delete", models)
13090
+ .pipe(operators.map(function () {
13091
+ _this.handleResponse(models, 'delete');
13092
+ }));
13093
+ };
13094
+ /**
13095
+ * Refresh cache with actual backend data
13096
+ */
13097
+ RestService.prototype.resetCache = function () {
13098
+ this.fetch()
13099
+ .pipe(operators.first())
13100
+ .subscribe();
13101
+ };
13102
+ /**
13103
+ * Get data from backend and fill the cache
13104
+ */
13105
+ RestService.prototype.fetch = function () {
13106
+ var _this = this;
13107
+ return this.http.get(this.apiUrl)
13108
+ .pipe(operators.map(function (response) { return _this.isApiPlatform ? response['hydra:member'] : toArray(response); }), operators.map(function (response) {
13109
+ var items = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
13110
+ _this.cache = _this.createCollectionInstance(_this.collectionClass, items);
13111
+ _this.cacheSubject.next(_this.cache);
13112
+ return _this.cache;
13113
+ }));
13114
+ };
13115
+ ;
13116
+ /**
13117
+ * Handle response data - update cache and dispatch event if it is needed
13118
+ */
13119
+ RestService.prototype.handleResponse = function (response, method) {
13120
+ this.updateCache(response, method);
13121
+ // dispatch event for interested services
13122
+ if (response[0] instanceof ObservableModel) {
13123
+ this.dispatchEvent(method, response);
13124
+ }
13125
+ };
13126
+ /**
13127
+ * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
13128
+ */
13129
+ RestService.prototype.updateCache = function (items, method) {
13130
+ var _a;
13131
+ var _this = this;
13132
+ switch (method) {
13133
+ case 'post':
13134
+ this.cache = (_a = this.cache).push.apply(_a, __spreadArray([], __read(items)));
13135
+ break;
13136
+ case 'put':
13137
+ items.forEach(function (item) {
13138
+ _this.cache = _this.cache.replaceBy('id', item.id, item);
13139
+ });
13140
+ break;
13141
+ case 'delete':
13142
+ this.cache = this.cache.removeBy('id', items.map(function (item) { return item.id; }));
13143
+ }
13144
+ this.cacheSubject.next(this.cache);
13145
+ };
13146
+ /**
13147
+ * Generate and dispatch rest event
13148
+ */
13149
+ RestService.prototype.dispatchEvent = function (method, items) {
13150
+ var eventName = this.modelClass.getEventName(method);
13151
+ this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
13152
+ };
13153
+ /**
13154
+ * Create new instance of class
13155
+ * @param model The class whose instance to be created
13156
+ * @param plain Single object or array from which will be created model instance(s)
13157
+ */
13158
+ RestService.prototype.createModelInstance = function (model, plain) {
13159
+ // excludePrefixes - class-transformer option is using to ignore hydra fields
13160
+ return classTransformer.plainToClass(model, plain, { excludePrefixes: ['@'] });
13161
+ };
13162
+ RestService.prototype.createCollectionInstance = function (collectionClass, items) {
13163
+ return new collectionClass(items);
13164
+ };
13165
+ /**
13166
+ * Check if method is not disabled. Throw exception otherwise.
13167
+ * Some entities does not have endpoints for all methods.
13168
+ */
13169
+ RestService.prototype.handleAccessError = function (method) {
13170
+ if (!this.disabledMethods.includes(method)) {
13171
+ return;
13172
+ }
13173
+ throw new Error("Method " + method + "() is not allowed for " + this.constructor.name);
13174
+ };
13175
+ /**
13176
+ * Subscribe to http events and run callback
13177
+ * @param type The class whose changes should be listened for
13178
+ * @param methods The list of http methods should be listened for
13179
+ * @param callback The function to be called when event triggered
13180
+ */
13181
+ RestService.prototype.listenCSE = function (modelClass, methods, callback) {
13182
+ var _this = this;
13183
+ methods.forEach(function (method) {
13184
+ _this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe(function (data) {
13185
+ callback(data);
13186
+ });
13187
+ });
13188
+ };
13189
+ /**
13190
+ * Method that call all listeners. Empty by default. Should be redefined by child services if required
13191
+ */
13192
+ RestService.prototype.listenEvents = function () { };
13193
+ return RestService;
13194
+ }());
13195
+ 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' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13196
+ RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
13197
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RestService, decorators: [{
13198
+ type: i0.Injectable,
13199
+ args: [{
13200
+ providedIn: 'root'
13201
+ }]
13202
+ }], ctorParameters: function () {
13203
+ return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
13204
+ type: i0.Inject,
13205
+ args: ['environment']
13206
+ }] }];
13207
+ } });
13208
+
13209
+ /**
13210
+ * Service that handling banks logic
13211
+ */
13212
+ var BankService = /** @class */ (function (_super) {
13213
+ __extends(BankService, _super);
13214
+ function BankService() {
13215
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
13216
+ _this.modelClass = Bank;
13217
+ _this.collectionClass = Collection;
13218
+ _this.entityUrl = 'banks';
13219
+ _this.isApiPlatform = true;
13220
+ _this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
13221
+ return _this;
13222
+ }
13223
+ BankService.prototype.get = function () {
13224
+ return _super.prototype.get.call(this)
13225
+ .pipe(operators.map(function (banks) {
13226
+ // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
13227
+ return banks.filter(function (bank) { return bank.isManual || (!!bank.externalId && !!bank.loginFields); });
13228
+ }));
13229
+ };
13230
+ return BankService;
13231
+ }(RestService));
13232
+ 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 });
13233
+ BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
13234
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankService, decorators: [{
13235
+ type: i0.Injectable,
13236
+ args: [{
12914
13237
  providedIn: 'root'
12915
13238
  }]
12916
13239
  }] });
@@ -12941,9 +13264,9 @@
12941
13264
  };
12942
13265
  return ChartAccountsDepreciationService;
12943
13266
  }(RestService$1));
12944
- 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 });
12945
- ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
12946
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
13267
+ 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 });
13268
+ ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
13269
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsDepreciationService, decorators: [{
12947
13270
  type: i0.Injectable,
12948
13271
  args: [{
12949
13272
  providedIn: 'root'
@@ -12986,13 +13309,12 @@
12986
13309
  };
12987
13310
  /**
12988
13311
  * Get list of chart accounts heading
12989
- * @param categories
12990
13312
  */
12991
- ChartAccountsService.prototype.getChartAccountsHeadings = function (categories) {
13313
+ ChartAccountsService.prototype.getChartAccountsHeadings = function (categories, chartAccountsIds) {
12992
13314
  if (categories === void 0) { categories = CHART_ACCOUNTS_CATEGORIES.all; }
12993
13315
  return this.getChartAccounts()
12994
13316
  .pipe(operators.map(function (chartAccounts) {
12995
- var filteredChartAccounts = chartAccounts.filter(function (ca) { return categories.includes(ca.category); });
13317
+ var filteredChartAccounts = chartAccounts.filter(function (ca) { return categories.includes(ca.category) && (!chartAccountsIds || chartAccountsIds.includes(ca.id)); });
12996
13318
  var headings = [];
12997
13319
  filteredChartAccounts.forEach(function (ca) {
12998
13320
  var heading = headings.find(function (h) { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
@@ -13028,9 +13350,9 @@
13028
13350
  };
13029
13351
  return ChartAccountsService;
13030
13352
  }());
13031
- 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 });
13032
- ChartAccountsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, providedIn: 'root' });
13033
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, decorators: [{
13353
+ 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 });
13354
+ ChartAccountsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsService, providedIn: 'root' });
13355
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChartAccountsService, decorators: [{
13034
13356
  type: i0.Injectable,
13035
13357
  args: [{
13036
13358
  providedIn: 'root'
@@ -13082,9 +13404,9 @@
13082
13404
  };
13083
13405
  return MessageService;
13084
13406
  }(RestService$1));
13085
- 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 });
13086
- MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
13087
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, decorators: [{
13407
+ 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 });
13408
+ MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
13409
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageService, decorators: [{
13088
13410
  type: i0.Injectable,
13089
13411
  args: [{
13090
13412
  providedIn: 'root'
@@ -13198,9 +13520,9 @@
13198
13520
  };
13199
13521
  return MessageDocumentService;
13200
13522
  }());
13201
- 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 });
13202
- MessageDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, providedIn: 'root' });
13203
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, decorators: [{
13523
+ 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 });
13524
+ MessageDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageDocumentService, providedIn: 'root' });
13525
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageDocumentService, decorators: [{
13204
13526
  type: i0.Injectable,
13205
13527
  args: [{
13206
13528
  providedIn: 'root'
@@ -13281,9 +13603,9 @@
13281
13603
  };
13282
13604
  return ChatService;
13283
13605
  }(RestService$1));
13284
- 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 });
13285
- ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
13286
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, decorators: [{
13606
+ 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 });
13607
+ ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
13608
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChatService, decorators: [{
13287
13609
  type: i0.Injectable,
13288
13610
  args: [{
13289
13611
  providedIn: 'root'
@@ -13356,9 +13678,9 @@
13356
13678
  };
13357
13679
  return ReceiptService;
13358
13680
  }());
13359
- ReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13360
- ReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, providedIn: 'root' });
13361
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, decorators: [{
13681
+ ReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13682
+ ReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ReceiptService, providedIn: 'root' });
13683
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ReceiptService, decorators: [{
13362
13684
  type: i0.Injectable,
13363
13685
  args: [{
13364
13686
  providedIn: 'root'
@@ -13392,9 +13714,9 @@
13392
13714
  }
13393
13715
  return DepreciationReceiptService;
13394
13716
  }(ReceiptService));
13395
- DepreciationReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13396
- DepreciationReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, providedIn: 'root' });
13397
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, decorators: [{
13717
+ DepreciationReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13718
+ DepreciationReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationReceiptService, providedIn: 'root' });
13719
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationReceiptService, decorators: [{
13398
13720
  type: i0.Injectable,
13399
13721
  args: [{
13400
13722
  providedIn: 'root'
@@ -13560,9 +13882,9 @@
13560
13882
  };
13561
13883
  return DepreciationService;
13562
13884
  }(RestService$1));
13563
- DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13564
- DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
13565
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, decorators: [{
13885
+ DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13886
+ DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
13887
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationService, decorators: [{
13566
13888
  type: i0.Injectable,
13567
13889
  args: [{
13568
13890
  providedIn: 'root'
@@ -13621,9 +13943,9 @@
13621
13943
  };
13622
13944
  return DepreciationCapitalProjectService;
13623
13945
  }());
13624
- 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 });
13625
- DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
13626
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
13946
+ 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 });
13947
+ DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
13948
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
13627
13949
  type: i0.Injectable,
13628
13950
  args: [{
13629
13951
  providedIn: 'root'
@@ -13645,9 +13967,9 @@
13645
13967
  }
13646
13968
  return DocumentService;
13647
13969
  }(RestService$1));
13648
- DocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13649
- DocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentService, providedIn: 'root' });
13650
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentService, decorators: [{
13970
+ DocumentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13971
+ DocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentService, providedIn: 'root' });
13972
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentService, decorators: [{
13651
13973
  type: i0.Injectable,
13652
13974
  args: [{
13653
13975
  providedIn: 'root'
@@ -13719,9 +14041,9 @@
13719
14041
  };
13720
14042
  return DocumentFolderService;
13721
14043
  }(RestService$1));
13722
- 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 });
13723
- DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
13724
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
14044
+ 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 });
14045
+ DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
14046
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentFolderService, decorators: [{
13725
14047
  type: i0.Injectable,
13726
14048
  args: [{
13727
14049
  providedIn: 'root'
@@ -13810,9 +14132,9 @@
13810
14132
  auth_type: 'rerequest',
13811
14133
  return_scopes: true
13812
14134
  };
13813
- 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$1.Router }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13814
- FacebookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, providedIn: 'root' });
13815
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, decorators: [{
14135
+ 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$1.Router }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14136
+ FacebookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FacebookService, providedIn: 'root' });
14137
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FacebookService, decorators: [{
13816
14138
  type: i0.Injectable,
13817
14139
  args: [{
13818
14140
  providedIn: 'root'
@@ -13860,9 +14182,9 @@
13860
14182
  };
13861
14183
  return ClientIncomeTypesService;
13862
14184
  }());
13863
- 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 });
13864
- ClientIncomeTypesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, providedIn: 'root' });
13865
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, decorators: [{
14185
+ 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 });
14186
+ ClientIncomeTypesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientIncomeTypesService, providedIn: 'root' });
14187
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientIncomeTypesService, decorators: [{
13866
14188
  type: i0.Injectable,
13867
14189
  args: [{
13868
14190
  providedIn: 'root'
@@ -13991,9 +14313,9 @@
13991
14313
  };
13992
14314
  return ClientInviteService;
13993
14315
  }(RestService$1));
13994
- 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 });
13995
- ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
13996
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
14316
+ 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 });
14317
+ ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
14318
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientInviteService, decorators: [{
13997
14319
  type: i0.Injectable,
13998
14320
  args: [{
13999
14321
  providedIn: 'root'
@@ -14080,9 +14402,9 @@
14080
14402
  };
14081
14403
  return ClientMovementService;
14082
14404
  }(RestService$1));
14083
- 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 });
14084
- ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
14085
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
14405
+ 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 });
14406
+ ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
14407
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientMovementService, decorators: [{
14086
14408
  type: i0.Injectable,
14087
14409
  args: [{
14088
14410
  providedIn: 'root'
@@ -14115,9 +14437,9 @@
14115
14437
  };
14116
14438
  return EmployeeService;
14117
14439
  }(RestService$1));
14118
- 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 });
14119
- EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
14120
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, decorators: [{
14440
+ 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 });
14441
+ EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
14442
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeService, decorators: [{
14121
14443
  type: i0.Injectable,
14122
14444
  args: [{
14123
14445
  providedIn: 'root'
@@ -14164,9 +14486,9 @@
14164
14486
  };
14165
14487
  return EmployeeInviteService;
14166
14488
  }(RestService$1));
14167
- 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 });
14168
- EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
14169
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
14489
+ 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 });
14490
+ EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
14491
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmployeeInviteService, decorators: [{
14170
14492
  type: i0.Injectable,
14171
14493
  args: [{
14172
14494
  providedIn: 'root'
@@ -14192,9 +14514,9 @@
14192
14514
  };
14193
14515
  return ClientPortfolioReportService;
14194
14516
  }());
14195
- 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 });
14196
- ClientPortfolioReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, providedIn: 'root' });
14197
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, decorators: [{
14517
+ 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 });
14518
+ ClientPortfolioReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientPortfolioReportService, providedIn: 'root' });
14519
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClientPortfolioReportService, decorators: [{
14198
14520
  type: i0.Injectable,
14199
14521
  args: [{
14200
14522
  providedIn: 'root'
@@ -14270,9 +14592,9 @@
14270
14592
  };
14271
14593
  return FirmService;
14272
14594
  }());
14273
- 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 });
14274
- FirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, providedIn: 'root' });
14275
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, decorators: [{
14595
+ 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 });
14596
+ FirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FirmService, providedIn: 'root' });
14597
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FirmService, decorators: [{
14276
14598
  type: i0.Injectable,
14277
14599
  args: [{
14278
14600
  providedIn: 'root'
@@ -14352,9 +14674,9 @@
14352
14674
  };
14353
14675
  return IncomeSourceForecastService;
14354
14676
  }(RestService$1));
14355
- 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 });
14356
- IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
14357
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
14677
+ 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 });
14678
+ IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
14679
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceForecastService, decorators: [{
14358
14680
  type: i0.Injectable,
14359
14681
  args: [{
14360
14682
  providedIn: 'root'
@@ -14429,9 +14751,9 @@
14429
14751
  };
14430
14752
  return SalaryForecastService;
14431
14753
  }(RestService$1));
14432
- 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 });
14433
- SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
14434
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
14754
+ 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 });
14755
+ SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
14756
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalaryForecastService, decorators: [{
14435
14757
  type: i0.Injectable,
14436
14758
  args: [{
14437
14759
  providedIn: 'root'
@@ -14513,9 +14835,9 @@
14513
14835
  };
14514
14836
  return SoleForecastService;
14515
14837
  }(RestService$1));
14516
- 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 });
14517
- SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
14518
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
14838
+ 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 });
14839
+ SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
14840
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleForecastService, decorators: [{
14519
14841
  type: i0.Injectable,
14520
14842
  args: [{
14521
14843
  providedIn: 'root'
@@ -14623,9 +14945,9 @@
14623
14945
  };
14624
14946
  return IncomeSourceService;
14625
14947
  }(RestService$1));
14626
- 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 });
14627
- IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
14628
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
14948
+ 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 });
14949
+ IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
14950
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IncomeSourceService, decorators: [{
14629
14951
  type: i0.Injectable,
14630
14952
  args: [{
14631
14953
  providedIn: 'root'
@@ -14687,9 +15009,9 @@
14687
15009
  };
14688
15010
  return BorrowingExpenseService;
14689
15011
  }());
14690
- 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 });
14691
- BorrowingExpenseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, providedIn: 'root' });
14692
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, decorators: [{
15012
+ 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 });
15013
+ BorrowingExpenseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BorrowingExpenseService, providedIn: 'root' });
15014
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BorrowingExpenseService, decorators: [{
14693
15015
  type: i0.Injectable,
14694
15016
  args: [{
14695
15017
  providedIn: 'root'
@@ -14827,9 +15149,9 @@
14827
15149
  };
14828
15150
  return LoanService;
14829
15151
  }(RestService$1));
14830
- 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 });
14831
- LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
14832
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, decorators: [{
15152
+ 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 });
15153
+ LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
15154
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoanService, decorators: [{
14833
15155
  type: i0.Injectable,
14834
15156
  args: [{
14835
15157
  providedIn: 'root'
@@ -14849,9 +15171,9 @@
14849
15171
  }
14850
15172
  return PropertyCategoryService;
14851
15173
  }(RestService$1));
14852
- 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 });
14853
- PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
14854
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
15174
+ 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 });
15175
+ PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
15176
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryService, decorators: [{
14855
15177
  type: i0.Injectable,
14856
15178
  args: [{
14857
15179
  providedIn: 'root'
@@ -14895,9 +15217,9 @@
14895
15217
  };
14896
15218
  return PropertyCategoryMovementService;
14897
15219
  }(RestService$1));
14898
- 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 });
14899
- PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
14900
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
15220
+ 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 });
15221
+ PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
15222
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCategoryMovementService, decorators: [{
14901
15223
  type: i0.Injectable,
14902
15224
  args: [{
14903
15225
  providedIn: 'root'
@@ -14954,9 +15276,9 @@
14954
15276
  };
14955
15277
  return PropertyDocumentService;
14956
15278
  }(RestService$1));
14957
- 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 });
14958
- PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
14959
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
15279
+ 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 });
15280
+ PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
15281
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyDocumentService, decorators: [{
14960
15282
  type: i0.Injectable,
14961
15283
  args: [{
14962
15284
  providedIn: 'root'
@@ -14974,9 +15296,9 @@
14974
15296
  }
14975
15297
  return TaxExemptionService;
14976
15298
  }(RestService$1));
14977
- 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 });
14978
- TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
14979
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
15299
+ 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 });
15300
+ TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
15301
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxExemptionService, decorators: [{
14980
15302
  type: i0.Injectable,
14981
15303
  args: [{
14982
15304
  providedIn: 'root'
@@ -15012,9 +15334,9 @@
15012
15334
  };
15013
15335
  return PropertySaleService;
15014
15336
  }(RestService$1));
15015
- 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 });
15016
- PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
15017
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
15337
+ 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 });
15338
+ PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
15339
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertySaleService, decorators: [{
15018
15340
  type: i0.Injectable,
15019
15341
  args: [{
15020
15342
  providedIn: 'root'
@@ -15070,314 +15392,82 @@
15070
15392
  if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
15071
15393
  propertySharesIncoming.push(propertyShare);
15072
15394
  }
15073
- });
15074
- return propertySharesIncoming;
15075
- }));
15076
- };
15077
- /**
15078
- * Get outcoming property shares list
15079
- */
15080
- PropertyShareService.prototype.getOutcoming = function () {
15081
- var _this = this;
15082
- return this.get().pipe(operators.map(function (propertyShares) {
15083
- return _this.filterOutcoming(propertyShares);
15084
- }));
15085
- };
15086
- /**
15087
- * Filter outcoming property shares
15088
- */
15089
- PropertyShareService.prototype.filterOutcoming = function (propertyShares) {
15090
- var propertySharesOutcoming = [];
15091
- propertyShares.forEach(function (propertyShare) {
15092
- var _a;
15093
- if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
15094
- propertySharesOutcoming.push(propertyShare);
15095
- }
15096
- });
15097
- return propertySharesOutcoming;
15098
- };
15099
- PropertyShareService.prototype.getByPropertyId = function (propertyId) {
15100
- return this.get()
15101
- .pipe(operators.map(function (propertyShares) {
15102
- return propertyShares.filter(function (propertyShare) { return propertyShare.property.id === propertyId; });
15103
- }));
15104
- };
15105
- /**
15106
- * Listen to User updated event
15107
- */
15108
- PropertyShareService.prototype.listenUserUpdated = function () {
15109
- var _this = this;
15110
- this.eventDispatcherService.on(exports.AppEventTypeEnum.USER_UPDATED)
15111
- .subscribe(function () {
15112
- _this.fetch().subscribe(function (propertyShares) {
15113
- _this.cache = propertyShares;
15114
- _this.updateCache();
15115
- });
15116
- });
15117
- };
15118
- /**
15119
- * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
15120
- */
15121
- PropertyShareService.prototype.listenSalesAdded = function () {
15122
- var _this = this;
15123
- this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe(function (propertySale) {
15124
- var shareToReplace = _this.find(propertySale.share.id);
15125
- shareToReplace.sale = classTransformer.plainToClass(PropertySale, { id: propertySale.id });
15126
- replace(_this.cache, shareToReplace);
15127
- _this.updateCache();
15128
- });
15129
- };
15130
- PropertyShareService.prototype.listenSalesDeleted = function () {
15131
- var _this = this;
15132
- this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe(function (propertySale) {
15133
- var shareToReplace = _this.find(propertySale.share.id);
15134
- shareToReplace.sale = null;
15135
- replace(_this.cache, shareToReplace);
15136
- _this.updateCache();
15137
- });
15138
- };
15139
- return PropertyShareService;
15140
- }(RestService$1));
15141
- 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 });
15142
- PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
15143
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
15144
- type: i0.Injectable,
15145
- args: [{
15146
- providedIn: 'root'
15147
- }]
15148
- }] });
15149
-
15150
- /**
15151
- * Abstract base service that implements common services functionality
15152
- * and describe abstract methods/properties that have to be implemented in child services
15153
- * Model - entity service is working with
15154
- * BaseModel - base entity model that extends by Model
15155
- * CollectionModel - entity collection class
15156
- */
15157
- var RestService = /** @class */ (function () {
15158
- function RestService(http, eventDispatcherService, environment) {
15159
- this.http = http;
15160
- this.eventDispatcherService = eventDispatcherService;
15161
- this.environment = environment;
15162
- /**
15163
- * Subject for service cache
15164
- */
15165
- this.cacheSubject = new rxjs.ReplaySubject(1);
15166
- /**
15167
- * List of methods unavailable for current API
15168
- */
15169
- this.disabledMethods = [];
15170
- this.listenEvents();
15171
- }
15172
- Object.defineProperty(RestService.prototype, "apiUrl", {
15173
- get: function () {
15174
- return this.environment.apiV2 + "/" + this.entityUrl;
15175
- },
15176
- enumerable: false,
15177
- configurable: true
15178
- });
15179
- RestService.prototype.get = function () {
15180
- this.handleAccessError('get');
15181
- // Set cache as empty collection to avoid multiple requests before cache filled
15182
- if (!this.cache) {
15183
- this.cache = this.createCollectionInstance(this.collectionClass, []);
15184
- this.resetCache();
15185
- }
15186
- return this.cacheSubject.asObservable();
15187
- };
15188
- ;
15189
- RestService.prototype.getSingle = function () {
15190
- this.handleAccessError('get');
15191
- return this.get().pipe(operators.map(function (collection) { return collection.first; }));
15192
- };
15193
- /**
15194
- * Create a new Model instance in database
15195
- */
15196
- RestService.prototype.post = function (model) {
15197
- var _this = this;
15198
- this.handleAccessError('post');
15199
- return this.http.post(this.apiUrl, model)
15200
- .pipe(operators.map(function (response) {
15201
- var result = _this.createModelInstance(_this.modelClass, response);
15202
- _this.handleResponse([result], 'post');
15203
- return result;
15204
- }));
15205
- };
15206
- /**
15207
- * Create multiple new Model instances in database
15208
- */
15209
- RestService.prototype.postBatch = function (models) {
15210
- var _this = this;
15211
- this.handleAccessError('postBatch');
15212
- return this.http.post(this.apiUrl, models)
15213
- .pipe(operators.map(function (response) {
15214
- var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15215
- _this.handleResponse(result, 'post');
15216
- return result;
15217
- }));
15218
- };
15219
- /**
15220
- * Change an existing Model instance in database
15221
- */
15222
- RestService.prototype.put = function (model) {
15223
- var _this = this;
15224
- this.handleAccessError('put');
15225
- return this.http.put(this.apiUrl + "/" + model.id, model)
15226
- .pipe(operators.map(function (response) {
15227
- var result = _this.createModelInstance(_this.modelClass, response);
15228
- _this.handleResponse([result], 'put');
15229
- return result;
15230
- }));
15231
- };
15232
- /**
15233
- * Change multiple existing Model instances in database
15234
- */
15235
- RestService.prototype.putBatch = function (models) {
15236
- var _this = this;
15237
- this.handleAccessError('putBatch');
15238
- return this.http.put(this.apiUrl, models)
15239
- .pipe(operators.map(function (response) {
15240
- var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15241
- _this.handleResponse(result, 'put');
15242
- return result;
15243
- }));
15244
- };
15245
- /**
15246
- * Remove a Model instance from database
15247
- */
15248
- RestService.prototype.delete = function (model) {
15249
- var _this = this;
15250
- this.handleAccessError('delete');
15251
- return this.http.delete(this.apiUrl + "/" + model.id)
15252
- .pipe(operators.map(function () {
15253
- _this.handleResponse([model], 'delete');
15254
- }));
15255
- };
15256
- /**
15257
- * Remove multiple Model instances from database
15258
- */
15259
- RestService.prototype.deleteBatch = function (models) {
15260
- var _this = this;
15261
- this.handleAccessError('deleteBatch');
15262
- return this.http.post(this.apiUrl + "/delete", models)
15263
- .pipe(operators.map(function () {
15264
- _this.handleResponse(models, 'delete');
15265
- }));
15266
- };
15267
- /**
15268
- * Refresh cache with actual backend data
15269
- */
15270
- RestService.prototype.resetCache = function () {
15271
- this.fetch()
15272
- .pipe(operators.first())
15273
- .subscribe();
15274
- };
15275
- /**
15276
- * Get data from backend and fill the cache
15277
- */
15278
- RestService.prototype.fetch = function () {
15279
- var _this = this;
15280
- return this.http.get(this.apiUrl)
15281
- .pipe(operators.map(function (response) { return _this.isApiPlatform ? response['hydra:member'] : toArray(response); }), operators.map(function (response) {
15282
- var items = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15283
- _this.cache = _this.createCollectionInstance(_this.collectionClass, items);
15284
- _this.cacheSubject.next(_this.cache);
15285
- return _this.cache;
15286
- }));
15287
- };
15288
- ;
15289
- /**
15290
- * Handle response data - update cache and dispatch event if it is needed
15291
- */
15292
- RestService.prototype.handleResponse = function (response, method) {
15293
- this.updateCache(response, method);
15294
- // dispatch event for interested services
15295
- if (response[0] instanceof ObservableModel) {
15296
- this.dispatchEvent(method, response);
15297
- }
15298
- };
15299
- /**
15300
- * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
15301
- */
15302
- RestService.prototype.updateCache = function (items, method) {
15303
- var _a;
15304
- var _this = this;
15305
- switch (method) {
15306
- case 'post':
15307
- this.cache = (_a = this.cache).push.apply(_a, __spreadArray([], __read(items)));
15308
- break;
15309
- case 'put':
15310
- items.forEach(function (item) {
15311
- _this.cache = _this.cache.replaceBy('id', item.id, item);
15312
- });
15313
- break;
15314
- case 'delete':
15315
- this.cache = this.cache.removeBy('id', items.map(function (item) { return item.id; }));
15316
- }
15317
- this.cacheSubject.next(this.cache);
15318
- };
15319
- /**
15320
- * Generate and dispatch rest event
15321
- */
15322
- RestService.prototype.dispatchEvent = function (method, items) {
15323
- var eventName = this.modelClass.getEventName(method);
15324
- this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
15395
+ });
15396
+ return propertySharesIncoming;
15397
+ }));
15325
15398
  };
15326
15399
  /**
15327
- * Create new instance of class
15328
- * @param model The class whose instance to be created
15329
- * @param plain Single object or array from which will be created model instance(s)
15400
+ * Get outcoming property shares list
15330
15401
  */
15331
- RestService.prototype.createModelInstance = function (model, plain) {
15332
- // excludePrefixes - class-transformer option is using to ignore hydra fields
15333
- return classTransformer.plainToClass(model, plain, { excludePrefixes: ['@'] });
15334
- };
15335
- RestService.prototype.createCollectionInstance = function (collectionClass, items) {
15336
- return new collectionClass(items);
15402
+ PropertyShareService.prototype.getOutcoming = function () {
15403
+ var _this = this;
15404
+ return this.get().pipe(operators.map(function (propertyShares) {
15405
+ return _this.filterOutcoming(propertyShares);
15406
+ }));
15337
15407
  };
15338
15408
  /**
15339
- * Check if method is not disabled. Throw exception otherwise.
15340
- * Some entities does not have endpoints for all methods.
15409
+ * Filter outcoming property shares
15341
15410
  */
15342
- RestService.prototype.handleAccessError = function (method) {
15343
- if (!this.disabledMethods.includes(method)) {
15344
- return;
15345
- }
15346
- throw new Error("Method " + method + "() is not allowed for " + this.constructor.name);
15411
+ PropertyShareService.prototype.filterOutcoming = function (propertyShares) {
15412
+ var propertySharesOutcoming = [];
15413
+ propertyShares.forEach(function (propertyShare) {
15414
+ var _a;
15415
+ if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
15416
+ propertySharesOutcoming.push(propertyShare);
15417
+ }
15418
+ });
15419
+ return propertySharesOutcoming;
15420
+ };
15421
+ PropertyShareService.prototype.getByPropertyId = function (propertyId) {
15422
+ return this.get()
15423
+ .pipe(operators.map(function (propertyShares) {
15424
+ return propertyShares.filter(function (propertyShare) { return propertyShare.property.id === propertyId; });
15425
+ }));
15347
15426
  };
15348
15427
  /**
15349
- * Subscribe to http events and run callback
15350
- * @param type The class whose changes should be listened for
15351
- * @param methods The list of http methods should be listened for
15352
- * @param callback The function to be called when event triggered
15428
+ * Listen to User updated event
15353
15429
  */
15354
- RestService.prototype.listenCSE = function (modelClass, methods, callback) {
15430
+ PropertyShareService.prototype.listenUserUpdated = function () {
15355
15431
  var _this = this;
15356
- methods.forEach(function (method) {
15357
- _this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe(function (data) {
15358
- callback(data);
15432
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.USER_UPDATED)
15433
+ .subscribe(function () {
15434
+ _this.fetch().subscribe(function (propertyShares) {
15435
+ _this.cache = propertyShares;
15436
+ _this.updateCache();
15359
15437
  });
15360
15438
  });
15361
15439
  };
15362
15440
  /**
15363
- * Method that call all listeners. Empty by default. Should be redefined by child services if required
15441
+ * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
15364
15442
  */
15365
- RestService.prototype.listenEvents = function () { };
15366
- return RestService;
15367
- }());
15368
- RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
15369
- RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
15370
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, decorators: [{
15443
+ PropertyShareService.prototype.listenSalesAdded = function () {
15444
+ var _this = this;
15445
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe(function (propertySale) {
15446
+ var shareToReplace = _this.find(propertySale.share.id);
15447
+ shareToReplace.sale = classTransformer.plainToClass(PropertySale, { id: propertySale.id });
15448
+ replace(_this.cache, shareToReplace);
15449
+ _this.updateCache();
15450
+ });
15451
+ };
15452
+ PropertyShareService.prototype.listenSalesDeleted = function () {
15453
+ var _this = this;
15454
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe(function (propertySale) {
15455
+ var shareToReplace = _this.find(propertySale.share.id);
15456
+ shareToReplace.sale = null;
15457
+ replace(_this.cache, shareToReplace);
15458
+ _this.updateCache();
15459
+ });
15460
+ };
15461
+ return PropertyShareService;
15462
+ }(RestService$1));
15463
+ 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 });
15464
+ PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
15465
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
15371
15466
  type: i0.Injectable,
15372
15467
  args: [{
15373
15468
  providedIn: 'root'
15374
15469
  }]
15375
- }], ctorParameters: function () {
15376
- return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15377
- type: i0.Inject,
15378
- args: ['environment']
15379
- }] }];
15380
- } });
15470
+ }] });
15381
15471
 
15382
15472
  /**
15383
15473
  * @Todo Alex remove functionality related to PropertyShare
@@ -15496,9 +15586,9 @@
15496
15586
  };
15497
15587
  return PropertyService;
15498
15588
  }(RestService));
15499
- 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 });
15500
- PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
15501
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, decorators: [{
15589
+ 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 });
15590
+ PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
15591
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyService, decorators: [{
15502
15592
  type: i0.Injectable,
15503
15593
  args: [{
15504
15594
  providedIn: 'root'
@@ -15546,9 +15636,9 @@
15546
15636
  };
15547
15637
  return ServiceNotificationService;
15548
15638
  }(RestService$1));
15549
- 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 });
15550
- ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
15551
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
15639
+ 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 });
15640
+ ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
15641
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceNotificationService, decorators: [{
15552
15642
  type: i0.Injectable,
15553
15643
  args: [{
15554
15644
  providedIn: 'root'
@@ -15560,12 +15650,12 @@
15560
15650
  }] }, { type: ToastService }, { type: SseService }];
15561
15651
  } });
15562
15652
 
15563
- var MessagesEnum$1;
15653
+ var MessagesEnum$2;
15564
15654
  (function (MessagesEnum) {
15565
15655
  MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
15566
15656
  MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
15567
15657
  MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
15568
- })(MessagesEnum$1 || (MessagesEnum$1 = {}));
15658
+ })(MessagesEnum$2 || (MessagesEnum$2 = {}));
15569
15659
 
15570
15660
  var SoleBusinessService = /** @class */ (function (_super) {
15571
15661
  __extends(SoleBusinessService, _super);
@@ -15593,7 +15683,7 @@
15593
15683
  replace(tempCache, classTransformer.plainToClass(SoleBusiness, updatedBusiness));
15594
15684
  _this.cache = tempCache;
15595
15685
  _this.cacheSubject.next(_this.cache);
15596
- _this.toastService.success(MessagesEnum$1.LOGO_UPDATED);
15686
+ _this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
15597
15687
  }), operators.catchError(function (error) {
15598
15688
  // Show error when user provided wrong image (format or size)
15599
15689
  if (error.status === 422) {
@@ -15604,9 +15694,9 @@
15604
15694
  };
15605
15695
  return SoleBusinessService;
15606
15696
  }(RestService$1));
15607
- SoleBusinessService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15608
- SoleBusinessService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessService, providedIn: 'root' });
15609
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessService, decorators: [{
15697
+ SoleBusinessService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15698
+ SoleBusinessService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessService, providedIn: 'root' });
15699
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessService, decorators: [{
15610
15700
  type: i0.Injectable,
15611
15701
  args: [{
15612
15702
  providedIn: 'root'
@@ -15624,9 +15714,9 @@
15624
15714
  }
15625
15715
  return SoleBusinessActivityService;
15626
15716
  }(RestService$1));
15627
- SoleBusinessActivityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessActivityService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15628
- SoleBusinessActivityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessActivityService, providedIn: 'root' });
15629
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessActivityService, decorators: [{
15717
+ SoleBusinessActivityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessActivityService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15718
+ SoleBusinessActivityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessActivityService, providedIn: 'root' });
15719
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessActivityService, decorators: [{
15630
15720
  type: i0.Injectable,
15631
15721
  args: [{
15632
15722
  providedIn: 'root'
@@ -15656,9 +15746,9 @@
15656
15746
  };
15657
15747
  return SoleBusinessLossService;
15658
15748
  }(RestService$1));
15659
- SoleBusinessLossService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15660
- SoleBusinessLossService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossService, providedIn: 'root' });
15661
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossService, decorators: [{
15749
+ SoleBusinessLossService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15750
+ SoleBusinessLossService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossService, providedIn: 'root' });
15751
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossService, decorators: [{
15662
15752
  type: i0.Injectable,
15663
15753
  args: [{
15664
15754
  providedIn: 'root'
@@ -15679,9 +15769,9 @@
15679
15769
  }
15680
15770
  return SoleBusinessLossOffsetRuleService;
15681
15771
  }(RestService$1));
15682
- SoleBusinessLossOffsetRuleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15683
- SoleBusinessLossOffsetRuleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
15684
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, decorators: [{
15772
+ SoleBusinessLossOffsetRuleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15773
+ SoleBusinessLossOffsetRuleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
15774
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, decorators: [{
15685
15775
  type: i0.Injectable,
15686
15776
  args: [{
15687
15777
  providedIn: 'root'
@@ -15699,9 +15789,9 @@
15699
15789
  }
15700
15790
  return SoleContactService;
15701
15791
  }(RestService$1));
15702
- SoleContactService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleContactService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15703
- SoleContactService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleContactService, providedIn: 'root' });
15704
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleContactService, decorators: [{
15792
+ SoleContactService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleContactService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15793
+ SoleContactService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleContactService, providedIn: 'root' });
15794
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleContactService, decorators: [{
15705
15795
  type: i0.Injectable,
15706
15796
  args: [{
15707
15797
  providedIn: 'root'
@@ -15761,9 +15851,9 @@
15761
15851
  };
15762
15852
  return SoleDepreciationMethodService;
15763
15853
  }());
15764
- SoleDepreciationMethodService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDepreciationMethodService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
15765
- SoleDepreciationMethodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDepreciationMethodService, providedIn: 'root' });
15766
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDepreciationMethodService, decorators: [{
15854
+ SoleDepreciationMethodService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDepreciationMethodService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
15855
+ SoleDepreciationMethodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDepreciationMethodService, providedIn: 'root' });
15856
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDepreciationMethodService, decorators: [{
15767
15857
  type: i0.Injectable,
15768
15858
  args: [{
15769
15859
  providedIn: 'root'
@@ -15822,9 +15912,9 @@
15822
15912
  };
15823
15913
  return SoleDetailsService;
15824
15914
  }());
15825
- SoleDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDetailsService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
15826
- SoleDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDetailsService, providedIn: 'root' });
15827
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDetailsService, decorators: [{
15915
+ SoleDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDetailsService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
15916
+ SoleDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDetailsService, providedIn: 'root' });
15917
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleDetailsService, decorators: [{
15828
15918
  type: i0.Injectable,
15829
15919
  args: [{
15830
15920
  providedIn: 'root'
@@ -15907,9 +15997,9 @@
15907
15997
  };
15908
15998
  return SoleInvoiceService;
15909
15999
  }(RestService$1));
15910
- SoleInvoiceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15911
- SoleInvoiceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceService, providedIn: 'root' });
15912
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceService, decorators: [{
16000
+ SoleInvoiceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
16001
+ SoleInvoiceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceService, providedIn: 'root' });
16002
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceService, decorators: [{
15913
16003
  type: i0.Injectable,
15914
16004
  args: [{
15915
16005
  providedIn: 'root'
@@ -15927,9 +16017,9 @@
15927
16017
  }
15928
16018
  return SoleInvoiceTemplateService;
15929
16019
  }(RestService$1));
15930
- SoleInvoiceTemplateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceTemplateService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15931
- SoleInvoiceTemplateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceTemplateService, providedIn: 'root' });
15932
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceTemplateService, decorators: [{
16020
+ SoleInvoiceTemplateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceTemplateService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
16021
+ SoleInvoiceTemplateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceTemplateService, providedIn: 'root' });
16022
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SoleInvoiceTemplateService, decorators: [{
15933
16023
  type: i0.Injectable,
15934
16024
  args: [{
15935
16025
  providedIn: 'root'
@@ -15947,9 +16037,9 @@
15947
16037
  }
15948
16038
  return BasReportService;
15949
16039
  }(RestService$1));
15950
- BasReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasReportService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
15951
- BasReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasReportService, providedIn: 'root' });
15952
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasReportService, decorators: [{
16040
+ BasReportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasReportService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
16041
+ BasReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasReportService, providedIn: 'root' });
16042
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BasReportService, decorators: [{
15953
16043
  type: i0.Injectable,
15954
16044
  args: [{
15955
16045
  providedIn: 'root'
@@ -15970,9 +16060,9 @@
15970
16060
  }
15971
16061
  return ServicePriceService;
15972
16062
  }(RestService$1));
15973
- 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 });
15974
- ServicePriceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, providedIn: 'root' });
15975
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, decorators: [{
16063
+ 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 });
16064
+ ServicePriceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServicePriceService, providedIn: 'root' });
16065
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServicePriceService, decorators: [{
15976
16066
  type: i0.Injectable,
15977
16067
  args: [{
15978
16068
  providedIn: 'root'
@@ -16099,9 +16189,9 @@
16099
16189
  };
16100
16190
  return SubscriptionService;
16101
16191
  }());
16102
- 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: ToastService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16103
- SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, providedIn: 'root' });
16104
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
16192
+ 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: ToastService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16193
+ SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SubscriptionService, providedIn: 'root' });
16194
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
16105
16195
  type: i0.Injectable,
16106
16196
  args: [{
16107
16197
  providedIn: 'root'
@@ -16142,9 +16232,9 @@
16142
16232
  };
16143
16233
  return TaxReviewHistoryService;
16144
16234
  }(RestService$1));
16145
- 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 });
16146
- TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
16147
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
16235
+ 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 });
16236
+ TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
16237
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewHistoryService, decorators: [{
16148
16238
  type: i0.Injectable,
16149
16239
  args: [{
16150
16240
  providedIn: 'root'
@@ -16241,9 +16331,9 @@
16241
16331
  };
16242
16332
  return TaxReviewService;
16243
16333
  }(RestService$1));
16244
- 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 });
16245
- TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
16246
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
16334
+ 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 });
16335
+ TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
16336
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxReviewService, decorators: [{
16247
16337
  type: i0.Injectable,
16248
16338
  args: [{
16249
16339
  providedIn: 'root'
@@ -16304,9 +16394,9 @@
16304
16394
  };
16305
16395
  return TaxSummaryService;
16306
16396
  }());
16307
- 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 });
16308
- TaxSummaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, providedIn: 'root' });
16309
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, decorators: [{
16397
+ 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 });
16398
+ TaxSummaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxSummaryService, providedIn: 'root' });
16399
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TaxSummaryService, decorators: [{
16310
16400
  type: i0.Injectable,
16311
16401
  args: [{
16312
16402
  providedIn: 'root'
@@ -16413,9 +16503,9 @@
16413
16503
  };
16414
16504
  return TransactionAllocationService;
16415
16505
  }(RestService$1));
16416
- 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 });
16417
- TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
16418
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
16506
+ 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 });
16507
+ TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
16508
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionAllocationService, decorators: [{
16419
16509
  type: i0.Injectable,
16420
16510
  args: [{
16421
16511
  providedIn: 'root'
@@ -16444,9 +16534,9 @@
16444
16534
  }
16445
16535
  return TransactionReceiptService;
16446
16536
  }(ReceiptService));
16447
- TransactionReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16448
- TransactionReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, providedIn: 'root' });
16449
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, decorators: [{
16537
+ TransactionReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16538
+ TransactionReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionReceiptService, providedIn: 'root' });
16539
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionReceiptService, decorators: [{
16450
16540
  type: i0.Injectable,
16451
16541
  args: [{
16452
16542
  providedIn: 'root'
@@ -16458,19 +16548,6 @@
16458
16548
  }] }, { type: ToastService }];
16459
16549
  } });
16460
16550
 
16461
- function enumToList(data) {
16462
- var list = [];
16463
- for (var key in data) {
16464
- if (Number(key) >= 0) {
16465
- list.push({
16466
- label: data[key],
16467
- value: Number(key)
16468
- });
16469
- }
16470
- }
16471
- return list;
16472
- }
16473
-
16474
16551
  /**
16475
16552
  * Service for transactions business logic
16476
16553
  */
@@ -16592,7 +16669,7 @@
16592
16669
  transactions = ___default["default"].cloneDeep(transactions);
16593
16670
  return this.http.post(this.environment.apiV2 + "/" + this.url, transactions)
16594
16671
  .pipe(operators.map(function (response) {
16595
- var _c;
16672
+ var _b;
16596
16673
  var addedTransactions = response.map(function (item) { return classTransformer.plainToClass(Transaction, item); });
16597
16674
  transactions.forEach(function (transaction, index) {
16598
16675
  // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
@@ -16616,7 +16693,7 @@
16616
16693
  }
16617
16694
  });
16618
16695
  if (_this.cache) {
16619
- (_c = _this.cache).push.apply(_c, __spreadArray([], __read(addedTransactions)));
16696
+ (_b = _this.cache).push.apply(_b, __spreadArray([], __read(addedTransactions)));
16620
16697
  _this.updateCache();
16621
16698
  }
16622
16699
  _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTIONS_CREATED, addedTransactions));
@@ -16727,31 +16804,6 @@
16727
16804
  }
16728
16805
  return amount;
16729
16806
  };
16730
- /**
16731
- * get label for transaction tax field depended of selected chart account.
16732
- * tax type depends of chart account heading or category.
16733
- */
16734
- TransactionService.prototype.getTaxLabel = function (chartAccounts) {
16735
- var _a, _b;
16736
- // get simple array of ids from enum with taxable chart accounts headings
16737
- var taxableCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxableEnum)
16738
- .map(function (item) { return item.value; });
16739
- // get simple array of ids from enum with tax deductible chart accounts headings
16740
- var deductibleCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxDeductibleEnum)
16741
- .map(function (item) { return item.value; });
16742
- // check if one of ids arrays includes current chart accounts heading id and set tax label
16743
- // otherwise label is empty for this class
16744
- switch (true) {
16745
- case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
16746
- return exports.ChartAccountsTaxLabelsEnum.TAX_PAID;
16747
- case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
16748
- return exports.ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
16749
- case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
16750
- return exports.ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
16751
- default:
16752
- return null;
16753
- }
16754
- };
16755
16807
  /**
16756
16808
  * Listen to EventDispatcherService event related to Depreciation changing
16757
16809
  */
@@ -16823,9 +16875,9 @@
16823
16875
  };
16824
16876
  return TransactionService;
16825
16877
  }(RestService$1));
16826
- TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16827
- TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
16828
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, decorators: [{
16878
+ TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16879
+ TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
16880
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionService, decorators: [{
16829
16881
  type: i0.Injectable,
16830
16882
  args: [{
16831
16883
  providedIn: 'root'
@@ -16857,9 +16909,9 @@
16857
16909
  }());
16858
16910
  TutorialVideoService.googleUrl = "https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name";
16859
16911
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
16860
- TutorialVideoService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TutorialVideoService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16861
- TutorialVideoService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TutorialVideoService, providedIn: 'root' });
16862
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TutorialVideoService, decorators: [{
16912
+ TutorialVideoService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TutorialVideoService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
16913
+ TutorialVideoService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TutorialVideoService, providedIn: 'root' });
16914
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TutorialVideoService, decorators: [{
16863
16915
  type: i0.Injectable,
16864
16916
  args: [{
16865
16917
  providedIn: 'root'
@@ -16884,9 +16936,9 @@
16884
16936
  }
16885
16937
  return VehicleService;
16886
16938
  }(RestService$1));
16887
- 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 });
16888
- VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
16889
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, decorators: [{
16939
+ 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 });
16940
+ VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
16941
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleService, decorators: [{
16890
16942
  type: i0.Injectable,
16891
16943
  args: [{
16892
16944
  providedIn: 'root'
@@ -16967,9 +17019,9 @@
16967
17019
  };
16968
17020
  return VehicleClaimService;
16969
17021
  }(RestService$1));
16970
- 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 });
16971
- VehicleClaimService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, providedIn: 'root' });
16972
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, decorators: [{
17022
+ 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 });
17023
+ VehicleClaimService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimService, providedIn: 'root' });
17024
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimService, decorators: [{
16973
17025
  type: i0.Injectable,
16974
17026
  args: [{
16975
17027
  providedIn: 'root'
@@ -17051,9 +17103,9 @@
17051
17103
  };
17052
17104
  return VehicleClaimDetailsService;
17053
17105
  }());
17054
- VehicleClaimDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1__namespace.HttpClient }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17055
- VehicleClaimDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimDetailsService, providedIn: 'root' });
17056
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimDetailsService, decorators: [{
17106
+ VehicleClaimDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1__namespace.HttpClient }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17107
+ VehicleClaimDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimDetailsService, providedIn: 'root' });
17108
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleClaimDetailsService, decorators: [{
17057
17109
  type: i0.Injectable,
17058
17110
  args: [{
17059
17111
  providedIn: 'root'
@@ -17078,9 +17130,9 @@
17078
17130
  }
17079
17131
  return VehicleLogbookService;
17080
17132
  }(RestService$1));
17081
- VehicleLogbookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17082
- VehicleLogbookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, providedIn: 'root' });
17083
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, decorators: [{
17133
+ VehicleLogbookService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17134
+ VehicleLogbookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, providedIn: 'root' });
17135
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VehicleLogbookService, decorators: [{
17084
17136
  type: i0.Injectable,
17085
17137
  args: [{
17086
17138
  providedIn: 'root'
@@ -17115,9 +17167,9 @@
17115
17167
  };
17116
17168
  return OccupationService;
17117
17169
  }());
17118
- 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 });
17119
- OccupationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, providedIn: 'root' });
17120
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, decorators: [{
17170
+ 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 });
17171
+ OccupationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OccupationService, providedIn: 'root' });
17172
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OccupationService, decorators: [{
17121
17173
  type: i0.Injectable,
17122
17174
  args: [{
17123
17175
  providedIn: 'root'
@@ -17167,9 +17219,9 @@
17167
17219
  };
17168
17220
  return UserEventSettingService;
17169
17221
  }(RestService$1));
17170
- 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 });
17171
- UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
17172
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
17222
+ 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 });
17223
+ UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
17224
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventSettingService, decorators: [{
17173
17225
  type: i0.Injectable,
17174
17226
  args: [{
17175
17227
  providedIn: 'root'
@@ -17187,9 +17239,9 @@
17187
17239
  }
17188
17240
  return UserEventTypeService;
17189
17241
  }(RestService$1));
17190
- 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 });
17191
- UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
17192
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
17242
+ 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 });
17243
+ UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
17244
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UserEventTypeService, decorators: [{
17193
17245
  type: i0.Injectable,
17194
17246
  args: [{
17195
17247
  providedIn: 'root'
@@ -17209,9 +17261,9 @@
17209
17261
  }
17210
17262
  return UsersInviteService;
17211
17263
  }(RestService$1));
17212
- UsersInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UsersInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17213
- UsersInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UsersInviteService, providedIn: 'root' });
17214
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UsersInviteService, decorators: [{
17264
+ UsersInviteService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UsersInviteService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
17265
+ UsersInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UsersInviteService, providedIn: 'root' });
17266
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UsersInviteService, decorators: [{
17215
17267
  type: i0.Injectable,
17216
17268
  args: [{
17217
17269
  providedIn: 'root'
@@ -17410,9 +17462,9 @@
17410
17462
  };
17411
17463
  return AccountSetupService;
17412
17464
  }());
17413
- 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 }, { token: SoleBusinessService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17414
- AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
17415
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
17465
+ 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 }, { token: SoleBusinessService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17466
+ AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
17467
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
17416
17468
  type: i0.Injectable,
17417
17469
  args: [{
17418
17470
  providedIn: 'root'
@@ -17440,9 +17492,9 @@
17440
17492
  };
17441
17493
  return RewardfulService;
17442
17494
  }());
17443
- RewardfulService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17444
- RewardfulService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, providedIn: 'root' });
17445
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, decorators: [{
17495
+ RewardfulService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RewardfulService, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17496
+ RewardfulService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RewardfulService, providedIn: 'root' });
17497
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RewardfulService, decorators: [{
17446
17498
  type: i0.Injectable,
17447
17499
  args: [{
17448
17500
  providedIn: 'root'
@@ -17490,9 +17542,9 @@
17490
17542
  };
17491
17543
  return AssetsService;
17492
17544
  }());
17493
- 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 });
17494
- AssetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, providedIn: 'root' });
17495
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, decorators: [{
17545
+ 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 });
17546
+ AssetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AssetsService, providedIn: 'root' });
17547
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AssetsService, decorators: [{
17496
17548
  type: i0.Injectable,
17497
17549
  args: [{
17498
17550
  providedIn: 'root'
@@ -17562,9 +17614,9 @@
17562
17614
  };
17563
17615
  return BankTransactionCalculationService;
17564
17616
  }());
17565
- BankTransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17566
- BankTransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, providedIn: 'root' });
17567
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, decorators: [{
17617
+ BankTransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17618
+ BankTransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, providedIn: 'root' });
17619
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankTransactionCalculationService, decorators: [{
17568
17620
  type: i0.Injectable,
17569
17621
  args: [{
17570
17622
  providedIn: 'root'
@@ -17594,9 +17646,9 @@
17594
17646
  };
17595
17647
  return BankAccountCalculationService;
17596
17648
  }());
17597
- 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 });
17598
- BankAccountCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, providedIn: 'root' });
17599
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, decorators: [{
17649
+ 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 });
17650
+ BankAccountCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountCalculationService, providedIn: 'root' });
17651
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BankAccountCalculationService, decorators: [{
17600
17652
  type: i0.Injectable,
17601
17653
  args: [{
17602
17654
  providedIn: 'root'
@@ -17623,9 +17675,9 @@
17623
17675
  };
17624
17676
  return ExportFormatterService;
17625
17677
  }());
17626
- ExportFormatterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, deps: [{ token: i1__namespace$2.CurrencyPipe }, { token: i1__namespace$2.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17627
- ExportFormatterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, providedIn: 'root' });
17628
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, decorators: [{
17678
+ ExportFormatterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, deps: [{ token: i1__namespace$2.CurrencyPipe }, { token: i1__namespace$2.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17679
+ ExportFormatterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, providedIn: 'root' });
17680
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ExportFormatterService, decorators: [{
17629
17681
  type: i0.Injectable,
17630
17682
  args: [{
17631
17683
  providedIn: 'root'
@@ -17648,9 +17700,9 @@
17648
17700
  };
17649
17701
  return HeaderTitleService;
17650
17702
  }());
17651
- HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17652
- HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
17653
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, decorators: [{
17703
+ HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17704
+ HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
17705
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeaderTitleService, decorators: [{
17654
17706
  type: i0.Injectable,
17655
17707
  args: [{
17656
17708
  providedIn: 'root'
@@ -17685,9 +17737,9 @@
17685
17737
  };
17686
17738
  return IntercomService;
17687
17739
  }());
17688
- 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 });
17689
- IntercomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, providedIn: 'root' });
17690
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, decorators: [{
17740
+ 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 });
17741
+ IntercomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntercomService, providedIn: 'root' });
17742
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntercomService, decorators: [{
17691
17743
  type: i0.Injectable,
17692
17744
  args: [{
17693
17745
  providedIn: 'root'
@@ -17754,9 +17806,9 @@
17754
17806
  };
17755
17807
  return PdfFromDomElementService;
17756
17808
  }());
17757
- PdfFromDomElementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17758
- PdfFromDomElementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, providedIn: 'root' });
17759
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, decorators: [{
17809
+ PdfFromDomElementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17810
+ PdfFromDomElementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, providedIn: 'root' });
17811
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDomElementService, decorators: [{
17760
17812
  type: i0.Injectable,
17761
17813
  args: [{
17762
17814
  providedIn: 'root'
@@ -17839,9 +17891,9 @@
17839
17891
  };
17840
17892
  return PdfFromTableService;
17841
17893
  }());
17842
- PdfFromTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17843
- PdfFromTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, providedIn: 'root' });
17844
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, decorators: [{
17894
+ PdfFromTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17895
+ PdfFromTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, providedIn: 'root' });
17896
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromTableService, decorators: [{
17845
17897
  type: i0.Injectable,
17846
17898
  args: [{
17847
17899
  providedIn: 'root'
@@ -17877,9 +17929,9 @@
17877
17929
  };
17878
17930
  return PdfFromDataTableService;
17879
17931
  }(PdfFromTableService));
17880
- 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 });
17881
- PdfFromDataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, providedIn: 'root' });
17882
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, decorators: [{
17932
+ 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 });
17933
+ PdfFromDataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDataTableService, providedIn: 'root' });
17934
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromDataTableService, decorators: [{
17883
17935
  type: i0.Injectable,
17884
17936
  args: [{
17885
17937
  providedIn: 'root'
@@ -17918,9 +17970,9 @@
17918
17970
  };
17919
17971
  return PdfFromHtmlTableService;
17920
17972
  }(PdfFromTableService));
17921
- 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 });
17922
- PdfFromHtmlTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, providedIn: 'root' });
17923
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, decorators: [{
17973
+ 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 });
17974
+ PdfFromHtmlTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromHtmlTableService, providedIn: 'root' });
17975
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PdfFromHtmlTableService, decorators: [{
17924
17976
  type: i0.Injectable,
17925
17977
  args: [{
17926
17978
  providedIn: 'root'
@@ -17954,9 +18006,9 @@
17954
18006
  };
17955
18007
  return EquityPositionChartService;
17956
18008
  }());
17957
- 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 });
17958
- EquityPositionChartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, providedIn: 'root' });
17959
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, decorators: [{
18009
+ 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 });
18010
+ EquityPositionChartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EquityPositionChartService, providedIn: 'root' });
18011
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EquityPositionChartService, decorators: [{
17960
18012
  type: i0.Injectable,
17961
18013
  args: [{
17962
18014
  providedIn: 'root'
@@ -18144,9 +18196,9 @@
18144
18196
  };
18145
18197
  return PropertyCalculationService;
18146
18198
  }());
18147
- PropertyCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18148
- PropertyCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, providedIn: 'root' });
18149
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, decorators: [{
18199
+ PropertyCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18200
+ PropertyCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, providedIn: 'root' });
18201
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyCalculationService, decorators: [{
18150
18202
  type: i0.Injectable,
18151
18203
  args: [{
18152
18204
  providedIn: 'root'
@@ -18203,9 +18255,9 @@
18203
18255
  };
18204
18256
  return PropertyTransactionReportService;
18205
18257
  }());
18206
- 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 });
18207
- PropertyTransactionReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, providedIn: 'root' });
18208
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, decorators: [{
18258
+ 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 });
18259
+ PropertyTransactionReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyTransactionReportService, providedIn: 'root' });
18260
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PropertyTransactionReportService, decorators: [{
18209
18261
  type: i0.Injectable,
18210
18262
  args: [{
18211
18263
  providedIn: 'root'
@@ -18287,9 +18339,9 @@
18287
18339
  };
18288
18340
  return TransactionCalculationService;
18289
18341
  }());
18290
- TransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18291
- TransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, providedIn: 'root' });
18292
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, decorators: [{
18342
+ TransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18343
+ TransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, providedIn: 'root' });
18344
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TransactionCalculationService, decorators: [{
18293
18345
  type: i0.Injectable,
18294
18346
  args: [{
18295
18347
  providedIn: 'root'
@@ -18353,9 +18405,9 @@
18353
18405
  };
18354
18406
  return LogbookBestPeriodService;
18355
18407
  }());
18356
- LogbookBestPeriodService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18357
- LogbookBestPeriodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LogbookBestPeriodService, providedIn: 'root' });
18358
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LogbookBestPeriodService, decorators: [{
18408
+ LogbookBestPeriodService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18409
+ LogbookBestPeriodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LogbookBestPeriodService, providedIn: 'root' });
18410
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LogbookBestPeriodService, decorators: [{
18359
18411
  type: i0.Injectable,
18360
18412
  args: [{
18361
18413
  providedIn: 'root'
@@ -18399,9 +18451,9 @@
18399
18451
  };
18400
18452
  return XlsxService;
18401
18453
  }());
18402
- XlsxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18403
- XlsxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, providedIn: 'root' });
18404
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, decorators: [{
18454
+ XlsxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18455
+ XlsxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, providedIn: 'root' });
18456
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: XlsxService, decorators: [{
18405
18457
  type: i0.Injectable,
18406
18458
  args: [{
18407
18459
  providedIn: 'root'
@@ -18646,16 +18698,16 @@
18646
18698
  };
18647
18699
  }
18648
18700
 
18649
- var MessagesEnum;
18701
+ var MessagesEnum$1;
18650
18702
  (function (MessagesEnum) {
18651
18703
  MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
18652
- })(MessagesEnum || (MessagesEnum = {}));
18704
+ })(MessagesEnum$1 || (MessagesEnum$1 = {}));
18653
18705
 
18654
18706
  /**
18655
18707
  * Validation function, that checks If date form value is more than provided date
18656
18708
  */
18657
18709
  function minDateValidator(date, message) {
18658
- if (message === void 0) { message = MessagesEnum.INVALID_DATE.replace('$1', new i1$1.DatePipe('en-US').transform(date)); }
18710
+ if (message === void 0) { message = MessagesEnum$1.INVALID_DATE.replace('$1', new i1$1.DatePipe('en-US').transform(date)); }
18659
18711
  return function (control) {
18660
18712
  if (!control.value) {
18661
18713
  return null;
@@ -18695,6 +18747,50 @@
18695
18747
  };
18696
18748
  }
18697
18749
 
18750
+ /**
18751
+ * Validation function, that checks If provided date is within a current financial year
18752
+ */
18753
+ function currentFinYearValidator() {
18754
+ var currentFinYear = new FinancialYear();
18755
+ return function (control) {
18756
+ if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
18757
+ return null;
18758
+ }
18759
+ return { notCurrentFinYear: true };
18760
+ };
18761
+ }
18762
+
18763
+ var MAX_SIZE = 4194304;
18764
+ var FileValidator = /** @class */ (function () {
18765
+ function FileValidator() {
18766
+ }
18767
+ // File max size check
18768
+ FileValidator.fileMaxSize = function (maxSize) {
18769
+ if (maxSize === void 0) { maxSize = MAX_SIZE; }
18770
+ var validatorFn = function (file) {
18771
+ return file.size > maxSize ? { fileMaxSize: { maxSize: maxSize } } : null;
18772
+ };
18773
+ return FileValidator.fileValidation(validatorFn);
18774
+ };
18775
+ // File extension check
18776
+ FileValidator.fileExtensions = function (allowedExtensions) {
18777
+ if (allowedExtensions === void 0) { allowedExtensions = DOCUMENT_FILE_TYPES.all; }
18778
+ var validatorFn = function (file) {
18779
+ return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
18780
+ };
18781
+ return FileValidator.fileValidation(validatorFn);
18782
+ };
18783
+ FileValidator.fileValidation = function (validatorFn) {
18784
+ return function (formControl) {
18785
+ if (!formControl.value) {
18786
+ return null;
18787
+ }
18788
+ return validatorFn(formControl.value);
18789
+ };
18790
+ };
18791
+ return FileValidator;
18792
+ }());
18793
+
18698
18794
  /**
18699
18795
  * Validator for address, check if corelogic suggestion selected correctly
18700
18796
  */
@@ -20787,6 +20883,313 @@
20787
20883
  }(AbstractForm));
20788
20884
  VehicleLogbookForm.maxDescriptionLength = 60;
20789
20885
 
20886
+ /**
20887
+ * general validation rules
20888
+ */
20889
+ exports.FormValidationsEnum = void 0;
20890
+ (function (FormValidationsEnum) {
20891
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
20892
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
20893
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
20894
+ // @TODO move to file uploader component
20895
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
20896
+ })(exports.FormValidationsEnum || (exports.FormValidationsEnum = {}));
20897
+
20898
+ /**
20899
+ * @TODO refactor, move specific fields like property in separated forms
20900
+ * @TODO remove useless getters
20901
+ */
20902
+ var TransactionBaseForm = /** @class */ (function (_super) {
20903
+ __extends(TransactionBaseForm, _super);
20904
+ function TransactionBaseForm(transaction, registeredForGst, controls) {
20905
+ if (controls === void 0) { controls = {}; }
20906
+ var _this = this;
20907
+ var _a;
20908
+ _this = _super.call(this, Object.assign({
20909
+ chartAccounts: new forms.FormControl(transaction.chartAccounts, [forms.Validators.required, autocompleteValidator()]),
20910
+ claimPercent: new forms.FormControl({ value: transaction.claimPercent, disabled: true }, [forms.Validators.required, forms.Validators.min(0), forms.Validators.max(100)]),
20911
+ amount: new forms.FormControl(transaction.amount, forms.Validators.required),
20912
+ amountWithGST: new forms.FormControl(transaction.amountWithGst, forms.Validators.required),
20913
+ isGST: new forms.FormControl({ value: transaction.isGST, disabled: !((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) || !registeredForGst }),
20914
+ gstAmount: new forms.FormControl({ value: transaction.gstAmount, disabled: true }, forms.Validators.required),
20915
+ date: new forms.FormControl(transaction.date, [forms.Validators.required, currentFinYearValidator()]),
20916
+ description: new forms.FormControl(transaction.description, forms.Validators.maxLength(exports.FormValidationsEnum.TEXT_MAX_LENGTH)),
20917
+ // @TODO Alex: refactor (TT-1996)
20918
+ file: new forms.FormControl(transaction['receipt'], [
20919
+ FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+exports.FormValidationsEnum.FILE_MAX_SIZE)
20920
+ ]),
20921
+ property: new forms.FormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
20922
+ }, controls), transaction) || this;
20923
+ _this.registeredForGst = registeredForGst;
20924
+ _this.watchChartAccounts();
20925
+ if (_this.isGstApplicable()) {
20926
+ _this.watchAmountWithGST();
20927
+ _this.watchIsGst();
20928
+ }
20929
+ return _this;
20930
+ }
20931
+ TransactionBaseForm.prototype.watchIsGst = function () {
20932
+ var _this = this;
20933
+ this.get('isGST').valueChanges.subscribe(function (isGST) {
20934
+ _this.updateAmount();
20935
+ _this.updateGstAmount();
20936
+ });
20937
+ };
20938
+ TransactionBaseForm.prototype.watchAmountWithGST = function () {
20939
+ var _this = this;
20940
+ this.get('amountWithGST').valueChanges.subscribe(function () {
20941
+ _this.updateAmount();
20942
+ _this.updateGstAmount();
20943
+ });
20944
+ };
20945
+ TransactionBaseForm.prototype.watchChartAccounts = function () {
20946
+ var _this = this;
20947
+ this.get('chartAccounts').valueChanges.subscribe(function (value) {
20948
+ if (!(value instanceof ChartAccounts)) {
20949
+ return;
20950
+ }
20951
+ // recalculate claim percent for selected chart accounts
20952
+ _this.updateClaimPercent(value);
20953
+ if (!_this.isGstApplicable()) {
20954
+ return;
20955
+ }
20956
+ // update gst if applicable
20957
+ if (value.isGST) {
20958
+ _this.get('isGST').enable();
20959
+ _this.get('isGST').patchValue(true);
20960
+ }
20961
+ else {
20962
+ _this.get('isGST').patchValue(false);
20963
+ _this.get('isGST').disable();
20964
+ }
20965
+ });
20966
+ };
20967
+ TransactionBaseForm.prototype.updateGstAmount = function () {
20968
+ this.get('gstAmount').patchValue((this.amountWithGST - this.amount).toFixed(2));
20969
+ };
20970
+ TransactionBaseForm.prototype.updateAmount = function () {
20971
+ this.get('amount').patchValue(this.isGST ? (this.amountWithGST / ChartAccounts.GSTCoefficient).toFixed(2) : this.amountWithGST);
20972
+ };
20973
+ TransactionBaseForm.prototype.isGstApplicable = function () {
20974
+ return !!this.registeredForGst && !!this.model.business;
20975
+ };
20976
+ Object.defineProperty(TransactionBaseForm.prototype, "amount", {
20977
+ get: function () {
20978
+ return this.get('amount').value;
20979
+ },
20980
+ enumerable: false,
20981
+ configurable: true
20982
+ });
20983
+ Object.defineProperty(TransactionBaseForm.prototype, "amountWithGST", {
20984
+ get: function () {
20985
+ return this.get('amountWithGST').value;
20986
+ },
20987
+ enumerable: false,
20988
+ configurable: true
20989
+ });
20990
+ Object.defineProperty(TransactionBaseForm.prototype, "isGST", {
20991
+ get: function () {
20992
+ return this.get('isGST').value;
20993
+ },
20994
+ enumerable: false,
20995
+ configurable: true
20996
+ });
20997
+ /**
20998
+ * propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
20999
+ * taxablePercent for others
21000
+ * can be adjusted only for property/sole expenses
21001
+ */
21002
+ TransactionBaseForm.prototype.updateClaimPercent = function (chartAccounts) {
21003
+ var _a;
21004
+ if (chartAccounts.isClaimPercentEditable()) {
21005
+ this.get('claimPercent').enable();
21006
+ }
21007
+ // property claim (ownership% x shared%) for property expenses, taxable percent for others
21008
+ var claimPercent = chartAccounts.taxablePercent;
21009
+ if (chartAccounts.isPropertyExpense() && chartAccounts.id !== exports.ChartAccountsListEnum.PLATFORM_FEES) {
21010
+ claimPercent *= (_a = this.value.property) === null || _a === void 0 ? void 0 : _a.claimCoefficient;
21011
+ }
21012
+ this.get('claimPercent').setValue(claimPercent);
21013
+ };
21014
+ return TransactionBaseForm;
21015
+ }(AbstractForm));
21016
+
21017
+ var MessagesEnum;
21018
+ (function (MessagesEnum) {
21019
+ MessagesEnum["DATE_VALIDATION_ERROR"] = "The transaction date is before the ownership date, please update the date to confirm";
21020
+ })(MessagesEnum || (MessagesEnum = {}));
21021
+
21022
+ var TransactionForm = /** @class */ (function (_super) {
21023
+ __extends(TransactionForm, _super);
21024
+ function TransactionForm(transaction, registeredForGst, controls) {
21025
+ if (controls === void 0) { controls = {}; }
21026
+ var _this = _super.call(this, transaction, registeredForGst, controls) || this;
21027
+ if (transaction.property) {
21028
+ _this.get('date').addValidators(minDateValidator(transaction.property.myShare.fromDate, MessagesEnum.DATE_VALIDATION_ERROR));
21029
+ }
21030
+ return _this;
21031
+ }
21032
+ return TransactionForm;
21033
+ }(TransactionBaseForm));
21034
+
21035
+ var WorkIncomeForm = /** @class */ (function (_super) {
21036
+ __extends(WorkIncomeForm, _super);
21037
+ function WorkIncomeForm(transaction, registeredForGst, allocations) {
21038
+ var _this = this;
21039
+ var _a;
21040
+ _this = _super.call(this, transaction, registeredForGst, {
21041
+ // @TODO move to TransactionForm, since other transactions could have it too
21042
+ transactions: new forms.FormArray([]),
21043
+ metadata: new forms.FormArray((transaction.metadata || []).map(function (transactionMetadata) {
21044
+ return new forms.FormGroup({
21045
+ value: new forms.FormControl(transactionMetadata.value),
21046
+ chartAccountsMetadata: new forms.FormControl(transactionMetadata.chartAccountsMetadata)
21047
+ });
21048
+ })),
21049
+ tax: new forms.FormControl({
21050
+ value: transaction.tax,
21051
+ disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
21052
+ }, forms.Validators.required),
21053
+ incomeSource: new forms.FormControl(transaction.incomeSource, [forms.Validators.required, autocompleteValidator()]),
21054
+ }) || this;
21055
+ // @TODO vik move to TransactionForm
21056
+ if (allocations.length) {
21057
+ _this.get('amount').disable();
21058
+ _this.get('date').disable();
21059
+ }
21060
+ // salary adjustments (like tips)
21061
+ transaction.transactions.map(function (transaction) {
21062
+ _this.addTransactionControl(transaction);
21063
+ });
21064
+ if (!((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalary())) {
21065
+ _this.get('transactions').disable();
21066
+ }
21067
+ _this.listenEvents();
21068
+ return _this;
21069
+ }
21070
+ WorkIncomeForm.prototype.listenEvents = function () {
21071
+ this.watchIncomeSource();
21072
+ this.watchChartAccounts();
21073
+ };
21074
+ WorkIncomeForm.prototype.watchIncomeSource = function () {
21075
+ var _this = this;
21076
+ this.get('incomeSource').valueChanges.subscribe(function (incomeSource) {
21077
+ // prefill salary tax with its income source forecast
21078
+ if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !_this.get('tax').value) {
21079
+ _this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
21080
+ }
21081
+ });
21082
+ };
21083
+ WorkIncomeForm.prototype.watchChartAccounts = function () {
21084
+ var _this = this;
21085
+ _super.prototype.watchChartAccounts.call(this);
21086
+ this.get('chartAccounts').valueChanges.subscribe(function (value) {
21087
+ // some fields depend on ChartAccounts and can't be filled until it's selected
21088
+ if (!(value instanceof ChartAccounts)) {
21089
+ _this.get('tax').disable();
21090
+ _this.get('transactions').disable();
21091
+ return;
21092
+ }
21093
+ _this.buildMetadataForm();
21094
+ if (value.isNRAS()) {
21095
+ _this.get('tax').disable();
21096
+ }
21097
+ else {
21098
+ _this.get('tax').enable();
21099
+ }
21100
+ if (value.isSalary()) {
21101
+ _this.get('transactions').enable();
21102
+ }
21103
+ else {
21104
+ _this.get('transactions').disable();
21105
+ }
21106
+ });
21107
+ };
21108
+ /**
21109
+ * depends on chartAccounts the form could include different extra fields
21110
+ */
21111
+ WorkIncomeForm.prototype.buildMetadataForm = function () {
21112
+ var _this = this;
21113
+ // Remove all controls in the FormArray before pushing
21114
+ this.get('metadata').clear();
21115
+ // create form controls for each metadata object from selected chart accounts
21116
+ (this.get('chartAccounts').value.metadata).forEach(function (chartAccountsMetadata) {
21117
+ _this.get('metadata').push(new forms.FormGroup({
21118
+ value: new forms.FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
21119
+ chartAccountsMetadata: new forms.FormControl(chartAccountsMetadata),
21120
+ }));
21121
+ });
21122
+ };
21123
+ WorkIncomeForm.prototype.addTransactionControl = function (transaction) {
21124
+ if (transaction === void 0) { transaction = classTransformer.plainToClass(Transaction, {}); }
21125
+ var formGroup = new forms.FormGroup({
21126
+ id: new forms.FormControl(transaction.id),
21127
+ chartAccounts: new forms.FormControl(transaction.chartAccounts, [forms.Validators.required, autocompleteValidator()]),
21128
+ amount: new forms.FormControl(Math.abs(transaction.amount), [forms.Validators.required]),
21129
+ });
21130
+ this.get('transactions').push(formGroup);
21131
+ };
21132
+ WorkIncomeForm.prototype.removeTransactionControl = function (index) {
21133
+ this.get('transactions').removeAt(index);
21134
+ };
21135
+ /**
21136
+ * salary transactions might include adjustments (child transactions), like tips or donation.
21137
+ * Adjustments inherit most of the fields from parent transaction
21138
+ */
21139
+ WorkIncomeForm.prototype.buildTransactions = function () {
21140
+ var _this = this;
21141
+ var transaction = classTransformer.plainToClass(Transaction, this.value);
21142
+ return this.get('transactions').value.map(function (childTransaction) { return Object.assign({
21143
+ description: transaction.chartAccounts.name,
21144
+ date: transaction.date,
21145
+ claimPercent: transaction.claimPercent,
21146
+ source: transaction.source,
21147
+ tax: transaction.tax,
21148
+ type: transaction.type
21149
+ }, _this.model.transactions.find(function (transaction) { return transaction.id === childTransaction['id']; }) || {}, childTransaction); });
21150
+ };
21151
+ WorkIncomeForm.prototype.submit = function (data) {
21152
+ if (data === void 0) { data = {}; }
21153
+ return _super.prototype.submit.call(this, Object.assign(data, { transactions: this.buildTransactions() }));
21154
+ };
21155
+ return WorkIncomeForm;
21156
+ }(TransactionForm));
21157
+
21158
+ var DepreciationForm = /** @class */ (function (_super) {
21159
+ __extends(DepreciationForm, _super);
21160
+ function DepreciationForm(depreciation, registeredForGst) {
21161
+ var _this = _super.call(this, depreciation, registeredForGst) || this;
21162
+ _this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
21163
+ _this.addControl('isCloseBalanceCorrect', new forms.FormControl(true));
21164
+ _this.addControl('closeBalance', new forms.FormControl({ value: depreciation.closeBalance || 0, disabled: true }, forms.Validators.required));
21165
+ _this.addControl('financialYear', new forms.FormControl(depreciation.financialYear || new FinancialYear().year));
21166
+ // forbid to change chartAccounts/claimPercent for existing depreciations
21167
+ if (depreciation.id) {
21168
+ _this.get('chartAccounts').disable({ emitEvent: false });
21169
+ _this.get('claimPercent').disable({ emitEvent: false });
21170
+ }
21171
+ // @TODO should be watched?
21172
+ // if depreciation has 'depreciationCapitalProject' value - set value and disable 'date' form control
21173
+ if (depreciation.depreciationCapitalProject) {
21174
+ _this.get('date').setValue(depreciation.depreciationCapitalProject.effectiveDate);
21175
+ _this.get('date').disable();
21176
+ }
21177
+ else {
21178
+ _this.get('date').setValue(depreciation.date);
21179
+ }
21180
+ _this.get('isCloseBalanceCorrect').valueChanges.subscribe(function (isSelected) {
21181
+ if (isSelected) {
21182
+ _this.get('closeBalance').disable();
21183
+ }
21184
+ else {
21185
+ _this.get('closeBalance').enable();
21186
+ }
21187
+ });
21188
+ return _this;
21189
+ }
21190
+ return DepreciationForm;
21191
+ }(TransactionBaseForm));
21192
+
20790
21193
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
20791
21194
 
20792
21195
  /**
@@ -20889,6 +21292,7 @@
20889
21292
  exports.DepreciationCollection = DepreciationCollection;
20890
21293
  exports.DepreciationForecast = DepreciationForecast;
20891
21294
  exports.DepreciationForecastCollection = DepreciationForecastCollection;
21295
+ exports.DepreciationForm = DepreciationForm;
20892
21296
  exports.DepreciationGroup = DepreciationGroup;
20893
21297
  exports.DepreciationGroupItem = DepreciationGroupItem;
20894
21298
  exports.DepreciationLvpReportItem = DepreciationLvpReportItem;
@@ -20916,6 +21320,7 @@
20916
21320
  exports.ExportFormatterService = ExportFormatterService;
20917
21321
  exports.ExportableCollection = ExportableCollection;
20918
21322
  exports.FacebookService = FacebookService;
21323
+ exports.FileValidator = FileValidator;
20919
21324
  exports.FinancialYear = FinancialYear;
20920
21325
  exports.Firm = Firm;
20921
21326
  exports.FirmService = FirmService;
@@ -21104,8 +21509,10 @@
21104
21509
  exports.TransactionAllocationService = TransactionAllocationService;
21105
21510
  exports.TransactionBase = TransactionBase;
21106
21511
  exports.TransactionBaseCollection = TransactionBaseCollection;
21512
+ exports.TransactionBaseForm = TransactionBaseForm;
21107
21513
  exports.TransactionCalculationService = TransactionCalculationService;
21108
21514
  exports.TransactionCollection = TransactionCollection;
21515
+ exports.TransactionForm = TransactionForm;
21109
21516
  exports.TransactionMetadata = TransactionMetadata;
21110
21517
  exports.TransactionReceipt = TransactionReceipt;
21111
21518
  exports.TransactionReceiptService = TransactionReceiptService;
@@ -21142,6 +21549,7 @@
21142
21549
  exports.VehicleLogbookForm = VehicleLogbookForm;
21143
21550
  exports.VehicleLogbookService = VehicleLogbookService;
21144
21551
  exports.VehicleService = VehicleService;
21552
+ exports.WorkIncomeForm = WorkIncomeForm;
21145
21553
  exports.XlsxService = XlsxService;
21146
21554
  exports.atLeastOneCheckedValidator = atLeastOneCheckedValidator;
21147
21555
  exports.atoLinks = atoLinks;
@@ -21151,6 +21559,7 @@
21151
21559
  exports.compareMatOptions = compareMatOptions;
21152
21560
  exports.conditionalValidator = conditionalValidator;
21153
21561
  exports.createDate = createDate;
21562
+ exports.currentFinYearValidator = currentFinYearValidator;
21154
21563
  exports.displayMatOptions = displayMatOptions;
21155
21564
  exports.enumToList = enumToList;
21156
21565
  exports.fieldsSumValidator = fieldsSumValidator;