@betterstore/sdk 0.3.43 → 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,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.45
4
+
5
+ ### Patch Changes
6
+
7
+ - product type altered
8
+
9
+ ## 0.3.44
10
+
11
+ ### Patch Changes
12
+
13
+ - new product seo props added
14
+
3
15
  ## 0.3.43
4
16
 
5
17
  ### 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,9 +77,15 @@ 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;
86
+ seoPageTitle?: string;
87
+ seoDescription?: string;
88
+ seoHandle?: string;
79
89
  status: ProductStatus;
80
90
  options: ProductOption[];
81
91
  productVariants: ProductVariant[];
@@ -94,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
94
104
  clientSecret: string;
95
105
  }
96
106
 
97
- 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"> & {
98
108
  selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
99
109
  };
100
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,9 +77,15 @@ 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;
86
+ seoPageTitle?: string;
87
+ seoDescription?: string;
88
+ seoHandle?: string;
79
89
  status: ProductStatus;
80
90
  options: ProductOption[];
81
91
  productVariants: ProductVariant[];
@@ -94,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
94
104
  clientSecret: string;
95
105
  }
96
106
 
97
- 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"> & {
98
108
  selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
99
109
  };
100
110
  interface LineItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {