Constants.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import { KeyValuePair } from '../../types/Common';
  2. import { DataTypeEnum, ConsistencyLevelEnum } from './Types';
  3. export const CONSISTENCY_LEVEL_OPTIONS: KeyValuePair[] = [
  4. {
  5. label: 'Strong',
  6. value: ConsistencyLevelEnum.Strong,
  7. },
  8. {
  9. label: 'Session',
  10. value: ConsistencyLevelEnum.Session,
  11. },
  12. {
  13. label: 'Bounded',
  14. value: ConsistencyLevelEnum.Bounded,
  15. },
  16. {
  17. label: 'Eventually',
  18. value: ConsistencyLevelEnum.Eventually,
  19. },
  20. {
  21. label: 'Customized',
  22. value: ConsistencyLevelEnum.Customized,
  23. },
  24. ];
  25. export const VECTOR_FIELDS_OPTIONS: KeyValuePair[] = [
  26. {
  27. label: 'Binary Vector',
  28. value: DataTypeEnum.BinaryVector,
  29. },
  30. {
  31. label: 'Float Vector',
  32. value: DataTypeEnum.FloatVector,
  33. },
  34. ];
  35. export const ALL_OPTIONS: KeyValuePair[] = [
  36. // ...VECTOR_FIELDS_OPTIONS,
  37. {
  38. label: 'Int8',
  39. value: DataTypeEnum.Int8,
  40. },
  41. {
  42. label: 'Int16',
  43. value: DataTypeEnum.Int16,
  44. },
  45. {
  46. label: 'Int32',
  47. value: DataTypeEnum.Int32,
  48. },
  49. {
  50. label: 'Int64',
  51. value: DataTypeEnum.Int64,
  52. },
  53. {
  54. label: 'Float',
  55. value: DataTypeEnum.Float,
  56. },
  57. {
  58. label: 'Double',
  59. value: DataTypeEnum.Double,
  60. },
  61. {
  62. label: 'Boolean',
  63. value: DataTypeEnum.Bool,
  64. },
  65. {
  66. label: 'VarChar',
  67. value: DataTypeEnum.VarChar,
  68. },
  69. ];
  70. export const AUTO_ID_OPTIONS: KeyValuePair[] = [
  71. {
  72. label: 'On',
  73. value: 'true',
  74. },
  75. {
  76. label: 'Off',
  77. value: 'false',
  78. },
  79. ];
  80. export const PRIMARY_FIELDS_OPTIONS: KeyValuePair[] = [
  81. {
  82. label: 'INT64',
  83. value: DataTypeEnum.Int64,
  84. },
  85. {
  86. label: 'VARCHAR',
  87. value: DataTypeEnum.VarChar,
  88. },
  89. ];