@betterstore/sdk 0.3.30 → 0.3.32
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 -2
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -77,10 +77,13 @@ 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 {
|
|
83
85
|
provider: string;
|
|
86
|
+
name: string;
|
|
84
87
|
price: number;
|
|
85
88
|
}
|
|
86
89
|
interface ZasilkovnaRate extends BaseRate {
|
|
@@ -229,7 +232,7 @@ declare class Helpers {
|
|
|
229
232
|
declare class Products {
|
|
230
233
|
private apiClient;
|
|
231
234
|
constructor(apiKey: string, proxy?: string);
|
|
232
|
-
list(): Promise<
|
|
235
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
233
236
|
retrieve(productId: string): Promise<Product>;
|
|
234
237
|
}
|
|
235
238
|
|
|
@@ -248,4 +251,4 @@ declare function createStoreHelpers(config?: {
|
|
|
248
251
|
proxy?: string;
|
|
249
252
|
}): Helpers;
|
|
250
253
|
|
|
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 ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
254
|
+
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,10 +77,13 @@ 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 {
|
|
83
85
|
provider: string;
|
|
86
|
+
name: string;
|
|
84
87
|
price: number;
|
|
85
88
|
}
|
|
86
89
|
interface ZasilkovnaRate extends BaseRate {
|
|
@@ -229,7 +232,7 @@ declare class Helpers {
|
|
|
229
232
|
declare class Products {
|
|
230
233
|
private apiClient;
|
|
231
234
|
constructor(apiKey: string, proxy?: string);
|
|
232
|
-
list(): Promise<
|
|
235
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
233
236
|
retrieve(productId: string): Promise<Product>;
|
|
234
237
|
}
|
|
235
238
|
|
|
@@ -248,4 +251,4 @@ declare function createStoreHelpers(config?: {
|
|
|
248
251
|
proxy?: string;
|
|
249
252
|
}): Helpers;
|
|
250
253
|
|
|
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 ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
|
|
254
|
+
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 };
|