type OptionalArrayOr = T extends T[] ? T[] | undefined : Otherwise; type OptionalUndefinedOr = T extends undefined ? undefined : Otherwise; type OptionalNullOr = T extends null ? null | undefined : Otherwise; type OptionalStringOr = T extends string ? T | undefined : Otherwise; type OptionalNumberOr = T extends number ? T | undefined : Otherwise; type OptionalBooleanOr = T extends boolean ? boolean | undefined : Otherwise; /** * DeepPartial: A utility type that makes every field and nested field of an * object optional. This is useful for writing GraphQL queries that only use a * subset of fields and enables you to only pull in what's needed. * * Without `DeepPartial`, we would have to query entire objects for different * fields, which adds unnecessary bloat to the both the server and corresponding * response. * */ export type DeepPartial = OptionalStringOr; } : undefined>>>>>>; export type IterableDictionary = { [key: string]: T; }; export declare const checkFields: (objects: T[], fields: string[]) => void; export declare const queryBatchHandler: (queryQueryStrings: string[], endpt: string) => Promise; export declare const arg: (name: string, value: unknown, ignoreQuotes?: boolean) => string; export declare const objToGql: (obj: IterableDictionary) => string | number; export declare const getWhereArgArr: (whereArgs: IterableDictionary) => string; export declare const convertObjectToPropertiesString: (obj: IterableDictionary) => string; export declare const cleanResponse: (rawResp: Response) => Promise; export declare const gqlQuery: (name: string, typedQueryArgs: IterableDictionary, properties: string, excludeParentObject?: boolean) => string; export declare const doGqlQuery: (gqlQuery: string, gqlEndpt: string, headers?: HeadersInit) => Promise; export {}; //# sourceMappingURL=consts.d.ts.map