@shakerquiz/utilities 4.0.25 → 4.0.27

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.25",
4
+ "version": "4.0.27",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -36,6 +36,7 @@ export const RouteCardinality = Object.freeze(
36
36
  'venue/city': '1/1',
37
37
  'venues': 'n',
38
38
  'venues/city': 'n/1',
39
+ 'cover': '1',
39
40
  'theme': '1',
40
41
  'theme/cover': '1/1',
41
42
  'themes': 'n',
@@ -132,17 +133,18 @@ export const RoutePathname = Object.freeze(
132
133
  'venue/city': 'venue/:venue/city/:city',
133
134
  'venues': 'venues',
134
135
  'venues/city': 'venues/city/:city',
136
+ 'cover': 'cover/:cover',
135
137
  'theme': 'theme/:theme',
136
138
  'theme/cover': 'theme/:theme/cover/:cover',
137
139
  'themes': 'themes',
138
140
  'themes/cover': 'themes/cover/:cover',
139
141
  'themes/games': 'themes/games',
140
142
  'game': 'game/:game',
141
- 'game/status': 'game/:game/status',
143
+ 'game/status': 'game/:game/status/:status',
142
144
  'game/statuses': 'game/:game/statuses',
143
145
  'game/city': 'game/:game/city/:city',
144
146
  'game/registrations': 'game/:game/registrations',
145
- 'game/registrations/status': 'game/:game/registrations/status',
147
+ 'game/registrations/status': 'game/:game/registrations/status/:status',
146
148
  'game/registrations/lineup': 'game/:game/registrations/lineup',
147
149
  'game/registrations/export': 'game/:game/registrations/export',
148
150
  'game/summary': 'game/:game/summary',
@@ -150,7 +152,7 @@ export const RoutePathname = Object.freeze(
150
152
  'game/theme/cover': 'game/:game/theme/:theme/cover/:cover',
151
153
  'game/venue': 'game/:game/venue/:venue',
152
154
  'games': 'games',
153
- 'games/status': 'games/status',
155
+ 'games/status': 'games/status/:status',
154
156
  'games/city': 'games/city/:city',
155
157
  'games/registrations': 'games/registrations',
156
158
  'games/registrations/export': 'games/registrations/export',
@@ -159,7 +161,7 @@ export const RoutePathname = Object.freeze(
159
161
  'games/theme/cover': 'games/theme/:theme/cover/:cover',
160
162
  'games/venue': 'games/venue/:venue',
161
163
  'registration': 'registration/:registration',
162
- 'registration/status': 'registration/:registration/status',
164
+ 'registration/status': 'registration/:registration/status/:status',
163
165
  'registration/statuses': 'registration/:registration/statuses',
164
166
  'registration/creation': 'registration/:registration/creation',
165
167
  'registration/confirmation': 'registration/:registration/confirmation',
@@ -176,11 +178,11 @@ export const RoutePathname = Object.freeze(
176
178
  'registration/game/theme/cover': 'registration/:registration/game/:game/theme/:theme/cover/:cover',
177
179
  'registration/game/venue': 'registration/:registration/game/:game/venue/:venue',
178
180
  'registrations': 'registrations',
179
- 'registrations/status': 'registrations/status',
181
+ 'registrations/status': 'registrations/status/:status',
180
182
  'registrations/lineup': 'registrations/lineup',
181
183
  'registrations/city': 'registrations/city/:city',
182
184
  'registrations/game': 'registrations/game/:game',
183
- 'registrations/game/status': 'registrations/game/:game/status',
185
+ 'registrations/game/status': 'registrations/game/:game/status/:status',
184
186
  'registrations/game/theme': 'registrations/game/:game/theme/:theme',
185
187
  'registrations/export': 'registrations/export',
186
188
  'telegram/webhook': 'telegram/webhook',
@@ -281,6 +283,9 @@ export const RouteParameters = Object.freeze(
281
283
  'venues/city': [
282
284
  ':city',
283
285
  ],
286
+ 'cover': [
287
+ ':cover',
288
+ ],
284
289
  'theme': [
285
290
  ':theme',
286
291
  ],
@@ -298,6 +303,7 @@ export const RouteParameters = Object.freeze(
298
303
  ],
299
304
  'game/status': [
300
305
  ':game',
306
+ ':status',
301
307
  ],
302
308
  'game/statuses': [
303
309
  ':game',
@@ -311,6 +317,7 @@ export const RouteParameters = Object.freeze(
311
317
  ],
312
318
  'game/registrations/status': [
313
319
  ':game',
320
+ ':status',
314
321
  ],
315
322
  'game/registrations/lineup': [
316
323
  ':game',
@@ -335,7 +342,9 @@ export const RouteParameters = Object.freeze(
335
342
  ':venue',
336
343
  ],
337
344
  'games': [],
338
- 'games/status': [],
345
+ 'games/status': [
346
+ ':status',
347
+ ],
339
348
  'games/city': [
340
349
  ':city',
341
350
  ],
@@ -357,6 +366,7 @@ export const RouteParameters = Object.freeze(
357
366
  ],
358
367
  'registration/status': [
359
368
  ':registration',
369
+ ':status',
360
370
  ],
361
371
  'registration/statuses': [
362
372
  ':registration',
@@ -413,7 +423,9 @@ export const RouteParameters = Object.freeze(
413
423
  ':venue',
414
424
  ],
415
425
  'registrations': [],
416
- 'registrations/status': [],
426
+ 'registrations/status': [
427
+ ':status',
428
+ ],
417
429
  'registrations/lineup': [],
418
430
  'registrations/city': [
419
431
  ':city',
@@ -423,6 +435,7 @@ export const RouteParameters = Object.freeze(
423
435
  ],
424
436
  'registrations/game/status': [
425
437
  ':game',
438
+ ':status',
426
439
  ],
427
440
  'registrations/game/theme': [
428
441
  ':game',
@@ -482,17 +495,18 @@ export const PathnameRoute = Object.freeze(
482
495
  'venue/:venue/city/:city': 'venue/city',
483
496
  'venues': 'venues',
484
497
  'venues/city/:city': 'venues/city',
498
+ 'cover/:cover': 'cover',
485
499
  'theme/:theme': 'theme',
486
500
  'theme/:theme/cover/:cover': 'theme/cover',
487
501
  'themes': 'themes',
488
502
  'themes/cover/:cover': 'themes/cover',
489
503
  'themes/games': 'themes/games',
490
504
  'game/:game': 'game',
491
- 'game/:game/status': 'game/status',
505
+ 'game/:game/status/:status': 'game/status',
492
506
  'game/:game/statuses': 'game/statuses',
493
507
  'game/:game/city/:city': 'game/city',
494
508
  'game/:game/registrations': 'game/registrations',
495
- 'game/:game/registrations/status': 'game/registrations/status',
509
+ 'game/:game/registrations/status/:status': 'game/registrations/status',
496
510
  'game/:game/registrations/lineup': 'game/registrations/lineup',
497
511
  'game/:game/registrations/export': 'game/registrations/export',
498
512
  'game/:game/summary': 'game/summary',
@@ -500,7 +514,7 @@ export const PathnameRoute = Object.freeze(
500
514
  'game/:game/theme/:theme/cover/:cover': 'game/theme/cover',
501
515
  'game/:game/venue/:venue': 'game/venue',
502
516
  'games': 'games',
503
- 'games/status': 'games/status',
517
+ 'games/status/:status': 'games/status',
504
518
  'games/city/:city': 'games/city',
505
519
  'games/registrations': 'games/registrations',
506
520
  'games/registrations/export': 'games/registrations/export',
@@ -509,7 +523,7 @@ export const PathnameRoute = Object.freeze(
509
523
  'games/theme/:theme/cover/:cover': 'games/theme/cover',
510
524
  'games/venue/:venue': 'games/venue',
511
525
  'registration/:registration': 'registration',
512
- 'registration/:registration/status': 'registration/status',
526
+ 'registration/:registration/status/:status': 'registration/status',
513
527
  'registration/:registration/statuses': 'registration/statuses',
514
528
  'registration/:registration/creation': 'registration/creation',
515
529
  'registration/:registration/confirmation': 'registration/confirmation',
@@ -526,11 +540,11 @@ export const PathnameRoute = Object.freeze(
526
540
  'registration/:registration/game/:game/theme/:theme/cover/:cover': 'registration/game/theme/cover',
527
541
  'registration/:registration/game/:game/venue/:venue': 'registration/game/venue',
528
542
  'registrations': 'registrations',
529
- 'registrations/status': 'registrations/status',
543
+ 'registrations/status/:status': 'registrations/status',
530
544
  'registrations/lineup': 'registrations/lineup',
531
545
  'registrations/city/:city': 'registrations/city',
532
546
  'registrations/game/:game': 'registrations/game',
533
- 'registrations/game/:game/status': 'registrations/game/status',
547
+ 'registrations/game/:game/status/:status': 'registrations/game/status',
534
548
  'registrations/game/:game/theme/:theme': 'registrations/game/theme',
535
549
  'registrations/export': 'registrations/export',
536
550
  'telegram/webhook': 'telegram/webhook',
@@ -631,6 +645,9 @@ export const PathnameParameters = Object.freeze(
631
645
  'venues/city/:city': [
632
646
  ':city',
633
647
  ],
648
+ 'cover/:cover': [
649
+ ':cover',
650
+ ],
634
651
  'theme/:theme': [
635
652
  ':theme',
636
653
  ],
@@ -646,8 +663,9 @@ export const PathnameParameters = Object.freeze(
646
663
  'game/:game': [
647
664
  ':game',
648
665
  ],
649
- 'game/:game/status': [
666
+ 'game/:game/status/:status': [
650
667
  ':game',
668
+ ':status',
651
669
  ],
652
670
  'game/:game/statuses': [
653
671
  ':game',
@@ -659,8 +677,9 @@ export const PathnameParameters = Object.freeze(
659
677
  'game/:game/registrations': [
660
678
  ':game',
661
679
  ],
662
- 'game/:game/registrations/status': [
680
+ 'game/:game/registrations/status/:status': [
663
681
  ':game',
682
+ ':status',
664
683
  ],
665
684
  'game/:game/registrations/lineup': [
666
685
  ':game',
@@ -685,7 +704,9 @@ export const PathnameParameters = Object.freeze(
685
704
  ':venue',
686
705
  ],
687
706
  'games': [],
688
- 'games/status': [],
707
+ 'games/status/:status': [
708
+ ':status',
709
+ ],
689
710
  'games/city/:city': [
690
711
  ':city',
691
712
  ],
@@ -705,8 +726,9 @@ export const PathnameParameters = Object.freeze(
705
726
  'registration/:registration': [
706
727
  ':registration',
707
728
  ],
708
- 'registration/:registration/status': [
729
+ 'registration/:registration/status/:status': [
709
730
  ':registration',
731
+ ':status',
710
732
  ],
711
733
  'registration/:registration/statuses': [
712
734
  ':registration',
@@ -763,7 +785,9 @@ export const PathnameParameters = Object.freeze(
763
785
  ':venue',
764
786
  ],
765
787
  'registrations': [],
766
- 'registrations/status': [],
788
+ 'registrations/status/:status': [
789
+ ':status',
790
+ ],
767
791
  'registrations/lineup': [],
768
792
  'registrations/city/:city': [
769
793
  ':city',
@@ -771,8 +795,9 @@ export const PathnameParameters = Object.freeze(
771
795
  'registrations/game/:game': [
772
796
  ':game',
773
797
  ],
774
- 'registrations/game/:game/status': [
798
+ 'registrations/game/:game/status/:status': [
775
799
  ':game',
800
+ ':status',
776
801
  ],
777
802
  'registrations/game/:game/theme/:theme': [
778
803
  ':game',
@@ -809,6 +834,7 @@ export const ParameterPattern = Object.freeze(
809
834
  ':cover': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
810
835
  ':game': '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
811
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+',
812
838
  }),
813
839
  )
814
840
 
@@ -848,6 +874,7 @@ export const RouteBreakdown = Object.freeze(
848
874
  'venue/city': 'venue/city',
849
875
  'venues': 'venue',
850
876
  'venues/city': 'venue/city',
877
+ 'cover': 'cover',
851
878
  'theme': 'theme',
852
879
  'theme/cover': 'theme/cover',
853
880
  'themes': 'theme',
@@ -944,6 +971,7 @@ export const RouteService = Object.freeze(
944
971
  'venue/city': 'Venues',
945
972
  'venues': 'Venues',
946
973
  'venues/city': 'Venues',
974
+ 'cover': 'Minio',
947
975
  'theme': 'Themes',
948
976
  'theme/cover': 'Themes',
949
977
  'themes': 'Themes',
@@ -1052,6 +1080,9 @@ export const ServiceRoutes = Object.freeze(
1052
1080
  'venues',
1053
1081
  'venues/city',
1054
1082
  ],
1083
+ 'Minio': [
1084
+ 'cover',
1085
+ ],
1055
1086
  'Themes': [
1056
1087
  'theme',
1057
1088
  'theme/cover',
@@ -4,4 +4,5 @@ export const Pattern = Object.freeze({
4
4
  COUNTRY_CODE: /[A-Z]{2}/,
5
5
  CURRENCY_CODE: /[A-Z]{3}/,
6
6
  TIMEZONE_NAME: /[A-Za-z]+\/(?:[A-Za-z]+(?:_[A-Za-z]+)?)+/,
7
+ STRING: /\w+/,
7
8
  })
@@ -34,6 +34,7 @@ export const Routes = Object.freeze(
34
34
  'venue/city',
35
35
  'venues',
36
36
  'venues/city',
37
+ 'cover',
37
38
  'theme',
38
39
  'theme/cover',
39
40
  'themes',
@@ -262,7 +262,7 @@ export const Segments = Object.freeze(
262
262
  cardinality: '1',
263
263
  relation: Key['statuses'],
264
264
  service: undefined,
265
- pattern: undefined,
265
+ pattern: Pattern.STRING.source,
266
266
  }),
267
267
  ),
268
268
  Object.freeze(