taxtank-core 0.28.105 → 0.28.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/bundles/taxtank-core.umd.js +1289 -880
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.js +17 -0
  4. package/esm2015/lib/db/Enums/index.js +2 -1
  5. package/esm2015/lib/forms/depreciation/depreciation.form.js +35 -0
  6. package/esm2015/lib/forms/depreciation/index.js +2 -0
  7. package/esm2015/lib/forms/form-validations.enum.js +12 -0
  8. package/esm2015/lib/forms/index.js +4 -1
  9. package/esm2015/lib/forms/transaction/index.js +4 -0
  10. package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
  11. package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
  12. package/esm2015/lib/forms/transaction/transaction.form.js +12 -0
  13. package/esm2015/lib/forms/transaction/work-income.form.js +119 -0
  14. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  15. package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  19. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  20. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  21. package/esm2015/lib/interceptors/user-switcher-interceptor.js +15 -5
  22. package/esm2015/lib/models/chart-accounts/chart-accounts.js +37 -1
  23. package/esm2015/lib/models/chart-accounts/index.js +9 -0
  24. package/esm2015/lib/models/document/index.js +3 -1
  25. package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
  26. package/esm2015/lib/models/index.js +3 -1
  27. package/esm2015/lib/models/transaction/index.js +7 -0
  28. package/esm2015/lib/models/transaction/transaction.js +2 -3
  29. package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
  30. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  31. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  32. package/esm2015/lib/services/asset/assets.service.js +3 -3
  33. package/esm2015/lib/services/auth/auth.service.js +3 -3
  34. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  35. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  36. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  37. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  38. package/esm2015/lib/services/event/sse.service.js +3 -3
  39. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  40. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  41. package/esm2015/lib/services/http/address/address.service.js +3 -3
  42. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
  43. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
  44. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  45. package/esm2015/lib/services/http/bank/bank.service.js +13 -9
  46. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  47. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  48. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  49. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +6 -7
  50. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  51. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  52. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  53. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  54. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  55. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  56. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  57. package/esm2015/lib/services/http/document/document.service.js +3 -3
  58. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  59. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  60. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  61. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  62. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  63. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  64. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  65. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  66. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  67. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  68. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  69. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  70. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  71. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  72. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  73. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  74. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  75. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  76. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  77. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  78. package/esm2015/lib/services/http/property/property.service.js +3 -3
  79. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  80. package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
  81. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  82. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  83. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
  84. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  85. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
  86. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
  87. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
  88. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  89. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  90. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  91. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
  92. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
  93. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  94. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  95. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  96. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  97. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  98. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  99. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  100. package/esm2015/lib/services/http/transaction/transaction.service.js +4 -34
  101. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  102. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  103. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  104. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  105. package/esm2015/lib/services/http/user/user.service.js +3 -3
  106. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  107. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  108. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  109. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  110. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  111. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  112. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  113. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  114. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  115. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  116. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  117. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  118. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  119. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  120. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  121. package/esm2015/lib/services/toast/toast.service.js +3 -3
  122. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  123. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  124. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  125. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  126. package/esm2015/lib/tt-core.module.js +4 -4
  127. package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
  128. package/esm2015/lib/validators/file.validator.js +27 -0
  129. package/esm2015/lib/validators/index.js +3 -1
  130. package/fesm2015/taxtank-core.js +1246 -898
  131. package/fesm2015/taxtank-core.js.map +1 -1
  132. package/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
  133. package/lib/db/Enums/index.d.ts +1 -0
  134. package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
  135. package/lib/forms/depreciation/index.d.ts +1 -0
  136. package/lib/forms/form-validations.enum.d.ts +9 -0
  137. package/lib/forms/index.d.ts +3 -0
  138. package/lib/forms/transaction/index.d.ts +3 -0
  139. package/lib/forms/transaction/messages.enum.d.ts +3 -0
  140. package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
  141. package/lib/forms/transaction/transaction.form.d.ts +8 -0
  142. package/lib/forms/transaction/work-income.form.d.ts +21 -0
  143. package/lib/models/chart-accounts/chart-accounts.d.ts +8 -0
  144. package/lib/models/chart-accounts/index.d.ts +8 -0
  145. package/lib/models/document/index.d.ts +2 -0
  146. package/lib/models/income-source/salary-forecast.d.ts +1 -0
  147. package/lib/models/index.d.ts +2 -0
  148. package/lib/models/transaction/index.d.ts +6 -0
  149. package/lib/models/transaction/transaction.d.ts +2 -2
  150. package/lib/services/http/bank/bank.service.d.ts +9 -5
  151. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +1 -2
  152. package/lib/services/http/transaction/transaction.service.d.ts +0 -7
  153. package/lib/validators/current-fin-year.validator.d.ts +5 -0
  154. package/lib/validators/file.validator.d.ts +6 -0
  155. package/lib/validators/index.d.ts +2 -0
  156. package/package.json +1 -1
@@ -73,9 +73,9 @@ class CorelogicService {
73
73
  }));
74
74
  }
75
75
  }
76
- CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
77
- CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, providedIn: 'root' });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicService, decorators: [{
76
+ CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
77
+ CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, providedIn: 'root' });
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, decorators: [{
79
79
  type: Injectable,
80
80
  args: [{
81
81
  providedIn: 'root'
@@ -115,9 +115,9 @@ class CorelogicInterceptor {
115
115
  });
116
116
  }
117
117
  }
118
- CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
119
- CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor });
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CorelogicInterceptor, decorators: [{
118
+ CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
119
+ CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor });
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, decorators: [{
121
121
  type: Injectable
122
122
  }], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
123
123
  type: Inject,
@@ -154,9 +154,9 @@ class FinancialYearInterceptor {
154
154
  return next.handle(clonedReq);
155
155
  }
156
156
  }
157
- FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
158
- FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor });
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
157
+ FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
158
+ FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor });
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
160
160
  type: Injectable
161
161
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
162
162
  type: Inject,
@@ -187,9 +187,9 @@ class JwtService extends JwtHelperService {
187
187
  return this.getUser().id === userId;
188
188
  }
189
189
  }
190
- JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
191
- JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, providedIn: 'root' });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtService, decorators: [{
190
+ JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
191
+ JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, providedIn: 'root' });
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, decorators: [{
193
193
  type: Injectable,
194
194
  args: [{
195
195
  providedIn: 'root'
@@ -299,9 +299,9 @@ class EventDispatcherService {
299
299
  this.eventSubject2.next(event);
300
300
  }
301
301
  }
302
- EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
303
- EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
304
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EventDispatcherService, decorators: [{
302
+ EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
303
+ EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, decorators: [{
305
305
  type: Injectable,
306
306
  args: [{
307
307
  providedIn: 'root'
@@ -350,9 +350,9 @@ class AuthService {
350
350
  location.replace(url);
351
351
  }
352
352
  }
353
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
354
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, providedIn: 'root' });
355
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AuthService, decorators: [{
353
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
354
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, providedIn: 'root' });
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, decorators: [{
356
356
  type: Injectable,
357
357
  args: [{
358
358
  providedIn: 'root'
@@ -488,9 +488,9 @@ class JwtInterceptor {
488
488
  });
489
489
  }
490
490
  }
491
- JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
492
- JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor });
493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: JwtInterceptor, decorators: [{
491
+ JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
492
+ JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor });
493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, decorators: [{
494
494
  type: Injectable
495
495
  }], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
496
496
  type: Inject,
@@ -523,9 +523,9 @@ class UserSwitcherService {
523
523
  window.location.replace('/firm/dashboard');
524
524
  }
525
525
  }
526
- UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
527
- UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherService, decorators: [{
526
+ UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
527
+ UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
528
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, decorators: [{
529
529
  type: Injectable,
530
530
  args: [{
531
531
  providedIn: 'root'
@@ -548,7 +548,17 @@ class UserSwitcherInterceptor {
548
548
  if (!req.url.includes(this.environment.api_uri) || !username) {
549
549
  return req;
550
550
  }
551
- const params = new HttpParams({ fromString: req.params.toString() }).set('_switch_user', username);
551
+ const params = new HttpParams({
552
+ fromString: req.params.toString(),
553
+ // custom encoder to encode '+' symbol and other (Problem: TT-2359)
554
+ // https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
555
+ encoder: {
556
+ encodeKey: (key) => encodeURIComponent(key),
557
+ encodeValue: (value) => encodeURIComponent(value),
558
+ decodeKey: (key) => decodeURIComponent(key),
559
+ decodeValue: (value) => decodeURIComponent(value)
560
+ }
561
+ }).set('_switch_user', username);
552
562
  return req.clone({ params });
553
563
  // @TODO move to header solution when backend can support it
554
564
  // return req.clone({
@@ -561,9 +571,9 @@ class UserSwitcherInterceptor {
561
571
  return next.handle(this.switch(request, this.userSwitcherService.get()));
562
572
  }
563
573
  }
564
- UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
565
- UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor });
566
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
574
+ UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
575
+ UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor });
576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
567
577
  type: Injectable
568
578
  }], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
569
579
  type: Inject,
@@ -802,9 +812,9 @@ class PreloaderService {
802
812
  this.activePreloaders.next(activePreloaders);
803
813
  }
804
814
  }
805
- PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
806
- PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, providedIn: 'root' });
807
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderService, decorators: [{
815
+ PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
816
+ PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, providedIn: 'root' });
817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, decorators: [{
808
818
  type: Injectable,
809
819
  args: [{
810
820
  providedIn: 'root'
@@ -832,9 +842,9 @@ class PreloaderInterceptor {
832
842
  return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
833
843
  }
834
844
  }
835
- PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
836
- PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor });
837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreloaderInterceptor, decorators: [{
845
+ PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
846
+ PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor });
847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, decorators: [{
838
848
  type: Injectable
839
849
  }], ctorParameters: function () { return [{ type: PreloaderService }]; } });
840
850
 
@@ -946,9 +956,9 @@ class ToastService {
946
956
  }));
947
957
  }
948
958
  }
949
- ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
950
- ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, providedIn: 'root' });
951
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ToastService, decorators: [{
959
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
960
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, providedIn: 'root' });
961
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, decorators: [{
952
962
  type: Injectable,
953
963
  args: [{
954
964
  providedIn: 'root'
@@ -1159,9 +1169,9 @@ class RestService$1 {
1159
1169
  */
1160
1170
  listenEvents() { }
1161
1171
  }
1162
- RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1163
- RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService$1, providedIn: 'root' });
1164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService$1, decorators: [{
1172
+ RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1173
+ RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, providedIn: 'root' });
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, decorators: [{
1165
1175
  type: Injectable,
1166
1176
  args: [{
1167
1177
  providedIn: 'root'
@@ -2657,6 +2667,92 @@ const CHART_ACCOUNTS_CATEGORIES = {
2657
2667
  ]
2658
2668
  };
2659
2669
 
2670
+ var ChartAccountsTaxLabelsEnum;
2671
+ (function (ChartAccountsTaxLabelsEnum) {
2672
+ ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
2673
+ ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
2674
+ ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
2675
+ })(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
2676
+
2677
+ function enumToList(data) {
2678
+ const list = [];
2679
+ for (const key in data) {
2680
+ if (Number(key) >= 0) {
2681
+ list.push({
2682
+ label: data[key],
2683
+ value: Number(key)
2684
+ });
2685
+ }
2686
+ }
2687
+ return list;
2688
+ }
2689
+
2690
+ var ChartAccountsHeadingTaxableEnum;
2691
+ (function (ChartAccountsHeadingTaxableEnum) {
2692
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
2693
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
2694
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
2695
+ ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
2696
+ })(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
2697
+
2698
+ var ChartAccountsHeadingTaxDeductibleEnum;
2699
+ (function (ChartAccountsHeadingTaxDeductibleEnum) {
2700
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
2701
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
2702
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
2703
+ ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
2704
+ })(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
2705
+
2706
+ var ChartAccountsHeadingListEnum;
2707
+ (function (ChartAccountsHeadingListEnum) {
2708
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
2709
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
2710
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
2711
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
2712
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
2713
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
2714
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
2715
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
2716
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
2717
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
2718
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
2719
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
2720
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
2721
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
2722
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
2723
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
2724
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
2725
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
2726
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
2727
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
2728
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
2729
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
2730
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
2731
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
2732
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
2733
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
2734
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
2735
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
2736
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
2737
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
2738
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
2739
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
2740
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
2741
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
2742
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
2743
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
2744
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
2745
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
2746
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
2747
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
2748
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
2749
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
2750
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
2751
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
2752
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
2753
+ ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
2754
+ })(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
2755
+
2660
2756
  class ChartAccounts extends ChartAccounts$1 {
2661
2757
  /**
2662
2758
  * Return name as string
@@ -2807,6 +2903,37 @@ class ChartAccounts extends ChartAccounts$1 {
2807
2903
  isClaimPercentEditable() {
2808
2904
  return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
2809
2905
  }
2906
+ /**
2907
+ * get label for transaction tax field depended on selected chart account.
2908
+ * tax type depends on chart account heading or category.
2909
+ */
2910
+ getTaxLabel() {
2911
+ var _a, _b;
2912
+ // get simple array of ids from enum with taxable chart accounts headings
2913
+ const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
2914
+ .map((item) => item.value);
2915
+ // get simple array of ids from enum with tax-deductible chart accounts headings
2916
+ const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
2917
+ .map((item) => item.value);
2918
+ // check if one of ids arrays includes current chart accounts heading id and set tax label
2919
+ // otherwise label is empty for this class
2920
+ switch (true) {
2921
+ case taxableCAHeadingsIds.includes((_a = this.heading) === null || _a === void 0 ? void 0 : _a.id):
2922
+ return ChartAccountsTaxLabelsEnum.TAX_PAID;
2923
+ case deductibleCAHeadingsIds.includes((_b = this.heading) === null || _b === void 0 ? void 0 : _b.id):
2924
+ return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
2925
+ case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
2926
+ return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
2927
+ default:
2928
+ return null;
2929
+ }
2930
+ }
2931
+ isETP() {
2932
+ return this.heading.id === ChartAccountsHeadingListEnum.ETP;
2933
+ }
2934
+ isSalary() {
2935
+ return this.id === ChartAccountsListEnum.SALARY_OR_WAGES;
2936
+ }
2810
2937
  }
2811
2938
  /**
2812
2939
  * Australian GST percent value (VAT)
@@ -2984,6 +3111,74 @@ class TransactionReceipt extends TransactionReceipt$1 {
2984
3111
  }
2985
3112
  }
2986
3113
 
3114
+ /**
3115
+ * @TODO Alex/Vik: think and create some new collection type
3116
+ * @TODO Alex: research all constants and make the same structure
3117
+ */
3118
+ class ChartAccountsCategoryECollection {
3119
+ constructor(items) {
3120
+ this.items = items || [
3121
+ ChartAccountsCategoryEnum.PROPERTY_INCOME,
3122
+ ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
3123
+ ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
3124
+ ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
3125
+ ChartAccountsCategoryEnum.WORK_DEPRECIATION,
3126
+ ChartAccountsCategoryEnum.WORK_INCOME,
3127
+ ChartAccountsCategoryEnum.WORK_EXPENSE,
3128
+ ChartAccountsCategoryEnum.OTHER_INCOME,
3129
+ ChartAccountsCategoryEnum.OTHER_EXPENSE,
3130
+ ChartAccountsCategoryEnum.PERSONAL_INCOME,
3131
+ ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
3132
+ ChartAccountsCategoryEnum.SOLE_INCOME,
3133
+ ChartAccountsCategoryEnum.SOLE_EXPENSE,
3134
+ ChartAccountsCategoryEnum.SOLE_DEPRECIATION
3135
+ ];
3136
+ }
3137
+ getByType(types) {
3138
+ if (!Array.isArray(types)) {
3139
+ types = [types];
3140
+ }
3141
+ const items = [];
3142
+ types.forEach((type) => {
3143
+ const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
3144
+ items.push(...filtered);
3145
+ });
3146
+ return new ChartAccountsCategoryECollection(items);
3147
+ }
3148
+ getByTankType(tankTypes) {
3149
+ if (!Array.isArray(tankTypes)) {
3150
+ tankTypes = [tankTypes];
3151
+ }
3152
+ const items = [];
3153
+ tankTypes.forEach((tankType) => {
3154
+ const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
3155
+ items.push(...filtered);
3156
+ });
3157
+ return new ChartAccountsCategoryECollection(items);
3158
+ }
3159
+ }
3160
+
3161
+ class ChartAccountsDepreciation$1 extends AbstractModel {
3162
+ }
3163
+
3164
+ class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
3165
+ }
3166
+ __decorate([
3167
+ Type(() => ChartAccounts)
3168
+ ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
3169
+ __decorate([
3170
+ Transform(({ value }) => +value)
3171
+ ], ChartAccountsDepreciation.prototype, "limit", void 0);
3172
+ __decorate([
3173
+ Transform(({ value }) => +value)
3174
+ ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
3175
+
3176
+ class ChartAccountsValue$1 extends AbstractModel {
3177
+ }
3178
+
3179
+ class ChartAccountsValue extends ChartAccountsValue$1 {
3180
+ }
3181
+
2987
3182
  class IncomeSource$1 extends AbstractModel {
2988
3183
  }
2989
3184
 
@@ -2998,6 +3193,9 @@ class SalaryForecast$1 extends AbstractModel {
2998
3193
  }
2999
3194
 
3000
3195
  class SalaryForecast extends SalaryForecast$1 {
3196
+ get taxWithheld() {
3197
+ return this.grossAmount - this.netPay;
3198
+ }
3001
3199
  }
3002
3200
  __decorate([
3003
3201
  Transform(({ obj }) => obj.netPay + obj.tax),
@@ -3958,6 +4156,7 @@ class Vehicle$1 extends AbstractModel {
3958
4156
  class VehicleLogbook$1 extends AbstractModel {
3959
4157
  }
3960
4158
 
4159
+ // problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
3961
4160
  const moment = extendMoment(moment$1);
3962
4161
  class VehicleLogbook extends VehicleLogbook$1 {
3963
4162
  get kilometers() {
@@ -5860,6 +6059,29 @@ class Document extends Document$1 {
5860
6059
  }
5861
6060
  }
5862
6061
 
6062
+ const DOCUMENT_FILE_TYPES = {
6063
+ image: [
6064
+ 'image/png',
6065
+ 'image/jpg',
6066
+ 'image/jpeg',
6067
+ 'image/tiff',
6068
+ 'image/bmp'
6069
+ ],
6070
+ all: [
6071
+ 'image/png',
6072
+ 'image/jpg',
6073
+ 'image/jpeg',
6074
+ 'image/tiff',
6075
+ 'image/bmp',
6076
+ 'application/msword',
6077
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
6078
+ 'application/pdf',
6079
+ 'application/vnd.ms-excel',
6080
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
6081
+ 'text/csv'
6082
+ ]
6083
+ };
6084
+
5863
6085
  class DocumentFolder$1 extends AbstractModel {
5864
6086
  }
5865
6087
 
@@ -5869,6 +6091,23 @@ __decorate([
5869
6091
  Type(() => Document)
5870
6092
  ], DocumentFolder.prototype, "documents", void 0);
5871
6093
 
6094
+ /**
6095
+ * Enum with income amount types (Net or Gross)
6096
+ */
6097
+ var IncomeAmountTypeEnum;
6098
+ (function (IncomeAmountTypeEnum) {
6099
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
6100
+ IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
6101
+ })(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
6102
+
6103
+ var TransactionCategoryEnum;
6104
+ (function (TransactionCategoryEnum) {
6105
+ TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
6106
+ TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
6107
+ TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
6108
+ TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
6109
+ })(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
6110
+
5872
6111
  /**
5873
6112
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
5874
6113
  * service handles BankConnection management
@@ -5955,9 +6194,9 @@ BankConnectionService.userEventTypes = [
5955
6194
  UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
5956
6195
  UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
5957
6196
  ];
5958
- BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
5959
- BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
5960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankConnectionService, decorators: [{
6197
+ BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
6198
+ BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
6199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, decorators: [{
5961
6200
  type: Injectable,
5962
6201
  args: [{
5963
6202
  providedIn: 'root'
@@ -6073,9 +6312,9 @@ BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
6073
6312
  * Basiq does not provide a hook, so we have to check job status manually every x seconds
6074
6313
  */
6075
6314
  BasiqService.bankCredintialsCheckInterval = 3000;
6076
- BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
6077
- BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, providedIn: 'root' });
6078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqService, decorators: [{
6315
+ BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
6316
+ BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, providedIn: 'root' });
6317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, decorators: [{
6079
6318
  type: Injectable,
6080
6319
  args: [{
6081
6320
  providedIn: 'root'
@@ -6109,9 +6348,9 @@ class BasiqTokenService {
6109
6348
  return this.cacheSubject.asObservable();
6110
6349
  }
6111
6350
  }
6112
- BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6113
- BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
6114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenService, decorators: [{
6351
+ BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6352
+ BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
6353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, decorators: [{
6115
6354
  type: Injectable,
6116
6355
  args: [{
6117
6356
  providedIn: 'root'
@@ -6145,9 +6384,9 @@ class BasiqTokenInterceptor {
6145
6384
  });
6146
6385
  }
6147
6386
  }
6148
- BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
6149
- BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenInterceptor });
6150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
6387
+ BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
6388
+ BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor });
6389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
6151
6390
  type: Injectable
6152
6391
  }], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
6153
6392
 
@@ -6183,9 +6422,9 @@ class SseService {
6183
6422
  }));
6184
6423
  }
6185
6424
  }
6186
- SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6187
- SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, providedIn: 'root' });
6188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SseService, decorators: [{
6425
+ SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6426
+ SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, providedIn: 'root' });
6427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, decorators: [{
6189
6428
  type: Injectable,
6190
6429
  args: [{
6191
6430
  providedIn: 'root'
@@ -6352,9 +6591,9 @@ class UserService {
6352
6591
  this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
6353
6592
  }
6354
6593
  }
6355
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6356
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, providedIn: 'root' });
6357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserService, decorators: [{
6594
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
6595
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, providedIn: 'root' });
6596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, decorators: [{
6358
6597
  type: Injectable,
6359
6598
  args: [{
6360
6599
  providedIn: 'root'
@@ -6384,17 +6623,17 @@ class BasiqClientIdInterceptor {
6384
6623
  });
6385
6624
  }
6386
6625
  }
6387
- BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
6388
- BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqClientIdInterceptor });
6389
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
6626
+ BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
6627
+ BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor });
6628
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
6390
6629
  type: Injectable
6391
6630
  }], ctorParameters: function () { return [{ type: UserService }]; } });
6392
6631
 
6393
6632
  class InterceptorsModule {
6394
6633
  }
6395
- InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6396
- InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule });
6397
- InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, providers: [
6634
+ InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6635
+ InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule });
6636
+ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, providers: [
6398
6637
  {
6399
6638
  provide: HTTP_INTERCEPTORS,
6400
6639
  useClass: CorelogicInterceptor,
@@ -6432,7 +6671,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
6432
6671
  multi: true
6433
6672
  }
6434
6673
  ] });
6435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: InterceptorsModule, decorators: [{
6674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, decorators: [{
6436
6675
  type: NgModule,
6437
6676
  args: [{
6438
6677
  providers: [
@@ -6490,14 +6729,14 @@ class TtCoreModule {
6490
6729
  };
6491
6730
  }
6492
6731
  }
6493
- TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6494
- TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
6732
+ TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6733
+ TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
6495
6734
  InterceptorsModule] });
6496
- TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, imports: [[
6735
+ TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [[
6497
6736
  CommonModule,
6498
6737
  InterceptorsModule
6499
6738
  ]] });
6500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, decorators: [{
6739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, decorators: [{
6501
6740
  type: NgModule,
6502
6741
  args: [{
6503
6742
  declarations: [],
@@ -7545,53 +7784,6 @@ class ClientInviteCollection extends Collection {
7545
7784
  }
7546
7785
  }
7547
7786
 
7548
- /**
7549
- * @TODO Alex/Vik: think and create some new collection type
7550
- * @TODO Alex: research all constants and make the same structure
7551
- */
7552
- class ChartAccountsCategoryECollection {
7553
- constructor(items) {
7554
- this.items = items || [
7555
- ChartAccountsCategoryEnum.PROPERTY_INCOME,
7556
- ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
7557
- ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
7558
- ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
7559
- ChartAccountsCategoryEnum.WORK_DEPRECIATION,
7560
- ChartAccountsCategoryEnum.WORK_INCOME,
7561
- ChartAccountsCategoryEnum.WORK_EXPENSE,
7562
- ChartAccountsCategoryEnum.OTHER_INCOME,
7563
- ChartAccountsCategoryEnum.OTHER_EXPENSE,
7564
- ChartAccountsCategoryEnum.PERSONAL_INCOME,
7565
- ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
7566
- ChartAccountsCategoryEnum.SOLE_INCOME,
7567
- ChartAccountsCategoryEnum.SOLE_EXPENSE,
7568
- ChartAccountsCategoryEnum.SOLE_DEPRECIATION
7569
- ];
7570
- }
7571
- getByType(types) {
7572
- if (!Array.isArray(types)) {
7573
- types = [types];
7574
- }
7575
- const items = [];
7576
- types.forEach((type) => {
7577
- const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
7578
- items.push(...filtered);
7579
- });
7580
- return new ChartAccountsCategoryECollection(items);
7581
- }
7582
- getByTankType(tankTypes) {
7583
- if (!Array.isArray(tankTypes)) {
7584
- tankTypes = [tankTypes];
7585
- }
7586
- const items = [];
7587
- tankTypes.forEach((tankType) => {
7588
- const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
7589
- items.push(...filtered);
7590
- });
7591
- return new ChartAccountsCategoryECollection(items);
7592
- }
7593
- }
7594
-
7595
7787
  var DocumentTypeEnum;
7596
7788
  (function (DocumentTypeEnum) {
7597
7789
  DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
@@ -7606,6 +7798,23 @@ var AnnualFrequencyEnum;
7606
7798
  AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
7607
7799
  })(AnnualFrequencyEnum || (AnnualFrequencyEnum = {}));
7608
7800
 
7801
+ var ChartAccountsSalaryAdjustmentsListEnum;
7802
+ (function (ChartAccountsSalaryAdjustmentsListEnum) {
7803
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
7804
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TIPS"] = 5] = "TIPS";
7805
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
7806
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ADVANCE"] = 556] = "ADVANCE";
7807
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["POST_TAX_DEDUCTIONS_OTHER"] = 644] = "POST_TAX_DEDUCTIONS_OTHER";
7808
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PRE_TAX_DEDUCTIONS_OTHER"] = 645] = "PRE_TAX_DEDUCTIONS_OTHER";
7809
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
7810
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
7811
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
7812
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
7813
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
7814
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["LAFH"] = 651] = "LAFH";
7815
+ ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
7816
+ })(ChartAccountsSalaryAdjustmentsListEnum || (ChartAccountsSalaryAdjustmentsListEnum = {}));
7817
+
7609
7818
  // @TODO Artem TT-2308 move everything
7610
7819
 
7611
7820
  var ChartAccountsEtpEnum;
@@ -7617,72 +7826,6 @@ var ChartAccountsEtpEnum;
7617
7826
  ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
7618
7827
  })(ChartAccountsEtpEnum || (ChartAccountsEtpEnum = {}));
7619
7828
 
7620
- var ChartAccountsHeadingListEnum;
7621
- (function (ChartAccountsHeadingListEnum) {
7622
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
7623
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
7624
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
7625
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
7626
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
7627
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
7628
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
7629
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
7630
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
7631
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
7632
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
7633
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
7634
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
7635
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
7636
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
7637
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
7638
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
7639
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
7640
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
7641
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
7642
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
7643
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
7644
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
7645
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
7646
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
7647
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
7648
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
7649
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
7650
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
7651
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
7652
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
7653
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
7654
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
7655
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
7656
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
7657
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
7658
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
7659
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
7660
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
7661
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
7662
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
7663
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
7664
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
7665
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
7666
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
7667
- ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
7668
- })(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
7669
-
7670
- var ChartAccountsHeadingTaxableEnum;
7671
- (function (ChartAccountsHeadingTaxableEnum) {
7672
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
7673
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
7674
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
7675
- ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
7676
- })(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
7677
-
7678
- var ChartAccountsHeadingTaxDeductibleEnum;
7679
- (function (ChartAccountsHeadingTaxDeductibleEnum) {
7680
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
7681
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
7682
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
7683
- ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
7684
- })(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
7685
-
7686
7829
  var ChartAccountsMetadataTypeEnum;
7687
7830
  (function (ChartAccountsMetadataTypeEnum) {
7688
7831
  ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
@@ -8132,34 +8275,6 @@ class BorrowingExpenseLoan$1 extends AbstractModel {
8132
8275
  class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
8133
8276
  }
8134
8277
 
8135
- class ChartAccountsDepreciation$1 extends AbstractModel {
8136
- }
8137
-
8138
- class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
8139
- }
8140
- __decorate([
8141
- Type(() => ChartAccounts)
8142
- ], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
8143
- __decorate([
8144
- Transform(({ value }) => +value)
8145
- ], ChartAccountsDepreciation.prototype, "limit", void 0);
8146
- __decorate([
8147
- Transform(({ value }) => +value)
8148
- ], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
8149
-
8150
- var ChartAccountsTaxLabelsEnum;
8151
- (function (ChartAccountsTaxLabelsEnum) {
8152
- ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
8153
- ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
8154
- ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
8155
- })(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
8156
-
8157
- class ChartAccountsValue$1 extends AbstractModel {
8158
- }
8159
-
8160
- class ChartAccountsValue extends ChartAccountsValue$1 {
8161
- }
8162
-
8163
8278
  class Chat$1 extends AbstractModel {
8164
8279
  }
8165
8280
 
@@ -8539,29 +8654,6 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
8539
8654
  }
8540
8655
  }
8541
8656
 
8542
- const DOCUMENT_FILE_TYPES = {
8543
- image: [
8544
- 'image/png',
8545
- 'image/jpg',
8546
- 'image/jpeg',
8547
- 'image/tiff',
8548
- 'image/bmp'
8549
- ],
8550
- all: [
8551
- 'image/png',
8552
- 'image/jpg',
8553
- 'image/jpeg',
8554
- 'image/tiff',
8555
- 'image/bmp',
8556
- 'application/msword',
8557
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
8558
- 'application/pdf',
8559
- 'application/vnd.ms-excel',
8560
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
8561
- 'text/csv'
8562
- ]
8563
- };
8564
-
8565
8657
  class EmployeeInvite$1 extends AbstractModel {
8566
8658
  }
8567
8659
 
@@ -10115,23 +10207,6 @@ var TaxSummaryTypeEnum;
10115
10207
  TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
10116
10208
  })(TaxSummaryTypeEnum || (TaxSummaryTypeEnum = {}));
10117
10209
 
10118
- /**
10119
- * Enum with income amount types (Net or Gross)
10120
- */
10121
- var IncomeAmountTypeEnum;
10122
- (function (IncomeAmountTypeEnum) {
10123
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
10124
- IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
10125
- })(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
10126
-
10127
- var TransactionCategoryEnum;
10128
- (function (TransactionCategoryEnum) {
10129
- TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
10130
- TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
10131
- TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
10132
- TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
10133
- })(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
10134
-
10135
10210
  class MyAccountHistory {
10136
10211
  }
10137
10212
 
@@ -10236,9 +10311,9 @@ class AddressService {
10236
10311
  return this.countriesSubject.asObservable();
10237
10312
  }
10238
10313
  }
10239
- AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10240
- AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, providedIn: 'root' });
10241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AddressService, decorators: [{
10314
+ AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10315
+ AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, providedIn: 'root' });
10316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, decorators: [{
10242
10317
  type: Injectable,
10243
10318
  args: [{
10244
10319
  providedIn: 'root'
@@ -10342,9 +10417,9 @@ class BankAccountService extends RestService$1 {
10342
10417
  });
10343
10418
  }
10344
10419
  }
10345
- BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10346
- BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountService, decorators: [{
10420
+ BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10421
+ BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, providedIn: 'root' });
10422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, decorators: [{
10348
10423
  type: Injectable,
10349
10424
  args: [{
10350
10425
  providedIn: 'root'
@@ -10423,9 +10498,9 @@ class BankTransactionService extends RestService$1 {
10423
10498
  });
10424
10499
  }
10425
10500
  }
10426
- BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10427
- BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionService, decorators: [{
10501
+ BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10502
+ BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
10503
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, decorators: [{
10429
10504
  type: Injectable,
10430
10505
  args: [{
10431
10506
  providedIn: 'root'
@@ -10433,89 +10508,307 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
10433
10508
  }] });
10434
10509
 
10435
10510
  /**
10436
- * Service that handling banks logic
10511
+ * Abstract base service that implements common services functionality
10512
+ * and describe abstract methods/properties that have to be implemented in child services
10513
+ * Model - entity service is working with
10514
+ * BaseModel - base entity model that extends by Model
10515
+ * CollectionModel - entity collection class
10437
10516
  */
10438
- class BankService extends RestService$1 {
10439
- constructor() {
10440
- super(...arguments);
10441
- this.modelClass = Bank;
10442
- this.url = 'banks';
10443
- this.isHydra = true;
10517
+ class RestService {
10518
+ constructor(http, eventDispatcherService, environment) {
10519
+ this.http = http;
10520
+ this.eventDispatcherService = eventDispatcherService;
10521
+ this.environment = environment;
10522
+ /**
10523
+ * Subject for service cache
10524
+ */
10525
+ this.cacheSubject = new ReplaySubject(1);
10526
+ /**
10527
+ * List of methods unavailable for current API
10528
+ */
10529
+ this.disabledMethods = [];
10530
+ this.listenEvents();
10531
+ }
10532
+ get apiUrl() {
10533
+ return `${this.environment.apiV2}/${this.entityUrl}`;
10444
10534
  }
10445
10535
  get() {
10446
- return super.get().pipe(map((banks) => {
10447
- // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
10448
- return banks.filter((bank) => bank.isManual || (bank.externalId && bank.loginFields));
10449
- }));
10536
+ this.handleAccessError('get');
10537
+ // Set cache as empty collection to avoid multiple requests before cache filled
10538
+ if (!this.cache) {
10539
+ this.cache = this.createCollectionInstance(this.collectionClass, []);
10540
+ this.resetCache();
10541
+ }
10542
+ return this.cacheSubject.asObservable();
10450
10543
  }
10451
- }
10452
- BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10453
- BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, providedIn: 'root' });
10454
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankService, decorators: [{
10455
- type: Injectable,
10456
- args: [{
10457
- providedIn: 'root'
10458
- }]
10459
- }] });
10460
-
10461
- /**
10462
- * Service to work with depreciation chart accounts
10463
- */
10464
- class ChartAccountsDepreciationService extends RestService$1 {
10465
- constructor() {
10466
- super(...arguments);
10467
- this.url = 'chart-accounts-depreciations';
10468
- this.modelClass = ChartAccountsDepreciation;
10469
- this.isHydra = true;
10544
+ ;
10545
+ getSingle() {
10546
+ this.handleAccessError('get');
10547
+ return this.get().pipe(map((collection) => collection.first));
10470
10548
  }
10471
10549
  /**
10472
- * Get depreciation chart accounts for current financial year
10550
+ * Create a new Model instance in database
10473
10551
  */
10474
- getCurrent() {
10475
- return this.get()
10476
- .pipe(map((chartAccountsDepreciations) => {
10477
- return chartAccountsDepreciations
10478
- .find((chartAccountsDepreciation) => {
10479
- return chartAccountsDepreciation.effectiveYear === new FinancialYear().year;
10480
- });
10552
+ post(model) {
10553
+ this.handleAccessError('post');
10554
+ return this.http.post(this.apiUrl, model)
10555
+ .pipe(map((response) => {
10556
+ const result = this.createModelInstance(this.modelClass, response);
10557
+ this.handleResponse([result], 'post');
10558
+ return result;
10481
10559
  }));
10482
10560
  }
10483
- }
10484
- ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10485
- ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
10486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
10487
- type: Injectable,
10488
- args: [{
10489
- providedIn: 'root'
10490
- }]
10491
- }] });
10492
-
10493
- /**
10494
- * Chart accounts service
10495
- */
10496
- class ChartAccountsService {
10497
- constructor(http, environment) {
10498
- this.http = http;
10499
- this.environment = environment;
10500
- this.chartAccountsSubject = new ReplaySubject(1);
10561
+ /**
10562
+ * Create multiple new Model instances in database
10563
+ */
10564
+ postBatch(models) {
10565
+ this.handleAccessError('postBatch');
10566
+ return this.http.post(this.apiUrl, models)
10567
+ .pipe(map((response) => {
10568
+ const result = response.map((item) => this.createModelInstance(this.modelClass, item));
10569
+ this.handleResponse(result, 'post');
10570
+ return result;
10571
+ }));
10501
10572
  }
10502
10573
  /**
10503
- * get all parent and child chart accounts and group it
10574
+ * Change an existing Model instance in database
10504
10575
  */
10505
- getChartAccounts() {
10506
- if (!this._chartAccounts) {
10507
- this._chartAccounts = [];
10508
- this.http.get(`${this.environment.apiV2}/chart-accounts`)
10509
- .pipe(map((response) => {
10510
- return response.map((item) => plainToClass(ChartAccounts, item));
10511
- }))
10512
- .subscribe((chartAccounts) => {
10513
- // Sort personal chart accounts by name (TT-1950)
10514
- chartAccounts.sort((a, b) => {
10515
- if (a.isPersonal() && b.isPersonal()) {
10516
- return a.name > b.name ? 1 : -1;
10517
- }
10518
- return 0;
10576
+ put(model) {
10577
+ this.handleAccessError('put');
10578
+ return this.http.put(`${this.apiUrl}/${model.id}`, model)
10579
+ .pipe(map((response) => {
10580
+ const result = this.createModelInstance(this.modelClass, response);
10581
+ this.handleResponse([result], 'put');
10582
+ return result;
10583
+ }));
10584
+ }
10585
+ /**
10586
+ * Change multiple existing Model instances in database
10587
+ */
10588
+ putBatch(models) {
10589
+ this.handleAccessError('putBatch');
10590
+ return this.http.put(this.apiUrl, models)
10591
+ .pipe(map((response) => {
10592
+ const result = response.map((item) => this.createModelInstance(this.modelClass, item));
10593
+ this.handleResponse(result, 'put');
10594
+ return result;
10595
+ }));
10596
+ }
10597
+ /**
10598
+ * Remove a Model instance from database
10599
+ */
10600
+ delete(model) {
10601
+ this.handleAccessError('delete');
10602
+ return this.http.delete(`${this.apiUrl}/${model.id}`)
10603
+ .pipe(map(() => {
10604
+ this.handleResponse([model], 'delete');
10605
+ }));
10606
+ }
10607
+ /**
10608
+ * Remove multiple Model instances from database
10609
+ */
10610
+ deleteBatch(models) {
10611
+ this.handleAccessError('deleteBatch');
10612
+ return this.http.post(`${this.apiUrl}/delete`, models)
10613
+ .pipe(map(() => {
10614
+ this.handleResponse(models, 'delete');
10615
+ }));
10616
+ }
10617
+ /**
10618
+ * Refresh cache with actual backend data
10619
+ */
10620
+ resetCache() {
10621
+ this.fetch()
10622
+ .pipe(first$1())
10623
+ .subscribe();
10624
+ }
10625
+ /**
10626
+ * Get data from backend and fill the cache
10627
+ */
10628
+ fetch() {
10629
+ return this.http.get(this.apiUrl)
10630
+ .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10631
+ const items = response.map((item) => this.createModelInstance(this.modelClass, item));
10632
+ this.cache = this.createCollectionInstance(this.collectionClass, items);
10633
+ this.cacheSubject.next(this.cache);
10634
+ return this.cache;
10635
+ }));
10636
+ }
10637
+ ;
10638
+ /**
10639
+ * Handle response data - update cache and dispatch event if it is needed
10640
+ */
10641
+ handleResponse(response, method) {
10642
+ this.updateCache(response, method);
10643
+ // dispatch event for interested services
10644
+ if (response[0] instanceof ObservableModel) {
10645
+ this.dispatchEvent(method, response);
10646
+ }
10647
+ }
10648
+ /**
10649
+ * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
10650
+ */
10651
+ updateCache(items, method) {
10652
+ switch (method) {
10653
+ case 'post':
10654
+ this.cache = this.cache.push(...items);
10655
+ break;
10656
+ case 'put':
10657
+ items.forEach((item) => {
10658
+ this.cache = this.cache.replaceBy('id', item.id, item);
10659
+ });
10660
+ break;
10661
+ case 'delete':
10662
+ this.cache = this.cache.removeBy('id', items.map((item) => item.id));
10663
+ }
10664
+ this.cacheSubject.next(this.cache);
10665
+ }
10666
+ /**
10667
+ * Generate and dispatch rest event
10668
+ */
10669
+ dispatchEvent(method, items) {
10670
+ const eventName = this.modelClass.getEventName(method);
10671
+ this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
10672
+ }
10673
+ /**
10674
+ * Create new instance of class
10675
+ * @param model The class whose instance to be created
10676
+ * @param plain Single object or array from which will be created model instance(s)
10677
+ */
10678
+ createModelInstance(model, plain) {
10679
+ // excludePrefixes - class-transformer option is using to ignore hydra fields
10680
+ return plainToClass(model, plain, { excludePrefixes: ['@'] });
10681
+ }
10682
+ createCollectionInstance(collectionClass, items) {
10683
+ return new collectionClass(items);
10684
+ }
10685
+ /**
10686
+ * Check if method is not disabled. Throw exception otherwise.
10687
+ * Some entities does not have endpoints for all methods.
10688
+ */
10689
+ handleAccessError(method) {
10690
+ if (!this.disabledMethods.includes(method)) {
10691
+ return;
10692
+ }
10693
+ throw new Error(`Method ${method}() is not allowed for ${this.constructor.name}`);
10694
+ }
10695
+ /**
10696
+ * Subscribe to http events and run callback
10697
+ * @param type The class whose changes should be listened for
10698
+ * @param methods The list of http methods should be listened for
10699
+ * @param callback The function to be called when event triggered
10700
+ */
10701
+ listenCSE(modelClass, methods, callback) {
10702
+ methods.forEach((method) => {
10703
+ this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
10704
+ callback(data);
10705
+ });
10706
+ });
10707
+ }
10708
+ /**
10709
+ * Method that call all listeners. Empty by default. Should be redefined by child services if required
10710
+ */
10711
+ listenEvents() { }
10712
+ }
10713
+ RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10714
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, providedIn: 'root' });
10715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, decorators: [{
10716
+ type: Injectable,
10717
+ args: [{
10718
+ providedIn: 'root'
10719
+ }]
10720
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
10721
+ type: Inject,
10722
+ args: ['environment']
10723
+ }] }]; } });
10724
+
10725
+ /**
10726
+ * Service that handling banks logic
10727
+ */
10728
+ class BankService extends RestService {
10729
+ constructor() {
10730
+ super(...arguments);
10731
+ this.modelClass = Bank;
10732
+ this.collectionClass = Collection;
10733
+ this.entityUrl = 'banks';
10734
+ this.isApiPlatform = true;
10735
+ this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
10736
+ }
10737
+ get() {
10738
+ return super.get()
10739
+ .pipe(map((banks) => {
10740
+ // exclude basiq banks without login fields (basiq may return broken banks without loginFields)
10741
+ return banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields));
10742
+ }));
10743
+ }
10744
+ }
10745
+ BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10746
+ BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, providedIn: 'root' });
10747
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, decorators: [{
10748
+ type: Injectable,
10749
+ args: [{
10750
+ providedIn: 'root'
10751
+ }]
10752
+ }] });
10753
+
10754
+ /**
10755
+ * Service to work with depreciation chart accounts
10756
+ */
10757
+ class ChartAccountsDepreciationService extends RestService$1 {
10758
+ constructor() {
10759
+ super(...arguments);
10760
+ this.url = 'chart-accounts-depreciations';
10761
+ this.modelClass = ChartAccountsDepreciation;
10762
+ this.isHydra = true;
10763
+ }
10764
+ /**
10765
+ * Get depreciation chart accounts for current financial year
10766
+ */
10767
+ getCurrent() {
10768
+ return this.get()
10769
+ .pipe(map((chartAccountsDepreciations) => {
10770
+ return chartAccountsDepreciations
10771
+ .find((chartAccountsDepreciation) => {
10772
+ return chartAccountsDepreciation.effectiveYear === new FinancialYear().year;
10773
+ });
10774
+ }));
10775
+ }
10776
+ }
10777
+ ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10778
+ ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
10779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
10780
+ type: Injectable,
10781
+ args: [{
10782
+ providedIn: 'root'
10783
+ }]
10784
+ }] });
10785
+
10786
+ /**
10787
+ * Chart accounts service
10788
+ */
10789
+ class ChartAccountsService {
10790
+ constructor(http, environment) {
10791
+ this.http = http;
10792
+ this.environment = environment;
10793
+ this.chartAccountsSubject = new ReplaySubject(1);
10794
+ }
10795
+ /**
10796
+ * get all parent and child chart accounts and group it
10797
+ */
10798
+ getChartAccounts() {
10799
+ if (!this._chartAccounts) {
10800
+ this._chartAccounts = [];
10801
+ this.http.get(`${this.environment.apiV2}/chart-accounts`)
10802
+ .pipe(map((response) => {
10803
+ return response.map((item) => plainToClass(ChartAccounts, item));
10804
+ }))
10805
+ .subscribe((chartAccounts) => {
10806
+ // Sort personal chart accounts by name (TT-1950)
10807
+ chartAccounts.sort((a, b) => {
10808
+ if (a.isPersonal() && b.isPersonal()) {
10809
+ return a.name > b.name ? 1 : -1;
10810
+ }
10811
+ return 0;
10519
10812
  });
10520
10813
  this._chartAccounts = chartAccounts;
10521
10814
  this.chartAccountsSubject.next(this._chartAccounts);
@@ -10525,12 +10818,11 @@ class ChartAccountsService {
10525
10818
  }
10526
10819
  /**
10527
10820
  * Get list of chart accounts heading
10528
- * @param categories
10529
10821
  */
10530
- getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all) {
10822
+ getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all, chartAccountsIds) {
10531
10823
  return this.getChartAccounts()
10532
10824
  .pipe(map((chartAccounts) => {
10533
- const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category));
10825
+ const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category) && (!chartAccountsIds || chartAccountsIds.includes(ca.id)));
10534
10826
  const headings = [];
10535
10827
  filteredChartAccounts.forEach((ca) => {
10536
10828
  let heading = headings.find((h) => { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
@@ -10565,9 +10857,9 @@ class ChartAccountsService {
10565
10857
  }));
10566
10858
  }
10567
10859
  }
10568
- ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10569
- ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
10570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChartAccountsService, decorators: [{
10860
+ ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10861
+ ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
10862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, decorators: [{
10571
10863
  type: Injectable,
10572
10864
  args: [{
10573
10865
  providedIn: 'root'
@@ -10613,9 +10905,9 @@ class MessageService extends RestService$1 {
10613
10905
  });
10614
10906
  }
10615
10907
  }
10616
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
10617
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, providedIn: 'root' });
10618
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageService, decorators: [{
10908
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
10909
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, providedIn: 'root' });
10910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
10619
10911
  type: Injectable,
10620
10912
  args: [{
10621
10913
  providedIn: 'root'
@@ -10721,9 +11013,9 @@ class MessageDocumentService {
10721
11013
  }));
10722
11014
  }
10723
11015
  }
10724
- MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
10725
- MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
10726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MessageDocumentService, decorators: [{
11016
+ MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11017
+ MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
11018
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, decorators: [{
10727
11019
  type: Injectable,
10728
11020
  args: [{
10729
11021
  providedIn: 'root'
@@ -10797,9 +11089,9 @@ class ChatService extends RestService$1 {
10797
11089
  });
10798
11090
  }
10799
11091
  }
10800
- ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
10801
- ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, providedIn: 'root' });
10802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ChatService, decorators: [{
11092
+ ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
11093
+ ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, providedIn: 'root' });
11094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, decorators: [{
10803
11095
  type: Injectable,
10804
11096
  args: [{
10805
11097
  providedIn: 'root'
@@ -10865,9 +11157,9 @@ class ReceiptService {
10865
11157
  return plainToClass(this.modelClass, data);
10866
11158
  }
10867
11159
  }
10868
- ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10869
- ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, providedIn: 'root' });
10870
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, decorators: [{
11160
+ ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11161
+ ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, providedIn: 'root' });
11162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, decorators: [{
10871
11163
  type: Injectable,
10872
11164
  args: [{
10873
11165
  providedIn: 'root'
@@ -10896,9 +11188,9 @@ class DepreciationReceiptService extends ReceiptService {
10896
11188
  this.listenEvents();
10897
11189
  }
10898
11190
  }
10899
- DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
10900
- DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
10901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, decorators: [{
11191
+ DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
11192
+ DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
11193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, decorators: [{
10902
11194
  type: Injectable,
10903
11195
  args: [{
10904
11196
  providedIn: 'root'
@@ -11049,9 +11341,9 @@ class DepreciationService extends RestService$1 {
11049
11341
  });
11050
11342
  }
11051
11343
  }
11052
- DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
11053
- DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11054
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, decorators: [{
11344
+ DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
11345
+ DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, providedIn: 'root' });
11346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, decorators: [{
11055
11347
  type: Injectable,
11056
11348
  args: [{
11057
11349
  providedIn: 'root'
@@ -11103,9 +11395,9 @@ class DepreciationCapitalProjectService {
11103
11395
  }));
11104
11396
  }
11105
11397
  }
11106
- DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11107
- DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11398
+ DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11399
+ DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
11400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
11109
11401
  type: Injectable,
11110
11402
  args: [{
11111
11403
  providedIn: 'root'
@@ -11122,9 +11414,9 @@ class DocumentService extends RestService$1 {
11122
11414
  this.modelClass = Document;
11123
11415
  }
11124
11416
  }
11125
- DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11126
- DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentService, providedIn: 'root' });
11127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentService, decorators: [{
11417
+ DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11418
+ DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, providedIn: 'root' });
11419
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, decorators: [{
11128
11420
  type: Injectable,
11129
11421
  args: [{
11130
11422
  providedIn: 'root'
@@ -11190,9 +11482,9 @@ class DocumentFolderService extends RestService$1 {
11190
11482
  }));
11191
11483
  }
11192
11484
  }
11193
- DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11194
- DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
11195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, decorators: [{
11485
+ DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11486
+ DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
11487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, decorators: [{
11196
11488
  type: Injectable,
11197
11489
  args: [{
11198
11490
  providedIn: 'root'
@@ -11269,9 +11561,9 @@ FacebookService.authOptions = {
11269
11561
  auth_type: 'rerequest',
11270
11562
  return_scopes: true
11271
11563
  };
11272
- FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$1.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11273
- FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, providedIn: 'root' });
11274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FacebookService, decorators: [{
11564
+ FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$1.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11565
+ FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, providedIn: 'root' });
11566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, decorators: [{
11275
11567
  type: Injectable,
11276
11568
  args: [{
11277
11569
  providedIn: 'root'
@@ -11314,9 +11606,9 @@ class ClientIncomeTypesService {
11314
11606
  }));
11315
11607
  }
11316
11608
  }
11317
- ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11318
- ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
11319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
11609
+ ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11610
+ ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
11611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
11320
11612
  type: Injectable,
11321
11613
  args: [{
11322
11614
  providedIn: 'root'
@@ -11434,9 +11726,9 @@ class ClientInviteService extends RestService$1 {
11434
11726
  });
11435
11727
  }
11436
11728
  }
11437
- ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11438
- ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
11439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientInviteService, decorators: [{
11729
+ ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11730
+ ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
11731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, decorators: [{
11440
11732
  type: Injectable,
11441
11733
  args: [{
11442
11734
  providedIn: 'root'
@@ -11515,9 +11807,9 @@ class ClientMovementService extends RestService$1 {
11515
11807
  });
11516
11808
  }
11517
11809
  }
11518
- ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11519
- ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
11520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientMovementService, decorators: [{
11810
+ ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11811
+ ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
11812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, decorators: [{
11521
11813
  type: Injectable,
11522
11814
  args: [{
11523
11815
  providedIn: 'root'
@@ -11546,9 +11838,9 @@ class EmployeeService extends RestService$1 {
11546
11838
  }));
11547
11839
  }
11548
11840
  }
11549
- EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11550
- EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, providedIn: 'root' });
11551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeService, decorators: [{
11841
+ EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11842
+ EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, providedIn: 'root' });
11843
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, decorators: [{
11552
11844
  type: Injectable,
11553
11845
  args: [{
11554
11846
  providedIn: 'root'
@@ -11591,9 +11883,9 @@ class EmployeeInviteService extends RestService$1 {
11591
11883
  }));
11592
11884
  }
11593
11885
  }
11594
- EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11595
- EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
11596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EmployeeInviteService, decorators: [{
11886
+ EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11887
+ EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
11888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, decorators: [{
11597
11889
  type: Injectable,
11598
11890
  args: [{
11599
11891
  providedIn: 'root'
@@ -11618,9 +11910,9 @@ class ClientPortfolioReportService {
11618
11910
  }));
11619
11911
  }
11620
11912
  }
11621
- ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11622
- ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
11623
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
11913
+ ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11914
+ ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
11915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
11624
11916
  type: Injectable,
11625
11917
  args: [{
11626
11918
  providedIn: 'root'
@@ -11690,9 +11982,9 @@ class FirmService {
11690
11982
  }));
11691
11983
  }
11692
11984
  }
11693
- FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11694
- FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, providedIn: 'root' });
11695
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FirmService, decorators: [{
11985
+ FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
11986
+ FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, providedIn: 'root' });
11987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, decorators: [{
11696
11988
  type: Injectable,
11697
11989
  args: [{
11698
11990
  providedIn: 'root'
@@ -11765,9 +12057,9 @@ class IncomeSourceForecastService extends RestService$1 {
11765
12057
  }).flat();
11766
12058
  }
11767
12059
  }
11768
- IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11769
- IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
11770
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
12060
+ IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12061
+ IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
12062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
11771
12063
  type: Injectable,
11772
12064
  args: [{
11773
12065
  providedIn: 'root'
@@ -11837,9 +12129,9 @@ class SalaryForecastService extends RestService$1 {
11837
12129
  }).flat();
11838
12130
  }
11839
12131
  }
11840
- SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11841
- SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
11842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalaryForecastService, decorators: [{
12132
+ SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12133
+ SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
12134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, decorators: [{
11843
12135
  type: Injectable,
11844
12136
  args: [{
11845
12137
  providedIn: 'root'
@@ -11915,9 +12207,9 @@ class SoleForecastService extends RestService$1 {
11915
12207
  });
11916
12208
  }
11917
12209
  }
11918
- SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
11919
- SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
11920
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleForecastService, decorators: [{
12210
+ SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12211
+ SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
12212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, decorators: [{
11921
12213
  type: Injectable,
11922
12214
  args: [{
11923
12215
  providedIn: 'root'
@@ -12016,9 +12308,9 @@ class IncomeSourceService extends RestService$1 {
12016
12308
  });
12017
12309
  }
12018
12310
  }
12019
- IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12020
- IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IncomeSourceService, decorators: [{
12311
+ IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12312
+ IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
12313
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, decorators: [{
12022
12314
  type: Injectable,
12023
12315
  args: [{
12024
12316
  providedIn: 'root'
@@ -12078,9 +12370,9 @@ class BorrowingExpenseService {
12078
12370
  }));
12079
12371
  }
12080
12372
  }
12081
- BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12082
- BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
12083
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BorrowingExpenseService, decorators: [{
12373
+ BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12374
+ BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
12375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, decorators: [{
12084
12376
  type: Injectable,
12085
12377
  args: [{
12086
12378
  providedIn: 'root'
@@ -12207,9 +12499,9 @@ class LoanService extends RestService$1 {
12207
12499
  }));
12208
12500
  }
12209
12501
  }
12210
- LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12211
- LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, providedIn: 'root' });
12212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LoanService, decorators: [{
12502
+ LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12503
+ LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, providedIn: 'root' });
12504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, decorators: [{
12213
12505
  type: Injectable,
12214
12506
  args: [{
12215
12507
  providedIn: 'root'
@@ -12226,9 +12518,9 @@ class PropertyCategoryService extends RestService$1 {
12226
12518
  this.url = 'properties/categories';
12227
12519
  }
12228
12520
  }
12229
- PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12230
- PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
12231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryService, decorators: [{
12521
+ PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12522
+ PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
12523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, decorators: [{
12232
12524
  type: Injectable,
12233
12525
  args: [{
12234
12526
  providedIn: 'root'
@@ -12266,9 +12558,9 @@ class PropertyCategoryMovementService extends RestService$1 {
12266
12558
  }));
12267
12559
  }
12268
12560
  }
12269
- PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12270
- PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
12271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
12561
+ PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12562
+ PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
12563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
12272
12564
  type: Injectable,
12273
12565
  args: [{
12274
12566
  providedIn: 'root'
@@ -12320,9 +12612,9 @@ class PropertyDocumentService extends RestService$1 {
12320
12612
  });
12321
12613
  }
12322
12614
  }
12323
- PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12324
- PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
12325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyDocumentService, decorators: [{
12615
+ PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12616
+ PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
12617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, decorators: [{
12326
12618
  type: Injectable,
12327
12619
  args: [{
12328
12620
  providedIn: 'root'
@@ -12337,9 +12629,9 @@ class TaxExemptionService extends RestService$1 {
12337
12629
  this.isHydra = true;
12338
12630
  }
12339
12631
  }
12340
- TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12341
- TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
12342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxExemptionService, decorators: [{
12632
+ TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12633
+ TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
12634
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, decorators: [{
12343
12635
  type: Injectable,
12344
12636
  args: [{
12345
12637
  providedIn: 'root'
@@ -12370,9 +12662,9 @@ class PropertySaleService extends RestService$1 {
12370
12662
  }));
12371
12663
  }
12372
12664
  }
12373
- PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12374
- PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
12375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertySaleService, decorators: [{
12665
+ PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12666
+ PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
12667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, decorators: [{
12376
12668
  type: Injectable,
12377
12669
  args: [{
12378
12670
  providedIn: 'root'
@@ -12397,320 +12689,105 @@ class PropertyShareService extends RestService$1 {
12397
12689
  }
12398
12690
  /**
12399
12691
  * Updated loan
12400
- */
12401
- update(propertyShare) {
12402
- return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyShare.id}`, propertyShare)
12403
- .pipe(map((updatedPropertyShareBase) => {
12404
- const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
12405
- // if loan type is NOT vehicle - fire EventDispatcher event
12406
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
12407
- replace(this.cache, updatedPropertyShare);
12408
- this.updateCache();
12409
- return updatedPropertyShare;
12410
- }));
12411
- }
12412
- /**
12413
- * Re-invite property share
12414
- * @param share user to share property
12415
- */
12416
- reinvite(share) {
12417
- return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
12418
- }
12419
- getIncoming() {
12420
- return this.get()
12421
- .pipe(map((propertyShares) => {
12422
- const propertySharesIncoming = [];
12423
- propertyShares.forEach((propertyShare) => {
12424
- var _a;
12425
- if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
12426
- propertySharesIncoming.push(propertyShare);
12427
- }
12428
- });
12429
- return propertySharesIncoming;
12430
- }));
12431
- }
12432
- /**
12433
- * Get outcoming property shares list
12434
- */
12435
- getOutcoming() {
12436
- return this.get().pipe(map((propertyShares) => {
12437
- return this.filterOutcoming(propertyShares);
12438
- }));
12439
- }
12440
- /**
12441
- * Filter outcoming property shares
12442
- */
12443
- filterOutcoming(propertyShares) {
12444
- const propertySharesOutcoming = [];
12445
- propertyShares.forEach((propertyShare) => {
12446
- var _a;
12447
- if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
12448
- propertySharesOutcoming.push(propertyShare);
12449
- }
12450
- });
12451
- return propertySharesOutcoming;
12452
- }
12453
- getByPropertyId(propertyId) {
12454
- return this.get()
12455
- .pipe(map((propertyShares) => {
12456
- return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
12457
- }));
12458
- }
12459
- /**
12460
- * Listen to User updated event
12461
- */
12462
- listenUserUpdated() {
12463
- this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
12464
- .subscribe(() => {
12465
- this.fetch().subscribe((propertyShares) => {
12466
- this.cache = propertyShares;
12467
- this.updateCache();
12468
- });
12469
- });
12470
- }
12471
- /**
12472
- * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
12473
- */
12474
- listenSalesAdded() {
12475
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe((propertySale) => {
12476
- const shareToReplace = this.find(propertySale.share.id);
12477
- shareToReplace.sale = plainToClass(PropertySale, { id: propertySale.id });
12478
- replace(this.cache, shareToReplace);
12479
- this.updateCache();
12480
- });
12481
- }
12482
- listenSalesDeleted() {
12483
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe((propertySale) => {
12484
- const shareToReplace = this.find(propertySale.share.id);
12485
- shareToReplace.sale = null;
12486
- replace(this.cache, shareToReplace);
12487
- this.updateCache();
12488
- });
12489
- }
12490
- }
12491
- PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12492
- PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
12493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, decorators: [{
12494
- type: Injectable,
12495
- args: [{
12496
- providedIn: 'root'
12497
- }]
12498
- }] });
12499
-
12500
- /**
12501
- * Abstract base service that implements common services functionality
12502
- * and describe abstract methods/properties that have to be implemented in child services
12503
- * Model - entity service is working with
12504
- * BaseModel - base entity model that extends by Model
12505
- * CollectionModel - entity collection class
12506
- */
12507
- class RestService {
12508
- constructor(http, eventDispatcherService, environment) {
12509
- this.http = http;
12510
- this.eventDispatcherService = eventDispatcherService;
12511
- this.environment = environment;
12512
- /**
12513
- * Subject for service cache
12514
- */
12515
- this.cacheSubject = new ReplaySubject(1);
12516
- /**
12517
- * List of methods unavailable for current API
12518
- */
12519
- this.disabledMethods = [];
12520
- this.listenEvents();
12521
- }
12522
- get apiUrl() {
12523
- return `${this.environment.apiV2}/${this.entityUrl}`;
12524
- }
12525
- get() {
12526
- this.handleAccessError('get');
12527
- // Set cache as empty collection to avoid multiple requests before cache filled
12528
- if (!this.cache) {
12529
- this.cache = this.createCollectionInstance(this.collectionClass, []);
12530
- this.resetCache();
12531
- }
12532
- return this.cacheSubject.asObservable();
12533
- }
12534
- ;
12535
- getSingle() {
12536
- this.handleAccessError('get');
12537
- return this.get().pipe(map((collection) => collection.first));
12538
- }
12539
- /**
12540
- * Create a new Model instance in database
12541
- */
12542
- post(model) {
12543
- this.handleAccessError('post');
12544
- return this.http.post(this.apiUrl, model)
12545
- .pipe(map((response) => {
12546
- const result = this.createModelInstance(this.modelClass, response);
12547
- this.handleResponse([result], 'post');
12548
- return result;
12549
- }));
12550
- }
12551
- /**
12552
- * Create multiple new Model instances in database
12553
- */
12554
- postBatch(models) {
12555
- this.handleAccessError('postBatch');
12556
- return this.http.post(this.apiUrl, models)
12557
- .pipe(map((response) => {
12558
- const result = response.map((item) => this.createModelInstance(this.modelClass, item));
12559
- this.handleResponse(result, 'post');
12560
- return result;
12561
- }));
12562
- }
12563
- /**
12564
- * Change an existing Model instance in database
12565
- */
12566
- put(model) {
12567
- this.handleAccessError('put');
12568
- return this.http.put(`${this.apiUrl}/${model.id}`, model)
12569
- .pipe(map((response) => {
12570
- const result = this.createModelInstance(this.modelClass, response);
12571
- this.handleResponse([result], 'put');
12572
- return result;
12573
- }));
12574
- }
12575
- /**
12576
- * Change multiple existing Model instances in database
12577
- */
12578
- putBatch(models) {
12579
- this.handleAccessError('putBatch');
12580
- return this.http.put(this.apiUrl, models)
12581
- .pipe(map((response) => {
12582
- const result = response.map((item) => this.createModelInstance(this.modelClass, item));
12583
- this.handleResponse(result, 'put');
12584
- return result;
12585
- }));
12586
- }
12587
- /**
12588
- * Remove a Model instance from database
12589
- */
12590
- delete(model) {
12591
- this.handleAccessError('delete');
12592
- return this.http.delete(`${this.apiUrl}/${model.id}`)
12593
- .pipe(map(() => {
12594
- this.handleResponse([model], 'delete');
12595
- }));
12596
- }
12597
- /**
12598
- * Remove multiple Model instances from database
12599
- */
12600
- deleteBatch(models) {
12601
- this.handleAccessError('deleteBatch');
12602
- return this.http.post(`${this.apiUrl}/delete`, models)
12603
- .pipe(map(() => {
12604
- this.handleResponse(models, 'delete');
12605
- }));
12606
- }
12607
- /**
12608
- * Refresh cache with actual backend data
12609
- */
12610
- resetCache() {
12611
- this.fetch()
12612
- .pipe(first$1())
12613
- .subscribe();
12614
- }
12615
- /**
12616
- * Get data from backend and fill the cache
12617
- */
12618
- fetch() {
12619
- return this.http.get(this.apiUrl)
12620
- .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
12621
- const items = response.map((item) => this.createModelInstance(this.modelClass, item));
12622
- this.cache = this.createCollectionInstance(this.collectionClass, items);
12623
- this.cacheSubject.next(this.cache);
12624
- return this.cache;
12625
- }));
12626
- }
12627
- ;
12628
- /**
12629
- * Handle response data - update cache and dispatch event if it is needed
12630
- */
12631
- handleResponse(response, method) {
12632
- this.updateCache(response, method);
12633
- // dispatch event for interested services
12634
- if (response[0] instanceof ObservableModel) {
12635
- this.dispatchEvent(method, response);
12636
- }
12637
- }
12638
- /**
12639
- * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
12640
- */
12641
- updateCache(items, method) {
12642
- switch (method) {
12643
- case 'post':
12644
- this.cache = this.cache.push(...items);
12645
- break;
12646
- case 'put':
12647
- items.forEach((item) => {
12648
- this.cache = this.cache.replaceBy('id', item.id, item);
12649
- });
12650
- break;
12651
- case 'delete':
12652
- this.cache = this.cache.removeBy('id', items.map((item) => item.id));
12653
- }
12654
- this.cacheSubject.next(this.cache);
12692
+ */
12693
+ update(propertyShare) {
12694
+ return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyShare.id}`, propertyShare)
12695
+ .pipe(map((updatedPropertyShareBase) => {
12696
+ const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
12697
+ // if loan type is NOT vehicle - fire EventDispatcher event
12698
+ this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
12699
+ replace(this.cache, updatedPropertyShare);
12700
+ this.updateCache();
12701
+ return updatedPropertyShare;
12702
+ }));
12655
12703
  }
12656
12704
  /**
12657
- * Generate and dispatch rest event
12705
+ * Re-invite property share
12706
+ * @param share user to share property
12658
12707
  */
12659
- dispatchEvent(method, items) {
12660
- const eventName = this.modelClass.getEventName(method);
12661
- this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
12708
+ reinvite(share) {
12709
+ return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
12710
+ }
12711
+ getIncoming() {
12712
+ return this.get()
12713
+ .pipe(map((propertyShares) => {
12714
+ const propertySharesIncoming = [];
12715
+ propertyShares.forEach((propertyShare) => {
12716
+ var _a;
12717
+ if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
12718
+ propertySharesIncoming.push(propertyShare);
12719
+ }
12720
+ });
12721
+ return propertySharesIncoming;
12722
+ }));
12662
12723
  }
12663
12724
  /**
12664
- * Create new instance of class
12665
- * @param model The class whose instance to be created
12666
- * @param plain Single object or array from which will be created model instance(s)
12725
+ * Get outcoming property shares list
12667
12726
  */
12668
- createModelInstance(model, plain) {
12669
- // excludePrefixes - class-transformer option is using to ignore hydra fields
12670
- return plainToClass(model, plain, { excludePrefixes: ['@'] });
12671
- }
12672
- createCollectionInstance(collectionClass, items) {
12673
- return new collectionClass(items);
12727
+ getOutcoming() {
12728
+ return this.get().pipe(map((propertyShares) => {
12729
+ return this.filterOutcoming(propertyShares);
12730
+ }));
12674
12731
  }
12675
12732
  /**
12676
- * Check if method is not disabled. Throw exception otherwise.
12677
- * Some entities does not have endpoints for all methods.
12733
+ * Filter outcoming property shares
12678
12734
  */
12679
- handleAccessError(method) {
12680
- if (!this.disabledMethods.includes(method)) {
12681
- return;
12682
- }
12683
- throw new Error(`Method ${method}() is not allowed for ${this.constructor.name}`);
12735
+ filterOutcoming(propertyShares) {
12736
+ const propertySharesOutcoming = [];
12737
+ propertyShares.forEach((propertyShare) => {
12738
+ var _a;
12739
+ if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
12740
+ propertySharesOutcoming.push(propertyShare);
12741
+ }
12742
+ });
12743
+ return propertySharesOutcoming;
12744
+ }
12745
+ getByPropertyId(propertyId) {
12746
+ return this.get()
12747
+ .pipe(map((propertyShares) => {
12748
+ return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
12749
+ }));
12684
12750
  }
12685
12751
  /**
12686
- * Subscribe to http events and run callback
12687
- * @param type The class whose changes should be listened for
12688
- * @param methods The list of http methods should be listened for
12689
- * @param callback The function to be called when event triggered
12752
+ * Listen to User updated event
12690
12753
  */
12691
- listenCSE(modelClass, methods, callback) {
12692
- methods.forEach((method) => {
12693
- this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
12694
- callback(data);
12754
+ listenUserUpdated() {
12755
+ this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
12756
+ .subscribe(() => {
12757
+ this.fetch().subscribe((propertyShares) => {
12758
+ this.cache = propertyShares;
12759
+ this.updateCache();
12695
12760
  });
12696
12761
  });
12697
12762
  }
12698
12763
  /**
12699
- * Method that call all listeners. Empty by default. Should be redefined by child services if required
12764
+ * @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
12700
12765
  */
12701
- listenEvents() { }
12766
+ listenSalesAdded() {
12767
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe((propertySale) => {
12768
+ const shareToReplace = this.find(propertySale.share.id);
12769
+ shareToReplace.sale = plainToClass(PropertySale, { id: propertySale.id });
12770
+ replace(this.cache, shareToReplace);
12771
+ this.updateCache();
12772
+ });
12773
+ }
12774
+ listenSalesDeleted() {
12775
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe((propertySale) => {
12776
+ const shareToReplace = this.find(propertySale.share.id);
12777
+ shareToReplace.sale = null;
12778
+ replace(this.cache, shareToReplace);
12779
+ this.updateCache();
12780
+ });
12781
+ }
12702
12782
  }
12703
- RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
12704
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, providedIn: 'root' });
12705
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RestService, decorators: [{
12783
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12784
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
12785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, decorators: [{
12706
12786
  type: Injectable,
12707
12787
  args: [{
12708
12788
  providedIn: 'root'
12709
12789
  }]
12710
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12711
- type: Inject,
12712
- args: ['environment']
12713
- }] }]; } });
12790
+ }] });
12714
12791
 
12715
12792
  /**
12716
12793
  * @Todo Alex remove functionality related to PropertyShare
@@ -12817,9 +12894,9 @@ class PropertyService extends RestService {
12817
12894
  }));
12818
12895
  }
12819
12896
  }
12820
- PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12821
- PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, providedIn: 'root' });
12822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyService, decorators: [{
12897
+ PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12898
+ PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, providedIn: 'root' });
12899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, decorators: [{
12823
12900
  type: Injectable,
12824
12901
  args: [{
12825
12902
  providedIn: 'root'
@@ -12863,9 +12940,9 @@ class ServiceNotificationService extends RestService$1 {
12863
12940
  });
12864
12941
  }
12865
12942
  }
12866
- ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
12867
- ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
12868
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServiceNotificationService, decorators: [{
12943
+ ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
12944
+ ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
12945
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, decorators: [{
12869
12946
  type: Injectable,
12870
12947
  args: [{
12871
12948
  providedIn: 'root'
@@ -12875,12 +12952,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
12875
12952
  args: ['environment']
12876
12953
  }] }, { type: ToastService }, { type: SseService }]; } });
12877
12954
 
12878
- var MessagesEnum$1;
12955
+ var MessagesEnum$2;
12879
12956
  (function (MessagesEnum) {
12880
12957
  MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
12881
12958
  MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
12882
12959
  MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
12883
- })(MessagesEnum$1 || (MessagesEnum$1 = {}));
12960
+ })(MessagesEnum$2 || (MessagesEnum$2 = {}));
12884
12961
 
12885
12962
  class SoleBusinessService extends RestService$1 {
12886
12963
  constructor() {
@@ -12904,7 +12981,7 @@ class SoleBusinessService extends RestService$1 {
12904
12981
  replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
12905
12982
  this.cache = tempCache;
12906
12983
  this.cacheSubject.next(this.cache);
12907
- this.toastService.success(MessagesEnum$1.LOGO_UPDATED);
12984
+ this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
12908
12985
  }), catchError((error) => {
12909
12986
  // Show error when user provided wrong image (format or size)
12910
12987
  if (error.status === 422) {
@@ -12914,9 +12991,9 @@ class SoleBusinessService extends RestService$1 {
12914
12991
  }));
12915
12992
  }
12916
12993
  }
12917
- SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12918
- SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
12919
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessService, decorators: [{
12994
+ SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12995
+ SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
12996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, decorators: [{
12920
12997
  type: Injectable,
12921
12998
  args: [{
12922
12999
  providedIn: 'root'
@@ -12931,9 +13008,9 @@ class SoleBusinessActivityService extends RestService$1 {
12931
13008
  this.isHydra = true;
12932
13009
  }
12933
13010
  }
12934
- SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12935
- SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
12936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
13011
+ SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13012
+ SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
13013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
12937
13014
  type: Injectable,
12938
13015
  args: [{
12939
13016
  providedIn: 'root'
@@ -12959,9 +13036,9 @@ class SoleBusinessLossService extends RestService$1 {
12959
13036
  });
12960
13037
  }
12961
13038
  }
12962
- SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12963
- SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
12964
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossService, decorators: [{
13039
+ SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13040
+ SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
13041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, decorators: [{
12965
13042
  type: Injectable,
12966
13043
  args: [{
12967
13044
  providedIn: 'root'
@@ -12979,9 +13056,9 @@ class SoleBusinessLossOffsetRuleService extends RestService$1 {
12979
13056
  this.isHydra = true;
12980
13057
  }
12981
13058
  }
12982
- SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
12983
- SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
12984
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
13059
+ SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13060
+ SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
13061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
12985
13062
  type: Injectable,
12986
13063
  args: [{
12987
13064
  providedIn: 'root'
@@ -12996,9 +13073,9 @@ class SoleContactService extends RestService$1 {
12996
13073
  this.isHydra = true;
12997
13074
  }
12998
13075
  }
12999
- SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13000
- SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleContactService, decorators: [{
13076
+ SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13077
+ SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, providedIn: 'root' });
13078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, decorators: [{
13002
13079
  type: Injectable,
13003
13080
  args: [{
13004
13081
  providedIn: 'root'
@@ -13054,9 +13131,9 @@ class SoleDepreciationMethodService {
13054
13131
  });
13055
13132
  }
13056
13133
  }
13057
- SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13058
- SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13134
+ SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13135
+ SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
13136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
13060
13137
  type: Injectable,
13061
13138
  args: [{
13062
13139
  providedIn: 'root'
@@ -13109,9 +13186,9 @@ class SoleDetailsService {
13109
13186
  }));
13110
13187
  }
13111
13188
  }
13112
- SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13113
- SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleDetailsService, decorators: [{
13189
+ SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
13190
+ SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
13191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, decorators: [{
13115
13192
  type: Injectable,
13116
13193
  args: [{
13117
13194
  providedIn: 'root'
@@ -13185,9 +13262,9 @@ class SoleInvoiceService extends RestService$1 {
13185
13262
  });
13186
13263
  }
13187
13264
  }
13188
- SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13189
- SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceService, decorators: [{
13265
+ SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13266
+ SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
13267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, decorators: [{
13191
13268
  type: Injectable,
13192
13269
  args: [{
13193
13270
  providedIn: 'root'
@@ -13202,9 +13279,9 @@ class SoleInvoiceTemplateService extends RestService$1 {
13202
13279
  this.isHydra = true;
13203
13280
  }
13204
13281
  }
13205
- SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13206
- SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13282
+ SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13283
+ SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
13284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
13208
13285
  type: Injectable,
13209
13286
  args: [{
13210
13287
  providedIn: 'root'
@@ -13219,9 +13296,9 @@ class BasReportService extends RestService$1 {
13219
13296
  this.isHydra = true;
13220
13297
  }
13221
13298
  }
13222
- BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13223
- BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasReportService, providedIn: 'root' });
13224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BasReportService, decorators: [{
13299
+ BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13300
+ BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, providedIn: 'root' });
13301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, decorators: [{
13225
13302
  type: Injectable,
13226
13303
  args: [{
13227
13304
  providedIn: 'root'
@@ -13239,9 +13316,9 @@ class ServicePriceService extends RestService$1 {
13239
13316
  this.isHydra = true;
13240
13317
  }
13241
13318
  }
13242
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13243
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ServicePriceService, decorators: [{
13319
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13320
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, decorators: [{
13245
13322
  type: Injectable,
13246
13323
  args: [{
13247
13324
  providedIn: 'root'
@@ -13355,9 +13432,9 @@ class SubscriptionService {
13355
13432
  return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
13356
13433
  }
13357
13434
  }
13358
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13359
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
13360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, decorators: [{
13435
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13436
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
13437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, decorators: [{
13361
13438
  type: Injectable,
13362
13439
  args: [{
13363
13440
  providedIn: 'root'
@@ -13392,9 +13469,9 @@ class TaxReviewHistoryService extends RestService$1 {
13392
13469
  });
13393
13470
  }
13394
13471
  }
13395
- TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13396
- TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
13397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
13472
+ TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13473
+ TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
13474
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
13398
13475
  type: Injectable,
13399
13476
  args: [{
13400
13477
  providedIn: 'root'
@@ -13483,9 +13560,9 @@ class TaxReviewService extends RestService$1 {
13483
13560
  });
13484
13561
  }
13485
13562
  }
13486
- TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13487
- TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
13488
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxReviewService, decorators: [{
13563
+ TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13564
+ TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
13565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, decorators: [{
13489
13566
  type: Injectable,
13490
13567
  args: [{
13491
13568
  providedIn: 'root'
@@ -13542,9 +13619,9 @@ class TaxSummaryService {
13542
13619
  });
13543
13620
  }
13544
13621
  }
13545
- TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13546
- TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
13547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TaxSummaryService, decorators: [{
13622
+ TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
13623
+ TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
13624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, decorators: [{
13548
13625
  type: Injectable,
13549
13626
  args: [{
13550
13627
  providedIn: 'root'
@@ -13640,9 +13717,9 @@ class TransactionAllocationService extends RestService$1 {
13640
13717
  });
13641
13718
  }
13642
13719
  }
13643
- TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13644
- TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
13645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionAllocationService, decorators: [{
13720
+ TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13721
+ TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
13722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, decorators: [{
13646
13723
  type: Injectable,
13647
13724
  args: [{
13648
13725
  providedIn: 'root'
@@ -13668,9 +13745,9 @@ class TransactionReceiptService extends ReceiptService {
13668
13745
  this.listenEvents();
13669
13746
  }
13670
13747
  }
13671
- TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13672
- TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
13673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, decorators: [{
13748
+ TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
13749
+ TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
13750
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, decorators: [{
13674
13751
  type: Injectable,
13675
13752
  args: [{
13676
13753
  providedIn: 'root'
@@ -13680,19 +13757,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
13680
13757
  args: ['environment']
13681
13758
  }] }, { type: ToastService }]; } });
13682
13759
 
13683
- function enumToList(data) {
13684
- const list = [];
13685
- for (const key in data) {
13686
- if (Number(key) >= 0) {
13687
- list.push({
13688
- label: data[key],
13689
- value: Number(key)
13690
- });
13691
- }
13692
- }
13693
- return list;
13694
- }
13695
-
13696
13760
  /**
13697
13761
  * Service for transactions business logic
13698
13762
  */
@@ -13940,31 +14004,6 @@ class TransactionService extends RestService$1 {
13940
14004
  }
13941
14005
  return amount;
13942
14006
  }
13943
- /**
13944
- * get label for transaction tax field depended of selected chart account.
13945
- * tax type depends of chart account heading or category.
13946
- */
13947
- getTaxLabel(chartAccounts) {
13948
- var _a, _b;
13949
- // get simple array of ids from enum with taxable chart accounts headings
13950
- const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
13951
- .map((item) => item.value);
13952
- // get simple array of ids from enum with tax deductible chart accounts headings
13953
- const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
13954
- .map((item) => item.value);
13955
- // check if one of ids arrays includes current chart accounts heading id and set tax label
13956
- // otherwise label is empty for this class
13957
- switch (true) {
13958
- case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
13959
- return ChartAccountsTaxLabelsEnum.TAX_PAID;
13960
- case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
13961
- return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
13962
- case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
13963
- return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
13964
- default:
13965
- return null;
13966
- }
13967
- }
13968
14007
  /**
13969
14008
  * Listen to EventDispatcherService event related to Depreciation changing
13970
14009
  */
@@ -14028,9 +14067,9 @@ class TransactionService extends RestService$1 {
14028
14067
  });
14029
14068
  }
14030
14069
  }
14031
- TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
14032
- TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, providedIn: 'root' });
14033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, decorators: [{
14070
+ TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
14071
+ TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, providedIn: 'root' });
14072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, decorators: [{
14034
14073
  type: Injectable,
14035
14074
  args: [{
14036
14075
  providedIn: 'root'
@@ -14059,9 +14098,9 @@ class TutorialVideoService {
14059
14098
  }
14060
14099
  TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
14061
14100
  TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
14062
- TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14063
- TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
14064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TutorialVideoService, decorators: [{
14101
+ TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14102
+ TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
14103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, decorators: [{
14065
14104
  type: Injectable,
14066
14105
  args: [{
14067
14106
  providedIn: 'root'
@@ -14081,9 +14120,9 @@ class VehicleService extends RestService$1 {
14081
14120
  this.modelClass = Vehicle;
14082
14121
  }
14083
14122
  }
14084
- VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14085
- VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, providedIn: 'root' });
14086
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleService, decorators: [{
14123
+ VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14124
+ VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, providedIn: 'root' });
14125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, decorators: [{
14087
14126
  type: Injectable,
14088
14127
  args: [{
14089
14128
  providedIn: 'root'
@@ -14155,9 +14194,9 @@ class VehicleClaimService extends RestService$1 {
14155
14194
  combineLatest(batch$).subscribe();
14156
14195
  }
14157
14196
  }
14158
- VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14159
- VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
14160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimService, decorators: [{
14197
+ VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14198
+ VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
14199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, decorators: [{
14161
14200
  type: Injectable,
14162
14201
  args: [{
14163
14202
  providedIn: 'root'
@@ -14234,9 +14273,9 @@ class VehicleClaimDetailsService {
14234
14273
  this.update(vehicleClaimDetails).subscribe();
14235
14274
  }
14236
14275
  }
14237
- VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
14238
- VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
14239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
14276
+ VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
14277
+ VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
14278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
14240
14279
  type: Injectable,
14241
14280
  args: [{
14242
14281
  providedIn: 'root'
@@ -14256,9 +14295,9 @@ class VehicleLogbookService extends RestService$1 {
14256
14295
  this.modelClass = VehicleLogbook;
14257
14296
  }
14258
14297
  }
14259
- VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14260
- VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
14261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VehicleLogbookService, decorators: [{
14298
+ VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14299
+ VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
14300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, decorators: [{
14262
14301
  type: Injectable,
14263
14302
  args: [{
14264
14303
  providedIn: 'root'
@@ -14291,9 +14330,9 @@ class OccupationService {
14291
14330
  return this.occupationsSubject.asObservable();
14292
14331
  }
14293
14332
  }
14294
- OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14295
- OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, providedIn: 'root' });
14296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OccupationService, decorators: [{
14333
+ OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14334
+ OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, providedIn: 'root' });
14335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, decorators: [{
14297
14336
  type: Injectable,
14298
14337
  args: [{
14299
14338
  providedIn: 'root'
@@ -14337,9 +14376,9 @@ class UserEventSettingService extends RestService$1 {
14337
14376
  }));
14338
14377
  }
14339
14378
  }
14340
- UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14341
- UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
14342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventSettingService, decorators: [{
14379
+ UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14380
+ UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
14381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, decorators: [{
14343
14382
  type: Injectable,
14344
14383
  args: [{
14345
14384
  providedIn: 'root'
@@ -14354,9 +14393,9 @@ class UserEventTypeService extends RestService$1 {
14354
14393
  this.isHydra = true;
14355
14394
  }
14356
14395
  }
14357
- UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14358
- UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
14359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UserEventTypeService, decorators: [{
14396
+ UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14397
+ UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
14398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, decorators: [{
14360
14399
  type: Injectable,
14361
14400
  args: [{
14362
14401
  providedIn: 'root'
@@ -14373,9 +14412,9 @@ class UsersInviteService extends RestService$1 {
14373
14412
  this.url = 'users/invite';
14374
14413
  }
14375
14414
  }
14376
- UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14377
- UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
14378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UsersInviteService, decorators: [{
14415
+ UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
14416
+ UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
14417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, decorators: [{
14379
14418
  type: Injectable,
14380
14419
  args: [{
14381
14420
  providedIn: 'root'
@@ -14569,9 +14608,9 @@ class AccountSetupService {
14569
14608
  }));
14570
14609
  }
14571
14610
  }
14572
- AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }], target: i0.ɵɵFactoryTarget.Injectable });
14573
- AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
14574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountSetupService, decorators: [{
14611
+ AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }], target: i0.ɵɵFactoryTarget.Injectable });
14612
+ AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
14613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, decorators: [{
14575
14614
  type: Injectable,
14576
14615
  args: [{
14577
14616
  providedIn: 'root'
@@ -14597,9 +14636,9 @@ class RewardfulService {
14597
14636
  });
14598
14637
  }
14599
14638
  }
14600
- RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14601
- RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RewardfulService, providedIn: 'root' });
14602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RewardfulService, decorators: [{
14639
+ RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14640
+ RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, providedIn: 'root' });
14641
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, decorators: [{
14603
14642
  type: Injectable,
14604
14643
  args: [{
14605
14644
  providedIn: 'root'
@@ -14644,9 +14683,9 @@ class AssetsService {
14644
14683
  return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
14645
14684
  }
14646
14685
  }
14647
- AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14648
- AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, providedIn: 'root' });
14649
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AssetsService, decorators: [{
14686
+ AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14687
+ AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, providedIn: 'root' });
14688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, decorators: [{
14650
14689
  type: Injectable,
14651
14690
  args: [{
14652
14691
  providedIn: 'root'
@@ -14709,9 +14748,9 @@ class BankTransactionCalculationService {
14709
14748
  return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
14710
14749
  }
14711
14750
  }
14712
- BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14713
- BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
14714
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
14751
+ BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14752
+ BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
14753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
14715
14754
  type: Injectable,
14716
14755
  args: [{
14717
14756
  providedIn: 'root'
@@ -14740,9 +14779,9 @@ class BankAccountCalculationService {
14740
14779
  return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
14741
14780
  }
14742
14781
  }
14743
- BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
14744
- BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
14745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: BankAccountCalculationService, decorators: [{
14782
+ BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
14783
+ BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
14784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, decorators: [{
14746
14785
  type: Injectable,
14747
14786
  args: [{
14748
14787
  providedIn: 'root'
@@ -14767,9 +14806,9 @@ class ExportFormatterService {
14767
14806
  }));
14768
14807
  }
14769
14808
  }
14770
- ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$2.CurrencyPipe }, { token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
14771
- ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
14772
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, decorators: [{
14809
+ ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$2.CurrencyPipe }, { token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
14810
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
14811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, decorators: [{
14773
14812
  type: Injectable,
14774
14813
  args: [{
14775
14814
  providedIn: 'root'
@@ -14790,9 +14829,9 @@ class HeaderTitleService {
14790
14829
  }), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
14791
14830
  }
14792
14831
  }
14793
- HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
14794
- HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
14795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: HeaderTitleService, decorators: [{
14832
+ HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
14833
+ HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
14834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, decorators: [{
14796
14835
  type: Injectable,
14797
14836
  args: [{
14798
14837
  providedIn: 'root'
@@ -14826,9 +14865,9 @@ class IntercomService {
14826
14865
  window.Intercom('boot', connectionCredentials);
14827
14866
  }
14828
14867
  }
14829
- IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14830
- IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, providedIn: 'root' });
14831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntercomService, decorators: [{
14868
+ IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
14869
+ IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, providedIn: 'root' });
14870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, decorators: [{
14832
14871
  type: Injectable,
14833
14872
  args: [{
14834
14873
  providedIn: 'root'
@@ -14889,9 +14928,9 @@ class PdfFromDomElementService {
14889
14928
  .then((blob) => new File([blob], filename, { type: 'application/pdf' })));
14890
14929
  }
14891
14930
  }
14892
- PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14893
- PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
14894
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDomElementService, decorators: [{
14931
+ PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14932
+ PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
14933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, decorators: [{
14895
14934
  type: Injectable,
14896
14935
  args: [{
14897
14936
  providedIn: 'root'
@@ -14970,9 +15009,9 @@ class PdfFromTableService {
14970
15009
  doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
14971
15010
  }
14972
15011
  }
14973
- PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14974
- PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
14975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromTableService, decorators: [{
15012
+ PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15013
+ PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
15014
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, decorators: [{
14976
15015
  type: Injectable,
14977
15016
  args: [{
14978
15017
  providedIn: 'root'
@@ -15004,9 +15043,9 @@ class PdfFromDataTableService extends PdfFromTableService {
15004
15043
  return pdf;
15005
15044
  }
15006
15045
  }
15007
- PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
15008
- PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
15009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromDataTableService, decorators: [{
15046
+ PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
15047
+ PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
15048
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, decorators: [{
15010
15049
  type: Injectable,
15011
15050
  args: [{
15012
15051
  providedIn: 'root'
@@ -15039,9 +15078,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
15039
15078
  return pdf;
15040
15079
  }
15041
15080
  }
15042
- PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15043
- PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
15044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
15081
+ PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
15082
+ PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
15083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
15045
15084
  type: Injectable,
15046
15085
  args: [{
15047
15086
  providedIn: 'root'
@@ -15074,9 +15113,9 @@ class EquityPositionChartService {
15074
15113
  }));
15075
15114
  }
15076
15115
  }
15077
- EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15078
- EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
15079
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EquityPositionChartService, decorators: [{
15116
+ EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
15117
+ EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
15118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, decorators: [{
15080
15119
  type: Injectable,
15081
15120
  args: [{
15082
15121
  providedIn: 'root'
@@ -15248,9 +15287,9 @@ class PropertyCalculationService {
15248
15287
  }
15249
15288
  }
15250
15289
  }
15251
- PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15252
- PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
15253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyCalculationService, decorators: [{
15290
+ PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15291
+ PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
15292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, decorators: [{
15254
15293
  type: Injectable,
15255
15294
  args: [{
15256
15295
  providedIn: 'root'
@@ -15307,9 +15346,9 @@ class PropertyTransactionReportService {
15307
15346
  }));
15308
15347
  }
15309
15348
  }
15310
- PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
15311
- PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
15312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
15349
+ PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
15350
+ PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
15351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
15313
15352
  type: Injectable,
15314
15353
  args: [{
15315
15354
  providedIn: 'root'
@@ -15388,9 +15427,9 @@ class TransactionCalculationService {
15388
15427
  return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
15389
15428
  }
15390
15429
  }
15391
- TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15392
- TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
15393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionCalculationService, decorators: [{
15430
+ TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15431
+ TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
15432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, decorators: [{
15394
15433
  type: Injectable,
15395
15434
  args: [{
15396
15435
  providedIn: 'root'
@@ -15450,9 +15489,9 @@ class LogbookBestPeriodService {
15450
15489
  });
15451
15490
  }
15452
15491
  }
15453
- LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15454
- LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
15455
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
15492
+ LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
15493
+ LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
15494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
15456
15495
  type: Injectable,
15457
15496
  args: [{
15458
15497
  providedIn: 'root'
@@ -15493,9 +15532,9 @@ class XlsxService {
15493
15532
  return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
15494
15533
  }
15495
15534
  }
15496
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15497
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, providedIn: 'root' });
15498
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: XlsxService, decorators: [{
15535
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15536
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, providedIn: 'root' });
15537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, decorators: [{
15499
15538
  type: Injectable,
15500
15539
  args: [{
15501
15540
  providedIn: 'root'
@@ -15728,15 +15767,15 @@ function passwordMatchValidator(newPassControlName, confirmPassControlName) {
15728
15767
  };
15729
15768
  }
15730
15769
 
15731
- var MessagesEnum;
15770
+ var MessagesEnum$1;
15732
15771
  (function (MessagesEnum) {
15733
15772
  MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
15734
- })(MessagesEnum || (MessagesEnum = {}));
15773
+ })(MessagesEnum$1 || (MessagesEnum$1 = {}));
15735
15774
 
15736
15775
  /**
15737
15776
  * Validation function, that checks If date form value is more than provided date
15738
15777
  */
15739
- function minDateValidator(date, message = MessagesEnum.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
15778
+ function minDateValidator(date, message = MessagesEnum$1.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
15740
15779
  return (control) => {
15741
15780
  if (!control.value) {
15742
15781
  return null;
@@ -15775,6 +15814,45 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
15775
15814
  };
15776
15815
  }
15777
15816
 
15817
+ /**
15818
+ * Validation function, that checks If provided date is within a current financial year
15819
+ */
15820
+ function currentFinYearValidator() {
15821
+ const currentFinYear = new FinancialYear();
15822
+ return (control) => {
15823
+ if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
15824
+ return null;
15825
+ }
15826
+ return { notCurrentFinYear: true };
15827
+ };
15828
+ }
15829
+
15830
+ const MAX_SIZE = 4194304;
15831
+ class FileValidator {
15832
+ // File max size check
15833
+ static fileMaxSize(maxSize = MAX_SIZE) {
15834
+ const validatorFn = (file) => {
15835
+ return file.size > maxSize ? { fileMaxSize: { maxSize } } : null;
15836
+ };
15837
+ return FileValidator.fileValidation(validatorFn);
15838
+ }
15839
+ // File extension check
15840
+ static fileExtensions(allowedExtensions = DOCUMENT_FILE_TYPES.all) {
15841
+ const validatorFn = (file) => {
15842
+ return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
15843
+ };
15844
+ return FileValidator.fileValidation(validatorFn);
15845
+ }
15846
+ static fileValidation(validatorFn) {
15847
+ return (formControl) => {
15848
+ if (!formControl.value) {
15849
+ return null;
15850
+ }
15851
+ return validatorFn(formControl.value);
15852
+ };
15853
+ }
15854
+ }
15855
+
15778
15856
  /**
15779
15857
  * Validator for address, check if corelogic suggestion selected correctly
15780
15858
  */
@@ -17668,11 +17746,281 @@ class VehicleLogbookForm extends AbstractForm {
17668
17746
  }
17669
17747
  VehicleLogbookForm.maxDescriptionLength = 60;
17670
17748
 
17749
+ /**
17750
+ * general validation rules
17751
+ */
17752
+ var FormValidationsEnum;
17753
+ (function (FormValidationsEnum) {
17754
+ FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
17755
+ FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
17756
+ FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
17757
+ // @TODO move to file uploader component
17758
+ FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
17759
+ })(FormValidationsEnum || (FormValidationsEnum = {}));
17760
+
17761
+ /**
17762
+ * @TODO refactor, move specific fields like property in separated forms
17763
+ * @TODO remove useless getters
17764
+ */
17765
+ class TransactionBaseForm extends AbstractForm {
17766
+ constructor(transaction, registeredForGst, controls = {}) {
17767
+ var _a;
17768
+ super(Object.assign({
17769
+ chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
17770
+ claimPercent: new FormControl({ value: transaction.claimPercent, disabled: true }, [Validators.required, Validators.min(0), Validators.max(100)]),
17771
+ amount: new FormControl(transaction.amount, Validators.required),
17772
+ amountWithGST: new FormControl(transaction.amountWithGst, Validators.required),
17773
+ isGST: new FormControl({ value: transaction.isGST, disabled: !((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) || !registeredForGst }),
17774
+ gstAmount: new FormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
17775
+ date: new FormControl(transaction.date, [Validators.required, currentFinYearValidator()]),
17776
+ description: new FormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
17777
+ // @TODO Alex: refactor (TT-1996)
17778
+ file: new FormControl(transaction['receipt'], [
17779
+ FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
17780
+ ]),
17781
+ property: new FormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
17782
+ }, controls), transaction);
17783
+ this.registeredForGst = registeredForGst;
17784
+ this.watchChartAccounts();
17785
+ if (this.isGstApplicable()) {
17786
+ this.watchAmountWithGST();
17787
+ this.watchIsGst();
17788
+ }
17789
+ }
17790
+ watchIsGst() {
17791
+ this.get('isGST').valueChanges.subscribe((isGST) => {
17792
+ this.updateAmount();
17793
+ this.updateGstAmount();
17794
+ });
17795
+ }
17796
+ watchAmountWithGST() {
17797
+ this.get('amountWithGST').valueChanges.subscribe(() => {
17798
+ this.updateAmount();
17799
+ this.updateGstAmount();
17800
+ });
17801
+ }
17802
+ watchChartAccounts() {
17803
+ this.get('chartAccounts').valueChanges.subscribe((value) => {
17804
+ if (!(value instanceof ChartAccounts)) {
17805
+ return;
17806
+ }
17807
+ // recalculate claim percent for selected chart accounts
17808
+ this.updateClaimPercent(value);
17809
+ if (!this.isGstApplicable()) {
17810
+ return;
17811
+ }
17812
+ // update gst if applicable
17813
+ if (value.isGST) {
17814
+ this.get('isGST').enable();
17815
+ this.get('isGST').patchValue(true);
17816
+ }
17817
+ else {
17818
+ this.get('isGST').patchValue(false);
17819
+ this.get('isGST').disable();
17820
+ }
17821
+ });
17822
+ }
17823
+ updateGstAmount() {
17824
+ this.get('gstAmount').patchValue((this.amountWithGST - this.amount).toFixed(2));
17825
+ }
17826
+ updateAmount() {
17827
+ this.get('amount').patchValue(this.isGST ? (this.amountWithGST / ChartAccounts.GSTCoefficient).toFixed(2) : this.amountWithGST);
17828
+ }
17829
+ isGstApplicable() {
17830
+ return !!this.registeredForGst && !!this.model.business;
17831
+ }
17832
+ get amount() {
17833
+ return this.get('amount').value;
17834
+ }
17835
+ get amountWithGST() {
17836
+ return this.get('amountWithGST').value;
17837
+ }
17838
+ get isGST() {
17839
+ return this.get('isGST').value;
17840
+ }
17841
+ /**
17842
+ * propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
17843
+ * taxablePercent for others
17844
+ * can be adjusted only for property/sole expenses
17845
+ */
17846
+ updateClaimPercent(chartAccounts) {
17847
+ var _a;
17848
+ if (chartAccounts.isClaimPercentEditable()) {
17849
+ this.get('claimPercent').enable();
17850
+ }
17851
+ // property claim (ownership% x shared%) for property expenses, taxable percent for others
17852
+ let claimPercent = chartAccounts.taxablePercent;
17853
+ if (chartAccounts.isPropertyExpense() && chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
17854
+ claimPercent *= (_a = this.value.property) === null || _a === void 0 ? void 0 : _a.claimCoefficient;
17855
+ }
17856
+ this.get('claimPercent').setValue(claimPercent);
17857
+ }
17858
+ }
17859
+
17860
+ var MessagesEnum;
17861
+ (function (MessagesEnum) {
17862
+ MessagesEnum["DATE_VALIDATION_ERROR"] = "The transaction date is before the ownership date, please update the date to confirm";
17863
+ })(MessagesEnum || (MessagesEnum = {}));
17864
+
17865
+ class TransactionForm extends TransactionBaseForm {
17866
+ constructor(transaction, registeredForGst, controls = {}) {
17867
+ super(transaction, registeredForGst, controls);
17868
+ if (transaction.property) {
17869
+ this.get('date').addValidators(minDateValidator(transaction.property.myShare.fromDate, MessagesEnum.DATE_VALIDATION_ERROR));
17870
+ }
17871
+ }
17872
+ }
17873
+
17874
+ class WorkIncomeForm extends TransactionForm {
17875
+ constructor(transaction, registeredForGst, allocations) {
17876
+ var _a;
17877
+ super(transaction, registeredForGst, {
17878
+ // @TODO move to TransactionForm, since other transactions could have it too
17879
+ transactions: new FormArray([]),
17880
+ metadata: new FormArray((transaction.metadata || []).map((transactionMetadata) => {
17881
+ return new FormGroup({
17882
+ value: new FormControl(transactionMetadata.value),
17883
+ chartAccountsMetadata: new FormControl(transactionMetadata.chartAccountsMetadata)
17884
+ });
17885
+ })),
17886
+ tax: new FormControl({
17887
+ value: transaction.tax,
17888
+ disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
17889
+ }, Validators.required),
17890
+ incomeSource: new FormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
17891
+ });
17892
+ // @TODO vik move to TransactionForm
17893
+ if (allocations.length) {
17894
+ this.get('amount').disable();
17895
+ this.get('date').disable();
17896
+ }
17897
+ // salary adjustments (like tips)
17898
+ transaction.transactions.map((transaction) => {
17899
+ this.addTransactionControl(transaction);
17900
+ });
17901
+ if (!((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalary())) {
17902
+ this.get('transactions').disable();
17903
+ }
17904
+ this.listenEvents();
17905
+ }
17906
+ listenEvents() {
17907
+ this.watchIncomeSource();
17908
+ this.watchChartAccounts();
17909
+ }
17910
+ watchIncomeSource() {
17911
+ this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
17912
+ // prefill salary tax with its income source forecast
17913
+ if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
17914
+ this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
17915
+ }
17916
+ });
17917
+ }
17918
+ watchChartAccounts() {
17919
+ super.watchChartAccounts();
17920
+ this.get('chartAccounts').valueChanges.subscribe((value) => {
17921
+ // some fields depend on ChartAccounts and can't be filled until it's selected
17922
+ if (!(value instanceof ChartAccounts)) {
17923
+ this.get('tax').disable();
17924
+ this.get('transactions').disable();
17925
+ return;
17926
+ }
17927
+ this.buildMetadataForm();
17928
+ if (value.isNRAS()) {
17929
+ this.get('tax').disable();
17930
+ }
17931
+ else {
17932
+ this.get('tax').enable();
17933
+ }
17934
+ if (value.isSalary()) {
17935
+ this.get('transactions').enable();
17936
+ }
17937
+ else {
17938
+ this.get('transactions').disable();
17939
+ }
17940
+ });
17941
+ }
17942
+ /**
17943
+ * depends on chartAccounts the form could include different extra fields
17944
+ */
17945
+ buildMetadataForm() {
17946
+ // Remove all controls in the FormArray before pushing
17947
+ this.get('metadata').clear();
17948
+ // create form controls for each metadata object from selected chart accounts
17949
+ (this.get('chartAccounts').value.metadata).forEach((chartAccountsMetadata) => {
17950
+ this.get('metadata').push(new FormGroup({
17951
+ value: new FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
17952
+ chartAccountsMetadata: new FormControl(chartAccountsMetadata),
17953
+ }));
17954
+ });
17955
+ }
17956
+ addTransactionControl(transaction = plainToClass(Transaction, {})) {
17957
+ const formGroup = new FormGroup({
17958
+ id: new FormControl(transaction.id),
17959
+ chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
17960
+ amount: new FormControl(Math.abs(transaction.amount), [Validators.required]),
17961
+ });
17962
+ this.get('transactions').push(formGroup);
17963
+ }
17964
+ removeTransactionControl(index) {
17965
+ this.get('transactions').removeAt(index);
17966
+ }
17967
+ /**
17968
+ * salary transactions might include adjustments (child transactions), like tips or donation.
17969
+ * Adjustments inherit most of the fields from parent transaction
17970
+ */
17971
+ buildTransactions() {
17972
+ const transaction = plainToClass(Transaction, this.value);
17973
+ return this.get('transactions').value.map((childTransaction) => Object.assign({
17974
+ description: transaction.chartAccounts.name,
17975
+ date: transaction.date,
17976
+ claimPercent: transaction.claimPercent,
17977
+ source: transaction.source,
17978
+ tax: transaction.tax,
17979
+ type: transaction.type
17980
+ }, this.model.transactions.find((transaction) => transaction.id === childTransaction['id']) || {}, childTransaction));
17981
+ }
17982
+ submit(data = {}) {
17983
+ return super.submit(Object.assign(data, { transactions: this.buildTransactions() }));
17984
+ }
17985
+ }
17986
+
17987
+ class DepreciationForm extends TransactionBaseForm {
17988
+ constructor(depreciation, registeredForGst) {
17989
+ super(depreciation, registeredForGst);
17990
+ this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
17991
+ this.addControl('isCloseBalanceCorrect', new FormControl(true));
17992
+ this.addControl('closeBalance', new FormControl({ value: depreciation.closeBalance || 0, disabled: true }, Validators.required));
17993
+ this.addControl('financialYear', new FormControl(depreciation.financialYear || new FinancialYear().year));
17994
+ // forbid to change chartAccounts/claimPercent for existing depreciations
17995
+ if (depreciation.id) {
17996
+ this.get('chartAccounts').disable({ emitEvent: false });
17997
+ this.get('claimPercent').disable({ emitEvent: false });
17998
+ }
17999
+ // @TODO should be watched?
18000
+ // if depreciation has 'depreciationCapitalProject' value - set value and disable 'date' form control
18001
+ if (depreciation.depreciationCapitalProject) {
18002
+ this.get('date').setValue(depreciation.depreciationCapitalProject.effectiveDate);
18003
+ this.get('date').disable();
18004
+ }
18005
+ else {
18006
+ this.get('date').setValue(depreciation.date);
18007
+ }
18008
+ this.get('isCloseBalanceCorrect').valueChanges.subscribe((isSelected) => {
18009
+ if (isSelected) {
18010
+ this.get('closeBalance').disable();
18011
+ }
18012
+ else {
18013
+ this.get('closeBalance').enable();
18014
+ }
18015
+ });
18016
+ }
18017
+ }
18018
+
17671
18019
  // @TODO Alex: Create indexes everywhere and break this file to imports from indexes
17672
18020
 
17673
18021
  /**
17674
18022
  * Generated bundle index. Do not edit.
17675
18023
  */
17676
18024
 
17677
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
18025
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
17678
18026
  //# sourceMappingURL=taxtank-core.js.map