@betterstore/sdk 0.3.41 → 0.3.43
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
|
@@ -39,7 +39,9 @@ interface VariantOption {
|
|
|
39
39
|
value: string;
|
|
40
40
|
}
|
|
41
41
|
interface ProductVariant {
|
|
42
|
-
|
|
42
|
+
title: string;
|
|
43
|
+
sku?: string;
|
|
44
|
+
barcode?: string;
|
|
43
45
|
images: string[];
|
|
44
46
|
isPhysical: boolean;
|
|
45
47
|
weightInGrams?: number;
|
|
@@ -93,7 +95,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
96
|
-
selectedVariant: Pick<ProductVariant, "sku" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
98
|
+
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
97
99
|
};
|
|
98
100
|
interface LineItem {
|
|
99
101
|
quantity: number;
|
|
@@ -106,6 +108,7 @@ interface LineItem {
|
|
|
106
108
|
metadata?: string;
|
|
107
109
|
}
|
|
108
110
|
interface LineItemCreate extends Omit<LineItem, "product" | "metadata"> {
|
|
111
|
+
productId: string;
|
|
109
112
|
product?: Pick<Product, "title" | "priceInCents" | "images">;
|
|
110
113
|
metadata?: RecursiveRecord;
|
|
111
114
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,9 @@ interface VariantOption {
|
|
|
39
39
|
value: string;
|
|
40
40
|
}
|
|
41
41
|
interface ProductVariant {
|
|
42
|
-
|
|
42
|
+
title: string;
|
|
43
|
+
sku?: string;
|
|
44
|
+
barcode?: string;
|
|
43
45
|
images: string[];
|
|
44
46
|
isPhysical: boolean;
|
|
45
47
|
weightInGrams?: number;
|
|
@@ -93,7 +95,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
96
|
-
selectedVariant: Pick<ProductVariant, "sku" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
98
|
+
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
97
99
|
};
|
|
98
100
|
interface LineItem {
|
|
99
101
|
quantity: number;
|
|
@@ -106,6 +108,7 @@ interface LineItem {
|
|
|
106
108
|
metadata?: string;
|
|
107
109
|
}
|
|
108
110
|
interface LineItemCreate extends Omit<LineItem, "product" | "metadata"> {
|
|
111
|
+
productId: string;
|
|
109
112
|
product?: Pick<Product, "title" | "priceInCents" | "images">;
|
|
110
113
|
metadata?: RecursiveRecord;
|
|
111
114
|
}
|