@tomsd/github-repo-js 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +443 -5094
- package/dist/index.iife.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/modules/base.d.ts +31 -0
- package/dist/modules/blob.d.ts +68 -0
- package/dist/modules/blobs.d.ts +67 -0
- package/dist/modules/github-classes.d.ts +4647 -0
- package/dist/modules/issue-comments.d.ts +101 -0
- package/dist/modules/issue.d.ts +330 -0
- package/dist/modules/my-issues.d.ts +289 -0
- package/dist/modules/organization-audit-log.d.ts +22 -0
- package/dist/modules/organization-repositories.d.ts +591 -0
- package/dist/modules/pull-commits.d.ts +177 -0
- package/dist/modules/pull-reviewers.d.ts +41 -0
- package/dist/modules/reference-get.d.ts +67 -0
- package/dist/modules/reference.d.ts +73 -0
- package/dist/modules/repository-artifact.d.ts +118 -0
- package/dist/modules/repository-artifacts.d.ts +118 -0
- package/dist/modules/repository-branch.d.ts +82 -0
- package/dist/modules/repository-branches.d.ts +66 -0
- package/dist/modules/repository-commits.d.ts +211 -0
- package/dist/modules/repository-issues.d.ts +317 -0
- package/dist/modules/repository-latest-release.d.ts +21 -0
- package/dist/modules/repository-pull.d.ts +458 -0
- package/dist/modules/repository-pulls.d.ts +369 -0
- package/dist/modules/repository-references.d.ts +82 -0
- package/dist/modules/repository-releases.d.ts +171 -0
- package/dist/modules/repository-runs.d.ts +206 -0
- package/dist/modules/repository-trees.d.ts +99 -0
- package/dist/modules/repository.d.ts +2267 -0
- package/dist/modules/tree.d.ts +82 -0
- package/dist/modules/user-organizations.d.ts +84 -0
- package/dist/modules/user-repositories.d.ts +597 -0
- package/dist/modules/user.d.ts +500 -0
- package/dist/repl.mjs +4 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +6 -6
- package/dist/index.global.js +0 -1
- package/dist/index.js +0 -1
- package/dist/repl.js +0 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare function readyGitHubTree(token: string): {
|
|
2
|
+
new (owner: string, repo: string, treeSha: string): {
|
|
3
|
+
treeSha: string;
|
|
4
|
+
get apiEndpoint(): string;
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
token: string;
|
|
8
|
+
get apiOrigin(): string;
|
|
9
|
+
get requestHeaders(): {
|
|
10
|
+
accept: string;
|
|
11
|
+
authorization: string;
|
|
12
|
+
"X-GitHub-Api-Version": string;
|
|
13
|
+
};
|
|
14
|
+
get pageSizeForRequest(): number;
|
|
15
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
16
|
+
sha: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
truncated: boolean;
|
|
19
|
+
tree: {
|
|
20
|
+
path: string;
|
|
21
|
+
mode: string;
|
|
22
|
+
type: string;
|
|
23
|
+
sha: string;
|
|
24
|
+
size?: number;
|
|
25
|
+
url?: string;
|
|
26
|
+
}[];
|
|
27
|
+
}[]>;
|
|
28
|
+
getList(query?: Record<string, string>): Promise<{
|
|
29
|
+
sha: string;
|
|
30
|
+
url?: string;
|
|
31
|
+
truncated: boolean;
|
|
32
|
+
tree: {
|
|
33
|
+
path: string;
|
|
34
|
+
mode: string;
|
|
35
|
+
type: string;
|
|
36
|
+
sha: string;
|
|
37
|
+
size?: number;
|
|
38
|
+
url?: string;
|
|
39
|
+
}[];
|
|
40
|
+
}[]>;
|
|
41
|
+
get(): Promise<{
|
|
42
|
+
sha: string;
|
|
43
|
+
url?: string;
|
|
44
|
+
truncated: boolean;
|
|
45
|
+
tree: {
|
|
46
|
+
path: string;
|
|
47
|
+
mode: string;
|
|
48
|
+
type: string;
|
|
49
|
+
sha: string;
|
|
50
|
+
size?: number;
|
|
51
|
+
url?: string;
|
|
52
|
+
}[];
|
|
53
|
+
}>;
|
|
54
|
+
post(body: unknown): Promise<{
|
|
55
|
+
sha: string;
|
|
56
|
+
url?: string;
|
|
57
|
+
truncated: boolean;
|
|
58
|
+
tree: {
|
|
59
|
+
path: string;
|
|
60
|
+
mode: string;
|
|
61
|
+
type: string;
|
|
62
|
+
sha: string;
|
|
63
|
+
size?: number;
|
|
64
|
+
url?: string;
|
|
65
|
+
}[];
|
|
66
|
+
}>;
|
|
67
|
+
patch(body: unknown): Promise<{
|
|
68
|
+
sha: string;
|
|
69
|
+
url?: string;
|
|
70
|
+
truncated: boolean;
|
|
71
|
+
tree: {
|
|
72
|
+
path: string;
|
|
73
|
+
mode: string;
|
|
74
|
+
type: string;
|
|
75
|
+
sha: string;
|
|
76
|
+
size?: number;
|
|
77
|
+
url?: string;
|
|
78
|
+
}[];
|
|
79
|
+
}>;
|
|
80
|
+
delete(): Promise<void>;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare function readyGitHubUserOrganizations(token: string): {
|
|
2
|
+
new (): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
login: string;
|
|
7
|
+
id: number;
|
|
8
|
+
node_id: string;
|
|
9
|
+
url: string;
|
|
10
|
+
repos_url: string;
|
|
11
|
+
events_url: string;
|
|
12
|
+
hooks_url: string;
|
|
13
|
+
issues_url: string;
|
|
14
|
+
members_url: string;
|
|
15
|
+
public_members_url: string;
|
|
16
|
+
avatar_url: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
}[]>;
|
|
19
|
+
token: string;
|
|
20
|
+
get apiOrigin(): string;
|
|
21
|
+
get requestHeaders(): {
|
|
22
|
+
accept: string;
|
|
23
|
+
authorization: string;
|
|
24
|
+
"X-GitHub-Api-Version": string;
|
|
25
|
+
};
|
|
26
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
27
|
+
login: string;
|
|
28
|
+
id: number;
|
|
29
|
+
node_id: string;
|
|
30
|
+
url: string;
|
|
31
|
+
repos_url: string;
|
|
32
|
+
events_url: string;
|
|
33
|
+
hooks_url: string;
|
|
34
|
+
issues_url: string;
|
|
35
|
+
members_url: string;
|
|
36
|
+
public_members_url: string;
|
|
37
|
+
avatar_url: string;
|
|
38
|
+
description: string | null;
|
|
39
|
+
}[]>;
|
|
40
|
+
get(): Promise<{
|
|
41
|
+
login: string;
|
|
42
|
+
id: number;
|
|
43
|
+
node_id: string;
|
|
44
|
+
url: string;
|
|
45
|
+
repos_url: string;
|
|
46
|
+
events_url: string;
|
|
47
|
+
hooks_url: string;
|
|
48
|
+
issues_url: string;
|
|
49
|
+
members_url: string;
|
|
50
|
+
public_members_url: string;
|
|
51
|
+
avatar_url: string;
|
|
52
|
+
description: string | null;
|
|
53
|
+
}>;
|
|
54
|
+
post(body: {}): Promise<{
|
|
55
|
+
login: string;
|
|
56
|
+
id: number;
|
|
57
|
+
node_id: string;
|
|
58
|
+
url: string;
|
|
59
|
+
repos_url: string;
|
|
60
|
+
events_url: string;
|
|
61
|
+
hooks_url: string;
|
|
62
|
+
issues_url: string;
|
|
63
|
+
members_url: string;
|
|
64
|
+
public_members_url: string;
|
|
65
|
+
avatar_url: string;
|
|
66
|
+
description: string | null;
|
|
67
|
+
}>;
|
|
68
|
+
patch(body: {}): Promise<{
|
|
69
|
+
login: string;
|
|
70
|
+
id: number;
|
|
71
|
+
node_id: string;
|
|
72
|
+
url: string;
|
|
73
|
+
repos_url: string;
|
|
74
|
+
events_url: string;
|
|
75
|
+
hooks_url: string;
|
|
76
|
+
issues_url: string;
|
|
77
|
+
members_url: string;
|
|
78
|
+
public_members_url: string;
|
|
79
|
+
avatar_url: string;
|
|
80
|
+
description: string | null;
|
|
81
|
+
}>;
|
|
82
|
+
delete(): Promise<void>;
|
|
83
|
+
};
|
|
84
|
+
};
|