@putiikkipalvelu/storefront-sdk 0.5.1 → 0.5.3
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 +57 -2
- package/dist/index.d.ts +57 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1434,6 +1434,7 @@ interface StorePage {
|
|
|
1434
1434
|
interface BaseBlock {
|
|
1435
1435
|
id: string;
|
|
1436
1436
|
order: number;
|
|
1437
|
+
hidden?: boolean;
|
|
1437
1438
|
}
|
|
1438
1439
|
interface MarkdownBlock extends BaseBlock {
|
|
1439
1440
|
type: "markdown";
|
|
@@ -1519,7 +1520,61 @@ interface CtaBlock extends BaseBlock {
|
|
|
1519
1520
|
secondaryButtonLink?: string;
|
|
1520
1521
|
};
|
|
1521
1522
|
}
|
|
1522
|
-
|
|
1523
|
+
interface CarouselContentItem {
|
|
1524
|
+
id: string;
|
|
1525
|
+
src: string;
|
|
1526
|
+
alt?: string;
|
|
1527
|
+
order: number;
|
|
1528
|
+
}
|
|
1529
|
+
interface CarouselContentBlock extends BaseBlock {
|
|
1530
|
+
type: "carousel_content";
|
|
1531
|
+
data: {
|
|
1532
|
+
content: string;
|
|
1533
|
+
items: CarouselContentItem[];
|
|
1534
|
+
contentPosition: "left" | "right";
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
interface OpeningHoursEntry {
|
|
1538
|
+
open: string;
|
|
1539
|
+
close: string;
|
|
1540
|
+
note?: string;
|
|
1541
|
+
}
|
|
1542
|
+
interface OpeningHoursBlock extends BaseBlock {
|
|
1543
|
+
type: "opening_hours";
|
|
1544
|
+
data: {
|
|
1545
|
+
title?: string;
|
|
1546
|
+
days: Record<string, OpeningHoursEntry>;
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
interface ImageGridItem {
|
|
1550
|
+
id: string;
|
|
1551
|
+
imageUrl: string;
|
|
1552
|
+
content: string;
|
|
1553
|
+
order: number;
|
|
1554
|
+
}
|
|
1555
|
+
interface ImageGridBlock extends BaseBlock {
|
|
1556
|
+
type: "image_grid";
|
|
1557
|
+
data: {
|
|
1558
|
+
title?: string;
|
|
1559
|
+
columns: 2 | 3 | 4;
|
|
1560
|
+
items: ImageGridItem[];
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
interface TextGridItem {
|
|
1564
|
+
id: string;
|
|
1565
|
+
content: string;
|
|
1566
|
+
order: number;
|
|
1567
|
+
}
|
|
1568
|
+
interface TextGridBlock extends BaseBlock {
|
|
1569
|
+
type: "text_grid";
|
|
1570
|
+
data: {
|
|
1571
|
+
title?: string;
|
|
1572
|
+
description?: string;
|
|
1573
|
+
columns: 2 | 3 | 4 | 5 | 6;
|
|
1574
|
+
items: TextGridItem[];
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
type PageBlock = MarkdownBlock | AccordionBlock | GalleryBlock | AboutBlock | ShowcaseBlock | HeroBlock | LatestProductsBlock | CtaBlock | CarouselContentBlock | OpeningHoursBlock | ImageGridBlock | TextGridBlock;
|
|
1523
1578
|
|
|
1524
1579
|
/**
|
|
1525
1580
|
* Ticket Types
|
|
@@ -3159,4 +3214,4 @@ declare class VerificationRequiredError extends StorefrontError {
|
|
|
3159
3214
|
constructor(message: string, customerId: string);
|
|
3160
3215
|
}
|
|
3161
3216
|
|
|
3162
|
-
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 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 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 };
|
|
3217
|
+
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 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
|
@@ -1434,6 +1434,7 @@ interface StorePage {
|
|
|
1434
1434
|
interface BaseBlock {
|
|
1435
1435
|
id: string;
|
|
1436
1436
|
order: number;
|
|
1437
|
+
hidden?: boolean;
|
|
1437
1438
|
}
|
|
1438
1439
|
interface MarkdownBlock extends BaseBlock {
|
|
1439
1440
|
type: "markdown";
|
|
@@ -1519,7 +1520,61 @@ interface CtaBlock extends BaseBlock {
|
|
|
1519
1520
|
secondaryButtonLink?: string;
|
|
1520
1521
|
};
|
|
1521
1522
|
}
|
|
1522
|
-
|
|
1523
|
+
interface CarouselContentItem {
|
|
1524
|
+
id: string;
|
|
1525
|
+
src: string;
|
|
1526
|
+
alt?: string;
|
|
1527
|
+
order: number;
|
|
1528
|
+
}
|
|
1529
|
+
interface CarouselContentBlock extends BaseBlock {
|
|
1530
|
+
type: "carousel_content";
|
|
1531
|
+
data: {
|
|
1532
|
+
content: string;
|
|
1533
|
+
items: CarouselContentItem[];
|
|
1534
|
+
contentPosition: "left" | "right";
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
interface OpeningHoursEntry {
|
|
1538
|
+
open: string;
|
|
1539
|
+
close: string;
|
|
1540
|
+
note?: string;
|
|
1541
|
+
}
|
|
1542
|
+
interface OpeningHoursBlock extends BaseBlock {
|
|
1543
|
+
type: "opening_hours";
|
|
1544
|
+
data: {
|
|
1545
|
+
title?: string;
|
|
1546
|
+
days: Record<string, OpeningHoursEntry>;
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
interface ImageGridItem {
|
|
1550
|
+
id: string;
|
|
1551
|
+
imageUrl: string;
|
|
1552
|
+
content: string;
|
|
1553
|
+
order: number;
|
|
1554
|
+
}
|
|
1555
|
+
interface ImageGridBlock extends BaseBlock {
|
|
1556
|
+
type: "image_grid";
|
|
1557
|
+
data: {
|
|
1558
|
+
title?: string;
|
|
1559
|
+
columns: 2 | 3 | 4;
|
|
1560
|
+
items: ImageGridItem[];
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
interface TextGridItem {
|
|
1564
|
+
id: string;
|
|
1565
|
+
content: string;
|
|
1566
|
+
order: number;
|
|
1567
|
+
}
|
|
1568
|
+
interface TextGridBlock extends BaseBlock {
|
|
1569
|
+
type: "text_grid";
|
|
1570
|
+
data: {
|
|
1571
|
+
title?: string;
|
|
1572
|
+
description?: string;
|
|
1573
|
+
columns: 2 | 3 | 4 | 5 | 6;
|
|
1574
|
+
items: TextGridItem[];
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
type PageBlock = MarkdownBlock | AccordionBlock | GalleryBlock | AboutBlock | ShowcaseBlock | HeroBlock | LatestProductsBlock | CtaBlock | CarouselContentBlock | OpeningHoursBlock | ImageGridBlock | TextGridBlock;
|
|
1523
1578
|
|
|
1524
1579
|
/**
|
|
1525
1580
|
* Ticket Types
|
|
@@ -3159,4 +3214,4 @@ declare class VerificationRequiredError extends StorefrontError {
|
|
|
3159
3214
|
constructor(message: string, customerId: string);
|
|
3160
3215
|
}
|
|
3161
3216
|
|
|
3162
|
-
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 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 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 };
|
|
3217
|
+
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 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 };
|