taxtank-core 0.31.7 → 0.31.9
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/esm2020/lib/db/Models/transaction/transaction-base.mjs +1 -1
- package/esm2020/lib/interfaces/document.interface.mjs +1 -1
- package/esm2020/lib/interfaces/index.mjs +1 -2
- package/esm2020/lib/models/bank/bank.mjs +10 -1
- package/esm2020/lib/models/depreciation/depreciation.mjs +2 -2
- package/esm2020/lib/models/firm/firm.mjs +1 -1
- package/esm2020/lib/models/property/property.mjs +1 -1
- package/esm2020/lib/models/registration-invite/registration-invite.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business.mjs +1 -1
- package/esm2020/lib/models/sole/sole-contact.mjs +3 -3
- package/esm2020/lib/models/transaction/transaction.mjs +1 -1
- package/esm2020/lib/models/user/user.mjs +1 -1
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +17 -39
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -2
- package/fesm2015/taxtank-core.mjs +23 -25
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +23 -25
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/transaction/transaction-base.d.ts +1 -2
- package/lib/interfaces/document.interface.d.ts +3 -2
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/models/bank/bank.d.ts +5 -2
- package/lib/models/depreciation/depreciation.d.ts +2 -3
- package/lib/models/firm/firm.d.ts +1 -2
- package/lib/models/property/property.d.ts +1 -2
- package/lib/models/registration-invite/registration-invite.d.ts +1 -2
- package/lib/models/sole/sole-business.d.ts +1 -2
- package/lib/models/sole/sole-contact.d.ts +3 -4
- package/lib/models/transaction/transaction.d.ts +2 -2
- package/lib/models/user/user.d.ts +1 -2
- package/lib/services/account-setup/account-setup.service.d.ts +5 -18
- package/package.json +1 -1
- package/esm2020/lib/interfaces/fileable.interface.mjs +0 -2
- package/lib/interfaces/fileable.interface.d.ts +0 -8
|
@@ -4,8 +4,7 @@ import { AppFile } from '../../../models';
|
|
|
4
4
|
import { SoleBusiness } from '../sole/sole-business';
|
|
5
5
|
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
|
6
6
|
import { ObservableModel } from '../observable-model';
|
|
7
|
-
|
|
8
|
-
export declare class TransactionBase extends ObservableModel implements Fileable {
|
|
7
|
+
export declare class TransactionBase extends ObservableModel {
|
|
9
8
|
amount?: number;
|
|
10
9
|
file: AppFile;
|
|
11
10
|
property?: Property;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AbstractModel } from '../db/Models';
|
|
2
|
-
import {
|
|
2
|
+
import { AppFile } from '../models';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for documents
|
|
5
5
|
*/
|
|
6
|
-
export interface DocumentInterface extends
|
|
6
|
+
export interface DocumentInterface extends AbstractModel {
|
|
7
7
|
get parent(): AbstractModel;
|
|
8
|
+
file?: AppFile;
|
|
8
9
|
}
|
|
@@ -8,7 +8,6 @@ export * from './document.interface';
|
|
|
8
8
|
export * from './documentable.interface';
|
|
9
9
|
export * from './event-listener.interface';
|
|
10
10
|
export * from './expense.interface';
|
|
11
|
-
export * from './fileable.interface';
|
|
12
11
|
export * from './income-source-forecast.interface';
|
|
13
12
|
export * from './option.interface';
|
|
14
13
|
export * from './table-exportable.interface';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Bank as BankBase } from '../../db/Models/bank/bank';
|
|
2
2
|
import { BankExternalStats } from './bank-external-stats';
|
|
3
|
-
import { Fileable } from '../../interfaces';
|
|
4
3
|
import { AppFile } from '../file';
|
|
5
|
-
export declare class Bank extends BankBase
|
|
4
|
+
export declare class Bank extends BankBase {
|
|
6
5
|
logo: string;
|
|
7
6
|
isPopular: boolean;
|
|
8
7
|
externalStats: BankExternalStats;
|
|
9
8
|
file: AppFile;
|
|
10
9
|
isManual(): boolean;
|
|
11
10
|
isBasiq(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* some images come from basiq (starting http), the rest from assets
|
|
13
|
+
*/
|
|
14
|
+
getPhoto(): string;
|
|
12
15
|
}
|
|
@@ -5,12 +5,11 @@ import { DepreciationForecast } from './depreciation-forecast';
|
|
|
5
5
|
import { ChartAccounts } from '../chart-accounts';
|
|
6
6
|
import { BankTransaction } from '../bank';
|
|
7
7
|
import { Transaction } from '../transaction';
|
|
8
|
-
import { Expense } from '../../interfaces
|
|
9
|
-
import { Fileable } from '../../interfaces';
|
|
8
|
+
import { Expense } from '../../interfaces';
|
|
10
9
|
/**
|
|
11
10
|
* @TODO Alex: clarify grouping rules and refactor
|
|
12
11
|
*/
|
|
13
|
-
export declare class Depreciation extends DepreciationBase implements Expense
|
|
12
|
+
export declare class Depreciation extends DepreciationBase implements Expense {
|
|
14
13
|
static WRITTEN_OFF_THRESHOLD: number;
|
|
15
14
|
static LOW_VALUE_POOL_THRESHOLD: number;
|
|
16
15
|
purchaseDate: Date;
|
|
@@ -2,9 +2,8 @@ import { Firm as FirmBase } from '../../db/Models/firm/firm';
|
|
|
2
2
|
import { Phone } from '../phone/phone';
|
|
3
3
|
import { Address } from '../address';
|
|
4
4
|
import { User } from '../user';
|
|
5
|
-
import { Fileable } from '../../interfaces';
|
|
6
5
|
import { AppFile } from '../file';
|
|
7
|
-
export declare class Firm extends FirmBase
|
|
6
|
+
export declare class Firm extends FirmBase {
|
|
8
7
|
owner: User;
|
|
9
8
|
address: Address;
|
|
10
9
|
phone: Phone;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Property as PropertyBase } from '../../db/Models/property/property';
|
|
2
|
-
import { Fileable } from '../../interfaces';
|
|
3
2
|
import { PropertyShare } from '../../db/Models';
|
|
4
3
|
import { PropertySubscription } from './property-subscription';
|
|
5
4
|
import { Address } from '../address';
|
|
@@ -16,7 +15,7 @@ import { AppFile } from '../file';
|
|
|
16
15
|
/**
|
|
17
16
|
* propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
|
|
18
17
|
*/
|
|
19
|
-
export declare class Property extends PropertyBase
|
|
18
|
+
export declare class Property extends PropertyBase {
|
|
20
19
|
/**
|
|
21
20
|
* Property acquired before 20 September 1985 will generally be treated as pre-Capital Gains Tax (CGT) assets.
|
|
22
21
|
* Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RegistrationInvite as RegistrationInviteBase } from '../../db/Models/user/registration-invite';
|
|
2
|
-
import { Fileable } from '../../interfaces';
|
|
3
2
|
import { AppFile } from '../file';
|
|
4
|
-
export declare class RegistrationInvite extends RegistrationInviteBase
|
|
3
|
+
export declare class RegistrationInvite extends RegistrationInviteBase {
|
|
5
4
|
file: AppFile;
|
|
6
5
|
}
|
|
@@ -9,9 +9,8 @@ import { Depreciation } from '../depreciation';
|
|
|
9
9
|
import { Transaction } from '../transaction';
|
|
10
10
|
import { SoleBusinessActivity } from '../../db/Models';
|
|
11
11
|
import { IncomeSource } from '../income-source';
|
|
12
|
-
import { Fileable } from '../../interfaces';
|
|
13
12
|
import { AppFile } from '../file';
|
|
14
|
-
export declare class SoleBusiness extends SoleBusinessBase
|
|
13
|
+
export declare class SoleBusiness extends SoleBusinessBase {
|
|
15
14
|
/**
|
|
16
15
|
* Maximum number of businesses that a person can have, according to the ATO
|
|
17
16
|
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SoleContact as SoleContactBase } from '../../db/Models/sole/sole-contact';
|
|
2
|
-
import { User } from '../user
|
|
3
|
-
import { Address } from '../address
|
|
2
|
+
import { User } from '../user';
|
|
3
|
+
import { Address } from '../address';
|
|
4
4
|
import { Phone } from '../phone/phone';
|
|
5
5
|
import { SoleInvoice } from './sole-invoice';
|
|
6
|
-
import { Fileable } from '../../interfaces';
|
|
7
6
|
import { AppFile } from '../file';
|
|
8
|
-
export declare class SoleContact extends SoleContactBase
|
|
7
|
+
export declare class SoleContact extends SoleContactBase {
|
|
9
8
|
user: User;
|
|
10
9
|
phone: Phone;
|
|
11
10
|
address: Address;
|
|
@@ -9,9 +9,9 @@ import { Loan } from '../loan';
|
|
|
9
9
|
import { TransactionAllocation } from './transaction-allocation';
|
|
10
10
|
import { TransactionAllocationCollection } from '../../collections';
|
|
11
11
|
import { Depreciation } from '../depreciation';
|
|
12
|
-
import { Expense
|
|
12
|
+
import { Expense } from '../../interfaces';
|
|
13
13
|
import { SoleInvoiceItem } from '../sole';
|
|
14
|
-
export declare class Transaction extends TransactionBase implements Expense
|
|
14
|
+
export declare class Transaction extends TransactionBase implements Expense {
|
|
15
15
|
transactions: Transaction[];
|
|
16
16
|
property: Property;
|
|
17
17
|
chartAccounts: ChartAccounts;
|
|
@@ -8,8 +8,7 @@ import { ServiceSubscription } from '../service-subscription/service-subscriptio
|
|
|
8
8
|
import { ServiceSubscriptionItem } from '../service-subscription/service-subscription-item';
|
|
9
9
|
import { SoleDetails } from '../sole';
|
|
10
10
|
import { AppFile } from '../file';
|
|
11
|
-
|
|
12
|
-
export declare class User extends BaseUser implements Fileable {
|
|
11
|
+
export declare class User extends BaseUser {
|
|
13
12
|
subscriptions: ServiceSubscription[];
|
|
14
13
|
clientDetails: ClientDetails;
|
|
15
14
|
employeeDetails: EmployeeDetails;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ClientIncomeTypesService } from '../http/firm/client-income/client-income-types.service';
|
|
5
|
-
import { IncomeSourceService } from '../http/income-source/income-source.service';
|
|
6
|
-
import { PropertyService } from '../http/property/property.service';
|
|
7
|
-
import { TransactionAllocationService } from '../http/transaction/transaction-allocation/transaction-allocation.service';
|
|
1
|
+
import { BankAccountService, HoldingService, IncomeSourceService, PropertyService, SoleBusinessService, TransactionAllocationService, TransactionService, UserService, VehicleClaimService } from '../http';
|
|
2
|
+
import { User } from '../../models';
|
|
3
|
+
import { AccountSetupItemCollection } from '../../collections';
|
|
8
4
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
9
|
-
import { AccountSetupItemCollection } from '../../collections/account-setup-item.collection';
|
|
10
|
-
import { VehicleClaimService } from '../http/vehicle/vehicle-claim.service';
|
|
11
|
-
import { TransactionService } from '../http/transaction/transaction.service';
|
|
12
|
-
import { HoldingService, SoleBusinessService, UserService } from '../http';
|
|
13
5
|
import * as i0 from "@angular/core";
|
|
14
6
|
/**
|
|
15
7
|
* Service handling user's account setup process.
|
|
16
8
|
* Checks required steps and their completion
|
|
17
9
|
*/
|
|
18
10
|
export declare class AccountSetupService {
|
|
19
|
-
private clientIncomeTypesService;
|
|
20
11
|
private propertyService;
|
|
21
12
|
private incomeSourceService;
|
|
22
13
|
private bankAccountsService;
|
|
@@ -28,16 +19,12 @@ export declare class AccountSetupService {
|
|
|
28
19
|
private userService;
|
|
29
20
|
cache: AccountSetupItemCollection;
|
|
30
21
|
cacheSubject: ReplaySubject<AccountSetupItemCollection>;
|
|
31
|
-
|
|
32
|
-
constructor(
|
|
22
|
+
user: User;
|
|
23
|
+
constructor(propertyService: PropertyService, incomeSourceService: IncomeSourceService, bankAccountsService: BankAccountService, transactionAllocationService: TransactionAllocationService, vehicleClaimService: VehicleClaimService, transactionService: TransactionService, soleBusinessService: SoleBusinessService, holdingService: HoldingService, userService: UserService);
|
|
33
24
|
/**
|
|
34
25
|
* Get list of account setup items for current user
|
|
35
26
|
*/
|
|
36
27
|
get(): Observable<AccountSetupItemCollection>;
|
|
37
|
-
/**
|
|
38
|
-
* Prepare client income types to update to hide depended account setup items
|
|
39
|
-
*/
|
|
40
|
-
prepareIncomeTypes(item: AccountSetupItem): ClientIncomeTypes;
|
|
41
28
|
/**
|
|
42
29
|
* Get a single AccountSetupItem and check it's completion
|
|
43
30
|
*/
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZWFibGUuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2ludGVyZmFjZXMvZmlsZWFibGUuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBYnN0cmFjdE1vZGVsIH0gZnJvbSAnLi4vZGIvTW9kZWxzJztcbmltcG9ydCB7IEFwcEZpbGUgfSBmcm9tICcuLi9tb2RlbHMnO1xuXG4vKipcbiAqIFRoZSBpbnRlcmZhY2Ugc2hvd3MgdGhhdCB0aGUgZW50aXR5IG1heSBoYXMgYSBmaWxlXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRmlsZWFibGUgZXh0ZW5kcyBBYnN0cmFjdE1vZGVsIHtcbiAgZmlsZT86IEFwcEZpbGU7XG59XG4iXX0=
|