feat: implement create dataset pipeline forms and modals

This commit is contained in:
twwu
2025-05-14 10:48:54 +08:00
parent cfb6d59513
commit de0cb06f8c
11 changed files with 344 additions and 146 deletions

View File

@ -1,13 +1,14 @@
import type { InputVar, InputVarType } from '@/app/components/workflow/types'
import type { DSLImportMode, DSLImportStatus } from './app'
import type { ChunkingMode, IconInfo } from './datasets'
import type { ChunkingMode, DatasetPermission, IconInfo } from './datasets'
import type { Dependency } from '@/app/components/plugins/types'
import type { AppIconSelection } from '@/app/components/base/app-icon-picker'
export type PipelineTemplateListParams = {
type: 'built-in' | 'customized'
}
export type PipelineTemple = {
export type PipelineTemplate = {
id: string
name: string
icon_info: IconInfo
@ -17,7 +18,7 @@ export type PipelineTemple = {
}
export type PipelineTemplateListResponse = {
pipelines: PipelineTemple[]
pipelines: PipelineTemplate[]
}
export type PipelineTemplateByIdResponse = {
@ -29,6 +30,14 @@ export type PipelineTemplateByIdResponse = {
export_data: string
}
export type CreateFormData = {
name: string
appIcon: AppIconSelection
description: string
permission: DatasetPermission
selectedMemberIDs: string[]
}
export type UpdatePipelineInfoRequest = {
pipeline_id: string
name: string