@marqeta/ux-toolkit-sdk-javascript 2.1.0 → 2.2.1
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/dist/index.d.mts +153 -34
- package/dist/index.d.ts +153 -34
- package/dist/index.js +367 -19
- package/dist/index.mjs +340 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -579,12 +579,18 @@ __export(src_exports, {
|
|
|
579
579
|
CleanupOnUnload: function() {
|
|
580
580
|
return CleanupOnUnload;
|
|
581
581
|
},
|
|
582
|
+
ConsentAction: function() {
|
|
583
|
+
return ConsentAction;
|
|
584
|
+
},
|
|
582
585
|
ConsentPaymentScope: function() {
|
|
583
586
|
return ConsentPaymentScope;
|
|
584
587
|
},
|
|
585
588
|
ConsentPaymentType: function() {
|
|
586
589
|
return ConsentPaymentType;
|
|
587
590
|
},
|
|
591
|
+
ConsentPermissionType: function() {
|
|
592
|
+
return ConsentPermissionType;
|
|
593
|
+
},
|
|
588
594
|
ConsentScope: function() {
|
|
589
595
|
return ConsentScope;
|
|
590
596
|
},
|
|
@@ -1119,6 +1125,9 @@ __export(src_exports, {
|
|
|
1119
1125
|
RetrieveDocumentForDispute: function() {
|
|
1120
1126
|
return RetrieveDocumentForDispute;
|
|
1121
1127
|
},
|
|
1128
|
+
RevokeConsentStatus: function() {
|
|
1129
|
+
return RevokeConsentStatus;
|
|
1130
|
+
},
|
|
1122
1131
|
SESSION_TTL: function() {
|
|
1123
1132
|
return SESSION_TTL;
|
|
1124
1133
|
},
|
|
@@ -1428,6 +1437,9 @@ __export(src_exports, {
|
|
|
1428
1437
|
getConsentById: function() {
|
|
1429
1438
|
return getConsentById;
|
|
1430
1439
|
},
|
|
1440
|
+
getConsents: function() {
|
|
1441
|
+
return getConsents;
|
|
1442
|
+
},
|
|
1431
1443
|
getExternalAccount: function() {
|
|
1432
1444
|
return getExternalAccount;
|
|
1433
1445
|
},
|
|
@@ -1461,6 +1473,9 @@ __export(src_exports, {
|
|
|
1461
1473
|
getTransferByToken: function() {
|
|
1462
1474
|
return getTransferByToken;
|
|
1463
1475
|
},
|
|
1476
|
+
getTransfers: function() {
|
|
1477
|
+
return getTransfers;
|
|
1478
|
+
},
|
|
1464
1479
|
getUserProgram: function() {
|
|
1465
1480
|
return getUserProgram;
|
|
1466
1481
|
},
|
|
@@ -1713,6 +1728,9 @@ __export(src_exports, {
|
|
|
1713
1728
|
replaceWlaCard: function() {
|
|
1714
1729
|
return replaceWlaCard;
|
|
1715
1730
|
},
|
|
1731
|
+
revokeConsent: function() {
|
|
1732
|
+
return revokeConsent;
|
|
1733
|
+
},
|
|
1716
1734
|
sandbox: function() {
|
|
1717
1735
|
return sandbox_exports;
|
|
1718
1736
|
},
|
|
@@ -1761,6 +1779,9 @@ __export(src_exports, {
|
|
|
1761
1779
|
transactionsIOCModule: function() {
|
|
1762
1780
|
return transactionsIOCModule;
|
|
1763
1781
|
},
|
|
1782
|
+
updateConsentStatus: function() {
|
|
1783
|
+
return updateConsentStatus;
|
|
1784
|
+
},
|
|
1764
1785
|
updateExternalAccount: function() {
|
|
1765
1786
|
return updateExternalAccount;
|
|
1766
1787
|
},
|
|
@@ -19308,26 +19329,26 @@ var ShippingMethodEnum;
|
|
|
19308
19329
|
// src/wla/base/types/ConsentResponse.ts
|
|
19309
19330
|
var ConsentStatus;
|
|
19310
19331
|
(function(ConsentStatus2) {
|
|
19311
|
-
ConsentStatus2["AUTHORISED"] = "
|
|
19312
|
-
ConsentStatus2["REJECTED"] = "
|
|
19313
|
-
ConsentStatus2["AWAITING_AUTHORISATION"] = "
|
|
19314
|
-
ConsentStatus2["REVOKED"] = "
|
|
19315
|
-
ConsentStatus2["CONSUMED"] = "
|
|
19332
|
+
ConsentStatus2["AUTHORISED"] = "authorised";
|
|
19333
|
+
ConsentStatus2["REJECTED"] = "rejected";
|
|
19334
|
+
ConsentStatus2["AWAITING_AUTHORISATION"] = "awaiting-authorisation";
|
|
19335
|
+
ConsentStatus2["REVOKED"] = "revoked";
|
|
19336
|
+
ConsentStatus2["CONSUMED"] = "consumed";
|
|
19316
19337
|
})(ConsentStatus || (ConsentStatus = {}));
|
|
19317
19338
|
var ConsentScope;
|
|
19318
19339
|
(function(ConsentScope2) {
|
|
19319
|
-
ConsentScope2["ACCOUNTS"] = "
|
|
19320
|
-
ConsentScope2["PAYMENTS"] = "
|
|
19340
|
+
ConsentScope2["ACCOUNTS"] = "accounts";
|
|
19341
|
+
ConsentScope2["PAYMENTS"] = "payments";
|
|
19321
19342
|
})(ConsentScope || (ConsentScope = {}));
|
|
19322
19343
|
var ConsentPaymentScope;
|
|
19323
19344
|
(function(ConsentPaymentScope2) {
|
|
19324
|
-
ConsentPaymentScope2["DOMESTIC"] = "
|
|
19325
|
-
ConsentPaymentScope2["INTERNATIONAL"] = "
|
|
19345
|
+
ConsentPaymentScope2["DOMESTIC"] = "domestic";
|
|
19346
|
+
ConsentPaymentScope2["INTERNATIONAL"] = "international";
|
|
19326
19347
|
})(ConsentPaymentScope || (ConsentPaymentScope = {}));
|
|
19327
19348
|
var ConsentPaymentType;
|
|
19328
19349
|
(function(ConsentPaymentType2) {
|
|
19329
|
-
ConsentPaymentType2["STANDARD"] = "
|
|
19330
|
-
ConsentPaymentType2["SCHEDULED"] = "
|
|
19350
|
+
ConsentPaymentType2["STANDARD"] = "standard";
|
|
19351
|
+
ConsentPaymentType2["SCHEDULED"] = "scheduled";
|
|
19331
19352
|
})(ConsentPaymentType || (ConsentPaymentType = {}));
|
|
19332
19353
|
// src/wla/base/types/ExternalAccountListRequest.ts
|
|
19333
19354
|
var ExternalAccountStatus;
|
|
@@ -19410,6 +19431,20 @@ var ReplaceCardRequestReasonEnum;
|
|
|
19410
19431
|
ReplaceCardRequestReasonEnum2["Stolen"] = "STOLEN";
|
|
19411
19432
|
ReplaceCardRequestReasonEnum2["Damaged"] = "DAMAGED";
|
|
19412
19433
|
})(ReplaceCardRequestReasonEnum || (ReplaceCardRequestReasonEnum = {}));
|
|
19434
|
+
// src/wla/base/types/RevokeConsentResponse.ts
|
|
19435
|
+
var RevokeConsentStatus;
|
|
19436
|
+
(function(RevokeConsentStatus2) {
|
|
19437
|
+
RevokeConsentStatus2["AUTHORISED"] = "authorised";
|
|
19438
|
+
RevokeConsentStatus2["REJECTED"] = "rejected";
|
|
19439
|
+
RevokeConsentStatus2["AWAITING_AUTHORISATION"] = "awaiting-authorisation";
|
|
19440
|
+
RevokeConsentStatus2["REVOKED"] = "revoked";
|
|
19441
|
+
RevokeConsentStatus2["CONSUMED"] = "consumed";
|
|
19442
|
+
})(RevokeConsentStatus || (RevokeConsentStatus = {}));
|
|
19443
|
+
var ConsentPermissionType;
|
|
19444
|
+
(function(ConsentPermissionType2) {
|
|
19445
|
+
ConsentPermissionType2["GB"] = "GB";
|
|
19446
|
+
ConsentPermissionType2["EU"] = "EU";
|
|
19447
|
+
})(ConsentPermissionType || (ConsentPermissionType = {}));
|
|
19413
19448
|
// src/wla/base/types/TransactionListResponse.ts
|
|
19414
19449
|
var TransactionStatus;
|
|
19415
19450
|
(function(TransactionStatus2) {
|
|
@@ -19456,6 +19491,13 @@ var TransactionDetailResponseIconTypeEnum;
|
|
|
19456
19491
|
TransactionDetailResponseIconTypeEnum2["MoneyIn"] = "MONEY_IN";
|
|
19457
19492
|
TransactionDetailResponseIconTypeEnum2["MoneyOut"] = "MONEY_OUT";
|
|
19458
19493
|
})(TransactionDetailResponseIconTypeEnum || (TransactionDetailResponseIconTypeEnum = {}));
|
|
19494
|
+
// src/wla/base/types/UpdateConsentStatusRequest.ts
|
|
19495
|
+
var ConsentAction;
|
|
19496
|
+
(function(ConsentAction2) {
|
|
19497
|
+
ConsentAction2["APPROVE"] = "approve";
|
|
19498
|
+
ConsentAction2["REVOKE"] = "revoke";
|
|
19499
|
+
ConsentAction2["REJECT"] = "reject";
|
|
19500
|
+
})(ConsentAction || (ConsentAction = {}));
|
|
19459
19501
|
// src/wla/base/types/UserResponse.ts
|
|
19460
19502
|
var LoyaltyTier;
|
|
19461
19503
|
(function(LoyaltyTier2) {
|
|
@@ -20689,7 +20731,8 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
20689
20731
|
},
|
|
20690
20732
|
{
|
|
20691
20733
|
key: "getConsentById",
|
|
20692
|
-
value: function getConsentById(id
|
|
20734
|
+
value: function getConsentById(id) {
|
|
20735
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
20693
20736
|
var _this = this;
|
|
20694
20737
|
return _async_to_generator(function() {
|
|
20695
20738
|
var cuiApiBaseUrl, path, params, error2;
|
|
@@ -20730,7 +20773,8 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
20730
20773
|
},
|
|
20731
20774
|
{
|
|
20732
20775
|
key: "getTransferByToken",
|
|
20733
|
-
value: function getTransferByToken(token
|
|
20776
|
+
value: function getTransferByToken(token) {
|
|
20777
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
20734
20778
|
var _this = this;
|
|
20735
20779
|
return _async_to_generator(function() {
|
|
20736
20780
|
var cuiApiBaseUrl, path, params, error2;
|
|
@@ -20768,6 +20812,183 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
20768
20812
|
});
|
|
20769
20813
|
})();
|
|
20770
20814
|
}
|
|
20815
|
+
},
|
|
20816
|
+
{
|
|
20817
|
+
key: "getConsents",
|
|
20818
|
+
value: function getConsents(userId) {
|
|
20819
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
20820
|
+
var _this = this;
|
|
20821
|
+
return _async_to_generator(function() {
|
|
20822
|
+
var queryParams, cuiApiBaseUrl, path, params, error2;
|
|
20823
|
+
return _ts_generator(this, function(_state) {
|
|
20824
|
+
switch(_state.label){
|
|
20825
|
+
case 0:
|
|
20826
|
+
_state.trys.push([
|
|
20827
|
+
0,
|
|
20828
|
+
2,
|
|
20829
|
+
,
|
|
20830
|
+
3
|
|
20831
|
+
]);
|
|
20832
|
+
queryParams = new URLSearchParams({
|
|
20833
|
+
userId: userId
|
|
20834
|
+
});
|
|
20835
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20836
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents?").concat(queryParams.toString());
|
|
20837
|
+
params = {
|
|
20838
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
20839
|
+
};
|
|
20840
|
+
return [
|
|
20841
|
+
4,
|
|
20842
|
+
_this.httpClient.get(path, params)
|
|
20843
|
+
];
|
|
20844
|
+
case 1:
|
|
20845
|
+
return [
|
|
20846
|
+
2,
|
|
20847
|
+
_state.sent()
|
|
20848
|
+
];
|
|
20849
|
+
case 2:
|
|
20850
|
+
error2 = _state.sent();
|
|
20851
|
+
throw new MqSDKError("Unable to get consents", error2);
|
|
20852
|
+
case 3:
|
|
20853
|
+
return [
|
|
20854
|
+
2
|
|
20855
|
+
];
|
|
20856
|
+
}
|
|
20857
|
+
});
|
|
20858
|
+
})();
|
|
20859
|
+
}
|
|
20860
|
+
},
|
|
20861
|
+
{
|
|
20862
|
+
key: "getTransfers",
|
|
20863
|
+
value: function getTransfers() {
|
|
20864
|
+
var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
|
|
20865
|
+
var _this = this;
|
|
20866
|
+
return _async_to_generator(function() {
|
|
20867
|
+
var cuiApiBaseUrl, path, params, error2;
|
|
20868
|
+
return _ts_generator(this, function(_state) {
|
|
20869
|
+
switch(_state.label){
|
|
20870
|
+
case 0:
|
|
20871
|
+
_state.trys.push([
|
|
20872
|
+
0,
|
|
20873
|
+
2,
|
|
20874
|
+
,
|
|
20875
|
+
3
|
|
20876
|
+
]);
|
|
20877
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20878
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
|
|
20879
|
+
params = {
|
|
20880
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
20881
|
+
};
|
|
20882
|
+
return [
|
|
20883
|
+
4,
|
|
20884
|
+
_this.httpClient.get(path, params)
|
|
20885
|
+
];
|
|
20886
|
+
case 1:
|
|
20887
|
+
return [
|
|
20888
|
+
2,
|
|
20889
|
+
_state.sent()
|
|
20890
|
+
];
|
|
20891
|
+
case 2:
|
|
20892
|
+
error2 = _state.sent();
|
|
20893
|
+
throw new MqSDKError("Unable to get transfers", error2);
|
|
20894
|
+
case 3:
|
|
20895
|
+
return [
|
|
20896
|
+
2
|
|
20897
|
+
];
|
|
20898
|
+
}
|
|
20899
|
+
});
|
|
20900
|
+
})();
|
|
20901
|
+
}
|
|
20902
|
+
},
|
|
20903
|
+
{
|
|
20904
|
+
key: "updateConsentStatus",
|
|
20905
|
+
value: function updateConsentStatus(id) {
|
|
20906
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
|
|
20907
|
+
var _this = this;
|
|
20908
|
+
return _async_to_generator(function() {
|
|
20909
|
+
var cuiApiBaseUrl, params, path, data, error2;
|
|
20910
|
+
return _ts_generator(this, function(_state) {
|
|
20911
|
+
switch(_state.label){
|
|
20912
|
+
case 0:
|
|
20913
|
+
_state.trys.push([
|
|
20914
|
+
0,
|
|
20915
|
+
2,
|
|
20916
|
+
,
|
|
20917
|
+
3
|
|
20918
|
+
]);
|
|
20919
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20920
|
+
params = {
|
|
20921
|
+
method: "PATCH",
|
|
20922
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
20923
|
+
body: JSON.stringify(requestBody)
|
|
20924
|
+
};
|
|
20925
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
20926
|
+
return [
|
|
20927
|
+
4,
|
|
20928
|
+
_this.httpClient.patch(path, params)
|
|
20929
|
+
];
|
|
20930
|
+
case 1:
|
|
20931
|
+
data = _state.sent();
|
|
20932
|
+
return [
|
|
20933
|
+
2,
|
|
20934
|
+
data
|
|
20935
|
+
];
|
|
20936
|
+
case 2:
|
|
20937
|
+
error2 = _state.sent();
|
|
20938
|
+
throw new MqSDKError("Unable to update consent status", error2);
|
|
20939
|
+
case 3:
|
|
20940
|
+
return [
|
|
20941
|
+
2
|
|
20942
|
+
];
|
|
20943
|
+
}
|
|
20944
|
+
});
|
|
20945
|
+
})();
|
|
20946
|
+
}
|
|
20947
|
+
},
|
|
20948
|
+
{
|
|
20949
|
+
key: "revokeConsent",
|
|
20950
|
+
value: function revokeConsent(id) {
|
|
20951
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
|
|
20952
|
+
var _this = this;
|
|
20953
|
+
return _async_to_generator(function() {
|
|
20954
|
+
var cuiApiBaseUrl, params, path, data, error2;
|
|
20955
|
+
return _ts_generator(this, function(_state) {
|
|
20956
|
+
switch(_state.label){
|
|
20957
|
+
case 0:
|
|
20958
|
+
_state.trys.push([
|
|
20959
|
+
0,
|
|
20960
|
+
2,
|
|
20961
|
+
,
|
|
20962
|
+
3
|
|
20963
|
+
]);
|
|
20964
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20965
|
+
params = {
|
|
20966
|
+
method: "PATCH",
|
|
20967
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
20968
|
+
body: JSON.stringify(requestBody)
|
|
20969
|
+
};
|
|
20970
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
|
|
20971
|
+
return [
|
|
20972
|
+
4,
|
|
20973
|
+
_this.httpClient.patch(path, params)
|
|
20974
|
+
];
|
|
20975
|
+
case 1:
|
|
20976
|
+
data = _state.sent();
|
|
20977
|
+
return [
|
|
20978
|
+
2,
|
|
20979
|
+
data
|
|
20980
|
+
];
|
|
20981
|
+
case 2:
|
|
20982
|
+
error2 = _state.sent();
|
|
20983
|
+
throw new MqSDKError("Unable to revoke consent status", error2);
|
|
20984
|
+
case 3:
|
|
20985
|
+
return [
|
|
20986
|
+
2
|
|
20987
|
+
];
|
|
20988
|
+
}
|
|
20989
|
+
});
|
|
20990
|
+
})();
|
|
20991
|
+
}
|
|
20771
20992
|
}
|
|
20772
20993
|
]);
|
|
20773
20994
|
return _RestWlaService;
|
|
@@ -20971,16 +21192,18 @@ function _getAccountTransactions() {
|
|
|
20971
21192
|
return _getAccountTransactions.apply(this, arguments);
|
|
20972
21193
|
}
|
|
20973
21194
|
__name(getAccountTransactions, "getAccountTransactions");
|
|
20974
|
-
function getConsentById(id
|
|
21195
|
+
function getConsentById(id) {
|
|
20975
21196
|
return _getConsentById.apply(this, arguments);
|
|
20976
21197
|
}
|
|
20977
21198
|
function _getConsentById() {
|
|
20978
21199
|
_getConsentById = // src/wla/base/interactors/getConsentById.ts
|
|
20979
|
-
_async_to_generator(function(id
|
|
20980
|
-
var container2, wlaService;
|
|
21200
|
+
_async_to_generator(function(id) {
|
|
21201
|
+
var country_code, container2, wlaService;
|
|
21202
|
+
var _arguments = arguments;
|
|
20981
21203
|
return _ts_generator(this, function(_state) {
|
|
20982
21204
|
switch(_state.label){
|
|
20983
21205
|
case 0:
|
|
21206
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
|
|
20984
21207
|
container2 = getActiveIocContainer();
|
|
20985
21208
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
20986
21209
|
return [
|
|
@@ -20998,6 +21221,35 @@ function _getConsentById() {
|
|
|
20998
21221
|
return _getConsentById.apply(this, arguments);
|
|
20999
21222
|
}
|
|
21000
21223
|
__name(getConsentById, "getConsentById");
|
|
21224
|
+
function getConsents(userId) {
|
|
21225
|
+
return _getConsents.apply(this, arguments);
|
|
21226
|
+
}
|
|
21227
|
+
function _getConsents() {
|
|
21228
|
+
_getConsents = // src/wla/base/interactors/getConsents.ts
|
|
21229
|
+
_async_to_generator(function(userId) {
|
|
21230
|
+
var country_code, container2, wlaService;
|
|
21231
|
+
var _arguments = arguments;
|
|
21232
|
+
return _ts_generator(this, function(_state) {
|
|
21233
|
+
switch(_state.label){
|
|
21234
|
+
case 0:
|
|
21235
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
|
|
21236
|
+
container2 = getActiveIocContainer();
|
|
21237
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21238
|
+
return [
|
|
21239
|
+
4,
|
|
21240
|
+
wlaService.getConsents(userId, country_code)
|
|
21241
|
+
];
|
|
21242
|
+
case 1:
|
|
21243
|
+
return [
|
|
21244
|
+
2,
|
|
21245
|
+
_state.sent()
|
|
21246
|
+
];
|
|
21247
|
+
}
|
|
21248
|
+
});
|
|
21249
|
+
});
|
|
21250
|
+
return _getConsents.apply(this, arguments);
|
|
21251
|
+
}
|
|
21252
|
+
__name(getConsents, "getConsents");
|
|
21001
21253
|
function getExternalAccount(token) {
|
|
21002
21254
|
return _getExternalAccount.apply(this, arguments);
|
|
21003
21255
|
}
|
|
@@ -21119,16 +21371,18 @@ function _getOutagesList() {
|
|
|
21119
21371
|
return _getOutagesList.apply(this, arguments);
|
|
21120
21372
|
}
|
|
21121
21373
|
__name(getOutagesList, "getOutagesList");
|
|
21122
|
-
function getTransferByToken(token
|
|
21374
|
+
function getTransferByToken(token) {
|
|
21123
21375
|
return _getTransferByToken.apply(this, arguments);
|
|
21124
21376
|
}
|
|
21125
21377
|
function _getTransferByToken() {
|
|
21126
21378
|
_getTransferByToken = // src/wla/base/interactors/getTransferByToken.ts
|
|
21127
|
-
_async_to_generator(function(token
|
|
21128
|
-
var container2, wlaService;
|
|
21379
|
+
_async_to_generator(function(token) {
|
|
21380
|
+
var country_code, container2, wlaService;
|
|
21381
|
+
var _arguments = arguments;
|
|
21129
21382
|
return _ts_generator(this, function(_state) {
|
|
21130
21383
|
switch(_state.label){
|
|
21131
21384
|
case 0:
|
|
21385
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
|
|
21132
21386
|
container2 = getActiveIocContainer();
|
|
21133
21387
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21134
21388
|
return [
|
|
@@ -21146,6 +21400,35 @@ function _getTransferByToken() {
|
|
|
21146
21400
|
return _getTransferByToken.apply(this, arguments);
|
|
21147
21401
|
}
|
|
21148
21402
|
__name(getTransferByToken, "getTransferByToken");
|
|
21403
|
+
function getTransfers() {
|
|
21404
|
+
return _getTransfers.apply(this, arguments);
|
|
21405
|
+
}
|
|
21406
|
+
function _getTransfers() {
|
|
21407
|
+
_getTransfers = // src/wla/base/interactors/getTransfers.ts
|
|
21408
|
+
_async_to_generator(function() {
|
|
21409
|
+
var country_code, container2, wlaService;
|
|
21410
|
+
var _arguments = arguments;
|
|
21411
|
+
return _ts_generator(this, function(_state) {
|
|
21412
|
+
switch(_state.label){
|
|
21413
|
+
case 0:
|
|
21414
|
+
country_code = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : "GB";
|
|
21415
|
+
container2 = getActiveIocContainer();
|
|
21416
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21417
|
+
return [
|
|
21418
|
+
4,
|
|
21419
|
+
wlaService.getTransfers(country_code)
|
|
21420
|
+
];
|
|
21421
|
+
case 1:
|
|
21422
|
+
return [
|
|
21423
|
+
2,
|
|
21424
|
+
_state.sent()
|
|
21425
|
+
];
|
|
21426
|
+
}
|
|
21427
|
+
});
|
|
21428
|
+
});
|
|
21429
|
+
return _getTransfers.apply(this, arguments);
|
|
21430
|
+
}
|
|
21431
|
+
__name(getTransfers, "getTransfers");
|
|
21149
21432
|
function getWlaAccountDetails(accountToken, includeYtdInterest, includeInterestTiers) {
|
|
21150
21433
|
return _getWlaAccountDetails.apply(this, arguments);
|
|
21151
21434
|
}
|
|
@@ -21373,6 +21656,35 @@ function _replaceWlaCard() {
|
|
|
21373
21656
|
return _replaceWlaCard.apply(this, arguments);
|
|
21374
21657
|
}
|
|
21375
21658
|
__name(replaceWlaCard, "replaceWlaCard");
|
|
21659
|
+
function revokeConsent(id) {
|
|
21660
|
+
return _revokeConsent.apply(this, arguments);
|
|
21661
|
+
}
|
|
21662
|
+
function _revokeConsent() {
|
|
21663
|
+
_revokeConsent = // src/wla/base/interactors/revokeConsent.ts
|
|
21664
|
+
_async_to_generator(function(id) {
|
|
21665
|
+
var country_code, requestBody, container2, wlaService;
|
|
21666
|
+
var _arguments = arguments;
|
|
21667
|
+
return _ts_generator(this, function(_state) {
|
|
21668
|
+
switch(_state.label){
|
|
21669
|
+
case 0:
|
|
21670
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
|
|
21671
|
+
container2 = getActiveIocContainer();
|
|
21672
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21673
|
+
return [
|
|
21674
|
+
4,
|
|
21675
|
+
wlaService.revokeConsent(id, country_code, requestBody)
|
|
21676
|
+
];
|
|
21677
|
+
case 1:
|
|
21678
|
+
return [
|
|
21679
|
+
2,
|
|
21680
|
+
_state.sent()
|
|
21681
|
+
];
|
|
21682
|
+
}
|
|
21683
|
+
});
|
|
21684
|
+
});
|
|
21685
|
+
return _revokeConsent.apply(this, arguments);
|
|
21686
|
+
}
|
|
21687
|
+
__name(revokeConsent, "revokeConsent");
|
|
21376
21688
|
function searchAtms(requestBody, requestFilters) {
|
|
21377
21689
|
return _searchAtms.apply(this, arguments);
|
|
21378
21690
|
}
|
|
@@ -21446,6 +21758,35 @@ function _setWlaConfig() {
|
|
|
21446
21758
|
return _setWlaConfig.apply(this, arguments);
|
|
21447
21759
|
}
|
|
21448
21760
|
__name(setWlaConfig, "setWlaConfig");
|
|
21761
|
+
function updateConsentStatus(id) {
|
|
21762
|
+
return _updateConsentStatus.apply(this, arguments);
|
|
21763
|
+
}
|
|
21764
|
+
function _updateConsentStatus() {
|
|
21765
|
+
_updateConsentStatus = // src/wla/base/interactors/updateConsentStatus.ts
|
|
21766
|
+
_async_to_generator(function(id) {
|
|
21767
|
+
var country_code, requestBody, container2, wlaService;
|
|
21768
|
+
var _arguments = arguments;
|
|
21769
|
+
return _ts_generator(this, function(_state) {
|
|
21770
|
+
switch(_state.label){
|
|
21771
|
+
case 0:
|
|
21772
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
|
|
21773
|
+
container2 = getActiveIocContainer();
|
|
21774
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21775
|
+
return [
|
|
21776
|
+
4,
|
|
21777
|
+
wlaService.updateConsentStatus(id, country_code, requestBody)
|
|
21778
|
+
];
|
|
21779
|
+
case 1:
|
|
21780
|
+
return [
|
|
21781
|
+
2,
|
|
21782
|
+
_state.sent()
|
|
21783
|
+
];
|
|
21784
|
+
}
|
|
21785
|
+
});
|
|
21786
|
+
});
|
|
21787
|
+
return _updateConsentStatus.apply(this, arguments);
|
|
21788
|
+
}
|
|
21789
|
+
__name(updateConsentStatus, "updateConsentStatus");
|
|
21449
21790
|
function updateExternalAccount(token, payload) {
|
|
21450
21791
|
return _updateExternalAccount.apply(this, arguments);
|
|
21451
21792
|
}
|
|
@@ -21924,8 +22265,10 @@ setActiveIocContainer(container);
|
|
|
21924
22265
|
CardholderContextEntity: CardholderContextEntity,
|
|
21925
22266
|
CardholderVerificationMethods: CardholderVerificationMethods,
|
|
21926
22267
|
CleanupOnUnload: CleanupOnUnload,
|
|
22268
|
+
ConsentAction: ConsentAction,
|
|
21927
22269
|
ConsentPaymentScope: ConsentPaymentScope,
|
|
21928
22270
|
ConsentPaymentType: ConsentPaymentType,
|
|
22271
|
+
ConsentPermissionType: ConsentPermissionType,
|
|
21929
22272
|
ConsentScope: ConsentScope,
|
|
21930
22273
|
ConsentStatus: ConsentStatus,
|
|
21931
22274
|
CreateUserRequestIdentificationsInnerTypeEnum: CreateUserRequestIdentificationsInnerTypeEnum,
|
|
@@ -22104,6 +22447,7 @@ setActiveIocContainer(container);
|
|
|
22104
22447
|
RestUsersRepository: RestUsersRepository,
|
|
22105
22448
|
RestWlaService: RestWlaService,
|
|
22106
22449
|
RetrieveDocumentForDispute: RetrieveDocumentForDispute,
|
|
22450
|
+
RevokeConsentStatus: RevokeConsentStatus,
|
|
22107
22451
|
SESSION_TTL: SESSION_TTL,
|
|
22108
22452
|
STATEMENTS_MOCK_USER: STATEMENTS_MOCK_USER,
|
|
22109
22453
|
SUSPENDED_CARD_ACTIONS: SUSPENDED_CARD_ACTIONS,
|
|
@@ -22207,6 +22551,7 @@ setActiveIocContainer(container);
|
|
|
22207
22551
|
getCardholderContext: getCardholderContext,
|
|
22208
22552
|
getClientId: getClientId,
|
|
22209
22553
|
getConsentById: getConsentById,
|
|
22554
|
+
getConsents: getConsents,
|
|
22210
22555
|
getExternalAccount: getExternalAccount,
|
|
22211
22556
|
getExternalAccountList: getExternalAccountList,
|
|
22212
22557
|
getMockUpdatedUserRequestToCreateResponse: getMockUpdatedUserRequestToCreateResponse,
|
|
@@ -22218,6 +22563,7 @@ setActiveIocContainer(container);
|
|
|
22218
22563
|
getSessionId: getSessionId,
|
|
22219
22564
|
getSsoAccessTokenHandler: getSsoAccessTokenHandler,
|
|
22220
22565
|
getTransferByToken: getTransferByToken,
|
|
22566
|
+
getTransfers: getTransfers,
|
|
22221
22567
|
getUserProgram: getUserProgram,
|
|
22222
22568
|
getUserTokenHash: getUserTokenHash,
|
|
22223
22569
|
getWlaAccountDetails: getWlaAccountDetails,
|
|
@@ -22302,6 +22648,7 @@ setActiveIocContainer(container);
|
|
|
22302
22648
|
reactNativeSdkJsContainer: reactNativeSdkJsContainer,
|
|
22303
22649
|
registerDeviceForPushNotifications: registerDeviceForPushNotifications,
|
|
22304
22650
|
replaceWlaCard: replaceWlaCard,
|
|
22651
|
+
revokeConsent: revokeConsent,
|
|
22305
22652
|
sandbox: sandbox,
|
|
22306
22653
|
sdkJsContainer: sdkJsContainer,
|
|
22307
22654
|
searchAtms: searchAtms,
|
|
@@ -22318,6 +22665,7 @@ setActiveIocContainer(container);
|
|
|
22318
22665
|
toDateType: toDateType,
|
|
22319
22666
|
trackEvent: trackEvent,
|
|
22320
22667
|
transactionsIOCModule: transactionsIOCModule,
|
|
22668
|
+
updateConsentStatus: updateConsentStatus,
|
|
22321
22669
|
updateExternalAccount: updateExternalAccount,
|
|
22322
22670
|
usersIOCModule: usersIOCModule,
|
|
22323
22671
|
verifyExternalAccount: verifyExternalAccount,
|