@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,289 @@
1
+ export declare function readyGitHubMyIssues(token: string): {
2
+ new (): {
3
+ get apiEndpoint(): string;
4
+ get pageSizeForRequest(): number;
5
+ getList(query?: Record<string, string>): Promise<{
6
+ id: number;
7
+ node_id: string;
8
+ url: string;
9
+ repository_url: string;
10
+ labels_url: string;
11
+ comments_url: string;
12
+ events_url: string;
13
+ html_url: string;
14
+ number: number;
15
+ state: string;
16
+ state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
17
+ title: string;
18
+ body?: string | null;
19
+ user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
20
+ labels: import("@octokit/openapi-types").OneOf<[string, {
21
+ id?: number;
22
+ node_id?: string;
23
+ url?: string;
24
+ name?: string;
25
+ description?: string | null;
26
+ color?: string | null;
27
+ default?: boolean;
28
+ }]>[];
29
+ assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
30
+ assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
31
+ milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
32
+ locked: boolean;
33
+ active_lock_reason?: string | null;
34
+ comments: number;
35
+ pull_request?: {
36
+ merged_at?: string | null;
37
+ diff_url: string | null;
38
+ html_url: string | null;
39
+ patch_url: string | null;
40
+ url: string | null;
41
+ };
42
+ closed_at: string | null;
43
+ created_at: string;
44
+ updated_at: string;
45
+ draft?: boolean;
46
+ closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
47
+ body_html?: string;
48
+ body_text?: string;
49
+ timeline_url?: string;
50
+ type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
51
+ repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
52
+ performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
53
+ author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
54
+ reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
55
+ sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
56
+ parent_issue_url?: string | null;
57
+ issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
58
+ issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
59
+ }[]>;
60
+ token: string;
61
+ get apiOrigin(): string;
62
+ get requestHeaders(): {
63
+ accept: string;
64
+ authorization: string;
65
+ "X-GitHub-Api-Version": string;
66
+ };
67
+ getPagedList(query?: Record<string, string>): Promise<{
68
+ id: number;
69
+ node_id: string;
70
+ url: string;
71
+ repository_url: string;
72
+ labels_url: string;
73
+ comments_url: string;
74
+ events_url: string;
75
+ html_url: string;
76
+ number: number;
77
+ state: string;
78
+ state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
79
+ title: string;
80
+ body?: string | null;
81
+ user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
82
+ labels: import("@octokit/openapi-types").OneOf<[string, {
83
+ id?: number;
84
+ node_id?: string;
85
+ url?: string;
86
+ name?: string;
87
+ description?: string | null;
88
+ color?: string | null;
89
+ default?: boolean;
90
+ }]>[];
91
+ assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
92
+ assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
93
+ milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
94
+ locked: boolean;
95
+ active_lock_reason?: string | null;
96
+ comments: number;
97
+ pull_request?: {
98
+ merged_at?: string | null;
99
+ diff_url: string | null;
100
+ html_url: string | null;
101
+ patch_url: string | null;
102
+ url: string | null;
103
+ };
104
+ closed_at: string | null;
105
+ created_at: string;
106
+ updated_at: string;
107
+ draft?: boolean;
108
+ closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
109
+ body_html?: string;
110
+ body_text?: string;
111
+ timeline_url?: string;
112
+ type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
113
+ repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
114
+ performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
115
+ author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
116
+ reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
117
+ sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
118
+ parent_issue_url?: string | null;
119
+ issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
120
+ issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
121
+ }[]>;
122
+ get(): Promise<{
123
+ id: number;
124
+ node_id: string;
125
+ url: string;
126
+ repository_url: string;
127
+ labels_url: string;
128
+ comments_url: string;
129
+ events_url: string;
130
+ html_url: string;
131
+ number: number;
132
+ state: string;
133
+ state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
134
+ title: string;
135
+ body?: string | null;
136
+ user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
137
+ labels: import("@octokit/openapi-types").OneOf<[string, {
138
+ id?: number;
139
+ node_id?: string;
140
+ url?: string;
141
+ name?: string;
142
+ description?: string | null;
143
+ color?: string | null;
144
+ default?: boolean;
145
+ }]>[];
146
+ assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
147
+ assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
148
+ milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
149
+ locked: boolean;
150
+ active_lock_reason?: string | null;
151
+ comments: number;
152
+ pull_request?: {
153
+ merged_at?: string | null;
154
+ diff_url: string | null;
155
+ html_url: string | null;
156
+ patch_url: string | null;
157
+ url: string | null;
158
+ };
159
+ closed_at: string | null;
160
+ created_at: string;
161
+ updated_at: string;
162
+ draft?: boolean;
163
+ closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
164
+ body_html?: string;
165
+ body_text?: string;
166
+ timeline_url?: string;
167
+ type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
168
+ repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
169
+ performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
170
+ author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
171
+ reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
172
+ sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
173
+ parent_issue_url?: string | null;
174
+ issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
175
+ issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
176
+ }>;
177
+ post(body: unknown): Promise<{
178
+ id: number;
179
+ node_id: string;
180
+ url: string;
181
+ repository_url: string;
182
+ labels_url: string;
183
+ comments_url: string;
184
+ events_url: string;
185
+ html_url: string;
186
+ number: number;
187
+ state: string;
188
+ state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
189
+ title: string;
190
+ body?: string | null;
191
+ user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
192
+ labels: import("@octokit/openapi-types").OneOf<[string, {
193
+ id?: number;
194
+ node_id?: string;
195
+ url?: string;
196
+ name?: string;
197
+ description?: string | null;
198
+ color?: string | null;
199
+ default?: boolean;
200
+ }]>[];
201
+ assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
202
+ assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
203
+ milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
204
+ locked: boolean;
205
+ active_lock_reason?: string | null;
206
+ comments: number;
207
+ pull_request?: {
208
+ merged_at?: string | null;
209
+ diff_url: string | null;
210
+ html_url: string | null;
211
+ patch_url: string | null;
212
+ url: string | null;
213
+ };
214
+ closed_at: string | null;
215
+ created_at: string;
216
+ updated_at: string;
217
+ draft?: boolean;
218
+ closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
219
+ body_html?: string;
220
+ body_text?: string;
221
+ timeline_url?: string;
222
+ type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
223
+ repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
224
+ performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
225
+ author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
226
+ reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
227
+ sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
228
+ parent_issue_url?: string | null;
229
+ issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
230
+ issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
231
+ }>;
232
+ patch(body: unknown): Promise<{
233
+ id: number;
234
+ node_id: string;
235
+ url: string;
236
+ repository_url: string;
237
+ labels_url: string;
238
+ comments_url: string;
239
+ events_url: string;
240
+ html_url: string;
241
+ number: number;
242
+ state: string;
243
+ state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
244
+ title: string;
245
+ body?: string | null;
246
+ user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
247
+ labels: import("@octokit/openapi-types").OneOf<[string, {
248
+ id?: number;
249
+ node_id?: string;
250
+ url?: string;
251
+ name?: string;
252
+ description?: string | null;
253
+ color?: string | null;
254
+ default?: boolean;
255
+ }]>[];
256
+ assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
257
+ assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
258
+ milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
259
+ locked: boolean;
260
+ active_lock_reason?: string | null;
261
+ comments: number;
262
+ pull_request?: {
263
+ merged_at?: string | null;
264
+ diff_url: string | null;
265
+ html_url: string | null;
266
+ patch_url: string | null;
267
+ url: string | null;
268
+ };
269
+ closed_at: string | null;
270
+ created_at: string;
271
+ updated_at: string;
272
+ draft?: boolean;
273
+ closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
274
+ body_html?: string;
275
+ body_text?: string;
276
+ timeline_url?: string;
277
+ type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
278
+ repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
279
+ performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
280
+ author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
281
+ reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
282
+ sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
283
+ parent_issue_url?: string | null;
284
+ issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
285
+ issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
286
+ }>;
287
+ delete(): Promise<void>;
288
+ };
289
+ };
@@ -0,0 +1,22 @@
1
+ type AuditLogRecord = {};
2
+ export declare function readyGitHubOrganizationAuditLog(token: string): {
3
+ new (org: string): {
4
+ org: string;
5
+ get apiEndpoint(): string;
6
+ getList(): Promise<AuditLogRecord[]>;
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<AuditLogRecord[]>;
16
+ get(): Promise<AuditLogRecord>;
17
+ post(body: never): Promise<AuditLogRecord>;
18
+ patch(body: never): Promise<AuditLogRecord>;
19
+ delete(): Promise<void>;
20
+ };
21
+ };
22
+ export {};