@profcomff/api-uilib 2025.9.26 → 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 +23 -9
- 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;
|
|
@@ -274,6 +276,8 @@ export interface paths {
|
|
|
274
276
|
* Create Rental Session
|
|
275
277
|
* @description Создает новую сессию аренды для указанного типа предмета.
|
|
276
278
|
*
|
|
279
|
+
* Cкоупы: `["rental.session.create"]`
|
|
280
|
+
*
|
|
277
281
|
* :param item_type_id: Идентификатор типа предмета.
|
|
278
282
|
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
279
283
|
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
|
|
@@ -463,6 +467,8 @@ export interface paths {
|
|
|
463
467
|
* - **strike_info**: The data for the new strike.
|
|
464
468
|
*
|
|
465
469
|
* Returns the created strike.
|
|
470
|
+
*
|
|
471
|
+
* If session does not exist returns ObjectNotFound.
|
|
466
472
|
*/
|
|
467
473
|
post: operations["create_strike_strike_post"];
|
|
468
474
|
delete?: never;
|
|
@@ -587,12 +593,15 @@ export interface components {
|
|
|
587
593
|
};
|
|
588
594
|
/** ItemTypeGet */
|
|
589
595
|
ItemTypeGet: {
|
|
590
|
-
/**
|
|
591
|
-
|
|
596
|
+
/**
|
|
597
|
+
* Availability
|
|
598
|
+
* @default false
|
|
599
|
+
*/
|
|
600
|
+
availability: boolean;
|
|
601
|
+
/** Available Items Count */
|
|
602
|
+
available_items_count?: number | null;
|
|
592
603
|
/** Description */
|
|
593
604
|
description?: string | null;
|
|
594
|
-
/** Free Items Count */
|
|
595
|
-
free_items_count?: number | null;
|
|
596
605
|
/** Id */
|
|
597
606
|
id: number;
|
|
598
607
|
/** Image Url */
|
|
@@ -617,6 +626,8 @@ export interface components {
|
|
|
617
626
|
admin_close_id: number | null;
|
|
618
627
|
/** Admin Open Id */
|
|
619
628
|
admin_open_id: number | null;
|
|
629
|
+
/** Deadline Ts */
|
|
630
|
+
deadline_ts?: string | null;
|
|
620
631
|
/** End Ts */
|
|
621
632
|
end_ts: string | null;
|
|
622
633
|
/** Id */
|
|
@@ -635,6 +646,8 @@ export interface components {
|
|
|
635
646
|
status: components["schemas"]["RentStatus"];
|
|
636
647
|
/** Strike Id */
|
|
637
648
|
strike_id?: number | null;
|
|
649
|
+
/** User Fullname */
|
|
650
|
+
user_fullname?: string | null;
|
|
638
651
|
/** User Id */
|
|
639
652
|
user_id: number;
|
|
640
653
|
/** User Phone */
|
|
@@ -1301,10 +1314,13 @@ export interface operations {
|
|
|
1301
1314
|
};
|
|
1302
1315
|
start_rental_session_rental_sessions__session_id__start_patch: {
|
|
1303
1316
|
parameters: {
|
|
1304
|
-
query?:
|
|
1317
|
+
query?: {
|
|
1318
|
+
/** @description Deadline timestamp */
|
|
1319
|
+
deadline_ts?: string | null;
|
|
1320
|
+
};
|
|
1305
1321
|
header?: never;
|
|
1306
1322
|
path: {
|
|
1307
|
-
session_id:
|
|
1323
|
+
session_id: unknown;
|
|
1308
1324
|
};
|
|
1309
1325
|
cookie?: never;
|
|
1310
1326
|
};
|
|
@@ -1461,9 +1477,7 @@ export interface operations {
|
|
|
1461
1477
|
[name: string]: unknown;
|
|
1462
1478
|
};
|
|
1463
1479
|
content: {
|
|
1464
|
-
"application/json":
|
|
1465
|
-
[key: string]: unknown;
|
|
1466
|
-
};
|
|
1480
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
1467
1481
|
};
|
|
1468
1482
|
};
|
|
1469
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;
|