tradly 1.1.13 → 1.1.15

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.
File without changes
@@ -40,6 +40,7 @@ export const ATTRIBUTE = "/v1/attributes";
40
40
  export const VALUES = "/values";
41
41
 
42
42
  export const ACCOUNTS = "/v1/accounts";
43
+ export const ACCOUNTSUNIQUELOCATIONS = "/products/v1/accounts/unique/locations";
43
44
  export const FOLLOW = "/follow";
44
45
  export const BLOCK = "/block";
45
46
  export const REPORT = "/report";
File without changes
File without changes
File without changes
File without changes
package/README.md CHANGED
File without changes
package/Roots/App.js CHANGED
@@ -71,6 +71,7 @@ import {
71
71
  DIGITAL_CONTENT,
72
72
  S3SIGNEDGETURL,
73
73
  COLLECTIONS_DATA,
74
+ ACCOUNTSUNIQUELOCATIONS,
74
75
  } from "./../Constants/PathConstant.js";
75
76
  import serialization from "../Helper/Serialization.js";
76
77
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -490,6 +491,30 @@ class App {
490
491
  }
491
492
  }
492
493
  //MARK:-  ACCOUNTS APIS 
494
+
495
+ async getAccountsLocations(param = { bodyParam, authKey }) {
496
+ let url =
497
+ param.bodyParam == undefined || param.bodyParam == ""
498
+ ? ""
499
+ : `?${serialization(param.bodyParam)}`;
500
+ try {
501
+ const [error, responseJson] = await network.networkCall({
502
+ path: ACCOUNTSUNIQUELOCATIONS + url,
503
+ method: Method.GET,
504
+ authKey: param.authKey,
505
+ currency: param.currency,
506
+ language: param.language,
507
+ });
508
+ if (error) {
509
+ return error;
510
+ } else {
511
+ return responseJson;
512
+ }
513
+ } catch (error) {
514
+ return error;
515
+ }
516
+ }
517
+
493
518
  async getAccounts(param = { bodyParam, authKey }) {
494
519
  let url = `?${serialization(param.bodyParam)}`;
495
520
  try {
@@ -2899,7 +2924,7 @@ class App {
2899
2924
  let path =
2900
2925
  param.content_id == undefined || param.content_id == ""
2901
2926
  ? `${LISTINGS}/${param.listing_id}${DIGITAL_CONTENT}`
2902
- : `${LISTINGS}/${param.listing_id}${DIGITAL_CONTENT}/${content_id}`;
2927
+ : `${LISTINGS}/${param.listing_id}${DIGITAL_CONTENT}/${param.content_id}`;
2903
2928
  try {
2904
2929
  const [error, responseJson] = await network.networkCall({
2905
2930
  path: path,
@@ -1,29 +1,31 @@
1
1
  import { APPCONSTANT } from "../Constants/AppConstant.js";
2
- import {REFRESH} from "../Constants/PathConstant.js";
2
+ import { REFRESH } from "../Constants/PathConstant.js";
3
3
  import { EVN } from "../Helper/APIParam.js";
4
- import network, { Method } from "./../NetworkManager/NetworkManager.js"
5
- import app from './App.js';
6
-
7
-
4
+ import network, { Method } from "./../NetworkManager/NetworkManager.js";
5
+ import app from "./App.js";
8
6
 
9
7
  class InitializeSDK {
10
- async config(init={token,environment}) {
11
- APPCONSTANT.TOKEN = init.token;
12
- APPCONSTANT.ENVIRONMENT = init.environment;
13
- console.log('Success!!');
14
- }
15
- async refreshAPI(refreshKey) {
16
- try {
17
- const [error,responseJson] = await network.networkCall({path:REFRESH,method:Method.GET,refreshKey:refreshKey})
18
- if (error) {
19
- return error;
20
- }else {
21
- return responseJson;
22
- }
23
- } catch (error) {
24
- return error;
25
- }
26
- }
8
+ async config(init = { token, environment }) {
9
+ APPCONSTANT.TOKEN = init.token;
10
+ APPCONSTANT.ENVIRONMENT = init.environment;
11
+ console.log("Success!!");
12
+ }
13
+ async refreshAPI(refreshKey) {
14
+ try {
15
+ const [error, responseJson] = await network.networkCall({
16
+ path: REFRESH,
17
+ method: Method.GET,
18
+ refreshKey: refreshKey,
19
+ });
20
+ if (error) {
21
+ return error;
22
+ } else {
23
+ return responseJson;
24
+ }
25
+ } catch (error) {
26
+ return error;
27
+ }
28
+ }
27
29
  }
28
30
  const initSdk = new InitializeSDK();
29
31
  export default initSdk;
package/Roots/Roots.js CHANGED
File without changes
package/Roots/SetSDK.js CHANGED
File without changes
package/Roots/User.js CHANGED
File without changes
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",