@marqeta/ux-toolkit-sdk-javascript 2.30.0 → 2.32.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/{chunk-KTZWJME3.mjs → chunk-KGVCSXN7.mjs} +2006 -987
- package/dist/{chunk-BPSM5NUO.js → chunk-QU4EZRML.js} +2187 -1146
- package/dist/index.d.mts +234 -10
- package/dist/index.d.ts +234 -10
- package/dist/index.js +511 -488
- package/dist/index.mjs +2 -2
- package/dist/react-native.d.mts +1 -1
- package/dist/react-native.d.ts +1 -1
- package/dist/react-native.js +569 -546
- package/dist/react-native.mjs +2 -2
- package/package.json +1 -1
|
@@ -1779,10 +1779,14 @@ var _StandardizedError = /*#__PURE__*/ function(Error1) {
|
|
|
1779
1779
|
__name(_StandardizedError, "StandardizedError");
|
|
1780
1780
|
var StandardizedError = _StandardizedError;
|
|
1781
1781
|
// src/common/base/interactors/setAppConfig.ts
|
|
1782
|
-
function setAppConfig(
|
|
1782
|
+
function setAppConfig(param) {
|
|
1783
|
+
var appVersion = param.appVersion, deviceId = param.deviceId, clientType = param.clientType, bundleId = param.bundleId, platform = param.platform;
|
|
1783
1784
|
logDebug("Setting app config", {
|
|
1784
1785
|
appVersion: appVersion,
|
|
1785
1786
|
deviceId: deviceId,
|
|
1787
|
+
clientType: clientType,
|
|
1788
|
+
bundleId: bundleId,
|
|
1789
|
+
platform: platform,
|
|
1786
1790
|
interactor: "setAppConfig"
|
|
1787
1791
|
});
|
|
1788
1792
|
try {
|
|
@@ -1796,13 +1800,22 @@ function setAppConfig(appVersion, deviceId) {
|
|
|
1796
1800
|
return;
|
|
1797
1801
|
}
|
|
1798
1802
|
var cacheService = container2.get(ITF_CACHE_SERVICE);
|
|
1799
|
-
cacheService.set("appConfig", JSON.stringify({
|
|
1803
|
+
cacheService.set("appConfig", JSON.stringify(_object_spread({
|
|
1800
1804
|
appVersion: appVersion,
|
|
1801
1805
|
deviceId: deviceId
|
|
1802
|
-
}
|
|
1806
|
+
}, clientType && {
|
|
1807
|
+
clientType: clientType
|
|
1808
|
+
}, bundleId && {
|
|
1809
|
+
bundleId: bundleId
|
|
1810
|
+
}, platform && {
|
|
1811
|
+
platform: platform
|
|
1812
|
+
})));
|
|
1803
1813
|
logInfo("App config set successfully", {
|
|
1804
1814
|
appVersion: appVersion,
|
|
1805
1815
|
deviceId: deviceId,
|
|
1816
|
+
clientType: clientType,
|
|
1817
|
+
bundleId: bundleId,
|
|
1818
|
+
platform: platform,
|
|
1806
1819
|
interactor: "setAppConfig"
|
|
1807
1820
|
});
|
|
1808
1821
|
} catch (error2) {
|
|
@@ -1829,10 +1842,16 @@ function getAppConfig() {
|
|
|
1829
1842
|
return defaultConfig;
|
|
1830
1843
|
}
|
|
1831
1844
|
var parsedConfig = JSON.parse(config);
|
|
1832
|
-
return {
|
|
1845
|
+
return _object_spread({
|
|
1833
1846
|
appVersion: parsedConfig.appVersion || "",
|
|
1834
1847
|
deviceId: parsedConfig.deviceId || ""
|
|
1835
|
-
}
|
|
1848
|
+
}, parsedConfig.clientType && {
|
|
1849
|
+
clientType: parsedConfig.clientType
|
|
1850
|
+
}, parsedConfig.bundleId && {
|
|
1851
|
+
bundleId: parsedConfig.bundleId
|
|
1852
|
+
}, parsedConfig.platform && {
|
|
1853
|
+
platform: parsedConfig.platform
|
|
1854
|
+
});
|
|
1836
1855
|
} catch (e) {
|
|
1837
1856
|
return defaultConfig;
|
|
1838
1857
|
}
|
|
@@ -1945,22 +1964,6 @@ function convertObjKeysToLowerCamelCase(inputObj) {
|
|
|
1945
1964
|
return newobj;
|
|
1946
1965
|
}
|
|
1947
1966
|
__name(convertObjKeysToLowerCamelCase, "convertObjKeysToLowerCamelCase");
|
|
1948
|
-
// src/common/utils/getCommonApiHeaders.ts
|
|
1949
|
-
function getCommonApiHeaders() {
|
|
1950
|
-
try {
|
|
1951
|
-
var appConfig = getAppConfig();
|
|
1952
|
-
return {
|
|
1953
|
-
"app-version": appConfig.appVersion,
|
|
1954
|
-
"device-id": appConfig.deviceId
|
|
1955
|
-
};
|
|
1956
|
-
} catch (e) {
|
|
1957
|
-
return {
|
|
1958
|
-
"app-version": "",
|
|
1959
|
-
"device-id": ""
|
|
1960
|
-
};
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
__name(getCommonApiHeaders, "getCommonApiHeaders");
|
|
1964
1967
|
function getCardsByUserToken() {
|
|
1965
1968
|
return _getCardsByUserToken.apply(this, arguments);
|
|
1966
1969
|
}
|
|
@@ -6725,6 +6728,33 @@ M2mAuthenticatedHttpClient = _ts_decorate30([
|
|
|
6725
6728
|
], M2mAuthenticatedHttpClient);
|
|
6726
6729
|
// src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
|
|
6727
6730
|
import { inject as inject3, injectable as injectable31, named } from "inversify";
|
|
6731
|
+
// src/common/adapters/react-native/getRnCommonApiHeaders.ts
|
|
6732
|
+
function getRnCommonApiHeaders() {
|
|
6733
|
+
try {
|
|
6734
|
+
var appConfig = getAppConfig();
|
|
6735
|
+
var headers = {
|
|
6736
|
+
"app-version": appConfig.appVersion,
|
|
6737
|
+
"device-id": appConfig.deviceId
|
|
6738
|
+
};
|
|
6739
|
+
if (appConfig.clientType) {
|
|
6740
|
+
headers["x-client-type"] = appConfig.clientType;
|
|
6741
|
+
}
|
|
6742
|
+
if (appConfig.bundleId) {
|
|
6743
|
+
headers["x-bundle-id"] = appConfig.bundleId;
|
|
6744
|
+
}
|
|
6745
|
+
if (appConfig.platform) {
|
|
6746
|
+
headers["x-platform"] = appConfig.platform;
|
|
6747
|
+
}
|
|
6748
|
+
return headers;
|
|
6749
|
+
} catch (e) {
|
|
6750
|
+
return {
|
|
6751
|
+
"app-version": "",
|
|
6752
|
+
"device-id": ""
|
|
6753
|
+
};
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
__name(getRnCommonApiHeaders, "getRnCommonApiHeaders");
|
|
6757
|
+
// src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
|
|
6728
6758
|
function _ts_decorate31(decorators, target, key, desc) {
|
|
6729
6759
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6730
6760
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6918,7 +6948,7 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6918
6948
|
var noContentType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
6919
6949
|
var _this = this;
|
|
6920
6950
|
return _async_to_generator(function() {
|
|
6921
|
-
var accessToken, paramHeaders,
|
|
6951
|
+
var accessToken, paramHeaders, headersMap, rnHeaders;
|
|
6922
6952
|
return _ts_generator(this, function(_state) {
|
|
6923
6953
|
switch(_state.label){
|
|
6924
6954
|
case 0:
|
|
@@ -6929,24 +6959,33 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6929
6959
|
case 1:
|
|
6930
6960
|
accessToken = _state.sent();
|
|
6931
6961
|
paramHeaders = (params === null || params === void 0 ? void 0 : params.headers) || {};
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6962
|
+
headersMap = /* @__PURE__ */ new Map();
|
|
6963
|
+
if (_this.isReactNative()) {
|
|
6964
|
+
rnHeaders = getRnCommonApiHeaders();
|
|
6965
|
+
Object.entries(rnHeaders).forEach(function(param) {
|
|
6966
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
|
|
6967
|
+
headersMap.set(key, value);
|
|
6968
|
+
});
|
|
6969
|
+
}
|
|
6970
|
+
if (!noContentType) {
|
|
6971
|
+
headersMap.set("Content-Type", "application/json");
|
|
6972
|
+
}
|
|
6973
|
+
headersMap.set("Authorization", "SSO ".concat(accessToken));
|
|
6974
|
+
if (_instanceof(paramHeaders, Headers)) {
|
|
6975
|
+
paramHeaders.forEach(function(value, key) {
|
|
6976
|
+
headersMap.set(key, value);
|
|
6977
|
+
});
|
|
6978
|
+
} else {
|
|
6979
|
+
Object.entries(paramHeaders).forEach(function(param) {
|
|
6980
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
|
|
6981
|
+
headersMap.set(key, value);
|
|
6982
|
+
});
|
|
6944
6983
|
}
|
|
6945
6984
|
return [
|
|
6946
6985
|
2,
|
|
6947
6986
|
_object_spread_props(_object_spread({}, params), {
|
|
6948
6987
|
method: method,
|
|
6949
|
-
headers: Object.fromEntries(
|
|
6988
|
+
headers: Object.fromEntries(headersMap)
|
|
6950
6989
|
})
|
|
6951
6990
|
];
|
|
6952
6991
|
}
|
|
@@ -6954,6 +6993,22 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6954
6993
|
})();
|
|
6955
6994
|
}
|
|
6956
6995
|
},
|
|
6996
|
+
{
|
|
6997
|
+
key: "isReactNative",
|
|
6998
|
+
value: function isReactNative() {
|
|
6999
|
+
var _navigator_userAgent;
|
|
7000
|
+
if (typeof global !== "undefined" && global.HermesInternal) {
|
|
7001
|
+
return true;
|
|
7002
|
+
}
|
|
7003
|
+
if (typeof navigator !== "undefined" && ((_navigator_userAgent = navigator.userAgent) === null || _navigator_userAgent === void 0 ? void 0 : _navigator_userAgent.includes("ReactNative"))) {
|
|
7004
|
+
return true;
|
|
7005
|
+
}
|
|
7006
|
+
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
|
7007
|
+
return true;
|
|
7008
|
+
}
|
|
7009
|
+
return false;
|
|
7010
|
+
}
|
|
7011
|
+
},
|
|
6957
7012
|
{
|
|
6958
7013
|
key: "getAccessToken",
|
|
6959
7014
|
value: function getAccessToken() {
|
|
@@ -11343,10 +11398,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11343
11398
|
body: JSON.stringify({
|
|
11344
11399
|
card_token: cardToken,
|
|
11345
11400
|
cardholder_verification_method: cardholderVerificationMethod
|
|
11346
|
-
})
|
|
11347
|
-
headers: {
|
|
11348
|
-
"Content-Type": "application/json"
|
|
11349
|
-
}
|
|
11401
|
+
})
|
|
11350
11402
|
};
|
|
11351
11403
|
return [
|
|
11352
11404
|
4,
|
|
@@ -11408,10 +11460,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11408
11460
|
}
|
|
11409
11461
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards").concat(queryParams.toString() ? "?".concat(queryParams.toString()) : "");
|
|
11410
11462
|
params = {
|
|
11411
|
-
body: JSON.stringify(orderRequest.request)
|
|
11412
|
-
headers: _object_spread({
|
|
11413
|
-
"Content-Type": "application/json"
|
|
11414
|
-
}, getCommonApiHeaders())
|
|
11463
|
+
body: JSON.stringify(orderRequest.request)
|
|
11415
11464
|
};
|
|
11416
11465
|
return [
|
|
11417
11466
|
4,
|
|
@@ -11479,10 +11528,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11479
11528
|
}
|
|
11480
11529
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards/replacements?").concat(queryParams.toString());
|
|
11481
11530
|
params = {
|
|
11482
|
-
body: JSON.stringify(replaceRequest.request)
|
|
11483
|
-
headers: _object_spread({
|
|
11484
|
-
"Content-Type": "application/json"
|
|
11485
|
-
}, getCommonApiHeaders())
|
|
11531
|
+
body: JSON.stringify(replaceRequest.request)
|
|
11486
11532
|
};
|
|
11487
11533
|
return [
|
|
11488
11534
|
4,
|
|
@@ -12855,7 +12901,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12855
12901
|
value: function getUserAccounts() {
|
|
12856
12902
|
var _this = this;
|
|
12857
12903
|
return _async_to_generator(function() {
|
|
12858
|
-
var cuiApiBaseUrl, path,
|
|
12904
|
+
var cuiApiBaseUrl, path, data, err;
|
|
12859
12905
|
return _ts_generator(this, function(_state) {
|
|
12860
12906
|
switch(_state.label){
|
|
12861
12907
|
case 0:
|
|
@@ -12872,13 +12918,9 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12872
12918
|
]);
|
|
12873
12919
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
12874
12920
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts");
|
|
12875
|
-
params = {
|
|
12876
|
-
method: "GET",
|
|
12877
|
-
headers: getCommonApiHeaders()
|
|
12878
|
-
};
|
|
12879
12921
|
return [
|
|
12880
12922
|
4,
|
|
12881
|
-
_this.httpClient.get(path
|
|
12923
|
+
_this.httpClient.get(path)
|
|
12882
12924
|
];
|
|
12883
12925
|
case 2:
|
|
12884
12926
|
data = _state.sent();
|
|
@@ -13939,98 +13981,8 @@ var mswAnalyticsHandlers = [
|
|
|
13939
13981
|
});
|
|
13940
13982
|
})
|
|
13941
13983
|
];
|
|
13942
|
-
// src/
|
|
13943
|
-
|
|
13944
|
-
function loadEnabledComponentsByShortCode() {
|
|
13945
|
-
return _loadEnabledComponentsByShortCode.apply(this, arguments);
|
|
13946
|
-
}
|
|
13947
|
-
function _loadEnabledComponentsByShortCode() {
|
|
13948
|
-
_loadEnabledComponentsByShortCode = // src/components/base/interactors/loadEnabledComponentsByShortCode.ts
|
|
13949
|
-
_async_to_generator(function() {
|
|
13950
|
-
var container2, componentsRepository, registryService, enabledComponents, error2;
|
|
13951
|
-
return _ts_generator(this, function(_state) {
|
|
13952
|
-
switch(_state.label){
|
|
13953
|
-
case 0:
|
|
13954
|
-
logDebug("Loading enabled components by short code", {
|
|
13955
|
-
interactor: "loadEnabledComponentsByShortCode"
|
|
13956
|
-
});
|
|
13957
|
-
_state.label = 1;
|
|
13958
|
-
case 1:
|
|
13959
|
-
_state.trys.push([
|
|
13960
|
-
1,
|
|
13961
|
-
4,
|
|
13962
|
-
,
|
|
13963
|
-
5
|
|
13964
|
-
]);
|
|
13965
|
-
container2 = getActiveIocContainer();
|
|
13966
|
-
componentsRepository = container2.get(ITF_COMPONENTS_REPOSITORY);
|
|
13967
|
-
registryService = container2.get(ITF_REGISTRY_SERVICE);
|
|
13968
|
-
return [
|
|
13969
|
-
4,
|
|
13970
|
-
componentsRepository.getEnabledComponentsByShortCode()
|
|
13971
|
-
];
|
|
13972
|
-
case 2:
|
|
13973
|
-
enabledComponents = _state.sent();
|
|
13974
|
-
return [
|
|
13975
|
-
4,
|
|
13976
|
-
registryService.set("enabledComponents", enabledComponents)
|
|
13977
|
-
];
|
|
13978
|
-
case 3:
|
|
13979
|
-
_state.sent();
|
|
13980
|
-
logInfo("Enabled components loaded successfully", {
|
|
13981
|
-
componentCount: enabledComponents.length,
|
|
13982
|
-
interactor: "loadEnabledComponentsByShortCode"
|
|
13983
|
-
});
|
|
13984
|
-
return [
|
|
13985
|
-
3,
|
|
13986
|
-
5
|
|
13987
|
-
];
|
|
13988
|
-
case 4:
|
|
13989
|
-
error2 = _state.sent();
|
|
13990
|
-
logError("Error loading enabled components", {
|
|
13991
|
-
error: error2,
|
|
13992
|
-
interactor: "loadEnabledComponentsByShortCode"
|
|
13993
|
-
});
|
|
13994
|
-
throw new MqSDKError("error loading enabled components", error2);
|
|
13995
|
-
case 5:
|
|
13996
|
-
return [
|
|
13997
|
-
2
|
|
13998
|
-
];
|
|
13999
|
-
}
|
|
14000
|
-
});
|
|
14001
|
-
});
|
|
14002
|
-
return _loadEnabledComponentsByShortCode.apply(this, arguments);
|
|
14003
|
-
}
|
|
14004
|
-
__name(loadEnabledComponentsByShortCode, "loadEnabledComponentsByShortCode");
|
|
14005
|
-
// src/components/base/interactors/isComponentEnabled.ts
|
|
14006
|
-
function isComponentEnabled(componentName) {
|
|
14007
|
-
logDebug("Checking if component is enabled", {
|
|
14008
|
-
componentName: componentName,
|
|
14009
|
-
interactor: "isComponentEnabled"
|
|
14010
|
-
});
|
|
14011
|
-
try {
|
|
14012
|
-
var container2 = getActiveIocContainer();
|
|
14013
|
-
var registryService = container2.get(ITF_REGISTRY_SERVICE);
|
|
14014
|
-
var enabledComponents = registryService.get("enabledComponents");
|
|
14015
|
-
var isEnabled = enabledComponents.includes(componentName);
|
|
14016
|
-
logDebug("Component enabled check completed", {
|
|
14017
|
-
componentName: componentName,
|
|
14018
|
-
isEnabled: isEnabled,
|
|
14019
|
-
interactor: "isComponentEnabled"
|
|
14020
|
-
});
|
|
14021
|
-
return isEnabled;
|
|
14022
|
-
} catch (error2) {
|
|
14023
|
-
logError("Unable to fetch enabled components from Registry", {
|
|
14024
|
-
error: error2,
|
|
14025
|
-
componentName: componentName,
|
|
14026
|
-
interactor: "isComponentEnabled"
|
|
14027
|
-
});
|
|
14028
|
-
throw new MqSDKError("Unable to fetch enabled components from Registry", error2);
|
|
14029
|
-
}
|
|
14030
|
-
}
|
|
14031
|
-
__name(isComponentEnabled, "isComponentEnabled");
|
|
14032
|
-
// src/components/base/repositories/iComponentsRepository.ts
|
|
14033
|
-
import { injectable as injectable43 } from "inversify";
|
|
13984
|
+
// src/credit/adapters/rest/RestPaymentSchedulesRepository.ts
|
|
13985
|
+
import { inject as inject8, injectable as injectable43 } from "inversify";
|
|
14034
13986
|
function _ts_decorate43(decorators, target, key, desc) {
|
|
14035
13987
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14036
13988
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -14038,124 +13990,29 @@ function _ts_decorate43(decorators, target, key, desc) {
|
|
|
14038
13990
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14039
13991
|
}
|
|
14040
13992
|
__name(_ts_decorate43, "_ts_decorate");
|
|
14041
|
-
var _iComponentsRepository = function _iComponentsRepository() {
|
|
14042
|
-
"use strict";
|
|
14043
|
-
_class_call_check(this, _iComponentsRepository);
|
|
14044
|
-
};
|
|
14045
|
-
__name(_iComponentsRepository, "iComponentsRepository");
|
|
14046
|
-
var iComponentsRepository = _iComponentsRepository;
|
|
14047
|
-
iComponentsRepository = _ts_decorate43([
|
|
14048
|
-
injectable43()
|
|
14049
|
-
], iComponentsRepository);
|
|
14050
|
-
// src/components/base/repositories/MockComponentsRepository.ts
|
|
14051
|
-
import { injectable as injectable44 } from "inversify";
|
|
14052
|
-
function _ts_decorate44(decorators, target, key, desc) {
|
|
14053
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14054
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14055
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14056
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14057
|
-
}
|
|
14058
|
-
__name(_ts_decorate44, "_ts_decorate");
|
|
14059
|
-
var CUI_ENABLED_SHORT_CODE = "cui-enabled-short-code";
|
|
14060
|
-
var REPOSITORY_METHOD_FAILING_SHORT_CODE = "bad-short-code";
|
|
14061
|
-
var LIST_OF_ENABLED_COMPONENTS = [
|
|
14062
|
-
"mq-account",
|
|
14063
|
-
"mq-activate-card",
|
|
14064
|
-
"mq-card-actions",
|
|
14065
|
-
"mq-card-list",
|
|
14066
|
-
"mq-external-account-list",
|
|
14067
|
-
"mq-file-dispute",
|
|
14068
|
-
"mq-link-external-card",
|
|
14069
|
-
"mq-onboard-account-holder",
|
|
14070
|
-
"mq-replace-card",
|
|
14071
|
-
"mq-reveal-pin",
|
|
14072
|
-
"mq-set-pin",
|
|
14073
|
-
"mq-statements",
|
|
14074
|
-
"mq-transaction",
|
|
14075
|
-
"mq-transaction-list",
|
|
14076
|
-
"mq-transfer-funds",
|
|
14077
|
-
"mq-view-card-details"
|
|
14078
|
-
];
|
|
14079
|
-
var _MockComponentsRepository = /*#__PURE__*/ function() {
|
|
14080
|
-
"use strict";
|
|
14081
|
-
function _MockComponentsRepository() {
|
|
14082
|
-
_class_call_check(this, _MockComponentsRepository);
|
|
14083
|
-
__publicField(this, "registry", {
|
|
14084
|
-
enabledComponents: LIST_OF_ENABLED_COMPONENTS
|
|
14085
|
-
});
|
|
14086
|
-
__publicField(this, "shouldFail", false);
|
|
14087
|
-
}
|
|
14088
|
-
_create_class(_MockComponentsRepository, [
|
|
14089
|
-
{
|
|
14090
|
-
key: "setShouldFail",
|
|
14091
|
-
value: function setShouldFail(shouldFail) {
|
|
14092
|
-
this.shouldFail = shouldFail;
|
|
14093
|
-
}
|
|
14094
|
-
},
|
|
14095
|
-
{
|
|
14096
|
-
key: "getEnabledComponentsByShortCode",
|
|
14097
|
-
value: function getEnabledComponentsByShortCode() {
|
|
14098
|
-
var _this = this;
|
|
14099
|
-
return _async_to_generator(function() {
|
|
14100
|
-
return _ts_generator(this, function(_state) {
|
|
14101
|
-
if (_this.shouldFail) {
|
|
14102
|
-
throw new Error("Fetching components failed");
|
|
14103
|
-
}
|
|
14104
|
-
if (!_this.registry.enabledComponents) {
|
|
14105
|
-
return [
|
|
14106
|
-
2,
|
|
14107
|
-
[]
|
|
14108
|
-
];
|
|
14109
|
-
}
|
|
14110
|
-
return [
|
|
14111
|
-
2,
|
|
14112
|
-
_this.registry.enabledComponents
|
|
14113
|
-
];
|
|
14114
|
-
});
|
|
14115
|
-
})();
|
|
14116
|
-
}
|
|
14117
|
-
}
|
|
14118
|
-
]);
|
|
14119
|
-
return _MockComponentsRepository;
|
|
14120
|
-
}();
|
|
14121
|
-
__name(_MockComponentsRepository, "MockComponentsRepository");
|
|
14122
|
-
var MockComponentsRepository = _MockComponentsRepository;
|
|
14123
|
-
MockComponentsRepository = _ts_decorate44([
|
|
14124
|
-
injectable44()
|
|
14125
|
-
], MockComponentsRepository);
|
|
14126
|
-
// src/components/ioc/componentsIOCModule.ts
|
|
14127
|
-
import { ContainerModule as ContainerModule14 } from "inversify";
|
|
14128
|
-
// src/components/adapters/rest/RestComponentsRepository.ts
|
|
14129
|
-
import { inject as inject8, injectable as injectable45 } from "inversify";
|
|
14130
|
-
function _ts_decorate45(decorators, target, key, desc) {
|
|
14131
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14132
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14133
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14134
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14135
|
-
}
|
|
14136
|
-
__name(_ts_decorate45, "_ts_decorate");
|
|
14137
13993
|
function _ts_metadata9(k, v) {
|
|
14138
13994
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14139
13995
|
}
|
|
14140
13996
|
__name(_ts_metadata9, "_ts_metadata");
|
|
14141
|
-
var
|
|
13997
|
+
var _RestPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
14142
13998
|
"use strict";
|
|
14143
|
-
function
|
|
14144
|
-
_class_call_check(this,
|
|
13999
|
+
function _RestPaymentSchedulesRepository() {
|
|
14000
|
+
_class_call_check(this, _RestPaymentSchedulesRepository);
|
|
14145
14001
|
__publicField(this, "httpClient");
|
|
14146
14002
|
}
|
|
14147
|
-
_create_class(
|
|
14003
|
+
_create_class(_RestPaymentSchedulesRepository, [
|
|
14148
14004
|
{
|
|
14149
|
-
key: "
|
|
14150
|
-
value: function
|
|
14005
|
+
key: "getPaymentSchedules",
|
|
14006
|
+
value: function getPaymentSchedules(paginationParams) {
|
|
14151
14007
|
var _this = this;
|
|
14152
14008
|
return _async_to_generator(function() {
|
|
14153
|
-
var
|
|
14009
|
+
var queryParams, cuiApiBaseUrl, path, response, mappedResponse, err;
|
|
14154
14010
|
return _ts_generator(this, function(_state) {
|
|
14155
14011
|
switch(_state.label){
|
|
14156
14012
|
case 0:
|
|
14157
|
-
logDebug("
|
|
14158
|
-
|
|
14013
|
+
logDebug("Fetching payment schedules", {
|
|
14014
|
+
paginationParams: paginationParams,
|
|
14015
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14159
14016
|
});
|
|
14160
14017
|
_state.label = 1;
|
|
14161
14018
|
case 1:
|
|
@@ -14165,8 +14022,826 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
14165
14022
|
,
|
|
14166
14023
|
4
|
|
14167
14024
|
]);
|
|
14025
|
+
queryParams = _this.convertPaginationParamsToQueryParams(paginationParams);
|
|
14168
14026
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
14169
|
-
path = "".concat(cuiApiBaseUrl, "/api/
|
|
14027
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/credit/paymentschedules?").concat(queryParams.toString());
|
|
14028
|
+
logDebug("Payment schedules API request", {
|
|
14029
|
+
path: path,
|
|
14030
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14031
|
+
});
|
|
14032
|
+
return [
|
|
14033
|
+
4,
|
|
14034
|
+
_this.httpClient.get(path)
|
|
14035
|
+
];
|
|
14036
|
+
case 2:
|
|
14037
|
+
response = _state.sent();
|
|
14038
|
+
mappedResponse = _this.mapPaymentSchedulesApiResponse(response);
|
|
14039
|
+
logInfo("Payment schedules fetched successfully", {
|
|
14040
|
+
count: mappedResponse.count,
|
|
14041
|
+
hasMore: mappedResponse.hasMore,
|
|
14042
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14043
|
+
});
|
|
14044
|
+
return [
|
|
14045
|
+
2,
|
|
14046
|
+
mappedResponse
|
|
14047
|
+
];
|
|
14048
|
+
case 3:
|
|
14049
|
+
err = _state.sent();
|
|
14050
|
+
logError("Unable to retrieve payment schedules", {
|
|
14051
|
+
err: err,
|
|
14052
|
+
paginationParams: paginationParams,
|
|
14053
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14054
|
+
});
|
|
14055
|
+
throw new MqSDKError("Unable to retrieve payment schedules", err);
|
|
14056
|
+
case 4:
|
|
14057
|
+
return [
|
|
14058
|
+
2
|
|
14059
|
+
];
|
|
14060
|
+
}
|
|
14061
|
+
});
|
|
14062
|
+
})();
|
|
14063
|
+
}
|
|
14064
|
+
},
|
|
14065
|
+
{
|
|
14066
|
+
key: "mapPaymentSchedulesApiResponse",
|
|
14067
|
+
value: function mapPaymentSchedulesApiResponse(apiResponse) {
|
|
14068
|
+
var start_index = apiResponse.start_index, end_index = apiResponse.end_index, count = apiResponse.count, data = apiResponse.data, is_more = apiResponse.is_more;
|
|
14069
|
+
return {
|
|
14070
|
+
startIndex: start_index,
|
|
14071
|
+
endIndex: end_index,
|
|
14072
|
+
count: count,
|
|
14073
|
+
data: data,
|
|
14074
|
+
hasMore: is_more
|
|
14075
|
+
};
|
|
14076
|
+
}
|
|
14077
|
+
},
|
|
14078
|
+
{
|
|
14079
|
+
key: "convertPaginationParamsToQueryParams",
|
|
14080
|
+
value: function convertPaginationParamsToQueryParams(paginationParams) {
|
|
14081
|
+
var limit = paginationParams.limit, startIndex = paginationParams.startIndex, status = paginationParams.status, user_token = paginationParams.user_token, account_token = paginationParams.account_token;
|
|
14082
|
+
var queryParams = new URLSearchParams([
|
|
14083
|
+
[
|
|
14084
|
+
"count",
|
|
14085
|
+
"".concat(limit)
|
|
14086
|
+
],
|
|
14087
|
+
[
|
|
14088
|
+
"start_index",
|
|
14089
|
+
"".concat(startIndex)
|
|
14090
|
+
]
|
|
14091
|
+
]);
|
|
14092
|
+
if (status) {
|
|
14093
|
+
queryParams.append("status", status);
|
|
14094
|
+
}
|
|
14095
|
+
if (user_token) {
|
|
14096
|
+
queryParams.append("user_token", user_token);
|
|
14097
|
+
}
|
|
14098
|
+
if (account_token) {
|
|
14099
|
+
queryParams.append("account_token", account_token);
|
|
14100
|
+
}
|
|
14101
|
+
return queryParams;
|
|
14102
|
+
}
|
|
14103
|
+
}
|
|
14104
|
+
]);
|
|
14105
|
+
return _RestPaymentSchedulesRepository;
|
|
14106
|
+
}();
|
|
14107
|
+
__name(_RestPaymentSchedulesRepository, "RestPaymentSchedulesRepository");
|
|
14108
|
+
var RestPaymentSchedulesRepository = _RestPaymentSchedulesRepository;
|
|
14109
|
+
_ts_decorate43([
|
|
14110
|
+
inject8(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
14111
|
+
_ts_metadata9("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
14112
|
+
], RestPaymentSchedulesRepository.prototype, "httpClient", void 0);
|
|
14113
|
+
RestPaymentSchedulesRepository = _ts_decorate43([
|
|
14114
|
+
injectable43()
|
|
14115
|
+
], RestPaymentSchedulesRepository);
|
|
14116
|
+
// src/credit/adapters/rest/RestPaymentSourcesRepository.ts
|
|
14117
|
+
import { inject as inject9, injectable as injectable48 } from "inversify";
|
|
14118
|
+
// src/credit/base/repositories/paymentSourcesTypes.ts
|
|
14119
|
+
var ExternalAccountSourceTypeEnum;
|
|
14120
|
+
(function(ExternalAccountSourceTypeEnum2) {
|
|
14121
|
+
ExternalAccountSourceTypeEnum2["Checking"] = "CHECKING";
|
|
14122
|
+
ExternalAccountSourceTypeEnum2["Savings"] = "SAVINGS";
|
|
14123
|
+
ExternalAccountSourceTypeEnum2["External"] = "EXTERNAL";
|
|
14124
|
+
ExternalAccountSourceTypeEnum2["SecuredAccountFund"] = "SECURED_ACCOUNT_FUND";
|
|
14125
|
+
ExternalAccountSourceTypeEnum2["Other"] = "OTHER";
|
|
14126
|
+
})(ExternalAccountSourceTypeEnum || (ExternalAccountSourceTypeEnum = {}));
|
|
14127
|
+
var ExternalAccountVerificationStatusEnum;
|
|
14128
|
+
(function(ExternalAccountVerificationStatusEnum2) {
|
|
14129
|
+
ExternalAccountVerificationStatusEnum2["AchVerified"] = "ACH_VERIFIED";
|
|
14130
|
+
ExternalAccountVerificationStatusEnum2["Pending"] = "PENDING";
|
|
14131
|
+
})(ExternalAccountVerificationStatusEnum || (ExternalAccountVerificationStatusEnum = {}));
|
|
14132
|
+
var ExternalAccountStatusEnum;
|
|
14133
|
+
(function(ExternalAccountStatusEnum2) {
|
|
14134
|
+
ExternalAccountStatusEnum2["Active"] = "ACTIVE";
|
|
14135
|
+
ExternalAccountStatusEnum2["Pending"] = "PENDING";
|
|
14136
|
+
ExternalAccountStatusEnum2["Inactive"] = "INACTIVE";
|
|
14137
|
+
})(ExternalAccountStatusEnum || (ExternalAccountStatusEnum = {}));
|
|
14138
|
+
var ExternalAccountAccountTypeEnum;
|
|
14139
|
+
(function(ExternalAccountAccountTypeEnum2) {
|
|
14140
|
+
ExternalAccountAccountTypeEnum2["CreditPaymentSource"] = "CREDIT_PAYMENT_SOURCE";
|
|
14141
|
+
})(ExternalAccountAccountTypeEnum || (ExternalAccountAccountTypeEnum = {}));
|
|
14142
|
+
var IdentifierType;
|
|
14143
|
+
(function(IdentifierType2) {
|
|
14144
|
+
IdentifierType2["Token"] = "TOKEN";
|
|
14145
|
+
IdentifierType2["ExternalId"] = "EXTERNAL_ID";
|
|
14146
|
+
IdentifierType2["PhoneNumber"] = "PHONE_NUMBER";
|
|
14147
|
+
})(IdentifierType || (IdentifierType = {}));
|
|
14148
|
+
// src/credit/base/repositories/constants.ts
|
|
14149
|
+
var mockSchedule = {
|
|
14150
|
+
token: "schedule_123",
|
|
14151
|
+
amount: 100,
|
|
14152
|
+
currency_code: "USD",
|
|
14153
|
+
due_date: "2024-01-15",
|
|
14154
|
+
status: "ACTIVE",
|
|
14155
|
+
frequency: "MONTHLY",
|
|
14156
|
+
next_payment_impact_date: "2024-01-15",
|
|
14157
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
14158
|
+
updated_time: "2024-01-01T00:00:00Z"
|
|
14159
|
+
};
|
|
14160
|
+
var mockPaymentSource = {
|
|
14161
|
+
token: "source_123",
|
|
14162
|
+
account_token: "account_456",
|
|
14163
|
+
user_token: "user_789",
|
|
14164
|
+
business_token: "business_101",
|
|
14165
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
14166
|
+
last_modified_time: "2024-01-01T00:00:00Z",
|
|
14167
|
+
source_type: ExternalAccountSourceTypeEnum.Checking,
|
|
14168
|
+
name: "Primary Checking",
|
|
14169
|
+
owner: "John Doe",
|
|
14170
|
+
verification_status: ExternalAccountVerificationStatusEnum.AchVerified,
|
|
14171
|
+
verification_notes: "Verified via ACH",
|
|
14172
|
+
account_suffix: "1234",
|
|
14173
|
+
routing_number: "123456789",
|
|
14174
|
+
bank_name: "Test Bank",
|
|
14175
|
+
status: ExternalAccountStatusEnum.Active,
|
|
14176
|
+
account_type: ExternalAccountAccountTypeEnum.CreditPaymentSource
|
|
14177
|
+
};
|
|
14178
|
+
var mockExternalAccount = {
|
|
14179
|
+
token: "source_123",
|
|
14180
|
+
account_token: "account_456",
|
|
14181
|
+
user_token: "user_789",
|
|
14182
|
+
business_token: "business_101",
|
|
14183
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
14184
|
+
last_modified_time: "2024-01-01T00:00:00Z",
|
|
14185
|
+
source_type: ExternalAccountSourceTypeEnum.Checking,
|
|
14186
|
+
name: "Primary Checking",
|
|
14187
|
+
owner: "John Doe",
|
|
14188
|
+
verification_status: ExternalAccountVerificationStatusEnum.AchVerified,
|
|
14189
|
+
verification_notes: "Verified via ACH",
|
|
14190
|
+
account_suffix: "1234",
|
|
14191
|
+
routing_number: "123456789",
|
|
14192
|
+
bank_name: "Test Bank",
|
|
14193
|
+
status: ExternalAccountStatusEnum.Active,
|
|
14194
|
+
account_type: ExternalAccountAccountTypeEnum.CreditPaymentSource
|
|
14195
|
+
};
|
|
14196
|
+
// src/credit/base/repositories/iPaymentSchedulesRepository.ts
|
|
14197
|
+
import { injectable as injectable44 } from "inversify";
|
|
14198
|
+
function _ts_decorate44(decorators, target, key, desc) {
|
|
14199
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14200
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14201
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14202
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14203
|
+
}
|
|
14204
|
+
__name(_ts_decorate44, "_ts_decorate");
|
|
14205
|
+
var _iPaymentSchedulesRepository = function _iPaymentSchedulesRepository() {
|
|
14206
|
+
"use strict";
|
|
14207
|
+
_class_call_check(this, _iPaymentSchedulesRepository);
|
|
14208
|
+
};
|
|
14209
|
+
__name(_iPaymentSchedulesRepository, "iPaymentSchedulesRepository");
|
|
14210
|
+
var iPaymentSchedulesRepository = _iPaymentSchedulesRepository;
|
|
14211
|
+
iPaymentSchedulesRepository = _ts_decorate44([
|
|
14212
|
+
injectable44()
|
|
14213
|
+
], iPaymentSchedulesRepository);
|
|
14214
|
+
// src/credit/base/repositories/iPaymentSourcesRepository.ts
|
|
14215
|
+
import { injectable as injectable45 } from "inversify";
|
|
14216
|
+
function _ts_decorate45(decorators, target, key, desc) {
|
|
14217
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14218
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14219
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14220
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14221
|
+
}
|
|
14222
|
+
__name(_ts_decorate45, "_ts_decorate");
|
|
14223
|
+
var _iPaymentSourcesRepository = function _iPaymentSourcesRepository() {
|
|
14224
|
+
"use strict";
|
|
14225
|
+
_class_call_check(this, _iPaymentSourcesRepository);
|
|
14226
|
+
};
|
|
14227
|
+
__name(_iPaymentSourcesRepository, "iPaymentSourcesRepository");
|
|
14228
|
+
var iPaymentSourcesRepository = _iPaymentSourcesRepository;
|
|
14229
|
+
iPaymentSourcesRepository = _ts_decorate45([
|
|
14230
|
+
injectable45()
|
|
14231
|
+
], iPaymentSourcesRepository);
|
|
14232
|
+
// src/credit/base/repositories/MockPaymentSchedulesRepository.ts
|
|
14233
|
+
import { injectable as injectable46 } from "inversify";
|
|
14234
|
+
function _ts_decorate46(decorators, target, key, desc) {
|
|
14235
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14236
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14237
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14238
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14239
|
+
}
|
|
14240
|
+
__name(_ts_decorate46, "_ts_decorate");
|
|
14241
|
+
var _MockPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
14242
|
+
"use strict";
|
|
14243
|
+
function _MockPaymentSchedulesRepository() {
|
|
14244
|
+
_class_call_check(this, _MockPaymentSchedulesRepository);
|
|
14245
|
+
__publicField(this, "paymentSchedules", []);
|
|
14246
|
+
__publicField(this, "shouldThrowError", false);
|
|
14247
|
+
__publicField(this, "errorToThrow", null);
|
|
14248
|
+
}
|
|
14249
|
+
_create_class(_MockPaymentSchedulesRepository, [
|
|
14250
|
+
{
|
|
14251
|
+
key: "getPaymentSchedules",
|
|
14252
|
+
value: function getPaymentSchedules(paginationParams) {
|
|
14253
|
+
var _this = this;
|
|
14254
|
+
return _async_to_generator(function() {
|
|
14255
|
+
var limit, startIndex, endIndex, data;
|
|
14256
|
+
return _ts_generator(this, function(_state) {
|
|
14257
|
+
if (_this.shouldThrowError && _this.errorToThrow) {
|
|
14258
|
+
throw _this.errorToThrow;
|
|
14259
|
+
}
|
|
14260
|
+
limit = paginationParams.limit, startIndex = paginationParams.startIndex;
|
|
14261
|
+
endIndex = Math.min(startIndex + limit - 1, _this.paymentSchedules.length - 1);
|
|
14262
|
+
data = _this.paymentSchedules.slice(startIndex, startIndex + limit);
|
|
14263
|
+
return [
|
|
14264
|
+
2,
|
|
14265
|
+
{
|
|
14266
|
+
startIndex: startIndex,
|
|
14267
|
+
endIndex: endIndex,
|
|
14268
|
+
count: _this.paymentSchedules.length,
|
|
14269
|
+
data: data,
|
|
14270
|
+
hasMore: endIndex < _this.paymentSchedules.length - 1
|
|
14271
|
+
}
|
|
14272
|
+
];
|
|
14273
|
+
});
|
|
14274
|
+
})();
|
|
14275
|
+
}
|
|
14276
|
+
},
|
|
14277
|
+
{
|
|
14278
|
+
key: "setPaymentSchedules",
|
|
14279
|
+
value: function setPaymentSchedules(schedules) {
|
|
14280
|
+
this.paymentSchedules = schedules;
|
|
14281
|
+
}
|
|
14282
|
+
},
|
|
14283
|
+
{
|
|
14284
|
+
key: "setShouldThrowError",
|
|
14285
|
+
value: function setShouldThrowError(shouldThrow, error2) {
|
|
14286
|
+
this.shouldThrowError = shouldThrow;
|
|
14287
|
+
this.errorToThrow = error2 || null;
|
|
14288
|
+
}
|
|
14289
|
+
}
|
|
14290
|
+
]);
|
|
14291
|
+
return _MockPaymentSchedulesRepository;
|
|
14292
|
+
}();
|
|
14293
|
+
__name(_MockPaymentSchedulesRepository, "MockPaymentSchedulesRepository");
|
|
14294
|
+
var MockPaymentSchedulesRepository = _MockPaymentSchedulesRepository;
|
|
14295
|
+
MockPaymentSchedulesRepository = _ts_decorate46([
|
|
14296
|
+
injectable46()
|
|
14297
|
+
], MockPaymentSchedulesRepository);
|
|
14298
|
+
// src/credit/base/repositories/MockPaymentSourcesRepository.ts
|
|
14299
|
+
import { injectable as injectable47 } from "inversify";
|
|
14300
|
+
function _ts_decorate47(decorators, target, key, desc) {
|
|
14301
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14302
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14303
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14304
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14305
|
+
}
|
|
14306
|
+
__name(_ts_decorate47, "_ts_decorate");
|
|
14307
|
+
var _MockPaymentSourcesRepository = /*#__PURE__*/ function() {
|
|
14308
|
+
"use strict";
|
|
14309
|
+
function _MockPaymentSourcesRepository() {
|
|
14310
|
+
_class_call_check(this, _MockPaymentSourcesRepository);
|
|
14311
|
+
__publicField(this, "paymentSources", []);
|
|
14312
|
+
__publicField(this, "shouldThrowError", false);
|
|
14313
|
+
__publicField(this, "errorToThrow", null);
|
|
14314
|
+
}
|
|
14315
|
+
_create_class(_MockPaymentSourcesRepository, [
|
|
14316
|
+
{
|
|
14317
|
+
key: "getPaymentSources",
|
|
14318
|
+
value: function getPaymentSources(externalAccountsListParams) {
|
|
14319
|
+
var _this = this;
|
|
14320
|
+
return _async_to_generator(function() {
|
|
14321
|
+
return _ts_generator(this, function(_state) {
|
|
14322
|
+
if (_this.shouldThrowError && _this.errorToThrow) {
|
|
14323
|
+
throw _this.errorToThrow;
|
|
14324
|
+
}
|
|
14325
|
+
return [
|
|
14326
|
+
2,
|
|
14327
|
+
{
|
|
14328
|
+
start_index: 0,
|
|
14329
|
+
end_index: 20,
|
|
14330
|
+
count: 20,
|
|
14331
|
+
has_more: false,
|
|
14332
|
+
data: [
|
|
14333
|
+
mockPaymentSource
|
|
14334
|
+
]
|
|
14335
|
+
}
|
|
14336
|
+
];
|
|
14337
|
+
});
|
|
14338
|
+
})();
|
|
14339
|
+
}
|
|
14340
|
+
},
|
|
14341
|
+
{
|
|
14342
|
+
key: "setPaymentSources",
|
|
14343
|
+
value: function setPaymentSources(externalAccounts) {
|
|
14344
|
+
this.paymentSources = externalAccounts;
|
|
14345
|
+
}
|
|
14346
|
+
},
|
|
14347
|
+
{
|
|
14348
|
+
key: "setShouldThrowError",
|
|
14349
|
+
value: function setShouldThrowError(shouldThrow, error2) {
|
|
14350
|
+
this.shouldThrowError = shouldThrow;
|
|
14351
|
+
this.errorToThrow = error2 || null;
|
|
14352
|
+
}
|
|
14353
|
+
}
|
|
14354
|
+
]);
|
|
14355
|
+
return _MockPaymentSourcesRepository;
|
|
14356
|
+
}();
|
|
14357
|
+
__name(_MockPaymentSourcesRepository, "MockPaymentSourcesRepository");
|
|
14358
|
+
var MockPaymentSourcesRepository = _MockPaymentSourcesRepository;
|
|
14359
|
+
MockPaymentSourcesRepository = _ts_decorate47([
|
|
14360
|
+
injectable47()
|
|
14361
|
+
], MockPaymentSourcesRepository);
|
|
14362
|
+
// src/credit/adapters/rest/RestPaymentSourcesRepository.ts
|
|
14363
|
+
function _ts_decorate48(decorators, target, key, desc) {
|
|
14364
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14365
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14366
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14367
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14368
|
+
}
|
|
14369
|
+
__name(_ts_decorate48, "_ts_decorate");
|
|
14370
|
+
function _ts_metadata10(k, v) {
|
|
14371
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14372
|
+
}
|
|
14373
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
14374
|
+
var _RestPaymentSourcesRepository = /*#__PURE__*/ function() {
|
|
14375
|
+
"use strict";
|
|
14376
|
+
function _RestPaymentSourcesRepository() {
|
|
14377
|
+
_class_call_check(this, _RestPaymentSourcesRepository);
|
|
14378
|
+
__publicField(this, "httpClient");
|
|
14379
|
+
}
|
|
14380
|
+
_create_class(_RestPaymentSourcesRepository, [
|
|
14381
|
+
{
|
|
14382
|
+
key: "getPaymentSources",
|
|
14383
|
+
value: function getPaymentSources(params) {
|
|
14384
|
+
var _this = this;
|
|
14385
|
+
return _async_to_generator(function() {
|
|
14386
|
+
var queryParams, cuiApiBaseUrl, path, response, mappedResponse, err;
|
|
14387
|
+
return _ts_generator(this, function(_state) {
|
|
14388
|
+
switch(_state.label){
|
|
14389
|
+
case 0:
|
|
14390
|
+
logDebug("Fetching external accounts", {
|
|
14391
|
+
params: params,
|
|
14392
|
+
adapter: "RestPaymentSourcesRepository"
|
|
14393
|
+
});
|
|
14394
|
+
_state.label = 1;
|
|
14395
|
+
case 1:
|
|
14396
|
+
_state.trys.push([
|
|
14397
|
+
1,
|
|
14398
|
+
3,
|
|
14399
|
+
,
|
|
14400
|
+
4
|
|
14401
|
+
]);
|
|
14402
|
+
queryParams = _this.convertExternalAccountsListParamsToQueryParams(params);
|
|
14403
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
14404
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/credit/paymentSources?").concat(queryParams.toString());
|
|
14405
|
+
logDebug("External accounts API request", {
|
|
14406
|
+
path: path,
|
|
14407
|
+
adapter: "RestPaymentSourcesRepository"
|
|
14408
|
+
});
|
|
14409
|
+
return [
|
|
14410
|
+
4,
|
|
14411
|
+
_this.httpClient.get(path, {
|
|
14412
|
+
headers: _object_spread({}, getRnCommonApiHeaders)
|
|
14413
|
+
})
|
|
14414
|
+
];
|
|
14415
|
+
case 2:
|
|
14416
|
+
response = _state.sent();
|
|
14417
|
+
mappedResponse = _this.mapExternalAccountsApiResponse(response);
|
|
14418
|
+
logInfo("External accounts fetched successfully", {
|
|
14419
|
+
count: mappedResponse.count,
|
|
14420
|
+
hasMore: mappedResponse.has_more,
|
|
14421
|
+
adapter: "RestPaymentSourcesRepository"
|
|
14422
|
+
});
|
|
14423
|
+
return [
|
|
14424
|
+
2,
|
|
14425
|
+
mappedResponse
|
|
14426
|
+
];
|
|
14427
|
+
case 3:
|
|
14428
|
+
err = _state.sent();
|
|
14429
|
+
logError("Unable to retrieve external accounts", {
|
|
14430
|
+
err: err,
|
|
14431
|
+
params: params,
|
|
14432
|
+
adapter: "RestPaymentSourcesRepository"
|
|
14433
|
+
});
|
|
14434
|
+
throw new MqSDKError("Unable to retrieve external accounts", err);
|
|
14435
|
+
case 4:
|
|
14436
|
+
return [
|
|
14437
|
+
2
|
|
14438
|
+
];
|
|
14439
|
+
}
|
|
14440
|
+
});
|
|
14441
|
+
})();
|
|
14442
|
+
}
|
|
14443
|
+
},
|
|
14444
|
+
{
|
|
14445
|
+
key: "mapExternalAccountsApiResponse",
|
|
14446
|
+
value: function mapExternalAccountsApiResponse(apiResponse) {
|
|
14447
|
+
var start_index = apiResponse.start_index, end_index = apiResponse.end_index, count = apiResponse.count, data = apiResponse.data, is_more = apiResponse.is_more;
|
|
14448
|
+
return {
|
|
14449
|
+
start_index: start_index,
|
|
14450
|
+
end_index: end_index,
|
|
14451
|
+
count: count,
|
|
14452
|
+
data: data,
|
|
14453
|
+
has_more: is_more
|
|
14454
|
+
};
|
|
14455
|
+
}
|
|
14456
|
+
},
|
|
14457
|
+
{
|
|
14458
|
+
key: "convertExternalAccountsListParamsToQueryParams",
|
|
14459
|
+
value: function convertExternalAccountsListParamsToQueryParams(params) {
|
|
14460
|
+
var idType;
|
|
14461
|
+
var queryParams = new URLSearchParams();
|
|
14462
|
+
if (params) {
|
|
14463
|
+
var userToken = params.userToken, accountToken = params.accountToken;
|
|
14464
|
+
if (accountToken) {
|
|
14465
|
+
queryParams.append("account_token", accountToken);
|
|
14466
|
+
}
|
|
14467
|
+
if (userToken) {
|
|
14468
|
+
queryParams.append("id", userToken);
|
|
14469
|
+
}
|
|
14470
|
+
idType = params.idType;
|
|
14471
|
+
}
|
|
14472
|
+
queryParams.append("id_type", idType !== null && idType !== void 0 ? idType : IdentifierType.Token);
|
|
14473
|
+
return queryParams;
|
|
14474
|
+
}
|
|
14475
|
+
}
|
|
14476
|
+
]);
|
|
14477
|
+
return _RestPaymentSourcesRepository;
|
|
14478
|
+
}();
|
|
14479
|
+
__name(_RestPaymentSourcesRepository, "RestPaymentSourcesRepository");
|
|
14480
|
+
var RestPaymentSourcesRepository = _RestPaymentSourcesRepository;
|
|
14481
|
+
_ts_decorate48([
|
|
14482
|
+
inject9(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
14483
|
+
_ts_metadata10("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
14484
|
+
], RestPaymentSourcesRepository.prototype, "httpClient", void 0);
|
|
14485
|
+
RestPaymentSourcesRepository = _ts_decorate48([
|
|
14486
|
+
injectable48()
|
|
14487
|
+
], RestPaymentSourcesRepository);
|
|
14488
|
+
// src/credit/ioc/symbols.ts
|
|
14489
|
+
var ITF_PAYMENT_SCHEDULES_REPOSITORY = Symbol.for("iPaymentSchedulesRepository");
|
|
14490
|
+
var ITF_PAYMENT_SOURCES_REPOSITORY = Symbol.for("iPaymentSourcesRepository");
|
|
14491
|
+
function getPaymentSchedules(paginationParams) {
|
|
14492
|
+
return _getPaymentSchedules.apply(this, arguments);
|
|
14493
|
+
}
|
|
14494
|
+
function _getPaymentSchedules() {
|
|
14495
|
+
_getPaymentSchedules = // src/credit/base/interactors/getPaymentSchedules.ts
|
|
14496
|
+
_async_to_generator(function(paginationParams) {
|
|
14497
|
+
var container2, paymentSchedulesRepository, result, error2;
|
|
14498
|
+
return _ts_generator(this, function(_state) {
|
|
14499
|
+
switch(_state.label){
|
|
14500
|
+
case 0:
|
|
14501
|
+
logDebug("Getting payment schedules", {
|
|
14502
|
+
paginationParams: paginationParams,
|
|
14503
|
+
interactor: "getPaymentSchedules"
|
|
14504
|
+
});
|
|
14505
|
+
_state.label = 1;
|
|
14506
|
+
case 1:
|
|
14507
|
+
_state.trys.push([
|
|
14508
|
+
1,
|
|
14509
|
+
3,
|
|
14510
|
+
,
|
|
14511
|
+
4
|
|
14512
|
+
]);
|
|
14513
|
+
container2 = getActiveIocContainer();
|
|
14514
|
+
paymentSchedulesRepository = container2.get(ITF_PAYMENT_SCHEDULES_REPOSITORY);
|
|
14515
|
+
return [
|
|
14516
|
+
4,
|
|
14517
|
+
paymentSchedulesRepository.getPaymentSchedules(paginationParams)
|
|
14518
|
+
];
|
|
14519
|
+
case 2:
|
|
14520
|
+
result = _state.sent();
|
|
14521
|
+
logInfo("Payment schedules retrieved successfully", {
|
|
14522
|
+
count: result.count,
|
|
14523
|
+
hasMore: result.hasMore,
|
|
14524
|
+
interactor: "getPaymentSchedules"
|
|
14525
|
+
});
|
|
14526
|
+
return [
|
|
14527
|
+
2,
|
|
14528
|
+
result
|
|
14529
|
+
];
|
|
14530
|
+
case 3:
|
|
14531
|
+
error2 = _state.sent();
|
|
14532
|
+
logError("Failed to get payment schedules", {
|
|
14533
|
+
error: error2,
|
|
14534
|
+
paginationParams: paginationParams,
|
|
14535
|
+
interactor: "getPaymentSchedules"
|
|
14536
|
+
});
|
|
14537
|
+
throw error2;
|
|
14538
|
+
case 4:
|
|
14539
|
+
return [
|
|
14540
|
+
2
|
|
14541
|
+
];
|
|
14542
|
+
}
|
|
14543
|
+
});
|
|
14544
|
+
});
|
|
14545
|
+
return _getPaymentSchedules.apply(this, arguments);
|
|
14546
|
+
}
|
|
14547
|
+
__name(getPaymentSchedules, "getPaymentSchedules");
|
|
14548
|
+
function getPaymentSources(externalAccountParams) {
|
|
14549
|
+
return _getPaymentSources.apply(this, arguments);
|
|
14550
|
+
}
|
|
14551
|
+
function _getPaymentSources() {
|
|
14552
|
+
_getPaymentSources = // src/credit/base/interactors/getPaymentSources.ts
|
|
14553
|
+
_async_to_generator(function(externalAccountParams) {
|
|
14554
|
+
var container2, paymentSourcesRepository, result, error2;
|
|
14555
|
+
return _ts_generator(this, function(_state) {
|
|
14556
|
+
switch(_state.label){
|
|
14557
|
+
case 0:
|
|
14558
|
+
logDebug("Getting payment sources", {
|
|
14559
|
+
externalAccountParams: externalAccountParams,
|
|
14560
|
+
interactor: "getPaymentSources"
|
|
14561
|
+
});
|
|
14562
|
+
_state.label = 1;
|
|
14563
|
+
case 1:
|
|
14564
|
+
_state.trys.push([
|
|
14565
|
+
1,
|
|
14566
|
+
3,
|
|
14567
|
+
,
|
|
14568
|
+
4
|
|
14569
|
+
]);
|
|
14570
|
+
container2 = getActiveIocContainer();
|
|
14571
|
+
paymentSourcesRepository = container2.get(ITF_PAYMENT_SOURCES_REPOSITORY);
|
|
14572
|
+
return [
|
|
14573
|
+
4,
|
|
14574
|
+
paymentSourcesRepository.getPaymentSources(externalAccountParams)
|
|
14575
|
+
];
|
|
14576
|
+
case 2:
|
|
14577
|
+
result = _state.sent();
|
|
14578
|
+
logInfo("Payment Sources retreived Successfully", {
|
|
14579
|
+
count: result.count,
|
|
14580
|
+
has_more: result.has_more,
|
|
14581
|
+
interactor: "getPaymentSources"
|
|
14582
|
+
});
|
|
14583
|
+
return [
|
|
14584
|
+
2,
|
|
14585
|
+
result
|
|
14586
|
+
];
|
|
14587
|
+
case 3:
|
|
14588
|
+
error2 = _state.sent();
|
|
14589
|
+
logError("Failed to load Payment Sources", {
|
|
14590
|
+
error: error2,
|
|
14591
|
+
externalAccountParams: externalAccountParams,
|
|
14592
|
+
interactor: "getPaymentSources"
|
|
14593
|
+
});
|
|
14594
|
+
throw error2;
|
|
14595
|
+
case 4:
|
|
14596
|
+
return [
|
|
14597
|
+
2
|
|
14598
|
+
];
|
|
14599
|
+
}
|
|
14600
|
+
});
|
|
14601
|
+
});
|
|
14602
|
+
return _getPaymentSources.apply(this, arguments);
|
|
14603
|
+
}
|
|
14604
|
+
__name(getPaymentSources, "getPaymentSources");
|
|
14605
|
+
// src/credit/ioc/creditIOCModule.ts
|
|
14606
|
+
import { ContainerModule as ContainerModule14 } from "inversify";
|
|
14607
|
+
var creditIOCModule = new ContainerModule14(function(bind) {
|
|
14608
|
+
bind(ITF_PAYMENT_SCHEDULES_REPOSITORY).to(RestPaymentSchedulesRepository).inSingletonScope();
|
|
14609
|
+
bind(ITF_PAYMENT_SOURCES_REPOSITORY).to(RestPaymentSourcesRepository).inSingletonScope();
|
|
14610
|
+
});
|
|
14611
|
+
// src/credit/ioc/mockCreditIOCModule.ts
|
|
14612
|
+
import { ContainerModule as ContainerModule15 } from "inversify";
|
|
14613
|
+
var mockCreditIOCModule = new ContainerModule15(function(bind) {
|
|
14614
|
+
bind(ITF_PAYMENT_SCHEDULES_REPOSITORY).to(MockPaymentSchedulesRepository).inSingletonScope();
|
|
14615
|
+
bind(ITF_PAYMENT_SOURCES_REPOSITORY).to(MockPaymentSourcesRepository).inSingletonScope();
|
|
14616
|
+
});
|
|
14617
|
+
// src/components/ioc/symbols.ts
|
|
14618
|
+
var ITF_COMPONENTS_REPOSITORY = Symbol.for("iComponentsRepository");
|
|
14619
|
+
function loadEnabledComponentsByShortCode() {
|
|
14620
|
+
return _loadEnabledComponentsByShortCode.apply(this, arguments);
|
|
14621
|
+
}
|
|
14622
|
+
function _loadEnabledComponentsByShortCode() {
|
|
14623
|
+
_loadEnabledComponentsByShortCode = // src/components/base/interactors/loadEnabledComponentsByShortCode.ts
|
|
14624
|
+
_async_to_generator(function() {
|
|
14625
|
+
var container2, componentsRepository, registryService, enabledComponents, error2;
|
|
14626
|
+
return _ts_generator(this, function(_state) {
|
|
14627
|
+
switch(_state.label){
|
|
14628
|
+
case 0:
|
|
14629
|
+
logDebug("Loading enabled components by short code", {
|
|
14630
|
+
interactor: "loadEnabledComponentsByShortCode"
|
|
14631
|
+
});
|
|
14632
|
+
_state.label = 1;
|
|
14633
|
+
case 1:
|
|
14634
|
+
_state.trys.push([
|
|
14635
|
+
1,
|
|
14636
|
+
4,
|
|
14637
|
+
,
|
|
14638
|
+
5
|
|
14639
|
+
]);
|
|
14640
|
+
container2 = getActiveIocContainer();
|
|
14641
|
+
componentsRepository = container2.get(ITF_COMPONENTS_REPOSITORY);
|
|
14642
|
+
registryService = container2.get(ITF_REGISTRY_SERVICE);
|
|
14643
|
+
return [
|
|
14644
|
+
4,
|
|
14645
|
+
componentsRepository.getEnabledComponentsByShortCode()
|
|
14646
|
+
];
|
|
14647
|
+
case 2:
|
|
14648
|
+
enabledComponents = _state.sent();
|
|
14649
|
+
return [
|
|
14650
|
+
4,
|
|
14651
|
+
registryService.set("enabledComponents", enabledComponents)
|
|
14652
|
+
];
|
|
14653
|
+
case 3:
|
|
14654
|
+
_state.sent();
|
|
14655
|
+
logInfo("Enabled components loaded successfully", {
|
|
14656
|
+
componentCount: enabledComponents.length,
|
|
14657
|
+
interactor: "loadEnabledComponentsByShortCode"
|
|
14658
|
+
});
|
|
14659
|
+
return [
|
|
14660
|
+
3,
|
|
14661
|
+
5
|
|
14662
|
+
];
|
|
14663
|
+
case 4:
|
|
14664
|
+
error2 = _state.sent();
|
|
14665
|
+
logError("Error loading enabled components", {
|
|
14666
|
+
error: error2,
|
|
14667
|
+
interactor: "loadEnabledComponentsByShortCode"
|
|
14668
|
+
});
|
|
14669
|
+
throw new MqSDKError("error loading enabled components", error2);
|
|
14670
|
+
case 5:
|
|
14671
|
+
return [
|
|
14672
|
+
2
|
|
14673
|
+
];
|
|
14674
|
+
}
|
|
14675
|
+
});
|
|
14676
|
+
});
|
|
14677
|
+
return _loadEnabledComponentsByShortCode.apply(this, arguments);
|
|
14678
|
+
}
|
|
14679
|
+
__name(loadEnabledComponentsByShortCode, "loadEnabledComponentsByShortCode");
|
|
14680
|
+
// src/components/base/interactors/isComponentEnabled.ts
|
|
14681
|
+
function isComponentEnabled(componentName) {
|
|
14682
|
+
logDebug("Checking if component is enabled", {
|
|
14683
|
+
componentName: componentName,
|
|
14684
|
+
interactor: "isComponentEnabled"
|
|
14685
|
+
});
|
|
14686
|
+
try {
|
|
14687
|
+
var container2 = getActiveIocContainer();
|
|
14688
|
+
var registryService = container2.get(ITF_REGISTRY_SERVICE);
|
|
14689
|
+
var enabledComponents = registryService.get("enabledComponents");
|
|
14690
|
+
var isEnabled = enabledComponents.includes(componentName);
|
|
14691
|
+
logDebug("Component enabled check completed", {
|
|
14692
|
+
componentName: componentName,
|
|
14693
|
+
isEnabled: isEnabled,
|
|
14694
|
+
interactor: "isComponentEnabled"
|
|
14695
|
+
});
|
|
14696
|
+
return isEnabled;
|
|
14697
|
+
} catch (error2) {
|
|
14698
|
+
logError("Unable to fetch enabled components from Registry", {
|
|
14699
|
+
error: error2,
|
|
14700
|
+
componentName: componentName,
|
|
14701
|
+
interactor: "isComponentEnabled"
|
|
14702
|
+
});
|
|
14703
|
+
throw new MqSDKError("Unable to fetch enabled components from Registry", error2);
|
|
14704
|
+
}
|
|
14705
|
+
}
|
|
14706
|
+
__name(isComponentEnabled, "isComponentEnabled");
|
|
14707
|
+
// src/components/base/repositories/iComponentsRepository.ts
|
|
14708
|
+
import { injectable as injectable49 } from "inversify";
|
|
14709
|
+
function _ts_decorate49(decorators, target, key, desc) {
|
|
14710
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14711
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14712
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14713
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14714
|
+
}
|
|
14715
|
+
__name(_ts_decorate49, "_ts_decorate");
|
|
14716
|
+
var _iComponentsRepository = function _iComponentsRepository() {
|
|
14717
|
+
"use strict";
|
|
14718
|
+
_class_call_check(this, _iComponentsRepository);
|
|
14719
|
+
};
|
|
14720
|
+
__name(_iComponentsRepository, "iComponentsRepository");
|
|
14721
|
+
var iComponentsRepository = _iComponentsRepository;
|
|
14722
|
+
iComponentsRepository = _ts_decorate49([
|
|
14723
|
+
injectable49()
|
|
14724
|
+
], iComponentsRepository);
|
|
14725
|
+
// src/components/base/repositories/MockComponentsRepository.ts
|
|
14726
|
+
import { injectable as injectable50 } from "inversify";
|
|
14727
|
+
function _ts_decorate50(decorators, target, key, desc) {
|
|
14728
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14729
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14730
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14731
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14732
|
+
}
|
|
14733
|
+
__name(_ts_decorate50, "_ts_decorate");
|
|
14734
|
+
var CUI_ENABLED_SHORT_CODE = "cui-enabled-short-code";
|
|
14735
|
+
var REPOSITORY_METHOD_FAILING_SHORT_CODE = "bad-short-code";
|
|
14736
|
+
var LIST_OF_ENABLED_COMPONENTS = [
|
|
14737
|
+
"mq-account",
|
|
14738
|
+
"mq-activate-card",
|
|
14739
|
+
"mq-card-actions",
|
|
14740
|
+
"mq-card-list",
|
|
14741
|
+
"mq-external-account-list",
|
|
14742
|
+
"mq-file-dispute",
|
|
14743
|
+
"mq-link-external-card",
|
|
14744
|
+
"mq-onboard-account-holder",
|
|
14745
|
+
"mq-replace-card",
|
|
14746
|
+
"mq-reveal-pin",
|
|
14747
|
+
"mq-set-pin",
|
|
14748
|
+
"mq-statements",
|
|
14749
|
+
"mq-transaction",
|
|
14750
|
+
"mq-transaction-list",
|
|
14751
|
+
"mq-transfer-funds",
|
|
14752
|
+
"mq-view-card-details"
|
|
14753
|
+
];
|
|
14754
|
+
var _MockComponentsRepository = /*#__PURE__*/ function() {
|
|
14755
|
+
"use strict";
|
|
14756
|
+
function _MockComponentsRepository() {
|
|
14757
|
+
_class_call_check(this, _MockComponentsRepository);
|
|
14758
|
+
__publicField(this, "registry", {
|
|
14759
|
+
enabledComponents: LIST_OF_ENABLED_COMPONENTS
|
|
14760
|
+
});
|
|
14761
|
+
__publicField(this, "shouldFail", false);
|
|
14762
|
+
}
|
|
14763
|
+
_create_class(_MockComponentsRepository, [
|
|
14764
|
+
{
|
|
14765
|
+
key: "setShouldFail",
|
|
14766
|
+
value: function setShouldFail(shouldFail) {
|
|
14767
|
+
this.shouldFail = shouldFail;
|
|
14768
|
+
}
|
|
14769
|
+
},
|
|
14770
|
+
{
|
|
14771
|
+
key: "getEnabledComponentsByShortCode",
|
|
14772
|
+
value: function getEnabledComponentsByShortCode() {
|
|
14773
|
+
var _this = this;
|
|
14774
|
+
return _async_to_generator(function() {
|
|
14775
|
+
return _ts_generator(this, function(_state) {
|
|
14776
|
+
if (_this.shouldFail) {
|
|
14777
|
+
throw new Error("Fetching components failed");
|
|
14778
|
+
}
|
|
14779
|
+
if (!_this.registry.enabledComponents) {
|
|
14780
|
+
return [
|
|
14781
|
+
2,
|
|
14782
|
+
[]
|
|
14783
|
+
];
|
|
14784
|
+
}
|
|
14785
|
+
return [
|
|
14786
|
+
2,
|
|
14787
|
+
_this.registry.enabledComponents
|
|
14788
|
+
];
|
|
14789
|
+
});
|
|
14790
|
+
})();
|
|
14791
|
+
}
|
|
14792
|
+
}
|
|
14793
|
+
]);
|
|
14794
|
+
return _MockComponentsRepository;
|
|
14795
|
+
}();
|
|
14796
|
+
__name(_MockComponentsRepository, "MockComponentsRepository");
|
|
14797
|
+
var MockComponentsRepository = _MockComponentsRepository;
|
|
14798
|
+
MockComponentsRepository = _ts_decorate50([
|
|
14799
|
+
injectable50()
|
|
14800
|
+
], MockComponentsRepository);
|
|
14801
|
+
// src/components/ioc/componentsIOCModule.ts
|
|
14802
|
+
import { ContainerModule as ContainerModule16 } from "inversify";
|
|
14803
|
+
// src/components/adapters/rest/RestComponentsRepository.ts
|
|
14804
|
+
import { inject as inject10, injectable as injectable51 } from "inversify";
|
|
14805
|
+
function _ts_decorate51(decorators, target, key, desc) {
|
|
14806
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14807
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14808
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14809
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14810
|
+
}
|
|
14811
|
+
__name(_ts_decorate51, "_ts_decorate");
|
|
14812
|
+
function _ts_metadata11(k, v) {
|
|
14813
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14814
|
+
}
|
|
14815
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
14816
|
+
var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
14817
|
+
"use strict";
|
|
14818
|
+
function _RestComponentsRepository() {
|
|
14819
|
+
_class_call_check(this, _RestComponentsRepository);
|
|
14820
|
+
__publicField(this, "httpClient");
|
|
14821
|
+
}
|
|
14822
|
+
_create_class(_RestComponentsRepository, [
|
|
14823
|
+
{
|
|
14824
|
+
key: "getEnabledComponentsByShortCode",
|
|
14825
|
+
value: function getEnabledComponentsByShortCode() {
|
|
14826
|
+
var _this = this;
|
|
14827
|
+
return _async_to_generator(function() {
|
|
14828
|
+
var _data_components, cuiApiBaseUrl, path, data, error2;
|
|
14829
|
+
return _ts_generator(this, function(_state) {
|
|
14830
|
+
switch(_state.label){
|
|
14831
|
+
case 0:
|
|
14832
|
+
logDebug("Getting enabled components by short code", {
|
|
14833
|
+
adapter: "RestComponentsRepository"
|
|
14834
|
+
});
|
|
14835
|
+
_state.label = 1;
|
|
14836
|
+
case 1:
|
|
14837
|
+
_state.trys.push([
|
|
14838
|
+
1,
|
|
14839
|
+
3,
|
|
14840
|
+
,
|
|
14841
|
+
4
|
|
14842
|
+
]);
|
|
14843
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
14844
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/components/enabled");
|
|
14170
14845
|
return [
|
|
14171
14846
|
4,
|
|
14172
14847
|
_this.httpClient.get(path)
|
|
@@ -14202,12 +14877,12 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
14202
14877
|
}();
|
|
14203
14878
|
__name(_RestComponentsRepository, "RestComponentsRepository");
|
|
14204
14879
|
var RestComponentsRepository = _RestComponentsRepository;
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14880
|
+
_ts_decorate51([
|
|
14881
|
+
inject10(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
14882
|
+
_ts_metadata11("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
14208
14883
|
], RestComponentsRepository.prototype, "httpClient", void 0);
|
|
14209
|
-
RestComponentsRepository =
|
|
14210
|
-
|
|
14884
|
+
RestComponentsRepository = _ts_decorate51([
|
|
14885
|
+
injectable51()
|
|
14211
14886
|
], RestComponentsRepository);
|
|
14212
14887
|
// src/components/adapters/rest/httpMocks/mswComponentsHandler.ts
|
|
14213
14888
|
var mswComponentsHandlers = [
|
|
@@ -14233,7 +14908,7 @@ var mswComponentsHandlers = [
|
|
|
14233
14908
|
})
|
|
14234
14909
|
];
|
|
14235
14910
|
// src/components/ioc/componentsIOCModule.ts
|
|
14236
|
-
var componentsIOCModule = new
|
|
14911
|
+
var componentsIOCModule = new ContainerModule16(function(bind) {
|
|
14237
14912
|
bind(ITF_COMPONENTS_REPOSITORY).to(RestComponentsRepository).inSingletonScope();
|
|
14238
14913
|
});
|
|
14239
14914
|
// src/disputes/ioc/symbols.ts
|
|
@@ -14780,25 +15455,25 @@ function _downloadDocumentForDispute() {
|
|
|
14780
15455
|
}
|
|
14781
15456
|
__name(downloadDocumentForDispute, "downloadDocumentForDispute");
|
|
14782
15457
|
// src/disputes/base/repositories/iDisputesRepository.ts
|
|
14783
|
-
import { injectable as
|
|
14784
|
-
function
|
|
15458
|
+
import { injectable as injectable52 } from "inversify";
|
|
15459
|
+
function _ts_decorate52(decorators, target, key, desc) {
|
|
14785
15460
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14786
15461
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14787
15462
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14788
15463
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14789
15464
|
}
|
|
14790
|
-
__name(
|
|
15465
|
+
__name(_ts_decorate52, "_ts_decorate");
|
|
14791
15466
|
var _iDisputesRepository = function _iDisputesRepository() {
|
|
14792
15467
|
"use strict";
|
|
14793
15468
|
_class_call_check(this, _iDisputesRepository);
|
|
14794
15469
|
};
|
|
14795
15470
|
__name(_iDisputesRepository, "iDisputesRepository");
|
|
14796
15471
|
var iDisputesRepository = _iDisputesRepository;
|
|
14797
|
-
iDisputesRepository =
|
|
14798
|
-
|
|
15472
|
+
iDisputesRepository = _ts_decorate52([
|
|
15473
|
+
injectable52()
|
|
14799
15474
|
], iDisputesRepository);
|
|
14800
15475
|
// src/disputes/base/repositories/MockDisputesRepository.ts
|
|
14801
|
-
import { injectable as
|
|
15476
|
+
import { injectable as injectable53 } from "inversify";
|
|
14802
15477
|
// src/disputes/base/types/DisputeStep.ts
|
|
14803
15478
|
var AlertType;
|
|
14804
15479
|
(function(AlertType2) {
|
|
@@ -15214,13 +15889,13 @@ var MOCK_DELETE_DOCUMENTS_RESPONSE = {
|
|
|
15214
15889
|
ok: true
|
|
15215
15890
|
};
|
|
15216
15891
|
// src/disputes/base/repositories/MockDisputesRepository.ts
|
|
15217
|
-
function
|
|
15892
|
+
function _ts_decorate53(decorators, target, key, desc) {
|
|
15218
15893
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15219
15894
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15220
15895
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15221
15896
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15222
15897
|
}
|
|
15223
|
-
__name(
|
|
15898
|
+
__name(_ts_decorate53, "_ts_decorate");
|
|
15224
15899
|
var _MockDisputesRepository = /*#__PURE__*/ function() {
|
|
15225
15900
|
"use strict";
|
|
15226
15901
|
function _MockDisputesRepository() {
|
|
@@ -15374,24 +16049,24 @@ var _MockDisputesRepository = /*#__PURE__*/ function() {
|
|
|
15374
16049
|
}();
|
|
15375
16050
|
__name(_MockDisputesRepository, "MockDisputesRepository");
|
|
15376
16051
|
var MockDisputesRepository = _MockDisputesRepository;
|
|
15377
|
-
MockDisputesRepository =
|
|
15378
|
-
|
|
16052
|
+
MockDisputesRepository = _ts_decorate53([
|
|
16053
|
+
injectable53()
|
|
15379
16054
|
], MockDisputesRepository);
|
|
15380
16055
|
// src/disputes/ioc/disputesIOCModule.ts
|
|
15381
|
-
import { ContainerModule as
|
|
16056
|
+
import { ContainerModule as ContainerModule17 } from "inversify";
|
|
15382
16057
|
// src/disputes/adapters/rest/RestDisputeRepository.ts
|
|
15383
|
-
import { inject as
|
|
15384
|
-
function
|
|
16058
|
+
import { inject as inject11, injectable as injectable54 } from "inversify";
|
|
16059
|
+
function _ts_decorate54(decorators, target, key, desc) {
|
|
15385
16060
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15386
16061
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15387
16062
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15388
16063
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15389
16064
|
}
|
|
15390
|
-
__name(
|
|
15391
|
-
function
|
|
16065
|
+
__name(_ts_decorate54, "_ts_decorate");
|
|
16066
|
+
function _ts_metadata12(k, v) {
|
|
15392
16067
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15393
16068
|
}
|
|
15394
|
-
__name(
|
|
16069
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
15395
16070
|
var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
15396
16071
|
"use strict";
|
|
15397
16072
|
function _RestDisputeRepository() {
|
|
@@ -15955,20 +16630,20 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
15955
16630
|
}();
|
|
15956
16631
|
__name(_RestDisputeRepository, "RestDisputeRepository");
|
|
15957
16632
|
var RestDisputeRepository = _RestDisputeRepository;
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
16633
|
+
_ts_decorate54([
|
|
16634
|
+
inject11(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
16635
|
+
_ts_metadata12("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
15961
16636
|
], RestDisputeRepository.prototype, "httpClient", void 0);
|
|
15962
|
-
RestDisputeRepository =
|
|
15963
|
-
|
|
16637
|
+
RestDisputeRepository = _ts_decorate54([
|
|
16638
|
+
injectable54()
|
|
15964
16639
|
], RestDisputeRepository);
|
|
15965
16640
|
// src/disputes/ioc/disputesIOCModule.ts
|
|
15966
|
-
var disputesIOCModule = new
|
|
16641
|
+
var disputesIOCModule = new ContainerModule17(function(bind) {
|
|
15967
16642
|
bind(ITF_DISPUTES_REPOSITORY).to(RestDisputeRepository).inSingletonScope();
|
|
15968
16643
|
});
|
|
15969
16644
|
// src/disputes/ioc/mockDisputesIOCModule.ts
|
|
15970
|
-
import { ContainerModule as
|
|
15971
|
-
var mockDisputesIOCModule = new
|
|
16645
|
+
import { ContainerModule as ContainerModule18 } from "inversify";
|
|
16646
|
+
var mockDisputesIOCModule = new ContainerModule18(function(bind) {
|
|
15972
16647
|
bind(ITF_DISPUTES_REPOSITORY).to(MockDisputesRepository).inSingletonScope();
|
|
15973
16648
|
});
|
|
15974
16649
|
// src/disputes/adapters/rest/httpMocks/mswDisputesHandlers.ts
|
|
@@ -16481,36 +17156,36 @@ function setAutoEnableDevFlags(enabled) {
|
|
|
16481
17156
|
}
|
|
16482
17157
|
__name(setAutoEnableDevFlags, "setAutoEnableDevFlags");
|
|
16483
17158
|
// src/feature-flags/base/services/iFeatureFlagService.ts
|
|
16484
|
-
import { injectable as
|
|
16485
|
-
function
|
|
17159
|
+
import { injectable as injectable55 } from "inversify";
|
|
17160
|
+
function _ts_decorate55(decorators, target, key, desc) {
|
|
16486
17161
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16487
17162
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16488
17163
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16489
17164
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16490
17165
|
}
|
|
16491
|
-
__name(
|
|
17166
|
+
__name(_ts_decorate55, "_ts_decorate");
|
|
16492
17167
|
var _iFeatureFlagService = function _iFeatureFlagService() {
|
|
16493
17168
|
"use strict";
|
|
16494
17169
|
_class_call_check(this, _iFeatureFlagService);
|
|
16495
17170
|
};
|
|
16496
17171
|
__name(_iFeatureFlagService, "iFeatureFlagService");
|
|
16497
17172
|
var iFeatureFlagService = _iFeatureFlagService;
|
|
16498
|
-
iFeatureFlagService =
|
|
16499
|
-
|
|
17173
|
+
iFeatureFlagService = _ts_decorate55([
|
|
17174
|
+
injectable55()
|
|
16500
17175
|
], iFeatureFlagService);
|
|
16501
17176
|
// src/feature-flags/base/services/MockFeatureFlagService.ts
|
|
16502
|
-
import { injectable as
|
|
16503
|
-
function
|
|
17177
|
+
import { injectable as injectable56 } from "inversify";
|
|
17178
|
+
function _ts_decorate56(decorators, target, key, desc) {
|
|
16504
17179
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16505
17180
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16506
17181
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16507
17182
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16508
17183
|
}
|
|
16509
|
-
__name(
|
|
16510
|
-
function
|
|
17184
|
+
__name(_ts_decorate56, "_ts_decorate");
|
|
17185
|
+
function _ts_metadata13(k, v) {
|
|
16511
17186
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16512
17187
|
}
|
|
16513
|
-
__name(
|
|
17188
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
16514
17189
|
var _MockFeatureFlagService = /*#__PURE__*/ function(iFeatureFlagService) {
|
|
16515
17190
|
"use strict";
|
|
16516
17191
|
_inherits(_MockFeatureFlagService, iFeatureFlagService);
|
|
@@ -16564,23 +17239,23 @@ var _MockFeatureFlagService = /*#__PURE__*/ function(iFeatureFlagService) {
|
|
|
16564
17239
|
}(iFeatureFlagService);
|
|
16565
17240
|
__name(_MockFeatureFlagService, "MockFeatureFlagService");
|
|
16566
17241
|
var MockFeatureFlagService = _MockFeatureFlagService;
|
|
16567
|
-
MockFeatureFlagService =
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
17242
|
+
MockFeatureFlagService = _ts_decorate56([
|
|
17243
|
+
injectable56(),
|
|
17244
|
+
_ts_metadata13("design:type", Function),
|
|
17245
|
+
_ts_metadata13("design:paramtypes", [])
|
|
16571
17246
|
], MockFeatureFlagService);
|
|
16572
17247
|
// src/feature-flags/ioc/featureFlagsIOCModule.ts
|
|
16573
|
-
import { ContainerModule as
|
|
17248
|
+
import { ContainerModule as ContainerModule19 } from "inversify";
|
|
16574
17249
|
// src/feature-flags/adapters/async-storage/AsyncStorageFeatureFlagService.ts
|
|
16575
|
-
import { injectable as
|
|
17250
|
+
import { injectable as injectable57 } from "inversify";
|
|
16576
17251
|
import AsyncStorage from "@react-native-async-storage/async-storage";
|
|
16577
|
-
function
|
|
17252
|
+
function _ts_decorate57(decorators, target, key, desc) {
|
|
16578
17253
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16579
17254
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16580
17255
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16581
17256
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16582
17257
|
}
|
|
16583
|
-
__name(
|
|
17258
|
+
__name(_ts_decorate57, "_ts_decorate");
|
|
16584
17259
|
var FFLAGS_ASYNC_STORAGE_KEY = "mqcui-feature-flags";
|
|
16585
17260
|
var _AsyncStorageFeatureFlagService = /*#__PURE__*/ function() {
|
|
16586
17261
|
"use strict";
|
|
@@ -16712,22 +17387,22 @@ var _AsyncStorageFeatureFlagService = /*#__PURE__*/ function() {
|
|
|
16712
17387
|
}();
|
|
16713
17388
|
__name(_AsyncStorageFeatureFlagService, "AsyncStorageFeatureFlagService");
|
|
16714
17389
|
var AsyncStorageFeatureFlagService = _AsyncStorageFeatureFlagService;
|
|
16715
|
-
AsyncStorageFeatureFlagService =
|
|
16716
|
-
|
|
17390
|
+
AsyncStorageFeatureFlagService = _ts_decorate57([
|
|
17391
|
+
injectable57()
|
|
16717
17392
|
], AsyncStorageFeatureFlagService);
|
|
16718
17393
|
// src/feature-flags/adapters/session-storage/SessionStorageFeatureFlagService.ts
|
|
16719
|
-
import { injectable as
|
|
16720
|
-
function
|
|
17394
|
+
import { injectable as injectable58 } from "inversify";
|
|
17395
|
+
function _ts_decorate58(decorators, target, key, desc) {
|
|
16721
17396
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16722
17397
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16723
17398
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16724
17399
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16725
17400
|
}
|
|
16726
|
-
__name(
|
|
16727
|
-
function
|
|
17401
|
+
__name(_ts_decorate58, "_ts_decorate");
|
|
17402
|
+
function _ts_metadata14(k, v) {
|
|
16728
17403
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16729
17404
|
}
|
|
16730
|
-
__name(
|
|
17405
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
16731
17406
|
var FFLAGS_SESSION_STORAGE_KEY = "mqcui-feature-flags";
|
|
16732
17407
|
var _SessionStorageFeatureFlagService = /*#__PURE__*/ function() {
|
|
16733
17408
|
"use strict";
|
|
@@ -16823,20 +17498,20 @@ var _SessionStorageFeatureFlagService = /*#__PURE__*/ function() {
|
|
|
16823
17498
|
}();
|
|
16824
17499
|
__name(_SessionStorageFeatureFlagService, "SessionStorageFeatureFlagService");
|
|
16825
17500
|
var SessionStorageFeatureFlagService = _SessionStorageFeatureFlagService;
|
|
16826
|
-
SessionStorageFeatureFlagService =
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
17501
|
+
SessionStorageFeatureFlagService = _ts_decorate58([
|
|
17502
|
+
injectable58(),
|
|
17503
|
+
_ts_metadata14("design:type", Function),
|
|
17504
|
+
_ts_metadata14("design:paramtypes", [])
|
|
16830
17505
|
], SessionStorageFeatureFlagService);
|
|
16831
17506
|
// src/feature-flags/adapters/stub/StubFeatureFlagService.ts
|
|
16832
|
-
import { injectable as
|
|
16833
|
-
function
|
|
17507
|
+
import { injectable as injectable59 } from "inversify";
|
|
17508
|
+
function _ts_decorate59(decorators, target, key, desc) {
|
|
16834
17509
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16835
17510
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16836
17511
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16837
17512
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16838
17513
|
}
|
|
16839
|
-
__name(
|
|
17514
|
+
__name(_ts_decorate59, "_ts_decorate");
|
|
16840
17515
|
var _StubFeatureFlagService = /*#__PURE__*/ function() {
|
|
16841
17516
|
"use strict";
|
|
16842
17517
|
function _StubFeatureFlagService() {
|
|
@@ -16904,16 +17579,16 @@ var _StubFeatureFlagService = /*#__PURE__*/ function() {
|
|
|
16904
17579
|
}();
|
|
16905
17580
|
__name(_StubFeatureFlagService, "StubFeatureFlagService");
|
|
16906
17581
|
var StubFeatureFlagService = _StubFeatureFlagService;
|
|
16907
|
-
StubFeatureFlagService =
|
|
16908
|
-
|
|
17582
|
+
StubFeatureFlagService = _ts_decorate59([
|
|
17583
|
+
injectable59()
|
|
16909
17584
|
], StubFeatureFlagService);
|
|
16910
17585
|
// src/feature-flags/ioc/featureFlagsIOCModule.ts
|
|
16911
|
-
var featureFlagsIOCModule = new
|
|
17586
|
+
var featureFlagsIOCModule = new ContainerModule19(function(bind) {
|
|
16912
17587
|
bind(ITF_FEATURE_FLAG_SERVICE).to(SessionStorageFeatureFlagService).inSingletonScope();
|
|
16913
17588
|
});
|
|
16914
17589
|
// src/feature-flags/ioc/mockFeatureFlagsIOCModule.ts
|
|
16915
|
-
import { ContainerModule as
|
|
16916
|
-
var mockFeatureFlagIOCModule = new
|
|
17590
|
+
import { ContainerModule as ContainerModule20 } from "inversify";
|
|
17591
|
+
var mockFeatureFlagIOCModule = new ContainerModule20(function(bind) {
|
|
16917
17592
|
bind(ITF_FEATURE_FLAG_SERVICE).to(MockFeatureFlagService).inSingletonScope();
|
|
16918
17593
|
});
|
|
16919
17594
|
// src/kyc/base/types/KycVerificationRequest.ts
|
|
@@ -17167,38 +17842,38 @@ function _putUpdateUser() {
|
|
|
17167
17842
|
}
|
|
17168
17843
|
__name(putUpdateUser, "putUpdateUser");
|
|
17169
17844
|
// src/users/base/repositories/iUsersRepository.ts
|
|
17170
|
-
import { injectable as
|
|
17171
|
-
function
|
|
17845
|
+
import { injectable as injectable60 } from "inversify";
|
|
17846
|
+
function _ts_decorate60(decorators, target, key, desc) {
|
|
17172
17847
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17173
17848
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17174
17849
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17175
17850
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17176
17851
|
}
|
|
17177
|
-
__name(
|
|
17852
|
+
__name(_ts_decorate60, "_ts_decorate");
|
|
17178
17853
|
var _iUsersRepository = function _iUsersRepository() {
|
|
17179
17854
|
"use strict";
|
|
17180
17855
|
_class_call_check(this, _iUsersRepository);
|
|
17181
17856
|
};
|
|
17182
17857
|
__name(_iUsersRepository, "iUsersRepository");
|
|
17183
17858
|
var iUsersRepository = _iUsersRepository;
|
|
17184
|
-
iUsersRepository =
|
|
17185
|
-
|
|
17859
|
+
iUsersRepository = _ts_decorate60([
|
|
17860
|
+
injectable60()
|
|
17186
17861
|
], iUsersRepository);
|
|
17187
17862
|
// src/users/base/repositories/MockiUsersRepository.ts
|
|
17188
|
-
import { injectable as
|
|
17863
|
+
import { injectable as injectable61 } from "inversify";
|
|
17189
17864
|
// src/common/constants/errorConstants.ts
|
|
17190
17865
|
var CREATE_USERS_BAD_REQUEST = "CREATE_USERS_BAD_REQUEST";
|
|
17191
17866
|
var CREATE_USER_ERROR = "Unable to create user";
|
|
17192
17867
|
var FETCH_USER_ERROR = "Unable to fetch user";
|
|
17193
17868
|
var UPDATE_USER_ERROR = "Unable to update user";
|
|
17194
17869
|
// src/users/base/repositories/MockiUsersRepository.ts
|
|
17195
|
-
function
|
|
17870
|
+
function _ts_decorate61(decorators, target, key, desc) {
|
|
17196
17871
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17197
17872
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17198
17873
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17199
17874
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17200
17875
|
}
|
|
17201
|
-
__name(
|
|
17876
|
+
__name(_ts_decorate61, "_ts_decorate");
|
|
17202
17877
|
var VALID_CUI_USER_RESPONSE = {
|
|
17203
17878
|
token: "a5a6742c-642e-49d0-ad7e-748cf140a03b",
|
|
17204
17879
|
active: true,
|
|
@@ -17269,8 +17944,8 @@ var _MockiUsersRepository = /*#__PURE__*/ function() {
|
|
|
17269
17944
|
}();
|
|
17270
17945
|
__name(_MockiUsersRepository, "MockiUsersRepository");
|
|
17271
17946
|
var MockiUsersRepository = _MockiUsersRepository;
|
|
17272
|
-
MockiUsersRepository =
|
|
17273
|
-
|
|
17947
|
+
MockiUsersRepository = _ts_decorate61([
|
|
17948
|
+
injectable61()
|
|
17274
17949
|
], MockiUsersRepository);
|
|
17275
17950
|
// src/users/adapters/rest/httpMocks.ts
|
|
17276
17951
|
var mswUsersHandlers = [
|
|
@@ -17401,18 +18076,18 @@ var mswUsersHandlers = [
|
|
|
17401
18076
|
}())
|
|
17402
18077
|
];
|
|
17403
18078
|
// src/users/adapters/rest/RestUsersRepository.ts
|
|
17404
|
-
import { inject as
|
|
17405
|
-
function
|
|
18079
|
+
import { inject as inject12, injectable as injectable62 } from "inversify";
|
|
18080
|
+
function _ts_decorate62(decorators, target, key, desc) {
|
|
17406
18081
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17407
18082
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17408
18083
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17409
18084
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17410
18085
|
}
|
|
17411
|
-
__name(
|
|
17412
|
-
function
|
|
18086
|
+
__name(_ts_decorate62, "_ts_decorate");
|
|
18087
|
+
function _ts_metadata15(k, v) {
|
|
17413
18088
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17414
18089
|
}
|
|
17415
|
-
__name(
|
|
18090
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
17416
18091
|
var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
17417
18092
|
"use strict";
|
|
17418
18093
|
function _RestUsersRepository() {
|
|
@@ -17597,21 +18272,21 @@ var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
|
17597
18272
|
}();
|
|
17598
18273
|
__name(_RestUsersRepository, "RestUsersRepository");
|
|
17599
18274
|
var RestUsersRepository = _RestUsersRepository;
|
|
17600
|
-
|
|
17601
|
-
|
|
17602
|
-
|
|
18275
|
+
_ts_decorate62([
|
|
18276
|
+
inject12(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
18277
|
+
_ts_metadata15("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
17603
18278
|
], RestUsersRepository.prototype, "httpClient", void 0);
|
|
17604
|
-
RestUsersRepository =
|
|
17605
|
-
|
|
18279
|
+
RestUsersRepository = _ts_decorate62([
|
|
18280
|
+
injectable62()
|
|
17606
18281
|
], RestUsersRepository);
|
|
17607
18282
|
// src/users/ioc/usersIOCModule.ts
|
|
17608
|
-
import { ContainerModule as
|
|
17609
|
-
var usersIOCModule = new
|
|
18283
|
+
import { ContainerModule as ContainerModule21 } from "inversify";
|
|
18284
|
+
var usersIOCModule = new ContainerModule21(function(bind) {
|
|
17610
18285
|
bind(ITF_USERS).to(RestUsersRepository).inSingletonScope();
|
|
17611
18286
|
});
|
|
17612
18287
|
// src/users/ioc/mockUsersIOCModule.ts
|
|
17613
|
-
import { ContainerModule as
|
|
17614
|
-
var mockUsersIOCModule = new
|
|
18288
|
+
import { ContainerModule as ContainerModule22 } from "inversify";
|
|
18289
|
+
var mockUsersIOCModule = new ContainerModule22(function(bind) {
|
|
17615
18290
|
bind(ITF_USERS).to(MockiUsersRepository).inSingletonScope();
|
|
17616
18291
|
});
|
|
17617
18292
|
// src/kyc/base/types/typeMocks.ts
|
|
@@ -17700,22 +18375,22 @@ function _postVerifyKyc() {
|
|
|
17700
18375
|
}
|
|
17701
18376
|
__name(postVerifyKyc, "postVerifyKyc");
|
|
17702
18377
|
// src/kyc/base/repositories/iKycRepository.ts
|
|
17703
|
-
import { injectable as
|
|
17704
|
-
function
|
|
18378
|
+
import { injectable as injectable63 } from "inversify";
|
|
18379
|
+
function _ts_decorate63(decorators, target, key, desc) {
|
|
17705
18380
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17706
18381
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17707
18382
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17708
18383
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17709
18384
|
}
|
|
17710
|
-
__name(
|
|
18385
|
+
__name(_ts_decorate63, "_ts_decorate");
|
|
17711
18386
|
var _iKycRepository = function _iKycRepository() {
|
|
17712
18387
|
"use strict";
|
|
17713
18388
|
_class_call_check(this, _iKycRepository);
|
|
17714
18389
|
};
|
|
17715
18390
|
__name(_iKycRepository, "iKycRepository");
|
|
17716
18391
|
var iKycRepository = _iKycRepository;
|
|
17717
|
-
iKycRepository =
|
|
17718
|
-
|
|
18392
|
+
iKycRepository = _ts_decorate63([
|
|
18393
|
+
injectable63()
|
|
17719
18394
|
], iKycRepository);
|
|
17720
18395
|
// src/kyc/adapters/rest/httpMocks/mswKycHandlers.ts
|
|
17721
18396
|
var mswKycHandlers = [
|
|
@@ -17826,18 +18501,18 @@ var mswKycHandlers = [
|
|
|
17826
18501
|
}())
|
|
17827
18502
|
];
|
|
17828
18503
|
// src/kyc/adapters/rest/RestKycRepository.ts
|
|
17829
|
-
import { inject as
|
|
17830
|
-
function
|
|
18504
|
+
import { inject as inject13, injectable as injectable64 } from "inversify";
|
|
18505
|
+
function _ts_decorate64(decorators, target, key, desc) {
|
|
17831
18506
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17832
18507
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17833
18508
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17834
18509
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17835
18510
|
}
|
|
17836
|
-
__name(
|
|
17837
|
-
function
|
|
18511
|
+
__name(_ts_decorate64, "_ts_decorate");
|
|
18512
|
+
function _ts_metadata16(k, v) {
|
|
17838
18513
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17839
18514
|
}
|
|
17840
|
-
__name(
|
|
18515
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
17841
18516
|
var _RestKycRepository = /*#__PURE__*/ function() {
|
|
17842
18517
|
"use strict";
|
|
17843
18518
|
function _RestKycRepository() {
|
|
@@ -17911,16 +18586,16 @@ var _RestKycRepository = /*#__PURE__*/ function() {
|
|
|
17911
18586
|
}();
|
|
17912
18587
|
__name(_RestKycRepository, "RestKycRepository");
|
|
17913
18588
|
var RestKycRepository = _RestKycRepository;
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
18589
|
+
_ts_decorate64([
|
|
18590
|
+
inject13(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
18591
|
+
_ts_metadata16("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
17917
18592
|
], RestKycRepository.prototype, "httpClient", void 0);
|
|
17918
|
-
RestKycRepository =
|
|
17919
|
-
|
|
18593
|
+
RestKycRepository = _ts_decorate64([
|
|
18594
|
+
injectable64()
|
|
17920
18595
|
], RestKycRepository);
|
|
17921
18596
|
// src/kyc/ioc/kycIOCModule.ts
|
|
17922
|
-
import { ContainerModule as
|
|
17923
|
-
var kycIOCModule = new
|
|
18597
|
+
import { ContainerModule as ContainerModule23 } from "inversify";
|
|
18598
|
+
var kycIOCModule = new ContainerModule23(function(bind) {
|
|
17924
18599
|
bind(ITF_KYC).to(RestKycRepository).inSingletonScope();
|
|
17925
18600
|
});
|
|
17926
18601
|
// src/kyb/ioc/symbols.ts
|
|
@@ -18057,22 +18732,22 @@ function _initializeOnboarding() {
|
|
|
18057
18732
|
}
|
|
18058
18733
|
__name(initializeOnboarding, "initializeOnboarding");
|
|
18059
18734
|
// src/kyb/base/repositories/iKybRepository.ts
|
|
18060
|
-
import { injectable as
|
|
18061
|
-
function
|
|
18735
|
+
import { injectable as injectable65 } from "inversify";
|
|
18736
|
+
function _ts_decorate65(decorators, target, key, desc) {
|
|
18062
18737
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18063
18738
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18064
18739
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18065
18740
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18066
18741
|
}
|
|
18067
|
-
__name(
|
|
18742
|
+
__name(_ts_decorate65, "_ts_decorate");
|
|
18068
18743
|
var _iKybRepository = function _iKybRepository() {
|
|
18069
18744
|
"use strict";
|
|
18070
18745
|
_class_call_check(this, _iKybRepository);
|
|
18071
18746
|
};
|
|
18072
18747
|
__name(_iKybRepository, "iKybRepository");
|
|
18073
18748
|
var iKybRepository = _iKybRepository;
|
|
18074
|
-
iKybRepository =
|
|
18075
|
-
|
|
18749
|
+
iKybRepository = _ts_decorate65([
|
|
18750
|
+
injectable65()
|
|
18076
18751
|
], iKybRepository);
|
|
18077
18752
|
// src/kyb/base/types/KybEvaluationResponse.ts
|
|
18078
18753
|
var KybEvaluationStatus = {
|
|
@@ -19365,18 +20040,18 @@ var mswKybHandlers = [
|
|
|
19365
20040
|
}())
|
|
19366
20041
|
];
|
|
19367
20042
|
// src/kyb/adapters/rest/RestKybRepository.ts
|
|
19368
|
-
import { inject as
|
|
19369
|
-
function
|
|
20043
|
+
import { inject as inject14, injectable as injectable66 } from "inversify";
|
|
20044
|
+
function _ts_decorate66(decorators, target, key, desc) {
|
|
19370
20045
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19371
20046
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19372
20047
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19373
20048
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19374
20049
|
}
|
|
19375
|
-
__name(
|
|
19376
|
-
function
|
|
20050
|
+
__name(_ts_decorate66, "_ts_decorate");
|
|
20051
|
+
function _ts_metadata17(k, v) {
|
|
19377
20052
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
19378
20053
|
}
|
|
19379
|
-
__name(
|
|
20054
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
19380
20055
|
var _RestKybRepository = /*#__PURE__*/ function() {
|
|
19381
20056
|
"use strict";
|
|
19382
20057
|
function _RestKybRepository() {
|
|
@@ -19516,29 +20191,29 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
19516
20191
|
}();
|
|
19517
20192
|
__name(_RestKybRepository, "RestKybRepository");
|
|
19518
20193
|
var RestKybRepository = _RestKybRepository;
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
20194
|
+
_ts_decorate66([
|
|
20195
|
+
inject14(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
20196
|
+
_ts_metadata17("design:type", typeof iHttpClient === "undefined" ? Object : iHttpClient)
|
|
19522
20197
|
], RestKybRepository.prototype, "httpClient", void 0);
|
|
19523
|
-
RestKybRepository =
|
|
19524
|
-
|
|
20198
|
+
RestKybRepository = _ts_decorate66([
|
|
20199
|
+
injectable66()
|
|
19525
20200
|
], RestKybRepository);
|
|
19526
20201
|
// src/kyb/ioc/kybIOCModule.ts
|
|
19527
|
-
import { ContainerModule as
|
|
19528
|
-
var kybIOCModule = new
|
|
20202
|
+
import { ContainerModule as ContainerModule24 } from "inversify";
|
|
20203
|
+
var kybIOCModule = new ContainerModule24(function(bind) {
|
|
19529
20204
|
bind(ITF_KYB).to(RestKybRepository).inSingletonScope();
|
|
19530
20205
|
});
|
|
19531
20206
|
// src/kyb/ioc/mockKybIOCModule.ts
|
|
19532
|
-
import { ContainerModule as
|
|
20207
|
+
import { ContainerModule as ContainerModule25 } from "inversify";
|
|
19533
20208
|
// src/kyb/base/repositories/MockKybRepository.ts
|
|
19534
|
-
import { injectable as
|
|
19535
|
-
function
|
|
20209
|
+
import { injectable as injectable67 } from "inversify";
|
|
20210
|
+
function _ts_decorate67(decorators, target, key, desc) {
|
|
19536
20211
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19537
20212
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19538
20213
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19539
20214
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19540
20215
|
}
|
|
19541
|
-
__name(
|
|
20216
|
+
__name(_ts_decorate67, "_ts_decorate");
|
|
19542
20217
|
var _MockKybRepository = /*#__PURE__*/ function() {
|
|
19543
20218
|
"use strict";
|
|
19544
20219
|
function _MockKybRepository() {
|
|
@@ -19642,40 +20317,40 @@ var _MockKybRepository = /*#__PURE__*/ function() {
|
|
|
19642
20317
|
}();
|
|
19643
20318
|
__name(_MockKybRepository, "MockKybRepository");
|
|
19644
20319
|
var MockKybRepository = _MockKybRepository;
|
|
19645
|
-
MockKybRepository =
|
|
19646
|
-
|
|
20320
|
+
MockKybRepository = _ts_decorate67([
|
|
20321
|
+
injectable67()
|
|
19647
20322
|
], MockKybRepository);
|
|
19648
20323
|
// src/kyb/ioc/mockKybIOCModule.ts
|
|
19649
|
-
var mockKybIOCModule = new
|
|
20324
|
+
var mockKybIOCModule = new ContainerModule25(function(bind) {
|
|
19650
20325
|
bind(ITF_KYB).to(MockKybRepository).inSingletonScope();
|
|
19651
20326
|
});
|
|
19652
20327
|
// src/money-movement/base/repositiories/iMoneyMovementRepository.ts
|
|
19653
|
-
import { injectable as
|
|
19654
|
-
function
|
|
20328
|
+
import { injectable as injectable68 } from "inversify";
|
|
20329
|
+
function _ts_decorate68(decorators, target, key, desc) {
|
|
19655
20330
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19656
20331
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19657
20332
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19658
20333
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19659
20334
|
}
|
|
19660
|
-
__name(
|
|
20335
|
+
__name(_ts_decorate68, "_ts_decorate");
|
|
19661
20336
|
var _iMoneyMovementRepository = function _iMoneyMovementRepository() {
|
|
19662
20337
|
"use strict";
|
|
19663
20338
|
_class_call_check(this, _iMoneyMovementRepository);
|
|
19664
20339
|
};
|
|
19665
20340
|
__name(_iMoneyMovementRepository, "iMoneyMovementRepository");
|
|
19666
20341
|
var iMoneyMovementRepository = _iMoneyMovementRepository;
|
|
19667
|
-
iMoneyMovementRepository =
|
|
19668
|
-
|
|
20342
|
+
iMoneyMovementRepository = _ts_decorate68([
|
|
20343
|
+
injectable68()
|
|
19669
20344
|
], iMoneyMovementRepository);
|
|
19670
20345
|
// src/money-movement/base/repositiories/MockMoneyMovementRepository.ts
|
|
19671
|
-
import { injectable as
|
|
19672
|
-
function
|
|
20346
|
+
import { injectable as injectable69 } from "inversify";
|
|
20347
|
+
function _ts_decorate69(decorators, target, key, desc) {
|
|
19673
20348
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19674
20349
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19675
20350
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19676
20351
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19677
20352
|
}
|
|
19678
|
-
__name(
|
|
20353
|
+
__name(_ts_decorate69, "_ts_decorate");
|
|
19679
20354
|
var TEST_SOURCE_CARD = {
|
|
19680
20355
|
expiration: "05/24",
|
|
19681
20356
|
last_four: "\u2022\u20221234",
|
|
@@ -19774,32 +20449,32 @@ var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
19774
20449
|
}();
|
|
19775
20450
|
__name(_MockMoneyMovementRepository, "MockMoneyMovementRepository");
|
|
19776
20451
|
var MockMoneyMovementRepository = _MockMoneyMovementRepository;
|
|
19777
|
-
MockMoneyMovementRepository =
|
|
19778
|
-
|
|
20452
|
+
MockMoneyMovementRepository = _ts_decorate69([
|
|
20453
|
+
injectable69()
|
|
19779
20454
|
], MockMoneyMovementRepository);
|
|
19780
20455
|
// src/money-movement/ioc/mockMoneyMovementIOCModule.ts
|
|
19781
|
-
import { ContainerModule as
|
|
20456
|
+
import { ContainerModule as ContainerModule26 } from "inversify";
|
|
19782
20457
|
// src/money-movement/ioc/symbols.ts
|
|
19783
20458
|
var ITF_MONEY_MOVEMENT = Symbol.for("iMoneyMovement");
|
|
19784
20459
|
// src/money-movement/ioc/mockMoneyMovementIOCModule.ts
|
|
19785
|
-
var mockMoneyMovementIOCModule = new
|
|
20460
|
+
var mockMoneyMovementIOCModule = new ContainerModule26(function(bind) {
|
|
19786
20461
|
bind(ITF_MONEY_MOVEMENT).to(MockMoneyMovementRepository).inSingletonScope();
|
|
19787
20462
|
});
|
|
19788
20463
|
// src/money-movement/ioc/moneyMovementIOCModule.ts
|
|
19789
|
-
import { ContainerModule as
|
|
20464
|
+
import { ContainerModule as ContainerModule27 } from "inversify";
|
|
19790
20465
|
// src/money-movement/adapters/rest/RestMoneyMovementRepository.ts
|
|
19791
|
-
import { inject as
|
|
19792
|
-
function
|
|
20466
|
+
import { inject as inject15, injectable as injectable70 } from "inversify";
|
|
20467
|
+
function _ts_decorate70(decorators, target, key, desc) {
|
|
19793
20468
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19794
20469
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19795
20470
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19796
20471
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19797
20472
|
}
|
|
19798
|
-
__name(
|
|
19799
|
-
function
|
|
20473
|
+
__name(_ts_decorate70, "_ts_decorate");
|
|
20474
|
+
function _ts_metadata18(k, v) {
|
|
19800
20475
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
19801
20476
|
}
|
|
19802
|
-
__name(
|
|
20477
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
19803
20478
|
var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
19804
20479
|
"use strict";
|
|
19805
20480
|
function _RestMoneyMovementRepository() {
|
|
@@ -20122,15 +20797,15 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
20122
20797
|
}();
|
|
20123
20798
|
__name(_RestMoneyMovementRepository, "RestMoneyMovementRepository");
|
|
20124
20799
|
var RestMoneyMovementRepository = _RestMoneyMovementRepository;
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
|
|
20800
|
+
_ts_decorate70([
|
|
20801
|
+
inject15(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
20802
|
+
_ts_metadata18("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
20128
20803
|
], RestMoneyMovementRepository.prototype, "httpClient", void 0);
|
|
20129
|
-
RestMoneyMovementRepository =
|
|
20130
|
-
|
|
20804
|
+
RestMoneyMovementRepository = _ts_decorate70([
|
|
20805
|
+
injectable70()
|
|
20131
20806
|
], RestMoneyMovementRepository);
|
|
20132
20807
|
// src/money-movement/ioc/moneyMovementIOCModule.ts
|
|
20133
|
-
var moneyMovementIOCModule = new
|
|
20808
|
+
var moneyMovementIOCModule = new ContainerModule27(function(bind) {
|
|
20134
20809
|
bind(ITF_MONEY_MOVEMENT).to(RestMoneyMovementRepository).inSingletonScope();
|
|
20135
20810
|
});
|
|
20136
20811
|
function addExternalCard(params) {
|
|
@@ -20989,32 +21664,32 @@ function _verifyOTP() {
|
|
|
20989
21664
|
}
|
|
20990
21665
|
__name(verifyOTP, "verifyOTP");
|
|
20991
21666
|
// src/idp/base/services/iIdpService.ts
|
|
20992
|
-
import { injectable as
|
|
20993
|
-
function
|
|
21667
|
+
import { injectable as injectable71 } from "inversify";
|
|
21668
|
+
function _ts_decorate71(decorators, target, key, desc) {
|
|
20994
21669
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20995
21670
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20996
21671
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20997
21672
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20998
21673
|
}
|
|
20999
|
-
__name(
|
|
21674
|
+
__name(_ts_decorate71, "_ts_decorate");
|
|
21000
21675
|
var _iIdpService = function _iIdpService() {
|
|
21001
21676
|
"use strict";
|
|
21002
21677
|
_class_call_check(this, _iIdpService);
|
|
21003
21678
|
};
|
|
21004
21679
|
__name(_iIdpService, "iIdpService");
|
|
21005
21680
|
var iIdpService = _iIdpService;
|
|
21006
|
-
iIdpService =
|
|
21007
|
-
|
|
21681
|
+
iIdpService = _ts_decorate71([
|
|
21682
|
+
injectable71()
|
|
21008
21683
|
], iIdpService);
|
|
21009
21684
|
// src/idp/base/services/MockIdpService.ts
|
|
21010
|
-
import { injectable as
|
|
21011
|
-
function
|
|
21685
|
+
import { injectable as injectable72 } from "inversify";
|
|
21686
|
+
function _ts_decorate72(decorators, target, key, desc) {
|
|
21012
21687
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21013
21688
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21014
21689
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21015
21690
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21016
21691
|
}
|
|
21017
|
-
__name(
|
|
21692
|
+
__name(_ts_decorate72, "_ts_decorate");
|
|
21018
21693
|
var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
21019
21694
|
"use strict";
|
|
21020
21695
|
_inherits(_MockIdpService, iIdpService);
|
|
@@ -21148,22 +21823,22 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
21148
21823
|
}(iIdpService);
|
|
21149
21824
|
__name(_MockIdpService, "MockIdpService");
|
|
21150
21825
|
var MockIdpService = _MockIdpService;
|
|
21151
|
-
MockIdpService =
|
|
21152
|
-
|
|
21826
|
+
MockIdpService = _ts_decorate72([
|
|
21827
|
+
injectable72()
|
|
21153
21828
|
], MockIdpService);
|
|
21154
21829
|
// src/idp/adapters/rest/RestIdpService.ts
|
|
21155
|
-
import { injectable as
|
|
21156
|
-
function
|
|
21830
|
+
import { injectable as injectable73, inject as inject16 } from "inversify";
|
|
21831
|
+
function _ts_decorate73(decorators, target, key, desc) {
|
|
21157
21832
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21158
21833
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21159
21834
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21160
21835
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21161
21836
|
}
|
|
21162
|
-
__name(
|
|
21163
|
-
function
|
|
21837
|
+
__name(_ts_decorate73, "_ts_decorate");
|
|
21838
|
+
function _ts_metadata19(k, v) {
|
|
21164
21839
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
21165
21840
|
}
|
|
21166
|
-
__name(
|
|
21841
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
21167
21842
|
var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
21168
21843
|
"use strict";
|
|
21169
21844
|
_inherits(_RestIdpService, iIdpService);
|
|
@@ -21458,19 +22133,83 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
21458
22133
|
value: function handleMfaRequired(request) {
|
|
21459
22134
|
var _this = this;
|
|
21460
22135
|
return _async_to_generator(function() {
|
|
21461
|
-
var otpRequest, error2;
|
|
22136
|
+
var otpRequest, error2;
|
|
22137
|
+
return _ts_generator(this, function(_state) {
|
|
22138
|
+
switch(_state.label){
|
|
22139
|
+
case 0:
|
|
22140
|
+
logDebug("Handling MFA required", {
|
|
22141
|
+
adapter: "RestIdpService"
|
|
22142
|
+
});
|
|
22143
|
+
if (!request.mfa_token) {
|
|
22144
|
+
logError("MFA token is required for handling MFA", {
|
|
22145
|
+
adapter: "RestIdpService"
|
|
22146
|
+
});
|
|
22147
|
+
throw new Error("MFA token is required for handling MFA");
|
|
22148
|
+
}
|
|
22149
|
+
_state.label = 1;
|
|
22150
|
+
case 1:
|
|
22151
|
+
_state.trys.push([
|
|
22152
|
+
1,
|
|
22153
|
+
3,
|
|
22154
|
+
,
|
|
22155
|
+
4
|
|
22156
|
+
]);
|
|
22157
|
+
return [
|
|
22158
|
+
4,
|
|
22159
|
+
_this.requestOtpCode({
|
|
22160
|
+
mfaToken: request.mfa_token,
|
|
22161
|
+
oauthBaseUrl: request.oauthBaseUrl,
|
|
22162
|
+
clientId: request.clientId,
|
|
22163
|
+
deviceDetails: request.deviceDetails
|
|
22164
|
+
})
|
|
22165
|
+
];
|
|
22166
|
+
case 2:
|
|
22167
|
+
otpRequest = _state.sent();
|
|
22168
|
+
logInfo("MFA handled successfully", {
|
|
22169
|
+
adapter: "RestIdpService"
|
|
22170
|
+
});
|
|
22171
|
+
return [
|
|
22172
|
+
2,
|
|
22173
|
+
{
|
|
22174
|
+
accessToken: "",
|
|
22175
|
+
expiresIn: 0,
|
|
22176
|
+
refreshToken: "",
|
|
22177
|
+
idToken: "",
|
|
22178
|
+
error: "mfa_required",
|
|
22179
|
+
error_description: "Multi-factor authentication is required.",
|
|
22180
|
+
mfa_token: request.mfa_token,
|
|
22181
|
+
oob_code: otpRequest.oobCode
|
|
22182
|
+
}
|
|
22183
|
+
];
|
|
22184
|
+
case 3:
|
|
22185
|
+
error2 = _state.sent();
|
|
22186
|
+
logError("Failed to handle MFA required", {
|
|
22187
|
+
error: error2,
|
|
22188
|
+
adapter: "RestIdpService"
|
|
22189
|
+
});
|
|
22190
|
+
throw new Error(error2.error_description || error2.error || error2);
|
|
22191
|
+
case 4:
|
|
22192
|
+
return [
|
|
22193
|
+
2
|
|
22194
|
+
];
|
|
22195
|
+
}
|
|
22196
|
+
});
|
|
22197
|
+
})();
|
|
22198
|
+
}
|
|
22199
|
+
},
|
|
22200
|
+
{
|
|
22201
|
+
key: "otpVerification",
|
|
22202
|
+
value: function otpVerification(request) {
|
|
22203
|
+
var _this = this;
|
|
22204
|
+
return _async_to_generator(function() {
|
|
22205
|
+
var url, response, result, error2;
|
|
21462
22206
|
return _ts_generator(this, function(_state) {
|
|
21463
22207
|
switch(_state.label){
|
|
21464
22208
|
case 0:
|
|
21465
|
-
logDebug("
|
|
22209
|
+
logDebug("Verifying OTP", {
|
|
21466
22210
|
adapter: "RestIdpService"
|
|
21467
22211
|
});
|
|
21468
|
-
|
|
21469
|
-
logError("MFA token is required for handling MFA", {
|
|
21470
|
-
adapter: "RestIdpService"
|
|
21471
|
-
});
|
|
21472
|
-
throw new Error("MFA token is required for handling MFA");
|
|
21473
|
-
}
|
|
22212
|
+
_this.validateOAuthBaseUrl(request.oauthBaseUrl);
|
|
21474
22213
|
_state.label = 1;
|
|
21475
22214
|
case 1:
|
|
21476
22215
|
_state.trys.push([
|
|
@@ -21479,40 +22218,48 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
21479
22218
|
,
|
|
21480
22219
|
4
|
|
21481
22220
|
]);
|
|
22221
|
+
url = "".concat(request.oauthBaseUrl, "/oauth/token");
|
|
21482
22222
|
return [
|
|
21483
22223
|
4,
|
|
21484
|
-
_this.
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
22224
|
+
_this.httpClient.post(url, {
|
|
22225
|
+
method: "POST",
|
|
22226
|
+
headers: {
|
|
22227
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
22228
|
+
},
|
|
22229
|
+
body: new URLSearchParams(_object_spread({
|
|
22230
|
+
// Auth0's token endpoint specifically looks for the exact string http://auth0.com/oauth/grant-type/mfa-oob to identify MFA OOB requests.
|
|
22231
|
+
grant_type: "http://auth0.com/oauth/grant-type/mfa-oob",
|
|
22232
|
+
client_id: request.clientId,
|
|
22233
|
+
mfa_token: request.mfaToken,
|
|
22234
|
+
oob_code: request.oobCode,
|
|
22235
|
+
binding_code: request.bindingCode
|
|
22236
|
+
}, _this.extractDeviceDetails(request))).toString()
|
|
21489
22237
|
})
|
|
21490
22238
|
];
|
|
21491
22239
|
case 2:
|
|
21492
|
-
|
|
21493
|
-
|
|
22240
|
+
response = _state.sent();
|
|
22241
|
+
result = {
|
|
22242
|
+
accessToken: response.access_token,
|
|
22243
|
+
expiresIn: response.expires_in,
|
|
22244
|
+
refreshToken: response.refresh_token,
|
|
22245
|
+
idToken: response.id_token,
|
|
22246
|
+
tokenType: response.token_type,
|
|
22247
|
+
scope: response.scope
|
|
22248
|
+
};
|
|
22249
|
+
logInfo("OTP verification successful", {
|
|
21494
22250
|
adapter: "RestIdpService"
|
|
21495
22251
|
});
|
|
21496
22252
|
return [
|
|
21497
22253
|
2,
|
|
21498
|
-
|
|
21499
|
-
accessToken: "",
|
|
21500
|
-
expiresIn: 0,
|
|
21501
|
-
refreshToken: "",
|
|
21502
|
-
idToken: "",
|
|
21503
|
-
error: "mfa_required",
|
|
21504
|
-
error_description: "Multi-factor authentication is required.",
|
|
21505
|
-
mfa_token: request.mfa_token,
|
|
21506
|
-
oob_code: otpRequest.oobCode
|
|
21507
|
-
}
|
|
22254
|
+
result
|
|
21508
22255
|
];
|
|
21509
22256
|
case 3:
|
|
21510
22257
|
error2 = _state.sent();
|
|
21511
|
-
logError("
|
|
22258
|
+
logError("OTP verification failed", {
|
|
21512
22259
|
error: error2,
|
|
21513
22260
|
adapter: "RestIdpService"
|
|
21514
22261
|
});
|
|
21515
|
-
throw new Error(error2.error_description || error2.error
|
|
22262
|
+
throw new Error(error2.error_description || error2.error);
|
|
21516
22263
|
case 4:
|
|
21517
22264
|
return [
|
|
21518
22265
|
2
|
|
@@ -21521,126 +22268,361 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
21521
22268
|
});
|
|
21522
22269
|
})();
|
|
21523
22270
|
}
|
|
22271
|
+
}
|
|
22272
|
+
]);
|
|
22273
|
+
return _RestIdpService;
|
|
22274
|
+
}(iIdpService);
|
|
22275
|
+
__name(_RestIdpService, "RestIdpService");
|
|
22276
|
+
var RestIdpService = _RestIdpService;
|
|
22277
|
+
_ts_decorate73([
|
|
22278
|
+
inject16(ITF_HTTP_CLIENT),
|
|
22279
|
+
_ts_metadata19("design:type", typeof iHttpClient === "undefined" ? Object : iHttpClient)
|
|
22280
|
+
], RestIdpService.prototype, "httpClient", void 0);
|
|
22281
|
+
RestIdpService = _ts_decorate73([
|
|
22282
|
+
injectable73()
|
|
22283
|
+
], RestIdpService);
|
|
22284
|
+
// src/idp/ioc/idpIOCModule.ts
|
|
22285
|
+
import { ContainerModule as ContainerModule28 } from "inversify";
|
|
22286
|
+
var idpIOCModule = new ContainerModule28(function(bind) {
|
|
22287
|
+
bind(ITF_IDP_SERVICE).to(RestIdpService).inSingletonScope();
|
|
22288
|
+
});
|
|
22289
|
+
// src/idp/ioc/mockIdpIOCModule.ts
|
|
22290
|
+
import { ContainerModule as ContainerModule29 } from "inversify";
|
|
22291
|
+
var mockIdpIOCModule = new ContainerModule29(function(bind) {
|
|
22292
|
+
bind(ITF_IDP_SERVICE).to(MockIdpService).inSingletonScope();
|
|
22293
|
+
});
|
|
22294
|
+
// src/statements/base/repositories/iStatementsRepository.ts
|
|
22295
|
+
import { injectable as injectable74 } from "inversify";
|
|
22296
|
+
function _ts_decorate74(decorators, target, key, desc) {
|
|
22297
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22298
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22299
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22300
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22301
|
+
}
|
|
22302
|
+
__name(_ts_decorate74, "_ts_decorate");
|
|
22303
|
+
var _iStatementsRepository = function _iStatementsRepository() {
|
|
22304
|
+
"use strict";
|
|
22305
|
+
_class_call_check(this, _iStatementsRepository);
|
|
22306
|
+
};
|
|
22307
|
+
__name(_iStatementsRepository, "iStatementsRepository");
|
|
22308
|
+
var iStatementsRepository = _iStatementsRepository;
|
|
22309
|
+
iStatementsRepository = _ts_decorate74([
|
|
22310
|
+
injectable74()
|
|
22311
|
+
], iStatementsRepository);
|
|
22312
|
+
// src/statements/base/repositories/statementTypes.ts
|
|
22313
|
+
var StatementAssetStateEnum;
|
|
22314
|
+
(function(StatementAssetStateEnum2) {
|
|
22315
|
+
StatementAssetStateEnum2["PENDING"] = "Pending";
|
|
22316
|
+
StatementAssetStateEnum2["RENDERED"] = "Rendered";
|
|
22317
|
+
StatementAssetStateEnum2["FAILED"] = "Failed";
|
|
22318
|
+
})(StatementAssetStateEnum || (StatementAssetStateEnum = {}));
|
|
22319
|
+
var StatementSummaryCycleTypeEnum;
|
|
22320
|
+
(function(StatementSummaryCycleTypeEnum2) {
|
|
22321
|
+
StatementSummaryCycleTypeEnum2["BEGINNING_REVOLVING"] = "BEGINNING_REVOLVING";
|
|
22322
|
+
StatementSummaryCycleTypeEnum2["REVOLVING"] = "REVOLVING";
|
|
22323
|
+
StatementSummaryCycleTypeEnum2["END_REVOLVING"] = "END_REVOLVING";
|
|
22324
|
+
StatementSummaryCycleTypeEnum2["TRANSACTING"] = "TRANSACTING";
|
|
22325
|
+
})(StatementSummaryCycleTypeEnum || (StatementSummaryCycleTypeEnum = {}));
|
|
22326
|
+
// src/statements/base/repositories/MockStatementsRepository.ts
|
|
22327
|
+
import { injectable as injectable75 } from "inversify";
|
|
22328
|
+
// src/statements/adapters/rest/constants.ts
|
|
22329
|
+
var VALID_USER_TOKEN = "test_user_token";
|
|
22330
|
+
var INVALID_USER_TOKEN = "invalid_".concat(VALID_USER_TOKEN);
|
|
22331
|
+
var MOCK_STATEMENT_ASSET_SIGNED_URL_PDF = "https://statements-demo.prod.mq01-prod.marqeta.io/Statements_Oct_1_demo.pdf";
|
|
22332
|
+
var MOCK_STATEMENT_ASSET_SIGNED_URL = {
|
|
22333
|
+
pdf: MOCK_STATEMENT_ASSET_SIGNED_URL_PDF
|
|
22334
|
+
};
|
|
22335
|
+
var VALID_ISSUED_DATE = "2024-07-15";
|
|
22336
|
+
var INVALID_ISSUED_DATE = "".concat(VALID_ISSUED_DATE, "-invalid");
|
|
22337
|
+
var MOCK_USER = {
|
|
22338
|
+
token: "a5a6742c-642e-49d0-ad7e-748cf140a03b",
|
|
22339
|
+
active: true,
|
|
22340
|
+
createdTime: "2022-10-08T00:11:11Z",
|
|
22341
|
+
firstName: "Jane",
|
|
22342
|
+
middleName: "",
|
|
22343
|
+
lastName: "Doe",
|
|
22344
|
+
status: "ACTIVE",
|
|
22345
|
+
address1: "123 Main St",
|
|
22346
|
+
address2: "",
|
|
22347
|
+
city: "New York",
|
|
22348
|
+
state: "NY",
|
|
22349
|
+
postalCode: "10001",
|
|
22350
|
+
country: "United States"
|
|
22351
|
+
};
|
|
22352
|
+
// src/statements/adapters/rest/utils.ts
|
|
22353
|
+
var toDateType = /* @__PURE__ */ __name(function(dateString) {
|
|
22354
|
+
try {
|
|
22355
|
+
var dateArray = dateString.split(/\D+/);
|
|
22356
|
+
var numArray = dateArray.map(function(i) {
|
|
22357
|
+
return Number(i);
|
|
22358
|
+
});
|
|
22359
|
+
var dateObj = new Date(Date.UTC(numArray[0], numArray[1] - 1, numArray[2]));
|
|
22360
|
+
if (Math.sign(dateObj.getTimezoneOffset())) {
|
|
22361
|
+
dateObj.setDate(dateObj.getDate() + 1);
|
|
22362
|
+
}
|
|
22363
|
+
return dateObj;
|
|
22364
|
+
} catch (err) {
|
|
22365
|
+
return new Date(dateString);
|
|
22366
|
+
}
|
|
22367
|
+
}, "toDateType");
|
|
22368
|
+
var calculateMonthsDifference = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
|
|
22369
|
+
var yearDiff = (issuedEndDate.getFullYear() - issuedStartDate.getFullYear()) * 12;
|
|
22370
|
+
var totalMonthDiff = yearDiff - issuedStartDate.getMonth() + issuedEndDate.getMonth() + 1;
|
|
22371
|
+
return Math.max(0, totalMonthDiff);
|
|
22372
|
+
}, "calculateMonthsDifference");
|
|
22373
|
+
var formatDateForApi = /* @__PURE__ */ __name(function(date) {
|
|
22374
|
+
var year = date.getFullYear();
|
|
22375
|
+
var month = date.getMonth() + 1;
|
|
22376
|
+
var formattedMonth = ("0" + month).slice(-2);
|
|
22377
|
+
var day = ("0" + date.getDate()).slice(-2);
|
|
22378
|
+
return [
|
|
22379
|
+
year,
|
|
22380
|
+
formattedMonth,
|
|
22381
|
+
day
|
|
22382
|
+
].join("-");
|
|
22383
|
+
}, "formatDateForApi");
|
|
22384
|
+
var formatDateForClient = /* @__PURE__ */ __name(function(timestamp) {
|
|
22385
|
+
if (!timestamp) return "";
|
|
22386
|
+
try {
|
|
22387
|
+
var date = toDateType(timestamp);
|
|
22388
|
+
var formattedDate = date.toLocaleDateString("en-US", {
|
|
22389
|
+
year: "numeric",
|
|
22390
|
+
month: "short",
|
|
22391
|
+
day: "numeric"
|
|
22392
|
+
});
|
|
22393
|
+
return formattedDate.replace("Sep", "Sept");
|
|
22394
|
+
} catch (e) {
|
|
22395
|
+
return timestamp;
|
|
22396
|
+
}
|
|
22397
|
+
}, "formatDateForClient");
|
|
22398
|
+
var validateIssuedDateQueryParams = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
|
|
22399
|
+
var isValidEndDate = issuedEndDate ? validateDateFormat(issuedEndDate) : true;
|
|
22400
|
+
var isValidStartDate = issuedStartDate ? validateDateFormat(issuedStartDate) : true;
|
|
22401
|
+
return Boolean(isValidEndDate && isValidStartDate);
|
|
22402
|
+
}, "validateIssuedDateQueryParams");
|
|
22403
|
+
var validateDateFormat = /* @__PURE__ */ __name(function(date) {
|
|
22404
|
+
if (!date) return false;
|
|
22405
|
+
var regex = new RegExp(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])$/, "g");
|
|
22406
|
+
return regex.test(date);
|
|
22407
|
+
}, "validateDateFormat");
|
|
22408
|
+
var generateStatementsDateQueries = /* @__PURE__ */ __name(function() {
|
|
22409
|
+
var initEndDate = /* @__PURE__ */ new Date();
|
|
22410
|
+
var initStartDate = /* @__PURE__ */ new Date();
|
|
22411
|
+
initStartDate.setFullYear(initStartDate.getFullYear() - 1);
|
|
22412
|
+
initStartDate.setDate(1);
|
|
22413
|
+
initStartDate.setMonth(initStartDate.getMonth() + 1);
|
|
22414
|
+
return {
|
|
22415
|
+
ISSUED_END_DATE: formatDateForApi(initEndDate),
|
|
22416
|
+
ISSUED_START_DATE: formatDateForApi(initStartDate)
|
|
22417
|
+
};
|
|
22418
|
+
}, "generateStatementsDateQueries");
|
|
22419
|
+
// src/statements/adapters/rest/mockStatements.ts
|
|
22420
|
+
var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate, accountToken) {
|
|
22421
|
+
var response;
|
|
22422
|
+
var areIssuedDatesValid = validateIssuedDateQueryParams(issuedEndDate, issuedStartDate);
|
|
22423
|
+
if (!areIssuedDatesValid) {
|
|
22424
|
+
throw new Error("Status: ".concat(400));
|
|
22425
|
+
} else if ([
|
|
22426
|
+
null,
|
|
22427
|
+
INVALID_USER_TOKEN
|
|
22428
|
+
].includes(userToken)) {
|
|
22429
|
+
throw new Error("Status: ".concat(404));
|
|
22430
|
+
} else if (areIssuedDatesValid) {
|
|
22431
|
+
response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate, accountToken);
|
|
22432
|
+
} else {
|
|
22433
|
+
throw new Error("Status: ".concat(500));
|
|
22434
|
+
}
|
|
22435
|
+
return {
|
|
22436
|
+
is_more: response.is_more,
|
|
22437
|
+
data: response.data,
|
|
22438
|
+
end_index: response.end_index,
|
|
22439
|
+
start_index: response.start_index
|
|
22440
|
+
};
|
|
22441
|
+
}, "handleGetStatements");
|
|
22442
|
+
var handleGetStatementAsset = /* @__PURE__ */ __name(function() {
|
|
22443
|
+
return {
|
|
22444
|
+
state: StatementAssetStateEnum.RENDERED,
|
|
22445
|
+
signed_url: MOCK_STATEMENT_ASSET_SIGNED_URL
|
|
22446
|
+
};
|
|
22447
|
+
}, "handleGetStatementAsset");
|
|
22448
|
+
var isAFutureDate = /* @__PURE__ */ __name(function(timestamp) {
|
|
22449
|
+
return /* @__PURE__ */ new Date() < toDateType(timestamp);
|
|
22450
|
+
}, "isAFutureDate");
|
|
22451
|
+
var getValidEndDate = /* @__PURE__ */ __name(function(issued_end_date) {
|
|
22452
|
+
var defaultEndDate = formatDateForApi(/* @__PURE__ */ new Date());
|
|
22453
|
+
var todayOrEndDate = isAFutureDate(issued_end_date) ? defaultEndDate : issued_end_date;
|
|
22454
|
+
var issuedEndDate = todayOrEndDate || defaultEndDate;
|
|
22455
|
+
var endDateObject = toDateType(issuedEndDate);
|
|
22456
|
+
endDateObject.setDate(Math.min(28, /* @__PURE__ */ new Date().getDate()));
|
|
22457
|
+
return endDateObject;
|
|
22458
|
+
}, "getValidEndDate");
|
|
22459
|
+
var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
|
|
22460
|
+
var mockUserCreationYear = new Date(MOCK_USER.createdTime).getFullYear();
|
|
22461
|
+
var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
|
|
22462
|
+
return mockUserCreationYear === issuedEndDateYear;
|
|
22463
|
+
}, "isMockUserCreationYear");
|
|
22464
|
+
var handleGetUserAccountStatementsV2 = /* @__PURE__ */ __name(function(params) {
|
|
22465
|
+
return {
|
|
22466
|
+
count: 2,
|
|
22467
|
+
start_index: params.start_index || 0,
|
|
22468
|
+
end_index: 1,
|
|
22469
|
+
is_more: false,
|
|
22470
|
+
data: [
|
|
22471
|
+
{
|
|
22472
|
+
token: "mock-statement-token-1",
|
|
22473
|
+
account_token: params.account_token,
|
|
22474
|
+
opening_balance: 1e3,
|
|
22475
|
+
closing_balance: 850,
|
|
22476
|
+
credit_limit: 5e3,
|
|
22477
|
+
available_credit: 4150,
|
|
22478
|
+
past_due_amount: 0,
|
|
22479
|
+
purchases: 250,
|
|
22480
|
+
interest: 15.5,
|
|
22481
|
+
fees: 0,
|
|
22482
|
+
credits: 0,
|
|
22483
|
+
payments: 415.5,
|
|
22484
|
+
days_in_billing_cycle: 30,
|
|
22485
|
+
cycle_type: "REVOLVING",
|
|
22486
|
+
opening_date: "2024-01-01T00:00:00Z",
|
|
22487
|
+
closing_date: "2024-01-31T23:59:59Z",
|
|
22488
|
+
created_time: "2024-02-01T00:00:00Z"
|
|
22489
|
+
},
|
|
22490
|
+
{
|
|
22491
|
+
token: "mock-statement-token-2",
|
|
22492
|
+
account_token: params.account_token,
|
|
22493
|
+
opening_balance: 850,
|
|
22494
|
+
closing_balance: 1200,
|
|
22495
|
+
credit_limit: 5e3,
|
|
22496
|
+
available_credit: 3800,
|
|
22497
|
+
past_due_amount: 0,
|
|
22498
|
+
purchases: 450,
|
|
22499
|
+
interest: 12.75,
|
|
22500
|
+
fees: 25,
|
|
22501
|
+
credits: 50,
|
|
22502
|
+
payments: 137.75,
|
|
22503
|
+
days_in_billing_cycle: 28,
|
|
22504
|
+
cycle_type: "REVOLVING",
|
|
22505
|
+
opening_date: "2024-02-01T00:00:00Z",
|
|
22506
|
+
closing_date: "2024-02-28T23:59:59Z",
|
|
22507
|
+
created_time: "2024-03-01T00:00:00Z"
|
|
22508
|
+
}
|
|
22509
|
+
]
|
|
22510
|
+
};
|
|
22511
|
+
}, "handleGetUserAccountStatementsV2");
|
|
22512
|
+
var handleGetUserAccountsStatementDownloadV2 = /* @__PURE__ */ __name(function(params) {
|
|
22513
|
+
return {
|
|
22514
|
+
account_token: params.account_token,
|
|
22515
|
+
statement_summary_token: params.statement_summary_token,
|
|
22516
|
+
opening_date: "2024-01-01T00:00:00Z",
|
|
22517
|
+
closing_date: "2024-01-31T23:59:59Z",
|
|
22518
|
+
signed_url: {
|
|
22519
|
+
pdf: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".pdf"),
|
|
22520
|
+
html: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".html")
|
|
22521
|
+
}
|
|
22522
|
+
};
|
|
22523
|
+
}, "handleGetUserAccountsStatementDownloadV2");
|
|
22524
|
+
var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
|
|
22525
|
+
var data = [];
|
|
22526
|
+
var monthsDifference = 12;
|
|
22527
|
+
var issuedEndDateObject = getValidEndDate(issued_end_date);
|
|
22528
|
+
if (isMockUserCreationYear(issued_end_date)) {
|
|
22529
|
+
monthsDifference = 7;
|
|
22530
|
+
} else if (issued_start_date) {
|
|
22531
|
+
monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
|
|
22532
|
+
}
|
|
22533
|
+
for(var i = 0; i < monthsDifference; i += 1){
|
|
22534
|
+
data.push(_object_spread({
|
|
22535
|
+
cardholder_token: user_token || VALID_USER_TOKEN,
|
|
22536
|
+
issued_date: formatDateForApi(issuedEndDateObject),
|
|
22537
|
+
readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
|
|
22538
|
+
}, account_token && {
|
|
22539
|
+
account_token: account_token
|
|
22540
|
+
}));
|
|
22541
|
+
issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
|
|
22542
|
+
}
|
|
22543
|
+
return {
|
|
22544
|
+
data: data,
|
|
22545
|
+
is_more: false,
|
|
22546
|
+
start_index: 0,
|
|
22547
|
+
end_index: monthsDifference - 1
|
|
22548
|
+
};
|
|
22549
|
+
}, "generateStatementSummary");
|
|
22550
|
+
// src/statements/base/repositories/MockStatementsRepository.ts
|
|
22551
|
+
function _ts_decorate75(decorators, target, key, desc) {
|
|
22552
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22553
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22554
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22555
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22556
|
+
}
|
|
22557
|
+
__name(_ts_decorate75, "_ts_decorate");
|
|
22558
|
+
var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
22559
|
+
"use strict";
|
|
22560
|
+
function _MockStatementsRepository() {
|
|
22561
|
+
_class_call_check(this, _MockStatementsRepository);
|
|
22562
|
+
}
|
|
22563
|
+
_create_class(_MockStatementsRepository, [
|
|
22564
|
+
{
|
|
22565
|
+
key: "getStatements",
|
|
22566
|
+
value: function getStatements(paginationParams) {
|
|
22567
|
+
return _async_to_generator(function() {
|
|
22568
|
+
var issuedEndDate, issuedStartDate, accountToken;
|
|
22569
|
+
return _ts_generator(this, function(_state) {
|
|
22570
|
+
issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
22571
|
+
return [
|
|
22572
|
+
2,
|
|
22573
|
+
handleGetStatements(VALID_USER_TOKEN, issuedEndDate, issuedStartDate, accountToken)
|
|
22574
|
+
];
|
|
22575
|
+
});
|
|
22576
|
+
})();
|
|
22577
|
+
}
|
|
21524
22578
|
},
|
|
21525
22579
|
{
|
|
21526
|
-
key: "
|
|
21527
|
-
value: function
|
|
21528
|
-
var _this = this;
|
|
22580
|
+
key: "getStatementAsset",
|
|
22581
|
+
value: function getStatementAsset() {
|
|
21529
22582
|
return _async_to_generator(function() {
|
|
21530
|
-
var url, response, result, error2;
|
|
21531
22583
|
return _ts_generator(this, function(_state) {
|
|
21532
|
-
|
|
21533
|
-
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
|
|
21539
|
-
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
|
|
21543
|
-
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
|
|
21550
|
-
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
})
|
|
21563
|
-
];
|
|
21564
|
-
case 2:
|
|
21565
|
-
response = _state.sent();
|
|
21566
|
-
result = {
|
|
21567
|
-
accessToken: response.access_token,
|
|
21568
|
-
expiresIn: response.expires_in,
|
|
21569
|
-
refreshToken: response.refresh_token,
|
|
21570
|
-
idToken: response.id_token,
|
|
21571
|
-
tokenType: response.token_type,
|
|
21572
|
-
scope: response.scope
|
|
21573
|
-
};
|
|
21574
|
-
logInfo("OTP verification successful", {
|
|
21575
|
-
adapter: "RestIdpService"
|
|
21576
|
-
});
|
|
21577
|
-
return [
|
|
21578
|
-
2,
|
|
21579
|
-
result
|
|
21580
|
-
];
|
|
21581
|
-
case 3:
|
|
21582
|
-
error2 = _state.sent();
|
|
21583
|
-
logError("OTP verification failed", {
|
|
21584
|
-
error: error2,
|
|
21585
|
-
adapter: "RestIdpService"
|
|
21586
|
-
});
|
|
21587
|
-
throw new Error(error2.error_description || error2.error);
|
|
21588
|
-
case 4:
|
|
21589
|
-
return [
|
|
21590
|
-
2
|
|
21591
|
-
];
|
|
21592
|
-
}
|
|
22584
|
+
return [
|
|
22585
|
+
2,
|
|
22586
|
+
handleGetStatementAsset()
|
|
22587
|
+
];
|
|
22588
|
+
});
|
|
22589
|
+
})();
|
|
22590
|
+
}
|
|
22591
|
+
},
|
|
22592
|
+
{
|
|
22593
|
+
key: "getUserAccountStatementsV2",
|
|
22594
|
+
value: function getUserAccountStatementsV2(params) {
|
|
22595
|
+
return _async_to_generator(function() {
|
|
22596
|
+
return _ts_generator(this, function(_state) {
|
|
22597
|
+
return [
|
|
22598
|
+
2,
|
|
22599
|
+
handleGetUserAccountStatementsV2(params)
|
|
22600
|
+
];
|
|
22601
|
+
});
|
|
22602
|
+
})();
|
|
22603
|
+
}
|
|
22604
|
+
},
|
|
22605
|
+
{
|
|
22606
|
+
key: "getUserAccountsStatementDownloadV2",
|
|
22607
|
+
value: function getUserAccountsStatementDownloadV2(params) {
|
|
22608
|
+
return _async_to_generator(function() {
|
|
22609
|
+
return _ts_generator(this, function(_state) {
|
|
22610
|
+
return [
|
|
22611
|
+
2,
|
|
22612
|
+
handleGetUserAccountsStatementDownloadV2(params)
|
|
22613
|
+
];
|
|
21593
22614
|
});
|
|
21594
22615
|
})();
|
|
21595
22616
|
}
|
|
21596
22617
|
}
|
|
21597
22618
|
]);
|
|
21598
|
-
return
|
|
21599
|
-
}(
|
|
21600
|
-
__name(
|
|
21601
|
-
var
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
], RestIdpService.prototype, "httpClient", void 0);
|
|
21606
|
-
RestIdpService = _ts_decorate67([
|
|
21607
|
-
injectable67()
|
|
21608
|
-
], RestIdpService);
|
|
21609
|
-
// src/idp/ioc/idpIOCModule.ts
|
|
21610
|
-
import { ContainerModule as ContainerModule26 } from "inversify";
|
|
21611
|
-
var idpIOCModule = new ContainerModule26(function(bind) {
|
|
21612
|
-
bind(ITF_IDP_SERVICE).to(RestIdpService).inSingletonScope();
|
|
21613
|
-
});
|
|
21614
|
-
// src/idp/ioc/mockIdpIOCModule.ts
|
|
21615
|
-
import { ContainerModule as ContainerModule27 } from "inversify";
|
|
21616
|
-
var mockIdpIOCModule = new ContainerModule27(function(bind) {
|
|
21617
|
-
bind(ITF_IDP_SERVICE).to(MockIdpService).inSingletonScope();
|
|
21618
|
-
});
|
|
21619
|
-
// src/statements/base/repositories/iStatementsRepository.ts
|
|
21620
|
-
import { injectable as injectable68 } from "inversify";
|
|
21621
|
-
function _ts_decorate68(decorators, target, key, desc) {
|
|
21622
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21623
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21624
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21625
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21626
|
-
}
|
|
21627
|
-
__name(_ts_decorate68, "_ts_decorate");
|
|
21628
|
-
var _iStatementsRepository = function _iStatementsRepository() {
|
|
21629
|
-
"use strict";
|
|
21630
|
-
_class_call_check(this, _iStatementsRepository);
|
|
21631
|
-
};
|
|
21632
|
-
__name(_iStatementsRepository, "iStatementsRepository");
|
|
21633
|
-
var iStatementsRepository = _iStatementsRepository;
|
|
21634
|
-
iStatementsRepository = _ts_decorate68([
|
|
21635
|
-
injectable68()
|
|
21636
|
-
], iStatementsRepository);
|
|
21637
|
-
// src/statements/base/repositories/statementTypes.ts
|
|
21638
|
-
var StatementAssetStateEnum;
|
|
21639
|
-
(function(StatementAssetStateEnum2) {
|
|
21640
|
-
StatementAssetStateEnum2["PENDING"] = "Pending";
|
|
21641
|
-
StatementAssetStateEnum2["RENDERED"] = "Rendered";
|
|
21642
|
-
StatementAssetStateEnum2["FAILED"] = "Failed";
|
|
21643
|
-
})(StatementAssetStateEnum || (StatementAssetStateEnum = {}));
|
|
22619
|
+
return _MockStatementsRepository;
|
|
22620
|
+
}();
|
|
22621
|
+
__name(_MockStatementsRepository, "MockStatementsRepository");
|
|
22622
|
+
var MockStatementsRepository = _MockStatementsRepository;
|
|
22623
|
+
MockStatementsRepository = _ts_decorate75([
|
|
22624
|
+
injectable75()
|
|
22625
|
+
], MockStatementsRepository);
|
|
21644
22626
|
// src/statements/ioc/symbols.ts
|
|
21645
22627
|
var ITF_STATEMENTS = Symbol.for("iStatementsRepository");
|
|
21646
22628
|
var ITF_STATEMENT_ASSET = Symbol.for("IStatementAssetRepository");
|
|
@@ -21759,21 +22741,133 @@ function _getStatementAsset() {
|
|
|
21759
22741
|
return _getStatementAsset.apply(this, arguments);
|
|
21760
22742
|
}
|
|
21761
22743
|
__name(getStatementAsset, "getStatementAsset");
|
|
22744
|
+
function getUserAccountStatementsV2(params) {
|
|
22745
|
+
return _getUserAccountStatementsV2.apply(this, arguments);
|
|
22746
|
+
}
|
|
22747
|
+
function _getUserAccountStatementsV2() {
|
|
22748
|
+
_getUserAccountStatementsV2 = // src/statements/base/interactors/getUserAccountStatementsV2.ts
|
|
22749
|
+
_async_to_generator(function(params) {
|
|
22750
|
+
var container2, statementsRepository, response, error2;
|
|
22751
|
+
return _ts_generator(this, function(_state) {
|
|
22752
|
+
switch(_state.label){
|
|
22753
|
+
case 0:
|
|
22754
|
+
logDebug("Getting user account statements V2", {
|
|
22755
|
+
params: params,
|
|
22756
|
+
interactor: "getUserAccountStatementsV2"
|
|
22757
|
+
});
|
|
22758
|
+
_state.label = 1;
|
|
22759
|
+
case 1:
|
|
22760
|
+
_state.trys.push([
|
|
22761
|
+
1,
|
|
22762
|
+
3,
|
|
22763
|
+
,
|
|
22764
|
+
4
|
|
22765
|
+
]);
|
|
22766
|
+
container2 = getActiveIocContainer();
|
|
22767
|
+
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22768
|
+
return [
|
|
22769
|
+
4,
|
|
22770
|
+
statementsRepository.getUserAccountStatementsV2(params)
|
|
22771
|
+
];
|
|
22772
|
+
case 2:
|
|
22773
|
+
response = _state.sent();
|
|
22774
|
+
logInfo("User account statements V2 retrieved successfully", {
|
|
22775
|
+
count: response.count,
|
|
22776
|
+
interactor: "getUserAccountStatementsV2"
|
|
22777
|
+
});
|
|
22778
|
+
return [
|
|
22779
|
+
2,
|
|
22780
|
+
response
|
|
22781
|
+
];
|
|
22782
|
+
case 3:
|
|
22783
|
+
error2 = _state.sent();
|
|
22784
|
+
logError("Failed to get user account statements V2", {
|
|
22785
|
+
error: error2,
|
|
22786
|
+
params: params,
|
|
22787
|
+
interactor: "getUserAccountStatementsV2"
|
|
22788
|
+
});
|
|
22789
|
+
throw error2;
|
|
22790
|
+
case 4:
|
|
22791
|
+
return [
|
|
22792
|
+
2
|
|
22793
|
+
];
|
|
22794
|
+
}
|
|
22795
|
+
});
|
|
22796
|
+
});
|
|
22797
|
+
return _getUserAccountStatementsV2.apply(this, arguments);
|
|
22798
|
+
}
|
|
22799
|
+
__name(getUserAccountStatementsV2, "getUserAccountStatementsV2");
|
|
22800
|
+
function getUserAccountsStatementDownloadV2(params) {
|
|
22801
|
+
return _getUserAccountsStatementDownloadV2.apply(this, arguments);
|
|
22802
|
+
}
|
|
22803
|
+
function _getUserAccountsStatementDownloadV2() {
|
|
22804
|
+
_getUserAccountsStatementDownloadV2 = // src/statements/base/interactors/getUserAccountsStatementDownloadV2.ts
|
|
22805
|
+
_async_to_generator(function(params) {
|
|
22806
|
+
var container2, statementsRepository, response, error2;
|
|
22807
|
+
return _ts_generator(this, function(_state) {
|
|
22808
|
+
switch(_state.label){
|
|
22809
|
+
case 0:
|
|
22810
|
+
logDebug("Downloading user account statement V2", {
|
|
22811
|
+
params: params,
|
|
22812
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22813
|
+
});
|
|
22814
|
+
_state.label = 1;
|
|
22815
|
+
case 1:
|
|
22816
|
+
_state.trys.push([
|
|
22817
|
+
1,
|
|
22818
|
+
3,
|
|
22819
|
+
,
|
|
22820
|
+
4
|
|
22821
|
+
]);
|
|
22822
|
+
container2 = getActiveIocContainer();
|
|
22823
|
+
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22824
|
+
return [
|
|
22825
|
+
4,
|
|
22826
|
+
statementsRepository.getUserAccountsStatementDownloadV2(params)
|
|
22827
|
+
];
|
|
22828
|
+
case 2:
|
|
22829
|
+
response = _state.sent();
|
|
22830
|
+
logInfo("User account statement V2 downloaded successfully", {
|
|
22831
|
+
statement_summary_token: params.statement_summary_token,
|
|
22832
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22833
|
+
});
|
|
22834
|
+
return [
|
|
22835
|
+
2,
|
|
22836
|
+
response
|
|
22837
|
+
];
|
|
22838
|
+
case 3:
|
|
22839
|
+
error2 = _state.sent();
|
|
22840
|
+
logError("Failed to download user account statement V2", {
|
|
22841
|
+
error: error2,
|
|
22842
|
+
params: params,
|
|
22843
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22844
|
+
});
|
|
22845
|
+
throw error2;
|
|
22846
|
+
case 4:
|
|
22847
|
+
return [
|
|
22848
|
+
2
|
|
22849
|
+
];
|
|
22850
|
+
}
|
|
22851
|
+
});
|
|
22852
|
+
});
|
|
22853
|
+
return _getUserAccountsStatementDownloadV2.apply(this, arguments);
|
|
22854
|
+
}
|
|
22855
|
+
__name(getUserAccountsStatementDownloadV2, "getUserAccountsStatementDownloadV2");
|
|
21762
22856
|
// src/statements/ioc/statementsIOCModules.ts
|
|
21763
|
-
import { ContainerModule as
|
|
22857
|
+
import { ContainerModule as ContainerModule30 } from "inversify";
|
|
21764
22858
|
// src/statements/adapters/rest/RestStatementsRepository.ts
|
|
21765
|
-
import { inject as
|
|
21766
|
-
function
|
|
22859
|
+
import { inject as inject17, injectable as injectable76 } from "inversify";
|
|
22860
|
+
function _ts_decorate76(decorators, target, key, desc) {
|
|
21767
22861
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21768
22862
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21769
22863
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21770
22864
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21771
22865
|
}
|
|
21772
|
-
__name(
|
|
21773
|
-
function
|
|
22866
|
+
__name(_ts_decorate76, "_ts_decorate");
|
|
22867
|
+
function _ts_metadata20(k, v) {
|
|
21774
22868
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
21775
22869
|
}
|
|
21776
|
-
__name(
|
|
22870
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
21777
22871
|
var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
21778
22872
|
"use strict";
|
|
21779
22873
|
function _RestStatementsRepository() {
|
|
@@ -21901,206 +22995,184 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
21901
22995
|
}
|
|
21902
22996
|
},
|
|
21903
22997
|
{
|
|
21904
|
-
key: "
|
|
21905
|
-
value: function
|
|
21906
|
-
var
|
|
21907
|
-
|
|
21908
|
-
|
|
21909
|
-
|
|
21910
|
-
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21914
|
-
|
|
21915
|
-
|
|
21916
|
-
|
|
21917
|
-
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21921
|
-
|
|
21922
|
-
|
|
22998
|
+
key: "getUserAccountStatementsV2",
|
|
22999
|
+
value: function getUserAccountStatementsV2(params) {
|
|
23000
|
+
var _this = this;
|
|
23001
|
+
return _async_to_generator(function() {
|
|
23002
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
23003
|
+
return _ts_generator(this, function(_state) {
|
|
23004
|
+
switch(_state.label){
|
|
23005
|
+
case 0:
|
|
23006
|
+
logDebug("Getting user account statements", {
|
|
23007
|
+
params: params,
|
|
23008
|
+
adapter: "RestStatementsRepository"
|
|
23009
|
+
});
|
|
23010
|
+
_state.label = 1;
|
|
23011
|
+
case 1:
|
|
23012
|
+
_state.trys.push([
|
|
23013
|
+
1,
|
|
23014
|
+
3,
|
|
23015
|
+
,
|
|
23016
|
+
4
|
|
23017
|
+
]);
|
|
23018
|
+
queryParams = _this.convertUserAccountStatementsParams(params);
|
|
23019
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
23020
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements?").concat(queryParams.toString());
|
|
23021
|
+
return [
|
|
23022
|
+
4,
|
|
23023
|
+
_this.httpClient.get(path)
|
|
23024
|
+
];
|
|
23025
|
+
case 2:
|
|
23026
|
+
response = _state.sent();
|
|
23027
|
+
logInfo("User account statements retrieved successfully", {
|
|
23028
|
+
count: response.count,
|
|
23029
|
+
hasMore: response.is_more,
|
|
23030
|
+
adapter: "RestStatementsRepository"
|
|
23031
|
+
});
|
|
23032
|
+
return [
|
|
23033
|
+
2,
|
|
23034
|
+
response
|
|
23035
|
+
];
|
|
23036
|
+
case 3:
|
|
23037
|
+
err = _state.sent();
|
|
23038
|
+
logError("Unable to retrieve user account statements", {
|
|
23039
|
+
err: err,
|
|
23040
|
+
params: params,
|
|
23041
|
+
adapter: "RestStatementsRepository"
|
|
23042
|
+
});
|
|
23043
|
+
throw new MqSDKError("Unable to retrieve user account statements", err);
|
|
23044
|
+
case 4:
|
|
23045
|
+
return [
|
|
23046
|
+
2
|
|
23047
|
+
];
|
|
23048
|
+
}
|
|
23049
|
+
});
|
|
23050
|
+
})();
|
|
21923
23051
|
}
|
|
21924
|
-
}
|
|
21925
|
-
|
|
21926
|
-
|
|
21927
|
-
|
|
21928
|
-
|
|
21929
|
-
|
|
21930
|
-
|
|
21931
|
-
|
|
21932
|
-
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21945
|
-
|
|
21946
|
-
|
|
21947
|
-
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
|
|
21963
|
-
|
|
21964
|
-
|
|
21965
|
-
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
21978
|
-
|
|
21979
|
-
|
|
21980
|
-
|
|
21981
|
-
}
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
}
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
|
|
22016
|
-
|
|
22017
|
-
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
}
|
|
22049
|
-
return {
|
|
22050
|
-
is_more: response.is_more,
|
|
22051
|
-
data: response.data,
|
|
22052
|
-
end_index: response.end_index,
|
|
22053
|
-
start_index: response.start_index
|
|
22054
|
-
};
|
|
22055
|
-
}, "handleGetStatements");
|
|
22056
|
-
var handleGetStatementAsset = /* @__PURE__ */ __name(function() {
|
|
22057
|
-
return {
|
|
22058
|
-
state: StatementAssetStateEnum.RENDERED,
|
|
22059
|
-
signed_url: MOCK_STATEMENT_ASSET_SIGNED_URL
|
|
22060
|
-
};
|
|
22061
|
-
}, "handleGetStatementAsset");
|
|
22062
|
-
var isAFutureDate = /* @__PURE__ */ __name(function(timestamp) {
|
|
22063
|
-
return /* @__PURE__ */ new Date() < toDateType(timestamp);
|
|
22064
|
-
}, "isAFutureDate");
|
|
22065
|
-
var getValidEndDate = /* @__PURE__ */ __name(function(issued_end_date) {
|
|
22066
|
-
var defaultEndDate = formatDateForApi(/* @__PURE__ */ new Date());
|
|
22067
|
-
var todayOrEndDate = isAFutureDate(issued_end_date) ? defaultEndDate : issued_end_date;
|
|
22068
|
-
var issuedEndDate = todayOrEndDate || defaultEndDate;
|
|
22069
|
-
var endDateObject = toDateType(issuedEndDate);
|
|
22070
|
-
endDateObject.setDate(Math.min(28, /* @__PURE__ */ new Date().getDate()));
|
|
22071
|
-
return endDateObject;
|
|
22072
|
-
}, "getValidEndDate");
|
|
22073
|
-
var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
|
|
22074
|
-
var mockUserCreationYear = new Date(MOCK_USER.createdTime).getFullYear();
|
|
22075
|
-
var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
|
|
22076
|
-
return mockUserCreationYear === issuedEndDateYear;
|
|
22077
|
-
}, "isMockUserCreationYear");
|
|
22078
|
-
var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
|
|
22079
|
-
var data = [];
|
|
22080
|
-
var monthsDifference = 12;
|
|
22081
|
-
var issuedEndDateObject = getValidEndDate(issued_end_date);
|
|
22082
|
-
if (isMockUserCreationYear(issued_end_date)) {
|
|
22083
|
-
monthsDifference = 7;
|
|
22084
|
-
} else if (issued_start_date) {
|
|
22085
|
-
monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
|
|
22086
|
-
}
|
|
22087
|
-
for(var i = 0; i < monthsDifference; i += 1){
|
|
22088
|
-
data.push(_object_spread({
|
|
22089
|
-
cardholder_token: user_token || VALID_USER_TOKEN,
|
|
22090
|
-
issued_date: formatDateForApi(issuedEndDateObject),
|
|
22091
|
-
readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
|
|
22092
|
-
}, account_token && {
|
|
22093
|
-
account_token: account_token
|
|
22094
|
-
}));
|
|
22095
|
-
issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
|
|
22096
|
-
}
|
|
22097
|
-
return {
|
|
22098
|
-
data: data,
|
|
22099
|
-
is_more: false,
|
|
22100
|
-
start_index: 0,
|
|
22101
|
-
end_index: monthsDifference - 1
|
|
22102
|
-
};
|
|
22103
|
-
}, "generateStatementSummary");
|
|
23052
|
+
},
|
|
23053
|
+
{
|
|
23054
|
+
key: "getUserAccountsStatementDownloadV2",
|
|
23055
|
+
value: function getUserAccountsStatementDownloadV2(params) {
|
|
23056
|
+
var _this = this;
|
|
23057
|
+
return _async_to_generator(function() {
|
|
23058
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
23059
|
+
return _ts_generator(this, function(_state) {
|
|
23060
|
+
switch(_state.label){
|
|
23061
|
+
case 0:
|
|
23062
|
+
logDebug("Downloading statement", {
|
|
23063
|
+
params: params,
|
|
23064
|
+
adapter: "RestStatementsRepository"
|
|
23065
|
+
});
|
|
23066
|
+
_state.label = 1;
|
|
23067
|
+
case 1:
|
|
23068
|
+
_state.trys.push([
|
|
23069
|
+
1,
|
|
23070
|
+
3,
|
|
23071
|
+
,
|
|
23072
|
+
4
|
|
23073
|
+
]);
|
|
23074
|
+
queryParams = new URLSearchParams([
|
|
23075
|
+
[
|
|
23076
|
+
"account_token",
|
|
23077
|
+
params.account_token
|
|
23078
|
+
]
|
|
23079
|
+
]);
|
|
23080
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
23081
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements/download?statement_summary_token=").concat(params.statement_summary_token, "&").concat(queryParams.toString());
|
|
23082
|
+
return [
|
|
23083
|
+
4,
|
|
23084
|
+
_this.httpClient.get(path)
|
|
23085
|
+
];
|
|
23086
|
+
case 2:
|
|
23087
|
+
response = _state.sent();
|
|
23088
|
+
logInfo("Statement downloaded successfully", {
|
|
23089
|
+
statement_summary_token: params.statement_summary_token,
|
|
23090
|
+
adapter: "RestStatementsRepository"
|
|
23091
|
+
});
|
|
23092
|
+
return [
|
|
23093
|
+
2,
|
|
23094
|
+
response
|
|
23095
|
+
];
|
|
23096
|
+
case 3:
|
|
23097
|
+
err = _state.sent();
|
|
23098
|
+
logError("Unable to download statement", {
|
|
23099
|
+
err: err,
|
|
23100
|
+
params: params,
|
|
23101
|
+
adapter: "RestStatementsRepository"
|
|
23102
|
+
});
|
|
23103
|
+
throw new MqSDKError("Unable to download statement", err);
|
|
23104
|
+
case 4:
|
|
23105
|
+
return [
|
|
23106
|
+
2
|
|
23107
|
+
];
|
|
23108
|
+
}
|
|
23109
|
+
});
|
|
23110
|
+
})();
|
|
23111
|
+
}
|
|
23112
|
+
},
|
|
23113
|
+
{
|
|
23114
|
+
key: "convertPaginationParamsToQueryParams",
|
|
23115
|
+
value: function convertPaginationParamsToQueryParams(paginationParams) {
|
|
23116
|
+
var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
23117
|
+
var queryParams = new URLSearchParams([
|
|
23118
|
+
[
|
|
23119
|
+
"issued_end_date",
|
|
23120
|
+
issuedEndDate
|
|
23121
|
+
],
|
|
23122
|
+
[
|
|
23123
|
+
"issued_start_date",
|
|
23124
|
+
issuedStartDate
|
|
23125
|
+
]
|
|
23126
|
+
].concat(_to_consumable_array(accountToken ? [
|
|
23127
|
+
[
|
|
23128
|
+
"account_token",
|
|
23129
|
+
accountToken
|
|
23130
|
+
]
|
|
23131
|
+
] : [])));
|
|
23132
|
+
return queryParams;
|
|
23133
|
+
}
|
|
23134
|
+
},
|
|
23135
|
+
{
|
|
23136
|
+
key: "convertUserAccountStatementsParams",
|
|
23137
|
+
value: function convertUserAccountStatementsParams(params) {
|
|
23138
|
+
var account_token = params.account_token, _params_start_index = params.start_index, start_index = _params_start_index === void 0 ? 0 : _params_start_index, _params_count = params.count, count = _params_count === void 0 ? 10 : _params_count, sort_by = params.sort_by;
|
|
23139
|
+
var queryParams = new URLSearchParams([
|
|
23140
|
+
[
|
|
23141
|
+
"account_token",
|
|
23142
|
+
account_token
|
|
23143
|
+
],
|
|
23144
|
+
[
|
|
23145
|
+
"start_index",
|
|
23146
|
+
start_index.toString()
|
|
23147
|
+
],
|
|
23148
|
+
[
|
|
23149
|
+
"count",
|
|
23150
|
+
count.toString()
|
|
23151
|
+
]
|
|
23152
|
+
]);
|
|
23153
|
+
if (sort_by) {
|
|
23154
|
+
queryParams.append("sort_by", sort_by);
|
|
23155
|
+
}
|
|
23156
|
+
return queryParams;
|
|
23157
|
+
}
|
|
23158
|
+
}
|
|
23159
|
+
]);
|
|
23160
|
+
return _RestStatementsRepository;
|
|
23161
|
+
}();
|
|
23162
|
+
__name(_RestStatementsRepository, "RestStatementsRepository");
|
|
23163
|
+
var RestStatementsRepository = _RestStatementsRepository;
|
|
23164
|
+
_ts_decorate76([
|
|
23165
|
+
inject17(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
23166
|
+
_ts_metadata20("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
23167
|
+
], RestStatementsRepository.prototype, "httpClient", void 0);
|
|
23168
|
+
RestStatementsRepository = _ts_decorate76([
|
|
23169
|
+
injectable76()
|
|
23170
|
+
], RestStatementsRepository);
|
|
23171
|
+
// src/statements/ioc/statementsIOCModules.ts
|
|
23172
|
+
var statementsIOCModule = new ContainerModule30(function(bind) {
|
|
23173
|
+
bind(ITF_STATEMENTS).to(RestStatementsRepository).inSingletonScope();
|
|
23174
|
+
bind(ITF_STATEMENT_ASSET).to(RestStatementsRepository).inSingletonScope();
|
|
23175
|
+
});
|
|
22104
23176
|
// src/statements/adapters/rest/httpMocks.ts
|
|
22105
23177
|
var handleAuthorizationCheck = /* @__PURE__ */ __name(function(authorization) {
|
|
22106
23178
|
var errorResponse2 = null;
|
|
@@ -22169,6 +23241,45 @@ var mswStatementsHandlers = [
|
|
|
22169
23241
|
response.direct_mode = true;
|
|
22170
23242
|
}
|
|
22171
23243
|
return HttpResponse.json(response);
|
|
23244
|
+
}),
|
|
23245
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements"), function(param) {
|
|
23246
|
+
var request = param.request;
|
|
23247
|
+
var authorization = request.headers.get("authorization");
|
|
23248
|
+
var queryParams = new URLSearchParams(new URL(request.url).search);
|
|
23249
|
+
var accountToken = queryParams.get("account_token");
|
|
23250
|
+
var startIndex = parseInt(queryParams.get("start_index") || "0");
|
|
23251
|
+
var count = parseInt(queryParams.get("count") || "10");
|
|
23252
|
+
var sortBy = queryParams.get("sort_by");
|
|
23253
|
+
var authorizationError = handleAuthorizationCheck(authorization);
|
|
23254
|
+
if (authorizationError !== null) {
|
|
23255
|
+
return authorizationError;
|
|
23256
|
+
}
|
|
23257
|
+
var params = _object_spread({
|
|
23258
|
+
account_token: accountToken,
|
|
23259
|
+
start_index: startIndex,
|
|
23260
|
+
count: count
|
|
23261
|
+
}, sortBy && {
|
|
23262
|
+
sort_by: sortBy
|
|
23263
|
+
});
|
|
23264
|
+
var response = handleGetUserAccountStatementsV2(params);
|
|
23265
|
+
return HttpResponse.json(response);
|
|
23266
|
+
}),
|
|
23267
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements/download"), function(param) {
|
|
23268
|
+
var request = param.request;
|
|
23269
|
+
var authorization = request.headers.get("authorization");
|
|
23270
|
+
var queryParams = new URLSearchParams(new URL(request.url).search);
|
|
23271
|
+
var statementSummaryToken = queryParams.get("statement_summary_token");
|
|
23272
|
+
var accountToken = queryParams.get("account_token");
|
|
23273
|
+
var authorizationError = handleAuthorizationCheck(authorization);
|
|
23274
|
+
if (authorizationError !== null) {
|
|
23275
|
+
return authorizationError;
|
|
23276
|
+
}
|
|
23277
|
+
var params = {
|
|
23278
|
+
statement_summary_token: statementSummaryToken,
|
|
23279
|
+
account_token: accountToken
|
|
23280
|
+
};
|
|
23281
|
+
var response = handleGetUserAccountsStatementDownloadV2(params);
|
|
23282
|
+
return HttpResponse.json(response);
|
|
22172
23283
|
})
|
|
22173
23284
|
];
|
|
22174
23285
|
// src/themes/base/constants/defaultTheme.ts
|
|
@@ -22721,14 +23832,14 @@ var _iThemeRepository = function _iThemeRepository() {
|
|
|
22721
23832
|
__name(_iThemeRepository, "iThemeRepository");
|
|
22722
23833
|
var iThemeRepository = _iThemeRepository;
|
|
22723
23834
|
// src/themes/base/repositories/MockThemeRepository.ts
|
|
22724
|
-
import { injectable as
|
|
22725
|
-
function
|
|
23835
|
+
import { injectable as injectable77 } from "inversify";
|
|
23836
|
+
function _ts_decorate77(decorators, target, key, desc) {
|
|
22726
23837
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22727
23838
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22728
23839
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22729
23840
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22730
23841
|
}
|
|
22731
|
-
__name(
|
|
23842
|
+
__name(_ts_decorate77, "_ts_decorate");
|
|
22732
23843
|
var TEST_THEME_NAME = "myTestTheme";
|
|
22733
23844
|
var TEST_THEME_OBJECT = {
|
|
22734
23845
|
colors: {
|
|
@@ -22771,8 +23882,8 @@ var _MockThemeRepository = /*#__PURE__*/ function() {
|
|
|
22771
23882
|
}();
|
|
22772
23883
|
__name(_MockThemeRepository, "MockThemeRepository");
|
|
22773
23884
|
var MockThemeRepository = _MockThemeRepository;
|
|
22774
|
-
MockThemeRepository =
|
|
22775
|
-
|
|
23885
|
+
MockThemeRepository = _ts_decorate77([
|
|
23886
|
+
injectable77()
|
|
22776
23887
|
], MockThemeRepository);
|
|
22777
23888
|
// src/themes/base/repositories/iIconsRepository.ts
|
|
22778
23889
|
var _iIconsRepository = function _iIconsRepository() {
|
|
@@ -22782,25 +23893,25 @@ var _iIconsRepository = function _iIconsRepository() {
|
|
|
22782
23893
|
__name(_iIconsRepository, "iIconsRepository");
|
|
22783
23894
|
var iIconsRepository = _iIconsRepository;
|
|
22784
23895
|
// src/themes/ioc/mockThemesIOCModule.ts
|
|
22785
|
-
import { ContainerModule as
|
|
22786
|
-
var mockThemesIOCModule = new
|
|
23896
|
+
import { ContainerModule as ContainerModule31 } from "inversify";
|
|
23897
|
+
var mockThemesIOCModule = new ContainerModule31(function(bind) {
|
|
22787
23898
|
bind(ITF_THEME_REPOSITORY).to(MockThemeRepository).inSingletonScope();
|
|
22788
23899
|
});
|
|
22789
23900
|
// src/themes/ioc/themesIOCModule.ts
|
|
22790
|
-
import { ContainerModule as
|
|
23901
|
+
import { ContainerModule as ContainerModule32 } from "inversify";
|
|
22791
23902
|
// src/themes/adapters/rest/RestThemeRepository.ts
|
|
22792
|
-
import { inject as
|
|
22793
|
-
function
|
|
23903
|
+
import { inject as inject18, injectable as injectable78 } from "inversify";
|
|
23904
|
+
function _ts_decorate78(decorators, target, key, desc) {
|
|
22794
23905
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22795
23906
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22796
23907
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22797
23908
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22798
23909
|
}
|
|
22799
|
-
__name(
|
|
22800
|
-
function
|
|
23910
|
+
__name(_ts_decorate78, "_ts_decorate");
|
|
23911
|
+
function _ts_metadata21(k, v) {
|
|
22801
23912
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22802
23913
|
}
|
|
22803
|
-
__name(
|
|
23914
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
22804
23915
|
var _RestThemeRepository = /*#__PURE__*/ function() {
|
|
22805
23916
|
"use strict";
|
|
22806
23917
|
function _RestThemeRepository() {
|
|
@@ -22868,28 +23979,28 @@ var _RestThemeRepository = /*#__PURE__*/ function() {
|
|
|
22868
23979
|
}();
|
|
22869
23980
|
__name(_RestThemeRepository, "RestThemeRepository");
|
|
22870
23981
|
var RestThemeRepository = _RestThemeRepository;
|
|
22871
|
-
|
|
22872
|
-
|
|
22873
|
-
|
|
23982
|
+
_ts_decorate78([
|
|
23983
|
+
inject18(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
23984
|
+
_ts_metadata21("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
22874
23985
|
], RestThemeRepository.prototype, "httpClient", void 0);
|
|
22875
|
-
RestThemeRepository =
|
|
22876
|
-
|
|
23986
|
+
RestThemeRepository = _ts_decorate78([
|
|
23987
|
+
injectable78()
|
|
22877
23988
|
], RestThemeRepository);
|
|
22878
23989
|
// src/themes/ioc/themesIOCModule.ts
|
|
22879
|
-
var themesIOCModule = new
|
|
23990
|
+
var themesIOCModule = new ContainerModule32(function(bind) {
|
|
22880
23991
|
bind(ITF_THEME_REPOSITORY).to(RestThemeRepository).inSingletonScope();
|
|
22881
23992
|
});
|
|
22882
23993
|
// src/themes/ioc/iconsIOCModule.ts
|
|
22883
|
-
import { ContainerModule as
|
|
23994
|
+
import { ContainerModule as ContainerModule33 } from "inversify";
|
|
22884
23995
|
// src/themes/adapters/rest/StaticIconsRepository.ts
|
|
22885
|
-
import { injectable as
|
|
22886
|
-
function
|
|
23996
|
+
import { injectable as injectable79 } from "inversify";
|
|
23997
|
+
function _ts_decorate79(decorators, target, key, desc) {
|
|
22887
23998
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22888
23999
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22889
24000
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22890
24001
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22891
24002
|
}
|
|
22892
|
-
__name(
|
|
24003
|
+
__name(_ts_decorate79, "_ts_decorate");
|
|
22893
24004
|
var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
22894
24005
|
"use strict";
|
|
22895
24006
|
function _StaticIconsRepository() {
|
|
@@ -22987,33 +24098,33 @@ var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
|
22987
24098
|
}();
|
|
22988
24099
|
__name(_StaticIconsRepository, "StaticIconsRepository");
|
|
22989
24100
|
var StaticIconsRepository = _StaticIconsRepository;
|
|
22990
|
-
StaticIconsRepository =
|
|
22991
|
-
|
|
24101
|
+
StaticIconsRepository = _ts_decorate79([
|
|
24102
|
+
injectable79()
|
|
22992
24103
|
], StaticIconsRepository);
|
|
22993
24104
|
// src/themes/ioc/iconsIOCModule.ts
|
|
22994
|
-
var iconsIOCModule = new
|
|
24105
|
+
var iconsIOCModule = new ContainerModule33(function(bind) {
|
|
22995
24106
|
bind(ITF_ICONS_REPOSITORY).to(StaticIconsRepository).inSingletonScope();
|
|
22996
24107
|
});
|
|
22997
24108
|
// src/transactions/base/repositories/iTransactionsRepository.ts
|
|
22998
|
-
import { injectable as
|
|
22999
|
-
function
|
|
24109
|
+
import { injectable as injectable80 } from "inversify";
|
|
24110
|
+
function _ts_decorate80(decorators, target, key, desc) {
|
|
23000
24111
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23001
24112
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23002
24113
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23003
24114
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23004
24115
|
}
|
|
23005
|
-
__name(
|
|
24116
|
+
__name(_ts_decorate80, "_ts_decorate");
|
|
23006
24117
|
var _iTransactionsRepository = function _iTransactionsRepository() {
|
|
23007
24118
|
"use strict";
|
|
23008
24119
|
_class_call_check(this, _iTransactionsRepository);
|
|
23009
24120
|
};
|
|
23010
24121
|
__name(_iTransactionsRepository, "iTransactionsRepository");
|
|
23011
24122
|
var iTransactionsRepository = _iTransactionsRepository;
|
|
23012
|
-
iTransactionsRepository =
|
|
23013
|
-
|
|
24123
|
+
iTransactionsRepository = _ts_decorate80([
|
|
24124
|
+
injectable80()
|
|
23014
24125
|
], iTransactionsRepository);
|
|
23015
24126
|
// src/transactions/base/repositories/MockTransactionsRepository.ts
|
|
23016
|
-
import { injectable as
|
|
24127
|
+
import { injectable as injectable81 } from "inversify";
|
|
23017
24128
|
// src/transactions/base/repositories/transactionTypes.ts
|
|
23018
24129
|
var TransactionRecordStatus;
|
|
23019
24130
|
(function(TransactionRecordStatus2) {
|
|
@@ -23027,13 +24138,13 @@ var TransactionDetailsBannerType;
|
|
|
23027
24138
|
TransactionDetailsBannerType2["WARNING"] = "WARNING";
|
|
23028
24139
|
})(TransactionDetailsBannerType || (TransactionDetailsBannerType = {}));
|
|
23029
24140
|
// src/transactions/base/repositories/MockTransactionsRepository.ts
|
|
23030
|
-
function
|
|
24141
|
+
function _ts_decorate81(decorators, target, key, desc) {
|
|
23031
24142
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23032
24143
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23033
24144
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23034
24145
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23035
24146
|
}
|
|
23036
|
-
__name(
|
|
24147
|
+
__name(_ts_decorate81, "_ts_decorate");
|
|
23037
24148
|
var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
23038
24149
|
"use strict";
|
|
23039
24150
|
function _MockTransactionsRepository() {
|
|
@@ -23196,8 +24307,8 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23196
24307
|
}();
|
|
23197
24308
|
__name(_MockTransactionsRepository, "MockTransactionsRepository");
|
|
23198
24309
|
var MockTransactionsRepository = _MockTransactionsRepository;
|
|
23199
|
-
MockTransactionsRepository =
|
|
23200
|
-
|
|
24310
|
+
MockTransactionsRepository = _ts_decorate81([
|
|
24311
|
+
injectable81()
|
|
23201
24312
|
], MockTransactionsRepository);
|
|
23202
24313
|
// src/transactions/ioc/symbols.ts
|
|
23203
24314
|
var ITF_TRANSACTIONS = Symbol.for("iTransactionsRepository");
|
|
@@ -23556,24 +24667,24 @@ var Direction;
|
|
|
23556
24667
|
Direction2["Out"] = "OUT";
|
|
23557
24668
|
})(Direction || (Direction = {}));
|
|
23558
24669
|
// src/transactions/ioc/transactionsIOCModule.ts
|
|
23559
|
-
import { ContainerModule as
|
|
24670
|
+
import { ContainerModule as ContainerModule34 } from "inversify";
|
|
23560
24671
|
// src/transactions/adapters/rest/RestTransactionsRepository.ts
|
|
23561
|
-
import { inject as
|
|
24672
|
+
import { inject as inject19, injectable as injectable82 } from "inversify";
|
|
23562
24673
|
// src/transactions/adapters/rest/constants.ts
|
|
23563
24674
|
var PENDING_QUERY = "PENDING";
|
|
23564
24675
|
var NON_PENDING_QUERY = "COMPLETION,DECLINED";
|
|
23565
24676
|
// src/transactions/adapters/rest/RestTransactionsRepository.ts
|
|
23566
|
-
function
|
|
24677
|
+
function _ts_decorate82(decorators, target, key, desc) {
|
|
23567
24678
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23568
24679
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23569
24680
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23570
24681
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23571
24682
|
}
|
|
23572
|
-
__name(
|
|
23573
|
-
function
|
|
24683
|
+
__name(_ts_decorate82, "_ts_decorate");
|
|
24684
|
+
function _ts_metadata22(k, v) {
|
|
23574
24685
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
23575
24686
|
}
|
|
23576
|
-
__name(
|
|
24687
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
23577
24688
|
var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
23578
24689
|
"use strict";
|
|
23579
24690
|
function _RestTransactionsRepository() {
|
|
@@ -23832,7 +24943,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23832
24943
|
value: function getTransactionByToken(request) {
|
|
23833
24944
|
var _this = this;
|
|
23834
24945
|
return _async_to_generator(function() {
|
|
23835
|
-
var cuiApiBaseUrl, queryParams, queryString, path,
|
|
24946
|
+
var cuiApiBaseUrl, queryParams, queryString, path, response, err;
|
|
23836
24947
|
return _ts_generator(this, function(_state) {
|
|
23837
24948
|
switch(_state.label){
|
|
23838
24949
|
case 0:
|
|
@@ -23858,12 +24969,9 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23858
24969
|
}
|
|
23859
24970
|
queryString = queryParams.toString();
|
|
23860
24971
|
path = "".concat(cuiApiBaseUrl, "/api/v2/transactions/").concat(request.transaction_token).concat(queryString ? "?".concat(queryString) : "");
|
|
23861
|
-
params = {
|
|
23862
|
-
headers: getCommonApiHeaders()
|
|
23863
|
-
};
|
|
23864
24972
|
return [
|
|
23865
24973
|
4,
|
|
23866
|
-
_this.httpClient.get(path
|
|
24974
|
+
_this.httpClient.get(path)
|
|
23867
24975
|
];
|
|
23868
24976
|
case 2:
|
|
23869
24977
|
response = _state.sent();
|
|
@@ -23897,15 +25005,15 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23897
25005
|
}();
|
|
23898
25006
|
__name(_RestTransactionsRepository, "RestTransactionsRepository");
|
|
23899
25007
|
var RestTransactionsRepository = _RestTransactionsRepository;
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
|
|
25008
|
+
_ts_decorate82([
|
|
25009
|
+
inject19(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
25010
|
+
_ts_metadata22("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
23903
25011
|
], RestTransactionsRepository.prototype, "httpClient", void 0);
|
|
23904
|
-
RestTransactionsRepository =
|
|
23905
|
-
|
|
25012
|
+
RestTransactionsRepository = _ts_decorate82([
|
|
25013
|
+
injectable82()
|
|
23906
25014
|
], RestTransactionsRepository);
|
|
23907
25015
|
// src/transactions/ioc/transactionsIOCModule.ts
|
|
23908
|
-
var transactionsIOCModule = new
|
|
25016
|
+
var transactionsIOCModule = new ContainerModule34(function(bind) {
|
|
23909
25017
|
bind(ITF_TRANSACTIONS).to(RestTransactionsRepository).inSingletonScope();
|
|
23910
25018
|
});
|
|
23911
25019
|
// src/transactions/adapters/rest/mockTransactions.ts
|
|
@@ -24573,7 +25681,7 @@ var mswTransactionsHandlers = [
|
|
|
24573
25681
|
})
|
|
24574
25682
|
];
|
|
24575
25683
|
// src/wla/adapters/RestWlaService.ts
|
|
24576
|
-
import { inject as
|
|
25684
|
+
import { inject as inject20, injectable as injectable83 } from "inversify";
|
|
24577
25685
|
// src/wla/base/types/AccountResponse.ts
|
|
24578
25686
|
var AccountType;
|
|
24579
25687
|
(function(AccountType2) {
|
|
@@ -24964,17 +26072,17 @@ var TransactionChallengeAuthenticationMethod;
|
|
|
24964
26072
|
TransactionChallengeAuthenticationMethod2["Other"] = "OTHER";
|
|
24965
26073
|
})(TransactionChallengeAuthenticationMethod || (TransactionChallengeAuthenticationMethod = {}));
|
|
24966
26074
|
// src/wla/adapters/RestWlaService.ts
|
|
24967
|
-
function
|
|
26075
|
+
function _ts_decorate83(decorators, target, key, desc) {
|
|
24968
26076
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24969
26077
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24970
26078
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24971
26079
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24972
26080
|
}
|
|
24973
|
-
__name(
|
|
24974
|
-
function
|
|
26081
|
+
__name(_ts_decorate83, "_ts_decorate");
|
|
26082
|
+
function _ts_metadata23(k, v) {
|
|
24975
26083
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24976
26084
|
}
|
|
24977
|
-
__name(
|
|
26085
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
24978
26086
|
var _RestWlaService = /*#__PURE__*/ function() {
|
|
24979
26087
|
"use strict";
|
|
24980
26088
|
function _RestWlaService() {
|
|
@@ -25002,8 +26110,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25002
26110
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25003
26111
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25004
26112
|
params = {
|
|
25005
|
-
method: "POST",
|
|
25006
|
-
headers: getCommonApiHeaders(),
|
|
25007
26113
|
body: JSON.stringify({
|
|
25008
26114
|
old_status: oldStatus,
|
|
25009
26115
|
new_status: newStatus
|
|
@@ -25036,7 +26142,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25036
26142
|
value: function getUserProfileDetails() {
|
|
25037
26143
|
var _this = this;
|
|
25038
26144
|
return _async_to_generator(function() {
|
|
25039
|
-
var cuiApiBaseUrl, path,
|
|
26145
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
25040
26146
|
return _ts_generator(this, function(_state) {
|
|
25041
26147
|
switch(_state.label){
|
|
25042
26148
|
case 0:
|
|
@@ -25053,12 +26159,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25053
26159
|
]);
|
|
25054
26160
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25055
26161
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/profile");
|
|
25056
|
-
params = {
|
|
25057
|
-
headers: getCommonApiHeaders()
|
|
25058
|
-
};
|
|
25059
26162
|
return [
|
|
25060
26163
|
4,
|
|
25061
|
-
_this.httpClient.get(path
|
|
26164
|
+
_this.httpClient.get(path)
|
|
25062
26165
|
];
|
|
25063
26166
|
case 2:
|
|
25064
26167
|
data = _state.sent();
|
|
@@ -25108,8 +26211,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25108
26211
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25109
26212
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/create-card");
|
|
25110
26213
|
params = {
|
|
25111
|
-
method: "POST",
|
|
25112
|
-
headers: getCommonApiHeaders(),
|
|
25113
26214
|
body: JSON.stringify(requestBody)
|
|
25114
26215
|
};
|
|
25115
26216
|
return [
|
|
@@ -25167,8 +26268,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25167
26268
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25168
26269
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/set-pin");
|
|
25169
26270
|
params = {
|
|
25170
|
-
method: "POST",
|
|
25171
|
-
headers: getCommonApiHeaders(),
|
|
25172
26271
|
body: JSON.stringify({
|
|
25173
26272
|
card_token: cardToken,
|
|
25174
26273
|
pin: pin,
|
|
@@ -25231,8 +26330,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25231
26330
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25232
26331
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25233
26332
|
params = {
|
|
25234
|
-
method: "POST",
|
|
25235
|
-
headers: getCommonApiHeaders(),
|
|
25236
26333
|
body: JSON.stringify({
|
|
25237
26334
|
old_status: OnboardingStatus.ACCOUNT_ACTIVATED,
|
|
25238
26335
|
new_status: OnboardingStatus.ACCOUNT_VERIFIED
|
|
@@ -25339,8 +26436,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25339
26436
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25340
26437
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25341
26438
|
params = {
|
|
25342
|
-
method: "POST",
|
|
25343
|
-
headers: getCommonApiHeaders(),
|
|
25344
26439
|
body: JSON.stringify({
|
|
25345
26440
|
old_status: OnboardingStatus.CREATED,
|
|
25346
26441
|
new_status: OnboardingStatus.ACCOUNT_ACTIVATED
|
|
@@ -25398,8 +26493,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25398
26493
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25399
26494
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25400
26495
|
params = {
|
|
25401
|
-
method: "POST",
|
|
25402
|
-
headers: getCommonApiHeaders(),
|
|
25403
26496
|
body: JSON.stringify(requestBody)
|
|
25404
26497
|
};
|
|
25405
26498
|
return [
|
|
@@ -25454,8 +26547,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25454
26547
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25455
26548
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25456
26549
|
params = {
|
|
25457
|
-
method: "PUT",
|
|
25458
|
-
headers: getCommonApiHeaders(),
|
|
25459
26550
|
body: JSON.stringify(requestBody)
|
|
25460
26551
|
};
|
|
25461
26552
|
return [
|
|
@@ -25492,7 +26583,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25492
26583
|
value: function deleteRegistrationForPushNotifications() {
|
|
25493
26584
|
var _this = this;
|
|
25494
26585
|
return _async_to_generator(function() {
|
|
25495
|
-
var cuiApiBaseUrl, path,
|
|
26586
|
+
var cuiApiBaseUrl, path, error2;
|
|
25496
26587
|
return _ts_generator(this, function(_state) {
|
|
25497
26588
|
switch(_state.label){
|
|
25498
26589
|
case 0:
|
|
@@ -25509,13 +26600,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25509
26600
|
]);
|
|
25510
26601
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25511
26602
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25512
|
-
params = {
|
|
25513
|
-
method: "DELETE",
|
|
25514
|
-
headers: getCommonApiHeaders()
|
|
25515
|
-
};
|
|
25516
26603
|
return [
|
|
25517
26604
|
4,
|
|
25518
|
-
_this.httpClient.delete(path
|
|
26605
|
+
_this.httpClient.delete(path)
|
|
25519
26606
|
];
|
|
25520
26607
|
case 2:
|
|
25521
26608
|
_state.sent();
|
|
@@ -25547,7 +26634,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25547
26634
|
value: function getOffers() {
|
|
25548
26635
|
var _this = this;
|
|
25549
26636
|
return _async_to_generator(function() {
|
|
25550
|
-
var cuiApiBaseUrl, path,
|
|
26637
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
25551
26638
|
return _ts_generator(this, function(_state) {
|
|
25552
26639
|
switch(_state.label){
|
|
25553
26640
|
case 0:
|
|
@@ -25564,12 +26651,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25564
26651
|
]);
|
|
25565
26652
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25566
26653
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offers");
|
|
25567
|
-
params = {
|
|
25568
|
-
headers: getCommonApiHeaders()
|
|
25569
|
-
};
|
|
25570
26654
|
return [
|
|
25571
26655
|
4,
|
|
25572
|
-
_this.httpClient.get(path
|
|
26656
|
+
_this.httpClient.get(path)
|
|
25573
26657
|
];
|
|
25574
26658
|
case 2:
|
|
25575
26659
|
data = _state.sent();
|
|
@@ -25601,7 +26685,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25601
26685
|
value: function getOfferDetails(offerId) {
|
|
25602
26686
|
var _this = this;
|
|
25603
26687
|
return _async_to_generator(function() {
|
|
25604
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
26688
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
25605
26689
|
return _ts_generator(this, function(_state) {
|
|
25606
26690
|
switch(_state.label){
|
|
25607
26691
|
case 0:
|
|
@@ -25622,12 +26706,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25622
26706
|
offer_id: offerId
|
|
25623
26707
|
});
|
|
25624
26708
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offer?").concat(queryParams.toString());
|
|
25625
|
-
params = {
|
|
25626
|
-
headers: getCommonApiHeaders()
|
|
25627
|
-
};
|
|
25628
26709
|
return [
|
|
25629
26710
|
4,
|
|
25630
|
-
_this.httpClient.get(path
|
|
26711
|
+
_this.httpClient.get(path)
|
|
25631
26712
|
];
|
|
25632
26713
|
case 2:
|
|
25633
26714
|
data = _state.sent();
|
|
@@ -25661,7 +26742,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25661
26742
|
value: function getAccountTransactions(requestBody) {
|
|
25662
26743
|
var _this = this;
|
|
25663
26744
|
return _async_to_generator(function() {
|
|
25664
|
-
var cuiApiBaseUrl, queryParams, path, status, rest,
|
|
26745
|
+
var cuiApiBaseUrl, queryParams, path, status, rest, data, error2;
|
|
25665
26746
|
return _ts_generator(this, function(_state) {
|
|
25666
26747
|
switch(_state.label){
|
|
25667
26748
|
case 0:
|
|
@@ -25691,12 +26772,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25691
26772
|
status = requestBody.status, rest = _object_without_properties(requestBody, [
|
|
25692
26773
|
"status"
|
|
25693
26774
|
]);
|
|
25694
|
-
params = {
|
|
25695
|
-
headers: getCommonApiHeaders()
|
|
25696
|
-
};
|
|
25697
26775
|
return [
|
|
25698
26776
|
4,
|
|
25699
|
-
_this.httpClient.get(path
|
|
26777
|
+
_this.httpClient.get(path)
|
|
25700
26778
|
];
|
|
25701
26779
|
case 2:
|
|
25702
26780
|
data = _state.sent();
|
|
@@ -25730,7 +26808,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25730
26808
|
value: function getCardByToken(cardToken) {
|
|
25731
26809
|
var _this = this;
|
|
25732
26810
|
return _async_to_generator(function() {
|
|
25733
|
-
var _data_card_art, _data_card_art1, cuiApiBaseUrl, cardArtBaseUrl, queryParams, path,
|
|
26811
|
+
var _data_card_art, _data_card_art1, cuiApiBaseUrl, cardArtBaseUrl, queryParams, path, data, error2;
|
|
25734
26812
|
return _ts_generator(this, function(_state) {
|
|
25735
26813
|
switch(_state.label){
|
|
25736
26814
|
case 0:
|
|
@@ -25752,12 +26830,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25752
26830
|
card_token: cardToken
|
|
25753
26831
|
});
|
|
25754
26832
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card?").concat(queryParams.toString());
|
|
25755
|
-
params = {
|
|
25756
|
-
headers: getCommonApiHeaders()
|
|
25757
|
-
};
|
|
25758
26833
|
return [
|
|
25759
26834
|
4,
|
|
25760
|
-
_this.httpClient.get(path
|
|
26835
|
+
_this.httpClient.get(path)
|
|
25761
26836
|
];
|
|
25762
26837
|
case 2:
|
|
25763
26838
|
data = _state.sent();
|
|
@@ -25797,7 +26872,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25797
26872
|
value: function getExternalAccount(token) {
|
|
25798
26873
|
var _this = this;
|
|
25799
26874
|
return _async_to_generator(function() {
|
|
25800
|
-
var cuiApiBaseUrl, path,
|
|
26875
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
25801
26876
|
return _ts_generator(this, function(_state) {
|
|
25802
26877
|
switch(_state.label){
|
|
25803
26878
|
case 0:
|
|
@@ -25815,12 +26890,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25815
26890
|
]);
|
|
25816
26891
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25817
26892
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
25818
|
-
params = {
|
|
25819
|
-
headers: getCommonApiHeaders()
|
|
25820
|
-
};
|
|
25821
26893
|
return [
|
|
25822
26894
|
4,
|
|
25823
|
-
_this.httpClient.get(path
|
|
26895
|
+
_this.httpClient.get(path)
|
|
25824
26896
|
];
|
|
25825
26897
|
case 2:
|
|
25826
26898
|
data = _state.sent();
|
|
@@ -25854,7 +26926,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25854
26926
|
value: function getExternalAccountList(requestBody) {
|
|
25855
26927
|
var _this = this;
|
|
25856
26928
|
return _async_to_generator(function() {
|
|
25857
|
-
var cuiApiBaseUrl, queryParams, path, status, rest,
|
|
26929
|
+
var cuiApiBaseUrl, queryParams, path, status, rest, data, error2, _error2_debug;
|
|
25858
26930
|
return _ts_generator(this, function(_state) {
|
|
25859
26931
|
switch(_state.label){
|
|
25860
26932
|
case 0:
|
|
@@ -25883,12 +26955,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25883
26955
|
status = requestBody.status, rest = _object_without_properties(requestBody, [
|
|
25884
26956
|
"status"
|
|
25885
26957
|
]);
|
|
25886
|
-
params = {
|
|
25887
|
-
headers: getCommonApiHeaders()
|
|
25888
|
-
};
|
|
25889
26958
|
return [
|
|
25890
26959
|
4,
|
|
25891
|
-
_this.httpClient.get(path
|
|
26960
|
+
_this.httpClient.get(path)
|
|
25892
26961
|
];
|
|
25893
26962
|
case 2:
|
|
25894
26963
|
data = _state.sent();
|
|
@@ -25946,7 +27015,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25946
27015
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts");
|
|
25947
27016
|
params = {
|
|
25948
27017
|
method: "POST",
|
|
25949
|
-
headers: getCommonApiHeaders(),
|
|
25950
27018
|
body: JSON.stringify(requestBody)
|
|
25951
27019
|
};
|
|
25952
27020
|
return [
|
|
@@ -26009,7 +27077,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26009
27077
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/verification");
|
|
26010
27078
|
params = {
|
|
26011
27079
|
method: "POST",
|
|
26012
|
-
headers: getCommonApiHeaders(),
|
|
26013
27080
|
body: JSON.stringify(requestBody)
|
|
26014
27081
|
};
|
|
26015
27082
|
return [
|
|
@@ -26073,7 +27140,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26073
27140
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
26074
27141
|
params = {
|
|
26075
27142
|
method: "PATCH",
|
|
26076
|
-
headers: getCommonApiHeaders(),
|
|
26077
27143
|
body: JSON.stringify(requestBody)
|
|
26078
27144
|
};
|
|
26079
27145
|
return [
|
|
@@ -26120,7 +27186,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26120
27186
|
value: function getTransactionByToken(transactionToken) {
|
|
26121
27187
|
var _this = this;
|
|
26122
27188
|
return _async_to_generator(function() {
|
|
26123
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27189
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
26124
27190
|
return _ts_generator(this, function(_state) {
|
|
26125
27191
|
switch(_state.label){
|
|
26126
27192
|
case 0:
|
|
@@ -26141,12 +27207,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26141
27207
|
transaction_token: transactionToken
|
|
26142
27208
|
});
|
|
26143
27209
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction?").concat(queryParams.toString());
|
|
26144
|
-
params = {
|
|
26145
|
-
headers: getCommonApiHeaders()
|
|
26146
|
-
};
|
|
26147
27210
|
return [
|
|
26148
27211
|
4,
|
|
26149
|
-
_this.httpClient.get(path
|
|
27212
|
+
_this.httpClient.get(path)
|
|
26150
27213
|
];
|
|
26151
27214
|
case 2:
|
|
26152
27215
|
data = _state.sent();
|
|
@@ -26180,7 +27243,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26180
27243
|
value: function getTransactionChallengeByToken(challengeToken) {
|
|
26181
27244
|
var _this = this;
|
|
26182
27245
|
return _async_to_generator(function() {
|
|
26183
|
-
var cuiApiBaseUrl, path,
|
|
27246
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26184
27247
|
return _ts_generator(this, function(_state) {
|
|
26185
27248
|
switch(_state.label){
|
|
26186
27249
|
case 0:
|
|
@@ -26198,12 +27261,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26198
27261
|
]);
|
|
26199
27262
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26200
27263
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken);
|
|
26201
|
-
params = {
|
|
26202
|
-
headers: getCommonApiHeaders()
|
|
26203
|
-
};
|
|
26204
27264
|
return [
|
|
26205
27265
|
4,
|
|
26206
|
-
_this.httpClient.get(path
|
|
27266
|
+
_this.httpClient.get(path)
|
|
26207
27267
|
];
|
|
26208
27268
|
case 2:
|
|
26209
27269
|
data = _state.sent();
|
|
@@ -26237,7 +27297,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26237
27297
|
value: function getNextTransactionChallenge() {
|
|
26238
27298
|
var _this = this;
|
|
26239
27299
|
return _async_to_generator(function() {
|
|
26240
|
-
var cuiApiBaseUrl, path,
|
|
27300
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26241
27301
|
return _ts_generator(this, function(_state) {
|
|
26242
27302
|
switch(_state.label){
|
|
26243
27303
|
case 0:
|
|
@@ -26254,12 +27314,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26254
27314
|
]);
|
|
26255
27315
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26256
27316
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/next");
|
|
26257
|
-
params = {
|
|
26258
|
-
headers: getCommonApiHeaders()
|
|
26259
|
-
};
|
|
26260
27317
|
return [
|
|
26261
27318
|
4,
|
|
26262
|
-
_this.httpClient.get(path
|
|
27319
|
+
_this.httpClient.get(path)
|
|
26263
27320
|
];
|
|
26264
27321
|
case 2:
|
|
26265
27322
|
data = _state.sent();
|
|
@@ -26312,7 +27369,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26312
27369
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken, "/decision");
|
|
26313
27370
|
params = {
|
|
26314
27371
|
method: "POST",
|
|
26315
|
-
headers: getCommonApiHeaders(),
|
|
26316
27372
|
body: JSON.stringify(body)
|
|
26317
27373
|
};
|
|
26318
27374
|
return [
|
|
@@ -26370,7 +27426,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26370
27426
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/book-transfer");
|
|
26371
27427
|
params = {
|
|
26372
27428
|
method: "POST",
|
|
26373
|
-
headers: getCommonApiHeaders(),
|
|
26374
27429
|
body: JSON.stringify(requestBody)
|
|
26375
27430
|
};
|
|
26376
27431
|
return [
|
|
@@ -26426,7 +27481,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26426
27481
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/origination/transfers");
|
|
26427
27482
|
params = {
|
|
26428
27483
|
method: "POST",
|
|
26429
|
-
headers: getCommonApiHeaders(),
|
|
26430
27484
|
body: JSON.stringify(requestBody)
|
|
26431
27485
|
};
|
|
26432
27486
|
return [
|
|
@@ -26464,7 +27518,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26464
27518
|
var includeYtdInterest = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, includeInterestTiers = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
26465
27519
|
var _this = this;
|
|
26466
27520
|
return _async_to_generator(function() {
|
|
26467
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27521
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
26468
27522
|
return _ts_generator(this, function(_state) {
|
|
26469
27523
|
switch(_state.label){
|
|
26470
27524
|
case 0:
|
|
@@ -26489,12 +27543,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26489
27543
|
include_interest_tier: "".concat(includeInterestTiers)
|
|
26490
27544
|
});
|
|
26491
27545
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/account?").concat(queryParams.toString());
|
|
26492
|
-
params = {
|
|
26493
|
-
headers: getCommonApiHeaders()
|
|
26494
|
-
};
|
|
26495
27546
|
return [
|
|
26496
27547
|
4,
|
|
26497
|
-
_this.httpClient.get(path
|
|
27548
|
+
_this.httpClient.get(path)
|
|
26498
27549
|
];
|
|
26499
27550
|
case 2:
|
|
26500
27551
|
data = _state.sent();
|
|
@@ -26528,7 +27579,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26528
27579
|
value: function getRewardSummaries(startIndex, count) {
|
|
26529
27580
|
var _this = this;
|
|
26530
27581
|
return _async_to_generator(function() {
|
|
26531
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27582
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
26532
27583
|
return _ts_generator(this, function(_state) {
|
|
26533
27584
|
switch(_state.label){
|
|
26534
27585
|
case 0:
|
|
@@ -26552,12 +27603,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26552
27603
|
count: "".concat(count)
|
|
26553
27604
|
} : {}));
|
|
26554
27605
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/rewardsummaries?").concat(queryParams.toString());
|
|
26555
|
-
params = {
|
|
26556
|
-
headers: getCommonApiHeaders()
|
|
26557
|
-
};
|
|
26558
27606
|
return [
|
|
26559
27607
|
4,
|
|
26560
|
-
_this.httpClient.get(path
|
|
27608
|
+
_this.httpClient.get(path)
|
|
26561
27609
|
];
|
|
26562
27610
|
case 2:
|
|
26563
27611
|
data = _state.sent();
|
|
@@ -26624,7 +27672,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26624
27672
|
} : {}));
|
|
26625
27673
|
params = {
|
|
26626
27674
|
method: "POST",
|
|
26627
|
-
headers: getCommonApiHeaders(),
|
|
26628
27675
|
body: JSON.stringify(requestBody)
|
|
26629
27676
|
};
|
|
26630
27677
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/atms/search?").concat(queryParams.toString());
|
|
@@ -26681,7 +27728,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26681
27728
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26682
27729
|
params = {
|
|
26683
27730
|
method: "POST",
|
|
26684
|
-
headers: getCommonApiHeaders(),
|
|
26685
27731
|
body: JSON.stringify(requestBody)
|
|
26686
27732
|
};
|
|
26687
27733
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card/replace");
|
|
@@ -26741,9 +27787,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26741
27787
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26742
27788
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages/").concat(token, "?device_platform=").concat(devicePlatform);
|
|
26743
27789
|
params = {
|
|
26744
|
-
headers:
|
|
27790
|
+
headers: {
|
|
26745
27791
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
26746
|
-
}
|
|
27792
|
+
}
|
|
26747
27793
|
};
|
|
26748
27794
|
return [
|
|
26749
27795
|
4,
|
|
@@ -26802,9 +27848,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26802
27848
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26803
27849
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages?device_platform=").concat(devicePlatform);
|
|
26804
27850
|
params = {
|
|
26805
|
-
headers:
|
|
27851
|
+
headers: {
|
|
26806
27852
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
26807
|
-
}
|
|
27853
|
+
}
|
|
26808
27854
|
};
|
|
26809
27855
|
return [
|
|
26810
27856
|
4,
|
|
@@ -26843,7 +27889,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26843
27889
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
26844
27890
|
var _this = this;
|
|
26845
27891
|
return _async_to_generator(function() {
|
|
26846
|
-
var cuiApiBaseUrl, path,
|
|
27892
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
26847
27893
|
return _ts_generator(this, function(_state) {
|
|
26848
27894
|
switch(_state.label){
|
|
26849
27895
|
case 0:
|
|
@@ -26862,12 +27908,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26862
27908
|
]);
|
|
26863
27909
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26864
27910
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
26865
|
-
params = {
|
|
26866
|
-
headers: getCommonApiHeaders()
|
|
26867
|
-
};
|
|
26868
27911
|
return [
|
|
26869
27912
|
4,
|
|
26870
|
-
_this.httpClient.get(path
|
|
27913
|
+
_this.httpClient.get(path)
|
|
26871
27914
|
];
|
|
26872
27915
|
case 2:
|
|
26873
27916
|
result = _state.sent();
|
|
@@ -26904,7 +27947,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26904
27947
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
26905
27948
|
var _this = this;
|
|
26906
27949
|
return _async_to_generator(function() {
|
|
26907
|
-
var cuiApiBaseUrl, path,
|
|
27950
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
26908
27951
|
return _ts_generator(this, function(_state) {
|
|
26909
27952
|
switch(_state.label){
|
|
26910
27953
|
case 0:
|
|
@@ -26923,12 +27966,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26923
27966
|
]);
|
|
26924
27967
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26925
27968
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers/").concat(token);
|
|
26926
|
-
params = {
|
|
26927
|
-
headers: getCommonApiHeaders()
|
|
26928
|
-
};
|
|
26929
27969
|
return [
|
|
26930
27970
|
4,
|
|
26931
|
-
_this.httpClient.get(path
|
|
27971
|
+
_this.httpClient.get(path)
|
|
26932
27972
|
];
|
|
26933
27973
|
case 2:
|
|
26934
27974
|
result = _state.sent();
|
|
@@ -26965,7 +28005,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26965
28005
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
26966
28006
|
var _this = this;
|
|
26967
28007
|
return _async_to_generator(function() {
|
|
26968
|
-
var queryParams, cuiApiBaseUrl, path,
|
|
28008
|
+
var queryParams, cuiApiBaseUrl, path, result, error2;
|
|
26969
28009
|
return _ts_generator(this, function(_state) {
|
|
26970
28010
|
switch(_state.label){
|
|
26971
28011
|
case 0:
|
|
@@ -26987,12 +28027,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26987
28027
|
});
|
|
26988
28028
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26989
28029
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents?").concat(queryParams.toString());
|
|
26990
|
-
params = {
|
|
26991
|
-
headers: getCommonApiHeaders()
|
|
26992
|
-
};
|
|
26993
28030
|
return [
|
|
26994
28031
|
4,
|
|
26995
|
-
_this.httpClient.get(path
|
|
28032
|
+
_this.httpClient.get(path)
|
|
26996
28033
|
];
|
|
26997
28034
|
case 2:
|
|
26998
28035
|
result = _state.sent();
|
|
@@ -27029,7 +28066,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27029
28066
|
var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
|
|
27030
28067
|
var _this = this;
|
|
27031
28068
|
return _async_to_generator(function() {
|
|
27032
|
-
var cuiApiBaseUrl, path,
|
|
28069
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
27033
28070
|
return _ts_generator(this, function(_state) {
|
|
27034
28071
|
switch(_state.label){
|
|
27035
28072
|
case 0:
|
|
@@ -27047,12 +28084,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27047
28084
|
]);
|
|
27048
28085
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27049
28086
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
|
|
27050
|
-
params = {
|
|
27051
|
-
headers: getCommonApiHeaders()
|
|
27052
|
-
};
|
|
27053
28087
|
return [
|
|
27054
28088
|
4,
|
|
27055
|
-
_this.httpClient.get(path
|
|
28089
|
+
_this.httpClient.get(path)
|
|
27056
28090
|
];
|
|
27057
28091
|
case 2:
|
|
27058
28092
|
result = _state.sent();
|
|
@@ -27106,8 +28140,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27106
28140
|
]);
|
|
27107
28141
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27108
28142
|
params = {
|
|
27109
|
-
method: "PATCH",
|
|
27110
|
-
headers: getCommonApiHeaders(),
|
|
27111
28143
|
body: JSON.stringify(requestBody)
|
|
27112
28144
|
};
|
|
27113
28145
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
@@ -27169,8 +28201,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27169
28201
|
]);
|
|
27170
28202
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27171
28203
|
params = {
|
|
27172
|
-
method: "PATCH",
|
|
27173
|
-
headers: getCommonApiHeaders(),
|
|
27174
28204
|
body: JSON.stringify(requestBody)
|
|
27175
28205
|
};
|
|
27176
28206
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
|
|
@@ -27212,7 +28242,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27212
28242
|
value: function getFaqs() {
|
|
27213
28243
|
var _this = this;
|
|
27214
28244
|
return _async_to_generator(function() {
|
|
27215
|
-
var cuiApiBaseUrl,
|
|
28245
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
27216
28246
|
return _ts_generator(this, function(_state) {
|
|
27217
28247
|
switch(_state.label){
|
|
27218
28248
|
case 0:
|
|
@@ -27228,14 +28258,10 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27228
28258
|
4
|
|
27229
28259
|
]);
|
|
27230
28260
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27231
|
-
params = {
|
|
27232
|
-
method: "GET",
|
|
27233
|
-
headers: getCommonApiHeaders()
|
|
27234
|
-
};
|
|
27235
28261
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/faqs");
|
|
27236
28262
|
return [
|
|
27237
28263
|
4,
|
|
27238
|
-
_this.httpClient.get(path
|
|
28264
|
+
_this.httpClient.get(path)
|
|
27239
28265
|
];
|
|
27240
28266
|
case 2:
|
|
27241
28267
|
data = _state.sent();
|
|
@@ -27285,8 +28311,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27285
28311
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27286
28312
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password");
|
|
27287
28313
|
params = {
|
|
27288
|
-
method: "POST",
|
|
27289
|
-
headers: getCommonApiHeaders(),
|
|
27290
28314
|
body: JSON.stringify({
|
|
27291
28315
|
password: password
|
|
27292
28316
|
})
|
|
@@ -27322,7 +28346,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27322
28346
|
},
|
|
27323
28347
|
{
|
|
27324
28348
|
key: "changePassword",
|
|
27325
|
-
value: function changePassword(requestBody,
|
|
28349
|
+
value: function changePassword(requestBody, programShortCode) {
|
|
27326
28350
|
var _this = this;
|
|
27327
28351
|
return _async_to_generator(function() {
|
|
27328
28352
|
var cuiApiBaseUrl, path, params, error2, message3;
|
|
@@ -27344,11 +28368,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27344
28368
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27345
28369
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password/change");
|
|
27346
28370
|
params = {
|
|
27347
|
-
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
"Authorization": "SSO ".concat(access_token)
|
|
27351
|
-
}),
|
|
28371
|
+
headers: {
|
|
28372
|
+
"X-Marqeta-Program-Short-Code": programShortCode
|
|
28373
|
+
},
|
|
27352
28374
|
body: JSON.stringify(requestBody)
|
|
27353
28375
|
};
|
|
27354
28376
|
return [
|
|
@@ -27394,14 +28416,14 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27394
28416
|
},
|
|
27395
28417
|
{
|
|
27396
28418
|
key: "sendResetPasswordLink",
|
|
27397
|
-
value: function sendResetPasswordLink(
|
|
27398
|
-
var _param_email = param.email, email = _param_email === void 0 ? "" : _param_email, _param_phone = param.phone, phone = _param_phone === void 0 ? "" : _param_phone, programShortCode = param.programShortCode;
|
|
28419
|
+
value: function sendResetPasswordLink(requestBody) {
|
|
27399
28420
|
var _this = this;
|
|
27400
28421
|
return _async_to_generator(function() {
|
|
27401
|
-
var cuiApiBaseUrl, path,
|
|
28422
|
+
var _requestBody_email, email, _requestBody_phone, phone, programShortCode, cuiApiBaseUrl, path, body, params, result, error2;
|
|
27402
28423
|
return _ts_generator(this, function(_state) {
|
|
27403
28424
|
switch(_state.label){
|
|
27404
28425
|
case 0:
|
|
28426
|
+
_requestBody_email = requestBody.email, email = _requestBody_email === void 0 ? "" : _requestBody_email, _requestBody_phone = requestBody.phone, phone = _requestBody_phone === void 0 ? "" : _requestBody_phone, programShortCode = requestBody.programShortCode;
|
|
27405
28427
|
logDebug("Sending WLA reset password link", {
|
|
27406
28428
|
hasEmail: !!email,
|
|
27407
28429
|
hasPhone: !!phone,
|
|
@@ -27418,19 +28440,18 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27418
28440
|
]);
|
|
27419
28441
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27420
28442
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password-reset-link");
|
|
27421
|
-
|
|
28443
|
+
body = {};
|
|
27422
28444
|
if (email && email.trim() !== "") {
|
|
27423
|
-
|
|
28445
|
+
body.email = email;
|
|
27424
28446
|
} else if (phone && phone.trim() !== "") {
|
|
27425
|
-
|
|
28447
|
+
body.phone = phone;
|
|
27426
28448
|
}
|
|
27427
28449
|
params = {
|
|
27428
|
-
|
|
27429
|
-
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
28450
|
+
headers: {
|
|
27430
28451
|
"Content-Type": "application/json",
|
|
27431
28452
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
27432
|
-
}
|
|
27433
|
-
body: JSON.stringify(
|
|
28453
|
+
},
|
|
28454
|
+
body: JSON.stringify(body)
|
|
27434
28455
|
};
|
|
27435
28456
|
return [
|
|
27436
28457
|
4,
|
|
@@ -27488,10 +28509,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27488
28509
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27489
28510
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/resend-verification-email");
|
|
27490
28511
|
params = {
|
|
27491
|
-
|
|
27492
|
-
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
28512
|
+
headers: {
|
|
27493
28513
|
"Content-Type": "application/json"
|
|
27494
|
-
}
|
|
28514
|
+
},
|
|
27495
28515
|
body: JSON.stringify({})
|
|
27496
28516
|
};
|
|
27497
28517
|
return [
|
|
@@ -27546,8 +28566,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27546
28566
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27547
28567
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/verify-user-device");
|
|
27548
28568
|
params = {
|
|
27549
|
-
method: "POST",
|
|
27550
|
-
headers: getCommonApiHeaders(),
|
|
27551
28569
|
body: JSON.stringify(requestBody)
|
|
27552
28570
|
};
|
|
27553
28571
|
return [
|
|
@@ -27584,20 +28602,20 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27584
28602
|
}();
|
|
27585
28603
|
__name(_RestWlaService, "RestWlaService");
|
|
27586
28604
|
var RestWlaService = _RestWlaService;
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
28605
|
+
_ts_decorate83([
|
|
28606
|
+
inject20(ITF_CACHE_SERVICE),
|
|
28607
|
+
_ts_metadata23("design:type", typeof iCacheService === "undefined" ? Object : iCacheService)
|
|
27590
28608
|
], RestWlaService.prototype, "cacheService", void 0);
|
|
27591
|
-
|
|
27592
|
-
|
|
27593
|
-
|
|
28609
|
+
_ts_decorate83([
|
|
28610
|
+
inject20(ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
28611
|
+
_ts_metadata23("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
27594
28612
|
], RestWlaService.prototype, "httpClient", void 0);
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
28613
|
+
_ts_decorate83([
|
|
28614
|
+
inject20(ITF_HTTP_CLIENT),
|
|
28615
|
+
_ts_metadata23("design:type", typeof iHttpClient === "undefined" ? Object : iHttpClient)
|
|
27598
28616
|
], RestWlaService.prototype, "unauthenticatedHttpClient", void 0);
|
|
27599
|
-
RestWlaService =
|
|
27600
|
-
|
|
28617
|
+
RestWlaService = _ts_decorate83([
|
|
28618
|
+
injectable83()
|
|
27601
28619
|
], RestWlaService);
|
|
27602
28620
|
function bookTransfer(payload) {
|
|
27603
28621
|
return _bookTransfer.apply(this, arguments);
|
|
@@ -28983,12 +30001,12 @@ function _getWlaFaqs() {
|
|
|
28983
30001
|
return _getWlaFaqs.apply(this, arguments);
|
|
28984
30002
|
}
|
|
28985
30003
|
__name(getWlaFaqs, "getWlaFaqs");
|
|
28986
|
-
function changeWlaPassword(payload,
|
|
30004
|
+
function changeWlaPassword(payload, programShortCode) {
|
|
28987
30005
|
return _changeWlaPassword.apply(this, arguments);
|
|
28988
30006
|
}
|
|
28989
30007
|
function _changeWlaPassword() {
|
|
28990
30008
|
_changeWlaPassword = // src/wla/base/interactors/changeWlaPassword.ts
|
|
28991
|
-
_async_to_generator(function(payload,
|
|
30009
|
+
_async_to_generator(function(payload, programShortCode) {
|
|
28992
30010
|
var container2, wlaService, error2;
|
|
28993
30011
|
return _ts_generator(this, function(_state) {
|
|
28994
30012
|
switch(_state.label){
|
|
@@ -29009,7 +30027,7 @@ function _changeWlaPassword() {
|
|
|
29009
30027
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
29010
30028
|
return [
|
|
29011
30029
|
4,
|
|
29012
|
-
wlaService.changePassword(payload,
|
|
30030
|
+
wlaService.changePassword(payload, programShortCode)
|
|
29013
30031
|
];
|
|
29014
30032
|
case 2:
|
|
29015
30033
|
_state.sent();
|
|
@@ -29258,8 +30276,8 @@ function _updateDevicePushNotificationsRegistration() {
|
|
|
29258
30276
|
}
|
|
29259
30277
|
__name(updateDevicePushNotificationsRegistration, "updateDevicePushNotificationsRegistration");
|
|
29260
30278
|
// src/wla/ioc/WlaIocModule.ts
|
|
29261
|
-
import { ContainerModule as
|
|
29262
|
-
var WlaIocModule = new
|
|
30279
|
+
import { ContainerModule as ContainerModule35 } from "inversify";
|
|
30280
|
+
var WlaIocModule = new ContainerModule35(function(bind) {
|
|
29263
30281
|
bind(ITF_WLA_SERVICE).to(RestWlaService).inSingletonScope();
|
|
29264
30282
|
});
|
|
29265
30283
|
// src/ioc/container.ts
|
|
@@ -29267,8 +30285,8 @@ import { Container } from "inversify";
|
|
|
29267
30285
|
// src/ioc/loadBaseContainerModules.ts
|
|
29268
30286
|
import "@abraham/reflection";
|
|
29269
30287
|
// src/analytics/ioc/analyticsIOCModule.ts
|
|
29270
|
-
import { ContainerModule as
|
|
29271
|
-
var analyticsIOCModule = new
|
|
30288
|
+
import { ContainerModule as ContainerModule36 } from "inversify";
|
|
30289
|
+
var analyticsIOCModule = new ContainerModule36(function(bind) {
|
|
29272
30290
|
bind(ITF_ANALYTICS_SERVICE).to(GaMeasurementAnalyticsService).inSingletonScope();
|
|
29273
30291
|
bind(ITF_SESSION_SERVICE).to(VanillaSessionService).inSingletonScope();
|
|
29274
30292
|
});
|
|
@@ -29279,6 +30297,7 @@ function loadBaseContainerModules(container2) {
|
|
|
29279
30297
|
container2.load(authIOCModule);
|
|
29280
30298
|
container2.load(cardsIOCModule);
|
|
29281
30299
|
container2.load(commonIOCModule);
|
|
30300
|
+
container2.load(creditIOCModule);
|
|
29282
30301
|
container2.load(envConfigIOCModule);
|
|
29283
30302
|
container2.load(httpClientIOCModule);
|
|
29284
30303
|
container2.load(statementsIOCModule);
|
|
@@ -29302,7 +30321,7 @@ var container = new Container();
|
|
|
29302
30321
|
loadBaseContainerModules(container);
|
|
29303
30322
|
// src/index.ts
|
|
29304
30323
|
setActiveIocContainer(container);
|
|
29305
|
-
export { __name, AccountBalancesEntity, UserEntity, CardEntity, CardStates, CardholderVerificationMethods, ITF_CARD_REPOSITORY, ACTIVE_IOC_CONTAINER, setActiveIocContainer, MqSDKError, getActiveIocContainer, LogLevel, LogLevelString, iLoggerService, ConsoleLoggerService, ITF_LOGGER_SERVICE, logError, logWarn, logInfo, logDebug, setLogLevel, getLogLevel, MockLoggerService, loggingIOCModule, mockLoggingIOCModule, getCardByToken, LocalStorageCacheService, WindowCacheService, ITF_CACHE_SERVICE, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, registerCleanupHandler, cleanupOnUnload, WlaSdkError, iCacheService, iPersistedCacheService, iRegistryService, MockCacheService, MockPersistedCacheService, MockRegistryService, StandardizedError, setAppConfig, getAppConfig, InMemRegistryService, commonIOCModule, mockCommonIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, getCommonApiHeaders, getCardsByUserToken, getShowpanByCardToken, activateCardByTokenOrPan, lockCardByToken, replaceCardByToken, unlockCardByToken, updatePinByCardToken, getPinByCardToken, orderCard, replaceCardV2, iCardRepository, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_LOADING, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CVV_NUMBER, TEST_EXPIRATION, TEST_PIN, TEST_CARD_ACTIONS, ACTIVE_CARD_ACTIONS, TERMINATED_CARD_ACTIONS, SUSPENDED_CARD_ACTIONS, TEST_CARD, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_SUSPENDED_CARD_VIRTUAL, TEST_WEAK_PINS, MockCardRepository, development_exports, localhost_exports, mockMode_exports, production_exports, qa_exports, sandbox_exports, getActiveEnvName, isMockModeEnabled, getEnvConfigValueByName, setActiveEnvName, setMockMode, getLanguageCode, iGetEnvConfigValueByName, MockGetEnvConfigValueByName, envConfigIOCModule, INTR_GET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_ENV_NAME, INTR_IS_MOCK_MODE_ENABLED, INTR_SET_MOCK_MODE, INTR_GET_LANGUAGE_CODE, BrowserMessageService, BaseDpopAuthCredentialService, DpopAuthCredentialService, InMemSsoAccessTokenService, BaseHttpClient, checkHttpStandizedError, ITF_HTTP_CLIENT, AUTH_REFRESH_INTERVAL_ID, CardholderContextEntity, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_SSO_ACCESS_TOKEN_SERVICE, getCachedAuthApiEndpoint, getCachedAuthApiHeadersResolver, getCachedAuthTokenExpiration, setCachedAuthToken, checkAndRefreshAuthToken, createProofToken, generateAuthKeyPair, getAuthKeyPair, getCachedAuthToken, getCardholderContext, getSsoAccessTokenHandler, getUserProgram, getUserTokenHash, setAuthKeyPair, setCachedAuthApiEndpoint, setCachedAuthApiHeadersResolver, setAuthParams, setSsoAccessTokenHandler, iAuthCredentialService, iAuthCredsMessageService, iAuthenticatedHttpClient, iAuthService, iSsoAccessTokenService, MockAuthCredentialService, MockAuthService, M2mAuthenticatedHttpClient, SsoAuthenticatedHttpClient, RestAuthService, INVALID_CUI_AUTH_TOKEN, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, NOT_OK_CUI_AUTH_TOKEN, REFRESHED_CUI_AUTH_TOKEN, VALID_CUI_AUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_OAUTH_TOKEN, VALID_DPOP_TOKEN, NOT_OK_DPOP_TOKEN, MOCK_CUSTOMER_ENDPOINT, VALID_USER_TOKEN_HASH, mswAuthHandlers, authIOCModule, mockAuthIOCModule, cardsIOCModule, mockCardsIOCModule, mswCardsHandlers, AccountHolderGroupEntity, DepositAccountEntity, mockAccountBalances, mockAccountHolderGroup, mockDepositAccountJson, ITF_ACCOUNT_REPOSITORY, getAccountHolderGroup, getAccountBalances, getDepositAccounts, getUserAccounts, iAccountRepository, UserAccountStatus, UserAccountType, TEST_USER_TOKEN, TEST_DEPOSIT_ACCOUNT, TEST_USER_ACCOUNTS, MockAccountRepository, accountsIOCModule, mockAccountsIOCModule, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_CLOSED_CUI_AUTH_TOKEN, mswAccountHandlers, ITF_ANALYTICS_SERVICE, ITF_SESSION_SERVICE, INTR_GET_SESSION_ID, INTR_GET_CLIENT_ID, trackEvent, getClientId, getSessionId, iAnalyticsService, MockAnalyticsService, TEST_CLIENT_ID, TEST_SESSION_ID, MockSessionService, iSessionService, mockAnalyticsIOCModule, SESSION_TTL, VanillaSessionService, GaMeasurementAnalyticsService, mswAnalyticsHandlers, loadEnabledComponentsByShortCode, isComponentEnabled, iComponentsRepository, CUI_ENABLED_SHORT_CODE, REPOSITORY_METHOD_FAILING_SHORT_CODE, LIST_OF_ENABLED_COMPONENTS, MockComponentsRepository, RestComponentsRepository, mswComponentsHandlers, componentsIOCModule, ITF_DISPUTES_REPOSITORY, startDispute, submitAnswerForDisputeQuestion, getAllStepsOfDispute, getStepOfDisputeByStepId, submitDispute, uploadDocumentForDispute, deleteDocumentForDispute, retrieveDocumentForDispute, downloadDocumentForDispute, iDisputesRepository, FormField, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_DISPUTE_ID, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_AMOUNT_STEP_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_STEP1_RESPONSE, MOCK_FRAUD_STEP_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, MOCK_DELETE_DOCUMENTS_RESPONSE, MockDisputesRepository, disputesIOCModule, mockDisputesIOCModule, mswDisputesHandlers, ITF_FEATURE_FLAG_SERVICE, featureFlagIsEnabled, loadFeatureFlags, setAutoEnableDevFlags, iFeatureFlagService, MockFeatureFlagService, FFLAGS_ASYNC_STORAGE_KEY, AsyncStorageFeatureFlagService, FFLAGS_SESSION_STORAGE_KEY, SessionStorageFeatureFlagService, StubFeatureFlagService, featureFlagsIOCModule, mockFeatureFlagIOCModule, KycVerificationRequestIdentifierTypeEnum, CreateUserRequestIdentificationsInnerTypeEnum, CreateUserResponseStatusEnum, INVALID_ACCOUNT_HOLDER, mockCreateUserRequest, mockInvalidCreateUserRequest, mockCreatedUserResponse, getMockUserRequestToCreateResponse, mockUpdateUserResponse, getMockUpdatedUserRequestToCreateResponse, ITF_USERS, getUser, postCreateUser, putUpdateUser, iUsersRepository, VALID_CUI_USER_RESPONSE, MockiUsersRepository, mswUsersHandlers, RestUsersRepository, usersIOCModule, mockUsersIOCModule, LOADING_SSN, DOB_ISSUE_SSN, NAME_ISSUE_SSN, ADDRESS_ISSUE_SSN, OBAC_ISSUE_SSN, BAD_GENERAL_SSN, mockKycVerificationRequest, mockInvalidKycVerificationRequest, mockKycVerificationResponse, ITF_KYC, postVerifyKyc, iKycRepository, mswKycHandlers, RestKycRepository, kycIOCModule, ITF_KYB, postVerifyKyb, initializeOnboarding, iKybRepository, KybEvaluationStatus, CREATE_USERS_BAD_REQUEST2 as CREATE_USERS_BAD_REQUEST, CREATE_USERS_INTERNAL_SERVER_ERROR2 as CREATE_USERS_INTERNAL_SERVER_ERROR, KYB_LOADING_SSN, KYB_DOB_ISSUE_SSN, KYB_NAME_ISSUE_SSN, KYB_ADDRESS_ISSUE_SSN, KYB_OBAC_ISSUE_SSN, KYB_BAD_GENERAL_SSN, mockKybVerificationRequest, mockInvalidKybVerificationRequest, mockInvalidKybEvaluationRequest, mockKybEvaluationResponse, mockKybEvaluationRequest, mockKybVerificationResponse, mswKybHandlers, RestKybRepository, kybIOCModule, mockKybIOCModule, iMoneyMovementRepository, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_OK_RESPONSE, MockMoneyMovementRepository, ITF_MONEY_MOVEMENT, mockMoneyMovementIOCModule, moneyMovementIOCModule, addExternalCard, addExternalCardWithUserToken, initiateTransfer, getExternalCards, removeExternalCard, mockSourceCards, mswSourceCardsHandler, ITF_IDP_SERVICE, requestOtpCode, ITF_WLA_SERVICE, initPasswordAndLogin, loginWithIdAndPassword, refreshAccessToken, verifyOTP, iIdpService, MockIdpService, RestIdpService, idpIOCModule, mockIdpIOCModule, iStatementsRepository, StatementAssetStateEnum, ITF_STATEMENTS, ITF_STATEMENT_ASSET, getStatements, getStatementAsset, statementsIOCModule, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_USER, toDateType, formatDateForApi, generateStatementsDateQueries, handleGetStatements, handleGetStatementAsset, mswStatementsHandlers, DEFAULT_THEME, getActiveTheme, deepMergeThemeObject, ITF_THEME_REPOSITORY, ITF_ICONS_REPOSITORY, setActiveThemeByName, getIconsByName, iThemeRepository, TEST_THEME_NAME, TEST_THEME_OBJECT, MockThemeRepository, iIconsRepository, mockThemesIOCModule, themesIOCModule, iconsIOCModule, iTransactionsRepository, TransactionRecordStatus, TransactionDetailsBannerType, MockTransactionsRepository, ITF_TRANSACTIONS, getTransactions, getTransactionDetails, getUserTransactionsV2, getTransactionByToken, TransactionDetailIconTypeEnum, Direction, transactionsIOCModule, mswTransactionsHandlers, AccountType, InterestTierResponseTypeEnum, TransactionDirection, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, BookTransferResponseStatusEnum, CreateCardUseCase, CardFulfillmentRequestCardFulfillmentReasonEnum, ShippingMethodEnum, ConsentStatus, ConsentScope, ConsentPaymentScope, ConsentPaymentType, ExternalAccountStatus2 as ExternalAccountStatus, FaqParagraphTypeEnum, OfferStatus, OnboardingStatus, Currency, OriginationTransferScheme, TransferStatus, OriginationTransferReasonCode, OriginationDirection, OutageType, PushRegistrationRequestDevicePlatformEnum, ReplaceCardRequestReasonEnum, RevokeConsentStatus, ConsentPermissionType, TransactionStatus, TransactionType, BannerTypeEnum, TransactionDisputeStatus, TransactionDetailResponseIconTypeEnum, ConsentAction, SetPinRequestUsecaseEnum, LoyaltyTier, UserRole, WlaUserStatus, TransactionChallengeDecisionRequestResultEnum, TransactionChallengeDecisionResponseStatusEnum, TransactionChallengeTransactionResponseTransactionTypeEnum, TransactionChallengeTransactionResponseSubTypeEnum, TransactionChallengeResponseCardNetworkEnum, TransactionChallengeResponseStateEnum, TransactionChallengeCancelReason, TransactionChallengeAuthenticationMethod, RestWlaService, bookTransfer, createOriginationTransfer, createWlaCard, createWlaExternalAccount, deleteRegistrationForPushNotifications, getAccountTransactions, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getTransferByToken, getTransfers, getWlaAccountDetails, getWlaCardByToken, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, markAccountActivated, markAccountVerified, markPasswordSetupDone, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, searchAtms, setWlaCardPin, updateConsentStatus, updateExternalAccount, verifyExternalAccount, getWlaFaqs, changeWlaPassword, postWlaSendResetPasswordLink, resendVerificationEmail, verifyUserDevice, getTransactionChallengeByToken, getNextTransactionChallenge, postTransactionChallengeDecision, updateDevicePushNotificationsRegistration, WlaIocModule, loadBaseContainerModules, container }; /*! Bundled license information:
|
|
30324
|
+
export { __name, AccountBalancesEntity, UserEntity, CardEntity, CardStates, CardholderVerificationMethods, ITF_CARD_REPOSITORY, ACTIVE_IOC_CONTAINER, setActiveIocContainer, MqSDKError, getActiveIocContainer, LogLevel, LogLevelString, iLoggerService, ConsoleLoggerService, ITF_LOGGER_SERVICE, logError, logWarn, logInfo, logDebug, setLogLevel, getLogLevel, MockLoggerService, loggingIOCModule, mockLoggingIOCModule, getCardByToken, LocalStorageCacheService, WindowCacheService, ITF_CACHE_SERVICE, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, registerCleanupHandler, cleanupOnUnload, WlaSdkError, iCacheService, iPersistedCacheService, iRegistryService, MockCacheService, MockPersistedCacheService, MockRegistryService, StandardizedError, setAppConfig, getAppConfig, InMemRegistryService, commonIOCModule, mockCommonIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, getCardsByUserToken, getShowpanByCardToken, activateCardByTokenOrPan, lockCardByToken, replaceCardByToken, unlockCardByToken, updatePinByCardToken, getPinByCardToken, orderCard, replaceCardV2, iCardRepository, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_LOADING, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CVV_NUMBER, TEST_EXPIRATION, TEST_PIN, TEST_CARD_ACTIONS, ACTIVE_CARD_ACTIONS, TERMINATED_CARD_ACTIONS, SUSPENDED_CARD_ACTIONS, TEST_CARD, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_SUSPENDED_CARD_VIRTUAL, TEST_WEAK_PINS, MockCardRepository, development_exports, localhost_exports, mockMode_exports, production_exports, qa_exports, sandbox_exports, getActiveEnvName, isMockModeEnabled, getEnvConfigValueByName, setActiveEnvName, setMockMode, getLanguageCode, iGetEnvConfigValueByName, MockGetEnvConfigValueByName, envConfigIOCModule, INTR_GET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_ENV_NAME, INTR_IS_MOCK_MODE_ENABLED, INTR_SET_MOCK_MODE, INTR_GET_LANGUAGE_CODE, BrowserMessageService, BaseDpopAuthCredentialService, DpopAuthCredentialService, InMemSsoAccessTokenService, BaseHttpClient, checkHttpStandizedError, ITF_HTTP_CLIENT, AUTH_REFRESH_INTERVAL_ID, CardholderContextEntity, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_SSO_ACCESS_TOKEN_SERVICE, getCachedAuthApiEndpoint, getCachedAuthApiHeadersResolver, getCachedAuthTokenExpiration, setCachedAuthToken, checkAndRefreshAuthToken, createProofToken, generateAuthKeyPair, getAuthKeyPair, getCachedAuthToken, getCardholderContext, getSsoAccessTokenHandler, getUserProgram, getUserTokenHash, setAuthKeyPair, setCachedAuthApiEndpoint, setCachedAuthApiHeadersResolver, setAuthParams, setSsoAccessTokenHandler, iAuthCredentialService, iAuthCredsMessageService, iAuthenticatedHttpClient, iAuthService, iSsoAccessTokenService, MockAuthCredentialService, MockAuthService, M2mAuthenticatedHttpClient, SsoAuthenticatedHttpClient, RestAuthService, INVALID_CUI_AUTH_TOKEN, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, NOT_OK_CUI_AUTH_TOKEN, REFRESHED_CUI_AUTH_TOKEN, VALID_CUI_AUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_OAUTH_TOKEN, VALID_DPOP_TOKEN, NOT_OK_DPOP_TOKEN, MOCK_CUSTOMER_ENDPOINT, VALID_USER_TOKEN_HASH, mswAuthHandlers, authIOCModule, mockAuthIOCModule, cardsIOCModule, mockCardsIOCModule, mswCardsHandlers, AccountHolderGroupEntity, DepositAccountEntity, mockAccountBalances, mockAccountHolderGroup, mockDepositAccountJson, ITF_ACCOUNT_REPOSITORY, getAccountHolderGroup, getAccountBalances, getDepositAccounts, getUserAccounts, iAccountRepository, UserAccountStatus, UserAccountType, TEST_USER_TOKEN, TEST_DEPOSIT_ACCOUNT, TEST_USER_ACCOUNTS, MockAccountRepository, accountsIOCModule, mockAccountsIOCModule, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_CLOSED_CUI_AUTH_TOKEN, mswAccountHandlers, ITF_ANALYTICS_SERVICE, ITF_SESSION_SERVICE, INTR_GET_SESSION_ID, INTR_GET_CLIENT_ID, trackEvent, getClientId, getSessionId, iAnalyticsService, MockAnalyticsService, TEST_CLIENT_ID, TEST_SESSION_ID, MockSessionService, iSessionService, mockAnalyticsIOCModule, SESSION_TTL, VanillaSessionService, GaMeasurementAnalyticsService, mswAnalyticsHandlers, RestPaymentSchedulesRepository, ExternalAccountSourceTypeEnum, ExternalAccountVerificationStatusEnum, ExternalAccountStatusEnum, ExternalAccountAccountTypeEnum, IdentifierType, mockSchedule, mockPaymentSource, mockExternalAccount, iPaymentSchedulesRepository, iPaymentSourcesRepository, MockPaymentSchedulesRepository, MockPaymentSourcesRepository, RestPaymentSourcesRepository, ITF_PAYMENT_SCHEDULES_REPOSITORY, ITF_PAYMENT_SOURCES_REPOSITORY, getPaymentSchedules, getPaymentSources, creditIOCModule, mockCreditIOCModule, loadEnabledComponentsByShortCode, isComponentEnabled, iComponentsRepository, CUI_ENABLED_SHORT_CODE, REPOSITORY_METHOD_FAILING_SHORT_CODE, LIST_OF_ENABLED_COMPONENTS, MockComponentsRepository, RestComponentsRepository, mswComponentsHandlers, componentsIOCModule, ITF_DISPUTES_REPOSITORY, startDispute, submitAnswerForDisputeQuestion, getAllStepsOfDispute, getStepOfDisputeByStepId, submitDispute, uploadDocumentForDispute, deleteDocumentForDispute, retrieveDocumentForDispute, downloadDocumentForDispute, iDisputesRepository, FormField, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_DISPUTE_ID, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_AMOUNT_STEP_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_STEP1_RESPONSE, MOCK_FRAUD_STEP_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, MOCK_DELETE_DOCUMENTS_RESPONSE, MockDisputesRepository, disputesIOCModule, mockDisputesIOCModule, mswDisputesHandlers, ITF_FEATURE_FLAG_SERVICE, featureFlagIsEnabled, loadFeatureFlags, setAutoEnableDevFlags, iFeatureFlagService, MockFeatureFlagService, FFLAGS_ASYNC_STORAGE_KEY, AsyncStorageFeatureFlagService, FFLAGS_SESSION_STORAGE_KEY, SessionStorageFeatureFlagService, StubFeatureFlagService, featureFlagsIOCModule, mockFeatureFlagIOCModule, KycVerificationRequestIdentifierTypeEnum, CreateUserRequestIdentificationsInnerTypeEnum, CreateUserResponseStatusEnum, INVALID_ACCOUNT_HOLDER, mockCreateUserRequest, mockInvalidCreateUserRequest, mockCreatedUserResponse, getMockUserRequestToCreateResponse, mockUpdateUserResponse, getMockUpdatedUserRequestToCreateResponse, ITF_USERS, getUser, postCreateUser, putUpdateUser, iUsersRepository, VALID_CUI_USER_RESPONSE, MockiUsersRepository, mswUsersHandlers, RestUsersRepository, usersIOCModule, mockUsersIOCModule, LOADING_SSN, DOB_ISSUE_SSN, NAME_ISSUE_SSN, ADDRESS_ISSUE_SSN, OBAC_ISSUE_SSN, BAD_GENERAL_SSN, mockKycVerificationRequest, mockInvalidKycVerificationRequest, mockKycVerificationResponse, ITF_KYC, postVerifyKyc, iKycRepository, mswKycHandlers, RestKycRepository, kycIOCModule, ITF_KYB, postVerifyKyb, initializeOnboarding, iKybRepository, KybEvaluationStatus, CREATE_USERS_BAD_REQUEST2 as CREATE_USERS_BAD_REQUEST, CREATE_USERS_INTERNAL_SERVER_ERROR2 as CREATE_USERS_INTERNAL_SERVER_ERROR, KYB_LOADING_SSN, KYB_DOB_ISSUE_SSN, KYB_NAME_ISSUE_SSN, KYB_ADDRESS_ISSUE_SSN, KYB_OBAC_ISSUE_SSN, KYB_BAD_GENERAL_SSN, mockKybVerificationRequest, mockInvalidKybVerificationRequest, mockInvalidKybEvaluationRequest, mockKybEvaluationResponse, mockKybEvaluationRequest, mockKybVerificationResponse, mswKybHandlers, RestKybRepository, kybIOCModule, mockKybIOCModule, iMoneyMovementRepository, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_OK_RESPONSE, MockMoneyMovementRepository, ITF_MONEY_MOVEMENT, mockMoneyMovementIOCModule, moneyMovementIOCModule, addExternalCard, addExternalCardWithUserToken, initiateTransfer, getExternalCards, removeExternalCard, mockSourceCards, mswSourceCardsHandler, ITF_IDP_SERVICE, requestOtpCode, ITF_WLA_SERVICE, initPasswordAndLogin, loginWithIdAndPassword, refreshAccessToken, verifyOTP, iIdpService, MockIdpService, RestIdpService, idpIOCModule, mockIdpIOCModule, iStatementsRepository, StatementAssetStateEnum, StatementSummaryCycleTypeEnum, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_USER, toDateType, formatDateForApi, generateStatementsDateQueries, handleGetStatements, handleGetStatementAsset, MockStatementsRepository, ITF_STATEMENTS, ITF_STATEMENT_ASSET, getStatements, getStatementAsset, getUserAccountStatementsV2, getUserAccountsStatementDownloadV2, statementsIOCModule, mswStatementsHandlers, DEFAULT_THEME, getActiveTheme, deepMergeThemeObject, ITF_THEME_REPOSITORY, ITF_ICONS_REPOSITORY, setActiveThemeByName, getIconsByName, iThemeRepository, TEST_THEME_NAME, TEST_THEME_OBJECT, MockThemeRepository, iIconsRepository, mockThemesIOCModule, themesIOCModule, iconsIOCModule, iTransactionsRepository, TransactionRecordStatus, TransactionDetailsBannerType, MockTransactionsRepository, ITF_TRANSACTIONS, getTransactions, getTransactionDetails, getUserTransactionsV2, getTransactionByToken, TransactionDetailIconTypeEnum, Direction, transactionsIOCModule, mswTransactionsHandlers, AccountType, InterestTierResponseTypeEnum, TransactionDirection, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, BookTransferResponseStatusEnum, CreateCardUseCase, CardFulfillmentRequestCardFulfillmentReasonEnum, ShippingMethodEnum, ConsentStatus, ConsentScope, ConsentPaymentScope, ConsentPaymentType, ExternalAccountStatus2 as ExternalAccountStatus, FaqParagraphTypeEnum, OfferStatus, OnboardingStatus, Currency, OriginationTransferScheme, TransferStatus, OriginationTransferReasonCode, OriginationDirection, OutageType, PushRegistrationRequestDevicePlatformEnum, ReplaceCardRequestReasonEnum, RevokeConsentStatus, ConsentPermissionType, TransactionStatus, TransactionType, BannerTypeEnum, TransactionDisputeStatus, TransactionDetailResponseIconTypeEnum, ConsentAction, SetPinRequestUsecaseEnum, LoyaltyTier, UserRole, WlaUserStatus, TransactionChallengeDecisionRequestResultEnum, TransactionChallengeDecisionResponseStatusEnum, TransactionChallengeTransactionResponseTransactionTypeEnum, TransactionChallengeTransactionResponseSubTypeEnum, TransactionChallengeResponseCardNetworkEnum, TransactionChallengeResponseStateEnum, TransactionChallengeCancelReason, TransactionChallengeAuthenticationMethod, RestWlaService, bookTransfer, createOriginationTransfer, createWlaCard, createWlaExternalAccount, deleteRegistrationForPushNotifications, getAccountTransactions, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getTransferByToken, getTransfers, getWlaAccountDetails, getWlaCardByToken, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, markAccountActivated, markAccountVerified, markPasswordSetupDone, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, searchAtms, setWlaCardPin, updateConsentStatus, updateExternalAccount, verifyExternalAccount, getWlaFaqs, changeWlaPassword, postWlaSendResetPasswordLink, resendVerificationEmail, verifyUserDevice, getTransactionChallengeByToken, getNextTransactionChallenge, postTransactionChallengeDecision, updateDevicePushNotificationsRegistration, WlaIocModule, loadBaseContainerModules, container }; /*! Bundled license information:
|
|
29306
30325
|
|
|
29307
30326
|
@bundled-es-modules/statuses/index-esm.js:
|
|
29308
30327
|
(*! Bundled license information:
|