@putiikkipalvelu/storefront-sdk 0.7.2 → 0.7.4

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
@@ -24,6 +24,8 @@ interface AnalyticsConfig {
24
24
  umamiWebsiteId: string | null;
25
25
  /** URL to the Umami tracking script */
26
26
  umamiScriptUrl: string | null;
27
+ /** Google Tag Manager container ID (e.g. "GTM-XXXXXXX") */
28
+ gtmContainerId: string | null;
27
29
  }
28
30
  /**
29
31
  * A published CMS page exposed in navigation
@@ -360,6 +362,10 @@ interface ProductTicketInfo {
360
362
  requiresHolder: boolean;
361
363
  /** Maximum uses per ticket (0 = unlimited) */
362
364
  maxUses: number;
365
+ /** Ticket sales start (ISO 8601), null = sales open immediately */
366
+ salesStart: string | null;
367
+ /** Ticket sales end (ISO 8601), null = sales never end */
368
+ salesEnd: string | null;
363
369
  }
364
370
  interface ProductDetail extends Omit<Product, "variations"> {
365
371
  /** Product weight in kg (for shipping calculations) */
@@ -494,6 +500,8 @@ interface CartValidationChanges {
494
500
  quantityAdjusted: number;
495
501
  /** Number of items with changed price */
496
502
  priceChanged: number;
503
+ /** Number of ticket items removed because sales window is not open or has ended */
504
+ ticketSalesWindowRemoved: number;
497
505
  /** Whether discount code was removed */
498
506
  discountCouponRemoved: boolean;
499
507
  /** Reason why discount was removed (only present if discountCouponRemoved is true) */
package/dist/index.d.ts CHANGED
@@ -24,6 +24,8 @@ interface AnalyticsConfig {
24
24
  umamiWebsiteId: string | null;
25
25
  /** URL to the Umami tracking script */
26
26
  umamiScriptUrl: string | null;
27
+ /** Google Tag Manager container ID (e.g. "GTM-XXXXXXX") */
28
+ gtmContainerId: string | null;
27
29
  }
28
30
  /**
29
31
  * A published CMS page exposed in navigation
@@ -360,6 +362,10 @@ interface ProductTicketInfo {
360
362
  requiresHolder: boolean;
361
363
  /** Maximum uses per ticket (0 = unlimited) */
362
364
  maxUses: number;
365
+ /** Ticket sales start (ISO 8601), null = sales open immediately */
366
+ salesStart: string | null;
367
+ /** Ticket sales end (ISO 8601), null = sales never end */
368
+ salesEnd: string | null;
363
369
  }
364
370
  interface ProductDetail extends Omit<Product, "variations"> {
365
371
  /** Product weight in kg (for shipping calculations) */
@@ -494,6 +500,8 @@ interface CartValidationChanges {
494
500
  quantityAdjusted: number;
495
501
  /** Number of items with changed price */
496
502
  priceChanged: number;
503
+ /** Number of ticket items removed because sales window is not open or has ended */
504
+ ticketSalesWindowRemoved: number;
497
505
  /** Whether discount code was removed */
498
506
  discountCouponRemoved: boolean;
499
507
  /** Reason why discount was removed (only present if discountCouponRemoved is true) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putiikkipalvelu/storefront-sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "TypeScript SDK for Putiikkipalvelu Storefront API",
5
5
  "author": "Putiikkipalvelu",
6
6
  "license": "MIT",