refactor: adapt models to the new api
This commit is contained in:
4
src/shared/structs/CacheType.ts
Normal file
4
src/shared/structs/CacheType.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export enum CacheType {
|
||||
Memcached,
|
||||
Redis
|
||||
}
|
5
src/shared/structs/DatabaseType.ts
Normal file
5
src/shared/structs/DatabaseType.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export enum DatabaseType {
|
||||
Mysql,
|
||||
Sqlite,
|
||||
PostgresSql
|
||||
}
|
9
src/shared/structs/DayOfWeek.ts
Normal file
9
src/shared/structs/DayOfWeek.ts
Normal file
@ -0,0 +1,9 @@
|
||||
export enum DayOfWeek {
|
||||
Sunday,
|
||||
Monday,
|
||||
Tuesday,
|
||||
Wednesday,
|
||||
Thursday,
|
||||
Friday,
|
||||
Saturday
|
||||
}
|
5
src/shared/structs/OAuthProvider.ts
Normal file
5
src/shared/structs/OAuthProvider.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export enum OAuthProvider {
|
||||
Google,
|
||||
Yandex,
|
||||
MailRu
|
||||
}
|
4
src/shared/structs/PairPeriodTime.ts
Normal file
4
src/shared/structs/PairPeriodTime.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface PairPeriodTime {
|
||||
start: string;
|
||||
end: string;
|
||||
}
|
7
src/shared/structs/PasswordPolicy.ts
Normal file
7
src/shared/structs/PasswordPolicy.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export interface PasswordPolicy {
|
||||
minimumLength: number;
|
||||
requireLetter: boolean;
|
||||
requireLettersDifferentCase: boolean;
|
||||
requireDigit: boolean;
|
||||
requireSpecialCharacter: boolean;
|
||||
}
|
4
src/shared/structs/TwoFactorAuthentication.ts
Normal file
4
src/shared/structs/TwoFactorAuthentication.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export enum TwoFactorAuthentication {
|
||||
None,
|
||||
TotpRequired
|
||||
}
|
Reference in New Issue
Block a user