tradly 1.1.76 → 1.1.78
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/NetworkManager/NetworkManager.js +3 -1
- package/Roots/App.js +22 -0
- package/package.json +1 -1
|
@@ -53,12 +53,14 @@ class NetworkManager {
|
|
|
53
53
|
if (config.language != undefined || config.language == "") {
|
|
54
54
|
header["X-Language"] = config.language;
|
|
55
55
|
}
|
|
56
|
+
|
|
56
57
|
if (
|
|
57
|
-
config?.barrow_access_key != undefined
|
|
58
|
+
config?.barrow_access_key != undefined &&
|
|
58
59
|
config?.barrow_access_key !== ""
|
|
59
60
|
) {
|
|
60
61
|
header["barrow_access_key"] = config?.barrow_access_key;
|
|
61
62
|
}
|
|
63
|
+
|
|
62
64
|
if (Object.keys(APPCONSTANT.CUSTOM_HEADER).length > 0) {
|
|
63
65
|
Object.keys(APPCONSTANT.CUSTOM_HEADER).forEach((key) => {
|
|
64
66
|
header[key] = APPCONSTANT.CUSTOM_HEADER[key];
|
package/Roots/App.js
CHANGED
|
@@ -179,6 +179,28 @@ class App {
|
|
|
179
179
|
return error;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
async getGroupedSecureConfigList(
|
|
183
|
+
param = { paramBody, authKey, domain_id, barrow_access_key }
|
|
184
|
+
) {
|
|
185
|
+
let url = `${GROUPCONFIGLIST}${param.paramBody}&domain_id=${APPCONSTANT.DOMAIN_ID}`;
|
|
186
|
+
try {
|
|
187
|
+
const [error, responseJson] = await network.networkCall({
|
|
188
|
+
path: url,
|
|
189
|
+
method: Method.GET,
|
|
190
|
+
authKey: param.authKey,
|
|
191
|
+
currency: param.currency,
|
|
192
|
+
language: param.language,
|
|
193
|
+
barrow_access_key: param.access_key,
|
|
194
|
+
});
|
|
195
|
+
if (error) {
|
|
196
|
+
return error;
|
|
197
|
+
} else {
|
|
198
|
+
return responseJson;
|
|
199
|
+
}
|
|
200
|
+
} catch (error) {
|
|
201
|
+
return error;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
182
204
|
async updateDeviceInfo(param = { data, authKey }) {
|
|
183
205
|
try {
|
|
184
206
|
const [error, responseJson] = await network.networkCall({
|