@behio/storefront-sdk 2.23.0 → 2.25.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/README.md +42 -0
- package/dist/{chunk-VHHDIU6J.mjs → chunk-GNWW2O3A.mjs} +68 -0
- package/dist/{chunk-L7IIU5MZ.js → chunk-IUC57IOB.js} +73 -5
- package/dist/{client-BeI4IFKu.d.mts → client-Btc3Nduh.d.mts} +285 -1
- package/dist/{client-BeI4IFKu.d.ts → client-Btc3Nduh.d.ts} +285 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +66 -3
- package/dist/index.mjs +64 -1
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.js +2 -2
- package/dist/next.mjs +1 -1
- package/dist/react.d.mts +317 -1
- package/dist/react.d.ts +317 -1
- package/dist/react.js +193 -41
- package/dist/react.mjs +185 -41
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ok,
|
|
13
13
|
publishCartSummary,
|
|
14
14
|
toSdkError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GNWW2O3A.mjs";
|
|
16
16
|
|
|
17
17
|
// src/react/utils/format-price.ts
|
|
18
18
|
function formatPrice(amount, currency, locale, display) {
|
|
@@ -238,8 +238,25 @@ async function revokeAnalyticsConsent(client) {
|
|
|
238
238
|
var ERROR_MESSAGES = {
|
|
239
239
|
"cs": {
|
|
240
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.",
|
|
241
|
+
"be.bookings.bookingNotActive": "Rezervace u\u017E nen\xED aktivn\xED, tak\u017Ee ji nejde m\u011Bnit.",
|
|
242
|
+
"be.bookings.changeTooLate": "Na zm\u011Bnu nebo zru\u0161en\xED p\u0159es odkaz je u\u017E pozd\u011B. Ozv\u011Bte se n\xE1m pros\xEDm p\u0159\xEDmo.",
|
|
243
|
+
"be.bookings.manageNotFound": "Odkaz na rezervaci neplat\xED. Pou\u017Eijte pros\xEDm posledn\xED e-mail, kter\xFD v\xE1m p\u0159i\u0161el.",
|
|
244
|
+
"be.bookings.originNotAllowed": "Na tomto webu rezerva\u010Dn\xED widget nem\xE1 povolen\xED b\u011B\u017Eet.",
|
|
245
|
+
"be.bookings.rangeInvalid": "Konec obdob\xED je p\u0159ed za\u010D\xE1tkem.",
|
|
246
|
+
"be.bookings.rangeTooLong": "Vyberte nejv\xFD\u0161 {max} dn\xED.",
|
|
247
|
+
"be.bookings.rejected": "Rezervaci se nepoda\u0159ilo odeslat. Zkuste to pros\xEDm znovu.",
|
|
248
|
+
"be.bookings.serviceNotFound": "Slu\u017Eba nebyla nalezena nebo nen\xED dostupn\xE1.",
|
|
249
|
+
"be.bookings.servicesInvalid": "Vyberte aspo\u0148 jednu slu\u017Ebu.",
|
|
250
|
+
"be.bookings.servicesMixedCurrency": "Slu\u017Eby v jedn\xE9 rezervaci mus\xED m\xEDt stejnou m\u011Bnu.",
|
|
251
|
+
"be.bookings.slotTaken": "Tenhle term\xEDn si pr\xE1v\u011B n\u011Bkdo zarezervoval. Vyberte pros\xEDm jin\xFD.",
|
|
252
|
+
"be.bookings.staffCannotDoServices": "Vybran\xFD pracovn\xEDk tyto slu\u017Eby ned\u011Bl\xE1.",
|
|
253
|
+
"be.bookings.staffNotAvailable": "Vybran\xFD pracovn\xEDk te\u010F online rezervace nep\u0159ij\xEDm\xE1.",
|
|
254
|
+
"be.bookings.startInvalid": "Za\u010D\xE1tek rezervace nen\xED platn\xFD.",
|
|
255
|
+
"be.bookings.tooManyRequests": "P\u0159\xEDli\u0161 mnoho pokus\u016F. Zkuste to pros\xEDm za chv\xEDli.",
|
|
256
|
+
"be.bookings.widgetNotFound": "Rezervace tady nejsou dostupn\xE9.",
|
|
241
257
|
"be.collections.collectionNotFound": "Kolekce nebyla nalezena.",
|
|
242
258
|
"be.collections.itemNotFound": "Polo\u017Eka kolekce nebyla nalezena.",
|
|
259
|
+
"be.common.networkFailed": "Spojen\xED se serverem selhalo. Zkontrolujte p\u0159ipojen\xED a zkuste to znovu.",
|
|
243
260
|
"be.common.notFound": "Tohle u\u017E neexistuje.",
|
|
244
261
|
"be.forms.consentRequired": "Bez souhlasu nejde formul\xE1\u0159 odeslat.",
|
|
245
262
|
"be.forms.fileFieldNotFound": "Formul\xE1\u0159 takov\xE9 pole pro soubor nem\xE1.",
|
|
@@ -262,6 +279,7 @@ var ERROR_MESSAGES = {
|
|
|
262
279
|
"be.payments.goIdInvalid": "GoID nepat\u0159\xED k t\u011Bmto p\u0159\xEDstupov\xFDm \xFAdaj\u016Fm nebo neexistuje. Zkontrolujte GoID a tak\xE9 to, jestli sed\xED testovac\xED re\u017Eim.",
|
|
263
280
|
"be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platebn\xED br\xE1ny nen\xED platn\xE1.",
|
|
264
281
|
"be.payments.returnSecretMissing": "N\xE1vrat z platebn\xED br\xE1ny nen\xED na serveru nastaven\xFD.",
|
|
282
|
+
"be.payments.stripeAccountIncomplete": "Dokon\u010Dete aktivaci \xFA\u010Dtu ve Stripe. P\u0159ij\xEDm\xE1n\xED plateb nebo v\xFDplaty zat\xEDm nejsou povolen\xE9.",
|
|
265
283
|
"be.payments.webhookMissingPaymentId": "Ozn\xE1men\xED od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
|
|
266
284
|
"be.payments.webhookSignatureInvalid": "Podpis platebn\xEDho ozn\xE1men\xED nen\xED platn\xFD.",
|
|
267
285
|
"be.sms.accountInactive": "\xDA\u010Det u oper\xE1tora nen\xED aktivn\xED, tak\u017Ee p\u0159es n\u011Bj zpr\xE1vy neodejdou. Zkontrolujte ho v jeho administraci.",
|
|
@@ -485,6 +503,9 @@ var ERROR_MESSAGES = {
|
|
|
485
503
|
"be.storefront.unknownPaymentProvider": "Nezn\xE1m\xFD poskytovatel plateb {provider}.",
|
|
486
504
|
"be.storefront.variantsOnlyParent": "Produkt {name} nejde koupit p\u0159\xEDmo. Vyberte jednu z jeho variant.",
|
|
487
505
|
"be.storefront.wishlistItemNotFound": "Polo\u017Eka obl\xEDben\xFDch nenalezena.",
|
|
506
|
+
"be.storefront.withdrawalAlreadySubmitted": "Od t\xE9to objedn\xE1vky u\u017E jste odstoupili, nebo u n\xED b\u011B\u017E\xED vr\xE1cen\xED v\u0161ech polo\u017Eek.",
|
|
507
|
+
"be.storefront.withdrawalDisabled": "Tento obchod online odstoupen\xED od smlouvy nenab\xEDz\xED. Napi\u0161te mu pros\xEDm e-mailem.",
|
|
508
|
+
"be.storefront.withdrawalNameRequired": "Vypl\u0148te pros\xEDm sv\xE9 jm\xE9no.",
|
|
488
509
|
"be.web.webNotFound": "Web nebyl nalezen.",
|
|
489
510
|
"be.validation.failed": "N\u011Bkter\xFD \xFAdaj nen\xED spr\xE1vn\u011B vypln\u011Bn\xFD. Zkontrolujte ho pros\xEDm.",
|
|
490
511
|
"be.validation.required": "Toto pole je povinn\xE9.",
|
|
@@ -503,8 +524,25 @@ var ERROR_MESSAGES = {
|
|
|
503
524
|
},
|
|
504
525
|
"sk": {
|
|
505
526
|
"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.",
|
|
527
|
+
"be.bookings.bookingNotActive": "Rezerv\xE1cia u\u017E nie je akt\xEDvna, tak\u017Ee ju nejde meni\u0165.",
|
|
528
|
+
"be.bookings.changeTooLate": "Na zmenu alebo zru\u0161enie cez odkaz je u\u017E neskoro. Ozvite sa n\xE1m pros\xEDm priamo.",
|
|
529
|
+
"be.bookings.manageNotFound": "Odkaz na rezerv\xE1ciu neplat\xED. Pou\u017Eite pros\xEDm posledn\xFD e-mail, ktor\xFD v\xE1m pri\u0161iel.",
|
|
530
|
+
"be.bookings.originNotAllowed": "Na tomto webe rezerva\u010Dn\xFD widget nem\xE1 povolenie be\u017Ea\u0165.",
|
|
531
|
+
"be.bookings.rangeInvalid": "Koniec obdobia je pred za\u010Diatkom.",
|
|
532
|
+
"be.bookings.rangeTooLong": "Vyberte najviac {max} dn\xED.",
|
|
533
|
+
"be.bookings.rejected": "Rezerv\xE1ciu sa nepodarilo odosla\u0165. Sk\xFAste to pros\xEDm znova.",
|
|
534
|
+
"be.bookings.serviceNotFound": "Slu\u017Eba nebola n\xE1jden\xE1 alebo nie je dostupn\xE1.",
|
|
535
|
+
"be.bookings.servicesInvalid": "Vyberte aspo\u0148 jednu slu\u017Ebu.",
|
|
536
|
+
"be.bookings.servicesMixedCurrency": "Slu\u017Eby v jednej rezerv\xE1cii musia ma\u0165 rovnak\xFA menu.",
|
|
537
|
+
"be.bookings.slotTaken": "Tento term\xEDn si pr\xE1ve niekto zarezervoval. Vyberte pros\xEDm in\xFD.",
|
|
538
|
+
"be.bookings.staffCannotDoServices": "Vybran\xFD pracovn\xEDk tieto slu\u017Eby nerob\xED.",
|
|
539
|
+
"be.bookings.staffNotAvailable": "Vybran\xFD pracovn\xEDk teraz online rezerv\xE1cie neprij\xEDma.",
|
|
540
|
+
"be.bookings.startInvalid": "Za\u010Diatok rezerv\xE1cie nie je platn\xFD.",
|
|
541
|
+
"be.bookings.tooManyRequests": "Pr\xEDli\u0161 ve\u013Ea pokusov. Sk\xFAste to pros\xEDm o chv\xED\u013Eu.",
|
|
542
|
+
"be.bookings.widgetNotFound": "Rezerv\xE1cie tu nie s\xFA dostupn\xE9.",
|
|
506
543
|
"be.collections.collectionNotFound": "Kolekcia sa nena\u0161la.",
|
|
507
544
|
"be.collections.itemNotFound": "Polo\u017Eka kolekcie sa nena\u0161la.",
|
|
545
|
+
"be.common.networkFailed": "Spojenie so serverom zlyhalo. Skontrolujte pripojenie a sk\xFAste to znova.",
|
|
508
546
|
"be.common.notFound": "Toto u\u017E neexistuje.",
|
|
509
547
|
"be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
|
|
510
548
|
"be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
|
|
@@ -527,6 +565,7 @@ var ERROR_MESSAGES = {
|
|
|
527
565
|
"be.payments.goIdInvalid": "GoID nepatr\xED k t\xFDmto pr\xEDstupov\xFDm \xFAdajom alebo neexistuje. Skontrolujte GoID a tie\u017E to, \u010Di sed\xED testovac\xED re\u017Eim.",
|
|
528
566
|
"be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platobnej br\xE1ny nie je platn\xE1.",
|
|
529
567
|
"be.payments.returnSecretMissing": "N\xE1vrat z platobnej br\xE1ny nie je na serveri nastaven\xFD.",
|
|
568
|
+
"be.payments.stripeAccountIncomplete": "Dokon\u010Dite aktiv\xE1ciu \xFA\u010Dtu v Stripe. Prij\xEDmanie platieb alebo v\xFDplaty zatia\u013E nie s\xFA povolen\xE9.",
|
|
530
569
|
"be.payments.webhookMissingPaymentId": "Ozn\xE1menie od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
|
|
531
570
|
"be.payments.webhookSignatureInvalid": "Podpis platobn\xE9ho ozn\xE1menia nie je platn\xFD.",
|
|
532
571
|
"be.sms.accountInactive": "\xDA\u010Det u oper\xE1tora nie je akt\xEDvny, tak\u017Ee cez neho spr\xE1vy neod\xEDdu. Skontrolujte ho v jeho administr\xE1cii.",
|
|
@@ -750,6 +789,9 @@ var ERROR_MESSAGES = {
|
|
|
750
789
|
"be.storefront.unknownPaymentProvider": "Nezn\xE1my poskytovate\u013E platieb {provider}.",
|
|
751
790
|
"be.storefront.variantsOnlyParent": "Produkt {name} sa ned\xE1 k\xFApi\u0165 priamo. Vyberte jeden z jeho variantov.",
|
|
752
791
|
"be.storefront.wishlistItemNotFound": "Polo\u017Eka ob\u013E\xFAben\xFDch sa nena\u0161la.",
|
|
792
|
+
"be.storefront.withdrawalAlreadySubmitted": "Od tejto objedn\xE1vky ste u\u017E odst\xFApili, alebo pri nej prebieha vr\xE1tenie v\u0161etk\xFDch polo\u017Eiek.",
|
|
793
|
+
"be.storefront.withdrawalDisabled": "Tento obchod online odst\xFApenie od zmluvy nepon\xFAka. Nap\xED\u0161te mu pros\xEDm e-mailom.",
|
|
794
|
+
"be.storefront.withdrawalNameRequired": "Vypl\u0148te pros\xEDm svoje meno.",
|
|
753
795
|
"be.web.webNotFound": "Web sa nena\u0161iel.",
|
|
754
796
|
"be.validation.failed": "Niektor\xFD \xFAdaj nie je spr\xE1vne vyplnen\xFD. Skontrolujte ho pros\xEDm.",
|
|
755
797
|
"be.validation.required": "Toto pole je povinn\xE9.",
|
|
@@ -768,8 +810,25 @@ var ERROR_MESSAGES = {
|
|
|
768
810
|
},
|
|
769
811
|
"en": {
|
|
770
812
|
"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.",
|
|
813
|
+
"be.bookings.bookingNotActive": "This booking is no longer active, so it cannot be changed.",
|
|
814
|
+
"be.bookings.changeTooLate": "It is too late to change or cancel through the link. Please contact us directly.",
|
|
815
|
+
"be.bookings.manageNotFound": "This booking link is not valid. Please use the latest e-mail you received.",
|
|
816
|
+
"be.bookings.originNotAllowed": "The booking widget is not allowed to run on this website.",
|
|
817
|
+
"be.bookings.rangeInvalid": "The end of the period is before its start.",
|
|
818
|
+
"be.bookings.rangeTooLong": "Choose at most {max} days.",
|
|
819
|
+
"be.bookings.rejected": "The booking could not be sent. Please try again.",
|
|
820
|
+
"be.bookings.serviceNotFound": "Service not found or not available.",
|
|
821
|
+
"be.bookings.servicesInvalid": "Choose at least one service.",
|
|
822
|
+
"be.bookings.servicesMixedCurrency": "Services in one booking must use the same currency.",
|
|
823
|
+
"be.bookings.slotTaken": "Someone has just booked this time. Please choose another one.",
|
|
824
|
+
"be.bookings.staffCannotDoServices": "The selected staff member does not provide these services.",
|
|
825
|
+
"be.bookings.staffNotAvailable": "The selected staff member is not taking online bookings right now.",
|
|
826
|
+
"be.bookings.startInvalid": "The booking start is not valid.",
|
|
827
|
+
"be.bookings.tooManyRequests": "Too many attempts. Please try again in a moment.",
|
|
828
|
+
"be.bookings.widgetNotFound": "Bookings are not available here.",
|
|
771
829
|
"be.collections.collectionNotFound": "Collection not found.",
|
|
772
830
|
"be.collections.itemNotFound": "Collection item not found.",
|
|
831
|
+
"be.common.networkFailed": "Connection to the server failed. Check your network and try again.",
|
|
773
832
|
"be.common.notFound": "This no longer exists.",
|
|
774
833
|
"be.forms.consentRequired": "The form cannot be sent without consent.",
|
|
775
834
|
"be.forms.fileFieldNotFound": "This form has no such file field.",
|
|
@@ -792,6 +851,7 @@ var ERROR_MESSAGES = {
|
|
|
792
851
|
"be.payments.goIdInvalid": "This GoID does not belong to these credentials or does not exist. Check the GoID, and check that test mode matches.",
|
|
793
852
|
"be.payments.returnNotFound": "This payment return link is not valid.",
|
|
794
853
|
"be.payments.returnSecretMissing": "Payment return is not configured on the server.",
|
|
854
|
+
"be.payments.stripeAccountIncomplete": "Complete your Stripe account activation. Payments or payouts are not enabled yet.",
|
|
795
855
|
"be.payments.webhookMissingPaymentId": "The notification from {provider} does not contain a payment identifier.",
|
|
796
856
|
"be.payments.webhookSignatureInvalid": "The payment notification signature is not valid.",
|
|
797
857
|
"be.sms.accountInactive": "The operator account is not active, so nothing will go out through it. Check it in their administration.",
|
|
@@ -1015,6 +1075,9 @@ var ERROR_MESSAGES = {
|
|
|
1015
1075
|
"be.storefront.unknownPaymentProvider": "Unknown payment provider",
|
|
1016
1076
|
"be.storefront.variantsOnlyParent": "{name} cannot be purchased directly, choose one of its variants",
|
|
1017
1077
|
"be.storefront.wishlistItemNotFound": "Wishlist item not found",
|
|
1078
|
+
"be.storefront.withdrawalAlreadySubmitted": "You have already withdrawn from this order, or a return of every item is in progress.",
|
|
1079
|
+
"be.storefront.withdrawalDisabled": "This shop does not offer online withdrawal. Please contact it by e-mail.",
|
|
1080
|
+
"be.storefront.withdrawalNameRequired": "Please enter your name.",
|
|
1018
1081
|
"be.web.webNotFound": "Website not found",
|
|
1019
1082
|
"be.validation.failed": "Some of the details are not filled in correctly. Please check them.",
|
|
1020
1083
|
"be.validation.required": "This field is required.",
|
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-Btc3Nduh.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-Btc3Nduh.js';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIUC57IOBjs = require('./chunk-IUC57IOB.js');
|
|
4
4
|
|
|
5
5
|
// src/next.ts
|
|
6
6
|
var _headers = require('next/headers');
|
|
@@ -19,7 +19,7 @@ async function getBehio(options = {}) {
|
|
|
19
19
|
const locale = _nullishCoalesce(options.locale, () => ( process.env.BEHIO_LOCALE));
|
|
20
20
|
const currency = _nullishCoalesce(options.currency, () => ( process.env.BEHIO_CURRENCY));
|
|
21
21
|
const cookieName = _nullishCoalesce(options.cartCookieName, () => ( CART_COOKIE_NAME));
|
|
22
|
-
const client = new (0,
|
|
22
|
+
const client = new (0, _chunkIUC57IOBjs.BehioStorefront)({
|
|
23
23
|
apiKey,
|
|
24
24
|
...baseUrl ? { baseUrl } : {},
|
|
25
25
|
...locale ? { locale } : {},
|
package/dist/next.mjs
CHANGED
package/dist/react.d.mts
CHANGED
|
@@ -318,6 +318,20 @@ interface ShopInfo {
|
|
|
318
318
|
* may still be served.
|
|
319
319
|
*/
|
|
320
320
|
seo?: ShopSeoIdentity;
|
|
321
|
+
/**
|
|
322
|
+
* Online withdrawal function (Art. 11a Directive 2011/83/EU, mandatory in
|
|
323
|
+
* the EU from 19 Jun 2026). When `enabled`, render a clearly labelled link
|
|
324
|
+
* ("Withdraw from contract here") in the footer and in the customer account,
|
|
325
|
+
* leading to the withdrawal form (`returns.withdraw`). Optional because
|
|
326
|
+
* cached ShopInfo payloads predating the field may still be served (2.25.0).
|
|
327
|
+
*/
|
|
328
|
+
withdrawal?: WithdrawalSettings;
|
|
329
|
+
}
|
|
330
|
+
/** Merchant setting of the online withdrawal function (2.25.0). */
|
|
331
|
+
interface WithdrawalSettings {
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
/** Withdrawal period in days from receipt of the goods (14 by law). */
|
|
334
|
+
periodDays: number;
|
|
321
335
|
}
|
|
322
336
|
interface ShopAppearance {
|
|
323
337
|
primaryColor: string | null;
|
|
@@ -1843,7 +1857,22 @@ interface OrderPaymentInstructions {
|
|
|
1843
1857
|
currency: string;
|
|
1844
1858
|
instructions: string | null;
|
|
1845
1859
|
}
|
|
1860
|
+
/** Issued document visible only to the authorized order owner. Its page offers a PDF download. */
|
|
1861
|
+
interface OrderDocument {
|
|
1862
|
+
id: string;
|
|
1863
|
+
number: string;
|
|
1864
|
+
type: "INVOICE" | "PROFORMA" | "RECEIPT" | "CREDIT_NOTE";
|
|
1865
|
+
currency: string;
|
|
1866
|
+
totalAmount: number;
|
|
1867
|
+
/** Actual invoice ledger amounts, independent of the order payment status. */
|
|
1868
|
+
paidAmount: number;
|
|
1869
|
+
remainingAmount: number;
|
|
1870
|
+
/** Capability URL: do not expose in public tracking, analytics or logs. */
|
|
1871
|
+
url: string;
|
|
1872
|
+
}
|
|
1846
1873
|
interface OrderDetail extends OrderListItem {
|
|
1874
|
+
/** Issued invoices/proformas/receipts/credit notes. Drafts and revoked links are excluded. */
|
|
1875
|
+
documents?: OrderDocument[];
|
|
1847
1876
|
/** Payment is recorded; access delivery will retry automatically. Do not place a duplicate order. */
|
|
1848
1877
|
contentDeliveryPending?: boolean;
|
|
1849
1878
|
/** False for an order without physical delivery. */
|
|
@@ -3147,9 +3176,70 @@ interface ReturnableOrder {
|
|
|
3147
3176
|
orderId: string;
|
|
3148
3177
|
orderNumber: string;
|
|
3149
3178
|
status: string;
|
|
3179
|
+
/** Name from the order billing address, to prefill the withdrawal form (2.25.0). */
|
|
3180
|
+
customerName: string | null;
|
|
3150
3181
|
items: ReturnableOrderItem[];
|
|
3182
|
+
/** Withdrawal window of this order (2.25.0). */
|
|
3183
|
+
withdrawal: WithdrawalWindow;
|
|
3151
3184
|
createdAt: number;
|
|
3152
3185
|
}
|
|
3186
|
+
/**
|
|
3187
|
+
* What the withdrawal form should say about the period. The form stays
|
|
3188
|
+
* usable outside the window: the consumer may always submit, the merchant
|
|
3189
|
+
* decides. (2.25.0)
|
|
3190
|
+
*/
|
|
3191
|
+
interface WithdrawalWindow {
|
|
3192
|
+
/** The e-shop offers the online withdrawal function. */
|
|
3193
|
+
enabled: boolean;
|
|
3194
|
+
periodDays: number;
|
|
3195
|
+
/** Last moment of the period (ms). Null while it has not started or delivery is not recorded. */
|
|
3196
|
+
deadlineAt: number | null;
|
|
3197
|
+
/** False only when the period demonstrably ended. */
|
|
3198
|
+
withinPeriod: boolean;
|
|
3199
|
+
/** AFTER_DEADLINE | BEFORE_DISPATCH | DELIVERY_UNKNOWN | DIGITAL_CONTENT_CONSENT */
|
|
3200
|
+
flags: WithdrawalFlag[];
|
|
3201
|
+
}
|
|
3202
|
+
type WithdrawalFlag = "AFTER_DEADLINE" | "BEFORE_DISPATCH" | "DELIVERY_UNKNOWN" | "DIGITAL_CONTENT_CONSENT";
|
|
3203
|
+
/**
|
|
3204
|
+
* Input of `returns.withdraw()`: the withdrawal statement of Art. 11a(2):
|
|
3205
|
+
* the consumer's name, the contract (order number) and the e-mail the
|
|
3206
|
+
* acknowledgement goes to. Send it only after the consumer pressed the
|
|
3207
|
+
* confirmation button ("Confirm withdrawal"), hence `confirmed: true`. (2.25.0)
|
|
3208
|
+
*/
|
|
3209
|
+
interface SubmitWithdrawalInput {
|
|
3210
|
+
orderNumber: string;
|
|
3211
|
+
/** Order e-mail: the ownership gate and where the acknowledgement is sent. */
|
|
3212
|
+
email: string;
|
|
3213
|
+
name: string;
|
|
3214
|
+
/** Omit to withdraw from every still returnable item of the order. */
|
|
3215
|
+
items?: {
|
|
3216
|
+
orderItemId: string;
|
|
3217
|
+
quantity: number;
|
|
3218
|
+
}[];
|
|
3219
|
+
note?: string;
|
|
3220
|
+
confirmed: true;
|
|
3221
|
+
}
|
|
3222
|
+
/**
|
|
3223
|
+
* Returned by `returns.withdraw()`. Show it as the acknowledgement: the same
|
|
3224
|
+
* content with date and time also goes out by e-mail. `confirmationSent`
|
|
3225
|
+
* says whether that e-mail really went out. (2.25.0)
|
|
3226
|
+
*/
|
|
3227
|
+
interface WithdrawalAcknowledgement {
|
|
3228
|
+
id: string;
|
|
3229
|
+
orderNumber: string;
|
|
3230
|
+
customerName: string;
|
|
3231
|
+
email: string;
|
|
3232
|
+
/** Date and time of submission (ms). */
|
|
3233
|
+
submittedAt: number;
|
|
3234
|
+
items: {
|
|
3235
|
+
productName: string;
|
|
3236
|
+
quantity: number;
|
|
3237
|
+
}[];
|
|
3238
|
+
note: string | null;
|
|
3239
|
+
deadlineAt: number | null;
|
|
3240
|
+
withinPeriod: boolean;
|
|
3241
|
+
confirmationSent: boolean;
|
|
3242
|
+
}
|
|
3153
3243
|
interface ReturnRequestItem {
|
|
3154
3244
|
id: string;
|
|
3155
3245
|
orderItemId: string;
|
|
@@ -3180,6 +3270,8 @@ interface ReturnStatusItem {
|
|
|
3180
3270
|
interface ReturnStatus {
|
|
3181
3271
|
id: string;
|
|
3182
3272
|
orderNumber: string;
|
|
3273
|
+
/** WITHDRAWAL = withdrawal from the contract, RETURN = return or complaint (2.25.0). */
|
|
3274
|
+
type: "RETURN" | "WITHDRAWAL";
|
|
3183
3275
|
/** REQUESTED | APPROVED | SHIPPED_BACK | RECEIVED | REFUNDED | REJECTED | CLOSED */
|
|
3184
3276
|
status: string;
|
|
3185
3277
|
reason: string;
|
|
@@ -3339,6 +3431,145 @@ interface GamificationRefreshResult {
|
|
|
3339
3431
|
awarded: number;
|
|
3340
3432
|
completed: number;
|
|
3341
3433
|
}
|
|
3434
|
+
type BookingLocale = "cs" | "sk" | "en";
|
|
3435
|
+
type BookingStatus = "PENDING" | "CONFIRMED" | "CANCELLED" | "NO_SHOW" | "COMPLETED";
|
|
3436
|
+
interface BookingService {
|
|
3437
|
+
id: string;
|
|
3438
|
+
categoryId: string | null;
|
|
3439
|
+
name: string;
|
|
3440
|
+
description: string | null;
|
|
3441
|
+
durationMinutes: number;
|
|
3442
|
+
/** Null = price on site (show it as such, never as 0). */
|
|
3443
|
+
price: number | null;
|
|
3444
|
+
/** ISO 4217 code (CZK, EUR, ...). */
|
|
3445
|
+
currency: string;
|
|
3446
|
+
}
|
|
3447
|
+
interface BookingCategory {
|
|
3448
|
+
id: string;
|
|
3449
|
+
name: string;
|
|
3450
|
+
}
|
|
3451
|
+
interface BookingStaff {
|
|
3452
|
+
id: string;
|
|
3453
|
+
name: string;
|
|
3454
|
+
title: string | null;
|
|
3455
|
+
bio: string | null;
|
|
3456
|
+
/** `#rrggbb` or null. */
|
|
3457
|
+
color: string | null;
|
|
3458
|
+
/** Services this person does. */
|
|
3459
|
+
serviceIds: string[];
|
|
3460
|
+
}
|
|
3461
|
+
interface BookingLocation {
|
|
3462
|
+
id: string;
|
|
3463
|
+
name: string;
|
|
3464
|
+
address: string | null;
|
|
3465
|
+
timezone: string;
|
|
3466
|
+
}
|
|
3467
|
+
/** Public booking setup of the site owner (`GET /bookings/config`). */
|
|
3468
|
+
interface BookingConfig {
|
|
3469
|
+
businessName: string;
|
|
3470
|
+
intro: string | null;
|
|
3471
|
+
/** `#rrggbb` brand colour of the widget, or null. */
|
|
3472
|
+
accentColor: string | null;
|
|
3473
|
+
defaultLocale: BookingLocale;
|
|
3474
|
+
/** Offer a staff choice step (otherwise send `staffId: null`). */
|
|
3475
|
+
allowStaffChoice: boolean;
|
|
3476
|
+
/** New bookings start as PENDING and the business confirms them. */
|
|
3477
|
+
requireApproval: boolean;
|
|
3478
|
+
/** How many days ahead a customer may book. */
|
|
3479
|
+
maxAdvanceDays: number;
|
|
3480
|
+
/** Customer may change or cancel until this many hours before the start. */
|
|
3481
|
+
customerCancelHours: number;
|
|
3482
|
+
contactPhone: string | null;
|
|
3483
|
+
contactEmail: string | null;
|
|
3484
|
+
/**
|
|
3485
|
+
* Online booking is paused (plan limit). Do not offer the flow, show the
|
|
3486
|
+
* contact instead: `create` would answer `be.bookings.onlineLimitReached`.
|
|
3487
|
+
*/
|
|
3488
|
+
onlinePaused: boolean;
|
|
3489
|
+
/** IANA time zone of the branch; show every day and time in it. */
|
|
3490
|
+
timezone: string;
|
|
3491
|
+
locations: BookingLocation[];
|
|
3492
|
+
categories: BookingCategory[];
|
|
3493
|
+
services: BookingService[];
|
|
3494
|
+
staff: BookingStaff[];
|
|
3495
|
+
}
|
|
3496
|
+
interface BookingSlot {
|
|
3497
|
+
startMs: number;
|
|
3498
|
+
endMs: number;
|
|
3499
|
+
}
|
|
3500
|
+
interface BookingSlots {
|
|
3501
|
+
timezone: string;
|
|
3502
|
+
/** Total length of the selected services. */
|
|
3503
|
+
durationMinutes: number;
|
|
3504
|
+
slots: BookingSlot[];
|
|
3505
|
+
}
|
|
3506
|
+
interface BookingSlotsQuery {
|
|
3507
|
+
/** Selected services in the order they follow each other (1 to 10). */
|
|
3508
|
+
serviceIds: string[];
|
|
3509
|
+
/** Only this person; omit for anyone free. */
|
|
3510
|
+
staffId?: string | null;
|
|
3511
|
+
/** First day `YYYY-MM-DD` (branch time zone). */
|
|
3512
|
+
from: string;
|
|
3513
|
+
/** Last day `YYYY-MM-DD`, at most 31 days after `from`. */
|
|
3514
|
+
to: string;
|
|
3515
|
+
}
|
|
3516
|
+
interface BookingManageSlotsQuery {
|
|
3517
|
+
from: string;
|
|
3518
|
+
to: string;
|
|
3519
|
+
}
|
|
3520
|
+
interface BookingCreateInput {
|
|
3521
|
+
serviceIds: string[];
|
|
3522
|
+
/** Null or omitted = anyone free. */
|
|
3523
|
+
staffId?: string | null;
|
|
3524
|
+
/** `startMs` of a slot from `getSlots`. */
|
|
3525
|
+
startMs: number;
|
|
3526
|
+
name: string;
|
|
3527
|
+
email: string;
|
|
3528
|
+
phone?: string | null;
|
|
3529
|
+
note?: string | null;
|
|
3530
|
+
/** Language of the confirmation email. */
|
|
3531
|
+
locale?: BookingLocale;
|
|
3532
|
+
/** Honeypot: render a hidden input and send its value; people leave it empty. */
|
|
3533
|
+
website?: string;
|
|
3534
|
+
/** Analytics visitor (consent-gated), only for the CRM. */
|
|
3535
|
+
visitorId?: string | null;
|
|
3536
|
+
}
|
|
3537
|
+
/** One booking as the customer sees it. */
|
|
3538
|
+
interface Booking {
|
|
3539
|
+
id: string;
|
|
3540
|
+
/** Short code shown to the customer and in emails. */
|
|
3541
|
+
code: string;
|
|
3542
|
+
status: BookingStatus;
|
|
3543
|
+
startMs: number;
|
|
3544
|
+
endMs: number;
|
|
3545
|
+
timezone: string;
|
|
3546
|
+
businessName: string;
|
|
3547
|
+
staffName: string;
|
|
3548
|
+
locationName: string;
|
|
3549
|
+
locationAddress: string | null;
|
|
3550
|
+
services: string[];
|
|
3551
|
+
serviceIds: string[];
|
|
3552
|
+
/** Person chosen by the customer; null = anyone. */
|
|
3553
|
+
staffId: string | null;
|
|
3554
|
+
totalPrice: number | null;
|
|
3555
|
+
currency: string;
|
|
3556
|
+
customerName: string;
|
|
3557
|
+
/** The customer may still change or cancel (deadline from the settings). */
|
|
3558
|
+
canChange: boolean;
|
|
3559
|
+
/** Until when (ms) the customer may change or cancel. */
|
|
3560
|
+
changeDeadline: number | null;
|
|
3561
|
+
/** Phone of the business to show once `canChange` is false. */
|
|
3562
|
+
contactPhone: string | null;
|
|
3563
|
+
locale: string;
|
|
3564
|
+
}
|
|
3565
|
+
interface BookingCreated {
|
|
3566
|
+
booking: Booking;
|
|
3567
|
+
/**
|
|
3568
|
+
* Token for the change and cancel link (the same one the confirmation email
|
|
3569
|
+
* carries). Treat it like a password: never put it in analytics or logs.
|
|
3570
|
+
*/
|
|
3571
|
+
manageToken: string;
|
|
3572
|
+
}
|
|
3342
3573
|
|
|
3343
3574
|
declare class BehioStorefront {
|
|
3344
3575
|
private baseUrl;
|
|
@@ -3393,6 +3624,7 @@ declare class BehioStorefront {
|
|
|
3393
3624
|
readonly forms: FormsModule;
|
|
3394
3625
|
readonly collections: CollectionsModule;
|
|
3395
3626
|
readonly faq: FaqModule;
|
|
3627
|
+
readonly bookings: BookingsModule;
|
|
3396
3628
|
readonly wishlist: WishlistModule;
|
|
3397
3629
|
readonly reviews: ReviewsModule;
|
|
3398
3630
|
readonly returns: ReturnsModule;
|
|
@@ -4146,6 +4378,49 @@ declare class FaqModule {
|
|
|
4146
4378
|
*/
|
|
4147
4379
|
get(group: string, query?: StorefrontFaqQuery): Promise<SdkResult<StorefrontFaqGroup>>;
|
|
4148
4380
|
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Online booking of the site owner's services (hair salon, clinic, lessons):
|
|
4383
|
+
* the public setup, free times, a new booking, and the change and cancel flow
|
|
4384
|
+
* behind the token from the confirmation email. Works with website keys that
|
|
4385
|
+
* have no e-shop attached; the Bookings module must be on in the admin
|
|
4386
|
+
* (otherwise 404 `be.bookings.widgetNotFound`).
|
|
4387
|
+
*
|
|
4388
|
+
* Days are `YYYY-MM-DD` in the branch time zone (`config.timezone`), not the
|
|
4389
|
+
* visitor's; format times with `timeZone: config.timezone`.
|
|
4390
|
+
*
|
|
4391
|
+
* Errors worth handling: 409 `be.bookings.slotTaken` (someone was faster:
|
|
4392
|
+
* reload the slots and let the customer pick again), 403
|
|
4393
|
+
* `be.bookings.onlineLimitReached` (online booking paused, show the contact),
|
|
4394
|
+
* 403 `be.bookings.changeTooLate` (too late to change, show
|
|
4395
|
+
* `booking.contactPhone`), 404 `be.bookings.manageNotFound` (old or wrong
|
|
4396
|
+
* token), 429 (rate limit: 10 new bookings and 20 changes per minute).
|
|
4397
|
+
*/
|
|
4398
|
+
declare class BookingsModule {
|
|
4399
|
+
private client;
|
|
4400
|
+
constructor(client: BehioStorefront);
|
|
4401
|
+
/** Services, categories, staff, branches and rules of the booking flow. */
|
|
4402
|
+
getConfig(): Promise<SdkResult<BookingConfig>>;
|
|
4403
|
+
/** Free start times for the selected services (at most 31 days per call). */
|
|
4404
|
+
getSlots(query: BookingSlotsQuery): Promise<SdkResult<BookingSlots>>;
|
|
4405
|
+
/**
|
|
4406
|
+
* Create a booking. Counts toward the monthly online limit of the plan.
|
|
4407
|
+
* Keep `manageToken` only to link the customer to the change and cancel
|
|
4408
|
+
* page; the same link arrives in the confirmation email.
|
|
4409
|
+
*/
|
|
4410
|
+
create(input: BookingCreateInput): Promise<SdkResult<BookingCreated>>;
|
|
4411
|
+
/** The booking behind the token from the confirmation email. */
|
|
4412
|
+
getByToken(token: string): Promise<SdkResult<Booking>>;
|
|
4413
|
+
/** Free times to move the booking to (same services and person rules). */
|
|
4414
|
+
getManageSlots(token: string, query: BookingManageSlotsQuery): Promise<SdkResult<BookingSlots>>;
|
|
4415
|
+
/** Cancel the booking (optional reason for the business). */
|
|
4416
|
+
cancel(token: string, input?: {
|
|
4417
|
+
reason?: string | null;
|
|
4418
|
+
}): Promise<SdkResult<Booking>>;
|
|
4419
|
+
/** Move the booking to `startMs` of a slot from `getManageSlots`. */
|
|
4420
|
+
reschedule(token: string, input: {
|
|
4421
|
+
startMs: number;
|
|
4422
|
+
}): Promise<SdkResult<Booking>>;
|
|
4423
|
+
}
|
|
4149
4424
|
/**
|
|
4150
4425
|
* Merchant-defined forms (contact, demand, registration to an event...).
|
|
4151
4426
|
* The definition is public and cacheable; a submit is validated server-side
|
|
@@ -4230,6 +4505,15 @@ declare class ReturnsModule {
|
|
|
4230
4505
|
* quantities. POST so the email never appears in a URL.
|
|
4231
4506
|
*/
|
|
4232
4507
|
lookupOrder(orderNumber: string, email: string): Promise<SdkResult<ReturnableOrder>>;
|
|
4508
|
+
/**
|
|
4509
|
+
* EU withdrawal function (Art. 11a Directive 2011/83/EU, 2.25.0). Two steps
|
|
4510
|
+
* in the template: the form (name, order number, e-mail), then a summary
|
|
4511
|
+
* with the "Confirm withdrawal" button that calls this. The result is the
|
|
4512
|
+
* acknowledgement to show; the same content with date and time goes out by
|
|
4513
|
+
* e-mail. Guests welcome, the order e-mail is the gate.
|
|
4514
|
+
*/
|
|
4515
|
+
withdraw(input: SubmitWithdrawalInput): Promise<SdkResult<WithdrawalAcknowledgement>>;
|
|
4516
|
+
/** Return or complaint. Reason CHANGED_MIND is recorded as a withdrawal on the server. */
|
|
4233
4517
|
submit(input: SubmitReturnInput): Promise<SdkResult<ReturnRequest>>;
|
|
4234
4518
|
/** Email is the ownership gate; POST so it never lands in a URL / log. */
|
|
4235
4519
|
getStatus(returnId: string, email: string): Promise<SdkResult<ReturnStatus>>;
|
|
@@ -5230,6 +5514,36 @@ declare function useSiteFormSubmit(slug: string): {
|
|
|
5230
5514
|
reset: () => void;
|
|
5231
5515
|
};
|
|
5232
5516
|
|
|
5517
|
+
interface UseBookingsOptions {
|
|
5518
|
+
enabled?: boolean;
|
|
5519
|
+
}
|
|
5520
|
+
/** Public booking setup: services, staff, branches, rules (`client.bookings.getConfig`). */
|
|
5521
|
+
declare function useBookingConfig(options?: UseBookingsOptions): _tanstack_react_query.UseQueryResult<NoInfer<BookingConfig>, Error>;
|
|
5522
|
+
/**
|
|
5523
|
+
* Free start times for the selected services. Disabled until at least one
|
|
5524
|
+
* service is picked. Free times change with every booking, so the data is
|
|
5525
|
+
* treated as stale after 30 seconds.
|
|
5526
|
+
*/
|
|
5527
|
+
declare function useBookingSlots(query: BookingSlotsQuery, options?: UseBookingsOptions): _tanstack_react_query.UseQueryResult<NoInfer<BookingSlots>, Error>;
|
|
5528
|
+
/**
|
|
5529
|
+
* Create a booking. On 409 `be.bookings.slotTaken` the free times are
|
|
5530
|
+
* refreshed automatically; show `errorMessage(error, locale)` and let the
|
|
5531
|
+
* customer pick another time.
|
|
5532
|
+
*/
|
|
5533
|
+
declare function useCreateBooking(): _tanstack_react_query.UseMutationResult<BookingCreated, Error, BookingCreateInput, unknown>;
|
|
5534
|
+
/** The booking behind the token from the confirmation email. */
|
|
5535
|
+
declare function useManagedBooking(token: string, options?: UseBookingsOptions): _tanstack_react_query.UseQueryResult<NoInfer<Booking>, Error>;
|
|
5536
|
+
/** Free times to move a booking to. */
|
|
5537
|
+
declare function useManagedBookingSlots(token: string, query: BookingManageSlotsQuery, options?: UseBookingsOptions): _tanstack_react_query.UseQueryResult<NoInfer<BookingSlots>, Error>;
|
|
5538
|
+
/** Cancel the booking; the cached booking is replaced with the answer. */
|
|
5539
|
+
declare function useCancelBooking(token: string): _tanstack_react_query.UseMutationResult<Booking, Error, void | {
|
|
5540
|
+
reason?: string | null;
|
|
5541
|
+
}, unknown>;
|
|
5542
|
+
/** Move the booking to a new start; the cached booking is replaced with the answer. */
|
|
5543
|
+
declare function useRescheduleBooking(token: string): _tanstack_react_query.UseMutationResult<Booking, Error, {
|
|
5544
|
+
startMs: number;
|
|
5545
|
+
}, unknown>;
|
|
5546
|
+
|
|
5233
5547
|
interface UseShopInfoOptions {
|
|
5234
5548
|
enabled?: boolean;
|
|
5235
5549
|
}
|
|
@@ -5735,6 +6049,8 @@ declare function useLookupReturnableOrder(): _tanstack_react_query.UseMutationRe
|
|
|
5735
6049
|
orderNumber: string;
|
|
5736
6050
|
email: string;
|
|
5737
6051
|
}, unknown>;
|
|
6052
|
+
/** EU withdrawal function: call after the consumer pressed "Confirm withdrawal" (2.25.0). */
|
|
6053
|
+
declare function useSubmitWithdrawal(): _tanstack_react_query.UseMutationResult<WithdrawalAcknowledgement, Error, SubmitWithdrawalInput, unknown>;
|
|
5738
6054
|
declare function useSubmitReturn(): _tanstack_react_query.UseMutationResult<ReturnRequest, Error, SubmitReturnInput, unknown>;
|
|
5739
6055
|
declare function useReturnStatus(returnId: string | undefined, email: string | undefined): _tanstack_react_query.UseQueryResult<NoInfer<ReturnStatus>, Error>;
|
|
5740
6056
|
|
|
@@ -6066,4 +6382,4 @@ declare function revokeAnalyticsConsent(client: BehioStorefront): Promise<SdkRes
|
|
|
6066
6382
|
success: boolean;
|
|
6067
6383
|
}>>;
|
|
6068
6384
|
|
|
6069
|
-
export { type ActivePromotion, type AddToCartInput, type AnalyticsEventInput, type AuthTokens, BehioAnalyticsTracker, BehioApiError, BehioProvider, type BehioProviderProps, type Blog, type BlogPostDetail, type BlogPostListItem, type BlogPostsPage, type BlogPostsQuery, type BlogSettings, type BlogTag, type Bundle, type BundleItem, type Cart, type CartDiscount, type CartItem, type Category, type CategoryDetail, type CheckoutAddress, type CheckoutInput, type CheckoutPaymentMethod, type CookieConsent, type CookieConsentInput, type CrossSellItem, CurrencySwitcher, type CurrencySwitcherProps, type CurrencySwitcherRenderProps, type CustomerAddress, type CustomerProfile, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type Facet, type FacetRange, type FacetValue, type FacetsResponse, type FilterField, type FulfillmentStatus, type GiftCardBalance, type LoginInput, type MessageResponse, type OrderDetail, type OrderItem, type OrderListItem, type OrderStatus, type Page, type PageAttachment, type PageDetail, type PaginatedResponse, type PaymentInstrument, type PaymentStatus, type PaymentSwift, type PersonalOffer, type ProductDetail, type ProductLabel, type ProductListItem, type ProductParameter, type ProductParameterGroup, type ProductParametersResponse, type ProductPrice, type ProductReview, type ProductReviewsResponse, type ProductVariant, type ProductsQuery, type QuoteRequest, type RegisterInput, type ReturnRequest, RichText, type RichTextProps, type ShopInfo, type ShopSeo, type SiteFormField, type SiteFormFieldOption, type SiteFormFieldType, type StorageAdapter, type StorefrontForm, type StorefrontFormFieldError, type StorefrontFormFieldErrorCode, type StorefrontFormSettings, type StorefrontFormSubmitInput, type StorefrontFormSubmitResult, StorefrontScripts, type StorefrontScriptsProps, type SubmitQuoteInput, type SubmitReturnInput, type SubmitReviewInput, type UseAddressAutocompleteOptions, type UseAddressAutocompleteReturn, type UseAddressesOptions, type UseBlogPostOptions, type UseBlogPostsOptions, type UseBlogsOptions, type UseCartCountOptions, type UseCartOptions, type UseCategoriesOptions, type UseCategoryOptions, type UseCertificateVerificationOptions, type UseCollectionOptions, type UseCourseCertificatesOptions, type UseCourseOptions, type UseCoursesOptions, type UseCurrencyResult, type UseCustomerOptions, type UseFacetsOptions, type UseFaqOptions, type UseFeaturedOptions, type UseFiltersOptions, type UseLabelsOptions, type UseLessonCommentsOptions, type UseLessonNoteOptions, type UseLessonQuizOptions, type UseLessonTutorOptions, type UseLoyaltyOptions, type UseMenuOptions, type UseOrderOptions, type UseOrdersOptions, type UsePageOptions, type UsePagesOptions, type UsePaymentMethodsOptions, type UsePersonalOffersOptions, type UseProductOptions, type UseProductParametersOptions, type UseProductsOptions, type UseSearchOptions, type UseShippingMethodsOptions, type UseShippingQuoteOptions, type UseShopInfoOptions, type UseShopScriptsOptions, type UseShopSeoOptions, type UseSiteFormOptions, type UseSubscriptionsOptions, type UseVisitorMessagesOptions, type VisitorMessage, type WishlistItem, cookieStorage, createMemoryStorage, detectStorage, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, localStorageAdapter, memoryStorage, revokeAnalyticsConsent, trackEcommerceEvent, useAddressAutocomplete, useAddresses, useAnalyticsEvents, useAuth, useBehio, useBehioClient, useBlogPost, useBlogPosts, useBlogs, useBundle, useBundles, useCart, useCartCount, useCategories, useCategory, useCertificateVerification, useCheckout, useCheckoutPreview, useCollection, useCollectionItem, useCookieConsent, useCourse, useCourseCertificates, useCourses, useCrossSell, useCurrency, useCustomer, useFacets, useFaqGroup, useFaqGroups, useFeatured, useFilters, useGiftCardBalance, useIsInWishlist, useLabels, useLessonComments, useLessonNote, useLessonQuiz, useLessonTutor, useLookupReturnableOrder, useLoyalty, useMenu, useNewsletterSubscribe, useNewsletterUnsubscribe, useNotifyWhenAvailable, useOrder, useOrderAccess, useOrders, usePage, usePages, usePaymentMethods, usePersonalOffers, usePickupPoints, useProduct, useProductGroup, useProductParameters, useProductPromotions, useProductReviews, useProducts, useQuoteStatus, useReturnStatus, useSearch, useShippingMethods, useShippingQuote, useShopInfo, useShopScripts, useShopSeo, useSiteForm, useSiteFormSubmit, useSubmitQuote, useSubmitReturn, useSubmitReview, useSubscriptions, useVisitorMessages, useWishlist };
|
|
6385
|
+
export { type ActivePromotion, type AddToCartInput, type AnalyticsEventInput, type AuthTokens, BehioAnalyticsTracker, BehioApiError, BehioProvider, type BehioProviderProps, type Blog, type BlogPostDetail, type BlogPostListItem, type BlogPostsPage, type BlogPostsQuery, type BlogSettings, type BlogTag, type Booking, type BookingCategory, type BookingConfig, type BookingCreateInput, type BookingCreated, type BookingLocale, type BookingLocation, type BookingManageSlotsQuery, type BookingService, type BookingSlot, type BookingSlots, type BookingSlotsQuery, type BookingStaff, type BookingStatus, type Bundle, type BundleItem, type Cart, type CartDiscount, type CartItem, type Category, type CategoryDetail, type CheckoutAddress, type CheckoutInput, type CheckoutPaymentMethod, type CookieConsent, type CookieConsentInput, type CrossSellItem, CurrencySwitcher, type CurrencySwitcherProps, type CurrencySwitcherRenderProps, type CustomerAddress, type CustomerProfile, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type Facet, type FacetRange, type FacetValue, type FacetsResponse, type FilterField, type FulfillmentStatus, type GiftCardBalance, type LoginInput, type MessageResponse, type OrderDetail, type OrderItem, type OrderListItem, type OrderStatus, type Page, type PageAttachment, type PageDetail, type PaginatedResponse, type PaymentInstrument, type PaymentStatus, type PaymentSwift, type PersonalOffer, type ProductDetail, type ProductLabel, type ProductListItem, type ProductParameter, type ProductParameterGroup, type ProductParametersResponse, type ProductPrice, type ProductReview, type ProductReviewsResponse, type ProductVariant, type ProductsQuery, type QuoteRequest, type RegisterInput, type ReturnRequest, RichText, type RichTextProps, type ShopInfo, type ShopSeo, type SiteFormField, type SiteFormFieldOption, type SiteFormFieldType, type StorageAdapter, type StorefrontForm, type StorefrontFormFieldError, type StorefrontFormFieldErrorCode, type StorefrontFormSettings, type StorefrontFormSubmitInput, type StorefrontFormSubmitResult, StorefrontScripts, type StorefrontScriptsProps, type SubmitQuoteInput, type SubmitReturnInput, type SubmitReviewInput, type SubmitWithdrawalInput, type UseAddressAutocompleteOptions, type UseAddressAutocompleteReturn, type UseAddressesOptions, type UseBlogPostOptions, type UseBlogPostsOptions, type UseBlogsOptions, type UseBookingsOptions, type UseCartCountOptions, type UseCartOptions, type UseCategoriesOptions, type UseCategoryOptions, type UseCertificateVerificationOptions, type UseCollectionOptions, type UseCourseCertificatesOptions, type UseCourseOptions, type UseCoursesOptions, type UseCurrencyResult, type UseCustomerOptions, type UseFacetsOptions, type UseFaqOptions, type UseFeaturedOptions, type UseFiltersOptions, type UseLabelsOptions, type UseLessonCommentsOptions, type UseLessonNoteOptions, type UseLessonQuizOptions, type UseLessonTutorOptions, type UseLoyaltyOptions, type UseMenuOptions, type UseOrderOptions, type UseOrdersOptions, type UsePageOptions, type UsePagesOptions, type UsePaymentMethodsOptions, type UsePersonalOffersOptions, type UseProductOptions, type UseProductParametersOptions, type UseProductsOptions, type UseSearchOptions, type UseShippingMethodsOptions, type UseShippingQuoteOptions, type UseShopInfoOptions, type UseShopScriptsOptions, type UseShopSeoOptions, type UseSiteFormOptions, type UseSubscriptionsOptions, type UseVisitorMessagesOptions, type VisitorMessage, type WishlistItem, type WithdrawalAcknowledgement, type WithdrawalWindow, cookieStorage, createMemoryStorage, detectStorage, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, localStorageAdapter, memoryStorage, revokeAnalyticsConsent, trackEcommerceEvent, useAddressAutocomplete, useAddresses, useAnalyticsEvents, useAuth, useBehio, useBehioClient, useBlogPost, useBlogPosts, useBlogs, useBookingConfig, useBookingSlots, useBundle, useBundles, useCancelBooking, useCart, useCartCount, useCategories, useCategory, useCertificateVerification, useCheckout, useCheckoutPreview, useCollection, useCollectionItem, useCookieConsent, useCourse, useCourseCertificates, useCourses, useCreateBooking, useCrossSell, useCurrency, useCustomer, useFacets, useFaqGroup, useFaqGroups, useFeatured, useFilters, useGiftCardBalance, useIsInWishlist, useLabels, useLessonComments, useLessonNote, useLessonQuiz, useLessonTutor, useLookupReturnableOrder, useLoyalty, useManagedBooking, useManagedBookingSlots, useMenu, useNewsletterSubscribe, useNewsletterUnsubscribe, useNotifyWhenAvailable, useOrder, useOrderAccess, useOrders, usePage, usePages, usePaymentMethods, usePersonalOffers, usePickupPoints, useProduct, useProductGroup, useProductParameters, useProductPromotions, useProductReviews, useProducts, useQuoteStatus, useRescheduleBooking, useReturnStatus, useSearch, useShippingMethods, useShippingQuote, useShopInfo, useShopScripts, useShopSeo, useSiteForm, useSiteFormSubmit, useSubmitQuote, useSubmitReturn, useSubmitReview, useSubmitWithdrawal, useSubscriptions, useVisitorMessages, useWishlist };
|