taxtank-core 0.28.104 → 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 (159) hide show
  1. package/bundles/taxtank-core.umd.js +1324 -929
  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/report/my-tax/my-tax-partnerships-and-trusts.form.js +16 -14
  10. package/esm2015/lib/forms/transaction/index.js +4 -0
  11. package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
  12. package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
  13. package/esm2015/lib/forms/transaction/transaction.form.js +12 -0
  14. package/esm2015/lib/forms/transaction/work-income.form.js +119 -0
  15. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  19. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  20. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  21. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  22. package/esm2015/lib/interceptors/user-switcher-interceptor.js +15 -5
  23. package/esm2015/lib/models/chart-accounts/chart-accounts.js +37 -1
  24. package/esm2015/lib/models/chart-accounts/index.js +9 -0
  25. package/esm2015/lib/models/document/index.js +3 -1
  26. package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
  27. package/esm2015/lib/models/index.js +3 -1
  28. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +14 -31
  29. package/esm2015/lib/models/transaction/index.js +7 -0
  30. package/esm2015/lib/models/transaction/transaction.js +2 -3
  31. package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
  32. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  33. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  34. package/esm2015/lib/services/asset/assets.service.js +3 -3
  35. package/esm2015/lib/services/auth/auth.service.js +3 -3
  36. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  37. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  38. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  39. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  40. package/esm2015/lib/services/event/sse.service.js +3 -3
  41. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  42. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  43. package/esm2015/lib/services/http/address/address.service.js +3 -3
  44. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
  45. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
  46. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  47. package/esm2015/lib/services/http/bank/bank.service.js +13 -9
  48. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  49. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  50. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  51. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +6 -7
  52. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  53. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  54. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  55. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  56. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  57. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  58. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  59. package/esm2015/lib/services/http/document/document.service.js +3 -3
  60. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  61. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  62. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  63. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  64. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  65. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  66. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  67. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  68. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  69. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  70. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  71. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  72. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  73. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  74. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  75. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  76. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  77. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  78. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  79. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  80. package/esm2015/lib/services/http/property/property.service.js +3 -3
  81. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  82. package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
  83. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  84. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  85. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
  86. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  87. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
  88. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
  89. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
  90. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  91. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  92. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  93. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
  94. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
  95. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  96. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  97. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  98. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  99. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  100. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  101. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  102. package/esm2015/lib/services/http/transaction/transaction.service.js +4 -34
  103. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  104. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  105. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  106. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  107. package/esm2015/lib/services/http/user/user.service.js +3 -3
  108. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  109. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  110. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  111. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  112. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  113. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  114. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  115. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  116. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  117. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  118. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  119. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  120. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  121. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  122. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  123. package/esm2015/lib/services/toast/toast.service.js +3 -3
  124. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  125. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  126. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  127. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  128. package/esm2015/lib/tt-core.module.js +4 -4
  129. package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
  130. package/esm2015/lib/validators/file.validator.js +27 -0
  131. package/esm2015/lib/validators/index.js +3 -1
  132. package/fesm2015/taxtank-core.js +1259 -925
  133. package/fesm2015/taxtank-core.js.map +1 -1
  134. package/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
  135. package/lib/db/Enums/index.d.ts +1 -0
  136. package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
  137. package/lib/forms/depreciation/index.d.ts +1 -0
  138. package/lib/forms/form-validations.enum.d.ts +9 -0
  139. package/lib/forms/index.d.ts +3 -0
  140. package/lib/forms/transaction/index.d.ts +3 -0
  141. package/lib/forms/transaction/messages.enum.d.ts +3 -0
  142. package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
  143. package/lib/forms/transaction/transaction.form.d.ts +8 -0
  144. package/lib/forms/transaction/work-income.form.d.ts +21 -0
  145. package/lib/models/chart-accounts/chart-accounts.d.ts +8 -0
  146. package/lib/models/chart-accounts/index.d.ts +8 -0
  147. package/lib/models/document/index.d.ts +2 -0
  148. package/lib/models/income-source/salary-forecast.d.ts +1 -0
  149. package/lib/models/index.d.ts +2 -0
  150. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +9 -14
  151. package/lib/models/transaction/index.d.ts +6 -0
  152. package/lib/models/transaction/transaction.d.ts +2 -2
  153. package/lib/services/http/bank/bank.service.d.ts +9 -5
  154. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +1 -2
  155. package/lib/services/http/transaction/transaction.service.d.ts +0 -7
  156. package/lib/validators/current-fin-year.validator.d.ts +5 -0
  157. package/lib/validators/file.validator.d.ts +6 -0
  158. package/lib/validators/index.d.ts +2 -0
  159. 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() {
@@ -12017,23 +12122,22 @@
12017
12122
  function MyTaxPartnershipsAndTrusts(transactions, incomeSources) {
12018
12123
  this.transactions = transactions;
12019
12124
  this.incomeSources = incomeSources;
12020
- this.partnershipIncomes = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PARTNERSHIP_INCOME);
12021
- this.partnershipExpenses = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PARTNERSHIP_EXPENSES);
12125
+ this.partnershipsIncomes = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PARTNERSHIP_INCOME);
12126
+ this.partnershipsExpenses = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.PARTNERSHIP_EXPENSES);
12022
12127
  this.trustsIncomes = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.TRUST_INCOME);
12023
12128
  this.trustsExpenses = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.TRUST_EXPENSES);
12024
- this.trustType = this.getTrustType();
12025
- this.netNonPrimaryProductionAmount = (this.partnershipIncomes.sumBy('amount') - this.partnershipExpenses.sumBy('amount')) +
12026
- (this.trustsIncomes.sumBy('amount') - this.trustsExpenses.sumBy('amount'));
12027
- this.partnershipsNetIncome = this.partnershipIncomes.sumBy('amount') -
12028
- this.partnershipExpenses.sumBy('amount');
12029
- this.trustsNetIncome = this.trustsIncomes.sumBy('amount') - this.trustsExpenses.sumBy('amount');
12030
- this.partnershipsSmallBusinessNetIncome = this.partnershipIncomes.sumBy('amount') -
12031
- this.partnershipExpenses.sumBy('amount');
12032
- this.trustsSmallBusinessNetIncome = this.trustsIncomes.sumBy('amount') -
12033
- this.trustsExpenses.sumBy('amount');
12034
- this.taxPaidTotal = this.transactions
12129
+ this.partnershipsIncomeTotalAmount = this.partnershipsIncomes.sumBy('amount');
12130
+ this.partnershipsExpenseTotalAmount = this.partnershipsExpenses.sumBy('amount');
12131
+ this.trustsIncomeTotalAmount = this.trustsIncomes.sumBy('amount');
12132
+ this.trustsExpenseTotalAmount = this.trustsExpenses.sumBy('amount');
12133
+ this.partnershipsNetNonPrimaryProductionAmount = this.partnershipsIncomeTotalAmount - this.partnershipsExpenseTotalAmount;
12134
+ this.trustsNetNonPrimaryProductionAmount = this.trustsIncomeTotalAmount - this.trustsExpenseTotalAmount;
12135
+ this.frankingCreditsTotal = this.transactions
12035
12136
  .filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
12036
- .sumBy('tax');
12137
+ .getTransactionsMetadata()
12138
+ .filterBy('chartAccountsMetadata.id', exports.ChartAccountsMetadataListEnum.FRANKING_CREDIT)
12139
+ .sumBy('value');
12140
+ this.trustsIncomeTotalTax = this.trustsIncomes.sumBy('tax');
12037
12141
  this.frankingCreditsTotal = this.transactions
12038
12142
  .filterBy('chartAccounts.heading.id', exports.ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
12039
12143
  .getTransactionsMetadata()
@@ -12041,22 +12145,6 @@
12041
12145
  .sumBy('value');
12042
12146
  this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', exports.ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
12043
12147
  }
12044
- /**
12045
- * Get Income source forecast trust type, related to trust income with max amount
12046
- */
12047
- MyTaxPartnershipsAndTrusts.prototype.getTrustType = function () {
12048
- var filteredTrustIncomes = this.trustsIncomes
12049
- .filterBy('incomeSource.id', this.incomeSources
12050
- .removeBy('actualForecast.trustType', null)
12051
- .getIds());
12052
- if (!filteredTrustIncomes.length) {
12053
- return null;
12054
- }
12055
- return this.incomeSources
12056
- .findBy('id', filteredTrustIncomes.maxBy('amount').incomeSource.id)
12057
- .actualForecast
12058
- .trustType;
12059
- };
12060
12148
  return MyTaxPartnershipsAndTrusts;
12061
12149
  }());
12062
12150
 
@@ -12522,23 +12610,6 @@
12522
12610
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
12523
12611
  })(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
12524
12612
 
12525
- /**
12526
- * Enum with income amount types (Net or Gross)
12527
- */
12528
- exports.IncomeAmountTypeEnum = void 0;
12529
- (function (IncomeAmountTypeEnum) {
12530
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
12531
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
12532
- })(exports.IncomeAmountTypeEnum || (exports.IncomeAmountTypeEnum = {}));
12533
-
12534
- exports.TransactionCategoryEnum = void 0;
12535
- (function (TransactionCategoryEnum) {
12536
- TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
12537
- TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
12538
- TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
12539
- TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
12540
- })(exports.TransactionCategoryEnum || (exports.TransactionCategoryEnum = {}));
12541
-
12542
12613
  var MyAccountHistory = /** @class */ (function () {
12543
12614
  function MyAccountHistory() {
12544
12615
  }
@@ -12689,9 +12760,9 @@
12689
12760
  };
12690
12761
  return AddressService;
12691
12762
  }());
12692
- 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 });
12693
- AddressService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AddressService, providedIn: 'root' });
12694
- 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: [{
12695
12766
  type: i0.Injectable,
12696
12767
  args: [{
12697
12768
  providedIn: 'root'
@@ -12806,9 +12877,9 @@
12806
12877
  };
12807
12878
  return BankAccountService;
12808
12879
  }(RestService$1));
12809
- 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 });
12810
- BankAccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountService, providedIn: 'root' });
12811
- 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: [{
12812
12883
  type: i0.Injectable,
12813
12884
  args: [{
12814
12885
  providedIn: 'root'
@@ -12894,9 +12965,9 @@
12894
12965
  };
12895
12966
  return BankTransactionService;
12896
12967
  }(RestService$1));
12897
- 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 });
12898
- BankTransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionService, providedIn: 'root' });
12899
- 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: [{
12900
12971
  type: i0.Injectable,
12901
12972
  args: [{
12902
12973
  providedIn: 'root'
@@ -12904,34 +12975,269 @@
12904
12975
  }] });
12905
12976
 
12906
12977
  /**
12907
- * 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
12908
12983
  */
12909
- var BankService = /** @class */ (function (_super) {
12910
- __extends(BankService, _super);
12911
- function BankService() {
12912
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
12913
- _this.modelClass = Bank;
12914
- _this.url = 'banks';
12915
- _this.isHydra = true;
12916
- 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();
12917
12998
  }
12918
- BankService.prototype.get = function () {
12919
- return _super.prototype.get.call(this).pipe(operators.map(function (banks) {
12920
- // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
12921
- return banks.filter(function (bank) { return bank.isManual || (bank.externalId && bank.loginFields); });
12922
- }));
12923
- };
12924
- return BankService;
12925
- }(RestService$1));
12926
- 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 });
12927
- BankService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, providedIn: 'root' });
12928
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankService, decorators: [{
12929
- type: i0.Injectable,
12930
- args: [{
12931
- providedIn: 'root'
12932
- }]
12933
- }] });
12934
-
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();
13014
+ };
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: [{
13237
+ providedIn: 'root'
13238
+ }]
13239
+ }] });
13240
+
12935
13241
  /**
12936
13242
  * Service to work with depreciation chart accounts
12937
13243
  */
@@ -12958,9 +13264,9 @@
12958
13264
  };
12959
13265
  return ChartAccountsDepreciationService;
12960
13266
  }(RestService$1));
12961
- 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 });
12962
- ChartAccountsDepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsDepreciationService, providedIn: 'root' });
12963
- 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: [{
12964
13270
  type: i0.Injectable,
12965
13271
  args: [{
12966
13272
  providedIn: 'root'
@@ -13003,13 +13309,12 @@
13003
13309
  };
13004
13310
  /**
13005
13311
  * Get list of chart accounts heading
13006
- * @param categories
13007
13312
  */
13008
- ChartAccountsService.prototype.getChartAccountsHeadings = function (categories) {
13313
+ ChartAccountsService.prototype.getChartAccountsHeadings = function (categories, chartAccountsIds) {
13009
13314
  if (categories === void 0) { categories = CHART_ACCOUNTS_CATEGORIES.all; }
13010
13315
  return this.getChartAccounts()
13011
13316
  .pipe(operators.map(function (chartAccounts) {
13012
- 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)); });
13013
13318
  var headings = [];
13014
13319
  filteredChartAccounts.forEach(function (ca) {
13015
13320
  var heading = headings.find(function (h) { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
@@ -13045,9 +13350,9 @@
13045
13350
  };
13046
13351
  return ChartAccountsService;
13047
13352
  }());
13048
- 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 });
13049
- ChartAccountsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChartAccountsService, providedIn: 'root' });
13050
- 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: [{
13051
13356
  type: i0.Injectable,
13052
13357
  args: [{
13053
13358
  providedIn: 'root'
@@ -13099,9 +13404,9 @@
13099
13404
  };
13100
13405
  return MessageService;
13101
13406
  }(RestService$1));
13102
- 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 });
13103
- MessageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageService, providedIn: 'root' });
13104
- 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: [{
13105
13410
  type: i0.Injectable,
13106
13411
  args: [{
13107
13412
  providedIn: 'root'
@@ -13215,9 +13520,9 @@
13215
13520
  };
13216
13521
  return MessageDocumentService;
13217
13522
  }());
13218
- 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 });
13219
- MessageDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: MessageDocumentService, providedIn: 'root' });
13220
- 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: [{
13221
13526
  type: i0.Injectable,
13222
13527
  args: [{
13223
13528
  providedIn: 'root'
@@ -13298,9 +13603,9 @@
13298
13603
  };
13299
13604
  return ChatService;
13300
13605
  }(RestService$1));
13301
- 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 });
13302
- ChatService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ChatService, providedIn: 'root' });
13303
- 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: [{
13304
13609
  type: i0.Injectable,
13305
13610
  args: [{
13306
13611
  providedIn: 'root'
@@ -13373,9 +13678,9 @@
13373
13678
  };
13374
13679
  return ReceiptService;
13375
13680
  }());
13376
- 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 });
13377
- ReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, providedIn: 'root' });
13378
- 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: [{
13379
13684
  type: i0.Injectable,
13380
13685
  args: [{
13381
13686
  providedIn: 'root'
@@ -13409,9 +13714,9 @@
13409
13714
  }
13410
13715
  return DepreciationReceiptService;
13411
13716
  }(ReceiptService));
13412
- 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 });
13413
- DepreciationReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, providedIn: 'root' });
13414
- 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: [{
13415
13720
  type: i0.Injectable,
13416
13721
  args: [{
13417
13722
  providedIn: 'root'
@@ -13577,9 +13882,9 @@
13577
13882
  };
13578
13883
  return DepreciationService;
13579
13884
  }(RestService$1));
13580
- 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 });
13581
- DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
13582
- 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: [{
13583
13888
  type: i0.Injectable,
13584
13889
  args: [{
13585
13890
  providedIn: 'root'
@@ -13638,9 +13943,9 @@
13638
13943
  };
13639
13944
  return DepreciationCapitalProjectService;
13640
13945
  }());
13641
- 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 });
13642
- DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
13643
- 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: [{
13644
13949
  type: i0.Injectable,
13645
13950
  args: [{
13646
13951
  providedIn: 'root'
@@ -13662,9 +13967,9 @@
13662
13967
  }
13663
13968
  return DocumentService;
13664
13969
  }(RestService$1));
13665
- 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 });
13666
- DocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentService, providedIn: 'root' });
13667
- 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: [{
13668
13973
  type: i0.Injectable,
13669
13974
  args: [{
13670
13975
  providedIn: 'root'
@@ -13736,9 +14041,9 @@
13736
14041
  };
13737
14042
  return DocumentFolderService;
13738
14043
  }(RestService$1));
13739
- 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 });
13740
- DocumentFolderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentFolderService, providedIn: 'root' });
13741
- 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: [{
13742
14047
  type: i0.Injectable,
13743
14048
  args: [{
13744
14049
  providedIn: 'root'
@@ -13827,9 +14132,9 @@
13827
14132
  auth_type: 'rerequest',
13828
14133
  return_scopes: true
13829
14134
  };
13830
- 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 });
13831
- FacebookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FacebookService, providedIn: 'root' });
13832
- 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: [{
13833
14138
  type: i0.Injectable,
13834
14139
  args: [{
13835
14140
  providedIn: 'root'
@@ -13877,9 +14182,9 @@
13877
14182
  };
13878
14183
  return ClientIncomeTypesService;
13879
14184
  }());
13880
- 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 });
13881
- ClientIncomeTypesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientIncomeTypesService, providedIn: 'root' });
13882
- 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: [{
13883
14188
  type: i0.Injectable,
13884
14189
  args: [{
13885
14190
  providedIn: 'root'
@@ -14008,9 +14313,9 @@
14008
14313
  };
14009
14314
  return ClientInviteService;
14010
14315
  }(RestService$1));
14011
- 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 });
14012
- ClientInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientInviteService, providedIn: 'root' });
14013
- 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: [{
14014
14319
  type: i0.Injectable,
14015
14320
  args: [{
14016
14321
  providedIn: 'root'
@@ -14097,9 +14402,9 @@
14097
14402
  };
14098
14403
  return ClientMovementService;
14099
14404
  }(RestService$1));
14100
- 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 });
14101
- ClientMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientMovementService, providedIn: 'root' });
14102
- 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: [{
14103
14408
  type: i0.Injectable,
14104
14409
  args: [{
14105
14410
  providedIn: 'root'
@@ -14132,9 +14437,9 @@
14132
14437
  };
14133
14438
  return EmployeeService;
14134
14439
  }(RestService$1));
14135
- 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 });
14136
- EmployeeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeService, providedIn: 'root' });
14137
- 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: [{
14138
14443
  type: i0.Injectable,
14139
14444
  args: [{
14140
14445
  providedIn: 'root'
@@ -14181,9 +14486,9 @@
14181
14486
  };
14182
14487
  return EmployeeInviteService;
14183
14488
  }(RestService$1));
14184
- 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 });
14185
- EmployeeInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EmployeeInviteService, providedIn: 'root' });
14186
- 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: [{
14187
14492
  type: i0.Injectable,
14188
14493
  args: [{
14189
14494
  providedIn: 'root'
@@ -14209,9 +14514,9 @@
14209
14514
  };
14210
14515
  return ClientPortfolioReportService;
14211
14516
  }());
14212
- 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 });
14213
- ClientPortfolioReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ClientPortfolioReportService, providedIn: 'root' });
14214
- 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: [{
14215
14520
  type: i0.Injectable,
14216
14521
  args: [{
14217
14522
  providedIn: 'root'
@@ -14287,9 +14592,9 @@
14287
14592
  };
14288
14593
  return FirmService;
14289
14594
  }());
14290
- 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 });
14291
- FirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FirmService, providedIn: 'root' });
14292
- 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: [{
14293
14598
  type: i0.Injectable,
14294
14599
  args: [{
14295
14600
  providedIn: 'root'
@@ -14369,9 +14674,9 @@
14369
14674
  };
14370
14675
  return IncomeSourceForecastService;
14371
14676
  }(RestService$1));
14372
- 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 });
14373
- IncomeSourceForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceForecastService, providedIn: 'root' });
14374
- 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: [{
14375
14680
  type: i0.Injectable,
14376
14681
  args: [{
14377
14682
  providedIn: 'root'
@@ -14446,9 +14751,9 @@
14446
14751
  };
14447
14752
  return SalaryForecastService;
14448
14753
  }(RestService$1));
14449
- 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 });
14450
- SalaryForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalaryForecastService, providedIn: 'root' });
14451
- 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: [{
14452
14757
  type: i0.Injectable,
14453
14758
  args: [{
14454
14759
  providedIn: 'root'
@@ -14530,9 +14835,9 @@
14530
14835
  };
14531
14836
  return SoleForecastService;
14532
14837
  }(RestService$1));
14533
- 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 });
14534
- SoleForecastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleForecastService, providedIn: 'root' });
14535
- 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: [{
14536
14841
  type: i0.Injectable,
14537
14842
  args: [{
14538
14843
  providedIn: 'root'
@@ -14640,9 +14945,9 @@
14640
14945
  };
14641
14946
  return IncomeSourceService;
14642
14947
  }(RestService$1));
14643
- 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 });
14644
- IncomeSourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IncomeSourceService, providedIn: 'root' });
14645
- 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: [{
14646
14951
  type: i0.Injectable,
14647
14952
  args: [{
14648
14953
  providedIn: 'root'
@@ -14704,9 +15009,9 @@
14704
15009
  };
14705
15010
  return BorrowingExpenseService;
14706
15011
  }());
14707
- 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 });
14708
- BorrowingExpenseService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BorrowingExpenseService, providedIn: 'root' });
14709
- 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: [{
14710
15015
  type: i0.Injectable,
14711
15016
  args: [{
14712
15017
  providedIn: 'root'
@@ -14844,9 +15149,9 @@
14844
15149
  };
14845
15150
  return LoanService;
14846
15151
  }(RestService$1));
14847
- 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 });
14848
- LoanService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LoanService, providedIn: 'root' });
14849
- 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: [{
14850
15155
  type: i0.Injectable,
14851
15156
  args: [{
14852
15157
  providedIn: 'root'
@@ -14866,9 +15171,9 @@
14866
15171
  }
14867
15172
  return PropertyCategoryService;
14868
15173
  }(RestService$1));
14869
- 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 });
14870
- PropertyCategoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryService, providedIn: 'root' });
14871
- 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: [{
14872
15177
  type: i0.Injectable,
14873
15178
  args: [{
14874
15179
  providedIn: 'root'
@@ -14912,9 +15217,9 @@
14912
15217
  };
14913
15218
  return PropertyCategoryMovementService;
14914
15219
  }(RestService$1));
14915
- 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 });
14916
- PropertyCategoryMovementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCategoryMovementService, providedIn: 'root' });
14917
- 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: [{
14918
15223
  type: i0.Injectable,
14919
15224
  args: [{
14920
15225
  providedIn: 'root'
@@ -14971,9 +15276,9 @@
14971
15276
  };
14972
15277
  return PropertyDocumentService;
14973
15278
  }(RestService$1));
14974
- 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 });
14975
- PropertyDocumentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyDocumentService, providedIn: 'root' });
14976
- 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: [{
14977
15282
  type: i0.Injectable,
14978
15283
  args: [{
14979
15284
  providedIn: 'root'
@@ -14991,9 +15296,9 @@
14991
15296
  }
14992
15297
  return TaxExemptionService;
14993
15298
  }(RestService$1));
14994
- 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 });
14995
- TaxExemptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxExemptionService, providedIn: 'root' });
14996
- 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: [{
14997
15302
  type: i0.Injectable,
14998
15303
  args: [{
14999
15304
  providedIn: 'root'
@@ -15029,9 +15334,9 @@
15029
15334
  };
15030
15335
  return PropertySaleService;
15031
15336
  }(RestService$1));
15032
- 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 });
15033
- PropertySaleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertySaleService, providedIn: 'root' });
15034
- 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: [{
15035
15340
  type: i0.Injectable,
15036
15341
  args: [{
15037
15342
  providedIn: 'root'
@@ -15086,315 +15391,83 @@
15086
15391
  var _a;
15087
15392
  if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
15088
15393
  propertySharesIncoming.push(propertyShare);
15089
- }
15090
- });
15091
- return propertySharesIncoming;
15092
- }));
15093
- };
15094
- /**
15095
- * Get outcoming property shares list
15096
- */
15097
- PropertyShareService.prototype.getOutcoming = function () {
15098
- var _this = this;
15099
- return this.get().pipe(operators.map(function (propertyShares) {
15100
- return _this.filterOutcoming(propertyShares);
15101
- }));
15102
- };
15103
- /**
15104
- * Filter outcoming property shares
15105
- */
15106
- PropertyShareService.prototype.filterOutcoming = function (propertyShares) {
15107
- var propertySharesOutcoming = [];
15108
- propertyShares.forEach(function (propertyShare) {
15109
- var _a;
15110
- if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
15111
- propertySharesOutcoming.push(propertyShare);
15112
- }
15113
- });
15114
- return propertySharesOutcoming;
15115
- };
15116
- PropertyShareService.prototype.getByPropertyId = function (propertyId) {
15117
- return this.get()
15118
- .pipe(operators.map(function (propertyShares) {
15119
- return propertyShares.filter(function (propertyShare) { return propertyShare.property.id === propertyId; });
15120
- }));
15121
- };
15122
- /**
15123
- * Listen to User updated event
15124
- */
15125
- PropertyShareService.prototype.listenUserUpdated = function () {
15126
- var _this = this;
15127
- this.eventDispatcherService.on(exports.AppEventTypeEnum.USER_UPDATED)
15128
- .subscribe(function () {
15129
- _this.fetch().subscribe(function (propertyShares) {
15130
- _this.cache = propertyShares;
15131
- _this.updateCache();
15132
- });
15133
- });
15134
- };
15135
- /**
15136
- * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
15137
- */
15138
- PropertyShareService.prototype.listenSalesAdded = function () {
15139
- var _this = this;
15140
- this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe(function (propertySale) {
15141
- var shareToReplace = _this.find(propertySale.share.id);
15142
- shareToReplace.sale = classTransformer.plainToClass(PropertySale, { id: propertySale.id });
15143
- replace(_this.cache, shareToReplace);
15144
- _this.updateCache();
15145
- });
15146
- };
15147
- PropertyShareService.prototype.listenSalesDeleted = function () {
15148
- var _this = this;
15149
- this.eventDispatcherService.on(exports.AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe(function (propertySale) {
15150
- var shareToReplace = _this.find(propertySale.share.id);
15151
- shareToReplace.sale = null;
15152
- replace(_this.cache, shareToReplace);
15153
- _this.updateCache();
15154
- });
15155
- };
15156
- return PropertyShareService;
15157
- }(RestService$1));
15158
- 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 });
15159
- PropertyShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, providedIn: 'root' });
15160
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyShareService, decorators: [{
15161
- type: i0.Injectable,
15162
- args: [{
15163
- providedIn: 'root'
15164
- }]
15165
- }] });
15166
-
15167
- /**
15168
- * Abstract base service that implements common services functionality
15169
- * and describe abstract methods/properties that have to be implemented in child services
15170
- * Model - entity service is working with
15171
- * BaseModel - base entity model that extends by Model
15172
- * CollectionModel - entity collection class
15173
- */
15174
- var RestService = /** @class */ (function () {
15175
- function RestService(http, eventDispatcherService, environment) {
15176
- this.http = http;
15177
- this.eventDispatcherService = eventDispatcherService;
15178
- this.environment = environment;
15179
- /**
15180
- * Subject for service cache
15181
- */
15182
- this.cacheSubject = new rxjs.ReplaySubject(1);
15183
- /**
15184
- * List of methods unavailable for current API
15185
- */
15186
- this.disabledMethods = [];
15187
- this.listenEvents();
15188
- }
15189
- Object.defineProperty(RestService.prototype, "apiUrl", {
15190
- get: function () {
15191
- return this.environment.apiV2 + "/" + this.entityUrl;
15192
- },
15193
- enumerable: false,
15194
- configurable: true
15195
- });
15196
- RestService.prototype.get = function () {
15197
- this.handleAccessError('get');
15198
- // Set cache as empty collection to avoid multiple requests before cache filled
15199
- if (!this.cache) {
15200
- this.cache = this.createCollectionInstance(this.collectionClass, []);
15201
- this.resetCache();
15202
- }
15203
- return this.cacheSubject.asObservable();
15204
- };
15205
- ;
15206
- RestService.prototype.getSingle = function () {
15207
- this.handleAccessError('get');
15208
- return this.get().pipe(operators.map(function (collection) { return collection.first; }));
15209
- };
15210
- /**
15211
- * Create a new Model instance in database
15212
- */
15213
- RestService.prototype.post = function (model) {
15214
- var _this = this;
15215
- this.handleAccessError('post');
15216
- return this.http.post(this.apiUrl, model)
15217
- .pipe(operators.map(function (response) {
15218
- var result = _this.createModelInstance(_this.modelClass, response);
15219
- _this.handleResponse([result], 'post');
15220
- return result;
15221
- }));
15222
- };
15223
- /**
15224
- * Create multiple new Model instances in database
15225
- */
15226
- RestService.prototype.postBatch = function (models) {
15227
- var _this = this;
15228
- this.handleAccessError('postBatch');
15229
- return this.http.post(this.apiUrl, models)
15230
- .pipe(operators.map(function (response) {
15231
- var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15232
- _this.handleResponse(result, 'post');
15233
- return result;
15234
- }));
15235
- };
15236
- /**
15237
- * Change an existing Model instance in database
15238
- */
15239
- RestService.prototype.put = function (model) {
15240
- var _this = this;
15241
- this.handleAccessError('put');
15242
- return this.http.put(this.apiUrl + "/" + model.id, model)
15243
- .pipe(operators.map(function (response) {
15244
- var result = _this.createModelInstance(_this.modelClass, response);
15245
- _this.handleResponse([result], 'put');
15246
- return result;
15247
- }));
15248
- };
15249
- /**
15250
- * Change multiple existing Model instances in database
15251
- */
15252
- RestService.prototype.putBatch = function (models) {
15253
- var _this = this;
15254
- this.handleAccessError('putBatch');
15255
- return this.http.put(this.apiUrl, models)
15256
- .pipe(operators.map(function (response) {
15257
- var result = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15258
- _this.handleResponse(result, 'put');
15259
- return result;
15260
- }));
15261
- };
15262
- /**
15263
- * Remove a Model instance from database
15264
- */
15265
- RestService.prototype.delete = function (model) {
15266
- var _this = this;
15267
- this.handleAccessError('delete');
15268
- return this.http.delete(this.apiUrl + "/" + model.id)
15269
- .pipe(operators.map(function () {
15270
- _this.handleResponse([model], 'delete');
15271
- }));
15272
- };
15273
- /**
15274
- * Remove multiple Model instances from database
15275
- */
15276
- RestService.prototype.deleteBatch = function (models) {
15277
- var _this = this;
15278
- this.handleAccessError('deleteBatch');
15279
- return this.http.post(this.apiUrl + "/delete", models)
15280
- .pipe(operators.map(function () {
15281
- _this.handleResponse(models, 'delete');
15282
- }));
15283
- };
15284
- /**
15285
- * Refresh cache with actual backend data
15286
- */
15287
- RestService.prototype.resetCache = function () {
15288
- this.fetch()
15289
- .pipe(operators.first())
15290
- .subscribe();
15291
- };
15292
- /**
15293
- * Get data from backend and fill the cache
15294
- */
15295
- RestService.prototype.fetch = function () {
15296
- var _this = this;
15297
- return this.http.get(this.apiUrl)
15298
- .pipe(operators.map(function (response) { return _this.isApiPlatform ? response['hydra:member'] : toArray(response); }), operators.map(function (response) {
15299
- var items = response.map(function (item) { return _this.createModelInstance(_this.modelClass, item); });
15300
- _this.cache = _this.createCollectionInstance(_this.collectionClass, items);
15301
- _this.cacheSubject.next(_this.cache);
15302
- return _this.cache;
15303
- }));
15304
- };
15305
- ;
15306
- /**
15307
- * Handle response data - update cache and dispatch event if it is needed
15308
- */
15309
- RestService.prototype.handleResponse = function (response, method) {
15310
- this.updateCache(response, method);
15311
- // dispatch event for interested services
15312
- if (response[0] instanceof ObservableModel) {
15313
- this.dispatchEvent(method, response);
15314
- }
15315
- };
15316
- /**
15317
- * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
15318
- */
15319
- RestService.prototype.updateCache = function (items, method) {
15320
- var _a;
15321
- var _this = this;
15322
- switch (method) {
15323
- case 'post':
15324
- this.cache = (_a = this.cache).push.apply(_a, __spreadArray([], __read(items)));
15325
- break;
15326
- case 'put':
15327
- items.forEach(function (item) {
15328
- _this.cache = _this.cache.replaceBy('id', item.id, item);
15329
- });
15330
- break;
15331
- case 'delete':
15332
- this.cache = this.cache.removeBy('id', items.map(function (item) { return item.id; }));
15333
- }
15334
- this.cacheSubject.next(this.cache);
15335
- };
15336
- /**
15337
- * Generate and dispatch rest event
15338
- */
15339
- RestService.prototype.dispatchEvent = function (method, items) {
15340
- var eventName = this.modelClass.getEventName(method);
15341
- this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
15342
- };
15343
- /**
15344
- * Create new instance of class
15345
- * @param model The class whose instance to be created
15346
- * @param plain Single object or array from which will be created model instance(s)
15347
- */
15348
- RestService.prototype.createModelInstance = function (model, plain) {
15349
- // excludePrefixes - class-transformer option is using to ignore hydra fields
15350
- return classTransformer.plainToClass(model, plain, { excludePrefixes: ['@'] });
15394
+ }
15395
+ });
15396
+ return propertySharesIncoming;
15397
+ }));
15351
15398
  };
15352
- RestService.prototype.createCollectionInstance = function (collectionClass, items) {
15353
- return new collectionClass(items);
15399
+ /**
15400
+ * Get outcoming property shares list
15401
+ */
15402
+ PropertyShareService.prototype.getOutcoming = function () {
15403
+ var _this = this;
15404
+ return this.get().pipe(operators.map(function (propertyShares) {
15405
+ return _this.filterOutcoming(propertyShares);
15406
+ }));
15354
15407
  };
15355
15408
  /**
15356
- * Check if method is not disabled. Throw exception otherwise.
15357
- * Some entities does not have endpoints for all methods.
15409
+ * Filter outcoming property shares
15358
15410
  */
15359
- RestService.prototype.handleAccessError = function (method) {
15360
- if (!this.disabledMethods.includes(method)) {
15361
- return;
15362
- }
15363
- 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
+ }));
15364
15426
  };
15365
15427
  /**
15366
- * Subscribe to http events and run callback
15367
- * @param type The class whose changes should be listened for
15368
- * @param methods The list of http methods should be listened for
15369
- * @param callback The function to be called when event triggered
15428
+ * Listen to User updated event
15370
15429
  */
15371
- RestService.prototype.listenCSE = function (modelClass, methods, callback) {
15430
+ PropertyShareService.prototype.listenUserUpdated = function () {
15372
15431
  var _this = this;
15373
- methods.forEach(function (method) {
15374
- _this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe(function (data) {
15375
- 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();
15376
15437
  });
15377
15438
  });
15378
15439
  };
15379
15440
  /**
15380
- * 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
15381
15442
  */
15382
- RestService.prototype.listenEvents = function () { };
15383
- return RestService;
15384
- }());
15385
- 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 });
15386
- RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
15387
- 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: [{
15388
15466
  type: i0.Injectable,
15389
15467
  args: [{
15390
15468
  providedIn: 'root'
15391
15469
  }]
15392
- }], ctorParameters: function () {
15393
- return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
15394
- type: i0.Inject,
15395
- args: ['environment']
15396
- }] }];
15397
- } });
15470
+ }] });
15398
15471
 
15399
15472
  /**
15400
15473
  * @Todo Alex remove functionality related to PropertyShare
@@ -15513,9 +15586,9 @@
15513
15586
  };
15514
15587
  return PropertyService;
15515
15588
  }(RestService));
15516
- 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 });
15517
- PropertyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyService, providedIn: 'root' });
15518
- 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: [{
15519
15592
  type: i0.Injectable,
15520
15593
  args: [{
15521
15594
  providedIn: 'root'
@@ -15563,9 +15636,9 @@
15563
15636
  };
15564
15637
  return ServiceNotificationService;
15565
15638
  }(RestService$1));
15566
- 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 });
15567
- ServiceNotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServiceNotificationService, providedIn: 'root' });
15568
- 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: [{
15569
15642
  type: i0.Injectable,
15570
15643
  args: [{
15571
15644
  providedIn: 'root'
@@ -15577,12 +15650,12 @@
15577
15650
  }] }, { type: ToastService }, { type: SseService }];
15578
15651
  } });
15579
15652
 
15580
- var MessagesEnum$1;
15653
+ var MessagesEnum$2;
15581
15654
  (function (MessagesEnum) {
15582
15655
  MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
15583
15656
  MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
15584
15657
  MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
15585
- })(MessagesEnum$1 || (MessagesEnum$1 = {}));
15658
+ })(MessagesEnum$2 || (MessagesEnum$2 = {}));
15586
15659
 
15587
15660
  var SoleBusinessService = /** @class */ (function (_super) {
15588
15661
  __extends(SoleBusinessService, _super);
@@ -15610,7 +15683,7 @@
15610
15683
  replace(tempCache, classTransformer.plainToClass(SoleBusiness, updatedBusiness));
15611
15684
  _this.cache = tempCache;
15612
15685
  _this.cacheSubject.next(_this.cache);
15613
- _this.toastService.success(MessagesEnum$1.LOGO_UPDATED);
15686
+ _this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
15614
15687
  }), operators.catchError(function (error) {
15615
15688
  // Show error when user provided wrong image (format or size)
15616
15689
  if (error.status === 422) {
@@ -15621,9 +15694,9 @@
15621
15694
  };
15622
15695
  return SoleBusinessService;
15623
15696
  }(RestService$1));
15624
- 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 });
15625
- SoleBusinessService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessService, providedIn: 'root' });
15626
- 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: [{
15627
15700
  type: i0.Injectable,
15628
15701
  args: [{
15629
15702
  providedIn: 'root'
@@ -15641,9 +15714,9 @@
15641
15714
  }
15642
15715
  return SoleBusinessActivityService;
15643
15716
  }(RestService$1));
15644
- 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 });
15645
- SoleBusinessActivityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessActivityService, providedIn: 'root' });
15646
- 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: [{
15647
15720
  type: i0.Injectable,
15648
15721
  args: [{
15649
15722
  providedIn: 'root'
@@ -15673,9 +15746,9 @@
15673
15746
  };
15674
15747
  return SoleBusinessLossService;
15675
15748
  }(RestService$1));
15676
- 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 });
15677
- SoleBusinessLossService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossService, providedIn: 'root' });
15678
- 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: [{
15679
15752
  type: i0.Injectable,
15680
15753
  args: [{
15681
15754
  providedIn: 'root'
@@ -15696,9 +15769,9 @@
15696
15769
  }
15697
15770
  return SoleBusinessLossOffsetRuleService;
15698
15771
  }(RestService$1));
15699
- 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 });
15700
- SoleBusinessLossOffsetRuleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
15701
- 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: [{
15702
15775
  type: i0.Injectable,
15703
15776
  args: [{
15704
15777
  providedIn: 'root'
@@ -15716,9 +15789,9 @@
15716
15789
  }
15717
15790
  return SoleContactService;
15718
15791
  }(RestService$1));
15719
- 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 });
15720
- SoleContactService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleContactService, providedIn: 'root' });
15721
- 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: [{
15722
15795
  type: i0.Injectable,
15723
15796
  args: [{
15724
15797
  providedIn: 'root'
@@ -15778,9 +15851,9 @@
15778
15851
  };
15779
15852
  return SoleDepreciationMethodService;
15780
15853
  }());
15781
- 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 });
15782
- SoleDepreciationMethodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDepreciationMethodService, providedIn: 'root' });
15783
- 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: [{
15784
15857
  type: i0.Injectable,
15785
15858
  args: [{
15786
15859
  providedIn: 'root'
@@ -15839,9 +15912,9 @@
15839
15912
  };
15840
15913
  return SoleDetailsService;
15841
15914
  }());
15842
- 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 });
15843
- SoleDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleDetailsService, providedIn: 'root' });
15844
- 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: [{
15845
15918
  type: i0.Injectable,
15846
15919
  args: [{
15847
15920
  providedIn: 'root'
@@ -15924,9 +15997,9 @@
15924
15997
  };
15925
15998
  return SoleInvoiceService;
15926
15999
  }(RestService$1));
15927
- 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 });
15928
- SoleInvoiceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceService, providedIn: 'root' });
15929
- 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: [{
15930
16003
  type: i0.Injectable,
15931
16004
  args: [{
15932
16005
  providedIn: 'root'
@@ -15944,9 +16017,9 @@
15944
16017
  }
15945
16018
  return SoleInvoiceTemplateService;
15946
16019
  }(RestService$1));
15947
- 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 });
15948
- SoleInvoiceTemplateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleInvoiceTemplateService, providedIn: 'root' });
15949
- 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: [{
15950
16023
  type: i0.Injectable,
15951
16024
  args: [{
15952
16025
  providedIn: 'root'
@@ -15964,9 +16037,9 @@
15964
16037
  }
15965
16038
  return BasReportService;
15966
16039
  }(RestService$1));
15967
- 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 });
15968
- BasReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasReportService, providedIn: 'root' });
15969
- 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: [{
15970
16043
  type: i0.Injectable,
15971
16044
  args: [{
15972
16045
  providedIn: 'root'
@@ -15987,9 +16060,9 @@
15987
16060
  }
15988
16061
  return ServicePriceService;
15989
16062
  }(RestService$1));
15990
- 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 });
15991
- ServicePriceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ServicePriceService, providedIn: 'root' });
15992
- 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: [{
15993
16066
  type: i0.Injectable,
15994
16067
  args: [{
15995
16068
  providedIn: 'root'
@@ -16116,9 +16189,9 @@
16116
16189
  };
16117
16190
  return SubscriptionService;
16118
16191
  }());
16119
- 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 });
16120
- SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SubscriptionService, providedIn: 'root' });
16121
- 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: [{
16122
16195
  type: i0.Injectable,
16123
16196
  args: [{
16124
16197
  providedIn: 'root'
@@ -16159,9 +16232,9 @@
16159
16232
  };
16160
16233
  return TaxReviewHistoryService;
16161
16234
  }(RestService$1));
16162
- 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 });
16163
- TaxReviewHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewHistoryService, providedIn: 'root' });
16164
- 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: [{
16165
16238
  type: i0.Injectable,
16166
16239
  args: [{
16167
16240
  providedIn: 'root'
@@ -16258,9 +16331,9 @@
16258
16331
  };
16259
16332
  return TaxReviewService;
16260
16333
  }(RestService$1));
16261
- 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 });
16262
- TaxReviewService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxReviewService, providedIn: 'root' });
16263
- 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: [{
16264
16337
  type: i0.Injectable,
16265
16338
  args: [{
16266
16339
  providedIn: 'root'
@@ -16321,9 +16394,9 @@
16321
16394
  };
16322
16395
  return TaxSummaryService;
16323
16396
  }());
16324
- 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 });
16325
- TaxSummaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TaxSummaryService, providedIn: 'root' });
16326
- 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: [{
16327
16400
  type: i0.Injectable,
16328
16401
  args: [{
16329
16402
  providedIn: 'root'
@@ -16430,9 +16503,9 @@
16430
16503
  };
16431
16504
  return TransactionAllocationService;
16432
16505
  }(RestService$1));
16433
- 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 });
16434
- TransactionAllocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionAllocationService, providedIn: 'root' });
16435
- 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: [{
16436
16509
  type: i0.Injectable,
16437
16510
  args: [{
16438
16511
  providedIn: 'root'
@@ -16461,9 +16534,9 @@
16461
16534
  }
16462
16535
  return TransactionReceiptService;
16463
16536
  }(ReceiptService));
16464
- 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 });
16465
- TransactionReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, providedIn: 'root' });
16466
- 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: [{
16467
16540
  type: i0.Injectable,
16468
16541
  args: [{
16469
16542
  providedIn: 'root'
@@ -16475,19 +16548,6 @@
16475
16548
  }] }, { type: ToastService }];
16476
16549
  } });
16477
16550
 
16478
- function enumToList(data) {
16479
- var list = [];
16480
- for (var key in data) {
16481
- if (Number(key) >= 0) {
16482
- list.push({
16483
- label: data[key],
16484
- value: Number(key)
16485
- });
16486
- }
16487
- }
16488
- return list;
16489
- }
16490
-
16491
16551
  /**
16492
16552
  * Service for transactions business logic
16493
16553
  */
@@ -16609,7 +16669,7 @@
16609
16669
  transactions = ___default["default"].cloneDeep(transactions);
16610
16670
  return this.http.post(this.environment.apiV2 + "/" + this.url, transactions)
16611
16671
  .pipe(operators.map(function (response) {
16612
- var _c;
16672
+ var _b;
16613
16673
  var addedTransactions = response.map(function (item) { return classTransformer.plainToClass(Transaction, item); });
16614
16674
  transactions.forEach(function (transaction, index) {
16615
16675
  // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
@@ -16633,7 +16693,7 @@
16633
16693
  }
16634
16694
  });
16635
16695
  if (_this.cache) {
16636
- (_c = _this.cache).push.apply(_c, __spreadArray([], __read(addedTransactions)));
16696
+ (_b = _this.cache).push.apply(_b, __spreadArray([], __read(addedTransactions)));
16637
16697
  _this.updateCache();
16638
16698
  }
16639
16699
  _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTIONS_CREATED, addedTransactions));
@@ -16744,31 +16804,6 @@
16744
16804
  }
16745
16805
  return amount;
16746
16806
  };
16747
- /**
16748
- * get label for transaction tax field depended of selected chart account.
16749
- * tax type depends of chart account heading or category.
16750
- */
16751
- TransactionService.prototype.getTaxLabel = function (chartAccounts) {
16752
- var _a, _b;
16753
- // get simple array of ids from enum with taxable chart accounts headings
16754
- var taxableCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxableEnum)
16755
- .map(function (item) { return item.value; });
16756
- // get simple array of ids from enum with tax deductible chart accounts headings
16757
- var deductibleCAHeadingsIds = enumToList(exports.ChartAccountsHeadingTaxDeductibleEnum)
16758
- .map(function (item) { return item.value; });
16759
- // check if one of ids arrays includes current chart accounts heading id and set tax label
16760
- // otherwise label is empty for this class
16761
- switch (true) {
16762
- case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
16763
- return exports.ChartAccountsTaxLabelsEnum.TAX_PAID;
16764
- case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
16765
- return exports.ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
16766
- case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
16767
- return exports.ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
16768
- default:
16769
- return null;
16770
- }
16771
- };
16772
16807
  /**
16773
16808
  * Listen to EventDispatcherService event related to Depreciation changing
16774
16809
  */
@@ -16840,9 +16875,9 @@
16840
16875
  };
16841
16876
  return TransactionService;
16842
16877
  }(RestService$1));
16843
- 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 });
16844
- TransactionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, providedIn: 'root' });
16845
- 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: [{
16846
16881
  type: i0.Injectable,
16847
16882
  args: [{
16848
16883
  providedIn: 'root'
@@ -16874,9 +16909,9 @@
16874
16909
  }());
16875
16910
  TutorialVideoService.googleUrl = "https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name";
16876
16911
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
16877
- 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 });
16878
- TutorialVideoService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TutorialVideoService, providedIn: 'root' });
16879
- 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: [{
16880
16915
  type: i0.Injectable,
16881
16916
  args: [{
16882
16917
  providedIn: 'root'
@@ -16901,9 +16936,9 @@
16901
16936
  }
16902
16937
  return VehicleService;
16903
16938
  }(RestService$1));
16904
- 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 });
16905
- VehicleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleService, providedIn: 'root' });
16906
- 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: [{
16907
16942
  type: i0.Injectable,
16908
16943
  args: [{
16909
16944
  providedIn: 'root'
@@ -16984,9 +17019,9 @@
16984
17019
  };
16985
17020
  return VehicleClaimService;
16986
17021
  }(RestService$1));
16987
- 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 });
16988
- VehicleClaimService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimService, providedIn: 'root' });
16989
- 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: [{
16990
17025
  type: i0.Injectable,
16991
17026
  args: [{
16992
17027
  providedIn: 'root'
@@ -17068,9 +17103,9 @@
17068
17103
  };
17069
17104
  return VehicleClaimDetailsService;
17070
17105
  }());
17071
- 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 });
17072
- VehicleClaimDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleClaimDetailsService, providedIn: 'root' });
17073
- 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: [{
17074
17109
  type: i0.Injectable,
17075
17110
  args: [{
17076
17111
  providedIn: 'root'
@@ -17095,9 +17130,9 @@
17095
17130
  }
17096
17131
  return VehicleLogbookService;
17097
17132
  }(RestService$1));
17098
- 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 });
17099
- VehicleLogbookService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: VehicleLogbookService, providedIn: 'root' });
17100
- 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: [{
17101
17136
  type: i0.Injectable,
17102
17137
  args: [{
17103
17138
  providedIn: 'root'
@@ -17132,9 +17167,9 @@
17132
17167
  };
17133
17168
  return OccupationService;
17134
17169
  }());
17135
- 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 });
17136
- OccupationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: OccupationService, providedIn: 'root' });
17137
- 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: [{
17138
17173
  type: i0.Injectable,
17139
17174
  args: [{
17140
17175
  providedIn: 'root'
@@ -17184,9 +17219,9 @@
17184
17219
  };
17185
17220
  return UserEventSettingService;
17186
17221
  }(RestService$1));
17187
- 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 });
17188
- UserEventSettingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventSettingService, providedIn: 'root' });
17189
- 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: [{
17190
17225
  type: i0.Injectable,
17191
17226
  args: [{
17192
17227
  providedIn: 'root'
@@ -17204,9 +17239,9 @@
17204
17239
  }
17205
17240
  return UserEventTypeService;
17206
17241
  }(RestService$1));
17207
- 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 });
17208
- UserEventTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UserEventTypeService, providedIn: 'root' });
17209
- 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: [{
17210
17245
  type: i0.Injectable,
17211
17246
  args: [{
17212
17247
  providedIn: 'root'
@@ -17226,9 +17261,9 @@
17226
17261
  }
17227
17262
  return UsersInviteService;
17228
17263
  }(RestService$1));
17229
- 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 });
17230
- UsersInviteService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UsersInviteService, providedIn: 'root' });
17231
- 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: [{
17232
17267
  type: i0.Injectable,
17233
17268
  args: [{
17234
17269
  providedIn: 'root'
@@ -17427,9 +17462,9 @@
17427
17462
  };
17428
17463
  return AccountSetupService;
17429
17464
  }());
17430
- 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 });
17431
- AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
17432
- 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: [{
17433
17468
  type: i0.Injectable,
17434
17469
  args: [{
17435
17470
  providedIn: 'root'
@@ -17457,9 +17492,9 @@
17457
17492
  };
17458
17493
  return RewardfulService;
17459
17494
  }());
17460
- 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 });
17461
- RewardfulService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, providedIn: 'root' });
17462
- 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: [{
17463
17498
  type: i0.Injectable,
17464
17499
  args: [{
17465
17500
  providedIn: 'root'
@@ -17507,9 +17542,9 @@
17507
17542
  };
17508
17543
  return AssetsService;
17509
17544
  }());
17510
- 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 });
17511
- AssetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: AssetsService, providedIn: 'root' });
17512
- 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: [{
17513
17548
  type: i0.Injectable,
17514
17549
  args: [{
17515
17550
  providedIn: 'root'
@@ -17579,9 +17614,9 @@
17579
17614
  };
17580
17615
  return BankTransactionCalculationService;
17581
17616
  }());
17582
- BankTransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17583
- BankTransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankTransactionCalculationService, providedIn: 'root' });
17584
- 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: [{
17585
17620
  type: i0.Injectable,
17586
17621
  args: [{
17587
17622
  providedIn: 'root'
@@ -17611,9 +17646,9 @@
17611
17646
  };
17612
17647
  return BankAccountCalculationService;
17613
17648
  }());
17614
- 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 });
17615
- BankAccountCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BankAccountCalculationService, providedIn: 'root' });
17616
- 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: [{
17617
17652
  type: i0.Injectable,
17618
17653
  args: [{
17619
17654
  providedIn: 'root'
@@ -17640,9 +17675,9 @@
17640
17675
  };
17641
17676
  return ExportFormatterService;
17642
17677
  }());
17643
- 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 });
17644
- ExportFormatterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ExportFormatterService, providedIn: 'root' });
17645
- 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: [{
17646
17681
  type: i0.Injectable,
17647
17682
  args: [{
17648
17683
  providedIn: 'root'
@@ -17665,9 +17700,9 @@
17665
17700
  };
17666
17701
  return HeaderTitleService;
17667
17702
  }());
17668
- 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 });
17669
- HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
17670
- 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: [{
17671
17706
  type: i0.Injectable,
17672
17707
  args: [{
17673
17708
  providedIn: 'root'
@@ -17702,9 +17737,9 @@
17702
17737
  };
17703
17738
  return IntercomService;
17704
17739
  }());
17705
- 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 });
17706
- IntercomService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntercomService, providedIn: 'root' });
17707
- 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: [{
17708
17743
  type: i0.Injectable,
17709
17744
  args: [{
17710
17745
  providedIn: 'root'
@@ -17771,9 +17806,9 @@
17771
17806
  };
17772
17807
  return PdfFromDomElementService;
17773
17808
  }());
17774
- PdfFromDomElementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17775
- PdfFromDomElementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDomElementService, providedIn: 'root' });
17776
- 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: [{
17777
17812
  type: i0.Injectable,
17778
17813
  args: [{
17779
17814
  providedIn: 'root'
@@ -17856,9 +17891,9 @@
17856
17891
  };
17857
17892
  return PdfFromTableService;
17858
17893
  }());
17859
- PdfFromTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
17860
- PdfFromTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromTableService, providedIn: 'root' });
17861
- 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: [{
17862
17897
  type: i0.Injectable,
17863
17898
  args: [{
17864
17899
  providedIn: 'root'
@@ -17894,9 +17929,9 @@
17894
17929
  };
17895
17930
  return PdfFromDataTableService;
17896
17931
  }(PdfFromTableService));
17897
- 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 });
17898
- PdfFromDataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromDataTableService, providedIn: 'root' });
17899
- 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: [{
17900
17935
  type: i0.Injectable,
17901
17936
  args: [{
17902
17937
  providedIn: 'root'
@@ -17935,9 +17970,9 @@
17935
17970
  };
17936
17971
  return PdfFromHtmlTableService;
17937
17972
  }(PdfFromTableService));
17938
- 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 });
17939
- PdfFromHtmlTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PdfFromHtmlTableService, providedIn: 'root' });
17940
- 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: [{
17941
17976
  type: i0.Injectable,
17942
17977
  args: [{
17943
17978
  providedIn: 'root'
@@ -17971,9 +18006,9 @@
17971
18006
  };
17972
18007
  return EquityPositionChartService;
17973
18008
  }());
17974
- 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 });
17975
- EquityPositionChartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EquityPositionChartService, providedIn: 'root' });
17976
- 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: [{
17977
18012
  type: i0.Injectable,
17978
18013
  args: [{
17979
18014
  providedIn: 'root'
@@ -18161,9 +18196,9 @@
18161
18196
  };
18162
18197
  return PropertyCalculationService;
18163
18198
  }());
18164
- PropertyCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18165
- PropertyCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyCalculationService, providedIn: 'root' });
18166
- 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: [{
18167
18202
  type: i0.Injectable,
18168
18203
  args: [{
18169
18204
  providedIn: 'root'
@@ -18220,9 +18255,9 @@
18220
18255
  };
18221
18256
  return PropertyTransactionReportService;
18222
18257
  }());
18223
- 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 });
18224
- PropertyTransactionReportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyTransactionReportService, providedIn: 'root' });
18225
- 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: [{
18226
18261
  type: i0.Injectable,
18227
18262
  args: [{
18228
18263
  providedIn: 'root'
@@ -18304,9 +18339,9 @@
18304
18339
  };
18305
18340
  return TransactionCalculationService;
18306
18341
  }());
18307
- TransactionCalculationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18308
- TransactionCalculationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionCalculationService, providedIn: 'root' });
18309
- 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: [{
18310
18345
  type: i0.Injectable,
18311
18346
  args: [{
18312
18347
  providedIn: 'root'
@@ -18370,9 +18405,9 @@
18370
18405
  };
18371
18406
  return LogbookBestPeriodService;
18372
18407
  }());
18373
- 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 });
18374
- LogbookBestPeriodService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LogbookBestPeriodService, providedIn: 'root' });
18375
- 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: [{
18376
18411
  type: i0.Injectable,
18377
18412
  args: [{
18378
18413
  providedIn: 'root'
@@ -18416,9 +18451,9 @@
18416
18451
  };
18417
18452
  return XlsxService;
18418
18453
  }());
18419
- XlsxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
18420
- XlsxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: XlsxService, providedIn: 'root' });
18421
- 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: [{
18422
18457
  type: i0.Injectable,
18423
18458
  args: [{
18424
18459
  providedIn: 'root'
@@ -18663,16 +18698,16 @@
18663
18698
  };
18664
18699
  }
18665
18700
 
18666
- var MessagesEnum;
18701
+ var MessagesEnum$1;
18667
18702
  (function (MessagesEnum) {
18668
18703
  MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
18669
- })(MessagesEnum || (MessagesEnum = {}));
18704
+ })(MessagesEnum$1 || (MessagesEnum$1 = {}));
18670
18705
 
18671
18706
  /**
18672
18707
  * Validation function, that checks If date form value is more than provided date
18673
18708
  */
18674
18709
  function minDateValidator(date, message) {
18675
- 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)); }
18676
18711
  return function (control) {
18677
18712
  if (!control.value) {
18678
18713
  return null;
@@ -18712,6 +18747,50 @@
18712
18747
  };
18713
18748
  }
18714
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
+
18715
18794
  /**
18716
18795
  * Validator for address, check if corelogic suggestion selected correctly
18717
18796
  */
@@ -20632,21 +20711,24 @@
20632
20711
  __extends(MyTaxPartnershipsAndTrustsForm, _super);
20633
20712
  function MyTaxPartnershipsAndTrustsForm(partnershipsAndTrusts) {
20634
20713
  return _super.call(this, {
20635
- partnershipsNetIncome: new forms.FormControl({
20636
- value: partnershipsAndTrusts.partnershipsNetIncome,
20714
+ partnershipsIncomeTotalAmount: new forms.FormControl({
20715
+ value: partnershipsAndTrusts.partnershipsIncomeTotalAmount,
20716
+ disabled: true
20717
+ }),
20718
+ partnershipsExpenseTotalAmount: new forms.FormControl({
20719
+ value: partnershipsAndTrusts.partnershipsExpenseTotalAmount,
20720
+ disabled: true
20721
+ }),
20722
+ trustsIncomeTotalAmount: new forms.FormControl({
20723
+ value: partnershipsAndTrusts.trustsIncomeTotalAmount,
20637
20724
  disabled: true
20638
20725
  }),
20639
- trustsNetIncome: new forms.FormControl({
20640
- value: partnershipsAndTrusts.trustsNetIncome,
20726
+ trustsExpenseTotalAmount: new forms.FormControl({
20727
+ value: partnershipsAndTrusts.trustsExpenseTotalAmount,
20641
20728
  disabled: true
20642
20729
  }),
20643
- trustType: new forms.FormControl(partnershipsAndTrusts.trustType, conditionalValidator(function (control) {
20644
- return !!partnershipsAndTrusts.trustsIncomes.length;
20645
- }, forms.Validators.required)),
20646
- partnershipsSmallBusinessNetIncome: new forms.FormControl(partnershipsAndTrusts.partnershipsSmallBusinessNetIncome, forms.Validators.required),
20647
- trustsSmallBusinessNetIncome: new forms.FormControl(partnershipsAndTrusts.trustsSmallBusinessNetIncome, forms.Validators.required),
20648
- taxPaidTotal: new forms.FormControl({
20649
- value: partnershipsAndTrusts.taxPaidTotal,
20730
+ trustsIncomeTotalTax: new forms.FormControl({
20731
+ value: partnershipsAndTrusts.trustsIncomeTotalTax,
20650
20732
  disabled: true
20651
20733
  }),
20652
20734
  frankingCreditsTotal: new forms.FormControl({
@@ -20801,6 +20883,313 @@
20801
20883
  }(AbstractForm));
20802
20884
  VehicleLogbookForm.maxDescriptionLength = 60;
20803
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
+
20804
21193
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
20805
21194
 
20806
21195
  /**
@@ -20903,6 +21292,7 @@
20903
21292
  exports.DepreciationCollection = DepreciationCollection;
20904
21293
  exports.DepreciationForecast = DepreciationForecast;
20905
21294
  exports.DepreciationForecastCollection = DepreciationForecastCollection;
21295
+ exports.DepreciationForm = DepreciationForm;
20906
21296
  exports.DepreciationGroup = DepreciationGroup;
20907
21297
  exports.DepreciationGroupItem = DepreciationGroupItem;
20908
21298
  exports.DepreciationLvpReportItem = DepreciationLvpReportItem;
@@ -20930,6 +21320,7 @@
20930
21320
  exports.ExportFormatterService = ExportFormatterService;
20931
21321
  exports.ExportableCollection = ExportableCollection;
20932
21322
  exports.FacebookService = FacebookService;
21323
+ exports.FileValidator = FileValidator;
20933
21324
  exports.FinancialYear = FinancialYear;
20934
21325
  exports.Firm = Firm;
20935
21326
  exports.FirmService = FirmService;
@@ -21118,8 +21509,10 @@
21118
21509
  exports.TransactionAllocationService = TransactionAllocationService;
21119
21510
  exports.TransactionBase = TransactionBase;
21120
21511
  exports.TransactionBaseCollection = TransactionBaseCollection;
21512
+ exports.TransactionBaseForm = TransactionBaseForm;
21121
21513
  exports.TransactionCalculationService = TransactionCalculationService;
21122
21514
  exports.TransactionCollection = TransactionCollection;
21515
+ exports.TransactionForm = TransactionForm;
21123
21516
  exports.TransactionMetadata = TransactionMetadata;
21124
21517
  exports.TransactionReceipt = TransactionReceipt;
21125
21518
  exports.TransactionReceiptService = TransactionReceiptService;
@@ -21156,6 +21549,7 @@
21156
21549
  exports.VehicleLogbookForm = VehicleLogbookForm;
21157
21550
  exports.VehicleLogbookService = VehicleLogbookService;
21158
21551
  exports.VehicleService = VehicleService;
21552
+ exports.WorkIncomeForm = WorkIncomeForm;
21159
21553
  exports.XlsxService = XlsxService;
21160
21554
  exports.atLeastOneCheckedValidator = atLeastOneCheckedValidator;
21161
21555
  exports.atoLinks = atoLinks;
@@ -21165,6 +21559,7 @@
21165
21559
  exports.compareMatOptions = compareMatOptions;
21166
21560
  exports.conditionalValidator = conditionalValidator;
21167
21561
  exports.createDate = createDate;
21562
+ exports.currentFinYearValidator = currentFinYearValidator;
21168
21563
  exports.displayMatOptions = displayMatOptions;
21169
21564
  exports.enumToList = enumToList;
21170
21565
  exports.fieldsSumValidator = fieldsSumValidator;