taxtank-core 0.32.105 → 0.32.106

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.
@@ -14,4 +14,5 @@ export declare class BankConnection extends ObservableModel {
14
14
  basiqJob?: BasiqJob;
15
15
  lastSuccessImportDate?: Date;
16
16
  provider?: BankProviderEnum;
17
+ expiryDate?: Date;
17
18
  }
@@ -1,4 +1,4 @@
1
- import { BankAccount } from '../../../models/bank/bank-account';
1
+ import { BankAccount } from '../../../models';
2
2
  import { AbstractForm } from '../../abstract.form';
3
3
  /**
4
4
  * Form for import multiple basiq bank accounts
@@ -2,9 +2,14 @@ import { BankConnection as BankConnectionBase } from '../../db/Models/bank/bank-
2
2
  import { BasiqJob } from './basiq';
3
3
  import { Bank } from './bank';
4
4
  export declare class BankConnection extends BankConnectionBase {
5
+ /**
6
+ * reminder to extend connection agreement
7
+ */
8
+ static expiryReminderDays: number;
5
9
  basiqJob: BasiqJob;
6
10
  bank: Bank;
7
11
  lastSuccessImportDate: Date;
12
+ expiryDate?: Date;
8
13
  isPending(): boolean;
9
14
  isActive(): boolean;
10
15
  isReconnecting(): boolean;
@@ -17,4 +22,6 @@ export declare class BankConnection extends BankConnectionBase {
17
22
  isAccountsRetrieved(): boolean;
18
23
  isJobFailed(): boolean;
19
24
  isTemporaryUnavailable(): boolean;
25
+ isExpiring(): boolean;
26
+ isExpired(): boolean;
20
27
  }
@@ -3,8 +3,9 @@ export declare class ClientDetails extends ClientDetailsBase {
3
3
  /**
4
4
  * reminder to sign basiq consent after x days before the expiration
5
5
  */
6
- static basiqReminderDays: number;
6
+ static consentExpiryReminderDays: number;
7
7
  get taxFileNumberMasked(): string;
8
8
  basiqConsentExpiryDate: Date;
9
9
  isBasiqConsentExpiring(): boolean;
10
+ isBasiqConsentExpired(): boolean;
10
11
  }
@@ -17,5 +17,7 @@ export declare enum BankConnectionMessagesEnum {
17
17
  LOGIN_SUCCESS = "Login success, importing financial data",
18
18
  ACCOUNTS_RETRIEVED = "Financial data received, you can add bank accounts now",
19
19
  JOB_ID_RECEIVED = "Receiving information from bank",
20
- TEMPORARY_UNAVAILABLE = "The bank is temporarily unavailable, please check back later"
20
+ TEMPORARY_UNAVAILABLE = "The bank is temporarily unavailable, please check back later",
21
+ EXPIRING = "Your annual consents to share the bank data with TaxTank will expire soon. To ensure uninterrupted access to your bank transactions and continue sharing data for another term, please extend the consent",
22
+ EXPIRED = "Your annual consents to share the bank data with TaxTank has expired. To ensure uninterrupted access to your bank transactions and continue sharing data for another term, please extend the consent"
21
23
  }
@@ -62,7 +62,12 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
62
62
  /**
63
63
  * redirect to basiq extend consent date to prolong it
64
64
  */
65
- extend(token: string): void;
65
+ extendConsent(token: string): void;
66
+ /**
67
+ * redirect to basiq extend connection date to prolong it
68
+ * @TODO TT-4230 &connectionId=${connection.id}
69
+ */
70
+ extendConnection(token: string, connection: BankConnection): void;
66
71
  /**
67
72
  * Open basiq consent ui to allow user to manage basiq access to his bank data
68
73
  * @param token User's basiq token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.105",
3
+ "version": "0.32.106",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",