@profcomff/api-uilib 2025.4.15 → 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/scripts/generate.js +1 -0
- package/src/index.ts +4 -2
- package/src/openapi/rating.ts +15 -9
- package/src/openapi/rental.ts +1414 -0
|
@@ -0,0 +1,1414 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/rental/event": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
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
|
+
*/
|
|
25
|
+
get: operations["get_events_event_get"];
|
|
26
|
+
put?: never;
|
|
27
|
+
post?: never;
|
|
28
|
+
delete?: never;
|
|
29
|
+
options?: never;
|
|
30
|
+
head?: never;
|
|
31
|
+
patch?: never;
|
|
32
|
+
trace?: never;
|
|
33
|
+
};
|
|
34
|
+
"/rental/item": {
|
|
35
|
+
parameters: {
|
|
36
|
+
query?: never;
|
|
37
|
+
header?: never;
|
|
38
|
+
path?: never;
|
|
39
|
+
cookie?: never;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Get Items
|
|
43
|
+
* @description Retrieves a list of items. If `type_id` is specified, only items of that type are returned.
|
|
44
|
+
*
|
|
45
|
+
* - **type_id**: The ID of the item type (optional).
|
|
46
|
+
*
|
|
47
|
+
* Returns a list of items.
|
|
48
|
+
*/
|
|
49
|
+
get: operations["get_items_item_get"];
|
|
50
|
+
put?: never;
|
|
51
|
+
/**
|
|
52
|
+
* Create Item
|
|
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.
|
|
60
|
+
*
|
|
61
|
+
* Raises **ObjectNotFound** if the item type with the specified `type_id` is not found.
|
|
62
|
+
*/
|
|
63
|
+
post: operations["create_item_item_post"];
|
|
64
|
+
delete?: never;
|
|
65
|
+
options?: never;
|
|
66
|
+
head?: never;
|
|
67
|
+
patch?: never;
|
|
68
|
+
trace?: never;
|
|
69
|
+
};
|
|
70
|
+
"/rental/item/{id}": {
|
|
71
|
+
parameters: {
|
|
72
|
+
query?: never;
|
|
73
|
+
header?: never;
|
|
74
|
+
path?: never;
|
|
75
|
+
cookie?: never;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Get Item
|
|
79
|
+
* @description Получает предмет по его идентификатору.
|
|
80
|
+
*/
|
|
81
|
+
get: operations["get_item_item__id__get"];
|
|
82
|
+
put?: never;
|
|
83
|
+
post?: never;
|
|
84
|
+
/**
|
|
85
|
+
* Delete Item
|
|
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
|
+
*
|
|
94
|
+
* Raises **ObjectNotFound** if the item with the specified ID is not found.
|
|
95
|
+
*/
|
|
96
|
+
delete: operations["delete_item_item__id__delete"];
|
|
97
|
+
options?: never;
|
|
98
|
+
head?: never;
|
|
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"];
|
|
113
|
+
trace?: never;
|
|
114
|
+
};
|
|
115
|
+
"/rental/itemtype": {
|
|
116
|
+
parameters: {
|
|
117
|
+
query?: never;
|
|
118
|
+
header?: never;
|
|
119
|
+
path?: never;
|
|
120
|
+
cookie?: never;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Get Items Types
|
|
124
|
+
* @description Retrieves a list of all item types.
|
|
125
|
+
*
|
|
126
|
+
* Returns a list of all item types.
|
|
127
|
+
*
|
|
128
|
+
* Raises **ObjectNotFound** if no item types are found.
|
|
129
|
+
*/
|
|
130
|
+
get: operations["get_items_types_itemtype_get"];
|
|
131
|
+
put?: never;
|
|
132
|
+
/**
|
|
133
|
+
* Create Item Type
|
|
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.
|
|
139
|
+
*
|
|
140
|
+
* Returns the created item type.
|
|
141
|
+
*/
|
|
142
|
+
post: operations["create_item_type_itemtype_post"];
|
|
143
|
+
delete?: never;
|
|
144
|
+
options?: never;
|
|
145
|
+
head?: never;
|
|
146
|
+
patch?: never;
|
|
147
|
+
trace?: never;
|
|
148
|
+
};
|
|
149
|
+
"/rental/itemtype/{id}": {
|
|
150
|
+
parameters: {
|
|
151
|
+
query?: never;
|
|
152
|
+
header?: never;
|
|
153
|
+
path?: never;
|
|
154
|
+
cookie?: never;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Get Item Type
|
|
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.
|
|
163
|
+
*
|
|
164
|
+
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
165
|
+
*/
|
|
166
|
+
get: operations["get_item_type_itemtype__id__get"];
|
|
167
|
+
put?: never;
|
|
168
|
+
post?: never;
|
|
169
|
+
/**
|
|
170
|
+
* Delete Item Type
|
|
171
|
+
* @description Deletes an item type by its ID.
|
|
172
|
+
*
|
|
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.
|
|
180
|
+
*/
|
|
181
|
+
delete: operations["delete_item_type_itemtype__id__delete"];
|
|
182
|
+
options?: never;
|
|
183
|
+
head?: never;
|
|
184
|
+
/**
|
|
185
|
+
* Update Item Type
|
|
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.
|
|
192
|
+
*
|
|
193
|
+
* Returns the updated item type.
|
|
194
|
+
*
|
|
195
|
+
* Raises **ObjectNotFound** if the item type with the specified ID is not found.
|
|
196
|
+
*/
|
|
197
|
+
patch: operations["update_item_type_itemtype__id__patch"];
|
|
198
|
+
trace?: never;
|
|
199
|
+
};
|
|
200
|
+
"/rental/rental-sessions": {
|
|
201
|
+
parameters: {
|
|
202
|
+
query?: never;
|
|
203
|
+
header?: never;
|
|
204
|
+
path?: never;
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Get Rental Sessions
|
|
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.
|
|
221
|
+
*/
|
|
222
|
+
get: operations["get_rental_sessions_rental_sessions_get"];
|
|
223
|
+
put?: never;
|
|
224
|
+
post?: never;
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
231
|
+
"/rental/rental-sessions/{item_type_id}": {
|
|
232
|
+
parameters: {
|
|
233
|
+
query?: never;
|
|
234
|
+
header?: never;
|
|
235
|
+
path?: never;
|
|
236
|
+
cookie?: never;
|
|
237
|
+
};
|
|
238
|
+
get?: never;
|
|
239
|
+
put?: never;
|
|
240
|
+
/**
|
|
241
|
+
* Create Rental Session
|
|
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.
|
|
246
|
+
*
|
|
247
|
+
* Returns the created rental session.
|
|
248
|
+
*
|
|
249
|
+
* Raises **NoneAvailable** if no items of the specified type are available.
|
|
250
|
+
*/
|
|
251
|
+
post: operations["create_rental_session_rental_sessions__item_type_id__post"];
|
|
252
|
+
delete?: never;
|
|
253
|
+
options?: never;
|
|
254
|
+
head?: never;
|
|
255
|
+
patch?: never;
|
|
256
|
+
trace?: never;
|
|
257
|
+
};
|
|
258
|
+
"/rental/rental-sessions/{session_id}": {
|
|
259
|
+
parameters: {
|
|
260
|
+
query?: never;
|
|
261
|
+
header?: never;
|
|
262
|
+
path?: never;
|
|
263
|
+
cookie?: never;
|
|
264
|
+
};
|
|
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
|
+
*/
|
|
273
|
+
get: operations["get_rental_session_rental_sessions__session_id__get"];
|
|
274
|
+
put?: never;
|
|
275
|
+
post?: never;
|
|
276
|
+
delete?: never;
|
|
277
|
+
options?: never;
|
|
278
|
+
head?: never;
|
|
279
|
+
/**
|
|
280
|
+
* Update Rental Session
|
|
281
|
+
* @description Updates the information of a rental session.
|
|
282
|
+
*
|
|
283
|
+
* Scopes: `["rental.session.admin"]`
|
|
284
|
+
*
|
|
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.
|
|
291
|
+
*/
|
|
292
|
+
patch: operations["update_rental_session_rental_sessions__session_id__patch"];
|
|
293
|
+
trace?: never;
|
|
294
|
+
};
|
|
295
|
+
"/rental/rental-sessions/{session_id}/cancel": {
|
|
296
|
+
parameters: {
|
|
297
|
+
query?: never;
|
|
298
|
+
header?: never;
|
|
299
|
+
path?: never;
|
|
300
|
+
cookie?: never;
|
|
301
|
+
};
|
|
302
|
+
get?: never;
|
|
303
|
+
put?: never;
|
|
304
|
+
post?: never;
|
|
305
|
+
/**
|
|
306
|
+
* Cancel Rental Session
|
|
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.
|
|
312
|
+
*
|
|
313
|
+
* Raises **ForbiddenAction** if the user is not the owner or the session is not in RESERVED status.
|
|
314
|
+
*/
|
|
315
|
+
delete: operations["cancel_rental_session_rental_sessions__session_id__cancel_delete"];
|
|
316
|
+
options?: never;
|
|
317
|
+
head?: never;
|
|
318
|
+
patch?: never;
|
|
319
|
+
trace?: never;
|
|
320
|
+
};
|
|
321
|
+
"/rental/rental-sessions/{session_id}/return": {
|
|
322
|
+
parameters: {
|
|
323
|
+
query?: never;
|
|
324
|
+
header?: never;
|
|
325
|
+
path?: never;
|
|
326
|
+
cookie?: never;
|
|
327
|
+
};
|
|
328
|
+
get?: never;
|
|
329
|
+
put?: never;
|
|
330
|
+
post?: never;
|
|
331
|
+
delete?: never;
|
|
332
|
+
options?: never;
|
|
333
|
+
head?: never;
|
|
334
|
+
/**
|
|
335
|
+
* Accept End Rental Session
|
|
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.
|
|
349
|
+
*/
|
|
350
|
+
patch: operations["accept_end_rental_session_rental_sessions__session_id__return_patch"];
|
|
351
|
+
trace?: never;
|
|
352
|
+
};
|
|
353
|
+
"/rental/rental-sessions/{session_id}/start": {
|
|
354
|
+
parameters: {
|
|
355
|
+
query?: never;
|
|
356
|
+
header?: never;
|
|
357
|
+
path?: never;
|
|
358
|
+
cookie?: never;
|
|
359
|
+
};
|
|
360
|
+
get?: never;
|
|
361
|
+
put?: never;
|
|
362
|
+
post?: never;
|
|
363
|
+
delete?: never;
|
|
364
|
+
options?: never;
|
|
365
|
+
head?: never;
|
|
366
|
+
/**
|
|
367
|
+
* Start Rental Session
|
|
368
|
+
* @description Starts a rental session, changing its status to ACTIVE.
|
|
369
|
+
*
|
|
370
|
+
* Scopes: `["rental.session.admin"]`
|
|
371
|
+
*
|
|
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.
|
|
377
|
+
*/
|
|
378
|
+
patch: operations["start_rental_session_rental_sessions__session_id__start_patch"];
|
|
379
|
+
trace?: never;
|
|
380
|
+
};
|
|
381
|
+
"/rental/rental-sessions/user/{user_id}": {
|
|
382
|
+
parameters: {
|
|
383
|
+
query?: never;
|
|
384
|
+
header?: never;
|
|
385
|
+
path?: never;
|
|
386
|
+
cookie?: never;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Get User Sessions
|
|
390
|
+
* @description Retrieves a list of rental sessions for the specified user.
|
|
391
|
+
*
|
|
392
|
+
* Scopes: `["rental.session.admin"]`
|
|
393
|
+
*
|
|
394
|
+
* - **user_id**: The ID of the user.
|
|
395
|
+
*
|
|
396
|
+
* Returns a list of rental sessions.
|
|
397
|
+
*/
|
|
398
|
+
get: operations["get_user_sessions_rental_sessions_user__user_id__get"];
|
|
399
|
+
put?: never;
|
|
400
|
+
post?: never;
|
|
401
|
+
delete?: never;
|
|
402
|
+
options?: never;
|
|
403
|
+
head?: never;
|
|
404
|
+
patch?: never;
|
|
405
|
+
trace?: never;
|
|
406
|
+
};
|
|
407
|
+
"/rental/strike": {
|
|
408
|
+
parameters: {
|
|
409
|
+
query?: never;
|
|
410
|
+
header?: never;
|
|
411
|
+
path?: never;
|
|
412
|
+
cookie?: never;
|
|
413
|
+
};
|
|
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
|
+
*/
|
|
429
|
+
get: operations["get_strikes_strike_get"];
|
|
430
|
+
put?: never;
|
|
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
|
+
*/
|
|
441
|
+
post: operations["create_strike_strike_post"];
|
|
442
|
+
delete?: never;
|
|
443
|
+
options?: never;
|
|
444
|
+
head?: never;
|
|
445
|
+
patch?: never;
|
|
446
|
+
trace?: never;
|
|
447
|
+
};
|
|
448
|
+
"/rental/strike/{id}": {
|
|
449
|
+
parameters: {
|
|
450
|
+
query?: never;
|
|
451
|
+
header?: never;
|
|
452
|
+
path?: never;
|
|
453
|
+
cookie?: never;
|
|
454
|
+
};
|
|
455
|
+
get?: never;
|
|
456
|
+
put?: never;
|
|
457
|
+
post?: never;
|
|
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
|
+
*/
|
|
470
|
+
delete: operations["delete_strike_strike__id__delete"];
|
|
471
|
+
options?: never;
|
|
472
|
+
head?: never;
|
|
473
|
+
patch?: never;
|
|
474
|
+
trace?: never;
|
|
475
|
+
};
|
|
476
|
+
"/rental/strike/user/{user_id}": {
|
|
477
|
+
parameters: {
|
|
478
|
+
query?: never;
|
|
479
|
+
header?: never;
|
|
480
|
+
path?: never;
|
|
481
|
+
cookie?: never;
|
|
482
|
+
};
|
|
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
|
+
*/
|
|
491
|
+
get: operations["get_user_strikes_strike_user__user_id__get"];
|
|
492
|
+
put?: never;
|
|
493
|
+
post?: never;
|
|
494
|
+
delete?: never;
|
|
495
|
+
options?: never;
|
|
496
|
+
head?: never;
|
|
497
|
+
patch?: never;
|
|
498
|
+
trace?: never;
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
export type webhooks = Record<string, never>;
|
|
502
|
+
export interface components {
|
|
503
|
+
schemas: {
|
|
504
|
+
/** EventGet */
|
|
505
|
+
EventGet: {
|
|
506
|
+
/** Action Type */
|
|
507
|
+
action_type: string;
|
|
508
|
+
/** Admin Id */
|
|
509
|
+
admin_id?: number | null;
|
|
510
|
+
/**
|
|
511
|
+
* Create Ts
|
|
512
|
+
* Format: date-time
|
|
513
|
+
*/
|
|
514
|
+
create_ts: string;
|
|
515
|
+
/** Details */
|
|
516
|
+
details: {
|
|
517
|
+
[key: string]: unknown;
|
|
518
|
+
};
|
|
519
|
+
/** Id */
|
|
520
|
+
id: number;
|
|
521
|
+
/** Session Id */
|
|
522
|
+
session_id?: number | null;
|
|
523
|
+
/** User Id */
|
|
524
|
+
user_id?: number | null;
|
|
525
|
+
};
|
|
526
|
+
/** HTTPValidationError */
|
|
527
|
+
HTTPValidationError: {
|
|
528
|
+
/** Detail */
|
|
529
|
+
detail?: components["schemas"]["ValidationError"][];
|
|
530
|
+
};
|
|
531
|
+
/** ItemGet */
|
|
532
|
+
ItemGet: {
|
|
533
|
+
/** Id */
|
|
534
|
+
id: number;
|
|
535
|
+
/**
|
|
536
|
+
* Is Available
|
|
537
|
+
* @default false
|
|
538
|
+
*/
|
|
539
|
+
is_available: boolean;
|
|
540
|
+
/** Type Id */
|
|
541
|
+
type_id: number;
|
|
542
|
+
};
|
|
543
|
+
/** ItemPost */
|
|
544
|
+
ItemPost: {
|
|
545
|
+
/**
|
|
546
|
+
* Is Available
|
|
547
|
+
* @default false
|
|
548
|
+
*/
|
|
549
|
+
is_available: boolean;
|
|
550
|
+
/** Type Id */
|
|
551
|
+
type_id: number;
|
|
552
|
+
};
|
|
553
|
+
/** ItemTypeGet */
|
|
554
|
+
ItemTypeGet: {
|
|
555
|
+
/** Description */
|
|
556
|
+
description?: string | null;
|
|
557
|
+
/** Free Items Count */
|
|
558
|
+
free_items_count?: number | null;
|
|
559
|
+
/** Id */
|
|
560
|
+
id: number;
|
|
561
|
+
/** Image Url */
|
|
562
|
+
image_url?: string | null;
|
|
563
|
+
/** Name */
|
|
564
|
+
name: string;
|
|
565
|
+
};
|
|
566
|
+
/** ItemTypePost */
|
|
567
|
+
ItemTypePost: {
|
|
568
|
+
/** Description */
|
|
569
|
+
description?: string | null;
|
|
570
|
+
/** Image Url */
|
|
571
|
+
image_url?: string | null;
|
|
572
|
+
/** Name */
|
|
573
|
+
name: string;
|
|
574
|
+
};
|
|
575
|
+
/** RentalSessionGet */
|
|
576
|
+
RentalSessionGet: {
|
|
577
|
+
/** Actual Return Ts */
|
|
578
|
+
actual_return_ts: string | null;
|
|
579
|
+
/** Admin Close Id */
|
|
580
|
+
admin_close_id: number | null;
|
|
581
|
+
/** Admin Open Id */
|
|
582
|
+
admin_open_id: number | null;
|
|
583
|
+
/** End Ts */
|
|
584
|
+
end_ts: string | null;
|
|
585
|
+
/** Id */
|
|
586
|
+
id: number;
|
|
587
|
+
/** Item Id */
|
|
588
|
+
item_id: number;
|
|
589
|
+
/**
|
|
590
|
+
* Reservation Ts
|
|
591
|
+
* Format: date-time
|
|
592
|
+
*/
|
|
593
|
+
reservation_ts: string;
|
|
594
|
+
/** Start Ts */
|
|
595
|
+
start_ts: string | null;
|
|
596
|
+
status: components["schemas"]["RentStatus"];
|
|
597
|
+
/** User Id */
|
|
598
|
+
user_id: number;
|
|
599
|
+
};
|
|
600
|
+
/** RentalSessionPatch */
|
|
601
|
+
RentalSessionPatch: {
|
|
602
|
+
/** Actual Return Ts */
|
|
603
|
+
actual_return_ts?: string | null;
|
|
604
|
+
/** Admin Close Id */
|
|
605
|
+
admin_close_id?: number | null;
|
|
606
|
+
/** End Ts */
|
|
607
|
+
end_ts?: string | null;
|
|
608
|
+
status?: components["schemas"]["RentStatus"] | null;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* RentStatus
|
|
612
|
+
* @enum {string}
|
|
613
|
+
*/
|
|
614
|
+
RentStatus: "reserved" | "active" | "canceled" | "overdue" | "returned" | "dismissed";
|
|
615
|
+
/** StatusResponseModel */
|
|
616
|
+
StatusResponseModel: {
|
|
617
|
+
/** Message */
|
|
618
|
+
message: string;
|
|
619
|
+
/** Ru */
|
|
620
|
+
ru: string;
|
|
621
|
+
/** Status */
|
|
622
|
+
status: string;
|
|
623
|
+
};
|
|
624
|
+
/** StrikeGet */
|
|
625
|
+
StrikeGet: {
|
|
626
|
+
/** Admin Id */
|
|
627
|
+
admin_id: number;
|
|
628
|
+
/**
|
|
629
|
+
* Create Ts
|
|
630
|
+
* Format: date-time
|
|
631
|
+
*/
|
|
632
|
+
create_ts: string;
|
|
633
|
+
/** Id */
|
|
634
|
+
id: number;
|
|
635
|
+
/** Reason */
|
|
636
|
+
reason: string;
|
|
637
|
+
/** Session Id */
|
|
638
|
+
session_id?: number | null;
|
|
639
|
+
/** User Id */
|
|
640
|
+
user_id: number;
|
|
641
|
+
};
|
|
642
|
+
/** StrikePost */
|
|
643
|
+
StrikePost: {
|
|
644
|
+
/** Admin Id */
|
|
645
|
+
admin_id: number;
|
|
646
|
+
/** Reason */
|
|
647
|
+
reason: string;
|
|
648
|
+
/** Session Id */
|
|
649
|
+
session_id?: number | null;
|
|
650
|
+
/** User Id */
|
|
651
|
+
user_id: number;
|
|
652
|
+
};
|
|
653
|
+
/** ValidationError */
|
|
654
|
+
ValidationError: {
|
|
655
|
+
/** Location */
|
|
656
|
+
loc: (string | number)[];
|
|
657
|
+
/** Message */
|
|
658
|
+
msg: string;
|
|
659
|
+
/** Error Type */
|
|
660
|
+
type: string;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
responses: never;
|
|
664
|
+
parameters: never;
|
|
665
|
+
requestBodies: never;
|
|
666
|
+
headers: never;
|
|
667
|
+
pathItems: never;
|
|
668
|
+
}
|
|
669
|
+
export type $defs = Record<string, never>;
|
|
670
|
+
export interface operations {
|
|
671
|
+
get_events_event_get: {
|
|
672
|
+
parameters: {
|
|
673
|
+
query?: {
|
|
674
|
+
admin_id?: number | null;
|
|
675
|
+
session_id?: number | null;
|
|
676
|
+
user_id?: number | null;
|
|
677
|
+
};
|
|
678
|
+
header?: never;
|
|
679
|
+
path?: never;
|
|
680
|
+
cookie?: never;
|
|
681
|
+
};
|
|
682
|
+
requestBody?: never;
|
|
683
|
+
responses: {
|
|
684
|
+
/** @description Successful Response */
|
|
685
|
+
200: {
|
|
686
|
+
headers: {
|
|
687
|
+
[name: string]: unknown;
|
|
688
|
+
};
|
|
689
|
+
content: {
|
|
690
|
+
"application/json": components["schemas"]["EventGet"][];
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
/** @description Validation Error */
|
|
694
|
+
422: {
|
|
695
|
+
headers: {
|
|
696
|
+
[name: string]: unknown;
|
|
697
|
+
};
|
|
698
|
+
content: {
|
|
699
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
get_items_item_get: {
|
|
705
|
+
parameters: {
|
|
706
|
+
query?: {
|
|
707
|
+
type_id?: number;
|
|
708
|
+
};
|
|
709
|
+
header?: never;
|
|
710
|
+
path?: never;
|
|
711
|
+
cookie?: never;
|
|
712
|
+
};
|
|
713
|
+
requestBody?: never;
|
|
714
|
+
responses: {
|
|
715
|
+
/** @description Successful Response */
|
|
716
|
+
200: {
|
|
717
|
+
headers: {
|
|
718
|
+
[name: string]: unknown;
|
|
719
|
+
};
|
|
720
|
+
content: {
|
|
721
|
+
"application/json": components["schemas"]["ItemGet"][];
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
/** @description Validation Error */
|
|
725
|
+
422: {
|
|
726
|
+
headers: {
|
|
727
|
+
[name: string]: unknown;
|
|
728
|
+
};
|
|
729
|
+
content: {
|
|
730
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
create_item_item_post: {
|
|
736
|
+
parameters: {
|
|
737
|
+
query?: never;
|
|
738
|
+
header?: never;
|
|
739
|
+
path?: never;
|
|
740
|
+
cookie?: never;
|
|
741
|
+
};
|
|
742
|
+
requestBody: {
|
|
743
|
+
content: {
|
|
744
|
+
"application/json": components["schemas"]["ItemPost"];
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
responses: {
|
|
748
|
+
/** @description Successful Response */
|
|
749
|
+
200: {
|
|
750
|
+
headers: {
|
|
751
|
+
[name: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
content: {
|
|
754
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
/** @description Validation Error */
|
|
758
|
+
422: {
|
|
759
|
+
headers: {
|
|
760
|
+
[name: string]: unknown;
|
|
761
|
+
};
|
|
762
|
+
content: {
|
|
763
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
get_item_item__id__get: {
|
|
769
|
+
parameters: {
|
|
770
|
+
query?: never;
|
|
771
|
+
header?: never;
|
|
772
|
+
path: {
|
|
773
|
+
id: number;
|
|
774
|
+
};
|
|
775
|
+
cookie?: never;
|
|
776
|
+
};
|
|
777
|
+
requestBody?: never;
|
|
778
|
+
responses: {
|
|
779
|
+
/** @description Successful Response */
|
|
780
|
+
200: {
|
|
781
|
+
headers: {
|
|
782
|
+
[name: string]: unknown;
|
|
783
|
+
};
|
|
784
|
+
content: {
|
|
785
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
/** @description Validation Error */
|
|
789
|
+
422: {
|
|
790
|
+
headers: {
|
|
791
|
+
[name: string]: unknown;
|
|
792
|
+
};
|
|
793
|
+
content: {
|
|
794
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
delete_item_item__id__delete: {
|
|
800
|
+
parameters: {
|
|
801
|
+
query?: never;
|
|
802
|
+
header?: never;
|
|
803
|
+
path: {
|
|
804
|
+
id: number;
|
|
805
|
+
};
|
|
806
|
+
cookie?: never;
|
|
807
|
+
};
|
|
808
|
+
requestBody?: never;
|
|
809
|
+
responses: {
|
|
810
|
+
/** @description Successful Response */
|
|
811
|
+
200: {
|
|
812
|
+
headers: {
|
|
813
|
+
[name: string]: unknown;
|
|
814
|
+
};
|
|
815
|
+
content: {
|
|
816
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
/** @description Validation Error */
|
|
820
|
+
422: {
|
|
821
|
+
headers: {
|
|
822
|
+
[name: string]: unknown;
|
|
823
|
+
};
|
|
824
|
+
content: {
|
|
825
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
};
|
|
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
|
+
};
|
|
864
|
+
get_items_types_itemtype_get: {
|
|
865
|
+
parameters: {
|
|
866
|
+
query?: never;
|
|
867
|
+
header?: never;
|
|
868
|
+
path?: never;
|
|
869
|
+
cookie?: never;
|
|
870
|
+
};
|
|
871
|
+
requestBody?: never;
|
|
872
|
+
responses: {
|
|
873
|
+
/** @description Successful Response */
|
|
874
|
+
200: {
|
|
875
|
+
headers: {
|
|
876
|
+
[name: string]: unknown;
|
|
877
|
+
};
|
|
878
|
+
content: {
|
|
879
|
+
"application/json": components["schemas"]["ItemTypeGet"][];
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
create_item_type_itemtype_post: {
|
|
885
|
+
parameters: {
|
|
886
|
+
query?: never;
|
|
887
|
+
header?: never;
|
|
888
|
+
path?: never;
|
|
889
|
+
cookie?: never;
|
|
890
|
+
};
|
|
891
|
+
requestBody: {
|
|
892
|
+
content: {
|
|
893
|
+
"application/json": components["schemas"]["ItemTypePost"];
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
responses: {
|
|
897
|
+
/** @description Successful Response */
|
|
898
|
+
200: {
|
|
899
|
+
headers: {
|
|
900
|
+
[name: string]: unknown;
|
|
901
|
+
};
|
|
902
|
+
content: {
|
|
903
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
/** @description Validation Error */
|
|
907
|
+
422: {
|
|
908
|
+
headers: {
|
|
909
|
+
[name: string]: unknown;
|
|
910
|
+
};
|
|
911
|
+
content: {
|
|
912
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
get_item_type_itemtype__id__get: {
|
|
918
|
+
parameters: {
|
|
919
|
+
query?: never;
|
|
920
|
+
header?: never;
|
|
921
|
+
path: {
|
|
922
|
+
id: number;
|
|
923
|
+
};
|
|
924
|
+
cookie?: never;
|
|
925
|
+
};
|
|
926
|
+
requestBody?: never;
|
|
927
|
+
responses: {
|
|
928
|
+
/** @description Successful Response */
|
|
929
|
+
200: {
|
|
930
|
+
headers: {
|
|
931
|
+
[name: string]: unknown;
|
|
932
|
+
};
|
|
933
|
+
content: {
|
|
934
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
/** @description Validation Error */
|
|
938
|
+
422: {
|
|
939
|
+
headers: {
|
|
940
|
+
[name: string]: unknown;
|
|
941
|
+
};
|
|
942
|
+
content: {
|
|
943
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
delete_item_type_itemtype__id__delete: {
|
|
949
|
+
parameters: {
|
|
950
|
+
query?: never;
|
|
951
|
+
header?: never;
|
|
952
|
+
path: {
|
|
953
|
+
id: number;
|
|
954
|
+
};
|
|
955
|
+
cookie?: never;
|
|
956
|
+
};
|
|
957
|
+
requestBody?: never;
|
|
958
|
+
responses: {
|
|
959
|
+
/** @description Successful Response */
|
|
960
|
+
200: {
|
|
961
|
+
headers: {
|
|
962
|
+
[name: string]: unknown;
|
|
963
|
+
};
|
|
964
|
+
content: {
|
|
965
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
/** @description Validation Error */
|
|
969
|
+
422: {
|
|
970
|
+
headers: {
|
|
971
|
+
[name: string]: unknown;
|
|
972
|
+
};
|
|
973
|
+
content: {
|
|
974
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
update_item_type_itemtype__id__patch: {
|
|
980
|
+
parameters: {
|
|
981
|
+
query?: never;
|
|
982
|
+
header?: never;
|
|
983
|
+
path: {
|
|
984
|
+
id: number;
|
|
985
|
+
};
|
|
986
|
+
cookie?: never;
|
|
987
|
+
};
|
|
988
|
+
requestBody: {
|
|
989
|
+
content: {
|
|
990
|
+
"application/json": components["schemas"]["ItemTypePost"];
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
responses: {
|
|
994
|
+
/** @description Successful Response */
|
|
995
|
+
200: {
|
|
996
|
+
headers: {
|
|
997
|
+
[name: string]: unknown;
|
|
998
|
+
};
|
|
999
|
+
content: {
|
|
1000
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
/** @description Validation Error */
|
|
1004
|
+
422: {
|
|
1005
|
+
headers: {
|
|
1006
|
+
[name: string]: unknown;
|
|
1007
|
+
};
|
|
1008
|
+
content: {
|
|
1009
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
get_rental_sessions_rental_sessions_get: {
|
|
1015
|
+
parameters: {
|
|
1016
|
+
query?: {
|
|
1017
|
+
/** @description Filter by active sessions. */
|
|
1018
|
+
is_active?: boolean;
|
|
1019
|
+
/** @description Filter by canceled sessions. */
|
|
1020
|
+
is_canceled?: boolean;
|
|
1021
|
+
/** @description Filter by dismissed sessions. */
|
|
1022
|
+
is_dismissed?: boolean;
|
|
1023
|
+
/** @description Filter by overdue sessions. */
|
|
1024
|
+
is_overdue?: boolean;
|
|
1025
|
+
/** @description Filter by reserved sessions. */
|
|
1026
|
+
is_reserved?: boolean;
|
|
1027
|
+
/** @description Filter by returned sessions. */
|
|
1028
|
+
is_returned?: boolean;
|
|
1029
|
+
};
|
|
1030
|
+
header?: never;
|
|
1031
|
+
path?: never;
|
|
1032
|
+
cookie?: never;
|
|
1033
|
+
};
|
|
1034
|
+
requestBody?: never;
|
|
1035
|
+
responses: {
|
|
1036
|
+
/** @description Successful Response */
|
|
1037
|
+
200: {
|
|
1038
|
+
headers: {
|
|
1039
|
+
[name: string]: unknown;
|
|
1040
|
+
};
|
|
1041
|
+
content: {
|
|
1042
|
+
"application/json": components["schemas"]["RentalSessionGet"][];
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
/** @description Validation Error */
|
|
1046
|
+
422: {
|
|
1047
|
+
headers: {
|
|
1048
|
+
[name: string]: unknown;
|
|
1049
|
+
};
|
|
1050
|
+
content: {
|
|
1051
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
create_rental_session_rental_sessions__item_type_id__post: {
|
|
1057
|
+
parameters: {
|
|
1058
|
+
query?: never;
|
|
1059
|
+
header?: never;
|
|
1060
|
+
path: {
|
|
1061
|
+
item_type_id: number;
|
|
1062
|
+
};
|
|
1063
|
+
cookie?: never;
|
|
1064
|
+
};
|
|
1065
|
+
requestBody?: never;
|
|
1066
|
+
responses: {
|
|
1067
|
+
/** @description Successful Response */
|
|
1068
|
+
200: {
|
|
1069
|
+
headers: {
|
|
1070
|
+
[name: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
content: {
|
|
1073
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
/** @description Validation Error */
|
|
1077
|
+
422: {
|
|
1078
|
+
headers: {
|
|
1079
|
+
[name: string]: unknown;
|
|
1080
|
+
};
|
|
1081
|
+
content: {
|
|
1082
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
get_rental_session_rental_sessions__session_id__get: {
|
|
1088
|
+
parameters: {
|
|
1089
|
+
query?: never;
|
|
1090
|
+
header?: never;
|
|
1091
|
+
path: {
|
|
1092
|
+
session_id: number;
|
|
1093
|
+
};
|
|
1094
|
+
cookie?: never;
|
|
1095
|
+
};
|
|
1096
|
+
requestBody?: never;
|
|
1097
|
+
responses: {
|
|
1098
|
+
/** @description Successful Response */
|
|
1099
|
+
200: {
|
|
1100
|
+
headers: {
|
|
1101
|
+
[name: string]: unknown;
|
|
1102
|
+
};
|
|
1103
|
+
content: {
|
|
1104
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
/** @description Validation Error */
|
|
1108
|
+
422: {
|
|
1109
|
+
headers: {
|
|
1110
|
+
[name: string]: unknown;
|
|
1111
|
+
};
|
|
1112
|
+
content: {
|
|
1113
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
update_rental_session_rental_sessions__session_id__patch: {
|
|
1119
|
+
parameters: {
|
|
1120
|
+
query?: never;
|
|
1121
|
+
header?: never;
|
|
1122
|
+
path: {
|
|
1123
|
+
session_id: number;
|
|
1124
|
+
};
|
|
1125
|
+
cookie?: never;
|
|
1126
|
+
};
|
|
1127
|
+
requestBody: {
|
|
1128
|
+
content: {
|
|
1129
|
+
"application/json": components["schemas"]["RentalSessionPatch"];
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
responses: {
|
|
1133
|
+
/** @description Successful Response */
|
|
1134
|
+
200: {
|
|
1135
|
+
headers: {
|
|
1136
|
+
[name: string]: unknown;
|
|
1137
|
+
};
|
|
1138
|
+
content: {
|
|
1139
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
/** @description Validation Error */
|
|
1143
|
+
422: {
|
|
1144
|
+
headers: {
|
|
1145
|
+
[name: string]: unknown;
|
|
1146
|
+
};
|
|
1147
|
+
content: {
|
|
1148
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
cancel_rental_session_rental_sessions__session_id__cancel_delete: {
|
|
1154
|
+
parameters: {
|
|
1155
|
+
query?: never;
|
|
1156
|
+
header?: never;
|
|
1157
|
+
path: {
|
|
1158
|
+
session_id: number;
|
|
1159
|
+
};
|
|
1160
|
+
cookie?: never;
|
|
1161
|
+
};
|
|
1162
|
+
requestBody?: never;
|
|
1163
|
+
responses: {
|
|
1164
|
+
/** @description Successful Response */
|
|
1165
|
+
200: {
|
|
1166
|
+
headers: {
|
|
1167
|
+
[name: string]: unknown;
|
|
1168
|
+
};
|
|
1169
|
+
content: {
|
|
1170
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
/** @description Validation Error */
|
|
1174
|
+
422: {
|
|
1175
|
+
headers: {
|
|
1176
|
+
[name: string]: unknown;
|
|
1177
|
+
};
|
|
1178
|
+
content: {
|
|
1179
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
accept_end_rental_session_rental_sessions__session_id__return_patch: {
|
|
1185
|
+
parameters: {
|
|
1186
|
+
query?: {
|
|
1187
|
+
/** @description The reason for the strike. */
|
|
1188
|
+
strike_reason?: string;
|
|
1189
|
+
/** @description A flag indicating whether to issue a strike. */
|
|
1190
|
+
with_strike?: boolean;
|
|
1191
|
+
};
|
|
1192
|
+
header?: never;
|
|
1193
|
+
path: {
|
|
1194
|
+
session_id: number;
|
|
1195
|
+
};
|
|
1196
|
+
cookie?: never;
|
|
1197
|
+
};
|
|
1198
|
+
requestBody?: never;
|
|
1199
|
+
responses: {
|
|
1200
|
+
/** @description Successful Response */
|
|
1201
|
+
200: {
|
|
1202
|
+
headers: {
|
|
1203
|
+
[name: string]: unknown;
|
|
1204
|
+
};
|
|
1205
|
+
content: {
|
|
1206
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
/** @description Validation Error */
|
|
1210
|
+
422: {
|
|
1211
|
+
headers: {
|
|
1212
|
+
[name: string]: unknown;
|
|
1213
|
+
};
|
|
1214
|
+
content: {
|
|
1215
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
start_rental_session_rental_sessions__session_id__start_patch: {
|
|
1221
|
+
parameters: {
|
|
1222
|
+
query?: never;
|
|
1223
|
+
header?: never;
|
|
1224
|
+
path: {
|
|
1225
|
+
session_id: number;
|
|
1226
|
+
};
|
|
1227
|
+
cookie?: never;
|
|
1228
|
+
};
|
|
1229
|
+
requestBody?: never;
|
|
1230
|
+
responses: {
|
|
1231
|
+
/** @description Successful Response */
|
|
1232
|
+
200: {
|
|
1233
|
+
headers: {
|
|
1234
|
+
[name: string]: unknown;
|
|
1235
|
+
};
|
|
1236
|
+
content: {
|
|
1237
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
/** @description Validation Error */
|
|
1241
|
+
422: {
|
|
1242
|
+
headers: {
|
|
1243
|
+
[name: string]: unknown;
|
|
1244
|
+
};
|
|
1245
|
+
content: {
|
|
1246
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
get_user_sessions_rental_sessions_user__user_id__get: {
|
|
1252
|
+
parameters: {
|
|
1253
|
+
query?: never;
|
|
1254
|
+
header?: never;
|
|
1255
|
+
path: {
|
|
1256
|
+
user_id: number;
|
|
1257
|
+
};
|
|
1258
|
+
cookie?: never;
|
|
1259
|
+
};
|
|
1260
|
+
requestBody?: never;
|
|
1261
|
+
responses: {
|
|
1262
|
+
/** @description Successful Response */
|
|
1263
|
+
200: {
|
|
1264
|
+
headers: {
|
|
1265
|
+
[name: string]: unknown;
|
|
1266
|
+
};
|
|
1267
|
+
content: {
|
|
1268
|
+
"application/json": components["schemas"]["RentalSessionGet"][];
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
/** @description Validation Error */
|
|
1272
|
+
422: {
|
|
1273
|
+
headers: {
|
|
1274
|
+
[name: string]: unknown;
|
|
1275
|
+
};
|
|
1276
|
+
content: {
|
|
1277
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
get_strikes_strike_get: {
|
|
1283
|
+
parameters: {
|
|
1284
|
+
query?: {
|
|
1285
|
+
admin_id?: number | null;
|
|
1286
|
+
from_date?: string | null;
|
|
1287
|
+
session_id?: number | null;
|
|
1288
|
+
to_date?: string | null;
|
|
1289
|
+
user_id?: number | null;
|
|
1290
|
+
};
|
|
1291
|
+
header?: never;
|
|
1292
|
+
path?: never;
|
|
1293
|
+
cookie?: never;
|
|
1294
|
+
};
|
|
1295
|
+
requestBody?: never;
|
|
1296
|
+
responses: {
|
|
1297
|
+
/** @description Successful Response */
|
|
1298
|
+
200: {
|
|
1299
|
+
headers: {
|
|
1300
|
+
[name: string]: unknown;
|
|
1301
|
+
};
|
|
1302
|
+
content: {
|
|
1303
|
+
"application/json": components["schemas"]["StrikeGet"][];
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
/** @description Validation Error */
|
|
1307
|
+
422: {
|
|
1308
|
+
headers: {
|
|
1309
|
+
[name: string]: unknown;
|
|
1310
|
+
};
|
|
1311
|
+
content: {
|
|
1312
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
create_strike_strike_post: {
|
|
1318
|
+
parameters: {
|
|
1319
|
+
query?: never;
|
|
1320
|
+
header?: never;
|
|
1321
|
+
path?: never;
|
|
1322
|
+
cookie?: never;
|
|
1323
|
+
};
|
|
1324
|
+
requestBody: {
|
|
1325
|
+
content: {
|
|
1326
|
+
"application/json": components["schemas"]["StrikePost"];
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
responses: {
|
|
1330
|
+
/** @description Successful Response */
|
|
1331
|
+
200: {
|
|
1332
|
+
headers: {
|
|
1333
|
+
[name: string]: unknown;
|
|
1334
|
+
};
|
|
1335
|
+
content: {
|
|
1336
|
+
"application/json": components["schemas"]["StrikeGet"];
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
/** @description Validation Error */
|
|
1340
|
+
422: {
|
|
1341
|
+
headers: {
|
|
1342
|
+
[name: string]: unknown;
|
|
1343
|
+
};
|
|
1344
|
+
content: {
|
|
1345
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
delete_strike_strike__id__delete: {
|
|
1351
|
+
parameters: {
|
|
1352
|
+
query?: never;
|
|
1353
|
+
header?: never;
|
|
1354
|
+
path: {
|
|
1355
|
+
id: number;
|
|
1356
|
+
};
|
|
1357
|
+
cookie?: never;
|
|
1358
|
+
};
|
|
1359
|
+
requestBody?: never;
|
|
1360
|
+
responses: {
|
|
1361
|
+
/** @description Successful Response */
|
|
1362
|
+
200: {
|
|
1363
|
+
headers: {
|
|
1364
|
+
[name: string]: unknown;
|
|
1365
|
+
};
|
|
1366
|
+
content: {
|
|
1367
|
+
"application/json": {
|
|
1368
|
+
[key: string]: unknown;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
/** @description Validation Error */
|
|
1373
|
+
422: {
|
|
1374
|
+
headers: {
|
|
1375
|
+
[name: string]: unknown;
|
|
1376
|
+
};
|
|
1377
|
+
content: {
|
|
1378
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
get_user_strikes_strike_user__user_id__get: {
|
|
1384
|
+
parameters: {
|
|
1385
|
+
query?: never;
|
|
1386
|
+
header?: never;
|
|
1387
|
+
path: {
|
|
1388
|
+
user_id: number;
|
|
1389
|
+
};
|
|
1390
|
+
cookie?: never;
|
|
1391
|
+
};
|
|
1392
|
+
requestBody?: never;
|
|
1393
|
+
responses: {
|
|
1394
|
+
/** @description Successful Response */
|
|
1395
|
+
200: {
|
|
1396
|
+
headers: {
|
|
1397
|
+
[name: string]: unknown;
|
|
1398
|
+
};
|
|
1399
|
+
content: {
|
|
1400
|
+
"application/json": components["schemas"]["StrikeGet"][];
|
|
1401
|
+
};
|
|
1402
|
+
};
|
|
1403
|
+
/** @description Validation Error */
|
|
1404
|
+
422: {
|
|
1405
|
+
headers: {
|
|
1406
|
+
[name: string]: unknown;
|
|
1407
|
+
};
|
|
1408
|
+
content: {
|
|
1409
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
}
|