Template
1
0

feat: spec to platform

This commit is contained in:
2025-09-19 18:58:02 +02:00
parent a140780ec3
commit 2433f59d1a
51 changed files with 267 additions and 253 deletions

View File

@@ -1,4 +1,4 @@
import { RoleSchema } from "@spec/schemas/account/role.ts";
import { RoleSchema } from "@platform/spec/account/role.ts";
import { PrincipalProvider } from "@valkyr/auth";
import { db } from "~stores/read-store/database.ts";

View File

@@ -1,4 +1,4 @@
import { ServerError } from "@spec/relay";
import { ServerError } from "@platform/relay";
import type { Level } from "../level.ts";
import { getTracedAt } from "../stack.ts";

View File

@@ -10,7 +10,7 @@ import {
type ServerErrorResponse,
UnauthorizedError,
ZodValidationError,
} from "@spec/relay";
} from "@platform/relay";
import { treeifyError } from "zod";
import { logger } from "~libraries/logger/mod.ts";

View File

@@ -1,4 +1,4 @@
import { ServerContext } from "@spec/relay";
import { ServerContext } from "@platform/relay";
import type { Sockets } from "~libraries/socket/sockets.ts";
@@ -7,7 +7,7 @@ import { Session } from "../auth/auth.ts";
import { Principal } from "../auth/principal.ts";
import { req } from "./request.ts";
declare module "@spec/relay" {
declare module "@platform/relay" {
interface ServerContext {
/**
* Current request instance being handled.

View File

@@ -1,4 +1,4 @@
import { Route } from "@spec/relay";
import { Route } from "@platform/relay";
/**
* Resolve and return all routes that has been created under any 'routes'

View File

@@ -1,4 +1,4 @@
import { InternalServerError, UnauthorizedError } from "@spec/relay";
import { InternalServerError, UnauthorizedError } from "@platform/relay";
import { Session } from "../auth/auth.ts";
import { storage } from "./storage.ts";