@profcomff/api-uilib 2025.11.1-test → 2026.2.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profcomff/api-uilib",
3
- "version": "2025.11.01-test",
3
+ "version": "2026.02.28",
4
4
  "description": "API wrappers, autogenerated from openapi.json files",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.d.ts",
@@ -11,7 +11,7 @@ const apis = {
11
11
  services: "https://api.profcomff.com/services/openapi.json",
12
12
  print: "https://api.profcomff.com/print/openapi.json",
13
13
  social: "https://api.profcomff.com/social/openapi.json",
14
- userdata: "https://api.profcomff.com/userdata/openapi.json",
14
+ userdata: "https://api.test.profcomff.com/userdata/openapi.json",
15
15
  achievement: "https://api.profcomff.com/achievement/openapi.json",
16
16
  rating: "https://api.test.profcomff.com/rating/openapi.json",
17
17
  rental: "https://api.profcomff.com/rental/openapi.json",
@@ -302,6 +302,8 @@ export interface components {
302
302
  * Format: date-time
303
303
  */
304
304
  update_ts: string;
305
+ /** User Fullname */
306
+ user_fullname?: string | null;
305
307
  /** User Id */
306
308
  user_id?: number | null;
307
309
  /**
@@ -325,7 +327,7 @@ export interface components {
325
327
  total: number;
326
328
  };
327
329
  /** CommentGetAllWithAllInfo */
328
- "CommentGetAllWithAllInfo-Input": {
330
+ CommentGetAllWithAllInfo: {
329
331
  /**
330
332
  * Comments
331
333
  * @default []
@@ -338,36 +340,8 @@ export interface components {
338
340
  /** Total */
339
341
  total: number;
340
342
  };
341
- /** CommentGetAllWithAllInfo */
342
- "CommentGetAllWithAllInfo-Output": {
343
- /**
344
- * Comments
345
- * @default []
346
- */
347
- comments: components["schemas"]["CommentGetWithAllInfo"][];
348
- /** Limit */
349
- limit: number;
350
- /** Offset */
351
- offset: number;
352
- /** Total */
353
- total: number;
354
- };
355
- /** CommentGetAllWithStatus */
356
- "CommentGetAllWithStatus-Input": {
357
- /**
358
- * Comments
359
- * @default []
360
- */
361
- comments: components["schemas"]["CommentGetWithStatus"][];
362
- /** Limit */
363
- limit: number;
364
- /** Offset */
365
- offset: number;
366
- /** Total */
367
- total: number;
368
- };
369
343
  /** CommentGetAllWithStatus */
370
- "CommentGetAllWithStatus-Output": {
344
+ CommentGetAllWithStatus: {
371
345
  /**
372
346
  * Comments
373
347
  * @default []
@@ -413,6 +387,8 @@ export interface components {
413
387
  * Format: date-time
414
388
  */
415
389
  update_ts: string;
390
+ /** User Fullname */
391
+ user_fullname?: string | null;
416
392
  /** User Id */
417
393
  user_id?: number | null;
418
394
  /**
@@ -452,6 +428,8 @@ export interface components {
452
428
  * Format: date-time
453
429
  */
454
430
  update_ts: string;
431
+ /** User Fullname */
432
+ user_fullname?: string | null;
455
433
  /** User Id */
456
434
  user_id?: number | null;
457
435
  /**
@@ -694,7 +672,7 @@ export interface operations {
694
672
  [name: string]: unknown;
695
673
  };
696
674
  content: {
697
- "application/json": components["schemas"]["CommentGetAll"] | components["schemas"]["CommentGetAllWithAllInfo-Output"] | components["schemas"]["CommentGetAllWithStatus-Output"];
675
+ "application/json": components["schemas"]["CommentGetAll"] | components["schemas"]["CommentGetAllWithAllInfo"] | components["schemas"]["CommentGetAllWithStatus"];
698
676
  };
699
677
  };
700
678
  /** @description Validation Error */
@@ -300,7 +300,20 @@ export interface paths {
300
300
  get: operations["get_rental_session_rental_sessions__session_id__get"];
301
301
  put?: never;
302
302
  post?: never;
303
- delete?: never;
303
+ /**
304
+ * Delete Rental Session
305
+ * @description Deletes a session.
306
+ *
307
+ * Scopes: `["rental.session.admin"]`
308
+ *
309
+ * - **session_id**: The ID of the rental session to delete.
310
+ *
311
+ * Returns the deleted rental session.
312
+ *
313
+ * Raises **ForbiddenAction** if the session is in RESERVED, ACTIVE, OVERDUE status.
314
+ * Raises **ObjectNotFound** if the session does not exist.
315
+ */
316
+ delete: operations["delete_rental_session_rental_sessions__session_id__delete"];
304
317
  options?: never;
305
318
  head?: never;
306
319
  /**
@@ -600,6 +613,8 @@ export interface components {
600
613
  availability: boolean;
601
614
  /** Available Items Count */
602
615
  available_items_count?: number | null;
616
+ /** Cool Down End Ts */
617
+ cool_down_end_ts?: string | null;
603
618
  /** Description */
604
619
  description?: string | null;
605
620
  /** Id */
@@ -708,6 +723,10 @@ export interface components {
708
723
  };
709
724
  /** ValidationError */
710
725
  ValidationError: {
726
+ /** Context */
727
+ ctx?: Record<string, never>;
728
+ /** Input */
729
+ input?: unknown;
711
730
  /** Location */
712
731
  loc: (string | number)[];
713
732
  /** Message */
@@ -1210,6 +1229,37 @@ export interface operations {
1210
1229
  };
1211
1230
  };
1212
1231
  };
1232
+ delete_rental_session_rental_sessions__session_id__delete: {
1233
+ parameters: {
1234
+ query?: never;
1235
+ header?: never;
1236
+ path: {
1237
+ session_id: number;
1238
+ };
1239
+ cookie?: never;
1240
+ };
1241
+ requestBody?: never;
1242
+ responses: {
1243
+ /** @description Successful Response */
1244
+ 200: {
1245
+ headers: {
1246
+ [name: string]: unknown;
1247
+ };
1248
+ content: {
1249
+ "application/json": components["schemas"]["StatusResponseModel"];
1250
+ };
1251
+ };
1252
+ /** @description Validation Error */
1253
+ 422: {
1254
+ headers: {
1255
+ [name: string]: unknown;
1256
+ };
1257
+ content: {
1258
+ "application/json": components["schemas"]["HTTPValidationError"];
1259
+ };
1260
+ };
1261
+ };
1262
+ };
1213
1263
  update_rental_session_rental_sessions__session_id__patch: {
1214
1264
  parameters: {
1215
1265
  query?: never;
@@ -4,6 +4,36 @@
4
4
  */
5
5
 
6
6
  export interface paths {
7
+ "/userdata/admin/user/{user_id}": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ /**
15
+ * Get User Card
16
+ * @description Получает профсоюзную информацию пользователя.
17
+ *
18
+ * Скоупы: `["userdata.info.admin"]`
19
+ */
20
+ get: operations["get_user_card_admin_user__user_id__get"];
21
+ put?: never;
22
+ post?: never;
23
+ delete?: never;
24
+ options?: never;
25
+ head?: never;
26
+ /**
27
+ * Update User Card
28
+ * @description Обновить данные в профсоюзной информации пользователя.
29
+ *
30
+ * Скоупы: `["userdata.info.admin"]`
31
+ *
32
+ * - **user_id**: id пользователя.
33
+ */
34
+ patch: operations["update_user_card_admin_user__user_id__patch"];
35
+ trace?: never;
36
+ };
7
37
  "/userdata/category": {
8
38
  parameters: {
9
39
  query?: never;
@@ -393,6 +423,26 @@ export interface components {
393
423
  /** Status */
394
424
  status: string;
395
425
  };
426
+ /** UserCardGet */
427
+ UserCardGet: {
428
+ /** Full Name */
429
+ full_name?: string | null;
430
+ /** Is Union Member */
431
+ is_union_member: string;
432
+ /** Student Card Number */
433
+ student_card_number?: string | null;
434
+ /** Union Card Number */
435
+ union_card_number?: string | null;
436
+ /** User Id */
437
+ user_id: number;
438
+ };
439
+ /** UserCardUpdate */
440
+ UserCardUpdate: {
441
+ /** Full Name */
442
+ full_name?: string | null;
443
+ /** Student Card Number */
444
+ student_card_number?: string | null;
445
+ };
396
446
  /** UserInfo */
397
447
  UserInfo: {
398
448
  /** Category */
@@ -446,6 +496,72 @@ export interface components {
446
496
  }
447
497
  export type $defs = Record<string, never>;
448
498
  export interface operations {
499
+ get_user_card_admin_user__user_id__get: {
500
+ parameters: {
501
+ query?: never;
502
+ header?: never;
503
+ path: {
504
+ user_id: number;
505
+ };
506
+ cookie?: never;
507
+ };
508
+ requestBody?: never;
509
+ responses: {
510
+ /** @description Successful Response */
511
+ 200: {
512
+ headers: {
513
+ [name: string]: unknown;
514
+ };
515
+ content: {
516
+ "application/json": components["schemas"]["UserCardGet"];
517
+ };
518
+ };
519
+ /** @description Validation Error */
520
+ 422: {
521
+ headers: {
522
+ [name: string]: unknown;
523
+ };
524
+ content: {
525
+ "application/json": components["schemas"]["HTTPValidationError"];
526
+ };
527
+ };
528
+ };
529
+ };
530
+ update_user_card_admin_user__user_id__patch: {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path: {
535
+ user_id: number;
536
+ };
537
+ cookie?: never;
538
+ };
539
+ requestBody: {
540
+ content: {
541
+ "application/json": components["schemas"]["UserCardUpdate"];
542
+ };
543
+ };
544
+ responses: {
545
+ /** @description Successful Response */
546
+ 200: {
547
+ headers: {
548
+ [name: string]: unknown;
549
+ };
550
+ content: {
551
+ "application/json": components["schemas"]["StatusResponseModel"];
552
+ };
553
+ };
554
+ /** @description Validation Error */
555
+ 422: {
556
+ headers: {
557
+ [name: string]: unknown;
558
+ };
559
+ content: {
560
+ "application/json": components["schemas"]["HTTPValidationError"];
561
+ };
562
+ };
563
+ };
564
+ };
449
565
  get_categories_category_get: {
450
566
  parameters: {
451
567
  query?: {