From 6fbb52eb5c185e8931893e9ca376c2c338b629b9 Mon Sep 17 00:00:00 2001 From: BatuevIO <124889562+BatuevIO@users.noreply.github.com> Date: Wed, 15 Oct 2025 18:10:30 +0000 Subject: [PATCH] API codegen update --- src/openapi/rental.ts | 32 +++++++++++++++++++++++--------- src/openapi/userdata.ts | 19 ++++++++++++++++--- 2 files changed, 39 insertions(+), 12 deletions(-) diff --git a/src/openapi/rental.ts b/src/openapi/rental.ts index 9dd5ab4..0c81bc9 100644 --- a/src/openapi/rental.ts +++ b/src/openapi/rental.ts @@ -177,6 +177,8 @@ export interface paths { * Returns a status response. * * Raises **ObjectNotFound** if the item type with the specified ID is not found. + * + * Raises **ForbiddenAction** if the item type with the specified ID has items. */ delete: operations["delete_item_type_itemtype__id__delete"]; options?: never; @@ -274,6 +276,8 @@ export interface paths { * Create Rental Session * @description Создает новую сессию аренды для указанного типа предмета. * + * Cкоупы: `["rental.session.create"]` + * * :param item_type_id: Идентификатор типа предмета. * :raises NoneAvailable: Если нет доступных предметов указанного типа. * :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета. @@ -463,6 +467,8 @@ export interface paths { * - **strike_info**: The data for the new strike. * * Returns the created strike. + * + * If session does not exist returns ObjectNotFound. */ post: operations["create_strike_strike_post"]; delete?: never; @@ -587,12 +593,15 @@ export interface components { }; /** ItemTypeGet */ ItemTypeGet: { - /** Availability */ - availability?: boolean | null; + /** + * Availability + * @default false + */ + availability: boolean; + /** Available Items Count */ + available_items_count?: number | null; /** Description */ description?: string | null; - /** Free Items Count */ - free_items_count?: number | null; /** Id */ id: number; /** Image Url */ @@ -617,6 +626,8 @@ export interface components { admin_close_id: number | null; /** Admin Open Id */ admin_open_id: number | null; + /** Deadline Ts */ + deadline_ts?: string | null; /** End Ts */ end_ts: string | null; /** Id */ @@ -635,6 +646,8 @@ export interface components { status: components["schemas"]["RentStatus"]; /** Strike Id */ strike_id?: number | null; + /** User Fullname */ + user_fullname?: string | null; /** User Id */ user_id: number; /** User Phone */ @@ -1301,10 +1314,13 @@ export interface operations { }; start_rental_session_rental_sessions__session_id__start_patch: { parameters: { - query?: never; + query?: { + /** @description Deadline timestamp */ + deadline_ts?: string | null; + }; header?: never; path: { - session_id: number; + session_id: unknown; }; cookie?: never; }; @@ -1461,9 +1477,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": { - [key: string]: unknown; - }; + "application/json": components["schemas"]["StatusResponseModel"]; }; }; /** @description Validation Error */ diff --git a/src/openapi/userdata.ts b/src/openapi/userdata.ts index 7572341..f272421 100644 --- a/src/openapi/userdata.ts +++ b/src/openapi/userdata.ts @@ -299,6 +299,11 @@ export interface components { changeable: boolean; /** Id */ id: number; + /** + * Is Public + * @default false + */ + is_public: boolean; /** Is Required */ is_required: boolean; /** Name */ @@ -316,6 +321,11 @@ export interface components { ParamPatch: { /** Changeable */ changeable?: boolean | null; + /** + * Is Public + * @default false + */ + is_public: boolean; /** Is Required */ is_required?: boolean | null; /** Name */ @@ -333,6 +343,11 @@ export interface components { ParamPost: { /** Changeable */ changeable: boolean; + /** + * Is Public + * @default false + */ + is_public: boolean; /** Is Required */ is_required: boolean; /** Name */ @@ -943,9 +958,7 @@ export interface operations { }; get_user_info_user__id__get: { parameters: { - query?: { - additional_data?: number[]; - }; + query?: never; header?: never; path: { id: number;