taxtank-core 0.27.7 → 0.28.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 +71 -21
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/income-source.collection.js +4 -1
- package/esm2015/lib/db/Models/sole/sole-business.js +1 -1
- package/esm2015/lib/forms/sole/sole-business.form.js +24 -3
- package/esm2015/lib/models/event/app-event-type.enum.js +21 -20
- package/esm2015/lib/models/sole/sole-business.js +5 -1
- package/esm2015/lib/services/http/income-source/income-source.service.js +12 -1
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +10 -1
- package/fesm2015/taxtank-core.js +63 -20
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/income-source.collection.d.ts +1 -0
- package/lib/db/Models/sole/sole-business.d.ts +2 -0
- package/lib/forms/sole/sole-business.form.d.ts +2 -0
- package/lib/models/event/app-event-type.enum.d.ts +20 -19
- package/lib/models/sole/sole-business.d.ts +2 -0
- package/lib/services/http/income-source/income-source.service.d.ts +7 -1
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export declare class IncomeSourceCollection extends Collection<IncomeSource> {
|
|
|
14
14
|
*/
|
|
15
15
|
filterByTypes(types: IncomeSourceTypeEnum[]): IncomeSource[];
|
|
16
16
|
getSalary(): IncomeSource[];
|
|
17
|
+
getOther(): IncomeSource[];
|
|
17
18
|
/**
|
|
18
19
|
* Get income sources list of forecasts
|
|
19
20
|
*/
|
|
@@ -9,6 +9,7 @@ import { Depreciation } from '../depreciation/depreciation';
|
|
|
9
9
|
import { AbstractModel } from '../abstract-model';
|
|
10
10
|
import { VehicleLogbook } from '../vehicle/vehicle-logbook';
|
|
11
11
|
import { SoleBusinessActivity } from './sole-business-activity';
|
|
12
|
+
import { IncomeSource } from '../incomeSource/income-source';
|
|
12
13
|
export declare class SoleBusiness extends AbstractModel {
|
|
13
14
|
name?: string;
|
|
14
15
|
description?: string;
|
|
@@ -22,6 +23,7 @@ export declare class SoleBusiness extends AbstractModel {
|
|
|
22
23
|
losses?: SoleBusinessLoss[];
|
|
23
24
|
invoices?: SoleInvoice[];
|
|
24
25
|
invoiceTemplates?: SoleInvoiceTemplate[];
|
|
26
|
+
incomeSource?: IncomeSource;
|
|
25
27
|
vehicleClaims?: VehicleClaim[];
|
|
26
28
|
vehicleLogbooks?: VehicleLogbook[];
|
|
27
29
|
transactions?: Transaction[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { SoleBusiness } from '../../models';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
3
4
|
export declare class SoleBusinessForm extends AbstractForm<SoleBusiness> {
|
|
4
5
|
constructor(business?: SoleBusiness);
|
|
6
|
+
get forecastFormGroup(): FormGroup;
|
|
5
7
|
}
|
|
@@ -40,23 +40,24 @@ export declare enum AppEventTypeEnum {
|
|
|
40
40
|
PROPERTY_SUBSCRIPTION_DELETED = 38,
|
|
41
41
|
PROPERTY_VALUATION_DOCUMENT_CREATED = 39,
|
|
42
42
|
SERVICE_SUBSCRIPTION_UPDATED = 40,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
SOLE_BUSINESS_CREATED = 41,
|
|
44
|
+
SOLE_DEPRECIATION_METHOD_UPDATED = 42,
|
|
45
|
+
TAX_REVIEW_UPDATED = 43,
|
|
46
|
+
TRANSACTION_CREATED = 44,
|
|
47
|
+
TRANSACTION_DELETED = 45,
|
|
48
|
+
TRANSACTION_UPDATED = 46,
|
|
49
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 47,
|
|
50
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 48,
|
|
51
|
+
TRANSACTION_RECEIPT_CREATED = 49,
|
|
52
|
+
TRANSACTION_RECEIPT_DELETED = 50,
|
|
53
|
+
TRANSACTIONS_CREATED = 51,
|
|
54
|
+
USER_UPDATED = 52,
|
|
55
|
+
VEHICLE_CLAIM_UPDATED = 53,
|
|
56
|
+
VEHICLE_CLAIM_CREATED = 54,
|
|
57
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 55,
|
|
58
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 56,
|
|
59
|
+
VEHICLE_LOGBOOK_CREATED = 57,
|
|
60
|
+
VEHICLE_LOGBOOK_UPDATED = 58,
|
|
61
|
+
VEHICLE_LOGBOOK_DELETED = 59,
|
|
62
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 60
|
|
62
63
|
}
|
|
@@ -9,6 +9,7 @@ import { Depreciation } from '../depreciation/depreciation';
|
|
|
9
9
|
import { Transaction } from '../transaction/transaction';
|
|
10
10
|
import { Photoable } from '../../interfaces/photoable';
|
|
11
11
|
import { SoleBusinessActivity } from '../../db/Models/sole/sole-business-activity';
|
|
12
|
+
import { IncomeSource } from '../income-source/income-source';
|
|
12
13
|
export declare class SoleBusiness extends SoleBusinessBase implements Photoable {
|
|
13
14
|
/**
|
|
14
15
|
* Maximum number of businesses that a person can have, according to the ATO
|
|
@@ -23,6 +24,7 @@ export declare class SoleBusiness extends SoleBusinessBase implements Photoable
|
|
|
23
24
|
transactions: Transaction[];
|
|
24
25
|
depreciations: Depreciation[];
|
|
25
26
|
activity: SoleBusinessActivity;
|
|
27
|
+
incomeSource: IncomeSource;
|
|
26
28
|
getPhotoPlaceholder(): string;
|
|
27
29
|
getPhoto(): string;
|
|
28
30
|
}
|
|
@@ -5,15 +5,17 @@ import { IncomeSourceType } from '../../../models/income-source/income-source-ty
|
|
|
5
5
|
import { SalaryForecast } from '../../../models/income-source/salary-forecast';
|
|
6
6
|
import { IncomeSourceTypeEnum } from '../../../db/Enums/income-source-type.enum';
|
|
7
7
|
import { IncomeSource } from '../../../models/income-source/income-source';
|
|
8
|
+
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* Service to work with income sources
|
|
11
12
|
*/
|
|
12
|
-
export declare class IncomeSourceService extends RestService<IncomeSourceBase, IncomeSource> {
|
|
13
|
+
export declare class IncomeSourceService extends RestService<IncomeSourceBase, IncomeSource> implements IEventListener {
|
|
13
14
|
url: string;
|
|
14
15
|
modelClass: typeof IncomeSource;
|
|
15
16
|
incomeSourceTypes: IncomeSourceType[];
|
|
16
17
|
incomeSourceTypeSubject: ReplaySubject<IncomeSourceType[]>;
|
|
18
|
+
listenEvents(): void;
|
|
17
19
|
/**
|
|
18
20
|
* Get income sources tax calculation
|
|
19
21
|
* @param salaryForecast for which tax should be calculated
|
|
@@ -37,6 +39,10 @@ export declare class IncomeSourceService extends RestService<IncomeSourceBase, I
|
|
|
37
39
|
* Get other incomes types
|
|
38
40
|
*/
|
|
39
41
|
getIncomeSourceTypes(): Observable<IncomeSourceType[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Sole businesses create together with income source
|
|
44
|
+
*/
|
|
45
|
+
private listenSoleBusinessCreated;
|
|
40
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<IncomeSourceService, never>;
|
|
41
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<IncomeSourceService>;
|
|
42
48
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { RestService } from '../../rest/rest.service';
|
|
2
2
|
import { SoleBusiness as SoleBusinessBase } from '../../../../db/Models/sole/sole-business';
|
|
3
3
|
import { SoleBusiness } from '../../../../models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SoleBusinessService extends RestService<SoleBusinessBase, SoleBusiness> {
|
|
6
7
|
modelClass: typeof SoleBusiness;
|
|
7
8
|
url: string;
|
|
8
9
|
isHydra: boolean;
|
|
10
|
+
add(soleBusiness: SoleBusiness): Observable<SoleBusiness>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SoleBusinessService, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<SoleBusinessService>;
|
|
11
13
|
}
|