5.0.0 • Published 2 years ago

fars v5.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

fars

With this NPM package you can easily request info from FARS.

Usage

// Create FARS manager
const fars = new FARSManager(url: string, username?: string, password?: string)

// Request bookables
fars.getBookables(): Promise<IFarsBookable>

// Request bookings
fars.bookings(queryParameters: { after?: Date, before?: Date, bookable?: string, limit?: number }): Promise<IFarsSearchResult>

// Request bookings during a certain number of days into the future
fars.bookingsFromNow(days: number, queryParameters): Promise<IFarsSearchResult>

// Request bookings during a certain number of days into the future
fars.bookingsFromToday(days: number, queryParameters): Promise<IFarsSearchResult>

// Group an array of bookings by the bookable
fars.groupByBookable(reservations: IFarsBooking[]): Map<string, IFarsBooking[]>;

// Group an array of bookings by start date
fars.groupByDate = (reservations: IFarsBooking[]): Map<string, IFarsBooking[]>;
5.0.0

2 years ago

4.0.0

2 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago