taxtank-core 2.1.33 → 2.1.35
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/fesm2022/taxtank-core.mjs +11 -6
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +5 -1
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import * as i1$1 from '@angular/common';
|
|
|
4
4
|
import { formatDate, DatePipe, CurrencyPipe, CommonModule as CommonModule$1 } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
7
|
-
import { map, filter, catchError, finalize, switchMap, first as first$1, take, tap, mergeMap, startWith, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
8
|
-
import { ReplaySubject, Subject, Observable, shareReplay, of, forkJoin, throwError, BehaviorSubject, concatMap, combineLatest, from, merge as merge$1 } from 'rxjs';
|
|
7
|
+
import { map, filter, catchError, finalize, switchMap, first as first$1, take, tap as tap$1, mergeMap, startWith, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
8
|
+
import { ReplaySubject, Subject, Observable, shareReplay, of, forkJoin, throwError, BehaviorSubject, tap, concatMap, combineLatest, from, merge as merge$1 } from 'rxjs';
|
|
9
9
|
import { instanceToInstance, plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import 'reflect-metadata';
|
|
@@ -5067,6 +5067,10 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
5067
5067
|
get promoCodeId() {
|
|
5068
5068
|
return this.promoCode?.id || null;
|
|
5069
5069
|
}
|
|
5070
|
+
/**
|
|
5071
|
+
* Date when the current one replaced the previous subscription model.
|
|
5072
|
+
*/
|
|
5073
|
+
static { this.modelChangeDate = new Date(Date.UTC(2026, 0, 1)); }
|
|
5070
5074
|
/**
|
|
5071
5075
|
* @TODO Vik rename to userPromoCode?
|
|
5072
5076
|
*/
|
|
@@ -13649,7 +13653,7 @@ var BasiqMessagesEnum;
|
|
|
13649
13653
|
(function (BasiqMessagesEnum) {
|
|
13650
13654
|
BasiqMessagesEnum["REVOKE_CONFIRM_TITLE"] = "Are you sure you want to revoke consent for bank feeds?";
|
|
13651
13655
|
BasiqMessagesEnum["REVOKE_CONFIRM_MESSAGE"] = "Revoking consent will stop live feeds and delete all historic bank feed data in TaxTank. This will impede the functionality of both bank feeds and equity graphs. This cannot be undone.";
|
|
13652
|
-
BasiqMessagesEnum["REVOKE_SUCCESS"] = "
|
|
13656
|
+
BasiqMessagesEnum["REVOKE_SUCCESS"] = "Your bank consent has been revoked. You can reconnect at any time. Transaction data will be removed during the next overnight sync.";
|
|
13653
13657
|
})(BasiqMessagesEnum || (BasiqMessagesEnum = {}));
|
|
13654
13658
|
|
|
13655
13659
|
/**
|
|
@@ -14033,7 +14037,8 @@ class BasiqUserService extends RestService$1 {
|
|
|
14033
14037
|
static { this.basiqApiUrl = 'https://au-api.basiq.io'; }
|
|
14034
14038
|
static { this.basiqConsentUrl = 'https://consent.basiq.io/home'; }
|
|
14035
14039
|
revokeConsent() {
|
|
14036
|
-
return this.http.put(`${this.environment.apiV2}/basiq-users/consents/revoke`, {})
|
|
14040
|
+
return this.http.put(`${this.environment.apiV2}/basiq-users/consents/revoke`, {})
|
|
14041
|
+
.pipe(tap(() => this.refreshCache()));
|
|
14037
14042
|
}
|
|
14038
14043
|
post(basiqUser = new BasiqUser()) {
|
|
14039
14044
|
return super.post(basiqUser);
|
|
@@ -18755,7 +18760,7 @@ class HoldingTradeImportService extends RestService$1 {
|
|
|
18755
18760
|
formData.append('file', file);
|
|
18756
18761
|
formData.append('exchangeId', exchangeId.toString());
|
|
18757
18762
|
formData.append('isTaxFree', (isTaxFree ? 1 : 0).toString());
|
|
18758
|
-
return this.importFile(formData).pipe(tap(() => this.toastService.success(HoldingTradeImportMessagesEnum.CREATED)));
|
|
18763
|
+
return this.importFile(formData).pipe(tap$1(() => this.toastService.success(HoldingTradeImportMessagesEnum.CREATED)));
|
|
18759
18764
|
}
|
|
18760
18765
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: HoldingTradeImportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18761
18766
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: HoldingTradeImportService, providedIn: 'root' }); }
|
|
@@ -22490,7 +22495,7 @@ const ENDPOINTS = {
|
|
|
22490
22495
|
BASIQ_TOKENS_GET: new Endpoint('GET', '\\/basiq-users\\/tokens'),
|
|
22491
22496
|
BASIQ_TOKEN_GET: new Endpoint('GET', '\\/basiq-users/\\d+\\/tokens'),
|
|
22492
22497
|
BASIQ_DELETE: new Endpoint('PUT', '\\/bank-connections/\\d+\\/remove-basiq'),
|
|
22493
|
-
BASIQ_CONSENT_REVOKE: new Endpoint('PUT', '\\/basiq-users
|
|
22498
|
+
BASIQ_CONSENT_REVOKE: new Endpoint('PUT', '\\/basiq-users\\/consents\\/revoke'),
|
|
22494
22499
|
BASIQ_USERS_GET: new Endpoint('GET', '\\/basiq-users'),
|
|
22495
22500
|
BASIQ_USERS_POST: new Endpoint('POST', '\\/basiq-users'),
|
|
22496
22501
|
BASIQ_USERS_PUT: new Endpoint('PUT', '\\/basiq-users\\/\\d+'),
|