@betterstore/sdk 0.5.16 → 0.5.18

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.
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(index_exports);
38
38
 
39
39
  // src/utils/axios.ts
40
40
  var import_axios = __toESM(require("axios"));
41
- var API_BASE_URL = "https://api.betterstore.io/v1";
41
+ var API_BASE_URL = "https://v1.betterstore.io";
42
42
  var createApiClient = (apiKey, proxy) => {
43
43
  const client = import_axios.default.create({
44
44
  baseURL: proxy ?? API_BASE_URL,
@@ -415,14 +415,14 @@ var Client = class {
415
415
  */
416
416
  async getAutosuggestAddressResults(clientSecret, params) {
417
417
  const apiClient = createApiClient(clientSecret, this.proxy);
418
- const { data } = await apiClient.get("/helpers/autosuggest-address", {
418
+ const { data } = await apiClient.get("/helpers/address/autosuggest", {
419
419
  params
420
420
  });
421
421
  return data;
422
422
  }
423
423
  async lookupAddress(clientSecret, params) {
424
424
  const apiClient = createApiClient(clientSecret, this.proxy);
425
- const { data } = await apiClient.get("/helpers/lookup-address", {
425
+ const { data } = await apiClient.get("/helpers/address/lookup", {
426
426
  params
427
427
  });
428
428
  return data;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/utils/axios.ts
2
2
  import axios from "axios";
3
- var API_BASE_URL = "https://api.betterstore.io/v1";
3
+ var API_BASE_URL = "https://v1.betterstore.io";
4
4
  var createApiClient = (apiKey, proxy) => {
5
5
  const client = axios.create({
6
6
  baseURL: proxy ?? API_BASE_URL,
@@ -377,14 +377,14 @@ var Client = class {
377
377
  */
378
378
  async getAutosuggestAddressResults(clientSecret, params) {
379
379
  const apiClient = createApiClient(clientSecret, this.proxy);
380
- const { data } = await apiClient.get("/helpers/autosuggest-address", {
380
+ const { data } = await apiClient.get("/helpers/address/autosuggest", {
381
381
  params
382
382
  });
383
383
  return data;
384
384
  }
385
385
  async lookupAddress(clientSecret, params) {
386
386
  const apiClient = createApiClient(clientSecret, this.proxy);
387
- const { data } = await apiClient.get("/helpers/lookup-address", {
387
+ const { data } = await apiClient.get("/helpers/address/lookup", {
388
388
  params
389
389
  });
390
390
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",