taxtank-core 0.33.58 → 0.33.59
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +3 -4
- package/esm2022/src/lib/forms/bank/bank-account/bank-account-import.form.mjs +1 -1
- package/esm2022/src/lib/models/bank/bank-account.mjs +4 -6
- package/esm2022/src/lib/models/bank/index.mjs +1 -2
- package/esm2022/src/lib/models/dictionary/dictionary.mjs +2 -2
- package/esm2022/src/lib/services/property/corelogic/corelogic-messages.enum.mjs +5 -0
- package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +13 -7
- package/esm2022/src/lib/services/property/corelogic/index.mjs +2 -1
- package/fesm2022/taxtank-core.mjs +95 -102
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +2 -3
- package/src/lib/models/bank/bank-account.d.ts +0 -2
- package/src/lib/models/bank/index.d.ts +0 -1
- package/src/lib/models/dictionary/dictionary.d.ts +1 -1
- package/src/lib/services/property/corelogic/corelogic-messages.enum.d.ts +3 -0
- package/src/lib/services/property/corelogic/corelogic.service.d.ts +3 -1
- package/src/lib/services/property/corelogic/index.d.ts +1 -0
- package/esm2022/src/lib/models/bank/bank-account-types.const.mjs +0 -14
- package/src/lib/models/bank/bank-account-types.const.d.ts +0 -7
@@ -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
|
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,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LWFkZC1tYW51YWwuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQtYWRkLW1hbnVhbC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBK0IsSUFBSSxFQUFFLFNBQVMsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9FLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRXRDLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUlqRDs7R0FFRztBQUNILE1BQU0sT0FBTyx3QkFBeUIsU0FBUSx5QkFBeUI7YUFDOUQseUJBQW9CLEdBQUcsMkJ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jb3VudFR5cGVFbnVtKSA9PiB7XG4gICAgICBpZiAoVFlQRV9MT0FOLmluY2x1ZGVzKHR5cGUpKSB7XG4gICAgICAgIC8vIFNldCBwcmVmaWxsZWQgdGVybSBmb3IgYmFuayBhY2NvdW50IGxvYW5cbiAgICAgICAgdGhpcy5hZGRDb250cm9sKCdsb2FuJywgbmV3IExvYW5Gb3JtKHBsYWluVG9DbGFzcyhMb2FuLCB7IGJhbmtBY2NvdW50OiB0aGlzLm1vZGVsIH0pKSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnJlbW92ZUNvbnRyb2woJ2xvYW4nKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBBdHRhY2ggYmFuayBjb25uZWN0aW9uIHRvIG1hbnVhbCBiYW5rIGFjY291bnRcbiAgICovXG4gIHN1Ym1pdCgpOiBCYW5rQWNjb3VudCB7XG4gICAgcmV0dXJuIHN1cGVyLnN1Ym1pdCh7IGJhbmtDb25uZWN0aW9uOiB0aGlzLmNvbm5lY3Rpb24gfSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -21,4 +21,4 @@ export class BankAccountImportForm extends BankAccountAllocationForm {
|
|
21
21
|
this.disable();
|
22
22
|
}
|
23
23
|
}
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LWltcG9ydC5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2JhbmsvYmFuay1hY2NvdW50L2JhbmstYWNjb3VudC1pbXBvcnQuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQU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uJywgbmV3IExvYW5Gb3JtKGxvYW4pKTtcbiAgICB9XG5cbiAgICAvLyBkb24ndCBwcmVzZWxlY3QgdGFuayB0eXBlIGJ5IGRlZmF1bHRcbiAgICB0aGlzLmdldCgndGFua1R5cGUnKS5zZXRWYWx1ZShudWxsKTtcblxuICAgIC8vIGJhc2lxIGFjY291bnQgaW1wb3J0IGZvcm0gc2hvdWxkIGJlIGRpc2FibGVkICh1bmNoZWNrZWQpIGJ5IGRlZmF1bHRcbiAgICB0aGlzLmRpc2FibGUoKTtcbiAgfVxufVxuIl19
|
@@ -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 {
|
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
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4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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,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2JhbmsvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUM7QUFFeEIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFzaXEnO1xuXG5leHBvcnQgKiBmcm9tICcuL2FsbG9jYXRpb24tZ3JvdXAnO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rJztcbmV4cG9ydCAqIGZyb20gJy4vYmFuay1hY2NvdW50JztcbmV4cG9ydCAqIGZyb20gJy4vYmFuay1hY2NvdW50LWNoYXJ0LWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rLWFjY291bnQtcHJvcGVydHknO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rLWNvbm5lY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9iYW5rLWV4dGVybmFsLXN0YXRzJztcbmV4cG9ydCAqIGZyb20gJy4vYmFuay10cmFuc2FjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2JhbmstdHJhbnNhY3Rpb24tY2hhcnQtZGF0YSc7XG5leHBvcnQgKiBmcm9tICcuL2JhbmstdHJhbnNhY3Rpb24tc3VtbWFyeS1maWVsZHMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGUtbG9hbi5jb25zdCc7XG4iXX0=
|
@@ -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,
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvbmFyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvZGljdGlvbmFyeS9kaWN0aW9uYXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBRyxNQUFNLFlBQVksQ0FBQztBQUM3QixPQUFPLEtBQUssTUFBTSxjQUFjLENBQUM7QUFFakM7OztHQUdHO0FBQ0gs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Byb3BlcnR5IGZvciBncm91cGluZyBpdCB3aWxsIGJlIGdyb3VwZWQgYXMgJ290aGVyJ1xuICAgICAgaWYgKGtleSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGtleSA9ICdvdGhlcic7XG4gICAgICB9XG5cbiAgICAgIHRoaXMuaXRlbXNba2V5XSA9IGl0ZW07XG4gICAgfSk7XG4gIH1cblxuICBnZXQga2V5cygpOiBzdHJpbmdbXSB7XG4gICAgcmV0dXJuIE9iamVjdC5rZXlzKHRoaXMuaXRlbXMpO1xuICB9XG5cbiAgZ2V0IGxlbmd0aCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmtleXMubGVuZ3RoO1xuICB9XG59XG4iXX0=
|
@@ -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
|
@@ -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,
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZWxvZ2ljLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2NvcmVsb2dpYy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQU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U2VydmljZS5lcnJvcihDb3JlbG9naWNNZXNzYWdlc0VudW0uU0VSVklDRV9VTkFWQUlMQUJMRSk7XG4gICAgICAgICAgcmV0dXJuIHRocm93RXJyb3IoKCkgPT4gZXJyb3IpXG4gICAgICAgIH0pXG4gICAgICApO1xuICB9XG59XG4iXX0=
|
@@ -1,2 +1,3 @@
|
|
1
1
|
export * from './corelogic.service';
|
2
|
-
|
2
|
+
export * from './corelogic-messages.enum';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvcHJvcGVydHkvY29yZWxvZ2ljL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29yZWxvZ2ljLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlbG9naWMtbWVzc2FnZXMuZW51bSc7XG4iXX0=
|
@@ -4,8 +4,8 @@ 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
6
|
import { HttpParams, HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
7
|
-
import { map, mergeMap, filter,
|
8
|
-
import { ReplaySubject, Subject, Observable,
|
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';
|
@@ -9746,6 +9746,11 @@ __decorate([
|
|
9746
9746
|
Type(() => Date)
|
9747
9747
|
], BankConnection.prototype, "expiryDate", void 0);
|
9748
9748
|
|
9749
|
+
const TYPE_LOAN = [
|
9750
|
+
BankAccountTypeEnum.MORTGAGE,
|
9751
|
+
BankAccountTypeEnum.LOAN
|
9752
|
+
];
|
9753
|
+
|
9749
9754
|
class BankAccount extends BankAccount$1 {
|
9750
9755
|
get bank() {
|
9751
9756
|
return this.bankConnection.bank;
|
@@ -9789,7 +9794,7 @@ class BankAccount extends BankAccount$1 {
|
|
9789
9794
|
* check if bank account type is Loan
|
9790
9795
|
*/
|
9791
9796
|
isLoan() {
|
9792
|
-
return this.type
|
9797
|
+
return TYPE_LOAN.includes(this.type);
|
9793
9798
|
}
|
9794
9799
|
/**
|
9795
9800
|
* check if bank account type is Credit card
|
@@ -9900,9 +9905,6 @@ __decorate([
|
|
9900
9905
|
__decorate([
|
9901
9906
|
Type(() => BankConnection)
|
9902
9907
|
], BankAccount.prototype, "bankConnection", void 0);
|
9903
|
-
__decorate([
|
9904
|
-
Transform(({ value }) => value === 4 ? BankAccountTypeEnum.LOAN : value)
|
9905
|
-
], BankAccount.prototype, "type", void 0);
|
9906
9908
|
|
9907
9909
|
/**
|
9908
9910
|
* bank account collection UI class with frontend specific data
|
@@ -9934,19 +9936,6 @@ class BankAccountChartData {
|
|
9934
9936
|
}
|
9935
9937
|
}
|
9936
9938
|
|
9937
|
-
/**
|
9938
|
-
* Const which contains array of bank account types
|
9939
|
-
*/
|
9940
|
-
const BANK_ACCOUNT_TYPES = [
|
9941
|
-
{ key: BankAccountTypeEnum.CREDIT_CARD, value: 'Credit Card Accounts' },
|
9942
|
-
{ key: BankAccountTypeEnum.TERM_DEPOSIT, value: 'Deposit Accounts' },
|
9943
|
-
{ key: BankAccountTypeEnum.INVESTMENT, value: 'Investment Accounts' },
|
9944
|
-
{ key: BankAccountTypeEnum.LOAN, value: 'Loan Accounts' },
|
9945
|
-
{ key: BankAccountTypeEnum.OFFSET, value: 'Offset' },
|
9946
|
-
{ key: BankAccountTypeEnum.SAVINGS, value: 'Savings Accounts' },
|
9947
|
-
{ key: BankAccountTypeEnum.TRANSACTION, value: 'Transaction Accounts' },
|
9948
|
-
];
|
9949
|
-
|
9950
9939
|
class BankTransaction extends BankTransaction$1 {
|
9951
9940
|
constructor() {
|
9952
9941
|
super(...arguments);
|
@@ -10119,11 +10108,6 @@ var BankTransactionSummaryFieldsEnum;
|
|
10119
10108
|
BankTransactionSummaryFieldsEnum["ALLOCATED_AMOUNT"] = "allocatedAmount";
|
10120
10109
|
})(BankTransactionSummaryFieldsEnum || (BankTransactionSummaryFieldsEnum = {}));
|
10121
10110
|
|
10122
|
-
const TYPE_LOAN = [
|
10123
|
-
BankAccountTypeEnum.MORTGAGE,
|
10124
|
-
BankAccountTypeEnum.LOAN
|
10125
|
-
];
|
10126
|
-
|
10127
10111
|
class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
|
10128
10112
|
}
|
10129
10113
|
|
@@ -10237,7 +10221,7 @@ __decorate([
|
|
10237
10221
|
], Message.prototype, "documents", void 0);
|
10238
10222
|
|
10239
10223
|
/**
|
10240
|
-
* @TODO refactor with Map
|
10224
|
+
* @TODO refactor with Map or Record
|
10241
10225
|
* List of objects grouped by passed property
|
10242
10226
|
*/
|
10243
10227
|
class Dictionary {
|
@@ -10775,9 +10759,86 @@ __decorate([
|
|
10775
10759
|
Type(() => SoleBusiness)
|
10776
10760
|
], HomeOfficeLog.prototype, "business", void 0);
|
10777
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
|
+
|
10778
10838
|
class CorelogicService {
|
10779
|
-
constructor(http, environment) {
|
10839
|
+
constructor(http, toastService, environment) {
|
10780
10840
|
this.http = http;
|
10841
|
+
this.toastService = toastService;
|
10781
10842
|
this.environment = environment;
|
10782
10843
|
this.accessTokenSubject = new ReplaySubject(1);
|
10783
10844
|
}
|
@@ -10795,9 +10856,12 @@ class CorelogicService {
|
|
10795
10856
|
getSuggestions(query, country = 'au') {
|
10796
10857
|
// @TODO handle different countries in future
|
10797
10858
|
return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
|
10798
|
-
.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
|
+
}));
|
10799
10863
|
}
|
10800
|
-
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 }); }
|
10801
10865
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, providedIn: 'root' }); }
|
10802
10866
|
}
|
10803
10867
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CorelogicService, decorators: [{
|
@@ -10805,7 +10869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
10805
10869
|
args: [{
|
10806
10870
|
providedIn: 'root'
|
10807
10871
|
}]
|
10808
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
10872
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: ToastService }, { type: undefined, decorators: [{
|
10809
10873
|
type: Inject,
|
10810
10874
|
args: ['environment']
|
10811
10875
|
}] }] });
|
@@ -11110,77 +11174,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
11110
11174
|
}]
|
11111
11175
|
}] });
|
11112
11176
|
|
11113
|
-
/**
|
11114
|
-
* Common toast message class
|
11115
|
-
*/
|
11116
|
-
class Toast {
|
11117
|
-
constructor() {
|
11118
|
-
this.duration = 3000;
|
11119
|
-
this.autoClose = true;
|
11120
|
-
}
|
11121
|
-
}
|
11122
|
-
|
11123
|
-
var ToastTypeEnum;
|
11124
|
-
(function (ToastTypeEnum) {
|
11125
|
-
ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
|
11126
|
-
ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
|
11127
|
-
ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
|
11128
|
-
ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
|
11129
|
-
})(ToastTypeEnum || (ToastTypeEnum = {}));
|
11130
|
-
|
11131
|
-
/**
|
11132
|
-
* popup notifications service (toast, snackbar).
|
11133
|
-
*/
|
11134
|
-
class ToastService {
|
11135
|
-
constructor() {
|
11136
|
-
this.toast$ = new ReplaySubject(1);
|
11137
|
-
}
|
11138
|
-
get() {
|
11139
|
-
return this.toast$.asObservable();
|
11140
|
-
}
|
11141
|
-
add(toast) {
|
11142
|
-
// set date to prevent closing of equal toasts (extra case)
|
11143
|
-
toast.date = new Date(),
|
11144
|
-
this.toast$.next(toast);
|
11145
|
-
}
|
11146
|
-
success(message) {
|
11147
|
-
this.add(plainToClass(Toast, {
|
11148
|
-
type: ToastTypeEnum.SUCCESS,
|
11149
|
-
title: 'Success!',
|
11150
|
-
message,
|
11151
|
-
}));
|
11152
|
-
}
|
11153
|
-
warning(message) {
|
11154
|
-
this.add(plainToClass(Toast, {
|
11155
|
-
type: ToastTypeEnum.WARNING,
|
11156
|
-
title: 'Notification!',
|
11157
|
-
message,
|
11158
|
-
}));
|
11159
|
-
}
|
11160
|
-
error(message) {
|
11161
|
-
this.add(plainToClass(Toast, {
|
11162
|
-
type: ToastTypeEnum.ERROR,
|
11163
|
-
title: 'Error!',
|
11164
|
-
message,
|
11165
|
-
}));
|
11166
|
-
}
|
11167
|
-
info(message) {
|
11168
|
-
this.add(plainToClass(Toast, {
|
11169
|
-
type: ToastTypeEnum.INFO,
|
11170
|
-
title: 'Information',
|
11171
|
-
message,
|
11172
|
-
}));
|
11173
|
-
}
|
11174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
11175
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, providedIn: 'root' }); }
|
11176
|
-
}
|
11177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToastService, decorators: [{
|
11178
|
-
type: Injectable,
|
11179
|
-
args: [{
|
11180
|
-
providedIn: 'root'
|
11181
|
-
}]
|
11182
|
-
}] });
|
11183
|
-
|
11184
11177
|
const HTTP_ERROR_MESSAGES = {
|
11185
11178
|
400: 'Bad Request – The request was invalid. Please check your data.',
|
11186
11179
|
401: 'Unauthorized – Authentication is required. Please log in.',
|
@@ -22199,7 +22192,7 @@ class BankAccountAddManualForm extends BankAccountAllocationForm {
|
|
22199
22192
|
*/
|
22200
22193
|
listenTypeChanges() {
|
22201
22194
|
this.get('type').valueChanges.subscribe((type) => {
|
22202
|
-
if (type
|
22195
|
+
if (TYPE_LOAN.includes(type)) {
|
22203
22196
|
// Set prefilled term for bank account loan
|
22204
22197
|
this.addControl('loan', new LoanForm(plainToClass(Loan, { bankAccount: this.model })));
|
22205
22198
|
}
|
@@ -24730,5 +24723,5 @@ var MessagesEnum;
|
|
24730
24723
|
* Generated bundle index. Do not edit.
|
24731
24724
|
*/
|
24732
24725
|
|
24733
|
-
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, 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 };
|
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 };
|
24734
24727
|
//# sourceMappingURL=taxtank-core.mjs.map
|