@shakerquiz/utilities 4.0.38 → 4.0.40
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
|
@@ -7,6 +7,7 @@ export const RouteExcessiveCardinality = Object.freeze(
|
|
|
7
7
|
'user': '1',
|
|
8
8
|
'user/password': '1/1',
|
|
9
9
|
'user/role': '1/1',
|
|
10
|
+
'user/role/id': '1/1/1',
|
|
10
11
|
'user/city': '1/1',
|
|
11
12
|
'user/cities': '1/n',
|
|
12
13
|
'users': 'n',
|
|
@@ -45,6 +46,7 @@ export const RouteExcessiveCardinality = Object.freeze(
|
|
|
45
46
|
'game': '1',
|
|
46
47
|
'game/status': '1/1',
|
|
47
48
|
'game/city': '1/1',
|
|
49
|
+
'game/registration': '1/1',
|
|
48
50
|
'game/registrations': '1/n',
|
|
49
51
|
'game/registrations/status': '1/n/1',
|
|
50
52
|
'game/registrations/lineup': '1/n/1',
|
|
@@ -100,6 +102,7 @@ export const RouteCardinality = Object.freeze(
|
|
|
100
102
|
'user': '1',
|
|
101
103
|
'user/password': '1/1',
|
|
102
104
|
'user/role': '1/1',
|
|
105
|
+
'user/role/id': '1/1',
|
|
103
106
|
'user/city': '1/1',
|
|
104
107
|
'user/cities': '1/n',
|
|
105
108
|
'users': 'n',
|
|
@@ -138,6 +141,7 @@ export const RouteCardinality = Object.freeze(
|
|
|
138
141
|
'game': '1',
|
|
139
142
|
'game/status': '1/1',
|
|
140
143
|
'game/city': '1/1',
|
|
144
|
+
'game/registration': '1/1',
|
|
141
145
|
'game/registrations': '1/n',
|
|
142
146
|
'game/registrations/status': '1/1',
|
|
143
147
|
'game/registrations/lineup': '1/1',
|
|
@@ -193,6 +197,7 @@ export const RoutePathname = Object.freeze(
|
|
|
193
197
|
'user': 'user/:user',
|
|
194
198
|
'user/password': 'user/:user/password',
|
|
195
199
|
'user/role': 'user/:user/role/:role',
|
|
200
|
+
'user/role/id': 'user/:user/role/:role/id',
|
|
196
201
|
'user/city': 'user/:user/city/:city',
|
|
197
202
|
'user/cities': 'user/:user/cities',
|
|
198
203
|
'users': 'users',
|
|
@@ -231,6 +236,7 @@ export const RoutePathname = Object.freeze(
|
|
|
231
236
|
'game': 'game/:game',
|
|
232
237
|
'game/status': 'game/:game/status/:status',
|
|
233
238
|
'game/city': 'game/:game/city/:city',
|
|
239
|
+
'game/registration': 'game/:game/registration/:registration',
|
|
234
240
|
'game/registrations': 'game/:game/registrations',
|
|
235
241
|
'game/registrations/status': 'game/:game/registrations/status/:status',
|
|
236
242
|
'game/registrations/lineup': 'game/:game/registrations/lineup',
|
|
@@ -295,6 +301,10 @@ export const RouteParameters = Object.freeze(
|
|
|
295
301
|
':user',
|
|
296
302
|
':role',
|
|
297
303
|
],
|
|
304
|
+
'user/role/id': [
|
|
305
|
+
':user',
|
|
306
|
+
':role',
|
|
307
|
+
],
|
|
298
308
|
'user/city': [
|
|
299
309
|
':user',
|
|
300
310
|
':city',
|
|
@@ -394,6 +404,10 @@ export const RouteParameters = Object.freeze(
|
|
|
394
404
|
':game',
|
|
395
405
|
':city',
|
|
396
406
|
],
|
|
407
|
+
'game/registration': [
|
|
408
|
+
':game',
|
|
409
|
+
':registration',
|
|
410
|
+
],
|
|
397
411
|
'game/registrations': [
|
|
398
412
|
':game',
|
|
399
413
|
],
|
|
@@ -537,6 +551,7 @@ export const PathnameRoute = Object.freeze(
|
|
|
537
551
|
'user/:user': 'user',
|
|
538
552
|
'user/:user/password': 'user/password',
|
|
539
553
|
'user/:user/role/:role': 'user/role',
|
|
554
|
+
'user/:user/role/:role/id': 'user/role/id',
|
|
540
555
|
'user/:user/city/:city': 'user/city',
|
|
541
556
|
'user/:user/cities': 'user/cities',
|
|
542
557
|
'users': 'users',
|
|
@@ -575,6 +590,7 @@ export const PathnameRoute = Object.freeze(
|
|
|
575
590
|
'game/:game': 'game',
|
|
576
591
|
'game/:game/status/:status': 'game/status',
|
|
577
592
|
'game/:game/city/:city': 'game/city',
|
|
593
|
+
'game/:game/registration/:registration': 'game/registration',
|
|
578
594
|
'game/:game/registrations': 'game/registrations',
|
|
579
595
|
'game/:game/registrations/status/:status': 'game/registrations/status',
|
|
580
596
|
'game/:game/registrations/lineup': 'game/registrations/lineup',
|
|
@@ -639,6 +655,10 @@ export const PathnameParameters = Object.freeze(
|
|
|
639
655
|
':user',
|
|
640
656
|
':role',
|
|
641
657
|
],
|
|
658
|
+
'user/:user/role/:role/id': [
|
|
659
|
+
':user',
|
|
660
|
+
':role',
|
|
661
|
+
],
|
|
642
662
|
'user/:user/city/:city': [
|
|
643
663
|
':user',
|
|
644
664
|
':city',
|
|
@@ -738,6 +758,10 @@ export const PathnameParameters = Object.freeze(
|
|
|
738
758
|
':game',
|
|
739
759
|
':city',
|
|
740
760
|
],
|
|
761
|
+
'game/:game/registration/:registration': [
|
|
762
|
+
':game',
|
|
763
|
+
':registration',
|
|
764
|
+
],
|
|
741
765
|
'game/:game/registrations': [
|
|
742
766
|
':game',
|
|
743
767
|
],
|
|
@@ -898,6 +922,7 @@ export const RouteBreakdown = Object.freeze(
|
|
|
898
922
|
'user': 'user',
|
|
899
923
|
'user/password': 'user/password',
|
|
900
924
|
'user/role': 'user/role',
|
|
925
|
+
'user/role/id': 'role/id',
|
|
901
926
|
'user/city': 'user/city',
|
|
902
927
|
'user/cities': 'user/city',
|
|
903
928
|
'users': 'user',
|
|
@@ -936,6 +961,7 @@ export const RouteBreakdown = Object.freeze(
|
|
|
936
961
|
'game': 'game',
|
|
937
962
|
'game/status': 'game/status',
|
|
938
963
|
'game/city': 'game/city',
|
|
964
|
+
'game/registration': 'game/registration',
|
|
939
965
|
'game/registrations': 'game/registration',
|
|
940
966
|
'game/registrations/status': 'registration/status',
|
|
941
967
|
'game/registrations/lineup': 'registration/lineup',
|
|
@@ -991,6 +1017,7 @@ export const RouteService = Object.freeze(
|
|
|
991
1017
|
'user': 'Users',
|
|
992
1018
|
'user/password': 'Users',
|
|
993
1019
|
'user/role': 'Users',
|
|
1020
|
+
'user/role/id': 'Users',
|
|
994
1021
|
'user/city': 'Users',
|
|
995
1022
|
'user/cities': 'Users',
|
|
996
1023
|
'users': 'Users',
|
|
@@ -1029,6 +1056,7 @@ export const RouteService = Object.freeze(
|
|
|
1029
1056
|
'game': 'Games',
|
|
1030
1057
|
'game/status': 'Games',
|
|
1031
1058
|
'game/city': 'Games',
|
|
1059
|
+
'game/registration': 'Games',
|
|
1032
1060
|
'game/registrations': 'Games',
|
|
1033
1061
|
'game/registrations/status': 'Games',
|
|
1034
1062
|
'game/registrations/lineup': 'Games',
|
|
@@ -1087,6 +1115,7 @@ export const ServiceRoutes = Object.freeze(
|
|
|
1087
1115
|
'user',
|
|
1088
1116
|
'user/password',
|
|
1089
1117
|
'user/role',
|
|
1118
|
+
'user/role/id',
|
|
1090
1119
|
'user/city',
|
|
1091
1120
|
'user/cities',
|
|
1092
1121
|
'users',
|
|
@@ -1139,6 +1168,7 @@ export const ServiceRoutes = Object.freeze(
|
|
|
1139
1168
|
'game',
|
|
1140
1169
|
'game/status',
|
|
1141
1170
|
'game/city',
|
|
1171
|
+
'game/registration',
|
|
1142
1172
|
'game/registrations',
|
|
1143
1173
|
'game/registrations/status',
|
|
1144
1174
|
'game/registrations/lineup',
|
package/source/entities/key.js
CHANGED
|
@@ -5,6 +5,7 @@ export const Routes = Object.freeze(
|
|
|
5
5
|
'user',
|
|
6
6
|
'user/password',
|
|
7
7
|
'user/role',
|
|
8
|
+
'user/role/id',
|
|
8
9
|
'user/city',
|
|
9
10
|
'user/cities',
|
|
10
11
|
'users',
|
|
@@ -43,6 +44,7 @@ export const Routes = Object.freeze(
|
|
|
43
44
|
'game',
|
|
44
45
|
'game/status',
|
|
45
46
|
'game/city',
|
|
47
|
+
'game/registration',
|
|
46
48
|
'game/registrations',
|
|
47
49
|
'game/registrations/status',
|
|
48
50
|
'game/registrations/lineup',
|
|
@@ -364,6 +364,15 @@ export const Segments = Object.freeze(
|
|
|
364
364
|
pattern: undefined,
|
|
365
365
|
}),
|
|
366
366
|
),
|
|
367
|
+
Object.freeze(
|
|
368
|
+
/** @type {const} */ ({
|
|
369
|
+
key: Key['id'],
|
|
370
|
+
cardinality: '1',
|
|
371
|
+
relation: undefined,
|
|
372
|
+
service: undefined,
|
|
373
|
+
pattern: undefined,
|
|
374
|
+
}),
|
|
375
|
+
),
|
|
367
376
|
]),
|
|
368
377
|
)
|
|
369
378
|
|