refactor: adapt models to the new api

This commit is contained in:
2024-12-18 06:48:51 +03:00
parent 99958a2383
commit 21f89132ff
37 changed files with 199 additions and 189 deletions

View File

@ -0,0 +1,5 @@
export interface CreateUserRequest {
email: string;
username: string;
password: string;
}

View File

@ -0,0 +1,4 @@
export interface LoginRequest {
username: string;
password: string;
}

View File

@ -0,0 +1,7 @@
export interface ScheduleRequest {
groups?: Array<number>;
isEven?: boolean;
disciplines?: Array<number>;
professors?: Array<number>;
lectureHalls?: Array<number>;
}

View File

@ -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;
}

View File

@ -0,0 +1,5 @@
export interface CacheRequest {
server: string;
port: number;
password?: string;
}

View File

@ -0,0 +1,8 @@
export interface DatabaseRequest {
server: string;
port: number;
database: string;
user: string;
ssl: boolean;
password?: string;
}

View File

@ -0,0 +1,8 @@
export interface EmailRequest {
server: string;
from: string;
password: string;
port: number;
ssl: boolean;
user: string;
}

View File

@ -0,0 +1,5 @@
export interface LoggingRequest {
enableLogToFile: boolean;
logFileName?: string;
logFilePath?: string;
}

View File

@ -0,0 +1,4 @@
export interface ScheduleConfigurationRequest {
cronUpdateSchedule?: string;
startTerm: string;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -0,0 +1,6 @@
import {TwoFactorAuthentication} from "@model/twoFactorAuthentication";
export interface TwoFactorAuthRequest {
code: string;
method: TwoFactorAuthentication;
}