/** * 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 request */ export type AppRequest = ViewRequest | ListenerRequest | ResourceRequest; /** * The JSON exposer definition of the application */ export type FindResult = { [k: string]: unknown; }[]; /** * The Lenra application view request */ export interface ViewRequest { /** * The requested view name */ view: string; data?: FindResult; props?: Props; /** * The context of current the view rendering */ context?: { [k: string]: unknown; }; } /** * Parameters passed to the listener */ export interface Props { [k: string]: unknown; } /** * The Lenra application view request */ export interface ListenerRequest { /** * The requested listener name */ listener: string; props?: Props; /** * The event that triggered the listener */ event?: { [k: string]: unknown; }; api: ApiInformations; } /** * The internal API informations */ export interface ApiInformations { /** * The URL of the internal API */ url: string; /** * The token to use to authenticate the request */ token: string; } /** * The Lenra application resource request */ export interface ResourceRequest { /** * The requested resource identifier (could be a name, a path or whatever you want to use as identifier) */ resource: string; }