Разработчикам / REST API для **BOOCO Meteor (v 1.x) /** Общее API

В данном разделе описываются методы для работы с бронированиями.

Endpoints

Параметры запроса (Queries)

Параметры URL

Используемые типы

type RepeatType = 'none' | 'daily' | 'weekly' | 'monthly' | 'workdays' | 'holidays' | 'weekdays';

type RepeatWeekdays = {
  mondays?: boolean,
  tuesdays?: boolean,
  wednesdays?: boolean,
  thursdays?: boolean,
  fridays?: boolean,
  saturdays?: boolean,
  sundays?: boolean
};

type RepeatItem = {
  type?: RepeatType,
  id?: string,
  start?: TDateISO,
  end?: TDateISO,
  weekdays?: RepeatWeekdays
}

type EventStatus = 'error' | 'Tentative' | 'Unknown' | 'Decline' | 'NoResponseReceived' | 'Accept';

type SyncItem = {
  calendarSystemId: string,
  calendarId?: string,
  uniqueId?: string,
  changeKey?: string,
  status?: EventStatus,
  reason?: string
};

type BookingEvent = {
  _id?: string,
  createdAt?: string,
  venueId?: string,
  venueType?: string,
  venueName?: string,
  location?: string,
  start?: TDateISO,
  end?: TDateISO,
  subject?: string,
  attendees?: Attendee[],
  organizer?: string,
  organizerEmail?: string,
  organizerName?: string,
  confirmation?: string,
  userId?: string,
  fixed?: boolean,
  sync?: SyncItem[],
  origin?: string,
  repeat?: RepeatItem,
  removed?: boolean,
  vcsLocation?: string | null
};