@shakerquiz/utilities 0.5.167 → 0.5.169
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 +39 -0
- package/source/index.js +1 -0
package/package.json
CHANGED
|
@@ -305,6 +305,42 @@ export const RouteKind = Object.freeze({
|
|
|
305
305
|
[Route['venues/city']]: Kind['Composite'],
|
|
306
306
|
})
|
|
307
307
|
|
|
308
|
+
export const CompositeRouteField = Object.freeze({
|
|
309
|
+
[Route['cities/country']]: 'country',
|
|
310
|
+
[Route['cities/currency']]: 'currency',
|
|
311
|
+
[Route['cities/timezone']]: 'timezone',
|
|
312
|
+
[Route['cities/venues']]: 'venues',
|
|
313
|
+
[Route['city/country']]: 'country',
|
|
314
|
+
[Route['city/currency']]: 'currency',
|
|
315
|
+
[Route['city/timezone']]: 'timezone',
|
|
316
|
+
[Route['city/venues']]: 'venues',
|
|
317
|
+
[Route['game/city']]: 'city',
|
|
318
|
+
[Route['game/registrations']]: 'registrations',
|
|
319
|
+
[Route['game/summary']]: 'summary',
|
|
320
|
+
[Route['game/theme']]: 'theme',
|
|
321
|
+
[Route['game/venue']]: 'venue',
|
|
322
|
+
[Route['games/city']]: 'city',
|
|
323
|
+
[Route['games/registrations']]: 'registrations',
|
|
324
|
+
[Route['games/summary']]: 'summary',
|
|
325
|
+
[Route['games/theme']]: 'theme',
|
|
326
|
+
[Route['games/venue']]: 'venue',
|
|
327
|
+
[Route['registration/cancellation']]: 'cancellation',
|
|
328
|
+
[Route['registration/channel']]: 'channel',
|
|
329
|
+
[Route['registration/confirmation']]: 'confirmation',
|
|
330
|
+
[Route['registration/game']]: 'game',
|
|
331
|
+
[Route['registration/mailing']]: 'mailing',
|
|
332
|
+
[Route['theme/cover']]: 'cover',
|
|
333
|
+
[Route['themes/cover']]: 'cover',
|
|
334
|
+
[Route['user/cities']]: 'cities',
|
|
335
|
+
[Route['user/password']]: 'password',
|
|
336
|
+
[Route['user/role']]: 'role',
|
|
337
|
+
[Route['users/cities']]: 'cities',
|
|
338
|
+
[Route['users/password']]: 'password',
|
|
339
|
+
[Route['users/role']]: 'role',
|
|
340
|
+
[Route['venue/city']]: 'city',
|
|
341
|
+
[Route['venues/city']]: 'city',
|
|
342
|
+
})
|
|
343
|
+
|
|
308
344
|
export const RouteParams = Object.freeze({
|
|
309
345
|
[Route['checkin']]: [],
|
|
310
346
|
[Route['checkins']]: [],
|
|
@@ -537,6 +573,9 @@ export const inferRoutePathname = x => RoutePathname[x] ?? 'Unknown'
|
|
|
537
573
|
/** @returns {keyof typeof RouteKind | 'Unknown'} */
|
|
538
574
|
export const inferRouteKind = x => RouteKind[x] ?? 'Unknown'
|
|
539
575
|
|
|
576
|
+
/** @returns {keyof typeof CompositeRouteField | 'Unknown'} */
|
|
577
|
+
export const inferCompositeRouteField = x => CompositeRouteField[x] ?? 'Unknown'
|
|
578
|
+
|
|
540
579
|
/** @returns {keyof typeof RouteParams | 'Unknown'} */
|
|
541
580
|
export const inferRouteParams = x => RouteParams[x] ?? 'Unknown'
|
|
542
581
|
|
package/source/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './enumerations/constants.js'
|
|
|
3
3
|
export * from './enumerations/display.js'
|
|
4
4
|
export * from './enumerations/gender.js'
|
|
5
5
|
export * from './enumerations/icon.js'
|
|
6
|
+
export * from './enumerations/kind.js'
|
|
6
7
|
export * from './enumerations/method.js'
|
|
7
8
|
export * from './enumerations/mode.js'
|
|
8
9
|
export * from './enumerations/network.js'
|