Skip to content

Commit fd12c12

Browse files
API codegen update (#21) (#22)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 105f6d2 commit fd12c12

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

src/openapi/rental.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export interface paths {
248248
* - **is_overdue**: Filter by overdue sessions.
249249
* - **is_returned**: Filter by returned sessions.
250250
* - **is_active**: Filter by active sessions.
251+
* - **is_expired**: Filter by expired sessions.
251252
* - **user_id**: User_id to get sessions
252253
* Returns a list of rental sessions.
253254
*/
@@ -272,6 +273,8 @@ export interface paths {
272273
/**
273274
* Create Rental Session
274275
* @description Создает новую сессию аренды для указанного типа предмета.
276+
*
277+
* :param item_type_id: Идентификатор типа предмета.
275278
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
276279
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
277280
*/
@@ -415,6 +418,7 @@ export interface paths {
415418
* - **is_overdue**: Filter by overdue sessions.
416419
* - **is_returned**: Filter by returned sessions.
417420
* - **is_active**: Filter by active sessions.
421+
* - **is_expired**: Filter by expired sessions.
418422
* Returns a list of rental sessions.
419423
*/
420424
get: operations["get_my_sessions_rental_sessions_user_me_get"];
@@ -633,6 +637,8 @@ export interface components {
633637
strike_id?: number | null;
634638
/** User Id */
635639
user_id: number;
640+
/** User Phone */
641+
user_phone?: string | null;
636642
};
637643
/** RentalSessionPatch */
638644
RentalSessionPatch: {
@@ -1084,21 +1090,23 @@ export interface operations {
10841090
get_rental_sessions_rental_sessions_get: {
10851091
parameters: {
10861092
query?: {
1087-
/** @description Filter by active sessions. */
1093+
/** @description Флаг, показывать активные */
10881094
is_active?: boolean;
1089-
/** @description Filter by canceled sessions. */
1095+
/** @description Флаг, показывать отмененные */
10901096
is_canceled?: boolean;
1091-
/** @description Filter by dismissed sessions. */
1097+
/** @description Флаг, показывать отклоненные */
10921098
is_dismissed?: boolean;
1093-
/** @description Filter by overdue sessions. */
1099+
/** @description Флаг, показывать просроченные */
1100+
is_expired?: boolean;
1101+
/** @description Флаг, показывать просроченные */
10941102
is_overdue?: boolean;
1095-
/** @description Filter by reserved sessions. */
1103+
/** @description флаг, показывать заявки */
10961104
is_reserved?: boolean;
1097-
/** @description Filter by returned sessions. */
1105+
/** @description Флаг, показывать вернутые */
10981106
is_returned?: boolean;
1099-
/** @description Item_type_id to get sessions */
1107+
/** @description ID типа предмета */
11001108
item_type_id?: number;
1101-
/** @description User_id to get sessions */
1109+
/** @description User_id для получения сессий */
11021110
user_id?: number;
11031111
};
11041112
header?: never;
@@ -1332,6 +1340,8 @@ export interface operations {
13321340
/** @description Флаг, показывать отклоненные */
13331341
is_dismissed?: boolean;
13341342
/** @description Флаг, показывать просроченные */
1343+
is_expired?: boolean;
1344+
/** @description Флаг, показывать просроченные */
13351345
is_overdue?: boolean;
13361346
/** @description флаг, показывать заявки */
13371347
is_reserved?: boolean;

0 commit comments

Comments
 (0)