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