@betterstore/sdk 0.3.41 → 0.3.42

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.42
4
+
5
+ ### Patch Changes
6
+
7
+ - types fix
8
+
3
9
  ## 0.3.41
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -39,7 +39,9 @@ interface VariantOption {
39
39
  value: string;
40
40
  }
41
41
  interface ProductVariant {
42
- sku: string;
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;
package/dist/index.d.ts CHANGED
@@ -39,7 +39,9 @@ interface VariantOption {
39
39
  value: string;
40
40
  }
41
41
  interface ProductVariant {
42
- sku: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {