feat: add models from swagger
This commit is contained in:
parent
73329f5b44
commit
807dbfc81e
29
src/shared/campusBasicInfoResponse.ts
Normal file
29
src/shared/campusBasicInfoResponse.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 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;
|
||||||
|
}
|
33
src/shared/campusDetailsResponse.ts
Normal file
33
src/shared/campusDetailsResponse.ts
Normal 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;
|
||||||
|
}
|
25
src/shared/disciplineResponse.ts
Normal file
25
src/shared/disciplineResponse.ts
Normal 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;
|
||||||
|
}
|
25
src/shared/errorResponse.ts
Normal file
25
src/shared/errorResponse.ts
Normal 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;
|
||||||
|
}
|
37
src/shared/facultyDetailsResponse.ts
Normal file
37
src/shared/facultyDetailsResponse.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 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;
|
||||||
|
}
|
29
src/shared/facultyResponse.ts
Normal file
29
src/shared/facultyResponse.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 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;
|
||||||
|
}
|
37
src/shared/groupDetailsResponse.ts
Normal file
37
src/shared/groupDetailsResponse.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 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;
|
||||||
|
}
|
33
src/shared/groupResponse.ts
Normal file
33
src/shared/groupResponse.ts
Normal 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;
|
||||||
|
}
|
29
src/shared/professorResponse.ts
Normal file
29
src/shared/professorResponse.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 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user