mirror of https://github.com/langgenius/dify.git
feat: Add original_document_id to pipeline settings and update API key mutation paths
This commit is contained in:
parent
7d8164ab4c
commit
11576932c9
|
|
@ -126,6 +126,7 @@ const PipelineSettings = ({
|
|||
start_node_id: lastRunData.datasource_node_id,
|
||||
datasource_type: lastRunData.datasource_type,
|
||||
datasource_info_list: datasourceInfoList,
|
||||
original_document_id: documentId,
|
||||
is_preview: false,
|
||||
}, {
|
||||
onSuccess: () => {
|
||||
|
|
|
|||
|
|
@ -203,6 +203,7 @@ export type PublishedPipelineRunRequest = {
|
|||
start_node_id: string
|
||||
datasource_type: DatasourceType
|
||||
datasource_info_list: Array<Record<string, any>>
|
||||
original_document_id?: string
|
||||
is_preview: boolean
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,13 +87,13 @@ export const useDatasetApiBaseUrl = () => {
|
|||
export const useEnableDatasetServiceApi = () => {
|
||||
return useMutation({
|
||||
mutationKey: [NAME_SPACE, 'enable-api'],
|
||||
mutationFn: (datasetId: string) => post<CommonResponse>(`/datasets/${datasetId}/enable`),
|
||||
mutationFn: (datasetId: string) => post<CommonResponse>(`/datasets/${datasetId}/api-keys/enable`),
|
||||
})
|
||||
}
|
||||
|
||||
export const useDisableDatasetServiceApi = () => {
|
||||
return useMutation({
|
||||
mutationKey: [NAME_SPACE, 'disable-api'],
|
||||
mutationFn: (datasetId: string) => post<CommonResponse>(`/datasets/${datasetId}/disable`),
|
||||
mutationFn: (datasetId: string) => post<CommonResponse>(`/datasets/${datasetId}/api-keys/disable`),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue