@tomsd/github-repo-js 0.2.1 → 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.
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 +8 -8
  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,591 @@
1
+ export declare function readyGitHubOrganizationRepositories(token: string): {
2
+ new (org: string): {
3
+ org: string;
4
+ get apiEndpoint(): string;
5
+ token: string;
6
+ get apiOrigin(): string;
7
+ get requestHeaders(): {
8
+ accept: string;
9
+ authorization: string;
10
+ "X-GitHub-Api-Version": string;
11
+ };
12
+ get pageSizeForRequest(): number;
13
+ getPagedList(query?: Record<string, string>): Promise<{
14
+ id: number;
15
+ node_id: string;
16
+ name: string;
17
+ full_name: string;
18
+ owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
19
+ private: boolean;
20
+ html_url: string;
21
+ description: string | null;
22
+ fork: boolean;
23
+ url: string;
24
+ archive_url: string;
25
+ assignees_url: string;
26
+ blobs_url: string;
27
+ branches_url: string;
28
+ collaborators_url: string;
29
+ comments_url: string;
30
+ commits_url: string;
31
+ compare_url: string;
32
+ contents_url: string;
33
+ contributors_url: string;
34
+ deployments_url: string;
35
+ downloads_url: string;
36
+ events_url: string;
37
+ forks_url: string;
38
+ git_commits_url: string;
39
+ git_refs_url: string;
40
+ git_tags_url: string;
41
+ git_url?: string;
42
+ issue_comment_url: string;
43
+ issue_events_url: string;
44
+ issues_url: string;
45
+ keys_url: string;
46
+ labels_url: string;
47
+ languages_url: string;
48
+ merges_url: string;
49
+ milestones_url: string;
50
+ notifications_url: string;
51
+ pulls_url: string;
52
+ releases_url: string;
53
+ ssh_url?: string;
54
+ stargazers_url: string;
55
+ statuses_url: string;
56
+ subscribers_url: string;
57
+ subscription_url: string;
58
+ tags_url: string;
59
+ teams_url: string;
60
+ trees_url: string;
61
+ clone_url?: string;
62
+ mirror_url?: string | null;
63
+ hooks_url: string;
64
+ svn_url?: string;
65
+ homepage?: string | null;
66
+ language?: string | null;
67
+ forks_count?: number;
68
+ stargazers_count?: number;
69
+ watchers_count?: number;
70
+ size?: number;
71
+ default_branch?: string;
72
+ open_issues_count?: number;
73
+ is_template?: boolean;
74
+ topics?: string[];
75
+ has_issues?: boolean;
76
+ has_projects?: boolean;
77
+ has_wiki?: boolean;
78
+ has_pages?: boolean;
79
+ has_downloads?: boolean;
80
+ has_discussions?: boolean;
81
+ archived?: boolean;
82
+ disabled?: boolean;
83
+ visibility?: string;
84
+ pushed_at?: string | null;
85
+ created_at?: string | null;
86
+ updated_at?: string | null;
87
+ permissions?: {
88
+ admin?: boolean;
89
+ maintain?: boolean;
90
+ push?: boolean;
91
+ triage?: boolean;
92
+ pull?: boolean;
93
+ };
94
+ role_name?: string;
95
+ temp_clone_token?: string;
96
+ delete_branch_on_merge?: boolean;
97
+ subscribers_count?: number;
98
+ network_count?: number;
99
+ code_of_conduct?: import("@octokit/openapi-types").components["schemas"]["code-of-conduct"];
100
+ license?: {
101
+ key?: string;
102
+ name?: string;
103
+ spdx_id?: string;
104
+ url?: string;
105
+ node_id?: string;
106
+ } | null;
107
+ forks?: number;
108
+ open_issues?: number;
109
+ watchers?: number;
110
+ allow_forking?: boolean;
111
+ web_commit_signoff_required?: boolean;
112
+ security_and_analysis?: import("@octokit/openapi-types").components["schemas"]["security-and-analysis"];
113
+ custom_properties?: {
114
+ [key: string]: unknown;
115
+ };
116
+ }[]>;
117
+ getList(query?: Record<string, string>): Promise<{
118
+ id: number;
119
+ node_id: string;
120
+ name: string;
121
+ full_name: string;
122
+ owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
123
+ private: boolean;
124
+ html_url: string;
125
+ description: string | null;
126
+ fork: boolean;
127
+ url: string;
128
+ archive_url: string;
129
+ assignees_url: string;
130
+ blobs_url: string;
131
+ branches_url: string;
132
+ collaborators_url: string;
133
+ comments_url: string;
134
+ commits_url: string;
135
+ compare_url: string;
136
+ contents_url: string;
137
+ contributors_url: string;
138
+ deployments_url: string;
139
+ downloads_url: string;
140
+ events_url: string;
141
+ forks_url: string;
142
+ git_commits_url: string;
143
+ git_refs_url: string;
144
+ git_tags_url: string;
145
+ git_url?: string;
146
+ issue_comment_url: string;
147
+ issue_events_url: string;
148
+ issues_url: string;
149
+ keys_url: string;
150
+ labels_url: string;
151
+ languages_url: string;
152
+ merges_url: string;
153
+ milestones_url: string;
154
+ notifications_url: string;
155
+ pulls_url: string;
156
+ releases_url: string;
157
+ ssh_url?: string;
158
+ stargazers_url: string;
159
+ statuses_url: string;
160
+ subscribers_url: string;
161
+ subscription_url: string;
162
+ tags_url: string;
163
+ teams_url: string;
164
+ trees_url: string;
165
+ clone_url?: string;
166
+ mirror_url?: string | null;
167
+ hooks_url: string;
168
+ svn_url?: string;
169
+ homepage?: string | null;
170
+ language?: string | null;
171
+ forks_count?: number;
172
+ stargazers_count?: number;
173
+ watchers_count?: number;
174
+ size?: number;
175
+ default_branch?: string;
176
+ open_issues_count?: number;
177
+ is_template?: boolean;
178
+ topics?: string[];
179
+ has_issues?: boolean;
180
+ has_projects?: boolean;
181
+ has_wiki?: boolean;
182
+ has_pages?: boolean;
183
+ has_downloads?: boolean;
184
+ has_discussions?: boolean;
185
+ archived?: boolean;
186
+ disabled?: boolean;
187
+ visibility?: string;
188
+ pushed_at?: string | null;
189
+ created_at?: string | null;
190
+ updated_at?: string | null;
191
+ permissions?: {
192
+ admin?: boolean;
193
+ maintain?: boolean;
194
+ push?: boolean;
195
+ triage?: boolean;
196
+ pull?: boolean;
197
+ };
198
+ role_name?: string;
199
+ temp_clone_token?: string;
200
+ delete_branch_on_merge?: boolean;
201
+ subscribers_count?: number;
202
+ network_count?: number;
203
+ code_of_conduct?: import("@octokit/openapi-types").components["schemas"]["code-of-conduct"];
204
+ license?: {
205
+ key?: string;
206
+ name?: string;
207
+ spdx_id?: string;
208
+ url?: string;
209
+ node_id?: string;
210
+ } | null;
211
+ forks?: number;
212
+ open_issues?: number;
213
+ watchers?: number;
214
+ allow_forking?: boolean;
215
+ web_commit_signoff_required?: boolean;
216
+ security_and_analysis?: import("@octokit/openapi-types").components["schemas"]["security-and-analysis"];
217
+ custom_properties?: {
218
+ [key: string]: unknown;
219
+ };
220
+ }[]>;
221
+ get(): Promise<{
222
+ id: number;
223
+ node_id: string;
224
+ name: string;
225
+ full_name: string;
226
+ owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
227
+ private: boolean;
228
+ html_url: string;
229
+ description: string | null;
230
+ fork: boolean;
231
+ url: string;
232
+ archive_url: string;
233
+ assignees_url: string;
234
+ blobs_url: string;
235
+ branches_url: string;
236
+ collaborators_url: string;
237
+ comments_url: string;
238
+ commits_url: string;
239
+ compare_url: string;
240
+ contents_url: string;
241
+ contributors_url: string;
242
+ deployments_url: string;
243
+ downloads_url: string;
244
+ events_url: string;
245
+ forks_url: string;
246
+ git_commits_url: string;
247
+ git_refs_url: string;
248
+ git_tags_url: string;
249
+ git_url?: string;
250
+ issue_comment_url: string;
251
+ issue_events_url: string;
252
+ issues_url: string;
253
+ keys_url: string;
254
+ labels_url: string;
255
+ languages_url: string;
256
+ merges_url: string;
257
+ milestones_url: string;
258
+ notifications_url: string;
259
+ pulls_url: string;
260
+ releases_url: string;
261
+ ssh_url?: string;
262
+ stargazers_url: string;
263
+ statuses_url: string;
264
+ subscribers_url: string;
265
+ subscription_url: string;
266
+ tags_url: string;
267
+ teams_url: string;
268
+ trees_url: string;
269
+ clone_url?: string;
270
+ mirror_url?: string | null;
271
+ hooks_url: string;
272
+ svn_url?: string;
273
+ homepage?: string | null;
274
+ language?: string | null;
275
+ forks_count?: number;
276
+ stargazers_count?: number;
277
+ watchers_count?: number;
278
+ size?: number;
279
+ default_branch?: string;
280
+ open_issues_count?: number;
281
+ is_template?: boolean;
282
+ topics?: string[];
283
+ has_issues?: boolean;
284
+ has_projects?: boolean;
285
+ has_wiki?: boolean;
286
+ has_pages?: boolean;
287
+ has_downloads?: boolean;
288
+ has_discussions?: boolean;
289
+ archived?: boolean;
290
+ disabled?: boolean;
291
+ visibility?: string;
292
+ pushed_at?: string | null;
293
+ created_at?: string | null;
294
+ updated_at?: string | null;
295
+ permissions?: {
296
+ admin?: boolean;
297
+ maintain?: boolean;
298
+ push?: boolean;
299
+ triage?: boolean;
300
+ pull?: boolean;
301
+ };
302
+ role_name?: string;
303
+ temp_clone_token?: string;
304
+ delete_branch_on_merge?: boolean;
305
+ subscribers_count?: number;
306
+ network_count?: number;
307
+ code_of_conduct?: import("@octokit/openapi-types").components["schemas"]["code-of-conduct"];
308
+ license?: {
309
+ key?: string;
310
+ name?: string;
311
+ spdx_id?: string;
312
+ url?: string;
313
+ node_id?: string;
314
+ } | null;
315
+ forks?: number;
316
+ open_issues?: number;
317
+ watchers?: number;
318
+ allow_forking?: boolean;
319
+ web_commit_signoff_required?: boolean;
320
+ security_and_analysis?: import("@octokit/openapi-types").components["schemas"]["security-and-analysis"];
321
+ custom_properties?: {
322
+ [key: string]: unknown;
323
+ };
324
+ }>;
325
+ post(body: {
326
+ name: string;
327
+ description?: string;
328
+ homepage?: string;
329
+ private?: boolean;
330
+ visibility?: "public" | "private";
331
+ has_issues?: boolean;
332
+ has_projects?: boolean;
333
+ has_wiki?: boolean;
334
+ has_downloads?: boolean;
335
+ is_template?: boolean;
336
+ team_id?: number;
337
+ auto_init?: boolean;
338
+ gitignore_template?: string;
339
+ license_template?: string;
340
+ allow_squash_merge?: boolean;
341
+ allow_merge_commit?: boolean;
342
+ allow_rebase_merge?: boolean;
343
+ allow_auto_merge?: boolean;
344
+ delete_branch_on_merge?: boolean;
345
+ use_squash_pr_title_as_default?: boolean;
346
+ squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
347
+ squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
348
+ merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE";
349
+ merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK";
350
+ custom_properties?: {
351
+ [key: string]: unknown;
352
+ };
353
+ }): Promise<{
354
+ id: number;
355
+ node_id: string;
356
+ name: string;
357
+ full_name: string;
358
+ owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
359
+ private: boolean;
360
+ html_url: string;
361
+ description: string | null;
362
+ fork: boolean;
363
+ url: string;
364
+ archive_url: string;
365
+ assignees_url: string;
366
+ blobs_url: string;
367
+ branches_url: string;
368
+ collaborators_url: string;
369
+ comments_url: string;
370
+ commits_url: string;
371
+ compare_url: string;
372
+ contents_url: string;
373
+ contributors_url: string;
374
+ deployments_url: string;
375
+ downloads_url: string;
376
+ events_url: string;
377
+ forks_url: string;
378
+ git_commits_url: string;
379
+ git_refs_url: string;
380
+ git_tags_url: string;
381
+ git_url?: string;
382
+ issue_comment_url: string;
383
+ issue_events_url: string;
384
+ issues_url: string;
385
+ keys_url: string;
386
+ labels_url: string;
387
+ languages_url: string;
388
+ merges_url: string;
389
+ milestones_url: string;
390
+ notifications_url: string;
391
+ pulls_url: string;
392
+ releases_url: string;
393
+ ssh_url?: string;
394
+ stargazers_url: string;
395
+ statuses_url: string;
396
+ subscribers_url: string;
397
+ subscription_url: string;
398
+ tags_url: string;
399
+ teams_url: string;
400
+ trees_url: string;
401
+ clone_url?: string;
402
+ mirror_url?: string | null;
403
+ hooks_url: string;
404
+ svn_url?: string;
405
+ homepage?: string | null;
406
+ language?: string | null;
407
+ forks_count?: number;
408
+ stargazers_count?: number;
409
+ watchers_count?: number;
410
+ size?: number;
411
+ default_branch?: string;
412
+ open_issues_count?: number;
413
+ is_template?: boolean;
414
+ topics?: string[];
415
+ has_issues?: boolean;
416
+ has_projects?: boolean;
417
+ has_wiki?: boolean;
418
+ has_pages?: boolean;
419
+ has_downloads?: boolean;
420
+ has_discussions?: boolean;
421
+ archived?: boolean;
422
+ disabled?: boolean;
423
+ visibility?: string;
424
+ pushed_at?: string | null;
425
+ created_at?: string | null;
426
+ updated_at?: string | null;
427
+ permissions?: {
428
+ admin?: boolean;
429
+ maintain?: boolean;
430
+ push?: boolean;
431
+ triage?: boolean;
432
+ pull?: boolean;
433
+ };
434
+ role_name?: string;
435
+ temp_clone_token?: string;
436
+ delete_branch_on_merge?: boolean;
437
+ subscribers_count?: number;
438
+ network_count?: number;
439
+ code_of_conduct?: import("@octokit/openapi-types").components["schemas"]["code-of-conduct"];
440
+ license?: {
441
+ key?: string;
442
+ name?: string;
443
+ spdx_id?: string;
444
+ url?: string;
445
+ node_id?: string;
446
+ } | null;
447
+ forks?: number;
448
+ open_issues?: number;
449
+ watchers?: number;
450
+ allow_forking?: boolean;
451
+ web_commit_signoff_required?: boolean;
452
+ security_and_analysis?: import("@octokit/openapi-types").components["schemas"]["security-and-analysis"];
453
+ custom_properties?: {
454
+ [key: string]: unknown;
455
+ };
456
+ }>;
457
+ patch(body: {
458
+ name: string;
459
+ description?: string;
460
+ homepage?: string;
461
+ private?: boolean;
462
+ visibility?: "public" | "private";
463
+ has_issues?: boolean;
464
+ has_projects?: boolean;
465
+ has_wiki?: boolean;
466
+ has_downloads?: boolean;
467
+ is_template?: boolean;
468
+ team_id?: number;
469
+ auto_init?: boolean;
470
+ gitignore_template?: string;
471
+ license_template?: string;
472
+ allow_squash_merge?: boolean;
473
+ allow_merge_commit?: boolean;
474
+ allow_rebase_merge?: boolean;
475
+ allow_auto_merge?: boolean;
476
+ delete_branch_on_merge?: boolean;
477
+ use_squash_pr_title_as_default?: boolean;
478
+ squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
479
+ squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
480
+ merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE";
481
+ merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK";
482
+ custom_properties?: {
483
+ [key: string]: unknown;
484
+ };
485
+ }): Promise<{
486
+ id: number;
487
+ node_id: string;
488
+ name: string;
489
+ full_name: string;
490
+ owner: import("@octokit/openapi-types").components["schemas"]["simple-user"];
491
+ private: boolean;
492
+ html_url: string;
493
+ description: string | null;
494
+ fork: boolean;
495
+ url: string;
496
+ archive_url: string;
497
+ assignees_url: string;
498
+ blobs_url: string;
499
+ branches_url: string;
500
+ collaborators_url: string;
501
+ comments_url: string;
502
+ commits_url: string;
503
+ compare_url: string;
504
+ contents_url: string;
505
+ contributors_url: string;
506
+ deployments_url: string;
507
+ downloads_url: string;
508
+ events_url: string;
509
+ forks_url: string;
510
+ git_commits_url: string;
511
+ git_refs_url: string;
512
+ git_tags_url: string;
513
+ git_url?: string;
514
+ issue_comment_url: string;
515
+ issue_events_url: string;
516
+ issues_url: string;
517
+ keys_url: string;
518
+ labels_url: string;
519
+ languages_url: string;
520
+ merges_url: string;
521
+ milestones_url: string;
522
+ notifications_url: string;
523
+ pulls_url: string;
524
+ releases_url: string;
525
+ ssh_url?: string;
526
+ stargazers_url: string;
527
+ statuses_url: string;
528
+ subscribers_url: string;
529
+ subscription_url: string;
530
+ tags_url: string;
531
+ teams_url: string;
532
+ trees_url: string;
533
+ clone_url?: string;
534
+ mirror_url?: string | null;
535
+ hooks_url: string;
536
+ svn_url?: string;
537
+ homepage?: string | null;
538
+ language?: string | null;
539
+ forks_count?: number;
540
+ stargazers_count?: number;
541
+ watchers_count?: number;
542
+ size?: number;
543
+ default_branch?: string;
544
+ open_issues_count?: number;
545
+ is_template?: boolean;
546
+ topics?: string[];
547
+ has_issues?: boolean;
548
+ has_projects?: boolean;
549
+ has_wiki?: boolean;
550
+ has_pages?: boolean;
551
+ has_downloads?: boolean;
552
+ has_discussions?: boolean;
553
+ archived?: boolean;
554
+ disabled?: boolean;
555
+ visibility?: string;
556
+ pushed_at?: string | null;
557
+ created_at?: string | null;
558
+ updated_at?: string | null;
559
+ permissions?: {
560
+ admin?: boolean;
561
+ maintain?: boolean;
562
+ push?: boolean;
563
+ triage?: boolean;
564
+ pull?: boolean;
565
+ };
566
+ role_name?: string;
567
+ temp_clone_token?: string;
568
+ delete_branch_on_merge?: boolean;
569
+ subscribers_count?: number;
570
+ network_count?: number;
571
+ code_of_conduct?: import("@octokit/openapi-types").components["schemas"]["code-of-conduct"];
572
+ license?: {
573
+ key?: string;
574
+ name?: string;
575
+ spdx_id?: string;
576
+ url?: string;
577
+ node_id?: string;
578
+ } | null;
579
+ forks?: number;
580
+ open_issues?: number;
581
+ watchers?: number;
582
+ allow_forking?: boolean;
583
+ web_commit_signoff_required?: boolean;
584
+ security_and_analysis?: import("@octokit/openapi-types").components["schemas"]["security-and-analysis"];
585
+ custom_properties?: {
586
+ [key: string]: unknown;
587
+ };
588
+ }>;
589
+ delete(): Promise<void>;
590
+ };
591
+ };