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
32 changes: 23 additions & 9 deletions src/openapi/rental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -274,6 +276,8 @@ export interface paths {
* Create Rental Session
* @description Создает новую сессию аренды для указанного типа предмета.
*
* Cкоупы: `["rental.session.create"]`
*
* :param item_type_id: Идентификатор типа предмета.
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand All @@ -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 */
Expand All @@ -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 */
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -1461,9 +1477,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
"application/json": {
[key: string]: unknown;
};
"application/json": components["schemas"]["StatusResponseModel"];
};
};
/** @description Validation Error */
Expand Down
19 changes: 16 additions & 3 deletions src/openapi/userdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */
Expand All @@ -333,6 +343,11 @@ export interface components {
ParamPost: {
/** Changeable */
changeable: boolean;
/**
* Is Public
* @default false
*/
is_public: boolean;
/** Is Required */
is_required: boolean;
/** Name */
Expand Down Expand Up @@ -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;
Expand Down