@marqeta/ux-toolkit-sdk-javascript 2.1.0 → 2.2.0
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 +364 -19
- package/dist/index.mjs +337 -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,180 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
20768
20812
|
});
|
|
20769
20813
|
})();
|
|
20770
20814
|
}
|
|
20815
|
+
},
|
|
20816
|
+
{
|
|
20817
|
+
key: "getConsents",
|
|
20818
|
+
value: function getConsents() {
|
|
20819
|
+
var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
|
|
20820
|
+
var _this = this;
|
|
20821
|
+
return _async_to_generator(function() {
|
|
20822
|
+
var 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
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20833
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents");
|
|
20834
|
+
params = {
|
|
20835
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
20836
|
+
};
|
|
20837
|
+
return [
|
|
20838
|
+
4,
|
|
20839
|
+
_this.httpClient.get(path, params)
|
|
20840
|
+
];
|
|
20841
|
+
case 1:
|
|
20842
|
+
return [
|
|
20843
|
+
2,
|
|
20844
|
+
_state.sent()
|
|
20845
|
+
];
|
|
20846
|
+
case 2:
|
|
20847
|
+
error2 = _state.sent();
|
|
20848
|
+
throw new MqSDKError("Unable to get consents", error2);
|
|
20849
|
+
case 3:
|
|
20850
|
+
return [
|
|
20851
|
+
2
|
|
20852
|
+
];
|
|
20853
|
+
}
|
|
20854
|
+
});
|
|
20855
|
+
})();
|
|
20856
|
+
}
|
|
20857
|
+
},
|
|
20858
|
+
{
|
|
20859
|
+
key: "getTransfers",
|
|
20860
|
+
value: function getTransfers() {
|
|
20861
|
+
var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
|
|
20862
|
+
var _this = this;
|
|
20863
|
+
return _async_to_generator(function() {
|
|
20864
|
+
var cuiApiBaseUrl, path, params, error2;
|
|
20865
|
+
return _ts_generator(this, function(_state) {
|
|
20866
|
+
switch(_state.label){
|
|
20867
|
+
case 0:
|
|
20868
|
+
_state.trys.push([
|
|
20869
|
+
0,
|
|
20870
|
+
2,
|
|
20871
|
+
,
|
|
20872
|
+
3
|
|
20873
|
+
]);
|
|
20874
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20875
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
|
|
20876
|
+
params = {
|
|
20877
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
20878
|
+
};
|
|
20879
|
+
return [
|
|
20880
|
+
4,
|
|
20881
|
+
_this.httpClient.get(path, params)
|
|
20882
|
+
];
|
|
20883
|
+
case 1:
|
|
20884
|
+
return [
|
|
20885
|
+
2,
|
|
20886
|
+
_state.sent()
|
|
20887
|
+
];
|
|
20888
|
+
case 2:
|
|
20889
|
+
error2 = _state.sent();
|
|
20890
|
+
throw new MqSDKError("Unable to get transfers", error2);
|
|
20891
|
+
case 3:
|
|
20892
|
+
return [
|
|
20893
|
+
2
|
|
20894
|
+
];
|
|
20895
|
+
}
|
|
20896
|
+
});
|
|
20897
|
+
})();
|
|
20898
|
+
}
|
|
20899
|
+
},
|
|
20900
|
+
{
|
|
20901
|
+
key: "updateConsentStatus",
|
|
20902
|
+
value: function updateConsentStatus(id) {
|
|
20903
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
|
|
20904
|
+
var _this = this;
|
|
20905
|
+
return _async_to_generator(function() {
|
|
20906
|
+
var cuiApiBaseUrl, params, path, data, error2;
|
|
20907
|
+
return _ts_generator(this, function(_state) {
|
|
20908
|
+
switch(_state.label){
|
|
20909
|
+
case 0:
|
|
20910
|
+
_state.trys.push([
|
|
20911
|
+
0,
|
|
20912
|
+
2,
|
|
20913
|
+
,
|
|
20914
|
+
3
|
|
20915
|
+
]);
|
|
20916
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20917
|
+
params = {
|
|
20918
|
+
method: "PATCH",
|
|
20919
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
20920
|
+
body: JSON.stringify(requestBody)
|
|
20921
|
+
};
|
|
20922
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
20923
|
+
return [
|
|
20924
|
+
4,
|
|
20925
|
+
_this.httpClient.post(path, params)
|
|
20926
|
+
];
|
|
20927
|
+
case 1:
|
|
20928
|
+
data = _state.sent();
|
|
20929
|
+
return [
|
|
20930
|
+
2,
|
|
20931
|
+
data
|
|
20932
|
+
];
|
|
20933
|
+
case 2:
|
|
20934
|
+
error2 = _state.sent();
|
|
20935
|
+
throw new MqSDKError("Unable to update consent status", error2);
|
|
20936
|
+
case 3:
|
|
20937
|
+
return [
|
|
20938
|
+
2
|
|
20939
|
+
];
|
|
20940
|
+
}
|
|
20941
|
+
});
|
|
20942
|
+
})();
|
|
20943
|
+
}
|
|
20944
|
+
},
|
|
20945
|
+
{
|
|
20946
|
+
key: "revokeConsent",
|
|
20947
|
+
value: function revokeConsent(id) {
|
|
20948
|
+
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
|
|
20949
|
+
var _this = this;
|
|
20950
|
+
return _async_to_generator(function() {
|
|
20951
|
+
var cuiApiBaseUrl, params, path, data, error2;
|
|
20952
|
+
return _ts_generator(this, function(_state) {
|
|
20953
|
+
switch(_state.label){
|
|
20954
|
+
case 0:
|
|
20955
|
+
_state.trys.push([
|
|
20956
|
+
0,
|
|
20957
|
+
2,
|
|
20958
|
+
,
|
|
20959
|
+
3
|
|
20960
|
+
]);
|
|
20961
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
20962
|
+
params = {
|
|
20963
|
+
method: "PATCH",
|
|
20964
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
20965
|
+
body: JSON.stringify(requestBody)
|
|
20966
|
+
};
|
|
20967
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
|
|
20968
|
+
return [
|
|
20969
|
+
4,
|
|
20970
|
+
_this.httpClient.post(path, params)
|
|
20971
|
+
];
|
|
20972
|
+
case 1:
|
|
20973
|
+
data = _state.sent();
|
|
20974
|
+
return [
|
|
20975
|
+
2,
|
|
20976
|
+
data
|
|
20977
|
+
];
|
|
20978
|
+
case 2:
|
|
20979
|
+
error2 = _state.sent();
|
|
20980
|
+
throw new MqSDKError("Unable to revoke consent status", error2);
|
|
20981
|
+
case 3:
|
|
20982
|
+
return [
|
|
20983
|
+
2
|
|
20984
|
+
];
|
|
20985
|
+
}
|
|
20986
|
+
});
|
|
20987
|
+
})();
|
|
20988
|
+
}
|
|
20771
20989
|
}
|
|
20772
20990
|
]);
|
|
20773
20991
|
return _RestWlaService;
|
|
@@ -20971,16 +21189,18 @@ function _getAccountTransactions() {
|
|
|
20971
21189
|
return _getAccountTransactions.apply(this, arguments);
|
|
20972
21190
|
}
|
|
20973
21191
|
__name(getAccountTransactions, "getAccountTransactions");
|
|
20974
|
-
function getConsentById(id
|
|
21192
|
+
function getConsentById(id) {
|
|
20975
21193
|
return _getConsentById.apply(this, arguments);
|
|
20976
21194
|
}
|
|
20977
21195
|
function _getConsentById() {
|
|
20978
21196
|
_getConsentById = // src/wla/base/interactors/getConsentById.ts
|
|
20979
|
-
_async_to_generator(function(id
|
|
20980
|
-
var container2, wlaService;
|
|
21197
|
+
_async_to_generator(function(id) {
|
|
21198
|
+
var country_code, container2, wlaService;
|
|
21199
|
+
var _arguments = arguments;
|
|
20981
21200
|
return _ts_generator(this, function(_state) {
|
|
20982
21201
|
switch(_state.label){
|
|
20983
21202
|
case 0:
|
|
21203
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
|
|
20984
21204
|
container2 = getActiveIocContainer();
|
|
20985
21205
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
20986
21206
|
return [
|
|
@@ -20998,6 +21218,35 @@ function _getConsentById() {
|
|
|
20998
21218
|
return _getConsentById.apply(this, arguments);
|
|
20999
21219
|
}
|
|
21000
21220
|
__name(getConsentById, "getConsentById");
|
|
21221
|
+
function getConsents() {
|
|
21222
|
+
return _getConsents.apply(this, arguments);
|
|
21223
|
+
}
|
|
21224
|
+
function _getConsents() {
|
|
21225
|
+
_getConsents = // src/wla/base/interactors/getConsents.ts
|
|
21226
|
+
_async_to_generator(function() {
|
|
21227
|
+
var country_code, container2, wlaService;
|
|
21228
|
+
var _arguments = arguments;
|
|
21229
|
+
return _ts_generator(this, function(_state) {
|
|
21230
|
+
switch(_state.label){
|
|
21231
|
+
case 0:
|
|
21232
|
+
country_code = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : "GB";
|
|
21233
|
+
container2 = getActiveIocContainer();
|
|
21234
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21235
|
+
return [
|
|
21236
|
+
4,
|
|
21237
|
+
wlaService.getConsents(country_code)
|
|
21238
|
+
];
|
|
21239
|
+
case 1:
|
|
21240
|
+
return [
|
|
21241
|
+
2,
|
|
21242
|
+
_state.sent()
|
|
21243
|
+
];
|
|
21244
|
+
}
|
|
21245
|
+
});
|
|
21246
|
+
});
|
|
21247
|
+
return _getConsents.apply(this, arguments);
|
|
21248
|
+
}
|
|
21249
|
+
__name(getConsents, "getConsents");
|
|
21001
21250
|
function getExternalAccount(token) {
|
|
21002
21251
|
return _getExternalAccount.apply(this, arguments);
|
|
21003
21252
|
}
|
|
@@ -21119,16 +21368,18 @@ function _getOutagesList() {
|
|
|
21119
21368
|
return _getOutagesList.apply(this, arguments);
|
|
21120
21369
|
}
|
|
21121
21370
|
__name(getOutagesList, "getOutagesList");
|
|
21122
|
-
function getTransferByToken(token
|
|
21371
|
+
function getTransferByToken(token) {
|
|
21123
21372
|
return _getTransferByToken.apply(this, arguments);
|
|
21124
21373
|
}
|
|
21125
21374
|
function _getTransferByToken() {
|
|
21126
21375
|
_getTransferByToken = // src/wla/base/interactors/getTransferByToken.ts
|
|
21127
|
-
_async_to_generator(function(token
|
|
21128
|
-
var container2, wlaService;
|
|
21376
|
+
_async_to_generator(function(token) {
|
|
21377
|
+
var country_code, container2, wlaService;
|
|
21378
|
+
var _arguments = arguments;
|
|
21129
21379
|
return _ts_generator(this, function(_state) {
|
|
21130
21380
|
switch(_state.label){
|
|
21131
21381
|
case 0:
|
|
21382
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
|
|
21132
21383
|
container2 = getActiveIocContainer();
|
|
21133
21384
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21134
21385
|
return [
|
|
@@ -21146,6 +21397,35 @@ function _getTransferByToken() {
|
|
|
21146
21397
|
return _getTransferByToken.apply(this, arguments);
|
|
21147
21398
|
}
|
|
21148
21399
|
__name(getTransferByToken, "getTransferByToken");
|
|
21400
|
+
function getTransfers() {
|
|
21401
|
+
return _getTransfers.apply(this, arguments);
|
|
21402
|
+
}
|
|
21403
|
+
function _getTransfers() {
|
|
21404
|
+
_getTransfers = // src/wla/base/interactors/getTransfers.ts
|
|
21405
|
+
_async_to_generator(function() {
|
|
21406
|
+
var country_code, container2, wlaService;
|
|
21407
|
+
var _arguments = arguments;
|
|
21408
|
+
return _ts_generator(this, function(_state) {
|
|
21409
|
+
switch(_state.label){
|
|
21410
|
+
case 0:
|
|
21411
|
+
country_code = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : "GB";
|
|
21412
|
+
container2 = getActiveIocContainer();
|
|
21413
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21414
|
+
return [
|
|
21415
|
+
4,
|
|
21416
|
+
wlaService.getTransfers(country_code)
|
|
21417
|
+
];
|
|
21418
|
+
case 1:
|
|
21419
|
+
return [
|
|
21420
|
+
2,
|
|
21421
|
+
_state.sent()
|
|
21422
|
+
];
|
|
21423
|
+
}
|
|
21424
|
+
});
|
|
21425
|
+
});
|
|
21426
|
+
return _getTransfers.apply(this, arguments);
|
|
21427
|
+
}
|
|
21428
|
+
__name(getTransfers, "getTransfers");
|
|
21149
21429
|
function getWlaAccountDetails(accountToken, includeYtdInterest, includeInterestTiers) {
|
|
21150
21430
|
return _getWlaAccountDetails.apply(this, arguments);
|
|
21151
21431
|
}
|
|
@@ -21373,6 +21653,35 @@ function _replaceWlaCard() {
|
|
|
21373
21653
|
return _replaceWlaCard.apply(this, arguments);
|
|
21374
21654
|
}
|
|
21375
21655
|
__name(replaceWlaCard, "replaceWlaCard");
|
|
21656
|
+
function revokeConsent(id) {
|
|
21657
|
+
return _revokeConsent.apply(this, arguments);
|
|
21658
|
+
}
|
|
21659
|
+
function _revokeConsent() {
|
|
21660
|
+
_revokeConsent = // src/wla/base/interactors/revokeConsent.ts
|
|
21661
|
+
_async_to_generator(function(id) {
|
|
21662
|
+
var country_code, requestBody, container2, wlaService;
|
|
21663
|
+
var _arguments = arguments;
|
|
21664
|
+
return _ts_generator(this, function(_state) {
|
|
21665
|
+
switch(_state.label){
|
|
21666
|
+
case 0:
|
|
21667
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
|
|
21668
|
+
container2 = getActiveIocContainer();
|
|
21669
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21670
|
+
return [
|
|
21671
|
+
4,
|
|
21672
|
+
wlaService.revokeConsent(id, country_code, requestBody)
|
|
21673
|
+
];
|
|
21674
|
+
case 1:
|
|
21675
|
+
return [
|
|
21676
|
+
2,
|
|
21677
|
+
_state.sent()
|
|
21678
|
+
];
|
|
21679
|
+
}
|
|
21680
|
+
});
|
|
21681
|
+
});
|
|
21682
|
+
return _revokeConsent.apply(this, arguments);
|
|
21683
|
+
}
|
|
21684
|
+
__name(revokeConsent, "revokeConsent");
|
|
21376
21685
|
function searchAtms(requestBody, requestFilters) {
|
|
21377
21686
|
return _searchAtms.apply(this, arguments);
|
|
21378
21687
|
}
|
|
@@ -21446,6 +21755,35 @@ function _setWlaConfig() {
|
|
|
21446
21755
|
return _setWlaConfig.apply(this, arguments);
|
|
21447
21756
|
}
|
|
21448
21757
|
__name(setWlaConfig, "setWlaConfig");
|
|
21758
|
+
function updateConsentStatus(id) {
|
|
21759
|
+
return _updateConsentStatus.apply(this, arguments);
|
|
21760
|
+
}
|
|
21761
|
+
function _updateConsentStatus() {
|
|
21762
|
+
_updateConsentStatus = // src/wla/base/interactors/updateConsentStatus.ts
|
|
21763
|
+
_async_to_generator(function(id) {
|
|
21764
|
+
var country_code, requestBody, container2, wlaService;
|
|
21765
|
+
var _arguments = arguments;
|
|
21766
|
+
return _ts_generator(this, function(_state) {
|
|
21767
|
+
switch(_state.label){
|
|
21768
|
+
case 0:
|
|
21769
|
+
country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
|
|
21770
|
+
container2 = getActiveIocContainer();
|
|
21771
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
21772
|
+
return [
|
|
21773
|
+
4,
|
|
21774
|
+
wlaService.updateConsentStatus(id, country_code, requestBody)
|
|
21775
|
+
];
|
|
21776
|
+
case 1:
|
|
21777
|
+
return [
|
|
21778
|
+
2,
|
|
21779
|
+
_state.sent()
|
|
21780
|
+
];
|
|
21781
|
+
}
|
|
21782
|
+
});
|
|
21783
|
+
});
|
|
21784
|
+
return _updateConsentStatus.apply(this, arguments);
|
|
21785
|
+
}
|
|
21786
|
+
__name(updateConsentStatus, "updateConsentStatus");
|
|
21449
21787
|
function updateExternalAccount(token, payload) {
|
|
21450
21788
|
return _updateExternalAccount.apply(this, arguments);
|
|
21451
21789
|
}
|
|
@@ -21924,8 +22262,10 @@ setActiveIocContainer(container);
|
|
|
21924
22262
|
CardholderContextEntity: CardholderContextEntity,
|
|
21925
22263
|
CardholderVerificationMethods: CardholderVerificationMethods,
|
|
21926
22264
|
CleanupOnUnload: CleanupOnUnload,
|
|
22265
|
+
ConsentAction: ConsentAction,
|
|
21927
22266
|
ConsentPaymentScope: ConsentPaymentScope,
|
|
21928
22267
|
ConsentPaymentType: ConsentPaymentType,
|
|
22268
|
+
ConsentPermissionType: ConsentPermissionType,
|
|
21929
22269
|
ConsentScope: ConsentScope,
|
|
21930
22270
|
ConsentStatus: ConsentStatus,
|
|
21931
22271
|
CreateUserRequestIdentificationsInnerTypeEnum: CreateUserRequestIdentificationsInnerTypeEnum,
|
|
@@ -22104,6 +22444,7 @@ setActiveIocContainer(container);
|
|
|
22104
22444
|
RestUsersRepository: RestUsersRepository,
|
|
22105
22445
|
RestWlaService: RestWlaService,
|
|
22106
22446
|
RetrieveDocumentForDispute: RetrieveDocumentForDispute,
|
|
22447
|
+
RevokeConsentStatus: RevokeConsentStatus,
|
|
22107
22448
|
SESSION_TTL: SESSION_TTL,
|
|
22108
22449
|
STATEMENTS_MOCK_USER: STATEMENTS_MOCK_USER,
|
|
22109
22450
|
SUSPENDED_CARD_ACTIONS: SUSPENDED_CARD_ACTIONS,
|
|
@@ -22207,6 +22548,7 @@ setActiveIocContainer(container);
|
|
|
22207
22548
|
getCardholderContext: getCardholderContext,
|
|
22208
22549
|
getClientId: getClientId,
|
|
22209
22550
|
getConsentById: getConsentById,
|
|
22551
|
+
getConsents: getConsents,
|
|
22210
22552
|
getExternalAccount: getExternalAccount,
|
|
22211
22553
|
getExternalAccountList: getExternalAccountList,
|
|
22212
22554
|
getMockUpdatedUserRequestToCreateResponse: getMockUpdatedUserRequestToCreateResponse,
|
|
@@ -22218,6 +22560,7 @@ setActiveIocContainer(container);
|
|
|
22218
22560
|
getSessionId: getSessionId,
|
|
22219
22561
|
getSsoAccessTokenHandler: getSsoAccessTokenHandler,
|
|
22220
22562
|
getTransferByToken: getTransferByToken,
|
|
22563
|
+
getTransfers: getTransfers,
|
|
22221
22564
|
getUserProgram: getUserProgram,
|
|
22222
22565
|
getUserTokenHash: getUserTokenHash,
|
|
22223
22566
|
getWlaAccountDetails: getWlaAccountDetails,
|
|
@@ -22302,6 +22645,7 @@ setActiveIocContainer(container);
|
|
|
22302
22645
|
reactNativeSdkJsContainer: reactNativeSdkJsContainer,
|
|
22303
22646
|
registerDeviceForPushNotifications: registerDeviceForPushNotifications,
|
|
22304
22647
|
replaceWlaCard: replaceWlaCard,
|
|
22648
|
+
revokeConsent: revokeConsent,
|
|
22305
22649
|
sandbox: sandbox,
|
|
22306
22650
|
sdkJsContainer: sdkJsContainer,
|
|
22307
22651
|
searchAtms: searchAtms,
|
|
@@ -22318,6 +22662,7 @@ setActiveIocContainer(container);
|
|
|
22318
22662
|
toDateType: toDateType,
|
|
22319
22663
|
trackEvent: trackEvent,
|
|
22320
22664
|
transactionsIOCModule: transactionsIOCModule,
|
|
22665
|
+
updateConsentStatus: updateConsentStatus,
|
|
22321
22666
|
updateExternalAccount: updateExternalAccount,
|
|
22322
22667
|
usersIOCModule: usersIOCModule,
|
|
22323
22668
|
verifyExternalAccount: verifyExternalAccount,
|