@betterstore/sdk 0.3.95 → 0.3.97

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.97
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.96
10
+
11
+ ### Patch Changes
12
+
13
+ - metadata added to product and variants
14
+
3
15
  ## 0.3.95
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -15,7 +15,7 @@ interface ZasilkovnaRate extends BaseRate {
15
15
 
16
16
  type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount"> & {
17
17
  productId: string;
18
- selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions">;
18
+ selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions" | "metadata">;
19
19
  };
20
20
  interface LineItem {
21
21
  quantity: number;
@@ -148,6 +148,7 @@ interface ProductVariant {
148
148
  billingType: ProductBillingType;
149
149
  billingInterval: ProductBillingInterval;
150
150
  billingIntervalCount: number;
151
+ metadata?: Record<string, any>;
151
152
  variantOptions: VariantOption[];
152
153
  }
153
154
  interface ProductOption {
@@ -185,6 +186,7 @@ interface Product {
185
186
  seoDescription?: string;
186
187
  seoHandle?: string;
187
188
  vendor?: string;
189
+ metadata?: Record<string, any>;
188
190
  status: ProductStatus;
189
191
  options: ProductOption[];
190
192
  productVariants: ProductVariant[];
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ interface ZasilkovnaRate extends BaseRate {
15
15
 
16
16
  type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount"> & {
17
17
  productId: string;
18
- selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions">;
18
+ selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions" | "metadata">;
19
19
  };
20
20
  interface LineItem {
21
21
  quantity: number;
@@ -148,6 +148,7 @@ interface ProductVariant {
148
148
  billingType: ProductBillingType;
149
149
  billingInterval: ProductBillingInterval;
150
150
  billingIntervalCount: number;
151
+ metadata?: Record<string, any>;
151
152
  variantOptions: VariantOption[];
152
153
  }
153
154
  interface ProductOption {
@@ -185,6 +186,7 @@ interface Product {
185
186
  seoDescription?: string;
186
187
  seoHandle?: string;
187
188
  vendor?: string;
189
+ metadata?: Record<string, any>;
188
190
  status: ProductStatus;
189
191
  options: ProductOption[];
190
192
  productVariants: ProductVariant[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.95",
3
+ "version": "0.3.97",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {