@profcomff/api-uilib 2024.7.2-5.1

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.
@@ -0,0 +1,716 @@
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
+ "/admin/reboot": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ get?: never;
15
+ put?: never;
16
+ /** Reboot Terminal */
17
+ post: operations["reboot_terminal_admin_reboot_post"];
18
+ delete?: never;
19
+ options?: never;
20
+ head?: never;
21
+ patch?: never;
22
+ trace?: never;
23
+ };
24
+ "/admin/update": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ get?: never;
32
+ put?: never;
33
+ /** Manual Update Terminal */
34
+ post: operations["manual_update_terminal_admin_update_post"];
35
+ delete?: never;
36
+ options?: never;
37
+ head?: never;
38
+ patch?: never;
39
+ trace?: never;
40
+ };
41
+ "/file": {
42
+ parameters: {
43
+ query?: never;
44
+ header?: never;
45
+ path?: never;
46
+ cookie?: never;
47
+ };
48
+ get?: never;
49
+ put?: never;
50
+ /**
51
+ * Send
52
+ * @description Получить пин код для загрузки и скачивания файла.
53
+ *
54
+ * Полученный пин-код можно использовать в методах POST и GET `/file/{pin}`.
55
+ */
56
+ post: operations["send_file_post"];
57
+ delete?: never;
58
+ options?: never;
59
+ head?: never;
60
+ patch?: never;
61
+ trace?: never;
62
+ };
63
+ [path: `/file/${string}`]: {
64
+ parameters: {
65
+ query?: never;
66
+ header?: never;
67
+ path?: never;
68
+ cookie?: never;
69
+ };
70
+ /**
71
+ * Print File
72
+ * @description Получить файл для печати.
73
+ *
74
+ * Требует пин-код, полученный в методе POST `/file`. Файл можно скачать
75
+ * бесконечное количество раз в течение 7 дней после загрузки (меняется в
76
+ * настройках сервера).
77
+ */
78
+ get: operations["print_file_file__pin__get"];
79
+ put?: never;
80
+ /**
81
+ * Upload File
82
+ * @description Загрузить файл на сервер.
83
+ *
84
+ * Требует пин-код, полученный в методе POST `/file`. Файл для пин-кода можно
85
+ * загрузить лишь один раз. Файл должен быть размером до 5 000 000 байт
86
+ * (меняется в настройках сервера).
87
+ */
88
+ post: operations["upload_file_file__pin__post"];
89
+ delete?: never;
90
+ options?: never;
91
+ head?: never;
92
+ /**
93
+ * Update File Options
94
+ * @description Обновляет настройки печати.
95
+ *
96
+ * Требует пин-код, полученный в методе POST `/file`. Обновлять настройки
97
+ * можно бесконечное количество раз. Можно изменять настройки по одной.
98
+ */
99
+ patch: operations["update_file_options_file__pin__patch"];
100
+ trace?: never;
101
+ };
102
+ "/is_union_member": {
103
+ parameters: {
104
+ query?: never;
105
+ header?: never;
106
+ path?: never;
107
+ cookie?: never;
108
+ };
109
+ /**
110
+ * Check Union Member
111
+ * @description Проверяет наличие пользователя в списке.
112
+ */
113
+ get: operations["check_union_member_is_union_member_get"];
114
+ put?: never;
115
+ /**
116
+ * Update List
117
+ * @description Обновляет данные существующего пользователя или добавляет нового, если его нет.
118
+ */
119
+ post: operations["update_list_is_union_member_post"];
120
+ delete?: never;
121
+ options?: never;
122
+ head?: never;
123
+ patch?: never;
124
+ trace?: never;
125
+ };
126
+ "/qr": {
127
+ parameters: {
128
+ query?: never;
129
+ header?: never;
130
+ path?: never;
131
+ cookie?: never;
132
+ };
133
+ get?: never;
134
+ put?: never;
135
+ /** Instant Print */
136
+ post: operations["instant_print_qr_post"];
137
+ delete?: never;
138
+ options?: never;
139
+ head?: never;
140
+ patch?: never;
141
+ trace?: never;
142
+ };
143
+ }
144
+ export type webhooks = Record<string, never>;
145
+ export interface components {
146
+ schemas: {
147
+ /** Body_upload_file_file__pin__post */
148
+ Body_upload_file_file__pin__post: {
149
+ /**
150
+ * File
151
+ * Format: binary
152
+ */
153
+ file: string;
154
+ };
155
+ /** HTTPValidationError */
156
+ HTTPValidationError: {
157
+ /** Detail */
158
+ detail?: components["schemas"]["ValidationError"][];
159
+ };
160
+ /** InstantPrintCreate */
161
+ InstantPrintCreate: {
162
+ /** Files */
163
+ files: string[];
164
+ /** Qr Token */
165
+ qr_token: string;
166
+ };
167
+ /** PrintOptions */
168
+ PrintOptions: {
169
+ /**
170
+ * Copies
171
+ * @description Количество копий для печати
172
+ * @default 1
173
+ */
174
+ copies: number;
175
+ /**
176
+ * Pages
177
+ * @description Страницы для печати
178
+ * @default
179
+ * @example 2-4,6
180
+ */
181
+ pages: string;
182
+ /**
183
+ * Two Sided
184
+ * @description Включить печать с двух сторон листа
185
+ * @default false
186
+ */
187
+ two_sided: boolean;
188
+ };
189
+ /** RebootInput */
190
+ RebootInput: {
191
+ /** Terminal Token */
192
+ terminal_token: string;
193
+ };
194
+ /** ReceiveOutput */
195
+ ReceiveOutput: {
196
+ /**
197
+ * Filename
198
+ * @description Название файла, который можно запросить по адресу https://app.profcomff.com/print/static/{filename}
199
+ * @example 2021-11-02-ZMNF5V...9.pdf
200
+ */
201
+ filename: string;
202
+ options: components["schemas"]["PrintOptions"];
203
+ };
204
+ /** SendInput */
205
+ SendInput: {
206
+ /**
207
+ * Filename
208
+ * @description Название файла
209
+ * @example filename.pdf
210
+ */
211
+ filename: string;
212
+ /**
213
+ * Number
214
+ * @description Номер профсоюзного или студенческого билетов
215
+ * @example 1015000
216
+ */
217
+ number: string;
218
+ /** @default {
219
+ * "pages": "",
220
+ * "copies": 1,
221
+ * "two_sided": false
222
+ * } */
223
+ options: components["schemas"]["PrintOptions"];
224
+ /** Source */
225
+ source?: string | null;
226
+ /**
227
+ * Surname
228
+ * @description Фамилия
229
+ * @example Иванов
230
+ */
231
+ surname: string;
232
+ };
233
+ /** SendInputUpdate */
234
+ SendInputUpdate: {
235
+ options?: components["schemas"]["PrintOptions"] | null;
236
+ };
237
+ /** SendOutput */
238
+ SendOutput: {
239
+ options: components["schemas"]["PrintOptions"];
240
+ /**
241
+ * Pin
242
+ * @description Пин-код, который используется для манипуляции файлами
243
+ * @example OF72I1
244
+ */
245
+ pin: string;
246
+ };
247
+ /** StatusResponseModel */
248
+ StatusResponseModel: {
249
+ /** Message */
250
+ message: string;
251
+ /** Ru */
252
+ ru: string;
253
+ /** Status */
254
+ status: string;
255
+ };
256
+ /** UpdateInput */
257
+ UpdateInput: {
258
+ /** Terminal Token */
259
+ terminal_token: string;
260
+ };
261
+ /** UpdateUserList */
262
+ UpdateUserList: {
263
+ /** Users */
264
+ users: components["schemas"]["UserCreate"][];
265
+ };
266
+ /** UserCreate */
267
+ UserCreate: {
268
+ /** Student Number */
269
+ student_number: string | null;
270
+ /** Union Number */
271
+ union_number: string | null;
272
+ /** Username */
273
+ username: string;
274
+ };
275
+ /** ValidationError */
276
+ ValidationError: {
277
+ /** Location */
278
+ loc: (string | number)[];
279
+ /** Message */
280
+ msg: string;
281
+ /** Error Type */
282
+ type: string;
283
+ };
284
+ };
285
+ responses: never;
286
+ parameters: never;
287
+ requestBodies: never;
288
+ headers: never;
289
+ pathItems: never;
290
+ }
291
+ export type $defs = Record<string, never>;
292
+ export interface operations {
293
+ reboot_terminal_admin_reboot_post: {
294
+ parameters: {
295
+ query?: never;
296
+ header?: never;
297
+ path?: never;
298
+ cookie?: never;
299
+ };
300
+ requestBody: {
301
+ content: {
302
+ "application/json": components["schemas"]["RebootInput"];
303
+ };
304
+ };
305
+ responses: {
306
+ /** @description Successful Response */
307
+ 200: {
308
+ headers: {
309
+ [name: string]: unknown;
310
+ };
311
+ content: {
312
+ "application/json": unknown;
313
+ };
314
+ };
315
+ /** @description Validation Error */
316
+ 422: {
317
+ headers: {
318
+ [name: string]: unknown;
319
+ };
320
+ content: {
321
+ "application/json": components["schemas"]["HTTPValidationError"];
322
+ };
323
+ };
324
+ };
325
+ };
326
+ manual_update_terminal_admin_update_post: {
327
+ parameters: {
328
+ query?: never;
329
+ header?: never;
330
+ path?: never;
331
+ cookie?: never;
332
+ };
333
+ requestBody: {
334
+ content: {
335
+ "application/json": components["schemas"]["UpdateInput"];
336
+ };
337
+ };
338
+ responses: {
339
+ /** @description Successful Response */
340
+ 200: {
341
+ headers: {
342
+ [name: string]: unknown;
343
+ };
344
+ content: {
345
+ "application/json": unknown;
346
+ };
347
+ };
348
+ /** @description Validation Error */
349
+ 422: {
350
+ headers: {
351
+ [name: string]: unknown;
352
+ };
353
+ content: {
354
+ "application/json": components["schemas"]["HTTPValidationError"];
355
+ };
356
+ };
357
+ };
358
+ };
359
+ send_file_post: {
360
+ parameters: {
361
+ query?: never;
362
+ header?: never;
363
+ path?: never;
364
+ cookie?: never;
365
+ };
366
+ requestBody: {
367
+ content: {
368
+ "application/json": components["schemas"]["SendInput"];
369
+ };
370
+ };
371
+ responses: {
372
+ /** @description Successful Response */
373
+ 200: {
374
+ headers: {
375
+ [name: string]: unknown;
376
+ };
377
+ content: {
378
+ "application/json": components["schemas"]["SendOutput"];
379
+ };
380
+ };
381
+ /** @description Forbidden */
382
+ 403: {
383
+ headers: {
384
+ [name: string]: unknown;
385
+ };
386
+ content: {
387
+ "application/json": components["schemas"]["StatusResponseModel"];
388
+ };
389
+ };
390
+ /** @description Validation Error */
391
+ 422: {
392
+ headers: {
393
+ [name: string]: unknown;
394
+ };
395
+ content: {
396
+ "application/json": components["schemas"]["HTTPValidationError"];
397
+ };
398
+ };
399
+ /** @description Internal Server Error */
400
+ 500: {
401
+ headers: {
402
+ [name: string]: unknown;
403
+ };
404
+ content: {
405
+ "application/json": components["schemas"]["StatusResponseModel"];
406
+ };
407
+ };
408
+ };
409
+ };
410
+ print_file_file__pin__get: {
411
+ parameters: {
412
+ query?: never;
413
+ header?: never;
414
+ path: {
415
+ pin: string;
416
+ };
417
+ cookie?: never;
418
+ };
419
+ requestBody?: never;
420
+ responses: {
421
+ /** @description Successful Response */
422
+ 200: {
423
+ headers: {
424
+ [name: string]: unknown;
425
+ };
426
+ content: {
427
+ "application/json": components["schemas"]["ReceiveOutput"];
428
+ };
429
+ };
430
+ /** @description Not Found */
431
+ 404: {
432
+ headers: {
433
+ [name: string]: unknown;
434
+ };
435
+ content: {
436
+ "application/json": components["schemas"]["StatusResponseModel"];
437
+ };
438
+ };
439
+ /** @description Unsupported Media Type */
440
+ 415: {
441
+ headers: {
442
+ [name: string]: unknown;
443
+ };
444
+ content: {
445
+ "application/json": components["schemas"]["StatusResponseModel"];
446
+ };
447
+ };
448
+ /** @description Requested Range Not Satisfiable */
449
+ 416: {
450
+ headers: {
451
+ [name: string]: unknown;
452
+ };
453
+ content: {
454
+ "application/json": components["schemas"]["StatusResponseModel"];
455
+ };
456
+ };
457
+ /** @description Validation Error */
458
+ 422: {
459
+ headers: {
460
+ [name: string]: unknown;
461
+ };
462
+ content: {
463
+ "application/json": components["schemas"]["HTTPValidationError"];
464
+ };
465
+ };
466
+ };
467
+ };
468
+ upload_file_file__pin__post: {
469
+ parameters: {
470
+ query?: never;
471
+ header?: never;
472
+ path: {
473
+ pin: string;
474
+ };
475
+ cookie?: never;
476
+ };
477
+ requestBody: {
478
+ content: {
479
+ "multipart/form-data": components["schemas"]["Body_upload_file_file__pin__post"];
480
+ };
481
+ };
482
+ responses: {
483
+ /** @description Successful Response */
484
+ 200: {
485
+ headers: {
486
+ [name: string]: unknown;
487
+ };
488
+ content: {
489
+ "application/json": components["schemas"]["SendOutput"];
490
+ };
491
+ };
492
+ /** @description Bad Request */
493
+ 400: {
494
+ headers: {
495
+ [name: string]: unknown;
496
+ };
497
+ content: {
498
+ "application/json": components["schemas"]["StatusResponseModel"];
499
+ };
500
+ };
501
+ /** @description Not Found */
502
+ 404: {
503
+ headers: {
504
+ [name: string]: unknown;
505
+ };
506
+ content: {
507
+ "application/json": components["schemas"]["StatusResponseModel"];
508
+ };
509
+ };
510
+ /** @description Request Entity Too Large */
511
+ 413: {
512
+ headers: {
513
+ [name: string]: unknown;
514
+ };
515
+ content: {
516
+ "application/json": components["schemas"]["StatusResponseModel"];
517
+ };
518
+ };
519
+ /** @description Unsupported Media Type */
520
+ 415: {
521
+ headers: {
522
+ [name: string]: unknown;
523
+ };
524
+ content: {
525
+ "application/json": components["schemas"]["StatusResponseModel"];
526
+ };
527
+ };
528
+ /** @description Requested Range Not Satisfiable */
529
+ 416: {
530
+ headers: {
531
+ [name: string]: unknown;
532
+ };
533
+ content: {
534
+ "application/json": components["schemas"]["StatusResponseModel"];
535
+ };
536
+ };
537
+ /** @description Validation Error */
538
+ 422: {
539
+ headers: {
540
+ [name: string]: unknown;
541
+ };
542
+ content: {
543
+ "application/json": components["schemas"]["HTTPValidationError"];
544
+ };
545
+ };
546
+ };
547
+ };
548
+ update_file_options_file__pin__patch: {
549
+ parameters: {
550
+ query?: never;
551
+ header?: never;
552
+ path: {
553
+ pin: string;
554
+ };
555
+ cookie?: never;
556
+ };
557
+ requestBody: {
558
+ content: {
559
+ "application/json": components["schemas"]["SendInputUpdate"];
560
+ };
561
+ };
562
+ responses: {
563
+ /** @description Successful Response */
564
+ 200: {
565
+ headers: {
566
+ [name: string]: unknown;
567
+ };
568
+ content: {
569
+ "application/json": components["schemas"]["SendOutput"];
570
+ };
571
+ };
572
+ /** @description Not Found */
573
+ 404: {
574
+ headers: {
575
+ [name: string]: unknown;
576
+ };
577
+ content: {
578
+ "application/json": components["schemas"]["StatusResponseModel"];
579
+ };
580
+ };
581
+ /** @description Request Entity Too Large */
582
+ 413: {
583
+ headers: {
584
+ [name: string]: unknown;
585
+ };
586
+ content: {
587
+ "application/json": components["schemas"]["StatusResponseModel"];
588
+ };
589
+ };
590
+ /** @description Requested Range Not Satisfiable */
591
+ 416: {
592
+ headers: {
593
+ [name: string]: unknown;
594
+ };
595
+ content: {
596
+ "application/json": components["schemas"]["StatusResponseModel"];
597
+ };
598
+ };
599
+ /** @description Validation Error */
600
+ 422: {
601
+ headers: {
602
+ [name: string]: unknown;
603
+ };
604
+ content: {
605
+ "application/json": components["schemas"]["HTTPValidationError"];
606
+ };
607
+ };
608
+ };
609
+ };
610
+ check_union_member_is_union_member_get: {
611
+ parameters: {
612
+ query: {
613
+ number: string;
614
+ surname: string;
615
+ v?: string | null;
616
+ };
617
+ header?: never;
618
+ path?: never;
619
+ cookie?: never;
620
+ };
621
+ requestBody?: never;
622
+ responses: {
623
+ /** @description Successful Response */
624
+ 202: {
625
+ headers: {
626
+ [name: string]: unknown;
627
+ };
628
+ content: {
629
+ "application/json": unknown;
630
+ };
631
+ };
632
+ /** @description Not Found */
633
+ 404: {
634
+ headers: {
635
+ [name: string]: unknown;
636
+ };
637
+ content?: never;
638
+ };
639
+ /** @description Validation Error */
640
+ 422: {
641
+ headers: {
642
+ [name: string]: unknown;
643
+ };
644
+ content: {
645
+ "application/json": components["schemas"]["HTTPValidationError"];
646
+ };
647
+ };
648
+ };
649
+ };
650
+ update_list_is_union_member_post: {
651
+ parameters: {
652
+ query?: never;
653
+ header?: never;
654
+ path?: never;
655
+ cookie?: never;
656
+ };
657
+ requestBody: {
658
+ content: {
659
+ "application/json": components["schemas"]["UpdateUserList"];
660
+ };
661
+ };
662
+ responses: {
663
+ /** @description Successful Response */
664
+ 200: {
665
+ headers: {
666
+ [name: string]: unknown;
667
+ };
668
+ content: {
669
+ "application/json": unknown;
670
+ };
671
+ };
672
+ /** @description Validation Error */
673
+ 422: {
674
+ headers: {
675
+ [name: string]: unknown;
676
+ };
677
+ content: {
678
+ "application/json": components["schemas"]["HTTPValidationError"];
679
+ };
680
+ };
681
+ };
682
+ };
683
+ instant_print_qr_post: {
684
+ parameters: {
685
+ query?: never;
686
+ header?: never;
687
+ path?: never;
688
+ cookie?: never;
689
+ };
690
+ requestBody: {
691
+ content: {
692
+ "application/json": components["schemas"]["InstantPrintCreate"];
693
+ };
694
+ };
695
+ responses: {
696
+ /** @description Successful Response */
697
+ 200: {
698
+ headers: {
699
+ [name: string]: unknown;
700
+ };
701
+ content: {
702
+ "application/json": unknown;
703
+ };
704
+ };
705
+ /** @description Validation Error */
706
+ 422: {
707
+ headers: {
708
+ [name: string]: unknown;
709
+ };
710
+ content: {
711
+ "application/json": components["schemas"]["HTTPValidationError"];
712
+ };
713
+ };
714
+ };
715
+ };
716
+ }