taxtank-core 0.17.16 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +5724 -5369
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/account-setup-item.collection.js +2 -2
- package/esm2015/lib/collections/bank.collection.js +15 -0
- package/esm2015/lib/collections/collection-dictionary.js +1 -1
- package/esm2015/lib/collections/collection.js +41 -56
- package/esm2015/lib/collections/exportable.collection.js +1 -1
- package/esm2015/lib/collections/property/property.collection.js +3 -3
- package/esm2015/lib/collections/vehicle-logbook.collection.js +2 -2
- package/esm2015/lib/db/Models/abstract-model.js +1 -1
- package/esm2015/lib/db/Models/bank/bank.js +1 -1
- package/esm2015/lib/forms/abstract.form.js +18 -3
- package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +19 -0
- package/esm2015/lib/forms/bank/bank-account-loan.form.js +20 -0
- package/esm2015/lib/forms/bank/bank-account-migrate.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-properties.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-property.form.js +13 -0
- package/esm2015/lib/forms/bank/bank-account.form.js +53 -0
- package/esm2015/lib/forms/bank/bank-login.form.js +19 -0
- package/esm2015/lib/forms/client/client-income-types.form.js +2 -8
- package/esm2015/lib/forms/index.js +8 -1
- package/esm2015/lib/forms/login/login.form.js +1 -1
- package/esm2015/lib/forms/register/register-client.form.js +4 -3
- package/esm2015/lib/forms/register/register-firm.form.js +2 -9
- package/esm2015/lib/forms/user/password.form.js +6 -6
- package/esm2015/lib/forms/user/reset-password.form.js +1 -1
- package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +2 -2
- package/esm2015/lib/forms/vehicle/vehicle.form.js +6 -12
- package/esm2015/lib/interceptors/basiq.interceptor.js +35 -0
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +17 -6
- package/esm2015/lib/interceptors/interceptors.module.js +16 -5
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
- package/esm2015/lib/models/account-setup/account-setup-item.js +4 -2
- package/esm2015/lib/models/bank/bank-account-property.js +6 -2
- package/esm2015/lib/models/bank/bank-account.js +2 -1
- package/esm2015/lib/models/bank/bank-connection.js +18 -3
- package/esm2015/lib/models/bank/bank-login-data.js +6 -0
- package/esm2015/lib/models/bank/bank.js +6 -1
- package/esm2015/lib/models/client/client-portfolio-report.js +3 -2
- package/esm2015/lib/models/endpoint/endpoints.const.js +3 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +39 -38
- package/esm2015/lib/models/loan/loan-payment.js +3 -2
- package/esm2015/lib/models/loan/loan.js +1 -6
- package/esm2015/lib/models/report/property/property-report-item.js +4 -2
- package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +4 -2
- package/esm2015/lib/models/tax-summary/report-item-details.js +3 -2
- package/esm2015/lib/models/tax-summary/report-item.js +3 -2
- package/esm2015/lib/services/account-setup/account-setup.service.js +5 -5
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
- package/esm2015/lib/services/event/sse.service.js +3 -3
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +5 -8
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +60 -5
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq-connections-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +42 -0
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +37 -46
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
- package/esm2015/lib/services/http/chat/chat.service.js +3 -3
- package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
- package/esm2015/lib/services/http/property/property.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +4 -15
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
- package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
- package/esm2015/lib/services/http/user/user.service.js +4 -17
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf.service.js +3 -3
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/esm2015/lib/validators/date-range.validator.js +22 -0
- package/esm2015/lib/validators/index.js +2 -1
- package/esm2015/lib/validators/require-autocomplete.js +14 -0
- package/esm2015/public-api.js +7 -1
- package/fesm2015/taxtank-core.js +3462 -3170
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank.collection.d.ts +7 -0
- package/lib/collections/collection-dictionary.d.ts +2 -1
- package/lib/collections/collection.d.ts +18 -31
- package/lib/collections/exportable.collection.d.ts +2 -1
- package/lib/db/Models/abstract-model.d.ts +1 -0
- package/lib/db/Models/bank/bank.d.ts +4 -0
- package/lib/forms/abstract.form.d.ts +18 -3
- package/lib/forms/bank/bank-account-add-manual.form.d.ts +10 -0
- package/lib/forms/bank/bank-account-loan.form.d.ts +5 -0
- package/lib/forms/bank/bank-account-migrate.form.d.ts +9 -0
- package/lib/forms/bank/bank-account-properties.form.d.ts +8 -0
- package/lib/forms/bank/bank-account-property.form.d.ts +5 -0
- package/lib/forms/bank/bank-account.form.d.ts +21 -0
- package/lib/forms/bank/bank-login.form.d.ts +11 -0
- package/lib/forms/client/client-income-types.form.d.ts +1 -2
- package/lib/forms/index.d.ts +7 -0
- package/lib/forms/login/login.form.d.ts +4 -1
- package/lib/forms/register/register-client.form.d.ts +1 -1
- package/lib/forms/register/register-firm.form.d.ts +2 -2
- package/lib/forms/user/password.form.d.ts +4 -1
- package/lib/forms/user/reset-password.form.d.ts +3 -1
- package/lib/forms/vehicle/vehicle-claim.form.d.ts +1 -1
- package/lib/forms/vehicle/vehicle.form.d.ts +3 -7
- package/lib/interceptors/basiq.interceptor.d.ts +15 -0
- package/lib/interceptors/financial-year-interceptor.d.ts +2 -0
- package/lib/models/account-setup/account-setup-item.d.ts +2 -1
- package/lib/models/bank/bank-account-property.d.ts +1 -0
- package/lib/models/bank/bank-account.d.ts +2 -0
- package/lib/models/bank/bank-connection.d.ts +8 -1
- package/lib/models/bank/bank-login-data.d.ts +17 -0
- package/lib/models/bank/bank.d.ts +1 -0
- package/lib/models/client/client-portfolio-report.d.ts +2 -1
- package/lib/models/event/app-event-type.enum.d.ts +38 -37
- package/lib/models/loan/loan-payment.d.ts +2 -1
- package/lib/models/loan/loan.d.ts +0 -2
- package/lib/models/report/property/property-report-item.d.ts +2 -1
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +2 -1
- package/lib/models/tax-summary/report-item-details.d.ts +2 -1
- package/lib/models/tax-summary/report-item.d.ts +2 -1
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +13 -1
- package/lib/services/http/bank/basiq/basiq-connections-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts +17 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts +20 -11
- package/lib/services/http/rest/rest.service.d.ts +0 -5
- package/lib/services/http/user/user.service.d.ts +0 -1
- package/lib/validators/date-range.validator.d.ts +5 -0
- package/lib/validators/index.d.ts +1 -0
- package/lib/validators/require-autocomplete.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Collection as BaseCollection } from './collection';
|
|
2
|
+
import { AbstractModel } from '../db/Models/abstract-model';
|
|
2
3
|
/**
|
|
3
4
|
* List of collections grouped by passed property
|
|
4
5
|
*/
|
|
5
|
-
export declare class CollectionDictionary<Collection extends BaseCollection<
|
|
6
|
+
export declare class CollectionDictionary<Collection extends BaseCollection<AbstractModel>> {
|
|
6
7
|
/**
|
|
7
8
|
* List of grouped collections
|
|
8
9
|
*/
|
|
@@ -1,49 +1,36 @@
|
|
|
1
1
|
import { CollectionDictionary } from './collection-dictionary';
|
|
2
|
+
import { AbstractModel } from '../db/Models/abstract-model';
|
|
2
3
|
/**
|
|
3
4
|
* Base collection class. Contains common properties and methods for all collections
|
|
4
5
|
*/
|
|
5
|
-
export declare class Collection<Model extends
|
|
6
|
+
export declare class Collection<Model extends AbstractModel> implements Iterable<Model> {
|
|
6
7
|
items: Model[];
|
|
7
8
|
constructor(items?: Model[]);
|
|
8
|
-
create(items?: Model[]): this;
|
|
9
9
|
/**
|
|
10
10
|
* Iterator that allow to iterate collection items
|
|
11
11
|
*/
|
|
12
12
|
[Symbol.iterator](): Iterator<Model>;
|
|
13
|
+
create(items?: Model[]): this;
|
|
14
|
+
get length(): number;
|
|
15
|
+
toArray(): Model[];
|
|
13
16
|
get first(): Model;
|
|
14
17
|
get last(): Model;
|
|
15
|
-
push(item: Model): number;
|
|
16
|
-
replaceBy(path: string, item: Model): this;
|
|
17
|
-
removeBy(path: string, item: Model): this;
|
|
18
|
-
toArray(): Model[];
|
|
19
|
-
groupBy(path?: string): CollectionDictionary<Collection<Model>>;
|
|
20
|
-
/**
|
|
21
|
-
* @TODO remove and use dictionary instead
|
|
22
|
-
*/
|
|
23
|
-
indexBy(path: string): object;
|
|
24
|
-
/**
|
|
25
|
-
* get collection length
|
|
26
|
-
*/
|
|
27
|
-
get length(): number;
|
|
28
|
-
/**
|
|
29
|
-
* Get list of items ids
|
|
30
|
-
*/
|
|
31
18
|
getIds(): number[];
|
|
32
|
-
|
|
33
|
-
getByIds(ids: number[]): Model[];
|
|
34
|
-
findBy(path: string, value: any): Model | null;
|
|
35
|
-
findIndexBy(path: string, value: any): number;
|
|
19
|
+
sortBy(field?: string, isDesc?: boolean): void;
|
|
36
20
|
/**
|
|
37
21
|
* Get total sum of items by field
|
|
38
22
|
*/
|
|
39
23
|
sumBy(path: string): number;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
24
|
+
groupBy(path?: string): CollectionDictionary<Collection<Model>>;
|
|
25
|
+
indexBy(path: string): object;
|
|
26
|
+
filter(callback: (item: Model) => boolean): this;
|
|
27
|
+
filterBy(path: string, values: any): this;
|
|
28
|
+
filterByRange(path: string, from: any, to: any): this;
|
|
29
|
+
find(callback: (item: Model) => boolean): Model | null;
|
|
30
|
+
findBy(path: string, value: any): Model | null;
|
|
31
|
+
findIndexBy(path: string, value: any): number;
|
|
32
|
+
push(...items: Model[]): this;
|
|
33
|
+
replaceBy(path: string, value: any, item: Model): this;
|
|
34
|
+
remove(items: Model[]): this;
|
|
35
|
+
removeBy(path: string, value: any): this;
|
|
49
36
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Collection } from './collection';
|
|
2
2
|
import { ExportDataTable } from '../models/export/export-data-table';
|
|
3
3
|
import { ExportCell } from '../models/export/export-cell';
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../db/Models/abstract-model';
|
|
5
|
+
export declare abstract class ExportableCollection<Model extends AbstractModel> extends Collection<Model> {
|
|
5
6
|
abstract getExportHeader(type?: string): string[];
|
|
6
7
|
abstract getExportBody(type?: string): ExportCell[][];
|
|
7
8
|
getExportFooter(type?: string): ExportCell[];
|
|
@@ -2,7 +2,11 @@ import { FinancialDataSystem } from './financial-data-system';
|
|
|
2
2
|
import { AbstractModel } from '../abstract-model';
|
|
3
3
|
export declare class Bank extends AbstractModel {
|
|
4
4
|
name?: string;
|
|
5
|
+
shortName?: string;
|
|
5
6
|
externalId?: string;
|
|
7
|
+
loginFields?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
6
10
|
logo?: string;
|
|
7
11
|
id?: number;
|
|
8
12
|
deletedAt?: Date;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract form class
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class AbstractForm<Model> extends FormGroup {
|
|
7
|
+
protected modelClass: Type<Model>;
|
|
8
|
+
model: Model | object;
|
|
9
|
+
submitted: boolean;
|
|
10
|
+
protected constructor(controls: {
|
|
11
|
+
[key: string]: AbstractControl;
|
|
12
|
+
}, model?: Model | object, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
|
|
13
|
+
/**
|
|
14
|
+
* Check validation and return a new instance of generic model.
|
|
15
|
+
* Merge form value to initial object
|
|
16
|
+
* @param data Additional data object which be merged to form value
|
|
17
|
+
*/
|
|
18
|
+
submit(data?: object): Model;
|
|
4
19
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractForm } from '../abstract.form';
|
|
2
|
+
import { BankAccount } from '../../models/bank/bank-account';
|
|
3
|
+
import { BankConnection } from '../../models/bank/bank-connection';
|
|
4
|
+
/**
|
|
5
|
+
* Form is using for manual bank account creation (not Basiq), prepares bank account data for the next saving.
|
|
6
|
+
*/
|
|
7
|
+
export declare class BankAccountAddManualForm extends AbstractForm<BankAccount> {
|
|
8
|
+
static accountNumberPattern: string;
|
|
9
|
+
constructor(connection: BankConnection);
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormArray } from '@angular/forms';
|
|
2
|
+
import { BankAccountProperty } from '../../models/bank/bank-account-property';
|
|
3
|
+
export declare class BankAccountPropertiesForm extends FormArray {
|
|
4
|
+
private isLoan;
|
|
5
|
+
private bankAccountProperties;
|
|
6
|
+
constructor(isLoan: boolean, bankAccountProperties?: BankAccountProperty[]);
|
|
7
|
+
add(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AbstractForm } from '../abstract.form';
|
|
2
|
+
import { BankAccountProperty } from '../../models/bank/bank-account-property';
|
|
3
|
+
export declare class BankAccountPropertyForm extends AbstractForm<BankAccountProperty> {
|
|
4
|
+
constructor(isLoan: boolean, bankAccountProperty?: BankAccountProperty);
|
|
5
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractForm } from '../abstract.form';
|
|
2
|
+
import { BankAccount } from '../../models/bank/bank-account';
|
|
3
|
+
import { BankAccountPropertiesForm } from './bank-account-properties.form';
|
|
4
|
+
import { IEventListener } from '../../interfaces/event-listener.interface';
|
|
5
|
+
/**
|
|
6
|
+
* Form for additional data for bank accounts. Allow user to set tank type, loan and properties for new not-saved bank accounts.
|
|
7
|
+
* Works with manual and basiq bank accounts.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BankAccountForm extends AbstractForm<BankAccount> implements IEventListener {
|
|
10
|
+
private bankAccount;
|
|
11
|
+
constructor(bankAccount?: BankAccount);
|
|
12
|
+
listenEvents(): void;
|
|
13
|
+
get properties(): BankAccountPropertiesForm;
|
|
14
|
+
isLoan(): boolean;
|
|
15
|
+
isPropertyTank(): boolean;
|
|
16
|
+
private addPropertiesArray;
|
|
17
|
+
/**
|
|
18
|
+
* Add/Remove properties form array depending on selected tank type
|
|
19
|
+
*/
|
|
20
|
+
private listenTankTypeChanges;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractForm } from '../abstract.form';
|
|
2
|
+
import { BankConnection } from '../../models/bank/bank-connection';
|
|
3
|
+
import { BankLoginData } from '../../models/bank/bank-login-data';
|
|
4
|
+
/**
|
|
5
|
+
* Form with basiq bank login fields.
|
|
6
|
+
* https://api.basiq.io/v2.0/docs/build-your-own-1#step-3-create-a-connection
|
|
7
|
+
*/
|
|
8
|
+
export declare class BankLoginForm extends AbstractForm<BankLoginData> {
|
|
9
|
+
private connection;
|
|
10
|
+
constructor(connection: BankConnection);
|
|
11
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { ClientIncomeTypes } from '../../models/client/client-income-types';
|
|
3
|
-
export declare class ClientIncomeTypesForm extends AbstractForm {
|
|
3
|
+
export declare class ClientIncomeTypesForm extends AbstractForm<ClientIncomeTypes> {
|
|
4
4
|
private clientIncomeTypes;
|
|
5
5
|
constructor(clientIncomeTypes: ClientIncomeTypes);
|
|
6
|
-
submit(): object;
|
|
7
6
|
}
|
package/lib/forms/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export * from './abstract.form';
|
|
2
|
+
export * from './bank/bank-account.form';
|
|
3
|
+
export * from './bank/bank-account-loan.form';
|
|
4
|
+
export * from './bank/bank-account-add-manual.form';
|
|
5
|
+
export * from './bank/bank-account-migrate.form';
|
|
6
|
+
export * from './bank/bank-account-property.form';
|
|
7
|
+
export * from './bank/bank-account-properties.form';
|
|
8
|
+
export * from './bank/bank-login.form';
|
|
2
9
|
export * from './client/client-income-types.form';
|
|
3
10
|
export * from './login/login.form';
|
|
4
11
|
export * from './register/register-client.form';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { FirmTypeEnum } from '../../db/Enums/firm-type.enum';
|
|
3
|
-
|
|
3
|
+
import { Firm } from '../../models/firm/firm';
|
|
4
|
+
export declare class RegisterFirmForm extends AbstractForm<Firm> {
|
|
4
5
|
private firmType;
|
|
5
6
|
constructor(firmType: FirmTypeEnum, referenceCode?: string);
|
|
6
|
-
submit(): object;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { VehicleClaim } from '../../models/logbook/vehicle-claim';
|
|
3
3
|
import { VehicleLogbookCollection } from '../../collections/vehicle-logbook.collection';
|
|
4
|
-
export declare class VehicleClaimForm extends AbstractForm {
|
|
4
|
+
export declare class VehicleClaimForm extends AbstractForm<VehicleClaim> {
|
|
5
5
|
private vehicleClaim;
|
|
6
6
|
private logbooks;
|
|
7
7
|
constructor(vehicleClaim: VehicleClaim, logbooks: VehicleLogbookCollection);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { Vehicle } from '../../models/logbook/vehicle';
|
|
3
|
-
|
|
4
|
-
export declare class VehicleForm extends AbstractForm {
|
|
3
|
+
export declare class VehicleForm extends AbstractForm<Vehicle> {
|
|
5
4
|
private vehicle;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @TODO save model, add generics and handle it in AbstractForm
|
|
9
|
-
*/
|
|
10
|
-
submit(): VehicleClaim;
|
|
5
|
+
static maxNameLength: number;
|
|
6
|
+
constructor(vehicle?: Vehicle);
|
|
11
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BasiqTokenService } from '../services/http/bank/basiq/basiq-token.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Interceptor which adds user's basiq token to any http request to basiq api
|
|
7
|
+
*/
|
|
8
|
+
export declare class BasiqInterceptor implements HttpInterceptor {
|
|
9
|
+
private basiqTokenService;
|
|
10
|
+
constructor(basiqTokenService: BasiqTokenService);
|
|
11
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
12
|
+
private addToken;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqInterceptor, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqInterceptor>;
|
|
15
|
+
}
|
|
@@ -6,6 +6,8 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* @TODO now we can get current fin year from user on backend. So we can remove this interceptor
|
|
7
7
|
*/
|
|
8
8
|
export declare class FinancialYearInterceptor implements HttpInterceptor {
|
|
9
|
+
private environment;
|
|
10
|
+
constructor(environment: any);
|
|
9
11
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FinancialYearInterceptor, never>;
|
|
11
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<FinancialYearInterceptor>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Account setup item instance is using for account setup checklist
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
5
|
+
export declare class AccountSetupItem extends AbstractModel {
|
|
5
6
|
title: string;
|
|
6
7
|
description: string;
|
|
7
8
|
url: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BankAccount as BankAccountBase } from '../../db/Models/bank/bank-account';
|
|
2
|
+
import { BankAccountTypeEnum } from '../../db/Enums/bank-account-type.enum';
|
|
2
3
|
import { Loan } from '../loan/loan';
|
|
3
4
|
import { BankAccountBalance } from '../../db/Models/bank/bank-account-balance';
|
|
4
5
|
import { BankAccountProperty } from './bank-account-property';
|
|
5
6
|
import { BankConnection } from './bank-connection';
|
|
6
7
|
export declare class BankAccount extends BankAccountBase {
|
|
8
|
+
static loanTypes: BankAccountTypeEnum[];
|
|
7
9
|
bankAccountProperties: BankAccountProperty[];
|
|
8
10
|
balances: BankAccountBalance[];
|
|
9
11
|
loan: Loan;
|
|
@@ -7,5 +7,12 @@ export declare class BankConnection extends BankConnectionBase {
|
|
|
7
7
|
/**
|
|
8
8
|
* Check if status of connection is inactive (invalid)
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
isInvalid(): boolean;
|
|
11
|
+
isPending(): boolean;
|
|
12
|
+
isActive(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* login required for new or disconnected external connections
|
|
15
|
+
*/
|
|
16
|
+
isLoginRequired(): boolean;
|
|
17
|
+
setPending(): void;
|
|
11
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Login data object for basiq banks
|
|
3
|
+
*/
|
|
4
|
+
export declare class BankLoginData {
|
|
5
|
+
/**
|
|
6
|
+
* Object with bank external id
|
|
7
|
+
*/
|
|
8
|
+
institution: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Dynamic login data fields. These fields may be different for different banks
|
|
13
|
+
*/
|
|
14
|
+
[key: string]: string | {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class describes client's portfolio report information
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
5
|
+
export declare class ClientPortfolioReport extends AbstractModel {
|
|
5
6
|
category: string;
|
|
6
7
|
count: number;
|
|
7
8
|
marketValue: number;
|
|
@@ -6,41 +6,42 @@ export declare enum AppEventTypeEnum {
|
|
|
6
6
|
BANK_TRANSACTION_ALLOCATED = 4,
|
|
7
7
|
BASIQ_CONSENT_UPDATED = 5,
|
|
8
8
|
BASIQ_CONNECTION_UPDATED = 6,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
9
|
+
BASIQ_JOB_CREATED = 7,
|
|
10
|
+
CLIENT_INVITE_ACCEPTED = 8,
|
|
11
|
+
CLIENT_OPEN_CHAT = 9,
|
|
12
|
+
CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 10,
|
|
13
|
+
CURRENT_USER_GET_FAILED = 11,
|
|
14
|
+
DEPRECIATION_DELETED = 12,
|
|
15
|
+
DEPRECIATIONS_CREATED = 13,
|
|
16
|
+
INCOME_SOURCES_CREATED = 14,
|
|
17
|
+
INCOME_SOURCES_UPDATED = 15,
|
|
18
|
+
INCOME_SOURCES_FORECASTS_CREATED = 16,
|
|
19
|
+
INCOME_SOURCES_FORECASTS_UPDATED = 17,
|
|
20
|
+
LOAN_UPDATED = 18,
|
|
21
|
+
LOAN_PAYOUT_UPDATED = 19,
|
|
22
|
+
MESSAGE_CREATED = 20,
|
|
23
|
+
MESSAGE_FILE_CREATED = 21,
|
|
24
|
+
MESSAGE_FILE_DELETED = 22,
|
|
25
|
+
NOTIFICATION_ADDED = 23,
|
|
26
|
+
PROPERTY_UPDATED_WITH_DOCUMENT = 24,
|
|
27
|
+
PROPERTY_DOCUMENT_ADDED = 25,
|
|
28
|
+
PROPERTY_MOVEMENT_CREATED = 26,
|
|
29
|
+
PROPERTY_MOVEMENT_UPDATED = 27,
|
|
30
|
+
PROPERTY_MOVEMENT_DELETED = 28,
|
|
31
|
+
PROPERTY_SHARE_UPDATED = 29,
|
|
32
|
+
PROPERTY_SUBSCRIPTION_ADDED = 30,
|
|
33
|
+
PROPERTY_SUBSCRIPTION_DELETED = 31,
|
|
34
|
+
PROPERTY_VALUATION_DOCUMENT_CREATED = 32,
|
|
35
|
+
SERVICE_SUBSCRIPTION_UPDATED = 33,
|
|
36
|
+
TAX_REVIEW_UPDATED = 34,
|
|
37
|
+
TRANSACTION_CREATED = 35,
|
|
38
|
+
TRANSACTION_DELETED = 36,
|
|
39
|
+
TRANSACTION_UPDATED = 37,
|
|
40
|
+
TRANSACTIONS_CREATED = 38,
|
|
41
|
+
USER_UPDATED = 39,
|
|
42
|
+
VEHICLE_CLAIM_UPDATED = 40,
|
|
43
|
+
VEHICLE_CLAIM_CREATED = 41,
|
|
44
|
+
VEHICLE_LOGBOOK_CREATED = 42,
|
|
45
|
+
VEHICLE_LOGBOOK_UPDATED = 43,
|
|
46
|
+
VEHICLE_LOGBOOK_DELETED = 44
|
|
46
47
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Loan as LoanBase } from '../../db/Models/loan/loan';
|
|
2
|
-
import { LoanRepaymentTypeEnum } from '../../db/Enums/loan-repayment-type.enum';
|
|
3
2
|
import { LoanPayment } from './loan-payment';
|
|
4
3
|
import { LoanPayout } from './loan-payout';
|
|
5
4
|
export declare class Loan extends LoanBase {
|
|
6
5
|
payments: LoanPayment[];
|
|
7
6
|
commencementDate: Date;
|
|
8
7
|
payout: LoanPayout;
|
|
9
|
-
repaymentType: LoanRepaymentTypeEnum;
|
|
10
8
|
currentBalance: number;
|
|
11
9
|
/**
|
|
12
10
|
* Check if loan type is related to LoanVehicleTypeEnum
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Property } from '../../property/property';
|
|
2
2
|
import { ChartAccounts } from '../../chart-accounts/chart-accounts';
|
|
3
|
+
import { AbstractModel } from '../../../db/Models/abstract-model';
|
|
3
4
|
/**
|
|
4
5
|
* Class with property transactions report entities
|
|
5
6
|
*/
|
|
6
|
-
export declare class PropertyReportItem {
|
|
7
|
+
export declare class PropertyReportItem extends AbstractModel {
|
|
7
8
|
amount: number;
|
|
8
9
|
description: string;
|
|
9
10
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vehicle expense for logbook section
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../../../db/Models/abstract-model';
|
|
5
|
+
export declare class VehicleExpense extends AbstractModel {
|
|
5
6
|
description: string;
|
|
6
7
|
amount: number;
|
|
7
8
|
claimPercent: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TaxReturnCategorySectionEnum } from '../../db/Enums/tax-return-category-section.enum';
|
|
2
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
2
3
|
/**
|
|
3
4
|
* Used in tax summary reports to show specific details relating to an amount in the report.
|
|
4
5
|
* See structure in ReportItem class.
|
|
5
6
|
* Example an amount of $550 for property income could be comprised of 2 different property amounts of $300 and $250.
|
|
6
7
|
* This is useful in providing drill-down information for the tax summary report.
|
|
7
8
|
*/
|
|
8
|
-
export declare class ReportItemDetails {
|
|
9
|
+
export declare class ReportItemDetails extends AbstractModel {
|
|
9
10
|
amount: number;
|
|
10
11
|
name: string;
|
|
11
12
|
type: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TaxReturnCategory } from '../../db/Models/tax-return/tax-return-category';
|
|
2
2
|
import { ReportItemDetails } from './report-item-details';
|
|
3
3
|
import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
|
|
4
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
4
5
|
/**
|
|
5
6
|
* Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
|
|
6
7
|
* amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
|
|
7
8
|
*/
|
|
8
|
-
export declare class ReportItem {
|
|
9
|
+
export declare class ReportItem extends AbstractModel {
|
|
9
10
|
amount: number;
|
|
10
11
|
details: ReportItemDetails[];
|
|
11
12
|
taxReturnCategory: TaxReturnCategory;
|
|
@@ -12,8 +12,20 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
|
|
|
12
12
|
modelClass: typeof BankConnection;
|
|
13
13
|
url: string;
|
|
14
14
|
listenEvents(): void;
|
|
15
|
-
|
|
15
|
+
add(bankConnection: BankConnection): Observable<BankConnection>;
|
|
16
16
|
listenToAddedBankAccounts(): void;
|
|
17
|
+
/**
|
|
18
|
+
* When user log in to bank, basiq create a job. We create a bank connection with based on this job
|
|
19
|
+
*/
|
|
20
|
+
listenBasiqJobCreated(): void;
|
|
21
|
+
/**
|
|
22
|
+
* When basiq connection disconnected we create a basiq job and update this connection
|
|
23
|
+
*/
|
|
24
|
+
listenConnectionUpdated(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Update cache when basiq login failed to get actual connections statuses
|
|
27
|
+
*/
|
|
28
|
+
listenNotifications(): void;
|
|
17
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
|
|
18
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
|
|
19
31
|
}
|