tradly 1.0.76 → 1.0.78

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.
@@ -41,6 +41,7 @@ export const BLOCK = "/block";
41
41
  export const REPORT = "/report";
42
42
 
43
43
  export const LISTINGS = "/products/v1/listings";
44
+ export const LISTINGSUNIQUELOCATIONS = "/products/v1/listings/unique/locations";
44
45
  export const LIKE = "/likes";
45
46
  export const SCHEDULE = "/schedules";
46
47
  export const SCHEDULEPERDAY = "/schedules_per_day?";
package/Roots/App.js CHANGED
@@ -47,6 +47,7 @@ import {
47
47
  FOLLOWINGLISTING,
48
48
  GROUPCONFIGLIST,
49
49
  TENANTSHIPPINGMETHOD,
50
+ LISTINGSUNIQUELOCATIONS,
50
51
  } from "./../Constants/PathConstant.js";
51
52
  import serialization from "../Helper/Serialization.js";
52
53
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -506,6 +507,26 @@ class App {
506
507
  }
507
508
  }
508
509
  //MARK:-  LISTINGS API 
510
+ async getListingsLocations(param = { bodyParam, authKey }) {
511
+ let url =
512
+ param.bodyParam == undefined || param.bodyParam == ""
513
+ ? ""
514
+ : `?${serialization(param.bodyParam)}`;
515
+ try {
516
+ const [error, responseJson] = await network.networkCall({
517
+ path: LISTINGSUNIQUELOCATIONS + url,
518
+ method: Method.GET,
519
+ authKey: param.authKey,
520
+ });
521
+ if (error) {
522
+ return error;
523
+ } else {
524
+ return responseJson;
525
+ }
526
+ } catch (error) {
527
+ return error;
528
+ }
529
+ }
509
530
  async getListings(param = { bodyParam, authKey }) {
510
531
  let url =
511
532
  param.bodyParam == undefined || param.bodyParam == ""
@@ -1508,7 +1529,7 @@ class App {
1508
1529
  path:
1509
1530
  param.type === "tenant"
1510
1531
  ? TENANTSHIPPINGMETHOD
1511
- : `${SHIPPINGMETHOD}?account_id:${account_id}`,
1532
+ : `${TENANTSHIPPINGMETHOD}?account_id=${param?.account_id}`,
1512
1533
  method: Method.GET,
1513
1534
  authKey: param.authKey,
1514
1535
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",