taxtank-core 0.33.57 → 0.33.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/esm2022/src/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +3 -4
  2. package/esm2022/src/lib/forms/bank/bank-account/bank-account-import.form.mjs +1 -1
  3. package/esm2022/src/lib/models/bank/bank-account.mjs +4 -6
  4. package/esm2022/src/lib/models/bank/index.mjs +1 -2
  5. package/esm2022/src/lib/models/dictionary/dictionary.mjs +2 -2
  6. package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +5 -4
  7. package/esm2022/src/lib/services/http/rest/http-error-messages.const.mjs +14 -0
  8. package/esm2022/src/lib/services/http/rest/index.mjs +2 -1
  9. package/esm2022/src/lib/services/http/rest/rest.service.mjs +37 -27
  10. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -1
  11. package/esm2022/src/lib/services/property/corelogic/corelogic-messages.enum.mjs +5 -0
  12. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +13 -7
  13. package/esm2022/src/lib/services/property/corelogic/index.mjs +2 -1
  14. package/fesm2022/taxtank-core.mjs +146 -127
  15. package/fesm2022/taxtank-core.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/src/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +2 -3
  18. package/src/lib/models/bank/bank-account.d.ts +0 -2
  19. package/src/lib/models/bank/index.d.ts +0 -1
  20. package/src/lib/models/dictionary/dictionary.d.ts +1 -1
  21. package/src/lib/services/http/rest/http-error-messages.const.d.ts +13 -0
  22. package/src/lib/services/http/rest/index.d.ts +1 -0
  23. package/src/lib/services/http/rest/rest.service.d.ts +22 -0
  24. package/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +3 -0
  25. package/src/lib/services/property/corelogic/corelogic-messages.enum.d.ts +3 -0
  26. package/src/lib/services/property/corelogic/corelogic.service.d.ts +3 -1
  27. package/src/lib/services/property/corelogic/index.d.ts +1 -0
  28. package/esm2022/src/lib/models/bank/bank-account-types.const.mjs +0 -14
  29. package/src/lib/models/bank/bank-account-types.const.d.ts +0 -7
@@ -1,13 +1,16 @@
1
1
  import { Inject, Injectable } from '@angular/core';
2
- import { ReplaySubject } from 'rxjs';
3
- import { map } from 'rxjs/operators';
2
+ import { ReplaySubject, throwError } from 'rxjs';
3
+ import { catchError, map } from 'rxjs/operators';
4
4
  import { plainToClass } from 'class-transformer';
5
5
  import { CorelogicSuggestion } from '../../../models';
6
+ import { CorelogicMessagesEnum } from './corelogic-messages.enum';
6
7
  import * as i0 from "@angular/core";
7
8
  import * as i1 from "@angular/common/http";
9
+ import * as i2 from "../../toast";
8
10
  export class CorelogicService {
9
- constructor(http, environment) {
11
+ constructor(http, toastService, environment) {
10
12
  this.http = http;
13
+ this.toastService = toastService;
11
14
  this.environment = environment;
12
15
  this.accessTokenSubject = new ReplaySubject(1);
13
16
  }
@@ -25,9 +28,12 @@ export class CorelogicService {
25
28
  getSuggestions(query, country = 'au') {
26
29
  // @TODO handle different countries in future
27
30
  return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
28
- .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
31
+ .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))), catchError((error) => {
32
+ this.toastService.error(CorelogicMessagesEnum.SERVICE_UNAVAILABLE);
33
+ return throwError(() => error);
34
+ }));
29
35
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: i2.ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
31
37
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, providedIn: 'root' }); }
32
38
  }
33
39
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, decorators: [{
@@ -35,8 +41,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
35
41
  args: [{
36
42
  providedIn: 'root'
37
43
  }]
38
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
44
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ToastService }, { type: undefined, decorators: [{
39
45
  type: Inject,
40
46
  args: ['environment']
41
47
  }] }] });
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZWxvZ2ljLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2NvcmVsb2dpYy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBYyxhQUFhLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDakQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0FBS3RELE1BQU0sT0FBTyxnQkFBZ0I7SU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3Rpb25bXT4ge1xuICAgIC8vIEBUT0RPIGhhbmRsZSBkaWZmZXJlbnQgY291bnRyaWVzIGluIGZ1dHVyZVxuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0KGAke3RoaXMuZW52aXJvbm1lbnQuY29yZUxvZ2ljVXJsfS9wcm9wZXJ0eS8ke2NvdW50cnl9L3YyL3N1Z2dlc3QuanNvbj9xPSR7cXVlcnl9YClcbiAgICAgIC5waXBlKFxuICAgICAgICBtYXAoKHJlc3BvbnNlOiBhbnkpID0+IHJlc3BvbnNlLnN1Z2dlc3Rpb25zLm1hcCgoaXRlbTogb2JqZWN0KSA9PiBwbGFpblRvQ2xhc3MoQ29yZWxvZ2ljU3VnZ2VzdGlvbiwgaXRlbSkpKSxcbiAgICAgICAgY2F0Y2hFcnJvcigoZXJyb3I6IHVua25vd24pID0+IHtcbiAgICAgICAgICB0aGlzLnRvYXN0U2VydmljZS5lcnJvcihDb3JlbG9naWNNZXNzYWdlc0VudW0uU0VSVklDRV9VTkFWQUlMQUJMRSk7XG4gICAgICAgICAgcmV0dXJuIHRocm93RXJyb3IoKCkgPT4gZXJyb3IpXG4gICAgICAgIH0pXG4gICAgICApO1xuICB9XG59XG4iXX0=
@@ -1,2 +1,3 @@
1
1
  export * from './corelogic.service';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvcmVsb2dpYy5zZXJ2aWNlJztcbiJdfQ==
2
+ export * from './corelogic-messages.enum';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29yZWxvZ2ljLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlbG9naWMtbWVzc2FnZXMuZW51bSc7XG4iXX0=
@@ -3,9 +3,9 @@ import { Injectable, Inject, inject, EventEmitter, NgModule, Pipe } from '@angul
3
3
  import * as i1$1 from '@angular/common';
4
4
  import { formatDate, CommonModule, CurrencyPipe, DatePipe } from '@angular/common';
5
5
  import * as i1 from '@angular/common/http';
6
- import { HttpParams, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
7
- import { map, mergeMap, filter, catchError, first as first$1, finalize, debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
8
- import { ReplaySubject, Subject, Observable, of, throwError, combineLatest, BehaviorSubject, forkJoin, from, merge as merge$1 } from 'rxjs';
6
+ import { HttpParams, HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
7
+ import { map, catchError, mergeMap, filter, first as first$1, finalize, debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
8
+ import { ReplaySubject, throwError, Subject, Observable, combineLatest, BehaviorSubject, forkJoin, of, from, merge as merge$1 } from 'rxjs';
9
9
  import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
10
10
  import { __decorate } from 'tslib';
11
11
  import get from 'lodash/get';
@@ -7444,7 +7444,8 @@ class MyTaxBusinessLosses {
7444
7444
  this.deductionsForGeneralSmallBusinessPoolAmount = depreciations
7445
7445
  .getSBPDepreciations()
7446
7446
  .sumBy('claimAmount');
7447
- this.currentYearNetNonPrimaryIncomeOrLossesAmount = taxSummary.sole.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.BUSINESS_INCOME_OR_LOSS], TaxSummarySectionEnum.SOLE_TANK);
7447
+ this.currentYearNetNonPrimaryIncomeOrLossesAmount = new TransactionCollection(transactions.toArray(), depreciations.toArray())
7448
+ .getBusinessClaimAmount();
7448
7449
  this.priorYearsNonPrimaryLossesAmount = businessLosses.sumBy('openBalance');
7449
7450
  this.netNonPrimaryIncomeOrLossesAmount = this.currentYearNetNonPrimaryIncomeOrLossesAmount -
7450
7451
  this.priorYearsNonPrimaryLossesAmount;
@@ -9745,6 +9746,11 @@ __decorate([
9745
9746
  Type(() => Date)
9746
9747
  ], BankConnection.prototype, "expiryDate", void 0);
9747
9748
 
9749
+ const TYPE_LOAN = [
9750
+ BankAccountTypeEnum.MORTGAGE,
9751
+ BankAccountTypeEnum.LOAN
9752
+ ];
9753
+
9748
9754
  class BankAccount extends BankAccount$1 {
9749
9755
  get bank() {
9750
9756
  return this.bankConnection.bank;
@@ -9788,7 +9794,7 @@ class BankAccount extends BankAccount$1 {
9788
9794
  * check if bank account type is Loan
9789
9795
  */
9790
9796
  isLoan() {
9791
- return this.type === BankAccountTypeEnum.LOAN;
9797
+ return TYPE_LOAN.includes(this.type);
9792
9798
  }
9793
9799
  /**
9794
9800
  * check if bank account type is Credit card
@@ -9899,9 +9905,6 @@ __decorate([
9899
9905
  __decorate([
9900
9906
  Type(() => BankConnection)
9901
9907
  ], BankAccount.prototype, "bankConnection", void 0);
9902
- __decorate([
9903
- Transform(({ value }) => value === 4 ? BankAccountTypeEnum.LOAN : value)
9904
- ], BankAccount.prototype, "type", void 0);
9905
9908
 
9906
9909
  /**
9907
9910
  * bank account collection UI class with frontend specific data
@@ -9933,19 +9936,6 @@ class BankAccountChartData {
9933
9936
  }
9934
9937
  }
9935
9938
 
9936
- /**
9937
- * Const which contains array of bank account types
9938
- */
9939
- const BANK_ACCOUNT_TYPES = [
9940
- { key: BankAccountTypeEnum.CREDIT_CARD, value: 'Credit Card Accounts' },
9941
- { key: BankAccountTypeEnum.TERM_DEPOSIT, value: 'Deposit Accounts' },
9942
- { key: BankAccountTypeEnum.INVESTMENT, value: 'Investment Accounts' },
9943
- { key: BankAccountTypeEnum.LOAN, value: 'Loan Accounts' },
9944
- { key: BankAccountTypeEnum.OFFSET, value: 'Offset' },
9945
- { key: BankAccountTypeEnum.SAVINGS, value: 'Savings Accounts' },
9946
- { key: BankAccountTypeEnum.TRANSACTION, value: 'Transaction Accounts' },
9947
- ];
9948
-
9949
9939
  class BankTransaction extends BankTransaction$1 {
9950
9940
  constructor() {
9951
9941
  super(...arguments);
@@ -10118,11 +10108,6 @@ var BankTransactionSummaryFieldsEnum;
10118
10108
  BankTransactionSummaryFieldsEnum["ALLOCATED_AMOUNT"] = "allocatedAmount";
10119
10109
  })(BankTransactionSummaryFieldsEnum || (BankTransactionSummaryFieldsEnum = {}));
10120
10110
 
10121
- const TYPE_LOAN = [
10122
- BankAccountTypeEnum.MORTGAGE,
10123
- BankAccountTypeEnum.LOAN
10124
- ];
10125
-
10126
10111
  class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
10127
10112
  }
10128
10113
 
@@ -10236,7 +10221,7 @@ __decorate([
10236
10221
  ], Message.prototype, "documents", void 0);
10237
10222
 
10238
10223
  /**
10239
- * @TODO refactor with Map
10224
+ * @TODO refactor with Map or Record
10240
10225
  * List of objects grouped by passed property
10241
10226
  */
10242
10227
  class Dictionary {
@@ -10774,9 +10759,86 @@ __decorate([
10774
10759
  Type(() => SoleBusiness)
10775
10760
  ], HomeOfficeLog.prototype, "business", void 0);
10776
10761
 
10762
+ var CorelogicMessagesEnum;
10763
+ (function (CorelogicMessagesEnum) {
10764
+ CorelogicMessagesEnum["SERVICE_UNAVAILABLE"] = "Corelogic service is temporary unavailable, please try again in a few minutes.";
10765
+ })(CorelogicMessagesEnum || (CorelogicMessagesEnum = {}));
10766
+
10767
+ /**
10768
+ * Common toast message class
10769
+ */
10770
+ class Toast {
10771
+ constructor() {
10772
+ this.duration = 3000;
10773
+ this.autoClose = true;
10774
+ }
10775
+ }
10776
+
10777
+ var ToastTypeEnum;
10778
+ (function (ToastTypeEnum) {
10779
+ ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
10780
+ ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
10781
+ ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
10782
+ ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
10783
+ })(ToastTypeEnum || (ToastTypeEnum = {}));
10784
+
10785
+ /**
10786
+ * popup notifications service (toast, snackbar).
10787
+ */
10788
+ class ToastService {
10789
+ constructor() {
10790
+ this.toast$ = new ReplaySubject(1);
10791
+ }
10792
+ get() {
10793
+ return this.toast$.asObservable();
10794
+ }
10795
+ add(toast) {
10796
+ // set date to prevent closing of equal toasts (extra case)
10797
+ toast.date = new Date(),
10798
+ this.toast$.next(toast);
10799
+ }
10800
+ success(message) {
10801
+ this.add(plainToClass(Toast, {
10802
+ type: ToastTypeEnum.SUCCESS,
10803
+ title: 'Success!',
10804
+ message,
10805
+ }));
10806
+ }
10807
+ warning(message) {
10808
+ this.add(plainToClass(Toast, {
10809
+ type: ToastTypeEnum.WARNING,
10810
+ title: 'Notification!',
10811
+ message,
10812
+ }));
10813
+ }
10814
+ error(message) {
10815
+ this.add(plainToClass(Toast, {
10816
+ type: ToastTypeEnum.ERROR,
10817
+ title: 'Error!',
10818
+ message,
10819
+ }));
10820
+ }
10821
+ info(message) {
10822
+ this.add(plainToClass(Toast, {
10823
+ type: ToastTypeEnum.INFO,
10824
+ title: 'Information',
10825
+ message,
10826
+ }));
10827
+ }
10828
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
10829
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, providedIn: 'root' }); }
10830
+ }
10831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, decorators: [{
10832
+ type: Injectable,
10833
+ args: [{
10834
+ providedIn: 'root'
10835
+ }]
10836
+ }] });
10837
+
10777
10838
  class CorelogicService {
10778
- constructor(http, environment) {
10839
+ constructor(http, toastService, environment) {
10779
10840
  this.http = http;
10841
+ this.toastService = toastService;
10780
10842
  this.environment = environment;
10781
10843
  this.accessTokenSubject = new ReplaySubject(1);
10782
10844
  }
@@ -10794,9 +10856,12 @@ class CorelogicService {
10794
10856
  getSuggestions(query, country = 'au') {
10795
10857
  // @TODO handle different countries in future
10796
10858
  return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
10797
- .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
10859
+ .pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))), catchError((error) => {
10860
+ this.toastService.error(CorelogicMessagesEnum.SERVICE_UNAVAILABLE);
10861
+ return throwError(() => error);
10862
+ }));
10798
10863
  }
10799
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
10864
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
10800
10865
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, providedIn: 'root' }); }
10801
10866
  }
10802
10867
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, decorators: [{
@@ -10804,7 +10869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
10804
10869
  args: [{
10805
10870
  providedIn: 'root'
10806
10871
  }]
10807
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
10872
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ToastService }, { type: undefined, decorators: [{
10808
10873
  type: Inject,
10809
10874
  args: ['environment']
10810
10875
  }] }] });
@@ -11109,76 +11174,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
11109
11174
  }]
11110
11175
  }] });
11111
11176
 
11112
- /**
11113
- * Common toast message class
11114
- */
11115
- class Toast {
11116
- constructor() {
11117
- this.duration = 3000;
11118
- this.autoClose = true;
11119
- }
11120
- }
11121
-
11122
- var ToastTypeEnum;
11123
- (function (ToastTypeEnum) {
11124
- ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
11125
- ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
11126
- ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
11127
- ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
11128
- })(ToastTypeEnum || (ToastTypeEnum = {}));
11129
-
11130
- /**
11131
- * popup notifications service (toast, snackbar).
11132
- */
11133
- class ToastService {
11134
- constructor() {
11135
- this.toast$ = new ReplaySubject(1);
11136
- }
11137
- get() {
11138
- return this.toast$.asObservable();
11139
- }
11140
- add(toast) {
11141
- // set date to prevent closing of equal toasts (extra case)
11142
- toast.date = new Date(),
11143
- this.toast$.next(toast);
11144
- }
11145
- success(message) {
11146
- this.add(plainToClass(Toast, {
11147
- type: ToastTypeEnum.SUCCESS,
11148
- title: 'Success!',
11149
- message,
11150
- }));
11151
- }
11152
- warning(message) {
11153
- this.add(plainToClass(Toast, {
11154
- type: ToastTypeEnum.WARNING,
11155
- title: 'Notification!',
11156
- message,
11157
- }));
11158
- }
11159
- error(message) {
11160
- this.add(plainToClass(Toast, {
11161
- type: ToastTypeEnum.ERROR,
11162
- title: 'Error!',
11163
- message,
11164
- }));
11165
- }
11166
- info(message) {
11167
- this.add(plainToClass(Toast, {
11168
- type: ToastTypeEnum.INFO,
11169
- title: 'Information',
11170
- message,
11171
- }));
11172
- }
11173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
11174
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, providedIn: 'root' }); }
11175
- }
11176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, decorators: [{
11177
- type: Injectable,
11178
- args: [{
11179
- providedIn: 'root'
11180
- }]
11181
- }] });
11177
+ const HTTP_ERROR_MESSAGES = {
11178
+ 400: 'Bad Request The request was invalid. Please check your data.',
11179
+ 401: 'Unauthorized – Authentication is required. Please log in.',
11180
+ 403: 'Forbidden – Access is denied. You do not have permission to perform this action.',
11181
+ 404: 'Not Found – The requested resource could not be found. Check the URL or availability.',
11182
+ 405: 'Method Not Allowed – The request method is not supported by the server. Please, connect with technical support',
11183
+ 408: 'Request Timeout – The request took too long to complete. Please try again.',
11184
+ 429: 'Too Many Requests – Too many requests were made. Please wait and try again later.',
11185
+ 500: 'Internal Server Error – The server encountered an error. Please try again later.',
11186
+ 502: 'Bad Gateway – The server received an invalid response. Please try again.',
11187
+ 503: 'Service Unavailable – The server is currently unavailable. Please try again later.',
11188
+ 504: 'Gateway Timeout – The server timed out waiting for a response. Please try again.'
11189
+ };
11182
11190
 
11183
11191
  /**
11184
11192
  * @TODO refactor to behavior subject?
@@ -11212,6 +11220,16 @@ let RestService$1 = class RestService extends DataService {
11212
11220
  */
11213
11221
  this.orderByDesc = false;
11214
11222
  this.roles = [];
11223
+ /**
11224
+ * flag to use error messages from api or default ones
11225
+ * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
11226
+ */
11227
+ this.useBackendError = false;
11228
+ /**
11229
+ * messages that can be redefined in other classes to customize httpErrorMessages
11230
+ */
11231
+ this.customHttpErrorMessages = {};
11232
+ this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.customHttpErrorMessages };
11215
11233
  }
11216
11234
  get apiUrl() {
11217
11235
  return `${this.environment.apiV2}/${this.endpointUri}`;
@@ -11250,10 +11268,7 @@ let RestService$1 = class RestService extends DataService {
11250
11268
  .pipe(map((response) => Array.isArray(response) ? response : toArray(response)), map((response) => {
11251
11269
  this.setCache(response, true);
11252
11270
  return this.cache;
11253
- }), catchError(() => {
11254
- this.toastService.error('An error occurred while fetching data');
11255
- return of(this.cache);
11256
- }));
11271
+ }), catchError((error) => this.handleError(error)));
11257
11272
  }
11258
11273
  get(path = this.apiUrl) {
11259
11274
  if (!this.cache) {
@@ -11289,10 +11304,7 @@ let RestService$1 = class RestService extends DataService {
11289
11304
  this.handleResponse([result], 'post');
11290
11305
  }
11291
11306
  return result;
11292
- }), catchError(() => {
11293
- this.toastService.error('An error occurred while posting data');
11294
- return of(null);
11295
- }));
11307
+ }), catchError((error) => this.handleError(error)));
11296
11308
  }
11297
11309
  /**
11298
11310
  * Create multiple new Model instances in database
@@ -11306,10 +11318,7 @@ let RestService$1 = class RestService extends DataService {
11306
11318
  this.handleResponse(result, 'post');
11307
11319
  }
11308
11320
  return result;
11309
- }), catchError(() => {
11310
- this.toastService.error('An error occurred while posting data');
11311
- return of([]);
11312
- }));
11321
+ }), catchError((error) => this.handleError(error)));
11313
11322
  }
11314
11323
  /**
11315
11324
  * Change an existing Model instance in database
@@ -11323,10 +11332,7 @@ let RestService$1 = class RestService extends DataService {
11323
11332
  this.handleResponse([result], 'put');
11324
11333
  }
11325
11334
  return result;
11326
- }), catchError(() => {
11327
- this.toastService.error('An error occurred while put data');
11328
- return of(null);
11329
- }));
11335
+ }), catchError((error) => this.handleError(error)));
11330
11336
  }
11331
11337
  /**
11332
11338
  * Change multiple existing Model instances in database
@@ -11352,10 +11358,7 @@ let RestService$1 = class RestService extends DataService {
11352
11358
  if (!this.mercureTopic) {
11353
11359
  this.handleResponse([model], 'delete');
11354
11360
  }
11355
- }), catchError(() => {
11356
- this.toastService.error('An error occurred while deleting data');
11357
- return of(null);
11358
- }));
11361
+ }), catchError((error) => this.handleError(error)));
11359
11362
  }
11360
11363
  /**
11361
11364
  * Remove multiple Model instances from database
@@ -11367,10 +11370,24 @@ let RestService$1 = class RestService extends DataService {
11367
11370
  if (!this.mercureTopic) {
11368
11371
  this.handleResponse(models, 'delete');
11369
11372
  }
11370
- }), catchError(() => {
11371
- this.toastService.error('An error occurred while deleting data');
11372
- return of(null);
11373
- }));
11373
+ }), catchError((error) => this.handleError(error)));
11374
+ }
11375
+ /**
11376
+ * Handle response errors - shows error in toast
11377
+ * and throws error further
11378
+ * @param error - any backend error
11379
+ * @throws HttpErrorResponse | Error - Always throws the error further as an Observable<never>
11380
+ */
11381
+ handleError(error) {
11382
+ if (error instanceof HttpErrorResponse) {
11383
+ if (this.useBackendError) {
11384
+ this.toastService.error(error.error.map((error) => error.message).join(' '));
11385
+ }
11386
+ else {
11387
+ this.toastService.error(this.httpErrorMessages[error.status] || 'Unexpected error occurred.');
11388
+ }
11389
+ }
11390
+ return throwError(() => error);
11374
11391
  }
11375
11392
  /**
11376
11393
  * Handle response data - update cache and dispatch event if it is needed
@@ -15251,6 +15268,8 @@ class AllocationRuleService extends RestService$1 {
15251
15268
  this.endpointUri = 'allocation-rules';
15252
15269
  this.collectionClass = AllocationRuleCollection;
15253
15270
  this.modelClass = AllocationRule;
15271
+ // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
15272
+ this.customHttpErrorMessages = { 422: 'You can only have 10 conditions in a rule' };
15254
15273
  }
15255
15274
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
15256
15275
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, providedIn: 'root' }); }
@@ -22173,7 +22192,7 @@ class BankAccountAddManualForm extends BankAccountAllocationForm {
22173
22192
  */
22174
22193
  listenTypeChanges() {
22175
22194
  this.get('type').valueChanges.subscribe((type) => {
22176
- if (type === BankAccountTypeEnum.LOAN) {
22195
+ if (TYPE_LOAN.includes(type)) {
22177
22196
  // Set prefilled term for bank account loan
22178
22197
  this.addControl('loan', new LoanForm(plainToClass(Loan, { bankAccount: this.model })));
22179
22198
  }
@@ -24704,5 +24723,5 @@ var MessagesEnum;
24704
24723
  * Generated bundle index. Do not edit.
24705
24724
  */
24706
24725
 
24707
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportMessagesEnum, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessChartAccountsEnum, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalLoss, CapitalLossForm, CapitalLossMessagesEnum, CapitalLossService, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsForm, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueCollection, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatFilterForm, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientCouponService, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteCollection, ClientInviteForm, ClientInviteMessages, ClientInvitePutForm, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementForm, ClientMovementMessagesEnum, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CollectionForm, CoreModule, CorelogicService, CorelogicSuggestion, Country, CurrentFirmBranchService, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeDetailsForm, EmployeeInvite, EmployeeInviteCollection, EmployeeInviteForm, EmployeeInviteRoleEnum, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmBranch, FirmBranchForm, FirmBranchMessagesEnum, FirmBranchService, FirmForm, FirmInviteForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GenderEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, HomeOfficeCalculatorForm, HomeOfficeClaim, HomeOfficeClaimCollection, HomeOfficeClaimForm, HomeOfficeClaimMessagesEnum, HomeOfficeClaimMethodEnum, HomeOfficeClaimService, HomeOfficeLog, HomeOfficeLogForm, HomeOfficeLogMessagesEnum, HomeOfficeLogService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, InvoicePaymentForm, JsPdf, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanMessagesEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, 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, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, PriorTransactionService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, REPORTS, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestMessagesEnum, RestService$1 as RestService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceListEnum, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossCollection, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStateEnum, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionCollection, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewFilterForm, TaxReviewFilterStatusEnum, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, TimezoneEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseFilterForm, TransactionBaseForm, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReportItem, TransactionReportItemCollection, TransactionService, TransactionSourceEnum, TransactionTypeEnum, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserCollection, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, alphaSpaceValidator, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, matchSumValidator, maxDateValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, toArray };
24726
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportMessagesEnum, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessChartAccountsEnum, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalLoss, CapitalLossForm, CapitalLossMessagesEnum, CapitalLossService, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsForm, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueCollection, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatFilterForm, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientCouponService, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteCollection, ClientInviteForm, ClientInviteMessages, ClientInvitePutForm, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementForm, ClientMovementMessagesEnum, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CollectionForm, CoreModule, CorelogicMessagesEnum, CorelogicService, CorelogicSuggestion, Country, CurrentFirmBranchService, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeDetailsForm, EmployeeInvite, EmployeeInviteCollection, EmployeeInviteForm, EmployeeInviteRoleEnum, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmBranch, FirmBranchForm, FirmBranchMessagesEnum, FirmBranchService, FirmForm, FirmInviteForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GenderEnum, GoogleService, HTTP_ERROR_MESSAGES, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, HomeOfficeCalculatorForm, HomeOfficeClaim, HomeOfficeClaimCollection, HomeOfficeClaimForm, HomeOfficeClaimMessagesEnum, HomeOfficeClaimMethodEnum, HomeOfficeClaimService, HomeOfficeLog, HomeOfficeLogForm, HomeOfficeLogMessagesEnum, HomeOfficeLogService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, InvoicePaymentForm, JsPdf, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanMessagesEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, 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, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, PriorTransactionService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, REPORTS, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestMessagesEnum, RestService$1 as RestService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceListEnum, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossCollection, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStateEnum, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionCollection, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewFilterForm, TaxReviewFilterStatusEnum, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, TimezoneEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseFilterForm, TransactionBaseForm, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReportItem, TransactionReportItemCollection, TransactionService, TransactionSourceEnum, TransactionTypeEnum, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserCollection, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, alphaSpaceValidator, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, matchSumValidator, maxDateValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, toArray };
24708
24727
  //# sourceMappingURL=taxtank-core.mjs.map