@betterstore/sdk 0.3.44 → 0.3.45

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.45
4
+
5
+ ### Patch Changes
6
+
7
+ - product type altered
8
+
3
9
  ## 0.3.44
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -40,9 +40,13 @@ interface VariantOption {
40
40
  }
41
41
  interface ProductVariant {
42
42
  title: string;
43
+ images: string[];
44
+ trackInventory: boolean;
43
45
  sku?: string;
44
46
  barcode?: string;
45
- images: string[];
47
+ stockAvailable: number;
48
+ stockCommited: number;
49
+ stockUnavailable: number;
46
50
  isPhysical: boolean;
47
51
  weightInGrams?: number;
48
52
  heightInCm?: number;
@@ -73,6 +77,9 @@ interface Product {
73
77
  widthInCm?: number;
74
78
  lengthInCm?: number;
75
79
  priceInCents: number;
80
+ trackInventory: boolean;
81
+ sku?: string;
82
+ barcode?: string;
76
83
  stockAvailable: number;
77
84
  stockCommited: number;
78
85
  stockUnavailable: number;
@@ -97,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
97
104
  clientSecret: string;
98
105
  }
99
106
 
100
- type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
107
+ type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
101
108
  selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
102
109
  };
103
110
  interface LineItem {
package/dist/index.d.ts CHANGED
@@ -40,9 +40,13 @@ interface VariantOption {
40
40
  }
41
41
  interface ProductVariant {
42
42
  title: string;
43
+ images: string[];
44
+ trackInventory: boolean;
43
45
  sku?: string;
44
46
  barcode?: string;
45
- images: string[];
47
+ stockAvailable: number;
48
+ stockCommited: number;
49
+ stockUnavailable: number;
46
50
  isPhysical: boolean;
47
51
  weightInGrams?: number;
48
52
  heightInCm?: number;
@@ -73,6 +77,9 @@ interface Product {
73
77
  widthInCm?: number;
74
78
  lengthInCm?: number;
75
79
  priceInCents: number;
80
+ trackInventory: boolean;
81
+ sku?: string;
82
+ barcode?: string;
76
83
  stockAvailable: number;
77
84
  stockCommited: number;
78
85
  stockUnavailable: number;
@@ -97,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
97
104
  clientSecret: string;
98
105
  }
99
106
 
100
- type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
107
+ type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
101
108
  selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
102
109
  };
103
110
  interface LineItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.44",
3
+ "version": "0.3.45",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {