Options
All
  • Public
  • Public/Protected
  • All
Menu

Event controller

Hierarchy

  • default

Index

Constructors

constructor

Methods

all

  • all(__namedParameters: HttpContextContract): Promise<{}>
  • Method to retrieve all the events in the system The actual function call is done by a request (CRUD) which are specified in Routes.ts

    Parameters

    • __namedParameters: HttpContextContract

    Returns Promise<{}>

Private applyCategory

  • applyCategory(scopes: ExtractScopes<typeof default>, category?: number): void

Private applyExclusionCategory

  • applyExclusionCategory(scopes: ExtractScopes<typeof default>, excludeCategory?: string): void

Private applyExclusionOids

  • applyExclusionOids(scopes: ExtractScopes<typeof default>, excludeOids?: string): void

Private applyFilters

  • applyFilters(scopes: ExtractScopes<typeof default>, filters: Record<string, undefined | DateTime>): void
  • Method that applies given filters depedning on what type of event to filter after

    Parameters

    • scopes: ExtractScopes<typeof default>

      The different scopes that exists in the system

    • filters: Record<string, undefined | DateTime>

      The filter to apply

    Returns void

Private applyInclusionFilter

  • applyInclusionFilter(scopes: ExtractScopes<typeof default>, student?: boolean, membership?: boolean): void

create

  • create(__namedParameters: HttpContextContract): Promise<ModelObject>

delete

  • delete(__namedParameters: HttpContextContract): Promise<void>

description

  • description(__namedParameters: HttpContextContract): Promise<{ created_at: DateTime; long_description: string; updated_at: DateTime }>
  • Method to retrieve the long description of an event

    Parameters

    • __namedParameters: HttpContextContract

    Returns Promise<{ created_at: DateTime; long_description: string; updated_at: DateTime }>

index

  • index(__namedParameters: HttpContextContract): Promise<{}>

single

  • single(__namedParameters: HttpContextContract): Promise<ModelObject>

update

  • update(__namedParameters: HttpContextContract): Promise<ModelObject>

upload

  • upload(__namedParameters: HttpContextContract): Promise<ModelObject>

Generated using TypeDoc