willwill96-petfinder-graphql
Version:
contains files and utilities to bootstrap a graphql instance wrapping the petfinder api
84 lines (83 loc) • 2.96 kB
TypeScript
declare const petFinderGraphQlSchema: {
typeDefs: string[];
resolvers: ({
AgeListItem: {
BABY: string;
YOUNG: string;
ADULT: string;
SENIOR: string;
};
CoatListItem: {
SHORT: string;
MEDIUM: string;
LONG: string;
WIRE: string;
HAIRLESS: string;
CURLY: string;
};
GenderListItem: {
MALE: string;
FEMALE: string;
UNKNOWN: string;
};
SizeListItem: {
SMALL: string;
MEDIUM: string;
LARGE: string;
EXTRA_LARGE: string;
};
Sort: {
RECENT: string;
_RECENT: string;
DISTANCE: string;
_DISTANCE: string;
RANDOM: string;
};
Sort2: {
DISTANCE: string;
_DISTANCE: string;
NAME: string;
_NAME: string;
COUNTRY: string;
_COUNTRY: string;
STATE: string;
_STATE: string;
};
Status: {
ADOPTABLE: string;
ADOPTED: string;
FOUND: string;
};
Type2: {
DOG: string;
CAT: string;
SMALL_FURRY: string;
BIRD: string;
SCALES_FINS_OTHER: string;
BARNYARD: string;
RABBIT: string;
HORSE: string;
};
} | {
Query: {
animal: (_: any, args: import("../types/graphql-types").QueryAnimalArgs, context: any) => Promise<import("../types/graphql-types").Animal>;
animals: (_: any, args: import("../types/graphql-types").QueryAnimalsArgs, context: any) => Promise<import("../types/graphql-types").Animals>;
organization: (_: any, args: import("../types/graphql-types").QueryOrganizationArgs, { fetchPetfinderRoute }: {
fetchPetfinderRoute: any;
}) => Promise<import("../types/graphql-types").Organization>;
organizations: (_: any, args: import("../types/graphql-types").QueryOrganizationsArgs, { fetchPetfinderRoute }: {
fetchPetfinderRoute: any;
}) => Promise<import("../types/graphql-types").Organizations>;
type: (_: any, args: any, { fetchPetfinderRoute }: {
fetchPetfinderRoute: any;
}) => Promise<import("../types/graphql-types").Type>;
types: (_: any, _a: any, { fetchPetfinderRoute }: {
fetchPetfinderRoute: any;
}) => Promise<import("../types/graphql-types").Types>;
typeBreeds: (_: any, args: import("../types/graphql-types").QueryTypeBreedsArgs, { fetchPetfinderRoute }: {
fetchPetfinderRoute: any;
}) => Promise<import("../types/graphql-types").TypeBreeds>;
};
})[];
};
export default petFinderGraphQlSchema;