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.
@@ -3,6 +3,7 @@ export var APPCONSTANT = {
3
3
  CURRENCY: "",
4
4
  ENVIRONMENT: "",
5
5
  DOMAIN: "",
6
+ DOMAIN_ID: 0,
6
7
  };
7
8
 
8
9
  export const TYPES = {
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 response.data.data;
34
+ return true;
33
35
  }
34
36
  } catch (error) {
35
37
  return error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",