@mikosramek/mnpg
Version:
MNPG is an Apollo wrapper library that interfaces with [prismic](prismic.io/). It stands for Miko's Neocities Prismic Grabber, as it was first used for my Neocities site, but has no affiliation with them other than in spirit.
24 lines (23 loc) • 871 B
TypeScript
declare const InMemoryCache: any, IntrospectionFragmentMatcher: any;
declare const ApolloClient: any;
declare const gql: any;
declare const createPrismicLink: any;
declare const _get: any;
declare const axios: any;
declare const AxiosResponse: any;
declare const fs: any;
declare const parts: any;
type Edges = Record<any, any>[];
type PaginatedQuery = (id: string) => string;
declare class MNPG {
repo: string;
accessToken: string;
client: typeof ApolloClient;
fragmentMatcher: string;
constructor(repo: string, accessToken: string);
createFragments(filePath: string): Promise<unknown>;
createClient(introspectionQueryResultData?: null): void;
private entryQuery;
getEntries(firstEntriesQuery: string, paginatedQuery: PaginatedQuery, entryName: string): Promise<unknown>;
getBasePages(basePagesQuery: string): Promise<unknown>;
}