@behio/storefront-sdk 2.7.0 → 2.9.0
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 +33 -0
- package/dist/{chunk-JCHJ2HW4.js → chunk-AOUXSMSR.js} +22 -2
- package/dist/{chunk-WQVG4HW7.mjs → chunk-AUH7KNL6.mjs} +22 -2
- package/dist/{client-SeKujCLk.d.mts → client-GId6Qj64.d.mts} +130 -3
- package/dist/{client-SeKujCLk.d.ts → client-GId6Qj64.d.ts} +130 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +83 -14
- package/dist/index.mjs +81 -12
- 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 +129 -2
- package/dist/react.d.ts +129 -2
- package/dist/react.js +36 -13
- package/dist/react.mjs +36 -13
- 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-AUH7KNL6.mjs";
|
|
16
16
|
|
|
17
17
|
// src/react/utils/format-price.ts
|
|
18
18
|
function formatPrice(amount, currency, locale, display) {
|
|
@@ -248,10 +248,15 @@ var ERROR_MESSAGES = {
|
|
|
248
248
|
"be.forms.formNotFound": "Formul\xE1\u0159 nebyl nalezen.",
|
|
249
249
|
"be.forms.tooLarge": "Odeslan\xE1 data jsou p\u0159\xEDli\u0161 velk\xE1.",
|
|
250
250
|
"be.forms.validationFailed": "N\u011Bkter\xE1 pole nejsou vypln\u011Bn\xE1 spr\xE1vn\u011B.",
|
|
251
|
+
"be.payments.credentialsInvalid": "Br\xE1na odm\xEDtla Client ID nebo Client Secret. Zkontrolujte je a tak\xE9 to, jestli sed\xED testovac\xED re\u017Eim (testovac\xED \xFAdaje funguj\xED jen v testovac\xEDm re\u017Eimu).",
|
|
252
|
+
"be.payments.credentialsMissing": "Vypl\u0148te v\u0161echny povinn\xE9 p\u0159\xEDstupov\xE9 \xFAdaje k br\xE1n\u011B.",
|
|
251
253
|
"be.payments.gatewayAuthFailed": "Platebn\xED br\xE1na {provider} odm\xEDtla p\u0159ihla\u0161ovac\xED \xFAdaje. Zkontrolujte je pros\xEDm v nastaven\xED platebn\xED metody.",
|
|
252
254
|
"be.payments.gatewayCreateFailed": "Platbu se u br\xE1ny {provider} nepoda\u0159ilo zalo\u017Eit. Zkuste to pros\xEDm znovu, nebo vyberte jinou platebn\xED metodu.",
|
|
255
|
+
"be.payments.gatewayLocked": "Br\xE1na do\u010Dasn\u011B zablokovala p\u0159ihla\u0161ov\xE1n\xED po opakovan\xFDch ne\xFAsp\u011B\u0161n\xFDch pokusech. Zkuste to znovu za n\u011Bkolik minut, p\u0159\xEDpadn\u011B po\u017E\xE1dejte podporu br\xE1ny o odblokov\xE1n\xED.",
|
|
253
256
|
"be.payments.gatewayMissingCredentials": "Platebn\xED br\xE1n\u011B {provider} chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje. Dopl\u0148te je pros\xEDm v nastaven\xED platebn\xED metody.",
|
|
254
257
|
"be.payments.gatewayStatusFailed": "Stav platby se u br\xE1ny {provider} nepoda\u0159ilo ov\u011B\u0159it. Zkuste to pros\xEDm za chv\xEDli znovu.",
|
|
258
|
+
"be.payments.gatewayUnavailable": "Br\xE1nu se te\u010F nepoda\u0159ilo kontaktovat, \xFAdaje jsme nemohli ov\u011B\u0159it. Zkuste to pros\xEDm za chv\xEDli znovu.",
|
|
259
|
+
"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.",
|
|
255
260
|
"be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platebn\xED br\xE1ny nen\xED platn\xE1.",
|
|
256
261
|
"be.payments.returnSecretMissing": "N\xE1vrat z platebn\xED br\xE1ny nen\xED na serveru nastaven\xFD.",
|
|
257
262
|
"be.payments.webhookMissingPaymentId": "Ozn\xE1men\xED od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
|
|
@@ -277,6 +282,8 @@ var ERROR_MESSAGES = {
|
|
|
277
282
|
"be.storefront.apiKeyExpired": "Platnost API kl\xED\u010De vypr\u0161ela.",
|
|
278
283
|
"be.storefront.apiKeyMissing": "Chyb\xED hlavi\u010Dka X-Api-Key.",
|
|
279
284
|
"be.storefront.authTokenMissing": "Chyb\xED p\u0159ihla\u0161ovac\xED token.",
|
|
285
|
+
"be.storefront.benefitProgramInactive": "V\u011Brnostn\xED program nen\xED aktivn\xED.",
|
|
286
|
+
"be.storefront.benefitProgramNotFound": "V\u011Brnostn\xED program nenalezen.",
|
|
280
287
|
"be.storefront.besteronMissingCredentials": "Metod\u011B Besteron chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
|
|
281
288
|
"be.storefront.besteronWebhookInvalid": "Notifikace Besteronu nenese id transakce.",
|
|
282
289
|
"be.storefront.blogNotFound": "Blog nebyl nalezen.",
|
|
@@ -291,10 +298,14 @@ var ERROR_MESSAGES = {
|
|
|
291
298
|
"be.storefront.cartAlreadyCheckedOut": "Ko\u0161\xEDk u\u017E byl odesl\xE1n do objedn\xE1vky.",
|
|
292
299
|
"be.storefront.cartIsEmpty": "Ko\u0161\xEDk je pr\xE1zdn\xFD.",
|
|
293
300
|
"be.storefront.cartItemNotFound": "Polo\u017Eka ko\u0161\xEDku nenalezena.",
|
|
301
|
+
"be.storefront.cartLinkExpired": "Odkaz na ko\u0161\xEDk u\u017E vypr\u0161el. Produkty m\u016F\u017Eete p\u0159idat v obchod\u011B znovu.",
|
|
294
302
|
"be.storefront.cartNotAvailable": "Ko\u0161\xEDk nen\xED dostupn\xFD.",
|
|
295
303
|
"be.storefront.cartNotFound": "Ko\u0161\xEDk nenalezen.",
|
|
296
304
|
"be.storefront.categoryNotFound": "Kategorie nenalezena.",
|
|
297
305
|
"be.storefront.certificateNotFound": "Certifik\xE1t nenalezen.",
|
|
306
|
+
"be.storefront.challengeInactive": "V\xFDzva nen\xED aktivn\xED.",
|
|
307
|
+
"be.storefront.challengeMembershipRequired": "Pro tuto odm\u011Bnu pot\u0159ebujete aktivn\xED \u010Dlenstv\xED ve v\u011Brnostn\xEDm programu.",
|
|
308
|
+
"be.storefront.challengeNotFound": "V\xFDzva nenalezena.",
|
|
298
309
|
"be.storefront.checkoutChanged": "Objedn\xE1vka se zm\u011Bnila. P\u0159ed odesl\xE1n\xEDm pros\xEDm zkontrolujte novou \u010D\xE1stku.",
|
|
299
310
|
"be.storefront.comgateMissingCredentials": "Metod\u011B Comgate chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
|
|
300
311
|
"be.storefront.comgateWebhookInvalid": "Notifikace Comgate nenese id transakce.",
|
|
@@ -334,6 +345,7 @@ var ERROR_MESSAGES = {
|
|
|
334
345
|
"be.storefront.emailVerificationRequired": "P\u0159ed p\u0159ihl\xE1\u0161en\xEDm ov\u011B\u0159te sv\u016Fj e-mail.",
|
|
335
346
|
"be.storefront.encryptionKeyMissing": "Na serveru nen\xED nastaven\xFD \u0161ifrovac\xED kl\xED\u010D.",
|
|
336
347
|
"be.storefront.eshopNotFound": "E-shop nenalezen.",
|
|
348
|
+
"be.storefront.exchangeRateUnknown": "Kurz z {from} na {to} nezn\xE1me. Zadejte ho ru\u010Dn\u011B, nebo po\u010Dkejte na dal\u0161\xED sta\u017Een\xED kurz\u016F.",
|
|
337
349
|
"be.storefront.facetsInvalidJson": "Fasety mus\xED b\xFDt JSON objekt.",
|
|
338
350
|
"be.storefront.gatewayAuthFailed": "P\u0159ihl\xE1\u0161en\xED k br\xE1n\u011B {provider} selhalo. Zkontrolujte p\u0159ihla\u0161ovac\xED \xFAdaje metody.",
|
|
339
351
|
"be.storefront.gatewayCreateFailed": "Platbu se u br\xE1ny {provider} nepoda\u0159ilo zalo\u017Eit.",
|
|
@@ -346,6 +358,7 @@ var ERROR_MESSAGES = {
|
|
|
346
358
|
"be.storefront.gopayResponseInvalid": "Odpov\u011B\u010F GoPay nenese pot\u0159ebn\xE1 pole.",
|
|
347
359
|
"be.storefront.gopayWebhookInvalid": "Notifikace GoPay nenese id platby.",
|
|
348
360
|
"be.storefront.guestCheckoutDisabled": "N\xE1kup bez registrace nen\xED povolen\xFD. P\u0159ihlaste se, nebo se zaregistrujte.",
|
|
361
|
+
"be.storefront.insufficientBalance": "Nedostate\u010Dn\xFD z\u016Fstatek.",
|
|
349
362
|
"be.storefront.insufficientPoints": "Nedostatek v\u011Brnostn\xEDch bod\u016F.",
|
|
350
363
|
"be.storefront.insufficientStock": "Produkt {name} nen\xED v po\u017Eadovan\xE9m mno\u017Estv\xED skladem.",
|
|
351
364
|
"be.storefront.internalAuthNotConfigured": "Intern\xED ov\u011B\u0159en\xED nen\xED nastaven\xE9.",
|
|
@@ -358,6 +371,7 @@ var ERROR_MESSAGES = {
|
|
|
358
371
|
"be.storefront.invalidInternalApiKey": "Neplatn\xFD intern\xED API kl\xED\u010D.",
|
|
359
372
|
"be.storefront.invalidInternalSecret": "Neplatn\xFD intern\xED kl\xED\u010D.",
|
|
360
373
|
"be.storefront.invalidOrExpiredCode": "Neplatn\xFD nebo pro\u0161l\xFD k\xF3d.",
|
|
374
|
+
"be.storefront.invalidReferralCode": "Neplatn\xFD doporu\u010Dovac\xED k\xF3d.",
|
|
361
375
|
"be.storefront.invalidRefreshToken": "Neplatn\xFD obnovovac\xED token.",
|
|
362
376
|
"be.storefront.invalidStateSignature": "Neplatn\xFD podpis stavu.",
|
|
363
377
|
"be.storefront.invalidTokenType": "Neplatn\xFD typ tokenu.",
|
|
@@ -366,6 +380,8 @@ var ERROR_MESSAGES = {
|
|
|
366
380
|
"be.storefront.lessonLocked": "Lekce je zam\u010Den\xE1.",
|
|
367
381
|
"be.storefront.lessonNoQuiz": "Lekce nem\xE1 kv\xEDz.",
|
|
368
382
|
"be.storefront.lessonNotFound": "Lekce nenalezena.",
|
|
383
|
+
"be.storefront.loyaltyHistoryCursorInvalid": "Tato str\xE1nka historie bod\u016F u\u017E nen\xED dostupn\xE1.",
|
|
384
|
+
"be.storefront.loyaltyInvitationRequired": "Do tohoto v\u011Brnostn\xEDho programu v\xE1s m\u016F\u017Ee p\u0159idat pouze obchod.",
|
|
369
385
|
"be.storefront.loyaltyRedemptionUnavailable": "Tyto body nelze v t\xE9to objedn\xE1vce uplatnit. Zkontrolujte podm\xEDnky v\u011Brnostn\xEDho programu.",
|
|
370
386
|
"be.storefront.malformedState": "Po\u0161kozen\xFD stav po\u017Eadavku.",
|
|
371
387
|
"be.storefront.maxItemsPerProduct": "Stejn\xE9ho produktu lze objednat nejv\xFD\u0161 {max} kus\u016F.",
|
|
@@ -378,8 +394,10 @@ var ERROR_MESSAGES = {
|
|
|
378
394
|
"be.storefront.missingEshopContext": "Chyb\xED kontext e-shopu.",
|
|
379
395
|
"be.storefront.mollieMissingCredentials": "Metod\u011B Mollie chyb\xED API kl\xED\u010D.",
|
|
380
396
|
"be.storefront.mollieWebhookInvalid": "Notifikace Mollie nenese id platby.",
|
|
397
|
+
"be.storefront.newCustomerNotEnrolled": "Nov\xFD z\xE1kazn\xEDk nen\xED v programu zapsan\xFD.",
|
|
381
398
|
"be.storefront.noConsentRecorded": "N\xE1v\u0161t\u011Bvn\xEDk nem\xE1 zaznamenan\xFD souhlas.",
|
|
382
399
|
"be.storefront.noPickupPoints": "Tato doprava nem\xE1 v\xFDdejn\xED m\xEDsta.",
|
|
400
|
+
"be.storefront.noReferralRules": "Program nem\xE1 nastaven\xE1 doporu\u010Dovac\xED pravidla.",
|
|
383
401
|
"be.storefront.notFound": "Nenalezeno.",
|
|
384
402
|
"be.storefront.offerExpired": "Nab\xEDdka vypr\u0161ela.",
|
|
385
403
|
"be.storefront.offerNotEmailGated": "Nab\xEDdka nen\xED v\xE1zan\xE1 na e-mail.",
|
|
@@ -394,6 +412,7 @@ var ERROR_MESSAGES = {
|
|
|
394
412
|
"be.storefront.orderNotFound": "Objedn\xE1vka nenalezena.",
|
|
395
413
|
"be.storefront.orderQuantityStep": "Produkt {name} se objedn\xE1v\xE1 po n\xE1sobc\xEDch {step}.",
|
|
396
414
|
"be.storefront.originNotAllowed": "P\u016Fvod po\u017Eadavku nen\xED povolen\xFD.",
|
|
415
|
+
"be.storefront.ownReferralCode": "Vlastn\xED doporu\u010Dovac\xED k\xF3d pou\u017E\xEDt nejde.",
|
|
397
416
|
"be.storefront.pageNotFound": "Str\xE1nka nenalezena.",
|
|
398
417
|
"be.storefront.parameterGroupNotFound": "Skupina parametr\u016F nenalezena.",
|
|
399
418
|
"be.storefront.parametersInvalidJson": "Neplatn\xFD JSON parametr\u016F.",
|
|
@@ -401,9 +420,11 @@ var ERROR_MESSAGES = {
|
|
|
401
420
|
"be.storefront.paymentInstrumentInvalid": "Zvolen\xFD zp\u016Fsob platby u t\xE9to platebn\xED metody nen\xED k dispozici. Vyberte pros\xEDm jin\xFD.",
|
|
402
421
|
"be.storefront.paymentMethodRequired": "Vyberte platebn\xED metodu.",
|
|
403
422
|
"be.storefront.paymentMethodUnavailable": "Platebn\xED metoda nen\xED dostupn\xE1.",
|
|
423
|
+
"be.storefront.paymentReconciliationInvalid": "\xDAdaje platebn\xED br\xE1ny neodpov\xEDdaj\xED objedn\xE1vce. Stav platby se nezm\u011Bnil.",
|
|
404
424
|
"be.storefront.paypalMissingCredentials": "Metod\u011B PayPal chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
|
|
405
425
|
"be.storefront.paypalWebhookInvalid": "Notifikace PayPal nenese id objedn\xE1vky.",
|
|
406
426
|
"be.storefront.phoneRequired": "K dokon\u010Den\xED objedn\xE1vky je pot\u0159eba telefonn\xED \u010D\xEDslo.",
|
|
427
|
+
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdejn\xED m\xEDsto v zemi doru\u010Den\xED.",
|
|
407
428
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdejn\xED m\xEDsto.",
|
|
408
429
|
"be.storefront.placeNotFound": "M\xEDsto nenalezeno.",
|
|
409
430
|
"be.storefront.pricingUnavailable": "Ceny produkt\u016F te\u010F nejsou dostupn\xE9. Zkuste to pros\xEDm znovu.",
|
|
@@ -452,6 +473,7 @@ var ERROR_MESSAGES = {
|
|
|
452
473
|
"be.storefront.termsAgreementRequired": "K objedn\xE1vce je pot\u0159eba souhlas s obchodn\xEDmi podm\xEDnkami.",
|
|
453
474
|
"be.storefront.tokenInvalid": "Neplatn\xFD nebo pro\u0161l\xFD token.",
|
|
454
475
|
"be.storefront.tokenWrongEshop": "Token pro tento e-shop neplat\xED.",
|
|
476
|
+
"be.storefront.uniqueItemNoRestock": "Tento origin\xE1l se znovu vyr\xE1b\u011Bt nebude, hl\xEDdat ho nejde. Napi\u0161te n\xE1m, pokud chcete podobn\xFD.",
|
|
455
477
|
"be.storefront.unknownPaymentProvider": "Nezn\xE1m\xFD poskytovatel plateb {provider}.",
|
|
456
478
|
"be.storefront.variantsOnlyParent": "Produkt {name} nejde koupit p\u0159\xEDmo. Vyberte jednu z jeho variant.",
|
|
457
479
|
"be.storefront.wishlistItemNotFound": "Polo\u017Eka obl\xEDben\xFDch nenalezena.",
|
|
@@ -483,10 +505,15 @@ var ERROR_MESSAGES = {
|
|
|
483
505
|
"be.forms.formNotFound": "Formul\xE1r sa nena\u0161iel.",
|
|
484
506
|
"be.forms.tooLarge": "Odoslan\xE9 d\xE1ta s\xFA pr\xEDli\u0161 ve\u013Ek\xE9.",
|
|
485
507
|
"be.forms.validationFailed": "Niektor\xE9 polia nie s\xFA vyplnen\xE9 spr\xE1vne.",
|
|
508
|
+
"be.payments.credentialsInvalid": "Br\xE1na odmietla Client ID alebo Client Secret. Skontrolujte ich a tie\u017E to, \u010Di sed\xED testovac\xED re\u017Eim (testovacie \xFAdaje funguj\xFA len v testovacom re\u017Eime).",
|
|
509
|
+
"be.payments.credentialsMissing": "Vypl\u0148te v\u0161etky povinn\xE9 pr\xEDstupov\xE9 \xFAdaje k br\xE1ne.",
|
|
486
510
|
"be.payments.gatewayAuthFailed": "Platobn\xE1 br\xE1na {provider} odmietla prihlasovacie \xFAdaje. Skontrolujte ich pros\xEDm v nastaven\xED platobnej met\xF3dy.",
|
|
487
511
|
"be.payments.gatewayCreateFailed": "Platbu sa v br\xE1ne {provider} nepodarilo zalo\u017Ei\u0165. Sk\xFAste to pros\xEDm znova, alebo vyberte in\xFA platobn\xFA met\xF3du.",
|
|
512
|
+
"be.payments.gatewayLocked": "Br\xE1na do\u010Dasne zablokovala prihlasovanie po opakovan\xFDch ne\xFAspe\u0161n\xFDch pokusoch. Sk\xFAste to znova o nieko\u013Eko min\xFAt, pr\xEDpadne po\u017Eiadajte podporu br\xE1ny o odblokovanie.",
|
|
488
513
|
"be.payments.gatewayMissingCredentials": "Platobnej br\xE1ne {provider} ch\xFDbaj\xFA prihlasovacie \xFAdaje. Dopl\u0148te ich pros\xEDm v nastaven\xED platobnej met\xF3dy.",
|
|
489
514
|
"be.payments.gatewayStatusFailed": "Stav platby sa v br\xE1ne {provider} nepodarilo overi\u0165. Sk\xFAste to pros\xEDm o chv\xED\u013Eu znova.",
|
|
515
|
+
"be.payments.gatewayUnavailable": "Br\xE1nu sa teraz nepodarilo kontaktova\u0165, \xFAdaje sme nemohli overi\u0165. Sk\xFAste to pros\xEDm o chv\xED\u013Eu znova.",
|
|
516
|
+
"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.",
|
|
490
517
|
"be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platobnej br\xE1ny nie je platn\xE1.",
|
|
491
518
|
"be.payments.returnSecretMissing": "N\xE1vrat z platobnej br\xE1ny nie je na serveri nastaven\xFD.",
|
|
492
519
|
"be.payments.webhookMissingPaymentId": "Ozn\xE1menie od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
|
|
@@ -512,6 +539,8 @@ var ERROR_MESSAGES = {
|
|
|
512
539
|
"be.storefront.apiKeyExpired": "Platnos\u0165 API k\u013E\xFA\u010Da vypr\u0161ala.",
|
|
513
540
|
"be.storefront.apiKeyMissing": "Ch\xFDba hlavi\u010Dka X-Api-Key.",
|
|
514
541
|
"be.storefront.authTokenMissing": "Ch\xFDba prihlasovac\xED token.",
|
|
542
|
+
"be.storefront.benefitProgramInactive": "Vernostn\xFD program nie je akt\xEDvny.",
|
|
543
|
+
"be.storefront.benefitProgramNotFound": "Vernostn\xFD program sa nena\u0161iel.",
|
|
515
544
|
"be.storefront.besteronMissingCredentials": "Met\xF3de Besteron ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
|
|
516
545
|
"be.storefront.besteronWebhookInvalid": "Notifik\xE1cia Besteronu nenesie id transakcie.",
|
|
517
546
|
"be.storefront.blogNotFound": "Blog sa nena\u0161iel.",
|
|
@@ -526,10 +555,14 @@ var ERROR_MESSAGES = {
|
|
|
526
555
|
"be.storefront.cartAlreadyCheckedOut": "Ko\u0161\xEDk u\u017E bol odoslan\xFD do objedn\xE1vky.",
|
|
527
556
|
"be.storefront.cartIsEmpty": "Ko\u0161\xEDk je pr\xE1zdny.",
|
|
528
557
|
"be.storefront.cartItemNotFound": "Polo\u017Eka ko\u0161\xEDka sa nena\u0161la.",
|
|
558
|
+
"be.storefront.cartLinkExpired": "Odkaz na ko\u0161\xEDk u\u017E vypr\u0161al. Produkty m\xF4\u017Eete prida\u0165 v obchode znova.",
|
|
529
559
|
"be.storefront.cartNotAvailable": "Ko\u0161\xEDk nie je dostupn\xFD.",
|
|
530
560
|
"be.storefront.cartNotFound": "Ko\u0161\xEDk sa nena\u0161iel.",
|
|
531
561
|
"be.storefront.categoryNotFound": "Kateg\xF3ria sa nena\u0161la.",
|
|
532
562
|
"be.storefront.certificateNotFound": "Certifik\xE1t sa nena\u0161iel.",
|
|
563
|
+
"be.storefront.challengeInactive": "V\xFDzva nie je akt\xEDvna.",
|
|
564
|
+
"be.storefront.challengeMembershipRequired": "Pre t\xFAto odmenu potrebujete akt\xEDvne \u010Dlenstvo vo vernostnom programe.",
|
|
565
|
+
"be.storefront.challengeNotFound": "V\xFDzva sa nena\u0161la.",
|
|
533
566
|
"be.storefront.checkoutChanged": "Objedn\xE1vka sa zmenila. Pred odoslan\xEDm pros\xEDm skontrolujte nov\xFA sumu.",
|
|
534
567
|
"be.storefront.comgateMissingCredentials": "Met\xF3de Comgate ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
|
|
535
568
|
"be.storefront.comgateWebhookInvalid": "Notifik\xE1cia Comgate nenesie id transakcie.",
|
|
@@ -569,6 +602,7 @@ var ERROR_MESSAGES = {
|
|
|
569
602
|
"be.storefront.emailVerificationRequired": "Pred prihl\xE1sen\xEDm overte svoj e-mail.",
|
|
570
603
|
"be.storefront.encryptionKeyMissing": "Na serveri nie je nastaven\xFD \u0161ifrovac\xED k\u013E\xFA\u010D.",
|
|
571
604
|
"be.storefront.eshopNotFound": "E-shop sa nena\u0161iel.",
|
|
605
|
+
"be.storefront.exchangeRateUnknown": "Kurz z {from} na {to} nepozn\xE1me. Zadajte ho ru\u010Dne, alebo po\u010Dkajte na \u010Fal\u0161ie stiahnutie kurzov.",
|
|
572
606
|
"be.storefront.facetsInvalidJson": "Fazety musia by\u0165 JSON objekt.",
|
|
573
607
|
"be.storefront.gatewayAuthFailed": "Prihl\xE1senie k br\xE1ne {provider} zlyhalo. Skontrolujte prihlasovacie \xFAdaje met\xF3dy.",
|
|
574
608
|
"be.storefront.gatewayCreateFailed": "Platbu sa pri br\xE1ne {provider} nepodarilo zalo\u017Ei\u0165.",
|
|
@@ -581,6 +615,7 @@ var ERROR_MESSAGES = {
|
|
|
581
615
|
"be.storefront.gopayResponseInvalid": "Odpove\u010F GoPay nenesie potrebn\xE9 polia.",
|
|
582
616
|
"be.storefront.gopayWebhookInvalid": "Notifik\xE1cia GoPay nenesie id platby.",
|
|
583
617
|
"be.storefront.guestCheckoutDisabled": "N\xE1kup bez registr\xE1cie nie je povolen\xFD. Prihl\xE1ste sa, alebo sa zaregistrujte.",
|
|
618
|
+
"be.storefront.insufficientBalance": "Nedostato\u010Dn\xFD zostatok.",
|
|
584
619
|
"be.storefront.insufficientPoints": "Nedostatok vernostn\xFDch bodov.",
|
|
585
620
|
"be.storefront.insufficientStock": "Produkt {name} nie je v po\u017Eadovanom mno\u017Estve na sklade.",
|
|
586
621
|
"be.storefront.internalAuthNotConfigured": "Intern\xE9 overenie nie je nastaven\xE9.",
|
|
@@ -593,6 +628,7 @@ var ERROR_MESSAGES = {
|
|
|
593
628
|
"be.storefront.invalidInternalApiKey": "Neplatn\xFD intern\xFD API k\u013E\xFA\u010D.",
|
|
594
629
|
"be.storefront.invalidInternalSecret": "Neplatn\xFD intern\xFD k\u013E\xFA\u010D.",
|
|
595
630
|
"be.storefront.invalidOrExpiredCode": "Neplatn\xFD alebo expirovan\xFD k\xF3d.",
|
|
631
|
+
"be.storefront.invalidReferralCode": "Neplatn\xFD odpor\xFA\u010Dac\xED k\xF3d.",
|
|
596
632
|
"be.storefront.invalidRefreshToken": "Neplatn\xFD obnovovac\xED token.",
|
|
597
633
|
"be.storefront.invalidStateSignature": "Neplatn\xFD podpis stavu.",
|
|
598
634
|
"be.storefront.invalidTokenType": "Neplatn\xFD typ tokenu.",
|
|
@@ -601,6 +637,8 @@ var ERROR_MESSAGES = {
|
|
|
601
637
|
"be.storefront.lessonLocked": "Lekcia je zamknut\xE1.",
|
|
602
638
|
"be.storefront.lessonNoQuiz": "Lekcia nem\xE1 kv\xEDz.",
|
|
603
639
|
"be.storefront.lessonNotFound": "Lekcia sa nena\u0161la.",
|
|
640
|
+
"be.storefront.loyaltyHistoryCursorInvalid": "T\xE1to str\xE1nka hist\xF3rie bodov u\u017E nie je dostupn\xE1.",
|
|
641
|
+
"be.storefront.loyaltyInvitationRequired": "Do tohto vernostn\xE9ho programu v\xE1s m\xF4\u017Ee prida\u0165 iba obchod.",
|
|
604
642
|
"be.storefront.loyaltyRedemptionUnavailable": "Tieto body nemo\u017Eno v tejto objedn\xE1vke uplatni\u0165. Skontrolujte podmienky vernostn\xE9ho programu.",
|
|
605
643
|
"be.storefront.malformedState": "Po\u0161koden\xFD stav po\u017Eiadavky.",
|
|
606
644
|
"be.storefront.maxItemsPerProduct": "Rovnak\xE9ho produktu je mo\u017En\xE9 objedna\u0165 najviac {max} kusov.",
|
|
@@ -613,8 +651,10 @@ var ERROR_MESSAGES = {
|
|
|
613
651
|
"be.storefront.missingEshopContext": "Ch\xFDba kontext e-shopu.",
|
|
614
652
|
"be.storefront.mollieMissingCredentials": "Met\xF3de Mollie ch\xFDba API k\u013E\xFA\u010D.",
|
|
615
653
|
"be.storefront.mollieWebhookInvalid": "Notifik\xE1cia Mollie nenesie id platby.",
|
|
654
|
+
"be.storefront.newCustomerNotEnrolled": "Nov\xFD z\xE1kazn\xEDk nie je v programe zap\xEDsan\xFD.",
|
|
616
655
|
"be.storefront.noConsentRecorded": "N\xE1v\u0161tevn\xEDk nem\xE1 zaznamenan\xFD s\xFAhlas.",
|
|
617
656
|
"be.storefront.noPickupPoints": "T\xE1to doprava nem\xE1 v\xFDdajn\xE9 miesta.",
|
|
657
|
+
"be.storefront.noReferralRules": "Program nem\xE1 nastaven\xE9 odpor\xFA\u010Dacie pravidl\xE1.",
|
|
618
658
|
"be.storefront.notFound": "Nena\u0161lo sa.",
|
|
619
659
|
"be.storefront.offerExpired": "Ponuka vypr\u0161ala.",
|
|
620
660
|
"be.storefront.offerNotEmailGated": "Ponuka nie je viazan\xE1 na e-mail.",
|
|
@@ -629,6 +669,7 @@ var ERROR_MESSAGES = {
|
|
|
629
669
|
"be.storefront.orderNotFound": "Objedn\xE1vka sa nena\u0161la.",
|
|
630
670
|
"be.storefront.orderQuantityStep": "Produkt {name} sa objedn\xE1va po n\xE1sobkoch {step}.",
|
|
631
671
|
"be.storefront.originNotAllowed": "P\xF4vod po\u017Eiadavky nie je povolen\xFD.",
|
|
672
|
+
"be.storefront.ownReferralCode": "Vlastn\xFD odpor\xFA\u010Dac\xED k\xF3d pou\u017Ei\u0165 nie je mo\u017En\xE9.",
|
|
632
673
|
"be.storefront.pageNotFound": "Str\xE1nka sa nena\u0161la.",
|
|
633
674
|
"be.storefront.parameterGroupNotFound": "Skupina parametrov sa nena\u0161la.",
|
|
634
675
|
"be.storefront.parametersInvalidJson": "Neplatn\xFD JSON parametrov.",
|
|
@@ -636,9 +677,11 @@ var ERROR_MESSAGES = {
|
|
|
636
677
|
"be.storefront.paymentInstrumentInvalid": "Zvolen\xFD sp\xF4sob platby pri tejto platobnej met\xF3de nie je k dispoz\xEDcii. Vyberte pros\xEDm in\xFD.",
|
|
637
678
|
"be.storefront.paymentMethodRequired": "Vyberte platobn\xFA met\xF3du.",
|
|
638
679
|
"be.storefront.paymentMethodUnavailable": "Platobn\xE1 met\xF3da nie je dostupn\xE1.",
|
|
680
|
+
"be.storefront.paymentReconciliationInvalid": "\xDAdaje platobnej br\xE1ny nezodpovedaj\xFA objedn\xE1vke. Stav platby sa nezmenil.",
|
|
639
681
|
"be.storefront.paypalMissingCredentials": "Met\xF3de PayPal ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
|
|
640
682
|
"be.storefront.paypalWebhookInvalid": "Notifik\xE1cia PayPal nenesie id objedn\xE1vky.",
|
|
641
683
|
"be.storefront.phoneRequired": "Na dokon\u010Denie objedn\xE1vky je potrebn\xE9 telef\xF3nne \u010D\xEDslo.",
|
|
684
|
+
"be.storefront.pickupPointCountryMismatch": "Vyberte v\xFDdajn\xE9 miesto v krajine doru\u010Denia.",
|
|
642
685
|
"be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdajn\xE9 miesto.",
|
|
643
686
|
"be.storefront.placeNotFound": "Miesto sa nena\u0161lo.",
|
|
644
687
|
"be.storefront.pricingUnavailable": "Ceny produktov teraz nie s\xFA dostupn\xE9. Sk\xFAste to pros\xEDm znova.",
|
|
@@ -687,6 +730,7 @@ var ERROR_MESSAGES = {
|
|
|
687
730
|
"be.storefront.termsAgreementRequired": "K objedn\xE1vke je potrebn\xFD s\xFAhlas s obchodn\xFDmi podmienkami.",
|
|
688
731
|
"be.storefront.tokenInvalid": "Neplatn\xFD alebo expirovan\xFD token.",
|
|
689
732
|
"be.storefront.tokenWrongEshop": "Token pre tento e-shop neplat\xED.",
|
|
733
|
+
"be.storefront.uniqueItemNoRestock": "Tento origin\xE1l sa znovu vyr\xE1ba\u0165 nebude, str\xE1\u017Ei\u0165 ho nejde. Nap\xED\u0161te n\xE1m, ak chcete podobn\xFD.",
|
|
690
734
|
"be.storefront.unknownPaymentProvider": "Nezn\xE1my poskytovate\u013E platieb {provider}.",
|
|
691
735
|
"be.storefront.variantsOnlyParent": "Produkt {name} sa ned\xE1 k\xFApi\u0165 priamo. Vyberte jeden z jeho variantov.",
|
|
692
736
|
"be.storefront.wishlistItemNotFound": "Polo\u017Eka ob\u013E\xFAben\xFDch sa nena\u0161la.",
|
|
@@ -718,10 +762,15 @@ var ERROR_MESSAGES = {
|
|
|
718
762
|
"be.forms.formNotFound": "Form not found.",
|
|
719
763
|
"be.forms.tooLarge": "The submitted data is too large.",
|
|
720
764
|
"be.forms.validationFailed": "Some fields are not filled in correctly.",
|
|
765
|
+
"be.payments.credentialsInvalid": "The gateway rejected the Client ID or Client Secret. Check them, and check that test mode matches (test credentials only work in test mode).",
|
|
766
|
+
"be.payments.credentialsMissing": "Fill in all required gateway credentials.",
|
|
721
767
|
"be.payments.gatewayAuthFailed": "The {provider} payment gateway rejected the credentials. Please check them in the payment method settings.",
|
|
722
768
|
"be.payments.gatewayCreateFailed": "The payment could not be created with {provider}. Please try again or choose another payment method.",
|
|
769
|
+
"be.payments.gatewayLocked": "The gateway has temporarily blocked sign-in after repeated failed attempts. Try again in a few minutes, or ask the gateway support to unblock it.",
|
|
723
770
|
"be.payments.gatewayMissingCredentials": "The {provider} payment gateway is missing credentials. Please fill them in in the payment method settings.",
|
|
724
771
|
"be.payments.gatewayStatusFailed": "The payment status could not be verified with {provider}. Please try again in a moment.",
|
|
772
|
+
"be.payments.gatewayUnavailable": "We could not reach the gateway right now, so the credentials were not verified. Please try again shortly.",
|
|
773
|
+
"be.payments.goIdInvalid": "This GoID does not belong to these credentials or does not exist. Check the GoID, and check that test mode matches.",
|
|
725
774
|
"be.payments.returnNotFound": "This payment return link is not valid.",
|
|
726
775
|
"be.payments.returnSecretMissing": "Payment return is not configured on the server.",
|
|
727
776
|
"be.payments.webhookMissingPaymentId": "The notification from {provider} does not contain a payment identifier.",
|
|
@@ -747,6 +796,8 @@ var ERROR_MESSAGES = {
|
|
|
747
796
|
"be.storefront.apiKeyExpired": "API key has expired",
|
|
748
797
|
"be.storefront.apiKeyMissing": "Missing X-Api-Key header",
|
|
749
798
|
"be.storefront.authTokenMissing": "Missing authentication token",
|
|
799
|
+
"be.storefront.benefitProgramInactive": "Benefit program is not active",
|
|
800
|
+
"be.storefront.benefitProgramNotFound": "Benefit program not found",
|
|
750
801
|
"be.storefront.besteronMissingCredentials": "Besteron method is missing credentials",
|
|
751
802
|
"be.storefront.besteronWebhookInvalid": "Besteron webhook is missing the transaction id",
|
|
752
803
|
"be.storefront.blogNotFound": "Blog not found",
|
|
@@ -761,10 +812,14 @@ var ERROR_MESSAGES = {
|
|
|
761
812
|
"be.storefront.cartAlreadyCheckedOut": "Cart has already been checked out",
|
|
762
813
|
"be.storefront.cartIsEmpty": "Cart is empty",
|
|
763
814
|
"be.storefront.cartItemNotFound": "Cart item not found",
|
|
815
|
+
"be.storefront.cartLinkExpired": "This cart link has expired. You can add the products in the shop again.",
|
|
764
816
|
"be.storefront.cartNotAvailable": "Cart not available",
|
|
765
817
|
"be.storefront.cartNotFound": "Cart not found",
|
|
766
818
|
"be.storefront.categoryNotFound": "Category not found",
|
|
767
819
|
"be.storefront.certificateNotFound": "Certificate not found",
|
|
820
|
+
"be.storefront.challengeInactive": "Challenge is not active",
|
|
821
|
+
"be.storefront.challengeMembershipRequired": "An active loyalty membership is required for this reward.",
|
|
822
|
+
"be.storefront.challengeNotFound": "Challenge not found",
|
|
768
823
|
"be.storefront.checkoutChanged": "Your order has changed. Please review the updated total before placing it.",
|
|
769
824
|
"be.storefront.comgateMissingCredentials": "Comgate method is missing credentials",
|
|
770
825
|
"be.storefront.comgateWebhookInvalid": "Comgate webhook is missing the transaction id",
|
|
@@ -804,6 +859,7 @@ var ERROR_MESSAGES = {
|
|
|
804
859
|
"be.storefront.emailVerificationRequired": "Verify your email before signing in.",
|
|
805
860
|
"be.storefront.encryptionKeyMissing": "Encryption key is not configured on the server",
|
|
806
861
|
"be.storefront.eshopNotFound": "Shop not found",
|
|
862
|
+
"be.storefront.exchangeRateUnknown": "Exchange rate from {from} to {to} is unknown, enter it manually",
|
|
807
863
|
"be.storefront.facetsInvalidJson": "Facets must be a JSON object",
|
|
808
864
|
"be.storefront.gatewayAuthFailed": "Payment gateway authentication failed",
|
|
809
865
|
"be.storefront.gatewayCreateFailed": "Payment could not be created at the gateway",
|
|
@@ -816,6 +872,7 @@ var ERROR_MESSAGES = {
|
|
|
816
872
|
"be.storefront.gopayResponseInvalid": "GoPay response is missing required fields",
|
|
817
873
|
"be.storefront.gopayWebhookInvalid": "GoPay webhook is missing the payment id",
|
|
818
874
|
"be.storefront.guestCheckoutDisabled": "Guest checkout is not allowed, please register or log in",
|
|
875
|
+
"be.storefront.insufficientBalance": "Insufficient balance",
|
|
819
876
|
"be.storefront.insufficientPoints": "Insufficient loyalty points",
|
|
820
877
|
"be.storefront.insufficientStock": "Insufficient stock for {name}",
|
|
821
878
|
"be.storefront.internalAuthNotConfigured": "Internal auth not configured",
|
|
@@ -828,6 +885,7 @@ var ERROR_MESSAGES = {
|
|
|
828
885
|
"be.storefront.invalidInternalApiKey": "Invalid internal API key",
|
|
829
886
|
"be.storefront.invalidInternalSecret": "Invalid internal secret",
|
|
830
887
|
"be.storefront.invalidOrExpiredCode": "Invalid or expired code",
|
|
888
|
+
"be.storefront.invalidReferralCode": "Invalid referral code",
|
|
831
889
|
"be.storefront.invalidRefreshToken": "Invalid refresh token",
|
|
832
890
|
"be.storefront.invalidStateSignature": "Invalid state signature",
|
|
833
891
|
"be.storefront.invalidTokenType": "Invalid token type",
|
|
@@ -836,6 +894,8 @@ var ERROR_MESSAGES = {
|
|
|
836
894
|
"be.storefront.lessonLocked": "Lesson is locked",
|
|
837
895
|
"be.storefront.lessonNoQuiz": "Lesson has no quiz",
|
|
838
896
|
"be.storefront.lessonNotFound": "Lesson not found",
|
|
897
|
+
"be.storefront.loyaltyHistoryCursorInvalid": "This point history page is no longer available.",
|
|
898
|
+
"be.storefront.loyaltyInvitationRequired": "This loyalty program requires an invitation from the shop.",
|
|
839
899
|
"be.storefront.loyaltyRedemptionUnavailable": "These points cannot be applied to this order. Please check the loyalty program conditions.",
|
|
840
900
|
"be.storefront.malformedState": "Malformed state",
|
|
841
901
|
"be.storefront.maxItemsPerProduct": "You can order at most {max} of the same product",
|
|
@@ -848,8 +908,10 @@ var ERROR_MESSAGES = {
|
|
|
848
908
|
"be.storefront.missingEshopContext": "Missing e-shop context",
|
|
849
909
|
"be.storefront.mollieMissingCredentials": "Mollie method is missing the API key",
|
|
850
910
|
"be.storefront.mollieWebhookInvalid": "Mollie webhook is missing the payment id",
|
|
911
|
+
"be.storefront.newCustomerNotEnrolled": "New customer is not enrolled in this program",
|
|
851
912
|
"be.storefront.noConsentRecorded": "No consent recorded for this visitor",
|
|
852
913
|
"be.storefront.noPickupPoints": "This shipping method has no pickup points",
|
|
914
|
+
"be.storefront.noReferralRules": "No referral rules configured for this program",
|
|
853
915
|
"be.storefront.notFound": "Not Found",
|
|
854
916
|
"be.storefront.offerExpired": "Offer expired",
|
|
855
917
|
"be.storefront.offerNotEmailGated": "Offer is not e-mail gated",
|
|
@@ -864,6 +926,7 @@ var ERROR_MESSAGES = {
|
|
|
864
926
|
"be.storefront.orderNotFound": "Order not found",
|
|
865
927
|
"be.storefront.orderQuantityStep": "Quantity for {name} must be ordered in multiples of {step}",
|
|
866
928
|
"be.storefront.originNotAllowed": "Origin not allowed",
|
|
929
|
+
"be.storefront.ownReferralCode": "Cannot use your own referral code",
|
|
867
930
|
"be.storefront.pageNotFound": "Page not found",
|
|
868
931
|
"be.storefront.parameterGroupNotFound": "Parameter group not found",
|
|
869
932
|
"be.storefront.parametersInvalidJson": "Invalid parameters JSON",
|
|
@@ -871,9 +934,11 @@ var ERROR_MESSAGES = {
|
|
|
871
934
|
"be.storefront.paymentInstrumentInvalid": "The selected payment option is not available for this payment method. Please choose another one.",
|
|
872
935
|
"be.storefront.paymentMethodRequired": "Select a payment method.",
|
|
873
936
|
"be.storefront.paymentMethodUnavailable": "Payment method not available",
|
|
937
|
+
"be.storefront.paymentReconciliationInvalid": "The payment gateway data does not match the order. The payment status has not changed.",
|
|
874
938
|
"be.storefront.paypalMissingCredentials": "PayPal method is missing credentials",
|
|
875
939
|
"be.storefront.paypalWebhookInvalid": "PayPal webhook is missing the order id",
|
|
876
940
|
"be.storefront.phoneRequired": "Phone number is required to place this order",
|
|
941
|
+
"be.storefront.pickupPointCountryMismatch": "Select a pickup point in the delivery country.",
|
|
877
942
|
"be.storefront.pickupPointRequired": "A pickup point is required for the selected shipping method",
|
|
878
943
|
"be.storefront.placeNotFound": "Place not found",
|
|
879
944
|
"be.storefront.pricingUnavailable": "Product prices are temporarily unavailable. Please try again.",
|
|
@@ -922,6 +987,7 @@ var ERROR_MESSAGES = {
|
|
|
922
987
|
"be.storefront.termsAgreementRequired": "You must agree to the terms and conditions to order",
|
|
923
988
|
"be.storefront.tokenInvalid": "Invalid or expired token",
|
|
924
989
|
"be.storefront.tokenWrongEshop": "Token is not valid for this e-shop",
|
|
990
|
+
"be.storefront.uniqueItemNoRestock": "This one-of-a-kind piece will not be made again, so it cannot be watched. Contact us if you would like a similar one.",
|
|
925
991
|
"be.storefront.unknownPaymentProvider": "Unknown payment provider",
|
|
926
992
|
"be.storefront.variantsOnlyParent": "{name} cannot be purchased directly, choose one of its variants",
|
|
927
993
|
"be.storefront.wishlistItemNotFound": "Wishlist item not found",
|
|
@@ -1006,16 +1072,19 @@ function validationFieldMessages(err2, locale = "en") {
|
|
|
1006
1072
|
}
|
|
1007
1073
|
return out;
|
|
1008
1074
|
}
|
|
1009
|
-
var FORM_FIELD_ERROR_CODES =
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1075
|
+
var FORM_FIELD_ERROR_CODES = {
|
|
1076
|
+
required: true,
|
|
1077
|
+
invalid: true,
|
|
1078
|
+
tooShort: true,
|
|
1079
|
+
tooLong: true,
|
|
1080
|
+
min: true,
|
|
1081
|
+
max: true,
|
|
1082
|
+
notOption: true,
|
|
1083
|
+
pattern: true,
|
|
1084
|
+
dateNotFuture: true,
|
|
1085
|
+
dateNotPast: true,
|
|
1086
|
+
tooManyFiles: true
|
|
1087
|
+
};
|
|
1019
1088
|
function formFieldErrors(err2) {
|
|
1020
1089
|
if (errorCode(err2) !== "be.forms.validationFailed") return [];
|
|
1021
1090
|
const raw = errorParams(err2).errors;
|
|
@@ -1027,7 +1096,7 @@ function formFieldErrors(err2) {
|
|
|
1027
1096
|
if (idx <= 0) continue;
|
|
1028
1097
|
const key = entry.slice(0, idx);
|
|
1029
1098
|
const code = entry.slice(idx + 1);
|
|
1030
|
-
if (!
|
|
1099
|
+
if (!Object.prototype.hasOwnProperty.call(FORM_FIELD_ERROR_CODES, code)) continue;
|
|
1031
1100
|
out.push({ key, code });
|
|
1032
1101
|
}
|
|
1033
1102
|
return out;
|
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-GId6Qj64.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-GId6Qj64.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 _chunkAOUXSMSRjs = require('./chunk-AOUXSMSR.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, _chunkAOUXSMSRjs.BehioStorefront)({
|
|
23
23
|
apiKey,
|
|
24
24
|
...baseUrl ? { baseUrl } : {},
|
|
25
25
|
...locale ? { locale } : {},
|
package/dist/next.mjs
CHANGED
package/dist/react.d.mts
CHANGED
|
@@ -228,6 +228,8 @@ interface CheckoutSettings {
|
|
|
228
228
|
type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
|
|
229
229
|
type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
|
|
230
230
|
interface ShopInfo {
|
|
231
|
+
/** Merchant default catalog order, normalized to the public sort values. */
|
|
232
|
+
defaultProductSort?: ProductSortValue;
|
|
231
233
|
currencyDisplayFormat?: CurrencyDisplayFormat;
|
|
232
234
|
account?: {
|
|
233
235
|
passwordMinLength: number;
|
|
@@ -561,6 +563,8 @@ interface ProductLabel {
|
|
|
561
563
|
slug: string;
|
|
562
564
|
name: string;
|
|
563
565
|
color?: string;
|
|
566
|
+
/** Merchant icon name. Render a trusted local icon, with a safe fallback. */
|
|
567
|
+
iconName?: string | null;
|
|
564
568
|
}
|
|
565
569
|
/**
|
|
566
570
|
* Resolved availability status of a product. Either a merchant preset
|
|
@@ -1128,6 +1132,7 @@ interface FacetLabel {
|
|
|
1128
1132
|
slug: string;
|
|
1129
1133
|
name: string;
|
|
1130
1134
|
color?: string | null;
|
|
1135
|
+
iconName?: string | null;
|
|
1131
1136
|
count: number;
|
|
1132
1137
|
}
|
|
1133
1138
|
interface FacetCategory {
|
|
@@ -1625,7 +1630,13 @@ interface OrderListItem {
|
|
|
1625
1630
|
interface OrderItem {
|
|
1626
1631
|
productName: string;
|
|
1627
1632
|
sku: string;
|
|
1628
|
-
|
|
1633
|
+
/** Photo snapshot from checkout, or the product's current photo. */
|
|
1634
|
+
imageUrl?: string | null;
|
|
1635
|
+
/** Product still in the shop (SDK 2.8.0). Null when it was removed since,
|
|
1636
|
+
* so a template never links to a missing product page. */
|
|
1637
|
+
productId?: string | null;
|
|
1638
|
+
/** URL slug for a link back to the product page (SDK 2.8.0). */
|
|
1639
|
+
productSlug?: string | null;
|
|
1629
1640
|
quantity: number;
|
|
1630
1641
|
unitPrice: number;
|
|
1631
1642
|
totalPrice: number;
|
|
@@ -1649,6 +1660,36 @@ interface OrderTracking {
|
|
|
1649
1660
|
shippingCountry: string | null;
|
|
1650
1661
|
items: OrderItem[];
|
|
1651
1662
|
createdAt: number;
|
|
1663
|
+
/** Order summary, not personal data (SDK 2.8.0). */
|
|
1664
|
+
subtotal?: number;
|
|
1665
|
+
shippingTotal?: number;
|
|
1666
|
+
paymentFee?: number | null;
|
|
1667
|
+
discountTotal?: number;
|
|
1668
|
+
taxTotal?: number;
|
|
1669
|
+
taxBreakdown?: TaxBreakdownLine[];
|
|
1670
|
+
/** Shipping method as the customer chose it (SDK 2.8.0). */
|
|
1671
|
+
shippingMethodName?: string | null;
|
|
1672
|
+
/** Payment method in the order language (SDK 2.8.0). */
|
|
1673
|
+
paymentMethodName?: string | null;
|
|
1674
|
+
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1675
|
+
pickupPoint?: OrderPickupPoint | null;
|
|
1676
|
+
/** Parcels the customer can follow (SDK 2.8.0). */
|
|
1677
|
+
shipments?: OrderShipment[];
|
|
1678
|
+
}
|
|
1679
|
+
/** Pickup point the customer chose for an order (SDK 2.8.0). */
|
|
1680
|
+
interface OrderPickupPoint {
|
|
1681
|
+
name: string;
|
|
1682
|
+
street?: string | null;
|
|
1683
|
+
city?: string | null;
|
|
1684
|
+
zip?: string | null;
|
|
1685
|
+
country?: string | null;
|
|
1686
|
+
}
|
|
1687
|
+
/** A parcel on its way, with the carrier's tracking link (SDK 2.8.0). */
|
|
1688
|
+
interface OrderShipment {
|
|
1689
|
+
trackingNumber?: string | null;
|
|
1690
|
+
trackingUrl?: string | null;
|
|
1691
|
+
status: string;
|
|
1692
|
+
createdAt: number;
|
|
1652
1693
|
}
|
|
1653
1694
|
interface OrderStatusHistory {
|
|
1654
1695
|
fromStatus?: OrderStatus;
|
|
@@ -1662,6 +1703,14 @@ interface OrderDetail extends OrderListItem {
|
|
|
1662
1703
|
contentDeliveryPending?: boolean;
|
|
1663
1704
|
/** False for an order without physical delivery. */
|
|
1664
1705
|
requiresShipping?: boolean;
|
|
1706
|
+
/** Shipping method as the customer chose it (SDK 2.8.0). */
|
|
1707
|
+
shippingMethodName?: string | null;
|
|
1708
|
+
/** Payment method in the order language (SDK 2.8.0). */
|
|
1709
|
+
paymentMethodName?: string | null;
|
|
1710
|
+
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1711
|
+
pickupPoint?: OrderPickupPoint | null;
|
|
1712
|
+
/** Parcels the customer can follow (SDK 2.8.0). */
|
|
1713
|
+
shipments?: OrderShipment[];
|
|
1665
1714
|
items: OrderItem[];
|
|
1666
1715
|
shippingAddress: CheckoutAddress;
|
|
1667
1716
|
billingAddress: CheckoutAddress;
|
|
@@ -2498,6 +2547,7 @@ interface PickupPointsInput {
|
|
|
2498
2547
|
}
|
|
2499
2548
|
/** Public terms of the eshop's loyalty program. */
|
|
2500
2549
|
interface LoyaltyProgram {
|
|
2550
|
+
enrollmentType?: "AUTO_ON_REGISTER" | "OPT_IN" | "INVITE_ONLY";
|
|
2501
2551
|
name: string;
|
|
2502
2552
|
pointName: string;
|
|
2503
2553
|
pointNamePlural: string;
|
|
@@ -2512,6 +2562,8 @@ interface LoyaltyProgram {
|
|
|
2512
2562
|
}
|
|
2513
2563
|
interface LoyaltyBalance {
|
|
2514
2564
|
currentPoints: number;
|
|
2565
|
+
/** Revoked points to offset before new rewards become spendable. Absent on older servers. */
|
|
2566
|
+
pointsDebt?: number;
|
|
2515
2567
|
/** `currentPoints` valued in the program currency. */
|
|
2516
2568
|
currentPointsValue: number;
|
|
2517
2569
|
lifetimePointsEarned: number;
|
|
@@ -2543,10 +2595,13 @@ interface LoyaltyNextTier {
|
|
|
2543
2595
|
progressPercent: number;
|
|
2544
2596
|
}
|
|
2545
2597
|
interface LoyaltyTransaction {
|
|
2598
|
+
/** Stable identifier on servers supporting cursor history. */
|
|
2599
|
+
id?: string;
|
|
2546
2600
|
type: string;
|
|
2547
2601
|
/** Positive = earned, negative = redeemed / expired. */
|
|
2548
2602
|
points: number;
|
|
2549
2603
|
balanceAfter: number;
|
|
2604
|
+
debtAfter?: number;
|
|
2550
2605
|
eventType: string | null;
|
|
2551
2606
|
description: string | null;
|
|
2552
2607
|
createdAt: number;
|
|
@@ -2558,6 +2613,7 @@ interface LoyaltyTransaction {
|
|
|
2558
2613
|
* "join and earn" CTA).
|
|
2559
2614
|
*/
|
|
2560
2615
|
interface LoyaltySummary {
|
|
2616
|
+
canJoin?: boolean;
|
|
2561
2617
|
hasProgram: boolean;
|
|
2562
2618
|
enrolled: boolean;
|
|
2563
2619
|
program: LoyaltyProgram | null;
|
|
@@ -2566,6 +2622,18 @@ interface LoyaltySummary {
|
|
|
2566
2622
|
nextTier: LoyaltyNextTier | null;
|
|
2567
2623
|
referralCode: string | null;
|
|
2568
2624
|
transactions: LoyaltyTransaction[];
|
|
2625
|
+
/** Follow using getLoyalty({transactionsCursor}); null is the last page. */
|
|
2626
|
+
transactionsNextCursor?: string | null;
|
|
2627
|
+
canApplyReferral?: boolean;
|
|
2628
|
+
}
|
|
2629
|
+
interface LoyaltyReferralResult {
|
|
2630
|
+
alreadyApplied: boolean;
|
|
2631
|
+
recipientPoints: number;
|
|
2632
|
+
}
|
|
2633
|
+
interface LoyaltyQuery {
|
|
2634
|
+
transactionsCursor?: string;
|
|
2635
|
+
/** 1 to 50, default 20. */
|
|
2636
|
+
transactionsLimit?: number;
|
|
2569
2637
|
}
|
|
2570
2638
|
interface CrossSellItem {
|
|
2571
2639
|
productId: string;
|
|
@@ -2894,6 +2962,55 @@ interface CartLinkClaimed extends Cart {
|
|
|
2894
2962
|
/** Code carried by the link, including a refused code. Null means no code was offered. */
|
|
2895
2963
|
linkDiscountCode: string | null;
|
|
2896
2964
|
}
|
|
2965
|
+
/** Earned merchant badges for the current authenticated customer. */
|
|
2966
|
+
interface CustomerBadge {
|
|
2967
|
+
id: string;
|
|
2968
|
+
name: string;
|
|
2969
|
+
slug: string;
|
|
2970
|
+
description: string | null;
|
|
2971
|
+
iconUrl: string | null;
|
|
2972
|
+
type: "MILESTONE" | "CHALLENGE" | "STREAK" | "ACHIEVEMENT" | "CUSTOM";
|
|
2973
|
+
earnedAt: number;
|
|
2974
|
+
}
|
|
2975
|
+
interface CustomerChallenge {
|
|
2976
|
+
id: string;
|
|
2977
|
+
name: string;
|
|
2978
|
+
slug: string;
|
|
2979
|
+
description: string | null;
|
|
2980
|
+
targetType: string;
|
|
2981
|
+
targetValue: number;
|
|
2982
|
+
/** TOTAL_SPEND uses the shop's default currency and stored reference FX rates. */
|
|
2983
|
+
currency: string;
|
|
2984
|
+
startsAt: number;
|
|
2985
|
+
endsAt: number;
|
|
2986
|
+
rewardPoints: number | null;
|
|
2987
|
+
rewardBadgeName: string | null;
|
|
2988
|
+
active: boolean;
|
|
2989
|
+
joined: boolean;
|
|
2990
|
+
currentProgress: number;
|
|
2991
|
+
completedAt: number | null;
|
|
2992
|
+
canJoin: boolean;
|
|
2993
|
+
rewardMembershipRequired: boolean;
|
|
2994
|
+
}
|
|
2995
|
+
interface CustomerGamificationQuery {
|
|
2996
|
+
badgesPage?: number;
|
|
2997
|
+
challengesPage?: number;
|
|
2998
|
+
/** 1..50, default 20. */
|
|
2999
|
+
limit?: number;
|
|
3000
|
+
}
|
|
3001
|
+
interface CustomerGamification {
|
|
3002
|
+
badges: CustomerBadge[];
|
|
3003
|
+
badgesTotal: number;
|
|
3004
|
+
badgesPage: number;
|
|
3005
|
+
challenges: CustomerChallenge[];
|
|
3006
|
+
challengesTotal: number;
|
|
3007
|
+
challengesPage: number;
|
|
3008
|
+
limit: number;
|
|
3009
|
+
}
|
|
3010
|
+
interface GamificationRefreshResult {
|
|
3011
|
+
awarded: number;
|
|
3012
|
+
completed: number;
|
|
3013
|
+
}
|
|
2897
3014
|
|
|
2898
3015
|
declare class BehioStorefront {
|
|
2899
3016
|
private baseUrl;
|
|
@@ -3517,7 +3634,17 @@ declare class CustomerModule {
|
|
|
3517
3634
|
* value, current tier, next-tier progress, point ratio, referral code,
|
|
3518
3635
|
* recent transactions). Requires an authenticated customer session.
|
|
3519
3636
|
*/
|
|
3520
|
-
getLoyalty(): Promise<SdkResult<LoyaltySummary>>;
|
|
3637
|
+
getLoyalty(query?: LoyaltyQuery): Promise<SdkResult<LoyaltySummary>>;
|
|
3638
|
+
/** Apply an invitation to the caller's active loyalty membership, once. */
|
|
3639
|
+
applyReferral(code: string): Promise<SdkResult<LoyaltyReferralResult>>;
|
|
3640
|
+
/** Explicit enrollment; invite-only programs require the shop administrator. */
|
|
3641
|
+
joinLoyalty(): Promise<SdkResult<LoyaltySummary>>;
|
|
3642
|
+
/** Authenticated account rewards. Both collections have independent pages. */
|
|
3643
|
+
getGamification(query?: CustomerGamificationQuery): Promise<SdkResult<CustomerGamification>>;
|
|
3644
|
+
/** Join an active challenge; a repeated call preserves the original joinedAt. */
|
|
3645
|
+
joinChallenge(challengeId: string): Promise<SdkResult<GamificationRefreshResult>>;
|
|
3646
|
+
/** Reconcile persisted qualifying activity. Never supplies progress or points. */
|
|
3647
|
+
refreshGamification(): Promise<SdkResult<GamificationRefreshResult>>;
|
|
3521
3648
|
/**
|
|
3522
3649
|
* Digital product delivery (GAP-07): list the logged-in customer's download
|
|
3523
3650
|
* grants across all their orders (file name, product, remaining downloads,
|