From 807dbfc81ed583cef3a8a35dda3e82be4a032fab Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 17 Feb 2024 08:56:35 +0300 Subject: [PATCH] feat: add models from swagger --- src/shared/campusBasicInfoResponse.ts | 29 +++++++++++++++++++++ src/shared/campusDetailsResponse.ts | 33 ++++++++++++++++++++++++ src/shared/disciplineResponse.ts | 25 ++++++++++++++++++ src/shared/errorResponse.ts | 25 ++++++++++++++++++ src/shared/facultyDetailsResponse.ts | 37 +++++++++++++++++++++++++++ src/shared/facultyResponse.ts | 29 +++++++++++++++++++++ src/shared/groupDetailsResponse.ts | 37 +++++++++++++++++++++++++++ src/shared/groupResponse.ts | 33 ++++++++++++++++++++++++ src/shared/professorResponse.ts | 29 +++++++++++++++++++++ 9 files changed, 277 insertions(+) create mode 100644 src/shared/campusBasicInfoResponse.ts create mode 100644 src/shared/campusDetailsResponse.ts create mode 100644 src/shared/disciplineResponse.ts create mode 100644 src/shared/errorResponse.ts create mode 100644 src/shared/facultyDetailsResponse.ts create mode 100644 src/shared/facultyResponse.ts create mode 100644 src/shared/groupDetailsResponse.ts create mode 100644 src/shared/groupResponse.ts create mode 100644 src/shared/professorResponse.ts diff --git a/src/shared/campusBasicInfoResponse.ts b/src/shared/campusBasicInfoResponse.ts new file mode 100644 index 0000000..0395b76 --- /dev/null +++ b/src/shared/campusBasicInfoResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/campusDetailsResponse.ts b/src/shared/campusDetailsResponse.ts new file mode 100644 index 0000000..0af7cd5 --- /dev/null +++ b/src/shared/campusDetailsResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/disciplineResponse.ts b/src/shared/disciplineResponse.ts new file mode 100644 index 0000000..c2cf22c --- /dev/null +++ b/src/shared/disciplineResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/errorResponse.ts b/src/shared/errorResponse.ts new file mode 100644 index 0000000..80c55eb --- /dev/null +++ b/src/shared/errorResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/facultyDetailsResponse.ts b/src/shared/facultyDetailsResponse.ts new file mode 100644 index 0000000..550dc89 --- /dev/null +++ b/src/shared/facultyDetailsResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/facultyResponse.ts b/src/shared/facultyResponse.ts new file mode 100644 index 0000000..3865340 --- /dev/null +++ b/src/shared/facultyResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/groupDetailsResponse.ts b/src/shared/groupDetailsResponse.ts new file mode 100644 index 0000000..bc63ae5 --- /dev/null +++ b/src/shared/groupDetailsResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/groupResponse.ts b/src/shared/groupResponse.ts new file mode 100644 index 0000000..1ccd6a2 --- /dev/null +++ b/src/shared/groupResponse.ts @@ -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; +} \ No newline at end of file diff --git a/src/shared/professorResponse.ts b/src/shared/professorResponse.ts new file mode 100644 index 0000000..c261b8a --- /dev/null +++ b/src/shared/professorResponse.ts @@ -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; +} \ No newline at end of file