Libticketto
    Preparing search index...

    Type Alias Event<FileLike>

    A single instance of a gathering (either single-dated or multi-dated) that issues tickets for attendees to participate in.

    Note: This structure is provisional. For the final version of the protocol, it is expected to detach the TicketClass from the event, and have a list (or map) of ticket classes attached to the event instead.

    type Event<FileLike = FileLocation> = {
        capacity: TicketId;
        class: TicketClass;
        date?: DateRange;
        dates?: DateRange[];
        id: EventId;
        metadata?: EventMetadata<FileLike>;
        name: string;
        organiser: AccountId;
        state: EventState;
    }

    Type Parameters

    Index

    Properties

    capacity: TicketId

    The maximum capacity for an event, indicates how many ticket instances can be issued for it.

    The ticket class defined for this event. This is used to define the features of a ticket when issuing one.

    date?: DateRange

    The date range for the next available date of the event. In the case of single day events, this will always return the range of the event date.

    dates?: DateRange[]

    A list of date ranges defining the dates of the event. Minimum one for an event of one day. Multiple ranges are defined for multi-day events.

    An unique identifier of the event

    The metadata associated to the event.

    name: string

    The name that identifies the event

    organiser: AccountId

    The account that owns the events

    state: EventState

    The status of the event.