taxtank-core 0.31.46 → 0.31.48

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.
@@ -11238,7 +11238,7 @@ class BasiqTokenService extends RestService$1 {
11238
11238
  * Access token to use basiq flow
11239
11239
  */
11240
11240
  get() {
11241
- if (this.cache && this.getCacheFirst().isExpired()) {
11241
+ if (this.getCacheFirst() && this.getCacheFirst().isExpired()) {
11242
11242
  this.cache = undefined;
11243
11243
  }
11244
11244
  return super.get();
@@ -15594,13 +15594,13 @@ class UserService extends RestService$1 {
15594
15594
  }
15595
15595
  updatePhoto(photo) {
15596
15596
  return this.http.post(`${this.apiUrl}/photo?_method=PUT`, photo).pipe(map((photoUrl) => {
15597
- this.setCache([Object.assign(this.cache, { photo: photoUrl })], true);
15597
+ this.setCache([Object.assign(this.getCacheFirst(), { photo: photoUrl })], true);
15598
15598
  }));
15599
15599
  }
15600
15600
  createBasiq() {
15601
15601
  return this.http.post(`${this.environment.apiV2}/basiq/user`, {})
15602
15602
  .pipe(map((basiqId) => {
15603
- this.setCache([Object.assign(this.cache, { basiqId })], true);
15603
+ this.setCache([Object.assign(this.getCacheFirst(), { basiqId })], true);
15604
15604
  return basiqId;
15605
15605
  }));
15606
15606
  }
@@ -19476,6 +19476,7 @@ const ENDPOINTS = {
19476
19476
  BASIQ_ACCOUNTS_GET: new Endpoint('GET', '\\/basiq\\/accounts'),
19477
19477
  BASIQ_TOKEN_GET: new Endpoint('GET', '\\/basiq\\/tokens'),
19478
19478
  BASIQ_DELETE: new Endpoint('PUT', '\\/bank-connections/\\d+\\/remove-basiq'),
19479
+ BASIQ_USER_POST: new Endpoint('POST', '\\/basiq\\/user'),
19479
19480
  BUDGETS_GET: new Endpoint('GET', '\\/budgets'),
19480
19481
  BUDGETS_POST: new Endpoint('POST', '\\/budgets'),
19481
19482
  BUDGETS_PUT: new Endpoint('PUT', '\\/budgets\\/\\d+'),