UNPKG

postgraphile-plugin-connection-filter

Version:
25 lines (24 loc) 4.59 kB
import type { PgCodec, PgRegistry, PgResource, PgResourceParameter } from "@dataplan/pg"; import type { GraphileBuild } from "graphile-build"; export declare function isComputedScalarAttributeResource(s: PgResource<any, any, any, any, any>): s is PgResource<string, PgCodec, never[], PgResourceParameter[], PgRegistry>; export declare function getComputedAttributeResources(build: GraphileBuild.Build, source: PgResource): PgResource<string, PgCodec<string, { [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; } | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, never[], PgResourceParameter<string | null, PgCodec<string, { [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; } | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>>[], PgRegistry<Record<string, PgCodec<string, { [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; } | undefined, any, any, any, any, any>>, Record<string, import("@dataplan/pg").PgResourceOptions<string, import("@dataplan/pg").PgCodecWithAttributes<{ [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; }>, readonly import("@dataplan/pg").PgResourceUnique<{ [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; }>[], readonly PgResourceParameter<string | null, PgCodec<string, { [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; } | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>>[] | undefined>>, Record<string, Record<string, import("@dataplan/pg").PgCodecRelationConfig<PgCodec<string, { [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; }, any, any, undefined, any, undefined>, import("@dataplan/pg").PgResourceOptions<any, import("@dataplan/pg").PgCodecWithAttributes<{ [x: string]: import("@dataplan/pg").PgCodecAttribute<PgCodec<string, /*elided*/ any | undefined, any, any, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, any, any, any, any, any, any> | undefined, PgCodec<string, undefined, any, any, undefined, any, undefined> | undefined>, boolean>; }>, any, any>>>>, { [executorName: string]: import("@dataplan/pg").PgExecutor<any, any>; }>>[]; export declare function makeAssertAllowed(build: GraphileBuild.Build): (value: unknown, mode: "list" | "object" | "scalar") => void; export declare function isEmpty(o: unknown): o is Record<string, never>;