Skip to content

Commit af671f6

Browse files
API codegen update (#11)
Co-authored-by: BatuevIO <124889562+BatuevIO@users.noreply.github.com>
1 parent 704ae7c commit af671f6

3 files changed

Lines changed: 212 additions & 5 deletions

File tree

src/openapi/auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,8 @@ export interface components {
15771577
expires?: string | null;
15781578
/** Id */
15791579
id: number;
1580+
/** Is Unbounded */
1581+
is_unbounded?: boolean | null;
15801582
/**
15811583
* Last Activity
15821584
* Format: date-time
@@ -1745,6 +1747,8 @@ export interface components {
17451747
SessionPost: {
17461748
/** Expires */
17471749
expires?: string | null;
1750+
/** Is Unbounded */
1751+
is_unbounded?: boolean | null;
17481752
/**
17491753
* Scopes
17501754
* @default []

src/openapi/rating.ts

Lines changed: 93 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ export interface paths {
3333
put?: never;
3434
/**
3535
* Create Comment
36-
* @description Создает комментарий к преподавателю в базе данных RatingAPI
36+
* @description Scopes: `["rating.comment.import"]`
37+
* Создает комментарий к преподавателю в базе данных RatingAPI
3738
* Для создания комментария нужно быть авторизованным
39+
*
40+
* Для возможности создания комментария с указанием времени создания и изменения необходим скоуп ["rating.comment.import"]
3841
*/
3942
post: operations["create_comment_comment_post"];
4043
delete?: never;
@@ -78,6 +81,27 @@ export interface paths {
7881
patch: operations["review_comment_comment__uuid__patch"];
7982
trace?: never;
8083
};
84+
"/rating/comment/import": {
85+
parameters: {
86+
query?: never;
87+
header?: never;
88+
path?: never;
89+
cookie?: never;
90+
};
91+
get?: never;
92+
put?: never;
93+
/**
94+
* Import Comments
95+
* @description Scopes: `["rating.comment.import"]`
96+
* Создает комментарии в базе данных RatingAPI
97+
*/
98+
post: operations["import_comments_comment_import_post"];
99+
delete?: never;
100+
options?: never;
101+
head?: never;
102+
patch?: never;
103+
trace?: never;
104+
};
81105
"/rating/lecturer": {
82106
parameters: {
83107
query?: never;
@@ -183,7 +207,7 @@ export interface components {
183207
/** Mark Kindness */
184208
mark_kindness: number;
185209
/** Subject */
186-
subject: string;
210+
subject?: string | null;
187211
/** Text */
188212
text: string;
189213
/**
@@ -213,8 +237,39 @@ export interface components {
213237
/** Total */
214238
total: number;
215239
};
240+
/** CommentImport */
241+
CommentImport: {
242+
/** Create Ts */
243+
create_ts?: string | null;
244+
/**
245+
* Is Anonymous
246+
* @default true
247+
*/
248+
is_anonymous: boolean;
249+
/** Lecturer Id */
250+
lecturer_id: number;
251+
/** Mark Clarity */
252+
mark_clarity: number;
253+
/** Mark Freebie */
254+
mark_freebie: number;
255+
/** Mark Kindness */
256+
mark_kindness: number;
257+
/** Subject */
258+
subject?: string | null;
259+
/** Text */
260+
text: string;
261+
/** Update Ts */
262+
update_ts?: string | null;
263+
};
264+
/** CommentImportAll */
265+
CommentImportAll: {
266+
/** Comments */
267+
comments: components["schemas"]["CommentImport"][];
268+
};
216269
/** CommentPost */
217270
CommentPost: {
271+
/** Create Ts */
272+
create_ts?: string | null;
218273
/**
219274
* Is Anonymous
220275
* @default true
@@ -230,6 +285,8 @@ export interface components {
230285
subject: string;
231286
/** Text */
232287
text: string;
288+
/** Update Ts */
289+
update_ts?: string | null;
233290
};
234291
/** HTTPValidationError */
235292
HTTPValidationError: {
@@ -301,7 +358,7 @@ export interface components {
301358
/** Middle Name */
302359
middle_name: string;
303360
/** Timetable Id */
304-
timetable_id: number;
361+
timetable_id?: number | null;
305362
};
306363
/** StatusResponseModel */
307364
StatusResponseModel: {
@@ -496,6 +553,39 @@ export interface operations {
496553
};
497554
};
498555
};
556+
import_comments_comment_import_post: {
557+
parameters: {
558+
query?: never;
559+
header?: never;
560+
path?: never;
561+
cookie?: never;
562+
};
563+
requestBody: {
564+
content: {
565+
"application/json": components["schemas"]["CommentImportAll"];
566+
};
567+
};
568+
responses: {
569+
/** @description Successful Response */
570+
200: {
571+
headers: {
572+
[name: string]: unknown;
573+
};
574+
content: {
575+
"application/json": components["schemas"]["CommentGetAll"];
576+
};
577+
};
578+
/** @description Validation Error */
579+
422: {
580+
headers: {
581+
[name: string]: unknown;
582+
};
583+
content: {
584+
"application/json": components["schemas"]["HTTPValidationError"];
585+
};
586+
};
587+
};
588+
};
499589
get_lecturers_lecturer_get: {
500590
parameters: {
501591
query?: {

0 commit comments

Comments
 (0)