feat: add api models
This commit is contained in:
29
src/shared/requests/v1/cacheRequest.ts
Normal file
29
src/shared/requests/v1/cacheRequest.ts
Normal 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;
|
||||
}
|
29
src/shared/requests/v1/createUserRequest.ts
Normal file
29
src/shared/requests/v1/createUserRequest.ts
Normal 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;
|
||||
}
|
41
src/shared/requests/v1/databaseRequest.ts
Normal file
41
src/shared/requests/v1/databaseRequest.ts
Normal 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;
|
||||
}
|
29
src/shared/requests/v1/loggingRequest.ts
Normal file
29
src/shared/requests/v1/loggingRequest.ts
Normal 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;
|
||||
}
|
30
src/shared/requests/v1/scheduleConfigurationRequest.ts
Normal file
30
src/shared/requests/v1/scheduleConfigurationRequest.ts
Normal 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; };
|
||||
}
|
37
src/shared/requests/v1/scheduleRequest.ts
Normal file
37
src/shared/requests/v1/scheduleRequest.ts
Normal 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>;
|
||||
}
|
Reference in New Issue
Block a user