diff --git a/backend/src/lib/errors.ts b/backend/src/lib/errors.ts deleted file mode 100644 index 4f53073..0000000 --- a/backend/src/lib/errors.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { - ServiceError, - BadRequestError, - UnauthorizedError, - ForbiddenError, - NotFoundError, - ConflictError, - TooManyRequestsError, -} from '@bytelyst/errors'; diff --git a/backend/src/lib/request-context.ts b/backend/src/lib/request-context.ts index 4d13445..f556bc9 100644 --- a/backend/src/lib/request-context.ts +++ b/backend/src/lib/request-context.ts @@ -1,5 +1,5 @@ import type { FastifyRequest } from 'fastify'; -import { BadRequestError } from './errors.js'; +import { BadRequestError } from '@bytelyst/errors'; import { PRODUCT_ID } from './product-config.js'; export interface JwtPayload { diff --git a/backend/src/modules/note-agent-actions/routes.ts b/backend/src/modules/note-agent-actions/routes.ts index 177a7c1..e48bf16 100644 --- a/backend/src/modules/note-agent-actions/routes.ts +++ b/backend/src/modules/note-agent-actions/routes.ts @@ -1,5 +1,5 @@ import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js'; diff --git a/backend/src/modules/note-artifacts/routes.ts b/backend/src/modules/note-artifacts/routes.ts index 606ee29..d78f025 100644 --- a/backend/src/modules/note-artifacts/routes.ts +++ b/backend/src/modules/note-artifacts/routes.ts @@ -1,5 +1,5 @@ import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js'; diff --git a/backend/src/modules/note-relationships/routes.ts b/backend/src/modules/note-relationships/routes.ts index f9bb3ec..0024a08 100644 --- a/backend/src/modules/note-relationships/routes.ts +++ b/backend/src/modules/note-relationships/routes.ts @@ -1,5 +1,5 @@ import type { FastifyInstance } from 'fastify'; -import { BadRequestError } from '../../lib/errors.js'; +import { BadRequestError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js'; diff --git a/backend/src/modules/note-tasks/routes.ts b/backend/src/modules/note-tasks/routes.ts index 12b68b9..b7e1e57 100644 --- a/backend/src/modules/note-tasks/routes.ts +++ b/backend/src/modules/note-tasks/routes.ts @@ -1,5 +1,5 @@ import type { FastifyApp } from '@bytelyst/fastify-core'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js'; diff --git a/backend/src/modules/notes/routes.ts b/backend/src/modules/notes/routes.ts index ccb2240..e1e4c4e 100644 --- a/backend/src/modules/notes/routes.ts +++ b/backend/src/modules/notes/routes.ts @@ -1,5 +1,5 @@ import type { FastifyApp } from '@bytelyst/fastify-core'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import { extractFromText } from '../../lib/extraction-client.js'; diff --git a/backend/src/modules/saved-views/routes.ts b/backend/src/modules/saved-views/routes.ts index 12542a0..94c42a7 100644 --- a/backend/src/modules/saved-views/routes.ts +++ b/backend/src/modules/saved-views/routes.ts @@ -1,5 +1,5 @@ import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js'; diff --git a/backend/src/modules/workspaces/routes.ts b/backend/src/modules/workspaces/routes.ts index db19c7b..caf9dc2 100644 --- a/backend/src/modules/workspaces/routes.ts +++ b/backend/src/modules/workspaces/routes.ts @@ -1,5 +1,5 @@ import type { FastifyInstance } from 'fastify'; -import { BadRequestError, NotFoundError } from '../../lib/errors.js'; +import { BadRequestError, NotFoundError } from '@bytelyst/errors'; import { extractAuth } from '../../lib/auth.js'; import { PRODUCT_ID } from '../../lib/product-config.js'; import * as repo from './repository.js';