@usine/github 0.0.1 → 0.1.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.
- package/README.md +107 -2
- package/dist/github-app.d.ts +23 -0
- package/dist/github-app.d.ts.map +1 -0
- package/dist/github-app.js +169 -0
- package/dist/github-app.js.map +1 -0
- package/dist/http.d.ts +19 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +68 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/item-writer.d.ts +22 -0
- package/dist/item-writer.d.ts.map +1 -0
- package/dist/item-writer.js +66 -0
- package/dist/item-writer.js.map +1 -0
- package/dist/jwt.d.ts +10 -0
- package/dist/jwt.d.ts.map +1 -0
- package/dist/jwt.js +72 -0
- package/dist/jwt.js.map +1 -0
- package/dist/local-secrets.d.ts +28 -0
- package/dist/local-secrets.d.ts.map +1 -0
- package/dist/local-secrets.js +56 -0
- package/dist/local-secrets.js.map +1 -0
- package/dist/model.d.ts +128 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +133 -0
- package/dist/model.js.map +1 -0
- package/dist/polling/model.d.ts +624 -0
- package/dist/polling/model.d.ts.map +1 -0
- package/dist/polling/model.js +188 -0
- package/dist/polling/model.js.map +1 -0
- package/dist/polling/polling.d.ts +18 -0
- package/dist/polling/polling.d.ts.map +1 -0
- package/dist/polling/polling.js +320 -0
- package/dist/polling/polling.js.map +1 -0
- package/dist/polling/queries.d.ts +3 -0
- package/dist/polling/queries.d.ts.map +1 -0
- package/dist/polling/queries.js +125 -0
- package/dist/polling/queries.js.map +1 -0
- package/package.json +17 -3
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* The payload keys that hold a `Timestamp` above. Bound to the slice schemas:
|
|
4
|
+
* a field added to a slice with a `Timestamp` value MUST be listed here, or it
|
|
5
|
+
* silently joins the content hash and re-fires every item once (ADR 0007 keeps
|
|
6
|
+
* timestamps in the payload but out of the hash).
|
|
7
|
+
*/
|
|
8
|
+
export declare const TIMESTAMP_FIELDS: ReadonlySet<string>;
|
|
9
|
+
export declare const EntityTag: Schema.brand<Schema.NonEmptyString, "GitHubEntityTag">;
|
|
10
|
+
export type EntityTag = typeof EntityTag.Type;
|
|
11
|
+
export declare const RepositoryLabelName: Schema.brand<Schema.NonEmptyString, "GitHubRepositoryLabelName">;
|
|
12
|
+
export type RepositoryLabelName = typeof RepositoryLabelName.Type;
|
|
13
|
+
declare const RepositoryLabelCatalog_base: Schema.Class<RepositoryLabelCatalog, Schema.Struct<{
|
|
14
|
+
readonly entityTag: Schema.OptionFromNullOr<Schema.brand<Schema.NonEmptyString, "GitHubEntityTag">>;
|
|
15
|
+
readonly labels: Schema.$Array<Schema.brand<Schema.NonEmptyString, "GitHubRepositoryLabelName">>;
|
|
16
|
+
}>, {}>;
|
|
17
|
+
/** A complete label catalog and the ETag for its canonical REST URL. */
|
|
18
|
+
export declare class RepositoryLabelCatalog extends RepositoryLabelCatalog_base {
|
|
19
|
+
}
|
|
20
|
+
declare const RepositoryLabelsNotModified_base: Schema.Class<RepositoryLabelsNotModified, Schema.TaggedStruct<"RepositoryLabelsNotModified", {}>, {}>;
|
|
21
|
+
/** GitHub confirmed that the catalog named by its ETag has not changed. */
|
|
22
|
+
export declare class RepositoryLabelsNotModified extends RepositoryLabelsNotModified_base {
|
|
23
|
+
}
|
|
24
|
+
export declare const RepositoryLabelDetection: Schema.Union<readonly [typeof RepositoryLabelCatalog, typeof RepositoryLabelsNotModified]>;
|
|
25
|
+
export type RepositoryLabelDetection = typeof RepositoryLabelDetection.Type;
|
|
26
|
+
declare const PollCursor_base: Schema.Class<PollCursor, Schema.Struct<{
|
|
27
|
+
readonly entityTag: Schema.OptionFromNullOr<Schema.brand<Schema.NonEmptyString, "GitHubEntityTag">>;
|
|
28
|
+
readonly watermark: Schema.OptionFromNullOr<Schema.DateTimeUtcFromString>;
|
|
29
|
+
}>, {}>;
|
|
30
|
+
/** Efficiency-only REST cursor. Losing it is safe because Event dedup is permanent. */
|
|
31
|
+
export declare class PollCursor extends PollCursor_base {
|
|
32
|
+
static readonly empty: PollCursor;
|
|
33
|
+
}
|
|
34
|
+
declare const ChangedIssue_base: Schema.Class<ChangedIssue, Schema.TaggedStruct<"ChangedIssue", {
|
|
35
|
+
readonly number: Schema.Int;
|
|
36
|
+
readonly updatedAt: Schema.DateTimeUtc;
|
|
37
|
+
}>, {}>;
|
|
38
|
+
export declare class ChangedIssue extends ChangedIssue_base {
|
|
39
|
+
}
|
|
40
|
+
declare const ChangedPullRequest_base: Schema.Class<ChangedPullRequest, Schema.TaggedStruct<"ChangedPullRequest", {
|
|
41
|
+
readonly number: Schema.Int;
|
|
42
|
+
readonly updatedAt: Schema.DateTimeUtc;
|
|
43
|
+
}>, {}>;
|
|
44
|
+
export declare class ChangedPullRequest extends ChangedPullRequest_base {
|
|
45
|
+
}
|
|
46
|
+
export declare const ChangedItem: Schema.Union<readonly [typeof ChangedIssue, typeof ChangedPullRequest]>;
|
|
47
|
+
export type ChangedItem = typeof ChangedItem.Type;
|
|
48
|
+
declare const RepositoryNotModified_base: Schema.Class<RepositoryNotModified, Schema.TaggedStruct<"RepositoryNotModified", {
|
|
49
|
+
readonly cursor: typeof PollCursor;
|
|
50
|
+
readonly nextPollAt: Schema.Option<Schema.DateTimeUtc>;
|
|
51
|
+
}>, {}>;
|
|
52
|
+
export declare class RepositoryNotModified extends RepositoryNotModified_base {
|
|
53
|
+
}
|
|
54
|
+
declare const RepositoryChanges_base: Schema.Class<RepositoryChanges, Schema.TaggedStruct<"RepositoryChanges", {
|
|
55
|
+
readonly cursor: typeof PollCursor;
|
|
56
|
+
readonly items: Schema.$Array<Schema.Union<readonly [typeof ChangedIssue, typeof ChangedPullRequest]>>;
|
|
57
|
+
/** True when the page cap ended the walk early; the rest arrives next cycle. */
|
|
58
|
+
readonly backlog: Schema.Boolean;
|
|
59
|
+
readonly nextPollAt: Schema.Option<Schema.DateTimeUtc>;
|
|
60
|
+
}>, {}>;
|
|
61
|
+
export declare class RepositoryChanges extends RepositoryChanges_base {
|
|
62
|
+
}
|
|
63
|
+
export declare const ChangeDetection: Schema.Union<readonly [typeof RepositoryNotModified, typeof RepositoryChanges]>;
|
|
64
|
+
export type ChangeDetection = typeof ChangeDetection.Type;
|
|
65
|
+
/** Exact v1 issue payload slice recorded by issue #11. */
|
|
66
|
+
export declare const IssuePayload: Schema.Struct<{
|
|
67
|
+
readonly number: Schema.Int;
|
|
68
|
+
readonly title: Schema.String;
|
|
69
|
+
readonly body: Schema.String;
|
|
70
|
+
readonly url: Schema.NonEmptyString;
|
|
71
|
+
readonly state: Schema.String;
|
|
72
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
73
|
+
readonly createdAt: Schema.String;
|
|
74
|
+
readonly updatedAt: Schema.String;
|
|
75
|
+
readonly closedAt: Schema.NullOr<Schema.String>;
|
|
76
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
77
|
+
readonly login: Schema.NonEmptyString;
|
|
78
|
+
}>>;
|
|
79
|
+
readonly issueType: Schema.NullOr<Schema.Struct<{
|
|
80
|
+
readonly name: Schema.String;
|
|
81
|
+
}>>;
|
|
82
|
+
readonly milestone: Schema.NullOr<Schema.Struct<{
|
|
83
|
+
readonly title: Schema.String;
|
|
84
|
+
}>>;
|
|
85
|
+
readonly labels: Schema.decodeTo<Schema.Codec<{
|
|
86
|
+
readonly totalCount: number;
|
|
87
|
+
readonly nodes: readonly {
|
|
88
|
+
readonly name: string;
|
|
89
|
+
}[];
|
|
90
|
+
}, {
|
|
91
|
+
readonly totalCount: number;
|
|
92
|
+
readonly nodes: readonly {
|
|
93
|
+
readonly name: string;
|
|
94
|
+
}[];
|
|
95
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
96
|
+
readonly totalCount: number;
|
|
97
|
+
readonly nodes: readonly {
|
|
98
|
+
readonly name: string;
|
|
99
|
+
}[];
|
|
100
|
+
}, {
|
|
101
|
+
readonly totalCount: number;
|
|
102
|
+
readonly nodes: readonly {
|
|
103
|
+
readonly name: string;
|
|
104
|
+
}[];
|
|
105
|
+
}, never, never>>, never, never>;
|
|
106
|
+
readonly assignees: Schema.Struct<{
|
|
107
|
+
readonly totalCount: Schema.Int;
|
|
108
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
109
|
+
readonly login: Schema.NonEmptyString;
|
|
110
|
+
}>>;
|
|
111
|
+
}>;
|
|
112
|
+
readonly comments: Schema.Struct<{
|
|
113
|
+
readonly totalCount: Schema.Int;
|
|
114
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
115
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
116
|
+
readonly login: Schema.NonEmptyString;
|
|
117
|
+
}>>;
|
|
118
|
+
readonly body: Schema.String;
|
|
119
|
+
readonly createdAt: Schema.String;
|
|
120
|
+
}>>;
|
|
121
|
+
}>;
|
|
122
|
+
readonly closedByPullRequestsReferences: Schema.decodeTo<Schema.Codec<{
|
|
123
|
+
readonly totalCount: number;
|
|
124
|
+
readonly nodes: readonly {
|
|
125
|
+
readonly number: number;
|
|
126
|
+
readonly state: string;
|
|
127
|
+
readonly isDraft: boolean;
|
|
128
|
+
readonly url: string;
|
|
129
|
+
}[];
|
|
130
|
+
}, {
|
|
131
|
+
readonly totalCount: number;
|
|
132
|
+
readonly nodes: readonly {
|
|
133
|
+
readonly number: number;
|
|
134
|
+
readonly state: string;
|
|
135
|
+
readonly isDraft: boolean;
|
|
136
|
+
readonly url: string;
|
|
137
|
+
}[];
|
|
138
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
139
|
+
readonly totalCount: number;
|
|
140
|
+
readonly nodes: readonly {
|
|
141
|
+
readonly number: number;
|
|
142
|
+
readonly state: string;
|
|
143
|
+
readonly isDraft: boolean;
|
|
144
|
+
readonly url: string;
|
|
145
|
+
}[];
|
|
146
|
+
}, {
|
|
147
|
+
readonly totalCount: number;
|
|
148
|
+
readonly nodes: readonly {
|
|
149
|
+
readonly number: number;
|
|
150
|
+
readonly state: string;
|
|
151
|
+
readonly isDraft: boolean;
|
|
152
|
+
readonly url: string;
|
|
153
|
+
}[];
|
|
154
|
+
}, never, never>>, never, never>;
|
|
155
|
+
}>;
|
|
156
|
+
export type IssuePayload = typeof IssuePayload.Type;
|
|
157
|
+
/** Exact v1 pull-request payload slice recorded by issue #11. */
|
|
158
|
+
export declare const PullRequestPayload: Schema.Struct<{
|
|
159
|
+
readonly number: Schema.Int;
|
|
160
|
+
readonly title: Schema.String;
|
|
161
|
+
readonly body: Schema.String;
|
|
162
|
+
readonly url: Schema.NonEmptyString;
|
|
163
|
+
readonly state: Schema.String;
|
|
164
|
+
readonly isDraft: Schema.Boolean;
|
|
165
|
+
readonly merged: Schema.Boolean;
|
|
166
|
+
readonly createdAt: Schema.String;
|
|
167
|
+
readonly updatedAt: Schema.String;
|
|
168
|
+
readonly mergedAt: Schema.NullOr<Schema.String>;
|
|
169
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
170
|
+
readonly login: Schema.NonEmptyString;
|
|
171
|
+
}>>;
|
|
172
|
+
readonly baseRefName: Schema.String;
|
|
173
|
+
readonly headRefName: Schema.String;
|
|
174
|
+
readonly headRefOid: Schema.NonEmptyString;
|
|
175
|
+
readonly additions: Schema.Int;
|
|
176
|
+
readonly deletions: Schema.Int;
|
|
177
|
+
readonly changedFiles: Schema.Int;
|
|
178
|
+
readonly reviewDecision: Schema.NullOr<Schema.String>;
|
|
179
|
+
readonly statusCheckRollup: Schema.NullOr<Schema.Struct<{
|
|
180
|
+
readonly state: Schema.String;
|
|
181
|
+
}>>;
|
|
182
|
+
readonly labels: Schema.decodeTo<Schema.Codec<{
|
|
183
|
+
readonly totalCount: number;
|
|
184
|
+
readonly nodes: readonly {
|
|
185
|
+
readonly name: string;
|
|
186
|
+
}[];
|
|
187
|
+
}, {
|
|
188
|
+
readonly totalCount: number;
|
|
189
|
+
readonly nodes: readonly {
|
|
190
|
+
readonly name: string;
|
|
191
|
+
}[];
|
|
192
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
193
|
+
readonly totalCount: number;
|
|
194
|
+
readonly nodes: readonly {
|
|
195
|
+
readonly name: string;
|
|
196
|
+
}[];
|
|
197
|
+
}, {
|
|
198
|
+
readonly totalCount: number;
|
|
199
|
+
readonly nodes: readonly {
|
|
200
|
+
readonly name: string;
|
|
201
|
+
}[];
|
|
202
|
+
}, never, never>>, never, never>;
|
|
203
|
+
readonly reviewRequests: Schema.decodeTo<Schema.Codec<{
|
|
204
|
+
readonly totalCount: number;
|
|
205
|
+
readonly nodes: readonly {
|
|
206
|
+
readonly requestedReviewer: {
|
|
207
|
+
readonly login?: string;
|
|
208
|
+
} | null;
|
|
209
|
+
}[];
|
|
210
|
+
}, {
|
|
211
|
+
readonly totalCount: number;
|
|
212
|
+
readonly nodes: readonly {
|
|
213
|
+
readonly requestedReviewer: {
|
|
214
|
+
readonly login?: string;
|
|
215
|
+
} | null;
|
|
216
|
+
}[];
|
|
217
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
218
|
+
readonly totalCount: number;
|
|
219
|
+
readonly nodes: readonly {
|
|
220
|
+
readonly requestedReviewer: {
|
|
221
|
+
readonly login?: string;
|
|
222
|
+
} | null;
|
|
223
|
+
}[];
|
|
224
|
+
}, {
|
|
225
|
+
readonly totalCount: number;
|
|
226
|
+
readonly nodes: readonly {
|
|
227
|
+
readonly requestedReviewer: {
|
|
228
|
+
readonly login?: string;
|
|
229
|
+
} | null;
|
|
230
|
+
}[];
|
|
231
|
+
}, never, never>>, never, never>;
|
|
232
|
+
readonly reviews: Schema.decodeTo<Schema.Codec<{
|
|
233
|
+
readonly totalCount: number;
|
|
234
|
+
readonly nodes: readonly {
|
|
235
|
+
readonly author: {
|
|
236
|
+
readonly login: string;
|
|
237
|
+
} | null;
|
|
238
|
+
readonly state: string;
|
|
239
|
+
readonly body: string;
|
|
240
|
+
readonly submittedAt: string | null;
|
|
241
|
+
readonly commit: {
|
|
242
|
+
readonly oid: string;
|
|
243
|
+
} | null;
|
|
244
|
+
}[];
|
|
245
|
+
}, {
|
|
246
|
+
readonly totalCount: number;
|
|
247
|
+
readonly nodes: readonly {
|
|
248
|
+
readonly author: {
|
|
249
|
+
readonly login: string;
|
|
250
|
+
} | null;
|
|
251
|
+
readonly state: string;
|
|
252
|
+
readonly body: string;
|
|
253
|
+
readonly submittedAt: string | null;
|
|
254
|
+
readonly commit: {
|
|
255
|
+
readonly oid: string;
|
|
256
|
+
} | null;
|
|
257
|
+
}[];
|
|
258
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
259
|
+
readonly totalCount: number;
|
|
260
|
+
readonly nodes: readonly {
|
|
261
|
+
readonly author: {
|
|
262
|
+
readonly login: string;
|
|
263
|
+
} | null;
|
|
264
|
+
readonly state: string;
|
|
265
|
+
readonly body: string;
|
|
266
|
+
readonly submittedAt: string | null;
|
|
267
|
+
readonly commit: {
|
|
268
|
+
readonly oid: string;
|
|
269
|
+
} | null;
|
|
270
|
+
}[];
|
|
271
|
+
}, {
|
|
272
|
+
readonly totalCount: number;
|
|
273
|
+
readonly nodes: readonly {
|
|
274
|
+
readonly author: {
|
|
275
|
+
readonly login: string;
|
|
276
|
+
} | null;
|
|
277
|
+
readonly state: string;
|
|
278
|
+
readonly body: string;
|
|
279
|
+
readonly submittedAt: string | null;
|
|
280
|
+
readonly commit: {
|
|
281
|
+
readonly oid: string;
|
|
282
|
+
} | null;
|
|
283
|
+
}[];
|
|
284
|
+
}, never, never>>, never, never>;
|
|
285
|
+
readonly reviewThreads: Schema.Struct<{
|
|
286
|
+
readonly totalCount: Schema.Int;
|
|
287
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
288
|
+
readonly isResolved: Schema.Boolean;
|
|
289
|
+
readonly isOutdated: Schema.Boolean;
|
|
290
|
+
readonly path: Schema.String;
|
|
291
|
+
readonly comments: Schema.Struct<{
|
|
292
|
+
readonly totalCount: Schema.Int;
|
|
293
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
294
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
295
|
+
readonly login: Schema.NonEmptyString;
|
|
296
|
+
}>>;
|
|
297
|
+
readonly body: Schema.String;
|
|
298
|
+
}>>;
|
|
299
|
+
}>;
|
|
300
|
+
}>>;
|
|
301
|
+
}>;
|
|
302
|
+
readonly comments: Schema.Struct<{
|
|
303
|
+
readonly totalCount: Schema.Int;
|
|
304
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
305
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
306
|
+
readonly login: Schema.NonEmptyString;
|
|
307
|
+
}>>;
|
|
308
|
+
readonly body: Schema.String;
|
|
309
|
+
readonly createdAt: Schema.String;
|
|
310
|
+
}>>;
|
|
311
|
+
}>;
|
|
312
|
+
readonly closingIssuesReferences: Schema.decodeTo<Schema.Codec<{
|
|
313
|
+
readonly totalCount: number;
|
|
314
|
+
readonly nodes: readonly {
|
|
315
|
+
readonly number: number;
|
|
316
|
+
readonly state: string;
|
|
317
|
+
}[];
|
|
318
|
+
}, {
|
|
319
|
+
readonly totalCount: number;
|
|
320
|
+
readonly nodes: readonly {
|
|
321
|
+
readonly number: number;
|
|
322
|
+
readonly state: string;
|
|
323
|
+
}[];
|
|
324
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
325
|
+
readonly totalCount: number;
|
|
326
|
+
readonly nodes: readonly {
|
|
327
|
+
readonly number: number;
|
|
328
|
+
readonly state: string;
|
|
329
|
+
}[];
|
|
330
|
+
}, {
|
|
331
|
+
readonly totalCount: number;
|
|
332
|
+
readonly nodes: readonly {
|
|
333
|
+
readonly number: number;
|
|
334
|
+
readonly state: string;
|
|
335
|
+
}[];
|
|
336
|
+
}, never, never>>, never, never>;
|
|
337
|
+
}>;
|
|
338
|
+
export type PullRequestPayload = typeof PullRequestPayload.Type;
|
|
339
|
+
export declare const ContentHash: Schema.brand<Schema.String, "GitHubContentHash">;
|
|
340
|
+
export type ContentHash = typeof ContentHash.Type;
|
|
341
|
+
declare const IssueSnapshot_base: Schema.Class<IssueSnapshot, Schema.TaggedStruct<"IssueSnapshot", {
|
|
342
|
+
readonly payload: Schema.Struct<{
|
|
343
|
+
readonly number: Schema.Int;
|
|
344
|
+
readonly title: Schema.String;
|
|
345
|
+
readonly body: Schema.String;
|
|
346
|
+
readonly url: Schema.NonEmptyString;
|
|
347
|
+
readonly state: Schema.String;
|
|
348
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
349
|
+
readonly createdAt: Schema.String;
|
|
350
|
+
readonly updatedAt: Schema.String;
|
|
351
|
+
readonly closedAt: Schema.NullOr<Schema.String>;
|
|
352
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
353
|
+
readonly login: Schema.NonEmptyString;
|
|
354
|
+
}>>;
|
|
355
|
+
readonly issueType: Schema.NullOr<Schema.Struct<{
|
|
356
|
+
readonly name: Schema.String;
|
|
357
|
+
}>>;
|
|
358
|
+
readonly milestone: Schema.NullOr<Schema.Struct<{
|
|
359
|
+
readonly title: Schema.String;
|
|
360
|
+
}>>;
|
|
361
|
+
readonly labels: Schema.decodeTo<Schema.Codec<{
|
|
362
|
+
readonly totalCount: number;
|
|
363
|
+
readonly nodes: readonly {
|
|
364
|
+
readonly name: string;
|
|
365
|
+
}[];
|
|
366
|
+
}, {
|
|
367
|
+
readonly totalCount: number;
|
|
368
|
+
readonly nodes: readonly {
|
|
369
|
+
readonly name: string;
|
|
370
|
+
}[];
|
|
371
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
372
|
+
readonly totalCount: number;
|
|
373
|
+
readonly nodes: readonly {
|
|
374
|
+
readonly name: string;
|
|
375
|
+
}[];
|
|
376
|
+
}, {
|
|
377
|
+
readonly totalCount: number;
|
|
378
|
+
readonly nodes: readonly {
|
|
379
|
+
readonly name: string;
|
|
380
|
+
}[];
|
|
381
|
+
}, never, never>>, never, never>;
|
|
382
|
+
readonly assignees: Schema.Struct<{
|
|
383
|
+
readonly totalCount: Schema.Int;
|
|
384
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
385
|
+
readonly login: Schema.NonEmptyString;
|
|
386
|
+
}>>;
|
|
387
|
+
}>;
|
|
388
|
+
readonly comments: Schema.Struct<{
|
|
389
|
+
readonly totalCount: Schema.Int;
|
|
390
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
391
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
392
|
+
readonly login: Schema.NonEmptyString;
|
|
393
|
+
}>>;
|
|
394
|
+
readonly body: Schema.String;
|
|
395
|
+
readonly createdAt: Schema.String;
|
|
396
|
+
}>>;
|
|
397
|
+
}>;
|
|
398
|
+
readonly closedByPullRequestsReferences: Schema.decodeTo<Schema.Codec<{
|
|
399
|
+
readonly totalCount: number;
|
|
400
|
+
readonly nodes: readonly {
|
|
401
|
+
readonly number: number;
|
|
402
|
+
readonly state: string;
|
|
403
|
+
readonly isDraft: boolean;
|
|
404
|
+
readonly url: string;
|
|
405
|
+
}[];
|
|
406
|
+
}, {
|
|
407
|
+
readonly totalCount: number;
|
|
408
|
+
readonly nodes: readonly {
|
|
409
|
+
readonly number: number;
|
|
410
|
+
readonly state: string;
|
|
411
|
+
readonly isDraft: boolean;
|
|
412
|
+
readonly url: string;
|
|
413
|
+
}[];
|
|
414
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
415
|
+
readonly totalCount: number;
|
|
416
|
+
readonly nodes: readonly {
|
|
417
|
+
readonly number: number;
|
|
418
|
+
readonly state: string;
|
|
419
|
+
readonly isDraft: boolean;
|
|
420
|
+
readonly url: string;
|
|
421
|
+
}[];
|
|
422
|
+
}, {
|
|
423
|
+
readonly totalCount: number;
|
|
424
|
+
readonly nodes: readonly {
|
|
425
|
+
readonly number: number;
|
|
426
|
+
readonly state: string;
|
|
427
|
+
readonly isDraft: boolean;
|
|
428
|
+
readonly url: string;
|
|
429
|
+
}[];
|
|
430
|
+
}, never, never>>, never, never>;
|
|
431
|
+
}>;
|
|
432
|
+
readonly contentHash: Schema.brand<Schema.String, "GitHubContentHash">;
|
|
433
|
+
}>, {}>;
|
|
434
|
+
export declare class IssueSnapshot extends IssueSnapshot_base {
|
|
435
|
+
}
|
|
436
|
+
declare const PullRequestSnapshot_base: Schema.Class<PullRequestSnapshot, Schema.TaggedStruct<"PullRequestSnapshot", {
|
|
437
|
+
readonly payload: Schema.Struct<{
|
|
438
|
+
readonly number: Schema.Int;
|
|
439
|
+
readonly title: Schema.String;
|
|
440
|
+
readonly body: Schema.String;
|
|
441
|
+
readonly url: Schema.NonEmptyString;
|
|
442
|
+
readonly state: Schema.String;
|
|
443
|
+
readonly isDraft: Schema.Boolean;
|
|
444
|
+
readonly merged: Schema.Boolean;
|
|
445
|
+
readonly createdAt: Schema.String;
|
|
446
|
+
readonly updatedAt: Schema.String;
|
|
447
|
+
readonly mergedAt: Schema.NullOr<Schema.String>;
|
|
448
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
449
|
+
readonly login: Schema.NonEmptyString;
|
|
450
|
+
}>>;
|
|
451
|
+
readonly baseRefName: Schema.String;
|
|
452
|
+
readonly headRefName: Schema.String;
|
|
453
|
+
readonly headRefOid: Schema.NonEmptyString;
|
|
454
|
+
readonly additions: Schema.Int;
|
|
455
|
+
readonly deletions: Schema.Int;
|
|
456
|
+
readonly changedFiles: Schema.Int;
|
|
457
|
+
readonly reviewDecision: Schema.NullOr<Schema.String>;
|
|
458
|
+
readonly statusCheckRollup: Schema.NullOr<Schema.Struct<{
|
|
459
|
+
readonly state: Schema.String;
|
|
460
|
+
}>>;
|
|
461
|
+
readonly labels: Schema.decodeTo<Schema.Codec<{
|
|
462
|
+
readonly totalCount: number;
|
|
463
|
+
readonly nodes: readonly {
|
|
464
|
+
readonly name: string;
|
|
465
|
+
}[];
|
|
466
|
+
}, {
|
|
467
|
+
readonly totalCount: number;
|
|
468
|
+
readonly nodes: readonly {
|
|
469
|
+
readonly name: string;
|
|
470
|
+
}[];
|
|
471
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
472
|
+
readonly totalCount: number;
|
|
473
|
+
readonly nodes: readonly {
|
|
474
|
+
readonly name: string;
|
|
475
|
+
}[];
|
|
476
|
+
}, {
|
|
477
|
+
readonly totalCount: number;
|
|
478
|
+
readonly nodes: readonly {
|
|
479
|
+
readonly name: string;
|
|
480
|
+
}[];
|
|
481
|
+
}, never, never>>, never, never>;
|
|
482
|
+
readonly reviewRequests: Schema.decodeTo<Schema.Codec<{
|
|
483
|
+
readonly totalCount: number;
|
|
484
|
+
readonly nodes: readonly {
|
|
485
|
+
readonly requestedReviewer: {
|
|
486
|
+
readonly login?: string;
|
|
487
|
+
} | null;
|
|
488
|
+
}[];
|
|
489
|
+
}, {
|
|
490
|
+
readonly totalCount: number;
|
|
491
|
+
readonly nodes: readonly {
|
|
492
|
+
readonly requestedReviewer: {
|
|
493
|
+
readonly login?: string;
|
|
494
|
+
} | null;
|
|
495
|
+
}[];
|
|
496
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
497
|
+
readonly totalCount: number;
|
|
498
|
+
readonly nodes: readonly {
|
|
499
|
+
readonly requestedReviewer: {
|
|
500
|
+
readonly login?: string;
|
|
501
|
+
} | null;
|
|
502
|
+
}[];
|
|
503
|
+
}, {
|
|
504
|
+
readonly totalCount: number;
|
|
505
|
+
readonly nodes: readonly {
|
|
506
|
+
readonly requestedReviewer: {
|
|
507
|
+
readonly login?: string;
|
|
508
|
+
} | null;
|
|
509
|
+
}[];
|
|
510
|
+
}, never, never>>, never, never>;
|
|
511
|
+
readonly reviews: Schema.decodeTo<Schema.Codec<{
|
|
512
|
+
readonly totalCount: number;
|
|
513
|
+
readonly nodes: readonly {
|
|
514
|
+
readonly author: {
|
|
515
|
+
readonly login: string;
|
|
516
|
+
} | null;
|
|
517
|
+
readonly state: string;
|
|
518
|
+
readonly body: string;
|
|
519
|
+
readonly submittedAt: string | null;
|
|
520
|
+
readonly commit: {
|
|
521
|
+
readonly oid: string;
|
|
522
|
+
} | null;
|
|
523
|
+
}[];
|
|
524
|
+
}, {
|
|
525
|
+
readonly totalCount: number;
|
|
526
|
+
readonly nodes: readonly {
|
|
527
|
+
readonly author: {
|
|
528
|
+
readonly login: string;
|
|
529
|
+
} | null;
|
|
530
|
+
readonly state: string;
|
|
531
|
+
readonly body: string;
|
|
532
|
+
readonly submittedAt: string | null;
|
|
533
|
+
readonly commit: {
|
|
534
|
+
readonly oid: string;
|
|
535
|
+
} | null;
|
|
536
|
+
}[];
|
|
537
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
538
|
+
readonly totalCount: number;
|
|
539
|
+
readonly nodes: readonly {
|
|
540
|
+
readonly author: {
|
|
541
|
+
readonly login: string;
|
|
542
|
+
} | null;
|
|
543
|
+
readonly state: string;
|
|
544
|
+
readonly body: string;
|
|
545
|
+
readonly submittedAt: string | null;
|
|
546
|
+
readonly commit: {
|
|
547
|
+
readonly oid: string;
|
|
548
|
+
} | null;
|
|
549
|
+
}[];
|
|
550
|
+
}, {
|
|
551
|
+
readonly totalCount: number;
|
|
552
|
+
readonly nodes: readonly {
|
|
553
|
+
readonly author: {
|
|
554
|
+
readonly login: string;
|
|
555
|
+
} | null;
|
|
556
|
+
readonly state: string;
|
|
557
|
+
readonly body: string;
|
|
558
|
+
readonly submittedAt: string | null;
|
|
559
|
+
readonly commit: {
|
|
560
|
+
readonly oid: string;
|
|
561
|
+
} | null;
|
|
562
|
+
}[];
|
|
563
|
+
}, never, never>>, never, never>;
|
|
564
|
+
readonly reviewThreads: Schema.Struct<{
|
|
565
|
+
readonly totalCount: Schema.Int;
|
|
566
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
567
|
+
readonly isResolved: Schema.Boolean;
|
|
568
|
+
readonly isOutdated: Schema.Boolean;
|
|
569
|
+
readonly path: Schema.String;
|
|
570
|
+
readonly comments: Schema.Struct<{
|
|
571
|
+
readonly totalCount: Schema.Int;
|
|
572
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
573
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
574
|
+
readonly login: Schema.NonEmptyString;
|
|
575
|
+
}>>;
|
|
576
|
+
readonly body: Schema.String;
|
|
577
|
+
}>>;
|
|
578
|
+
}>;
|
|
579
|
+
}>>;
|
|
580
|
+
}>;
|
|
581
|
+
readonly comments: Schema.Struct<{
|
|
582
|
+
readonly totalCount: Schema.Int;
|
|
583
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
584
|
+
readonly author: Schema.NullOr<Schema.Struct<{
|
|
585
|
+
readonly login: Schema.NonEmptyString;
|
|
586
|
+
}>>;
|
|
587
|
+
readonly body: Schema.String;
|
|
588
|
+
readonly createdAt: Schema.String;
|
|
589
|
+
}>>;
|
|
590
|
+
}>;
|
|
591
|
+
readonly closingIssuesReferences: Schema.decodeTo<Schema.Codec<{
|
|
592
|
+
readonly totalCount: number;
|
|
593
|
+
readonly nodes: readonly {
|
|
594
|
+
readonly number: number;
|
|
595
|
+
readonly state: string;
|
|
596
|
+
}[];
|
|
597
|
+
}, {
|
|
598
|
+
readonly totalCount: number;
|
|
599
|
+
readonly nodes: readonly {
|
|
600
|
+
readonly number: number;
|
|
601
|
+
readonly state: string;
|
|
602
|
+
}[];
|
|
603
|
+
}, never, never>, Schema.NullOr<Schema.Codec<{
|
|
604
|
+
readonly totalCount: number;
|
|
605
|
+
readonly nodes: readonly {
|
|
606
|
+
readonly number: number;
|
|
607
|
+
readonly state: string;
|
|
608
|
+
}[];
|
|
609
|
+
}, {
|
|
610
|
+
readonly totalCount: number;
|
|
611
|
+
readonly nodes: readonly {
|
|
612
|
+
readonly number: number;
|
|
613
|
+
readonly state: string;
|
|
614
|
+
}[];
|
|
615
|
+
}, never, never>>, never, never>;
|
|
616
|
+
}>;
|
|
617
|
+
readonly contentHash: Schema.brand<Schema.String, "GitHubContentHash">;
|
|
618
|
+
}>, {}>;
|
|
619
|
+
export declare class PullRequestSnapshot extends PullRequestSnapshot_base {
|
|
620
|
+
}
|
|
621
|
+
export declare const PayloadSnapshot: Schema.Union<readonly [typeof IssueSnapshot, typeof PullRequestSnapshot]>;
|
|
622
|
+
export type PayloadSnapshot = typeof PayloadSnapshot.Type;
|
|
623
|
+
export {};
|
|
624
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/polling/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAUtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAM/C,CAAC;AAEH,eAAO,MAAM,SAAS,wDAA8D,CAAC;AACrF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,mBAAmB,kEAE/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;;;;;AAElE,wEAAwE;AACxE,qBAAa,sBAAuB,SAAQ,2BAK1C;CAAG;;AAEL,2EAA2E;AAC3E,qBAAa,2BAA4B,SAAQ,gCAEb;CAAG;AAEvC,eAAO,MAAM,wBAAwB,4FAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;;;;;AAE5E,uFAAuF;AACvF,qBAAa,UAAW,SAAQ,eAG9B;IACA,MAAM,CAAC,QAAQ,CAAC,KAAK,aAGlB;CACJ;;;;;AAED,qBAAa,YAAa,SAAQ,iBAMjC;CAAG;;;;;AAEJ,qBAAa,kBAAmB,SAAQ,uBAKtC;CAAG;AAEL,eAAO,MAAM,WAAW,yEAAmD,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;;;;;AAElD,qBAAa,qBAAsB,SAAQ,0BAKzC;CAAG;;;;IAOH,gFAAgF;;;;AALlF,qBAAa,iBAAkB,SAAQ,sBAQrC;CAAG;AAEL,eAAO,MAAM,eAAe,iFAA2D,CAAC;AACxF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAgC1D,0DAA0D;AAC1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;AAepD,iEAAiE;AACjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsD7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAEhE,eAAO,MAAM,WAAW,kDAEiB,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,qBAAa,aAAc,SAAQ,kBAMlC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,mBAAoB,SAAQ,wBAKvC;CAAG;AAEL,eAAO,MAAM,eAAe,2EAAqD,CAAC;AAClF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC"}
|