@profcomff/api-uilib 2025.11.1-test → 2025.12.21-test

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": "2025.12.21-test",
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 */
@@ -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?: {