@tomsd/github-repo-js 0.2.4 → 0.3.0

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.
@@ -0,0 +1,9 @@
1
+ export declare function readyGitHubGraphQL(token: string): {
2
+ new (): {
3
+ get apiEndpoint(): string;
4
+ doQuery<T = unknown>(requestData: {
5
+ query: string;
6
+ variables?: Record<string, unknown>;
7
+ }): Promise<T>;
8
+ };
9
+ };
@@ -10,13 +10,103 @@ export declare function readyGitHubIssueComments(token: string): {
10
10
  body_text?: string;
11
11
  body_html?: string;
12
12
  html_url: string;
13
- user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
13
+ user: {
14
+ name?: string | null;
15
+ email?: string | null;
16
+ login: string;
17
+ id: number;
18
+ node_id: string;
19
+ avatar_url: string;
20
+ gravatar_id: string | null;
21
+ url: string;
22
+ html_url: string;
23
+ followers_url: string;
24
+ following_url: string;
25
+ gists_url: string;
26
+ starred_url: string;
27
+ subscriptions_url: string;
28
+ organizations_url: string;
29
+ repos_url: string;
30
+ events_url: string;
31
+ received_events_url: string;
32
+ type: string;
33
+ site_admin: boolean;
34
+ starred_at?: string;
35
+ user_view_type?: string;
36
+ } | null;
14
37
  created_at: string;
15
38
  updated_at: string;
16
39
  issue_url: string;
17
- author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
18
- performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
19
- reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
40
+ author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
41
+ performed_via_github_app?: {
42
+ id: number;
43
+ slug?: string;
44
+ node_id: string;
45
+ client_id?: string;
46
+ owner: {
47
+ name?: string | null;
48
+ email?: string | null;
49
+ login: string;
50
+ id: number;
51
+ node_id: string;
52
+ avatar_url: string;
53
+ gravatar_id: string | null;
54
+ url: string;
55
+ html_url: string;
56
+ followers_url: string;
57
+ following_url: string;
58
+ gists_url: string;
59
+ starred_url: string;
60
+ subscriptions_url: string;
61
+ organizations_url: string;
62
+ repos_url: string;
63
+ events_url: string;
64
+ received_events_url: string;
65
+ type: string;
66
+ site_admin: boolean;
67
+ starred_at?: string;
68
+ user_view_type?: string;
69
+ } | {
70
+ description?: string | null;
71
+ html_url: string;
72
+ website_url?: string | null;
73
+ id: number;
74
+ node_id: string;
75
+ name: string;
76
+ slug: string;
77
+ created_at: string | null;
78
+ updated_at: string | null;
79
+ avatar_url: string;
80
+ };
81
+ name: string;
82
+ description: string | null;
83
+ external_url: string;
84
+ html_url: string;
85
+ created_at: string;
86
+ updated_at: string;
87
+ permissions: {
88
+ issues?: string;
89
+ checks?: string;
90
+ metadata?: string;
91
+ contents?: string;
92
+ deployments?: string;
93
+ [key: string]: string | undefined;
94
+ };
95
+ events: string[];
96
+ installations_count?: number;
97
+ } | null;
98
+ reactions?: {
99
+ url: string;
100
+ total_count: number;
101
+ "+1": number;
102
+ "-1": number;
103
+ laugh: number;
104
+ confused: number;
105
+ heart: number;
106
+ hooray: number;
107
+ eyes: number;
108
+ rocket: number;
109
+ };
20
110
  }[]>;
21
111
  issueNumber: number;
22
112
  owner: string;
@@ -36,13 +126,103 @@ export declare function readyGitHubIssueComments(token: string): {
36
126
  body_text?: string;
37
127
  body_html?: string;
38
128
  html_url: string;
39
- user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
129
+ user: {
130
+ name?: string | null;
131
+ email?: string | null;
132
+ login: string;
133
+ id: number;
134
+ node_id: string;
135
+ avatar_url: string;
136
+ gravatar_id: string | null;
137
+ url: string;
138
+ html_url: string;
139
+ followers_url: string;
140
+ following_url: string;
141
+ gists_url: string;
142
+ starred_url: string;
143
+ subscriptions_url: string;
144
+ organizations_url: string;
145
+ repos_url: string;
146
+ events_url: string;
147
+ received_events_url: string;
148
+ type: string;
149
+ site_admin: boolean;
150
+ starred_at?: string;
151
+ user_view_type?: string;
152
+ } | null;
40
153
  created_at: string;
41
154
  updated_at: string;
42
155
  issue_url: string;
43
- author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
44
- performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
45
- reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
156
+ author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
157
+ performed_via_github_app?: {
158
+ id: number;
159
+ slug?: string;
160
+ node_id: string;
161
+ client_id?: string;
162
+ owner: {
163
+ name?: string | null;
164
+ email?: string | null;
165
+ login: string;
166
+ id: number;
167
+ node_id: string;
168
+ avatar_url: string;
169
+ gravatar_id: string | null;
170
+ url: string;
171
+ html_url: string;
172
+ followers_url: string;
173
+ following_url: string;
174
+ gists_url: string;
175
+ starred_url: string;
176
+ subscriptions_url: string;
177
+ organizations_url: string;
178
+ repos_url: string;
179
+ events_url: string;
180
+ received_events_url: string;
181
+ type: string;
182
+ site_admin: boolean;
183
+ starred_at?: string;
184
+ user_view_type?: string;
185
+ } | {
186
+ description?: string | null;
187
+ html_url: string;
188
+ website_url?: string | null;
189
+ id: number;
190
+ node_id: string;
191
+ name: string;
192
+ slug: string;
193
+ created_at: string | null;
194
+ updated_at: string | null;
195
+ avatar_url: string;
196
+ };
197
+ name: string;
198
+ description: string | null;
199
+ external_url: string;
200
+ html_url: string;
201
+ created_at: string;
202
+ updated_at: string;
203
+ permissions: {
204
+ issues?: string;
205
+ checks?: string;
206
+ metadata?: string;
207
+ contents?: string;
208
+ deployments?: string;
209
+ [key: string]: string | undefined;
210
+ };
211
+ events: string[];
212
+ installations_count?: number;
213
+ } | null;
214
+ reactions?: {
215
+ url: string;
216
+ total_count: number;
217
+ "+1": number;
218
+ "-1": number;
219
+ laugh: number;
220
+ confused: number;
221
+ heart: number;
222
+ hooray: number;
223
+ eyes: number;
224
+ rocket: number;
225
+ };
46
226
  }[]>;
47
227
  get(): Promise<{
48
228
  id: number;
@@ -52,13 +232,103 @@ export declare function readyGitHubIssueComments(token: string): {
52
232
  body_text?: string;
53
233
  body_html?: string;
54
234
  html_url: string;
55
- user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
235
+ user: {
236
+ name?: string | null;
237
+ email?: string | null;
238
+ login: string;
239
+ id: number;
240
+ node_id: string;
241
+ avatar_url: string;
242
+ gravatar_id: string | null;
243
+ url: string;
244
+ html_url: string;
245
+ followers_url: string;
246
+ following_url: string;
247
+ gists_url: string;
248
+ starred_url: string;
249
+ subscriptions_url: string;
250
+ organizations_url: string;
251
+ repos_url: string;
252
+ events_url: string;
253
+ received_events_url: string;
254
+ type: string;
255
+ site_admin: boolean;
256
+ starred_at?: string;
257
+ user_view_type?: string;
258
+ } | null;
56
259
  created_at: string;
57
260
  updated_at: string;
58
261
  issue_url: string;
59
- author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
60
- performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
61
- reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
262
+ author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
263
+ performed_via_github_app?: {
264
+ id: number;
265
+ slug?: string;
266
+ node_id: string;
267
+ client_id?: string;
268
+ owner: {
269
+ name?: string | null;
270
+ email?: string | null;
271
+ login: string;
272
+ id: number;
273
+ node_id: string;
274
+ avatar_url: string;
275
+ gravatar_id: string | null;
276
+ url: string;
277
+ html_url: string;
278
+ followers_url: string;
279
+ following_url: string;
280
+ gists_url: string;
281
+ starred_url: string;
282
+ subscriptions_url: string;
283
+ organizations_url: string;
284
+ repos_url: string;
285
+ events_url: string;
286
+ received_events_url: string;
287
+ type: string;
288
+ site_admin: boolean;
289
+ starred_at?: string;
290
+ user_view_type?: string;
291
+ } | {
292
+ description?: string | null;
293
+ html_url: string;
294
+ website_url?: string | null;
295
+ id: number;
296
+ node_id: string;
297
+ name: string;
298
+ slug: string;
299
+ created_at: string | null;
300
+ updated_at: string | null;
301
+ avatar_url: string;
302
+ };
303
+ name: string;
304
+ description: string | null;
305
+ external_url: string;
306
+ html_url: string;
307
+ created_at: string;
308
+ updated_at: string;
309
+ permissions: {
310
+ issues?: string;
311
+ checks?: string;
312
+ metadata?: string;
313
+ contents?: string;
314
+ deployments?: string;
315
+ [key: string]: string | undefined;
316
+ };
317
+ events: string[];
318
+ installations_count?: number;
319
+ } | null;
320
+ reactions?: {
321
+ url: string;
322
+ total_count: number;
323
+ "+1": number;
324
+ "-1": number;
325
+ laugh: number;
326
+ confused: number;
327
+ heart: number;
328
+ hooray: number;
329
+ eyes: number;
330
+ rocket: number;
331
+ };
62
332
  }>;
63
333
  post(body: {
64
334
  body: string;
@@ -70,13 +340,103 @@ export declare function readyGitHubIssueComments(token: string): {
70
340
  body_text?: string;
71
341
  body_html?: string;
72
342
  html_url: string;
73
- user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
343
+ user: {
344
+ name?: string | null;
345
+ email?: string | null;
346
+ login: string;
347
+ id: number;
348
+ node_id: string;
349
+ avatar_url: string;
350
+ gravatar_id: string | null;
351
+ url: string;
352
+ html_url: string;
353
+ followers_url: string;
354
+ following_url: string;
355
+ gists_url: string;
356
+ starred_url: string;
357
+ subscriptions_url: string;
358
+ organizations_url: string;
359
+ repos_url: string;
360
+ events_url: string;
361
+ received_events_url: string;
362
+ type: string;
363
+ site_admin: boolean;
364
+ starred_at?: string;
365
+ user_view_type?: string;
366
+ } | null;
74
367
  created_at: string;
75
368
  updated_at: string;
76
369
  issue_url: string;
77
- author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
78
- performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
79
- reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
370
+ author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
371
+ performed_via_github_app?: {
372
+ id: number;
373
+ slug?: string;
374
+ node_id: string;
375
+ client_id?: string;
376
+ owner: {
377
+ name?: string | null;
378
+ email?: string | null;
379
+ login: string;
380
+ id: number;
381
+ node_id: string;
382
+ avatar_url: string;
383
+ gravatar_id: string | null;
384
+ url: string;
385
+ html_url: string;
386
+ followers_url: string;
387
+ following_url: string;
388
+ gists_url: string;
389
+ starred_url: string;
390
+ subscriptions_url: string;
391
+ organizations_url: string;
392
+ repos_url: string;
393
+ events_url: string;
394
+ received_events_url: string;
395
+ type: string;
396
+ site_admin: boolean;
397
+ starred_at?: string;
398
+ user_view_type?: string;
399
+ } | {
400
+ description?: string | null;
401
+ html_url: string;
402
+ website_url?: string | null;
403
+ id: number;
404
+ node_id: string;
405
+ name: string;
406
+ slug: string;
407
+ created_at: string | null;
408
+ updated_at: string | null;
409
+ avatar_url: string;
410
+ };
411
+ name: string;
412
+ description: string | null;
413
+ external_url: string;
414
+ html_url: string;
415
+ created_at: string;
416
+ updated_at: string;
417
+ permissions: {
418
+ issues?: string;
419
+ checks?: string;
420
+ metadata?: string;
421
+ contents?: string;
422
+ deployments?: string;
423
+ [key: string]: string | undefined;
424
+ };
425
+ events: string[];
426
+ installations_count?: number;
427
+ } | null;
428
+ reactions?: {
429
+ url: string;
430
+ total_count: number;
431
+ "+1": number;
432
+ "-1": number;
433
+ laugh: number;
434
+ confused: number;
435
+ heart: number;
436
+ hooray: number;
437
+ eyes: number;
438
+ rocket: number;
439
+ };
80
440
  }>;
81
441
  patch(body: {
82
442
  body: string;
@@ -88,13 +448,103 @@ export declare function readyGitHubIssueComments(token: string): {
88
448
  body_text?: string;
89
449
  body_html?: string;
90
450
  html_url: string;
91
- user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
451
+ user: {
452
+ name?: string | null;
453
+ email?: string | null;
454
+ login: string;
455
+ id: number;
456
+ node_id: string;
457
+ avatar_url: string;
458
+ gravatar_id: string | null;
459
+ url: string;
460
+ html_url: string;
461
+ followers_url: string;
462
+ following_url: string;
463
+ gists_url: string;
464
+ starred_url: string;
465
+ subscriptions_url: string;
466
+ organizations_url: string;
467
+ repos_url: string;
468
+ events_url: string;
469
+ received_events_url: string;
470
+ type: string;
471
+ site_admin: boolean;
472
+ starred_at?: string;
473
+ user_view_type?: string;
474
+ } | null;
92
475
  created_at: string;
93
476
  updated_at: string;
94
477
  issue_url: string;
95
- author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
96
- performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
97
- reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
478
+ author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
479
+ performed_via_github_app?: {
480
+ id: number;
481
+ slug?: string;
482
+ node_id: string;
483
+ client_id?: string;
484
+ owner: {
485
+ name?: string | null;
486
+ email?: string | null;
487
+ login: string;
488
+ id: number;
489
+ node_id: string;
490
+ avatar_url: string;
491
+ gravatar_id: string | null;
492
+ url: string;
493
+ html_url: string;
494
+ followers_url: string;
495
+ following_url: string;
496
+ gists_url: string;
497
+ starred_url: string;
498
+ subscriptions_url: string;
499
+ organizations_url: string;
500
+ repos_url: string;
501
+ events_url: string;
502
+ received_events_url: string;
503
+ type: string;
504
+ site_admin: boolean;
505
+ starred_at?: string;
506
+ user_view_type?: string;
507
+ } | {
508
+ description?: string | null;
509
+ html_url: string;
510
+ website_url?: string | null;
511
+ id: number;
512
+ node_id: string;
513
+ name: string;
514
+ slug: string;
515
+ created_at: string | null;
516
+ updated_at: string | null;
517
+ avatar_url: string;
518
+ };
519
+ name: string;
520
+ description: string | null;
521
+ external_url: string;
522
+ html_url: string;
523
+ created_at: string;
524
+ updated_at: string;
525
+ permissions: {
526
+ issues?: string;
527
+ checks?: string;
528
+ metadata?: string;
529
+ contents?: string;
530
+ deployments?: string;
531
+ [key: string]: string | undefined;
532
+ };
533
+ events: string[];
534
+ installations_count?: number;
535
+ } | null;
536
+ reactions?: {
537
+ url: string;
538
+ total_count: number;
539
+ "+1": number;
540
+ "-1": number;
541
+ laugh: number;
542
+ confused: number;
543
+ heart: number;
544
+ hooray: number;
545
+ eyes: number;
546
+ rocket: number;
547
+ };
98
548
  }>;
99
549
  delete(): Promise<void>;
100
550
  };