mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
feat: enhance OnlineDocumentPreview with datasourceNodeId and implement preview functionality
This commit is contained in:
@ -6,8 +6,6 @@ import type {
|
||||
DatasetListRequest,
|
||||
IndexingStatusBatchRequest,
|
||||
IndexingStatusBatchResponse,
|
||||
NotionPagePreviewRequest,
|
||||
NotionPagePreviewResponse,
|
||||
ProcessRuleResponse,
|
||||
RelatedAppResponse,
|
||||
} from '@/models/datasets'
|
||||
@ -57,16 +55,6 @@ export const useDatasetRelatedApps = (datasetId: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
export const usePreviewNotionPage = (params: NotionPagePreviewRequest) => {
|
||||
const { workspaceID, pageID, pageType } = params
|
||||
return useQuery({
|
||||
queryKey: [NAME_SPACE, 'preview-notion-page'],
|
||||
queryFn: () => get<NotionPagePreviewResponse>(`notion/workspaces/${workspaceID}/pages/${pageID}/${pageType}/preview`),
|
||||
enabled: !!workspaceID && !!pageID && !!pageType,
|
||||
staleTime: 0,
|
||||
})
|
||||
}
|
||||
|
||||
export const useIndexingStatusBatch = (
|
||||
params: IndexingStatusBatchRequest,
|
||||
mutationOptions: MutationOptions<IndexingStatusBatchResponse, Error> = {},
|
||||
|
||||
Reference in New Issue
Block a user