@marqeta/ux-toolkit-sdk-javascript 2.30.0 → 2.31.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-SKGXU53U.mjs} +967 -582
- package/dist/{chunk-BPSM5NUO.js → chunk-VTGSYL72.js} +1262 -863
- package/dist/index.d.mts +82 -8
- package/dist/index.d.ts +82 -8
- package/dist/index.js +491 -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 +549 -546
- package/dist/react-native.mjs +2 -2
- package/package.json +1 -1
|
@@ -1821,10 +1821,14 @@ var _StandardizedError = /*#__PURE__*/ function(Error1) {
|
|
|
1821
1821
|
__name(_StandardizedError, "StandardizedError");
|
|
1822
1822
|
var StandardizedError = _StandardizedError;
|
|
1823
1823
|
// src/common/base/interactors/setAppConfig.ts
|
|
1824
|
-
function setAppConfig(
|
|
1824
|
+
function setAppConfig(param) {
|
|
1825
|
+
var appVersion = param.appVersion, deviceId = param.deviceId, clientType = param.clientType, bundleId = param.bundleId, platform = param.platform;
|
|
1825
1826
|
logDebug("Setting app config", {
|
|
1826
1827
|
appVersion: appVersion,
|
|
1827
1828
|
deviceId: deviceId,
|
|
1829
|
+
clientType: clientType,
|
|
1830
|
+
bundleId: bundleId,
|
|
1831
|
+
platform: platform,
|
|
1828
1832
|
interactor: "setAppConfig"
|
|
1829
1833
|
});
|
|
1830
1834
|
try {
|
|
@@ -1838,13 +1842,22 @@ function setAppConfig(appVersion, deviceId) {
|
|
|
1838
1842
|
return;
|
|
1839
1843
|
}
|
|
1840
1844
|
var cacheService = container2.get(ITF_CACHE_SERVICE);
|
|
1841
|
-
cacheService.set("appConfig", JSON.stringify({
|
|
1845
|
+
cacheService.set("appConfig", JSON.stringify(_object_spread({
|
|
1842
1846
|
appVersion: appVersion,
|
|
1843
1847
|
deviceId: deviceId
|
|
1844
|
-
}
|
|
1848
|
+
}, clientType && {
|
|
1849
|
+
clientType: clientType
|
|
1850
|
+
}, bundleId && {
|
|
1851
|
+
bundleId: bundleId
|
|
1852
|
+
}, platform && {
|
|
1853
|
+
platform: platform
|
|
1854
|
+
})));
|
|
1845
1855
|
logInfo("App config set successfully", {
|
|
1846
1856
|
appVersion: appVersion,
|
|
1847
1857
|
deviceId: deviceId,
|
|
1858
|
+
clientType: clientType,
|
|
1859
|
+
bundleId: bundleId,
|
|
1860
|
+
platform: platform,
|
|
1848
1861
|
interactor: "setAppConfig"
|
|
1849
1862
|
});
|
|
1850
1863
|
} catch (error2) {
|
|
@@ -1891,10 +1904,16 @@ function getAppConfig() {
|
|
|
1891
1904
|
return defaultConfig;
|
|
1892
1905
|
}
|
|
1893
1906
|
var parsedConfig = JSON.parse(config);
|
|
1894
|
-
return {
|
|
1907
|
+
return _object_spread({
|
|
1895
1908
|
appVersion: parsedConfig.appVersion || "",
|
|
1896
1909
|
deviceId: parsedConfig.deviceId || ""
|
|
1897
|
-
}
|
|
1910
|
+
}, parsedConfig.clientType && {
|
|
1911
|
+
clientType: parsedConfig.clientType
|
|
1912
|
+
}, parsedConfig.bundleId && {
|
|
1913
|
+
bundleId: parsedConfig.bundleId
|
|
1914
|
+
}, parsedConfig.platform && {
|
|
1915
|
+
platform: parsedConfig.platform
|
|
1916
|
+
});
|
|
1898
1917
|
} catch (e2) {
|
|
1899
1918
|
return defaultConfig;
|
|
1900
1919
|
}
|
|
@@ -2003,22 +2022,6 @@ function convertObjKeysToLowerCamelCase(inputObj) {
|
|
|
2003
2022
|
return newobj;
|
|
2004
2023
|
}
|
|
2005
2024
|
__name(convertObjKeysToLowerCamelCase, "convertObjKeysToLowerCamelCase");
|
|
2006
|
-
// src/common/utils/getCommonApiHeaders.ts
|
|
2007
|
-
function getCommonApiHeaders() {
|
|
2008
|
-
try {
|
|
2009
|
-
var appConfig = getAppConfig();
|
|
2010
|
-
return {
|
|
2011
|
-
"app-version": appConfig.appVersion,
|
|
2012
|
-
"device-id": appConfig.deviceId
|
|
2013
|
-
};
|
|
2014
|
-
} catch (e3) {
|
|
2015
|
-
return {
|
|
2016
|
-
"app-version": "",
|
|
2017
|
-
"device-id": ""
|
|
2018
|
-
};
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
__name(getCommonApiHeaders, "getCommonApiHeaders");
|
|
2022
2025
|
function getCardsByUserToken() {
|
|
2023
2026
|
return _getCardsByUserToken.apply(this, arguments);
|
|
2024
2027
|
}
|
|
@@ -6806,6 +6809,33 @@ M2mAuthenticatedHttpClient = exports.M2mAuthenticatedHttpClient = _ts_decorate30
|
|
|
6806
6809
|
_inversify.injectable.call(void 0)
|
|
6807
6810
|
], M2mAuthenticatedHttpClient);
|
|
6808
6811
|
// src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
|
|
6812
|
+
// src/common/adapters/react-native/getRnCommonApiHeaders.ts
|
|
6813
|
+
function getRnCommonApiHeaders() {
|
|
6814
|
+
try {
|
|
6815
|
+
var appConfig = getAppConfig();
|
|
6816
|
+
var headers = {
|
|
6817
|
+
"app-version": appConfig.appVersion,
|
|
6818
|
+
"device-id": appConfig.deviceId
|
|
6819
|
+
};
|
|
6820
|
+
if (appConfig.clientType) {
|
|
6821
|
+
headers["x-client-type"] = appConfig.clientType;
|
|
6822
|
+
}
|
|
6823
|
+
if (appConfig.bundleId) {
|
|
6824
|
+
headers["x-bundle-id"] = appConfig.bundleId;
|
|
6825
|
+
}
|
|
6826
|
+
if (appConfig.platform) {
|
|
6827
|
+
headers["x-platform"] = appConfig.platform;
|
|
6828
|
+
}
|
|
6829
|
+
return headers;
|
|
6830
|
+
} catch (e3) {
|
|
6831
|
+
return {
|
|
6832
|
+
"app-version": "",
|
|
6833
|
+
"device-id": ""
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
}
|
|
6837
|
+
__name(getRnCommonApiHeaders, "getRnCommonApiHeaders");
|
|
6838
|
+
// src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
|
|
6809
6839
|
function _ts_decorate31(decorators, target, key, desc) {
|
|
6810
6840
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6811
6841
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6998,7 +7028,7 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6998
7028
|
var noContentType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
6999
7029
|
var _this = this;
|
|
7000
7030
|
return _async_to_generator(function() {
|
|
7001
|
-
var accessToken, paramHeaders,
|
|
7031
|
+
var accessToken, paramHeaders, headersMap, rnHeaders;
|
|
7002
7032
|
return _ts_generator(this, function(_state) {
|
|
7003
7033
|
switch(_state.label){
|
|
7004
7034
|
case 0:
|
|
@@ -7015,24 +7045,33 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
7015
7045
|
return _23.headers;
|
|
7016
7046
|
}
|
|
7017
7047
|
]) || {};
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7048
|
+
headersMap = /* @__PURE__ */ new Map();
|
|
7049
|
+
if (_this.isReactNative()) {
|
|
7050
|
+
rnHeaders = getRnCommonApiHeaders();
|
|
7051
|
+
Object.entries(rnHeaders).forEach(function(param) {
|
|
7052
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
|
|
7053
|
+
headersMap.set(key, value);
|
|
7054
|
+
});
|
|
7055
|
+
}
|
|
7056
|
+
if (!noContentType) {
|
|
7057
|
+
headersMap.set("Content-Type", "application/json");
|
|
7058
|
+
}
|
|
7059
|
+
headersMap.set("Authorization", "SSO ".concat(accessToken));
|
|
7060
|
+
if (_instanceof(paramHeaders, Headers)) {
|
|
7061
|
+
paramHeaders.forEach(function(value, key) {
|
|
7062
|
+
headersMap.set(key, value);
|
|
7063
|
+
});
|
|
7064
|
+
} else {
|
|
7065
|
+
Object.entries(paramHeaders).forEach(function(param) {
|
|
7066
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
|
|
7067
|
+
headersMap.set(key, value);
|
|
7068
|
+
});
|
|
7030
7069
|
}
|
|
7031
7070
|
return [
|
|
7032
7071
|
2,
|
|
7033
7072
|
_object_spread_props(_object_spread({}, params), {
|
|
7034
7073
|
method: method,
|
|
7035
|
-
headers: Object.fromEntries(
|
|
7074
|
+
headers: Object.fromEntries(headersMap)
|
|
7036
7075
|
})
|
|
7037
7076
|
];
|
|
7038
7077
|
}
|
|
@@ -7040,6 +7079,35 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
7040
7079
|
})();
|
|
7041
7080
|
}
|
|
7042
7081
|
},
|
|
7082
|
+
{
|
|
7083
|
+
key: "isReactNative",
|
|
7084
|
+
value: function isReactNative() {
|
|
7085
|
+
if (typeof global !== "undefined" && global.HermesInternal) {
|
|
7086
|
+
return true;
|
|
7087
|
+
}
|
|
7088
|
+
if (typeof navigator !== "undefined" && _optionalChain([
|
|
7089
|
+
navigator,
|
|
7090
|
+
'access',
|
|
7091
|
+
function(_24) {
|
|
7092
|
+
return _24.userAgent;
|
|
7093
|
+
},
|
|
7094
|
+
'optionalAccess',
|
|
7095
|
+
function(_25) {
|
|
7096
|
+
return _25.includes;
|
|
7097
|
+
},
|
|
7098
|
+
'call',
|
|
7099
|
+
function(_26) {
|
|
7100
|
+
return _26("ReactNative");
|
|
7101
|
+
}
|
|
7102
|
+
])) {
|
|
7103
|
+
return true;
|
|
7104
|
+
}
|
|
7105
|
+
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
|
7106
|
+
return true;
|
|
7107
|
+
}
|
|
7108
|
+
return false;
|
|
7109
|
+
}
|
|
7110
|
+
},
|
|
7043
7111
|
{
|
|
7044
7112
|
key: "getAccessToken",
|
|
7045
7113
|
value: function getAccessToken() {
|
|
@@ -7312,8 +7380,8 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7312
7380
|
convertedData = convertObjKeysToLowerCamelCase(convertObjKeysToCamelCase(_optionalChain([
|
|
7313
7381
|
data,
|
|
7314
7382
|
'optionalAccess',
|
|
7315
|
-
function(
|
|
7316
|
-
return
|
|
7383
|
+
function(_27) {
|
|
7384
|
+
return _27.data;
|
|
7317
7385
|
}
|
|
7318
7386
|
])));
|
|
7319
7387
|
cardholderContext = new CardholderContextEntity(convertedData);
|
|
@@ -7974,12 +8042,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
7974
8042
|
if (_this.isUsed && _optionalChain([
|
|
7975
8043
|
_this,
|
|
7976
8044
|
'access',
|
|
7977
|
-
function(
|
|
7978
|
-
return
|
|
8045
|
+
function(_28) {
|
|
8046
|
+
return _28.options;
|
|
7979
8047
|
},
|
|
7980
8048
|
'optionalAccess',
|
|
7981
|
-
function(
|
|
7982
|
-
return
|
|
8049
|
+
function(_29) {
|
|
8050
|
+
return _29.once;
|
|
7983
8051
|
}
|
|
7984
8052
|
])) {
|
|
7985
8053
|
return [
|
|
@@ -8011,12 +8079,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
8011
8079
|
if (_this.isUsed && _optionalChain([
|
|
8012
8080
|
_this,
|
|
8013
8081
|
'access',
|
|
8014
|
-
function(
|
|
8015
|
-
return
|
|
8082
|
+
function(_30) {
|
|
8083
|
+
return _30.options;
|
|
8016
8084
|
},
|
|
8017
8085
|
'optionalAccess',
|
|
8018
|
-
function(
|
|
8019
|
-
return
|
|
8086
|
+
function(_31) {
|
|
8087
|
+
return _31.once;
|
|
8020
8088
|
}
|
|
8021
8089
|
])) {
|
|
8022
8090
|
return [
|
|
@@ -8115,12 +8183,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
8115
8183
|
_this.resolverGeneratorResult = _optionalChain([
|
|
8116
8184
|
nextResponse,
|
|
8117
8185
|
'optionalAccess',
|
|
8118
|
-
function(
|
|
8119
|
-
return
|
|
8186
|
+
function(_32) {
|
|
8187
|
+
return _32.clone;
|
|
8120
8188
|
},
|
|
8121
8189
|
'call',
|
|
8122
|
-
function(
|
|
8123
|
-
return
|
|
8190
|
+
function(_33) {
|
|
8191
|
+
return _33();
|
|
8124
8192
|
}
|
|
8125
8193
|
]);
|
|
8126
8194
|
}
|
|
@@ -9576,20 +9644,20 @@ function getAllRequestCookies(request) {
|
|
|
9576
9644
|
var cookiesFromStore = Array.from(_optionalChain([
|
|
9577
9645
|
store,
|
|
9578
9646
|
'access',
|
|
9579
|
-
function(
|
|
9580
|
-
return
|
|
9647
|
+
function(_34) {
|
|
9648
|
+
return _34.get;
|
|
9581
9649
|
},
|
|
9582
9650
|
'call',
|
|
9583
|
-
function(
|
|
9584
|
-
return
|
|
9651
|
+
function(_35) {
|
|
9652
|
+
return _35(request);
|
|
9585
9653
|
},
|
|
9586
9654
|
'optionalAccess',
|
|
9587
|
-
function(
|
|
9588
|
-
return
|
|
9655
|
+
function(_36) {
|
|
9656
|
+
return _36.entries;
|
|
9589
9657
|
},
|
|
9590
9658
|
'call',
|
|
9591
|
-
function(
|
|
9592
|
-
return
|
|
9659
|
+
function(_37) {
|
|
9660
|
+
return _37();
|
|
9593
9661
|
}
|
|
9594
9662
|
])).reduce(function(cookies, param) {
|
|
9595
9663
|
var _param = _sliced_to_array(param, 2), name = _param[0], value = _param[1].value;
|
|
@@ -9680,12 +9748,12 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
|
|
|
9680
9748
|
match2 = matchRequestUrl(url, _this.info.path, _optionalChain([
|
|
9681
9749
|
args,
|
|
9682
9750
|
'access',
|
|
9683
|
-
function(
|
|
9684
|
-
return
|
|
9751
|
+
function(_38) {
|
|
9752
|
+
return _38.resolutionContext;
|
|
9685
9753
|
},
|
|
9686
9754
|
'optionalAccess',
|
|
9687
|
-
function(
|
|
9688
|
-
return
|
|
9755
|
+
function(_39) {
|
|
9756
|
+
return _39.baseUrl;
|
|
9689
9757
|
}
|
|
9690
9758
|
]));
|
|
9691
9759
|
cookies = getAllRequestCookies(args.request);
|
|
@@ -9721,16 +9789,16 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
|
|
|
9721
9789
|
params: _optionalChain([
|
|
9722
9790
|
args,
|
|
9723
9791
|
'access',
|
|
9724
|
-
function(
|
|
9725
|
-
return
|
|
9792
|
+
function(_40) {
|
|
9793
|
+
return _40.parsedResult;
|
|
9726
9794
|
},
|
|
9727
9795
|
'access',
|
|
9728
|
-
function(
|
|
9729
|
-
return
|
|
9796
|
+
function(_41) {
|
|
9797
|
+
return _41.match;
|
|
9730
9798
|
},
|
|
9731
9799
|
'optionalAccess',
|
|
9732
|
-
function(
|
|
9733
|
-
return
|
|
9800
|
+
function(_42) {
|
|
9801
|
+
return _42.params;
|
|
9734
9802
|
}
|
|
9735
9803
|
]) || {},
|
|
9736
9804
|
cookies: args.parsedResult.cookies
|
|
@@ -10123,12 +10191,12 @@ var Headers2 = (_a6 = /*#__PURE__*/ function() {
|
|
|
10123
10191
|
].includes(_optionalChain([
|
|
10124
10192
|
init,
|
|
10125
10193
|
'optionalAccess',
|
|
10126
|
-
function(
|
|
10127
|
-
return
|
|
10194
|
+
function(_43) {
|
|
10195
|
+
return _43.constructor;
|
|
10128
10196
|
},
|
|
10129
10197
|
'access',
|
|
10130
|
-
function(
|
|
10131
|
-
return
|
|
10198
|
+
function(_44) {
|
|
10199
|
+
return _44.name;
|
|
10132
10200
|
}
|
|
10133
10201
|
])) || _instanceof(init, _a6) || typeof globalThis.Headers !== "undefined" && _instanceof(init, globalThis.Headers)) {
|
|
10134
10202
|
var initialHeaders = init;
|
|
@@ -10567,22 +10635,22 @@ function normalizeResponseInit() {
|
|
|
10567
10635
|
var status = _optionalChain([
|
|
10568
10636
|
init,
|
|
10569
10637
|
'optionalAccess',
|
|
10570
|
-
function(
|
|
10571
|
-
return
|
|
10638
|
+
function(_45) {
|
|
10639
|
+
return _45.status;
|
|
10572
10640
|
}
|
|
10573
10641
|
]) || 200;
|
|
10574
10642
|
var statusText = _optionalChain([
|
|
10575
10643
|
init,
|
|
10576
10644
|
'optionalAccess',
|
|
10577
|
-
function(
|
|
10578
|
-
return
|
|
10645
|
+
function(_46) {
|
|
10646
|
+
return _46.statusText;
|
|
10579
10647
|
}
|
|
10580
10648
|
]) || message2[status] || "";
|
|
10581
10649
|
var headers = new Headers(_optionalChain([
|
|
10582
10650
|
init,
|
|
10583
10651
|
'optionalAccess',
|
|
10584
|
-
function(
|
|
10585
|
-
return
|
|
10652
|
+
function(_47) {
|
|
10653
|
+
return _47.headers;
|
|
10586
10654
|
}
|
|
10587
10655
|
]));
|
|
10588
10656
|
return _object_spread_props(_object_spread({}, init), {
|
|
@@ -11520,10 +11588,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11520
11588
|
body: JSON.stringify({
|
|
11521
11589
|
card_token: cardToken,
|
|
11522
11590
|
cardholder_verification_method: cardholderVerificationMethod
|
|
11523
|
-
})
|
|
11524
|
-
headers: {
|
|
11525
|
-
"Content-Type": "application/json"
|
|
11526
|
-
}
|
|
11591
|
+
})
|
|
11527
11592
|
};
|
|
11528
11593
|
return [
|
|
11529
11594
|
4,
|
|
@@ -11585,10 +11650,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11585
11650
|
}
|
|
11586
11651
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards").concat(queryParams.toString() ? "?".concat(queryParams.toString()) : "");
|
|
11587
11652
|
params = {
|
|
11588
|
-
body: JSON.stringify(orderRequest.request)
|
|
11589
|
-
headers: _object_spread({
|
|
11590
|
-
"Content-Type": "application/json"
|
|
11591
|
-
}, getCommonApiHeaders())
|
|
11653
|
+
body: JSON.stringify(orderRequest.request)
|
|
11592
11654
|
};
|
|
11593
11655
|
return [
|
|
11594
11656
|
4,
|
|
@@ -11656,10 +11718,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11656
11718
|
}
|
|
11657
11719
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards/replacements?").concat(queryParams.toString());
|
|
11658
11720
|
params = {
|
|
11659
|
-
body: JSON.stringify(replaceRequest.request)
|
|
11660
|
-
headers: _object_spread({
|
|
11661
|
-
"Content-Type": "application/json"
|
|
11662
|
-
}, getCommonApiHeaders())
|
|
11721
|
+
body: JSON.stringify(replaceRequest.request)
|
|
11663
11722
|
};
|
|
11664
11723
|
return [
|
|
11665
11724
|
4,
|
|
@@ -13022,7 +13081,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13022
13081
|
value: function getUserAccounts() {
|
|
13023
13082
|
var _this = this;
|
|
13024
13083
|
return _async_to_generator(function() {
|
|
13025
|
-
var cuiApiBaseUrl, path,
|
|
13084
|
+
var cuiApiBaseUrl, path, data, err;
|
|
13026
13085
|
return _ts_generator(this, function(_state) {
|
|
13027
13086
|
switch(_state.label){
|
|
13028
13087
|
case 0:
|
|
@@ -13039,13 +13098,9 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13039
13098
|
]);
|
|
13040
13099
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
13041
13100
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts");
|
|
13042
|
-
params = {
|
|
13043
|
-
method: "GET",
|
|
13044
|
-
headers: getCommonApiHeaders()
|
|
13045
|
-
};
|
|
13046
13101
|
return [
|
|
13047
13102
|
4,
|
|
13048
|
-
_this.httpClient.get(path
|
|
13103
|
+
_this.httpClient.get(path)
|
|
13049
13104
|
];
|
|
13050
13105
|
case 2:
|
|
13051
13106
|
data = _state.sent();
|
|
@@ -13138,12 +13193,12 @@ var mswAccountHandlers = [
|
|
|
13138
13193
|
_$_optionalChain = _sliced_to_array(_optionalChain([
|
|
13139
13194
|
authorization,
|
|
13140
13195
|
'optionalAccess',
|
|
13141
|
-
function(
|
|
13142
|
-
return
|
|
13196
|
+
function(_48) {
|
|
13197
|
+
return _48.split;
|
|
13143
13198
|
},
|
|
13144
13199
|
'call',
|
|
13145
|
-
function(
|
|
13146
|
-
return
|
|
13200
|
+
function(_49) {
|
|
13201
|
+
return _49(" ");
|
|
13147
13202
|
}
|
|
13148
13203
|
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
13149
13204
|
userStatus = "ACTIVE";
|
|
@@ -14334,12 +14389,12 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
14334
14389
|
componentCount: _optionalChain([
|
|
14335
14390
|
data,
|
|
14336
14391
|
'access',
|
|
14337
|
-
function(
|
|
14338
|
-
return
|
|
14392
|
+
function(_50) {
|
|
14393
|
+
return _50.components;
|
|
14339
14394
|
},
|
|
14340
14395
|
'optionalAccess',
|
|
14341
|
-
function(
|
|
14342
|
-
return
|
|
14396
|
+
function(_51) {
|
|
14397
|
+
return _51.length;
|
|
14343
14398
|
}
|
|
14344
14399
|
]) || 0,
|
|
14345
14400
|
adapter: "RestComponentsRepository"
|
|
@@ -14865,16 +14920,16 @@ function _retrieveDocumentForDispute() {
|
|
|
14865
14920
|
documentCount: _optionalChain([
|
|
14866
14921
|
result,
|
|
14867
14922
|
'access',
|
|
14868
|
-
function(
|
|
14869
|
-
return
|
|
14923
|
+
function(_52) {
|
|
14924
|
+
return _52.data;
|
|
14870
14925
|
},
|
|
14871
14926
|
'optionalAccess',
|
|
14872
|
-
function(
|
|
14873
|
-
return
|
|
14927
|
+
function(_53) {
|
|
14928
|
+
return _53.documents;
|
|
14874
14929
|
},
|
|
14875
14930
|
'optionalAccess',
|
|
14876
|
-
function(
|
|
14877
|
-
return
|
|
14931
|
+
function(_54) {
|
|
14932
|
+
return _54.length;
|
|
14878
14933
|
}
|
|
14879
14934
|
]) || 0,
|
|
14880
14935
|
interactor: "retrieveDocumentForDispute"
|
|
@@ -15730,12 +15785,12 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
15730
15785
|
stepCount: _optionalChain([
|
|
15731
15786
|
result,
|
|
15732
15787
|
'access',
|
|
15733
|
-
function(
|
|
15734
|
-
return
|
|
15788
|
+
function(_55) {
|
|
15789
|
+
return _55.steps;
|
|
15735
15790
|
},
|
|
15736
15791
|
'optionalAccess',
|
|
15737
|
-
function(
|
|
15738
|
-
return
|
|
15792
|
+
function(_56) {
|
|
15793
|
+
return _56.length;
|
|
15739
15794
|
}
|
|
15740
15795
|
]),
|
|
15741
15796
|
adapter: "RestDisputeRepository"
|
|
@@ -16056,16 +16111,16 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16056
16111
|
documentCount: _optionalChain([
|
|
16057
16112
|
result,
|
|
16058
16113
|
'access',
|
|
16059
|
-
function(
|
|
16060
|
-
return
|
|
16114
|
+
function(_57) {
|
|
16115
|
+
return _57.data;
|
|
16061
16116
|
},
|
|
16062
16117
|
'optionalAccess',
|
|
16063
|
-
function(
|
|
16064
|
-
return
|
|
16118
|
+
function(_58) {
|
|
16119
|
+
return _58.documents;
|
|
16065
16120
|
},
|
|
16066
16121
|
'optionalAccess',
|
|
16067
|
-
function(
|
|
16068
|
-
return
|
|
16122
|
+
function(_59) {
|
|
16123
|
+
return _59.length;
|
|
16069
16124
|
}
|
|
16070
16125
|
]),
|
|
16071
16126
|
adapter: "RestDisputeRepository"
|
|
@@ -16230,65 +16285,65 @@ var mswDisputesHandlers = [
|
|
|
16230
16285
|
var initalQnAns = _optionalChain([
|
|
16231
16286
|
CUR_STEP1_RESPONSE,
|
|
16232
16287
|
'access',
|
|
16233
|
-
function(
|
|
16234
|
-
return
|
|
16288
|
+
function(_60) {
|
|
16289
|
+
return _60.defaultValues;
|
|
16235
16290
|
},
|
|
16236
16291
|
'optionalAccess',
|
|
16237
|
-
function(
|
|
16238
|
-
return
|
|
16292
|
+
function(_61) {
|
|
16293
|
+
return _61["Q-INITIAL-QUESTION"];
|
|
16239
16294
|
}
|
|
16240
16295
|
]);
|
|
16241
16296
|
if (initalQnAns) {
|
|
16242
16297
|
var initalQnReadableAns = _optionalChain([
|
|
16243
16298
|
CUR_STEP1_RESPONSE,
|
|
16244
16299
|
'access',
|
|
16245
|
-
function(
|
|
16246
|
-
return
|
|
16300
|
+
function(_62) {
|
|
16301
|
+
return _62.schema;
|
|
16247
16302
|
},
|
|
16248
16303
|
'optionalAccess',
|
|
16249
|
-
function(
|
|
16250
|
-
return
|
|
16304
|
+
function(_63) {
|
|
16305
|
+
return _63.properties;
|
|
16251
16306
|
},
|
|
16252
16307
|
'optionalAccess',
|
|
16253
|
-
function(
|
|
16254
|
-
return
|
|
16308
|
+
function(_64) {
|
|
16309
|
+
return _64["Q-INITIAL-QUESTION"];
|
|
16255
16310
|
},
|
|
16256
16311
|
'optionalAccess',
|
|
16257
|
-
function(
|
|
16258
|
-
return
|
|
16312
|
+
function(_65) {
|
|
16313
|
+
return _65.oneOf;
|
|
16259
16314
|
},
|
|
16260
16315
|
'optionalAccess',
|
|
16261
|
-
function(
|
|
16262
|
-
return
|
|
16316
|
+
function(_66) {
|
|
16317
|
+
return _66.find;
|
|
16263
16318
|
},
|
|
16264
16319
|
'call',
|
|
16265
|
-
function(
|
|
16266
|
-
return
|
|
16320
|
+
function(_67) {
|
|
16321
|
+
return _67(function(val) {
|
|
16267
16322
|
return val.const === initalQnAns;
|
|
16268
16323
|
});
|
|
16269
16324
|
},
|
|
16270
16325
|
'optionalAccess',
|
|
16271
|
-
function(
|
|
16272
|
-
return
|
|
16326
|
+
function(_68) {
|
|
16327
|
+
return _68.title;
|
|
16273
16328
|
}
|
|
16274
16329
|
]);
|
|
16275
16330
|
var initialQuestion = _optionalChain([
|
|
16276
16331
|
CUR_STEP1_RESPONSE,
|
|
16277
16332
|
'access',
|
|
16278
|
-
function(
|
|
16279
|
-
return
|
|
16333
|
+
function(_69) {
|
|
16334
|
+
return _69.schema;
|
|
16280
16335
|
},
|
|
16281
16336
|
'optionalAccess',
|
|
16282
|
-
function(
|
|
16283
|
-
return
|
|
16337
|
+
function(_70) {
|
|
16338
|
+
return _70.properties;
|
|
16284
16339
|
},
|
|
16285
16340
|
'optionalAccess',
|
|
16286
|
-
function(
|
|
16287
|
-
return
|
|
16341
|
+
function(_71) {
|
|
16342
|
+
return _71["Q-INITIAL-QUESTION"];
|
|
16288
16343
|
},
|
|
16289
16344
|
'optionalAccess',
|
|
16290
|
-
function(
|
|
16291
|
-
return
|
|
16345
|
+
function(_72) {
|
|
16346
|
+
return _72.title;
|
|
16292
16347
|
}
|
|
16293
16348
|
]);
|
|
16294
16349
|
if (initialQuestion && initalQnReadableAns) {
|
|
@@ -16304,64 +16359,64 @@ var mswDisputesHandlers = [
|
|
|
16304
16359
|
var fraudQnAns = _optionalChain([
|
|
16305
16360
|
CUR_FRAUD_STEP_RESPONSE,
|
|
16306
16361
|
'access',
|
|
16307
|
-
function(
|
|
16308
|
-
return
|
|
16362
|
+
function(_73) {
|
|
16363
|
+
return _73.defaultValues;
|
|
16309
16364
|
},
|
|
16310
16365
|
'optionalAccess',
|
|
16311
|
-
function(
|
|
16312
|
-
return
|
|
16366
|
+
function(_74) {
|
|
16367
|
+
return _74["Q-card-with-user"];
|
|
16313
16368
|
}
|
|
16314
16369
|
]);
|
|
16315
16370
|
var fraudQnReadableAns = _optionalChain([
|
|
16316
16371
|
CUR_FRAUD_STEP_RESPONSE,
|
|
16317
16372
|
'access',
|
|
16318
|
-
function(
|
|
16319
|
-
return
|
|
16373
|
+
function(_75) {
|
|
16374
|
+
return _75.schema;
|
|
16320
16375
|
},
|
|
16321
16376
|
'optionalAccess',
|
|
16322
|
-
function(
|
|
16323
|
-
return
|
|
16377
|
+
function(_76) {
|
|
16378
|
+
return _76.properties;
|
|
16324
16379
|
},
|
|
16325
16380
|
'optionalAccess',
|
|
16326
|
-
function(
|
|
16327
|
-
return
|
|
16381
|
+
function(_77) {
|
|
16382
|
+
return _77["Q-card-with-user"];
|
|
16328
16383
|
},
|
|
16329
16384
|
'optionalAccess',
|
|
16330
|
-
function(
|
|
16331
|
-
return
|
|
16385
|
+
function(_78) {
|
|
16386
|
+
return _78.oneOf;
|
|
16332
16387
|
},
|
|
16333
16388
|
'optionalAccess',
|
|
16334
|
-
function(
|
|
16335
|
-
return
|
|
16389
|
+
function(_79) {
|
|
16390
|
+
return _79.find;
|
|
16336
16391
|
},
|
|
16337
16392
|
'call',
|
|
16338
|
-
function(
|
|
16339
|
-
return
|
|
16393
|
+
function(_80) {
|
|
16394
|
+
return _80(function(val) {
|
|
16340
16395
|
return val.const === fraudQnAns;
|
|
16341
16396
|
});
|
|
16342
16397
|
},
|
|
16343
16398
|
'optionalAccess',
|
|
16344
|
-
function(
|
|
16345
|
-
return
|
|
16399
|
+
function(_81) {
|
|
16400
|
+
return _81.title;
|
|
16346
16401
|
}
|
|
16347
16402
|
]);
|
|
16348
16403
|
var fraudQuestion = _optionalChain([
|
|
16349
16404
|
CUR_FRAUD_STEP_RESPONSE,
|
|
16350
16405
|
'access',
|
|
16351
|
-
function(
|
|
16352
|
-
return
|
|
16406
|
+
function(_82) {
|
|
16407
|
+
return _82.schema;
|
|
16353
16408
|
},
|
|
16354
16409
|
'optionalAccess',
|
|
16355
|
-
function(
|
|
16356
|
-
return
|
|
16410
|
+
function(_83) {
|
|
16411
|
+
return _83.properties;
|
|
16357
16412
|
},
|
|
16358
16413
|
'optionalAccess',
|
|
16359
|
-
function(
|
|
16360
|
-
return
|
|
16414
|
+
function(_84) {
|
|
16415
|
+
return _84["Q-card-with-user"];
|
|
16361
16416
|
},
|
|
16362
16417
|
'optionalAccess',
|
|
16363
|
-
function(
|
|
16364
|
-
return
|
|
16418
|
+
function(_85) {
|
|
16419
|
+
return _85.title;
|
|
16365
16420
|
}
|
|
16366
16421
|
]);
|
|
16367
16422
|
if (fraudQnReadableAns && fraudQuestion) answersForReview.push({
|
|
@@ -16374,64 +16429,64 @@ var mswDisputesHandlers = [
|
|
|
16374
16429
|
var recognizedQnAns = _optionalChain([
|
|
16375
16430
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
16376
16431
|
'access',
|
|
16377
|
-
function(
|
|
16378
|
-
return
|
|
16432
|
+
function(_86) {
|
|
16433
|
+
return _86.defaultValues;
|
|
16379
16434
|
},
|
|
16380
16435
|
'optionalAccess',
|
|
16381
|
-
function(
|
|
16382
|
-
return
|
|
16436
|
+
function(_87) {
|
|
16437
|
+
return _87.Q2;
|
|
16383
16438
|
}
|
|
16384
16439
|
]);
|
|
16385
16440
|
var recognizedQnReadableAns = _optionalChain([
|
|
16386
16441
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
16387
16442
|
'access',
|
|
16388
|
-
function(
|
|
16389
|
-
return
|
|
16443
|
+
function(_88) {
|
|
16444
|
+
return _88.schema;
|
|
16390
16445
|
},
|
|
16391
16446
|
'optionalAccess',
|
|
16392
|
-
function(
|
|
16393
|
-
return
|
|
16447
|
+
function(_89) {
|
|
16448
|
+
return _89.properties;
|
|
16394
16449
|
},
|
|
16395
16450
|
'optionalAccess',
|
|
16396
|
-
function(
|
|
16397
|
-
return
|
|
16451
|
+
function(_90) {
|
|
16452
|
+
return _90.Q2;
|
|
16398
16453
|
},
|
|
16399
16454
|
'optionalAccess',
|
|
16400
|
-
function(
|
|
16401
|
-
return
|
|
16455
|
+
function(_91) {
|
|
16456
|
+
return _91.oneOf;
|
|
16402
16457
|
},
|
|
16403
16458
|
'optionalAccess',
|
|
16404
|
-
function(
|
|
16405
|
-
return
|
|
16459
|
+
function(_92) {
|
|
16460
|
+
return _92.find;
|
|
16406
16461
|
},
|
|
16407
16462
|
'call',
|
|
16408
|
-
function(
|
|
16409
|
-
return
|
|
16463
|
+
function(_93) {
|
|
16464
|
+
return _93(function(val) {
|
|
16410
16465
|
return val.const === recognizedQnAns;
|
|
16411
16466
|
});
|
|
16412
16467
|
},
|
|
16413
16468
|
'optionalAccess',
|
|
16414
|
-
function(
|
|
16415
|
-
return
|
|
16469
|
+
function(_94) {
|
|
16470
|
+
return _94.title;
|
|
16416
16471
|
}
|
|
16417
16472
|
]);
|
|
16418
16473
|
var recognizedQuestion = _optionalChain([
|
|
16419
16474
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
16420
16475
|
'access',
|
|
16421
|
-
function(
|
|
16422
|
-
return
|
|
16476
|
+
function(_95) {
|
|
16477
|
+
return _95.schema;
|
|
16423
16478
|
},
|
|
16424
16479
|
'optionalAccess',
|
|
16425
|
-
function(
|
|
16426
|
-
return
|
|
16480
|
+
function(_96) {
|
|
16481
|
+
return _96.properties;
|
|
16427
16482
|
},
|
|
16428
16483
|
'optionalAccess',
|
|
16429
|
-
function(
|
|
16430
|
-
return
|
|
16484
|
+
function(_97) {
|
|
16485
|
+
return _97.Q2;
|
|
16431
16486
|
},
|
|
16432
16487
|
'optionalAccess',
|
|
16433
|
-
function(
|
|
16434
|
-
return
|
|
16488
|
+
function(_98) {
|
|
16489
|
+
return _98.title;
|
|
16435
16490
|
}
|
|
16436
16491
|
]);
|
|
16437
16492
|
if (recognizedQnReadableAns && recognizedQuestion) {
|
|
@@ -16447,65 +16502,65 @@ var mswDisputesHandlers = [
|
|
|
16447
16502
|
var amountQnAns = _optionalChain([
|
|
16448
16503
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16449
16504
|
'access',
|
|
16450
|
-
function(
|
|
16451
|
-
return
|
|
16505
|
+
function(_99) {
|
|
16506
|
+
return _99.defaultValues;
|
|
16452
16507
|
},
|
|
16453
16508
|
'optionalAccess',
|
|
16454
|
-
function(
|
|
16455
|
-
return
|
|
16509
|
+
function(_100) {
|
|
16510
|
+
return _100.Q13;
|
|
16456
16511
|
}
|
|
16457
16512
|
]);
|
|
16458
16513
|
if (amountQnAns) {
|
|
16459
16514
|
var amountQnReadableAns = _optionalChain([
|
|
16460
16515
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16461
16516
|
'access',
|
|
16462
|
-
function(
|
|
16463
|
-
return
|
|
16517
|
+
function(_101) {
|
|
16518
|
+
return _101.schema;
|
|
16464
16519
|
},
|
|
16465
16520
|
'optionalAccess',
|
|
16466
|
-
function(
|
|
16467
|
-
return
|
|
16521
|
+
function(_102) {
|
|
16522
|
+
return _102.properties;
|
|
16468
16523
|
},
|
|
16469
16524
|
'optionalAccess',
|
|
16470
|
-
function(
|
|
16471
|
-
return
|
|
16525
|
+
function(_103) {
|
|
16526
|
+
return _103.Q13;
|
|
16472
16527
|
},
|
|
16473
16528
|
'optionalAccess',
|
|
16474
|
-
function(
|
|
16475
|
-
return
|
|
16529
|
+
function(_104) {
|
|
16530
|
+
return _104.oneOf;
|
|
16476
16531
|
},
|
|
16477
16532
|
'optionalAccess',
|
|
16478
|
-
function(
|
|
16479
|
-
return
|
|
16533
|
+
function(_105) {
|
|
16534
|
+
return _105.find;
|
|
16480
16535
|
},
|
|
16481
16536
|
'call',
|
|
16482
|
-
function(
|
|
16483
|
-
return
|
|
16537
|
+
function(_106) {
|
|
16538
|
+
return _106(function(val) {
|
|
16484
16539
|
return val.const === amountQnAns;
|
|
16485
16540
|
});
|
|
16486
16541
|
},
|
|
16487
16542
|
'optionalAccess',
|
|
16488
|
-
function(
|
|
16489
|
-
return
|
|
16543
|
+
function(_107) {
|
|
16544
|
+
return _107.title;
|
|
16490
16545
|
}
|
|
16491
16546
|
]);
|
|
16492
16547
|
var amountQuestion = _optionalChain([
|
|
16493
16548
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16494
16549
|
'access',
|
|
16495
|
-
function(
|
|
16496
|
-
return
|
|
16550
|
+
function(_108) {
|
|
16551
|
+
return _108.schema;
|
|
16497
16552
|
},
|
|
16498
16553
|
'optionalAccess',
|
|
16499
|
-
function(
|
|
16500
|
-
return
|
|
16554
|
+
function(_109) {
|
|
16555
|
+
return _109.properties;
|
|
16501
16556
|
},
|
|
16502
16557
|
'optionalAccess',
|
|
16503
|
-
function(
|
|
16504
|
-
return
|
|
16558
|
+
function(_110) {
|
|
16559
|
+
return _110.Q13;
|
|
16505
16560
|
},
|
|
16506
16561
|
'optionalAccess',
|
|
16507
|
-
function(
|
|
16508
|
-
return
|
|
16562
|
+
function(_111) {
|
|
16563
|
+
return _111.title;
|
|
16509
16564
|
}
|
|
16510
16565
|
]);
|
|
16511
16566
|
if (amountQnReadableAns && amountQuestion) {
|
|
@@ -16518,48 +16573,48 @@ var mswDisputesHandlers = [
|
|
|
16518
16573
|
if (_optionalChain([
|
|
16519
16574
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16520
16575
|
'access',
|
|
16521
|
-
function(
|
|
16522
|
-
return
|
|
16576
|
+
function(_112) {
|
|
16577
|
+
return _112.defaultValues;
|
|
16523
16578
|
},
|
|
16524
16579
|
'optionalAccess',
|
|
16525
|
-
function(
|
|
16526
|
-
return
|
|
16580
|
+
function(_113) {
|
|
16581
|
+
return _113.Q100;
|
|
16527
16582
|
}
|
|
16528
16583
|
])) {
|
|
16529
16584
|
answersForReview.push({
|
|
16530
16585
|
question: _optionalChain([
|
|
16531
16586
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16532
16587
|
'access',
|
|
16533
|
-
function(
|
|
16534
|
-
return
|
|
16588
|
+
function(_114) {
|
|
16589
|
+
return _114.schema;
|
|
16535
16590
|
},
|
|
16536
16591
|
'optionalAccess',
|
|
16537
|
-
function(
|
|
16538
|
-
return
|
|
16592
|
+
function(_115) {
|
|
16593
|
+
return _115.dependencies;
|
|
16539
16594
|
},
|
|
16540
16595
|
'optionalAccess',
|
|
16541
|
-
function(
|
|
16542
|
-
return
|
|
16596
|
+
function(_116) {
|
|
16597
|
+
return _116.Q13;
|
|
16543
16598
|
},
|
|
16544
16599
|
'optionalAccess',
|
|
16545
|
-
function(
|
|
16546
|
-
return
|
|
16600
|
+
function(_117) {
|
|
16601
|
+
return _117.oneOf;
|
|
16547
16602
|
},
|
|
16548
16603
|
'optionalAccess',
|
|
16549
|
-
function(
|
|
16550
|
-
return
|
|
16604
|
+
function(_118) {
|
|
16605
|
+
return _118[0];
|
|
16551
16606
|
},
|
|
16552
16607
|
'optionalAccess',
|
|
16553
|
-
function(
|
|
16554
|
-
return
|
|
16608
|
+
function(_119) {
|
|
16609
|
+
return _119.properties;
|
|
16555
16610
|
},
|
|
16556
16611
|
'optionalAccess',
|
|
16557
|
-
function(
|
|
16558
|
-
return
|
|
16612
|
+
function(_120) {
|
|
16613
|
+
return _120.Q100;
|
|
16559
16614
|
},
|
|
16560
16615
|
'optionalAccess',
|
|
16561
|
-
function(
|
|
16562
|
-
return
|
|
16616
|
+
function(_121) {
|
|
16617
|
+
return _121.title;
|
|
16563
16618
|
}
|
|
16564
16619
|
]),
|
|
16565
16620
|
answers: [
|
|
@@ -16570,48 +16625,48 @@ var mswDisputesHandlers = [
|
|
|
16570
16625
|
if (_optionalChain([
|
|
16571
16626
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16572
16627
|
'access',
|
|
16573
|
-
function(
|
|
16574
|
-
return
|
|
16628
|
+
function(_122) {
|
|
16629
|
+
return _122.defaultValues;
|
|
16575
16630
|
},
|
|
16576
16631
|
'optionalAccess',
|
|
16577
|
-
function(
|
|
16578
|
-
return
|
|
16632
|
+
function(_123) {
|
|
16633
|
+
return _123.Q14;
|
|
16579
16634
|
}
|
|
16580
16635
|
])) {
|
|
16581
16636
|
answersForReview.push({
|
|
16582
16637
|
question: _optionalChain([
|
|
16583
16638
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16584
16639
|
'access',
|
|
16585
|
-
function(
|
|
16586
|
-
return
|
|
16640
|
+
function(_124) {
|
|
16641
|
+
return _124.schema;
|
|
16587
16642
|
},
|
|
16588
16643
|
'optionalAccess',
|
|
16589
|
-
function(
|
|
16590
|
-
return
|
|
16644
|
+
function(_125) {
|
|
16645
|
+
return _125.dependencies;
|
|
16591
16646
|
},
|
|
16592
16647
|
'optionalAccess',
|
|
16593
|
-
function(
|
|
16594
|
-
return
|
|
16648
|
+
function(_126) {
|
|
16649
|
+
return _126.Q13;
|
|
16595
16650
|
},
|
|
16596
16651
|
'optionalAccess',
|
|
16597
|
-
function(
|
|
16598
|
-
return
|
|
16652
|
+
function(_127) {
|
|
16653
|
+
return _127.oneOf;
|
|
16599
16654
|
},
|
|
16600
16655
|
'optionalAccess',
|
|
16601
|
-
function(
|
|
16602
|
-
return
|
|
16656
|
+
function(_128) {
|
|
16657
|
+
return _128[1];
|
|
16603
16658
|
},
|
|
16604
16659
|
'optionalAccess',
|
|
16605
|
-
function(
|
|
16606
|
-
return
|
|
16660
|
+
function(_129) {
|
|
16661
|
+
return _129.properties;
|
|
16607
16662
|
},
|
|
16608
16663
|
'optionalAccess',
|
|
16609
|
-
function(
|
|
16610
|
-
return
|
|
16664
|
+
function(_130) {
|
|
16665
|
+
return _130.Q14;
|
|
16611
16666
|
},
|
|
16612
16667
|
'optionalAccess',
|
|
16613
|
-
function(
|
|
16614
|
-
return
|
|
16668
|
+
function(_131) {
|
|
16669
|
+
return _131.title;
|
|
16615
16670
|
}
|
|
16616
16671
|
]),
|
|
16617
16672
|
answers: [
|
|
@@ -16622,48 +16677,48 @@ var mswDisputesHandlers = [
|
|
|
16622
16677
|
if (_optionalChain([
|
|
16623
16678
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16624
16679
|
'access',
|
|
16625
|
-
function(
|
|
16626
|
-
return
|
|
16680
|
+
function(_132) {
|
|
16681
|
+
return _132.defaultValues;
|
|
16627
16682
|
},
|
|
16628
16683
|
'optionalAccess',
|
|
16629
|
-
function(
|
|
16630
|
-
return
|
|
16684
|
+
function(_133) {
|
|
16685
|
+
return _133.Q15;
|
|
16631
16686
|
}
|
|
16632
16687
|
])) {
|
|
16633
16688
|
answersForReview.push({
|
|
16634
16689
|
question: _optionalChain([
|
|
16635
16690
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16636
16691
|
'access',
|
|
16637
|
-
function(
|
|
16638
|
-
return
|
|
16692
|
+
function(_134) {
|
|
16693
|
+
return _134.schema;
|
|
16639
16694
|
},
|
|
16640
16695
|
'optionalAccess',
|
|
16641
|
-
function(
|
|
16642
|
-
return
|
|
16696
|
+
function(_135) {
|
|
16697
|
+
return _135.dependencies;
|
|
16643
16698
|
},
|
|
16644
16699
|
'optionalAccess',
|
|
16645
|
-
function(
|
|
16646
|
-
return
|
|
16700
|
+
function(_136) {
|
|
16701
|
+
return _136.Q13;
|
|
16647
16702
|
},
|
|
16648
16703
|
'optionalAccess',
|
|
16649
|
-
function(
|
|
16650
|
-
return
|
|
16704
|
+
function(_137) {
|
|
16705
|
+
return _137.oneOf;
|
|
16651
16706
|
},
|
|
16652
16707
|
'optionalAccess',
|
|
16653
|
-
function(
|
|
16654
|
-
return
|
|
16708
|
+
function(_138) {
|
|
16709
|
+
return _138[1];
|
|
16655
16710
|
},
|
|
16656
16711
|
'optionalAccess',
|
|
16657
|
-
function(
|
|
16658
|
-
return
|
|
16712
|
+
function(_139) {
|
|
16713
|
+
return _139.properties;
|
|
16659
16714
|
},
|
|
16660
16715
|
'optionalAccess',
|
|
16661
|
-
function(
|
|
16662
|
-
return
|
|
16716
|
+
function(_140) {
|
|
16717
|
+
return _140.Q15;
|
|
16663
16718
|
},
|
|
16664
16719
|
'optionalAccess',
|
|
16665
|
-
function(
|
|
16666
|
-
return
|
|
16720
|
+
function(_141) {
|
|
16721
|
+
return _141.title;
|
|
16667
16722
|
}
|
|
16668
16723
|
]),
|
|
16669
16724
|
answers: [
|
|
@@ -16815,12 +16870,12 @@ var mswDisputesHandlers = [
|
|
|
16815
16870
|
var initialQuestionAnswer = _optionalChain([
|
|
16816
16871
|
CUR_STEP1_RESPONSE,
|
|
16817
16872
|
'access',
|
|
16818
|
-
function(
|
|
16819
|
-
return
|
|
16873
|
+
function(_142) {
|
|
16874
|
+
return _142.defaultValues;
|
|
16820
16875
|
},
|
|
16821
16876
|
'optionalAccess',
|
|
16822
|
-
function(
|
|
16823
|
-
return
|
|
16877
|
+
function(_143) {
|
|
16878
|
+
return _143["Q-INITIAL-QUESTION"];
|
|
16824
16879
|
}
|
|
16825
16880
|
]);
|
|
16826
16881
|
switch(initialQuestionAnswer){
|
|
@@ -18426,14 +18481,14 @@ var _RestKycRepository = /*#__PURE__*/ function() {
|
|
|
18426
18481
|
if (_optionalChain([
|
|
18427
18482
|
error2,
|
|
18428
18483
|
'optionalAccess',
|
|
18429
|
-
function(
|
|
18430
|
-
return
|
|
18484
|
+
function(_144) {
|
|
18485
|
+
return _144.msg;
|
|
18431
18486
|
}
|
|
18432
18487
|
]) && _optionalChain([
|
|
18433
18488
|
error2,
|
|
18434
18489
|
'optionalAccess',
|
|
18435
|
-
function(
|
|
18436
|
-
return
|
|
18490
|
+
function(_145) {
|
|
18491
|
+
return _145.debug;
|
|
18437
18492
|
}
|
|
18438
18493
|
])) {
|
|
18439
18494
|
logError("KYC verification failed with standardized error", {
|
|
@@ -18491,12 +18546,12 @@ function _postVerifyKyb() {
|
|
|
18491
18546
|
if (kybVerificationAttributes.locale_code === "INVALID" || !_optionalChain([
|
|
18492
18547
|
kybVerificationAttributes,
|
|
18493
18548
|
'access',
|
|
18494
|
-
function(
|
|
18495
|
-
return
|
|
18549
|
+
function(_146) {
|
|
18550
|
+
return _146.answers;
|
|
18496
18551
|
},
|
|
18497
18552
|
'optionalAccess',
|
|
18498
|
-
function(
|
|
18499
|
-
return
|
|
18553
|
+
function(_147) {
|
|
18554
|
+
return _147.length;
|
|
18500
18555
|
}
|
|
18501
18556
|
])) {
|
|
18502
18557
|
logError("Invalid KYB request - invalid locale or no answers", {
|
|
@@ -18508,16 +18563,16 @@ function _postVerifyKyb() {
|
|
|
18508
18563
|
hasErrorValue = _optionalChain([
|
|
18509
18564
|
kybVerificationAttributes,
|
|
18510
18565
|
'access',
|
|
18511
|
-
function(
|
|
18512
|
-
return
|
|
18566
|
+
function(_148) {
|
|
18567
|
+
return _148.answers;
|
|
18513
18568
|
},
|
|
18514
18569
|
'optionalAccess',
|
|
18515
|
-
function(
|
|
18516
|
-
return
|
|
18570
|
+
function(_149) {
|
|
18571
|
+
return _149.some;
|
|
18517
18572
|
},
|
|
18518
18573
|
'call',
|
|
18519
|
-
function(
|
|
18520
|
-
return
|
|
18574
|
+
function(_150) {
|
|
18575
|
+
return _150(function(answer) {
|
|
18521
18576
|
return [
|
|
18522
18577
|
"222222222",
|
|
18523
18578
|
"444444444",
|
|
@@ -19999,14 +20054,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
19999
20054
|
if (_optionalChain([
|
|
20000
20055
|
error2,
|
|
20001
20056
|
'optionalAccess',
|
|
20002
|
-
function(
|
|
20003
|
-
return
|
|
20057
|
+
function(_151) {
|
|
20058
|
+
return _151.msg;
|
|
20004
20059
|
}
|
|
20005
20060
|
]) && _optionalChain([
|
|
20006
20061
|
error2,
|
|
20007
20062
|
'optionalAccess',
|
|
20008
|
-
function(
|
|
20009
|
-
return
|
|
20063
|
+
function(_152) {
|
|
20064
|
+
return _152.debug;
|
|
20010
20065
|
}
|
|
20011
20066
|
])) {
|
|
20012
20067
|
logError("KYB onboarding initialization failed with standardized error", {
|
|
@@ -20074,14 +20129,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
20074
20129
|
if (_optionalChain([
|
|
20075
20130
|
error2,
|
|
20076
20131
|
'optionalAccess',
|
|
20077
|
-
function(
|
|
20078
|
-
return
|
|
20132
|
+
function(_153) {
|
|
20133
|
+
return _153.msg;
|
|
20079
20134
|
}
|
|
20080
20135
|
]) && _optionalChain([
|
|
20081
20136
|
error2,
|
|
20082
20137
|
'optionalAccess',
|
|
20083
|
-
function(
|
|
20084
|
-
return
|
|
20138
|
+
function(_154) {
|
|
20139
|
+
return _154.debug;
|
|
20085
20140
|
}
|
|
20086
20141
|
])) {
|
|
20087
20142
|
logError("KYB verification failed with standardized error", {
|
|
@@ -20420,12 +20475,12 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
20420
20475
|
cardCount: _optionalChain([
|
|
20421
20476
|
result,
|
|
20422
20477
|
'access',
|
|
20423
|
-
function(
|
|
20424
|
-
return
|
|
20478
|
+
function(_155) {
|
|
20479
|
+
return _155.data;
|
|
20425
20480
|
},
|
|
20426
20481
|
'optionalAccess',
|
|
20427
|
-
function(
|
|
20428
|
-
return
|
|
20482
|
+
function(_156) {
|
|
20483
|
+
return _156.length;
|
|
20429
20484
|
}
|
|
20430
20485
|
]) || 0,
|
|
20431
20486
|
adapter: "RestMoneyMovementRepository"
|
|
@@ -20922,12 +20977,12 @@ function _getExternalCards() {
|
|
|
20922
20977
|
cardCount: _optionalChain([
|
|
20923
20978
|
result,
|
|
20924
20979
|
'access',
|
|
20925
|
-
function(
|
|
20926
|
-
return
|
|
20980
|
+
function(_157) {
|
|
20981
|
+
return _157.data;
|
|
20927
20982
|
},
|
|
20928
20983
|
'optionalAccess',
|
|
20929
|
-
function(
|
|
20930
|
-
return
|
|
20984
|
+
function(_158) {
|
|
20985
|
+
return _158.length;
|
|
20931
20986
|
}
|
|
20932
20987
|
]) || 0,
|
|
20933
20988
|
interactor: "getExternalCards"
|
|
@@ -22232,311 +22287,14 @@ var StatementAssetStateEnum;
|
|
|
22232
22287
|
StatementAssetStateEnum2["RENDERED"] = "Rendered";
|
|
22233
22288
|
StatementAssetStateEnum2["FAILED"] = "Failed";
|
|
22234
22289
|
})(StatementAssetStateEnum || (StatementAssetStateEnum = exports.StatementAssetStateEnum = {}));
|
|
22235
|
-
|
|
22236
|
-
|
|
22237
|
-
|
|
22238
|
-
|
|
22239
|
-
|
|
22240
|
-
|
|
22241
|
-
|
|
22242
|
-
|
|
22243
|
-
_async_to_generator(function(paginationParams) {
|
|
22244
|
-
var container2, statementsRepository, response, error2;
|
|
22245
|
-
return _ts_generator(this, function(_state) {
|
|
22246
|
-
switch(_state.label){
|
|
22247
|
-
case 0:
|
|
22248
|
-
logDebug("Getting statements", {
|
|
22249
|
-
paginationParams: paginationParams,
|
|
22250
|
-
interactor: "getStatements"
|
|
22251
|
-
});
|
|
22252
|
-
_state.label = 1;
|
|
22253
|
-
case 1:
|
|
22254
|
-
_state.trys.push([
|
|
22255
|
-
1,
|
|
22256
|
-
3,
|
|
22257
|
-
,
|
|
22258
|
-
4
|
|
22259
|
-
]);
|
|
22260
|
-
container2 = getActiveIocContainer();
|
|
22261
|
-
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22262
|
-
return [
|
|
22263
|
-
4,
|
|
22264
|
-
statementsRepository.getStatements(paginationParams)
|
|
22265
|
-
];
|
|
22266
|
-
case 2:
|
|
22267
|
-
response = _state.sent();
|
|
22268
|
-
logInfo("Statements retrieved successfully", {
|
|
22269
|
-
count: response.data.length,
|
|
22270
|
-
interactor: "getStatements"
|
|
22271
|
-
});
|
|
22272
|
-
return [
|
|
22273
|
-
2,
|
|
22274
|
-
response
|
|
22275
|
-
];
|
|
22276
|
-
case 3:
|
|
22277
|
-
error2 = _state.sent();
|
|
22278
|
-
logError("Failed to get statements", {
|
|
22279
|
-
error: error2,
|
|
22280
|
-
paginationParams: paginationParams,
|
|
22281
|
-
interactor: "getStatements"
|
|
22282
|
-
});
|
|
22283
|
-
throw error2;
|
|
22284
|
-
case 4:
|
|
22285
|
-
return [
|
|
22286
|
-
2
|
|
22287
|
-
];
|
|
22288
|
-
}
|
|
22289
|
-
});
|
|
22290
|
-
});
|
|
22291
|
-
return _getStatements.apply(this, arguments);
|
|
22292
|
-
}
|
|
22293
|
-
__name(getStatements, "getStatements");
|
|
22294
|
-
function getStatementAsset(issuedDate, accountToken) {
|
|
22295
|
-
return _getStatementAsset.apply(this, arguments);
|
|
22296
|
-
}
|
|
22297
|
-
function _getStatementAsset() {
|
|
22298
|
-
_getStatementAsset = // src/statements/base/interactors/getStatementAsset.ts
|
|
22299
|
-
_async_to_generator(function(issuedDate, accountToken) {
|
|
22300
|
-
var container2, statementsRepository, response, error2;
|
|
22301
|
-
return _ts_generator(this, function(_state) {
|
|
22302
|
-
switch(_state.label){
|
|
22303
|
-
case 0:
|
|
22304
|
-
logDebug("Getting statement asset", {
|
|
22305
|
-
issuedDate: issuedDate,
|
|
22306
|
-
accountToken: accountToken,
|
|
22307
|
-
interactor: "getStatementAsset"
|
|
22308
|
-
});
|
|
22309
|
-
_state.label = 1;
|
|
22310
|
-
case 1:
|
|
22311
|
-
_state.trys.push([
|
|
22312
|
-
1,
|
|
22313
|
-
3,
|
|
22314
|
-
,
|
|
22315
|
-
4
|
|
22316
|
-
]);
|
|
22317
|
-
container2 = getActiveIocContainer();
|
|
22318
|
-
statementsRepository = container2.get(ITF_STATEMENT_ASSET);
|
|
22319
|
-
return [
|
|
22320
|
-
4,
|
|
22321
|
-
statementsRepository.getStatementAsset(issuedDate, accountToken)
|
|
22322
|
-
];
|
|
22323
|
-
case 2:
|
|
22324
|
-
response = _state.sent();
|
|
22325
|
-
logInfo("Statement asset retrieved successfully", {
|
|
22326
|
-
issuedDate: issuedDate,
|
|
22327
|
-
accountToken: accountToken,
|
|
22328
|
-
interactor: "getStatementAsset"
|
|
22329
|
-
});
|
|
22330
|
-
return [
|
|
22331
|
-
2,
|
|
22332
|
-
response
|
|
22333
|
-
];
|
|
22334
|
-
case 3:
|
|
22335
|
-
error2 = _state.sent();
|
|
22336
|
-
logError("Failed to get statement asset", {
|
|
22337
|
-
error: error2,
|
|
22338
|
-
issuedDate: issuedDate,
|
|
22339
|
-
accountToken: accountToken,
|
|
22340
|
-
interactor: "getStatementAsset"
|
|
22341
|
-
});
|
|
22342
|
-
throw error2;
|
|
22343
|
-
case 4:
|
|
22344
|
-
return [
|
|
22345
|
-
2
|
|
22346
|
-
];
|
|
22347
|
-
}
|
|
22348
|
-
});
|
|
22349
|
-
});
|
|
22350
|
-
return _getStatementAsset.apply(this, arguments);
|
|
22351
|
-
}
|
|
22352
|
-
__name(getStatementAsset, "getStatementAsset");
|
|
22353
|
-
// src/statements/ioc/statementsIOCModules.ts
|
|
22354
|
-
// src/statements/adapters/rest/RestStatementsRepository.ts
|
|
22355
|
-
function _ts_decorate69(decorators, target, key, desc) {
|
|
22356
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22357
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22358
|
-
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;
|
|
22359
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22360
|
-
}
|
|
22361
|
-
__name(_ts_decorate69, "_ts_decorate");
|
|
22362
|
-
function _ts_metadata18(k, v) {
|
|
22363
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22364
|
-
}
|
|
22365
|
-
__name(_ts_metadata18, "_ts_metadata");
|
|
22366
|
-
var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
22367
|
-
function _RestStatementsRepository() {
|
|
22368
|
-
_class_call_check(this, _RestStatementsRepository);
|
|
22369
|
-
__publicField(this, "httpClient");
|
|
22370
|
-
}
|
|
22371
|
-
_create_class(_RestStatementsRepository, [
|
|
22372
|
-
{
|
|
22373
|
-
key: "getStatements",
|
|
22374
|
-
value: function getStatements(paginationParams) {
|
|
22375
|
-
var _this = this;
|
|
22376
|
-
return _async_to_generator(function() {
|
|
22377
|
-
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
22378
|
-
return _ts_generator(this, function(_state) {
|
|
22379
|
-
switch(_state.label){
|
|
22380
|
-
case 0:
|
|
22381
|
-
logDebug("Getting statements", {
|
|
22382
|
-
paginationParams: paginationParams,
|
|
22383
|
-
adapter: "RestStatementsRepository"
|
|
22384
|
-
});
|
|
22385
|
-
_state.label = 1;
|
|
22386
|
-
case 1:
|
|
22387
|
-
_state.trys.push([
|
|
22388
|
-
1,
|
|
22389
|
-
3,
|
|
22390
|
-
,
|
|
22391
|
-
4
|
|
22392
|
-
]);
|
|
22393
|
-
queryParams = _this.convertPaginationParamsToQueryParams(paginationParams);
|
|
22394
|
-
queryParams.set("direct", "true");
|
|
22395
|
-
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
22396
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/statements?").concat(queryParams.toString());
|
|
22397
|
-
return [
|
|
22398
|
-
4,
|
|
22399
|
-
_this.httpClient.get(path)
|
|
22400
|
-
];
|
|
22401
|
-
case 2:
|
|
22402
|
-
response = _state.sent();
|
|
22403
|
-
logInfo("Statements retrieved successfully", {
|
|
22404
|
-
statementCount: _optionalChain([
|
|
22405
|
-
response,
|
|
22406
|
-
'access',
|
|
22407
|
-
function(_156) {
|
|
22408
|
-
return _156.data;
|
|
22409
|
-
},
|
|
22410
|
-
'optionalAccess',
|
|
22411
|
-
function(_157) {
|
|
22412
|
-
return _157.length;
|
|
22413
|
-
}
|
|
22414
|
-
]) || 0,
|
|
22415
|
-
hasMore: response.is_more,
|
|
22416
|
-
adapter: "RestStatementsRepository"
|
|
22417
|
-
});
|
|
22418
|
-
return [
|
|
22419
|
-
2,
|
|
22420
|
-
response
|
|
22421
|
-
];
|
|
22422
|
-
case 3:
|
|
22423
|
-
err = _state.sent();
|
|
22424
|
-
logError("Unable to retrieve statements", {
|
|
22425
|
-
err: err,
|
|
22426
|
-
paginationParams: paginationParams,
|
|
22427
|
-
adapter: "RestStatementsRepository"
|
|
22428
|
-
});
|
|
22429
|
-
throw new MqSDKError("Unable to retrieve statements", err);
|
|
22430
|
-
case 4:
|
|
22431
|
-
return [
|
|
22432
|
-
2
|
|
22433
|
-
];
|
|
22434
|
-
}
|
|
22435
|
-
});
|
|
22436
|
-
})();
|
|
22437
|
-
}
|
|
22438
|
-
},
|
|
22439
|
-
{
|
|
22440
|
-
key: "getStatementAsset",
|
|
22441
|
-
value: function getStatementAsset(issuedDate, accountToken) {
|
|
22442
|
-
var _this = this;
|
|
22443
|
-
return _async_to_generator(function() {
|
|
22444
|
-
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
22445
|
-
return _ts_generator(this, function(_state) {
|
|
22446
|
-
switch(_state.label){
|
|
22447
|
-
case 0:
|
|
22448
|
-
logDebug("Getting statement asset", {
|
|
22449
|
-
issuedDate: issuedDate,
|
|
22450
|
-
accountToken: accountToken,
|
|
22451
|
-
adapter: "RestStatementsRepository"
|
|
22452
|
-
});
|
|
22453
|
-
_state.label = 1;
|
|
22454
|
-
case 1:
|
|
22455
|
-
_state.trys.push([
|
|
22456
|
-
1,
|
|
22457
|
-
3,
|
|
22458
|
-
,
|
|
22459
|
-
4
|
|
22460
|
-
]);
|
|
22461
|
-
queryParams = new URLSearchParams();
|
|
22462
|
-
queryParams.set("direct", "true");
|
|
22463
|
-
if (accountToken) {
|
|
22464
|
-
queryParams.set("account_token", accountToken);
|
|
22465
|
-
}
|
|
22466
|
-
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
22467
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
|
|
22468
|
-
return [
|
|
22469
|
-
4,
|
|
22470
|
-
_this.httpClient.get(path)
|
|
22471
|
-
];
|
|
22472
|
-
case 2:
|
|
22473
|
-
response = _state.sent();
|
|
22474
|
-
logInfo("Statement asset retrieved successfully", {
|
|
22475
|
-
issuedDate: issuedDate,
|
|
22476
|
-
accountToken: accountToken,
|
|
22477
|
-
adapter: "RestStatementsRepository"
|
|
22478
|
-
});
|
|
22479
|
-
return [
|
|
22480
|
-
2,
|
|
22481
|
-
response
|
|
22482
|
-
];
|
|
22483
|
-
case 3:
|
|
22484
|
-
err = _state.sent();
|
|
22485
|
-
logError("Unable to retrieve statement asset", {
|
|
22486
|
-
err: err,
|
|
22487
|
-
issuedDate: issuedDate,
|
|
22488
|
-
accountToken: accountToken,
|
|
22489
|
-
adapter: "RestStatementsRepository"
|
|
22490
|
-
});
|
|
22491
|
-
throw new MqSDKError("Unable to retrieve statement asset", err);
|
|
22492
|
-
case 4:
|
|
22493
|
-
return [
|
|
22494
|
-
2
|
|
22495
|
-
];
|
|
22496
|
-
}
|
|
22497
|
-
});
|
|
22498
|
-
})();
|
|
22499
|
-
}
|
|
22500
|
-
},
|
|
22501
|
-
{
|
|
22502
|
-
key: "convertPaginationParamsToQueryParams",
|
|
22503
|
-
value: function convertPaginationParamsToQueryParams(paginationParams) {
|
|
22504
|
-
var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
22505
|
-
var queryParams = new URLSearchParams([
|
|
22506
|
-
[
|
|
22507
|
-
"issued_end_date",
|
|
22508
|
-
issuedEndDate
|
|
22509
|
-
],
|
|
22510
|
-
[
|
|
22511
|
-
"issued_start_date",
|
|
22512
|
-
issuedStartDate
|
|
22513
|
-
]
|
|
22514
|
-
].concat(_to_consumable_array(accountToken ? [
|
|
22515
|
-
[
|
|
22516
|
-
"account_token",
|
|
22517
|
-
accountToken
|
|
22518
|
-
]
|
|
22519
|
-
] : [])));
|
|
22520
|
-
return queryParams;
|
|
22521
|
-
}
|
|
22522
|
-
}
|
|
22523
|
-
]);
|
|
22524
|
-
return _RestStatementsRepository;
|
|
22525
|
-
}();
|
|
22526
|
-
__name(_RestStatementsRepository, "RestStatementsRepository");
|
|
22527
|
-
var RestStatementsRepository = _RestStatementsRepository;
|
|
22528
|
-
_ts_decorate69([
|
|
22529
|
-
_inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
22530
|
-
_ts_metadata18("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
22531
|
-
], RestStatementsRepository.prototype, "httpClient", void 0);
|
|
22532
|
-
RestStatementsRepository = _ts_decorate69([
|
|
22533
|
-
_inversify.injectable.call(void 0)
|
|
22534
|
-
], RestStatementsRepository);
|
|
22535
|
-
// src/statements/ioc/statementsIOCModules.ts
|
|
22536
|
-
var statementsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
|
|
22537
|
-
bind(ITF_STATEMENTS).to(RestStatementsRepository).inSingletonScope();
|
|
22538
|
-
bind(ITF_STATEMENT_ASSET).to(RestStatementsRepository).inSingletonScope();
|
|
22539
|
-
});
|
|
22290
|
+
var StatementSummaryCycleTypeEnum;
|
|
22291
|
+
(function(StatementSummaryCycleTypeEnum2) {
|
|
22292
|
+
StatementSummaryCycleTypeEnum2["BEGINNING_REVOLVING"] = "BEGINNING_REVOLVING";
|
|
22293
|
+
StatementSummaryCycleTypeEnum2["REVOLVING"] = "REVOLVING";
|
|
22294
|
+
StatementSummaryCycleTypeEnum2["END_REVOLVING"] = "END_REVOLVING";
|
|
22295
|
+
StatementSummaryCycleTypeEnum2["TRANSACTING"] = "TRANSACTING";
|
|
22296
|
+
})(StatementSummaryCycleTypeEnum || (StatementSummaryCycleTypeEnum = exports.StatementSummaryCycleTypeEnum = {}));
|
|
22297
|
+
// src/statements/base/repositories/MockStatementsRepository.ts
|
|
22540
22298
|
// src/statements/adapters/rest/constants.ts
|
|
22541
22299
|
var VALID_USER_TOKEN = "test_user_token";
|
|
22542
22300
|
var INVALID_USER_TOKEN = "invalid_".concat(VALID_USER_TOKEN);
|
|
@@ -22673,10 +22431,70 @@ var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
|
|
|
22673
22431
|
var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
|
|
22674
22432
|
return mockUserCreationYear === issuedEndDateYear;
|
|
22675
22433
|
}, "isMockUserCreationYear");
|
|
22676
|
-
var
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22434
|
+
var handleGetUserAccountStatementsV2 = /* @__PURE__ */ __name(function(params) {
|
|
22435
|
+
return {
|
|
22436
|
+
count: 2,
|
|
22437
|
+
start_index: params.start_index || 0,
|
|
22438
|
+
end_index: 1,
|
|
22439
|
+
is_more: false,
|
|
22440
|
+
data: [
|
|
22441
|
+
{
|
|
22442
|
+
token: "mock-statement-token-1",
|
|
22443
|
+
account_token: params.account_token,
|
|
22444
|
+
opening_balance: 1e3,
|
|
22445
|
+
closing_balance: 850,
|
|
22446
|
+
credit_limit: 5e3,
|
|
22447
|
+
available_credit: 4150,
|
|
22448
|
+
past_due_amount: 0,
|
|
22449
|
+
purchases: 250,
|
|
22450
|
+
interest: 15.5,
|
|
22451
|
+
fees: 0,
|
|
22452
|
+
credits: 0,
|
|
22453
|
+
payments: 415.5,
|
|
22454
|
+
days_in_billing_cycle: 30,
|
|
22455
|
+
cycle_type: "REVOLVING",
|
|
22456
|
+
opening_date: "2024-01-01T00:00:00Z",
|
|
22457
|
+
closing_date: "2024-01-31T23:59:59Z",
|
|
22458
|
+
created_time: "2024-02-01T00:00:00Z"
|
|
22459
|
+
},
|
|
22460
|
+
{
|
|
22461
|
+
token: "mock-statement-token-2",
|
|
22462
|
+
account_token: params.account_token,
|
|
22463
|
+
opening_balance: 850,
|
|
22464
|
+
closing_balance: 1200,
|
|
22465
|
+
credit_limit: 5e3,
|
|
22466
|
+
available_credit: 3800,
|
|
22467
|
+
past_due_amount: 0,
|
|
22468
|
+
purchases: 450,
|
|
22469
|
+
interest: 12.75,
|
|
22470
|
+
fees: 25,
|
|
22471
|
+
credits: 50,
|
|
22472
|
+
payments: 137.75,
|
|
22473
|
+
days_in_billing_cycle: 28,
|
|
22474
|
+
cycle_type: "REVOLVING",
|
|
22475
|
+
opening_date: "2024-02-01T00:00:00Z",
|
|
22476
|
+
closing_date: "2024-02-28T23:59:59Z",
|
|
22477
|
+
created_time: "2024-03-01T00:00:00Z"
|
|
22478
|
+
}
|
|
22479
|
+
]
|
|
22480
|
+
};
|
|
22481
|
+
}, "handleGetUserAccountStatementsV2");
|
|
22482
|
+
var handleGetUserAccountsStatementDownloadV2 = /* @__PURE__ */ __name(function(params) {
|
|
22483
|
+
return {
|
|
22484
|
+
account_token: params.account_token,
|
|
22485
|
+
statement_summary_token: params.statement_summary_token,
|
|
22486
|
+
opening_date: "2024-01-01T00:00:00Z",
|
|
22487
|
+
closing_date: "2024-01-31T23:59:59Z",
|
|
22488
|
+
signed_url: {
|
|
22489
|
+
pdf: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".pdf"),
|
|
22490
|
+
html: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".html")
|
|
22491
|
+
}
|
|
22492
|
+
};
|
|
22493
|
+
}, "handleGetUserAccountsStatementDownloadV2");
|
|
22494
|
+
var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
|
|
22495
|
+
var data = [];
|
|
22496
|
+
var monthsDifference = 12;
|
|
22497
|
+
var issuedEndDateObject = getValidEndDate(issued_end_date);
|
|
22680
22498
|
if (isMockUserCreationYear(issued_end_date)) {
|
|
22681
22499
|
monthsDifference = 7;
|
|
22682
22500
|
} else if (issued_start_date) {
|
|
@@ -22699,6 +22517,638 @@ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issue
|
|
|
22699
22517
|
end_index: monthsDifference - 1
|
|
22700
22518
|
};
|
|
22701
22519
|
}, "generateStatementSummary");
|
|
22520
|
+
// src/statements/base/repositories/MockStatementsRepository.ts
|
|
22521
|
+
function _ts_decorate69(decorators, target, key, desc) {
|
|
22522
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22523
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22524
|
+
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;
|
|
22525
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22526
|
+
}
|
|
22527
|
+
__name(_ts_decorate69, "_ts_decorate");
|
|
22528
|
+
var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
22529
|
+
function _MockStatementsRepository() {
|
|
22530
|
+
_class_call_check(this, _MockStatementsRepository);
|
|
22531
|
+
}
|
|
22532
|
+
_create_class(_MockStatementsRepository, [
|
|
22533
|
+
{
|
|
22534
|
+
key: "getStatements",
|
|
22535
|
+
value: function getStatements(paginationParams) {
|
|
22536
|
+
return _async_to_generator(function() {
|
|
22537
|
+
var issuedEndDate, issuedStartDate, accountToken;
|
|
22538
|
+
return _ts_generator(this, function(_state) {
|
|
22539
|
+
issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
22540
|
+
return [
|
|
22541
|
+
2,
|
|
22542
|
+
handleGetStatements(VALID_USER_TOKEN, issuedEndDate, issuedStartDate, accountToken)
|
|
22543
|
+
];
|
|
22544
|
+
});
|
|
22545
|
+
})();
|
|
22546
|
+
}
|
|
22547
|
+
},
|
|
22548
|
+
{
|
|
22549
|
+
key: "getStatementAsset",
|
|
22550
|
+
value: function getStatementAsset() {
|
|
22551
|
+
return _async_to_generator(function() {
|
|
22552
|
+
return _ts_generator(this, function(_state) {
|
|
22553
|
+
return [
|
|
22554
|
+
2,
|
|
22555
|
+
handleGetStatementAsset()
|
|
22556
|
+
];
|
|
22557
|
+
});
|
|
22558
|
+
})();
|
|
22559
|
+
}
|
|
22560
|
+
},
|
|
22561
|
+
{
|
|
22562
|
+
key: "getUserAccountStatementsV2",
|
|
22563
|
+
value: function getUserAccountStatementsV2(params) {
|
|
22564
|
+
return _async_to_generator(function() {
|
|
22565
|
+
return _ts_generator(this, function(_state) {
|
|
22566
|
+
return [
|
|
22567
|
+
2,
|
|
22568
|
+
handleGetUserAccountStatementsV2(params)
|
|
22569
|
+
];
|
|
22570
|
+
});
|
|
22571
|
+
})();
|
|
22572
|
+
}
|
|
22573
|
+
},
|
|
22574
|
+
{
|
|
22575
|
+
key: "getUserAccountsStatementDownloadV2",
|
|
22576
|
+
value: function getUserAccountsStatementDownloadV2(params) {
|
|
22577
|
+
return _async_to_generator(function() {
|
|
22578
|
+
return _ts_generator(this, function(_state) {
|
|
22579
|
+
return [
|
|
22580
|
+
2,
|
|
22581
|
+
handleGetUserAccountsStatementDownloadV2(params)
|
|
22582
|
+
];
|
|
22583
|
+
});
|
|
22584
|
+
})();
|
|
22585
|
+
}
|
|
22586
|
+
}
|
|
22587
|
+
]);
|
|
22588
|
+
return _MockStatementsRepository;
|
|
22589
|
+
}();
|
|
22590
|
+
__name(_MockStatementsRepository, "MockStatementsRepository");
|
|
22591
|
+
var MockStatementsRepository = _MockStatementsRepository;
|
|
22592
|
+
MockStatementsRepository = exports.MockStatementsRepository = _ts_decorate69([
|
|
22593
|
+
_inversify.injectable.call(void 0)
|
|
22594
|
+
], MockStatementsRepository);
|
|
22595
|
+
// src/statements/ioc/symbols.ts
|
|
22596
|
+
var ITF_STATEMENTS = Symbol.for("iStatementsRepository");
|
|
22597
|
+
var ITF_STATEMENT_ASSET = Symbol.for("IStatementAssetRepository");
|
|
22598
|
+
function getStatements(paginationParams) {
|
|
22599
|
+
return _getStatements.apply(this, arguments);
|
|
22600
|
+
}
|
|
22601
|
+
function _getStatements() {
|
|
22602
|
+
_getStatements = // src/statements/base/interactors/getStatements.ts
|
|
22603
|
+
_async_to_generator(function(paginationParams) {
|
|
22604
|
+
var container2, statementsRepository, response, error2;
|
|
22605
|
+
return _ts_generator(this, function(_state) {
|
|
22606
|
+
switch(_state.label){
|
|
22607
|
+
case 0:
|
|
22608
|
+
logDebug("Getting statements", {
|
|
22609
|
+
paginationParams: paginationParams,
|
|
22610
|
+
interactor: "getStatements"
|
|
22611
|
+
});
|
|
22612
|
+
_state.label = 1;
|
|
22613
|
+
case 1:
|
|
22614
|
+
_state.trys.push([
|
|
22615
|
+
1,
|
|
22616
|
+
3,
|
|
22617
|
+
,
|
|
22618
|
+
4
|
|
22619
|
+
]);
|
|
22620
|
+
container2 = getActiveIocContainer();
|
|
22621
|
+
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22622
|
+
return [
|
|
22623
|
+
4,
|
|
22624
|
+
statementsRepository.getStatements(paginationParams)
|
|
22625
|
+
];
|
|
22626
|
+
case 2:
|
|
22627
|
+
response = _state.sent();
|
|
22628
|
+
logInfo("Statements retrieved successfully", {
|
|
22629
|
+
count: response.data.length,
|
|
22630
|
+
interactor: "getStatements"
|
|
22631
|
+
});
|
|
22632
|
+
return [
|
|
22633
|
+
2,
|
|
22634
|
+
response
|
|
22635
|
+
];
|
|
22636
|
+
case 3:
|
|
22637
|
+
error2 = _state.sent();
|
|
22638
|
+
logError("Failed to get statements", {
|
|
22639
|
+
error: error2,
|
|
22640
|
+
paginationParams: paginationParams,
|
|
22641
|
+
interactor: "getStatements"
|
|
22642
|
+
});
|
|
22643
|
+
throw error2;
|
|
22644
|
+
case 4:
|
|
22645
|
+
return [
|
|
22646
|
+
2
|
|
22647
|
+
];
|
|
22648
|
+
}
|
|
22649
|
+
});
|
|
22650
|
+
});
|
|
22651
|
+
return _getStatements.apply(this, arguments);
|
|
22652
|
+
}
|
|
22653
|
+
__name(getStatements, "getStatements");
|
|
22654
|
+
function getStatementAsset(issuedDate, accountToken) {
|
|
22655
|
+
return _getStatementAsset.apply(this, arguments);
|
|
22656
|
+
}
|
|
22657
|
+
function _getStatementAsset() {
|
|
22658
|
+
_getStatementAsset = // src/statements/base/interactors/getStatementAsset.ts
|
|
22659
|
+
_async_to_generator(function(issuedDate, accountToken) {
|
|
22660
|
+
var container2, statementsRepository, response, error2;
|
|
22661
|
+
return _ts_generator(this, function(_state) {
|
|
22662
|
+
switch(_state.label){
|
|
22663
|
+
case 0:
|
|
22664
|
+
logDebug("Getting statement asset", {
|
|
22665
|
+
issuedDate: issuedDate,
|
|
22666
|
+
accountToken: accountToken,
|
|
22667
|
+
interactor: "getStatementAsset"
|
|
22668
|
+
});
|
|
22669
|
+
_state.label = 1;
|
|
22670
|
+
case 1:
|
|
22671
|
+
_state.trys.push([
|
|
22672
|
+
1,
|
|
22673
|
+
3,
|
|
22674
|
+
,
|
|
22675
|
+
4
|
|
22676
|
+
]);
|
|
22677
|
+
container2 = getActiveIocContainer();
|
|
22678
|
+
statementsRepository = container2.get(ITF_STATEMENT_ASSET);
|
|
22679
|
+
return [
|
|
22680
|
+
4,
|
|
22681
|
+
statementsRepository.getStatementAsset(issuedDate, accountToken)
|
|
22682
|
+
];
|
|
22683
|
+
case 2:
|
|
22684
|
+
response = _state.sent();
|
|
22685
|
+
logInfo("Statement asset retrieved successfully", {
|
|
22686
|
+
issuedDate: issuedDate,
|
|
22687
|
+
accountToken: accountToken,
|
|
22688
|
+
interactor: "getStatementAsset"
|
|
22689
|
+
});
|
|
22690
|
+
return [
|
|
22691
|
+
2,
|
|
22692
|
+
response
|
|
22693
|
+
];
|
|
22694
|
+
case 3:
|
|
22695
|
+
error2 = _state.sent();
|
|
22696
|
+
logError("Failed to get statement asset", {
|
|
22697
|
+
error: error2,
|
|
22698
|
+
issuedDate: issuedDate,
|
|
22699
|
+
accountToken: accountToken,
|
|
22700
|
+
interactor: "getStatementAsset"
|
|
22701
|
+
});
|
|
22702
|
+
throw error2;
|
|
22703
|
+
case 4:
|
|
22704
|
+
return [
|
|
22705
|
+
2
|
|
22706
|
+
];
|
|
22707
|
+
}
|
|
22708
|
+
});
|
|
22709
|
+
});
|
|
22710
|
+
return _getStatementAsset.apply(this, arguments);
|
|
22711
|
+
}
|
|
22712
|
+
__name(getStatementAsset, "getStatementAsset");
|
|
22713
|
+
function getUserAccountStatementsV2(params) {
|
|
22714
|
+
return _getUserAccountStatementsV2.apply(this, arguments);
|
|
22715
|
+
}
|
|
22716
|
+
function _getUserAccountStatementsV2() {
|
|
22717
|
+
_getUserAccountStatementsV2 = // src/statements/base/interactors/getUserAccountStatementsV2.ts
|
|
22718
|
+
_async_to_generator(function(params) {
|
|
22719
|
+
var container2, statementsRepository, response, error2;
|
|
22720
|
+
return _ts_generator(this, function(_state) {
|
|
22721
|
+
switch(_state.label){
|
|
22722
|
+
case 0:
|
|
22723
|
+
logDebug("Getting user account statements V2", {
|
|
22724
|
+
params: params,
|
|
22725
|
+
interactor: "getUserAccountStatementsV2"
|
|
22726
|
+
});
|
|
22727
|
+
_state.label = 1;
|
|
22728
|
+
case 1:
|
|
22729
|
+
_state.trys.push([
|
|
22730
|
+
1,
|
|
22731
|
+
3,
|
|
22732
|
+
,
|
|
22733
|
+
4
|
|
22734
|
+
]);
|
|
22735
|
+
container2 = getActiveIocContainer();
|
|
22736
|
+
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22737
|
+
return [
|
|
22738
|
+
4,
|
|
22739
|
+
statementsRepository.getUserAccountStatementsV2(params)
|
|
22740
|
+
];
|
|
22741
|
+
case 2:
|
|
22742
|
+
response = _state.sent();
|
|
22743
|
+
logInfo("User account statements V2 retrieved successfully", {
|
|
22744
|
+
count: response.count,
|
|
22745
|
+
interactor: "getUserAccountStatementsV2"
|
|
22746
|
+
});
|
|
22747
|
+
return [
|
|
22748
|
+
2,
|
|
22749
|
+
response
|
|
22750
|
+
];
|
|
22751
|
+
case 3:
|
|
22752
|
+
error2 = _state.sent();
|
|
22753
|
+
logError("Failed to get user account statements V2", {
|
|
22754
|
+
error: error2,
|
|
22755
|
+
params: params,
|
|
22756
|
+
interactor: "getUserAccountStatementsV2"
|
|
22757
|
+
});
|
|
22758
|
+
throw error2;
|
|
22759
|
+
case 4:
|
|
22760
|
+
return [
|
|
22761
|
+
2
|
|
22762
|
+
];
|
|
22763
|
+
}
|
|
22764
|
+
});
|
|
22765
|
+
});
|
|
22766
|
+
return _getUserAccountStatementsV2.apply(this, arguments);
|
|
22767
|
+
}
|
|
22768
|
+
__name(getUserAccountStatementsV2, "getUserAccountStatementsV2");
|
|
22769
|
+
function getUserAccountsStatementDownloadV2(params) {
|
|
22770
|
+
return _getUserAccountsStatementDownloadV2.apply(this, arguments);
|
|
22771
|
+
}
|
|
22772
|
+
function _getUserAccountsStatementDownloadV2() {
|
|
22773
|
+
_getUserAccountsStatementDownloadV2 = // src/statements/base/interactors/getUserAccountsStatementDownloadV2.ts
|
|
22774
|
+
_async_to_generator(function(params) {
|
|
22775
|
+
var container2, statementsRepository, response, error2;
|
|
22776
|
+
return _ts_generator(this, function(_state) {
|
|
22777
|
+
switch(_state.label){
|
|
22778
|
+
case 0:
|
|
22779
|
+
logDebug("Downloading user account statement V2", {
|
|
22780
|
+
params: params,
|
|
22781
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22782
|
+
});
|
|
22783
|
+
_state.label = 1;
|
|
22784
|
+
case 1:
|
|
22785
|
+
_state.trys.push([
|
|
22786
|
+
1,
|
|
22787
|
+
3,
|
|
22788
|
+
,
|
|
22789
|
+
4
|
|
22790
|
+
]);
|
|
22791
|
+
container2 = getActiveIocContainer();
|
|
22792
|
+
statementsRepository = container2.get(ITF_STATEMENTS);
|
|
22793
|
+
return [
|
|
22794
|
+
4,
|
|
22795
|
+
statementsRepository.getUserAccountsStatementDownloadV2(params)
|
|
22796
|
+
];
|
|
22797
|
+
case 2:
|
|
22798
|
+
response = _state.sent();
|
|
22799
|
+
logInfo("User account statement V2 downloaded successfully", {
|
|
22800
|
+
statement_summary_token: params.statement_summary_token,
|
|
22801
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22802
|
+
});
|
|
22803
|
+
return [
|
|
22804
|
+
2,
|
|
22805
|
+
response
|
|
22806
|
+
];
|
|
22807
|
+
case 3:
|
|
22808
|
+
error2 = _state.sent();
|
|
22809
|
+
logError("Failed to download user account statement V2", {
|
|
22810
|
+
error: error2,
|
|
22811
|
+
params: params,
|
|
22812
|
+
interactor: "getUserAccountsStatementDownloadV2"
|
|
22813
|
+
});
|
|
22814
|
+
throw error2;
|
|
22815
|
+
case 4:
|
|
22816
|
+
return [
|
|
22817
|
+
2
|
|
22818
|
+
];
|
|
22819
|
+
}
|
|
22820
|
+
});
|
|
22821
|
+
});
|
|
22822
|
+
return _getUserAccountsStatementDownloadV2.apply(this, arguments);
|
|
22823
|
+
}
|
|
22824
|
+
__name(getUserAccountsStatementDownloadV2, "getUserAccountsStatementDownloadV2");
|
|
22825
|
+
// src/statements/ioc/statementsIOCModules.ts
|
|
22826
|
+
// src/statements/adapters/rest/RestStatementsRepository.ts
|
|
22827
|
+
function _ts_decorate70(decorators, target, key, desc) {
|
|
22828
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22829
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22830
|
+
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;
|
|
22831
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22832
|
+
}
|
|
22833
|
+
__name(_ts_decorate70, "_ts_decorate");
|
|
22834
|
+
function _ts_metadata18(k, v) {
|
|
22835
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22836
|
+
}
|
|
22837
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
22838
|
+
var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
22839
|
+
function _RestStatementsRepository() {
|
|
22840
|
+
_class_call_check(this, _RestStatementsRepository);
|
|
22841
|
+
__publicField(this, "httpClient");
|
|
22842
|
+
}
|
|
22843
|
+
_create_class(_RestStatementsRepository, [
|
|
22844
|
+
{
|
|
22845
|
+
key: "getStatements",
|
|
22846
|
+
value: function getStatements(paginationParams) {
|
|
22847
|
+
var _this = this;
|
|
22848
|
+
return _async_to_generator(function() {
|
|
22849
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
22850
|
+
return _ts_generator(this, function(_state) {
|
|
22851
|
+
switch(_state.label){
|
|
22852
|
+
case 0:
|
|
22853
|
+
logDebug("Getting statements", {
|
|
22854
|
+
paginationParams: paginationParams,
|
|
22855
|
+
adapter: "RestStatementsRepository"
|
|
22856
|
+
});
|
|
22857
|
+
_state.label = 1;
|
|
22858
|
+
case 1:
|
|
22859
|
+
_state.trys.push([
|
|
22860
|
+
1,
|
|
22861
|
+
3,
|
|
22862
|
+
,
|
|
22863
|
+
4
|
|
22864
|
+
]);
|
|
22865
|
+
queryParams = _this.convertPaginationParamsToQueryParams(paginationParams);
|
|
22866
|
+
queryParams.set("direct", "true");
|
|
22867
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
22868
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/statements?").concat(queryParams.toString());
|
|
22869
|
+
return [
|
|
22870
|
+
4,
|
|
22871
|
+
_this.httpClient.get(path)
|
|
22872
|
+
];
|
|
22873
|
+
case 2:
|
|
22874
|
+
response = _state.sent();
|
|
22875
|
+
logInfo("Statements retrieved successfully", {
|
|
22876
|
+
statementCount: _optionalChain([
|
|
22877
|
+
response,
|
|
22878
|
+
'access',
|
|
22879
|
+
function(_159) {
|
|
22880
|
+
return _159.data;
|
|
22881
|
+
},
|
|
22882
|
+
'optionalAccess',
|
|
22883
|
+
function(_160) {
|
|
22884
|
+
return _160.length;
|
|
22885
|
+
}
|
|
22886
|
+
]) || 0,
|
|
22887
|
+
hasMore: response.is_more,
|
|
22888
|
+
adapter: "RestStatementsRepository"
|
|
22889
|
+
});
|
|
22890
|
+
return [
|
|
22891
|
+
2,
|
|
22892
|
+
response
|
|
22893
|
+
];
|
|
22894
|
+
case 3:
|
|
22895
|
+
err = _state.sent();
|
|
22896
|
+
logError("Unable to retrieve statements", {
|
|
22897
|
+
err: err,
|
|
22898
|
+
paginationParams: paginationParams,
|
|
22899
|
+
adapter: "RestStatementsRepository"
|
|
22900
|
+
});
|
|
22901
|
+
throw new MqSDKError("Unable to retrieve statements", err);
|
|
22902
|
+
case 4:
|
|
22903
|
+
return [
|
|
22904
|
+
2
|
|
22905
|
+
];
|
|
22906
|
+
}
|
|
22907
|
+
});
|
|
22908
|
+
})();
|
|
22909
|
+
}
|
|
22910
|
+
},
|
|
22911
|
+
{
|
|
22912
|
+
key: "getStatementAsset",
|
|
22913
|
+
value: function getStatementAsset(issuedDate, accountToken) {
|
|
22914
|
+
var _this = this;
|
|
22915
|
+
return _async_to_generator(function() {
|
|
22916
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
22917
|
+
return _ts_generator(this, function(_state) {
|
|
22918
|
+
switch(_state.label){
|
|
22919
|
+
case 0:
|
|
22920
|
+
logDebug("Getting statement asset", {
|
|
22921
|
+
issuedDate: issuedDate,
|
|
22922
|
+
accountToken: accountToken,
|
|
22923
|
+
adapter: "RestStatementsRepository"
|
|
22924
|
+
});
|
|
22925
|
+
_state.label = 1;
|
|
22926
|
+
case 1:
|
|
22927
|
+
_state.trys.push([
|
|
22928
|
+
1,
|
|
22929
|
+
3,
|
|
22930
|
+
,
|
|
22931
|
+
4
|
|
22932
|
+
]);
|
|
22933
|
+
queryParams = new URLSearchParams();
|
|
22934
|
+
queryParams.set("direct", "true");
|
|
22935
|
+
if (accountToken) {
|
|
22936
|
+
queryParams.set("account_token", accountToken);
|
|
22937
|
+
}
|
|
22938
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
22939
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
|
|
22940
|
+
return [
|
|
22941
|
+
4,
|
|
22942
|
+
_this.httpClient.get(path)
|
|
22943
|
+
];
|
|
22944
|
+
case 2:
|
|
22945
|
+
response = _state.sent();
|
|
22946
|
+
logInfo("Statement asset retrieved successfully", {
|
|
22947
|
+
issuedDate: issuedDate,
|
|
22948
|
+
accountToken: accountToken,
|
|
22949
|
+
adapter: "RestStatementsRepository"
|
|
22950
|
+
});
|
|
22951
|
+
return [
|
|
22952
|
+
2,
|
|
22953
|
+
response
|
|
22954
|
+
];
|
|
22955
|
+
case 3:
|
|
22956
|
+
err = _state.sent();
|
|
22957
|
+
logError("Unable to retrieve statement asset", {
|
|
22958
|
+
err: err,
|
|
22959
|
+
issuedDate: issuedDate,
|
|
22960
|
+
accountToken: accountToken,
|
|
22961
|
+
adapter: "RestStatementsRepository"
|
|
22962
|
+
});
|
|
22963
|
+
throw new MqSDKError("Unable to retrieve statement asset", err);
|
|
22964
|
+
case 4:
|
|
22965
|
+
return [
|
|
22966
|
+
2
|
|
22967
|
+
];
|
|
22968
|
+
}
|
|
22969
|
+
});
|
|
22970
|
+
})();
|
|
22971
|
+
}
|
|
22972
|
+
},
|
|
22973
|
+
{
|
|
22974
|
+
key: "getUserAccountStatementsV2",
|
|
22975
|
+
value: function getUserAccountStatementsV2(params) {
|
|
22976
|
+
var _this = this;
|
|
22977
|
+
return _async_to_generator(function() {
|
|
22978
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
22979
|
+
return _ts_generator(this, function(_state) {
|
|
22980
|
+
switch(_state.label){
|
|
22981
|
+
case 0:
|
|
22982
|
+
logDebug("Getting user account statements", {
|
|
22983
|
+
params: params,
|
|
22984
|
+
adapter: "RestStatementsRepository"
|
|
22985
|
+
});
|
|
22986
|
+
_state.label = 1;
|
|
22987
|
+
case 1:
|
|
22988
|
+
_state.trys.push([
|
|
22989
|
+
1,
|
|
22990
|
+
3,
|
|
22991
|
+
,
|
|
22992
|
+
4
|
|
22993
|
+
]);
|
|
22994
|
+
queryParams = _this.convertUserAccountStatementsParams(params);
|
|
22995
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
22996
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements?").concat(queryParams.toString());
|
|
22997
|
+
return [
|
|
22998
|
+
4,
|
|
22999
|
+
_this.httpClient.get(path)
|
|
23000
|
+
];
|
|
23001
|
+
case 2:
|
|
23002
|
+
response = _state.sent();
|
|
23003
|
+
logInfo("User account statements retrieved successfully", {
|
|
23004
|
+
count: response.count,
|
|
23005
|
+
hasMore: response.is_more,
|
|
23006
|
+
adapter: "RestStatementsRepository"
|
|
23007
|
+
});
|
|
23008
|
+
return [
|
|
23009
|
+
2,
|
|
23010
|
+
response
|
|
23011
|
+
];
|
|
23012
|
+
case 3:
|
|
23013
|
+
err = _state.sent();
|
|
23014
|
+
logError("Unable to retrieve user account statements", {
|
|
23015
|
+
err: err,
|
|
23016
|
+
params: params,
|
|
23017
|
+
adapter: "RestStatementsRepository"
|
|
23018
|
+
});
|
|
23019
|
+
throw new MqSDKError("Unable to retrieve user account statements", err);
|
|
23020
|
+
case 4:
|
|
23021
|
+
return [
|
|
23022
|
+
2
|
|
23023
|
+
];
|
|
23024
|
+
}
|
|
23025
|
+
});
|
|
23026
|
+
})();
|
|
23027
|
+
}
|
|
23028
|
+
},
|
|
23029
|
+
{
|
|
23030
|
+
key: "getUserAccountsStatementDownloadV2",
|
|
23031
|
+
value: function getUserAccountsStatementDownloadV2(params) {
|
|
23032
|
+
var _this = this;
|
|
23033
|
+
return _async_to_generator(function() {
|
|
23034
|
+
var queryParams, cuiApiBaseUrl, path, response, err;
|
|
23035
|
+
return _ts_generator(this, function(_state) {
|
|
23036
|
+
switch(_state.label){
|
|
23037
|
+
case 0:
|
|
23038
|
+
logDebug("Downloading statement", {
|
|
23039
|
+
params: params,
|
|
23040
|
+
adapter: "RestStatementsRepository"
|
|
23041
|
+
});
|
|
23042
|
+
_state.label = 1;
|
|
23043
|
+
case 1:
|
|
23044
|
+
_state.trys.push([
|
|
23045
|
+
1,
|
|
23046
|
+
3,
|
|
23047
|
+
,
|
|
23048
|
+
4
|
|
23049
|
+
]);
|
|
23050
|
+
queryParams = new URLSearchParams([
|
|
23051
|
+
[
|
|
23052
|
+
"account_token",
|
|
23053
|
+
params.account_token
|
|
23054
|
+
]
|
|
23055
|
+
]);
|
|
23056
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
23057
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements/download?statement_summary_token=").concat(params.statement_summary_token, "&").concat(queryParams.toString());
|
|
23058
|
+
return [
|
|
23059
|
+
4,
|
|
23060
|
+
_this.httpClient.get(path)
|
|
23061
|
+
];
|
|
23062
|
+
case 2:
|
|
23063
|
+
response = _state.sent();
|
|
23064
|
+
logInfo("Statement downloaded successfully", {
|
|
23065
|
+
statement_summary_token: params.statement_summary_token,
|
|
23066
|
+
adapter: "RestStatementsRepository"
|
|
23067
|
+
});
|
|
23068
|
+
return [
|
|
23069
|
+
2,
|
|
23070
|
+
response
|
|
23071
|
+
];
|
|
23072
|
+
case 3:
|
|
23073
|
+
err = _state.sent();
|
|
23074
|
+
logError("Unable to download statement", {
|
|
23075
|
+
err: err,
|
|
23076
|
+
params: params,
|
|
23077
|
+
adapter: "RestStatementsRepository"
|
|
23078
|
+
});
|
|
23079
|
+
throw new MqSDKError("Unable to download statement", err);
|
|
23080
|
+
case 4:
|
|
23081
|
+
return [
|
|
23082
|
+
2
|
|
23083
|
+
];
|
|
23084
|
+
}
|
|
23085
|
+
});
|
|
23086
|
+
})();
|
|
23087
|
+
}
|
|
23088
|
+
},
|
|
23089
|
+
{
|
|
23090
|
+
key: "convertPaginationParamsToQueryParams",
|
|
23091
|
+
value: function convertPaginationParamsToQueryParams(paginationParams) {
|
|
23092
|
+
var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
23093
|
+
var queryParams = new URLSearchParams([
|
|
23094
|
+
[
|
|
23095
|
+
"issued_end_date",
|
|
23096
|
+
issuedEndDate
|
|
23097
|
+
],
|
|
23098
|
+
[
|
|
23099
|
+
"issued_start_date",
|
|
23100
|
+
issuedStartDate
|
|
23101
|
+
]
|
|
23102
|
+
].concat(_to_consumable_array(accountToken ? [
|
|
23103
|
+
[
|
|
23104
|
+
"account_token",
|
|
23105
|
+
accountToken
|
|
23106
|
+
]
|
|
23107
|
+
] : [])));
|
|
23108
|
+
return queryParams;
|
|
23109
|
+
}
|
|
23110
|
+
},
|
|
23111
|
+
{
|
|
23112
|
+
key: "convertUserAccountStatementsParams",
|
|
23113
|
+
value: function convertUserAccountStatementsParams(params) {
|
|
23114
|
+
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;
|
|
23115
|
+
var queryParams = new URLSearchParams([
|
|
23116
|
+
[
|
|
23117
|
+
"account_token",
|
|
23118
|
+
account_token
|
|
23119
|
+
],
|
|
23120
|
+
[
|
|
23121
|
+
"start_index",
|
|
23122
|
+
start_index.toString()
|
|
23123
|
+
],
|
|
23124
|
+
[
|
|
23125
|
+
"count",
|
|
23126
|
+
count.toString()
|
|
23127
|
+
]
|
|
23128
|
+
]);
|
|
23129
|
+
if (sort_by) {
|
|
23130
|
+
queryParams.append("sort_by", sort_by);
|
|
23131
|
+
}
|
|
23132
|
+
return queryParams;
|
|
23133
|
+
}
|
|
23134
|
+
}
|
|
23135
|
+
]);
|
|
23136
|
+
return _RestStatementsRepository;
|
|
23137
|
+
}();
|
|
23138
|
+
__name(_RestStatementsRepository, "RestStatementsRepository");
|
|
23139
|
+
var RestStatementsRepository = _RestStatementsRepository;
|
|
23140
|
+
_ts_decorate70([
|
|
23141
|
+
_inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
23142
|
+
_ts_metadata18("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
23143
|
+
], RestStatementsRepository.prototype, "httpClient", void 0);
|
|
23144
|
+
RestStatementsRepository = _ts_decorate70([
|
|
23145
|
+
_inversify.injectable.call(void 0)
|
|
23146
|
+
], RestStatementsRepository);
|
|
23147
|
+
// src/statements/ioc/statementsIOCModules.ts
|
|
23148
|
+
var statementsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
|
|
23149
|
+
bind(ITF_STATEMENTS).to(RestStatementsRepository).inSingletonScope();
|
|
23150
|
+
bind(ITF_STATEMENT_ASSET).to(RestStatementsRepository).inSingletonScope();
|
|
23151
|
+
});
|
|
22702
23152
|
// src/statements/adapters/rest/httpMocks.ts
|
|
22703
23153
|
var handleAuthorizationCheck = /* @__PURE__ */ __name(function(authorization) {
|
|
22704
23154
|
var errorResponse2 = null;
|
|
@@ -22767,6 +23217,45 @@ var mswStatementsHandlers = [
|
|
|
22767
23217
|
response.direct_mode = true;
|
|
22768
23218
|
}
|
|
22769
23219
|
return HttpResponse.json(response);
|
|
23220
|
+
}),
|
|
23221
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements"), function(param) {
|
|
23222
|
+
var request = param.request;
|
|
23223
|
+
var authorization = request.headers.get("authorization");
|
|
23224
|
+
var queryParams = new URLSearchParams(new URL(request.url).search);
|
|
23225
|
+
var accountToken = queryParams.get("account_token");
|
|
23226
|
+
var startIndex = parseInt(queryParams.get("start_index") || "0");
|
|
23227
|
+
var count = parseInt(queryParams.get("count") || "10");
|
|
23228
|
+
var sortBy = queryParams.get("sort_by");
|
|
23229
|
+
var authorizationError = handleAuthorizationCheck(authorization);
|
|
23230
|
+
if (authorizationError !== null) {
|
|
23231
|
+
return authorizationError;
|
|
23232
|
+
}
|
|
23233
|
+
var params = _object_spread({
|
|
23234
|
+
account_token: accountToken,
|
|
23235
|
+
start_index: startIndex,
|
|
23236
|
+
count: count
|
|
23237
|
+
}, sortBy && {
|
|
23238
|
+
sort_by: sortBy
|
|
23239
|
+
});
|
|
23240
|
+
var response = handleGetUserAccountStatementsV2(params);
|
|
23241
|
+
return HttpResponse.json(response);
|
|
23242
|
+
}),
|
|
23243
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements/download"), function(param) {
|
|
23244
|
+
var request = param.request;
|
|
23245
|
+
var authorization = request.headers.get("authorization");
|
|
23246
|
+
var queryParams = new URLSearchParams(new URL(request.url).search);
|
|
23247
|
+
var statementSummaryToken = queryParams.get("statement_summary_token");
|
|
23248
|
+
var accountToken = queryParams.get("account_token");
|
|
23249
|
+
var authorizationError = handleAuthorizationCheck(authorization);
|
|
23250
|
+
if (authorizationError !== null) {
|
|
23251
|
+
return authorizationError;
|
|
23252
|
+
}
|
|
23253
|
+
var params = {
|
|
23254
|
+
statement_summary_token: statementSummaryToken,
|
|
23255
|
+
account_token: accountToken
|
|
23256
|
+
};
|
|
23257
|
+
var response = handleGetUserAccountsStatementDownloadV2(params);
|
|
23258
|
+
return HttpResponse.json(response);
|
|
22770
23259
|
})
|
|
22771
23260
|
];
|
|
22772
23261
|
// src/themes/base/constants/defaultTheme.ts
|
|
@@ -23318,13 +23807,13 @@ var _iThemeRepository = function _iThemeRepository() {
|
|
|
23318
23807
|
__name(_iThemeRepository, "iThemeRepository");
|
|
23319
23808
|
var iThemeRepository = _iThemeRepository;
|
|
23320
23809
|
// src/themes/base/repositories/MockThemeRepository.ts
|
|
23321
|
-
function
|
|
23810
|
+
function _ts_decorate71(decorators, target, key, desc) {
|
|
23322
23811
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23323
23812
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23324
23813
|
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;
|
|
23325
23814
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23326
23815
|
}
|
|
23327
|
-
__name(
|
|
23816
|
+
__name(_ts_decorate71, "_ts_decorate");
|
|
23328
23817
|
var TEST_THEME_NAME = "myTestTheme";
|
|
23329
23818
|
var TEST_THEME_OBJECT = {
|
|
23330
23819
|
colors: {
|
|
@@ -23366,7 +23855,7 @@ var _MockThemeRepository = /*#__PURE__*/ function() {
|
|
|
23366
23855
|
}();
|
|
23367
23856
|
__name(_MockThemeRepository, "MockThemeRepository");
|
|
23368
23857
|
var MockThemeRepository = _MockThemeRepository;
|
|
23369
|
-
MockThemeRepository = exports.MockThemeRepository =
|
|
23858
|
+
MockThemeRepository = exports.MockThemeRepository = _ts_decorate71([
|
|
23370
23859
|
_inversify.injectable.call(void 0)
|
|
23371
23860
|
], MockThemeRepository);
|
|
23372
23861
|
// src/themes/base/repositories/iIconsRepository.ts
|
|
@@ -23381,13 +23870,13 @@ var mockThemesIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
|
|
|
23381
23870
|
});
|
|
23382
23871
|
// src/themes/ioc/themesIOCModule.ts
|
|
23383
23872
|
// src/themes/adapters/rest/RestThemeRepository.ts
|
|
23384
|
-
function
|
|
23873
|
+
function _ts_decorate72(decorators, target, key, desc) {
|
|
23385
23874
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23386
23875
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23387
23876
|
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;
|
|
23388
23877
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23389
23878
|
}
|
|
23390
|
-
__name(
|
|
23879
|
+
__name(_ts_decorate72, "_ts_decorate");
|
|
23391
23880
|
function _ts_metadata19(k, v) {
|
|
23392
23881
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
23393
23882
|
}
|
|
@@ -23458,11 +23947,11 @@ var _RestThemeRepository = /*#__PURE__*/ function() {
|
|
|
23458
23947
|
}();
|
|
23459
23948
|
__name(_RestThemeRepository, "RestThemeRepository");
|
|
23460
23949
|
var RestThemeRepository = _RestThemeRepository;
|
|
23461
|
-
|
|
23950
|
+
_ts_decorate72([
|
|
23462
23951
|
_inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
23463
23952
|
_ts_metadata19("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
23464
23953
|
], RestThemeRepository.prototype, "httpClient", void 0);
|
|
23465
|
-
RestThemeRepository =
|
|
23954
|
+
RestThemeRepository = _ts_decorate72([
|
|
23466
23955
|
_inversify.injectable.call(void 0)
|
|
23467
23956
|
], RestThemeRepository);
|
|
23468
23957
|
// src/themes/ioc/themesIOCModule.ts
|
|
@@ -23471,13 +23960,13 @@ var themesIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
|
|
|
23471
23960
|
});
|
|
23472
23961
|
// src/themes/ioc/iconsIOCModule.ts
|
|
23473
23962
|
// src/themes/adapters/rest/StaticIconsRepository.ts
|
|
23474
|
-
function
|
|
23963
|
+
function _ts_decorate73(decorators, target, key, desc) {
|
|
23475
23964
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23476
23965
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23477
23966
|
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;
|
|
23478
23967
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23479
23968
|
}
|
|
23480
|
-
__name(
|
|
23969
|
+
__name(_ts_decorate73, "_ts_decorate");
|
|
23481
23970
|
var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
23482
23971
|
function _StaticIconsRepository() {
|
|
23483
23972
|
_class_call_check(this, _StaticIconsRepository);
|
|
@@ -23574,7 +24063,7 @@ var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
|
23574
24063
|
}();
|
|
23575
24064
|
__name(_StaticIconsRepository, "StaticIconsRepository");
|
|
23576
24065
|
var StaticIconsRepository = _StaticIconsRepository;
|
|
23577
|
-
StaticIconsRepository =
|
|
24066
|
+
StaticIconsRepository = _ts_decorate73([
|
|
23578
24067
|
_inversify.injectable.call(void 0)
|
|
23579
24068
|
], StaticIconsRepository);
|
|
23580
24069
|
// src/themes/ioc/iconsIOCModule.ts
|
|
@@ -23582,19 +24071,19 @@ var iconsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
|
|
|
23582
24071
|
bind(ITF_ICONS_REPOSITORY).to(StaticIconsRepository).inSingletonScope();
|
|
23583
24072
|
});
|
|
23584
24073
|
// src/transactions/base/repositories/iTransactionsRepository.ts
|
|
23585
|
-
function
|
|
24074
|
+
function _ts_decorate74(decorators, target, key, desc) {
|
|
23586
24075
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23587
24076
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23588
24077
|
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;
|
|
23589
24078
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23590
24079
|
}
|
|
23591
|
-
__name(
|
|
24080
|
+
__name(_ts_decorate74, "_ts_decorate");
|
|
23592
24081
|
var _iTransactionsRepository = function _iTransactionsRepository() {
|
|
23593
24082
|
_class_call_check(this, _iTransactionsRepository);
|
|
23594
24083
|
};
|
|
23595
24084
|
__name(_iTransactionsRepository, "iTransactionsRepository");
|
|
23596
24085
|
var iTransactionsRepository = _iTransactionsRepository;
|
|
23597
|
-
iTransactionsRepository = exports.iTransactionsRepository =
|
|
24086
|
+
iTransactionsRepository = exports.iTransactionsRepository = _ts_decorate74([
|
|
23598
24087
|
_inversify.injectable.call(void 0)
|
|
23599
24088
|
], iTransactionsRepository);
|
|
23600
24089
|
// src/transactions/base/repositories/MockTransactionsRepository.ts
|
|
@@ -23611,13 +24100,13 @@ var TransactionDetailsBannerType;
|
|
|
23611
24100
|
TransactionDetailsBannerType2["WARNING"] = "WARNING";
|
|
23612
24101
|
})(TransactionDetailsBannerType || (TransactionDetailsBannerType = exports.TransactionDetailsBannerType = {}));
|
|
23613
24102
|
// src/transactions/base/repositories/MockTransactionsRepository.ts
|
|
23614
|
-
function
|
|
24103
|
+
function _ts_decorate75(decorators, target, key, desc) {
|
|
23615
24104
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23616
24105
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23617
24106
|
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;
|
|
23618
24107
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23619
24108
|
}
|
|
23620
|
-
__name(
|
|
24109
|
+
__name(_ts_decorate75, "_ts_decorate");
|
|
23621
24110
|
var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
23622
24111
|
function _MockTransactionsRepository() {
|
|
23623
24112
|
_class_call_check(this, _MockTransactionsRepository);
|
|
@@ -23779,7 +24268,7 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23779
24268
|
}();
|
|
23780
24269
|
__name(_MockTransactionsRepository, "MockTransactionsRepository");
|
|
23781
24270
|
var MockTransactionsRepository = _MockTransactionsRepository;
|
|
23782
|
-
MockTransactionsRepository = exports.MockTransactionsRepository =
|
|
24271
|
+
MockTransactionsRepository = exports.MockTransactionsRepository = _ts_decorate75([
|
|
23783
24272
|
_inversify.injectable.call(void 0)
|
|
23784
24273
|
], MockTransactionsRepository);
|
|
23785
24274
|
// src/transactions/ioc/symbols.ts
|
|
@@ -24144,13 +24633,13 @@ var Direction;
|
|
|
24144
24633
|
var PENDING_QUERY = "PENDING";
|
|
24145
24634
|
var NON_PENDING_QUERY = "COMPLETION,DECLINED";
|
|
24146
24635
|
// src/transactions/adapters/rest/RestTransactionsRepository.ts
|
|
24147
|
-
function
|
|
24636
|
+
function _ts_decorate76(decorators, target, key, desc) {
|
|
24148
24637
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24149
24638
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24150
24639
|
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;
|
|
24151
24640
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24152
24641
|
}
|
|
24153
|
-
__name(
|
|
24642
|
+
__name(_ts_decorate76, "_ts_decorate");
|
|
24154
24643
|
function _ts_metadata20(k, v) {
|
|
24155
24644
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24156
24645
|
}
|
|
@@ -24412,7 +24901,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24412
24901
|
value: function getTransactionByToken(request) {
|
|
24413
24902
|
var _this = this;
|
|
24414
24903
|
return _async_to_generator(function() {
|
|
24415
|
-
var cuiApiBaseUrl, queryParams, queryString, path,
|
|
24904
|
+
var cuiApiBaseUrl, queryParams, queryString, path, response, err;
|
|
24416
24905
|
return _ts_generator(this, function(_state) {
|
|
24417
24906
|
switch(_state.label){
|
|
24418
24907
|
case 0:
|
|
@@ -24438,12 +24927,9 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24438
24927
|
}
|
|
24439
24928
|
queryString = queryParams.toString();
|
|
24440
24929
|
path = "".concat(cuiApiBaseUrl, "/api/v2/transactions/").concat(request.transaction_token).concat(queryString ? "?".concat(queryString) : "");
|
|
24441
|
-
params = {
|
|
24442
|
-
headers: getCommonApiHeaders()
|
|
24443
|
-
};
|
|
24444
24930
|
return [
|
|
24445
24931
|
4,
|
|
24446
|
-
_this.httpClient.get(path
|
|
24932
|
+
_this.httpClient.get(path)
|
|
24447
24933
|
];
|
|
24448
24934
|
case 2:
|
|
24449
24935
|
response = _state.sent();
|
|
@@ -24477,11 +24963,11 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24477
24963
|
}();
|
|
24478
24964
|
__name(_RestTransactionsRepository, "RestTransactionsRepository");
|
|
24479
24965
|
var RestTransactionsRepository = _RestTransactionsRepository;
|
|
24480
|
-
|
|
24966
|
+
_ts_decorate76([
|
|
24481
24967
|
_inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
24482
24968
|
_ts_metadata20("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
24483
24969
|
], RestTransactionsRepository.prototype, "httpClient", void 0);
|
|
24484
|
-
RestTransactionsRepository =
|
|
24970
|
+
RestTransactionsRepository = _ts_decorate76([
|
|
24485
24971
|
_inversify.injectable.call(void 0)
|
|
24486
24972
|
], RestTransactionsRepository);
|
|
24487
24973
|
// src/transactions/ioc/transactionsIOCModule.ts
|
|
@@ -24960,12 +25446,12 @@ var filterMockTransactionsByStatus = /* @__PURE__ */ __name(function(statuses) {
|
|
|
24960
25446
|
return statuses.includes(_optionalChain([
|
|
24961
25447
|
status,
|
|
24962
25448
|
'optionalAccess',
|
|
24963
|
-
function(
|
|
24964
|
-
return
|
|
25449
|
+
function(_161) {
|
|
25450
|
+
return _161.toUpperCase;
|
|
24965
25451
|
},
|
|
24966
25452
|
'call',
|
|
24967
|
-
function(
|
|
24968
|
-
return
|
|
25453
|
+
function(_162) {
|
|
25454
|
+
return _162();
|
|
24969
25455
|
}
|
|
24970
25456
|
]));
|
|
24971
25457
|
});
|
|
@@ -25017,8 +25503,8 @@ var mswTransactionsHandlers = [
|
|
|
25017
25503
|
if (_optionalChain([
|
|
25018
25504
|
queryStatus,
|
|
25019
25505
|
'optionalAccess',
|
|
25020
|
-
function(
|
|
25021
|
-
return
|
|
25506
|
+
function(_163) {
|
|
25507
|
+
return _163[0];
|
|
25022
25508
|
}
|
|
25023
25509
|
]) === "PENDING") {
|
|
25024
25510
|
is_more = filteredMockData.length > 10;
|
|
@@ -25559,13 +26045,13 @@ var TransactionChallengeAuthenticationMethod;
|
|
|
25559
26045
|
TransactionChallengeAuthenticationMethod2["Other"] = "OTHER";
|
|
25560
26046
|
})(TransactionChallengeAuthenticationMethod || (TransactionChallengeAuthenticationMethod = exports.TransactionChallengeAuthenticationMethod = {}));
|
|
25561
26047
|
// src/wla/adapters/RestWlaService.ts
|
|
25562
|
-
function
|
|
26048
|
+
function _ts_decorate77(decorators, target, key, desc) {
|
|
25563
26049
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25564
26050
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
25565
26051
|
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;
|
|
25566
26052
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25567
26053
|
}
|
|
25568
|
-
__name(
|
|
26054
|
+
__name(_ts_decorate77, "_ts_decorate");
|
|
25569
26055
|
function _ts_metadata21(k, v) {
|
|
25570
26056
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25571
26057
|
}
|
|
@@ -25596,8 +26082,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25596
26082
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25597
26083
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25598
26084
|
params = {
|
|
25599
|
-
method: "POST",
|
|
25600
|
-
headers: getCommonApiHeaders(),
|
|
25601
26085
|
body: JSON.stringify({
|
|
25602
26086
|
old_status: oldStatus,
|
|
25603
26087
|
new_status: newStatus
|
|
@@ -25630,7 +26114,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25630
26114
|
value: function getUserProfileDetails() {
|
|
25631
26115
|
var _this = this;
|
|
25632
26116
|
return _async_to_generator(function() {
|
|
25633
|
-
var cuiApiBaseUrl, path,
|
|
26117
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
25634
26118
|
return _ts_generator(this, function(_state) {
|
|
25635
26119
|
switch(_state.label){
|
|
25636
26120
|
case 0:
|
|
@@ -25647,12 +26131,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25647
26131
|
]);
|
|
25648
26132
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25649
26133
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/profile");
|
|
25650
|
-
params = {
|
|
25651
|
-
headers: getCommonApiHeaders()
|
|
25652
|
-
};
|
|
25653
26134
|
return [
|
|
25654
26135
|
4,
|
|
25655
|
-
_this.httpClient.get(path
|
|
26136
|
+
_this.httpClient.get(path)
|
|
25656
26137
|
];
|
|
25657
26138
|
case 2:
|
|
25658
26139
|
data = _state.sent();
|
|
@@ -25702,8 +26183,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25702
26183
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25703
26184
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/create-card");
|
|
25704
26185
|
params = {
|
|
25705
|
-
method: "POST",
|
|
25706
|
-
headers: getCommonApiHeaders(),
|
|
25707
26186
|
body: JSON.stringify(requestBody)
|
|
25708
26187
|
};
|
|
25709
26188
|
return [
|
|
@@ -25761,8 +26240,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25761
26240
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25762
26241
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/set-pin");
|
|
25763
26242
|
params = {
|
|
25764
|
-
method: "POST",
|
|
25765
|
-
headers: getCommonApiHeaders(),
|
|
25766
26243
|
body: JSON.stringify({
|
|
25767
26244
|
card_token: cardToken,
|
|
25768
26245
|
pin: pin,
|
|
@@ -25825,8 +26302,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25825
26302
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25826
26303
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25827
26304
|
params = {
|
|
25828
|
-
method: "POST",
|
|
25829
|
-
headers: getCommonApiHeaders(),
|
|
25830
26305
|
body: JSON.stringify({
|
|
25831
26306
|
old_status: OnboardingStatus.ACCOUNT_ACTIVATED,
|
|
25832
26307
|
new_status: OnboardingStatus.ACCOUNT_VERIFIED
|
|
@@ -25933,8 +26408,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25933
26408
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25934
26409
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25935
26410
|
params = {
|
|
25936
|
-
method: "POST",
|
|
25937
|
-
headers: getCommonApiHeaders(),
|
|
25938
26411
|
body: JSON.stringify({
|
|
25939
26412
|
old_status: OnboardingStatus.CREATED,
|
|
25940
26413
|
new_status: OnboardingStatus.ACCOUNT_ACTIVATED
|
|
@@ -25992,8 +26465,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25992
26465
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25993
26466
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25994
26467
|
params = {
|
|
25995
|
-
method: "POST",
|
|
25996
|
-
headers: getCommonApiHeaders(),
|
|
25997
26468
|
body: JSON.stringify(requestBody)
|
|
25998
26469
|
};
|
|
25999
26470
|
return [
|
|
@@ -26048,8 +26519,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26048
26519
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26049
26520
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
26050
26521
|
params = {
|
|
26051
|
-
method: "PUT",
|
|
26052
|
-
headers: getCommonApiHeaders(),
|
|
26053
26522
|
body: JSON.stringify(requestBody)
|
|
26054
26523
|
};
|
|
26055
26524
|
return [
|
|
@@ -26086,7 +26555,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26086
26555
|
value: function deleteRegistrationForPushNotifications() {
|
|
26087
26556
|
var _this = this;
|
|
26088
26557
|
return _async_to_generator(function() {
|
|
26089
|
-
var cuiApiBaseUrl, path,
|
|
26558
|
+
var cuiApiBaseUrl, path, error2;
|
|
26090
26559
|
return _ts_generator(this, function(_state) {
|
|
26091
26560
|
switch(_state.label){
|
|
26092
26561
|
case 0:
|
|
@@ -26103,13 +26572,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26103
26572
|
]);
|
|
26104
26573
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26105
26574
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
26106
|
-
params = {
|
|
26107
|
-
method: "DELETE",
|
|
26108
|
-
headers: getCommonApiHeaders()
|
|
26109
|
-
};
|
|
26110
26575
|
return [
|
|
26111
26576
|
4,
|
|
26112
|
-
_this.httpClient.delete(path
|
|
26577
|
+
_this.httpClient.delete(path)
|
|
26113
26578
|
];
|
|
26114
26579
|
case 2:
|
|
26115
26580
|
_state.sent();
|
|
@@ -26141,7 +26606,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26141
26606
|
value: function getOffers() {
|
|
26142
26607
|
var _this = this;
|
|
26143
26608
|
return _async_to_generator(function() {
|
|
26144
|
-
var cuiApiBaseUrl, path,
|
|
26609
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26145
26610
|
return _ts_generator(this, function(_state) {
|
|
26146
26611
|
switch(_state.label){
|
|
26147
26612
|
case 0:
|
|
@@ -26158,12 +26623,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26158
26623
|
]);
|
|
26159
26624
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26160
26625
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offers");
|
|
26161
|
-
params = {
|
|
26162
|
-
headers: getCommonApiHeaders()
|
|
26163
|
-
};
|
|
26164
26626
|
return [
|
|
26165
26627
|
4,
|
|
26166
|
-
_this.httpClient.get(path
|
|
26628
|
+
_this.httpClient.get(path)
|
|
26167
26629
|
];
|
|
26168
26630
|
case 2:
|
|
26169
26631
|
data = _state.sent();
|
|
@@ -26195,7 +26657,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26195
26657
|
value: function getOfferDetails(offerId) {
|
|
26196
26658
|
var _this = this;
|
|
26197
26659
|
return _async_to_generator(function() {
|
|
26198
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
26660
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
26199
26661
|
return _ts_generator(this, function(_state) {
|
|
26200
26662
|
switch(_state.label){
|
|
26201
26663
|
case 0:
|
|
@@ -26216,12 +26678,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26216
26678
|
offer_id: offerId
|
|
26217
26679
|
});
|
|
26218
26680
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offer?").concat(queryParams.toString());
|
|
26219
|
-
params = {
|
|
26220
|
-
headers: getCommonApiHeaders()
|
|
26221
|
-
};
|
|
26222
26681
|
return [
|
|
26223
26682
|
4,
|
|
26224
|
-
_this.httpClient.get(path
|
|
26683
|
+
_this.httpClient.get(path)
|
|
26225
26684
|
];
|
|
26226
26685
|
case 2:
|
|
26227
26686
|
data = _state.sent();
|
|
@@ -26255,7 +26714,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26255
26714
|
value: function getAccountTransactions(requestBody) {
|
|
26256
26715
|
var _this = this;
|
|
26257
26716
|
return _async_to_generator(function() {
|
|
26258
|
-
var cuiApiBaseUrl, queryParams, path, status, rest,
|
|
26717
|
+
var cuiApiBaseUrl, queryParams, path, status, rest, data, error2;
|
|
26259
26718
|
return _ts_generator(this, function(_state) {
|
|
26260
26719
|
switch(_state.label){
|
|
26261
26720
|
case 0:
|
|
@@ -26277,24 +26736,24 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26277
26736
|
}, _optionalChain([
|
|
26278
26737
|
requestBody,
|
|
26279
26738
|
'optionalAccess',
|
|
26280
|
-
function(
|
|
26281
|
-
return
|
|
26739
|
+
function(_164) {
|
|
26740
|
+
return _164.status;
|
|
26282
26741
|
}
|
|
26283
26742
|
]) ? {
|
|
26284
26743
|
status: requestBody.status.join(",")
|
|
26285
26744
|
} : {}, _optionalChain([
|
|
26286
26745
|
requestBody,
|
|
26287
26746
|
'optionalAccess',
|
|
26288
|
-
function(
|
|
26289
|
-
return
|
|
26747
|
+
function(_165) {
|
|
26748
|
+
return _165.start_index;
|
|
26290
26749
|
}
|
|
26291
26750
|
]) ? {
|
|
26292
26751
|
start_index: "".concat(requestBody.start_index)
|
|
26293
26752
|
} : {}, _optionalChain([
|
|
26294
26753
|
requestBody,
|
|
26295
26754
|
'optionalAccess',
|
|
26296
|
-
function(
|
|
26297
|
-
return
|
|
26755
|
+
function(_166) {
|
|
26756
|
+
return _166.count;
|
|
26298
26757
|
}
|
|
26299
26758
|
]) ? {
|
|
26300
26759
|
count: "".concat(requestBody.count)
|
|
@@ -26303,12 +26762,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26303
26762
|
status = requestBody.status, rest = _object_without_properties(requestBody, [
|
|
26304
26763
|
"status"
|
|
26305
26764
|
]);
|
|
26306
|
-
params = {
|
|
26307
|
-
headers: getCommonApiHeaders()
|
|
26308
|
-
};
|
|
26309
26765
|
return [
|
|
26310
26766
|
4,
|
|
26311
|
-
_this.httpClient.get(path
|
|
26767
|
+
_this.httpClient.get(path)
|
|
26312
26768
|
];
|
|
26313
26769
|
case 2:
|
|
26314
26770
|
data = _state.sent();
|
|
@@ -26342,7 +26798,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26342
26798
|
value: function getCardByToken(cardToken) {
|
|
26343
26799
|
var _this = this;
|
|
26344
26800
|
return _async_to_generator(function() {
|
|
26345
|
-
var cuiApiBaseUrl, cardArtBaseUrl, queryParams, path,
|
|
26801
|
+
var cuiApiBaseUrl, cardArtBaseUrl, queryParams, path, data, error2;
|
|
26346
26802
|
return _ts_generator(this, function(_state) {
|
|
26347
26803
|
switch(_state.label){
|
|
26348
26804
|
case 0:
|
|
@@ -26364,24 +26820,21 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26364
26820
|
card_token: cardToken
|
|
26365
26821
|
});
|
|
26366
26822
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card?").concat(queryParams.toString());
|
|
26367
|
-
params = {
|
|
26368
|
-
headers: getCommonApiHeaders()
|
|
26369
|
-
};
|
|
26370
26823
|
return [
|
|
26371
26824
|
4,
|
|
26372
|
-
_this.httpClient.get(path
|
|
26825
|
+
_this.httpClient.get(path)
|
|
26373
26826
|
];
|
|
26374
26827
|
case 2:
|
|
26375
26828
|
data = _state.sent();
|
|
26376
26829
|
if (_optionalChain([
|
|
26377
26830
|
data,
|
|
26378
26831
|
'access',
|
|
26379
|
-
function(
|
|
26380
|
-
return
|
|
26832
|
+
function(_167) {
|
|
26833
|
+
return _167.card_art;
|
|
26381
26834
|
},
|
|
26382
26835
|
'optionalAccess',
|
|
26383
|
-
function(
|
|
26384
|
-
return
|
|
26836
|
+
function(_168) {
|
|
26837
|
+
return _168.back;
|
|
26385
26838
|
}
|
|
26386
26839
|
])) {
|
|
26387
26840
|
data.card_art.back = "".concat(cardArtBaseUrl).concat(data.card_art.back);
|
|
@@ -26389,12 +26842,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26389
26842
|
if (_optionalChain([
|
|
26390
26843
|
data,
|
|
26391
26844
|
'access',
|
|
26392
|
-
function(
|
|
26393
|
-
return
|
|
26845
|
+
function(_169) {
|
|
26846
|
+
return _169.card_art;
|
|
26394
26847
|
},
|
|
26395
26848
|
'optionalAccess',
|
|
26396
|
-
function(
|
|
26397
|
-
return
|
|
26849
|
+
function(_170) {
|
|
26850
|
+
return _170.front;
|
|
26398
26851
|
}
|
|
26399
26852
|
])) {
|
|
26400
26853
|
data.card_art.front = "".concat(cardArtBaseUrl).concat(data.card_art.front);
|
|
@@ -26429,7 +26882,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26429
26882
|
value: function getExternalAccount(token) {
|
|
26430
26883
|
var _this = this;
|
|
26431
26884
|
return _async_to_generator(function() {
|
|
26432
|
-
var cuiApiBaseUrl, path,
|
|
26885
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26433
26886
|
return _ts_generator(this, function(_state) {
|
|
26434
26887
|
switch(_state.label){
|
|
26435
26888
|
case 0:
|
|
@@ -26447,12 +26900,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26447
26900
|
]);
|
|
26448
26901
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26449
26902
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
26450
|
-
params = {
|
|
26451
|
-
headers: getCommonApiHeaders()
|
|
26452
|
-
};
|
|
26453
26903
|
return [
|
|
26454
26904
|
4,
|
|
26455
|
-
_this.httpClient.get(path
|
|
26905
|
+
_this.httpClient.get(path)
|
|
26456
26906
|
];
|
|
26457
26907
|
case 2:
|
|
26458
26908
|
data = _state.sent();
|
|
@@ -26486,7 +26936,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26486
26936
|
value: function getExternalAccountList(requestBody) {
|
|
26487
26937
|
var _this = this;
|
|
26488
26938
|
return _async_to_generator(function() {
|
|
26489
|
-
var cuiApiBaseUrl, queryParams, path, status, rest,
|
|
26939
|
+
var cuiApiBaseUrl, queryParams, path, status, rest, data, error2;
|
|
26490
26940
|
return _ts_generator(this, function(_state) {
|
|
26491
26941
|
switch(_state.label){
|
|
26492
26942
|
case 0:
|
|
@@ -26505,32 +26955,32 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26505
26955
|
queryParams = new URLSearchParams(_object_spread({}, _optionalChain([
|
|
26506
26956
|
requestBody,
|
|
26507
26957
|
'optionalAccess',
|
|
26508
|
-
function(
|
|
26509
|
-
return
|
|
26958
|
+
function(_171) {
|
|
26959
|
+
return _171.count;
|
|
26510
26960
|
}
|
|
26511
26961
|
]) ? {
|
|
26512
26962
|
count: "".concat(requestBody.count)
|
|
26513
26963
|
} : {}, _optionalChain([
|
|
26514
26964
|
requestBody,
|
|
26515
26965
|
'optionalAccess',
|
|
26516
|
-
function(
|
|
26517
|
-
return
|
|
26966
|
+
function(_172) {
|
|
26967
|
+
return _172.start_index;
|
|
26518
26968
|
}
|
|
26519
26969
|
]) ? {
|
|
26520
26970
|
start_index: "".concat(requestBody.start_index)
|
|
26521
26971
|
} : {}, _optionalChain([
|
|
26522
26972
|
requestBody,
|
|
26523
26973
|
'optionalAccess',
|
|
26524
|
-
function(
|
|
26525
|
-
return
|
|
26974
|
+
function(_173) {
|
|
26975
|
+
return _173.sort_by;
|
|
26526
26976
|
}
|
|
26527
26977
|
]) ? {
|
|
26528
26978
|
sort_by: "".concat(requestBody.sort_by)
|
|
26529
26979
|
} : {}, _optionalChain([
|
|
26530
26980
|
requestBody,
|
|
26531
26981
|
'optionalAccess',
|
|
26532
|
-
function(
|
|
26533
|
-
return
|
|
26982
|
+
function(_174) {
|
|
26983
|
+
return _174.status;
|
|
26534
26984
|
}
|
|
26535
26985
|
]) ? {
|
|
26536
26986
|
status: requestBody.status.join(",")
|
|
@@ -26539,12 +26989,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26539
26989
|
status = requestBody.status, rest = _object_without_properties(requestBody, [
|
|
26540
26990
|
"status"
|
|
26541
26991
|
]);
|
|
26542
|
-
params = {
|
|
26543
|
-
headers: getCommonApiHeaders()
|
|
26544
|
-
};
|
|
26545
26992
|
return [
|
|
26546
26993
|
4,
|
|
26547
|
-
_this.httpClient.get(path
|
|
26994
|
+
_this.httpClient.get(path)
|
|
26548
26995
|
];
|
|
26549
26996
|
case 2:
|
|
26550
26997
|
data = _state.sent();
|
|
@@ -26560,12 +27007,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26560
27007
|
if (_optionalChain([
|
|
26561
27008
|
error2,
|
|
26562
27009
|
'optionalAccess',
|
|
26563
|
-
function(
|
|
26564
|
-
return
|
|
27010
|
+
function(_175) {
|
|
27011
|
+
return _175.debug;
|
|
26565
27012
|
},
|
|
26566
27013
|
'optionalAccess',
|
|
26567
|
-
function(
|
|
26568
|
-
return
|
|
27014
|
+
function(_176) {
|
|
27015
|
+
return _176.length;
|
|
26569
27016
|
}
|
|
26570
27017
|
])) {
|
|
26571
27018
|
logError("Unable to get external account list with standardized error", {
|
|
@@ -26612,7 +27059,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26612
27059
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts");
|
|
26613
27060
|
params = {
|
|
26614
27061
|
method: "POST",
|
|
26615
|
-
headers: getCommonApiHeaders(),
|
|
26616
27062
|
body: JSON.stringify(requestBody)
|
|
26617
27063
|
};
|
|
26618
27064
|
return [
|
|
@@ -26633,12 +27079,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26633
27079
|
if (_optionalChain([
|
|
26634
27080
|
error2,
|
|
26635
27081
|
'optionalAccess',
|
|
26636
|
-
function(
|
|
26637
|
-
return
|
|
27082
|
+
function(_177) {
|
|
27083
|
+
return _177.debug;
|
|
26638
27084
|
},
|
|
26639
27085
|
'optionalAccess',
|
|
26640
|
-
function(
|
|
26641
|
-
return
|
|
27086
|
+
function(_178) {
|
|
27087
|
+
return _178.length;
|
|
26642
27088
|
}
|
|
26643
27089
|
])) {
|
|
26644
27090
|
logError("Unable to create external account with standardized error", {
|
|
@@ -26685,7 +27131,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26685
27131
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/verification");
|
|
26686
27132
|
params = {
|
|
26687
27133
|
method: "POST",
|
|
26688
|
-
headers: getCommonApiHeaders(),
|
|
26689
27134
|
body: JSON.stringify(requestBody)
|
|
26690
27135
|
};
|
|
26691
27136
|
return [
|
|
@@ -26706,12 +27151,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26706
27151
|
if (_optionalChain([
|
|
26707
27152
|
error2,
|
|
26708
27153
|
'optionalAccess',
|
|
26709
|
-
function(
|
|
26710
|
-
return
|
|
27154
|
+
function(_179) {
|
|
27155
|
+
return _179.debug;
|
|
26711
27156
|
},
|
|
26712
27157
|
'optionalAccess',
|
|
26713
|
-
function(
|
|
26714
|
-
return
|
|
27158
|
+
function(_180) {
|
|
27159
|
+
return _180.length;
|
|
26715
27160
|
}
|
|
26716
27161
|
])) {
|
|
26717
27162
|
logError("Unable to verify external account with standardized error", {
|
|
@@ -26759,7 +27204,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26759
27204
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
26760
27205
|
params = {
|
|
26761
27206
|
method: "PATCH",
|
|
26762
|
-
headers: getCommonApiHeaders(),
|
|
26763
27207
|
body: JSON.stringify(requestBody)
|
|
26764
27208
|
};
|
|
26765
27209
|
return [
|
|
@@ -26781,12 +27225,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26781
27225
|
if (_optionalChain([
|
|
26782
27226
|
error2,
|
|
26783
27227
|
'optionalAccess',
|
|
26784
|
-
function(
|
|
26785
|
-
return
|
|
27228
|
+
function(_181) {
|
|
27229
|
+
return _181.debug;
|
|
26786
27230
|
},
|
|
26787
27231
|
'optionalAccess',
|
|
26788
|
-
function(
|
|
26789
|
-
return
|
|
27232
|
+
function(_182) {
|
|
27233
|
+
return _182.length;
|
|
26790
27234
|
}
|
|
26791
27235
|
])) {
|
|
26792
27236
|
logError("Unable to update external account with standardized error", {
|
|
@@ -26816,7 +27260,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26816
27260
|
value: function getTransactionByToken(transactionToken) {
|
|
26817
27261
|
var _this = this;
|
|
26818
27262
|
return _async_to_generator(function() {
|
|
26819
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27263
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
26820
27264
|
return _ts_generator(this, function(_state) {
|
|
26821
27265
|
switch(_state.label){
|
|
26822
27266
|
case 0:
|
|
@@ -26837,12 +27281,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26837
27281
|
transaction_token: transactionToken
|
|
26838
27282
|
});
|
|
26839
27283
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction?").concat(queryParams.toString());
|
|
26840
|
-
params = {
|
|
26841
|
-
headers: getCommonApiHeaders()
|
|
26842
|
-
};
|
|
26843
27284
|
return [
|
|
26844
27285
|
4,
|
|
26845
|
-
_this.httpClient.get(path
|
|
27286
|
+
_this.httpClient.get(path)
|
|
26846
27287
|
];
|
|
26847
27288
|
case 2:
|
|
26848
27289
|
data = _state.sent();
|
|
@@ -26876,7 +27317,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26876
27317
|
value: function getTransactionChallengeByToken(challengeToken) {
|
|
26877
27318
|
var _this = this;
|
|
26878
27319
|
return _async_to_generator(function() {
|
|
26879
|
-
var cuiApiBaseUrl, path,
|
|
27320
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26880
27321
|
return _ts_generator(this, function(_state) {
|
|
26881
27322
|
switch(_state.label){
|
|
26882
27323
|
case 0:
|
|
@@ -26894,12 +27335,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26894
27335
|
]);
|
|
26895
27336
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26896
27337
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken);
|
|
26897
|
-
params = {
|
|
26898
|
-
headers: getCommonApiHeaders()
|
|
26899
|
-
};
|
|
26900
27338
|
return [
|
|
26901
27339
|
4,
|
|
26902
|
-
_this.httpClient.get(path
|
|
27340
|
+
_this.httpClient.get(path)
|
|
26903
27341
|
];
|
|
26904
27342
|
case 2:
|
|
26905
27343
|
data = _state.sent();
|
|
@@ -26933,7 +27371,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26933
27371
|
value: function getNextTransactionChallenge() {
|
|
26934
27372
|
var _this = this;
|
|
26935
27373
|
return _async_to_generator(function() {
|
|
26936
|
-
var cuiApiBaseUrl, path,
|
|
27374
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
26937
27375
|
return _ts_generator(this, function(_state) {
|
|
26938
27376
|
switch(_state.label){
|
|
26939
27377
|
case 0:
|
|
@@ -26950,12 +27388,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26950
27388
|
]);
|
|
26951
27389
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26952
27390
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/next");
|
|
26953
|
-
params = {
|
|
26954
|
-
headers: getCommonApiHeaders()
|
|
26955
|
-
};
|
|
26956
27391
|
return [
|
|
26957
27392
|
4,
|
|
26958
|
-
_this.httpClient.get(path
|
|
27393
|
+
_this.httpClient.get(path)
|
|
26959
27394
|
];
|
|
26960
27395
|
case 2:
|
|
26961
27396
|
data = _state.sent();
|
|
@@ -27008,7 +27443,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27008
27443
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken, "/decision");
|
|
27009
27444
|
params = {
|
|
27010
27445
|
method: "POST",
|
|
27011
|
-
headers: getCommonApiHeaders(),
|
|
27012
27446
|
body: JSON.stringify(body)
|
|
27013
27447
|
};
|
|
27014
27448
|
return [
|
|
@@ -27066,7 +27500,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27066
27500
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/book-transfer");
|
|
27067
27501
|
params = {
|
|
27068
27502
|
method: "POST",
|
|
27069
|
-
headers: getCommonApiHeaders(),
|
|
27070
27503
|
body: JSON.stringify(requestBody)
|
|
27071
27504
|
};
|
|
27072
27505
|
return [
|
|
@@ -27122,7 +27555,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27122
27555
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/origination/transfers");
|
|
27123
27556
|
params = {
|
|
27124
27557
|
method: "POST",
|
|
27125
|
-
headers: getCommonApiHeaders(),
|
|
27126
27558
|
body: JSON.stringify(requestBody)
|
|
27127
27559
|
};
|
|
27128
27560
|
return [
|
|
@@ -27160,7 +27592,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27160
27592
|
var includeYtdInterest = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, includeInterestTiers = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
27161
27593
|
var _this = this;
|
|
27162
27594
|
return _async_to_generator(function() {
|
|
27163
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27595
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
27164
27596
|
return _ts_generator(this, function(_state) {
|
|
27165
27597
|
switch(_state.label){
|
|
27166
27598
|
case 0:
|
|
@@ -27185,12 +27617,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27185
27617
|
include_interest_tier: "".concat(includeInterestTiers)
|
|
27186
27618
|
});
|
|
27187
27619
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/account?").concat(queryParams.toString());
|
|
27188
|
-
params = {
|
|
27189
|
-
headers: getCommonApiHeaders()
|
|
27190
|
-
};
|
|
27191
27620
|
return [
|
|
27192
27621
|
4,
|
|
27193
|
-
_this.httpClient.get(path
|
|
27622
|
+
_this.httpClient.get(path)
|
|
27194
27623
|
];
|
|
27195
27624
|
case 2:
|
|
27196
27625
|
data = _state.sent();
|
|
@@ -27224,7 +27653,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27224
27653
|
value: function getRewardSummaries(startIndex, count) {
|
|
27225
27654
|
var _this = this;
|
|
27226
27655
|
return _async_to_generator(function() {
|
|
27227
|
-
var cuiApiBaseUrl, queryParams, path,
|
|
27656
|
+
var cuiApiBaseUrl, queryParams, path, data, error2;
|
|
27228
27657
|
return _ts_generator(this, function(_state) {
|
|
27229
27658
|
switch(_state.label){
|
|
27230
27659
|
case 0:
|
|
@@ -27248,12 +27677,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27248
27677
|
count: "".concat(count)
|
|
27249
27678
|
} : {}));
|
|
27250
27679
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/rewardsummaries?").concat(queryParams.toString());
|
|
27251
|
-
params = {
|
|
27252
|
-
headers: getCommonApiHeaders()
|
|
27253
|
-
};
|
|
27254
27680
|
return [
|
|
27255
27681
|
4,
|
|
27256
|
-
_this.httpClient.get(path
|
|
27682
|
+
_this.httpClient.get(path)
|
|
27257
27683
|
];
|
|
27258
27684
|
case 2:
|
|
27259
27685
|
data = _state.sent();
|
|
@@ -27320,7 +27746,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27320
27746
|
} : {}));
|
|
27321
27747
|
params = {
|
|
27322
27748
|
method: "POST",
|
|
27323
|
-
headers: getCommonApiHeaders(),
|
|
27324
27749
|
body: JSON.stringify(requestBody)
|
|
27325
27750
|
};
|
|
27326
27751
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/atms/search?").concat(queryParams.toString());
|
|
@@ -27377,7 +27802,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27377
27802
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27378
27803
|
params = {
|
|
27379
27804
|
method: "POST",
|
|
27380
|
-
headers: getCommonApiHeaders(),
|
|
27381
27805
|
body: JSON.stringify(requestBody)
|
|
27382
27806
|
};
|
|
27383
27807
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card/replace");
|
|
@@ -27437,9 +27861,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27437
27861
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27438
27862
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages/").concat(token, "?device_platform=").concat(devicePlatform);
|
|
27439
27863
|
params = {
|
|
27440
|
-
headers:
|
|
27864
|
+
headers: {
|
|
27441
27865
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
27442
|
-
}
|
|
27866
|
+
}
|
|
27443
27867
|
};
|
|
27444
27868
|
return [
|
|
27445
27869
|
4,
|
|
@@ -27498,9 +27922,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27498
27922
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27499
27923
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages?device_platform=").concat(devicePlatform);
|
|
27500
27924
|
params = {
|
|
27501
|
-
headers:
|
|
27925
|
+
headers: {
|
|
27502
27926
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
27503
|
-
}
|
|
27927
|
+
}
|
|
27504
27928
|
};
|
|
27505
27929
|
return [
|
|
27506
27930
|
4,
|
|
@@ -27539,7 +27963,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27539
27963
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
27540
27964
|
var _this = this;
|
|
27541
27965
|
return _async_to_generator(function() {
|
|
27542
|
-
var cuiApiBaseUrl, path,
|
|
27966
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
27543
27967
|
return _ts_generator(this, function(_state) {
|
|
27544
27968
|
switch(_state.label){
|
|
27545
27969
|
case 0:
|
|
@@ -27558,12 +27982,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27558
27982
|
]);
|
|
27559
27983
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27560
27984
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
27561
|
-
params = {
|
|
27562
|
-
headers: getCommonApiHeaders()
|
|
27563
|
-
};
|
|
27564
27985
|
return [
|
|
27565
27986
|
4,
|
|
27566
|
-
_this.httpClient.get(path
|
|
27987
|
+
_this.httpClient.get(path)
|
|
27567
27988
|
];
|
|
27568
27989
|
case 2:
|
|
27569
27990
|
result = _state.sent();
|
|
@@ -27600,7 +28021,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27600
28021
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
27601
28022
|
var _this = this;
|
|
27602
28023
|
return _async_to_generator(function() {
|
|
27603
|
-
var cuiApiBaseUrl, path,
|
|
28024
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
27604
28025
|
return _ts_generator(this, function(_state) {
|
|
27605
28026
|
switch(_state.label){
|
|
27606
28027
|
case 0:
|
|
@@ -27619,12 +28040,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27619
28040
|
]);
|
|
27620
28041
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27621
28042
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers/").concat(token);
|
|
27622
|
-
params = {
|
|
27623
|
-
headers: getCommonApiHeaders()
|
|
27624
|
-
};
|
|
27625
28043
|
return [
|
|
27626
28044
|
4,
|
|
27627
|
-
_this.httpClient.get(path
|
|
28045
|
+
_this.httpClient.get(path)
|
|
27628
28046
|
];
|
|
27629
28047
|
case 2:
|
|
27630
28048
|
result = _state.sent();
|
|
@@ -27661,7 +28079,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27661
28079
|
var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
|
|
27662
28080
|
var _this = this;
|
|
27663
28081
|
return _async_to_generator(function() {
|
|
27664
|
-
var queryParams, cuiApiBaseUrl, path,
|
|
28082
|
+
var queryParams, cuiApiBaseUrl, path, result, error2;
|
|
27665
28083
|
return _ts_generator(this, function(_state) {
|
|
27666
28084
|
switch(_state.label){
|
|
27667
28085
|
case 0:
|
|
@@ -27683,12 +28101,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27683
28101
|
});
|
|
27684
28102
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27685
28103
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents?").concat(queryParams.toString());
|
|
27686
|
-
params = {
|
|
27687
|
-
headers: getCommonApiHeaders()
|
|
27688
|
-
};
|
|
27689
28104
|
return [
|
|
27690
28105
|
4,
|
|
27691
|
-
_this.httpClient.get(path
|
|
28106
|
+
_this.httpClient.get(path)
|
|
27692
28107
|
];
|
|
27693
28108
|
case 2:
|
|
27694
28109
|
result = _state.sent();
|
|
@@ -27725,7 +28140,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27725
28140
|
var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
|
|
27726
28141
|
var _this = this;
|
|
27727
28142
|
return _async_to_generator(function() {
|
|
27728
|
-
var cuiApiBaseUrl, path,
|
|
28143
|
+
var cuiApiBaseUrl, path, result, error2;
|
|
27729
28144
|
return _ts_generator(this, function(_state) {
|
|
27730
28145
|
switch(_state.label){
|
|
27731
28146
|
case 0:
|
|
@@ -27743,12 +28158,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27743
28158
|
]);
|
|
27744
28159
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27745
28160
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
|
|
27746
|
-
params = {
|
|
27747
|
-
headers: getCommonApiHeaders()
|
|
27748
|
-
};
|
|
27749
28161
|
return [
|
|
27750
28162
|
4,
|
|
27751
|
-
_this.httpClient.get(path
|
|
28163
|
+
_this.httpClient.get(path)
|
|
27752
28164
|
];
|
|
27753
28165
|
case 2:
|
|
27754
28166
|
result = _state.sent();
|
|
@@ -27802,8 +28214,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27802
28214
|
]);
|
|
27803
28215
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27804
28216
|
params = {
|
|
27805
|
-
method: "PATCH",
|
|
27806
|
-
headers: getCommonApiHeaders(),
|
|
27807
28217
|
body: JSON.stringify(requestBody)
|
|
27808
28218
|
};
|
|
27809
28219
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
@@ -27865,8 +28275,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27865
28275
|
]);
|
|
27866
28276
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27867
28277
|
params = {
|
|
27868
|
-
method: "PATCH",
|
|
27869
|
-
headers: getCommonApiHeaders(),
|
|
27870
28278
|
body: JSON.stringify(requestBody)
|
|
27871
28279
|
};
|
|
27872
28280
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
|
|
@@ -27908,7 +28316,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27908
28316
|
value: function getFaqs() {
|
|
27909
28317
|
var _this = this;
|
|
27910
28318
|
return _async_to_generator(function() {
|
|
27911
|
-
var cuiApiBaseUrl,
|
|
28319
|
+
var cuiApiBaseUrl, path, data, error2;
|
|
27912
28320
|
return _ts_generator(this, function(_state) {
|
|
27913
28321
|
switch(_state.label){
|
|
27914
28322
|
case 0:
|
|
@@ -27924,14 +28332,10 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27924
28332
|
4
|
|
27925
28333
|
]);
|
|
27926
28334
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27927
|
-
params = {
|
|
27928
|
-
method: "GET",
|
|
27929
|
-
headers: getCommonApiHeaders()
|
|
27930
|
-
};
|
|
27931
28335
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/faqs");
|
|
27932
28336
|
return [
|
|
27933
28337
|
4,
|
|
27934
|
-
_this.httpClient.get(path
|
|
28338
|
+
_this.httpClient.get(path)
|
|
27935
28339
|
];
|
|
27936
28340
|
case 2:
|
|
27937
28341
|
data = _state.sent();
|
|
@@ -27981,8 +28385,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27981
28385
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27982
28386
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password");
|
|
27983
28387
|
params = {
|
|
27984
|
-
method: "POST",
|
|
27985
|
-
headers: getCommonApiHeaders(),
|
|
27986
28388
|
body: JSON.stringify({
|
|
27987
28389
|
password: password
|
|
27988
28390
|
})
|
|
@@ -28018,7 +28420,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28018
28420
|
},
|
|
28019
28421
|
{
|
|
28020
28422
|
key: "changePassword",
|
|
28021
|
-
value: function changePassword(requestBody,
|
|
28423
|
+
value: function changePassword(requestBody, programShortCode) {
|
|
28022
28424
|
var _this = this;
|
|
28023
28425
|
return _async_to_generator(function() {
|
|
28024
28426
|
var cuiApiBaseUrl, path, params, error2, message3;
|
|
@@ -28040,11 +28442,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28040
28442
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
28041
28443
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password/change");
|
|
28042
28444
|
params = {
|
|
28043
|
-
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
"Authorization": "SSO ".concat(access_token)
|
|
28047
|
-
}),
|
|
28445
|
+
headers: {
|
|
28446
|
+
"X-Marqeta-Program-Short-Code": programShortCode
|
|
28447
|
+
},
|
|
28048
28448
|
body: JSON.stringify(requestBody)
|
|
28049
28449
|
};
|
|
28050
28450
|
return [
|
|
@@ -28090,14 +28490,14 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28090
28490
|
},
|
|
28091
28491
|
{
|
|
28092
28492
|
key: "sendResetPasswordLink",
|
|
28093
|
-
value: function sendResetPasswordLink(
|
|
28094
|
-
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;
|
|
28493
|
+
value: function sendResetPasswordLink(requestBody) {
|
|
28095
28494
|
var _this = this;
|
|
28096
28495
|
return _async_to_generator(function() {
|
|
28097
|
-
var cuiApiBaseUrl, path,
|
|
28496
|
+
var _requestBody_email, email, _requestBody_phone, phone, programShortCode, cuiApiBaseUrl, path, body, params, result, error2;
|
|
28098
28497
|
return _ts_generator(this, function(_state) {
|
|
28099
28498
|
switch(_state.label){
|
|
28100
28499
|
case 0:
|
|
28500
|
+
_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;
|
|
28101
28501
|
logDebug("Sending WLA reset password link", {
|
|
28102
28502
|
hasEmail: !!email,
|
|
28103
28503
|
hasPhone: !!phone,
|
|
@@ -28114,19 +28514,18 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28114
28514
|
]);
|
|
28115
28515
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
28116
28516
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password-reset-link");
|
|
28117
|
-
|
|
28517
|
+
body = {};
|
|
28118
28518
|
if (email && email.trim() !== "") {
|
|
28119
|
-
|
|
28519
|
+
body.email = email;
|
|
28120
28520
|
} else if (phone && phone.trim() !== "") {
|
|
28121
|
-
|
|
28521
|
+
body.phone = phone;
|
|
28122
28522
|
}
|
|
28123
28523
|
params = {
|
|
28124
|
-
|
|
28125
|
-
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
28524
|
+
headers: {
|
|
28126
28525
|
"Content-Type": "application/json",
|
|
28127
28526
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
28128
|
-
}
|
|
28129
|
-
body: JSON.stringify(
|
|
28527
|
+
},
|
|
28528
|
+
body: JSON.stringify(body)
|
|
28130
28529
|
};
|
|
28131
28530
|
return [
|
|
28132
28531
|
4,
|
|
@@ -28184,10 +28583,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28184
28583
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
28185
28584
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/resend-verification-email");
|
|
28186
28585
|
params = {
|
|
28187
|
-
|
|
28188
|
-
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
28586
|
+
headers: {
|
|
28189
28587
|
"Content-Type": "application/json"
|
|
28190
|
-
}
|
|
28588
|
+
},
|
|
28191
28589
|
body: JSON.stringify({})
|
|
28192
28590
|
};
|
|
28193
28591
|
return [
|
|
@@ -28242,8 +28640,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28242
28640
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
28243
28641
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/verify-user-device");
|
|
28244
28642
|
params = {
|
|
28245
|
-
method: "POST",
|
|
28246
|
-
headers: getCommonApiHeaders(),
|
|
28247
28643
|
body: JSON.stringify(requestBody)
|
|
28248
28644
|
};
|
|
28249
28645
|
return [
|
|
@@ -28280,19 +28676,19 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28280
28676
|
}();
|
|
28281
28677
|
__name(_RestWlaService, "RestWlaService");
|
|
28282
28678
|
var RestWlaService = _RestWlaService;
|
|
28283
|
-
|
|
28679
|
+
_ts_decorate77([
|
|
28284
28680
|
_inversify.inject.call(void 0, ITF_CACHE_SERVICE),
|
|
28285
28681
|
_ts_metadata21("design:type", typeof iCacheService === "undefined" ? Object : iCacheService)
|
|
28286
28682
|
], RestWlaService.prototype, "cacheService", void 0);
|
|
28287
|
-
|
|
28683
|
+
_ts_decorate77([
|
|
28288
28684
|
_inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
|
|
28289
28685
|
_ts_metadata21("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
|
|
28290
28686
|
], RestWlaService.prototype, "httpClient", void 0);
|
|
28291
|
-
|
|
28687
|
+
_ts_decorate77([
|
|
28292
28688
|
_inversify.inject.call(void 0, ITF_HTTP_CLIENT),
|
|
28293
28689
|
_ts_metadata21("design:type", typeof iHttpClient === "undefined" ? Object : iHttpClient)
|
|
28294
28690
|
], RestWlaService.prototype, "unauthenticatedHttpClient", void 0);
|
|
28295
|
-
RestWlaService = exports.RestWlaService =
|
|
28691
|
+
RestWlaService = exports.RestWlaService = _ts_decorate77([
|
|
28296
28692
|
_inversify.injectable.call(void 0)
|
|
28297
28693
|
], RestWlaService);
|
|
28298
28694
|
function bookTransfer(payload) {
|
|
@@ -28608,12 +29004,12 @@ function _getAccountTransactions() {
|
|
|
28608
29004
|
transactionCount: _optionalChain([
|
|
28609
29005
|
result,
|
|
28610
29006
|
'access',
|
|
28611
|
-
function(
|
|
28612
|
-
return
|
|
29007
|
+
function(_183) {
|
|
29008
|
+
return _183.data;
|
|
28613
29009
|
},
|
|
28614
29010
|
'optionalAccess',
|
|
28615
|
-
function(
|
|
28616
|
-
return
|
|
29011
|
+
function(_184) {
|
|
29012
|
+
return _184.length;
|
|
28617
29013
|
}
|
|
28618
29014
|
]) || 0,
|
|
28619
29015
|
interactor: "getAccountTransactions"
|
|
@@ -28831,12 +29227,12 @@ function _getOffers() {
|
|
|
28831
29227
|
offerCount: _optionalChain([
|
|
28832
29228
|
result,
|
|
28833
29229
|
'access',
|
|
28834
|
-
function(
|
|
28835
|
-
return
|
|
29230
|
+
function(_185) {
|
|
29231
|
+
return _185.data;
|
|
28836
29232
|
},
|
|
28837
29233
|
'optionalAccess',
|
|
28838
|
-
function(
|
|
28839
|
-
return
|
|
29234
|
+
function(_186) {
|
|
29235
|
+
return _186.length;
|
|
28840
29236
|
}
|
|
28841
29237
|
]) || 0,
|
|
28842
29238
|
interactor: "getOffers"
|
|
@@ -29699,12 +30095,12 @@ function _getWlaFaqs() {
|
|
|
29699
30095
|
return _getWlaFaqs.apply(this, arguments);
|
|
29700
30096
|
}
|
|
29701
30097
|
__name(getWlaFaqs, "getWlaFaqs");
|
|
29702
|
-
function changeWlaPassword(payload,
|
|
30098
|
+
function changeWlaPassword(payload, programShortCode) {
|
|
29703
30099
|
return _changeWlaPassword.apply(this, arguments);
|
|
29704
30100
|
}
|
|
29705
30101
|
function _changeWlaPassword() {
|
|
29706
30102
|
_changeWlaPassword = // src/wla/base/interactors/changeWlaPassword.ts
|
|
29707
|
-
_async_to_generator(function(payload,
|
|
30103
|
+
_async_to_generator(function(payload, programShortCode) {
|
|
29708
30104
|
var container2, wlaService, error2;
|
|
29709
30105
|
return _ts_generator(this, function(_state) {
|
|
29710
30106
|
switch(_state.label){
|
|
@@ -29725,7 +30121,7 @@ function _changeWlaPassword() {
|
|
|
29725
30121
|
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
29726
30122
|
return [
|
|
29727
30123
|
4,
|
|
29728
|
-
wlaService.changePassword(payload,
|
|
30124
|
+
wlaService.changePassword(payload, programShortCode)
|
|
29729
30125
|
];
|
|
29730
30126
|
case 2:
|
|
29731
30127
|
_state.sent();
|
|
@@ -30062,7 +30458,6 @@ exports.commonIOCModule = commonIOCModule;
|
|
|
30062
30458
|
exports.mockCommonIOCModule = mockCommonIOCModule;
|
|
30063
30459
|
exports.convertObjKeysToCamelCase = convertObjKeysToCamelCase;
|
|
30064
30460
|
exports.convertObjKeysToLowerCamelCase = convertObjKeysToLowerCamelCase;
|
|
30065
|
-
exports.getCommonApiHeaders = getCommonApiHeaders;
|
|
30066
30461
|
exports.getCardsByUserToken = getCardsByUserToken;
|
|
30067
30462
|
exports.getShowpanByCardToken = getShowpanByCardToken;
|
|
30068
30463
|
exports.activateCardByTokenOrPan = activateCardByTokenOrPan;
|
|
@@ -30370,11 +30765,7 @@ exports.idpIOCModule = idpIOCModule;
|
|
|
30370
30765
|
exports.mockIdpIOCModule = mockIdpIOCModule;
|
|
30371
30766
|
exports.iStatementsRepository = iStatementsRepository;
|
|
30372
30767
|
exports.StatementAssetStateEnum = StatementAssetStateEnum;
|
|
30373
|
-
exports.
|
|
30374
|
-
exports.ITF_STATEMENT_ASSET = ITF_STATEMENT_ASSET;
|
|
30375
|
-
exports.getStatements = getStatements;
|
|
30376
|
-
exports.getStatementAsset = getStatementAsset;
|
|
30377
|
-
exports.statementsIOCModule = statementsIOCModule;
|
|
30768
|
+
exports.StatementSummaryCycleTypeEnum = StatementSummaryCycleTypeEnum;
|
|
30378
30769
|
exports.MOCK_STATEMENT_ASSET_SIGNED_URL_PDF = MOCK_STATEMENT_ASSET_SIGNED_URL_PDF;
|
|
30379
30770
|
exports.MOCK_USER = MOCK_USER;
|
|
30380
30771
|
exports.toDateType = toDateType;
|
|
@@ -30382,6 +30773,14 @@ exports.formatDateForApi = formatDateForApi;
|
|
|
30382
30773
|
exports.generateStatementsDateQueries = generateStatementsDateQueries;
|
|
30383
30774
|
exports.handleGetStatements = handleGetStatements;
|
|
30384
30775
|
exports.handleGetStatementAsset = handleGetStatementAsset;
|
|
30776
|
+
exports.MockStatementsRepository = MockStatementsRepository;
|
|
30777
|
+
exports.ITF_STATEMENTS = ITF_STATEMENTS;
|
|
30778
|
+
exports.ITF_STATEMENT_ASSET = ITF_STATEMENT_ASSET;
|
|
30779
|
+
exports.getStatements = getStatements;
|
|
30780
|
+
exports.getStatementAsset = getStatementAsset;
|
|
30781
|
+
exports.getUserAccountStatementsV2 = getUserAccountStatementsV2;
|
|
30782
|
+
exports.getUserAccountsStatementDownloadV2 = getUserAccountsStatementDownloadV2;
|
|
30783
|
+
exports.statementsIOCModule = statementsIOCModule;
|
|
30385
30784
|
exports.mswStatementsHandlers = mswStatementsHandlers;
|
|
30386
30785
|
exports.DEFAULT_THEME = DEFAULT_THEME;
|
|
30387
30786
|
exports.getActiveTheme = getActiveTheme;
|