builders.ts 1.6 KB

1234567891011121314151617181920212223
  1. import { initialAdHocVariableModelState } from '../../adhoc/reducer';
  2. import { initialConstantVariableModelState } from '../../constant/reducer';
  3. import { initialCustomVariableModelState } from '../../custom/reducer';
  4. import { initialDataSourceVariableModelState } from '../../datasource/reducer';
  5. import { initialIntervalVariableModelState } from '../../interval/reducer';
  6. import { initialQueryVariableModelState } from '../../query/reducer';
  7. import { initialTextBoxVariableModelState } from '../../textbox/reducer';
  8. import { AdHocVariableBuilder } from './adHocVariableBuilder';
  9. import { DatasourceVariableBuilder } from './datasourceVariableBuilder';
  10. import { IntervalVariableBuilder } from './intervalVariableBuilder';
  11. import { MultiVariableBuilder } from './multiVariableBuilder';
  12. import { OptionsVariableBuilder } from './optionsVariableBuilder';
  13. import { QueryVariableBuilder } from './queryVariableBuilder';
  14. import { TextBoxVariableBuilder } from './textboxVariableBuilder';
  15. export const adHocBuilder = () => new AdHocVariableBuilder(initialAdHocVariableModelState);
  16. export const intervalBuilder = () => new IntervalVariableBuilder(initialIntervalVariableModelState);
  17. export const datasourceBuilder = () => new DatasourceVariableBuilder(initialDataSourceVariableModelState);
  18. export const queryBuilder = () => new QueryVariableBuilder(initialQueryVariableModelState);
  19. export const textboxBuilder = () => new TextBoxVariableBuilder(initialTextBoxVariableModelState);
  20. export const customBuilder = () => new MultiVariableBuilder(initialCustomVariableModelState);
  21. export const constantBuilder = () => new OptionsVariableBuilder(initialConstantVariableModelState);