Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocationService

Hierarchy

  • LocationService

Index

Properties

Private buildingRepository

buildingRepository: Repository<Building>

Private campusRepository

campusRepository: Repository<Campus>

Private roomBookingRepository

roomBookingRepository: Repository<RoomBookingInfoView>

Private roomListingViewRepository

roomListingViewRepository: Repository<RoomListingView>

Private roomRepository

roomRepository: Repository<Room>

Methods

createRoom

getCampusMetadata

getFullRoomList

getRoomAvailability

  • Resolves with a list of rooms and the course instance and/or non class meetings that are scheduled to occur during the requested calendar year, term, day, start time, and end time.

    If the RoomRequest data includes an excludeParent property with the UUID of a CourseInstance or NonClassEvent, it will not show that meeting in the list of meetings. This is mostly necessary when populating the RoomSelectionTable on the client, so that users can change the room associated with a meeting then change it back. It's implemented on the server so that we can strictly compare by UUID, not by the (potentially not unique) meeting title string.

    Parameters

    • __namedParameters: object
      • excludeParent: string
      • roomInfo: roomInfo

    Returns Promise<RoomMeetingResponse[]>

getRoomBookings

  • Queries the view of room booking info in our database for any existing bookings that might overlap with the meeting represented by the data in the details argument. Returns true when there are no conflicts, and false when there is a conflict

    Parameters

    Returns Promise<Booking[]>

getRoomList

updateRoom

Generated using TypeDoc