File - Migrate core pictures (workspace and member logo) + workflow attachments (#17924)

- Create a common file-by-id download controller
- Create core picture module with resolver and logic to handle
workspaceLogo and workspaceMemberProfilePicture update
- Create workflow file module (same)
- Data migration
This commit is contained in:
Etienne
2026-02-17 16:42:50 +01:00
committed by GitHub
parent 963f2de864
commit 163c1175cb
85 changed files with 2212 additions and 335 deletions
@@ -9,3 +9,4 @@ export * from './types';
export * from './utils';
export * from './workflow';
export * from './workspace';
@@ -1,9 +1,10 @@
export enum FileFolder {
ProfilePicture = 'profile-picture',
WorkspaceLogo = 'workspace-logo',
Attachment = 'attachment',
PersonPicture = 'person-picture',
File = 'file',
ProfilePicture = 'profile-picture', // replaced by core-picture
WorkspaceLogo = 'workspace-logo', // replaced by core-picture
Attachment = 'attachment', // replaced by files-field
PersonPicture = 'person-picture', // replaced by files-field
CorePicture = 'core-picture',
File = 'file', // removed
AgentChat = 'agent-chat',
BuiltLogicFunction = 'built-logic-function',
BuiltFrontComponent = 'built-front-component',
@@ -11,4 +12,5 @@ export enum FileFolder {
Source = 'source',
FilesField = 'files-field',
Dependencies = 'dependencies',
Workflow = 'workflow',
}
@@ -74,6 +74,7 @@ export type {
InputSchema,
} from './types/InputSchema';
export type { StepIfElseBranch } from './types/StepIfElseBranch';
export type { WorkflowAttachment } from './types/WorkflowAttachment';
export type { BodyType } from './types/workflowHttpRequestStep';
export type {
WorkflowRunStepInfo,
@@ -0,0 +1,7 @@
export type WorkflowAttachment = {
id: string;
name: string;
size: number;
type: string;
createdAt: string;
};