File

src/module/template/template.types.ts

Index

Properties

Properties

name
name: string
Type : string
password
password: string
Type : string
username
username: string
Type : string
import { DateTime } from 'luxon';
import { LocalsObject } from 'pug';

export enum PassedState {
    PASSED = 'passed',
    NOT_PASSED = 'notPassed',
    NOT_ATTENDED = 'notAttended',
    ALREADY_HAS_SCHEIN = 'alreadyHasSchein',
}

export interface Scheinstatus {
    matriculationNo: string;
    state: Omit<PassedState, 'NOT_ATTENDED'>;
}

export interface ScheinexamStatus {
    matriculationNo: string;
    state: PassedState;
}

export interface AttendanceAttributes {
    tutorialSlot: string;
    tutorNames: string;
    date: DateTime;
    students: { name: string }[];
}

export interface CredentialsAttributes {
    users: { name: string; username: string; password?: string }[];
}

export interface MailAttribtutes {
    name: string;
    username: string;
    password: string;
}

export interface ScheinexamAttributes {
    scheinExamNo: number;
    statuses: ScheinexamStatus[];
}

export interface ScheinstatusAttributes {
    statuses: Scheinstatus[];
}

export type Template<T extends LocalsObject> = (params: T) => string;

results matching ""

    No results matching ""