diff --git a/src/shared/requests/v1/createUserRequest.ts b/src/shared/requests/v1/createUserRequest.ts index 8afb2d2..12c9f7c 100644 --- a/src/shared/requests/v1/createUserRequest.ts +++ b/src/shared/requests/v1/createUserRequest.ts @@ -1,29 +1,5 @@ -/** - * 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. - */ +export interface CreateUserRequest { email: string; - /** - * Gets or sets the username of the user. - */ username: string; - /** - * Gets or sets the password of the user. - */ password: string; -} \ No newline at end of file +} diff --git a/src/shared/requests/v1/loginRequest.ts b/src/shared/requests/v1/loginRequest.ts index 7f019ac..eb97118 100644 --- a/src/shared/requests/v1/loginRequest.ts +++ b/src/shared/requests/v1/loginRequest.ts @@ -1,25 +1,4 @@ -/** - * 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. - */ - -/** - * - */ export interface LoginRequest { - /** - * - */ username: string; - /** - * - */ - password: number; + password: string; } diff --git a/src/shared/requests/v1/scheduleRequest.ts b/src/shared/requests/v1/scheduleRequest.ts index 6fa3e96..741f70e 100644 --- a/src/shared/requests/v1/scheduleRequest.ts +++ b/src/shared/requests/v1/scheduleRequest.ts @@ -1,37 +1,7 @@ -/** - * 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; - /** - * 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; - /** - * Gets or sets an array of professor IDs. - */ - professors?: Array; - /** - * Gets or sets an array of lecture hall IDs. - */ - lectureHalls?: Array; + groups?: Array; + isEven?: boolean; + disciplines?: Array; + professors?: Array; + lectureHalls?: Array; } diff --git a/src/shared/responses/v1/campusBasicInfoResponse.ts b/src/shared/responses/v1/campusBasicInfoResponse.ts index 0395b76..f7734c3 100644 --- a/src/shared/responses/v1/campusBasicInfoResponse.ts +++ b/src/shared/responses/v1/campusBasicInfoResponse.ts @@ -1,29 +1,5 @@ -/** - * 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. - */ +export interface CampusBasicInfoResponse { 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/responses/v1/campusDetailsResponse.ts b/src/shared/responses/v1/campusDetailsResponse.ts index 20b2407..cd9af12 100644 --- a/src/shared/responses/v1/campusDetailsResponse.ts +++ b/src/shared/responses/v1/campusDetailsResponse.ts @@ -1,33 +1,6 @@ -/** - * 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; } diff --git a/src/shared/responses/v1/disciplineResponse.ts b/src/shared/responses/v1/disciplineResponse.ts index c2cf22c..e84be6b 100644 --- a/src/shared/responses/v1/disciplineResponse.ts +++ b/src/shared/responses/v1/disciplineResponse.ts @@ -1,25 +1,4 @@ -/** - * 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. - */ +export interface DisciplineResponse { id: number; - /** - * Gets or sets the name of the discipline. - */ name: string; -} \ No newline at end of file +} diff --git a/src/shared/responses/v1/errorResponse.ts b/src/shared/responses/v1/errorResponse.ts index 80c55eb..64f24ff 100644 --- a/src/shared/responses/v1/errorResponse.ts +++ b/src/shared/responses/v1/errorResponse.ts @@ -1,25 +1,4 @@ -/** - * 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. - */ +export interface ErrorResponse { 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/responses/v1/facultyResponse.ts b/src/shared/responses/v1/facultyResponse.ts index c8327c1..33970ef 100644 --- a/src/shared/responses/v1/facultyResponse.ts +++ b/src/shared/responses/v1/facultyResponse.ts @@ -1,25 +1,4 @@ -/** - * 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; } diff --git a/src/shared/responses/v1/groupDetailsResponse.ts b/src/shared/responses/v1/groupDetailsResponse.ts index bc63ae5..c65397a 100644 --- a/src/shared/responses/v1/groupDetailsResponse.ts +++ b/src/shared/responses/v1/groupDetailsResponse.ts @@ -1,37 +1,7 @@ -/** - * 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. - */ +export interface GroupDetailsResponse { 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/responses/v1/groupResponse.ts b/src/shared/responses/v1/groupResponse.ts index 1ccd6a2..1f87bc9 100644 --- a/src/shared/responses/v1/groupResponse.ts +++ b/src/shared/responses/v1/groupResponse.ts @@ -1,33 +1,6 @@ -/** - * 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. - */ +export interface GroupResponse { 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/responses/v1/lectureHallDetailsResponse.ts b/src/shared/responses/v1/lectureHallDetailsResponse.ts index ec9defe..f731fcf 100644 --- a/src/shared/responses/v1/lectureHallDetailsResponse.ts +++ b/src/shared/responses/v1/lectureHallDetailsResponse.ts @@ -1,37 +1,7 @@ -/** - * 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 the detailed response model for a lecture hall. - */ -export interface LectureHallDetailsResponse { - /** - * Gets or sets the ID of the lecture hall. - */ +export interface LectureHallDetailsResponse { id: number; - /** - * Gets or sets the name of the lecture hall. - */ name: string; - /** - * Gets or sets the ID of the campus to which the lecture hall belongs. - */ campusId: number; - /** - * Gets or sets the name of the campus. - */ campusName?: string; - /** - * Gets or sets the code of the campus. - */ campusCode?: string; -} \ No newline at end of file +} diff --git a/src/shared/responses/v1/lectureHallResponse.ts b/src/shared/responses/v1/lectureHallResponse.ts index 4aa5e62..d951d85 100644 --- a/src/shared/responses/v1/lectureHallResponse.ts +++ b/src/shared/responses/v1/lectureHallResponse.ts @@ -1,29 +1,5 @@ -/** - * 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 the response model for a lecture hall. - */ -export interface LectureHallResponse { - /** - * Gets or sets the ID of the lecture hall. - */ +export interface LectureHallResponse { id: number; - /** - * Gets or sets the name of the lecture hall. - */ name: string; - /** - * Gets or sets the ID of the campus to which the lecture hall belongs. - */ campusId: number; -} \ No newline at end of file +} diff --git a/src/shared/responses/v1/professorResponse.ts b/src/shared/responses/v1/professorResponse.ts index c261b8a..50ad14d 100644 --- a/src/shared/responses/v1/professorResponse.ts +++ b/src/shared/responses/v1/professorResponse.ts @@ -1,29 +1,5 @@ -/** - * 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. - */ +export interface ProfessorResponse { 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 +} diff --git a/src/shared/responses/v1/scheduleResponse.ts b/src/shared/responses/v1/scheduleResponse.ts index ed9a6ab..23dea16 100644 --- a/src/shared/responses/v1/scheduleResponse.ts +++ b/src/shared/responses/v1/scheduleResponse.ts @@ -1,84 +1,21 @@ -/** - * 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 {DayOfWeek} from "@model/dayOfWeek"; -/** - * Represents a response object containing schedule information. - */ export interface ScheduleResponse { dayOfWeek: DayOfWeek; - /** - * Gets or sets the pair number for the schedule entry. - */ pairNumber: number; - /** - * Gets or sets a value indicating whether the pair is on an even week. - */ isEven: boolean; - /** - * Gets or sets the name of the discipline for the schedule entry. - */ discipline: string; - /** - * Gets or sets the ID of the discipline for the schedule entry. - */ disciplineId: number; - /** - * Gets or sets exclude or include weeks for a specific discipline. - */ isExcludedWeeks?: boolean; - /** - * The week numbers required for the correct display of the schedule. Whether there will be Mirea.Api.Dto.Responses.Schedule.ScheduleResponse.Discipline during the week or not depends on the Mirea.Api.Dto.Responses.Schedule.ScheduleResponse.IsExcludedWeeks property. - */ weeks?: Array; - /** - * Gets or sets the type of occupation for the schedule entry. - */ typeOfOccupations: Array; - /** - * Gets or sets the name of the group for the schedule entry. - */ group: string; - /** - * Gets or sets the ID of the group for the schedule entry. - */ groupId: number; - /** - * Gets or sets the names of the lecture halls for the schedule entry. - */ - lectureHalls: Array; - /** - * Gets or sets the IDs of the lecture halls for the schedule entry. - */ - lectureHallsId: Array; - /** - * Gets or sets the names of the professors for the schedule entry. - */ - professors: Array; - /** - * Gets or sets the IDs of the professors for the schedule entry. - */ - professorsId: Array; - /** - * Gets or sets the names of the campuses for the schedule entry. - */ - campus: Array; - /** - * Gets or sets the IDs of the campuses for the schedule entry. - */ - campusId: Array; - /** - * Gets or sets the links to online meetings for the schedule entry. - */ - linkToMeet: Array; + lectureHalls: Array; + lectureHallsId: Array; + professors: Array; + professorsId: Array; + campus: Array; + campusId: Array; + linkToMeet: Array; } diff --git a/src/shared/structs/dayOfWeek.ts b/src/shared/structs/dayOfWeek.ts index 3fd0c8f..2bbafb7 100644 --- a/src/shared/structs/dayOfWeek.ts +++ b/src/shared/structs/dayOfWeek.ts @@ -1,23 +1,9 @@ -/** - * 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. - */ - -export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6; - -export const DayOfWeek = { - NUMBER_0: 0 as DayOfWeek, - NUMBER_1: 1 as DayOfWeek, - NUMBER_2: 2 as DayOfWeek, - NUMBER_3: 3 as DayOfWeek, - NUMBER_4: 4 as DayOfWeek, - NUMBER_5: 5 as DayOfWeek, - NUMBER_6: 6 as DayOfWeek -}; \ No newline at end of file +export enum DayOfWeek { + Sunday, + Monday, + Tuesday, + Wednesday, + Thursday, + Friday, + Saturday +} diff --git a/src/shared/structs/pairPeriodTime.ts b/src/shared/structs/pairPeriodTime.ts index ce43f81..378933d 100644 --- a/src/shared/structs/pairPeriodTime.ts +++ b/src/shared/structs/pairPeriodTime.ts @@ -1,29 +1,4 @@ -/** - * 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 pair of time periods. - */ export interface PairPeriodTime { - /** - * Gets or sets the start time of the period. - */ start: string; - /** - * Gets or sets the end time of the period. - */ end: string; } - -export interface PeriodTimes { - [key: string]: PairPeriodTime; -}