@shoppexio/storefront 1.0.94 → 1.0.95

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/dist/index.d.cts CHANGED
@@ -259,6 +259,8 @@ interface Product {
259
259
  /** The merchant's word for one / several delivered units of a SERIALS product ("License key"); null when unset. */
260
260
  label_singular?: string | null;
261
261
  label_plural?: string | null;
262
+ /** The merchant's SKU; null when they set none. */
263
+ sku?: string | null;
262
264
  /**
263
265
  * The merchant's explicit service status for storefront `/status` pages; null
264
266
  * when they set none (the product is then not listed there).
@@ -412,6 +414,8 @@ interface ProductVariant {
412
414
  id: string;
413
415
  title: string;
414
416
  price?: number;
417
+ /** The merchant's SKU for this option; null when they set none. */
418
+ sku?: string | null;
415
419
  /**
416
420
  * RAW local stock for this option only. `-1` (or any negative value) means
417
421
  * unlimited, `0` means no local units — which a supplier-backed option reports
@@ -474,6 +478,8 @@ interface PriceVariant {
474
478
  /** The merchant's one-line note on this option ("1 seat"); absent when unset. */
475
479
  description?: string;
476
480
  price: number;
481
+ /** The merchant's SKU for this option; null when they set none. */
482
+ sku?: string | null;
477
483
  /**
478
484
  * RAW local stock for this price variant only. `-1` (or any negative value)
479
485
  * means unlimited, `0` means no local units — which a supplier-backed variant
package/dist/index.d.ts CHANGED
@@ -259,6 +259,8 @@ interface Product {
259
259
  /** The merchant's word for one / several delivered units of a SERIALS product ("License key"); null when unset. */
260
260
  label_singular?: string | null;
261
261
  label_plural?: string | null;
262
+ /** The merchant's SKU; null when they set none. */
263
+ sku?: string | null;
262
264
  /**
263
265
  * The merchant's explicit service status for storefront `/status` pages; null
264
266
  * when they set none (the product is then not listed there).
@@ -412,6 +414,8 @@ interface ProductVariant {
412
414
  id: string;
413
415
  title: string;
414
416
  price?: number;
417
+ /** The merchant's SKU for this option; null when they set none. */
418
+ sku?: string | null;
415
419
  /**
416
420
  * RAW local stock for this option only. `-1` (or any negative value) means
417
421
  * unlimited, `0` means no local units — which a supplier-backed option reports
@@ -474,6 +478,8 @@ interface PriceVariant {
474
478
  /** The merchant's one-line note on this option ("1 seat"); absent when unset. */
475
479
  description?: string;
476
480
  price: number;
481
+ /** The merchant's SKU for this option; null when they set none. */
482
+ sku?: string | null;
477
483
  /**
478
484
  * RAW local stock for this price variant only. `-1` (or any negative value)
479
485
  * means unlimited, `0` means no local units — which a supplier-backed variant
package/dist/index.js CHANGED
@@ -1228,6 +1228,7 @@ function priceVariantToProductVariant(variant) {
1228
1228
  id: variant.id,
1229
1229
  title: variant.title ?? variant.label ?? "",
1230
1230
  price: typeof variant.price === "number" ? variant.price : Number(variant.price) || 0,
1231
+ sku: variant.sku,
1231
1232
  stock: typeof variant.stock === "number" ? variant.stock : void 0,
1232
1233
  // Dynamic Delivery (S8): carry the availability pair through. A supplier-backed
1233
1234
  // variant reports `stock: 0`, so dropping `orderable` here would make the mapped