PretalxService provides access to the Pretalx API and provides methods to convert pretalx resources into deconf ones.

const store: KeyValueStore
const env = { PRETALX_API_TOKEN: string }
const config = {
eventSlug: string,
englishKeys: string[],
}

const pretalx = new PretalxService({ store, env, config })

Hierarchy

  • PretalxService

Constructors

Methods

  • getSessionCap finds the answer to a numeric question and attempts to parse the number as an integer. It returns the number if it is found, or null if not found or not a numeric string.

    Parameters

    Returns null | number

  • getSessionLinks generates a set of LocalisedLinks for a session based on the answers to multiple questions

    Parameters

    Returns LocalisedLink[]

  • getSlug converts a text string into a URL friendly slug

    Parameters

    • name: string

    Returns string

  • makeUnique takes a possibly duplicated id and makes sure it is unique (within the life of the PretalxService itself)

    Parameters

    • code: string

    Returns string

Generated using TypeDoc