import { UserInterface, DataType } from "@sankhyalabs/core";
import { IOption } from '@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box';
export interface IParameter {
  entityName: string;
  fieldName: string;
  label?: string;
  name?: string;
  type?: string;
  dataType: DataType;
  description: string;
  userInterface: UserInterface;
  searchContext: ISearchContext;
  value?: any;
  props?: {
    precision?: number;
    expression: string;
    personalizedFilter: {
      parameters: Array<{
        dataType: string;
        label: string;
        name: string;
        type: string;
      }>;
    };
  };
  options?: Array<IOption>;
}
export interface ISearchContext {
  entity: string;
  entityDescription: string;
  searchOptions: ISearchOptions;
}
export interface ISearchOptions {
  codeFieldName?: string;
  descriptionFieldName?: string;
  rootEntity?: string;
  showInactives?: string;
}
