taxtank-core 2.0.109 → 2.0.110
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 +4 -7
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/package.json +1 -1
|
@@ -13294,9 +13294,6 @@ class BasiqUserService extends RestService$1 {
|
|
|
13294
13294
|
post(basiqUser = new BasiqUser()) {
|
|
13295
13295
|
return super.post(basiqUser);
|
|
13296
13296
|
}
|
|
13297
|
-
getWithToken(basiqUserId) {
|
|
13298
|
-
return this.findBy('id', basiqUserId).pipe(concatMap(user => this.basiqTokenService.getOne(user.id).pipe(map(token => ({ user, token: token.value })))));
|
|
13299
|
-
}
|
|
13300
13297
|
retrieveJob(jobId, basiqUserId) {
|
|
13301
13298
|
return this.basiqTokenService.getOne(basiqUserId).pipe(concatMap(token => {
|
|
13302
13299
|
const headers = new HttpHeaders({ Authorization: 'Bearer ' + token.value });
|
|
@@ -13309,9 +13306,9 @@ class BasiqUserService extends RestService$1 {
|
|
|
13309
13306
|
*/
|
|
13310
13307
|
redirectToBasiqConsent(bankId, basiqUserId) {
|
|
13311
13308
|
const user$ = basiqUserId ? this.findBy('id', basiqUserId) : this.post();
|
|
13312
|
-
return user$.pipe(filter(user => !!user), concatMap(user => this.basiqTokenService.getOne(user.id).pipe(map(token => ({ user, token: token
|
|
13309
|
+
return user$.pipe(filter(user => !!user), concatMap(user => this.basiqTokenService.getOne(user.id).pipe(map(token => ({ user, token: token })))), map(({ user, token }) => {
|
|
13313
13310
|
const url = new URL(BasiqUserService.basiqConsentUrl);
|
|
13314
|
-
url.searchParams.set('token', token);
|
|
13311
|
+
url.searchParams.set('token', token.value);
|
|
13315
13312
|
url.searchParams.set('institutionId', bankId);
|
|
13316
13313
|
url.searchParams.set('state', user.id);
|
|
13317
13314
|
if (user.consentId) {
|
|
@@ -13333,7 +13330,7 @@ class BasiqUserService extends RestService$1 {
|
|
|
13333
13330
|
*/
|
|
13334
13331
|
extendConsent(basiqUserId) {
|
|
13335
13332
|
return this.basiqTokenService.getOne(basiqUserId).pipe(map(token => {
|
|
13336
|
-
window.location.replace(`${BasiqUserService.basiqConsentUrl}?token=${token}&action=extend`);
|
|
13333
|
+
window.location.replace(`${BasiqUserService.basiqConsentUrl}?token=${token.value}&action=extend`);
|
|
13337
13334
|
}));
|
|
13338
13335
|
}
|
|
13339
13336
|
/**
|
|
@@ -13341,7 +13338,7 @@ class BasiqUserService extends RestService$1 {
|
|
|
13341
13338
|
*/
|
|
13342
13339
|
reauthoriseConnection(connection) {
|
|
13343
13340
|
return this.basiqTokenService.getOne(connection.basiqUser.id).pipe(map(token => {
|
|
13344
|
-
let url = `${BasiqUserService.basiqConsentUrl}?token=${token}&action=reauthorise`;
|
|
13341
|
+
let url = `${BasiqUserService.basiqConsentUrl}?token=${token.value}&action=reauthorise`;
|
|
13345
13342
|
if (connection.isExpiring()) {
|
|
13346
13343
|
url += `&connectionId=${connection.externalId}`;
|
|
13347
13344
|
}
|