@corsair-dev/linear 0.1.2 → 0.1.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.
- package/dist/endpoints/index.d.ts +371 -371
- package/dist/endpoints/types.d.ts +597 -7920
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +1072 -4156
- package/dist/index.d.ts.map +1 -1
- package/dist/schema/database.d.ts +39 -180
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +39 -180
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +232 -244
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/types.d.ts +308 -2438
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ export declare const CommentWebhooks: {
|
|
|
2
2
|
create: {
|
|
3
3
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
4
4
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
5
|
+
action: "create";
|
|
5
6
|
type: "Comment";
|
|
6
7
|
data: {
|
|
8
|
+
[x: string]: any;
|
|
7
9
|
id: string;
|
|
8
10
|
body: string;
|
|
9
11
|
createdAt: string;
|
|
@@ -11,17 +13,16 @@ export declare const CommentWebhooks: {
|
|
|
11
13
|
issueId: string;
|
|
12
14
|
userId: string;
|
|
13
15
|
editedAt?: string | undefined;
|
|
14
|
-
} & {
|
|
15
|
-
[k: string]: any;
|
|
16
16
|
};
|
|
17
|
-
createdAt: string;
|
|
18
17
|
url: string;
|
|
19
|
-
|
|
18
|
+
createdAt: string;
|
|
20
19
|
organizationId: string;
|
|
21
20
|
webhookId: string;
|
|
22
21
|
}, {
|
|
22
|
+
action: "create";
|
|
23
23
|
type: "Comment";
|
|
24
24
|
data: {
|
|
25
|
+
[x: string]: any;
|
|
25
26
|
id: string;
|
|
26
27
|
body: string;
|
|
27
28
|
createdAt: string;
|
|
@@ -29,12 +30,9 @@ export declare const CommentWebhooks: {
|
|
|
29
30
|
issueId: string;
|
|
30
31
|
userId: string;
|
|
31
32
|
editedAt?: string | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
[k: string]: any;
|
|
34
33
|
};
|
|
35
|
-
createdAt: string;
|
|
36
34
|
url: string;
|
|
37
|
-
|
|
35
|
+
createdAt: string;
|
|
38
36
|
organizationId: string;
|
|
39
37
|
webhookId: string;
|
|
40
38
|
}>;
|
|
@@ -42,8 +40,10 @@ export declare const CommentWebhooks: {
|
|
|
42
40
|
update: {
|
|
43
41
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
44
42
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
43
|
+
action: "update";
|
|
45
44
|
type: "Comment";
|
|
46
45
|
data: {
|
|
46
|
+
[x: string]: any;
|
|
47
47
|
id: string;
|
|
48
48
|
body: string;
|
|
49
49
|
createdAt: string;
|
|
@@ -51,26 +51,26 @@ export declare const CommentWebhooks: {
|
|
|
51
51
|
issueId: string;
|
|
52
52
|
userId: string;
|
|
53
53
|
editedAt?: string | undefined;
|
|
54
|
-
} & {
|
|
55
|
-
[k: string]: any;
|
|
56
54
|
};
|
|
57
|
-
createdAt: string;
|
|
58
55
|
url: string;
|
|
59
|
-
|
|
56
|
+
createdAt: string;
|
|
60
57
|
organizationId: string;
|
|
61
58
|
webhookId: string;
|
|
62
|
-
updatedFrom?:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
updatedFrom?: {
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
id?: string | undefined;
|
|
62
|
+
body?: string | undefined;
|
|
63
|
+
editedAt?: string | undefined;
|
|
64
|
+
createdAt?: string | undefined;
|
|
65
|
+
updatedAt?: string | undefined;
|
|
66
|
+
issueId?: string | undefined;
|
|
67
|
+
userId?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
71
69
|
}, {
|
|
70
|
+
action: "update";
|
|
72
71
|
type: "Comment";
|
|
73
72
|
data: {
|
|
73
|
+
[x: string]: any;
|
|
74
74
|
id: string;
|
|
75
75
|
body: string;
|
|
76
76
|
createdAt: string;
|
|
@@ -78,30 +78,30 @@ export declare const CommentWebhooks: {
|
|
|
78
78
|
issueId: string;
|
|
79
79
|
userId: string;
|
|
80
80
|
editedAt?: string | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
[k: string]: any;
|
|
83
81
|
};
|
|
84
|
-
createdAt: string;
|
|
85
82
|
url: string;
|
|
86
|
-
|
|
83
|
+
createdAt: string;
|
|
87
84
|
organizationId: string;
|
|
88
85
|
webhookId: string;
|
|
89
|
-
updatedFrom?:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
updatedFrom?: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
id?: string | undefined;
|
|
89
|
+
body?: string | undefined;
|
|
90
|
+
editedAt?: string | undefined;
|
|
91
|
+
createdAt?: string | undefined;
|
|
92
|
+
updatedAt?: string | undefined;
|
|
93
|
+
issueId?: string | undefined;
|
|
94
|
+
userId?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
98
96
|
}>;
|
|
99
97
|
};
|
|
100
98
|
remove: {
|
|
101
99
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
102
100
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
101
|
+
action: "remove";
|
|
103
102
|
type: "Comment";
|
|
104
103
|
data: {
|
|
104
|
+
[x: string]: any;
|
|
105
105
|
id: string;
|
|
106
106
|
body: string;
|
|
107
107
|
createdAt: string;
|
|
@@ -109,17 +109,16 @@ export declare const CommentWebhooks: {
|
|
|
109
109
|
issueId: string;
|
|
110
110
|
userId: string;
|
|
111
111
|
editedAt?: string | undefined;
|
|
112
|
-
} & {
|
|
113
|
-
[k: string]: any;
|
|
114
112
|
};
|
|
115
|
-
createdAt: string;
|
|
116
113
|
url: string;
|
|
117
|
-
|
|
114
|
+
createdAt: string;
|
|
118
115
|
organizationId: string;
|
|
119
116
|
webhookId: string;
|
|
120
117
|
}, {
|
|
118
|
+
action: "remove";
|
|
121
119
|
type: "Comment";
|
|
122
120
|
data: {
|
|
121
|
+
[x: string]: any;
|
|
123
122
|
id: string;
|
|
124
123
|
body: string;
|
|
125
124
|
createdAt: string;
|
|
@@ -127,12 +126,9 @@ export declare const CommentWebhooks: {
|
|
|
127
126
|
issueId: string;
|
|
128
127
|
userId: string;
|
|
129
128
|
editedAt?: string | undefined;
|
|
130
|
-
} & {
|
|
131
|
-
[k: string]: any;
|
|
132
129
|
};
|
|
133
|
-
createdAt: string;
|
|
134
130
|
url: string;
|
|
135
|
-
|
|
131
|
+
createdAt: string;
|
|
136
132
|
organizationId: string;
|
|
137
133
|
webhookId: string;
|
|
138
134
|
}>;
|
|
@@ -142,16 +138,18 @@ export declare const IssueWebhooks: {
|
|
|
142
138
|
create: {
|
|
143
139
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
144
140
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
141
|
+
action: "create";
|
|
145
142
|
type: "Issue";
|
|
146
143
|
data: {
|
|
147
|
-
|
|
144
|
+
[x: string]: any;
|
|
148
145
|
id: string;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
updatedAt: string;
|
|
151
146
|
identifier: string;
|
|
152
147
|
title: string;
|
|
148
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
153
149
|
sortOrder: number;
|
|
154
150
|
previousIdentifiers: string[];
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedAt: string;
|
|
155
153
|
branchName: string;
|
|
156
154
|
customerTicketCount: number;
|
|
157
155
|
stateId: string;
|
|
@@ -167,25 +165,24 @@ export declare const IssueWebhooks: {
|
|
|
167
165
|
dueDate?: string | undefined;
|
|
168
166
|
trashed?: boolean | undefined;
|
|
169
167
|
snoozedUntilAt?: string | undefined;
|
|
170
|
-
} & {
|
|
171
|
-
[k: string]: any;
|
|
172
168
|
};
|
|
173
|
-
createdAt: string;
|
|
174
169
|
url: string;
|
|
175
|
-
|
|
170
|
+
createdAt: string;
|
|
176
171
|
organizationId: string;
|
|
177
172
|
webhookId: string;
|
|
178
173
|
}, {
|
|
174
|
+
action: "create";
|
|
179
175
|
type: "Issue";
|
|
180
176
|
data: {
|
|
181
|
-
|
|
177
|
+
[x: string]: any;
|
|
182
178
|
id: string;
|
|
183
|
-
createdAt: string;
|
|
184
|
-
updatedAt: string;
|
|
185
179
|
identifier: string;
|
|
186
180
|
title: string;
|
|
181
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
187
182
|
sortOrder: number;
|
|
188
183
|
previousIdentifiers: string[];
|
|
184
|
+
createdAt: string;
|
|
185
|
+
updatedAt: string;
|
|
189
186
|
branchName: string;
|
|
190
187
|
customerTicketCount: number;
|
|
191
188
|
stateId: string;
|
|
@@ -201,12 +198,9 @@ export declare const IssueWebhooks: {
|
|
|
201
198
|
dueDate?: string | undefined;
|
|
202
199
|
trashed?: boolean | undefined;
|
|
203
200
|
snoozedUntilAt?: string | undefined;
|
|
204
|
-
} & {
|
|
205
|
-
[k: string]: any;
|
|
206
201
|
};
|
|
207
|
-
createdAt: string;
|
|
208
202
|
url: string;
|
|
209
|
-
|
|
203
|
+
createdAt: string;
|
|
210
204
|
organizationId: string;
|
|
211
205
|
webhookId: string;
|
|
212
206
|
}>;
|
|
@@ -214,16 +208,18 @@ export declare const IssueWebhooks: {
|
|
|
214
208
|
update: {
|
|
215
209
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
216
210
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
211
|
+
action: "update";
|
|
217
212
|
type: "Issue";
|
|
218
213
|
data: {
|
|
219
|
-
|
|
214
|
+
[x: string]: any;
|
|
220
215
|
id: string;
|
|
221
|
-
createdAt: string;
|
|
222
|
-
updatedAt: string;
|
|
223
216
|
identifier: string;
|
|
224
217
|
title: string;
|
|
218
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
225
219
|
sortOrder: number;
|
|
226
220
|
previousIdentifiers: string[];
|
|
221
|
+
createdAt: string;
|
|
222
|
+
updatedAt: string;
|
|
227
223
|
branchName: string;
|
|
228
224
|
customerTicketCount: number;
|
|
229
225
|
stateId: string;
|
|
@@ -239,50 +235,50 @@ export declare const IssueWebhooks: {
|
|
|
239
235
|
dueDate?: string | undefined;
|
|
240
236
|
trashed?: boolean | undefined;
|
|
241
237
|
snoozedUntilAt?: string | undefined;
|
|
242
|
-
} & {
|
|
243
|
-
[k: string]: any;
|
|
244
238
|
};
|
|
245
|
-
createdAt: string;
|
|
246
239
|
url: string;
|
|
247
|
-
|
|
240
|
+
createdAt: string;
|
|
248
241
|
organizationId: string;
|
|
249
242
|
webhookId: string;
|
|
250
|
-
updatedFrom?:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
243
|
+
updatedFrom?: {
|
|
244
|
+
[x: string]: any;
|
|
245
|
+
id?: string | undefined;
|
|
246
|
+
identifier?: string | undefined;
|
|
247
|
+
title?: string | undefined;
|
|
248
|
+
description?: string | undefined;
|
|
249
|
+
priority?: 0 | 3 | 2 | 1 | 4 | undefined;
|
|
250
|
+
estimate?: number | undefined;
|
|
251
|
+
sortOrder?: number | undefined;
|
|
252
|
+
startedAt?: string | undefined;
|
|
253
|
+
completedAt?: string | undefined;
|
|
254
|
+
canceledAt?: string | undefined;
|
|
255
|
+
autoArchivedAt?: string | undefined;
|
|
256
|
+
autoClosedAt?: string | undefined;
|
|
257
|
+
dueDate?: string | undefined;
|
|
258
|
+
trashed?: boolean | undefined;
|
|
259
|
+
snoozedUntilAt?: string | undefined;
|
|
260
|
+
previousIdentifiers?: string[] | undefined;
|
|
261
|
+
createdAt?: string | undefined;
|
|
262
|
+
updatedAt?: string | undefined;
|
|
263
|
+
branchName?: string | undefined;
|
|
264
|
+
customerTicketCount?: number | undefined;
|
|
265
|
+
stateId?: string | undefined;
|
|
266
|
+
teamId?: string | undefined;
|
|
267
|
+
creatorId?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
275
269
|
}, {
|
|
270
|
+
action: "update";
|
|
276
271
|
type: "Issue";
|
|
277
272
|
data: {
|
|
278
|
-
|
|
273
|
+
[x: string]: any;
|
|
279
274
|
id: string;
|
|
280
|
-
createdAt: string;
|
|
281
|
-
updatedAt: string;
|
|
282
275
|
identifier: string;
|
|
283
276
|
title: string;
|
|
277
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
284
278
|
sortOrder: number;
|
|
285
279
|
previousIdentifiers: string[];
|
|
280
|
+
createdAt: string;
|
|
281
|
+
updatedAt: string;
|
|
286
282
|
branchName: string;
|
|
287
283
|
customerTicketCount: number;
|
|
288
284
|
stateId: string;
|
|
@@ -298,54 +294,54 @@ export declare const IssueWebhooks: {
|
|
|
298
294
|
dueDate?: string | undefined;
|
|
299
295
|
trashed?: boolean | undefined;
|
|
300
296
|
snoozedUntilAt?: string | undefined;
|
|
301
|
-
} & {
|
|
302
|
-
[k: string]: any;
|
|
303
297
|
};
|
|
304
|
-
createdAt: string;
|
|
305
298
|
url: string;
|
|
306
|
-
|
|
299
|
+
createdAt: string;
|
|
307
300
|
organizationId: string;
|
|
308
301
|
webhookId: string;
|
|
309
|
-
updatedFrom?:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
302
|
+
updatedFrom?: {
|
|
303
|
+
[x: string]: any;
|
|
304
|
+
id?: string | undefined;
|
|
305
|
+
identifier?: string | undefined;
|
|
306
|
+
title?: string | undefined;
|
|
307
|
+
description?: string | undefined;
|
|
308
|
+
priority?: 0 | 3 | 2 | 1 | 4 | undefined;
|
|
309
|
+
estimate?: number | undefined;
|
|
310
|
+
sortOrder?: number | undefined;
|
|
311
|
+
startedAt?: string | undefined;
|
|
312
|
+
completedAt?: string | undefined;
|
|
313
|
+
canceledAt?: string | undefined;
|
|
314
|
+
autoArchivedAt?: string | undefined;
|
|
315
|
+
autoClosedAt?: string | undefined;
|
|
316
|
+
dueDate?: string | undefined;
|
|
317
|
+
trashed?: boolean | undefined;
|
|
318
|
+
snoozedUntilAt?: string | undefined;
|
|
319
|
+
previousIdentifiers?: string[] | undefined;
|
|
320
|
+
createdAt?: string | undefined;
|
|
321
|
+
updatedAt?: string | undefined;
|
|
322
|
+
branchName?: string | undefined;
|
|
323
|
+
customerTicketCount?: number | undefined;
|
|
324
|
+
stateId?: string | undefined;
|
|
325
|
+
teamId?: string | undefined;
|
|
326
|
+
creatorId?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
334
328
|
}>;
|
|
335
329
|
};
|
|
336
330
|
remove: {
|
|
337
331
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
338
332
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
333
|
+
action: "remove";
|
|
339
334
|
type: "Issue";
|
|
340
335
|
data: {
|
|
341
|
-
|
|
336
|
+
[x: string]: any;
|
|
342
337
|
id: string;
|
|
343
|
-
createdAt: string;
|
|
344
|
-
updatedAt: string;
|
|
345
338
|
identifier: string;
|
|
346
339
|
title: string;
|
|
340
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
347
341
|
sortOrder: number;
|
|
348
342
|
previousIdentifiers: string[];
|
|
343
|
+
createdAt: string;
|
|
344
|
+
updatedAt: string;
|
|
349
345
|
branchName: string;
|
|
350
346
|
customerTicketCount: number;
|
|
351
347
|
stateId: string;
|
|
@@ -361,25 +357,24 @@ export declare const IssueWebhooks: {
|
|
|
361
357
|
dueDate?: string | undefined;
|
|
362
358
|
trashed?: boolean | undefined;
|
|
363
359
|
snoozedUntilAt?: string | undefined;
|
|
364
|
-
} & {
|
|
365
|
-
[k: string]: any;
|
|
366
360
|
};
|
|
367
|
-
createdAt: string;
|
|
368
361
|
url: string;
|
|
369
|
-
|
|
362
|
+
createdAt: string;
|
|
370
363
|
organizationId: string;
|
|
371
364
|
webhookId: string;
|
|
372
365
|
}, {
|
|
366
|
+
action: "remove";
|
|
373
367
|
type: "Issue";
|
|
374
368
|
data: {
|
|
375
|
-
|
|
369
|
+
[x: string]: any;
|
|
376
370
|
id: string;
|
|
377
|
-
createdAt: string;
|
|
378
|
-
updatedAt: string;
|
|
379
371
|
identifier: string;
|
|
380
372
|
title: string;
|
|
373
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
381
374
|
sortOrder: number;
|
|
382
375
|
previousIdentifiers: string[];
|
|
376
|
+
createdAt: string;
|
|
377
|
+
updatedAt: string;
|
|
383
378
|
branchName: string;
|
|
384
379
|
customerTicketCount: number;
|
|
385
380
|
stateId: string;
|
|
@@ -395,12 +390,9 @@ export declare const IssueWebhooks: {
|
|
|
395
390
|
dueDate?: string | undefined;
|
|
396
391
|
trashed?: boolean | undefined;
|
|
397
392
|
snoozedUntilAt?: string | undefined;
|
|
398
|
-
} & {
|
|
399
|
-
[k: string]: any;
|
|
400
393
|
};
|
|
401
|
-
createdAt: string;
|
|
402
394
|
url: string;
|
|
403
|
-
|
|
395
|
+
createdAt: string;
|
|
404
396
|
organizationId: string;
|
|
405
397
|
webhookId: string;
|
|
406
398
|
}>;
|
|
@@ -410,65 +402,63 @@ export declare const ProjectWebhooks: {
|
|
|
410
402
|
create: {
|
|
411
403
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
412
404
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
405
|
+
action: "create";
|
|
413
406
|
type: "Project";
|
|
414
407
|
data: {
|
|
415
|
-
|
|
408
|
+
[x: string]: any;
|
|
416
409
|
id: string;
|
|
417
410
|
name: string;
|
|
418
|
-
|
|
419
|
-
createdAt: string;
|
|
420
|
-
updatedAt: string;
|
|
411
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
421
412
|
sortOrder: number;
|
|
422
413
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
423
414
|
progress: number;
|
|
424
415
|
url: string;
|
|
425
416
|
completedScopeHistory: number[];
|
|
426
417
|
inProgressScopeHistory: number[];
|
|
418
|
+
scope: number;
|
|
419
|
+
createdAt: string;
|
|
420
|
+
updatedAt: string;
|
|
427
421
|
description?: string | undefined;
|
|
428
|
-
startedAt?: string | undefined;
|
|
429
|
-
completedAt?: string | undefined;
|
|
430
|
-
canceledAt?: string | undefined;
|
|
431
422
|
icon?: string | undefined;
|
|
432
423
|
color?: string | undefined;
|
|
433
424
|
startDate?: string | undefined;
|
|
434
425
|
targetDate?: string | undefined;
|
|
435
|
-
|
|
436
|
-
|
|
426
|
+
completedAt?: string | undefined;
|
|
427
|
+
canceledAt?: string | undefined;
|
|
428
|
+
startedAt?: string | undefined;
|
|
437
429
|
};
|
|
438
|
-
createdAt: string;
|
|
439
430
|
url: string;
|
|
440
|
-
|
|
431
|
+
createdAt: string;
|
|
441
432
|
organizationId: string;
|
|
442
433
|
webhookId: string;
|
|
443
434
|
}, {
|
|
435
|
+
action: "create";
|
|
444
436
|
type: "Project";
|
|
445
437
|
data: {
|
|
446
|
-
|
|
438
|
+
[x: string]: any;
|
|
447
439
|
id: string;
|
|
448
440
|
name: string;
|
|
449
|
-
|
|
450
|
-
createdAt: string;
|
|
451
|
-
updatedAt: string;
|
|
441
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
452
442
|
sortOrder: number;
|
|
453
443
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
454
444
|
progress: number;
|
|
455
445
|
url: string;
|
|
456
446
|
completedScopeHistory: number[];
|
|
457
447
|
inProgressScopeHistory: number[];
|
|
448
|
+
scope: number;
|
|
449
|
+
createdAt: string;
|
|
450
|
+
updatedAt: string;
|
|
458
451
|
description?: string | undefined;
|
|
459
|
-
startedAt?: string | undefined;
|
|
460
|
-
completedAt?: string | undefined;
|
|
461
|
-
canceledAt?: string | undefined;
|
|
462
452
|
icon?: string | undefined;
|
|
463
453
|
color?: string | undefined;
|
|
464
454
|
startDate?: string | undefined;
|
|
465
455
|
targetDate?: string | undefined;
|
|
466
|
-
|
|
467
|
-
|
|
456
|
+
completedAt?: string | undefined;
|
|
457
|
+
canceledAt?: string | undefined;
|
|
458
|
+
startedAt?: string | undefined;
|
|
468
459
|
};
|
|
469
|
-
createdAt: string;
|
|
470
460
|
url: string;
|
|
471
|
-
|
|
461
|
+
createdAt: string;
|
|
472
462
|
organizationId: string;
|
|
473
463
|
webhookId: string;
|
|
474
464
|
}>;
|
|
@@ -476,175 +466,173 @@ export declare const ProjectWebhooks: {
|
|
|
476
466
|
update: {
|
|
477
467
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
478
468
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
469
|
+
action: "update";
|
|
479
470
|
type: "Project";
|
|
480
471
|
data: {
|
|
481
|
-
|
|
472
|
+
[x: string]: any;
|
|
482
473
|
id: string;
|
|
483
474
|
name: string;
|
|
484
|
-
|
|
485
|
-
createdAt: string;
|
|
486
|
-
updatedAt: string;
|
|
475
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
487
476
|
sortOrder: number;
|
|
488
477
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
489
478
|
progress: number;
|
|
490
479
|
url: string;
|
|
491
480
|
completedScopeHistory: number[];
|
|
492
481
|
inProgressScopeHistory: number[];
|
|
482
|
+
scope: number;
|
|
483
|
+
createdAt: string;
|
|
484
|
+
updatedAt: string;
|
|
493
485
|
description?: string | undefined;
|
|
494
|
-
startedAt?: string | undefined;
|
|
495
|
-
completedAt?: string | undefined;
|
|
496
|
-
canceledAt?: string | undefined;
|
|
497
486
|
icon?: string | undefined;
|
|
498
487
|
color?: string | undefined;
|
|
499
488
|
startDate?: string | undefined;
|
|
500
489
|
targetDate?: string | undefined;
|
|
501
|
-
|
|
502
|
-
|
|
490
|
+
completedAt?: string | undefined;
|
|
491
|
+
canceledAt?: string | undefined;
|
|
492
|
+
startedAt?: string | undefined;
|
|
503
493
|
};
|
|
504
|
-
createdAt: string;
|
|
505
494
|
url: string;
|
|
506
|
-
|
|
495
|
+
createdAt: string;
|
|
507
496
|
organizationId: string;
|
|
508
497
|
webhookId: string;
|
|
509
|
-
updatedFrom?:
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
498
|
+
updatedFrom?: {
|
|
499
|
+
[x: string]: any;
|
|
500
|
+
id?: string | undefined;
|
|
501
|
+
name?: string | undefined;
|
|
502
|
+
description?: string | undefined;
|
|
503
|
+
icon?: string | undefined;
|
|
504
|
+
color?: string | undefined;
|
|
505
|
+
priority?: 0 | 3 | 2 | 1 | 4 | undefined;
|
|
506
|
+
sortOrder?: number | undefined;
|
|
507
|
+
state?: "completed" | "planned" | "started" | "paused" | "canceled" | undefined;
|
|
508
|
+
progress?: number | undefined;
|
|
509
|
+
url?: string | undefined;
|
|
510
|
+
startDate?: string | undefined;
|
|
511
|
+
targetDate?: string | undefined;
|
|
512
|
+
completedAt?: string | undefined;
|
|
513
|
+
canceledAt?: string | undefined;
|
|
514
|
+
startedAt?: string | undefined;
|
|
515
|
+
completedScopeHistory?: number[] | undefined;
|
|
516
|
+
inProgressScopeHistory?: number[] | undefined;
|
|
517
|
+
scope?: number | undefined;
|
|
518
|
+
createdAt?: string | undefined;
|
|
519
|
+
updatedAt?: string | undefined;
|
|
520
|
+
} | undefined;
|
|
531
521
|
}, {
|
|
522
|
+
action: "update";
|
|
532
523
|
type: "Project";
|
|
533
524
|
data: {
|
|
534
|
-
|
|
525
|
+
[x: string]: any;
|
|
535
526
|
id: string;
|
|
536
527
|
name: string;
|
|
537
|
-
|
|
538
|
-
createdAt: string;
|
|
539
|
-
updatedAt: string;
|
|
528
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
540
529
|
sortOrder: number;
|
|
541
530
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
542
531
|
progress: number;
|
|
543
532
|
url: string;
|
|
544
533
|
completedScopeHistory: number[];
|
|
545
534
|
inProgressScopeHistory: number[];
|
|
535
|
+
scope: number;
|
|
536
|
+
createdAt: string;
|
|
537
|
+
updatedAt: string;
|
|
546
538
|
description?: string | undefined;
|
|
547
|
-
startedAt?: string | undefined;
|
|
548
|
-
completedAt?: string | undefined;
|
|
549
|
-
canceledAt?: string | undefined;
|
|
550
539
|
icon?: string | undefined;
|
|
551
540
|
color?: string | undefined;
|
|
552
541
|
startDate?: string | undefined;
|
|
553
542
|
targetDate?: string | undefined;
|
|
554
|
-
|
|
555
|
-
|
|
543
|
+
completedAt?: string | undefined;
|
|
544
|
+
canceledAt?: string | undefined;
|
|
545
|
+
startedAt?: string | undefined;
|
|
556
546
|
};
|
|
557
|
-
createdAt: string;
|
|
558
547
|
url: string;
|
|
559
|
-
|
|
548
|
+
createdAt: string;
|
|
560
549
|
organizationId: string;
|
|
561
550
|
webhookId: string;
|
|
562
|
-
updatedFrom?:
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
551
|
+
updatedFrom?: {
|
|
552
|
+
[x: string]: any;
|
|
553
|
+
id?: string | undefined;
|
|
554
|
+
name?: string | undefined;
|
|
555
|
+
description?: string | undefined;
|
|
556
|
+
icon?: string | undefined;
|
|
557
|
+
color?: string | undefined;
|
|
558
|
+
priority?: 0 | 3 | 2 | 1 | 4 | undefined;
|
|
559
|
+
sortOrder?: number | undefined;
|
|
560
|
+
state?: "completed" | "planned" | "started" | "paused" | "canceled" | undefined;
|
|
561
|
+
progress?: number | undefined;
|
|
562
|
+
url?: string | undefined;
|
|
563
|
+
startDate?: string | undefined;
|
|
564
|
+
targetDate?: string | undefined;
|
|
565
|
+
completedAt?: string | undefined;
|
|
566
|
+
canceledAt?: string | undefined;
|
|
567
|
+
startedAt?: string | undefined;
|
|
568
|
+
completedScopeHistory?: number[] | undefined;
|
|
569
|
+
inProgressScopeHistory?: number[] | undefined;
|
|
570
|
+
scope?: number | undefined;
|
|
571
|
+
createdAt?: string | undefined;
|
|
572
|
+
updatedAt?: string | undefined;
|
|
573
|
+
} | undefined;
|
|
584
574
|
}>;
|
|
585
575
|
};
|
|
586
576
|
remove: {
|
|
587
577
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
588
578
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
|
|
579
|
+
action: "remove";
|
|
589
580
|
type: "Project";
|
|
590
581
|
data: {
|
|
591
|
-
|
|
582
|
+
[x: string]: any;
|
|
592
583
|
id: string;
|
|
593
584
|
name: string;
|
|
594
|
-
|
|
595
|
-
createdAt: string;
|
|
596
|
-
updatedAt: string;
|
|
585
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
597
586
|
sortOrder: number;
|
|
598
587
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
599
588
|
progress: number;
|
|
600
589
|
url: string;
|
|
601
590
|
completedScopeHistory: number[];
|
|
602
591
|
inProgressScopeHistory: number[];
|
|
592
|
+
scope: number;
|
|
593
|
+
createdAt: string;
|
|
594
|
+
updatedAt: string;
|
|
603
595
|
description?: string | undefined;
|
|
604
|
-
startedAt?: string | undefined;
|
|
605
|
-
completedAt?: string | undefined;
|
|
606
|
-
canceledAt?: string | undefined;
|
|
607
596
|
icon?: string | undefined;
|
|
608
597
|
color?: string | undefined;
|
|
609
598
|
startDate?: string | undefined;
|
|
610
599
|
targetDate?: string | undefined;
|
|
611
|
-
|
|
612
|
-
|
|
600
|
+
completedAt?: string | undefined;
|
|
601
|
+
canceledAt?: string | undefined;
|
|
602
|
+
startedAt?: string | undefined;
|
|
613
603
|
};
|
|
614
|
-
createdAt: string;
|
|
615
604
|
url: string;
|
|
616
|
-
|
|
605
|
+
createdAt: string;
|
|
617
606
|
organizationId: string;
|
|
618
607
|
webhookId: string;
|
|
619
608
|
}, {
|
|
609
|
+
action: "remove";
|
|
620
610
|
type: "Project";
|
|
621
611
|
data: {
|
|
622
|
-
|
|
612
|
+
[x: string]: any;
|
|
623
613
|
id: string;
|
|
624
614
|
name: string;
|
|
625
|
-
|
|
626
|
-
createdAt: string;
|
|
627
|
-
updatedAt: string;
|
|
615
|
+
priority: 0 | 3 | 2 | 1 | 4;
|
|
628
616
|
sortOrder: number;
|
|
629
617
|
state: "completed" | "planned" | "started" | "paused" | "canceled";
|
|
630
618
|
progress: number;
|
|
631
619
|
url: string;
|
|
632
620
|
completedScopeHistory: number[];
|
|
633
621
|
inProgressScopeHistory: number[];
|
|
622
|
+
scope: number;
|
|
623
|
+
createdAt: string;
|
|
624
|
+
updatedAt: string;
|
|
634
625
|
description?: string | undefined;
|
|
635
|
-
startedAt?: string | undefined;
|
|
636
|
-
completedAt?: string | undefined;
|
|
637
|
-
canceledAt?: string | undefined;
|
|
638
626
|
icon?: string | undefined;
|
|
639
627
|
color?: string | undefined;
|
|
640
628
|
startDate?: string | undefined;
|
|
641
629
|
targetDate?: string | undefined;
|
|
642
|
-
|
|
643
|
-
|
|
630
|
+
completedAt?: string | undefined;
|
|
631
|
+
canceledAt?: string | undefined;
|
|
632
|
+
startedAt?: string | undefined;
|
|
644
633
|
};
|
|
645
|
-
createdAt: string;
|
|
646
634
|
url: string;
|
|
647
|
-
|
|
635
|
+
createdAt: string;
|
|
648
636
|
organizationId: string;
|
|
649
637
|
webhookId: string;
|
|
650
638
|
}>;
|