taxtank-core 0.30.89 → 0.30.91
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/esm2020/lib/db/Enums/bank/bank-connection-status.enum.mjs +1 -3
- package/esm2020/lib/forms/holding/holding-reinvest.form.mjs +3 -5
- package/esm2020/lib/models/bank/bank-connection.mjs +4 -7
- package/esm2020/lib/services/http/bank/basiq/basiq-messages.enum.mjs +4 -3
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +5 -2
- package/fesm2015/taxtank-core.mjs +12 -13
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +12 -13
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -3
- package/lib/models/bank/bank-connection.d.ts +1 -2
- package/lib/services/http/bank/basiq/basiq-messages.enum.d.ts +3 -2
- package/lib/services/http/bank/basiq/basiq.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -892,9 +892,7 @@ var BankConnectionStatusEnum;
|
|
|
892
892
|
(function (BankConnectionStatusEnum) {
|
|
893
893
|
BankConnectionStatusEnum[BankConnectionStatusEnum["PENDING"] = 1] = "PENDING";
|
|
894
894
|
BankConnectionStatusEnum[BankConnectionStatusEnum["ACTIVE"] = 2] = "ACTIVE";
|
|
895
|
-
BankConnectionStatusEnum[BankConnectionStatusEnum["INVALID"] = 3] = "INVALID";
|
|
896
895
|
BankConnectionStatusEnum[BankConnectionStatusEnum["RECONNECTING"] = 4] = "RECONNECTING";
|
|
897
|
-
BankConnectionStatusEnum[BankConnectionStatusEnum["INACTIVE"] = 5] = "INACTIVE";
|
|
898
896
|
})(BankConnectionStatusEnum || (BankConnectionStatusEnum = {}));
|
|
899
897
|
|
|
900
898
|
var BankPopularEnum;
|
|
@@ -7852,17 +7850,14 @@ var BasiqJobStepEnum;
|
|
|
7852
7850
|
})(BasiqJobStepEnum || (BasiqJobStepEnum = {}));
|
|
7853
7851
|
|
|
7854
7852
|
class BankConnection extends BankConnection$1 {
|
|
7855
|
-
isDisconnected() {
|
|
7856
|
-
return [BankConnectionStatusEnum.INVALID, BankConnectionStatusEnum.RECONNECTING].includes(this.status);
|
|
7857
|
-
}
|
|
7858
7853
|
isPending() {
|
|
7859
7854
|
return this.status === BankConnectionStatusEnum.PENDING;
|
|
7860
7855
|
}
|
|
7861
7856
|
isActive() {
|
|
7862
7857
|
return this.status === BankConnectionStatusEnum.ACTIVE;
|
|
7863
7858
|
}
|
|
7864
|
-
|
|
7865
|
-
return this.status === BankConnectionStatusEnum.
|
|
7859
|
+
isReconnecting() {
|
|
7860
|
+
return this.status === BankConnectionStatusEnum.RECONNECTING;
|
|
7866
7861
|
}
|
|
7867
7862
|
setPending() {
|
|
7868
7863
|
this.status = BankConnectionStatusEnum.PENDING;
|
|
@@ -7877,7 +7872,7 @@ class BankConnection extends BankConnection$1 {
|
|
|
7877
7872
|
return this.provider === BankProviderEnum.MANUAL && this.bank.provider !== BankProviderEnum.MANUAL;
|
|
7878
7873
|
}
|
|
7879
7874
|
isOpenBankingAvailable() {
|
|
7880
|
-
return this.provider === BankProviderEnum.WEB_SCRAPPER && this.bank.provider === BankProviderEnum.OPEN_BANKING && !this.
|
|
7875
|
+
return this.provider === BankProviderEnum.WEB_SCRAPPER && this.bank.provider === BankProviderEnum.OPEN_BANKING && !this.isReconnecting();
|
|
7881
7876
|
}
|
|
7882
7877
|
isLoginSuccess() {
|
|
7883
7878
|
return this.basiqJob?.step > BasiqJobStepEnum.VERIFY_CREDENTIALS;
|
|
@@ -10136,13 +10131,16 @@ class BasiqService extends RestService$1 {
|
|
|
10136
10131
|
* used for upgrade to openBanking and manage shared bank accounts flow
|
|
10137
10132
|
*/
|
|
10138
10133
|
deleteBasiq(connection) {
|
|
10139
|
-
return this.http.put(`${this.environment.apiV2}/bank-connections/${connection.id}/remove-basiq`,
|
|
10134
|
+
return this.http.put(`${this.environment.apiV2}/bank-connections/${connection.id}/remove-basiq`, {})
|
|
10140
10135
|
.pipe(map((connection) => {
|
|
10141
10136
|
return connection;
|
|
10142
10137
|
// @TODO Alex token should be inside this service
|
|
10143
10138
|
// this.redirectToBasiqConsent(token.value, connection.bank.externalId, true);
|
|
10144
10139
|
}));
|
|
10145
10140
|
}
|
|
10141
|
+
revokeConsent() {
|
|
10142
|
+
return this.http.delete(`${this.environment.apiV2}/basiq/consent`);
|
|
10143
|
+
}
|
|
10146
10144
|
/**
|
|
10147
10145
|
* Open basiq consent ui to allow user to log in to bank
|
|
10148
10146
|
* @param token User's basiq token
|
|
@@ -12329,8 +12327,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
12329
12327
|
|
|
12330
12328
|
var BasiqMessagesEnum;
|
|
12331
12329
|
(function (BasiqMessagesEnum) {
|
|
12332
|
-
BasiqMessagesEnum["REVOKE_CONFIRM_TITLE"] = "Are you sure you want to
|
|
12333
|
-
BasiqMessagesEnum["REVOKE_CONFIRM_MESSAGE"] = "
|
|
12330
|
+
BasiqMessagesEnum["REVOKE_CONFIRM_TITLE"] = "Are you sure you want to revoke consent for bank feeds?";
|
|
12331
|
+
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.";
|
|
12332
|
+
BasiqMessagesEnum["REVOKE_SUCCESS"] = "Consent to bank feeds has been revoked.";
|
|
12334
12333
|
})(BasiqMessagesEnum || (BasiqMessagesEnum = {}));
|
|
12335
12334
|
|
|
12336
12335
|
/**
|
|
@@ -20716,9 +20715,9 @@ class HoldingReinvestForm extends AbstractForm {
|
|
|
20716
20715
|
* @TODO Alex (TT-2847): attach file to both (transaction and holding) when files system refactored
|
|
20717
20716
|
*/
|
|
20718
20717
|
submit() {
|
|
20719
|
-
return
|
|
20718
|
+
return super.submit({
|
|
20720
20719
|
transaction: this.transactionForm.submit({ type: TransactionTypeEnum.CREDIT }),
|
|
20721
|
-
holding: this.holdingForm.submit(
|
|
20720
|
+
holding: this.holdingForm.submit()
|
|
20722
20721
|
});
|
|
20723
20722
|
}
|
|
20724
20723
|
}
|