type ArrayOfProperties = Exclude[]; type WildCard = { $?: boolean; $$?: boolean; }; type CleanResultItem = Omit; export type ProjectionAdvanced = { [P in keyof CleanResultItem]?: boolean | WildCard | ProjectionAdvanced; }; export type Projection = WildCard | ProjectionAdvanced; export type SortDirection = 'ASC' | 'DESC'; export type SortingProjection = { attributes: ArrayOfProperties; order: SortDirection[]; script?: { key: string; options: any; }; }; export {};