mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(editor): Add functionality to create folders (#13473)
This commit is contained in:
committed by
GitHub
parent
f381a24145
commit
2cb9d9e29f
@@ -58,6 +58,7 @@ import type {
|
||||
import type { BulkCommand, Undoable } from '@/models/history';
|
||||
|
||||
import type { ProjectSharingData } from '@/types/projects.types';
|
||||
import type { PathItem } from '@n8n/design-system/components/N8nBreadcrumbs/Breadcrumbs.vue';
|
||||
|
||||
export * from '@n8n/design-system/types';
|
||||
|
||||
@@ -243,6 +244,7 @@ export interface IWorkflowDataUpdate {
|
||||
|
||||
export interface IWorkflowDataCreate extends IWorkflowDataUpdate {
|
||||
projectId?: string;
|
||||
parentFolderId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -333,6 +335,7 @@ export type WorkflowListItem = Omit<
|
||||
export type FolderShortInfo = {
|
||||
id: string;
|
||||
name: string;
|
||||
parentFolder?: string;
|
||||
};
|
||||
|
||||
export type BaseFolderItem = BaseResource & {
|
||||
@@ -349,8 +352,21 @@ export interface FolderListItem extends BaseFolderItem {
|
||||
resource: 'folder';
|
||||
}
|
||||
|
||||
export type FolderPathItem = PathItem & { parentFolder?: string };
|
||||
|
||||
export type WorkflowListResource = WorkflowListItem | FolderListItem;
|
||||
|
||||
export type FolderCreateResponse = Omit<
|
||||
FolderListItem,
|
||||
'workflowCount' | 'tags' | 'sharedWithProjects' | 'homeProject'
|
||||
>;
|
||||
|
||||
export type FolderTreeResponseItem = {
|
||||
id: string;
|
||||
name: string;
|
||||
children: FolderTreeResponseItem[];
|
||||
};
|
||||
|
||||
// Identical to cli.Interfaces.ts
|
||||
export interface IWorkflowShortResponse {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user