@shakerquiz/utilities 4.0.26 → 4.0.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
|
@@ -140,11 +140,11 @@ export const RoutePathname = Object.freeze(
|
|
|
140
140
|
'themes/cover': 'themes/cover/:cover',
|
|
141
141
|
'themes/games': 'themes/games',
|
|
142
142
|
'game': 'game/:game',
|
|
143
|
-
'game/status': 'game/:game/status',
|
|
143
|
+
'game/status': 'game/:game/status/:status',
|
|
144
144
|
'game/statuses': 'game/:game/statuses',
|
|
145
145
|
'game/city': 'game/:game/city/:city',
|
|
146
146
|
'game/registrations': 'game/:game/registrations',
|
|
147
|
-
'game/registrations/status': 'game/:game/registrations/status',
|
|
147
|
+
'game/registrations/status': 'game/:game/registrations/status/:status',
|
|
148
148
|
'game/registrations/lineup': 'game/:game/registrations/lineup',
|
|
149
149
|
'game/registrations/export': 'game/:game/registrations/export',
|
|
150
150
|
'game/summary': 'game/:game/summary',
|
|
@@ -152,7 +152,7 @@ export const RoutePathname = Object.freeze(
|
|
|
152
152
|
'game/theme/cover': 'game/:game/theme/:theme/cover/:cover',
|
|
153
153
|
'game/venue': 'game/:game/venue/:venue',
|
|
154
154
|
'games': 'games',
|
|
155
|
-
'games/status': 'games/status',
|
|
155
|
+
'games/status': 'games/status/:status',
|
|
156
156
|
'games/city': 'games/city/:city',
|
|
157
157
|
'games/registrations': 'games/registrations',
|
|
158
158
|
'games/registrations/export': 'games/registrations/export',
|
|
@@ -161,7 +161,7 @@ export const RoutePathname = Object.freeze(
|
|
|
161
161
|
'games/theme/cover': 'games/theme/:theme/cover/:cover',
|
|
162
162
|
'games/venue': 'games/venue/:venue',
|
|
163
163
|
'registration': 'registration/:registration',
|
|
164
|
-
'registration/status': 'registration/:registration/status',
|
|
164
|
+
'registration/status': 'registration/:registration/status/:status',
|
|
165
165
|
'registration/statuses': 'registration/:registration/statuses',
|
|
166
166
|
'registration/creation': 'registration/:registration/creation',
|
|
167
167
|
'registration/confirmation': 'registration/:registration/confirmation',
|
|
@@ -178,11 +178,11 @@ export const RoutePathname = Object.freeze(
|
|
|
178
178
|
'registration/game/theme/cover': 'registration/:registration/game/:game/theme/:theme/cover/:cover',
|
|
179
179
|
'registration/game/venue': 'registration/:registration/game/:game/venue/:venue',
|
|
180
180
|
'registrations': 'registrations',
|
|
181
|
-
'registrations/status': 'registrations/status',
|
|
181
|
+
'registrations/status': 'registrations/status/:status',
|
|
182
182
|
'registrations/lineup': 'registrations/lineup',
|
|
183
183
|
'registrations/city': 'registrations/city/:city',
|
|
184
184
|
'registrations/game': 'registrations/game/:game',
|
|
185
|
-
'registrations/game/status': 'registrations/game/:game/status',
|
|
185
|
+
'registrations/game/status': 'registrations/game/:game/status/:status',
|
|
186
186
|
'registrations/game/theme': 'registrations/game/:game/theme/:theme',
|
|
187
187
|
'registrations/export': 'registrations/export',
|
|
188
188
|
'telegram/webhook': 'telegram/webhook',
|
|
@@ -303,6 +303,7 @@ export const RouteParameters = Object.freeze(
|
|
|
303
303
|
],
|
|
304
304
|
'game/status': [
|
|
305
305
|
':game',
|
|
306
|
+
':status',
|
|
306
307
|
],
|
|
307
308
|
'game/statuses': [
|
|
308
309
|
':game',
|
|
@@ -316,6 +317,7 @@ export const RouteParameters = Object.freeze(
|
|
|
316
317
|
],
|
|
317
318
|
'game/registrations/status': [
|
|
318
319
|
':game',
|
|
320
|
+
':status',
|
|
319
321
|
],
|
|
320
322
|
'game/registrations/lineup': [
|
|
321
323
|
':game',
|
|
@@ -340,7 +342,9 @@ export const RouteParameters = Object.freeze(
|
|
|
340
342
|
':venue',
|
|
341
343
|
],
|
|
342
344
|
'games': [],
|
|
343
|
-
'games/status': [
|
|
345
|
+
'games/status': [
|
|
346
|
+
':status',
|
|
347
|
+
],
|
|
344
348
|
'games/city': [
|
|
345
349
|
':city',
|
|
346
350
|
],
|
|
@@ -362,6 +366,7 @@ export const RouteParameters = Object.freeze(
|
|
|
362
366
|
],
|
|
363
367
|
'registration/status': [
|
|
364
368
|
':registration',
|
|
369
|
+
':status',
|
|
365
370
|
],
|
|
366
371
|
'registration/statuses': [
|
|
367
372
|
':registration',
|
|
@@ -418,7 +423,9 @@ export const RouteParameters = Object.freeze(
|
|
|
418
423
|
':venue',
|
|
419
424
|
],
|
|
420
425
|
'registrations': [],
|
|
421
|
-
'registrations/status': [
|
|
426
|
+
'registrations/status': [
|
|
427
|
+
':status',
|
|
428
|
+
],
|
|
422
429
|
'registrations/lineup': [],
|
|
423
430
|
'registrations/city': [
|
|
424
431
|
':city',
|
|
@@ -428,6 +435,7 @@ export const RouteParameters = Object.freeze(
|
|
|
428
435
|
],
|
|
429
436
|
'registrations/game/status': [
|
|
430
437
|
':game',
|
|
438
|
+
':status',
|
|
431
439
|
],
|
|
432
440
|
'registrations/game/theme': [
|
|
433
441
|
':game',
|
|
@@ -494,11 +502,11 @@ export const PathnameRoute = Object.freeze(
|
|
|
494
502
|
'themes/cover/:cover': 'themes/cover',
|
|
495
503
|
'themes/games': 'themes/games',
|
|
496
504
|
'game/:game': 'game',
|
|
497
|
-
'game/:game/status': 'game/status',
|
|
505
|
+
'game/:game/status/:status': 'game/status',
|
|
498
506
|
'game/:game/statuses': 'game/statuses',
|
|
499
507
|
'game/:game/city/:city': 'game/city',
|
|
500
508
|
'game/:game/registrations': 'game/registrations',
|
|
501
|
-
'game/:game/registrations/status': 'game/registrations/status',
|
|
509
|
+
'game/:game/registrations/status/:status': 'game/registrations/status',
|
|
502
510
|
'game/:game/registrations/lineup': 'game/registrations/lineup',
|
|
503
511
|
'game/:game/registrations/export': 'game/registrations/export',
|
|
504
512
|
'game/:game/summary': 'game/summary',
|
|
@@ -506,7 +514,7 @@ export const PathnameRoute = Object.freeze(
|
|
|
506
514
|
'game/:game/theme/:theme/cover/:cover': 'game/theme/cover',
|
|
507
515
|
'game/:game/venue/:venue': 'game/venue',
|
|
508
516
|
'games': 'games',
|
|
509
|
-
'games/status': 'games/status',
|
|
517
|
+
'games/status/:status': 'games/status',
|
|
510
518
|
'games/city/:city': 'games/city',
|
|
511
519
|
'games/registrations': 'games/registrations',
|
|
512
520
|
'games/registrations/export': 'games/registrations/export',
|
|
@@ -515,7 +523,7 @@ export const PathnameRoute = Object.freeze(
|
|
|
515
523
|
'games/theme/:theme/cover/:cover': 'games/theme/cover',
|
|
516
524
|
'games/venue/:venue': 'games/venue',
|
|
517
525
|
'registration/:registration': 'registration',
|
|
518
|
-
'registration/:registration/status': 'registration/status',
|
|
526
|
+
'registration/:registration/status/:status': 'registration/status',
|
|
519
527
|
'registration/:registration/statuses': 'registration/statuses',
|
|
520
528
|
'registration/:registration/creation': 'registration/creation',
|
|
521
529
|
'registration/:registration/confirmation': 'registration/confirmation',
|
|
@@ -532,11 +540,11 @@ export const PathnameRoute = Object.freeze(
|
|
|
532
540
|
'registration/:registration/game/:game/theme/:theme/cover/:cover': 'registration/game/theme/cover',
|
|
533
541
|
'registration/:registration/game/:game/venue/:venue': 'registration/game/venue',
|
|
534
542
|
'registrations': 'registrations',
|
|
535
|
-
'registrations/status': 'registrations/status',
|
|
543
|
+
'registrations/status/:status': 'registrations/status',
|
|
536
544
|
'registrations/lineup': 'registrations/lineup',
|
|
537
545
|
'registrations/city/:city': 'registrations/city',
|
|
538
546
|
'registrations/game/:game': 'registrations/game',
|
|
539
|
-
'registrations/game/:game/status': 'registrations/game/status',
|
|
547
|
+
'registrations/game/:game/status/:status': 'registrations/game/status',
|
|
540
548
|
'registrations/game/:game/theme/:theme': 'registrations/game/theme',
|
|
541
549
|
'registrations/export': 'registrations/export',
|
|
542
550
|
'telegram/webhook': 'telegram/webhook',
|
|
@@ -655,8 +663,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
655
663
|
'game/:game': [
|
|
656
664
|
':game',
|
|
657
665
|
],
|
|
658
|
-
'game/:game/status': [
|
|
666
|
+
'game/:game/status/:status': [
|
|
659
667
|
':game',
|
|
668
|
+
':status',
|
|
660
669
|
],
|
|
661
670
|
'game/:game/statuses': [
|
|
662
671
|
':game',
|
|
@@ -668,8 +677,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
668
677
|
'game/:game/registrations': [
|
|
669
678
|
':game',
|
|
670
679
|
],
|
|
671
|
-
'game/:game/registrations/status': [
|
|
680
|
+
'game/:game/registrations/status/:status': [
|
|
672
681
|
':game',
|
|
682
|
+
':status',
|
|
673
683
|
],
|
|
674
684
|
'game/:game/registrations/lineup': [
|
|
675
685
|
':game',
|
|
@@ -694,7 +704,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
694
704
|
':venue',
|
|
695
705
|
],
|
|
696
706
|
'games': [],
|
|
697
|
-
'games/status': [
|
|
707
|
+
'games/status/:status': [
|
|
708
|
+
':status',
|
|
709
|
+
],
|
|
698
710
|
'games/city/:city': [
|
|
699
711
|
':city',
|
|
700
712
|
],
|
|
@@ -714,8 +726,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
714
726
|
'registration/:registration': [
|
|
715
727
|
':registration',
|
|
716
728
|
],
|
|
717
|
-
'registration/:registration/status': [
|
|
729
|
+
'registration/:registration/status/:status': [
|
|
718
730
|
':registration',
|
|
731
|
+
':status',
|
|
719
732
|
],
|
|
720
733
|
'registration/:registration/statuses': [
|
|
721
734
|
':registration',
|
|
@@ -772,7 +785,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
772
785
|
':venue',
|
|
773
786
|
],
|
|
774
787
|
'registrations': [],
|
|
775
|
-
'registrations/status': [
|
|
788
|
+
'registrations/status/:status': [
|
|
789
|
+
':status',
|
|
790
|
+
],
|
|
776
791
|
'registrations/lineup': [],
|
|
777
792
|
'registrations/city/:city': [
|
|
778
793
|
':city',
|
|
@@ -780,8 +795,9 @@ export const PathnameParameters = Object.freeze(
|
|
|
780
795
|
'registrations/game/:game': [
|
|
781
796
|
':game',
|
|
782
797
|
],
|
|
783
|
-
'registrations/game/:game/status': [
|
|
798
|
+
'registrations/game/:game/status/:status': [
|
|
784
799
|
':game',
|
|
800
|
+
':status',
|
|
785
801
|
],
|
|
786
802
|
'registrations/game/:game/theme/:theme': [
|
|
787
803
|
':game',
|
|
@@ -818,6 +834,7 @@ export const ParameterPattern = Object.freeze(
|
|
|
818
834
|
':cover': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
|
|
819
835
|
':game': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
|
|
820
836
|
':registration': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
|
|
837
|
+
':status': '\w+',
|
|
821
838
|
}),
|
|
822
839
|
)
|
|
823
840
|
|
|
@@ -138,13 +138,10 @@ export const RoleGameStatusGameStatuses = Object.freeze({
|
|
|
138
138
|
|
|
139
139
|
[Role['organizer']]: Object.freeze({
|
|
140
140
|
[GameStatus['APPROVED']]: Object.freeze([
|
|
141
|
-
GameStatus['APPROVED'],
|
|
142
141
|
GameStatus['CLOSED'],
|
|
143
142
|
GameStatus['FORINVITES'],
|
|
144
143
|
GameStatus['PUBLISHED'],
|
|
145
144
|
GameStatus['IS_RESERVE'],
|
|
146
|
-
GameStatus['FINISHED'],
|
|
147
|
-
GameStatus['ARCHIVE'],
|
|
148
145
|
]),
|
|
149
146
|
|
|
150
147
|
[GameStatus['ARCHIVE']]: Object.freeze([]),
|
|
@@ -157,14 +154,15 @@ export const RoleGameStatusGameStatuses = Object.freeze({
|
|
|
157
154
|
|
|
158
155
|
[GameStatus['IS_RESERVE']]: Object.freeze([]),
|
|
159
156
|
|
|
160
|
-
[GameStatus['MODERATION']]: Object.freeze([
|
|
161
|
-
GameStatus['MODERATION'],
|
|
162
|
-
]),
|
|
157
|
+
[GameStatus['MODERATION']]: Object.freeze([]),
|
|
163
158
|
|
|
164
|
-
[GameStatus['PUBLISHED']]: Object.freeze([
|
|
159
|
+
[GameStatus['PUBLISHED']]: Object.freeze([
|
|
160
|
+
GameStatus['CLOSED'],
|
|
161
|
+
GameStatus['FORINVITES'],
|
|
162
|
+
GameStatus['IS_RESERVE'],
|
|
163
|
+
]),
|
|
165
164
|
|
|
166
165
|
[GameStatus['REJECTED']]: Object.freeze([
|
|
167
|
-
GameStatus['REJECTED'],
|
|
168
166
|
GameStatus['MODERATION'],
|
|
169
167
|
]),
|
|
170
168
|
}),
|
|
@@ -209,6 +207,7 @@ export const RoleGameStatuses = Object.freeze({
|
|
|
209
207
|
GameStatus['FINISHED'],
|
|
210
208
|
GameStatus['FORINVITES'],
|
|
211
209
|
GameStatus['IS_RESERVE'],
|
|
210
|
+
GameStatus['MODERATION'],
|
|
212
211
|
GameStatus['PUBLISHED'],
|
|
213
212
|
]),
|
|
214
213
|
|