UNPKG

gwitter

Version:

Turn GitHub Issues into your personal microblog platform

47 lines (46 loc) 1.98 kB
export declare const createAuthenticatedApi: (token: string) => import("axios").AxiosInstance; export declare const api: import("axios").AxiosInstance; interface GetIssuesQLParams { owner: string; repo: string; cursor: string | null; pageSize: number; } export declare const getIssuesQL: (vars: GetIssuesQLParams) => { operationName: string; query: string; variables: GetIssuesQLParams; }; interface GetLabelsParams { owner: string; repo: string; } export declare const getLabelsQL: ({ owner, repo }: GetLabelsParams) => { query: string; }; interface GetIssueReactionsParams { owner: string; repo: string; issueNumber: number; } export declare const getIssueReactionsQL: ({ owner, repo, issueNumber, }: GetIssueReactionsParams) => { query: string; }; export declare const addReactionToIssue: (authenticatedApi: any, subjectId: string, content: string) => Promise<any>; export declare const removeReactionFromIssue: (authenticatedApi: any, subjectId: string, content: string) => Promise<any>; interface GetIssueCommentsParams { owner: string; repo: string; issueNumber: number; } export declare const getIssueCommentsQL: ({ owner, repo, issueNumber, }: GetIssueCommentsParams) => { query: string; }; export declare const addCommentToIssue: (authenticatedApi: any, subjectId: string, body: string) => Promise<any>; export declare const getUserInfo: (token: string) => Promise<any>; export declare const getAccessToken: (code: string) => Promise<any>; export declare const updateComment: (authenticatedApi: any, commentId: string, body: string) => Promise<any>; export declare const deleteComment: (authenticatedApi: any, commentId: string) => Promise<any>; export declare const addReactionToComment: (authenticatedApi: any, subjectId: string, content: string) => Promise<any>; export declare const removeReactionFromComment: (authenticatedApi: any, subjectId: string, content: string) => Promise<any>; export {};