@shakerquiz/utilities 0.5.69 → 0.5.71
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
|
@@ -414,10 +414,6 @@ export var ServiceRoutes = {
|
|
|
414
414
|
Route['roles'],
|
|
415
415
|
],
|
|
416
416
|
|
|
417
|
-
[Service.Checkin]: [
|
|
418
|
-
Route['checkin'],
|
|
419
|
-
],
|
|
420
|
-
|
|
421
417
|
[Service.Locations]: [
|
|
422
418
|
Route['country'],
|
|
423
419
|
Route['countries'],
|
|
@@ -481,11 +477,21 @@ export var ServiceRoutes = {
|
|
|
481
477
|
Route['registrations/export'],
|
|
482
478
|
],
|
|
483
479
|
|
|
480
|
+
[Service.Checkin]: [
|
|
481
|
+
Route['checkin'],
|
|
482
|
+
],
|
|
483
|
+
|
|
484
484
|
[Service.Procedures]: [],
|
|
485
485
|
|
|
486
486
|
[Service.Integrations]: [],
|
|
487
487
|
|
|
488
488
|
[Service.Updates]: [],
|
|
489
|
+
|
|
490
|
+
[Service.Hub]: [],
|
|
491
|
+
|
|
492
|
+
[Service.Landing]: [],
|
|
493
|
+
|
|
494
|
+
[Service.Vkma]: [],
|
|
489
495
|
}
|
|
490
496
|
|
|
491
497
|
/**
|
|
@@ -540,7 +546,7 @@ export var getPluralSingularRouteRelation = value => {
|
|
|
540
546
|
/**
|
|
541
547
|
* @param {keyof Route} value
|
|
542
548
|
*/
|
|
543
|
-
export var
|
|
549
|
+
export var getRoutePathname = value => {
|
|
544
550
|
var route = getRoute(value)
|
|
545
551
|
|
|
546
552
|
if (!(route in RoutePathname))
|
|
@@ -563,7 +569,7 @@ export var getRoutePathnamePattern = value => {
|
|
|
563
569
|
|
|
564
570
|
export var hydrateRoutePathname = (value, parameters) => {
|
|
565
571
|
var route = getRoute(value)
|
|
566
|
-
var pathname =
|
|
572
|
+
var pathname = getRoutePathname(route)
|
|
567
573
|
var params = getRouteParams(route)
|
|
568
574
|
|
|
569
575
|
return params.reduce(
|