@betterstore/sdk 0.5.13 → 0.5.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.
- package/dist/index.d.mts +2 -10
- package/dist/index.d.ts +2 -10
- package/dist/index.js +0 -15
- package/dist/index.mjs +0 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -93,12 +93,12 @@ interface CheckoutSession {
|
|
|
93
93
|
type AutosuggestAddressResult = {
|
|
94
94
|
id: string;
|
|
95
95
|
title: string;
|
|
96
|
+
address: Pick<Address, "line1" | "line2" | "city" | "province" | "provinceCode" | "country" | "countryCode" | "zipCode">;
|
|
96
97
|
position: {
|
|
97
98
|
lat: number;
|
|
98
99
|
lng: number;
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
|
-
type GeocodeAddressResult = Omit<AutosuggestAddressResult, "position"> & Pick<Address, "line1" | "line2" | "city" | "province" | "provinceCode" | "country" | "countryCode" | "zipCode">;
|
|
102
102
|
|
|
103
103
|
type SortOrder = "asc" | "desc";
|
|
104
104
|
type GetListParams<A, B> = {
|
|
@@ -517,14 +517,6 @@ declare class Client {
|
|
|
517
517
|
longitude?: string;
|
|
518
518
|
countryCode?: string;
|
|
519
519
|
}): Promise<AutosuggestAddressResult[]>;
|
|
520
|
-
/**
|
|
521
|
-
* Get geocode address results
|
|
522
|
-
*/
|
|
523
|
-
getGeocodeAddressResults(clientSecret: string, params: {
|
|
524
|
-
id: string;
|
|
525
|
-
title: string;
|
|
526
|
-
position: AutosuggestAddressResult["position"];
|
|
527
|
-
}): Promise<GeocodeAddressResult[]>;
|
|
528
520
|
}
|
|
529
521
|
|
|
530
522
|
declare class Collections {
|
|
@@ -598,4 +590,4 @@ declare function createStoreHelpers(config?: {
|
|
|
598
590
|
proxy?: string;
|
|
599
591
|
}): Helpers;
|
|
600
592
|
|
|
601
|
-
export { type Address, type AutosuggestAddressResult, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type
|
|
593
|
+
export { type Address, type AutosuggestAddressResult, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListDiscountsParams, type ListDiscountsQuery, type ListDiscountsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyParams, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -93,12 +93,12 @@ interface CheckoutSession {
|
|
|
93
93
|
type AutosuggestAddressResult = {
|
|
94
94
|
id: string;
|
|
95
95
|
title: string;
|
|
96
|
+
address: Pick<Address, "line1" | "line2" | "city" | "province" | "provinceCode" | "country" | "countryCode" | "zipCode">;
|
|
96
97
|
position: {
|
|
97
98
|
lat: number;
|
|
98
99
|
lng: number;
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
|
-
type GeocodeAddressResult = Omit<AutosuggestAddressResult, "position"> & Pick<Address, "line1" | "line2" | "city" | "province" | "provinceCode" | "country" | "countryCode" | "zipCode">;
|
|
102
102
|
|
|
103
103
|
type SortOrder = "asc" | "desc";
|
|
104
104
|
type GetListParams<A, B> = {
|
|
@@ -517,14 +517,6 @@ declare class Client {
|
|
|
517
517
|
longitude?: string;
|
|
518
518
|
countryCode?: string;
|
|
519
519
|
}): Promise<AutosuggestAddressResult[]>;
|
|
520
|
-
/**
|
|
521
|
-
* Get geocode address results
|
|
522
|
-
*/
|
|
523
|
-
getGeocodeAddressResults(clientSecret: string, params: {
|
|
524
|
-
id: string;
|
|
525
|
-
title: string;
|
|
526
|
-
position: AutosuggestAddressResult["position"];
|
|
527
|
-
}): Promise<GeocodeAddressResult[]>;
|
|
528
520
|
}
|
|
529
521
|
|
|
530
522
|
declare class Collections {
|
|
@@ -598,4 +590,4 @@ declare function createStoreHelpers(config?: {
|
|
|
598
590
|
proxy?: string;
|
|
599
591
|
}): Helpers;
|
|
600
592
|
|
|
601
|
-
export { type Address, type AutosuggestAddressResult, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type
|
|
593
|
+
export { type Address, type AutosuggestAddressResult, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Collection, type CollectionWithProducts, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerSession, type CustomerSubscription, type CustomerSubscriptionUpdateParams, type CustomerUpdateParams, type Discount, type LineItem, type LineItemCreate, type ListCollectionsParams, type ListCollectionsQuery, type ListCollectionsSortBy, type ListDiscountsParams, type ListDiscountsQuery, type ListDiscountsSortBy, type ListProductsParams, type ListProductsQuery, type ListProductsSortBy, type OTPLoginParams, type OTPLoginResponse, type OTPSignupParams, type OTPSignupResponse, type OTPVerifyParams, type OTPVerifyResponse, type Product, type ProductBillingInterval, type ProductBillingType, type ProductOption, type ProductStatus, type ProductVariant, type ProductWithoutVariants, type RetrieveCollectionParams, type RetrieveDiscountParams, type RetrieveProductParams, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
package/dist/index.js
CHANGED
|
@@ -420,21 +420,6 @@ var Client = class {
|
|
|
420
420
|
});
|
|
421
421
|
return data;
|
|
422
422
|
}
|
|
423
|
-
/**
|
|
424
|
-
* Get geocode address results
|
|
425
|
-
*/
|
|
426
|
-
async getGeocodeAddressResults(clientSecret, params) {
|
|
427
|
-
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
428
|
-
const { position, ...rest } = params;
|
|
429
|
-
const { data } = await apiClient.get("/helpers/geocode-address", {
|
|
430
|
-
params: {
|
|
431
|
-
...rest,
|
|
432
|
-
lat: position.lat,
|
|
433
|
-
lng: position.lng
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
return data;
|
|
437
|
-
}
|
|
438
423
|
};
|
|
439
424
|
var client_default = Client;
|
|
440
425
|
|
package/dist/index.mjs
CHANGED
|
@@ -382,21 +382,6 @@ var Client = class {
|
|
|
382
382
|
});
|
|
383
383
|
return data;
|
|
384
384
|
}
|
|
385
|
-
/**
|
|
386
|
-
* Get geocode address results
|
|
387
|
-
*/
|
|
388
|
-
async getGeocodeAddressResults(clientSecret, params) {
|
|
389
|
-
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
390
|
-
const { position, ...rest } = params;
|
|
391
|
-
const { data } = await apiClient.get("/helpers/geocode-address", {
|
|
392
|
-
params: {
|
|
393
|
-
...rest,
|
|
394
|
-
lat: position.lat,
|
|
395
|
-
lng: position.lng
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
return data;
|
|
399
|
-
}
|
|
400
385
|
};
|
|
401
386
|
var client_default = Client;
|
|
402
387
|
|