@allthings/sdk
Version:
Allthings Node/Javascript SDK
16 lines (15 loc) • 771 B
TypeScript
import { IAllthingsRestClient } from '../types';
export interface IBooking {
readonly additionalInformation: string;
readonly dateFrom: string;
readonly dateTo: string;
readonly id: string;
readonly message: string;
readonly phoneNumber: string;
}
export type PartialBooking = Partial<IBooking>;
export type BookingResult = Promise<IBooking>;
export type MethodBookingGetById = (bookingId: string) => BookingResult;
export declare function bookingGetById(client: IAllthingsRestClient, bookingId: string): BookingResult;
export type MethodBookingUpdateById = (bookingId: string, data: PartialBooking) => BookingResult;
export declare function bookingUpdateById(client: IAllthingsRestClient, bookingId: string, data: PartialBooking): BookingResult;