taxtank-core 0.33.58 → 0.33.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/esm2022/src/lib/forms/abstract.form.mjs +7 -2
  2. package/esm2022/src/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +3 -4
  3. package/esm2022/src/lib/forms/bank/bank-account/bank-account-import.form.mjs +1 -1
  4. package/esm2022/src/lib/forms/bank/bank-account/bank-account-properties.form.mjs +3 -4
  5. package/esm2022/src/lib/models/bank/bank-account.mjs +4 -6
  6. package/esm2022/src/lib/models/bank/index.mjs +1 -2
  7. package/esm2022/src/lib/models/dictionary/dictionary.mjs +2 -2
  8. package/esm2022/src/lib/services/http/rest/rest.service.mjs +8 -6
  9. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +5 -3
  10. package/esm2022/src/lib/services/property/corelogic/corelogic-messages.enum.mjs +5 -0
  11. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +13 -7
  12. package/esm2022/src/lib/services/property/corelogic/index.mjs +2 -1
  13. package/fesm2022/taxtank-core.mjs +112 -110
  14. package/fesm2022/taxtank-core.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/src/lib/forms/abstract.form.d.ts +1 -1
  17. package/src/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +2 -3
  18. package/src/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +1 -1
  19. package/src/lib/models/bank/bank-account.d.ts +0 -2
  20. package/src/lib/models/bank/index.d.ts +0 -1
  21. package/src/lib/models/dictionary/dictionary.d.ts +1 -1
  22. package/src/lib/services/http/rest/rest.service.d.ts +4 -4
  23. package/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +1 -3
  24. package/src/lib/services/property/corelogic/corelogic-messages.enum.d.ts +3 -0
  25. package/src/lib/services/property/corelogic/corelogic.service.d.ts +3 -1
  26. package/src/lib/services/property/corelogic/index.d.ts +1 -0
  27. package/esm2022/src/lib/models/bank/bank-account-types.const.mjs +0 -14
  28. package/src/lib/models/bank/bank-account-types.const.d.ts +0 -7
@@ -37,7 +37,12 @@ export class AbstractForm extends FormGroup {
37
37
  return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
38
38
  }
39
39
  toggleEnabledState(control) {
40
- control.enabled ? control.disable() : control.enable();
40
+ if (control) {
41
+ control.enabled ? control.disable() : control.enable();
42
+ }
43
+ else {
44
+ this.enabled ? this.disable() : this.enable();
45
+ }
41
46
  }
42
47
  /**
43
48
  * Check validation and return a new instance of generic model.
@@ -145,4 +150,4 @@ export class AbstractForm extends FormGroup {
145
150
  });
146
151
  }
147
152
  }
148
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9hYnN0cmFjdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBMEUsU0FBUyxFQUFlLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVJLE9BQU8sRUFBRSxZQUFZLEVBQVEsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBU3JDOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFnQixZQUE0RSxTQUFRLFNBQW1CO2FBQ3BILG1CQUFjLEdBQUcsRUFBRSxBQUFMLENBQU07SUFtQjNCLFlBQ0UsUUFBa0I7SUFDbEIsdURBQXVEO0lBQ3ZELEtBQWEsRUFDYixlQUE2RSxFQUM3RSxjQUE2RDtRQUU3RCxLQUFLLENBQUMsUUFBUSxFQUFFLGVBQWUsRUFBRSxjQ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vbHM6IEFic3RyYWN0Q29udHJvbFtdID0gW10pOiB2b2lkIHtcbiAgICBpZiAoIWNvbnRyb2xzLmxlbmd0aCkge1xuICAgICAgcmV0dXJuIHN1cGVyLmRpc2FibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZGlzYWJsZShvcHRzKTtcbiAgICB9KTtcbiAgfVxuXG4gIGVuYWJsZShvcHRzPzogeyBvbmx5U2VsZj86IGJvb2xlYW47IGVtaXRFdmVudD86IGJvb2xlYW47IH0sIGNvbnRyb2xzOiBBYnN0cmFjdENvbnRyb2xbXSA9IFtdKTogdm9pZCB7XG4gICAgaWYgKCFjb250cm9scy5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBzdXBlci5lbmFibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZW5hYmxlKG9wdHMpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,9 +1,8 @@
1
+ import { Loan, TYPE_LOAN } from '../../../models';
1
2
  import { UntypedFormControl, Validators } from '@angular/forms';
2
3
  import { LoanForm } from '../../loan';
3
- import { BankAccountTypeEnum } from '../../../db/Enums/bank/bank-account-type.enum';
4
4
  import { BankAccountAllocationForm } from './bank-account-allocation.form';
5
5
  import { plainToClass } from 'class-transformer';
6
- import { Loan } from '../../../models/loan/loan';
7
6
  /**
8
7
  * Form is using for single manual bank account creation (not Basiq)
9
8
  */
@@ -27,7 +26,7 @@ export class BankAccountAddManualForm extends BankAccountAllocationForm {
27
26
  */
28
27
  listenTypeChanges() {
29
28
  this.get('type').valueChanges.subscribe((type) => {
30
- if (type === BankAccountTypeEnum.LOAN) {
29
+ if (TYPE_LOAN.includes(type)) {
31
30
  // Set prefilled term for bank account loan
32
31
  this.addControl('loan', new LoanForm(plainToClass(Loan, { bankAccount: this.model })));
33
32
  }
@@ -43,4 +42,4 @@ export class BankAccountAddManualForm extends BankAccountAllocationForm {
43
42
  return super.submit({ bankConnection: this.connection });
44
43
  }
45
44
  }
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LWFkZC1tYW51YWwuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQtYWRkLW1hbnVhbC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVoRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLCtDQUErQyxDQUFDO0FBQ3BGLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFJakQ7O0dBRUc7QUFDSCxNQUFNLE9BQU8sd0JBQXlCLFNBQVEseUJBQXlCO2FBQzlELHlCQUFvQixHQUFHLDJCQUEyQixDQUFDO0lBRTFELFlBQ1UsVUFBMEI7UUFFbEMsS0FBSyxDQUNILElBQUksRUFDSjtZQUNFLElBQUksRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1lBQ3ZELFdBQVcsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksRU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GlzdGVuRXZlbnRzKCk7XG4gICAgdGhpcy5saXN0ZW5UeXBlQ2hhbmdlcygpO1xuICB9XG5cbiAgLyoqXG4gICAqIEFkZC9SZW1vdmUgbG9hbiBmb3JtIGRlcGVuZHMgb24gc2VsZWN0ZWQgYmFuayBhY2NvdW50IHR5cGVcbiAgICovXG4gIHByaXZhdGUgbGlzdGVuVHlwZUNoYW5nZXMoKTogdm9pZCB7XG4gICAgdGhpcy5nZXQoJ3R5cGUnKS52YWx1ZUNoYW5nZXMuc3Vic2NyaWJlKCh0eXBlOiBCYW5rQWNjb3VudFR5cGVFbnVtKSA9PiB7XG4gICAgICBpZiAoVFlQRV9MT0FOLmluY2x1ZGVzKHR5cGUpKSB7XG4gICAgICAgIC8vIFNldCBwcmVmaWxsZWQgdGVybSBmb3IgYmFuayBhY2NvdW50IGxvYW5cbiAgICAgICAgdGhpcy5hZGRDb250cm9sKCdsb2FuJywgbmV3IExvYW5Gb3JtKHBsYWluVG9DbGFzcyhMb2FuLCB7IGJhbmtBY2NvdW50OiB0aGlzLm1vZGVsIH0pKSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnJlbW92ZUNvbnRyb2woJ2xvYW4nKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBBdHRhY2ggYmFuayBjb25uZWN0aW9uIHRvIG1hbnVhbCBiYW5rIGFjY291bnRcbiAgICovXG4gIHN1Ym1pdCgpOiBCYW5rQWNjb3VudCB7XG4gICAgcmV0dXJuIHN1cGVyLnN1Ym1pdCh7IGJhbmtDb25uZWN0aW9uOiB0aGlzLmNvbm5lY3Rpb24gfSk7XG4gIH1cbn1cbiJdfQ==
@@ -21,4 +21,4 @@ export class BankAccountImportForm extends BankAccountAllocationForm {
21
21
  this.disable();
22
22
  }
23
23
  }
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LWltcG9ydC5mb3Jt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cblxuICAgIC8vIGJhc2lxIGFjY291bnQgaW1wb3J0IGZvcm0gc2hvdWxkIGJlIGRpc2FibGVkICh1bmNoZWNrZWQpIGJ5IGRlZmF1bHRcbiAgICB0aGlzLmRpc2FibGUoKTtcbiAgfVxufVxuIl19
@@ -1,9 +1,8 @@
1
1
  import { UntypedFormArray, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
2
- import { BankAccountProperty } from '../../../models/bank/bank-account-property';
2
+ import { BankAccountProperty } from '../../../models';
3
3
  import { plainToClass } from 'class-transformer';
4
4
  import { TankTypeEnum } from '../../../db/Enums/tank-type.enum';
5
- import { conditionalValidator } from '../../../validators';
6
- import { fieldsSumValidator } from '../../../validators/fields-sum.validator';
5
+ import { conditionalValidator, fieldsSumValidator } from '../../../validators';
7
6
  /**
8
7
  * Form array with bank account properties
9
8
  * @TODO create AbstractFormArray
@@ -61,4 +60,4 @@ export class BankAccountPropertiesForm extends UntypedFormArray {
61
60
  return currentTotalPercent < 100 ? 100 - currentTotalPercent : 0;
62
61
  }
63
62
  }
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXByb3BlcnRpZXMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQtcHJvcGVydGllcy5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsZ0JBQWdCLEVBQUUsa0JBQWtCLEVBQUUsZ0JBQWdCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDckgsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNENBQTRDLENBQUM7QUFDakYsT0FBTyxFQUFFL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xuXG4gICAgcmV0dXJuIGN1cnJlbnRUb3RhbFBlcmNlbnQgPCAxMDAgPyAxMDAgLSBjdXJyZW50VG90YWxQZXJjZW50IDogMDtcbiAgfVxufVxuIl19
@@ -6,8 +6,9 @@ import { BankAccountBalance } from '../../db/Models';
6
6
  import { FinancialYear } from '../financial-year';
7
7
  import { BankAccountProperty } from './bank-account-property';
8
8
  import { BankConnection } from './bank-connection';
9
- import { Transform, Type } from 'class-transformer';
9
+ import { Type } from 'class-transformer';
10
10
  import { SoleBusinessAllocation } from '../sole';
11
+ import { TYPE_LOAN } from './type-loan.const';
11
12
  export class BankAccount extends BankAccountBase {
12
13
  get bank() {
13
14
  return this.bankConnection.bank;
@@ -51,7 +52,7 @@ export class BankAccount extends BankAccountBase {
51
52
  * check if bank account type is Loan
52
53
  */
53
54
  isLoan() {
54
- return this.type === BankAccountTypeEnum.LOAN;
55
+ return TYPE_LOAN.includes(this.type);
55
56
  }
56
57
  /**
57
58
  * check if bank account type is Credit card
@@ -162,7 +163,4 @@ __decorate([
162
163
  __decorate([
163
164
  Type(() => BankConnection)
164
165
  ], BankAccount.prototype, "bankConnection", void 0);
165
- __decorate([
166
- Transform(({ value }) => value === 4 ? BankAccountTypeEnum.LOAN : value)
167
- ], BankAccount.prototype, "type", void 0);
168
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9iYW5rL2JhbmstYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUscUJBQXFCLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxn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W5kIHRoZSBiYW5rIGJhbGFuY2UgaXMgJDAuXG4gICAqL1xuICBpc0xvYW5QYWlkKHRheFRhbmtCYWxhbmNlOiBudW1iZXIpOiBib29sZWFuIHtcbiAgICBjb25zdCBzaG91bGRQYXlvdXRMb2FuQWNjb3VudDogYm9vbGVhbiA9IHRoaXMuaXNBY3RpdmUoKSAmJiB0aGlzLmlzTG9hbigpICYmIHRheFRhbmtCYWxhbmNlID09PSAwO1xuXG4gICAgLy8gd2UgZG9uJ3QgY2hlY2sgY3VycmVudCBiYWxhbmNlIGZvciBiYXNpcSBhY2NvdW50cywgYmVjYXVzZSBiYXNpcSBkb2Vzbid0IHByb3ZpZGUgdXMgbGFzdCB0cmFuc2FjdGlvbnMgKGNhbid0IGRvIGZvciBjbG9zZWQgYWNjb3VudHMpLFxuICAgIC8vIHRoYXQncyB3aHkgYmFsYW5jZSB3b24ndCBiZSAwICh1cGRhdGVkIGJ5IGJhc2lxKVxuICAgIGlmIChzaG91bGRQYXlvdXRMb2FuQWNjb3VudCAmJiB0aGlzLmlzTWFudWFsKCkpIHtcbiAgICAgIHJldHVybiB0aGlzLmN1cnJlbnRCYWxhbmNlID09PSAwO1xuICAgIH1cblxuICAgIHJldHVybiBzaG91bGRQYXlvdXRMb2FuQWNjb3VudDtcbiAgfVxuXG4gIGlzTWFudWFsKCkge1xuICAgIHJldHVybiAhdGhpcy5hY2NvdW50SWQ7XG4gIH1cbn1cbiJdfQ==
@@ -4,11 +4,10 @@ export * from './bank';
4
4
  export * from './bank-account';
5
5
  export * from './bank-account-chart-data';
6
6
  export * from './bank-account-property';
7
- export * from './bank-account-types.const';
8
7
  export * from './bank-connection';
9
8
  export * from './bank-external-stats';
10
9
  export * from './bank-transaction';
11
10
  export * from './bank-transaction-chart-data';
12
11
  export * from './bank-transaction-summary-fields.enum';
13
12
  export * from './type-loan.const';
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3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O1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rLWNvbm5lY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rLWV4dGVybmFsLXN0YXRzJztcbmV4cG9ydCAqIGZyb20gJy4vYmFuay10cmFuc2FjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2JhbmstdHJhbnNhY3Rpb24tY2hhcnQtZGF0YSc7XG5leHBvcnQgKiBmcm9tICcuL2JhbmstdHJhbnNhY3Rpb24tc3VtbWFyeS1maWVsZHMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGUtbG9hbi5jb25zdCc7XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import get from 'lodash/get';
2
2
  import hasIn from 'lodash/hasIn';
3
3
  /**
4
- * @TODO refactor with Map
4
+ * @TODO refactor with Map or Record
5
5
  * List of objects grouped by passed property
6
6
  */
7
7
  export class Dictionary {
@@ -47,4 +47,4 @@ export class Dictionary {
47
47
  return this.keys.length;
48
48
  }
49
49
  }
50
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvbmFyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvZGljdGlvbmFyeS9kaWN0aW9uYXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBRyxNQUFNLFlBQVksQ0FBQztBQUM3QixPQUFPLEtBQUssTUFBTSxjQUFjLENBQUM7QUFFakM7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLFVBQVU7SUFHckIsWUFBWSxRQUFpQixFQUFFLEVBQUUsSUFBSSxHQUFHLElBQUk7UUFGNUMsVUFBSyxHQUE2QixFQUFFLENBQUM7UUFHbkMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUU7WUFDakI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kaWN0aW9uYXJ5Lml0ZW1zKTtcblxuICAgIHJldHVybiB0aGlzO1xuICB9XG5cbiAgdG9BcnJheSgpOiBNb2RlbFtdIHtcbiAgICByZXR1cm4gT2JqZWN0LnZhbHVlcyh0aGlzLml0ZW1zKTtcbiAgfVxuXG4gIHByaXZhdGUgZ3JvdXBJdGVtcyhpdGVtczogTW9kZWxbXSwgcGF0aDogc3RyaW5nKTogdm9pZCB7XG4gICAgLy8gRG8gbm90aGluZyBpZiBwcm92aWRlZCBwYXRoIHdhcyBub3QgZm91bmQgaW4gdGhlIDFzdCBpdGVtXG4gICAgaWYgKCFoYXNJbihpdGVtc1swXSwgcGF0aC5zcGxpdCgnLicpWzBdKSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGl0ZW1zLmZvckVhY2goKGl0ZW06IE1vZGVsKTogdm9pZCA9PiB7XG4gICAgICBsZXQga2V5OiBzdHJpbmcgPSBnZXQoaXRlbSwgcGF0aCk7XG5cbiAgICAgIC8vIGlmIG9iamVjdCBkb2VzIG5vdCBoYXZlIHByb3BlcnR5IGZvciBncm91cGluZyBpdCB3aWxsIGJlIGdyb3VwZWQgYXMgJ290aGVyJ1xuICAgICAgaWYgKGtleSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGtleSA9ICdvdGhlcic7XG4gICAgICB9XG5cbiAgICAgIHRoaXMuaXRlbXNba2V5XSA9IGl0ZW07XG4gICAgfSk7XG4gIH1cblxuICBnZXQga2V5cygpOiBzdHJpbmdbXSB7XG4gICAgcmV0dXJuIE9iamVjdC5rZXlzKHRoaXMuaXRlbXMpO1xuICB9XG5cbiAgZ2V0IGxlbmd0aCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmtleXMubGVuZ3RoO1xuICB9XG59XG4iXX0=
@@ -52,11 +52,7 @@ export class RestService extends DataService {
52
52
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
53
53
  */
54
54
  this.useBackendError = false;
55
- /**
56
- * messages that can be redefined in other classes to customize httpErrorMessages
57
- */
58
- this.customHttpErrorMessages = {};
59
- this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.customHttpErrorMessages };
55
+ this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.getCustomHttpErrorMessages() };
60
56
  }
61
57
  get apiUrl() {
62
58
  return `${this.environment.apiV2}/${this.endpointUri}`;
@@ -199,6 +195,12 @@ export class RestService extends DataService {
199
195
  }
200
196
  }), catchError((error) => this.handleError(error)));
201
197
  }
198
+ /**
199
+ * method with messages that can be redefined in other classes to customize httpErrorMessages
200
+ */
201
+ getCustomHttpErrorMessages() {
202
+ return {};
203
+ }
202
204
  /**
203
205
  * Handle response errors - shows error in toast
204
206
  * and throws error further
@@ -327,4 +329,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
327
329
  type: Inject,
328
330
  args: ['environment']
329
331
  }] }] });
330
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvcmVzdC9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNELE9BQU8sRUFBYyxhQUFhLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzdELE9BQU8sRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxVQUFVLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxz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ZiAobW9kZWwuaWQpIHtcbiAgICAgICAgICBtZXRob2QgPSB0aGlzLmhhc0luQ2FjaGUobW9kZWwuaWQpID8gJ3B1dCcgOiAncG9zdCc7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgbWV0aG9kID0gJ2RlbGV0ZSc7XG4gICAgICAgICAgLy8gd2UgZ290IGVtcHR5IGJvZHkgd2hlbiBpdGVtIGRlbGV0ZWQsIHNvIHdlIHNob3VsZCBnZXQgaWQgZnJvbSBBcGkgUGxhdGZvcm0gZGF0YSAoQGlkKVxuICAgICAgICAgIG1vZGVsID0gbWVyZ2UobW9kZWwsIHsgaWQ6ICtsYXN0KG1vZGVsWydAaWQnXS5zcGxpdCgnLycpKSB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB7IG1ldGhvZCwgbW9kZWwgfTtcbiAgICAgIH0pXG4gICAgKS5zdWJzY3JpYmUoKGNoYW5nZSkgPT4ge1xuICAgICAgdGhpcy5oYW5kbGVSZXNwb25zZShbY2hhbmdlLm1vZGVsXSwgY2hhbmdlLm1ldGhvZClcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -9,8 +9,10 @@ export class AllocationRuleService extends RestService {
9
9
  this.endpointUri = 'allocation-rules';
10
10
  this.collectionClass = AllocationRuleCollection;
11
11
  this.modelClass = AllocationRule;
12
- // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
13
- this.customHttpErrorMessages = { 422: 'You can only have 10 conditions in a rule' };
12
+ }
13
+ // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
14
+ getCustomHttpErrorMessages() {
15
+ return { 422: 'You can only have 10 conditions in a rule' };
14
16
  }
15
17
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
16
18
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, providedIn: 'root' }); }
@@ -21,4 +23,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
21
23
  providedIn: 'root'
22
24
  }]
23
25
  }] });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1hbGxvY2F0aW9uL2FsbG9jYXRpb24tcnVsZS9hbGxvY2F0aW9uLXJ1bGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFNUMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDOztBQUt0RSxNQUFNLE9BQU8scUJBQXNCLFNBQVEsV0FBeUU7SUFIcEg7O1FBSVksZ0JBQVcsR0FBRyxrQkFBa0IsQ0FBQztRQUMzQyxvQkFBZSxHQUFvQyx3QkFBd0IsQ0FBQztRQUM1RSxlQUFVLEdBQTBCLGNBQWMsQ0FBQztRQUNuRCw0RUFBNEU7UUFDNUUsNEJBQXVCLEdBQUcsRUFBRSxHQUFHLEVBQUUsMkNBQTJDLEVBQUUsQ0FBQztLQUNoRjsrR0FOWSxxQkFBcUI7bUhBQXJCLHFCQUFxQixjQUZwQixNQUFNOzs0RkFFUCxxQkFBcUI7a0JBSGpDLF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Y3VzdG9tSHR0cEVycm9yTWVzc2FnZXMgZml4IGNoYW5nZSB0byBiYWNrZW5kIGVycm9yc1xuICBwcm90ZWN0ZWQgZ2V0Q3VzdG9tSHR0cEVycm9yTWVzc2FnZXMoKTogUmVjb3JkPG51bWJlciwgc3RyaW5nPiB7XG4gICAgcmV0dXJuIHsgNDIyOiAnWW91IGNhbiBvbmx5IGhhdmUgMTAgY29uZGl0aW9ucyBpbiBhIHJ1bGUnIH07XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ export var CorelogicMessagesEnum;
2
+ (function (CorelogicMessagesEnum) {
3
+ CorelogicMessagesEnum["SERVICE_UNAVAILABLE"] = "Corelogic service is temporary unavailable, please try again in a few minutes.";
4
+ })(CorelogicMessagesEnum || (CorelogicMessagesEnum = {}));
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZWxvZ2ljLW1lc3NhZ2VzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2NvcmVsb2dpYy1tZXNzYWdlcy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLHFCQUVYO0FBRkQsV0FBWSxxQkFBcUI7SUFDaEMsK0hBQXNHLENBQUE7QUFDdkcsQ0FBQyxFQUZXLHFCQUFxQixLQUFyQixxQkFBcUIsUUFFaEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBDb3JlbG9naWNNZXNzYWdlc0VudW0ge1xuIFNFUlZJQ0VfVU5BVkFJTEFCTEUgPSAnQ29yZWxvZ2ljIHNlcnZpY2UgaXMgdGVtcG9yYXJ5IHVuYXZhaWxhYmxlLCBwbGVhc2UgdHJ5IGFnYWluIGluIGEgZmV3IG1pbnV0ZXMuJ1xufVxuIl19