tradly 1.0.49 → 1.0.52

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.
@@ -6,65 +6,65 @@ export default AppName;
6
6
 
7
7
 
8
8
  //User module paths
9
- export var DEV = 'https://api.dev.tradly.app/';
10
- export var PRO = 'https://api.tradly.app/';
11
- export var SANDBOX = 'https://api.sandbox.tradly.app/';
9
+ export var DEV = 'https://api.dev.tradly.app';
10
+ export var PRO = 'https://api.tradly.app';
11
+ export var SANDBOX = 'https://api.sandbox.tradly.app';
12
12
  // export var BASEURL = Environment(APPCONSTANT.ENVIRONMENT);
13
- export const REFRESH = 'v1/users/token/refresh';
14
- export const TENANTS = 'v1/tenants/';
13
+ export const REFRESH = '/v1/users/token/refresh';
14
+ export const TENANTS = '/v1/tenants/';
15
15
  export const CONFIG = '/configs';
16
- export const CONFIGLIST = 'v1/configs?key_group=';
16
+ export const CONFIGLIST = '/v1/configs?key_group=';
17
17
 
18
- export const LOGIN = 'v1/users/login';
19
- export const REGISTER = 'v1/users/register';
20
- export const VERIFY = 'v1/users/verify';
21
- export const FORGOTPASSWORD = 'v1/users/password/recovery';
22
- export const SETPASSWORD = 'v1/users/password/set';
18
+ export const LOGIN = '/v1/users/login';
19
+ export const REGISTER = '/v1/users/register';
20
+ export const VERIFY = '/v1/users/verify';
21
+ export const FORGOTPASSWORD = '/v1/users/password/recovery';
22
+ export const SETPASSWORD = '/v1/users/password/set';
23
23
 
24
- export const USERS = 'v1/users';
25
- export const DEVICES = 'v1/devices';
24
+ export const USERS = '/v1/users';
25
+ export const DEVICES = '/v1/devices';
26
26
 
27
27
  export const ADDRESS = '/v1/addresses'
28
- export const CURRENCY = 'v1/currencies';
29
- export const LANGUAGES = 'v1/languages';
30
- export const COUNTRIES = 'v1/countries';
31
- export const TENANTSCOUNTRIES = 'v1/tenants/countries';
28
+ export const CURRENCY = '/v1/currencies';
29
+ export const LANGUAGES = '/v1/languages';
30
+ export const COUNTRIES = '/v1/countries';
31
+ export const TENANTSCOUNTRIES = '/v1/tenants/countries';
32
32
 
33
- export const CATEGORY = 'v1/categories';
34
- export const ATTRIBUTE= 'v1/attributes';
33
+ export const CATEGORY = '/v1/categories';
34
+ export const ATTRIBUTE= '/v1/attributes';
35
35
  export const VALUES= '/values';
36
36
 
37
- export const ACCOUNTS = 'v1/accounts';
37
+ export const ACCOUNTS = '/v1/accounts';
38
38
  export const FOLLOW = '/follow';
39
39
  export const BLOCK = '/block';
40
40
  export const REPORT = '/report';
41
41
 
42
- export const LISTINGS = 'products/v1/listings';
42
+ export const LISTINGS = '/products/v1/listings';
43
43
  export const LIKE = '/likes';
44
44
  export const SCHEDULE = '/schedules';
45
45
  export const SCHEDULEPERDAY = '/schedules_per_day?';
46
46
  export const SLUG = '/by_slug/';
47
47
 
48
- export const VARIANTTYPES = 'products/v1/variant_types';
48
+ export const VARIANTTYPES = '/products/v1/variant_types';
49
49
  export const VARIANTS = '/variants';
50
50
 
51
51
  export const PAYMENTSMETHODS = '/v1/tenants/payment_methods';
52
- export const SHIPPINGMETHOD = 'v1/tenants/shipping_methods';
52
+ export const SHIPPINGMETHOD = '/v1/tenants/shipping_methods';
53
53
 
54
- export const S3SIGNEDURL = 'v1/utils/S3signedUploadURL';
55
- export const SEARCHADDRESS = 'v1/addresses/search?key=';
54
+ export const S3SIGNEDURL = '/v1/utils/S3signedUploadURL';
55
+ export const SEARCHADDRESS = '/v1/addresses/search?key=';
56
56
 
57
- export const HOME = 'products/v1/home';
58
- export const ORDERS = 'products/v1/orders';
57
+ export const HOME = '/products/v1/home';
58
+ export const ORDERS = '/products/v1/orders';
59
59
 
60
- export const CART = 'products/v1/cart';
60
+ export const CART = '/products/v1/cart';
61
61
  export const CHECKOUT = '/checkout';
62
- export const EPHERMERALKEY = 'v1/payments/stripe/ephemeralKey';
63
- export const PAYMENTINTENT = 'v1/payments/stripe/paymentIntent';
62
+ export const EPHERMERALKEY = '/v1/payments/stripe/ephemeralKey';
63
+ export const PAYMENTINTENT = '/v1/payments/stripe/paymentIntent';
64
64
 
65
- export const STRIPECONNECTACCOUNT = 'v1/payments/stripe/connect/account?account_id=';
66
- export const CREATEACCOUNTLINK = 'v1/payments/stripe/connect/account_links';
67
- export const CREATEEXPRESSLOGINLINK = 'v1/payments/stripe/connect/login_links';
65
+ export const STRIPECONNECTACCOUNT = '/v1/payments/stripe/connect/account?account_id=';
66
+ export const CREATEACCOUNTLINK = '/v1/payments/stripe/connect/account_links';
67
+ export const CREATEEXPRESSLOGINLINK = '/v1/payments/stripe/connect/login_links';
68
68
 
69
69
 
70
70
  export const STATUS = '/status';
package/Roots/App.js CHANGED
@@ -101,6 +101,13 @@ class App {
101
101
  else { return responseJson }
102
102
  } catch (error) { return error }
103
103
  }
104
+ async reverseGeoCodingAddress(param={lat,long,authKey}) {
105
+ let url = `/${param.lat}/${param.long}`;
106
+ try { const [error, responseJson] = await network.networkCall({path:ADDRESS + url,method:Method.GET,authKey:param.authKey});
107
+ if (error) { return error }
108
+ else { return responseJson }
109
+ } catch (error) { return error }
110
+ }
104
111
  async deleteAddress(param={id,authKey}) {
105
112
  try { const [error, responseJson] = await network.networkCall({path:ADDRESS + `/${param.id}`,method:Method.DELETE,authKey:param.authKey});
106
113
  if (error) { return error }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.49",
3
+ "version": "1.0.52",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",