@behio/storefront-sdk 2.13.0 → 2.14.1
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/{client-Cf_xibuw.d.mts → client-DB_ve5Fp.d.mts} +89 -23
- package/dist/{client-Cf_xibuw.d.ts → client-DB_ve5Fp.d.ts} +89 -23
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -3
- package/dist/index.mjs +12 -3
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +88 -22
- package/dist/react.d.ts +88 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-
|
|
2
|
-
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-DB_ve5Fp.js';
|
|
2
|
+
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-DB_ve5Fp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.js
CHANGED
|
@@ -237,6 +237,7 @@ async function revokeAnalyticsConsent(client) {
|
|
|
237
237
|
// src/error-messages.generated.ts
|
|
238
238
|
var ERROR_MESSAGES = {
|
|
239
239
|
"cs": {
|
|
240
|
+
"be.billing.apiDailyLimit": "Denn\xED limit vol\xE1n\xED API va\u0161eho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED se o p\u016Flnoci UTC, vy\u0161\u0161\xED tarif m\xE1 limit vy\u0161\u0161\xED.",
|
|
240
241
|
"be.common.notFound": "Tohle u\u017E neexistuje.",
|
|
241
242
|
"be.forms.consentRequired": "Bez souhlasu nejde formul\xE1\u0159 odeslat.",
|
|
242
243
|
"be.forms.fileFieldNotFound": "Formul\xE1\u0159 takov\xE9 pole pro soubor nem\xE1.",
|
|
@@ -311,7 +312,7 @@ var ERROR_MESSAGES = {
|
|
|
311
312
|
"be.storefront.comgateWebhookInvalid": "Notifikace Comgate nenese id transakce.",
|
|
312
313
|
"be.storefront.commentNotFound": "Koment\xE1\u0159 nenalezen.",
|
|
313
314
|
"be.storefront.common.unexpected": "N\u011Bco se nepovedlo. Zkuste to pros\xEDm znovu.",
|
|
314
|
-
"be.storefront.companyIdsRequired": "K objedn\xE1vce je pot\u0159eba I\u010CO
|
|
315
|
+
"be.storefront.companyIdsRequired": "K objedn\xE1vce je pot\u0159eba I\u010CO.",
|
|
315
316
|
"be.storefront.connectLinkExpired": "Platnost propojovac\xEDho odkazu vypr\u0161ela. Zkuste to znovu.",
|
|
316
317
|
"be.storefront.countryNotAllowed": "Zem\u011B {country} nen\xED pro tento e-shop povolen\xE1.",
|
|
317
318
|
"be.storefront.courseAccessExpired": "P\u0159\xEDstup ke kurzu vypr\u0161el.",
|
|
@@ -425,7 +426,9 @@ var ERROR_MESSAGES = {
|
|
|
425
426
|
"be.storefront.paypalWebhookInvalid": "Notifikace PayPal nenese id objedn\xE1vky.",
|
|
426
427
|
"be.storefront.phoneRequired": "K dokon\u010Den\xED objedn\xE1vky je pot\u0159eba telefonn\xED \u010D\xEDslo.",
|
|
427
428
|
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdejn\xED m\xEDsto v zemi doru\u010Den\xED.",
|
|
429
|
+
"be.storefront.pickupPointNotFound": "Vybran\xE9 v\xFDdejn\xED m\xEDsto dopravce nezn\xE1. Vyberte pros\xEDm jin\xE9.",
|
|
428
430
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdejn\xED m\xEDsto.",
|
|
431
|
+
"be.storefront.pickupPointsUnavailable": "Dopravce te\u010F neodpov\u011Bd\u011Bl, v\xFDdejn\xED m\xEDsto ne\u0161lo ov\u011B\u0159it. Zkuste to pros\xEDm za chv\xEDli znovu.",
|
|
429
432
|
"be.storefront.placeNotFound": "M\xEDsto nenalezeno.",
|
|
430
433
|
"be.storefront.pricingUnavailable": "Ceny produkt\u016F te\u010F nejsou dostupn\xE9. Zkuste to pros\xEDm znovu.",
|
|
431
434
|
"be.storefront.privacyAgreementRequired": "K objedn\xE1vce je pot\u0159eba souhlas se z\xE1sadami ochrany osobn\xEDch \xFAdaj\u016F.",
|
|
@@ -494,6 +497,7 @@ var ERROR_MESSAGES = {
|
|
|
494
497
|
"be.validation.invalidJson": "Data maj\xED neplatn\xFD form\xE1t."
|
|
495
498
|
},
|
|
496
499
|
"sk": {
|
|
500
|
+
"be.billing.apiDailyLimit": "Denn\xFD limit volan\xED API v\xE1\u0161ho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED sa o polnoci UTC, vy\u0161\u0161\xED tarif m\xE1 vy\u0161\u0161\xED limit.",
|
|
497
501
|
"be.common.notFound": "Toto u\u017E neexistuje.",
|
|
498
502
|
"be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
|
|
499
503
|
"be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
|
|
@@ -568,7 +572,7 @@ var ERROR_MESSAGES = {
|
|
|
568
572
|
"be.storefront.comgateWebhookInvalid": "Notifik\xE1cia Comgate nenesie id transakcie.",
|
|
569
573
|
"be.storefront.commentNotFound": "Koment\xE1r sa nena\u0161iel.",
|
|
570
574
|
"be.storefront.common.unexpected": "Nie\u010Do sa nepodarilo. Sk\xFAste to pros\xEDm znova.",
|
|
571
|
-
"be.storefront.companyIdsRequired": "K objedn\xE1vke je potrebn\xE9 I\u010CO
|
|
575
|
+
"be.storefront.companyIdsRequired": "K objedn\xE1vke je potrebn\xE9 I\u010CO.",
|
|
572
576
|
"be.storefront.connectLinkExpired": "Platnos\u0165 prepojovacieho odkazu vypr\u0161ala. Sk\xFAste to znova.",
|
|
573
577
|
"be.storefront.countryNotAllowed": "Krajina {country} nie je pre tento e-shop povolen\xE1.",
|
|
574
578
|
"be.storefront.courseAccessExpired": "Pr\xEDstup ku kurzu vypr\u0161al.",
|
|
@@ -682,7 +686,9 @@ var ERROR_MESSAGES = {
|
|
|
682
686
|
"be.storefront.paypalWebhookInvalid": "Notifik\xE1cia PayPal nenesie id objedn\xE1vky.",
|
|
683
687
|
"be.storefront.phoneRequired": "Na dokon\u010Denie objedn\xE1vky je potrebn\xE9 telef\xF3nne \u010D\xEDslo.",
|
|
684
688
|
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdajn\xE9 miesto v krajine doru\u010Denia.",
|
|
689
|
+
"be.storefront.pickupPointNotFound": "Vybran\xE9 v\xFDdajn\xE9 miesto dopravca nepozn\xE1. Vyberte pros\xEDm in\xE9.",
|
|
685
690
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdajn\xE9 miesto.",
|
|
691
|
+
"be.storefront.pickupPointsUnavailable": "Prepravca teraz neodpovedal, v\xFDdajn\xE9 miesto sa nepodarilo overi\u0165. Sk\xFAste to pros\xEDm o chv\xED\u013Eu znova.",
|
|
686
692
|
"be.storefront.placeNotFound": "Miesto sa nena\u0161lo.",
|
|
687
693
|
"be.storefront.pricingUnavailable": "Ceny produktov teraz nie s\xFA dostupn\xE9. Sk\xFAste to pros\xEDm znova.",
|
|
688
694
|
"be.storefront.privacyAgreementRequired": "K objedn\xE1vke je potrebn\xFD s\xFAhlas so z\xE1sadami ochrany osobn\xFDch \xFAdajov.",
|
|
@@ -751,6 +757,7 @@ var ERROR_MESSAGES = {
|
|
|
751
757
|
"be.validation.invalidJson": "D\xE1ta maj\xFA neplatn\xFD form\xE1t."
|
|
752
758
|
},
|
|
753
759
|
"en": {
|
|
760
|
+
"be.billing.apiDailyLimit": "Your plan's daily API limit ({limit} calls) has been reached. It resets at midnight UTC; higher plans have a higher limit.",
|
|
754
761
|
"be.common.notFound": "This no longer exists.",
|
|
755
762
|
"be.forms.consentRequired": "The form cannot be sent without consent.",
|
|
756
763
|
"be.forms.fileFieldNotFound": "This form has no such file field.",
|
|
@@ -825,7 +832,7 @@ var ERROR_MESSAGES = {
|
|
|
825
832
|
"be.storefront.comgateWebhookInvalid": "Comgate webhook is missing the transaction id",
|
|
826
833
|
"be.storefront.commentNotFound": "Comment not found",
|
|
827
834
|
"be.storefront.common.unexpected": "Something went wrong, please try again",
|
|
828
|
-
"be.storefront.companyIdsRequired": "
|
|
835
|
+
"be.storefront.companyIdsRequired": "A company ID is required to order",
|
|
829
836
|
"be.storefront.connectLinkExpired": "Connect link expired, please retry",
|
|
830
837
|
"be.storefront.countryNotAllowed": "Country {country} is not allowed for this shop",
|
|
831
838
|
"be.storefront.courseAccessExpired": "Course access has expired",
|
|
@@ -939,7 +946,9 @@ var ERROR_MESSAGES = {
|
|
|
939
946
|
"be.storefront.paypalWebhookInvalid": "PayPal webhook is missing the order id",
|
|
940
947
|
"be.storefront.phoneRequired": "Phone number is required to place this order",
|
|
941
948
|
"be.storefront.pickupPointCountryMismatch": "Select a pickup point in the delivery country.",
|
|
949
|
+
"be.storefront.pickupPointNotFound": "The carrier does not know the selected pickup point. Please choose another one.",
|
|
942
950
|
"be.storefront.pickupPointRequired": "A pickup point is required for the selected shipping method",
|
|
951
|
+
"be.storefront.pickupPointsUnavailable": "The carrier did not respond, so the pickup point could not be verified. Please try again shortly.",
|
|
943
952
|
"be.storefront.placeNotFound": "Place not found",
|
|
944
953
|
"be.storefront.pricingUnavailable": "Product prices are temporarily unavailable. Please try again.",
|
|
945
954
|
"be.storefront.privacyAgreementRequired": "You must agree to the privacy policy to order",
|
package/dist/index.mjs
CHANGED
|
@@ -237,6 +237,7 @@ async function revokeAnalyticsConsent(client) {
|
|
|
237
237
|
// src/error-messages.generated.ts
|
|
238
238
|
var ERROR_MESSAGES = {
|
|
239
239
|
"cs": {
|
|
240
|
+
"be.billing.apiDailyLimit": "Denn\xED limit vol\xE1n\xED API va\u0161eho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED se o p\u016Flnoci UTC, vy\u0161\u0161\xED tarif m\xE1 limit vy\u0161\u0161\xED.",
|
|
240
241
|
"be.common.notFound": "Tohle u\u017E neexistuje.",
|
|
241
242
|
"be.forms.consentRequired": "Bez souhlasu nejde formul\xE1\u0159 odeslat.",
|
|
242
243
|
"be.forms.fileFieldNotFound": "Formul\xE1\u0159 takov\xE9 pole pro soubor nem\xE1.",
|
|
@@ -311,7 +312,7 @@ var ERROR_MESSAGES = {
|
|
|
311
312
|
"be.storefront.comgateWebhookInvalid": "Notifikace Comgate nenese id transakce.",
|
|
312
313
|
"be.storefront.commentNotFound": "Koment\xE1\u0159 nenalezen.",
|
|
313
314
|
"be.storefront.common.unexpected": "N\u011Bco se nepovedlo. Zkuste to pros\xEDm znovu.",
|
|
314
|
-
"be.storefront.companyIdsRequired": "K objedn\xE1vce je pot\u0159eba I\u010CO
|
|
315
|
+
"be.storefront.companyIdsRequired": "K objedn\xE1vce je pot\u0159eba I\u010CO.",
|
|
315
316
|
"be.storefront.connectLinkExpired": "Platnost propojovac\xEDho odkazu vypr\u0161ela. Zkuste to znovu.",
|
|
316
317
|
"be.storefront.countryNotAllowed": "Zem\u011B {country} nen\xED pro tento e-shop povolen\xE1.",
|
|
317
318
|
"be.storefront.courseAccessExpired": "P\u0159\xEDstup ke kurzu vypr\u0161el.",
|
|
@@ -425,7 +426,9 @@ var ERROR_MESSAGES = {
|
|
|
425
426
|
"be.storefront.paypalWebhookInvalid": "Notifikace PayPal nenese id objedn\xE1vky.",
|
|
426
427
|
"be.storefront.phoneRequired": "K dokon\u010Den\xED objedn\xE1vky je pot\u0159eba telefonn\xED \u010D\xEDslo.",
|
|
427
428
|
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdejn\xED m\xEDsto v zemi doru\u010Den\xED.",
|
|
429
|
+
"be.storefront.pickupPointNotFound": "Vybran\xE9 v\xFDdejn\xED m\xEDsto dopravce nezn\xE1. Vyberte pros\xEDm jin\xE9.",
|
|
428
430
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdejn\xED m\xEDsto.",
|
|
431
|
+
"be.storefront.pickupPointsUnavailable": "Dopravce te\u010F neodpov\u011Bd\u011Bl, v\xFDdejn\xED m\xEDsto ne\u0161lo ov\u011B\u0159it. Zkuste to pros\xEDm za chv\xEDli znovu.",
|
|
429
432
|
"be.storefront.placeNotFound": "M\xEDsto nenalezeno.",
|
|
430
433
|
"be.storefront.pricingUnavailable": "Ceny produkt\u016F te\u010F nejsou dostupn\xE9. Zkuste to pros\xEDm znovu.",
|
|
431
434
|
"be.storefront.privacyAgreementRequired": "K objedn\xE1vce je pot\u0159eba souhlas se z\xE1sadami ochrany osobn\xEDch \xFAdaj\u016F.",
|
|
@@ -494,6 +497,7 @@ var ERROR_MESSAGES = {
|
|
|
494
497
|
"be.validation.invalidJson": "Data maj\xED neplatn\xFD form\xE1t."
|
|
495
498
|
},
|
|
496
499
|
"sk": {
|
|
500
|
+
"be.billing.apiDailyLimit": "Denn\xFD limit volan\xED API v\xE1\u0161ho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED sa o polnoci UTC, vy\u0161\u0161\xED tarif m\xE1 vy\u0161\u0161\xED limit.",
|
|
497
501
|
"be.common.notFound": "Toto u\u017E neexistuje.",
|
|
498
502
|
"be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
|
|
499
503
|
"be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
|
|
@@ -568,7 +572,7 @@ var ERROR_MESSAGES = {
|
|
|
568
572
|
"be.storefront.comgateWebhookInvalid": "Notifik\xE1cia Comgate nenesie id transakcie.",
|
|
569
573
|
"be.storefront.commentNotFound": "Koment\xE1r sa nena\u0161iel.",
|
|
570
574
|
"be.storefront.common.unexpected": "Nie\u010Do sa nepodarilo. Sk\xFAste to pros\xEDm znova.",
|
|
571
|
-
"be.storefront.companyIdsRequired": "K objedn\xE1vke je potrebn\xE9 I\u010CO
|
|
575
|
+
"be.storefront.companyIdsRequired": "K objedn\xE1vke je potrebn\xE9 I\u010CO.",
|
|
572
576
|
"be.storefront.connectLinkExpired": "Platnos\u0165 prepojovacieho odkazu vypr\u0161ala. Sk\xFAste to znova.",
|
|
573
577
|
"be.storefront.countryNotAllowed": "Krajina {country} nie je pre tento e-shop povolen\xE1.",
|
|
574
578
|
"be.storefront.courseAccessExpired": "Pr\xEDstup ku kurzu vypr\u0161al.",
|
|
@@ -682,7 +686,9 @@ var ERROR_MESSAGES = {
|
|
|
682
686
|
"be.storefront.paypalWebhookInvalid": "Notifik\xE1cia PayPal nenesie id objedn\xE1vky.",
|
|
683
687
|
"be.storefront.phoneRequired": "Na dokon\u010Denie objedn\xE1vky je potrebn\xE9 telef\xF3nne \u010D\xEDslo.",
|
|
684
688
|
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdajn\xE9 miesto v krajine doru\u010Denia.",
|
|
689
|
+
"be.storefront.pickupPointNotFound": "Vybran\xE9 v\xFDdajn\xE9 miesto dopravca nepozn\xE1. Vyberte pros\xEDm in\xE9.",
|
|
685
690
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdajn\xE9 miesto.",
|
|
691
|
+
"be.storefront.pickupPointsUnavailable": "Prepravca teraz neodpovedal, v\xFDdajn\xE9 miesto sa nepodarilo overi\u0165. Sk\xFAste to pros\xEDm o chv\xED\u013Eu znova.",
|
|
686
692
|
"be.storefront.placeNotFound": "Miesto sa nena\u0161lo.",
|
|
687
693
|
"be.storefront.pricingUnavailable": "Ceny produktov teraz nie s\xFA dostupn\xE9. Sk\xFAste to pros\xEDm znova.",
|
|
688
694
|
"be.storefront.privacyAgreementRequired": "K objedn\xE1vke je potrebn\xFD s\xFAhlas so z\xE1sadami ochrany osobn\xFDch \xFAdajov.",
|
|
@@ -751,6 +757,7 @@ var ERROR_MESSAGES = {
|
|
|
751
757
|
"be.validation.invalidJson": "D\xE1ta maj\xFA neplatn\xFD form\xE1t."
|
|
752
758
|
},
|
|
753
759
|
"en": {
|
|
760
|
+
"be.billing.apiDailyLimit": "Your plan's daily API limit ({limit} calls) has been reached. It resets at midnight UTC; higher plans have a higher limit.",
|
|
754
761
|
"be.common.notFound": "This no longer exists.",
|
|
755
762
|
"be.forms.consentRequired": "The form cannot be sent without consent.",
|
|
756
763
|
"be.forms.fileFieldNotFound": "This form has no such file field.",
|
|
@@ -825,7 +832,7 @@ var ERROR_MESSAGES = {
|
|
|
825
832
|
"be.storefront.comgateWebhookInvalid": "Comgate webhook is missing the transaction id",
|
|
826
833
|
"be.storefront.commentNotFound": "Comment not found",
|
|
827
834
|
"be.storefront.common.unexpected": "Something went wrong, please try again",
|
|
828
|
-
"be.storefront.companyIdsRequired": "
|
|
835
|
+
"be.storefront.companyIdsRequired": "A company ID is required to order",
|
|
829
836
|
"be.storefront.connectLinkExpired": "Connect link expired, please retry",
|
|
830
837
|
"be.storefront.countryNotAllowed": "Country {country} is not allowed for this shop",
|
|
831
838
|
"be.storefront.courseAccessExpired": "Course access has expired",
|
|
@@ -939,7 +946,9 @@ var ERROR_MESSAGES = {
|
|
|
939
946
|
"be.storefront.paypalWebhookInvalid": "PayPal webhook is missing the order id",
|
|
940
947
|
"be.storefront.phoneRequired": "Phone number is required to place this order",
|
|
941
948
|
"be.storefront.pickupPointCountryMismatch": "Select a pickup point in the delivery country.",
|
|
949
|
+
"be.storefront.pickupPointNotFound": "The carrier does not know the selected pickup point. Please choose another one.",
|
|
942
950
|
"be.storefront.pickupPointRequired": "A pickup point is required for the selected shipping method",
|
|
951
|
+
"be.storefront.pickupPointsUnavailable": "The carrier did not respond, so the pickup point could not be verified. Please try again shortly.",
|
|
943
952
|
"be.storefront.placeNotFound": "Place not found",
|
|
944
953
|
"be.storefront.pricingUnavailable": "Product prices are temporarily unavailable. Please try again.",
|
|
945
954
|
"be.storefront.privacyAgreementRequired": "You must agree to the privacy policy to order",
|
package/dist/next.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-
|
|
1
|
+
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-DB_ve5Fp.mjs';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/next.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-
|
|
1
|
+
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-DB_ve5Fp.js';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/react.d.mts
CHANGED
|
@@ -564,7 +564,7 @@ interface ProductLabel {
|
|
|
564
564
|
id: string;
|
|
565
565
|
slug: string;
|
|
566
566
|
name: string;
|
|
567
|
-
color?: string;
|
|
567
|
+
color?: string | null;
|
|
568
568
|
/** Merchant icon name. Render a trusted local icon, with a safe fallback. */
|
|
569
569
|
iconName?: string | null;
|
|
570
570
|
}
|
|
@@ -594,9 +594,9 @@ interface ProductListItem {
|
|
|
594
594
|
id: string;
|
|
595
595
|
slug: string;
|
|
596
596
|
name: string;
|
|
597
|
-
shortDescription?: string;
|
|
597
|
+
shortDescription?: string | null;
|
|
598
598
|
sku: string;
|
|
599
|
-
gtin?: string;
|
|
599
|
+
gtin?: string | null;
|
|
600
600
|
/** `null` when prices are gated behind login for guests (B2B mode). */
|
|
601
601
|
price: ProductPrice | null;
|
|
602
602
|
inStock: boolean;
|
|
@@ -685,6 +685,9 @@ interface ProductListItem {
|
|
|
685
685
|
url: string;
|
|
686
686
|
alt: string | null;
|
|
687
687
|
order: number;
|
|
688
|
+
/** COVER | LISTING | HOVER | GALLERY when the cover came from a roled
|
|
689
|
+
* product image; absent when it came from the inventory gallery (SDK 2.14.0). */
|
|
690
|
+
role?: string;
|
|
688
691
|
} | null;
|
|
689
692
|
labels: ProductLabel[];
|
|
690
693
|
isFeatured: boolean;
|
|
@@ -899,7 +902,19 @@ interface ProductDetail extends ProductListItem {
|
|
|
899
902
|
* null when uncapped or the shop hides stock counts. Cap the PDP quantity
|
|
900
903
|
* stepper with it, it is exactly the cart rule. SDK 2.13.0. */
|
|
901
904
|
maxPurchasableQuantity?: number | null;
|
|
902
|
-
|
|
905
|
+
/**
|
|
906
|
+
* @deprecated Not sent on the product detail, only on list cards. Use
|
|
907
|
+
* `media` (or `images`) for the gallery.
|
|
908
|
+
*/
|
|
909
|
+
image?: ProductListItem["image"];
|
|
910
|
+
/** @deprecated Not sent on the product detail, only on list cards. */
|
|
911
|
+
hoverImageUrl?: string | null;
|
|
912
|
+
/**
|
|
913
|
+
* @deprecated Not sent on the product detail, only on list cards. Read the
|
|
914
|
+
* PDP promotions with `catalog.getProductPromotions(slug)`.
|
|
915
|
+
*/
|
|
916
|
+
activePromotion?: ProductPromotionSummary | null;
|
|
917
|
+
longDescription?: string | null;
|
|
903
918
|
/**
|
|
904
919
|
* @deprecated Legacy per-listing images. Prefer `media`. Each carries its
|
|
905
920
|
* `role` (COVER | LISTING | HOVER | GALLERY) so the storefront can pick a
|
|
@@ -907,7 +922,7 @@ interface ProductDetail extends ProductListItem {
|
|
|
907
922
|
*/
|
|
908
923
|
images: Array<{
|
|
909
924
|
url: string;
|
|
910
|
-
alt?: string;
|
|
925
|
+
alt?: string | null;
|
|
911
926
|
order: number;
|
|
912
927
|
role?: string;
|
|
913
928
|
}>;
|
|
@@ -975,6 +990,10 @@ interface ProductDetail extends ProductListItem {
|
|
|
975
990
|
ogDescription?: string | null;
|
|
976
991
|
ogImage?: string | null;
|
|
977
992
|
};
|
|
993
|
+
/**
|
|
994
|
+
* @deprecated Never sent by the API. Load a group with
|
|
995
|
+
* `catalog.getProductGroup(slug)`.
|
|
996
|
+
*/
|
|
978
997
|
productGroups?: Array<{
|
|
979
998
|
slug: string;
|
|
980
999
|
name: string;
|
|
@@ -996,8 +1015,8 @@ interface Category {
|
|
|
996
1015
|
id: string;
|
|
997
1016
|
slug: string;
|
|
998
1017
|
name: string;
|
|
999
|
-
description?: string;
|
|
1000
|
-
imageUrl?: string;
|
|
1018
|
+
description?: string | null;
|
|
1019
|
+
imageUrl?: string | null;
|
|
1001
1020
|
children: Category[];
|
|
1002
1021
|
productCount?: number;
|
|
1003
1022
|
}
|
|
@@ -1060,11 +1079,18 @@ interface Menu {
|
|
|
1060
1079
|
locale: string;
|
|
1061
1080
|
items: MenuItem[];
|
|
1062
1081
|
}
|
|
1063
|
-
interface CategoryDetail extends Category {
|
|
1082
|
+
interface CategoryDetail extends Omit<Category, "children"> {
|
|
1083
|
+
/**
|
|
1084
|
+
* @deprecated Never sent on the category detail (it was typed as always
|
|
1085
|
+
* present, so `children.map` crashed). Read subcategories from
|
|
1086
|
+
* `catalog.getCategories()`.
|
|
1087
|
+
*/
|
|
1088
|
+
children?: Category[];
|
|
1064
1089
|
/**
|
|
1065
1090
|
* SEO/Open Graph for the category page. Matches the backend's nested `seo`
|
|
1066
1091
|
* shape (the old flat `seoTitle`/`seoDescription` never matched what the API
|
|
1067
|
-
* returned). `keywords` is always null for categories.
|
|
1092
|
+
* returned). `keywords` is always null for categories. Null when the
|
|
1093
|
+
* category has no text in the requested language (SDK 2.14.0 types it).
|
|
1068
1094
|
*/
|
|
1069
1095
|
seo?: {
|
|
1070
1096
|
title?: string | null;
|
|
@@ -1073,7 +1099,7 @@ interface CategoryDetail extends Category {
|
|
|
1073
1099
|
ogTitle?: string | null;
|
|
1074
1100
|
ogDescription?: string | null;
|
|
1075
1101
|
ogImage?: string | null;
|
|
1076
|
-
};
|
|
1102
|
+
} | null;
|
|
1077
1103
|
}
|
|
1078
1104
|
/**
|
|
1079
1105
|
* One available filter, derived from a curated parameter the merchant marked
|
|
@@ -1091,7 +1117,7 @@ interface FilterField {
|
|
|
1091
1117
|
groupSlug: string;
|
|
1092
1118
|
groupName: string;
|
|
1093
1119
|
unit?: string | null;
|
|
1094
|
-
values?: string[];
|
|
1120
|
+
values?: string[] | null;
|
|
1095
1121
|
}
|
|
1096
1122
|
interface FacetValue {
|
|
1097
1123
|
/** Raw stored value (normalized), for exact filtering. */
|
|
@@ -1342,7 +1368,7 @@ interface CartItemProduct {
|
|
|
1342
1368
|
* arbitrary translation row, so this could come back in another language. */
|
|
1343
1369
|
name: string;
|
|
1344
1370
|
sku: string;
|
|
1345
|
-
imageUrl?: string;
|
|
1371
|
+
imageUrl?: string | null;
|
|
1346
1372
|
inStock: boolean;
|
|
1347
1373
|
/** Pieces left for an "only X left" note on the cart line; null when the
|
|
1348
1374
|
* shop does not track stock, hides the nudge or has plenty. SDK 2.13.0. */
|
|
@@ -1440,7 +1466,7 @@ interface Cart {
|
|
|
1440
1466
|
* 200 net" was 20, now it is 24.20 at 21 %). It lowers base and VAT, see
|
|
1441
1467
|
* `taxBreakdown` and `vatTotal`. */
|
|
1442
1468
|
discountTotal: number;
|
|
1443
|
-
discount?: CartDiscount;
|
|
1469
|
+
discount?: CartDiscount | null;
|
|
1444
1470
|
/** Auto-apply promotion discount lines (sale/BOGO). */
|
|
1445
1471
|
appliedPromotions: CartPromotion[];
|
|
1446
1472
|
/** Sum of `appliedPromotions[].discountAmount`; already reflected in `grandTotal`. */
|
|
@@ -1645,6 +1671,12 @@ interface CheckoutInput {
|
|
|
1645
1671
|
* guests. See `customer.getLoyalty()` for the available balance.
|
|
1646
1672
|
*/
|
|
1647
1673
|
redeemLoyaltyPoints?: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Cart session to order. The SDK sends it in the `X-Cart-Session` header on
|
|
1676
|
+
* its own, so leave it out; the body field is for clients without the
|
|
1677
|
+
* header (SDK 2.14.0 documents it, the backend has always accepted it).
|
|
1678
|
+
*/
|
|
1679
|
+
sessionToken?: string;
|
|
1648
1680
|
}
|
|
1649
1681
|
type OrderStatus = (typeof OrderStatuses)[keyof typeof OrderStatuses];
|
|
1650
1682
|
type PaymentStatus = (typeof PaymentStatuses)[keyof typeof PaymentStatuses];
|
|
@@ -1660,6 +1692,8 @@ interface OrderListItem {
|
|
|
1660
1692
|
createdAt: number;
|
|
1661
1693
|
}
|
|
1662
1694
|
interface OrderItem {
|
|
1695
|
+
/** Order line id (SDK 2.14.0). */
|
|
1696
|
+
id?: string;
|
|
1663
1697
|
productName: string;
|
|
1664
1698
|
sku: string;
|
|
1665
1699
|
/** Photo snapshot from checkout, or the product's current photo. */
|
|
@@ -1671,9 +1705,23 @@ interface OrderItem {
|
|
|
1671
1705
|
productSlug?: string | null;
|
|
1672
1706
|
quantity: number;
|
|
1673
1707
|
unitPrice: number;
|
|
1708
|
+
/** VAT rate of the line in percent, e.g. 21 (SDK 2.14.0). */
|
|
1709
|
+
taxRate?: number;
|
|
1710
|
+
/** VAT of the whole line (SDK 2.14.0). */
|
|
1711
|
+
taxAmount?: number;
|
|
1674
1712
|
totalPrice: number;
|
|
1675
1713
|
totalPriceWithTax: number;
|
|
1676
1714
|
}
|
|
1715
|
+
/** A discount code applied to an order (SDK 2.14.0). */
|
|
1716
|
+
interface OrderDiscount {
|
|
1717
|
+
code: string;
|
|
1718
|
+
/** PERCENTAGE, FIXED_AMOUNT or FREE_SHIPPING. */
|
|
1719
|
+
type: string;
|
|
1720
|
+
/** Percent or amount as configured on the code. */
|
|
1721
|
+
value: number;
|
|
1722
|
+
/** Money the code took off this order. */
|
|
1723
|
+
appliedAmount: number;
|
|
1724
|
+
}
|
|
1677
1725
|
/**
|
|
1678
1726
|
* PII-minimized order view returned by `orders.track(token)`. The tracking
|
|
1679
1727
|
* token is shared in URLs and e-mails, so this deliberately omits full
|
|
@@ -1726,9 +1774,14 @@ interface OrderShipment {
|
|
|
1726
1774
|
createdAt: number;
|
|
1727
1775
|
}
|
|
1728
1776
|
interface OrderStatusHistory {
|
|
1729
|
-
|
|
1777
|
+
/** Null for the first entry of an order. */
|
|
1778
|
+
fromStatus?: OrderStatus | null;
|
|
1730
1779
|
toStatus: OrderStatus;
|
|
1731
|
-
note?: string;
|
|
1780
|
+
note?: string | null;
|
|
1781
|
+
/**
|
|
1782
|
+
* @deprecated Never sent: who changed the status is internal to the shop.
|
|
1783
|
+
* Kept only so existing templates keep compiling.
|
|
1784
|
+
*/
|
|
1732
1785
|
changedBy?: string;
|
|
1733
1786
|
createdAt: number;
|
|
1734
1787
|
}
|
|
@@ -1765,8 +1818,8 @@ interface OrderDetail extends OrderListItem {
|
|
|
1765
1818
|
shippingAddress: CheckoutAddress;
|
|
1766
1819
|
billingAddress: CheckoutAddress;
|
|
1767
1820
|
email: string;
|
|
1768
|
-
phone?: string;
|
|
1769
|
-
customerNote?: string;
|
|
1821
|
+
phone?: string | null;
|
|
1822
|
+
customerNote?: string | null;
|
|
1770
1823
|
subtotal: number;
|
|
1771
1824
|
/** Goods VAT before order discounts (goods subtotal = `subtotal` + `taxTotal`). */
|
|
1772
1825
|
taxTotal: number;
|
|
@@ -1788,6 +1841,12 @@ interface OrderDetail extends OrderListItem {
|
|
|
1788
1841
|
discountTotal: number;
|
|
1789
1842
|
fulfillmentStatus: FulfillmentStatus;
|
|
1790
1843
|
statusHistory: OrderStatusHistory[];
|
|
1844
|
+
/** Discount codes applied to the order (SDK 2.14.0). */
|
|
1845
|
+
discounts?: OrderDiscount[];
|
|
1846
|
+
/**
|
|
1847
|
+
* @deprecated Not sent on the order detail. Only `checkout.createOrder()`
|
|
1848
|
+
* returns it, see `CheckoutResult.trackingToken`.
|
|
1849
|
+
*/
|
|
1791
1850
|
trackingToken?: string;
|
|
1792
1851
|
/**
|
|
1793
1852
|
* Digital product delivery (GAP-07): download grants for any digital assets
|
|
@@ -2107,10 +2166,12 @@ interface DownloadUrl {
|
|
|
2107
2166
|
interface CustomerProfile {
|
|
2108
2167
|
id: string;
|
|
2109
2168
|
email: string;
|
|
2110
|
-
firstName?: string;
|
|
2111
|
-
lastName?: string;
|
|
2112
|
-
phone?: string;
|
|
2169
|
+
firstName?: string | null;
|
|
2170
|
+
lastName?: string | null;
|
|
2171
|
+
phone?: string | null;
|
|
2113
2172
|
emailVerified: boolean;
|
|
2173
|
+
/** Registration time (Unix ms). */
|
|
2174
|
+
createdAt?: number;
|
|
2114
2175
|
/**
|
|
2115
2176
|
* B2B approval gate (GAP-19). `false` = the account is awaiting merchant
|
|
2116
2177
|
* approval (or was deactivated) — show a "pending approval" banner and gate
|
|
@@ -2126,7 +2187,8 @@ interface CustomerAddress {
|
|
|
2126
2187
|
isDefault: boolean;
|
|
2127
2188
|
firstName: string;
|
|
2128
2189
|
lastName: string;
|
|
2129
|
-
|
|
2190
|
+
/** Null when not set. Send null on update to clear it. */
|
|
2191
|
+
company?: string | null;
|
|
2130
2192
|
street: string;
|
|
2131
2193
|
city: string;
|
|
2132
2194
|
zip: string;
|
|
@@ -2144,7 +2206,8 @@ interface CustomerAddress {
|
|
|
2144
2206
|
vatIdValid?: boolean | null;
|
|
2145
2207
|
/** When the VAT ID was last checked (ms). Read-only. */
|
|
2146
2208
|
vatIdCheckedAt?: number | null;
|
|
2147
|
-
|
|
2209
|
+
/** Null when not set. Send null on update to clear it. */
|
|
2210
|
+
phone?: string | null;
|
|
2148
2211
|
}
|
|
2149
2212
|
interface Page {
|
|
2150
2213
|
slug: string;
|
|
@@ -3199,6 +3262,7 @@ declare class BehioStorefront {
|
|
|
3199
3262
|
visitorId: string;
|
|
3200
3263
|
email: string;
|
|
3201
3264
|
}): Promise<SdkResult<{
|
|
3265
|
+
/** Single-use code for the offered product, issued by this call. */
|
|
3202
3266
|
code: string;
|
|
3203
3267
|
percent: number;
|
|
3204
3268
|
expiresAt: number;
|
|
@@ -3965,6 +4029,8 @@ interface AddressDetail {
|
|
|
3965
4029
|
formattedAddress: string;
|
|
3966
4030
|
lat: number;
|
|
3967
4031
|
lng: number;
|
|
4032
|
+
/** Set (and the address fields empty) when the request had no `placeId`. */
|
|
4033
|
+
error?: string | null;
|
|
3968
4034
|
}
|
|
3969
4035
|
declare class AddressModule {
|
|
3970
4036
|
private client;
|