refactor(core): Move interrelated entities to @n8n/db (#15050)

This commit is contained in:
Iván Ovejero
2025-05-02 12:19:32 +02:00
committed by GitHub
parent 88afd66471
commit 20834abb56
270 changed files with 699 additions and 566 deletions

View File

@@ -1,5 +1,5 @@
import type { ProjectIcon, ProjectRole, ProjectType } from '@n8n/api-types';
import type { Variables } from '@n8n/db';
import type { Variables, Project, User, ListQueryDb } from '@n8n/db';
import type { AssignableRole, GlobalRole, Scope } from '@n8n/permissions';
import type express from 'express';
import type {
@@ -8,12 +8,8 @@ import type {
IPersonalizationSurveyAnswersV4,
} from 'n8n-workflow';
import type { Project } from '@/databases/entities/project';
import type { User } from '@/databases/entities/user';
import type { WorkflowHistory } from '@/databases/entities/workflow-history';
import type { ListQueryDb } from './types-db';
export type APIRequest<
RouteParams = {},
ResponseBody = {},
@@ -298,7 +294,7 @@ export declare namespace ProjectRequest {
type ProjectWithRelations = {
id: string;
name: string | undefined;
icon: ProjectIcon;
icon: ProjectIcon | null;
type: ProjectType;
relations: ProjectRelationResponse[];
scopes: Scope[];