taxtank-core 0.33.16 → 0.33.18
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/sole/index.mjs +2 -2
- package/esm2022/src/lib/collections/sole/sole-business-loss.collection.mjs +41 -0
- package/esm2022/src/lib/db/Models/sole/sole-details.mjs +3 -3
- package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +2 -2
- package/esm2022/src/lib/forms/property/property-add.form.mjs +7 -3
- package/esm2022/src/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.mjs +1 -1
- package/esm2022/src/lib/models/event/app-event-type.enum.mjs +15 -17
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +1 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-losses/my-tax-losses.mjs +1 -1
- package/esm2022/src/lib/models/transaction/allocation-rule-transaction.mjs +1 -1
- package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +2 -1
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +1 -1
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -3
- package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +16 -47
- package/esm2022/src/lib/validators/date/max-date.validator.mjs +17 -0
- package/esm2022/src/lib/validators/date/min-date.validator.mjs +17 -0
- package/esm2022/src/lib/validators/index.mjs +3 -2
- package/fesm2022/taxtank-core.mjs +57 -71
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/sole/index.d.ts +1 -1
- package/src/lib/collections/sole/{sole-business-losses.collection.d.ts → sole-business-loss.collection.d.ts} +1 -1
- package/src/lib/db/Models/sole/sole-details.d.ts +2 -2
- package/src/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts +1 -1
- package/src/lib/models/event/app-event-type.enum.d.ts +14 -16
- package/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts +2 -2
- package/src/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +2 -2
- package/src/lib/services/http/bank/basiq/basiq.service.d.ts +1 -0
- package/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts +8 -3
- package/src/lib/services/http/sole/sole-details/sole-details.service.d.ts +12 -13
- package/src/lib/validators/date/max-date.validator.d.ts +5 -0
- package/src/lib/validators/index.d.ts +2 -1
- package/esm2022/src/lib/collections/sole/sole-business-losses.collection.mjs +0 -41
- package/esm2022/src/lib/validators/min-date/messages.enum.mjs +0 -5
- package/esm2022/src/lib/validators/min-date/min-date.validator.mjs +0 -18
- package/src/lib/validators/min-date/messages.enum.d.ts +0 -3
- /package/src/lib/validators/{min-date → date}/min-date.validator.d.ts +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Inject, Injectable } from '@angular/core';
|
2
|
-
import { SoleDepreciationMethod } from '../../../../models';
|
2
|
+
import { SoleDepreciationMethod, SoleDetails } from '../../../../models';
|
3
3
|
import { ReplaySubject } from 'rxjs';
|
4
4
|
import { catchError, map } from 'rxjs/operators';
|
5
5
|
import { plainToClass } from 'class-transformer';
|
@@ -52,7 +52,7 @@ export class SoleDepreciationMethodService {
|
|
52
52
|
}));
|
53
53
|
}
|
54
54
|
listenSoleDetailsChanges() {
|
55
|
-
this.eventDispatcherService.
|
55
|
+
this.eventDispatcherService.on2(...SoleDetails.getEventNames('post', 'put'))
|
56
56
|
.subscribe(() => {
|
57
57
|
this.cache = null;
|
58
58
|
this.get().subscribe();
|
@@ -70,4 +70,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
70
70
|
type: Inject,
|
71
71
|
args: ['environment']
|
72
72
|
}] }, { type: i2.EventDispatcherService }, { type: i3.ToastService }] });
|
73
|
-
//# sourceMappingURL=data:application/json;base64,
|
73
|
+
//# source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gICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICB0aGlzLmNhY2hlID0gbnVsbDtcbiAgICAgICAgdGhpcy5nZXQoKS5zdWJzY3JpYmUoKTtcbiAgICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -1,55 +1,27 @@
|
|
1
|
-
import {
|
1
|
+
import { Injectable } from '@angular/core';
|
2
2
|
import { SoleDetails } from '../../../../models';
|
3
|
-
import {
|
3
|
+
import { RestService } from '../../rest';
|
4
|
+
import { Collection } from '../../../../collections';
|
5
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
4
6
|
import { map } from 'rxjs/operators';
|
5
7
|
import { plainToClass } from 'class-transformer';
|
6
|
-
import { AppEvent, AppEventTypeEnum } from '../../../../models';
|
7
8
|
import * as i0 from "@angular/core";
|
8
|
-
import * as i1 from "@angular/common/http";
|
9
|
-
import * as i2 from "../../../event";
|
10
9
|
/**
|
11
10
|
* @TODO TT-1777 Alex: extend from rest service when it refactored
|
12
11
|
*/
|
13
|
-
export class SoleDetailsService {
|
14
|
-
constructor(
|
15
|
-
|
16
|
-
this.
|
17
|
-
this.
|
18
|
-
this.
|
12
|
+
export class SoleDetailsService extends RestService {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
this.modelClass = SoleDetails;
|
16
|
+
this.collectionClass = Collection;
|
17
|
+
this.endpointUri = 'sole-details';
|
18
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
19
|
+
this.roles = [UserRolesEnum.SOLE_TANK];
|
19
20
|
}
|
20
21
|
get() {
|
21
|
-
|
22
|
-
this.http.get(`${this.environment.apiV2}/sole-details`)
|
23
|
-
.pipe(map((response) => plainToClass(SoleDetails, response[0])))
|
24
|
-
.subscribe((soleDetails) => {
|
25
|
-
// undefined when user not created sole details
|
26
|
-
if (!soleDetails) {
|
27
|
-
soleDetails = plainToClass(SoleDetails, {});
|
28
|
-
}
|
29
|
-
this.cache = soleDetails;
|
30
|
-
this.cacheSubject.next(this.cache);
|
31
|
-
return soleDetails;
|
32
|
-
});
|
33
|
-
}
|
34
|
-
return this.cacheSubject.asObservable();
|
22
|
+
return super.get().pipe(map(soleDetails => soleDetails.length ? soleDetails : new Collection([plainToClass(SoleDetails, {})])));
|
35
23
|
}
|
36
|
-
|
37
|
-
return this.http.post(`${this.environment.apiV2}/sole-details`, soleDetails).pipe(map((soleDetailsBase) => {
|
38
|
-
this.cache = plainToClass(SoleDetails, soleDetailsBase);
|
39
|
-
this.cacheSubject.next(this.cache);
|
40
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DETAILS_CREATED, soleDetails));
|
41
|
-
return this.cache;
|
42
|
-
}));
|
43
|
-
}
|
44
|
-
update(soleDetails) {
|
45
|
-
return this.http.put(`${this.environment.apiV2}/sole-details/${soleDetails.id}`, soleDetails).pipe(map((soleDetailsBase) => {
|
46
|
-
this.cache = plainToClass(SoleDetails, soleDetailsBase);
|
47
|
-
this.cacheSubject.next(this.cache);
|
48
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DETAILS_UPDATED, soleDetails));
|
49
|
-
return this.cache;
|
50
|
-
}));
|
51
|
-
}
|
52
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: i2.EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
53
25
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, providedIn: 'root' }); }
|
54
26
|
}
|
55
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, decorators: [{
|
@@ -57,8 +29,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
57
29
|
args: [{
|
58
30
|
providedIn: 'root'
|
59
31
|
}]
|
60
|
-
}]
|
61
|
-
|
62
|
-
args: ['environment']
|
63
|
-
}] }, { type: i2.EventDispatcherService }] });
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1kZXRhaWxzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9zb2xlL3NvbGUtZGV0YWlscy9zb2xlLWRldGFpbHMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFakQsT0FBTyxFQUFjLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUVqRCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDckMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRWpELE9BQU8sRUFBRSxRQUFRLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7OztBQUVoRTs7R0FFRztBQUlILE1BQU0sT0FBTyxrQkFBa0I7SUFJN0IsWUFDVSxJQUFnQixFQUNTLFdBQWdCLEVBQ3pDLHNCQUE4QztRQUY5QyxTQUFJLEdBQUosSUFBSSxDQUFZO1FBQ1MsZ0JBQVcsR0FBWCxXQUFXLENBQUs7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lci5nZXQoKS5waXBlKG1hcChzb2xlRGV0YWlscyA9PiBzb2xlRGV0YWlscy5sZW5ndGggPyBzb2xlRGV0YWlscyA6IG5ldyBDb2xsZWN0aW9uKFtwbGFpblRvQ2xhc3MoU29sZURldGFpbHMsIHt9KV0pKSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
2
|
+
/**
|
3
|
+
* Validation function, that checks If date form value is more than provided date
|
4
|
+
*/
|
5
|
+
export function maxDateValidator(date, message = `The date should not be after ${new DatePipe('en-US').transform(date)}`) {
|
6
|
+
return (control) => {
|
7
|
+
if (!control.value) {
|
8
|
+
return null;
|
9
|
+
}
|
10
|
+
// form control value can be as a Moment object - we wrap it in "new Date()" to work with it like with JS Date
|
11
|
+
if (new Date(control.value) <= new Date(date)) {
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
return { minDate: message };
|
15
|
+
};
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LWRhdGUudmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3ZhbGlkYXRvcnMvZGF0ZS9tYXgtZGF0ZS52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTNDOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGdCQUFnQixDQUM5QixJQUFVLEVBQ1YsVUFBa0IsZ0NBQWdDLElBQUksUUFBUSxDQUFDLE9BQU8sQ0FBQyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsRUFBRTtJQUV6RixPQUFPLENBQUMsT0FBd0IsRUFBb0IsRUFBRTtRQUNwRCx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21lbnQgb2JqZWN0IC0gd2Ugd3JhcCBpdCBpbiBcIm5ldyBEYXRlKClcIiB0byB3b3JrIHdpdGggaXQgbGlrZSB3aXRoIEpTIERhdGVcbiAgICBpZiAobmV3IERhdGUoY29udHJvbC52YWx1ZSkgPD0gbmV3IERhdGUoZGF0ZSkpIHtcbiAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHJldHVybiB7IG1pbkRhdGU6IG1lc3NhZ2UgfTtcbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
2
|
+
/**
|
3
|
+
* Validation function, that checks If date form value is more than provided date
|
4
|
+
*/
|
5
|
+
export function minDateValidator(date, message = `The date should not be before ${new DatePipe('en-US').transform(date)}`) {
|
6
|
+
return (control) => {
|
7
|
+
if (!control.value) {
|
8
|
+
return null;
|
9
|
+
}
|
10
|
+
// form control value can be as a Moment object - we wrap it in "new Date()" to work with it like with JS Date
|
11
|
+
if (new Date(control.value) >= new Date(date)) {
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
return { minDate: message };
|
15
|
+
};
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWluLWRhdGUudmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3ZhbGlkYXRvcnMvZGF0ZS9taW4tZGF0ZS52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTNDOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGdCQUFnQixDQUM5QixJQUFVLEVBQ1YsVUFBa0IsaUNBQWlDLElBQUksUUFBUSxDQUFDLE9BQU8sQ0FBQy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ICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICAvLyBmb3JtIGNvbnRyb2wgdmFsdWUgY2FuIGJlIGFzIGEgTW9tZW50IG9iamVjdCAtIHdlIHdyYXAgaXQgaW4gXCJuZXcgRGF0ZSgpXCIgdG8gd29yayB3aXRoIGl0IGxpa2Ugd2l0aCBKUyBEYXRlXG4gICAgaWYgKG5ldyBEYXRlKGNvbnRyb2wudmFsdWUpID49IG5ldyBEYXRlKGRhdGUpKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXR1cm4geyBtaW5EYXRlOiBtZXNzYWdlIH07XG4gIH07XG59XG4iXX0=
|
@@ -3,7 +3,8 @@ export * from './autocomplete.validator';
|
|
3
3
|
export * from './conditional.validator';
|
4
4
|
export * from './password.validator';
|
5
5
|
export * from './password-match.validator';
|
6
|
-
export * from './
|
6
|
+
export * from './date/min-date.validator';
|
7
|
+
export * from './date/max-date.validator';
|
7
8
|
export * from './fields-sum.validator';
|
8
9
|
export * from './current-fin-year.validator';
|
9
10
|
export * from './file.validator';
|
@@ -11,4 +12,4 @@ export * from './greater-than.validator';
|
|
11
12
|
export * from './unique-email.validator';
|
12
13
|
export * from './string/alpha-space.validator';
|
13
14
|
export * from './match-sum.validator';
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvdmFsaWRhdG9ycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHNCQUFzQixDQUFDO0FBQ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Bmcm9tICcuL21hdGNoLXN1bS52YWxpZGF0b3InO1xuIl19
|
@@ -695,7 +695,7 @@ let SoleContact$1 = class SoleContact extends AbstractModel {
|
|
695
695
|
let SoleDepreciationMethod$1 = class SoleDepreciationMethod extends AbstractModel {
|
696
696
|
};
|
697
697
|
|
698
|
-
let SoleDetails$1 = class SoleDetails extends
|
698
|
+
let SoleDetails$1 = class SoleDetails extends ObservableModel {
|
699
699
|
};
|
700
700
|
|
701
701
|
let SoleForecast$1 = class SoleForecast extends AbstractModel {
|
@@ -8324,7 +8324,7 @@ class VehicleExpenseCollection extends Collection {
|
|
8324
8324
|
}
|
8325
8325
|
}
|
8326
8326
|
|
8327
|
-
class
|
8327
|
+
class SoleBusinessLossCollection extends Collection {
|
8328
8328
|
/**
|
8329
8329
|
* Business loss applied in current year, includes previous year losses and current year losses for businesses matching offset rule
|
8330
8330
|
*/
|
@@ -10369,22 +10369,20 @@ var AppEventTypeEnum;
|
|
10369
10369
|
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 37] = "PROPERTY_SUBSCRIPTION_DELETED";
|
10370
10370
|
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 38] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
|
10371
10371
|
AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 39] = "SOLE_DEPRECIATION_METHOD_UPDATED";
|
10372
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10373
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10374
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10375
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10376
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10377
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10378
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10379
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10380
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10381
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10382
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10383
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10384
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10385
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
10386
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 54] = "VEHICLE_LOGBOOK_DELETED";
|
10387
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 55] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
10372
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 40] = "SOLE_INVOICE_PUBLISHED";
|
10373
|
+
AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 41] = "TAX_REVIEW_UPDATED";
|
10374
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 42] = "TRANSACTION_ALLOCATION_CREATED";
|
10375
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 43] = "TRANSACTION_ALLOCATION_DELETED";
|
10376
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 44] = "TRANSACTION_CREATED";
|
10377
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 45] = "TRANSACTION_DELETED";
|
10378
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 46] = "TRANSACTION_UPDATED";
|
10379
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 47] = "TRANSACTIONS_CREATED";
|
10380
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 48] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
10381
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 49] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
10382
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 50] = "VEHICLE_LOGBOOK_CREATED";
|
10383
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 51] = "VEHICLE_LOGBOOK_UPDATED";
|
10384
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 52] = "VEHICLE_LOGBOOK_DELETED";
|
10385
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 53] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
10388
10386
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
10389
10387
|
|
10390
10388
|
/**
|
@@ -11709,6 +11707,7 @@ class BasiqService extends RestService$1 {
|
|
11709
11707
|
.pipe(map((response) => plainToClass(BasiqJobResponse, response)));
|
11710
11708
|
}
|
11711
11709
|
/**
|
11710
|
+
* @TODO not used, remove?
|
11712
11711
|
* Recoursive method, watch basiq job retrieve accounts status
|
11713
11712
|
* @param jobId id of basiq job to check
|
11714
11713
|
* @returns observable boolean. True - accounts retrieved, false - accounts not retrieved (time is out)
|
@@ -14053,12 +14052,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
14053
14052
|
}]
|
14054
14053
|
}] });
|
14055
14054
|
|
14056
|
-
class SoleBusinessLossService extends RestService {
|
14055
|
+
class SoleBusinessLossService extends RestService$1 {
|
14057
14056
|
constructor(environment) {
|
14058
14057
|
super(environment);
|
14059
14058
|
this.environment = environment;
|
14060
14059
|
this.modelClass = SoleBusinessLoss;
|
14061
|
-
this.
|
14060
|
+
this.collectionClass = SoleBusinessLossCollection;
|
14061
|
+
this.endpointUri = 'sole-business-losses';
|
14062
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
14063
|
+
this.roles = [UserRolesEnum.SOLE_TANK];
|
14062
14064
|
this.listenEvents();
|
14063
14065
|
}
|
14064
14066
|
listenEvents() {
|
@@ -14163,7 +14165,7 @@ class SoleDepreciationMethodService {
|
|
14163
14165
|
}));
|
14164
14166
|
}
|
14165
14167
|
listenSoleDetailsChanges() {
|
14166
|
-
this.eventDispatcherService.
|
14168
|
+
this.eventDispatcherService.on2(...SoleDetails.getEventNames('post', 'put'))
|
14167
14169
|
.subscribe(() => {
|
14168
14170
|
this.cache = null;
|
14169
14171
|
this.get().subscribe();
|
@@ -14185,46 +14187,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
14185
14187
|
/**
|
14186
14188
|
* @TODO TT-1777 Alex: extend from rest service when it refactored
|
14187
14189
|
*/
|
14188
|
-
class SoleDetailsService {
|
14189
|
-
constructor(
|
14190
|
-
|
14191
|
-
this.
|
14192
|
-
this.
|
14193
|
-
this.
|
14190
|
+
class SoleDetailsService extends RestService$1 {
|
14191
|
+
constructor() {
|
14192
|
+
super(...arguments);
|
14193
|
+
this.modelClass = SoleDetails;
|
14194
|
+
this.collectionClass = Collection;
|
14195
|
+
this.endpointUri = 'sole-details';
|
14196
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
14197
|
+
this.roles = [UserRolesEnum.SOLE_TANK];
|
14194
14198
|
}
|
14195
14199
|
get() {
|
14196
|
-
|
14197
|
-
this.http.get(`${this.environment.apiV2}/sole-details`)
|
14198
|
-
.pipe(map((response) => plainToClass(SoleDetails, response[0])))
|
14199
|
-
.subscribe((soleDetails) => {
|
14200
|
-
// undefined when user not created sole details
|
14201
|
-
if (!soleDetails) {
|
14202
|
-
soleDetails = plainToClass(SoleDetails, {});
|
14203
|
-
}
|
14204
|
-
this.cache = soleDetails;
|
14205
|
-
this.cacheSubject.next(this.cache);
|
14206
|
-
return soleDetails;
|
14207
|
-
});
|
14208
|
-
}
|
14209
|
-
return this.cacheSubject.asObservable();
|
14210
|
-
}
|
14211
|
-
add(soleDetails) {
|
14212
|
-
return this.http.post(`${this.environment.apiV2}/sole-details`, soleDetails).pipe(map((soleDetailsBase) => {
|
14213
|
-
this.cache = plainToClass(SoleDetails, soleDetailsBase);
|
14214
|
-
this.cacheSubject.next(this.cache);
|
14215
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DETAILS_CREATED, soleDetails));
|
14216
|
-
return this.cache;
|
14217
|
-
}));
|
14218
|
-
}
|
14219
|
-
update(soleDetails) {
|
14220
|
-
return this.http.put(`${this.environment.apiV2}/sole-details/${soleDetails.id}`, soleDetails).pipe(map((soleDetailsBase) => {
|
14221
|
-
this.cache = plainToClass(SoleDetails, soleDetailsBase);
|
14222
|
-
this.cacheSubject.next(this.cache);
|
14223
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DETAILS_UPDATED, soleDetails));
|
14224
|
-
return this.cache;
|
14225
|
-
}));
|
14200
|
+
return super.get().pipe(map(soleDetails => soleDetails.length ? soleDetails : new Collection([plainToClass(SoleDetails, {})])));
|
14226
14201
|
}
|
14227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, deps:
|
14202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
14228
14203
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, providedIn: 'root' }); }
|
14229
14204
|
}
|
14230
14205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SoleDetailsService, decorators: [{
|
@@ -14232,10 +14207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
14232
14207
|
args: [{
|
14233
14208
|
providedIn: 'root'
|
14234
14209
|
}]
|
14235
|
-
}]
|
14236
|
-
type: Inject,
|
14237
|
-
args: ['environment']
|
14238
|
-
}] }, { type: EventDispatcherService }] });
|
14210
|
+
}] });
|
14239
14211
|
|
14240
14212
|
class SoleInvoiceService extends RestService$1 {
|
14241
14213
|
constructor(environment) {
|
@@ -20939,15 +20911,10 @@ function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
20939
20911
|
};
|
20940
20912
|
}
|
20941
20913
|
|
20942
|
-
var MessagesEnum$2;
|
20943
|
-
(function (MessagesEnum) {
|
20944
|
-
MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
|
20945
|
-
})(MessagesEnum$2 || (MessagesEnum$2 = {}));
|
20946
|
-
|
20947
20914
|
/**
|
20948
20915
|
* Validation function, that checks If date form value is more than provided date
|
20949
20916
|
*/
|
20950
|
-
function minDateValidator(date, message =
|
20917
|
+
function minDateValidator(date, message = `The date should not be before ${new DatePipe('en-US').transform(date)}`) {
|
20951
20918
|
return (control) => {
|
20952
20919
|
if (!control.value) {
|
20953
20920
|
return null;
|
@@ -20960,6 +20927,22 @@ function minDateValidator(date, message = MessagesEnum$2.INVALID_DATE.replace('$
|
|
20960
20927
|
};
|
20961
20928
|
}
|
20962
20929
|
|
20930
|
+
/**
|
20931
|
+
* Validation function, that checks If date form value is more than provided date
|
20932
|
+
*/
|
20933
|
+
function maxDateValidator(date, message = `The date should not be after ${new DatePipe('en-US').transform(date)}`) {
|
20934
|
+
return (control) => {
|
20935
|
+
if (!control.value) {
|
20936
|
+
return null;
|
20937
|
+
}
|
20938
|
+
// form control value can be as a Moment object - we wrap it in "new Date()" to work with it like with JS Date
|
20939
|
+
if (new Date(control.value) <= new Date(date)) {
|
20940
|
+
return null;
|
20941
|
+
}
|
20942
|
+
return { minDate: message };
|
20943
|
+
};
|
20944
|
+
}
|
20945
|
+
|
20963
20946
|
/**
|
20964
20947
|
* Validator that check if sum amount of provided fields is greater than provided sum
|
20965
20948
|
* @param field to check in each formArray element
|
@@ -22370,7 +22353,10 @@ class PropertyAddForm extends AbstractForm {
|
|
22370
22353
|
super({
|
22371
22354
|
address: new UntypedFormControl(null, Validators.required),
|
22372
22355
|
purchasePrice: new UntypedFormControl(null, Validators.required),
|
22373
|
-
contractDate: new UntypedFormControl(null,
|
22356
|
+
contractDate: new UntypedFormControl(null, [
|
22357
|
+
Validators.required,
|
22358
|
+
maxDateValidator(new FinancialYear().endDate, 'You cannot add a property with a contract date in future financial years.')
|
22359
|
+
]),
|
22374
22360
|
settlementDate: new UntypedFormControl(null, Validators.required),
|
22375
22361
|
forecasts: new UntypedFormArray([
|
22376
22362
|
new PropertyForecastForm()
|
@@ -24076,7 +24062,7 @@ class HoldingReinvestForm extends AbstractForm {
|
|
24076
24062
|
return super.submit({
|
24077
24063
|
transaction: this.transactionForm.submit({
|
24078
24064
|
type: TransactionTypeEnum.CREDIT,
|
24079
|
-
description: `Reinvestment - ${value.incomeSource
|
24065
|
+
description: `Reinvestment - ${value.incomeSource?.name}`,
|
24080
24066
|
amount: value.amount - this.get('cashVariance').value
|
24081
24067
|
}),
|
24082
24068
|
holding: this.holdingForm.submit()
|
@@ -24224,5 +24210,5 @@ var MessagesEnum;
|
|
24224
24210
|
* Generated bundle index. Do not edit.
|
24225
24211
|
*/
|
24226
24212
|
|
24227
|
-
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, 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, ChartAccountsInvoiceEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsUnallocatableListEnum, ChartAccountsValue, 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, 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, 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, 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, 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, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, 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, 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, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, toArray };
|
24213
|
+
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, 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, ChartAccountsInvoiceEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMessagesEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsPropertyAdjustmentsListEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsUnallocatableListEnum, ChartAccountsValue, 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, 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, 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, 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, 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, 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, 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 };
|
24228
24214
|
//# sourceMappingURL=taxtank-core.mjs.map
|