@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
32 lines (31 loc) • 1.2 kB
TypeScript
export declare let AIRPLANE_API_HOST: string;
export declare let AIRPLANE_TOKEN: string;
export declare let AIRPLANE_API_KEY: string;
export declare let AIRPLANE_VIEW_TOKEN: any;
export declare let AIRPLANE_ENV_SLUG: string;
export declare let AIRPLANE_WEB_HOST: any;
export declare let AIRPLANE_TUNNEL_TOKEN: any;
export declare let AIRPLANE_SANDBOX_TOKEN: any;
export declare let AIRPLANE_API_HEADERS: any;
export declare let AIRPLANE_USE_SELF_HOSTED_INPUTS: boolean;
type AdditionalEnvVars = {
AIRPLANE_TUNNEL_TOKEN?: string;
AIRPLANE_SANDBOX_TOKEN?: string;
AIRPLANE_API_HEADERS?: string;
AIRPLANE_VIEW_TOKEN?: string;
AIRPLANE_USE_SELF_HOSTED_INPUTS?: string;
};
export declare const setEnvVars: (apiHost: string, token: string, apiKey: string, envSlug: string, additionalEnvVars?: AdditionalEnvVars) => void;
export declare const getExecuteOptions: (source: "query" | "mutation", allowCachedMaxAge?: number) => {
host: string;
token: string;
apiKey: string | undefined;
envSlug: string;
source: string;
headers: {
"X-Airplane-View-Token": any;
};
useSelfHostedInputs: boolean;
allowCachedMaxAge: number | undefined;
};
export {};