tradly 1.0.52 → 1.0.55

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,5 +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?type=accounts&'
80
+
79
81
 
80
82
 
package/Roots/App.js CHANGED
@@ -9,13 +9,20 @@ import {
9
9
  VALUES, TRANSACTIONS, EARNINGS, VARIANTTYPES,
10
10
  EPHERMERALKEY, PAYMENTINTENT, CONFIGLIST, STATUS,
11
11
  S3SIGNEDURL, STRIPECONNECTACCOUNT,
12
- CREATEACCOUNTLINK, CREATEEXPRESSLOGINLINK, SCHEDULE, SCHEDULEPERDAY, COUNTRIES, TENANTSCOUNTRIES, SLUG,
12
+ CREATEACCOUNTLINK, CREATEEXPRESSLOGINLINK, SCHEDULE, SCHEDULEPERDAY, COUNTRIES, TENANTSCOUNTRIES, SLUG, BLOCKEDACCOUNT,
13
13
  } from './../Constants/PathConstant.js'
14
14
  import serialization from "../Helper/Serialization.js";
15
15
  import { APPCONSTANT } from "../Constants/AppConstant.js";
16
16
  import { ImageConfig } from "../Helper/APIParam.js";
17
17
 
18
18
  class App {
19
+ async deleteUser(param={id,authKey}) {
20
+ let path = USERS + `/${param.id}`
21
+ try { const [error, responseJson] = await network.networkCall({path:path,method:Method.DELETE,authKey:param.authKey});
22
+ if (error) { return error }
23
+ else { return responseJson }
24
+ } catch (error) { return error }
25
+ }
19
26
  async getCountries() {
20
27
  try { const [error, responseJson] = await network.networkCall({path:COUNTRIES,method:Method.GET});
21
28
  if (error) { return error }
@@ -172,6 +179,14 @@ class App {
172
179
  else { return responseJson }
173
180
  } catch (error) { return error }
174
181
  }
182
+ async getBlockedAccounts(param={bodyParam,authKey}) {
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
+
175
190
  //MARK:-  LISTINGS API 
176
191
  async getListings(param={bodyParam,authKey}) {
177
192
  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.52",
3
+ "version": "1.0.55",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",