@profcomff/api-uilib 2025.4.30 → 2025.9.11
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 +252 -126
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.
|
|
58
|
+
*
|
|
59
|
+
* Returns the created item.
|
|
43
60
|
*
|
|
44
|
-
*
|
|
45
|
-
* :return: Объект ItemGet с информацией о созданном предмете.
|
|
46
|
-
* :raises ObjectNotFound: Если тип предмета с указанным type_id не найден.
|
|
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.
|
|
91
|
+
*
|
|
92
|
+
* Returns a status response.
|
|
93
93
|
*
|
|
94
|
-
*
|
|
95
|
-
* :return: Объект StatusResponseModel с результатом выполнения операции.
|
|
96
|
-
* :raises ObjectNotFound: Если предмет с указанным идентификатором не найден.
|
|
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.
|
|
125
|
+
*
|
|
126
|
+
* Returns a list of all item types.
|
|
114
127
|
*
|
|
115
|
-
*
|
|
116
|
-
* :raises ObjectNotFound: Если типы предметов не найдены.
|
|
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.
|
|
123
135
|
*
|
|
124
|
-
* :
|
|
125
|
-
*
|
|
136
|
+
* Scopes: `["rental.item_type.create"]`
|
|
137
|
+
*
|
|
138
|
+
* - **item_type_info**: The data for the new item type.
|
|
139
|
+
*
|
|
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"]`
|
|
167
189
|
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
190
|
+
* - **id**: The ID of the item type.
|
|
191
|
+
* - **item_type_info**: The data to update the item type with.
|
|
192
|
+
*
|
|
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
|
+
*
|
|
220
|
+
* Returns a list of rental sessions.
|
|
194
221
|
*/
|
|
195
222
|
get: operations["get_rental_sessions_rental_sessions_get"];
|
|
196
223
|
put?: never;
|
|
@@ -212,12 +239,14 @@ export interface paths {
|
|
|
212
239
|
put?: never;
|
|
213
240
|
/**
|
|
214
241
|
* Create Rental Session
|
|
215
|
-
* @description
|
|
242
|
+
* @description Creates a new rental session for the specified item type.
|
|
243
|
+
*
|
|
244
|
+
* - **item_type_id**: The ID of the item type to rent.
|
|
245
|
+
* - **background_tasks**: Background tasks to be executed.
|
|
216
246
|
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
247
|
+
* Returns the created rental session.
|
|
248
|
+
*
|
|
249
|
+
* Raises **NoneAvailable** if no items of the specified type are available.
|
|
221
250
|
*/
|
|
222
251
|
post: operations["create_rental_session_rental_sessions__item_type_id__post"];
|
|
223
252
|
delete?: never;
|
|
@@ -233,7 +262,14 @@ export interface paths {
|
|
|
233
262
|
path?: never;
|
|
234
263
|
cookie?: never;
|
|
235
264
|
};
|
|
236
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Get Rental Session
|
|
267
|
+
* @description Retrieves a specific rental session by its ID.
|
|
268
|
+
*
|
|
269
|
+
* - **session_id**: The ID of the rental session.
|
|
270
|
+
*
|
|
271
|
+
* Returns the rental session.
|
|
272
|
+
*/
|
|
237
273
|
get: operations["get_rental_session_rental_sessions__session_id__get"];
|
|
238
274
|
put?: never;
|
|
239
275
|
post?: never;
|
|
@@ -242,12 +278,16 @@ export interface paths {
|
|
|
242
278
|
head?: never;
|
|
243
279
|
/**
|
|
244
280
|
* Update Rental Session
|
|
245
|
-
* @description
|
|
281
|
+
* @description Updates the information of a rental session.
|
|
282
|
+
*
|
|
283
|
+
* Scopes: `["rental.session.admin"]`
|
|
246
284
|
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
285
|
+
* - **session_id**: The ID of the rental session to update.
|
|
286
|
+
* - **update_data**: The data to update the session with.
|
|
287
|
+
*
|
|
288
|
+
* Returns the updated rental session.
|
|
289
|
+
*
|
|
290
|
+
* Raises **ObjectNotFound** if the session with the specified ID is not found.
|
|
251
291
|
*/
|
|
252
292
|
patch: operations["update_rental_session_rental_sessions__session_id__patch"];
|
|
253
293
|
trace?: never;
|
|
@@ -264,11 +304,13 @@ export interface paths {
|
|
|
264
304
|
post?: never;
|
|
265
305
|
/**
|
|
266
306
|
* Cancel Rental Session
|
|
267
|
-
* @description
|
|
307
|
+
* @description Cancels a session in the RESERVED status. Can only be canceled by the user who created it.
|
|
308
|
+
*
|
|
309
|
+
* - **session_id**: The ID of the rental session to cancel.
|
|
310
|
+
*
|
|
311
|
+
* Returns the canceled rental session.
|
|
268
312
|
*
|
|
269
|
-
*
|
|
270
|
-
* :raises ForbiddenAction: Если пользователь не владелец или статус не RESERVED
|
|
271
|
-
* :return: Объект отмененной сессии аренды
|
|
313
|
+
* Raises **ForbiddenAction** if the user is not the owner or the session is not in RESERVED status.
|
|
272
314
|
*/
|
|
273
315
|
delete: operations["cancel_rental_session_rental_sessions__session_id__cancel_delete"];
|
|
274
316
|
options?: never;
|
|
@@ -291,13 +333,19 @@ export interface paths {
|
|
|
291
333
|
head?: never;
|
|
292
334
|
/**
|
|
293
335
|
* Accept End Rental Session
|
|
294
|
-
* @description
|
|
295
|
-
*
|
|
296
|
-
* :
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
336
|
+
* @description Ends a rental session, changing its status to RETURNED. Issues a strike if specified.
|
|
337
|
+
*
|
|
338
|
+
* Scopes: `["rental.session.admin"]`
|
|
339
|
+
*
|
|
340
|
+
* - **session_id**: The ID of the rental session to end.
|
|
341
|
+
* - **with_strike**: A flag indicating whether to issue a strike.
|
|
342
|
+
* - **strike_reason**: The reason for the strike.
|
|
343
|
+
*
|
|
344
|
+
* Returns the updated rental session.
|
|
345
|
+
*
|
|
346
|
+
* Raises:
|
|
347
|
+
* - **ObjectNotFound**: If the session with the specified ID is not found.
|
|
348
|
+
* - **InactiveSession**: If the session is not active.
|
|
301
349
|
*/
|
|
302
350
|
patch: operations["accept_end_rental_session_rental_sessions__session_id__return_patch"];
|
|
303
351
|
trace?: never;
|
|
@@ -317,12 +365,15 @@ export interface paths {
|
|
|
317
365
|
head?: never;
|
|
318
366
|
/**
|
|
319
367
|
* Start Rental Session
|
|
320
|
-
* @description
|
|
368
|
+
* @description Starts a rental session, changing its status to ACTIVE.
|
|
321
369
|
*
|
|
322
|
-
* :
|
|
370
|
+
* Scopes: `["rental.session.admin"]`
|
|
323
371
|
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
372
|
+
* - **session_id**: The ID of the rental session to start.
|
|
373
|
+
*
|
|
374
|
+
* Returns the updated rental session.
|
|
375
|
+
*
|
|
376
|
+
* Raises **ObjectNotFound** if the session with the specified ID is not found.
|
|
326
377
|
*/
|
|
327
378
|
patch: operations["start_rental_session_rental_sessions__session_id__start_patch"];
|
|
328
379
|
trace?: never;
|
|
@@ -336,10 +387,13 @@ export interface paths {
|
|
|
336
387
|
};
|
|
337
388
|
/**
|
|
338
389
|
* Get User Sessions
|
|
339
|
-
* @description
|
|
390
|
+
* @description Retrieves a list of rental sessions for the specified user.
|
|
391
|
+
*
|
|
392
|
+
* Scopes: `["rental.session.admin"]`
|
|
340
393
|
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
394
|
+
* - **user_id**: The ID of the user.
|
|
395
|
+
*
|
|
396
|
+
* Returns a list of rental sessions.
|
|
343
397
|
*/
|
|
344
398
|
get: operations["get_user_sessions_rental_sessions_user__user_id__get"];
|
|
345
399
|
put?: never;
|
|
@@ -357,10 +411,33 @@ export interface paths {
|
|
|
357
411
|
path?: never;
|
|
358
412
|
cookie?: never;
|
|
359
413
|
};
|
|
360
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Get Strikes
|
|
416
|
+
* @description Retrieves a list of strikes with optional filtering.
|
|
417
|
+
*
|
|
418
|
+
* Scopes: `["rental.strike.read"]`
|
|
419
|
+
*
|
|
420
|
+
* - **admin_id**: Filter strikes by admin ID.
|
|
421
|
+
* - **session_id**: Filter strikes by session ID.
|
|
422
|
+
* - **from_date**: Filter strikes created after this date.
|
|
423
|
+
* - **to_date**: Filter strikes created before this date.
|
|
424
|
+
*
|
|
425
|
+
* Returns a list of strikes.
|
|
426
|
+
*
|
|
427
|
+
* Raises **DateRangeError** if only one of `from_date` or `to_date` is provided.
|
|
428
|
+
*/
|
|
361
429
|
get: operations["get_strikes_strike_get"];
|
|
362
430
|
put?: never;
|
|
363
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Create Strike
|
|
433
|
+
* @description Creates a new strike.
|
|
434
|
+
*
|
|
435
|
+
* Scopes: `["rental.strike.create"]`
|
|
436
|
+
*
|
|
437
|
+
* - **strike_info**: The data for the new strike.
|
|
438
|
+
*
|
|
439
|
+
* Returns the created strike.
|
|
440
|
+
*/
|
|
364
441
|
post: operations["create_strike_strike_post"];
|
|
365
442
|
delete?: never;
|
|
366
443
|
options?: never;
|
|
@@ -378,7 +455,18 @@ export interface paths {
|
|
|
378
455
|
get?: never;
|
|
379
456
|
put?: never;
|
|
380
457
|
post?: never;
|
|
381
|
-
/**
|
|
458
|
+
/**
|
|
459
|
+
* Delete Strike
|
|
460
|
+
* @description Deletes a strike by its ID.
|
|
461
|
+
*
|
|
462
|
+
* Scopes: `["rental.strike.delete"]`
|
|
463
|
+
*
|
|
464
|
+
* - **id**: The ID of the strike to delete.
|
|
465
|
+
*
|
|
466
|
+
* Returns a status response.
|
|
467
|
+
*
|
|
468
|
+
* Raises **ObjectNotFound** if the strike with the specified ID is not found.
|
|
469
|
+
*/
|
|
382
470
|
delete: operations["delete_strike_strike__id__delete"];
|
|
383
471
|
options?: never;
|
|
384
472
|
head?: never;
|
|
@@ -392,7 +480,14 @@ export interface paths {
|
|
|
392
480
|
path?: never;
|
|
393
481
|
cookie?: never;
|
|
394
482
|
};
|
|
395
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* Get User Strikes
|
|
485
|
+
* @description Retrieves a list of strikes for a specific user.
|
|
486
|
+
*
|
|
487
|
+
* - **user_id**: The ID of the user.
|
|
488
|
+
*
|
|
489
|
+
* Returns a list of strikes.
|
|
490
|
+
*/
|
|
396
491
|
get: operations["get_user_strikes_strike_user__user_id__get"];
|
|
397
492
|
put?: never;
|
|
398
493
|
post?: never;
|
|
@@ -531,10 +626,10 @@ export interface components {
|
|
|
531
626
|
/** Admin Id */
|
|
532
627
|
admin_id: number;
|
|
533
628
|
/**
|
|
534
|
-
*
|
|
629
|
+
* Create Ts
|
|
535
630
|
* Format: date-time
|
|
536
631
|
*/
|
|
537
|
-
|
|
632
|
+
create_ts: string;
|
|
538
633
|
/** Id */
|
|
539
634
|
id: number;
|
|
540
635
|
/** Reason */
|
|
@@ -606,7 +701,7 @@ export interface operations {
|
|
|
606
701
|
};
|
|
607
702
|
};
|
|
608
703
|
};
|
|
609
|
-
|
|
704
|
+
get_items_item_get: {
|
|
610
705
|
parameters: {
|
|
611
706
|
query?: {
|
|
612
707
|
type_id?: number;
|
|
@@ -637,7 +732,7 @@ export interface operations {
|
|
|
637
732
|
};
|
|
638
733
|
};
|
|
639
734
|
};
|
|
640
|
-
|
|
735
|
+
create_item_item_post: {
|
|
641
736
|
parameters: {
|
|
642
737
|
query?: never;
|
|
643
738
|
header?: never;
|
|
@@ -670,12 +765,9 @@ export interface operations {
|
|
|
670
765
|
};
|
|
671
766
|
};
|
|
672
767
|
};
|
|
673
|
-
|
|
768
|
+
get_item_item__id__get: {
|
|
674
769
|
parameters: {
|
|
675
|
-
query?:
|
|
676
|
-
/** @description Флаг доступен ли предмет */
|
|
677
|
-
is_available?: boolean;
|
|
678
|
-
};
|
|
770
|
+
query?: never;
|
|
679
771
|
header?: never;
|
|
680
772
|
path: {
|
|
681
773
|
id: number;
|
|
@@ -704,7 +796,7 @@ export interface operations {
|
|
|
704
796
|
};
|
|
705
797
|
};
|
|
706
798
|
};
|
|
707
|
-
|
|
799
|
+
delete_item_item__id__delete: {
|
|
708
800
|
parameters: {
|
|
709
801
|
query?: never;
|
|
710
802
|
header?: never;
|
|
@@ -735,6 +827,40 @@ export interface operations {
|
|
|
735
827
|
};
|
|
736
828
|
};
|
|
737
829
|
};
|
|
830
|
+
update_item_item__id__patch: {
|
|
831
|
+
parameters: {
|
|
832
|
+
query?: {
|
|
833
|
+
/** @description Flag indicating if the item is available */
|
|
834
|
+
is_available?: boolean;
|
|
835
|
+
};
|
|
836
|
+
header?: never;
|
|
837
|
+
path: {
|
|
838
|
+
id: number;
|
|
839
|
+
};
|
|
840
|
+
cookie?: never;
|
|
841
|
+
};
|
|
842
|
+
requestBody?: never;
|
|
843
|
+
responses: {
|
|
844
|
+
/** @description Successful Response */
|
|
845
|
+
200: {
|
|
846
|
+
headers: {
|
|
847
|
+
[name: string]: unknown;
|
|
848
|
+
};
|
|
849
|
+
content: {
|
|
850
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
/** @description Validation Error */
|
|
854
|
+
422: {
|
|
855
|
+
headers: {
|
|
856
|
+
[name: string]: unknown;
|
|
857
|
+
};
|
|
858
|
+
content: {
|
|
859
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
};
|
|
738
864
|
get_items_types_itemtype_get: {
|
|
739
865
|
parameters: {
|
|
740
866
|
query?: never;
|
|
@@ -888,17 +1014,17 @@ export interface operations {
|
|
|
888
1014
|
get_rental_sessions_rental_sessions_get: {
|
|
889
1015
|
parameters: {
|
|
890
1016
|
query?: {
|
|
891
|
-
/** @description
|
|
1017
|
+
/** @description Filter by active sessions. */
|
|
892
1018
|
is_active?: boolean;
|
|
893
|
-
/** @description
|
|
1019
|
+
/** @description Filter by canceled sessions. */
|
|
894
1020
|
is_canceled?: boolean;
|
|
895
|
-
/** @description
|
|
1021
|
+
/** @description Filter by dismissed sessions. */
|
|
896
1022
|
is_dismissed?: boolean;
|
|
897
|
-
/** @description
|
|
1023
|
+
/** @description Filter by overdue sessions. */
|
|
898
1024
|
is_overdue?: boolean;
|
|
899
|
-
/** @description
|
|
1025
|
+
/** @description Filter by reserved sessions. */
|
|
900
1026
|
is_reserved?: boolean;
|
|
901
|
-
/** @description
|
|
1027
|
+
/** @description Filter by returned sessions. */
|
|
902
1028
|
is_returned?: boolean;
|
|
903
1029
|
};
|
|
904
1030
|
header?: never;
|
|
@@ -932,7 +1058,7 @@ export interface operations {
|
|
|
932
1058
|
query?: never;
|
|
933
1059
|
header?: never;
|
|
934
1060
|
path: {
|
|
935
|
-
item_type_id:
|
|
1061
|
+
item_type_id: number;
|
|
936
1062
|
};
|
|
937
1063
|
cookie?: never;
|
|
938
1064
|
};
|
|
@@ -1058,14 +1184,14 @@ export interface operations {
|
|
|
1058
1184
|
accept_end_rental_session_rental_sessions__session_id__return_patch: {
|
|
1059
1185
|
parameters: {
|
|
1060
1186
|
query?: {
|
|
1061
|
-
/** @description
|
|
1187
|
+
/** @description The reason for the strike. */
|
|
1062
1188
|
strike_reason?: string;
|
|
1063
|
-
/** @description
|
|
1189
|
+
/** @description A flag indicating whether to issue a strike. */
|
|
1064
1190
|
with_strike?: boolean;
|
|
1065
1191
|
};
|
|
1066
1192
|
header?: never;
|
|
1067
1193
|
path: {
|
|
1068
|
-
session_id:
|
|
1194
|
+
session_id: number;
|
|
1069
1195
|
};
|
|
1070
1196
|
cookie?: never;
|
|
1071
1197
|
};
|
|
@@ -1096,7 +1222,7 @@ export interface operations {
|
|
|
1096
1222
|
query?: never;
|
|
1097
1223
|
header?: never;
|
|
1098
1224
|
path: {
|
|
1099
|
-
session_id:
|
|
1225
|
+
session_id: number;
|
|
1100
1226
|
};
|
|
1101
1227
|
cookie?: never;
|
|
1102
1228
|
};
|
|
@@ -1127,7 +1253,7 @@ export interface operations {
|
|
|
1127
1253
|
query?: never;
|
|
1128
1254
|
header?: never;
|
|
1129
1255
|
path: {
|
|
1130
|
-
user_id:
|
|
1256
|
+
user_id: number;
|
|
1131
1257
|
};
|
|
1132
1258
|
cookie?: never;
|
|
1133
1259
|
};
|