export interface MetaDataProp { type: string; description?: string; isArray?: boolean; isAdminOnly?: boolean; sourceField?: string; values?: any[]; // if the type is ENUM, the possible values should go here, and this can either be an array of literals or an indirection } export interface MetaData { [key: string]: MetaDataProp; } export interface SearchSchema { id?: string; properties: MetaData; }