Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 9 additions & 31 deletions src/openapi/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ export interface components {
* Format: date-time
*/
update_ts: string;
/** User Fullname */
user_fullname?: string | null;
/** User Id */
user_id?: number | null;
/**
Expand All @@ -325,7 +327,7 @@ export interface components {
total: number;
};
/** CommentGetAllWithAllInfo */
"CommentGetAllWithAllInfo-Input": {
CommentGetAllWithAllInfo: {
/**
* Comments
* @default []
Expand All @@ -338,36 +340,8 @@ export interface components {
/** Total */
total: number;
};
/** CommentGetAllWithAllInfo */
"CommentGetAllWithAllInfo-Output": {
/**
* Comments
* @default []
*/
comments: components["schemas"]["CommentGetWithAllInfo"][];
/** Limit */
limit: number;
/** Offset */
offset: number;
/** Total */
total: number;
};
/** CommentGetAllWithStatus */
"CommentGetAllWithStatus-Input": {
/**
* Comments
* @default []
*/
comments: components["schemas"]["CommentGetWithStatus"][];
/** Limit */
limit: number;
/** Offset */
offset: number;
/** Total */
total: number;
};
/** CommentGetAllWithStatus */
"CommentGetAllWithStatus-Output": {
CommentGetAllWithStatus: {
/**
* Comments
* @default []
Expand Down Expand Up @@ -413,6 +387,8 @@ export interface components {
* Format: date-time
*/
update_ts: string;
/** User Fullname */
user_fullname?: string | null;
/** User Id */
user_id?: number | null;
/**
Expand Down Expand Up @@ -452,6 +428,8 @@ export interface components {
* Format: date-time
*/
update_ts: string;
/** User Fullname */
user_fullname?: string | null;
/** User Id */
user_id?: number | null;
/**
Expand Down Expand Up @@ -694,7 +672,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["CommentGetAll"] | components["schemas"]["CommentGetAllWithAllInfo-Output"] | components["schemas"]["CommentGetAllWithStatus-Output"];
"application/json": components["schemas"]["CommentGetAll"] | components["schemas"]["CommentGetAllWithAllInfo"] | components["schemas"]["CommentGetAllWithStatus"];
};
};
/** @description Validation Error */
Expand Down
116 changes: 116 additions & 0 deletions src/openapi/userdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,36 @@
*/

export interface paths {
"/userdata/admin/user/{user_id}": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get User Card
* @description Получает профсоюзную информацию пользователя.
*
* Скоупы: `["userdata.info.admin"]`
*/
get: operations["get_user_card_admin_user__user_id__get"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/**
* Update User Card
* @description Обновить данные в профсоюзной информации пользователя.
*
* Скоупы: `["userdata.info.admin"]`
*
* - **user_id**: id пользователя.
*/
patch: operations["update_user_card_admin_user__user_id__patch"];
trace?: never;
};
"/userdata/category": {
parameters: {
query?: never;
Expand Down Expand Up @@ -393,6 +423,26 @@ export interface components {
/** Status */
status: string;
};
/** UserCardGet */
UserCardGet: {
/** Full Name */
full_name?: string | null;
/** Is Union Member */
is_union_member: string;
/** Student Card Number */
student_card_number?: string | null;
/** Union Card Number */
union_card_number?: string | null;
/** User Id */
user_id: number;
};
/** UserCardUpdate */
UserCardUpdate: {
/** Full Name */
full_name?: string | null;
/** Student Card Number */
student_card_number?: string | null;
};
/** UserInfo */
UserInfo: {
/** Category */
Expand Down Expand Up @@ -446,6 +496,72 @@ export interface components {
}
export type $defs = Record<string, never>;
export interface operations {
get_user_card_admin_user__user_id__get: {
parameters: {
query?: never;
header?: never;
path: {
user_id: number;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["UserCardGet"];
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
update_user_card_admin_user__user_id__patch: {
parameters: {
query?: never;
header?: never;
path: {
user_id: number;
};
cookie?: never;
};
requestBody: {
content: {
"application/json": components["schemas"]["UserCardUpdate"];
};
};
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["StatusResponseModel"];
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
get_categories_category_get: {
parameters: {
query?: {
Expand Down