tradly 1.0.54 → 1.0.57

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.
@@ -76,7 +76,7 @@ export const PROMO = '/v1/promos';
76
76
  export const TRANSACTIONS = '/v1/transactions';
77
77
  export const EARNINGS = '/v1/earnings';
78
78
 
79
- export const BLOCKEDACCOUNT = 'v1/accounts/feeds/blocked'
79
+ export const BLOCKEDACCOUNT = '/v1/accounts/feeds/blocked?type=accounts&'
80
80
 
81
81
 
82
82
 
package/Roots/App.js CHANGED
@@ -180,13 +180,19 @@ class App {
180
180
  } catch (error) { return error }
181
181
  }
182
182
  async getBlockedAccounts(param={bodyParam,authKey}) {
183
- let url = `?${serialization(param.bodyParam)}`;
183
+ let url = `${serialization(param.bodyParam)}`
184
+ try { const [error, responseJson] = await network.networkCall({path:BLOCKEDACCOUNT + `${url}`,method:Method.GET,authKey:param.authKey})
185
+ if (error) { return error }
186
+ else { return responseJson }
187
+ } catch (error) { return error }
188
+ }
189
+ async getBlockAccounts(param={bodyParam,authKey}) {
190
+ let url = `${serialization(param.bodyParam)}`;
184
191
  try { const [error, responseJson] = await network.networkCall({path:BLOCKEDACCOUNT + `${url}`,method:Method.GET,authKey:param.authKey});
185
192
  if (error) { return error }
186
193
  else { return responseJson }
187
194
  } catch (error) { return error }
188
195
  }
189
-
190
196
  //MARK:-  LISTINGS API 
191
197
  async getListings(param={bodyParam,authKey}) {
192
198
  let url = param.bodyParam == undefined || param.bodyParam == '' ? '' : `?${serialization(param.bodyParam)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.54",
3
+ "version": "1.0.57",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",