taxtank-core 0.33.33 → 0.33.35
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/public-api.mjs +6 -5
- package/esm2022/src/lib/collections/sole/sole-invoice-item.collection.mjs +1 -1
- package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +11 -1
- package/esm2022/src/lib/db/Enums/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/sole/index.mjs +6 -0
- package/esm2022/src/lib/db/Enums/sole/sole-depreciation-method.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-state.enum.mjs +10 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-statuses.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-tax-type.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/{sole-invoice-template-tax-type.enum.mjs → sole/sole-invoice-template-tax-type.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/user-event-type-type.enum.mjs +2 -1
- package/esm2022/src/lib/db/Models/abstract-model.mjs +4 -1
- package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-depreciation-method.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-invoice-template.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-invoice.mjs +1 -1
- package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +2 -2
- package/esm2022/src/lib/models/chart/chart-data.mjs +1 -1
- package/esm2022/src/lib/models/sole/sole-depreciation-method.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice-template.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +2 -3
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +11 -2
- package/esm2022/src/lib/services/http/index.mjs +1 -2
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +2 -1
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +1 -1
- package/esm2022/src/lib/services/http/user/user-messages.enum.mjs +3 -1
- package/esm2022/src/lib/services/http/user/user.service.mjs +15 -2
- package/fesm2022/taxtank-core.mjs +73 -49
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +5 -4
- package/src/lib/collections/sole/sole-invoice-item.collection.d.ts +1 -1
- package/src/lib/collections/sole/sole-invoice.collection.d.ts +2 -0
- package/src/lib/db/Enums/index.d.ts +1 -0
- package/src/lib/db/Enums/sole/index.d.ts +5 -0
- package/src/lib/db/Enums/sole/sole-invoice-state.enum.d.ts +8 -0
- package/src/lib/db/Enums/user-event-type-type.enum.d.ts +2 -1
- package/src/lib/db/Models/abstract-model.d.ts +1 -0
- package/src/lib/db/Models/client/client-details.d.ts +2 -1
- package/src/lib/db/Models/sole/sole-depreciation-method.d.ts +1 -1
- package/src/lib/db/Models/sole/sole-invoice-template.d.ts +1 -1
- package/src/lib/db/Models/sole/sole-invoice.d.ts +1 -2
- package/src/lib/models/sole/sole-invoice-item.d.ts +1 -1
- package/src/lib/models/sole/sole-invoice-template.d.ts +1 -1
- package/src/lib/models/sole/sole-invoice.d.ts +1 -2
- package/src/lib/services/http/holding/holding.service.d.ts +1 -0
- package/src/lib/services/http/index.d.ts +0 -1
- package/src/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +1 -1
- package/src/lib/services/http/user/user-messages.enum.d.ts +3 -1
- package/src/lib/services/http/user/user.service.d.ts +1 -0
- package/esm2022/src/lib/db/Enums/sole-depreciation-method.enum.mjs +0 -6
- package/esm2022/src/lib/db/Enums/sole-invoice-statuses.enum.mjs +0 -7
- package/esm2022/src/lib/db/Enums/sole-invoice-tax-type.enum.mjs +0 -7
- package/esm2022/src/lib/services/http/sharesight/sharesight.service.mjs +0 -24
- package/src/lib/services/http/sharesight/sharesight.service.d.ts +0 -11
- /package/src/lib/db/Enums/{sole-depreciation-method.enum.d.ts → sole/sole-depreciation-method.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-statuses.enum.d.ts → sole/sole-invoice-statuses.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-tax-type.enum.d.ts → sole/sole-invoice-tax-type.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-template-tax-type.enum.d.ts → sole/sole-invoice-template-tax-type.enum.d.ts} +0 -0
@@ -5,9 +5,8 @@ import { SoleBusiness } from './sole-business';
|
|
5
5
|
import { SoleInvoiceItem } from './sole-invoice-item';
|
6
6
|
import { SoleContact } from './sole-contact';
|
7
7
|
import { Type, plainToClass } from 'class-transformer';
|
8
|
-
import { SoleInvoiceStatusesEnum } from '../../db/Enums
|
8
|
+
import { SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
9
9
|
import { BankAccount } from '../bank';
|
10
|
-
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums/sole-invoice-tax-type.enum';
|
11
10
|
import { SoleInvoiceItemCollection } from '../../collections';
|
12
11
|
import { Transaction, TransactionAllocation } from '../transaction';
|
13
12
|
export class SoleInvoice extends SoleInvoiceBase {
|
@@ -140,4 +139,4 @@ __decorate([
|
|
140
139
|
__decorate([
|
141
140
|
Type(() => BankAccount)
|
142
141
|
], SoleInvoice.prototype, "bankAccount", void 0);
|
143
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9zb2xlL3NvbGUtaW52b2ljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUsSUFBSSxFQUFF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AgICByZXR1cm4gdGhpcy5pdGVtcy5tYXAoKGl0ZW06IFNvbGVJbnZvaWNlSXRlbSkgPT4ge1xuICAgICAgY29uc3QgdHJhbnNhY3Rpb24gPSBwbGFpblRvQ2xhc3MoVHJhbnNhY3Rpb24sIGl0ZW0udG9UcmFuc2FjdGlvbigpKTtcbiAgICAgIHRyYW5zYWN0aW9uLmRhdGUgPSBkYXRlO1xuICAgICAgdHJhbnNhY3Rpb24uYW1vdW50ID0gaXRlbS5nZXRUb3RhbFByaWNlKHRoaXMudGF4VHlwZSkgKiBhbGxvY2F0aW9uQ29lZmZpY2llbnQ7XG5cbiAgICAgIHJldHVybiB0cmFuc2FjdGlvbjtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Inject, Injectable } from '@angular/core';
|
2
|
-
import { Holding, HoldingSale } from '../../../models';
|
2
|
+
import { AppEventTypeEnum, Holding, HoldingSale } from '../../../models';
|
3
3
|
import { RestService } from '../rest';
|
4
4
|
import { HoldingCollection } from '../../../collections';
|
5
5
|
import { UserRolesEnum } from 'taxtank-core/common';
|
6
6
|
import { HoldingImport } from '../../../models';
|
7
|
+
import { UserEventTypeTypeEnum } from '../../../db/Enums/user-event-type-type.enum';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
export class HoldingService extends RestService {
|
9
10
|
constructor(environment) {
|
@@ -15,11 +16,19 @@ export class HoldingService extends RestService {
|
|
15
16
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
16
17
|
this.roles = [UserRolesEnum.HOLDING_TANK];
|
17
18
|
this.listenEvents();
|
19
|
+
this.listenNotifications();
|
18
20
|
}
|
19
21
|
listenEvents() {
|
20
22
|
this.listenCSE(HoldingSale, this.refreshCache, ['post', 'put', 'delete']);
|
21
23
|
this.listenCSE(HoldingImport, this.refreshCache, ['post', 'put', 'delete']);
|
22
24
|
}
|
25
|
+
listenNotifications() {
|
26
|
+
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
27
|
+
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.SHARESIGHT_IMPORT) {
|
28
|
+
this.refreshCache();
|
29
|
+
}
|
30
|
+
});
|
31
|
+
}
|
23
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
33
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingService, providedIn: 'root' }); }
|
25
34
|
}
|
@@ -32,4 +41,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
32
41
|
type: Inject,
|
33
42
|
args: ['environment']
|
34
43
|
}] }] });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvaG9sZGluZy9ob2xkaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFbkQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE9BQU8sRUFBRSxXQUFXLEVBQWdCLE1BQU0saUJBQWlCLENBQUM7QUFDdkYsT0FBTyxFQUFjLFdBQVcsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNsRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV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gIHRoaXMubGlzdGVuQ1NFKEhvbGRpbmdJbXBvcnQsIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnLCAncHV0JywgJ2RlbGV0ZSddKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdGVuTm90aWZpY2F0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50RGlzcGF0Y2hlclNlcnZpY2Uub24oQXBwRXZlbnRUeXBlRW51bS5OT1RJRklDQVRJT05fQURERUQpLnN1YnNjcmliZSgobm90aWZpY2F0aW9uOiBOb3RpZmljYXRpb24pOiB2b2lkID0+IHtcbiAgICAgIGlmICghbm90aWZpY2F0aW9uLmlzUmVhZCAmJiBub3RpZmljYXRpb24uZXZlbnRUeXBlID09PSBVc2VyRXZlbnRUeXBlVHlwZUVudW0uU0hBUkVTSUdIVF9JTVBPUlQpIHtcbiAgICAgICAgdGhpcy5yZWZyZXNoQ2FjaGUoKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -26,5 +26,4 @@ export * from './client';
|
|
26
26
|
export * from './user';
|
27
27
|
export * from './document';
|
28
28
|
export * from './holding';
|
29
|
-
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLG1CQUFtQixDQUFDO0FBRWxDLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsVUFBVSxDQUFDO0FBRXpCLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxnQkFBZ0IsQ0FBQztB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XG5cbmV4cG9ydCAqIGZyb20gJy4vZmFjZWJvb2snO1xuZXhwb3J0ICogZnJvbSAnLi9nb29nbGUnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlJztcbmV4cG9ydCAqIGZyb20gJy4vZmlybSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vaW5jb21lLXNvdXJjZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbG9hbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vcHJvcGVydHknO1xuXG5leHBvcnQgKiBmcm9tICcuL3Jlc3QnO1xuXG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2Utbm90aWZpY2F0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL3N1YnNjcmlwdGlvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldmlldyc7XG5leHBvcnQgKiBmcm9tICcuL3RheC1zdW1tYXJ5JztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi95b3V0dWJlJztcblxuZXhwb3J0ICogZnJvbSAnLi92ZWhpY2xlJztcblxuZXhwb3J0ICogZnJvbSAnLi9jbGllbnQnO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyJztcblxuZXhwb3J0ICogZnJvbSAnLi9kb2N1bWVudCc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmcnO1xuIl19
|
@@ -16,6 +16,7 @@ export class PropertyCategoryMovementService extends RestService {
|
|
16
16
|
listenEvents() {
|
17
17
|
// property created together with categories, we need to update the list
|
18
18
|
this.listenCSE(Property, this.refreshCache, ['post']);
|
19
|
+
this.listenCSE(PropertyCategoryMovement, this.refreshCache);
|
19
20
|
}
|
20
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
21
22
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' }); }
|
@@ -29,4 +30,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
29
30
|
type: Inject,
|
30
31
|
args: ['environment']
|
31
32
|
}] }] });
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY2F0ZWdvcnktbW92ZW1lbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3Byb3BlcnR5L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50L3Byb3BlcnR5LWNhdGVnb3J5LW1vdmVtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFFBQVEsRUFBRSx3QkFBd0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXhFLE9BQU8sRUFBYyxXQUFXLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckQsT0FBTyxFQUFFLGtDQUFrQyxFQUFFLE1BQU0seUJBQXlCLENBQUM7O0FBTTdFLE1BQU0sT0FBTywrQkFBZ0MsU0FBUSxXQUF1RztJQU0xSixZQUE2QyxXQUFnQjtRQUMzRCxLQUFLLENBQUMsV0FBVyxDQUFDLENBQUM7UUFEd0IsZ0JBQVcsR0FBWCxXQUFXLENBQUs7UUFMN0QsZUFBVSxHQUFvQyx3QkFBd0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mVudHMoKTogdm9pZCB7XG4gICAgLy8gcHJvcGVydHkgY3JlYXRlZCB0b2dldGhlciB3aXRoIGNhdGVnb3JpZXMsIHdlIG5lZWQgdG8gdXBkYXRlIHRoZSBsaXN0XG4gICAgdGhpcy5saXN0ZW5DU0UoUHJvcGVydHksIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnXSk7XG4gICAgdGhpcy5saXN0ZW5DU0UoUHJvcGVydHlDYXRlZ29yeU1vdmVtZW50LCB0aGlzLnJlZnJlc2hDYWNoZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -43,4 +43,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
43
43
|
type: Inject,
|
44
44
|
args: ['environment']
|
45
45
|
}] }] });
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9zb2xlL3NvbGUtaW52b2ljZS9zb2xlLWludm9pY2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUdqRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7O0FB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tYmVyKCk6IG51bWJlciB7XG4gICAgaWYgKCF0aGlzLmNhY2hlLmxlbmd0aCkge1xuICAgICAgcmV0dXJuIDE7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuY2FjaGUubGFzdC5udW1iZXIgKyAxO1xuICB9XG59XG4iXX0=
|
@@ -4,5 +4,7 @@ export var UserMessagesEnum;
|
|
4
4
|
UserMessagesEnum["USER_DATA_UPDATED"] = "Data was successfully updated!";
|
5
5
|
UserMessagesEnum["CLIENT_DETAILS_UPDATED"] = "Client details updated";
|
6
6
|
UserMessagesEnum["DELETE"] = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.";
|
7
|
+
UserMessagesEnum["SHARESIGHT_CONNECTED"] = "Sharesight connected";
|
8
|
+
UserMessagesEnum["SHARESIGHT_ERROR"] = "Sharesight connection error";
|
7
9
|
})(UserMessagesEnum || (UserMessagesEnum = {}));
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1tZXNzYWdlcy5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvdXNlci91c2VyLW1lc3NhZ2VzLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksZ0JBT1g7QUFQRCxXQUFZLGdCQUFnQjtJQUMxQiwyREFBdUMsQ0FBQTtJQUN2Qyx3RUFBb0QsQ0FBQTtJQUNwRCxxRUFBaUQsQ0FBQTtJQUNqRCxnTkFBNEwsQ0FBQTtJQUM1TCxpRUFBNkMsQ0FBQTtJQUM3QyxvRUFBZ0QsQ0FBQTtBQUNsRCxDQUFDLEVBUFcsZ0JBQWdCLEtBQWhCLGdCQUFnQixRQU8zQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFVzZXJNZXNzYWdlc0VudW0ge1xuICBQSE9UT19VUERBVEVEID0gJ1Byb2ZpbGUgcGhvdG8gdXBkYXRlZCcsXG4gIFVTRVJfREFUQV9VUERBVEVEID0gJ0RhdGEgd2FzIHN1Y2Nlc3NmdWxseSB1cGRhdGVkIScsXG4gIENMSUVOVF9ERVRBSUxTX1VQREFURUQgPSAnQ2xpZW50IGRldGFpbHMgdXBkYXRlZCcsXG4gIERFTEVURSA9IGBDbG9zaW5nIHlvdXIgYWNjb3VudCB3aWxsIG1lYW4geW91IHdvbid0IGJlIGFibGUgdG8gYWNjZXNzIHRoaXMgYWNjb3VudCBhZ2Fpbi4gSXQgd2lsbCBhbHNvIHJldm9rZSBjb25zZW50IGZvciBhbGwgYmFua3MgYW5kIGRlbGV0ZSBhbGwgdHJhbnNhY3Rpb24gZGF0YS4gVGhpcyBjYW4gbm90IGJlIHVuZG9uZS5gLFxuICBTSEFSRVNJR0hUX0NPTk5FQ1RFRCA9ICdTaGFyZXNpZ2h0IGNvbm5lY3RlZCcsXG4gIFNIQVJFU0lHSFRfRVJST1IgPSAnU2hhcmVzaWdodCBjb25uZWN0aW9uIGVycm9yJ1xufVxuIl19
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { Inject, Injectable, inject } from '@angular/core';
|
2
|
+
import { throwError } from 'rxjs';
|
2
3
|
import { ServiceSubscription, User, } from '../../../models';
|
3
|
-
import { map } from 'rxjs/operators';
|
4
|
+
import { catchError, map } from 'rxjs/operators';
|
4
5
|
import { RestService } from '../rest';
|
5
6
|
import { Collection } from '../../../collections';
|
6
7
|
import clone from 'lodash/clone';
|
7
8
|
import { MixpanelService } from 'taxtank-core/common';
|
9
|
+
import { UserMessagesEnum } from './user-messages.enum';
|
8
10
|
import * as i0 from "@angular/core";
|
9
11
|
export class UserService extends RestService {
|
10
12
|
constructor(environment) {
|
@@ -81,6 +83,17 @@ export class UserService extends RestService {
|
|
81
83
|
return basiqId;
|
82
84
|
}));
|
83
85
|
}
|
86
|
+
connectSharesight(code) {
|
87
|
+
return this.http.post(`${this.environment.apiV2}/sharesight/connect`, { code }).pipe(map((sharesightAccessToken) => {
|
88
|
+
this.setCache([Object.assign(this.getCacheFirst().clientDetails, { sharesightAccessToken })], true);
|
89
|
+
this.toastService.success(UserMessagesEnum.SHARESIGHT_CONNECTED);
|
90
|
+
}), catchError((error) => {
|
91
|
+
if (error.status === 503) {
|
92
|
+
this.toastService.error(UserMessagesEnum.SHARESIGHT_ERROR);
|
93
|
+
}
|
94
|
+
return throwError(() => error);
|
95
|
+
}));
|
96
|
+
}
|
84
97
|
skipSetupItem(item) {
|
85
98
|
const user = clone(this.getCacheFirst());
|
86
99
|
user.blacklistSetupItems.push(item);
|
@@ -109,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
109
122
|
type: Inject,
|
110
123
|
args: ['environment']
|
111
124
|
}] }] });
|
112
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvdXNlci91c2VyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxJQUFJLEdBQUcsTUFBTSxpQkFBaUIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDckMsT0FBTyxFQUFjLFdBQVcsR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pY2VTdWJzY3JpcHRpb24sIChyZXNwb25zZSkgPT4ge1xuICAgICAgLy8gQFRPRE8gdmlrIHRlc3QgYW5kIHJlbW92ZVxuICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgICB9LCAyMDAwKTtcbiAgICB9LCBbJ3Bvc3QnLCAncHV0J10pO1xuICB9XG59XG4iXX0=
|
@@ -169,6 +169,9 @@ class AbstractModel {
|
|
169
169
|
formatDate(date, format = 'MMM d, y') {
|
170
170
|
return formatDate(date, format, 'en-AU');
|
171
171
|
}
|
172
|
+
get(path) {
|
173
|
+
return get(path);
|
174
|
+
}
|
172
175
|
}
|
173
176
|
|
174
177
|
let Country$1 = class Country extends AbstractModel {
|
@@ -1565,6 +1568,43 @@ var GenderEnum;
|
|
1565
1568
|
GenderEnum[GenderEnum["OTHER"] = 9] = "OTHER";
|
1566
1569
|
})(GenderEnum || (GenderEnum = {}));
|
1567
1570
|
|
1571
|
+
var SoleDepreciationMethodEnum;
|
1572
|
+
(function (SoleDepreciationMethodEnum) {
|
1573
|
+
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["SBP"] = 1] = "SBP";
|
1574
|
+
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["DEPRECIATION"] = 2] = "DEPRECIATION";
|
1575
|
+
})(SoleDepreciationMethodEnum || (SoleDepreciationMethodEnum = {}));
|
1576
|
+
|
1577
|
+
var SoleInvoiceStateEnum;
|
1578
|
+
(function (SoleInvoiceStateEnum) {
|
1579
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["CANCELED"] = 0] = "CANCELED";
|
1580
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["DRAFT"] = 1] = "DRAFT";
|
1581
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["OPEN"] = 2] = "OPEN";
|
1582
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["PAID"] = 3] = "PAID";
|
1583
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 4] = "OVERDUE";
|
1584
|
+
SoleInvoiceStateEnum[SoleInvoiceStateEnum["PENDING"] = 5] = "PENDING";
|
1585
|
+
})(SoleInvoiceStateEnum || (SoleInvoiceStateEnum = {}));
|
1586
|
+
|
1587
|
+
var SoleInvoiceStatusesEnum;
|
1588
|
+
(function (SoleInvoiceStatusesEnum) {
|
1589
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
|
1590
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
|
1591
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["OPEN"] = 2] = "OPEN";
|
1592
|
+
})(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
|
1593
|
+
|
1594
|
+
var SoleInvoiceTaxTypeEnum;
|
1595
|
+
(function (SoleInvoiceTaxTypeEnum) {
|
1596
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
1597
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
1598
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
1599
|
+
})(SoleInvoiceTaxTypeEnum || (SoleInvoiceTaxTypeEnum = {}));
|
1600
|
+
|
1601
|
+
var SoleInvoiceTemplateTaxTypeEnum;
|
1602
|
+
(function (SoleInvoiceTemplateTaxTypeEnum) {
|
1603
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
1604
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
1605
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
1606
|
+
})(SoleInvoiceTemplateTaxTypeEnum || (SoleInvoiceTemplateTaxTypeEnum = {}));
|
1607
|
+
|
1568
1608
|
// @TODO Artem TT-2308 move everything
|
1569
1609
|
|
1570
1610
|
/**
|
@@ -4905,13 +4945,6 @@ __decorate([
|
|
4905
4945
|
Type(() => SoleBusinessLossOffsetRule)
|
4906
4946
|
], SoleBusinessLoss.prototype, "offsetRule", void 0);
|
4907
4947
|
|
4908
|
-
var SoleInvoiceTaxTypeEnum;
|
4909
|
-
(function (SoleInvoiceTaxTypeEnum) {
|
4910
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
4911
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
4912
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
4913
|
-
})(SoleInvoiceTaxTypeEnum || (SoleInvoiceTaxTypeEnum = {}));
|
4914
|
-
|
4915
4948
|
class SoleInvoiceItem extends SoleInvoiceItem$1 {
|
4916
4949
|
constructor() {
|
4917
4950
|
super(...arguments);
|
@@ -4972,13 +5005,6 @@ __decorate([
|
|
4972
5005
|
Type(() => AppFile)
|
4973
5006
|
], SoleContact.prototype, "file", void 0);
|
4974
5007
|
|
4975
|
-
var SoleInvoiceStatusesEnum;
|
4976
|
-
(function (SoleInvoiceStatusesEnum) {
|
4977
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
|
4978
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
|
4979
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["OPEN"] = 2] = "OPEN";
|
4980
|
-
})(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
|
4981
|
-
|
4982
5008
|
class SoleInvoice extends SoleInvoice$1 {
|
4983
5009
|
constructor() {
|
4984
5010
|
super(...arguments);
|
@@ -5110,13 +5136,6 @@ __decorate([
|
|
5110
5136
|
Type(() => BankAccount)
|
5111
5137
|
], SoleInvoice.prototype, "bankAccount", void 0);
|
5112
5138
|
|
5113
|
-
var SoleInvoiceTemplateTaxTypeEnum;
|
5114
|
-
(function (SoleInvoiceTemplateTaxTypeEnum) {
|
5115
|
-
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
5116
|
-
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
5117
|
-
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
5118
|
-
})(SoleInvoiceTemplateTaxTypeEnum || (SoleInvoiceTemplateTaxTypeEnum = {}));
|
5119
|
-
|
5120
5139
|
class SoleInvoiceTemplate extends SoleInvoiceTemplate$1 {
|
5121
5140
|
constructor() {
|
5122
5141
|
super(...arguments);
|
@@ -5383,12 +5402,6 @@ __decorate([
|
|
5383
5402
|
class SoleBusinessActivity extends SoleBusinessActivity$1 {
|
5384
5403
|
}
|
5385
5404
|
|
5386
|
-
var SoleDepreciationMethodEnum;
|
5387
|
-
(function (SoleDepreciationMethodEnum) {
|
5388
|
-
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["SBP"] = 1] = "SBP";
|
5389
|
-
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["DEPRECIATION"] = 2] = "DEPRECIATION";
|
5390
|
-
})(SoleDepreciationMethodEnum || (SoleDepreciationMethodEnum = {}));
|
5391
|
-
|
5392
5405
|
class SoleDepreciationMethod extends SoleDepreciationMethod$1 {
|
5393
5406
|
isSBP() {
|
5394
5407
|
return this.method === SoleDepreciationMethodEnum.SBP;
|
@@ -8440,6 +8453,15 @@ class SoleInvoiceCollection extends Collection {
|
|
8440
8453
|
getInvoiceItemsIds() {
|
8441
8454
|
return flatten(this.map(invoice => invoice.items.map(item => item.id)));
|
8442
8455
|
}
|
8456
|
+
groupByState(transactions) {
|
8457
|
+
const invoicesByState = this.groupBy('status');
|
8458
|
+
const unpaidInvoices = this.getUnpaid(transactions);
|
8459
|
+
invoicesByState.add(SoleInvoiceStateEnum.PAID, this.getPaid(transactions));
|
8460
|
+
invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.PAID).toArray()));
|
8461
|
+
invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
|
8462
|
+
invoicesByState.add(SoleInvoiceStateEnum.PENDING, unpaidInvoices.getPending());
|
8463
|
+
return invoicesByState;
|
8464
|
+
}
|
8443
8465
|
getUnpaidAmount(transactions) {
|
8444
8466
|
return this.sumBy('grossPrice') - transactions.getByInvoices(this).sumBy('grossAmount');
|
8445
8467
|
}
|
@@ -11557,6 +11579,7 @@ var UserEventTypeTypeEnum;
|
|
11557
11579
|
UserEventTypeTypeEnum[UserEventTypeTypeEnum["EMPLOYEE_INVITE_ACCEPTED"] = 3013] = "EMPLOYEE_INVITE_ACCEPTED";
|
11558
11580
|
UserEventTypeTypeEnum[UserEventTypeTypeEnum["EMPLOYEE_EMAIL_CONFIRMED"] = 3020] = "EMPLOYEE_EMAIL_CONFIRMED";
|
11559
11581
|
UserEventTypeTypeEnum[UserEventTypeTypeEnum["TAX_REVIEW_RECEIVED"] = 3030] = "TAX_REVIEW_RECEIVED";
|
11582
|
+
UserEventTypeTypeEnum[UserEventTypeTypeEnum["SHARESIGHT_IMPORT"] = 2070] = "SHARESIGHT_IMPORT";
|
11560
11583
|
})(UserEventTypeTypeEnum || (UserEventTypeTypeEnum = {}));
|
11561
11584
|
|
11562
11585
|
/**
|
@@ -13690,6 +13713,7 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
13690
13713
|
listenEvents() {
|
13691
13714
|
// property created together with categories, we need to update the list
|
13692
13715
|
this.listenCSE(Property, this.refreshCache, ['post']);
|
13716
|
+
this.listenCSE(PropertyCategoryMovement, this.refreshCache);
|
13693
13717
|
}
|
13694
13718
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
13695
13719
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' }); }
|
@@ -15860,6 +15884,8 @@ var UserMessagesEnum;
|
|
15860
15884
|
UserMessagesEnum["USER_DATA_UPDATED"] = "Data was successfully updated!";
|
15861
15885
|
UserMessagesEnum["CLIENT_DETAILS_UPDATED"] = "Client details updated";
|
15862
15886
|
UserMessagesEnum["DELETE"] = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.";
|
15887
|
+
UserMessagesEnum["SHARESIGHT_CONNECTED"] = "Sharesight connected";
|
15888
|
+
UserMessagesEnum["SHARESIGHT_ERROR"] = "Sharesight connection error";
|
15863
15889
|
})(UserMessagesEnum || (UserMessagesEnum = {}));
|
15864
15890
|
|
15865
15891
|
/**
|
@@ -15956,6 +15982,17 @@ class UserService extends RestService$1 {
|
|
15956
15982
|
return basiqId;
|
15957
15983
|
}));
|
15958
15984
|
}
|
15985
|
+
connectSharesight(code) {
|
15986
|
+
return this.http.post(`${this.environment.apiV2}/sharesight/connect`, { code }).pipe(map((sharesightAccessToken) => {
|
15987
|
+
this.setCache([Object.assign(this.getCacheFirst().clientDetails, { sharesightAccessToken })], true);
|
15988
|
+
this.toastService.success(UserMessagesEnum.SHARESIGHT_CONNECTED);
|
15989
|
+
}), catchError((error) => {
|
15990
|
+
if (error.status === 503) {
|
15991
|
+
this.toastService.error(UserMessagesEnum.SHARESIGHT_ERROR);
|
15992
|
+
}
|
15993
|
+
return throwError(() => error);
|
15994
|
+
}));
|
15995
|
+
}
|
15959
15996
|
skipSetupItem(item) {
|
15960
15997
|
const user = clone(this.getCacheFirst());
|
15961
15998
|
user.blacklistSetupItems.push(item);
|
@@ -16019,11 +16056,19 @@ class HoldingService extends RestService$1 {
|
|
16019
16056
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
16020
16057
|
this.roles = [UserRolesEnum.HOLDING_TANK];
|
16021
16058
|
this.listenEvents();
|
16059
|
+
this.listenNotifications();
|
16022
16060
|
}
|
16023
16061
|
listenEvents() {
|
16024
16062
|
this.listenCSE(HoldingSale, this.refreshCache, ['post', 'put', 'delete']);
|
16025
16063
|
this.listenCSE(HoldingImport, this.refreshCache, ['post', 'put', 'delete']);
|
16026
16064
|
}
|
16065
|
+
listenNotifications() {
|
16066
|
+
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
16067
|
+
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.SHARESIGHT_IMPORT) {
|
16068
|
+
this.refreshCache();
|
16069
|
+
}
|
16070
|
+
});
|
16071
|
+
}
|
16027
16072
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
16028
16073
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingService, providedIn: 'root' }); }
|
16029
16074
|
}
|
@@ -16236,27 +16281,6 @@ var HoldingTypeMessagesEnum;
|
|
16236
16281
|
HoldingTypeMessagesEnum["DELETED"] = "Holding type deleted successfully";
|
16237
16282
|
})(HoldingTypeMessagesEnum || (HoldingTypeMessagesEnum = {}));
|
16238
16283
|
|
16239
|
-
class SharesightService {
|
16240
|
-
constructor(http, environment) {
|
16241
|
-
this.http = http;
|
16242
|
-
this.environment = environment;
|
16243
|
-
}
|
16244
|
-
connect(code) {
|
16245
|
-
return this.http.post(`${this.environment.apiV2}/sharesight/connect`, { code });
|
16246
|
-
}
|
16247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SharesightService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
16248
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SharesightService, providedIn: 'root' }); }
|
16249
|
-
}
|
16250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SharesightService, decorators: [{
|
16251
|
-
type: Injectable,
|
16252
|
-
args: [{
|
16253
|
-
providedIn: 'root'
|
16254
|
-
}]
|
16255
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
16256
|
-
type: Inject,
|
16257
|
-
args: ['environment']
|
16258
|
-
}] }] });
|
16259
|
-
|
16260
16284
|
var IncomeSourceTypes = [
|
16261
16285
|
{
|
16262
16286
|
id: 11,
|
@@ -24340,5 +24364,5 @@ var MessagesEnum;
|
|
24340
24364
|
* Generated bundle index. Do not edit.
|
24341
24365
|
*/
|
24342
24366
|
|
24343
|
-
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, 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, 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, SharesightService, 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, 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 };
|
24367
|
+
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, 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, 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 };
|
24344
24368
|
//# sourceMappingURL=taxtank-core.mjs.map
|