@profcomff/api-uilib 2025.9.17 → 2025.9.26
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 +97 -7
package/package.json
CHANGED
package/src/openapi/rental.ts
CHANGED
|
@@ -197,6 +197,38 @@ export interface paths {
|
|
|
197
197
|
patch: operations["update_item_type_itemtype__id__patch"];
|
|
198
198
|
trace?: never;
|
|
199
199
|
};
|
|
200
|
+
"/rental/itemtype/available/{id}": {
|
|
201
|
+
parameters: {
|
|
202
|
+
query?: never;
|
|
203
|
+
header?: never;
|
|
204
|
+
path?: never;
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
get?: never;
|
|
208
|
+
put?: never;
|
|
209
|
+
post?: never;
|
|
210
|
+
delete?: never;
|
|
211
|
+
options?: never;
|
|
212
|
+
head?: never;
|
|
213
|
+
/**
|
|
214
|
+
* Make Item Type Available
|
|
215
|
+
* @description Делает один предмет доступным по ID типа предмета.
|
|
216
|
+
*
|
|
217
|
+
* Скоупы: `["rental.item_type.update"]`
|
|
218
|
+
*
|
|
219
|
+
* - **id**: ID типа предмета.
|
|
220
|
+
* - **count**: Абсолютное количество предметов, которые нужно сделать доступными.
|
|
221
|
+
* Если доступных меньше, делает больше доступных. Если доступных больше, делает меньше доступных.
|
|
222
|
+
* Если нет возможности сделать count доступных, делает доступным максимально возможное количество.
|
|
223
|
+
* Возвращает id всех возвращенных предметов и их количество.
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
*
|
|
227
|
+
* Вызывает **ObjectNotFound**, если тип предмета с указанным ID не найден.
|
|
228
|
+
*/
|
|
229
|
+
patch: operations["make_item_type_available_itemtype_available__id__patch"];
|
|
230
|
+
trace?: never;
|
|
231
|
+
};
|
|
200
232
|
"/rental/rental-sessions": {
|
|
201
233
|
parameters: {
|
|
202
234
|
query?: never;
|
|
@@ -216,6 +248,7 @@ export interface paths {
|
|
|
216
248
|
* - **is_overdue**: Filter by overdue sessions.
|
|
217
249
|
* - **is_returned**: Filter by returned sessions.
|
|
218
250
|
* - **is_active**: Filter by active sessions.
|
|
251
|
+
* - **is_expired**: Filter by expired sessions.
|
|
219
252
|
* - **user_id**: User_id to get sessions
|
|
220
253
|
* Returns a list of rental sessions.
|
|
221
254
|
*/
|
|
@@ -240,6 +273,8 @@ export interface paths {
|
|
|
240
273
|
/**
|
|
241
274
|
* Create Rental Session
|
|
242
275
|
* @description Создает новую сессию аренды для указанного типа предмета.
|
|
276
|
+
*
|
|
277
|
+
* :param item_type_id: Идентификатор типа предмета.
|
|
243
278
|
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
244
279
|
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
|
|
245
280
|
*/
|
|
@@ -383,6 +418,7 @@ export interface paths {
|
|
|
383
418
|
* - **is_overdue**: Filter by overdue sessions.
|
|
384
419
|
* - **is_returned**: Filter by returned sessions.
|
|
385
420
|
* - **is_active**: Filter by active sessions.
|
|
421
|
+
* - **is_expired**: Filter by expired sessions.
|
|
386
422
|
* Returns a list of rental sessions.
|
|
387
423
|
*/
|
|
388
424
|
get: operations["get_my_sessions_rental_sessions_user_me_get"];
|
|
@@ -540,8 +576,19 @@ export interface components {
|
|
|
540
576
|
/** Type Id */
|
|
541
577
|
type_id: number;
|
|
542
578
|
};
|
|
579
|
+
/** ItemTypeAvailable */
|
|
580
|
+
ItemTypeAvailable: {
|
|
581
|
+
/** Item Ids */
|
|
582
|
+
item_ids: number[];
|
|
583
|
+
/** Items Changed */
|
|
584
|
+
items_changed: number;
|
|
585
|
+
/** Total Available */
|
|
586
|
+
total_available: number;
|
|
587
|
+
};
|
|
543
588
|
/** ItemTypeGet */
|
|
544
589
|
ItemTypeGet: {
|
|
590
|
+
/** Availability */
|
|
591
|
+
availability?: boolean | null;
|
|
545
592
|
/** Description */
|
|
546
593
|
description?: string | null;
|
|
547
594
|
/** Free Items Count */
|
|
@@ -590,6 +637,8 @@ export interface components {
|
|
|
590
637
|
strike_id?: number | null;
|
|
591
638
|
/** User Id */
|
|
592
639
|
user_id: number;
|
|
640
|
+
/** User Phone */
|
|
641
|
+
user_phone?: string | null;
|
|
593
642
|
};
|
|
594
643
|
/** RentalSessionPatch */
|
|
595
644
|
RentalSessionPatch: {
|
|
@@ -1005,22 +1054,59 @@ export interface operations {
|
|
|
1005
1054
|
};
|
|
1006
1055
|
};
|
|
1007
1056
|
};
|
|
1057
|
+
make_item_type_available_itemtype_available__id__patch: {
|
|
1058
|
+
parameters: {
|
|
1059
|
+
query: {
|
|
1060
|
+
count: number;
|
|
1061
|
+
};
|
|
1062
|
+
header?: never;
|
|
1063
|
+
path: {
|
|
1064
|
+
id: number;
|
|
1065
|
+
};
|
|
1066
|
+
cookie?: never;
|
|
1067
|
+
};
|
|
1068
|
+
requestBody?: never;
|
|
1069
|
+
responses: {
|
|
1070
|
+
/** @description Successful Response */
|
|
1071
|
+
200: {
|
|
1072
|
+
headers: {
|
|
1073
|
+
[name: string]: unknown;
|
|
1074
|
+
};
|
|
1075
|
+
content: {
|
|
1076
|
+
"application/json": components["schemas"]["ItemTypeAvailable"];
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
/** @description Validation Error */
|
|
1080
|
+
422: {
|
|
1081
|
+
headers: {
|
|
1082
|
+
[name: string]: unknown;
|
|
1083
|
+
};
|
|
1084
|
+
content: {
|
|
1085
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1008
1090
|
get_rental_sessions_rental_sessions_get: {
|
|
1009
1091
|
parameters: {
|
|
1010
1092
|
query?: {
|
|
1011
|
-
/** @description
|
|
1093
|
+
/** @description Флаг, показывать активные */
|
|
1012
1094
|
is_active?: boolean;
|
|
1013
|
-
/** @description
|
|
1095
|
+
/** @description Флаг, показывать отмененные */
|
|
1014
1096
|
is_canceled?: boolean;
|
|
1015
|
-
/** @description
|
|
1097
|
+
/** @description Флаг, показывать отклоненные */
|
|
1016
1098
|
is_dismissed?: boolean;
|
|
1017
|
-
/** @description
|
|
1099
|
+
/** @description Флаг, показывать просроченные */
|
|
1100
|
+
is_expired?: boolean;
|
|
1101
|
+
/** @description Флаг, показывать просроченные */
|
|
1018
1102
|
is_overdue?: boolean;
|
|
1019
|
-
/** @description
|
|
1103
|
+
/** @description флаг, показывать заявки */
|
|
1020
1104
|
is_reserved?: boolean;
|
|
1021
|
-
/** @description
|
|
1105
|
+
/** @description Флаг, показывать вернутые */
|
|
1022
1106
|
is_returned?: boolean;
|
|
1023
|
-
/** @description
|
|
1107
|
+
/** @description ID типа предмета */
|
|
1108
|
+
item_type_id?: number;
|
|
1109
|
+
/** @description User_id для получения сессий */
|
|
1024
1110
|
user_id?: number;
|
|
1025
1111
|
};
|
|
1026
1112
|
header?: never;
|
|
@@ -1254,11 +1340,15 @@ export interface operations {
|
|
|
1254
1340
|
/** @description Флаг, показывать отклоненные */
|
|
1255
1341
|
is_dismissed?: boolean;
|
|
1256
1342
|
/** @description Флаг, показывать просроченные */
|
|
1343
|
+
is_expired?: boolean;
|
|
1344
|
+
/** @description Флаг, показывать просроченные */
|
|
1257
1345
|
is_overdue?: boolean;
|
|
1258
1346
|
/** @description флаг, показывать заявки */
|
|
1259
1347
|
is_reserved?: boolean;
|
|
1260
1348
|
/** @description Флаг, показывать вернутые */
|
|
1261
1349
|
is_returned?: boolean;
|
|
1350
|
+
/** @description ID типа предмета */
|
|
1351
|
+
item_type_id?: number;
|
|
1262
1352
|
};
|
|
1263
1353
|
header?: never;
|
|
1264
1354
|
path?: never;
|