@betterstore/sdk 0.3.31 → 0.3.33
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -77,6 +77,8 @@ interface Product {
|
|
|
77
77
|
options: ProductOption[];
|
|
78
78
|
productVariants: ProductVariant[];
|
|
79
79
|
}
|
|
80
|
+
interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
|
|
81
|
+
}
|
|
80
82
|
|
|
81
83
|
type ShippingRate = ZasilkovnaRate;
|
|
82
84
|
interface BaseRate {
|
|
@@ -108,11 +110,8 @@ interface CheckoutCreateParams {
|
|
|
108
110
|
currency?: Currency;
|
|
109
111
|
}
|
|
110
112
|
interface CheckoutUpdateParams {
|
|
111
|
-
lineItems?: LineItem[];
|
|
112
113
|
customerId?: string;
|
|
113
|
-
|
|
114
|
-
shipping?: number;
|
|
115
|
-
shipmentInfo?: {
|
|
114
|
+
shipmentData?: {
|
|
116
115
|
provider: string;
|
|
117
116
|
name?: string;
|
|
118
117
|
pickupPointId?: string;
|
|
@@ -230,7 +229,7 @@ declare class Helpers {
|
|
|
230
229
|
declare class Products {
|
|
231
230
|
private apiClient;
|
|
232
231
|
constructor(apiKey: string, proxy?: string);
|
|
233
|
-
list(): Promise<
|
|
232
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
234
233
|
retrieve(productId: string): Promise<Product>;
|
|
235
234
|
}
|
|
236
235
|
|
|
@@ -249,4 +248,4 @@ declare function createStoreHelpers(config?: {
|
|
|
249
248
|
proxy?: string;
|
|
250
249
|
}): Helpers;
|
|
251
250
|
|
|
252
|
-
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
251
|
+
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ProductWithoutVariants, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,8 @@ interface Product {
|
|
|
77
77
|
options: ProductOption[];
|
|
78
78
|
productVariants: ProductVariant[];
|
|
79
79
|
}
|
|
80
|
+
interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
|
|
81
|
+
}
|
|
80
82
|
|
|
81
83
|
type ShippingRate = ZasilkovnaRate;
|
|
82
84
|
interface BaseRate {
|
|
@@ -108,11 +110,8 @@ interface CheckoutCreateParams {
|
|
|
108
110
|
currency?: Currency;
|
|
109
111
|
}
|
|
110
112
|
interface CheckoutUpdateParams {
|
|
111
|
-
lineItems?: LineItem[];
|
|
112
113
|
customerId?: string;
|
|
113
|
-
|
|
114
|
-
shipping?: number;
|
|
115
|
-
shipmentInfo?: {
|
|
114
|
+
shipmentData?: {
|
|
116
115
|
provider: string;
|
|
117
116
|
name?: string;
|
|
118
117
|
pickupPointId?: string;
|
|
@@ -230,7 +229,7 @@ declare class Helpers {
|
|
|
230
229
|
declare class Products {
|
|
231
230
|
private apiClient;
|
|
232
231
|
constructor(apiKey: string, proxy?: string);
|
|
233
|
-
list(): Promise<
|
|
232
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
234
233
|
retrieve(productId: string): Promise<Product>;
|
|
235
234
|
}
|
|
236
235
|
|
|
@@ -249,4 +248,4 @@ declare function createStoreHelpers(config?: {
|
|
|
249
248
|
proxy?: string;
|
|
250
249
|
}): Helpers;
|
|
251
250
|
|
|
252
|
-
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
251
|
+
export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ProductWithoutVariants, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|