@gomusdev/web-components 1.55.2 → 1.56.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-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.d.ts +1 -8
- package/dist-js/gomus-webcomponents.iife.js +537 -555
- package/dist-js/gomus-webcomponents.js +537 -555
- package/dist-js/{components → src/components}/annualTicketPersonalization/lib/PersonalizationDetails.svelte.d.ts +1 -1
- package/dist-js/{components → src/components}/cart/components/lib.d.ts +2 -2
- package/dist-js/src/components/cart/mocks/gomusTicketMocks.d.ts +153 -0
- package/dist-js/{components → src/components}/forms/lib/Forms.svelte.d.ts +1 -1
- package/dist-js/{components → src/components}/forms/lib/allFields.d.ts +1 -1
- package/dist-js/{components → src/components}/forms/ui/generic/FormDetails.svelte.d.ts +2 -2
- package/dist-js/{components → src/components}/graveyard/event/lib.svelte.d.ts +1 -1
- package/dist-js/src/components/mainnav/fixtures/fixtures.d.ts +2 -0
- package/dist-js/{components → src/components}/mainnav/lib/generators/navGenerators.d.ts +1 -1
- package/dist-js/{components → src/components}/mainnav/lib/generators/subNavGenerators.d.ts +1 -1
- package/dist-js/{components → src/components}/mainnav/lib/navigation.d.ts +2 -2
- package/dist-js/{components → src/components}/mainnav/lib/states/pageState.svelte.d.ts +1 -1
- package/dist-js/{components → src/components}/order/lib/OrderDetails.svelte.d.ts +1 -1
- package/dist-js/{components → src/components}/ticketSelection/TicketSelectionDetails.svelte.d.ts +4 -4
- package/dist-js/src/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.d.ts +8 -0
- package/dist-js/{components → src/components}/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +1 -1
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.d.ts +148 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/annualTickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/dayTickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_ScaledPriceTickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_Tickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/events/events_ScaledPriceTickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/timeslotTickets.svelte.d.ts +2 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +3 -0
- package/dist-js/{components → src/components}/ticketSelection/subcomponents/timeslots/lib/lib.svelte.d.ts +2 -2
- package/dist-js/{config → src/config}/configStore.svelte.d.ts +2 -2
- package/dist-js/src/factories/EventTicketFactories.d.ts +57 -0
- package/dist-js/{factories → src/factories}/TicketFactories.d.ts +4 -4
- package/dist-js/{lib → src/lib}/helpers/fixtures/context/lib.d.ts +1 -1
- package/dist-js/{lib → src/lib}/middlewares/AuthMiddleware.d.ts +1 -1
- package/dist-js/{lib → src/lib}/models/capacity/CapacityManager.d.ts +2 -2
- package/dist-js/src/lib/models/capacity/calculators/quotas.d.ts +2 -0
- package/dist-js/{lib → src/lib}/models/capacity/calculators/seats.d.ts +1 -1
- package/dist-js/src/lib/models/capacity/calculators/unlimited.d.ts +2 -0
- package/dist-js/{lib → src/lib}/models/capacity/types.d.ts +3 -3
- package/dist-js/src/lib/models/cart/CartEvents.svelte.d.ts +2 -0
- package/dist-js/{lib → src/lib}/models/cart/CartItem.d.ts +12 -7
- package/dist-js/src/lib/models/cart/cart.svelte.d.ts +261 -0
- package/dist-js/src/lib/models/cart/localStorage.svelte.d.ts +56 -0
- package/dist-js/src/lib/models/cart/types.d.ts +22 -0
- package/dist-js/src/lib/models/eventTicket/UIEventTicket.svelte.d.ts +66 -0
- package/dist-js/{lib → src/lib}/models/ticket/UITicket.svelte.d.ts +8 -8
- package/dist-js/{lib → src/lib}/stores/shop.svelte.d.ts +94 -13
- package/dist-js/{lib → src/lib}/vitest/msw/handlers.d.ts +1 -1
- package/dist-js/{mocks → src/mocks}/MSWMocks.d.ts +1 -1
- package/dist-js/src/workflowSpecs/cart-respects-capacity.spec.d.ts +1 -0
- package/dist-js/src/workflowSpecs/flat-event-workflow.spec.d.ts +1 -0
- package/package.json +3 -3
- package/dist-js/components/cart/mocks/gomusTicketMocks.d.ts +0 -1
- package/dist-js/components/mainnav/fixtures/fixtures.d.ts +0 -2
- package/dist-js/components/paypal/lib/PaymentError.d.ts +0 -3
- package/dist-js/components/paypal/lib/approvePaypalOrder.d.ts +0 -4
- package/dist-js/components/paypal/lib/getPaypalOrder.d.ts +0 -1
- package/dist-js/components/paypal/payment-method-component/paymentIcons.d.ts +0 -14
- package/dist-js/components/paypal/payment-method-component/paymentMethodStore.svelte.d.ts +0 -3
- package/dist-js/components/paypal/payment-methods/apm.d.ts +0 -3
- package/dist-js/components/paypal/payment-methods/applepay/applePay.d.ts +0 -2
- package/dist-js/components/paypal/payment-methods/currentOrder.svelte.d.ts +0 -3
- package/dist-js/components/paypal/payment-methods/defaults.d.ts +0 -28
- package/dist-js/components/paypal/payment-methods/googlepay/googlePay.d.ts +0 -2
- package/dist-js/components/paypal/payment-methods/loadPaypalScript.d.ts +0 -5
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.d.ts +0 -67
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/annualTickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/dayTickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_ScaledPriceTickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_Tickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/events/events_ScaledPriceTickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/timeslotTickets.svelte.d.ts +0 -2
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +0 -3
- package/dist-js/factories/ScalingPriceFactories.d.ts +0 -11
- package/dist-js/lib/models/capacity/calculators/quotas.d.ts +0 -2
- package/dist-js/lib/models/capacity/calculators/unlimited.d.ts +0 -2
- package/dist-js/lib/models/cart/CartEvents.svelte.d.ts +0 -2
- package/dist-js/lib/models/cart/cart.svelte.d.ts +0 -99
- package/dist-js/lib/models/cart/localStorage.svelte.d.ts +0 -18
- package/dist-js/lib/models/cart/types.d.ts +0 -15
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +0 -35
- /package/dist-js/{axe-a11y → src/axe-a11y}/test-runner.d.ts +0 -0
- /package/dist-js/{components → src/components}/annualTicketPersonalization/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/annualTicketPersonalization/specs/AnnualTicketPersonalization.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/annualTicketPersonalization/specs/AnnualTicketPersonalizationForm.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/auth/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/auth/signIn/SignIn.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/auth/signIn/lib.d.ts +0 -0
- /package/dist-js/{components → src/components}/auth/signUp/specs/SignUp.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/components/Cart.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/components/CartEmpty.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/components/lib.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/components/utils.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/cart/mocks/testCart.d.ts +0 -0
- /package/dist-js/{components → src/components}/checkoutForm/CheckoutForm.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/checkoutForm/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/checkoutForm/lib.d.ts +0 -0
- /package/dist-js/{components → src/components}/couponRedemption/CouponRedemption.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/couponRedemption/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/couponRedemption/lib.d.ts +0 -0
- /package/dist-js/{components → src/components}/couponRedemption/lib.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/donations/components/Donations.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/donations/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/donations/lib/donation.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/donations/lib/donation.svelte.d.ts +0 -0
- /package/dist-js/{components → src/components}/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/lib/Field.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/lib/Field.svelte.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/lib/forms.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/generic/Field.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/generic/FormDetails.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/generic/PaymentModeField.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/generic/Submit.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/specs/FormInForm.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/specs/IfInForm.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/specs/TestForm.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/specs/fill.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/forms/ui/specs/onsubmit.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/graveyard/event/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/graveyard/events/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/if/If.svelte.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/if/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/if/expression.d.ts +0 -0
- /package/dist-js/{components → src/components}/if/expression.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/init/GomusInit.test.d.ts +0 -0
- /package/dist-js/{components → src/components}/init/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/link/Link.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/link/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/components/MainNav.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/generators/generate.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/generators/generate.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/generators/labelGenerators.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/generators/urlGenerators.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/navigation.spec.d.ts +0 -0
- /package/dist-js/{components → src/components}/mainnav/lib/states/OpenedDropdown.svelte.d.ts +0 -0
- /package/dist-js/{components/profile/details/Details.spec.d.ts → src/components/order/components/Order.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/order/entry.d.ts +0 -0
- /package/dist-js/{components/profile/overview/Overview.spec.d.ts → src/components/profile/details/Details.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/profile/entry.d.ts +0 -0
- /package/dist-js/{components/profile/password/Password.spec.d.ts → src/components/profile/overview/Overview.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/TicketSelection.spec.d.ts → src/components/profile/password/Password.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/SpecUtils.d.ts +0 -0
- /package/dist-js/{components/ticketSelection/TicketSelectionDetails.spec.d.ts → src/components/ticketSelection/TicketSelection.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.spec.d.ts → src/components/ticketSelection/TicketSelectionDetails.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/entry.d.ts +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.spec.d.ts → src/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts → src/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/addToCartButton/entry.d.ts +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/Tickets.svelte.spec.d.ts → src/components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/calendar/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/calendar/mocks/datesMock.d.ts +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/TicketsEmpty.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/Tickets.svelte.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/TicketsEmpty.spec.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/tickets/entry.d.ts +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/tickets/fixtures/ticketFixtures.d.ts +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/tickets/subcomponents/addToCartButton/entry.d.ts +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_ScaledPriceTickets.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_Tickets.svelte.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_ScaledPriceTickets.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/events/events_ScaledPriceTickets.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/event/event_Tickets.svelte.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/tickets/subcomponents/utils.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/lib/events/events_ScaledPriceTickets.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/timeslots/Timeslots.spec.d.ts → src/components/ticketSelection/subcomponents/tickets/subcomponents/utils.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/timeslots/entry.d.ts → src/components/ticketSelection/subcomponents/timeslots/Timeslots.spec.d.ts} +0 -0
- /package/dist-js/{components/ticketSelection/subcomponents/timeslots/lib/lib.spec.d.ts → src/components/ticketSelection/subcomponents/timeslots/entry.d.ts} +0 -0
- /package/dist-js/{components → src/components}/ticketSelection/subcomponents/timeslots/lib/__mocks__/generateAvailableTimeSlots.d.ts +0 -0
- /package/dist-js/{config/configStore.spec.d.ts → src/components/ticketSelection/subcomponents/timeslots/lib/lib.spec.d.ts} +0 -0
- /package/dist-js/{e2e/APMs.e2e.spec.d.ts → src/config/configStore.spec.d.ts} +0 -0
- /package/dist-js/{e2e/Card.e2e.spec.d.ts → src/e2e/APMs.e2e.spec.d.ts} +0 -0
- /package/dist-js/{go/go.e2e.unit.spec.d.ts → src/e2e/Card.e2e.spec.d.ts} +0 -0
- /package/dist-js/{e2e → src/e2e}/testApm.d.ts +0 -0
- /package/dist-js/{entry.d.ts → src/entry.d.ts} +0 -0
- /package/dist-js/{factories → src/factories}/DateFactories.d.ts +0 -0
- /package/dist-js/{factories → src/factories}/EventFactories.d.ts +0 -0
- /package/dist-js/{go → src/go}/go.d.ts +0 -0
- /package/dist-js/{go/go.spec.d.ts → src/go/go.e2e.unit.spec.d.ts} +0 -0
- /package/dist-js/{go/snippet.d.ts → src/go/go.spec.d.ts} +0 -0
- /package/dist-js/{lib/helpers/PropertyTracker.spec.d.ts → src/go/snippet.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/helpers/Events.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/PropertyTracker.d.ts +0 -0
- /package/dist-js/{lib/helpers/context.spec.d.ts → src/lib/helpers/PropertyTracker.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/helpers/ShadowStyles.svelte.d.ts +0 -0
- /package/dist-js/{lib/helpers/cookies.spec.d.ts → src/lib/helpers/context.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/helpers/context.svelte.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/cookies.d.ts +0 -0
- /package/dist-js/{lib/helpers/dataAttr.spec.d.ts → src/lib/helpers/cookies.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/helpers/dataAttr.d.ts +0 -0
- /package/dist-js/{lib/helpers/wrapInElement.spec.d.ts → src/lib/helpers/dataAttr.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/helpers/localStorage.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/shopCart.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/translations.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/urls.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/utils.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/helpers/wrapInElement.d.ts +0 -0
- /package/dist-js/{lib/middlewares/AuthMiddleware.spec.d.ts → src/lib/helpers/wrapInElement.spec.d.ts} +0 -0
- /package/dist-js/{lib/models/capacity/calculators/quotaManager/QuotaManager.spec.d.ts → src/lib/middlewares/AuthMiddleware.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/models/capacity/calculators/quotaManager/QuotaManager.d.ts +0 -0
- /package/dist-js/{lib/models/capacity/calculators/seats.spec.d.ts → src/lib/models/capacity/calculators/quotaManager/QuotaManager.spec.d.ts} +0 -0
- /package/dist-js/{lib/models/capacity/localStorage.spec.d.ts → src/lib/models/capacity/calculators/seats.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/models/capacity/localStorage.d.ts +0 -0
- /package/dist-js/{lib/models/cart → src/lib/models/capacity}/localStorage.spec.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/models/cart/CartEvents.spec.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/models/cart/CartItem.spec.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/models/cart/cart.svelte.spec.d.ts +0 -0
- /package/dist-js/{lib/models/cart/selectOptions.spec.d.ts → src/lib/models/cart/localStorage.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/models/cart/selectOptions.d.ts +0 -0
- /package/dist-js/{lib/models/scalePrice/UIScaledPrice.spec.d.ts → src/lib/models/cart/selectOptions.spec.d.ts} +0 -0
- /package/dist-js/{lib/models/ticket/UITicket.spec.d.ts → src/lib/models/eventTicket/UIEventTicket.spec.d.ts} +0 -0
- /package/dist-js/{lib/stores/auth.svelte.spec.d.ts → src/lib/models/ticket/UITicket.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/stores/__mocks__/shop.svelte.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/stores/auth.svelte.d.ts +0 -0
- /package/dist-js/{lib/stores/shop.createCart.spec.d.ts → src/lib/stores/auth.svelte.spec.d.ts} +0 -0
- /package/dist-js/{lib/stores/shop.svelte.test.d.ts → src/lib/stores/shop.createCart.spec.d.ts} +0 -0
- /package/dist-js/{lib/stores/user.svelte.test.d.ts → src/lib/stores/shop.svelte.test.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/stores/user.svelte.d.ts +0 -0
- /package/dist-js/{lib/storybook/WrapperComponent.d.ts → src/lib/stores/user.svelte.test.d.ts} +0 -0
- /package/dist-js/{lib/types/types.d.ts → src/lib/storybook/WrapperComponent.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/storybook/sbGlobals.svelte.d.ts +0 -0
- /package/dist-js/{lib/validation.spec.d.ts → src/lib/types/types.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/utils.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/validation.d.ts +0 -0
- /package/dist-js/{workflowSpecs/cart-respects-capacity.spec.d.ts → src/lib/validation.spec.d.ts} +0 -0
- /package/dist-js/{lib → src/lib}/vitest/mockedCookies.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/vitest/msw/RequestLogger.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/vitest/msw/basicHandlers.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/vitest/msw/vitestMSWSetup.d.ts +0 -0
- /package/dist-js/{lib → src/lib}/vitest/snapshotSerializer.d.ts +0 -0
- /package/dist-js/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist-js/{mocks → src/mocks}/ScalingPricesMocks.d.ts +0 -0
- /package/dist-js/{mocks → src/mocks}/ShopMocks.d.ts +0 -0
- /package/dist-js/{mocks → src/mocks}/TicketMocks.d.ts +0 -0
- /package/dist-js/{vitest-setup.d.ts → src/vitest-setup.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product } from '
|
|
1
|
+
import { Product } from '../../../../lib/models/cart/types.ts';
|
|
2
2
|
interface Options {
|
|
3
3
|
quantity?: number;
|
|
4
4
|
time?: string;
|
|
@@ -8,25 +8,30 @@ interface Options {
|
|
|
8
8
|
originalPrice: number;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
export declare function createCartItem
|
|
12
|
-
type:
|
|
13
|
-
product:
|
|
11
|
+
export declare function createCartItem(product: Product, options?: Partial<Options>): {
|
|
12
|
+
type: "Ticket" | "Event";
|
|
13
|
+
product: Product;
|
|
14
14
|
/**
|
|
15
15
|
* is passed to the Order API
|
|
16
16
|
*/
|
|
17
17
|
orderAttributes(): {
|
|
18
|
+
time: string | undefined;
|
|
19
|
+
quantity: number | undefined;
|
|
18
20
|
shipped_with_merchandise_id: null;
|
|
19
21
|
shipping_mode: string;
|
|
20
22
|
id: number;
|
|
21
|
-
time: string | undefined;
|
|
22
|
-
quantity: number | undefined;
|
|
23
23
|
} | {
|
|
24
|
+
quantity: number | undefined;
|
|
24
25
|
shipped_with_merchandise_id: null;
|
|
25
26
|
shipping_mode: string;
|
|
26
27
|
id: number;
|
|
28
|
+
} | {
|
|
27
29
|
quantities: {
|
|
28
|
-
[
|
|
30
|
+
[product.scale_price_id]: number | undefined;
|
|
29
31
|
};
|
|
32
|
+
shipped_with_merchandise_id: null;
|
|
33
|
+
shipping_mode: string;
|
|
34
|
+
id: number;
|
|
30
35
|
};
|
|
31
36
|
uuid: string;
|
|
32
37
|
subUId: string;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { CartItem, Product } from '../../../../lib/models/cart/types.ts';
|
|
2
|
+
export type Cart = ReturnType<typeof createCart>;
|
|
3
|
+
export declare function createCart(products?: Product[], contingent?: number): {
|
|
4
|
+
items: {
|
|
5
|
+
type: "Ticket" | "Event";
|
|
6
|
+
product: Product;
|
|
7
|
+
orderAttributes(): {
|
|
8
|
+
time: string | undefined;
|
|
9
|
+
quantity: number | undefined;
|
|
10
|
+
shipped_with_merchandise_id: null;
|
|
11
|
+
shipping_mode: string;
|
|
12
|
+
id: number;
|
|
13
|
+
} | {
|
|
14
|
+
quantity: number | undefined;
|
|
15
|
+
shipped_with_merchandise_id: null;
|
|
16
|
+
shipping_mode: string;
|
|
17
|
+
id: number;
|
|
18
|
+
} | {
|
|
19
|
+
quantities: {
|
|
20
|
+
[x: number]: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
shipped_with_merchandise_id: null;
|
|
23
|
+
shipping_mode: string;
|
|
24
|
+
id: number;
|
|
25
|
+
};
|
|
26
|
+
uuid: string;
|
|
27
|
+
subUId: string;
|
|
28
|
+
toString(): string;
|
|
29
|
+
price_cents: number;
|
|
30
|
+
price_formatted: string;
|
|
31
|
+
final_price_cents: number;
|
|
32
|
+
final_price_formatted: string;
|
|
33
|
+
total_price_cents: number;
|
|
34
|
+
total_price_formatted: string;
|
|
35
|
+
quantity?: number | undefined;
|
|
36
|
+
time?: string | undefined;
|
|
37
|
+
display?: {
|
|
38
|
+
discounted: boolean;
|
|
39
|
+
reference_uuid: string;
|
|
40
|
+
originalPrice: number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
coupons: string[];
|
|
44
|
+
paymentModeId: undefined;
|
|
45
|
+
uid: string;
|
|
46
|
+
readonly nonEmptyItems: {
|
|
47
|
+
type: "Ticket" | "Event";
|
|
48
|
+
product: Product;
|
|
49
|
+
orderAttributes(): {
|
|
50
|
+
time: string | undefined;
|
|
51
|
+
quantity: number | undefined;
|
|
52
|
+
shipped_with_merchandise_id: null;
|
|
53
|
+
shipping_mode: string;
|
|
54
|
+
id: number;
|
|
55
|
+
} | {
|
|
56
|
+
quantity: number | undefined;
|
|
57
|
+
shipped_with_merchandise_id: null;
|
|
58
|
+
shipping_mode: string;
|
|
59
|
+
id: number;
|
|
60
|
+
} | {
|
|
61
|
+
quantities: {
|
|
62
|
+
[x: number]: number | undefined;
|
|
63
|
+
};
|
|
64
|
+
shipped_with_merchandise_id: null;
|
|
65
|
+
shipping_mode: string;
|
|
66
|
+
id: number;
|
|
67
|
+
};
|
|
68
|
+
uuid: string;
|
|
69
|
+
subUId: string;
|
|
70
|
+
toString(): string;
|
|
71
|
+
price_cents: number;
|
|
72
|
+
price_formatted: string;
|
|
73
|
+
final_price_cents: number;
|
|
74
|
+
final_price_formatted: string;
|
|
75
|
+
total_price_cents: number;
|
|
76
|
+
total_price_formatted: string;
|
|
77
|
+
quantity?: number | undefined;
|
|
78
|
+
time?: string | undefined;
|
|
79
|
+
display?: {
|
|
80
|
+
discounted: boolean;
|
|
81
|
+
reference_uuid: string;
|
|
82
|
+
originalPrice: number;
|
|
83
|
+
} | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
readonly totalPriceCents: number;
|
|
86
|
+
readonly totalQuantity: number;
|
|
87
|
+
/**
|
|
88
|
+
* Generates a formatted string representation of the current object.
|
|
89
|
+
*/
|
|
90
|
+
toString(): string;
|
|
91
|
+
orderData(): {
|
|
92
|
+
items: {
|
|
93
|
+
type: "Ticket" | "Event";
|
|
94
|
+
attributes: {
|
|
95
|
+
time: string | undefined;
|
|
96
|
+
quantity: number | undefined;
|
|
97
|
+
shipped_with_merchandise_id: null;
|
|
98
|
+
shipping_mode: string;
|
|
99
|
+
id: number;
|
|
100
|
+
} | {
|
|
101
|
+
quantity: number | undefined;
|
|
102
|
+
shipped_with_merchandise_id: null;
|
|
103
|
+
shipping_mode: string;
|
|
104
|
+
id: number;
|
|
105
|
+
} | {
|
|
106
|
+
quantities: {
|
|
107
|
+
[x: number]: number | undefined;
|
|
108
|
+
};
|
|
109
|
+
shipped_with_merchandise_id: null;
|
|
110
|
+
shipping_mode: string;
|
|
111
|
+
id: number;
|
|
112
|
+
};
|
|
113
|
+
}[];
|
|
114
|
+
shipping_address_id: null;
|
|
115
|
+
comment: null;
|
|
116
|
+
reference: null;
|
|
117
|
+
payment_mode_id: string;
|
|
118
|
+
coupons: string[];
|
|
119
|
+
donations: never[];
|
|
120
|
+
affiliate: {};
|
|
121
|
+
total: number;
|
|
122
|
+
};
|
|
123
|
+
readonly totalFormatted: string;
|
|
124
|
+
clearItems(): void;
|
|
125
|
+
deleteItem(item: CartItem): void;
|
|
126
|
+
addItem(item: CartItem): void;
|
|
127
|
+
addItems(items: CartItem[]): void;
|
|
128
|
+
addCoupon(token: string): void;
|
|
129
|
+
removeCoupon(token: string): void;
|
|
130
|
+
clearCoupons(): void;
|
|
131
|
+
};
|
|
132
|
+
export declare function formatCurrency(priceCents: number): string;
|
|
133
|
+
export declare function createMainCart(): {
|
|
134
|
+
items: {
|
|
135
|
+
type: "Ticket" | "Event";
|
|
136
|
+
product: Product;
|
|
137
|
+
orderAttributes(): {
|
|
138
|
+
time: string | undefined;
|
|
139
|
+
quantity: number | undefined;
|
|
140
|
+
shipped_with_merchandise_id: null;
|
|
141
|
+
shipping_mode: string;
|
|
142
|
+
id: number;
|
|
143
|
+
} | {
|
|
144
|
+
quantity: number | undefined;
|
|
145
|
+
shipped_with_merchandise_id: null;
|
|
146
|
+
shipping_mode: string;
|
|
147
|
+
id: number;
|
|
148
|
+
} | {
|
|
149
|
+
quantities: {
|
|
150
|
+
[x: number]: number | undefined;
|
|
151
|
+
};
|
|
152
|
+
shipped_with_merchandise_id: null;
|
|
153
|
+
shipping_mode: string;
|
|
154
|
+
id: number;
|
|
155
|
+
};
|
|
156
|
+
uuid: string;
|
|
157
|
+
subUId: string;
|
|
158
|
+
toString(): string;
|
|
159
|
+
price_cents: number;
|
|
160
|
+
price_formatted: string;
|
|
161
|
+
final_price_cents: number;
|
|
162
|
+
final_price_formatted: string;
|
|
163
|
+
total_price_cents: number;
|
|
164
|
+
total_price_formatted: string;
|
|
165
|
+
quantity?: number | undefined;
|
|
166
|
+
time?: string | undefined;
|
|
167
|
+
display?: {
|
|
168
|
+
discounted: boolean;
|
|
169
|
+
reference_uuid: string;
|
|
170
|
+
originalPrice: number;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
coupons: string[];
|
|
174
|
+
paymentModeId: undefined;
|
|
175
|
+
uid: string;
|
|
176
|
+
readonly nonEmptyItems: {
|
|
177
|
+
type: "Ticket" | "Event";
|
|
178
|
+
product: Product;
|
|
179
|
+
orderAttributes(): {
|
|
180
|
+
time: string | undefined;
|
|
181
|
+
quantity: number | undefined;
|
|
182
|
+
shipped_with_merchandise_id: null;
|
|
183
|
+
shipping_mode: string;
|
|
184
|
+
id: number;
|
|
185
|
+
} | {
|
|
186
|
+
quantity: number | undefined;
|
|
187
|
+
shipped_with_merchandise_id: null;
|
|
188
|
+
shipping_mode: string;
|
|
189
|
+
id: number;
|
|
190
|
+
} | {
|
|
191
|
+
quantities: {
|
|
192
|
+
[x: number]: number | undefined;
|
|
193
|
+
};
|
|
194
|
+
shipped_with_merchandise_id: null;
|
|
195
|
+
shipping_mode: string;
|
|
196
|
+
id: number;
|
|
197
|
+
};
|
|
198
|
+
uuid: string;
|
|
199
|
+
subUId: string;
|
|
200
|
+
toString(): string;
|
|
201
|
+
price_cents: number;
|
|
202
|
+
price_formatted: string;
|
|
203
|
+
final_price_cents: number;
|
|
204
|
+
final_price_formatted: string;
|
|
205
|
+
total_price_cents: number;
|
|
206
|
+
total_price_formatted: string;
|
|
207
|
+
quantity?: number | undefined;
|
|
208
|
+
time?: string | undefined;
|
|
209
|
+
display?: {
|
|
210
|
+
discounted: boolean;
|
|
211
|
+
reference_uuid: string;
|
|
212
|
+
originalPrice: number;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}[];
|
|
215
|
+
readonly totalPriceCents: number;
|
|
216
|
+
readonly totalQuantity: number;
|
|
217
|
+
/**
|
|
218
|
+
* Generates a formatted string representation of the current object.
|
|
219
|
+
*/
|
|
220
|
+
toString(): string;
|
|
221
|
+
orderData(): {
|
|
222
|
+
items: {
|
|
223
|
+
type: "Ticket" | "Event";
|
|
224
|
+
attributes: {
|
|
225
|
+
time: string | undefined;
|
|
226
|
+
quantity: number | undefined;
|
|
227
|
+
shipped_with_merchandise_id: null;
|
|
228
|
+
shipping_mode: string;
|
|
229
|
+
id: number;
|
|
230
|
+
} | {
|
|
231
|
+
quantity: number | undefined;
|
|
232
|
+
shipped_with_merchandise_id: null;
|
|
233
|
+
shipping_mode: string;
|
|
234
|
+
id: number;
|
|
235
|
+
} | {
|
|
236
|
+
quantities: {
|
|
237
|
+
[x: number]: number | undefined;
|
|
238
|
+
};
|
|
239
|
+
shipped_with_merchandise_id: null;
|
|
240
|
+
shipping_mode: string;
|
|
241
|
+
id: number;
|
|
242
|
+
};
|
|
243
|
+
}[];
|
|
244
|
+
shipping_address_id: null;
|
|
245
|
+
comment: null;
|
|
246
|
+
reference: null;
|
|
247
|
+
payment_mode_id: string;
|
|
248
|
+
coupons: string[];
|
|
249
|
+
donations: never[];
|
|
250
|
+
affiliate: {};
|
|
251
|
+
total: number;
|
|
252
|
+
};
|
|
253
|
+
readonly totalFormatted: string;
|
|
254
|
+
clearItems(): void;
|
|
255
|
+
deleteItem(item: CartItem): void;
|
|
256
|
+
addItem(item: CartItem): void;
|
|
257
|
+
addItems(items: CartItem[]): void;
|
|
258
|
+
addCoupon(token: string): void;
|
|
259
|
+
removeCoupon(token: string): void;
|
|
260
|
+
clearCoupons(): void;
|
|
261
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Cart } from '../../../../lib/models/cart/cart.svelte.ts';
|
|
2
|
+
import { CartItem } from '../../../../lib/models/cart/types.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Generates a cart item based on the provided json object.
|
|
5
|
+
*
|
|
6
|
+
* @param cartItem - The cart item object containing details such as type, attributes, and item.
|
|
7
|
+
* @return {CartItem | undefined} The generated cart item if applicable, otherwise undefined.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateCartItem(cartItem: any): CartItem | undefined;
|
|
10
|
+
export declare function clearLocalStorage(): void;
|
|
11
|
+
export declare function loadFromLocalStorage(cart: Cart): {
|
|
12
|
+
type: "Ticket" | "Event";
|
|
13
|
+
product: import('../../../../lib/models/cart/types.ts').Product;
|
|
14
|
+
orderAttributes(): {
|
|
15
|
+
time: string | undefined;
|
|
16
|
+
quantity: number | undefined;
|
|
17
|
+
shipped_with_merchandise_id: null;
|
|
18
|
+
shipping_mode: string;
|
|
19
|
+
id: number;
|
|
20
|
+
} | {
|
|
21
|
+
quantity: number | undefined;
|
|
22
|
+
shipped_with_merchandise_id: null;
|
|
23
|
+
shipping_mode: string;
|
|
24
|
+
id: number;
|
|
25
|
+
} | {
|
|
26
|
+
quantities: {
|
|
27
|
+
[x: number]: number | undefined;
|
|
28
|
+
};
|
|
29
|
+
shipped_with_merchandise_id: null;
|
|
30
|
+
shipping_mode: string;
|
|
31
|
+
id: number;
|
|
32
|
+
};
|
|
33
|
+
uuid: string;
|
|
34
|
+
subUId: string;
|
|
35
|
+
toString(): string;
|
|
36
|
+
price_cents: number;
|
|
37
|
+
price_formatted: string;
|
|
38
|
+
final_price_cents: number;
|
|
39
|
+
final_price_formatted: string;
|
|
40
|
+
total_price_cents: number;
|
|
41
|
+
total_price_formatted: string;
|
|
42
|
+
quantity?: number | undefined;
|
|
43
|
+
time?: string | undefined;
|
|
44
|
+
display?: {
|
|
45
|
+
discounted: boolean;
|
|
46
|
+
reference_uuid: string;
|
|
47
|
+
originalPrice: number;
|
|
48
|
+
} | undefined;
|
|
49
|
+
}[];
|
|
50
|
+
/**
|
|
51
|
+
* Synchronizes the given shopping cart with the local storage. The method ensures that the cart is loaded from local storage,
|
|
52
|
+
* updates are reflected in the local storage, and any external changes to the local storage are propagated to the cart.
|
|
53
|
+
*
|
|
54
|
+
* @return {void} This method does not return a value.
|
|
55
|
+
*/
|
|
56
|
+
export declare function syncCartToLocalStorage(cart: Cart): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createCartItem } from '../../../../lib/models/cart/CartItem.ts';
|
|
2
|
+
import { UIEventTicket } from '../../../../lib/models/eventTicket/UIEventTicket.svelte.ts';
|
|
3
|
+
import { UITicket } from '../../../../lib/models/ticket/UITicket.svelte.ts';
|
|
4
|
+
export type ProductType = 'Ticket' | 'Event';
|
|
5
|
+
export type CartItem = ReturnType<typeof createCartItem>;
|
|
6
|
+
/**
|
|
7
|
+
* minimal props to define a Product in a CartItem
|
|
8
|
+
*/
|
|
9
|
+
export type BaseProduct = {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
price_cents: number;
|
|
14
|
+
tax_included: boolean;
|
|
15
|
+
vat_pct: number;
|
|
16
|
+
type: ProductType;
|
|
17
|
+
};
|
|
18
|
+
export type Product = (UITicket & {
|
|
19
|
+
type: 'Ticket';
|
|
20
|
+
}) | (UIEventTicket & {
|
|
21
|
+
type: 'Event';
|
|
22
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Product } from '../../../../lib/models/cart/types.ts';
|
|
2
|
+
import { DateDetails, EventTicket } from '@gomus/types';
|
|
3
|
+
interface Options {
|
|
4
|
+
minAvailableCapacity?: number;
|
|
5
|
+
selectedTime?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
date?: DateDetails;
|
|
8
|
+
event_title?: string;
|
|
9
|
+
event_subtitle?: string;
|
|
10
|
+
date_title?: string;
|
|
11
|
+
date_description?: string;
|
|
12
|
+
price_title?: string;
|
|
13
|
+
price_description?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Event tickets come in two subtypes:
|
|
17
|
+
* - `flat`: single fixed price per ticket.
|
|
18
|
+
* - `scale`: price scales by attribute (e.g. age group), identified by `scale_price_id`.
|
|
19
|
+
*
|
|
20
|
+
* Subtype selection is automatic: derived from the API ticket's `scale_price_id`
|
|
21
|
+
* (absent → `flat`, present → `scale`). Consumers should not set it manually;
|
|
22
|
+
* use `isFlatEventTicket` / `isScaleEventTicket` to narrow.
|
|
23
|
+
*/
|
|
24
|
+
type UIEventTicketSubtype = 'scale' | 'flat';
|
|
25
|
+
export declare function isEventTicket(x: Product): x is UIEventTicket;
|
|
26
|
+
export declare function isFlatEventTicket(x: Product): x is UIEventTicketFlat;
|
|
27
|
+
export declare function isScaleEventTicket(x: Product): x is UIEventTicketScale;
|
|
28
|
+
export type UIEventTicketBase = ReturnType<typeof buildUIEventTicket>;
|
|
29
|
+
export type UIEventTicketFlat = UIEventTicketBase & {
|
|
30
|
+
subtype: 'flat';
|
|
31
|
+
scale_price_id?: undefined;
|
|
32
|
+
};
|
|
33
|
+
export type UIEventTicketScale = UIEventTicketBase & {
|
|
34
|
+
subtype: 'scale';
|
|
35
|
+
scale_price_id: number;
|
|
36
|
+
};
|
|
37
|
+
export type UIEventTicket = UIEventTicketFlat | UIEventTicketScale;
|
|
38
|
+
declare function buildUIEventTicket(apiTicket: EventTicket, dateId: number, options?: Options): {
|
|
39
|
+
type: "Event";
|
|
40
|
+
subtype: UIEventTicketSubtype;
|
|
41
|
+
group?: boolean;
|
|
42
|
+
optional?: boolean;
|
|
43
|
+
price_cents: number;
|
|
44
|
+
vat_pct: number;
|
|
45
|
+
accounting_article_id?: number;
|
|
46
|
+
accounting_article_type?: string;
|
|
47
|
+
description: string;
|
|
48
|
+
scale_price_id?: number;
|
|
49
|
+
title: string;
|
|
50
|
+
id: number;
|
|
51
|
+
tax_included: boolean;
|
|
52
|
+
minAvailableCapacity: number;
|
|
53
|
+
selectedTime: string;
|
|
54
|
+
quantity?: number;
|
|
55
|
+
date?: DateDetails;
|
|
56
|
+
event_title?: string;
|
|
57
|
+
event_subtitle?: string;
|
|
58
|
+
date_title?: string;
|
|
59
|
+
date_description?: string;
|
|
60
|
+
price_title?: string;
|
|
61
|
+
price_description?: string;
|
|
62
|
+
uid: number;
|
|
63
|
+
dateId: number;
|
|
64
|
+
};
|
|
65
|
+
export declare function createUIEventTicket(apiTicket: EventTicket, dateId: number, options?: Options): UIEventTicket;
|
|
66
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseProduct } from '../../../../lib/models/cart/types.ts';
|
|
2
2
|
import { AnnualTicket, NormalTickets, Ticket, Tickets } from '@gomus/types';
|
|
3
3
|
interface Options {
|
|
4
4
|
selectedTime?: string;
|
|
5
5
|
}
|
|
6
6
|
export type UITicketType = 'timeslot' | 'annual' | 'day' | 'event:ticket';
|
|
7
7
|
export type UITicket = ReturnType<typeof createUITicket>;
|
|
8
|
-
export declare function isUITicket(x:
|
|
8
|
+
export declare function isUITicket(x: BaseProduct): x is UITicket;
|
|
9
9
|
export declare function createUITicket(apiTicket: Ticket | AnnualTicket | NormalTickets[number], options?: Options): {
|
|
10
10
|
uid: number;
|
|
11
11
|
selectedTime: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type: "Ticket";
|
|
13
|
+
subtype: UITicketType;
|
|
14
14
|
shop_order: number;
|
|
15
15
|
id: number;
|
|
16
16
|
title: string;
|
|
@@ -65,8 +65,8 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
|
|
|
65
65
|
} | {
|
|
66
66
|
uid: number;
|
|
67
67
|
selectedTime: string;
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
type: "Ticket";
|
|
69
|
+
subtype: UITicketType;
|
|
70
70
|
shop_order: number;
|
|
71
71
|
id: number;
|
|
72
72
|
title: string;
|
|
@@ -113,8 +113,8 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
|
|
|
113
113
|
} | {
|
|
114
114
|
uid: number;
|
|
115
115
|
selectedTime: string;
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
type: "Ticket";
|
|
117
|
+
subtype: UITicketType;
|
|
118
118
|
shop_order: number;
|
|
119
119
|
id: number;
|
|
120
120
|
title: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CalendarDates, CalendarDatesDepthAvailabilityStatus } from '
|
|
2
|
-
import { ShopUrls } from '
|
|
3
|
-
import { CapacityManager } from '
|
|
4
|
-
import { Cart } from '
|
|
5
|
-
import { Auth } from '
|
|
6
|
-
import { User } from '
|
|
1
|
+
import { CalendarDates, CalendarDatesDepthAvailabilityStatus } from '../../../components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.ts';
|
|
2
|
+
import { ShopUrls } from '../../../lib/helpers/urls';
|
|
3
|
+
import { CapacityManager } from '../../../lib/models/capacity/CapacityManager.ts';
|
|
4
|
+
import { Cart } from '../../../lib/models/cart/cart.svelte.ts';
|
|
5
|
+
import { Auth } from '../../../lib/stores/auth.svelte.ts';
|
|
6
|
+
import { User } from '../../../lib/stores/user.svelte.ts';
|
|
7
7
|
import { OpenApiClient } from '@gomus/api';
|
|
8
8
|
import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
|
|
9
9
|
import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, Merchandise, Museum, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, Tour, ValidateTokenResponse } from '@gomus/types';
|
|
@@ -14,7 +14,7 @@ export declare class Shop {
|
|
|
14
14
|
constructor();
|
|
15
15
|
load(apiUrl: string, shopDomain: string, locale: string, type?: ShopKind): Promise<void>;
|
|
16
16
|
get capacityManager(): {
|
|
17
|
-
allSeats: Record<import('
|
|
17
|
+
allSeats: Record<import('../../../lib/models/capacity/CapacityManager.ts').DateID, import('../../../lib/models/capacity/CapacityManager.ts').Seats>;
|
|
18
18
|
allQuotas: import('@gomus/types').Quotas;
|
|
19
19
|
quotaManager: {
|
|
20
20
|
apiData: {
|
|
@@ -68,35 +68,116 @@ export declare class Shop {
|
|
|
68
68
|
}[];
|
|
69
69
|
};
|
|
70
70
|
addQuotas(quotas: import('@gomus/types').Quotas, saveToLocalStorage?: boolean): void;
|
|
71
|
-
addSeats(dateId: import('
|
|
71
|
+
addSeats(dateId: import('../../../lib/models/capacity/CapacityManager.ts').DateID, seats: import('../../../lib/models/capacity/CapacityManager.ts').Seats, saveToLocalStorage?: boolean): void;
|
|
72
72
|
capacityPolicy(item: import('../models/cart/types').CartItem): "quotas" | "unlimited" | "seats";
|
|
73
73
|
capacity(cart: Cart, item: import('../models/cart/types').CartItem, preCart: Cart): import('../models/capacity/types').Capacity;
|
|
74
74
|
};
|
|
75
75
|
get cart(): {
|
|
76
|
-
items:
|
|
76
|
+
items: {
|
|
77
|
+
type: "Ticket" | "Event";
|
|
78
|
+
product: import('../models/cart/types').Product;
|
|
79
|
+
orderAttributes(): {
|
|
80
|
+
time: string | undefined;
|
|
81
|
+
quantity: number | undefined;
|
|
82
|
+
shipped_with_merchandise_id: null;
|
|
83
|
+
shipping_mode: string;
|
|
84
|
+
id: number;
|
|
85
|
+
} | {
|
|
86
|
+
quantity: number | undefined;
|
|
87
|
+
shipped_with_merchandise_id: null;
|
|
88
|
+
shipping_mode: string;
|
|
89
|
+
id: number;
|
|
90
|
+
} | {
|
|
91
|
+
quantities: {
|
|
92
|
+
[x: number]: number | undefined;
|
|
93
|
+
};
|
|
94
|
+
shipped_with_merchandise_id: null;
|
|
95
|
+
shipping_mode: string;
|
|
96
|
+
id: number;
|
|
97
|
+
};
|
|
98
|
+
uuid: string;
|
|
99
|
+
subUId: string;
|
|
100
|
+
toString(): string;
|
|
101
|
+
price_cents: number;
|
|
102
|
+
price_formatted: string;
|
|
103
|
+
final_price_cents: number;
|
|
104
|
+
final_price_formatted: string;
|
|
105
|
+
total_price_cents: number;
|
|
106
|
+
total_price_formatted: string;
|
|
107
|
+
quantity?: number | undefined;
|
|
108
|
+
time?: string | undefined;
|
|
109
|
+
display?: {
|
|
110
|
+
discounted: boolean;
|
|
111
|
+
reference_uuid: string;
|
|
112
|
+
originalPrice: number;
|
|
113
|
+
} | undefined;
|
|
114
|
+
}[];
|
|
77
115
|
coupons: string[];
|
|
78
116
|
paymentModeId: undefined;
|
|
79
117
|
uid: string;
|
|
80
|
-
readonly nonEmptyItems:
|
|
118
|
+
readonly nonEmptyItems: {
|
|
119
|
+
type: "Ticket" | "Event";
|
|
120
|
+
product: import('../models/cart/types').Product;
|
|
121
|
+
orderAttributes(): {
|
|
122
|
+
time: string | undefined;
|
|
123
|
+
quantity: number | undefined;
|
|
124
|
+
shipped_with_merchandise_id: null;
|
|
125
|
+
shipping_mode: string;
|
|
126
|
+
id: number;
|
|
127
|
+
} | {
|
|
128
|
+
quantity: number | undefined;
|
|
129
|
+
shipped_with_merchandise_id: null;
|
|
130
|
+
shipping_mode: string;
|
|
131
|
+
id: number;
|
|
132
|
+
} | {
|
|
133
|
+
quantities: {
|
|
134
|
+
[x: number]: number | undefined;
|
|
135
|
+
};
|
|
136
|
+
shipped_with_merchandise_id: null;
|
|
137
|
+
shipping_mode: string;
|
|
138
|
+
id: number;
|
|
139
|
+
};
|
|
140
|
+
uuid: string;
|
|
141
|
+
subUId: string;
|
|
142
|
+
toString(): string;
|
|
143
|
+
price_cents: number;
|
|
144
|
+
price_formatted: string;
|
|
145
|
+
final_price_cents: number;
|
|
146
|
+
final_price_formatted: string;
|
|
147
|
+
total_price_cents: number;
|
|
148
|
+
total_price_formatted: string;
|
|
149
|
+
quantity?: number | undefined;
|
|
150
|
+
time?: string | undefined;
|
|
151
|
+
display?: {
|
|
152
|
+
discounted: boolean;
|
|
153
|
+
reference_uuid: string;
|
|
154
|
+
originalPrice: number;
|
|
155
|
+
} | undefined;
|
|
156
|
+
}[];
|
|
81
157
|
readonly totalPriceCents: number;
|
|
82
158
|
readonly totalQuantity: number;
|
|
83
159
|
toString(): string;
|
|
84
160
|
orderData(): {
|
|
85
161
|
items: {
|
|
86
|
-
type:
|
|
162
|
+
type: "Ticket" | "Event";
|
|
87
163
|
attributes: {
|
|
164
|
+
time: string | undefined;
|
|
165
|
+
quantity: number | undefined;
|
|
88
166
|
shipped_with_merchandise_id: null;
|
|
89
167
|
shipping_mode: string;
|
|
90
168
|
id: number;
|
|
91
|
-
time: string | undefined;
|
|
92
|
-
quantity: number | undefined;
|
|
93
169
|
} | {
|
|
170
|
+
quantity: number | undefined;
|
|
94
171
|
shipped_with_merchandise_id: null;
|
|
95
172
|
shipping_mode: string;
|
|
96
173
|
id: number;
|
|
174
|
+
} | {
|
|
97
175
|
quantities: {
|
|
98
176
|
[x: number]: number | undefined;
|
|
99
177
|
};
|
|
178
|
+
shipped_with_merchandise_id: null;
|
|
179
|
+
shipping_mode: string;
|
|
180
|
+
id: number;
|
|
100
181
|
};
|
|
101
182
|
}[];
|
|
102
183
|
shipping_address_id: null;
|
|
@@ -1487,7 +1487,7 @@ export function getGetTickets200Response(): {
|
|
|
1487
1487
|
tickets: {
|
|
1488
1488
|
id: number;
|
|
1489
1489
|
title: string;
|
|
1490
|
-
ticket_type: "
|
|
1490
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1491
1491
|
bookable: boolean;
|
|
1492
1492
|
museum_ids: number[];
|
|
1493
1493
|
exhibition_ids: number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|