feat: add api models

This commit is contained in:
2024-06-05 21:36:51 +03:00
parent f1d0fdf31b
commit 58bdc6aa69
30 changed files with 854 additions and 7 deletions

View File

@ -0,0 +1,29 @@
/**
* 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,29 @@
/**
* 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.
*/
/**
* Request model for creating a user.
*/
export interface CreateUserRequest {
/**
* Gets or sets the email address of the user.
*/
email: string;
/**
* Gets or sets the username of the user.
*/
username: string;
/**
* Gets or sets the password of the user.
*/
password: string;
}

View File

@ -0,0 +1,41 @@
/**
* 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

@ -0,0 +1,29 @@
/**
* 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

@ -0,0 +1,30 @@
/**
* 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.
*/
import {PairPeriodTime} from "@model/pairPeriodTime";
/**
* 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;
/**
* Gets or sets the pair period times, keyed by pair number.
*/
pairPeriod: { [key: string]: PairPeriodTime; };
}

View File

@ -0,0 +1,37 @@
/**
* 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 object for retrieving schedules based on various filters.
*/
export interface ScheduleRequest {
/**
* Gets or sets an array of group IDs.
*/
groups?: Array<number>;
/**
* Gets or sets a value indicating whether to retrieve schedules for even weeks.
*/
isEven?: boolean;
/**
* Gets or sets an array of discipline IDs.
*/
disciplines?: Array<number>;
/**
* Gets or sets an array of professor IDs.
*/
professors?: Array<number>;
/**
* Gets or sets an array of lecture hall IDs.
*/
lectureHalls?: Array<number>;
}