taxtank-core 0.8.0 → 0.8.4
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 +61 -22
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection.js +7 -4
- package/esm2015/lib/collections/depreciation.collection.js +3 -3
- package/esm2015/lib/db/Models/client-details.js +1 -1
- package/esm2015/lib/models/bank/basiq-config.js +12 -0
- package/esm2015/lib/models/property/property.js +7 -4
- package/esm2015/lib/services/subscription/subscription.service.js +35 -16
- package/esm2015/public-api.js +2 -1
- package/fesm2015/taxtank-core.js +59 -23
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection.d.ts +2 -1
- package/lib/db/Models/client-details.d.ts +1 -0
- package/lib/models/bank/basiq-config.d.ts +17 -0
- package/lib/models/property/property.d.ts +1 -0
- package/lib/services/subscription/subscription.service.d.ts +9 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -6,7 +6,6 @@ export declare class Collection<Model extends object> implements Iterable<Model>
|
|
|
6
6
|
items: Model[];
|
|
7
7
|
constructor(items?: Model[]);
|
|
8
8
|
create(items?: Model[]): this;
|
|
9
|
-
getBy(field: string, value: any): this;
|
|
10
9
|
groupBy(path?: string): CollectionDictionary<Collection<Model>>;
|
|
11
10
|
indexBy(path: string): object;
|
|
12
11
|
/**
|
|
@@ -21,6 +20,8 @@ export declare class Collection<Model extends object> implements Iterable<Model>
|
|
|
21
20
|
* Get list of items ids
|
|
22
21
|
*/
|
|
23
22
|
getIds(): number[];
|
|
23
|
+
findBy(path: string, value: any): Model;
|
|
24
|
+
getBy(path: string, value: any): this;
|
|
24
25
|
/**
|
|
25
26
|
* Get single item by id
|
|
26
27
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class describe configuration options for basiq connect control
|
|
3
|
+
* https://www.npmjs.com/package/@basiq/basiq-connect-control
|
|
4
|
+
*/
|
|
5
|
+
export declare class BasiqConfig {
|
|
6
|
+
containerId: string;
|
|
7
|
+
token: string;
|
|
8
|
+
userID: string;
|
|
9
|
+
connectLinkId: string;
|
|
10
|
+
upload: boolean;
|
|
11
|
+
connect: boolean;
|
|
12
|
+
companyName: string;
|
|
13
|
+
regionOfInstitutions: string;
|
|
14
|
+
hideTestBanks: boolean;
|
|
15
|
+
hideBetaBanks: boolean;
|
|
16
|
+
constructor(options: object);
|
|
17
|
+
}
|
|
@@ -80,6 +80,7 @@ export declare class Property extends PropertyBase implements Photoable, Documen
|
|
|
80
80
|
* tax exemption can reduce cgt from 100% to less (up to zero)
|
|
81
81
|
*/
|
|
82
82
|
getCGTExemptionRatio(sale: PropertySale): number;
|
|
83
|
+
isOneYearExemptionApplicable(sale: PropertySale): boolean;
|
|
83
84
|
/**
|
|
84
85
|
* ownership duration from purchase till sale
|
|
85
86
|
*/
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
3
3
|
import { ServiceSubscriptionCollection } from '../../collections/service-subscription.collection';
|
|
4
4
|
import { ServiceSubscription } from '../../models/service-subscription/service-subscription';
|
|
5
5
|
import { ServicePayment } from '../../models/service-subscription/service-payment';
|
|
6
6
|
import { EventDispatcherService } from '../event/event-dispatcher.service';
|
|
7
7
|
import { ServiceSubscriptionItem } from '../../models/service-subscription/service-subscription-item';
|
|
8
|
+
import { SseService } from '../event/sse.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class SubscriptionService {
|
|
10
11
|
private http;
|
|
11
12
|
private eventDispatcherService;
|
|
13
|
+
private sseService;
|
|
12
14
|
private environment;
|
|
13
15
|
_serviceSubscription: ServiceSubscription;
|
|
14
16
|
serviceSubscriptionSubject: ReplaySubject<ServiceSubscription>;
|
|
@@ -17,8 +19,10 @@ export declare class SubscriptionService {
|
|
|
17
19
|
stripe: any;
|
|
18
20
|
servicePaymentsSubject: ReplaySubject<ServicePayment[]>;
|
|
19
21
|
_servicePayments: ServicePayment[];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
subscriptionChangeSubject: BehaviorSubject<ServiceSubscription>;
|
|
23
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
|
|
24
|
+
listenEvents(): void;
|
|
25
|
+
getSubscription(force?: boolean): Observable<ServiceSubscription>;
|
|
22
26
|
/**
|
|
23
27
|
* @TODO right now we have only monthly prices, the function should be refactored to support other options in future
|
|
24
28
|
*
|
|
@@ -41,7 +45,8 @@ export declare class SubscriptionService {
|
|
|
41
45
|
/**
|
|
42
46
|
* Change subscription plan
|
|
43
47
|
*/
|
|
44
|
-
changeSubscription(items: ServiceSubscriptionItem[]): Observable<
|
|
48
|
+
changeSubscription(items: ServiceSubscriptionItem[]): Observable<object>;
|
|
49
|
+
private listenSubscriptions;
|
|
45
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
|
|
46
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
|
|
47
52
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from './lib/models/bank/bank-connection';
|
|
|
130
130
|
export * from './lib/models/bank/bank-transaction';
|
|
131
131
|
export * from './lib/models/bank/bank-transaction-chart-data';
|
|
132
132
|
export * from './lib/models/bank/bank-transaction-summary-fields.enum';
|
|
133
|
+
export * from './lib/models/bank/basiq-config';
|
|
133
134
|
export * from './lib/models/bank/basiq-job';
|
|
134
135
|
export * from './lib/models/bank/basiq-token';
|
|
135
136
|
export * from './lib/models/bank/type-loan.const';
|