@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 +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +368 -437
- package/dist/index.mjs +368 -438
- package/package.json +14 -22
- package/.prettierignore +0 -3
- package/.prettierrc +0 -8
- package/.vscode/settings.json +0 -33
- package/CHANGELOG.md +0 -753
- package/CONTRIBUTING.md +0 -52
- package/LICENSE +0 -21
- package/README.md +0 -34
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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 {
|