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.

constants.ts 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { VarType } from '@/app/components/workflow/types'
  2. export const COMMON_OUTPUT = [
  3. {
  4. name: 'datasource_type',
  5. type: VarType.string,
  6. description: 'local_file, online_document, website_crawl',
  7. },
  8. ]
  9. export const LOCAL_FILE_OUTPUT = [
  10. {
  11. name: 'file',
  12. type: VarType.file,
  13. description: 'file',
  14. subItems: [
  15. {
  16. name: 'name',
  17. type: VarType.string,
  18. description: 'file name',
  19. },
  20. {
  21. name: 'size',
  22. type: VarType.number,
  23. description: 'file size',
  24. },
  25. {
  26. name: 'type',
  27. type: VarType.string,
  28. description: 'file type',
  29. },
  30. {
  31. name: 'extension',
  32. type: VarType.string,
  33. description: 'file extension',
  34. },
  35. {
  36. name: 'mime_type',
  37. type: VarType.string,
  38. description: 'file mime type',
  39. },
  40. {
  41. name: 'transfer_method',
  42. type: VarType.string,
  43. description: 'file transfer method',
  44. },
  45. {
  46. name: 'url',
  47. type: VarType.string,
  48. description: 'file url',
  49. },
  50. {
  51. name: 'related_id',
  52. type: VarType.string,
  53. description: 'file related id',
  54. },
  55. ],
  56. },
  57. ]