feat: add models from swagger

This commit is contained in:
Polianin Nikita 2024-02-17 08:56:35 +03:00
parent 73329f5b44
commit 807dbfc81e
9 changed files with 277 additions and 0 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 basic information about a campus.
*/
export interface CampusBasicInfoResponse {
/**
* Gets or sets the unique identifier of the campus.
*/
id: number;
/**
* Gets or sets the code name of the campus.
*/
codeName: string;
/**
* Gets or sets the full name of the campus (optional).
*/
fullName?: string;
}

View File

@ -0,0 +1,33 @@
/**
* 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 detailed information about a campus.
*/
export interface CampusDetailsResponse {
/**
* Gets or sets the unique identifier of the campus.
*/
id: number;
/**
* Gets or sets the code name of the campus.
*/
codeName: string;
/**
* Gets or sets the full name of the campus (optional).
*/
fullName?: string;
/**
* Gets or sets the address of the campus (optional).
*/
address?: string;
}

View File

@ -0,0 +1,25 @@
/**
* 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 information about a discipline.
*/
export interface DisciplineResponse {
/**
* Gets or sets the unique identifier of the discipline.
*/
id: number;
/**
* Gets or sets the name of the discipline.
*/
name: string;
}

View File

@ -0,0 +1,25 @@
/**
* 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.
*/
/**
* A class for providing information about an error
*/
export interface ErrorResponse {
/**
* The text or translation code of the error. This field may not contain information in specific scenarios. For example, it might be empty for HTTP 204 responses where no content is returned or if the validation texts have not been configured.
*/
error: string;
/**
* In addition to returning the response code in the header, it is also duplicated in this field. Represents the HTTP response code.
*/
code: number;
}

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 detailed information about a faculty.
*/
export interface FacultyDetailsResponse {
/**
* Gets or sets the unique identifier of the faculty.
*/
id: number;
/**
* Gets or sets the name of the faculty.
*/
name: string;
/**
* Gets or sets the unique identifier of the campus to which the faculty belongs (optional).
*/
campusId?: number;
/**
* Gets or sets the name of the campus to which the faculty belongs (optional).
*/
campusName?: string;
/**
* Gets or sets the code name of the campus to which the faculty belongs (optional).
*/
campusCode?: 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 basic information about a faculty.
*/
export interface FacultyResponse {
/**
* Gets or sets the unique identifier of the faculty.
*/
id: number;
/**
* Gets or sets the name of the faculty.
*/
name: string;
/**
* Gets or sets the unique identifier of the campus to which the faculty belongs (optional).
*/
campusId?: number;
}

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 detailed information about a group.
*/
export interface GroupDetailsResponse {
/**
* Gets or sets the unique identifier of the group.
*/
id: number;
/**
* Gets or sets the name of the group.
*/
name: string;
/**
* Gets or sets the course number of the group.
*/
courseNumber: number;
/**
* Gets or sets the unique identifier of the faculty to which the group belongs (optional).
*/
facultyId?: number;
/**
* Gets or sets the name of the faculty to which the group belongs (optional).
*/
facultyName?: string;
}

View File

@ -0,0 +1,33 @@
/**
* 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 basic information about a group.
*/
export interface GroupResponse {
/**
* Gets or sets the unique identifier of the group.
*/
id: number;
/**
* Gets or sets the name of the group.
*/
name: string;
/**
* Gets or sets the course number of the group.
*/
courseNumber: number;
/**
* Gets or sets the unique identifier of the faculty to which the group belongs (optional).
*/
facultyId?: number;
}

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 information about a professor.
*/
export interface ProfessorResponse {
/**
* Gets or sets the unique identifier of the professor.
*/
id: number;
/**
* Gets or sets the name of the professor.
*/
name: string;
/**
* Gets or sets the alternate name of the professor (optional).
*/
altName?: string;
}