UNPKG

fauna-gql-upload

Version:

Manage your FaunaDB resources in within your project and upload them using a single command

78 lines (77 loc) 2.62 kB
import { Plugin } from "../types"; export interface IOptions { apiEndpointEnv: string; graphqlEndpointEnv: string; schemaPath?: string; schemaDir?: string; region?: "classic" | "eu" | "us" | "preview" | "local"; tsconfigPath?: string; mode?: "merge" | "override" | "replace"; envPath: string; secretEnv: string; fnsDir: string; rolesDir: string; indexesDir: string; dataDir: string; providersDir: string; codegen?: { typescript: boolean; operations: boolean; outputFile: string; headers: { [key: string]: string; }; documents: string[]; plugins: Plugin[]; pluginOptions: { [key: string]: string; }; } | null; } export declare const argv: { [x: string]: unknown; override: boolean | undefined; mode: string | undefined; yes: boolean | undefined; config: string | undefined; apiEndpointEnv: string | undefined; graphqlEndpointEnv: string | undefined; region: string | undefined; schemaPath: string | undefined; schemaDir: string | undefined; tsconfigPath: string | undefined; envPath: string | undefined; secretEnv: string | undefined; fnsDir: string | undefined; rolesDir: string | undefined; indexesDir: string | undefined; dataDir: string | undefined; providersDir: string | undefined; codegen: boolean | undefined; codegenDisableTypescript: boolean | undefined; codegenDisableOperations: boolean | undefined; codegenOutputFile: string | undefined; codegenHeaders: string | undefined; codegenDocuments: (string | number)[] | undefined; codegenPlugins: (string | number)[] | undefined; codegenPluginOptions: string | undefined; schema: boolean | undefined; data: boolean | undefined; functions: boolean | undefined; indexes: boolean | undefined; providers: boolean | undefined; roles: boolean | undefined; ignoreAll: boolean | undefined; _: (string | number)[]; $0: string; }; export declare const defaultSchema: string; export declare const defaultRolesDir: string; export declare const defaultFnsDir: string; export declare const defaultIndexesDir: string; export declare const defaultDataDir: string; export declare const defaultProvidersDir: string; export declare const defaultSecretEnv = "FGU_SECRET"; export declare const defaultApiEndpointEnv = "FGU_API_ENDPOINT"; export declare const defaultGraphqlEndpointEnv = "FGU_GRAPHQL_ENDPOINT"; export default function getConfig(verifyConfig?: boolean): IOptions;