refactor: adapt models to the new api
This commit is contained in:
5
src/shared/requests/v1/CreateUserRequest.ts
Normal file
5
src/shared/requests/v1/CreateUserRequest.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface CreateUserRequest {
|
||||
email: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
4
src/shared/requests/v1/LoginRequest.ts
Normal file
4
src/shared/requests/v1/LoginRequest.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface LoginRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
7
src/shared/requests/v1/ScheduleRequest.ts
Normal file
7
src/shared/requests/v1/ScheduleRequest.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export interface ScheduleRequest {
|
||||
groups?: Array<number>;
|
||||
isEven?: boolean;
|
||||
disciplines?: Array<number>;
|
||||
professors?: Array<number>;
|
||||
lectureHalls?: Array<number>;
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* MIREA Schedule Web API
|
||||
* This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team.
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
* Contact: support@winsomnia.net
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a request to configure cache settings.
|
||||
*/
|
||||
export interface CacheRequest {
|
||||
/**
|
||||
* Gets or sets the server address.
|
||||
*/
|
||||
server: string;
|
||||
/**
|
||||
* Gets or sets the port number.
|
||||
*/
|
||||
port: number;
|
||||
/**
|
||||
* Gets or sets the password.
|
||||
*/
|
||||
password?: string;
|
||||
}
|
5
src/shared/requests/v1/configuration/cacheRequest.ts
Normal file
5
src/shared/requests/v1/configuration/cacheRequest.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface CacheRequest {
|
||||
server: string;
|
||||
port: number;
|
||||
password?: string;
|
||||
}
|
8
src/shared/requests/v1/configuration/databaseRequest.ts
Normal file
8
src/shared/requests/v1/configuration/databaseRequest.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export interface DatabaseRequest {
|
||||
server: string;
|
||||
port: number;
|
||||
database: string;
|
||||
user: string;
|
||||
ssl: boolean;
|
||||
password?: string;
|
||||
}
|
8
src/shared/requests/v1/configuration/emailRequest.ts
Normal file
8
src/shared/requests/v1/configuration/emailRequest.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export interface EmailRequest {
|
||||
server: string;
|
||||
from: string;
|
||||
password: string;
|
||||
port: number;
|
||||
ssl: boolean;
|
||||
user: string;
|
||||
}
|
5
src/shared/requests/v1/configuration/loggingRequest.ts
Normal file
5
src/shared/requests/v1/configuration/loggingRequest.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface LoggingRequest {
|
||||
enableLogToFile: boolean;
|
||||
logFileName?: string;
|
||||
logFilePath?: string;
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
export interface ScheduleConfigurationRequest {
|
||||
cronUpdateSchedule?: string;
|
||||
startTerm: string;
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
/**
|
||||
* MIREA Schedule Web API
|
||||
* This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team.
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
* Contact: support@winsomnia.net
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a request to configure the database connection settings.
|
||||
*/
|
||||
export interface DatabaseRequest {
|
||||
/**
|
||||
* Gets or sets the server address.
|
||||
*/
|
||||
server: string;
|
||||
/**
|
||||
* Gets or sets the port number.
|
||||
*/
|
||||
port: number;
|
||||
/**
|
||||
* Gets or sets the database name.
|
||||
*/
|
||||
database: string;
|
||||
/**
|
||||
* Gets or sets the username.
|
||||
*/
|
||||
user: string;
|
||||
/**
|
||||
* Gets or sets a value indicating whether SSL is enabled.
|
||||
*/
|
||||
ssl: boolean;
|
||||
/**
|
||||
* Gets or sets the password.
|
||||
*/
|
||||
password?: string;
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* MIREA Schedule Web API
|
||||
* This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team.
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
* Contact: support@winsomnia.net
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a request to configure logging settings.
|
||||
*/
|
||||
export interface LoggingRequest {
|
||||
/**
|
||||
* Gets or sets a value indicating whether logging to file is enabled.
|
||||
*/
|
||||
enableLogToFile: boolean;
|
||||
/**
|
||||
* Gets or sets the log file name.
|
||||
*/
|
||||
logFileName?: string;
|
||||
/**
|
||||
* Gets or sets the log file path.
|
||||
*/
|
||||
logFilePath?: string;
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
/**
|
||||
* MIREA Schedule Web API
|
||||
* This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team.
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
* Contact: support@winsomnia.net
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/**
|
||||
* Represents a request to configure the schedule settings.
|
||||
*/
|
||||
export interface ScheduleConfigurationRequest {
|
||||
/**
|
||||
* Gets or sets the cron expression for updating the schedule.
|
||||
*/
|
||||
cronUpdateSchedule?: string;
|
||||
/**
|
||||
* Gets or sets the start date of the term.
|
||||
*/
|
||||
startTerm: string;
|
||||
}
|
6
src/shared/requests/v1/twoFactorAuthRequest.ts
Normal file
6
src/shared/requests/v1/twoFactorAuthRequest.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import {TwoFactorAuthentication} from "@model/twoFactorAuthentication";
|
||||
|
||||
export interface TwoFactorAuthRequest {
|
||||
code: string;
|
||||
method: TwoFactorAuthentication;
|
||||
}
|
Reference in New Issue
Block a user