tradly 1.1.51 → 1.1.53

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.
@@ -26,6 +26,7 @@ export const USERS = "/v1/users";
26
26
  export const DEVICES = "/v1/devices";
27
27
 
28
28
  export const ADDRESS = "/v1/addresses";
29
+ export const STATES = "/v1/states";
29
30
  export const SEARCHADDRESS = "/v1/addresses/search?key=";
30
31
  export const PLACES_ADDRESS = "/v1/addresses/places_search";
31
32
  export const PLACES_ADDRESS_DETAIL = "/v1/addresses/place_detail";
package/Roots/App.js CHANGED
@@ -79,6 +79,7 @@ import {
79
79
  WALLET,
80
80
  SAVED_CARD,
81
81
  SHIPMENTS,
82
+ STATES,
82
83
  } from "./../Constants/PathConstant.js";
83
84
  import serialization from "../Helper/Serialization.js";
84
85
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -415,6 +416,31 @@ class App {
415
416
  }
416
417
  }
417
418
 
419
+ //
420
+ async getStates(param = { bodyParam, authKey }) {
421
+ let url =
422
+ param.bodyParam == undefined || param.bodyParam == ""
423
+ ? ""
424
+ : `?${serialization(param.bodyParam)}`;
425
+ try {
426
+ const [error, responseJson] = await network.networkCall({
427
+ path: STATES + url,
428
+ method: Method.GET,
429
+ authKey: param.authKey,
430
+ currency: param.currency,
431
+ language: param.language,
432
+ });
433
+ if (error) {
434
+ return error;
435
+ } else {
436
+ return responseJson;
437
+ }
438
+ } catch (error) {
439
+ return error;
440
+ }
441
+ }
442
+
443
+ //
418
444
  async getPlacesAddress(param = { bodyParam, authKey }) {
419
445
  let url =
420
446
  param.bodyParam == undefined || param.bodyParam == ""
@@ -887,6 +913,28 @@ class App {
887
913
  return error;
888
914
  }
889
915
  }
916
+
917
+ async bulkLikeListings(param = { data, authKey }) {
918
+ let path = LISTINGS + `/likes/bulk`;
919
+ try {
920
+ const [error, responseJson] = await network.networkCall({
921
+ path: path,
922
+ method: Method.POST,
923
+ authKey: param.authKey,
924
+ currency: param.currency,
925
+ language: param.language,
926
+ param: param.data,
927
+ });
928
+ if (error) {
929
+ return error;
930
+ } else {
931
+ return responseJson;
932
+ }
933
+ } catch (error) {
934
+ return error;
935
+ }
936
+ }
937
+
890
938
  async getMyListingsLikes(param = { bodyParam, authKey }) {
891
939
  let url =
892
940
  param.bodyParam == undefined || param.bodyParam == ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",