ConferenceRepository is responsible for retrieving conference information from a KeyValueStore.

const store: KeyValueStore

const conferenceRepo = new ConferenceRepository({ store })

Hierarchy

  • ConferenceRepository

Constructors

Methods

  • findInterpreter finds a specific interpreter with an email, or returns null.

    const interpreter = await conferenceRepo.findInterpreter('jess@example.com')`
    

    Parameters

    • email: string

    Returns Promise<null | Interpreter>

  • findSession finds a specific record with an id, or returns null.

    const session = await conferenceRepo.findSession('session-a')`
    

    Parameters

    • id: string

    Returns Promise<null | Session>

  • getInterpreters fetches the conference's Interpreter objects. These are used to assign user_roles when authenticating.

    const interpreters = await conferenceRepo.getInterpreters()`
    

    Returns Promise<Interpreter[]>

  • getSessions fetches the conference's Session records.

    const sessions = await conferenceRepo.getSessions()`
    

    Returns Promise<Session[]>

  • getSettings fetches the conference's ConferenceConfig object or null if it is not set.

    const settings = await conferenceRepo.getSettings()`
    

    Returns Promise<null | ConferenceConfig>

  • getSlots returns the slots for a conference, which are the timespans available for sessions to occur in. They group sessions together in the schedule.

    ConferenceRepository assumes the store serialises values as JSON and getSlots makes sure to unserialise the start and end date of each slot.

    const slots = conferenceRepo.getSlots()
    

    Returns Promise<SessionSlot[]>

  • getSpeakers fetches the conference's Speaker objects.

    const speakers = await conferenceRepo.getSpeakers()`
    

    Returns Promise<Speaker[]>

  • getTypes fetches the conference's SessionType objects.

    const sessionTypes = await conferenceRepo.getTypes()`
    

    Returns Promise<SessionType[]>

Generated using TypeDoc