src/module/template/template.types.ts
Properties |
name |
name:
|
Type : string
|
password |
password:
|
Type : string
|
username |
username:
|
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;