@profcomff/api-uilib 2025.9.18 → 2025.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/openapi/rental.ts +41 -17
- package/src/openapi/userdata.ts +16 -3
package/package.json
CHANGED
package/src/openapi/rental.ts
CHANGED
|
@@ -177,6 +177,8 @@ export interface paths {
|
|
|
177
177
|
* Returns a status response.
|
|
178
178
|
*
|
|
179
179
|
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
180
|
+
*
|
|
181
|
+
* Raises **ForbiddenAction** if the item type with the specified ID has items.
|
|
180
182
|
*/
|
|
181
183
|
delete: operations["delete_item_type_itemtype__id__delete"];
|
|
182
184
|
options?: never;
|
|
@@ -248,6 +250,7 @@ export interface paths {
|
|
|
248
250
|
* - **is_overdue**: Filter by overdue sessions.
|
|
249
251
|
* - **is_returned**: Filter by returned sessions.
|
|
250
252
|
* - **is_active**: Filter by active sessions.
|
|
253
|
+
* - **is_expired**: Filter by expired sessions.
|
|
251
254
|
* - **user_id**: User_id to get sessions
|
|
252
255
|
* Returns a list of rental sessions.
|
|
253
256
|
*/
|
|
@@ -272,6 +275,10 @@ export interface paths {
|
|
|
272
275
|
/**
|
|
273
276
|
* Create Rental Session
|
|
274
277
|
* @description Создает новую сессию аренды для указанного типа предмета.
|
|
278
|
+
*
|
|
279
|
+
* Cкоупы: `["rental.session.create"]`
|
|
280
|
+
*
|
|
281
|
+
* :param item_type_id: Идентификатор типа предмета.
|
|
275
282
|
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
276
283
|
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
|
|
277
284
|
*/
|
|
@@ -415,6 +422,7 @@ export interface paths {
|
|
|
415
422
|
* - **is_overdue**: Filter by overdue sessions.
|
|
416
423
|
* - **is_returned**: Filter by returned sessions.
|
|
417
424
|
* - **is_active**: Filter by active sessions.
|
|
425
|
+
* - **is_expired**: Filter by expired sessions.
|
|
418
426
|
* Returns a list of rental sessions.
|
|
419
427
|
*/
|
|
420
428
|
get: operations["get_my_sessions_rental_sessions_user_me_get"];
|
|
@@ -459,6 +467,8 @@ export interface paths {
|
|
|
459
467
|
* - **strike_info**: The data for the new strike.
|
|
460
468
|
*
|
|
461
469
|
* Returns the created strike.
|
|
470
|
+
*
|
|
471
|
+
* If session does not exist returns ObjectNotFound.
|
|
462
472
|
*/
|
|
463
473
|
post: operations["create_strike_strike_post"];
|
|
464
474
|
delete?: never;
|
|
@@ -583,12 +593,15 @@ export interface components {
|
|
|
583
593
|
};
|
|
584
594
|
/** ItemTypeGet */
|
|
585
595
|
ItemTypeGet: {
|
|
586
|
-
/**
|
|
587
|
-
|
|
596
|
+
/**
|
|
597
|
+
* Availability
|
|
598
|
+
* @default false
|
|
599
|
+
*/
|
|
600
|
+
availability: boolean;
|
|
601
|
+
/** Available Items Count */
|
|
602
|
+
available_items_count?: number | null;
|
|
588
603
|
/** Description */
|
|
589
604
|
description?: string | null;
|
|
590
|
-
/** Free Items Count */
|
|
591
|
-
free_items_count?: number | null;
|
|
592
605
|
/** Id */
|
|
593
606
|
id: number;
|
|
594
607
|
/** Image Url */
|
|
@@ -613,6 +626,8 @@ export interface components {
|
|
|
613
626
|
admin_close_id: number | null;
|
|
614
627
|
/** Admin Open Id */
|
|
615
628
|
admin_open_id: number | null;
|
|
629
|
+
/** Deadline Ts */
|
|
630
|
+
deadline_ts?: string | null;
|
|
616
631
|
/** End Ts */
|
|
617
632
|
end_ts: string | null;
|
|
618
633
|
/** Id */
|
|
@@ -631,8 +646,12 @@ export interface components {
|
|
|
631
646
|
status: components["schemas"]["RentStatus"];
|
|
632
647
|
/** Strike Id */
|
|
633
648
|
strike_id?: number | null;
|
|
649
|
+
/** User Fullname */
|
|
650
|
+
user_fullname?: string | null;
|
|
634
651
|
/** User Id */
|
|
635
652
|
user_id: number;
|
|
653
|
+
/** User Phone */
|
|
654
|
+
user_phone?: string | null;
|
|
636
655
|
};
|
|
637
656
|
/** RentalSessionPatch */
|
|
638
657
|
RentalSessionPatch: {
|
|
@@ -1084,21 +1103,23 @@ export interface operations {
|
|
|
1084
1103
|
get_rental_sessions_rental_sessions_get: {
|
|
1085
1104
|
parameters: {
|
|
1086
1105
|
query?: {
|
|
1087
|
-
/** @description
|
|
1106
|
+
/** @description Флаг, показывать активные */
|
|
1088
1107
|
is_active?: boolean;
|
|
1089
|
-
/** @description
|
|
1108
|
+
/** @description Флаг, показывать отмененные */
|
|
1090
1109
|
is_canceled?: boolean;
|
|
1091
|
-
/** @description
|
|
1110
|
+
/** @description Флаг, показывать отклоненные */
|
|
1092
1111
|
is_dismissed?: boolean;
|
|
1093
|
-
/** @description
|
|
1112
|
+
/** @description Флаг, показывать просроченные */
|
|
1113
|
+
is_expired?: boolean;
|
|
1114
|
+
/** @description Флаг, показывать просроченные */
|
|
1094
1115
|
is_overdue?: boolean;
|
|
1095
|
-
/** @description
|
|
1116
|
+
/** @description флаг, показывать заявки */
|
|
1096
1117
|
is_reserved?: boolean;
|
|
1097
|
-
/** @description
|
|
1118
|
+
/** @description Флаг, показывать вернутые */
|
|
1098
1119
|
is_returned?: boolean;
|
|
1099
|
-
/** @description
|
|
1120
|
+
/** @description ID типа предмета */
|
|
1100
1121
|
item_type_id?: number;
|
|
1101
|
-
/** @description User_id
|
|
1122
|
+
/** @description User_id для получения сессий */
|
|
1102
1123
|
user_id?: number;
|
|
1103
1124
|
};
|
|
1104
1125
|
header?: never;
|
|
@@ -1293,10 +1314,13 @@ export interface operations {
|
|
|
1293
1314
|
};
|
|
1294
1315
|
start_rental_session_rental_sessions__session_id__start_patch: {
|
|
1295
1316
|
parameters: {
|
|
1296
|
-
query?:
|
|
1317
|
+
query?: {
|
|
1318
|
+
/** @description Deadline timestamp */
|
|
1319
|
+
deadline_ts?: string | null;
|
|
1320
|
+
};
|
|
1297
1321
|
header?: never;
|
|
1298
1322
|
path: {
|
|
1299
|
-
session_id:
|
|
1323
|
+
session_id: unknown;
|
|
1300
1324
|
};
|
|
1301
1325
|
cookie?: never;
|
|
1302
1326
|
};
|
|
@@ -1332,6 +1356,8 @@ export interface operations {
|
|
|
1332
1356
|
/** @description Флаг, показывать отклоненные */
|
|
1333
1357
|
is_dismissed?: boolean;
|
|
1334
1358
|
/** @description Флаг, показывать просроченные */
|
|
1359
|
+
is_expired?: boolean;
|
|
1360
|
+
/** @description Флаг, показывать просроченные */
|
|
1335
1361
|
is_overdue?: boolean;
|
|
1336
1362
|
/** @description флаг, показывать заявки */
|
|
1337
1363
|
is_reserved?: boolean;
|
|
@@ -1451,9 +1477,7 @@ export interface operations {
|
|
|
1451
1477
|
[name: string]: unknown;
|
|
1452
1478
|
};
|
|
1453
1479
|
content: {
|
|
1454
|
-
"application/json":
|
|
1455
|
-
[key: string]: unknown;
|
|
1456
|
-
};
|
|
1480
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
1457
1481
|
};
|
|
1458
1482
|
};
|
|
1459
1483
|
/** @description Validation Error */
|
package/src/openapi/userdata.ts
CHANGED
|
@@ -299,6 +299,11 @@ export interface components {
|
|
|
299
299
|
changeable: boolean;
|
|
300
300
|
/** Id */
|
|
301
301
|
id: number;
|
|
302
|
+
/**
|
|
303
|
+
* Is Public
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
306
|
+
is_public: boolean;
|
|
302
307
|
/** Is Required */
|
|
303
308
|
is_required: boolean;
|
|
304
309
|
/** Name */
|
|
@@ -316,6 +321,11 @@ export interface components {
|
|
|
316
321
|
ParamPatch: {
|
|
317
322
|
/** Changeable */
|
|
318
323
|
changeable?: boolean | null;
|
|
324
|
+
/**
|
|
325
|
+
* Is Public
|
|
326
|
+
* @default false
|
|
327
|
+
*/
|
|
328
|
+
is_public: boolean;
|
|
319
329
|
/** Is Required */
|
|
320
330
|
is_required?: boolean | null;
|
|
321
331
|
/** Name */
|
|
@@ -333,6 +343,11 @@ export interface components {
|
|
|
333
343
|
ParamPost: {
|
|
334
344
|
/** Changeable */
|
|
335
345
|
changeable: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Is Public
|
|
348
|
+
* @default false
|
|
349
|
+
*/
|
|
350
|
+
is_public: boolean;
|
|
336
351
|
/** Is Required */
|
|
337
352
|
is_required: boolean;
|
|
338
353
|
/** Name */
|
|
@@ -943,9 +958,7 @@ export interface operations {
|
|
|
943
958
|
};
|
|
944
959
|
get_user_info_user__id__get: {
|
|
945
960
|
parameters: {
|
|
946
|
-
query?:
|
|
947
|
-
additional_data?: number[];
|
|
948
|
-
};
|
|
961
|
+
query?: never;
|
|
949
962
|
header?: never;
|
|
950
963
|
path: {
|
|
951
964
|
id: number;
|