@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.43
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.42
10
+
11
+ ### Patch Changes
12
+
13
+ - types fix
14
+
3
15
  ## 0.3.41
4
16
 
5
17
  ### 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;
@@ -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
- 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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.41",
3
+ "version": "0.3.43",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {