@putiikkipalvelu/storefront-sdk 0.5.2 → 0.5.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 +40 -2
- package/dist/index.d.ts +40 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -14,6 +14,16 @@ interface StoreConfig {
|
|
|
14
14
|
navPages: NavPage[];
|
|
15
15
|
campaigns: Campaign[];
|
|
16
16
|
features: FeatureFlags;
|
|
17
|
+
analytics: AnalyticsConfig;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Analytics configuration for the storefront
|
|
21
|
+
*/
|
|
22
|
+
interface AnalyticsConfig {
|
|
23
|
+
/** Umami website UUID for tracking */
|
|
24
|
+
umamiWebsiteId: string | null;
|
|
25
|
+
/** URL to the Umami tracking script */
|
|
26
|
+
umamiScriptUrl: string | null;
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* A published CMS page exposed in navigation
|
|
@@ -1546,7 +1556,35 @@ interface OpeningHoursBlock extends BaseBlock {
|
|
|
1546
1556
|
days: Record<string, OpeningHoursEntry>;
|
|
1547
1557
|
};
|
|
1548
1558
|
}
|
|
1549
|
-
|
|
1559
|
+
interface ImageGridItem {
|
|
1560
|
+
id: string;
|
|
1561
|
+
imageUrl: string;
|
|
1562
|
+
content: string;
|
|
1563
|
+
order: number;
|
|
1564
|
+
}
|
|
1565
|
+
interface ImageGridBlock extends BaseBlock {
|
|
1566
|
+
type: "image_grid";
|
|
1567
|
+
data: {
|
|
1568
|
+
title?: string;
|
|
1569
|
+
columns: 2 | 3 | 4;
|
|
1570
|
+
items: ImageGridItem[];
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
interface TextGridItem {
|
|
1574
|
+
id: string;
|
|
1575
|
+
content: string;
|
|
1576
|
+
order: number;
|
|
1577
|
+
}
|
|
1578
|
+
interface TextGridBlock extends BaseBlock {
|
|
1579
|
+
type: "text_grid";
|
|
1580
|
+
data: {
|
|
1581
|
+
title?: string;
|
|
1582
|
+
description?: string;
|
|
1583
|
+
columns: 2 | 3 | 4 | 5 | 6;
|
|
1584
|
+
items: TextGridItem[];
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
type PageBlock = MarkdownBlock | AccordionBlock | GalleryBlock | AboutBlock | ShowcaseBlock | HeroBlock | LatestProductsBlock | CtaBlock | CarouselContentBlock | OpeningHoursBlock | ImageGridBlock | TextGridBlock;
|
|
1550
1588
|
|
|
1551
1589
|
/**
|
|
1552
1590
|
* Ticket Types
|
|
@@ -3186,4 +3224,4 @@ declare class VerificationRequiredError extends StorefrontError {
|
|
|
3186
3224
|
constructor(message: string, customerId: string);
|
|
3187
3225
|
}
|
|
3188
3226
|
|
|
3189
|
-
export { type AboutBlock, type AccordionBlock, type AccordionItem, type AddToCartParams, type AddToWishlistResponse, type AppliedDiscount, type ApplyDiscountParams, type ApplyDiscountResponse, AuthError, type BuyXPayYCampaign, type CalculatedCartItem, type Campaign, type CampaignType, type CarouselContentBlock, type CarouselContentItem, type CartCalculationResult, type CartItem, type CartResponse, type CartSessionOptions, type CartValidationChanges, type CartValidationResponse, type Category, type CategoryReference, type CategoryResponse, type CheckoutCustomerData, type CheckoutErrorCode, type CheckoutErrorDetails, type CheckoutOptions, type CheckoutParams, type CheckoutShipmentMethod, type ConfirmationItemType, type ConfirmationOrderCustomerData, type ConfirmationOrderLineItem, type ConfirmationOrderShipmentMethod, type Customer, type CustomerOrder, type DeleteAccountResponse, type DiscountApplyErrorCode, type DiscountCodeError, type DiscountMessageLocale, type DiscountRemovalReason, type DiscountType, type FeatureFlags, type FetchOptions, type ForgotPasswordResponse, type FormatDiscountOptions, type GalleryBlock, type GalleryItem, type GetDiscountParams, type GetDiscountResponse, type GetOrdersResponse, type GetUserResponse, type HomeDeliveryOption, type LoginOptions, type LoginResponse, type LoginVerificationRequiredResponse, type LogoutResponse, type MarkdownBlock, type NavPage, NotFoundError, type OpeningHours, type OpeningHoursBlock, type OpeningHoursEntry, type Order, type OrderLineItem, type OrderProductInfo, type OrderShipmentMethod, type OrderStatus, type PageBlock, type PageSeo, type PaymentConfig, type PaytrailCheckoutResponse, type PaytrailGroup, type PaytrailProvider, type PickupPointOption, type PriceInfo, type Product, type ProductCountResponse, type ProductDetail, type ProductListParams, type ProductListResponse, type ProductSortOption, type ProductTicketInfo, type ProductVariation, type ProductVariationListing, type PurchasedTicket, RateLimitError, type RegisterData, type RegisterResponse, type RemoveDiscountParams, type RemoveDiscountResponse, type RemoveFromCartParams, type RemoveFromWishlistResponse, type ResendVerificationResponse, type ResetPasswordResponse, type ShipitShippingMethod, type ShipmentMethod, type ShipmentMethodsResponse, type ShowcaseBlock, type ShowcaseItem, type StoreConfig, type StoreInfo, type StorePage, type StoreSeo, type StorefrontClient, type StorefrontClientConfig, StorefrontError, type StripeCheckoutResponse, type TicketEvent, type TicketEventsResponse, type TicketGetResponse, type TicketHolderData, type TicketStatus, type TicketUseResponse, type TicketValidatePinResponse, type UpdateCartQuantityParams, type UpdateProfileData, type UpdateProfileResponse, ValidationError, type VariationOption, VerificationRequiredError, type VerifyEmailResponse, type WishlistItem, type WishlistProduct, type WishlistResponse, type WishlistVariation, type WishlistVariationOption, calculateCartWithCampaigns, calculateDiscountAmount, createStorefrontClient, formatDiscountValue, getDiscountApplyErrorMessage, getDiscountRemovalMessage, getPriceInfo, isSaleActive };
|
|
3227
|
+
export { type AboutBlock, type AccordionBlock, type AccordionItem, type AddToCartParams, type AddToWishlistResponse, type AnalyticsConfig, type AppliedDiscount, type ApplyDiscountParams, type ApplyDiscountResponse, AuthError, type BuyXPayYCampaign, type CalculatedCartItem, type Campaign, type CampaignType, type CarouselContentBlock, type CarouselContentItem, type CartCalculationResult, type CartItem, type CartResponse, type CartSessionOptions, type CartValidationChanges, type CartValidationResponse, type Category, type CategoryReference, type CategoryResponse, type CheckoutCustomerData, type CheckoutErrorCode, type CheckoutErrorDetails, type CheckoutOptions, type CheckoutParams, type CheckoutShipmentMethod, type ConfirmationItemType, type ConfirmationOrderCustomerData, type ConfirmationOrderLineItem, type ConfirmationOrderShipmentMethod, type Customer, type CustomerOrder, type DeleteAccountResponse, type DiscountApplyErrorCode, type DiscountCodeError, type DiscountMessageLocale, type DiscountRemovalReason, type DiscountType, type FeatureFlags, type FetchOptions, type ForgotPasswordResponse, type FormatDiscountOptions, type GalleryBlock, type GalleryItem, type GetDiscountParams, type GetDiscountResponse, type GetOrdersResponse, type GetUserResponse, type HomeDeliveryOption, type ImageGridBlock, type ImageGridItem, type LoginOptions, type LoginResponse, type LoginVerificationRequiredResponse, type LogoutResponse, type MarkdownBlock, type NavPage, NotFoundError, type OpeningHours, type OpeningHoursBlock, type OpeningHoursEntry, type Order, type OrderLineItem, type OrderProductInfo, type OrderShipmentMethod, type OrderStatus, type PageBlock, type PageSeo, type PaymentConfig, type PaytrailCheckoutResponse, type PaytrailGroup, type PaytrailProvider, type PickupPointOption, type PriceInfo, type Product, type ProductCountResponse, type ProductDetail, type ProductListParams, type ProductListResponse, type ProductSortOption, type ProductTicketInfo, type ProductVariation, type ProductVariationListing, type PurchasedTicket, RateLimitError, type RegisterData, type RegisterResponse, type RemoveDiscountParams, type RemoveDiscountResponse, type RemoveFromCartParams, type RemoveFromWishlistResponse, type ResendVerificationResponse, type ResetPasswordResponse, type ShipitShippingMethod, type ShipmentMethod, type ShipmentMethodsResponse, type ShowcaseBlock, type ShowcaseItem, type StoreConfig, type StoreInfo, type StorePage, type StoreSeo, type StorefrontClient, type StorefrontClientConfig, StorefrontError, type StripeCheckoutResponse, type TextGridBlock, type TextGridItem, type TicketEvent, type TicketEventsResponse, type TicketGetResponse, type TicketHolderData, type TicketStatus, type TicketUseResponse, type TicketValidatePinResponse, type UpdateCartQuantityParams, type UpdateProfileData, type UpdateProfileResponse, ValidationError, type VariationOption, VerificationRequiredError, type VerifyEmailResponse, type WishlistItem, type WishlistProduct, type WishlistResponse, type WishlistVariation, type WishlistVariationOption, calculateCartWithCampaigns, calculateDiscountAmount, createStorefrontClient, formatDiscountValue, getDiscountApplyErrorMessage, getDiscountRemovalMessage, getPriceInfo, isSaleActive };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,16 @@ interface StoreConfig {
|
|
|
14
14
|
navPages: NavPage[];
|
|
15
15
|
campaigns: Campaign[];
|
|
16
16
|
features: FeatureFlags;
|
|
17
|
+
analytics: AnalyticsConfig;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Analytics configuration for the storefront
|
|
21
|
+
*/
|
|
22
|
+
interface AnalyticsConfig {
|
|
23
|
+
/** Umami website UUID for tracking */
|
|
24
|
+
umamiWebsiteId: string | null;
|
|
25
|
+
/** URL to the Umami tracking script */
|
|
26
|
+
umamiScriptUrl: string | null;
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* A published CMS page exposed in navigation
|
|
@@ -1546,7 +1556,35 @@ interface OpeningHoursBlock extends BaseBlock {
|
|
|
1546
1556
|
days: Record<string, OpeningHoursEntry>;
|
|
1547
1557
|
};
|
|
1548
1558
|
}
|
|
1549
|
-
|
|
1559
|
+
interface ImageGridItem {
|
|
1560
|
+
id: string;
|
|
1561
|
+
imageUrl: string;
|
|
1562
|
+
content: string;
|
|
1563
|
+
order: number;
|
|
1564
|
+
}
|
|
1565
|
+
interface ImageGridBlock extends BaseBlock {
|
|
1566
|
+
type: "image_grid";
|
|
1567
|
+
data: {
|
|
1568
|
+
title?: string;
|
|
1569
|
+
columns: 2 | 3 | 4;
|
|
1570
|
+
items: ImageGridItem[];
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
interface TextGridItem {
|
|
1574
|
+
id: string;
|
|
1575
|
+
content: string;
|
|
1576
|
+
order: number;
|
|
1577
|
+
}
|
|
1578
|
+
interface TextGridBlock extends BaseBlock {
|
|
1579
|
+
type: "text_grid";
|
|
1580
|
+
data: {
|
|
1581
|
+
title?: string;
|
|
1582
|
+
description?: string;
|
|
1583
|
+
columns: 2 | 3 | 4 | 5 | 6;
|
|
1584
|
+
items: TextGridItem[];
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
type PageBlock = MarkdownBlock | AccordionBlock | GalleryBlock | AboutBlock | ShowcaseBlock | HeroBlock | LatestProductsBlock | CtaBlock | CarouselContentBlock | OpeningHoursBlock | ImageGridBlock | TextGridBlock;
|
|
1550
1588
|
|
|
1551
1589
|
/**
|
|
1552
1590
|
* Ticket Types
|
|
@@ -3186,4 +3224,4 @@ declare class VerificationRequiredError extends StorefrontError {
|
|
|
3186
3224
|
constructor(message: string, customerId: string);
|
|
3187
3225
|
}
|
|
3188
3226
|
|
|
3189
|
-
export { type AboutBlock, type AccordionBlock, type AccordionItem, type AddToCartParams, type AddToWishlistResponse, type AppliedDiscount, type ApplyDiscountParams, type ApplyDiscountResponse, AuthError, type BuyXPayYCampaign, type CalculatedCartItem, type Campaign, type CampaignType, type CarouselContentBlock, type CarouselContentItem, type CartCalculationResult, type CartItem, type CartResponse, type CartSessionOptions, type CartValidationChanges, type CartValidationResponse, type Category, type CategoryReference, type CategoryResponse, type CheckoutCustomerData, type CheckoutErrorCode, type CheckoutErrorDetails, type CheckoutOptions, type CheckoutParams, type CheckoutShipmentMethod, type ConfirmationItemType, type ConfirmationOrderCustomerData, type ConfirmationOrderLineItem, type ConfirmationOrderShipmentMethod, type Customer, type CustomerOrder, type DeleteAccountResponse, type DiscountApplyErrorCode, type DiscountCodeError, type DiscountMessageLocale, type DiscountRemovalReason, type DiscountType, type FeatureFlags, type FetchOptions, type ForgotPasswordResponse, type FormatDiscountOptions, type GalleryBlock, type GalleryItem, type GetDiscountParams, type GetDiscountResponse, type GetOrdersResponse, type GetUserResponse, type HomeDeliveryOption, type LoginOptions, type LoginResponse, type LoginVerificationRequiredResponse, type LogoutResponse, type MarkdownBlock, type NavPage, NotFoundError, type OpeningHours, type OpeningHoursBlock, type OpeningHoursEntry, type Order, type OrderLineItem, type OrderProductInfo, type OrderShipmentMethod, type OrderStatus, type PageBlock, type PageSeo, type PaymentConfig, type PaytrailCheckoutResponse, type PaytrailGroup, type PaytrailProvider, type PickupPointOption, type PriceInfo, type Product, type ProductCountResponse, type ProductDetail, type ProductListParams, type ProductListResponse, type ProductSortOption, type ProductTicketInfo, type ProductVariation, type ProductVariationListing, type PurchasedTicket, RateLimitError, type RegisterData, type RegisterResponse, type RemoveDiscountParams, type RemoveDiscountResponse, type RemoveFromCartParams, type RemoveFromWishlistResponse, type ResendVerificationResponse, type ResetPasswordResponse, type ShipitShippingMethod, type ShipmentMethod, type ShipmentMethodsResponse, type ShowcaseBlock, type ShowcaseItem, type StoreConfig, type StoreInfo, type StorePage, type StoreSeo, type StorefrontClient, type StorefrontClientConfig, StorefrontError, type StripeCheckoutResponse, type TicketEvent, type TicketEventsResponse, type TicketGetResponse, type TicketHolderData, type TicketStatus, type TicketUseResponse, type TicketValidatePinResponse, type UpdateCartQuantityParams, type UpdateProfileData, type UpdateProfileResponse, ValidationError, type VariationOption, VerificationRequiredError, type VerifyEmailResponse, type WishlistItem, type WishlistProduct, type WishlistResponse, type WishlistVariation, type WishlistVariationOption, calculateCartWithCampaigns, calculateDiscountAmount, createStorefrontClient, formatDiscountValue, getDiscountApplyErrorMessage, getDiscountRemovalMessage, getPriceInfo, isSaleActive };
|
|
3227
|
+
export { type AboutBlock, type AccordionBlock, type AccordionItem, type AddToCartParams, type AddToWishlistResponse, type AnalyticsConfig, type AppliedDiscount, type ApplyDiscountParams, type ApplyDiscountResponse, AuthError, type BuyXPayYCampaign, type CalculatedCartItem, type Campaign, type CampaignType, type CarouselContentBlock, type CarouselContentItem, type CartCalculationResult, type CartItem, type CartResponse, type CartSessionOptions, type CartValidationChanges, type CartValidationResponse, type Category, type CategoryReference, type CategoryResponse, type CheckoutCustomerData, type CheckoutErrorCode, type CheckoutErrorDetails, type CheckoutOptions, type CheckoutParams, type CheckoutShipmentMethod, type ConfirmationItemType, type ConfirmationOrderCustomerData, type ConfirmationOrderLineItem, type ConfirmationOrderShipmentMethod, type Customer, type CustomerOrder, type DeleteAccountResponse, type DiscountApplyErrorCode, type DiscountCodeError, type DiscountMessageLocale, type DiscountRemovalReason, type DiscountType, type FeatureFlags, type FetchOptions, type ForgotPasswordResponse, type FormatDiscountOptions, type GalleryBlock, type GalleryItem, type GetDiscountParams, type GetDiscountResponse, type GetOrdersResponse, type GetUserResponse, type HomeDeliveryOption, type ImageGridBlock, type ImageGridItem, type LoginOptions, type LoginResponse, type LoginVerificationRequiredResponse, type LogoutResponse, type MarkdownBlock, type NavPage, NotFoundError, type OpeningHours, type OpeningHoursBlock, type OpeningHoursEntry, type Order, type OrderLineItem, type OrderProductInfo, type OrderShipmentMethod, type OrderStatus, type PageBlock, type PageSeo, type PaymentConfig, type PaytrailCheckoutResponse, type PaytrailGroup, type PaytrailProvider, type PickupPointOption, type PriceInfo, type Product, type ProductCountResponse, type ProductDetail, type ProductListParams, type ProductListResponse, type ProductSortOption, type ProductTicketInfo, type ProductVariation, type ProductVariationListing, type PurchasedTicket, RateLimitError, type RegisterData, type RegisterResponse, type RemoveDiscountParams, type RemoveDiscountResponse, type RemoveFromCartParams, type RemoveFromWishlistResponse, type ResendVerificationResponse, type ResetPasswordResponse, type ShipitShippingMethod, type ShipmentMethod, type ShipmentMethodsResponse, type ShowcaseBlock, type ShowcaseItem, type StoreConfig, type StoreInfo, type StorePage, type StoreSeo, type StorefrontClient, type StorefrontClientConfig, StorefrontError, type StripeCheckoutResponse, type TextGridBlock, type TextGridItem, type TicketEvent, type TicketEventsResponse, type TicketGetResponse, type TicketHolderData, type TicketStatus, type TicketUseResponse, type TicketValidatePinResponse, type UpdateCartQuantityParams, type UpdateProfileData, type UpdateProfileResponse, ValidationError, type VariationOption, VerificationRequiredError, type VerifyEmailResponse, type WishlistItem, type WishlistProduct, type WishlistResponse, type WishlistVariation, type WishlistVariationOption, calculateCartWithCampaigns, calculateDiscountAmount, createStorefrontClient, formatDiscountValue, getDiscountApplyErrorMessage, getDiscountRemovalMessage, getPriceInfo, isSaleActive };
|