feat: add api models

This commit is contained in:
2024-06-05 21:36:51 +03:00
parent f1d0fdf31b
commit 58bdc6aa69
30 changed files with 854 additions and 7 deletions

@ -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
};

@ -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;
}