@shakerquiz/utilities 0.5.209 → 0.5.210
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 +1 -1
- package/source/enumerations/route.js +10 -0
package/package.json
CHANGED
|
@@ -167,6 +167,11 @@ export const RouteRelation = Object.freeze({
|
|
|
167
167
|
[Route['venues/city']]: Route['venue/city'],
|
|
168
168
|
})
|
|
169
169
|
|
|
170
|
+
export const RouteItems = Object.freeze({
|
|
171
|
+
[Route['user/role']]: Route['roles'],
|
|
172
|
+
[Route['user/city']]: Route['cities'],
|
|
173
|
+
})
|
|
174
|
+
|
|
170
175
|
export const RoutePathname = Object.freeze({
|
|
171
176
|
[Route['checkin']]: 'checkin',
|
|
172
177
|
[Route['cities']]: 'cities',
|
|
@@ -484,6 +489,11 @@ export const inferRouteRelation = Object.freeze(
|
|
|
484
489
|
x => RouteRelation[x] ?? 'Unknown',
|
|
485
490
|
)
|
|
486
491
|
|
|
492
|
+
export const inferRouteItems = Object.freeze(
|
|
493
|
+
/** @returns {typeof RouteItems[keyof typeof RouteItems] | 'Unknown'} */
|
|
494
|
+
x => RouteItems[x] ?? 'Unknown',
|
|
495
|
+
)
|
|
496
|
+
|
|
487
497
|
export const inferRoutePathname = Object.freeze(
|
|
488
498
|
/** @returns {typeof RoutePathname[keyof typeof RoutePathname] | 'Unknown'} */
|
|
489
499
|
x => RoutePathname[x] ?? 'Unknown',
|