taxtank-core 0.21.7 → 0.21.8
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 +27 -5
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Models/bank/bank-account.js +1 -1
- package/esm2015/lib/db/Models/depreciation/depreciation.js +1 -1
- package/esm2015/lib/db/Models/sole/sole-business-allocation.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-business-loss.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-business.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-contact.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-forecast.js +1 -1
- package/esm2015/lib/db/Models/sole/sole-invoice-item.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-invoice-template.js +4 -0
- package/esm2015/lib/db/Models/sole/sole-invoice.js +4 -0
- package/esm2015/lib/db/Models/transaction/transaction.js +1 -1
- package/esm2015/lib/db/Models/vehicle/vehicle-claim.js +1 -1
- package/esm2015/lib/db/Models/vehicle/vehicle.js +1 -1
- package/esm2015/lib/models/bank/bank-account.js +14 -4
- package/esm2015/lib/models/logbook/vehicle-claim.js +6 -3
- package/esm2015/lib/services/event/sse.service.js +2 -1
- package/fesm2015/taxtank-core.js +19 -5
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Models/bank/bank-account.d.ts +2 -2
- package/lib/db/Models/depreciation/depreciation.d.ts +2 -0
- package/lib/db/Models/sole/sole-business-allocation.d.ts +9 -0
- package/lib/db/Models/sole/sole-business-loss.d.ts +9 -0
- package/lib/db/Models/sole/sole-business.d.ts +26 -0
- package/lib/db/Models/sole/sole-contact.d.ts +17 -0
- package/lib/db/Models/sole/sole-invoice-item.d.ts +12 -0
- package/lib/db/Models/sole/sole-invoice-template.d.ts +10 -0
- package/lib/db/Models/sole/sole-invoice.d.ts +18 -0
- package/lib/db/Models/transaction/transaction.d.ts +2 -0
- package/lib/db/Models/vehicle/vehicle-claim.d.ts +2 -2
- package/lib/db/Models/vehicle/vehicle.d.ts +0 -2
- package/lib/models/bank/bank-account.d.ts +2 -0
- package/lib/models/logbook/vehicle-claim.d.ts +1 -0
- package/lib/services/event/sse.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BankAccountStatusEnum } from '../../Enums/bank-account-status.enum';
|
|
2
2
|
import { BankAccountTypeEnum } from '../../Enums/bank-account-type.enum';
|
|
3
|
-
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
|
4
3
|
import { BankConnection } from './bank-connection';
|
|
5
4
|
import { BankAccountProperty } from './bank-account-property';
|
|
6
5
|
import { BankTransaction } from './bank-transaction';
|
|
7
6
|
import { BankAccountBalance } from './bank-account-balance';
|
|
8
7
|
import { Loan } from '../loan/loan';
|
|
9
8
|
import { AbstractModel } from '../abstract-model';
|
|
9
|
+
import { SoleBusinessAllocation } from '../sole/sole-business-allocation';
|
|
10
10
|
export declare class BankAccount extends AbstractModel {
|
|
11
11
|
id?: number;
|
|
12
12
|
status?: BankAccountStatusEnum;
|
|
@@ -15,7 +15,6 @@ export declare class BankAccount extends AbstractModel {
|
|
|
15
15
|
accountName?: string;
|
|
16
16
|
nickname?: string;
|
|
17
17
|
accountNumber?: string;
|
|
18
|
-
tankType?: TankTypeEnum;
|
|
19
18
|
currentBalance?: number;
|
|
20
19
|
currency?: string;
|
|
21
20
|
isManual?: boolean;
|
|
@@ -28,6 +27,7 @@ export declare class BankAccount extends AbstractModel {
|
|
|
28
27
|
updatedAt?: Date;
|
|
29
28
|
bankConnection?: BankConnection;
|
|
30
29
|
bankAccountProperties?: BankAccountProperty[];
|
|
30
|
+
businessAllocations?: SoleBusinessAllocation[];
|
|
31
31
|
bankTransactions?: BankTransaction[];
|
|
32
32
|
balances?: BankAccountBalance[];
|
|
33
33
|
loan?: Loan;
|
|
@@ -10,6 +10,7 @@ import { DepreciationReceipt } from './depreciation-receipt';
|
|
|
10
10
|
import { DepreciationForecast } from './depreciation-forecast';
|
|
11
11
|
import { Loan } from '../loan/loan';
|
|
12
12
|
import { TransactionBase } from '../transaction/transaction-base';
|
|
13
|
+
import { SoleBusiness } from '../sole/sole-business';
|
|
13
14
|
export declare class Depreciation extends TransactionBase {
|
|
14
15
|
id?: number;
|
|
15
16
|
createdAt?: Date;
|
|
@@ -39,4 +40,5 @@ export declare class Depreciation extends TransactionBase {
|
|
|
39
40
|
loan?: Loan;
|
|
40
41
|
createdBy?: User;
|
|
41
42
|
updatedBy?: User;
|
|
43
|
+
business?: SoleBusiness;
|
|
42
44
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BankAccount } from '../bank/bank-account';
|
|
2
|
+
import { SoleBusiness } from './sole-business';
|
|
3
|
+
import { AbstractModel } from '../abstract-model';
|
|
4
|
+
export declare class SoleBusinessAllocation extends AbstractModel {
|
|
5
|
+
percent?: number;
|
|
6
|
+
id?: number;
|
|
7
|
+
bankAccount?: BankAccount;
|
|
8
|
+
business?: SoleBusiness;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SoleBusiness } from './sole-business';
|
|
2
|
+
import { AbstractModel } from '../abstract-model';
|
|
3
|
+
export declare class SoleBusinessLoss extends AbstractModel {
|
|
4
|
+
financialYear?: number;
|
|
5
|
+
amount?: number;
|
|
6
|
+
id?: number;
|
|
7
|
+
deletedAt?: Date;
|
|
8
|
+
business?: SoleBusiness;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { User } from '../user/user';
|
|
2
|
+
import { SoleBusinessAllocation } from './sole-business-allocation';
|
|
3
|
+
import { SoleBusinessLoss } from './sole-business-loss';
|
|
4
|
+
import { SoleInvoice } from './sole-invoice';
|
|
5
|
+
import { SoleInvoiceTemplate } from './sole-invoice-template';
|
|
6
|
+
import { VehicleClaim } from '../vehicle/vehicle-claim';
|
|
7
|
+
import { Transaction } from '../transaction/transaction';
|
|
8
|
+
import { Depreciation } from '../depreciation/depreciation';
|
|
9
|
+
import { AbstractModel } from '../abstract-model';
|
|
10
|
+
export declare class SoleBusiness extends AbstractModel {
|
|
11
|
+
name?: string;
|
|
12
|
+
code?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
website?: string;
|
|
15
|
+
logo?: string;
|
|
16
|
+
id?: number;
|
|
17
|
+
deletedAt?: Date;
|
|
18
|
+
user?: User;
|
|
19
|
+
allocations?: SoleBusinessAllocation[];
|
|
20
|
+
losses?: SoleBusinessLoss[];
|
|
21
|
+
invoices?: SoleInvoice[];
|
|
22
|
+
invoiceTemplates?: SoleInvoiceTemplate[];
|
|
23
|
+
vehicleClaims?: VehicleClaim[];
|
|
24
|
+
transactions?: Transaction[];
|
|
25
|
+
depreciations?: Depreciation[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from '../user/user';
|
|
2
|
+
import { Phone } from '../phone';
|
|
3
|
+
import { Address } from '../address';
|
|
4
|
+
import { SoleInvoice } from './sole-invoice';
|
|
5
|
+
import { AbstractModel } from '../abstract-model';
|
|
6
|
+
export declare class SoleContact extends AbstractModel {
|
|
7
|
+
name?: string;
|
|
8
|
+
abn?: number;
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
id?: number;
|
|
13
|
+
user?: User;
|
|
14
|
+
phone?: Phone;
|
|
15
|
+
address?: Address;
|
|
16
|
+
invoices?: SoleInvoice[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SoleInvoice } from './sole-invoice';
|
|
2
|
+
import { ChartAccounts } from '../chart-accounts/chart-accounts';
|
|
3
|
+
import { AbstractModel } from '../abstract-model';
|
|
4
|
+
export declare class SoleInvoiceItem extends AbstractModel {
|
|
5
|
+
description?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
price?: number;
|
|
8
|
+
id?: number;
|
|
9
|
+
isGST?: boolean;
|
|
10
|
+
invoice?: SoleInvoice;
|
|
11
|
+
chartAccounts?: ChartAccounts;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SoleBusiness } from './sole-business';
|
|
2
|
+
import { BankAccount } from '../bank/bank-account';
|
|
3
|
+
import { AbstractModel } from '../abstract-model';
|
|
4
|
+
export declare class SoleInvoiceTemplate extends AbstractModel {
|
|
5
|
+
isTaxIncluded?: boolean;
|
|
6
|
+
term?: number;
|
|
7
|
+
id?: number;
|
|
8
|
+
business?: SoleBusiness;
|
|
9
|
+
bankAccount?: BankAccount;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { User } from '../user/user';
|
|
2
|
+
import { SoleBusiness } from './sole-business';
|
|
3
|
+
import { SoleInvoiceItem } from './sole-invoice-item';
|
|
4
|
+
import { SoleContact } from './sole-contact';
|
|
5
|
+
import { SoleInvoiceTemplate } from './sole-invoice-template';
|
|
6
|
+
import { AbstractModel } from '../abstract-model';
|
|
7
|
+
export declare class SoleInvoice extends AbstractModel {
|
|
8
|
+
number?: string;
|
|
9
|
+
dateFrom?: Date;
|
|
10
|
+
dateTo?: Date;
|
|
11
|
+
id?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
user?: User;
|
|
14
|
+
business?: SoleBusiness;
|
|
15
|
+
items?: SoleInvoiceItem[];
|
|
16
|
+
payer?: SoleContact;
|
|
17
|
+
template?: SoleInvoiceTemplate;
|
|
18
|
+
}
|
|
@@ -11,6 +11,7 @@ import { Loan } from '../loan/loan';
|
|
|
11
11
|
import { TransactionBase } from './transaction-base';
|
|
12
12
|
import { Property } from '../property/property';
|
|
13
13
|
import { Depreciation } from '../depreciation/depreciation';
|
|
14
|
+
import { SoleBusiness } from '../sole/sole-business';
|
|
14
15
|
export declare class Transaction extends TransactionBase {
|
|
15
16
|
id?: number;
|
|
16
17
|
type?: TransactionTypeEnum;
|
|
@@ -40,4 +41,5 @@ export declare class Transaction extends TransactionBase {
|
|
|
40
41
|
depreciation?: Depreciation;
|
|
41
42
|
createdBy?: User;
|
|
42
43
|
updatedBy?: User;
|
|
44
|
+
business?: SoleBusiness;
|
|
43
45
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VehicleClaimMethodEnum } from '../../Enums/vehicle-claim-method.enum';
|
|
2
2
|
import { User } from '../user/user';
|
|
3
|
-
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
|
4
3
|
import { AbstractModel } from '../abstract-model';
|
|
4
|
+
import { SoleBusiness } from '../sole/sole-business';
|
|
5
5
|
export declare class VehicleClaim extends AbstractModel {
|
|
6
6
|
financialYear?: number;
|
|
7
7
|
method?: VehicleClaimMethodEnum;
|
|
@@ -10,5 +10,5 @@ export declare class VehicleClaim extends AbstractModel {
|
|
|
10
10
|
isManual?: boolean;
|
|
11
11
|
id?: number;
|
|
12
12
|
user?: User;
|
|
13
|
-
|
|
13
|
+
business?: SoleBusiness;
|
|
14
14
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { User } from '../user/user';
|
|
2
2
|
import { VehicleLogbook } from './vehicle-logbook';
|
|
3
|
-
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
|
4
3
|
import { AbstractModel } from '../abstract-model';
|
|
5
4
|
export declare class Vehicle extends AbstractModel {
|
|
6
5
|
name?: string;
|
|
7
6
|
id?: number;
|
|
8
7
|
user?: User;
|
|
9
8
|
logbook?: VehicleLogbook[];
|
|
10
|
-
tankType?: TankTypeEnum;
|
|
11
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BankAccount as BankAccountBase } from '../../db/Models/bank/bank-account';
|
|
2
2
|
import { BankAccountTypeEnum } from '../../db/Enums/bank-account-type.enum';
|
|
3
3
|
import { Loan } from '../loan/loan';
|
|
4
|
+
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
|
4
5
|
import { BankAccountBalance } from '../../db/Models/bank/bank-account-balance';
|
|
5
6
|
import { BankAccountProperty } from './bank-account-property';
|
|
6
7
|
import { BankConnection } from './bank-connection';
|
|
@@ -43,6 +44,7 @@ export declare class BankAccount extends BankAccountBase {
|
|
|
43
44
|
* check if bank account related to sole tank
|
|
44
45
|
*/
|
|
45
46
|
isSoleTank(): boolean;
|
|
47
|
+
get tankType(): TankTypeEnum;
|
|
46
48
|
/**
|
|
47
49
|
* Get Bank account property by id
|
|
48
50
|
* @param id Id of property
|