feat: add grouped TechLog route contracts
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
export type RouteCodecId = "none" | "NotFoundSplat";
|
||||
export type RouteCodecId =
|
||||
| "none"
|
||||
| "NotFoundSplat"
|
||||
| "ReferenceResourceParams"
|
||||
| "ReferenceResourceListQuery"
|
||||
| "TechLogExploreKindParams"
|
||||
| "TechLogSlugParams"
|
||||
| "TechLogVersionParams"
|
||||
| "TechLogDocumentIdParams"
|
||||
| "TechLogPublicationEventIdParams"
|
||||
| "TechLogStudioSplat"
|
||||
| "TechLogHomeSearch"
|
||||
| "TechLogExploreSearch"
|
||||
| "TechLogExploreKindSearch"
|
||||
| "TechLogSearchQuery"
|
||||
| "TechLogCaseStateSearch";
|
||||
export type RouteRuntimeDefinition = Readonly<{
|
||||
routeId: string;
|
||||
moduleId: string;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
export type RouteLayoutGroup = "PUBLIC" | "STUDIO";
|
||||
|
||||
export type RouteDefinition = Readonly<{
|
||||
routeId: string;
|
||||
path: string;
|
||||
layoutGroup: RouteLayoutGroup;
|
||||
paramsSchema: string | null;
|
||||
searchSchema: string | null;
|
||||
access: "public" | "session-required";
|
||||
@@ -20,6 +23,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
APP_HOME: route({
|
||||
routeId: "APP_HOME",
|
||||
path: "/",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: null,
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
@@ -33,6 +37,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
EXAMPLES_PLATFORM: route({
|
||||
routeId: "EXAMPLES_PLATFORM",
|
||||
path: "/examples/platform",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: null,
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
@@ -46,6 +51,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
EXAMPLES_UI: route({
|
||||
routeId: "EXAMPLES_UI",
|
||||
path: "/examples/ui",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: null,
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
@@ -59,6 +65,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
EXAMPLES_STATES: route({
|
||||
routeId: "EXAMPLES_STATES",
|
||||
path: "/examples/states",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: null,
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
@@ -72,6 +79,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
EXAMPLES_AUTH: route({
|
||||
routeId: "EXAMPLES_AUTH",
|
||||
path: "/examples/auth",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: null,
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
@@ -85,6 +93,7 @@ export const PLATFORM_ROUTE_REGISTRY = Object.freeze({
|
||||
NOT_FOUND: route({
|
||||
routeId: "NOT_FOUND",
|
||||
path: "*",
|
||||
layoutGroup: "PUBLIC",
|
||||
paramsSchema: "NotFoundSplat",
|
||||
searchSchema: null,
|
||||
access: "public",
|
||||
|
||||
Reference in New Issue
Block a user