@profcomff/api-uilib 2025.3.1 → 2025.4.30
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 +182 -15
- package/src/openapi/rental.ts +1288 -0
|
@@ -0,0 +1,1288 @@
|
|
|
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
|
+
/** Get Events */
|
|
15
|
+
get: operations["get_events_event_get"];
|
|
16
|
+
put?: never;
|
|
17
|
+
post?: never;
|
|
18
|
+
delete?: never;
|
|
19
|
+
options?: never;
|
|
20
|
+
head?: never;
|
|
21
|
+
patch?: never;
|
|
22
|
+
trace?: never;
|
|
23
|
+
};
|
|
24
|
+
"/rental/items": {
|
|
25
|
+
parameters: {
|
|
26
|
+
query?: never;
|
|
27
|
+
header?: never;
|
|
28
|
+
path?: never;
|
|
29
|
+
cookie?: never;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Get Items
|
|
33
|
+
* @description Получает список предметов. Если указан type_id, возвращает только предметы с этим типом.
|
|
34
|
+
*
|
|
35
|
+
* :param type_id: Идентификатор типа предмета (опционально).
|
|
36
|
+
* :return: Список объектов ItemGet с информацией о предметах.
|
|
37
|
+
*/
|
|
38
|
+
get: operations["get_items_items_get"];
|
|
39
|
+
put?: never;
|
|
40
|
+
/**
|
|
41
|
+
* Create Item
|
|
42
|
+
* @description Создает новый предмет.
|
|
43
|
+
*
|
|
44
|
+
* :param item: Данные для создания нового предмета.
|
|
45
|
+
* :return: Объект ItemGet с информацией о созданном предмете.
|
|
46
|
+
* :raises ObjectNotFound: Если тип предмета с указанным type_id не найден.
|
|
47
|
+
*/
|
|
48
|
+
post: operations["create_item_items_post"];
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
55
|
+
"/rental/items/{id}": {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
61
|
+
};
|
|
62
|
+
get?: never;
|
|
63
|
+
put?: never;
|
|
64
|
+
post?: never;
|
|
65
|
+
delete?: never;
|
|
66
|
+
options?: never;
|
|
67
|
+
head?: never;
|
|
68
|
+
/**
|
|
69
|
+
* Update Item
|
|
70
|
+
* @description Обновляет статус доступности предмета по его идентификатору.
|
|
71
|
+
*
|
|
72
|
+
* :param id: id предмета.
|
|
73
|
+
* :param is_available: Флаг, указывающий? какой статус поставить предмету.
|
|
74
|
+
* :return: Объект ItemGet с обновленной информацией о предмете.
|
|
75
|
+
* :raises ObjectNotFound: Если предмет с указанным id не найден.
|
|
76
|
+
*/
|
|
77
|
+
patch: operations["update_item_items__id__patch"];
|
|
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;
|
|
88
|
+
put?: never;
|
|
89
|
+
post?: never;
|
|
90
|
+
/**
|
|
91
|
+
* Delete Item
|
|
92
|
+
* @description Удаляет предмет по его id.
|
|
93
|
+
*
|
|
94
|
+
* :param id: id предмета.
|
|
95
|
+
* :return: Объект StatusResponseModel с результатом выполнения операции.
|
|
96
|
+
* :raises ObjectNotFound: Если предмет с указанным идентификатором не найден.
|
|
97
|
+
*/
|
|
98
|
+
delete: operations["delete_item_items_item__id__delete"];
|
|
99
|
+
options?: never;
|
|
100
|
+
head?: never;
|
|
101
|
+
patch?: never;
|
|
102
|
+
trace?: never;
|
|
103
|
+
};
|
|
104
|
+
"/rental/itemtype": {
|
|
105
|
+
parameters: {
|
|
106
|
+
query?: never;
|
|
107
|
+
header?: never;
|
|
108
|
+
path?: never;
|
|
109
|
+
cookie?: never;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Get Items Types
|
|
113
|
+
* @description Получает список всех типов предметов.
|
|
114
|
+
*
|
|
115
|
+
* :return: Список объектов ItemTypeGet с информацией о всех типах предметов.
|
|
116
|
+
* :raises ObjectNotFound: Если типы предметов не найдены.
|
|
117
|
+
*/
|
|
118
|
+
get: operations["get_items_types_itemtype_get"];
|
|
119
|
+
put?: never;
|
|
120
|
+
/**
|
|
121
|
+
* Create Item Type
|
|
122
|
+
* @description Создает новый тип предмета.
|
|
123
|
+
*
|
|
124
|
+
* :param item_type_info: Данные для создания нового типа предмета.
|
|
125
|
+
* :return: Объект ItemTypeGet с информацией о созданном типе предмета.
|
|
126
|
+
*/
|
|
127
|
+
post: operations["create_item_type_itemtype_post"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
134
|
+
"/rental/itemtype/{id}": {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path?: never;
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Get Item Type
|
|
143
|
+
* @description Получает информацию о типе предмета по его id.
|
|
144
|
+
*
|
|
145
|
+
* :param id: Идентификатор типа предмета.
|
|
146
|
+
* :return: Объект ItemTypeGet с информацией о типе предмета.
|
|
147
|
+
* :raises ObjectNotFound: Если тип предмета с указанным идентификатором не найден.
|
|
148
|
+
*/
|
|
149
|
+
get: operations["get_item_type_itemtype__id__get"];
|
|
150
|
+
put?: never;
|
|
151
|
+
post?: never;
|
|
152
|
+
/**
|
|
153
|
+
* Delete Item Type
|
|
154
|
+
* @description Удаляет тип предмета по его id и все предметы этого типа.
|
|
155
|
+
*
|
|
156
|
+
* :param id: Идентификатор типа предмета.
|
|
157
|
+
* :param user: Пользователь, авторизованный для выполнения действия.
|
|
158
|
+
* :return: Объект StatusResponseModel с результатом выполнения операции.
|
|
159
|
+
* :raises ObjectNotFound: Если тип предмета с указанным идентификатором не найден.
|
|
160
|
+
*/
|
|
161
|
+
delete: operations["delete_item_type_itemtype__id__delete"];
|
|
162
|
+
options?: never;
|
|
163
|
+
head?: never;
|
|
164
|
+
/**
|
|
165
|
+
* Update Item Type
|
|
166
|
+
* @description Обновляет информацию о типе предмета по его идентификатору.
|
|
167
|
+
*
|
|
168
|
+
* :param id: Идентификатор типа предмета.
|
|
169
|
+
* :param item_type_info: Данные для обновления типа предмета.
|
|
170
|
+
* :return: Объект ItemTypeGet с обновленной информацией о типе предмета.
|
|
171
|
+
* :raises ObjectNotFound: Если тип предмета с указанным идентификатором не найден.
|
|
172
|
+
*/
|
|
173
|
+
patch: operations["update_item_type_itemtype__id__patch"];
|
|
174
|
+
trace?: never;
|
|
175
|
+
};
|
|
176
|
+
"/rental/rental-sessions": {
|
|
177
|
+
parameters: {
|
|
178
|
+
query?: never;
|
|
179
|
+
header?: never;
|
|
180
|
+
path?: never;
|
|
181
|
+
cookie?: never;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Get Rental Sessions
|
|
185
|
+
* @description Получает список сессий аренды с возможностью фильтрации по статусу.
|
|
186
|
+
*
|
|
187
|
+
* :param is_reserved: Флаг, показывать зарезервированные сессии.
|
|
188
|
+
* :param is_canceled: Флаг, показывать отмененные сессии.
|
|
189
|
+
* :param is_dismissed: Флаг, показывать отклоненные сессии.
|
|
190
|
+
* :param is_overdue: Флаг, показывать просроченные сессии.
|
|
191
|
+
* :param is_returned: Флаг, показывать возвращенные сессии.
|
|
192
|
+
* :param is_active: Флаг, показывать активные сессии.
|
|
193
|
+
* :return: Список объектов RentalSessionGet с информацией о сессиях аренды.
|
|
194
|
+
*/
|
|
195
|
+
get: operations["get_rental_sessions_rental_sessions_get"];
|
|
196
|
+
put?: never;
|
|
197
|
+
post?: never;
|
|
198
|
+
delete?: never;
|
|
199
|
+
options?: never;
|
|
200
|
+
head?: never;
|
|
201
|
+
patch?: never;
|
|
202
|
+
trace?: never;
|
|
203
|
+
};
|
|
204
|
+
"/rental/rental-sessions/{item_type_id}": {
|
|
205
|
+
parameters: {
|
|
206
|
+
query?: never;
|
|
207
|
+
header?: never;
|
|
208
|
+
path?: never;
|
|
209
|
+
cookie?: never;
|
|
210
|
+
};
|
|
211
|
+
get?: never;
|
|
212
|
+
put?: never;
|
|
213
|
+
/**
|
|
214
|
+
* Create Rental Session
|
|
215
|
+
* @description Создает новую сессию аренды для указанного типа предмета.
|
|
216
|
+
*
|
|
217
|
+
* :param item_type_id: Идентификатор типа предмета.
|
|
218
|
+
* :param background_tasks: Фоновые задачи для выполнения.
|
|
219
|
+
* :return: Объект RentalSessionGet с информацией о созданной сессии аренды.
|
|
220
|
+
* :raises NoneAvailable: Если нет доступных предметов указанного типа.
|
|
221
|
+
*/
|
|
222
|
+
post: operations["create_rental_session_rental_sessions__item_type_id__post"];
|
|
223
|
+
delete?: never;
|
|
224
|
+
options?: never;
|
|
225
|
+
head?: never;
|
|
226
|
+
patch?: never;
|
|
227
|
+
trace?: never;
|
|
228
|
+
};
|
|
229
|
+
"/rental/rental-sessions/{session_id}": {
|
|
230
|
+
parameters: {
|
|
231
|
+
query?: never;
|
|
232
|
+
header?: never;
|
|
233
|
+
path?: never;
|
|
234
|
+
cookie?: never;
|
|
235
|
+
};
|
|
236
|
+
/** Get Rental Session */
|
|
237
|
+
get: operations["get_rental_session_rental_sessions__session_id__get"];
|
|
238
|
+
put?: never;
|
|
239
|
+
post?: never;
|
|
240
|
+
delete?: never;
|
|
241
|
+
options?: never;
|
|
242
|
+
head?: never;
|
|
243
|
+
/**
|
|
244
|
+
* Update Rental Session
|
|
245
|
+
* @description Обновляет информацию о сессии аренды.
|
|
246
|
+
*
|
|
247
|
+
* :param session_id: Идентификатор сессии аренды.
|
|
248
|
+
* :param update_data: Данные для обновления сессии.
|
|
249
|
+
* :return: Объект RentalSessionGet с обновленной информацией о сессии аренды.
|
|
250
|
+
* :raises ObjectNotFound: Если сессия с указанным идентификатором не найдена.
|
|
251
|
+
*/
|
|
252
|
+
patch: operations["update_rental_session_rental_sessions__session_id__patch"];
|
|
253
|
+
trace?: never;
|
|
254
|
+
};
|
|
255
|
+
"/rental/rental-sessions/{session_id}/cancel": {
|
|
256
|
+
parameters: {
|
|
257
|
+
query?: never;
|
|
258
|
+
header?: never;
|
|
259
|
+
path?: never;
|
|
260
|
+
cookie?: never;
|
|
261
|
+
};
|
|
262
|
+
get?: never;
|
|
263
|
+
put?: never;
|
|
264
|
+
post?: never;
|
|
265
|
+
/**
|
|
266
|
+
* Cancel Rental Session
|
|
267
|
+
* @description Отменяет сессию в статусе RESERVED. Отменить может только сам юзер
|
|
268
|
+
*
|
|
269
|
+
* :param session_id: Идентификатор сессии аренды
|
|
270
|
+
* :raises ForbiddenAction: Если пользователь не владелец или статус не RESERVED
|
|
271
|
+
* :return: Объект отмененной сессии аренды
|
|
272
|
+
*/
|
|
273
|
+
delete: operations["cancel_rental_session_rental_sessions__session_id__cancel_delete"];
|
|
274
|
+
options?: never;
|
|
275
|
+
head?: never;
|
|
276
|
+
patch?: never;
|
|
277
|
+
trace?: never;
|
|
278
|
+
};
|
|
279
|
+
"/rental/rental-sessions/{session_id}/return": {
|
|
280
|
+
parameters: {
|
|
281
|
+
query?: never;
|
|
282
|
+
header?: never;
|
|
283
|
+
path?: never;
|
|
284
|
+
cookie?: never;
|
|
285
|
+
};
|
|
286
|
+
get?: never;
|
|
287
|
+
put?: never;
|
|
288
|
+
post?: never;
|
|
289
|
+
delete?: never;
|
|
290
|
+
options?: never;
|
|
291
|
+
head?: never;
|
|
292
|
+
/**
|
|
293
|
+
* Accept End Rental Session
|
|
294
|
+
* @description Завершает сессию аренды, изменяя её статус на RETURNED. При необходимости выдает страйк.
|
|
295
|
+
* :param session_id: Идентификатор сессии аренды.
|
|
296
|
+
* :param with_strike: Флаг, указывающий, нужно ли выдать страйк.
|
|
297
|
+
* :param strike_reason: Причина выдачи страйка.
|
|
298
|
+
* :return: Объект RentalSessionGet с обновленной информацией о сессии аренды.
|
|
299
|
+
* :raises ObjectNotFound: Если сессия с указанным идентификатором не найдена.
|
|
300
|
+
* :raises InactiveSession: Если сессия не активна.
|
|
301
|
+
*/
|
|
302
|
+
patch: operations["accept_end_rental_session_rental_sessions__session_id__return_patch"];
|
|
303
|
+
trace?: never;
|
|
304
|
+
};
|
|
305
|
+
"/rental/rental-sessions/{session_id}/start": {
|
|
306
|
+
parameters: {
|
|
307
|
+
query?: never;
|
|
308
|
+
header?: never;
|
|
309
|
+
path?: never;
|
|
310
|
+
cookie?: never;
|
|
311
|
+
};
|
|
312
|
+
get?: never;
|
|
313
|
+
put?: never;
|
|
314
|
+
post?: never;
|
|
315
|
+
delete?: never;
|
|
316
|
+
options?: never;
|
|
317
|
+
head?: never;
|
|
318
|
+
/**
|
|
319
|
+
* Start Rental Session
|
|
320
|
+
* @description Начинает сессию аренды, изменяя её статус на ACTIVE.
|
|
321
|
+
*
|
|
322
|
+
* :param session_id: Идентификатор сессии аренды.
|
|
323
|
+
*
|
|
324
|
+
* :return: Объект RentalSessionGet с обновленной информацией о сессии аренды.
|
|
325
|
+
* :raises ObjectNotFound: Если сессия с указанным идентификатором не найдена.
|
|
326
|
+
*/
|
|
327
|
+
patch: operations["start_rental_session_rental_sessions__session_id__start_patch"];
|
|
328
|
+
trace?: never;
|
|
329
|
+
};
|
|
330
|
+
"/rental/rental-sessions/user/{user_id}": {
|
|
331
|
+
parameters: {
|
|
332
|
+
query?: never;
|
|
333
|
+
header?: never;
|
|
334
|
+
path?: never;
|
|
335
|
+
cookie?: never;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Get User Sessions
|
|
339
|
+
* @description Получает список сессий аренды для указанного пользователя.
|
|
340
|
+
*
|
|
341
|
+
* :param user_id: id пользователя.
|
|
342
|
+
* :return: Список объектов RentalSessionGet с информацией о сессиях аренды.
|
|
343
|
+
*/
|
|
344
|
+
get: operations["get_user_sessions_rental_sessions_user__user_id__get"];
|
|
345
|
+
put?: never;
|
|
346
|
+
post?: never;
|
|
347
|
+
delete?: never;
|
|
348
|
+
options?: never;
|
|
349
|
+
head?: never;
|
|
350
|
+
patch?: never;
|
|
351
|
+
trace?: never;
|
|
352
|
+
};
|
|
353
|
+
"/rental/strike": {
|
|
354
|
+
parameters: {
|
|
355
|
+
query?: never;
|
|
356
|
+
header?: never;
|
|
357
|
+
path?: never;
|
|
358
|
+
cookie?: never;
|
|
359
|
+
};
|
|
360
|
+
/** Get Strikes */
|
|
361
|
+
get: operations["get_strikes_strike_get"];
|
|
362
|
+
put?: never;
|
|
363
|
+
/** Create Strike */
|
|
364
|
+
post: operations["create_strike_strike_post"];
|
|
365
|
+
delete?: never;
|
|
366
|
+
options?: never;
|
|
367
|
+
head?: never;
|
|
368
|
+
patch?: never;
|
|
369
|
+
trace?: never;
|
|
370
|
+
};
|
|
371
|
+
"/rental/strike/{id}": {
|
|
372
|
+
parameters: {
|
|
373
|
+
query?: never;
|
|
374
|
+
header?: never;
|
|
375
|
+
path?: never;
|
|
376
|
+
cookie?: never;
|
|
377
|
+
};
|
|
378
|
+
get?: never;
|
|
379
|
+
put?: never;
|
|
380
|
+
post?: never;
|
|
381
|
+
/** Delete Strike */
|
|
382
|
+
delete: operations["delete_strike_strike__id__delete"];
|
|
383
|
+
options?: never;
|
|
384
|
+
head?: never;
|
|
385
|
+
patch?: never;
|
|
386
|
+
trace?: never;
|
|
387
|
+
};
|
|
388
|
+
"/rental/strike/user/{user_id}": {
|
|
389
|
+
parameters: {
|
|
390
|
+
query?: never;
|
|
391
|
+
header?: never;
|
|
392
|
+
path?: never;
|
|
393
|
+
cookie?: never;
|
|
394
|
+
};
|
|
395
|
+
/** Get User Strikes */
|
|
396
|
+
get: operations["get_user_strikes_strike_user__user_id__get"];
|
|
397
|
+
put?: never;
|
|
398
|
+
post?: never;
|
|
399
|
+
delete?: never;
|
|
400
|
+
options?: never;
|
|
401
|
+
head?: never;
|
|
402
|
+
patch?: never;
|
|
403
|
+
trace?: never;
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
export type webhooks = Record<string, never>;
|
|
407
|
+
export interface components {
|
|
408
|
+
schemas: {
|
|
409
|
+
/** EventGet */
|
|
410
|
+
EventGet: {
|
|
411
|
+
/** Action Type */
|
|
412
|
+
action_type: string;
|
|
413
|
+
/** Admin Id */
|
|
414
|
+
admin_id?: number | null;
|
|
415
|
+
/**
|
|
416
|
+
* Create Ts
|
|
417
|
+
* Format: date-time
|
|
418
|
+
*/
|
|
419
|
+
create_ts: string;
|
|
420
|
+
/** Details */
|
|
421
|
+
details: {
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
};
|
|
424
|
+
/** Id */
|
|
425
|
+
id: number;
|
|
426
|
+
/** Session Id */
|
|
427
|
+
session_id?: number | null;
|
|
428
|
+
/** User Id */
|
|
429
|
+
user_id?: number | null;
|
|
430
|
+
};
|
|
431
|
+
/** HTTPValidationError */
|
|
432
|
+
HTTPValidationError: {
|
|
433
|
+
/** Detail */
|
|
434
|
+
detail?: components["schemas"]["ValidationError"][];
|
|
435
|
+
};
|
|
436
|
+
/** ItemGet */
|
|
437
|
+
ItemGet: {
|
|
438
|
+
/** Id */
|
|
439
|
+
id: number;
|
|
440
|
+
/**
|
|
441
|
+
* Is Available
|
|
442
|
+
* @default false
|
|
443
|
+
*/
|
|
444
|
+
is_available: boolean;
|
|
445
|
+
/** Type Id */
|
|
446
|
+
type_id: number;
|
|
447
|
+
};
|
|
448
|
+
/** ItemPost */
|
|
449
|
+
ItemPost: {
|
|
450
|
+
/**
|
|
451
|
+
* Is Available
|
|
452
|
+
* @default false
|
|
453
|
+
*/
|
|
454
|
+
is_available: boolean;
|
|
455
|
+
/** Type Id */
|
|
456
|
+
type_id: number;
|
|
457
|
+
};
|
|
458
|
+
/** ItemTypeGet */
|
|
459
|
+
ItemTypeGet: {
|
|
460
|
+
/** Description */
|
|
461
|
+
description?: string | null;
|
|
462
|
+
/** Free Items Count */
|
|
463
|
+
free_items_count?: number | null;
|
|
464
|
+
/** Id */
|
|
465
|
+
id: number;
|
|
466
|
+
/** Image Url */
|
|
467
|
+
image_url?: string | null;
|
|
468
|
+
/** Name */
|
|
469
|
+
name: string;
|
|
470
|
+
};
|
|
471
|
+
/** ItemTypePost */
|
|
472
|
+
ItemTypePost: {
|
|
473
|
+
/** Description */
|
|
474
|
+
description?: string | null;
|
|
475
|
+
/** Image Url */
|
|
476
|
+
image_url?: string | null;
|
|
477
|
+
/** Name */
|
|
478
|
+
name: string;
|
|
479
|
+
};
|
|
480
|
+
/** RentalSessionGet */
|
|
481
|
+
RentalSessionGet: {
|
|
482
|
+
/** Actual Return Ts */
|
|
483
|
+
actual_return_ts: string | null;
|
|
484
|
+
/** Admin Close Id */
|
|
485
|
+
admin_close_id: number | null;
|
|
486
|
+
/** Admin Open Id */
|
|
487
|
+
admin_open_id: number | null;
|
|
488
|
+
/** End Ts */
|
|
489
|
+
end_ts: string | null;
|
|
490
|
+
/** Id */
|
|
491
|
+
id: number;
|
|
492
|
+
/** Item Id */
|
|
493
|
+
item_id: number;
|
|
494
|
+
/**
|
|
495
|
+
* Reservation Ts
|
|
496
|
+
* Format: date-time
|
|
497
|
+
*/
|
|
498
|
+
reservation_ts: string;
|
|
499
|
+
/** Start Ts */
|
|
500
|
+
start_ts: string | null;
|
|
501
|
+
status: components["schemas"]["RentStatus"];
|
|
502
|
+
/** User Id */
|
|
503
|
+
user_id: number;
|
|
504
|
+
};
|
|
505
|
+
/** RentalSessionPatch */
|
|
506
|
+
RentalSessionPatch: {
|
|
507
|
+
/** Actual Return Ts */
|
|
508
|
+
actual_return_ts?: string | null;
|
|
509
|
+
/** Admin Close Id */
|
|
510
|
+
admin_close_id?: number | null;
|
|
511
|
+
/** End Ts */
|
|
512
|
+
end_ts?: string | null;
|
|
513
|
+
status?: components["schemas"]["RentStatus"] | null;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* RentStatus
|
|
517
|
+
* @enum {string}
|
|
518
|
+
*/
|
|
519
|
+
RentStatus: "reserved" | "active" | "canceled" | "overdue" | "returned" | "dismissed";
|
|
520
|
+
/** StatusResponseModel */
|
|
521
|
+
StatusResponseModel: {
|
|
522
|
+
/** Message */
|
|
523
|
+
message: string;
|
|
524
|
+
/** Ru */
|
|
525
|
+
ru: string;
|
|
526
|
+
/** Status */
|
|
527
|
+
status: string;
|
|
528
|
+
};
|
|
529
|
+
/** StrikeGet */
|
|
530
|
+
StrikeGet: {
|
|
531
|
+
/** Admin Id */
|
|
532
|
+
admin_id: number;
|
|
533
|
+
/**
|
|
534
|
+
* Created Ts
|
|
535
|
+
* Format: date-time
|
|
536
|
+
*/
|
|
537
|
+
created_ts: string;
|
|
538
|
+
/** Id */
|
|
539
|
+
id: number;
|
|
540
|
+
/** Reason */
|
|
541
|
+
reason: string;
|
|
542
|
+
/** Session Id */
|
|
543
|
+
session_id?: number | null;
|
|
544
|
+
/** User Id */
|
|
545
|
+
user_id: number;
|
|
546
|
+
};
|
|
547
|
+
/** StrikePost */
|
|
548
|
+
StrikePost: {
|
|
549
|
+
/** Admin Id */
|
|
550
|
+
admin_id: number;
|
|
551
|
+
/** Reason */
|
|
552
|
+
reason: string;
|
|
553
|
+
/** Session Id */
|
|
554
|
+
session_id?: number | null;
|
|
555
|
+
/** User Id */
|
|
556
|
+
user_id: number;
|
|
557
|
+
};
|
|
558
|
+
/** ValidationError */
|
|
559
|
+
ValidationError: {
|
|
560
|
+
/** Location */
|
|
561
|
+
loc: (string | number)[];
|
|
562
|
+
/** Message */
|
|
563
|
+
msg: string;
|
|
564
|
+
/** Error Type */
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
responses: never;
|
|
569
|
+
parameters: never;
|
|
570
|
+
requestBodies: never;
|
|
571
|
+
headers: never;
|
|
572
|
+
pathItems: never;
|
|
573
|
+
}
|
|
574
|
+
export type $defs = Record<string, never>;
|
|
575
|
+
export interface operations {
|
|
576
|
+
get_events_event_get: {
|
|
577
|
+
parameters: {
|
|
578
|
+
query?: {
|
|
579
|
+
admin_id?: number | null;
|
|
580
|
+
session_id?: number | null;
|
|
581
|
+
user_id?: number | null;
|
|
582
|
+
};
|
|
583
|
+
header?: never;
|
|
584
|
+
path?: never;
|
|
585
|
+
cookie?: never;
|
|
586
|
+
};
|
|
587
|
+
requestBody?: never;
|
|
588
|
+
responses: {
|
|
589
|
+
/** @description Successful Response */
|
|
590
|
+
200: {
|
|
591
|
+
headers: {
|
|
592
|
+
[name: string]: unknown;
|
|
593
|
+
};
|
|
594
|
+
content: {
|
|
595
|
+
"application/json": components["schemas"]["EventGet"][];
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
/** @description Validation Error */
|
|
599
|
+
422: {
|
|
600
|
+
headers: {
|
|
601
|
+
[name: string]: unknown;
|
|
602
|
+
};
|
|
603
|
+
content: {
|
|
604
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
get_items_items_get: {
|
|
610
|
+
parameters: {
|
|
611
|
+
query?: {
|
|
612
|
+
type_id?: number;
|
|
613
|
+
};
|
|
614
|
+
header?: never;
|
|
615
|
+
path?: never;
|
|
616
|
+
cookie?: never;
|
|
617
|
+
};
|
|
618
|
+
requestBody?: never;
|
|
619
|
+
responses: {
|
|
620
|
+
/** @description Successful Response */
|
|
621
|
+
200: {
|
|
622
|
+
headers: {
|
|
623
|
+
[name: string]: unknown;
|
|
624
|
+
};
|
|
625
|
+
content: {
|
|
626
|
+
"application/json": components["schemas"]["ItemGet"][];
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
/** @description Validation Error */
|
|
630
|
+
422: {
|
|
631
|
+
headers: {
|
|
632
|
+
[name: string]: unknown;
|
|
633
|
+
};
|
|
634
|
+
content: {
|
|
635
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
create_item_items_post: {
|
|
641
|
+
parameters: {
|
|
642
|
+
query?: never;
|
|
643
|
+
header?: never;
|
|
644
|
+
path?: never;
|
|
645
|
+
cookie?: never;
|
|
646
|
+
};
|
|
647
|
+
requestBody: {
|
|
648
|
+
content: {
|
|
649
|
+
"application/json": components["schemas"]["ItemPost"];
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
responses: {
|
|
653
|
+
/** @description Successful Response */
|
|
654
|
+
200: {
|
|
655
|
+
headers: {
|
|
656
|
+
[name: string]: unknown;
|
|
657
|
+
};
|
|
658
|
+
content: {
|
|
659
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
/** @description Validation Error */
|
|
663
|
+
422: {
|
|
664
|
+
headers: {
|
|
665
|
+
[name: string]: unknown;
|
|
666
|
+
};
|
|
667
|
+
content: {
|
|
668
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
update_item_items__id__patch: {
|
|
674
|
+
parameters: {
|
|
675
|
+
query?: {
|
|
676
|
+
/** @description Флаг доступен ли предмет */
|
|
677
|
+
is_available?: boolean;
|
|
678
|
+
};
|
|
679
|
+
header?: never;
|
|
680
|
+
path: {
|
|
681
|
+
id: number;
|
|
682
|
+
};
|
|
683
|
+
cookie?: never;
|
|
684
|
+
};
|
|
685
|
+
requestBody?: never;
|
|
686
|
+
responses: {
|
|
687
|
+
/** @description Successful Response */
|
|
688
|
+
200: {
|
|
689
|
+
headers: {
|
|
690
|
+
[name: string]: unknown;
|
|
691
|
+
};
|
|
692
|
+
content: {
|
|
693
|
+
"application/json": components["schemas"]["ItemGet"];
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
/** @description Validation Error */
|
|
697
|
+
422: {
|
|
698
|
+
headers: {
|
|
699
|
+
[name: string]: unknown;
|
|
700
|
+
};
|
|
701
|
+
content: {
|
|
702
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
delete_item_items_item__id__delete: {
|
|
708
|
+
parameters: {
|
|
709
|
+
query?: never;
|
|
710
|
+
header?: never;
|
|
711
|
+
path: {
|
|
712
|
+
id: number;
|
|
713
|
+
};
|
|
714
|
+
cookie?: never;
|
|
715
|
+
};
|
|
716
|
+
requestBody?: never;
|
|
717
|
+
responses: {
|
|
718
|
+
/** @description Successful Response */
|
|
719
|
+
200: {
|
|
720
|
+
headers: {
|
|
721
|
+
[name: string]: unknown;
|
|
722
|
+
};
|
|
723
|
+
content: {
|
|
724
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** @description Validation Error */
|
|
728
|
+
422: {
|
|
729
|
+
headers: {
|
|
730
|
+
[name: string]: unknown;
|
|
731
|
+
};
|
|
732
|
+
content: {
|
|
733
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
get_items_types_itemtype_get: {
|
|
739
|
+
parameters: {
|
|
740
|
+
query?: never;
|
|
741
|
+
header?: never;
|
|
742
|
+
path?: never;
|
|
743
|
+
cookie?: never;
|
|
744
|
+
};
|
|
745
|
+
requestBody?: never;
|
|
746
|
+
responses: {
|
|
747
|
+
/** @description Successful Response */
|
|
748
|
+
200: {
|
|
749
|
+
headers: {
|
|
750
|
+
[name: string]: unknown;
|
|
751
|
+
};
|
|
752
|
+
content: {
|
|
753
|
+
"application/json": components["schemas"]["ItemTypeGet"][];
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
create_item_type_itemtype_post: {
|
|
759
|
+
parameters: {
|
|
760
|
+
query?: never;
|
|
761
|
+
header?: never;
|
|
762
|
+
path?: never;
|
|
763
|
+
cookie?: never;
|
|
764
|
+
};
|
|
765
|
+
requestBody: {
|
|
766
|
+
content: {
|
|
767
|
+
"application/json": components["schemas"]["ItemTypePost"];
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
responses: {
|
|
771
|
+
/** @description Successful Response */
|
|
772
|
+
200: {
|
|
773
|
+
headers: {
|
|
774
|
+
[name: string]: unknown;
|
|
775
|
+
};
|
|
776
|
+
content: {
|
|
777
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
/** @description Validation Error */
|
|
781
|
+
422: {
|
|
782
|
+
headers: {
|
|
783
|
+
[name: string]: unknown;
|
|
784
|
+
};
|
|
785
|
+
content: {
|
|
786
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
get_item_type_itemtype__id__get: {
|
|
792
|
+
parameters: {
|
|
793
|
+
query?: never;
|
|
794
|
+
header?: never;
|
|
795
|
+
path: {
|
|
796
|
+
id: number;
|
|
797
|
+
};
|
|
798
|
+
cookie?: never;
|
|
799
|
+
};
|
|
800
|
+
requestBody?: never;
|
|
801
|
+
responses: {
|
|
802
|
+
/** @description Successful Response */
|
|
803
|
+
200: {
|
|
804
|
+
headers: {
|
|
805
|
+
[name: string]: unknown;
|
|
806
|
+
};
|
|
807
|
+
content: {
|
|
808
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
/** @description Validation Error */
|
|
812
|
+
422: {
|
|
813
|
+
headers: {
|
|
814
|
+
[name: string]: unknown;
|
|
815
|
+
};
|
|
816
|
+
content: {
|
|
817
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
delete_item_type_itemtype__id__delete: {
|
|
823
|
+
parameters: {
|
|
824
|
+
query?: never;
|
|
825
|
+
header?: never;
|
|
826
|
+
path: {
|
|
827
|
+
id: number;
|
|
828
|
+
};
|
|
829
|
+
cookie?: never;
|
|
830
|
+
};
|
|
831
|
+
requestBody?: never;
|
|
832
|
+
responses: {
|
|
833
|
+
/** @description Successful Response */
|
|
834
|
+
200: {
|
|
835
|
+
headers: {
|
|
836
|
+
[name: string]: unknown;
|
|
837
|
+
};
|
|
838
|
+
content: {
|
|
839
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
/** @description Validation Error */
|
|
843
|
+
422: {
|
|
844
|
+
headers: {
|
|
845
|
+
[name: string]: unknown;
|
|
846
|
+
};
|
|
847
|
+
content: {
|
|
848
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
update_item_type_itemtype__id__patch: {
|
|
854
|
+
parameters: {
|
|
855
|
+
query?: never;
|
|
856
|
+
header?: never;
|
|
857
|
+
path: {
|
|
858
|
+
id: number;
|
|
859
|
+
};
|
|
860
|
+
cookie?: never;
|
|
861
|
+
};
|
|
862
|
+
requestBody: {
|
|
863
|
+
content: {
|
|
864
|
+
"application/json": components["schemas"]["ItemTypePost"];
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
responses: {
|
|
868
|
+
/** @description Successful Response */
|
|
869
|
+
200: {
|
|
870
|
+
headers: {
|
|
871
|
+
[name: string]: unknown;
|
|
872
|
+
};
|
|
873
|
+
content: {
|
|
874
|
+
"application/json": components["schemas"]["ItemTypeGet"];
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
/** @description Validation Error */
|
|
878
|
+
422: {
|
|
879
|
+
headers: {
|
|
880
|
+
[name: string]: unknown;
|
|
881
|
+
};
|
|
882
|
+
content: {
|
|
883
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
get_rental_sessions_rental_sessions_get: {
|
|
889
|
+
parameters: {
|
|
890
|
+
query?: {
|
|
891
|
+
/** @description Флаг, показывать активные */
|
|
892
|
+
is_active?: boolean;
|
|
893
|
+
/** @description Флаг, показывать отмененные */
|
|
894
|
+
is_canceled?: boolean;
|
|
895
|
+
/** @description Флаг, показывать отклоненные */
|
|
896
|
+
is_dismissed?: boolean;
|
|
897
|
+
/** @description Флаг, показывать просроченные */
|
|
898
|
+
is_overdue?: boolean;
|
|
899
|
+
/** @description флаг, показывать заявки */
|
|
900
|
+
is_reserved?: boolean;
|
|
901
|
+
/** @description Флаг, показывать вернутые */
|
|
902
|
+
is_returned?: boolean;
|
|
903
|
+
};
|
|
904
|
+
header?: never;
|
|
905
|
+
path?: never;
|
|
906
|
+
cookie?: never;
|
|
907
|
+
};
|
|
908
|
+
requestBody?: never;
|
|
909
|
+
responses: {
|
|
910
|
+
/** @description Successful Response */
|
|
911
|
+
200: {
|
|
912
|
+
headers: {
|
|
913
|
+
[name: string]: unknown;
|
|
914
|
+
};
|
|
915
|
+
content: {
|
|
916
|
+
"application/json": components["schemas"]["RentalSessionGet"][];
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
/** @description Validation Error */
|
|
920
|
+
422: {
|
|
921
|
+
headers: {
|
|
922
|
+
[name: string]: unknown;
|
|
923
|
+
};
|
|
924
|
+
content: {
|
|
925
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
create_rental_session_rental_sessions__item_type_id__post: {
|
|
931
|
+
parameters: {
|
|
932
|
+
query?: never;
|
|
933
|
+
header?: never;
|
|
934
|
+
path: {
|
|
935
|
+
item_type_id: unknown;
|
|
936
|
+
};
|
|
937
|
+
cookie?: never;
|
|
938
|
+
};
|
|
939
|
+
requestBody?: never;
|
|
940
|
+
responses: {
|
|
941
|
+
/** @description Successful Response */
|
|
942
|
+
200: {
|
|
943
|
+
headers: {
|
|
944
|
+
[name: string]: unknown;
|
|
945
|
+
};
|
|
946
|
+
content: {
|
|
947
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
/** @description Validation Error */
|
|
951
|
+
422: {
|
|
952
|
+
headers: {
|
|
953
|
+
[name: string]: unknown;
|
|
954
|
+
};
|
|
955
|
+
content: {
|
|
956
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
get_rental_session_rental_sessions__session_id__get: {
|
|
962
|
+
parameters: {
|
|
963
|
+
query?: never;
|
|
964
|
+
header?: never;
|
|
965
|
+
path: {
|
|
966
|
+
session_id: number;
|
|
967
|
+
};
|
|
968
|
+
cookie?: never;
|
|
969
|
+
};
|
|
970
|
+
requestBody?: never;
|
|
971
|
+
responses: {
|
|
972
|
+
/** @description Successful Response */
|
|
973
|
+
200: {
|
|
974
|
+
headers: {
|
|
975
|
+
[name: string]: unknown;
|
|
976
|
+
};
|
|
977
|
+
content: {
|
|
978
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
/** @description Validation Error */
|
|
982
|
+
422: {
|
|
983
|
+
headers: {
|
|
984
|
+
[name: string]: unknown;
|
|
985
|
+
};
|
|
986
|
+
content: {
|
|
987
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
update_rental_session_rental_sessions__session_id__patch: {
|
|
993
|
+
parameters: {
|
|
994
|
+
query?: never;
|
|
995
|
+
header?: never;
|
|
996
|
+
path: {
|
|
997
|
+
session_id: number;
|
|
998
|
+
};
|
|
999
|
+
cookie?: never;
|
|
1000
|
+
};
|
|
1001
|
+
requestBody: {
|
|
1002
|
+
content: {
|
|
1003
|
+
"application/json": components["schemas"]["RentalSessionPatch"];
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
responses: {
|
|
1007
|
+
/** @description Successful Response */
|
|
1008
|
+
200: {
|
|
1009
|
+
headers: {
|
|
1010
|
+
[name: string]: unknown;
|
|
1011
|
+
};
|
|
1012
|
+
content: {
|
|
1013
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
/** @description Validation Error */
|
|
1017
|
+
422: {
|
|
1018
|
+
headers: {
|
|
1019
|
+
[name: string]: unknown;
|
|
1020
|
+
};
|
|
1021
|
+
content: {
|
|
1022
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
cancel_rental_session_rental_sessions__session_id__cancel_delete: {
|
|
1028
|
+
parameters: {
|
|
1029
|
+
query?: never;
|
|
1030
|
+
header?: never;
|
|
1031
|
+
path: {
|
|
1032
|
+
session_id: number;
|
|
1033
|
+
};
|
|
1034
|
+
cookie?: never;
|
|
1035
|
+
};
|
|
1036
|
+
requestBody?: never;
|
|
1037
|
+
responses: {
|
|
1038
|
+
/** @description Successful Response */
|
|
1039
|
+
200: {
|
|
1040
|
+
headers: {
|
|
1041
|
+
[name: string]: unknown;
|
|
1042
|
+
};
|
|
1043
|
+
content: {
|
|
1044
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
/** @description Validation Error */
|
|
1048
|
+
422: {
|
|
1049
|
+
headers: {
|
|
1050
|
+
[name: string]: unknown;
|
|
1051
|
+
};
|
|
1052
|
+
content: {
|
|
1053
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
accept_end_rental_session_rental_sessions__session_id__return_patch: {
|
|
1059
|
+
parameters: {
|
|
1060
|
+
query?: {
|
|
1061
|
+
/** @description Описание причины страйка */
|
|
1062
|
+
strike_reason?: string;
|
|
1063
|
+
/** @description Флаг, определяющий выдачу страйка */
|
|
1064
|
+
with_strike?: boolean;
|
|
1065
|
+
};
|
|
1066
|
+
header?: never;
|
|
1067
|
+
path: {
|
|
1068
|
+
session_id: unknown;
|
|
1069
|
+
};
|
|
1070
|
+
cookie?: never;
|
|
1071
|
+
};
|
|
1072
|
+
requestBody?: never;
|
|
1073
|
+
responses: {
|
|
1074
|
+
/** @description Successful Response */
|
|
1075
|
+
200: {
|
|
1076
|
+
headers: {
|
|
1077
|
+
[name: string]: unknown;
|
|
1078
|
+
};
|
|
1079
|
+
content: {
|
|
1080
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
/** @description Validation Error */
|
|
1084
|
+
422: {
|
|
1085
|
+
headers: {
|
|
1086
|
+
[name: string]: unknown;
|
|
1087
|
+
};
|
|
1088
|
+
content: {
|
|
1089
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
start_rental_session_rental_sessions__session_id__start_patch: {
|
|
1095
|
+
parameters: {
|
|
1096
|
+
query?: never;
|
|
1097
|
+
header?: never;
|
|
1098
|
+
path: {
|
|
1099
|
+
session_id: unknown;
|
|
1100
|
+
};
|
|
1101
|
+
cookie?: never;
|
|
1102
|
+
};
|
|
1103
|
+
requestBody?: never;
|
|
1104
|
+
responses: {
|
|
1105
|
+
/** @description Successful Response */
|
|
1106
|
+
200: {
|
|
1107
|
+
headers: {
|
|
1108
|
+
[name: string]: unknown;
|
|
1109
|
+
};
|
|
1110
|
+
content: {
|
|
1111
|
+
"application/json": components["schemas"]["RentalSessionGet"];
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
/** @description Validation Error */
|
|
1115
|
+
422: {
|
|
1116
|
+
headers: {
|
|
1117
|
+
[name: string]: unknown;
|
|
1118
|
+
};
|
|
1119
|
+
content: {
|
|
1120
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
get_user_sessions_rental_sessions_user__user_id__get: {
|
|
1126
|
+
parameters: {
|
|
1127
|
+
query?: never;
|
|
1128
|
+
header?: never;
|
|
1129
|
+
path: {
|
|
1130
|
+
user_id: unknown;
|
|
1131
|
+
};
|
|
1132
|
+
cookie?: never;
|
|
1133
|
+
};
|
|
1134
|
+
requestBody?: never;
|
|
1135
|
+
responses: {
|
|
1136
|
+
/** @description Successful Response */
|
|
1137
|
+
200: {
|
|
1138
|
+
headers: {
|
|
1139
|
+
[name: string]: unknown;
|
|
1140
|
+
};
|
|
1141
|
+
content: {
|
|
1142
|
+
"application/json": components["schemas"]["RentalSessionGet"][];
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
/** @description Validation Error */
|
|
1146
|
+
422: {
|
|
1147
|
+
headers: {
|
|
1148
|
+
[name: string]: unknown;
|
|
1149
|
+
};
|
|
1150
|
+
content: {
|
|
1151
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
get_strikes_strike_get: {
|
|
1157
|
+
parameters: {
|
|
1158
|
+
query?: {
|
|
1159
|
+
admin_id?: number | null;
|
|
1160
|
+
from_date?: string | null;
|
|
1161
|
+
session_id?: number | null;
|
|
1162
|
+
to_date?: string | null;
|
|
1163
|
+
user_id?: number | null;
|
|
1164
|
+
};
|
|
1165
|
+
header?: never;
|
|
1166
|
+
path?: never;
|
|
1167
|
+
cookie?: never;
|
|
1168
|
+
};
|
|
1169
|
+
requestBody?: never;
|
|
1170
|
+
responses: {
|
|
1171
|
+
/** @description Successful Response */
|
|
1172
|
+
200: {
|
|
1173
|
+
headers: {
|
|
1174
|
+
[name: string]: unknown;
|
|
1175
|
+
};
|
|
1176
|
+
content: {
|
|
1177
|
+
"application/json": components["schemas"]["StrikeGet"][];
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
/** @description Validation Error */
|
|
1181
|
+
422: {
|
|
1182
|
+
headers: {
|
|
1183
|
+
[name: string]: unknown;
|
|
1184
|
+
};
|
|
1185
|
+
content: {
|
|
1186
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
create_strike_strike_post: {
|
|
1192
|
+
parameters: {
|
|
1193
|
+
query?: never;
|
|
1194
|
+
header?: never;
|
|
1195
|
+
path?: never;
|
|
1196
|
+
cookie?: never;
|
|
1197
|
+
};
|
|
1198
|
+
requestBody: {
|
|
1199
|
+
content: {
|
|
1200
|
+
"application/json": components["schemas"]["StrikePost"];
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
responses: {
|
|
1204
|
+
/** @description Successful Response */
|
|
1205
|
+
200: {
|
|
1206
|
+
headers: {
|
|
1207
|
+
[name: string]: unknown;
|
|
1208
|
+
};
|
|
1209
|
+
content: {
|
|
1210
|
+
"application/json": components["schemas"]["StrikeGet"];
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
/** @description Validation Error */
|
|
1214
|
+
422: {
|
|
1215
|
+
headers: {
|
|
1216
|
+
[name: string]: unknown;
|
|
1217
|
+
};
|
|
1218
|
+
content: {
|
|
1219
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
delete_strike_strike__id__delete: {
|
|
1225
|
+
parameters: {
|
|
1226
|
+
query?: never;
|
|
1227
|
+
header?: never;
|
|
1228
|
+
path: {
|
|
1229
|
+
id: number;
|
|
1230
|
+
};
|
|
1231
|
+
cookie?: never;
|
|
1232
|
+
};
|
|
1233
|
+
requestBody?: never;
|
|
1234
|
+
responses: {
|
|
1235
|
+
/** @description Successful Response */
|
|
1236
|
+
200: {
|
|
1237
|
+
headers: {
|
|
1238
|
+
[name: string]: unknown;
|
|
1239
|
+
};
|
|
1240
|
+
content: {
|
|
1241
|
+
"application/json": {
|
|
1242
|
+
[key: string]: unknown;
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
/** @description Validation Error */
|
|
1247
|
+
422: {
|
|
1248
|
+
headers: {
|
|
1249
|
+
[name: string]: unknown;
|
|
1250
|
+
};
|
|
1251
|
+
content: {
|
|
1252
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
get_user_strikes_strike_user__user_id__get: {
|
|
1258
|
+
parameters: {
|
|
1259
|
+
query?: never;
|
|
1260
|
+
header?: never;
|
|
1261
|
+
path: {
|
|
1262
|
+
user_id: number;
|
|
1263
|
+
};
|
|
1264
|
+
cookie?: never;
|
|
1265
|
+
};
|
|
1266
|
+
requestBody?: never;
|
|
1267
|
+
responses: {
|
|
1268
|
+
/** @description Successful Response */
|
|
1269
|
+
200: {
|
|
1270
|
+
headers: {
|
|
1271
|
+
[name: string]: unknown;
|
|
1272
|
+
};
|
|
1273
|
+
content: {
|
|
1274
|
+
"application/json": components["schemas"]["StrikeGet"][];
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
/** @description Validation Error */
|
|
1278
|
+
422: {
|
|
1279
|
+
headers: {
|
|
1280
|
+
[name: string]: unknown;
|
|
1281
|
+
};
|
|
1282
|
+
content: {
|
|
1283
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
}
|