New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@protacon/muster-booking-frontend

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protacon/muster-booking-frontend

Online booking frontend

  • 1.27.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
0
Weekly downloads
 
Created

Muster booking frontend

Online booking frontend

Install

npm install @protacon/muster-booking-frontend

Usage

import BookingComponent from '@protacon/muster-booking-frontend'
import '@protacon/muster-booking-frontend/dist/styles.bundle.css'

...

render() {
	return (
		<BookingComponent
			locale="sv"
			timezone="Europe/Stockholm"
			apiEndpoint="https://.../booking.api/v1"
			chainId={2}
			googleApiKey="..."
			maxStations={5}

			// Optional. Preselect reservation params
			plateNumber="..."
			product="..." // Inspection | PostInspection | ConditionInspection
			stationId={...}

			// Optional. Start component with search reservation form, optionaly pass default values
			searchReservation={{
				bookingNumber: '...',
				lastName: '...',
			}}
			/>
	)
}

To start component with existing reservation payment navigate to page with component with search:

?continuePaymentReservationUid={reservationUid}&stationId={stationId}

To start component with existing reservation edit navigate to page with component with search:

?reservationId={reservationUid}&stationId={stationId}

Development

npm start
open http://localhost:8080/

FAQs

Package last updated on 20 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts