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.
- package/Constants/PathConstant.js +2 -0
- package/Roots/App.js +16 -1
- package/package.json +1 -1
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)}`;
|