You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pipeline.tsx 936B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import type { CredentialTypeEnum } from '@/app/components/plugins/plugin-auth'
  2. export type DataSourceNodeProcessingResponse = {
  3. event: 'datasource_processing'
  4. total: number
  5. completed: number
  6. }
  7. export type DataSourceNodeError = {
  8. event: 'datasource_error'
  9. message: string
  10. code?: string
  11. }
  12. export type OnlineDriveFile = {
  13. id: string
  14. name: string
  15. size: number
  16. type: 'file' | 'folder'
  17. }
  18. export type OnlineDriveData = {
  19. bucket: string
  20. files: OnlineDriveFile[]
  21. is_truncated: boolean
  22. next_page_parameters: Record<string, any>
  23. }
  24. export type DataSourceNodeCompletedResponse = {
  25. event: 'datasource_completed'
  26. data: any
  27. time_consuming: number
  28. }
  29. export type DataSourceNodeErrorResponse = {
  30. event: 'datasource_error'
  31. error: string
  32. }
  33. export type DataSourceCredential = {
  34. avatar_url?: string
  35. credential: Record<string, any>
  36. id: string
  37. is_default: boolean
  38. name: string
  39. type: CredentialTypeEnum
  40. }