-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithubApiGet.d.ts
59 lines (59 loc) · 2.14 KB
/
githubApiGet.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* Returns the github project info - reduce with pathExpression constants.
*
* @remarks
* This method is part of the {@link githubApiGet | github-api-get}.
*
* @param {string} loginName - The github login name
* @param {string} projectName - The github project name
* @param {string} pathExpression - The path expression to reduce the project info
* @param {boolean} infoLog - true Logs group and info into the console
* @param {boolean} isProd - true Calls fetch to github api, false returns mock data with same structure
* @returns {Promise<unknown>} The github topics of a project
*/
export declare function githubApiGetProject(
loginName: string,
projectName: string,
pathExpression: string,
infoLog: boolean,
isProd: boolean,
): Promise<unknown>;
/**
* Returns the github login info - reduce with pathExpression constants.
*
* @remarks
* This method is part of the {@link githubApiGet | github-api-get}.
*
* @param {string} loginName - The github login name
* @param {string} pathExpression - The path expression to reduce the login info
* @param {boolean} infoLog - true Logs group and info into the console
* @param {boolean} isProd - true Calls fetch to github api, false returns mock data with same structure
* @returns {Promise<unknown>} The github login info
*/
export declare function githubApiGetLogin(
loginName: string,
pathExpression: string,
infoLog: boolean,
isProd: boolean,
): Promise<unknown>;
/**
* Returns the github topics of a project.
*
* @deprecated
* use githubApiGetProject() with pathExpression constant GITHUB_PROJECT_TOPICS
*
* @remarks
* This method is part of the {@link githubApiGet | github-api-get}.
*
* @param {string} loginName - The github login name
* @param {string} projectName - The github project name
* @param {boolean} infoLog - true Logs group and info into the console
* @param {boolean} isProd - true Calls fetch to github api, false returns mock data with same structure
* @returns {Promise<string[]>} The github topics of a project
*/
export declare function getGithubTopics(
loginName: string,
projectName: string,
infoLog: boolean,
isProd: boolean,
): Promise<string[]>;