tradly 1.1.21 → 1.1.23
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/Constants/AppConstant.js +1 -0
- package/Roots/App.js +5 -4
- package/Roots/SetSDK.js +3 -1
- package/package.json +1 -1
package/Constants/AppConstant.js
CHANGED
package/Roots/App.js
CHANGED
|
@@ -76,6 +76,7 @@ import {
|
|
|
76
76
|
} from "./../Constants/PathConstant.js";
|
|
77
77
|
import serialization from "../Helper/Serialization.js";
|
|
78
78
|
import { ImageConfig } from "../Helper/APIParam.js";
|
|
79
|
+
import { APPCONSTANT } from "../Constants/AppConstant.js";
|
|
79
80
|
|
|
80
81
|
class App {
|
|
81
82
|
async deleteUser(param = { id, authKey }) {
|
|
@@ -130,8 +131,8 @@ class App {
|
|
|
130
131
|
return error;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
|
-
async getConfigList(param = { paramBody, authKey }) {
|
|
134
|
-
let url = `${CONFIGLIST}${param.paramBody}`;
|
|
134
|
+
async getConfigList(param = { paramBody, authKey, domain_id }) {
|
|
135
|
+
let url = `${CONFIGLIST}${param.paramBody}&domain_id=${APPCONSTANT.DOMAIN_ID}`;
|
|
135
136
|
try {
|
|
136
137
|
const [error, responseJson] = await network.networkCall({
|
|
137
138
|
path: url,
|
|
@@ -149,8 +150,8 @@ class App {
|
|
|
149
150
|
return error;
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
|
-
async getGroupedConfigList(param = { paramBody, authKey }) {
|
|
153
|
-
let url = `${GROUPCONFIGLIST}${param.paramBody}`;
|
|
153
|
+
async getGroupedConfigList(param = { paramBody, authKey, domain_id }) {
|
|
154
|
+
let url = `${GROUPCONFIGLIST}${param.paramBody}&domain_id=${APPCONSTANT.DOMAIN_ID}`;
|
|
154
155
|
try {
|
|
155
156
|
const [error, responseJson] = await network.networkCall({
|
|
156
157
|
path: url,
|
package/Roots/SetSDK.js
CHANGED
|
@@ -27,9 +27,11 @@ class SetSDK {
|
|
|
27
27
|
});
|
|
28
28
|
if (response.data.status) {
|
|
29
29
|
APPCONSTANT.TOKEN = response.data.data.key;
|
|
30
|
+
APPCONSTANT.DOMAIN_ID =
|
|
31
|
+
response.data.data.domain?.id ?? 0;
|
|
30
32
|
APPCONSTANT.ENVIRONMENT = init.env;
|
|
31
33
|
APPCONSTANT.DOMAIN = init.domain;
|
|
32
|
-
return
|
|
34
|
+
return true;
|
|
33
35
|
}
|
|
34
36
|
} catch (error) {
|
|
35
37
|
return error;
|