@profcomff/api-uilib 2025.9.17 → 2025.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/openapi/rental.ts +80 -0
package/package.json
CHANGED
package/src/openapi/rental.ts
CHANGED
|
@@ -197,6 +197,38 @@ export interface paths {
|
|
|
197
197
|
patch: operations["update_item_type_itemtype__id__patch"];
|
|
198
198
|
trace?: never;
|
|
199
199
|
};
|
|
200
|
+
"/rental/itemtype/available/{id}": {
|
|
201
|
+
parameters: {
|
|
202
|
+
query?: never;
|
|
203
|
+
header?: never;
|
|
204
|
+
path?: never;
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
get?: never;
|
|
208
|
+
put?: never;
|
|
209
|
+
post?: never;
|
|
210
|
+
delete?: never;
|
|
211
|
+
options?: never;
|
|
212
|
+
head?: never;
|
|
213
|
+
/**
|
|
214
|
+
* Make Item Type Available
|
|
215
|
+
* @description Делает один предмет доступным по ID типа предмета.
|
|
216
|
+
*
|
|
217
|
+
* Скоупы: `["rental.item_type.update"]`
|
|
218
|
+
*
|
|
219
|
+
* - **id**: ID типа предмета.
|
|
220
|
+
* - **count**: Абсолютное количество предметов, которые нужно сделать доступными.
|
|
221
|
+
* Если доступных меньше, делает больше доступных. Если доступных больше, делает меньше доступных.
|
|
222
|
+
* Если нет возможности сделать count доступных, делает доступным максимально возможное количество.
|
|
223
|
+
* Возвращает id всех возвращенных предметов и их количество.
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
*
|
|
227
|
+
* Вызывает **ObjectNotFound**, если тип предмета с указанным ID не найден.
|
|
228
|
+
*/
|
|
229
|
+
patch: operations["make_item_type_available_itemtype_available__id__patch"];
|
|
230
|
+
trace?: never;
|
|
231
|
+
};
|
|
200
232
|
"/rental/rental-sessions": {
|
|
201
233
|
parameters: {
|
|
202
234
|
query?: never;
|
|
@@ -540,8 +572,19 @@ export interface components {
|
|
|
540
572
|
/** Type Id */
|
|
541
573
|
type_id: number;
|
|
542
574
|
};
|
|
575
|
+
/** ItemTypeAvailable */
|
|
576
|
+
ItemTypeAvailable: {
|
|
577
|
+
/** Item Ids */
|
|
578
|
+
item_ids: number[];
|
|
579
|
+
/** Items Changed */
|
|
580
|
+
items_changed: number;
|
|
581
|
+
/** Total Available */
|
|
582
|
+
total_available: number;
|
|
583
|
+
};
|
|
543
584
|
/** ItemTypeGet */
|
|
544
585
|
ItemTypeGet: {
|
|
586
|
+
/** Availability */
|
|
587
|
+
availability?: boolean | null;
|
|
545
588
|
/** Description */
|
|
546
589
|
description?: string | null;
|
|
547
590
|
/** Free Items Count */
|
|
@@ -1005,6 +1048,39 @@ export interface operations {
|
|
|
1005
1048
|
};
|
|
1006
1049
|
};
|
|
1007
1050
|
};
|
|
1051
|
+
make_item_type_available_itemtype_available__id__patch: {
|
|
1052
|
+
parameters: {
|
|
1053
|
+
query: {
|
|
1054
|
+
count: number;
|
|
1055
|
+
};
|
|
1056
|
+
header?: never;
|
|
1057
|
+
path: {
|
|
1058
|
+
id: number;
|
|
1059
|
+
};
|
|
1060
|
+
cookie?: never;
|
|
1061
|
+
};
|
|
1062
|
+
requestBody?: never;
|
|
1063
|
+
responses: {
|
|
1064
|
+
/** @description Successful Response */
|
|
1065
|
+
200: {
|
|
1066
|
+
headers: {
|
|
1067
|
+
[name: string]: unknown;
|
|
1068
|
+
};
|
|
1069
|
+
content: {
|
|
1070
|
+
"application/json": components["schemas"]["ItemTypeAvailable"];
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
/** @description Validation Error */
|
|
1074
|
+
422: {
|
|
1075
|
+
headers: {
|
|
1076
|
+
[name: string]: unknown;
|
|
1077
|
+
};
|
|
1078
|
+
content: {
|
|
1079
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1008
1084
|
get_rental_sessions_rental_sessions_get: {
|
|
1009
1085
|
parameters: {
|
|
1010
1086
|
query?: {
|
|
@@ -1020,6 +1096,8 @@ export interface operations {
|
|
|
1020
1096
|
is_reserved?: boolean;
|
|
1021
1097
|
/** @description Filter by returned sessions. */
|
|
1022
1098
|
is_returned?: boolean;
|
|
1099
|
+
/** @description Item_type_id to get sessions */
|
|
1100
|
+
item_type_id?: number;
|
|
1023
1101
|
/** @description User_id to get sessions */
|
|
1024
1102
|
user_id?: number;
|
|
1025
1103
|
};
|
|
@@ -1259,6 +1337,8 @@ export interface operations {
|
|
|
1259
1337
|
is_reserved?: boolean;
|
|
1260
1338
|
/** @description Флаг, показывать вернутые */
|
|
1261
1339
|
is_returned?: boolean;
|
|
1340
|
+
/** @description ID типа предмета */
|
|
1341
|
+
item_type_id?: number;
|
|
1262
1342
|
};
|
|
1263
1343
|
header?: never;
|
|
1264
1344
|
path?: never;
|