@betterstore/sdk 0.3.107 → 0.5.3

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as axios from 'axios';
1
+ import axios from 'axios';
2
2
 
3
3
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
4
4
 
@@ -534,12 +534,22 @@ declare class Discounts {
534
534
  retrieve(params: RetrieveDiscountParams): Promise<Discount | null>;
535
535
  }
536
536
 
537
+ type AutocompleteResult = {
538
+ line1: string;
539
+ line2: string;
540
+ city: string;
541
+ state: string;
542
+ countryCode: string;
543
+ zipCode: string;
544
+ };
545
+
537
546
  declare class Helpers {
538
547
  proxy?: string;
539
548
  constructor(proxy?: string);
540
549
  formatCurrency(currency: string): string;
541
550
  formatPrice(priceInCents: number, currency: string, exchangeRate?: number | null): string;
542
551
  getExchangeRate(baseCurrency: string, targetCurrency: string): Promise<number>;
552
+ getAutocompleteAddressResults(query: string, locale?: string): Promise<AutocompleteResult[]>;
543
553
  }
544
554
 
545
555
  declare class Products {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as axios from 'axios';
1
+ import axios from 'axios';
2
2
 
3
3
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
4
4
 
@@ -534,12 +534,22 @@ declare class Discounts {
534
534
  retrieve(params: RetrieveDiscountParams): Promise<Discount | null>;
535
535
  }
536
536
 
537
+ type AutocompleteResult = {
538
+ line1: string;
539
+ line2: string;
540
+ city: string;
541
+ state: string;
542
+ countryCode: string;
543
+ zipCode: string;
544
+ };
545
+
537
546
  declare class Helpers {
538
547
  proxy?: string;
539
548
  constructor(proxy?: string);
540
549
  formatCurrency(currency: string): string;
541
550
  formatPrice(priceInCents: number, currency: string, exchangeRate?: number | null): string;
542
551
  getExchangeRate(baseCurrency: string, targetCurrency: string): Promise<number>;
552
+ getAutocompleteAddressResults(query: string, locale?: string): Promise<AutocompleteResult[]>;
543
553
  }
544
554
 
545
555
  declare class Products {