/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * The Lenra application manifest */ export interface Manifest { lenra?: Exposer; json?: Exposer1; } /** * The Lenra exposer definition of the application */ export interface Exposer { /** * The exposer API version */ version?: string; /** * The routes of the application for this exposer */ routes: Route[]; } export interface Route { path: string; view: View; /** * The roles that can access this route */ roles?: string[]; } /** * Element of type view */ export interface View { /** * The identifier of the component */ _type: "view"; /** * The name of the view */ name: string; props?: Props; find?: Find; /** * The context projection. This field represents the projection of the context, allowing selective retrieval of specific elements. It is a map that specifies the desired elements to be included in the projection. */ context?: { [k: string]: unknown; }; } /** * Parameters passed to the listener */ export interface Props { [k: string]: unknown; } /** * Find query for view components */ export interface Find { /** * the collection where the query is applied */ coll: string; query: Query; projection?: Projection; options?: Options; } /** * Mongo data query */ export interface Query { [k: string]: unknown; } /** * Mongo data query projection */ export interface Projection { [k: string]: unknown; } /** * Mongo data query options */ export interface Options { limit?: number; skip?: number; sort?: { [k: string]: unknown; }; } /** * The JSON exposer definition of the application */ export interface Exposer1 { /** * The exposer API version */ version?: string; /** * The routes of the application for this exposer */ routes: Route[]; }