feat: add api models
This commit is contained in:
parent
f1d0fdf31b
commit
58bdc6aa69
@ -1,5 +0,0 @@
|
|||||||
export interface LectureHallResponse {
|
|
||||||
id: number,
|
|
||||||
name: string,
|
|
||||||
campusId: number
|
|
||||||
}
|
|
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>;
|
||||||
|
}
|
67
src/shared/responses/v1/disciplineScheduleInfo.ts
Normal file
67
src/shared/responses/v1/disciplineScheduleInfo.ts
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/**
|
||||||
|
* 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 '../../structs/dayOfWeek';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents information about a specific schedule entry for a professor.
|
||||||
|
*/
|
||||||
|
export interface DisciplineScheduleInfo {
|
||||||
|
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 type of occupation for the schedule entry.
|
||||||
|
*/
|
||||||
|
typeOfOccupation: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
group: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
groupId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHalls: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHallsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professors: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professorsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campus: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campusId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the links to online meetings for the schedule entry.
|
||||||
|
*/
|
||||||
|
linkToMeet: Array<string>;
|
||||||
|
}
|
30
src/shared/responses/v1/disciplineScheduleResponse.ts
Normal file
30
src/shared/responses/v1/disciplineScheduleResponse.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 { DisciplineScheduleInfo } from './disciplineScheduleInfo';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a response containing schedule information for a professor.
|
||||||
|
*/
|
||||||
|
export interface DisciplineScheduleResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the name of the discipline.
|
||||||
|
*/
|
||||||
|
discipline: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the ID of the discipline.
|
||||||
|
*/
|
||||||
|
disciplineId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the schedules for the professor.
|
||||||
|
*/
|
||||||
|
schedules: Array<DisciplineScheduleInfo>;
|
||||||
|
}
|
41
src/shared/responses/v1/emailRequest.ts
Normal file
41
src/shared/responses/v1/emailRequest.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 email settings.
|
||||||
|
*/
|
||||||
|
export interface EmailRequest {
|
||||||
|
/**
|
||||||
|
* Gets or sets the server address.
|
||||||
|
*/
|
||||||
|
server: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the email address from which emails will be sent.
|
||||||
|
*/
|
||||||
|
from: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the password for the email account.
|
||||||
|
*/
|
||||||
|
password: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the port number.
|
||||||
|
*/
|
||||||
|
port: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets a value indicating whether SSL is enabled.
|
||||||
|
*/
|
||||||
|
ssl: boolean;
|
||||||
|
/**
|
||||||
|
* Gets or sets the username.
|
||||||
|
*/
|
||||||
|
user: string;
|
||||||
|
}
|
75
src/shared/responses/v1/groupScheduleInfo.ts
Normal file
75
src/shared/responses/v1/groupScheduleInfo.ts
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
/**
|
||||||
|
* 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 '@/shared/structs/dayOfWeek';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents information about a specific schedule entry for a group.
|
||||||
|
*/
|
||||||
|
export interface GroupScheduleInfo {
|
||||||
|
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.GroupScheduleInfo.Discipline during the week or not depends on the Mirea.Api.Dto.Responses.Schedule.GroupScheduleInfo.IsExcludedWeeks property.
|
||||||
|
*/
|
||||||
|
weeks?: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the type of occupation for the schedule entry.
|
||||||
|
*/
|
||||||
|
typeOfOccupations: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHalls: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHallsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professors: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professorsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campus: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campusId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the links to online meetings for the schedule entry.
|
||||||
|
*/
|
||||||
|
linkToMeet: Array<string>;
|
||||||
|
}
|
30
src/shared/responses/v1/groupScheduleResponse.ts
Normal file
30
src/shared/responses/v1/groupScheduleResponse.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 { GroupScheduleInfo } from './groupScheduleInfo';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a response containing schedule information for a group.
|
||||||
|
*/
|
||||||
|
export interface GroupScheduleResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the name of the group.
|
||||||
|
*/
|
||||||
|
group: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the ID of the group.
|
||||||
|
*/
|
||||||
|
groupId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the schedules for the group.
|
||||||
|
*/
|
||||||
|
schedules: Array<GroupScheduleInfo>;
|
||||||
|
}
|
37
src/shared/responses/v1/lectureHallDetailsResponse.ts
Normal file
37
src/shared/responses/v1/lectureHallDetailsResponse.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 the detailed response model for a lecture hall.
|
||||||
|
*/
|
||||||
|
export interface LectureHallDetailsResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the ID of the lecture hall.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
29
src/shared/responses/v1/lectureHallResponse.ts
Normal file
29
src/shared/responses/v1/lectureHallResponse.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 the response model for a lecture hall.
|
||||||
|
*/
|
||||||
|
export interface LectureHallResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the ID of the lecture hall.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
76
src/shared/responses/v1/lectureHallScheduleInfo.ts
Normal file
76
src/shared/responses/v1/lectureHallScheduleInfo.ts
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/**
|
||||||
|
* 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 information about a specific schedule entry for a lecture hall.
|
||||||
|
*/
|
||||||
|
export interface LectureHallScheduleInfo {
|
||||||
|
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.LectureHallScheduleInfo.Discipline during the week or not depends on the Mirea.Api.Dto.Responses.Schedule.LectureHallScheduleInfo.IsExcludedWeeks property.
|
||||||
|
*/
|
||||||
|
weeks?: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the type of occupation for the schedule entry.
|
||||||
|
*/
|
||||||
|
typeOfOccupations: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
group: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
groupId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campus: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campusId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professors: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professorsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the links to online meetings for the schedule entry.
|
||||||
|
*/
|
||||||
|
linkToMeet: Array<string>;
|
||||||
|
}
|
30
src/shared/responses/v1/lectureHallScheduleResponse.ts
Normal file
30
src/shared/responses/v1/lectureHallScheduleResponse.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 { LectureHallScheduleInfo } from './lectureHallScheduleInfo';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a response containing schedule information for a lecture hall.
|
||||||
|
*/
|
||||||
|
export interface LectureHallScheduleResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the lecture halls.
|
||||||
|
*/
|
||||||
|
lectureHalls: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the lecture halls.
|
||||||
|
*/
|
||||||
|
lectureHallsId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the schedules for the lecture hall.
|
||||||
|
*/
|
||||||
|
schedules: Array<LectureHallScheduleInfo>;
|
||||||
|
}
|
76
src/shared/responses/v1/professorScheduleInfo.ts
Normal file
76
src/shared/responses/v1/professorScheduleInfo.ts
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/**
|
||||||
|
* 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 information about a specific schedule entry for a professor.
|
||||||
|
*/
|
||||||
|
export interface ProfessorScheduleInfo {
|
||||||
|
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.ProfessorScheduleInfo.Discipline during the week or not depends on the Mirea.Api.Dto.Responses.Schedule.ProfessorScheduleInfo.IsExcludedWeeks property.
|
||||||
|
*/
|
||||||
|
weeks?: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the type of occupation for the schedule entry.
|
||||||
|
*/
|
||||||
|
typeOfOccupations: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
group: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the group for the schedule entry.
|
||||||
|
*/
|
||||||
|
groupId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHalls: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHallsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campus: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campusId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the links to online meetings for the schedule entry.
|
||||||
|
*/
|
||||||
|
linkToMeet: Array<string>;
|
||||||
|
}
|
30
src/shared/responses/v1/professorScheduleResponse.ts
Normal file
30
src/shared/responses/v1/professorScheduleResponse.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 { ProfessorScheduleInfo } from './professorScheduleInfo';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a response containing schedule information for a professor.
|
||||||
|
*/
|
||||||
|
export interface ProfessorScheduleResponse {
|
||||||
|
/**
|
||||||
|
* Gets or sets the name of the professor.
|
||||||
|
*/
|
||||||
|
professor: string;
|
||||||
|
/**
|
||||||
|
* Gets or sets the ID of the professor.
|
||||||
|
*/
|
||||||
|
professorId: number;
|
||||||
|
/**
|
||||||
|
* Gets or sets the schedules for the professor.
|
||||||
|
*/
|
||||||
|
schedules: Array<ProfessorScheduleInfo>;
|
||||||
|
}
|
84
src/shared/responses/v1/scheduleResponse.ts
Normal file
84
src/shared/responses/v1/scheduleResponse.ts
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
/**
|
||||||
|
* 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<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the type of occupation for the schedule entry.
|
||||||
|
*/
|
||||||
|
typeOfOccupations: Array<string>;
|
||||||
|
/**
|
||||||
|
* 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<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the lecture halls for the schedule entry.
|
||||||
|
*/
|
||||||
|
lectureHallsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professors: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the professors for the schedule entry.
|
||||||
|
*/
|
||||||
|
professorsId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the names of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campus: Array<string>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the IDs of the campuses for the schedule entry.
|
||||||
|
*/
|
||||||
|
campusId: Array<number>;
|
||||||
|
/**
|
||||||
|
* Gets or sets the links to online meetings for the schedule entry.
|
||||||
|
*/
|
||||||
|
linkToMeet: Array<string>;
|
||||||
|
}
|
23
src/shared/structs/dayOfWeek.ts
Normal file
23
src/shared/structs/dayOfWeek.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* 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
|
||||||
|
};
|
29
src/shared/structs/pairPeriodTime.ts
Normal file
29
src/shared/structs/pairPeriodTime.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 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user