@profcomff/api-uilib 2025.4.30 → 2025.9.17
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/rating.ts +15 -9
- package/src/openapi/rental.ts +265 -132
package/package.json
CHANGED
package/src/openapi/rating.ts
CHANGED
|
@@ -15,19 +15,23 @@ export interface paths {
|
|
|
15
15
|
* Get Comments
|
|
16
16
|
* @description Scopes: `["rating.comment.review"]`
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* `limit` - максимальное количество возвращаемых комментариев
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* `offset` - смещение, определяющее, с какого по порядку комментария начинать выборку.
|
|
21
|
+
* Если без смещения возвращается комментарий с условным номером N,
|
|
22
|
+
* то при значении offset = X будет возвращаться комментарий с номером N + X
|
|
23
23
|
*
|
|
24
|
-
* `order_by` -
|
|
24
|
+
* `order_by` - возможные значения `"create_ts", "mark_kindness", "mark_freebie", "mark_clarity", "mark_general"`.
|
|
25
|
+
* Если передано `'create_ts'` - возвращается список комментариев отсортированных по времени
|
|
26
|
+
* Если передано `'mark_...'` - возвращается список комментариев отсортированных по конкретной оценке
|
|
25
27
|
*
|
|
26
|
-
*
|
|
28
|
+
* `lecturer_id` - вернет все комментарии для преподавателя с конкретным id, по дефолту возвращает вообще все аппрувнутые комментарии.
|
|
27
29
|
*
|
|
28
|
-
*
|
|
30
|
+
* `user_id` - вернет все комментарии пользователя с конкретным id
|
|
29
31
|
*
|
|
30
|
-
*
|
|
32
|
+
* `unreviewed` - вернет все непроверенные комментарии, если True. По дефолту False.
|
|
33
|
+
*
|
|
34
|
+
* `asc_order` -Если передано true, сортировать в порядке возрастания. Иначе - в порядке убывания
|
|
31
35
|
*/
|
|
32
36
|
get: operations["get_comments_comment_get"];
|
|
33
37
|
put?: never;
|
|
@@ -522,10 +526,12 @@ export interface operations {
|
|
|
522
526
|
get_comments_comment_get: {
|
|
523
527
|
parameters: {
|
|
524
528
|
query?: {
|
|
529
|
+
asc_order?: boolean;
|
|
525
530
|
lecturer_id?: number | null;
|
|
526
531
|
limit?: number;
|
|
527
532
|
offset?: number;
|
|
528
|
-
order_by?: "create_ts"
|
|
533
|
+
order_by?: "create_ts" | "mark_kindness" | "mark_freebie" | "mark_clarity" | "mark_general";
|
|
534
|
+
subject?: string | null;
|
|
529
535
|
unreviewed?: boolean;
|
|
530
536
|
user_id?: number | null;
|
|
531
537
|
};
|
package/src/openapi/rental.ts
CHANGED
|
@@ -11,7 +11,17 @@ export interface paths {
|
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Get Events
|
|
16
|
+
* @description Retrieves a list of events, with optional filtering.
|
|
17
|
+
*
|
|
18
|
+
* Scopes: `["rental.event.view"]`
|
|
19
|
+
*
|
|
20
|
+
* - **admin_id**: Filter events by admin ID.
|
|
21
|
+
* - **session_id**: Filter events by session ID.
|
|
22
|
+
*
|
|
23
|
+
* Returns a list of events.
|
|
24
|
+
*/
|
|
15
25
|
get: operations["get_events_event_get"];
|
|
16
26
|
put?: never;
|
|
17
27
|
post?: never;
|
|
@@ -21,7 +31,7 @@ export interface paths {
|
|
|
21
31
|
patch?: never;
|
|
22
32
|
trace?: never;
|
|
23
33
|
};
|
|
24
|
-
"/rental/
|
|
34
|
+
"/rental/item": {
|
|
25
35
|
parameters: {
|
|
26
36
|
query?: never;
|
|
27
37
|
header?: never;
|
|
@@ -30,75 +40,76 @@ export interface paths {
|
|
|
30
40
|
};
|
|
31
41
|
/**
|
|
32
42
|
* Get Items
|
|
33
|
-
* @description
|
|
43
|
+
* @description Retrieves a list of items. If `type_id` is specified, only items of that type are returned.
|
|
34
44
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
45
|
+
* - **type_id**: The ID of the item type (optional).
|
|
46
|
+
*
|
|
47
|
+
* Returns a list of items.
|
|
37
48
|
*/
|
|
38
|
-
get: operations["
|
|
49
|
+
get: operations["get_items_item_get"];
|
|
39
50
|
put?: never;
|
|
40
51
|
/**
|
|
41
52
|
* Create Item
|
|
42
|
-
* @description
|
|
53
|
+
* @description Creates a new item.
|
|
54
|
+
*
|
|
55
|
+
* Scopes: `["rental.item.create"]`
|
|
56
|
+
*
|
|
57
|
+
* - **item**: The data for the new item.
|
|
43
58
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
59
|
+
* Returns the created item.
|
|
60
|
+
*
|
|
61
|
+
* Raises **ObjectNotFound** if the item type with the specified `type_id` is not found.
|
|
47
62
|
*/
|
|
48
|
-
post: operations["
|
|
63
|
+
post: operations["create_item_item_post"];
|
|
49
64
|
delete?: never;
|
|
50
65
|
options?: never;
|
|
51
66
|
head?: never;
|
|
52
67
|
patch?: never;
|
|
53
68
|
trace?: never;
|
|
54
69
|
};
|
|
55
|
-
"/rental/
|
|
70
|
+
"/rental/item/{id}": {
|
|
56
71
|
parameters: {
|
|
57
72
|
query?: never;
|
|
58
73
|
header?: never;
|
|
59
74
|
path?: never;
|
|
60
75
|
cookie?: never;
|
|
61
76
|
};
|
|
62
|
-
get?: never;
|
|
63
|
-
put?: never;
|
|
64
|
-
post?: never;
|
|
65
|
-
delete?: never;
|
|
66
|
-
options?: never;
|
|
67
|
-
head?: never;
|
|
68
77
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @description
|
|
71
|
-
*
|
|
72
|
-
* :param id: id предмета.
|
|
73
|
-
* :param is_available: Флаг, указывающий? какой статус поставить предмету.
|
|
74
|
-
* :return: Объект ItemGet с обновленной информацией о предмете.
|
|
75
|
-
* :raises ObjectNotFound: Если предмет с указанным id не найден.
|
|
78
|
+
* Get Item
|
|
79
|
+
* @description Получает предмет по его идентификатору.
|
|
76
80
|
*/
|
|
77
|
-
|
|
78
|
-
trace?: never;
|
|
79
|
-
};
|
|
80
|
-
"/rental/items/item/{id}": {
|
|
81
|
-
parameters: {
|
|
82
|
-
query?: never;
|
|
83
|
-
header?: never;
|
|
84
|
-
path?: never;
|
|
85
|
-
cookie?: never;
|
|
86
|
-
};
|
|
87
|
-
get?: never;
|
|
81
|
+
get: operations["get_item_item__id__get"];
|
|
88
82
|
put?: never;
|
|
89
83
|
post?: never;
|
|
90
84
|
/**
|
|
91
85
|
* Delete Item
|
|
92
|
-
* @description
|
|
86
|
+
* @description Deletes an item by its ID.
|
|
87
|
+
*
|
|
88
|
+
* Scopes: `["rental.item.delete"]`
|
|
89
|
+
*
|
|
90
|
+
* - **id**: The ID of the item.
|
|
93
91
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
92
|
+
* Returns a status response.
|
|
93
|
+
*
|
|
94
|
+
* Raises **ObjectNotFound** if the item with the specified ID is not found.
|
|
97
95
|
*/
|
|
98
|
-
delete: operations["
|
|
96
|
+
delete: operations["delete_item_item__id__delete"];
|
|
99
97
|
options?: never;
|
|
100
98
|
head?: never;
|
|
101
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Update Item
|
|
101
|
+
* @description Updates the availability status of an item by its ID.
|
|
102
|
+
*
|
|
103
|
+
* Scopes: `["rental.item.patch"]`
|
|
104
|
+
*
|
|
105
|
+
* - **id**: The ID of the item.
|
|
106
|
+
* - **is_available**: The new availability status for the item.
|
|
107
|
+
*
|
|
108
|
+
* Returns the updated item.
|
|
109
|
+
*
|
|
110
|
+
* Raises **ObjectNotFound** if the item with the specified ID is not found.
|
|
111
|
+
*/
|
|
112
|
+
patch: operations["update_item_item__id__patch"];
|
|
102
113
|
trace?: never;
|
|
103
114
|
};
|
|
104
115
|
"/rental/itemtype": {
|
|
@@ -110,19 +121,23 @@ export interface paths {
|
|
|
110
121
|
};
|
|
111
122
|
/**
|
|
112
123
|
* Get Items Types
|
|
113
|
-
* @description
|
|
124
|
+
* @description Retrieves a list of all item types.
|
|
114
125
|
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
126
|
+
* Returns a list of all item types.
|
|
127
|
+
*
|
|
128
|
+
* Raises **ObjectNotFound** if no item types are found.
|
|
117
129
|
*/
|
|
118
130
|
get: operations["get_items_types_itemtype_get"];
|
|
119
131
|
put?: never;
|
|
120
132
|
/**
|
|
121
133
|
* Create Item Type
|
|
122
|
-
* @description
|
|
134
|
+
* @description Creates a new item type.
|
|
135
|
+
*
|
|
136
|
+
* Scopes: `["rental.item_type.create"]`
|
|
137
|
+
*
|
|
138
|
+
* - **item_type_info**: The data for the new item type.
|
|
123
139
|
*
|
|
124
|
-
*
|
|
125
|
-
* :return: Объект ItemTypeGet с информацией о созданном типе предмета.
|
|
140
|
+
* Returns the created item type.
|
|
126
141
|
*/
|
|
127
142
|
post: operations["create_item_type_itemtype_post"];
|
|
128
143
|
delete?: never;
|
|
@@ -140,35 +155,44 @@ export interface paths {
|
|
|
140
155
|
};
|
|
141
156
|
/**
|
|
142
157
|
* Get Item Type
|
|
143
|
-
* @description
|
|
158
|
+
* @description Retrieves information about an item type by its ID.
|
|
159
|
+
*
|
|
160
|
+
* - **id**: The ID of the item type.
|
|
161
|
+
*
|
|
162
|
+
* Returns the item type information.
|
|
144
163
|
*
|
|
145
|
-
*
|
|
146
|
-
* :return: Объект ItemTypeGet с информацией о типе предмета.
|
|
147
|
-
* :raises ObjectNotFound: Если тип предмета с указанным идентификатором не найден.
|
|
164
|
+
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
148
165
|
*/
|
|
149
166
|
get: operations["get_item_type_itemtype__id__get"];
|
|
150
167
|
put?: never;
|
|
151
168
|
post?: never;
|
|
152
169
|
/**
|
|
153
170
|
* Delete Item Type
|
|
154
|
-
* @description
|
|
171
|
+
* @description Deletes an item type by its ID.
|
|
155
172
|
*
|
|
156
|
-
* :
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
173
|
+
* Scopes: `["rental.item_type.delete"]`
|
|
174
|
+
*
|
|
175
|
+
* - **id**: The ID of the item type.
|
|
176
|
+
*
|
|
177
|
+
* Returns a status response.
|
|
178
|
+
*
|
|
179
|
+
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
160
180
|
*/
|
|
161
181
|
delete: operations["delete_item_type_itemtype__id__delete"];
|
|
162
182
|
options?: never;
|
|
163
183
|
head?: never;
|
|
164
184
|
/**
|
|
165
185
|
* Update Item Type
|
|
166
|
-
* @description
|
|
186
|
+
* @description Updates the information of an item type by its ID.
|
|
187
|
+
*
|
|
188
|
+
* Scopes: `["rental.item_type.update"]`
|
|
189
|
+
*
|
|
190
|
+
* - **id**: The ID of the item type.
|
|
191
|
+
* - **item_type_info**: The data to update the item type with.
|
|
167
192
|
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
* :raises ObjectNotFound: Если тип предмета с указанным идентификатором не найден.
|
|
193
|
+
* Returns the updated item type.
|
|
194
|
+
*
|
|
195
|
+
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
172
196
|
*/
|
|
173
197
|
patch: operations["update_item_type_itemtype__id__patch"];
|
|
174
198
|
trace?: never;
|
|
@@ -182,15 +206,18 @@ export interface paths {
|
|
|
182
206
|
};
|
|
183
207
|
/**
|
|
184
208
|
* Get Rental Sessions
|
|
185
|
-
* @description
|
|
186
|
-
*
|
|
187
|
-
* :
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
209
|
+
* @description Retrieves a list of rental sessions with optional status filtering.
|
|
210
|
+
*
|
|
211
|
+
* Scopes: `["rental.session.admin"]`
|
|
212
|
+
*
|
|
213
|
+
* - **is_reserved**: Filter by reserved sessions.
|
|
214
|
+
* - **is_canceled**: Filter by canceled sessions.
|
|
215
|
+
* - **is_dismissed**: Filter by dismissed sessions.
|
|
216
|
+
* - **is_overdue**: Filter by overdue sessions.
|
|
217
|
+
* - **is_returned**: Filter by returned sessions.
|
|
218
|
+
* - **is_active**: Filter by active sessions.
|
|
219
|
+
* - **user_id**: User_id to get sessions
|
|
220
|
+
* Returns a list of rental sessions.
|
|
194
221
|
*/
|
|
195
222
|
get: operations["get_rental_sessions_rental_sessions_get"];
|
|
196
223
|
put?: never;
|
|
@@ -213,11 +240,8 @@ export interface paths {
|
|
|
213
240
|
/**
|
|
214
241
|
* Create Rental Session
|
|
215
242
|
* @description Создает новую сессию аренды для указанного типа предмета.
|
|
216
|
-
*
|
|
217
|
-
* :param item_type_id: Идентификатор типа предмета.
|
|
218
|
-
* :param background_tasks: Фоновые задачи для выполнения.
|
|
219
|
-
* :return: Объект RentalSessionGet с информацией о созданной сессии аренды.
|
|
220
243
|
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
244
|
+
* :raises SessionExists: Если у пользователя уже есть сессия с указанным типом предмета.
|
|
221
245
|
*/
|
|
222
246
|
post: operations["create_rental_session_rental_sessions__item_type_id__post"];
|
|
223
247
|
delete?: never;
|
|
@@ -242,12 +266,16 @@ export interface paths {
|
|
|
242
266
|
head?: never;
|
|
243
267
|
/**
|
|
244
268
|
* Update Rental Session
|
|
245
|
-
* @description
|
|
269
|
+
* @description Updates the information of a rental session.
|
|
270
|
+
*
|
|
271
|
+
* Scopes: `["rental.session.admin"]`
|
|
246
272
|
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
273
|
+
* - **session_id**: The ID of the rental session to update.
|
|
274
|
+
* - **update_data**: The data to update the session with.
|
|
275
|
+
*
|
|
276
|
+
* Returns the updated rental session.
|
|
277
|
+
*
|
|
278
|
+
* Raises **ObjectNotFound** if the session with the specified ID is not found.
|
|
251
279
|
*/
|
|
252
280
|
patch: operations["update_rental_session_rental_sessions__session_id__patch"];
|
|
253
281
|
trace?: never;
|
|
@@ -264,11 +292,13 @@ export interface paths {
|
|
|
264
292
|
post?: never;
|
|
265
293
|
/**
|
|
266
294
|
* Cancel Rental Session
|
|
267
|
-
* @description
|
|
295
|
+
* @description Cancels a session in the RESERVED status. Can only be canceled by the user who created it.
|
|
296
|
+
*
|
|
297
|
+
* - **session_id**: The ID of the rental session to cancel.
|
|
298
|
+
*
|
|
299
|
+
* Returns the canceled rental session.
|
|
268
300
|
*
|
|
269
|
-
*
|
|
270
|
-
* :raises ForbiddenAction: Если пользователь не владелец или статус не RESERVED
|
|
271
|
-
* :return: Объект отмененной сессии аренды
|
|
301
|
+
* Raises **ForbiddenAction** if the user is not the owner or the session is not in RESERVED status.
|
|
272
302
|
*/
|
|
273
303
|
delete: operations["cancel_rental_session_rental_sessions__session_id__cancel_delete"];
|
|
274
304
|
options?: never;
|
|
@@ -291,13 +321,19 @@ export interface paths {
|
|
|
291
321
|
head?: never;
|
|
292
322
|
/**
|
|
293
323
|
* Accept End Rental Session
|
|
294
|
-
* @description
|
|
295
|
-
*
|
|
296
|
-
* :
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
324
|
+
* @description Ends a rental session, changing its status to RETURNED. Issues a strike if specified.
|
|
325
|
+
*
|
|
326
|
+
* Scopes: `["rental.session.admin"]`
|
|
327
|
+
*
|
|
328
|
+
* - **session_id**: The ID of the rental session to end.
|
|
329
|
+
* - **with_strike**: A flag indicating whether to issue a strike.
|
|
330
|
+
* - **strike_reason**: The reason for the strike.
|
|
331
|
+
*
|
|
332
|
+
* Returns the updated rental session.
|
|
333
|
+
*
|
|
334
|
+
* Raises:
|
|
335
|
+
* - **ObjectNotFound**: If the session with the specified ID is not found.
|
|
336
|
+
* - **InactiveSession**: If the session is not active.
|
|
301
337
|
*/
|
|
302
338
|
patch: operations["accept_end_rental_session_rental_sessions__session_id__return_patch"];
|
|
303
339
|
trace?: never;
|
|
@@ -317,17 +353,20 @@ export interface paths {
|
|
|
317
353
|
head?: never;
|
|
318
354
|
/**
|
|
319
355
|
* Start Rental Session
|
|
320
|
-
* @description
|
|
356
|
+
* @description Starts a rental session, changing its status to ACTIVE.
|
|
357
|
+
*
|
|
358
|
+
* Scopes: `["rental.session.admin"]`
|
|
321
359
|
*
|
|
322
|
-
*
|
|
360
|
+
* - **session_id**: The ID of the rental session to start.
|
|
323
361
|
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
362
|
+
* Returns the updated rental session.
|
|
363
|
+
*
|
|
364
|
+
* Raises **ObjectNotFound** if the session with the specified ID is not found.
|
|
326
365
|
*/
|
|
327
366
|
patch: operations["start_rental_session_rental_sessions__session_id__start_patch"];
|
|
328
367
|
trace?: never;
|
|
329
368
|
};
|
|
330
|
-
"/rental/rental-sessions/user/
|
|
369
|
+
"/rental/rental-sessions/user/me": {
|
|
331
370
|
parameters: {
|
|
332
371
|
query?: never;
|
|
333
372
|
header?: never;
|
|
@@ -335,13 +374,18 @@ export interface paths {
|
|
|
335
374
|
cookie?: never;
|
|
336
375
|
};
|
|
337
376
|
/**
|
|
338
|
-
* Get
|
|
339
|
-
* @description
|
|
377
|
+
* Get My Sessions
|
|
378
|
+
* @description Retrieves a list of rental sessions for the user with optional status filtering.
|
|
340
379
|
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
380
|
+
* - **is_reserved**: Filter by reserved sessions.
|
|
381
|
+
* - **is_canceled**: Filter by canceled sessions.
|
|
382
|
+
* - **is_dismissed**: Filter by dismissed sessions.
|
|
383
|
+
* - **is_overdue**: Filter by overdue sessions.
|
|
384
|
+
* - **is_returned**: Filter by returned sessions.
|
|
385
|
+
* - **is_active**: Filter by active sessions.
|
|
386
|
+
* Returns a list of rental sessions.
|
|
343
387
|
*/
|
|
344
|
-
get: operations["
|
|
388
|
+
get: operations["get_my_sessions_rental_sessions_user_me_get"];
|
|
345
389
|
put?: never;
|
|
346
390
|
post?: never;
|
|
347
391
|
delete?: never;
|
|
@@ -357,10 +401,33 @@ export interface paths {
|
|
|
357
401
|
path?: never;
|
|
358
402
|
cookie?: never;
|
|
359
403
|
};
|
|
360
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* Get Strikes
|
|
406
|
+
* @description Retrieves a list of strikes with optional filtering.
|
|
407
|
+
*
|
|
408
|
+
* Scopes: `["rental.strike.read"]`
|
|
409
|
+
*
|
|
410
|
+
* - **admin_id**: Filter strikes by admin ID.
|
|
411
|
+
* - **session_id**: Filter strikes by session ID.
|
|
412
|
+
* - **from_date**: Filter strikes created after this date.
|
|
413
|
+
* - **to_date**: Filter strikes created before this date.
|
|
414
|
+
*
|
|
415
|
+
* Returns a list of strikes.
|
|
416
|
+
*
|
|
417
|
+
* Raises **DateRangeError** if only one of `from_date` or `to_date` is provided.
|
|
418
|
+
*/
|
|
361
419
|
get: operations["get_strikes_strike_get"];
|
|
362
420
|
put?: never;
|
|
363
|
-
/**
|
|
421
|
+
/**
|
|
422
|
+
* Create Strike
|
|
423
|
+
* @description Creates a new strike.
|
|
424
|
+
*
|
|
425
|
+
* Scopes: `["rental.strike.create"]`
|
|
426
|
+
*
|
|
427
|
+
* - **strike_info**: The data for the new strike.
|
|
428
|
+
*
|
|
429
|
+
* Returns the created strike.
|
|
430
|
+
*/
|
|
364
431
|
post: operations["create_strike_strike_post"];
|
|
365
432
|
delete?: never;
|
|
366
433
|
options?: never;
|
|
@@ -378,7 +445,18 @@ export interface paths {
|
|
|
378
445
|
get?: never;
|
|
379
446
|
put?: never;
|
|
380
447
|
post?: never;
|
|
381
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* Delete Strike
|
|
450
|
+
* @description Deletes a strike by its ID.
|
|
451
|
+
*
|
|
452
|
+
* Scopes: `["rental.strike.delete"]`
|
|
453
|
+
*
|
|
454
|
+
* - **id**: The ID of the strike to delete.
|
|
455
|
+
*
|
|
456
|
+
* Returns a status response.
|
|
457
|
+
*
|
|
458
|
+
* Raises **ObjectNotFound** if the strike with the specified ID is not found.
|
|
459
|
+
*/
|
|
382
460
|
delete: operations["delete_strike_strike__id__delete"];
|
|
383
461
|
options?: never;
|
|
384
462
|
head?: never;
|
|
@@ -392,7 +470,14 @@ export interface paths {
|
|
|
392
470
|
path?: never;
|
|
393
471
|
cookie?: never;
|
|
394
472
|
};
|
|
395
|
-
/**
|
|
473
|
+
/**
|
|
474
|
+
* Get User Strikes
|
|
475
|
+
* @description Retrieves a list of strikes for a specific user.
|
|
476
|
+
*
|
|
477
|
+
* - **user_id**: The ID of the user.
|
|
478
|
+
*
|
|
479
|
+
* Returns a list of strikes.
|
|
480
|
+
*/
|
|
396
481
|
get: operations["get_user_strikes_strike_user__user_id__get"];
|
|
397
482
|
put?: never;
|
|
398
483
|
post?: never;
|
|
@@ -491,6 +576,8 @@ export interface components {
|
|
|
491
576
|
id: number;
|
|
492
577
|
/** Item Id */
|
|
493
578
|
item_id: number;
|
|
579
|
+
/** Item Type Id */
|
|
580
|
+
item_type_id: number;
|
|
494
581
|
/**
|
|
495
582
|
* Reservation Ts
|
|
496
583
|
* Format: date-time
|
|
@@ -499,6 +586,8 @@ export interface components {
|
|
|
499
586
|
/** Start Ts */
|
|
500
587
|
start_ts: string | null;
|
|
501
588
|
status: components["schemas"]["RentStatus"];
|
|
589
|
+
/** Strike Id */
|
|
590
|
+
strike_id?: number | null;
|
|
502
591
|
/** User Id */
|
|
503
592
|
user_id: number;
|
|
504
593
|
};
|
|
@@ -516,7 +605,7 @@ export interface components {
|
|
|
516
605
|
* RentStatus
|
|
517
606
|
* @enum {string}
|
|
518
607
|
*/
|
|
519
|
-
RentStatus: "reserved" | "active" | "canceled" | "overdue" | "returned" | "dismissed";
|
|
608
|
+
RentStatus: "reserved" | "active" | "canceled" | "overdue" | "returned" | "dismissed" | "expired";
|
|
520
609
|
/** StatusResponseModel */
|
|
521
610
|
StatusResponseModel: {
|
|
522
611
|
/** Message */
|
|
@@ -531,10 +620,10 @@ export interface components {
|
|
|
531
620
|
/** Admin Id */
|
|
532
621
|
admin_id: number;
|
|
533
622
|
/**
|
|
534
|
-
*
|
|
623
|
+
* Create Ts
|
|
535
624
|
* Format: date-time
|
|
536
625
|
*/
|
|
537
|
-
|
|
626
|
+
create_ts: string;
|
|
538
627
|
/** Id */
|
|
539
628
|
id: number;
|
|
540
629
|
/** Reason */
|
|
@@ -606,7 +695,7 @@ export interface operations {
|
|
|
606
695
|
};
|
|
607
696
|
};
|
|
608
697
|
};
|
|
609
|
-
|
|
698
|
+
get_items_item_get: {
|
|
610
699
|
parameters: {
|
|
611
700
|
query?: {
|
|
612
701
|
type_id?: number;
|
|
@@ -637,7 +726,7 @@ export interface operations {
|
|
|
637
726
|
};
|
|
638
727
|
};
|
|
639
728
|
};
|
|
640
|
-
|
|
729
|
+
create_item_item_post: {
|
|
641
730
|
parameters: {
|
|
642
731
|
query?: never;
|
|
643
732
|
header?: never;
|
|
@@ -670,12 +759,9 @@ export interface operations {
|
|
|
670
759
|
};
|
|
671
760
|
};
|
|
672
761
|
};
|
|
673
|
-
|
|
762
|
+
get_item_item__id__get: {
|
|
674
763
|
parameters: {
|
|
675
|
-
query?:
|
|
676
|
-
/** @description Флаг доступен ли предмет */
|
|
677
|
-
is_available?: boolean;
|
|
678
|
-
};
|
|
764
|
+
query?: never;
|
|
679
765
|
header?: never;
|
|
680
766
|
path: {
|
|
681
767
|
id: number;
|
|
@@ -704,7 +790,7 @@ export interface operations {
|
|
|
704
790
|
};
|
|
705
791
|
};
|
|
706
792
|
};
|
|
707
|
-
|
|
793
|
+
delete_item_item__id__delete: {
|
|
708
794
|
parameters: {
|
|
709
795
|
query?: never;
|
|
710
796
|
header?: never;
|
|
@@ -735,6 +821,40 @@ export interface operations {
|
|
|
735
821
|
};
|
|
736
822
|
};
|
|
737
823
|
};
|
|
824
|
+
update_item_item__id__patch: {
|
|
825
|
+
parameters: {
|
|
826
|
+
query?: {
|
|
827
|
+
/** @description Flag indicating if the item is available */
|
|
828
|
+
is_available?: boolean;
|
|
829
|
+
};
|
|
830
|
+
header?: never;
|
|
831
|
+
path: {
|
|
832
|
+
id: number;
|
|
833
|
+
};
|
|
834
|
+
cookie?: never;
|
|
835
|
+
};
|
|
836
|
+
requestBody?: never;
|
|
837
|
+
responses: {
|
|
838
|
+
/** @description Successful Response */
|
|
839
|
+
200: {
|
|
840
|
+
headers: {
|
|
841
|
+
[name: string]: unknown;
|
|
842
|
+
};
|
|
843
|
+
content: {
|
|
844
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
/** @description Validation Error */
|
|
848
|
+
422: {
|
|
849
|
+
headers: {
|
|
850
|
+
[name: string]: unknown;
|
|
851
|
+
};
|
|
852
|
+
content: {
|
|
853
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
};
|
|
738
858
|
get_items_types_itemtype_get: {
|
|
739
859
|
parameters: {
|
|
740
860
|
query?: never;
|
|
@@ -888,18 +1008,20 @@ export interface operations {
|
|
|
888
1008
|
get_rental_sessions_rental_sessions_get: {
|
|
889
1009
|
parameters: {
|
|
890
1010
|
query?: {
|
|
891
|
-
/** @description
|
|
1011
|
+
/** @description Filter by active sessions. */
|
|
892
1012
|
is_active?: boolean;
|
|
893
|
-
/** @description
|
|
1013
|
+
/** @description Filter by canceled sessions. */
|
|
894
1014
|
is_canceled?: boolean;
|
|
895
|
-
/** @description
|
|
1015
|
+
/** @description Filter by dismissed sessions. */
|
|
896
1016
|
is_dismissed?: boolean;
|
|
897
|
-
/** @description
|
|
1017
|
+
/** @description Filter by overdue sessions. */
|
|
898
1018
|
is_overdue?: boolean;
|
|
899
|
-
/** @description
|
|
1019
|
+
/** @description Filter by reserved sessions. */
|
|
900
1020
|
is_reserved?: boolean;
|
|
901
|
-
/** @description
|
|
1021
|
+
/** @description Filter by returned sessions. */
|
|
902
1022
|
is_returned?: boolean;
|
|
1023
|
+
/** @description User_id to get sessions */
|
|
1024
|
+
user_id?: number;
|
|
903
1025
|
};
|
|
904
1026
|
header?: never;
|
|
905
1027
|
path?: never;
|
|
@@ -932,7 +1054,7 @@ export interface operations {
|
|
|
932
1054
|
query?: never;
|
|
933
1055
|
header?: never;
|
|
934
1056
|
path: {
|
|
935
|
-
item_type_id:
|
|
1057
|
+
item_type_id: number;
|
|
936
1058
|
};
|
|
937
1059
|
cookie?: never;
|
|
938
1060
|
};
|
|
@@ -1058,14 +1180,14 @@ export interface operations {
|
|
|
1058
1180
|
accept_end_rental_session_rental_sessions__session_id__return_patch: {
|
|
1059
1181
|
parameters: {
|
|
1060
1182
|
query?: {
|
|
1061
|
-
/** @description
|
|
1183
|
+
/** @description The reason for the strike. */
|
|
1062
1184
|
strike_reason?: string;
|
|
1063
|
-
/** @description
|
|
1185
|
+
/** @description A flag indicating whether to issue a strike. */
|
|
1064
1186
|
with_strike?: boolean;
|
|
1065
1187
|
};
|
|
1066
1188
|
header?: never;
|
|
1067
1189
|
path: {
|
|
1068
|
-
session_id:
|
|
1190
|
+
session_id: number;
|
|
1069
1191
|
};
|
|
1070
1192
|
cookie?: never;
|
|
1071
1193
|
};
|
|
@@ -1096,7 +1218,7 @@ export interface operations {
|
|
|
1096
1218
|
query?: never;
|
|
1097
1219
|
header?: never;
|
|
1098
1220
|
path: {
|
|
1099
|
-
session_id:
|
|
1221
|
+
session_id: number;
|
|
1100
1222
|
};
|
|
1101
1223
|
cookie?: never;
|
|
1102
1224
|
};
|
|
@@ -1122,13 +1244,24 @@ export interface operations {
|
|
|
1122
1244
|
};
|
|
1123
1245
|
};
|
|
1124
1246
|
};
|
|
1125
|
-
|
|
1247
|
+
get_my_sessions_rental_sessions_user_me_get: {
|
|
1126
1248
|
parameters: {
|
|
1127
|
-
query?:
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1249
|
+
query?: {
|
|
1250
|
+
/** @description Флаг, показывать активные */
|
|
1251
|
+
is_active?: boolean;
|
|
1252
|
+
/** @description Флаг, показывать отмененные */
|
|
1253
|
+
is_canceled?: boolean;
|
|
1254
|
+
/** @description Флаг, показывать отклоненные */
|
|
1255
|
+
is_dismissed?: boolean;
|
|
1256
|
+
/** @description Флаг, показывать просроченные */
|
|
1257
|
+
is_overdue?: boolean;
|
|
1258
|
+
/** @description флаг, показывать заявки */
|
|
1259
|
+
is_reserved?: boolean;
|
|
1260
|
+
/** @description Флаг, показывать вернутые */
|
|
1261
|
+
is_returned?: boolean;
|
|
1131
1262
|
};
|
|
1263
|
+
header?: never;
|
|
1264
|
+
path?: never;
|
|
1132
1265
|
cookie?: never;
|
|
1133
1266
|
};
|
|
1134
1267
|
requestBody?: never;
|