tradly 1.0.82 → 1.0.83

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,8 @@ export const USERS = "/v1/users";
26
26
  export const DEVICES = "/v1/devices";
27
27
 
28
28
  export const ADDRESS = "/v1/addresses";
29
+ export const PLACES_ADDRESS = "/v1/addresses/places_search";
30
+ export const PLACES_ADDRESS_DETAIL = "/v1/addresses/place_detail";
29
31
  export const CURRENCY = "/v1/currencies";
30
32
  export const LANGUAGES = "/v1/languages";
31
33
  export const TENANTLANGUAGES = "/v1/tenants/languages";
@@ -89,4 +91,4 @@ export const LAYER = "/v1/layers";
89
91
  export const CLIENTTRANSLATION_GROUPS = "/v1/client_translations/groups";
90
92
  export const CLIENTTRANSLATION_VALUES = "/v1/client_translations/values";
91
93
  export const CLIENTTRANSLATION_VALUES_GROUP =
92
- "v1/client_translations/values_grouped";
94
+ "/v1/client_translations/values_grouped";
package/Roots/App.js CHANGED
@@ -52,6 +52,8 @@ import {
52
52
  CLIENTTRANSLATION_GROUPS,
53
53
  CLIENTTRANSLATION_VALUES,
54
54
  CLIENTTRANSLATION_VALUES_GROUP,
55
+ PLACES_ADDRESS,
56
+ PLACES_ADDRESS_DETAIL,
55
57
  } from "./../Constants/PathConstant.js";
56
58
  import serialization from "../Helper/Serialization.js";
57
59
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -320,6 +322,48 @@ class App {
320
322
  return error;
321
323
  }
322
324
  }
325
+
326
+ async getPlacesAddress(param = { bodyParam, authKey }) {
327
+ let url =
328
+ param.bodyParam == undefined || param.bodyParam == ""
329
+ ? ""
330
+ : `?${serialization(param.bodyParam)}`;
331
+ try {
332
+ const [error, responseJson] = await network.networkCall({
333
+ path: PLACES_ADDRESS + url,
334
+ method: Method.GET,
335
+ authKey: param.authKey,
336
+ });
337
+ if (error) {
338
+ return error;
339
+ } else {
340
+ return responseJson;
341
+ }
342
+ } catch (error) {
343
+ return error;
344
+ }
345
+ }
346
+ async getPlacesAddressDetails(param = { bodyParam, authKey }) {
347
+ let url =
348
+ param.bodyParam == undefined || param.bodyParam == ""
349
+ ? ""
350
+ : `?${serialization(param.bodyParam)}`;
351
+ try {
352
+ const [error, responseJson] = await network.networkCall({
353
+ path: PLACES_ADDRESS_DETAIL + url,
354
+ method: Method.GET,
355
+ authKey: param.authKey,
356
+ });
357
+ if (error) {
358
+ return error;
359
+ } else {
360
+ return responseJson;
361
+ }
362
+ } catch (error) {
363
+ return error;
364
+ }
365
+ }
366
+
323
367
  async searchAddress(param = { searchKey, authKey }) {
324
368
  let url = param.searchKey;
325
369
  try {
@@ -1941,9 +1985,7 @@ class App {
1941
1985
  }
1942
1986
  }
1943
1987
 
1944
- async getClientTranslationsValuesByGroup(
1945
- param = { bodyParam, authKey }
1946
- ) {
1988
+ async clientTranslationsValuesByGroup(param = { bodyParam, authKey }) {
1947
1989
  let url =
1948
1990
  param.bodyParam == undefined || param.bodyParam == ""
1949
1991
  ? ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",