postgraphile-plugin-connection-filter
Version:
Filtering on PostGraphile connections
25 lines (24 loc) • 4.59 kB
TypeScript
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("/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("/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("/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("/pg").PgResourceOptions<string, import("/pg").PgCodecWithAttributes<{
[x: string]: import("/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("/pg").PgResourceUnique<{
[x: string]: import("/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("/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("/pg").PgCodecRelationConfig<PgCodec<string, {
[x: string]: import("/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("/pg").PgResourceOptions<any, import("/pg").PgCodecWithAttributes<{
[x: string]: import("/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("/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>;