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.
@@ -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
  */
@@ -19,6 +19,7 @@ export declare class ClientDetails {
19
19
  pensionersTax?: boolean;
20
20
  workingHolidayMaker?: ClientDetailsWorkingHolidayMakerEnum;
21
21
  dateOfBirth?: Date;
22
+ capitalLoss?: number;
22
23
  deletedAt?: Date;
23
24
  createdAt?: Date;
24
25
  updatedAt?: Date;
@@ -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
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
21
- getSubscription(): Observable<ServiceSubscription>;
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<void>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.8.0",
3
+ "version": "0.8.4",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
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';