@shakerquiz/utilities 0.4.16 → 0.4.17

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/source/index.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- /// <reference path='./api.d.ts' />
2
- /// <reference path='./database.d.ts' />
3
- /// <reference path='./globals.d.ts' />
4
-
5
1
  export * from './enumerations/core/features.js'
6
2
  export * from './enumerations/core/kinds.js'
7
3
  export * from './enumerations/core/methods.js'
@@ -19,14 +15,1144 @@ export * from './enumerations/entities/lineups.js'
19
15
  export * from './enumerations/entities/registration-statuses.js'
20
16
  export * from './enumerations/entities/roles.js'
21
17
 
22
- export * from './enumerations/schemas.js'
18
+ type ScopeRoleResponse = {
19
+ 'GET/Checkin/Set': {
20
+ admin: unknown
21
+
22
+ default: unknown
23
+
24
+ organizer: unknown
25
+ }
26
+
27
+ 'GET/Checkin/Unit': {
28
+ admin: {
29
+ email: User['email']
30
+ first_name: User['first_name']
31
+ id: User['id']
32
+ last_name: User['last_name']
33
+ phone: User['phone']
34
+ third_name: User['third_name']
35
+ role: {
36
+ id: Role['id']
37
+ name: Role['name']
38
+ }
39
+ cities: Array<{
40
+ alias: City['alias']
41
+ id: City['id']
42
+ name: City['name']
43
+ vk_group_id: City['vk_group_id']
44
+ }>
45
+ }
46
+
47
+ default: {
48
+ email: User['email']
49
+ first_name: User['first_name']
50
+ id: User['id']
51
+ last_name: User['last_name']
52
+ phone: User['phone']
53
+ third_name: User['third_name']
54
+ role: {
55
+ id: Role['id']
56
+ name: Role['name']
57
+ }
58
+ cities: Array<{
59
+ alias: City['alias']
60
+ id: City['id']
61
+ name: City['name']
62
+ vk_group_id: City['vk_group_id']
63
+ }>
64
+ }
65
+
66
+ organizer: {
67
+ email: User['email']
68
+ first_name: User['first_name']
69
+ id: User['id']
70
+ last_name: User['last_name']
71
+ phone: User['phone']
72
+ third_name: User['third_name']
73
+ role: {
74
+ id: Role['id']
75
+ name: Role['name']
76
+ }
77
+ cities: Array<{
78
+ alias: City['alias']
79
+ id: City['id']
80
+ name: City['name']
81
+ vk_group_id: City['vk_group_id']
82
+ }>
83
+ }
84
+ }
85
+
86
+ 'GET/User/Set': {
87
+ admin: Array<{
88
+ email: User['email']
89
+ first_name: User['first_name']
90
+ gmail_link: User['gmail_link']
91
+ id: User['id']
92
+ is_active: User['is_active']
93
+ last_name: User['last_name']
94
+ mailru_link: User['mailru_link']
95
+ phone: User['phone']
96
+ role: {
97
+ id: Role['id']
98
+ name: Role['name']
99
+ }
100
+ cities: Array<{
101
+ alias: City['alias']
102
+ id: City['id']
103
+ name: City['name']
104
+ vk_group_id: City['vk_group_id']
105
+ }>
106
+ }>
107
+
108
+ default: unknown
109
+
110
+ organizer: unknown
111
+ }
112
+
113
+ 'GET/User/Unit': {
114
+ admin: {
115
+ email: User['email']
116
+ first_name: User['first_name']
117
+ gmail_link: User['gmail_link']
118
+ id: User['id']
119
+ is_active: User['is_active']
120
+ last_name: User['last_name']
121
+ mailru_link: User['mailru_link']
122
+ phone: User['phone']
123
+ role: {
124
+ id: Role['id']
125
+ name: Role['name']
126
+ }
127
+ cities: Array<{
128
+ alias: City['alias']
129
+ id: City['id']
130
+ name: City['name']
131
+ vk_group_id: City['vk_group_id']
132
+ }>
133
+ }
134
+
135
+ default: unknown
136
+
137
+ organizer: unknown
138
+ }
139
+
140
+ 'GET/Role/Set': {
141
+ admin: Array<{
142
+ description: Role['description']
143
+ id: Role['id']
144
+ name: Role['name']
145
+ time_created: Role['time_created']
146
+ time_updated: Role['time_updated']
147
+ }>
148
+
149
+ default: unknown
150
+
151
+ organizer: Array<{
152
+ description: Role['description']
153
+ id: Role['id']
154
+ name: Role['name']
155
+ time_created: Role['time_created']
156
+ time_updated: Role['time_updated']
157
+ }>
158
+ }
159
+
160
+ 'GET/Role/Unit': {
161
+ admin: unknown
162
+
163
+ default: unknown
164
+
165
+ organizer: unknown
166
+ }
167
+
168
+ 'GET/Country/Set': {
169
+ admin: unknown
170
+
171
+ default: Array<{
172
+ code: City['country']
173
+ name: string
174
+ }>
175
+
176
+ organizer: unknown
177
+ }
178
+
179
+ 'GET/Country/Unit': {
180
+ admin: unknown
181
+
182
+ default: unknown
183
+
184
+ organizer: unknown
185
+ }
186
+
187
+ 'GET/City/Set': {
188
+ admin: Array<City>
189
+
190
+ default: Array<{
191
+ address: City['address']
192
+ alias: City['alias']
193
+ country: City['country']
194
+ custom_html: City['custom_html']
195
+ custom_script: City['custom_script']
196
+ email: City['email']
197
+ id: City['id']
198
+ inst_link: City['inst_link']
199
+ max_members_count: City['max_members_count']
200
+ meta_description: City['meta_description']
201
+ meta_title: City['meta_title']
202
+ min_members_count: City['min_members_count']
203
+ name: City['name']
204
+ phone: City['phone']
205
+ tg_link: City['tg_link']
206
+ vk_group_id: City['vk_group_id']
207
+ vk_link: City['vk_link']
208
+ yandex_metrica: City['yandex_metrica']
209
+ }>
210
+
211
+ organizer: Array<City>
212
+ }
213
+
214
+ 'GET/City/Unit': {
215
+ admin: City
216
+
217
+ default: {
218
+ address: City['address']
219
+ alias: City['alias']
220
+ country: City['country']
221
+ custom_html: City['custom_html']
222
+ custom_script: City['custom_script']
223
+ email: City['email']
224
+ id: City['id']
225
+ inst_link: City['inst_link']
226
+ max_members_count: City['max_members_count']
227
+ meta_description: City['meta_description']
228
+ meta_title: City['meta_title']
229
+ min_members_count: City['min_members_count']
230
+ name: City['name']
231
+ phone: City['phone']
232
+ tg_link: City['tg_link']
233
+ vk_group_id: City['vk_group_id']
234
+ vk_link: City['vk_link']
235
+ yandex_metrica: City['yandex_metrica']
236
+ }
237
+
238
+ organizer: City
239
+ }
240
+
241
+ 'GET/Venue/Set': {
242
+ admin: Array<{
243
+ city_id: Venue['city_id']
244
+ comment_equipment: Venue['comment_equipment']
245
+ comment_responsible: Venue['comment_responsible']
246
+ comment: Venue['comment']
247
+ floor: Venue['floor']
248
+ game_time: Venue['game_time']
249
+ house_number: Venue['house_number']
250
+ id: Venue['id']
251
+ is_adult: Venue['is_adult']
252
+ latitude: Venue['latitude']
253
+ location_info: Venue['location_info']
254
+ longitude: Venue['longitude']
255
+ metro: Venue['metro']
256
+ name: Venue['name']
257
+ people_capacity: Venue['people_capacity']
258
+ street: Venue['street']
259
+ team_capacity: Venue['team_capacity']
260
+ time_created: Venue['time_created']
261
+ time_updated: Venue['time_updated']
262
+ city: {
263
+ alias: City['alias']
264
+ country: City['country']
265
+ id: City['id']
266
+ name: City['name']
267
+ vk_group_id: City['vk_group_id']
268
+ }
269
+ }>
270
+
271
+ default: unknown
272
+
273
+ organizer: Array<{
274
+ city_id: Venue['city_id']
275
+ comment_equipment: Venue['comment_equipment']
276
+ comment_responsible: Venue['comment_responsible']
277
+ comment: Venue['comment']
278
+ floor: Venue['floor']
279
+ game_time: Venue['game_time']
280
+ house_number: Venue['house_number']
281
+ id: Venue['id']
282
+ is_adult: Venue['is_adult']
283
+ latitude: Venue['latitude']
284
+ location_info: Venue['location_info']
285
+ longitude: Venue['longitude']
286
+ metro: Venue['metro']
287
+ name: Venue['name']
288
+ people_capacity: Venue['people_capacity']
289
+ street: Venue['street']
290
+ team_capacity: Venue['team_capacity']
291
+ time_created: Venue['time_created']
292
+ time_updated: Venue['time_updated']
293
+ city: {
294
+ alias: City['alias']
295
+ country: City['country']
296
+ id: City['id']
297
+ name: City['name']
298
+ vk_group_id: City['vk_group_id']
299
+ }
300
+ }>
301
+ }
302
+
303
+ 'GET/Venue/Unit': {
304
+ admin: {
305
+ city_id: Venue['city_id']
306
+ comment_equipment: Venue['comment_equipment']
307
+ comment_responsible: Venue['comment_responsible']
308
+ comment: Venue['comment']
309
+ floor: Venue['floor']
310
+ game_time: Venue['game_time']
311
+ house_number: Venue['house_number']
312
+ id: Venue['id']
313
+ is_adult: Venue['is_adult']
314
+ latitude: Venue['latitude']
315
+ location_info: Venue['location_info']
316
+ longitude: Venue['longitude']
317
+ metro: Venue['metro']
318
+ name: Venue['name']
319
+ people_capacity: Venue['people_capacity']
320
+ street: Venue['street']
321
+ team_capacity: Venue['team_capacity']
322
+ time_created: Venue['time_created']
323
+ time_updated: Venue['time_updated']
324
+ city: {
325
+ alias: City['alias']
326
+ country: City['country']
327
+ id: City['id']
328
+ name: City['name']
329
+ vk_group_id: City['vk_group_id']
330
+ }
331
+ }
332
+
333
+ default: unknown
334
+
335
+ organizer: {
336
+ city_id: Venue['city_id']
337
+ comment_equipment: Venue['comment_equipment']
338
+ comment_responsible: Venue['comment_responsible']
339
+ comment: Venue['comment']
340
+ floor: Venue['floor']
341
+ game_time: Venue['game_time']
342
+ house_number: Venue['house_number']
343
+ id: Venue['id']
344
+ is_adult: Venue['is_adult']
345
+ latitude: Venue['latitude']
346
+ location_info: Venue['location_info']
347
+ longitude: Venue['longitude']
348
+ metro: Venue['metro']
349
+ name: Venue['name']
350
+ people_capacity: Venue['people_capacity']
351
+ street: Venue['street']
352
+ team_capacity: Venue['team_capacity']
353
+ time_created: Venue['time_created']
354
+ time_updated: Venue['time_updated']
355
+ city: {
356
+ alias: City['alias']
357
+ country: City['country']
358
+ id: City['id']
359
+ name: City['name']
360
+ vk_group_id: City['vk_group_id']
361
+ }
362
+ }
363
+ }
364
+
365
+ 'GET/Theme/Set': {
366
+ admin: Array<{
367
+ description: Theme['description']
368
+ id: Theme['id']
369
+ name: Theme['name']
370
+ short_description: Theme['short_description']
371
+ time_created: Theme['time_created']
372
+ image: {
373
+ id: ImageMedia['id']
374
+ }
375
+ media: {
376
+ id: Media['id']
377
+ path: Media['path']
378
+ title: Media['title']
379
+ }
380
+ }>
381
+
382
+ default: unknown
383
+
384
+ organizer: Array<{
385
+ description: Theme['description']
386
+ id: Theme['id']
387
+ name: Theme['name']
388
+ short_description: Theme['short_description']
389
+ time_created: Theme['time_created']
390
+ image: {
391
+ id: ImageMedia['id']
392
+ }
393
+ media: {
394
+ id: Media['id']
395
+ path: Media['path']
396
+ title: Media['title']
397
+ }
398
+ }>
399
+ }
400
+
401
+ 'GET/Theme/Unit': {
402
+ admin: {
403
+ description: Theme['description']
404
+ id: Theme['id']
405
+ name: Theme['name']
406
+ short_description: Theme['short_description']
407
+ time_created: Theme['time_created']
408
+ image: {
409
+ id: ImageMedia['id']
410
+ }
411
+ media: {
412
+ id: Media['id']
413
+ path: Media['path']
414
+ title: Media['title']
415
+ }
416
+ }
417
+
418
+ default: unknown
419
+
420
+ organizer: {
421
+ description: Theme['description']
422
+ id: Theme['id']
423
+ name: Theme['name']
424
+ short_description: Theme['short_description']
425
+ time_created: Theme['time_created']
426
+ image: {
427
+ id: ImageMedia['id']
428
+ }
429
+ media: {
430
+ id: Media['id']
431
+ path: Media['path']
432
+ title: Media['title']
433
+ }
434
+ }
435
+ }
436
+
437
+ 'GET/Game/Set': {
438
+ admin: Array<{
439
+ id: Game['id']
440
+ alias: Game['alias']
441
+ number: Game['number']
442
+ event_time: Game['event_time']
443
+ status: Game['status']
444
+ city: {
445
+ alias: City['alias']
446
+ id: City['id']
447
+ name: City['name']
448
+ vk_group_id: City['vk_group_id']
449
+ }
450
+ location: {
451
+ id: Venue['id']
452
+ name: Venue['name']
453
+ }
454
+ theme: {
455
+ id: Theme['id']
456
+ name: Theme['name']
457
+ }
458
+ image: {
459
+ id: ImageMedia['id']
460
+ }
461
+ media: {
462
+ id: Media['id']
463
+ path: Media['path']
464
+ title: Media['title']
465
+ }
466
+ people: number
467
+ people_reserve: number
468
+ teams: number
469
+ teams_reserve: number
470
+ }>
471
+
472
+ default: Array<{
473
+ id: Game['id']
474
+ alias: Game['alias']
475
+ number: Game['number']
476
+ event_time: Game['event_time']
477
+ status: Game['status']
478
+ price: Game['price']
479
+ currency: Game['currency']
480
+ min_members_count: Game['min_members_count']
481
+ max_members_count: Game['max_members_count']
482
+ city: {
483
+ alias: City['alias']
484
+ id: City['id']
485
+ name: City['name']
486
+ vk_group_id: City['vk_group_id']
487
+ }
488
+ location: {
489
+ house_number: Venue['house_number']
490
+ id: Venue['id']
491
+ location_info: Venue['location_info']
492
+ name: Venue['name']
493
+ street: Venue['street']
494
+ }
495
+ theme: {
496
+ description: Theme['description']
497
+ id: Theme['id']
498
+ name: Theme['name']
499
+ short_description: Theme['short_description']
500
+ }
501
+ image: {
502
+ id: ImageMedia['id']
503
+ }
504
+ media: {
505
+ id: Media['id']
506
+ path: Media['path']
507
+ }
508
+ }>
509
+
510
+ organizer: Array<{
511
+ alias: Game['alias']
512
+ event_time: Game['event_time']
513
+ id: Game['id']
514
+ number: Game['number']
515
+ status: Game['status']
516
+ city: {
517
+ alias: City['alias']
518
+ id: City['id']
519
+ name: City['name']
520
+ vk_group_id: City['vk_group_id']
521
+ }
522
+ location: {
523
+ house_number: Venue['house_number']
524
+ id: Venue['id']
525
+ location_info: Venue['location_info']
526
+ name: Venue['name']
527
+ street: Venue['street']
528
+ }
529
+ theme: {
530
+ description: Theme['description']
531
+ id: Theme['id']
532
+ name: Theme['name']
533
+ short_description: Theme['short_description']
534
+ }
535
+ image: {
536
+ id: ImageMedia['id']
537
+ }
538
+ media: {
539
+ id: Media['id']
540
+ path: Media['path']
541
+ }
542
+ people: number
543
+ people_reserve: number
544
+ teams: number
545
+ teams_reserve: number
546
+ }>
547
+ }
548
+
549
+ 'GET/Game/Unit': {
550
+ admin: {
551
+ alias: Game['alias']
552
+ currency: Game['currency']
553
+ event_time: Game['event_time']
554
+ id: Game['id']
555
+ max_members_count: Game['max_members_count']
556
+ min_members_count: Game['min_members_count']
557
+ number: Game['number']
558
+ personal_comment: Game['personal_comment']
559
+ price: Game['price']
560
+ status: Game['status']
561
+ city: {
562
+ alias: City['alias']
563
+ id: City['id']
564
+ name: City['name']
565
+ timezone: City['timezone']
566
+ vk_group_id: City['vk_group_id']
567
+ }
568
+ venue: {
569
+ house_number: Venue['house_number']
570
+ id: Venue['id']
571
+ name: Venue['name']
572
+ street: Venue['street']
573
+ }
574
+ theme: {
575
+ description: Theme['description']
576
+ id: Theme['id']
577
+ name: Theme['name']
578
+ short_description: Theme['short_description']
579
+ }
580
+ image: {
581
+ id: ImageMedia['id']
582
+ }
583
+ media: {
584
+ id: Media['id']
585
+ path: Media['path']
586
+ title: Media['title']
587
+ }
588
+ }
589
+
590
+ default: {
591
+ alias: Game['alias']
592
+ currency: Game['currency']
593
+ event_time: Game['event_time']
594
+ id: Game['id']
595
+ max_members_count: Game['max_members_count']
596
+ min_members_count: Game['min_members_count']
597
+ number: Game['number']
598
+ price: Game['price']
599
+ status: Game['status']
600
+ weekday: Game['weekday']
601
+ city: {
602
+ alias: City['alias']
603
+ id: City['id']
604
+ name: City['name']
605
+ timezone: City['timezone']
606
+ vk_group_id: City['vk_group_id']
607
+ }
608
+ venue: {
609
+ house_number: Venue['house_number']
610
+ id: Venue['id']
611
+ location_info: Venue['location_info']
612
+ name: Venue['name']
613
+ street: Venue['street']
614
+ }
615
+ theme: {
616
+ description: Theme['description']
617
+ id: Theme['id']
618
+ name: Theme['name']
619
+ short_description: Theme['short_description']
620
+ }
621
+ image: {
622
+ id: ImageMedia['id']
623
+ }
624
+ media: {
625
+ id: Media['id']
626
+ path: Media['path']
627
+ title: Media['title']
628
+ }
629
+ }
630
+
631
+ organizer: {
632
+ alias: Game['alias']
633
+ currency: Game['currency']
634
+ event_time: Game['event_time']
635
+ id: Game['id']
636
+ max_members_count: Game['max_members_count']
637
+ min_members_count: Game['min_members_count']
638
+ number: Game['number']
639
+ price: Game['price']
640
+ status: Game['status']
641
+ weekday: Game['weekday']
642
+ city: {
643
+ alias: City['alias']
644
+ id: City['id']
645
+ name: City['name']
646
+ timezone: City['timezone']
647
+ vk_group_id: City['vk_group_id']
648
+ }
649
+ venue: {
650
+ house_number: Venue['house_number']
651
+ id: Venue['id']
652
+ location_info: Venue['location_info']
653
+ name: Venue['name']
654
+ street: Venue['street']
655
+ }
656
+ theme: {
657
+ description: Theme['description']
658
+ id: Theme['id']
659
+ name: Theme['name']
660
+ short_description: Theme['short_description']
661
+ }
662
+ image: {
663
+ id: ImageMedia['id']
664
+ }
665
+ media: {
666
+ id: Media['id']
667
+ path: Media['path']
668
+ title: Media['title']
669
+ }
670
+ }
671
+ }
672
+
673
+ 'GET/Registration/Set': {
674
+ admin: Array<{
675
+ can_cancel: boolean
676
+ can_change_people_count: boolean
677
+ can_confirm: boolean
678
+ change_people_count: Registration['change_people_count']
679
+ channel: Registration['channel']
680
+ event_id: Registration['event_id']
681
+ event_time_utc: GameRow['event_time']
682
+ event_timezone: GameRow['timezone']
683
+ id: Registration['id']
684
+ is_canceled: Registration['is_canceled']
685
+ is_confirm: Registration['is_confirm']
686
+ is_reserve: Registration['is_reserve']
687
+ max_members_count: GameRow['max_members_count']
688
+ people_count: Registration['people_count']
689
+ team_name: Registration['team_name']
690
+ }>
691
+
692
+ default: Array<{
693
+ can_cancel: boolean
694
+ can_change_people_count: boolean
695
+ can_confirm: boolean
696
+ change_people_count: Registration['change_people_count']
697
+ channel: Registration['channel']
698
+ event_id: Registration['event_id']
699
+ event_time_utc: GameRow['event_time']
700
+ event_timezone: GameRow['timezone']
701
+ id: Registration['id']
702
+ is_canceled: Registration['is_canceled']
703
+ is_confirm: Registration['is_confirm']
704
+ is_reserve: Registration['is_reserve']
705
+ max_members_count: GameRow['max_members_count']
706
+ people_count: Registration['people_count']
707
+ team_name: Registration['team_name']
708
+ }>
709
+
710
+ organizer: Array<{
711
+ can_cancel: boolean
712
+ can_change_people_count: boolean
713
+ can_confirm: boolean
714
+ change_people_count: Registration['change_people_count']
715
+ channel: Registration['channel']
716
+ event_id: Registration['event_id']
717
+ event_time_utc: GameRow['event_time']
718
+ event_timezone: GameRow['timezone']
719
+ id: Registration['id']
720
+ is_canceled: Registration['is_canceled']
721
+ is_confirm: Registration['is_confirm']
722
+ is_reserve: Registration['is_reserve']
723
+ max_members_count: GameRow['max_members_count']
724
+ people_count: Registration['people_count']
725
+ team_name: Registration['team_name']
726
+ }>
727
+ }
728
+
729
+ 'GET/Registration/Unit': {
730
+ admin: {
731
+ can_cancel: boolean
732
+ can_change_people_count: boolean
733
+ can_confirm: boolean
734
+ change_people_count: Registration['change_people_count']
735
+ channel: Registration['channel']
736
+ event_id: Registration['event_id']
737
+ event_time_utc: GameRow['event_time']
738
+ event_timezone: GameRow['timezone']
739
+ id: Registration['id']
740
+ is_canceled: Registration['is_canceled']
741
+ is_confirm: Registration['is_confirm']
742
+ is_reserve: Registration['is_reserve']
743
+ max_members_count: GameRow['max_members_count']
744
+ people_count: Registration['people_count']
745
+ team_name: Registration['team_name']
746
+ }
747
+
748
+ default: {
749
+ can_cancel: boolean
750
+ can_change_people_count: boolean
751
+ can_confirm: boolean
752
+ change_people_count: Registration['change_people_count']
753
+ channel: Registration['channel']
754
+ event_id: Registration['event_id']
755
+ event_time_utc: GameRow['event_time']
756
+ event_timezone: GameRow['timezone']
757
+ id: Registration['id']
758
+ is_canceled: Registration['is_canceled']
759
+ is_confirm: Registration['is_confirm']
760
+ is_reserve: Registration['is_reserve']
761
+ max_members_count: GameRow['max_members_count']
762
+ people_count: Registration['people_count']
763
+ team_name: Registration['team_name']
764
+ }
765
+
766
+ organizer: {
767
+ can_cancel: boolean
768
+ can_change_people_count: boolean
769
+ can_confirm: boolean
770
+ change_people_count: Registration['change_people_count']
771
+ channel: Registration['channel']
772
+ event_id: Registration['event_id']
773
+ event_time_utc: GameRow['event_time']
774
+ event_timezone: GameRow['timezone']
775
+ id: Registration['id']
776
+ is_canceled: Registration['is_canceled']
777
+ is_confirm: Registration['is_confirm']
778
+ is_reserve: Registration['is_reserve']
779
+ max_members_count: GameRow['max_members_count']
780
+ people_count: Registration['people_count']
781
+ team_name: Registration['team_name']
782
+ }
783
+ }
784
+
785
+ 'GET/Game/Set': {
786
+ admin: Array<{
787
+ id: Game['id']
788
+ alias: Game['alias']
789
+ number: Game['number']
790
+ event_time: Game['event_time']
791
+ status: Game['status']
792
+ city: {
793
+ alias: City['alias']
794
+ id: City['id']
795
+ name: City['name']
796
+ vk_group_id: City['vk_group_id']
797
+ }
798
+ venue: {
799
+ id: Venue['id']
800
+ name: Venue['name']
801
+ }
802
+ theme: {
803
+ id: Theme['id']
804
+ name: Theme['name']
805
+ }
806
+ image: {
807
+ id: ImageMedia['id']
808
+ }
809
+ media: {
810
+ id: Media['id']
811
+ path: Media['path']
812
+ title: Media['title']
813
+ }
814
+ amounts: {
815
+ people: number
816
+ people_reserve: number
817
+ teams: number
818
+ teams_reserve: number
819
+ }
820
+ }>
821
+
822
+ default: Array<{
823
+ alias: GameRow['alias']
824
+ currency: GameRow['currency']
825
+ event_time: GameRow['event_time']
826
+ id: GameRow['id']
827
+ max_members_count: GameRow['max_members_count']
828
+ min_members_count: GameRow['min_members_count']
829
+ number: GameRow['number']
830
+ price: GameRow['price']
831
+ status: GameRow['status']
832
+ city: {
833
+ alias: City['alias']
834
+ id: City['id']
835
+ }
836
+ location: {
837
+ house_number: Venue['house_number']
838
+ id: Venue['id']
839
+ info: Venue['location_info']
840
+ name: Venue['name']
841
+ street: Venue['street']
842
+ }
843
+ theme: {
844
+ description: Theme['description']
845
+ id: Theme['id']
846
+ name: Theme['name']
847
+ short_description: Theme['short_description']
848
+ }
849
+ media: {
850
+ id: Media['id']
851
+ path: Media['path']
852
+ }
853
+ }>
854
+
855
+ organizer: Array<{
856
+ id: Game['id']
857
+ alias: Game['alias']
858
+ number: Game['number']
859
+ event_time: Game['event_time']
860
+ status: Game['status']
861
+ city: {
862
+ alias: City['alias']
863
+ id: City['id']
864
+ name: City['name']
865
+ vk_group_id: City['vk_group_id']
866
+ }
867
+ venue: {
868
+ id: Venue['id']
869
+ name: Venue['name']
870
+ }
871
+ theme: {
872
+ id: Theme['id']
873
+ name: Theme['name']
874
+ }
875
+ image: {
876
+ id: ImageMedia['id']
877
+ }
878
+ media: {
879
+ id: Media['id']
880
+ path: Media['path']
881
+ title: Media['title']
882
+ }
883
+ amounts: {
884
+ people: number
885
+ people_reserve: number
886
+ teams: number
887
+ teams_reserve: number
888
+ }
889
+ }>
890
+ }
891
+ }
892
+
893
+ type EndpointHandler = (
894
+ request: Request,
895
+ checkin: ScopeRoleResponse['GET/Checkin/Unit'][Role],
896
+ pattern: URLPatternResult,
897
+ ) => any
898
+
899
+ type User = {
900
+ email: string | null
901
+ first_name: string | null
902
+ gmail_link: string | null
903
+ hashed_password: string | null
904
+ id: string
905
+ image_id: string | null
906
+ is_active: boolean | null
907
+ is_superuser: boolean | null
908
+ is_verified: boolean | null
909
+ last_name: string | null
910
+ mailru_link: string | null
911
+ phone: string | null
912
+ role_id: string
913
+ telegram_data: string | null
914
+ telegram_id: string | null
915
+ third_name: string | null
916
+ time_created: string
917
+ time_updated: string | null
918
+ }
919
+
920
+ type Role = {
921
+ description: string | null
922
+ id: string
923
+ name: Role
924
+ time_created: string
925
+ time_updated: string | null
926
+ }
927
+
928
+ type City = {
929
+ address: string | null
930
+ alias: string | null
931
+ chatapp_category: string | null
932
+ chatapp_legacy: boolean | null
933
+ chatapp_line: string | null
934
+ chatapp_tag: string | null
935
+ chatapp_user: string | null
936
+ country: string | null
937
+ currency: string | null
938
+ custom_html: string | null
939
+ custom_script: string | null
940
+ description: string | null
941
+ email: string | null
942
+ game_time: string | null
943
+ id: string
944
+ inst_comment: string | null
945
+ inst_link: string | null
946
+ inst_login: string | null
947
+ inst_password: string | null
948
+ is_default: boolean | null
949
+ is_franchise: boolean | null
950
+ max_members_count: number | null
951
+ meta_description: string | null
952
+ meta_title: string | null
953
+ min_members_count: number | null
954
+ name: string | null
955
+ phone: string | null
956
+ price: number | null
957
+ region: string | null
958
+ telegram_chat_id: string | null
959
+ tg_comment: string | null
960
+ tg_link: string | null
961
+ tg_login: string | null
962
+ tg_password: string | null
963
+ time_created: string
964
+ time_updated: string | null
965
+ timezone: number | null
966
+ title: string | null
967
+ vk_comment: string | null
968
+ vk_group_id: string | null
969
+ vk_link: string | null
970
+ yandex_metrica: string | null
971
+ }
972
+
973
+ type Venue = {
974
+ city_id: string | null
975
+ comment_equipment: string | null
976
+ comment_responsible: string | null
977
+ comment: string | null
978
+ floor: string | null
979
+ game_time: string | null
980
+ house_number: string | null
981
+ id: string
982
+ is_adult: boolean | null
983
+ latitude: number | null
984
+ location_info: string | null
985
+ longitude: number | null
986
+ metro: string | null
987
+ name: string | null
988
+ people_capacity: number | null
989
+ street: string | null
990
+ team_capacity: number | null
991
+ time_created: string
992
+ time_updated: string
993
+ }
994
+
995
+ type Theme = {
996
+ description: string | null
997
+ id: string
998
+ image_id: string
999
+ name: string | null
1000
+ short_description: string | null
1001
+ time_created: string
1002
+ time_updated: string
1003
+ }
1004
+
1005
+ type Game = {
1006
+ alias: string | null
1007
+ city_id: string | null
1008
+ created_by_id: string
1009
+ currency: string | null
1010
+ description: string | null
1011
+ event_time: string | null
1012
+ game_pack_id: string | null
1013
+ id: string
1014
+ image_id: string | null
1015
+ location_id: string
1016
+ max_members_count: number | null
1017
+ min_members_count: number | null
1018
+ name: string | null
1019
+ number: string | null
1020
+ owner_id: string
1021
+ personal_comment: string | null
1022
+ price: number | null
1023
+ short_description: string | null
1024
+ status: GameStatus
1025
+ theme_id: string
1026
+ time_created: string
1027
+ time_updated: string | null
1028
+ timezone: number | null
1029
+ weekday: string | null
1030
+ }
1031
+
1032
+ type Registration = {
1033
+ ads_from: string | null
1034
+ change_people_count: number | null
1035
+ channel: string | null
1036
+ chatapp_id: string | null
1037
+ comment: string | null
1038
+ email: string | null
1039
+ event_id: string
1040
+ fact_people_count: number | null
1041
+ human_name: string | null
1042
+ id: string
1043
+ is_actual_presence: boolean | null
1044
+ is_alone: boolean | null
1045
+ is_birthday: boolean | null
1046
+ is_canceled: boolean | null
1047
+ is_confirm: boolean | null
1048
+ is_extensible: boolean | null
1049
+ is_first: boolean | null
1050
+ is_reserve: boolean | null
1051
+ last_broadcast: string | null
1052
+ people_count: number | null
1053
+ phone: string | null
1054
+ promocode: string | null
1055
+ team_name: string | null
1056
+ telegramBot: string | null
1057
+ time_created: string
1058
+ time_updated: string | null
1059
+ utm_campaign: string | null
1060
+ utm_content: string | null
1061
+ utm_medium: string | null
1062
+ utm_source: string | null
1063
+ utm_term: string | null
1064
+ vkontakte: string | null
1065
+ }
1066
+
1067
+ type Media = {
1068
+ id: string
1069
+ time_created: string
1070
+ time_updated: string | null
1071
+ title: string | null
1072
+ cached_link: string | null
1073
+ description: string | null
1074
+ path: string | null
1075
+ }
1076
+
1077
+ type ImageMedia = {
1078
+ file_format: string | null
1079
+ height: number | null
1080
+ id: string
1081
+ media_id: string
1082
+ time_created: string
1083
+ time_updated: string | null
1084
+ width: number | null
1085
+ }
1086
+
1087
+ /**
1088
+ * Mixins
1089
+ */
1090
+
1091
+ interface RequestInit {
1092
+ /**
1093
+ * @description A method string defined by RFC7231 @see {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3}
1094
+ */
1095
+ method?: Method
1096
+ }
1097
+
1098
+ /**
1099
+ * React
1100
+ */
1101
+
1102
+ type UseState<T> = [
1103
+ T,
1104
+ import('react').Dispatch<import('react').SetStateAction<T>>,
1105
+ ]
1106
+
1107
+ /**
1108
+ * Core
1109
+ */
1110
+
1111
+ type Method = (typeof import('./enumerations/core/methods.js').Methods)[number]
1112
+
1113
+ type Domain = (typeof import('./enumerations/core/features.js').Domains)[number]
1114
+
1115
+ type Procedure =
1116
+ (typeof import('./enumerations/core/features.js').Procedures)[number]
1117
+
1118
+ type Feature = Domain | Procedure
1119
+
1120
+ type Kind = (typeof import('./enumerations/core/kinds.js').Kinds)[number]
1121
+
1122
+ type Scope = `${Method}/${Feature}/${Kind}`
1123
+
1124
+ type Role = (typeof import('./enumerations/entities/roles.js').Roles)[number]
1125
+
1126
+ type GameStatus =
1127
+ (typeof import('./enumerations/entities/game-statuses.js').GameStatuses)[
1128
+ number
1129
+ ]
1130
+
1131
+ type RegistrationStatus =
1132
+ (typeof import('./enumerations/entities/registration-statuses.js').RegistrationStatuses)[
1133
+ number
1134
+ ]
1135
+
1136
+ type Lineup =
1137
+ (typeof import('./enumerations/entities/lineups.js').Lineups)[number]
1138
+
1139
+ type Affilation =
1140
+ (typeof import('./enumerations/entities/affilations.js').Affilations)[number]
1141
+
1142
+ /**
1143
+ * Misc
1144
+ */
1145
+
1146
+ type Icon = (typeof import('./enumerations/misc/icons.js').Icons)[number]
1147
+
1148
+ type Phase = (typeof import('./enumerations/misc/phases.js').Phases)[number]
1149
+
1150
+ /**
1151
+ * Products
1152
+ */
1153
+
1154
+ type ScopePhase = Record<Scope, Phase>
23
1155
 
24
- export * from './functions/schema.js'
1156
+ type ScopeState = Record<Scope, any>
25
1157
 
26
- export * from './schemas/city.js'
27
- export * from './schemas/game.js'
28
- export * from './schemas/registration.js'
29
- export * from './schemas/role.js'
30
- export * from './schemas/theme.js'
31
- export * from './schemas/user.js'
32
- export * from './schemas/venue.js'
1158
+ type ScopeController = Record<Scope, AbortController | null>