import * as IShared from '../../../shared/interface'; import { QueryParameter } from '../../../shared/entities/stock'; export type Entity = QueryParameter; export declare const Route = "query_parameter"; export declare const UpperName = "QueryParameter"; export declare const LowerName: string; export declare const QueryParameterDatatypeEnum: { boolean: 'boolean'; decimal: 'decimal'; integer: 'integer'; text: 'text'; date: 'date'; month: 'month'; idnr: 'idnr'; link: 'link'; user: 'user'; hidden: 'hidden'; }; export type IQueryParameterDatatype = (typeof QueryParameterDatatypeEnum)[keyof typeof QueryParameterDatatypeEnum]; export declare const queryParametersDatatypes: string[]; export interface ICreateRequest { label: string; accessor: string; datatype: IQueryParameterDatatype; suffix: string | null; preffix: string | null; input: boolean; width: number | null; output: boolean; query_id: string; } export interface IUpdateRequest { label?: string; accessor?: string; width?: number; datatype?: IQueryParameterDatatype; suffix?: string | null; preffix?: string | null; input?: boolean; output?: boolean; } export type IFindByOwnerIdResponse = Entity; export interface IRepository { find(): Promise; findById(selector: IShared.IFindByIdRequest): Promise; create(data: ICreateRequest): Promise; update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise; deleteOne(selector: IShared.IFindByIdRequest): Promise; findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise; } export type IController = IShared.IEntityWithUserToken;