@betterstore/sdk 0.3.31 → 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 +6 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- 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 {
|
|
@@ -230,7 +232,7 @@ declare class Helpers {
|
|
|
230
232
|
declare class Products {
|
|
231
233
|
private apiClient;
|
|
232
234
|
constructor(apiKey: string, proxy?: string);
|
|
233
|
-
list(): Promise<
|
|
235
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
234
236
|
retrieve(productId: string): Promise<Product>;
|
|
235
237
|
}
|
|
236
238
|
|
|
@@ -249,4 +251,4 @@ declare function createStoreHelpers(config?: {
|
|
|
249
251
|
proxy?: string;
|
|
250
252
|
}): Helpers;
|
|
251
253
|
|
|
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 };
|
|
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,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 {
|
|
@@ -230,7 +232,7 @@ declare class Helpers {
|
|
|
230
232
|
declare class Products {
|
|
231
233
|
private apiClient;
|
|
232
234
|
constructor(apiKey: string, proxy?: string);
|
|
233
|
-
list(): Promise<
|
|
235
|
+
list(): Promise<ProductWithoutVariants[]>;
|
|
234
236
|
retrieve(productId: string): Promise<Product>;
|
|
235
237
|
}
|
|
236
238
|
|
|
@@ -249,4 +251,4 @@ declare function createStoreHelpers(config?: {
|
|
|
249
251
|
proxy?: string;
|
|
250
252
|
}): Helpers;
|
|
251
253
|
|
|
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 };
|
|
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 };
|