@loczer/storefront-sdk 0.152.0 → 0.153.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/dist/StorefrontProvider.d.ts +677 -1139
- package/dist/StorefrontProvider.d.ts.map +1 -0
- package/dist/components/AboutSection/index.d.ts.map +1 -0
- package/dist/components/AboutSection/index.js +6 -6
- package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -0
- package/dist/components/BikeProductCard/index.d.ts.map +1 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +12 -2
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -0
- package/dist/components/BookingFlowSteps/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts +9 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts +24 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +22 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +102 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -0
- package/dist/components/ContactSection/index.d.ts.map +1 -0
- package/dist/components/ContactSection/index.js +5 -5
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts +8 -0
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts +13 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +18 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Page.d.ts +8 -0
- package/dist/components/ContractSaleDocument/Page.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts +9 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +12 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts +12 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/index.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/language.d.ts +7 -0
- package/dist/components/ContractSaleDocument/language.d.ts.map +1 -0
- package/dist/components/DelayedReveal/index.d.ts.map +1 -0
- package/dist/components/DeliveryAddressSelector/index.d.ts.map +1 -0
- package/dist/components/Footer/BusinessHours.d.ts +17 -0
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +14 -0
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -0
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/FulfillmentSection/index.d.ts.map +1 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Map/createMarkerElement.d.ts +2 -0
- package/dist/components/Map/createMarkerElement.d.ts.map +1 -0
- package/dist/components/Map/index.d.ts +101 -1
- package/dist/components/Map/index.d.ts.map +1 -0
- package/dist/components/Map/index.js +4 -3
- package/dist/components/PlatformFooter/index.d.ts.map +1 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -0
- package/dist/components/PoweredByLoczerBadge/index.d.ts.map +1 -0
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -0
- package/dist/components/ProductWarningNotice/index.d.ts.map +1 -0
- package/dist/components/StepSectionTitle/index.d.ts.map +1 -0
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -0
- package/dist/components/StorefrontPopupMessages/index.d.ts.map +1 -0
- package/dist/components/TestimonialsSection/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +5 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +11 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts +11 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts +16 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/index.d.ts.map +1 -0
- package/dist/data/accessories.d.ts.map +1 -0
- package/dist/data/bikes.d.ts.map +1 -0
- package/dist/data/config.d.ts.map +1 -0
- package/dist/i18n/I18nProvider.d.ts.map +1 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/fr.d.ts.map +1 -0
- package/dist/index.d.ts +5212 -0
- package/dist/lib/apiCall.d.ts.map +1 -0
- package/dist/lib/booking-period-time-slots.d.ts.map +1 -0
- package/dist/lib/booking-period.d.ts.map +1 -0
- package/dist/lib/booking.d.ts.map +1 -0
- package/dist/lib/cart.d.ts.map +1 -0
- package/dist/lib/cartSummary.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentSession.d.ts.map +1 -0
- package/dist/lib/checkoutSubmit.d.ts.map +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -0
- package/dist/lib/contactForm.d.ts.map +1 -0
- package/dist/lib/contractSaleDocument.d.ts.map +1 -0
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -0
- package/dist/lib/isAutomationRuntime.d.ts.map +1 -0
- package/dist/lib/mollieComponentStyles.d.ts.map +1 -0
- package/dist/lib/playgroundDevSettings.d.ts.map +1 -0
- package/dist/lib/pricing.d.ts.map +1 -0
- package/dist/lib/productImageStyles.d.ts.map +1 -0
- package/dist/lib/productVariants.d.ts.map +1 -0
- package/dist/lib/products.d.ts.map +1 -0
- package/dist/lib/richAddress.d.ts.map +1 -0
- package/dist/lib/securePaymentLink.d.ts.map +1 -0
- package/dist/lib/storefrontAvailability.d.ts.map +1 -0
- package/dist/lib/storefrontImage.d.ts.map +1 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -0
- package/dist/lib/storefrontReviews.d.ts.map +1 -0
- package/dist/lib/storefrontTimeSlots.d.ts.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/whatsapp.d.ts.map +1 -0
- package/dist/localization.d.ts +9 -13
- package/dist/localization.d.ts.map +1 -0
- package/dist/pages/BookingPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -0
- package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -0
- package/dist/pages/ErrorPage.d.ts.map +1 -0
- package/dist/pages/HomePage.d.ts.map +1 -0
- package/dist/pages/NotFoundPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -0
- package/dist/pages/ProductPage.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts +15 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +9 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts +22 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +23 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +7 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -0
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts +9 -0
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts +8 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/types.d.ts +14 -0
- package/dist/pages/checkout/types.d.ts.map +1 -0
- package/dist/routes.d.ts +3 -6
- package/dist/routes.d.ts.map +1 -0
- package/dist/static/strings.d.ts +2 -0
- package/dist/static/strings.d.ts.map +1 -0
- package/dist/storefrontSchemas.d.ts +565 -596
- package/dist/storefrontSchemas.d.ts.map +1 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/slot.d.ts.map +1 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/package.json +4 -2
- package/dist/BookingPage.d.ts +0 -6
- package/dist/CheckoutPage.d.ts +0 -6
- package/dist/CheckoutPaymentPage.d.ts +0 -6
- package/dist/CheckoutSuccessPage.d.ts +0 -6
- package/dist/ContractSaleDocumentPage.d.ts +0 -116
- package/dist/ErrorPage.d.ts +0 -6
- package/dist/HomePage.d.ts +0 -6
- package/dist/I18nProvider.d.ts +0 -23
- package/dist/NotFoundPage.d.ts +0 -6
- package/dist/PaymentLinkPage.d.ts +0 -40
- package/dist/PaymentLinkSuccessPage.d.ts +0 -40
- package/dist/ProductPage.d.ts +0 -6
- package/dist/accessories.d.ts +0 -42
- package/dist/apiCall.d.ts +0 -7
- package/dist/badge.d.ts +0 -14
- package/dist/bikes.d.ts +0 -107
- package/dist/booking-period-time-slots.d.ts +0 -264
- package/dist/booking-period.d.ts +0 -193
- package/dist/booking.d.ts +0 -402
- package/dist/button.d.ts +0 -16
- package/dist/card.d.ts +0 -18
- package/dist/cart.d.ts +0 -30
- package/dist/cartSummary.d.ts +0 -205
- package/dist/checkoutPaymentDecision.d.ts +0 -48
- package/dist/checkoutPaymentSession.d.ts +0 -65
- package/dist/checkoutSubmit.d.ts +0 -97
- package/dist/checkoutVerifyCoupon.d.ts +0 -45
- package/dist/config.d.ts +0 -19
- package/dist/contactForm.d.ts +0 -22
- package/dist/contractSaleDocument.d.ts +0 -242
- package/dist/contractSaleDocumentApi.d.ts +0 -481
- package/dist/en.d.ts +0 -369
- package/dist/form.d.ts +0 -44
- package/dist/fr.d.ts +0 -369
- package/dist/input.d.ts +0 -5
- package/dist/isAutomationRuntime.d.ts +0 -3
- package/dist/label.d.ts +0 -7
- package/dist/mollieComponentStyles.d.ts +0 -3
- package/dist/playgroundDevSettings.d.ts +0 -19
- package/dist/pricing.d.ts +0 -35
- package/dist/productImageStyles.d.ts +0 -25
- package/dist/productVariants.d.ts +0 -16
- package/dist/products.d.ts +0 -224
- package/dist/radio-group.d.ts +0 -14
- package/dist/richAddress.d.ts +0 -24
- package/dist/securePaymentLink.d.ts +0 -125
- package/dist/select.d.ts +0 -41
- package/dist/slot.d.ts +0 -15
- package/dist/storefrontAvailability.d.ts +0 -107
- package/dist/storefrontImage.d.ts +0 -16
- package/dist/storefrontProducts.d.ts +0 -400
- package/dist/storefrontReviews.d.ts +0 -84
- package/dist/storefrontTimeSlots.d.ts +0 -53
- package/dist/textarea.d.ts +0 -5
- package/dist/tooltip.d.ts +0 -43
- package/dist/utils.d.ts +0 -23
- package/dist/whatsapp.d.ts +0 -326
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare type PaymentDecisionMode = z.infer<typeof paymentDecisionModeSchema>;
|
|
4
|
-
|
|
5
|
-
export declare const paymentDecisionModeSchema: z.ZodEnum<{
|
|
6
|
-
none: "none";
|
|
7
|
-
deposit: "deposit";
|
|
8
|
-
full: "full";
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
12
|
-
|
|
13
|
-
export declare const requestSchema: z.ZodObject<{
|
|
14
|
-
storeSlug: z.ZodString;
|
|
15
|
-
schedule: z.ZodObject<{
|
|
16
|
-
startDate: z.ZodString;
|
|
17
|
-
endDate: z.ZodString;
|
|
18
|
-
startTime: z.ZodString;
|
|
19
|
-
endTime: z.ZodString;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
estimatedTotalMinor: z.ZodNumber;
|
|
22
|
-
nowIso: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
|
|
25
|
-
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
26
|
-
|
|
27
|
-
export declare const responseSchema: z.ZodObject<{
|
|
28
|
-
success: z.ZodBoolean;
|
|
29
|
-
message: z.ZodOptional<z.ZodString>;
|
|
30
|
-
decision: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
shouldCollectOnlinePayment: z.ZodBoolean;
|
|
32
|
-
paymentMode: z.ZodEnum<{
|
|
33
|
-
none: "none";
|
|
34
|
-
deposit: "deposit";
|
|
35
|
-
full: "full";
|
|
36
|
-
}>;
|
|
37
|
-
calculatedAmountMinor: z.ZodNumber;
|
|
38
|
-
amountToCollectMinor: z.ZodNumber;
|
|
39
|
-
currency: z.ZodString;
|
|
40
|
-
bookingDepositPercentage: z.ZodNumber;
|
|
41
|
-
fullPaymentWindowHours: z.ZodNumber;
|
|
42
|
-
depositRefundableUntilIso: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
|
|
46
|
-
export declare const ROUTE = "/api/public/storefront/checkout/payment-decision";
|
|
47
|
-
|
|
48
|
-
export { }
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare type CheckoutPaymentSessionProviderType = z.infer<typeof checkoutPaymentSessionProviderTypeSchema>;
|
|
4
|
-
|
|
5
|
-
export declare const checkoutPaymentSessionProviderTypeSchema: z.ZodEnum<{
|
|
6
|
-
stripe_connect_oauth: "stripe_connect_oauth";
|
|
7
|
-
mollie_connect_oauth: "mollie_connect_oauth";
|
|
8
|
-
}>;
|
|
9
|
-
|
|
10
|
-
export declare type CheckoutPaymentSessionStatus = z.infer<typeof checkoutPaymentSessionStatusSchema>;
|
|
11
|
-
|
|
12
|
-
export declare const checkoutPaymentSessionStatusSchema: z.ZodEnum<{
|
|
13
|
-
pending: "pending";
|
|
14
|
-
authorized: "authorized";
|
|
15
|
-
succeeded: "succeeded";
|
|
16
|
-
failed: "failed";
|
|
17
|
-
cancelled: "cancelled";
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
21
|
-
|
|
22
|
-
export declare const requestSchema: z.ZodObject<{
|
|
23
|
-
storeSlug: z.ZodString;
|
|
24
|
-
checkoutSessionId: z.ZodString;
|
|
25
|
-
returnSearch: z.ZodOptional<z.ZodString>;
|
|
26
|
-
cardToken: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
|
|
29
|
-
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
30
|
-
|
|
31
|
-
export declare const responseSchema: z.ZodObject<{
|
|
32
|
-
success: z.ZodBoolean;
|
|
33
|
-
message: z.ZodString;
|
|
34
|
-
providerType: z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
stripe_connect_oauth: "stripe_connect_oauth";
|
|
36
|
-
mollie_connect_oauth: "mollie_connect_oauth";
|
|
37
|
-
}>>;
|
|
38
|
-
paymentStatus: z.ZodOptional<z.ZodEnum<{
|
|
39
|
-
pending: "pending";
|
|
40
|
-
authorized: "authorized";
|
|
41
|
-
succeeded: "succeeded";
|
|
42
|
-
failed: "failed";
|
|
43
|
-
cancelled: "cancelled";
|
|
44
|
-
}>>;
|
|
45
|
-
amountMinor: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
47
|
-
profileId: z.ZodOptional<z.ZodString>;
|
|
48
|
-
testmode: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
checkoutUrl: z.ZodOptional<z.ZodString>;
|
|
50
|
-
clientSecret: z.ZodOptional<z.ZodString>;
|
|
51
|
-
stripeAccountId: z.ZodOptional<z.ZodString>;
|
|
52
|
-
payment: z.ZodOptional<z.ZodObject<{
|
|
53
|
-
id: z.ZodString;
|
|
54
|
-
amount: z.ZodNumber;
|
|
55
|
-
currency: z.ZodString;
|
|
56
|
-
status: z.ZodString;
|
|
57
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
58
|
-
description: z.ZodOptional<z.ZodString>;
|
|
59
|
-
livemode: z.ZodBoolean;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
|
|
63
|
-
export declare const ROUTE = "/api/public/storefront/checkout/payment-session";
|
|
64
|
-
|
|
65
|
-
export { }
|
package/dist/checkoutSubmit.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare const requestBaseSchema: z.ZodObject<{
|
|
4
|
-
storeSlug: z.ZodString;
|
|
5
|
-
schedule: z.ZodObject<{
|
|
6
|
-
startDate: z.ZodString;
|
|
7
|
-
endDate: z.ZodString;
|
|
8
|
-
startTime: z.ZodString;
|
|
9
|
-
endTime: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
fulfillment: z.ZodDefault<z.ZodEnum<{
|
|
12
|
-
pickup: "pickup";
|
|
13
|
-
delivery: "delivery";
|
|
14
|
-
}>>;
|
|
15
|
-
startAddress: z.ZodOptional<z.ZodString>;
|
|
16
|
-
endAddress: z.ZodOptional<z.ZodString>;
|
|
17
|
-
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
18
|
-
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
customer: z.ZodObject<{
|
|
20
|
-
fullName: z.ZodString;
|
|
21
|
-
email: z.ZodString;
|
|
22
|
-
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
23
|
-
notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
items: z.ZodArray<z.ZodObject<{
|
|
26
|
-
kind: any;
|
|
27
|
-
productId: z.ZodString;
|
|
28
|
-
productVariantId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
quantity: z.ZodNumber;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
nowIso: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
|
|
34
|
-
export declare type RequestCheckoutItem = z.infer<typeof requestCheckoutItemSchema>;
|
|
35
|
-
|
|
36
|
-
export declare const requestCheckoutItemSchema: z.ZodObject<{
|
|
37
|
-
kind: any;
|
|
38
|
-
productId: z.ZodString;
|
|
39
|
-
productVariantId: z.ZodOptional<z.ZodString>;
|
|
40
|
-
quantity: z.ZodNumber;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
|
|
43
|
-
export declare const requestDeliveryRefinement: (payload: {
|
|
44
|
-
fulfillment?: string;
|
|
45
|
-
startAddress?: string;
|
|
46
|
-
}, ctx: z.RefinementCtx) => void;
|
|
47
|
-
|
|
48
|
-
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
49
|
-
|
|
50
|
-
export declare const requestSchema: z.ZodObject<{
|
|
51
|
-
storeSlug: z.ZodString;
|
|
52
|
-
schedule: z.ZodObject<{
|
|
53
|
-
startDate: z.ZodString;
|
|
54
|
-
endDate: z.ZodString;
|
|
55
|
-
startTime: z.ZodString;
|
|
56
|
-
endTime: z.ZodString;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
fulfillment: z.ZodDefault<z.ZodEnum<{
|
|
59
|
-
pickup: "pickup";
|
|
60
|
-
delivery: "delivery";
|
|
61
|
-
}>>;
|
|
62
|
-
startAddress: z.ZodOptional<z.ZodString>;
|
|
63
|
-
endAddress: z.ZodOptional<z.ZodString>;
|
|
64
|
-
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
65
|
-
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
-
customer: z.ZodObject<{
|
|
67
|
-
fullName: z.ZodString;
|
|
68
|
-
email: z.ZodString;
|
|
69
|
-
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
70
|
-
notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
items: z.ZodArray<z.ZodObject<{
|
|
73
|
-
kind: any;
|
|
74
|
-
productId: z.ZodString;
|
|
75
|
-
productVariantId: z.ZodOptional<z.ZodString>;
|
|
76
|
-
quantity: z.ZodNumber;
|
|
77
|
-
}, z.core.$strip>>;
|
|
78
|
-
nowIso: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
|
|
81
|
-
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
82
|
-
|
|
83
|
-
export declare const responseSchema: z.ZodObject<{
|
|
84
|
-
success: z.ZodBoolean;
|
|
85
|
-
message: z.ZodOptional<z.ZodString>;
|
|
86
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
87
|
-
bookingExternalId: z.ZodString;
|
|
88
|
-
saleId: z.ZodString;
|
|
89
|
-
nextPath: z.ZodString;
|
|
90
|
-
successPath: z.ZodString;
|
|
91
|
-
requiresPayment: z.ZodBoolean;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
|
|
95
|
-
export declare const ROUTE = "/api/public/storefront/checkout/submit";
|
|
96
|
-
|
|
97
|
-
export { }
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
4
|
-
|
|
5
|
-
export declare const requestSchema: z.ZodObject<{
|
|
6
|
-
storeSlug: z.ZodString;
|
|
7
|
-
schedule: z.ZodObject<{
|
|
8
|
-
startDate: z.ZodString;
|
|
9
|
-
endDate: z.ZodString;
|
|
10
|
-
startTime: z.ZodString;
|
|
11
|
-
endTime: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
items: z.ZodArray<z.ZodObject<{
|
|
14
|
-
kind: any;
|
|
15
|
-
productId: z.ZodString;
|
|
16
|
-
productVariantId: z.ZodOptional<z.ZodString>;
|
|
17
|
-
quantity: z.ZodNumber;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
20
|
-
includeAutoApply: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
|
|
23
|
-
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
24
|
-
|
|
25
|
-
export declare const responseSchema: z.ZodObject<{
|
|
26
|
-
success: z.ZodBoolean;
|
|
27
|
-
message: z.ZodOptional<z.ZodString>;
|
|
28
|
-
reason: z.ZodOptional<z.ZodEnum<{
|
|
29
|
-
invalid: "invalid";
|
|
30
|
-
not_applicable: "not_applicable";
|
|
31
|
-
}>>;
|
|
32
|
-
subtotalMinor: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
totalMinor: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
coupon: z.ZodOptional<z.ZodObject<{
|
|
35
|
-
code: z.ZodString;
|
|
36
|
-
priceRuleId: z.ZodString;
|
|
37
|
-
discountAmountMinor: z.ZodNumber;
|
|
38
|
-
discountRate: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
autoApplied: z.ZodBoolean;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
|
|
43
|
-
export declare const ROUTE = "/api/public/storefront/checkout/verify-coupon";
|
|
44
|
-
|
|
45
|
-
export { }
|
package/dist/config.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_STOREFRONT_PRESET: StorefrontPreset;
|
|
2
|
-
|
|
3
|
-
export declare const getStorefrontPreset: (storeSlug?: string | null) => StorefrontPreset;
|
|
4
|
-
|
|
5
|
-
export declare const STOREFRONT_PRESETS: Record<string, StorefrontPreset>;
|
|
6
|
-
|
|
7
|
-
export declare type StorefrontPreset = {
|
|
8
|
-
name: string;
|
|
9
|
-
tagline: string;
|
|
10
|
-
hero_title: string;
|
|
11
|
-
hero_description: string;
|
|
12
|
-
address: string;
|
|
13
|
-
email: string;
|
|
14
|
-
phone_display: string;
|
|
15
|
-
phone_href: string;
|
|
16
|
-
whatsapp_href: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { }
|
package/dist/contactForm.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
4
|
-
|
|
5
|
-
export declare const requestSchema: z.ZodObject<{
|
|
6
|
-
storeSlug: z.ZodString;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
emailAddress: z.ZodString;
|
|
9
|
-
phoneNumber: z.ZodString;
|
|
10
|
-
message: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
|
|
13
|
-
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
14
|
-
|
|
15
|
-
export declare const responseSchema: z.ZodObject<{
|
|
16
|
-
success: z.ZodBoolean;
|
|
17
|
-
error: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
|
|
20
|
-
export declare const ROUTE = "/api/public/storefront/contact-form";
|
|
21
|
-
|
|
22
|
-
export { }
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare type ContractSaleDocument = z.infer<typeof contractSaleDocumentSchema>;
|
|
4
|
-
|
|
5
|
-
export declare type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
|
|
6
|
-
|
|
7
|
-
export declare type ContractSaleDocumentAcceptanceLevel = z.infer<typeof contractSaleDocumentAcceptanceLevelSchema>;
|
|
8
|
-
|
|
9
|
-
export declare const contractSaleDocumentAcceptanceLevelSchema: z.ZodEnum<{
|
|
10
|
-
none: "none";
|
|
11
|
-
acceptance: "acceptance";
|
|
12
|
-
signature: "signature";
|
|
13
|
-
}>;
|
|
14
|
-
|
|
15
|
-
export declare type ContractSaleDocumentAcceptanceRecord = z.infer<typeof contractSaleDocumentAcceptanceRecordSchema>;
|
|
16
|
-
|
|
17
|
-
export declare const contractSaleDocumentAcceptanceRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
-
mode: z.ZodLiteral<"acceptance">;
|
|
19
|
-
date: z.ZodDate;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
mode: z.ZodLiteral<"signature">;
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
phone: z.ZodString;
|
|
24
|
-
signature: z.ZodString;
|
|
25
|
-
date: z.ZodDate;
|
|
26
|
-
}, z.core.$strip>], "mode">;
|
|
27
|
-
|
|
28
|
-
export declare const contractSaleDocumentAcceptanceSchema: z.ZodObject<{
|
|
29
|
-
mode: z.ZodLiteral<"acceptance">;
|
|
30
|
-
date: z.ZodDate;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
|
|
33
|
-
export declare const contractSaleDocumentAddressSchema: z.ZodString;
|
|
34
|
-
|
|
35
|
-
export declare type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
|
|
36
|
-
|
|
37
|
-
export declare const contractSaleDocumentContactSchema: z.ZodObject<{
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
address: z.ZodOptional<z.ZodString>;
|
|
40
|
-
richAddress: z.ZodOptional<z.ZodObject<{
|
|
41
|
-
provider: z.ZodLiteral<"google_places">;
|
|
42
|
-
placeId: z.ZodString;
|
|
43
|
-
label: z.ZodString;
|
|
44
|
-
fullLabel: z.ZodOptional<z.ZodString>;
|
|
45
|
-
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
46
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
47
|
-
lat: z.ZodNumber;
|
|
48
|
-
lng: z.ZodNumber;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
-
longText: z.ZodString;
|
|
52
|
-
shortText: z.ZodString;
|
|
53
|
-
types: z.ZodArray<z.ZodString>;
|
|
54
|
-
}, z.core.$strict>>>;
|
|
55
|
-
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
-
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
}, z.core.$strict>>;
|
|
58
|
-
email: z.ZodOptional<z.ZodString>;
|
|
59
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.core.$strip>;
|
|
61
|
-
|
|
62
|
-
export declare type ContractSaleDocumentKind = z.infer<typeof contractSaleDocumentKindSchema>;
|
|
63
|
-
|
|
64
|
-
export declare const contractSaleDocumentKindSchema: z.ZodEnum<{
|
|
65
|
-
invoice: "invoice";
|
|
66
|
-
credit_note: "credit_note";
|
|
67
|
-
}>;
|
|
68
|
-
|
|
69
|
-
export declare type ContractSaleDocumentLanguage = z.infer<typeof contractSaleDocumentLanguageSchema>;
|
|
70
|
-
|
|
71
|
-
export declare type ContractSaleDocumentLanguageCode = z.infer<typeof contractSaleDocumentLanguageCodeSchema>;
|
|
72
|
-
|
|
73
|
-
export declare const contractSaleDocumentLanguageCodeSchema: z.ZodEnum<{
|
|
74
|
-
fr: "fr";
|
|
75
|
-
en: "en";
|
|
76
|
-
}>;
|
|
77
|
-
|
|
78
|
-
export declare const contractSaleDocumentLanguageSchema: z.ZodObject<{
|
|
79
|
-
legal: z.ZodEnum<{
|
|
80
|
-
fr: "fr";
|
|
81
|
-
en: "en";
|
|
82
|
-
}>;
|
|
83
|
-
customer: z.ZodEnum<{
|
|
84
|
-
fr: "fr";
|
|
85
|
-
en: "en";
|
|
86
|
-
}>;
|
|
87
|
-
translation: z.ZodOptional<z.ZodEnum<{
|
|
88
|
-
fr: "fr";
|
|
89
|
-
en: "en";
|
|
90
|
-
}>>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
|
|
93
|
-
export declare type ContractSaleDocumentLineItem = z.infer<typeof contractSaleDocumentLineItemSchema>;
|
|
94
|
-
|
|
95
|
-
export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
|
|
96
|
-
id: z.ZodNumber;
|
|
97
|
-
description: z.ZodString;
|
|
98
|
-
quantity: z.ZodNumber;
|
|
99
|
-
unitPrice: z.ZodNumber;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
|
|
102
|
-
export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
103
|
-
id: z.ZodString;
|
|
104
|
-
kind: z.ZodEnum<{
|
|
105
|
-
invoice: "invoice";
|
|
106
|
-
credit_note: "credit_note";
|
|
107
|
-
}>;
|
|
108
|
-
language: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
legal: z.ZodEnum<{
|
|
110
|
-
fr: "fr";
|
|
111
|
-
en: "en";
|
|
112
|
-
}>;
|
|
113
|
-
customer: z.ZodEnum<{
|
|
114
|
-
fr: "fr";
|
|
115
|
-
en: "en";
|
|
116
|
-
}>;
|
|
117
|
-
translation: z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
fr: "fr";
|
|
119
|
-
en: "en";
|
|
120
|
-
}>>;
|
|
121
|
-
}, z.core.$strip>>;
|
|
122
|
-
saleDocumentNumber: z.ZodString;
|
|
123
|
-
currency: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
124
|
-
date: z.ZodDate;
|
|
125
|
-
dueDate: z.ZodDate;
|
|
126
|
-
issuer: z.ZodObject<{
|
|
127
|
-
name: z.ZodString;
|
|
128
|
-
address: z.ZodOptional<z.ZodString>;
|
|
129
|
-
richAddress: z.ZodOptional<z.ZodObject<{
|
|
130
|
-
provider: z.ZodLiteral<"google_places">;
|
|
131
|
-
placeId: z.ZodString;
|
|
132
|
-
label: z.ZodString;
|
|
133
|
-
fullLabel: z.ZodOptional<z.ZodString>;
|
|
134
|
-
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
135
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
136
|
-
lat: z.ZodNumber;
|
|
137
|
-
lng: z.ZodNumber;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
|
-
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
-
longText: z.ZodString;
|
|
141
|
-
shortText: z.ZodString;
|
|
142
|
-
types: z.ZodArray<z.ZodString>;
|
|
143
|
-
}, z.core.$strict>>>;
|
|
144
|
-
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
-
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
146
|
-
}, z.core.$strict>>;
|
|
147
|
-
email: z.ZodOptional<z.ZodString>;
|
|
148
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
recipient: z.ZodObject<{
|
|
151
|
-
name: z.ZodString;
|
|
152
|
-
address: z.ZodOptional<z.ZodString>;
|
|
153
|
-
richAddress: z.ZodOptional<z.ZodObject<{
|
|
154
|
-
provider: z.ZodLiteral<"google_places">;
|
|
155
|
-
placeId: z.ZodString;
|
|
156
|
-
label: z.ZodString;
|
|
157
|
-
fullLabel: z.ZodOptional<z.ZodString>;
|
|
158
|
-
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
159
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
160
|
-
lat: z.ZodNumber;
|
|
161
|
-
lng: z.ZodNumber;
|
|
162
|
-
}, z.core.$strip>>;
|
|
163
|
-
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
-
longText: z.ZodString;
|
|
165
|
-
shortText: z.ZodString;
|
|
166
|
-
types: z.ZodArray<z.ZodString>;
|
|
167
|
-
}, z.core.$strict>>>;
|
|
168
|
-
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
-
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
}, z.core.$strict>>;
|
|
171
|
-
email: z.ZodOptional<z.ZodString>;
|
|
172
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
173
|
-
}, z.core.$strip>;
|
|
174
|
-
items: z.ZodArray<z.ZodObject<{
|
|
175
|
-
id: z.ZodNumber;
|
|
176
|
-
description: z.ZodString;
|
|
177
|
-
quantity: z.ZodNumber;
|
|
178
|
-
unitPrice: z.ZodNumber;
|
|
179
|
-
}, z.core.$strip>>;
|
|
180
|
-
terms: z.ZodOptional<z.ZodObject<{
|
|
181
|
-
title: z.ZodString;
|
|
182
|
-
articles: z.ZodArray<z.ZodObject<{
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
title: z.ZodString;
|
|
185
|
-
body: z.ZodString;
|
|
186
|
-
translationTitle: z.ZodOptional<z.ZodString>;
|
|
187
|
-
translationBody: z.ZodOptional<z.ZodString>;
|
|
188
|
-
}, z.core.$strip>>;
|
|
189
|
-
}, z.core.$strip>>;
|
|
190
|
-
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
192
|
-
none: "none";
|
|
193
|
-
acceptance: "acceptance";
|
|
194
|
-
signature: "signature";
|
|
195
|
-
}>>;
|
|
196
|
-
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
-
mode: z.ZodLiteral<"acceptance">;
|
|
198
|
-
date: z.ZodDate;
|
|
199
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
200
|
-
mode: z.ZodLiteral<"signature">;
|
|
201
|
-
name: z.ZodString;
|
|
202
|
-
phone: z.ZodString;
|
|
203
|
-
signature: z.ZodString;
|
|
204
|
-
date: z.ZodDate;
|
|
205
|
-
}, z.core.$strip>], "mode">>;
|
|
206
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
|
|
209
|
-
export declare type ContractSaleDocumentSignature = z.infer<typeof contractSaleDocumentSignatureSchema>;
|
|
210
|
-
|
|
211
|
-
export declare const contractSaleDocumentSignatureSchema: z.ZodObject<{
|
|
212
|
-
mode: z.ZodLiteral<"signature">;
|
|
213
|
-
name: z.ZodString;
|
|
214
|
-
phone: z.ZodString;
|
|
215
|
-
signature: z.ZodString;
|
|
216
|
-
date: z.ZodDate;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
|
|
219
|
-
export declare type ContractSaleDocumentTermArticle = z.infer<typeof contractSaleDocumentTermArticleSchema>;
|
|
220
|
-
|
|
221
|
-
export declare const contractSaleDocumentTermArticleSchema: z.ZodObject<{
|
|
222
|
-
id: z.ZodString;
|
|
223
|
-
title: z.ZodString;
|
|
224
|
-
body: z.ZodString;
|
|
225
|
-
translationTitle: z.ZodOptional<z.ZodString>;
|
|
226
|
-
translationBody: z.ZodOptional<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>;
|
|
228
|
-
|
|
229
|
-
export declare type ContractSaleDocumentTerms = z.infer<typeof contractSaleDocumentTermsSchema>;
|
|
230
|
-
|
|
231
|
-
export declare const contractSaleDocumentTermsSchema: z.ZodObject<{
|
|
232
|
-
title: z.ZodString;
|
|
233
|
-
articles: z.ZodArray<z.ZodObject<{
|
|
234
|
-
id: z.ZodString;
|
|
235
|
-
title: z.ZodString;
|
|
236
|
-
body: z.ZodString;
|
|
237
|
-
translationTitle: z.ZodOptional<z.ZodString>;
|
|
238
|
-
translationBody: z.ZodOptional<z.ZodString>;
|
|
239
|
-
}, z.core.$strip>>;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
|
|
242
|
-
export { }
|