initial commit
All checks were successful
Build and Publish / Build Yale Access Backend (push) Successful in 28s
Build and Publish / Build Yale Access Frontend (push) Successful in 47s
Build and Publish / Push Yale Access Backend Docker Image (push) Successful in 9s
Build and Publish / Push Yale Access Frontend Docker Image (push) Successful in 10s

This commit is contained in:
2025-01-10 08:37:18 +11:00
commit f577617b4d
80 changed files with 10113 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export type ApiResponse<T> = {
success: boolean;
error?: string;
data?: T;
}

View File

@@ -0,0 +1,3 @@
export type HTMLInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'color';
export type HTMLButtonTypes = 'submit' | 'reset' | 'button';

View File

@@ -0,0 +1,18 @@
export type YaleUserCode = {
id: number;
code: string;
status: UserCodeStatus;
isHome: boolean;
}
export enum UserCodeStatus {
AVAILABLE = 0,
ENABLED = 1,
DISABLED = 2
}
export type Person = {
id: number;
name: string;
phoneNumber: string;
}