@tomsd/github-repo-js 0.2.2 → 0.2.4

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.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/dist/index.d.ts +443 -5094
  3. package/dist/index.iife.js +1 -0
  4. package/dist/index.mjs +1 -0
  5. package/dist/modules/base.d.ts +31 -0
  6. package/dist/modules/blob.d.ts +68 -0
  7. package/dist/modules/blobs.d.ts +67 -0
  8. package/dist/modules/github-classes.d.ts +4647 -0
  9. package/dist/modules/issue-comments.d.ts +101 -0
  10. package/dist/modules/issue.d.ts +330 -0
  11. package/dist/modules/my-issues.d.ts +289 -0
  12. package/dist/modules/organization-audit-log.d.ts +22 -0
  13. package/dist/modules/organization-repositories.d.ts +591 -0
  14. package/dist/modules/pull-commits.d.ts +177 -0
  15. package/dist/modules/pull-reviewers.d.ts +41 -0
  16. package/dist/modules/reference-get.d.ts +67 -0
  17. package/dist/modules/reference.d.ts +73 -0
  18. package/dist/modules/repository-artifact.d.ts +118 -0
  19. package/dist/modules/repository-artifacts.d.ts +118 -0
  20. package/dist/modules/repository-branch.d.ts +82 -0
  21. package/dist/modules/repository-branches.d.ts +66 -0
  22. package/dist/modules/repository-commits.d.ts +211 -0
  23. package/dist/modules/repository-issues.d.ts +317 -0
  24. package/dist/modules/repository-latest-release.d.ts +21 -0
  25. package/dist/modules/repository-pull.d.ts +458 -0
  26. package/dist/modules/repository-pulls.d.ts +369 -0
  27. package/dist/modules/repository-references.d.ts +82 -0
  28. package/dist/modules/repository-releases.d.ts +171 -0
  29. package/dist/modules/repository-runs.d.ts +206 -0
  30. package/dist/modules/repository-trees.d.ts +99 -0
  31. package/dist/modules/repository.d.ts +2267 -0
  32. package/dist/modules/tree.d.ts +82 -0
  33. package/dist/modules/user-organizations.d.ts +84 -0
  34. package/dist/modules/user-repositories.d.ts +597 -0
  35. package/dist/modules/user.d.ts +500 -0
  36. package/dist/repl.mjs +4 -0
  37. package/dist/utils/index.d.ts +6 -0
  38. package/package.json +6 -6
  39. package/dist/index.global.js +0 -1
  40. package/dist/index.js +0 -1
  41. package/dist/repl.js +0 -4
@@ -0,0 +1,206 @@
1
+ export declare function readyGitHubRepositoryRuns(token: string): {
2
+ new (owner: string, repo: string): {
3
+ get apiEndpoint(): string;
4
+ get pageSizeForRequest(): number;
5
+ getList(query?: Record<string, string | number>): Promise<{
6
+ id: number;
7
+ name?: string | null;
8
+ node_id: string;
9
+ check_suite_id?: number;
10
+ check_suite_node_id?: string;
11
+ head_branch: string | null;
12
+ head_sha: string;
13
+ path: string;
14
+ run_number: number;
15
+ run_attempt?: number;
16
+ referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null;
17
+ event: string;
18
+ status: string | null;
19
+ conclusion: string | null;
20
+ workflow_id: number;
21
+ url: string;
22
+ html_url: string;
23
+ pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null;
24
+ created_at: string;
25
+ updated_at: string;
26
+ actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
27
+ triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
28
+ run_started_at?: string;
29
+ jobs_url: string;
30
+ logs_url: string;
31
+ check_suite_url: string;
32
+ artifacts_url: string;
33
+ cancel_url: string;
34
+ rerun_url: string;
35
+ previous_attempt_url?: string | null;
36
+ workflow_url: string;
37
+ head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"];
38
+ repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
39
+ head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
40
+ head_repository_id?: number;
41
+ display_title: string;
42
+ }[]>;
43
+ owner: string;
44
+ repo: string;
45
+ token: string;
46
+ get apiOrigin(): string;
47
+ get requestHeaders(): {
48
+ accept: string;
49
+ authorization: string;
50
+ "X-GitHub-Api-Version": string;
51
+ };
52
+ getPagedList(query?: Record<string, string>): Promise<{
53
+ id: number;
54
+ name?: string | null;
55
+ node_id: string;
56
+ check_suite_id?: number;
57
+ check_suite_node_id?: string;
58
+ head_branch: string | null;
59
+ head_sha: string;
60
+ path: string;
61
+ run_number: number;
62
+ run_attempt?: number;
63
+ referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null;
64
+ event: string;
65
+ status: string | null;
66
+ conclusion: string | null;
67
+ workflow_id: number;
68
+ url: string;
69
+ html_url: string;
70
+ pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null;
71
+ created_at: string;
72
+ updated_at: string;
73
+ actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
74
+ triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
75
+ run_started_at?: string;
76
+ jobs_url: string;
77
+ logs_url: string;
78
+ check_suite_url: string;
79
+ artifacts_url: string;
80
+ cancel_url: string;
81
+ rerun_url: string;
82
+ previous_attempt_url?: string | null;
83
+ workflow_url: string;
84
+ head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"];
85
+ repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
86
+ head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
87
+ head_repository_id?: number;
88
+ display_title: string;
89
+ }[]>;
90
+ get(): Promise<{
91
+ id: number;
92
+ name?: string | null;
93
+ node_id: string;
94
+ check_suite_id?: number;
95
+ check_suite_node_id?: string;
96
+ head_branch: string | null;
97
+ head_sha: string;
98
+ path: string;
99
+ run_number: number;
100
+ run_attempt?: number;
101
+ referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null;
102
+ event: string;
103
+ status: string | null;
104
+ conclusion: string | null;
105
+ workflow_id: number;
106
+ url: string;
107
+ html_url: string;
108
+ pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null;
109
+ created_at: string;
110
+ updated_at: string;
111
+ actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
112
+ triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
113
+ run_started_at?: string;
114
+ jobs_url: string;
115
+ logs_url: string;
116
+ check_suite_url: string;
117
+ artifacts_url: string;
118
+ cancel_url: string;
119
+ rerun_url: string;
120
+ previous_attempt_url?: string | null;
121
+ workflow_url: string;
122
+ head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"];
123
+ repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
124
+ head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
125
+ head_repository_id?: number;
126
+ display_title: string;
127
+ }>;
128
+ post(body: unknown): Promise<{
129
+ id: number;
130
+ name?: string | null;
131
+ node_id: string;
132
+ check_suite_id?: number;
133
+ check_suite_node_id?: string;
134
+ head_branch: string | null;
135
+ head_sha: string;
136
+ path: string;
137
+ run_number: number;
138
+ run_attempt?: number;
139
+ referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null;
140
+ event: string;
141
+ status: string | null;
142
+ conclusion: string | null;
143
+ workflow_id: number;
144
+ url: string;
145
+ html_url: string;
146
+ pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null;
147
+ created_at: string;
148
+ updated_at: string;
149
+ actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
150
+ triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
151
+ run_started_at?: string;
152
+ jobs_url: string;
153
+ logs_url: string;
154
+ check_suite_url: string;
155
+ artifacts_url: string;
156
+ cancel_url: string;
157
+ rerun_url: string;
158
+ previous_attempt_url?: string | null;
159
+ workflow_url: string;
160
+ head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"];
161
+ repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
162
+ head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
163
+ head_repository_id?: number;
164
+ display_title: string;
165
+ }>;
166
+ patch(body: unknown): Promise<{
167
+ id: number;
168
+ name?: string | null;
169
+ node_id: string;
170
+ check_suite_id?: number;
171
+ check_suite_node_id?: string;
172
+ head_branch: string | null;
173
+ head_sha: string;
174
+ path: string;
175
+ run_number: number;
176
+ run_attempt?: number;
177
+ referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null;
178
+ event: string;
179
+ status: string | null;
180
+ conclusion: string | null;
181
+ workflow_id: number;
182
+ url: string;
183
+ html_url: string;
184
+ pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null;
185
+ created_at: string;
186
+ updated_at: string;
187
+ actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
188
+ triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"];
189
+ run_started_at?: string;
190
+ jobs_url: string;
191
+ logs_url: string;
192
+ check_suite_url: string;
193
+ artifacts_url: string;
194
+ cancel_url: string;
195
+ rerun_url: string;
196
+ previous_attempt_url?: string | null;
197
+ workflow_url: string;
198
+ head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"];
199
+ repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
200
+ head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"];
201
+ head_repository_id?: number;
202
+ display_title: string;
203
+ }>;
204
+ delete(): Promise<void>;
205
+ };
206
+ };
@@ -0,0 +1,99 @@
1
+ export declare function readyGitHubRepositoryTrees(token: string): {
2
+ new (owner: string, repo: string): {
3
+ get apiEndpoint(): string;
4
+ owner: string;
5
+ repo: string;
6
+ token: string;
7
+ get apiOrigin(): string;
8
+ get requestHeaders(): {
9
+ accept: string;
10
+ authorization: string;
11
+ "X-GitHub-Api-Version": string;
12
+ };
13
+ get pageSizeForRequest(): number;
14
+ getPagedList(query?: Record<string, string>): Promise<{
15
+ sha: string;
16
+ url?: string;
17
+ truncated: boolean;
18
+ tree: {
19
+ path: string;
20
+ mode: string;
21
+ type: string;
22
+ sha: string;
23
+ size?: number;
24
+ url?: string;
25
+ }[];
26
+ }[]>;
27
+ getList(query?: Record<string, string>): Promise<{
28
+ sha: string;
29
+ url?: string;
30
+ truncated: boolean;
31
+ tree: {
32
+ path: string;
33
+ mode: string;
34
+ type: string;
35
+ sha: string;
36
+ size?: number;
37
+ url?: string;
38
+ }[];
39
+ }[]>;
40
+ get(): Promise<{
41
+ sha: string;
42
+ url?: string;
43
+ truncated: boolean;
44
+ tree: {
45
+ path: string;
46
+ mode: string;
47
+ type: string;
48
+ sha: string;
49
+ size?: number;
50
+ url?: string;
51
+ }[];
52
+ }>;
53
+ post(body: {
54
+ tree: {
55
+ path?: string;
56
+ mode?: "100644" | "100755" | "040000" | "160000" | "120000";
57
+ type?: "blob" | "tree" | "commit";
58
+ sha?: string | null;
59
+ content?: string;
60
+ }[];
61
+ base_tree?: string;
62
+ }): Promise<{
63
+ sha: string;
64
+ url?: string;
65
+ truncated: boolean;
66
+ tree: {
67
+ path: string;
68
+ mode: string;
69
+ type: string;
70
+ sha: string;
71
+ size?: number;
72
+ url?: string;
73
+ }[];
74
+ }>;
75
+ patch(body: {
76
+ tree: {
77
+ path?: string;
78
+ mode?: "100644" | "100755" | "040000" | "160000" | "120000";
79
+ type?: "blob" | "tree" | "commit";
80
+ sha?: string | null;
81
+ content?: string;
82
+ }[];
83
+ base_tree?: string;
84
+ }): Promise<{
85
+ sha: string;
86
+ url?: string;
87
+ truncated: boolean;
88
+ tree: {
89
+ path: string;
90
+ mode: string;
91
+ type: string;
92
+ sha: string;
93
+ size?: number;
94
+ url?: string;
95
+ }[];
96
+ }>;
97
+ delete(): Promise<void>;
98
+ };
99
+ };