Files
dify/web/types/dataset.ts
T
7cafd65d54 refactor(web): migrate handwritten console API calls to the generated oRPC contract (#44169)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-16 03:47:31 +00:00

12 lines
388 B
TypeScript

export const segmentImportStatus = {
waiting: 'waiting',
processing: 'processing',
completed: 'completed',
error: 'error',
} as const
export type SegmentImportStatus = (typeof segmentImportStatus)[keyof typeof segmentImportStatus]
export const isSegmentImportStatus = (value: string): value is SegmentImportStatus =>
Object.values<string>(segmentImportStatus).includes(value)