@frogbotai/piece-linear 0.30.0 → 0.32.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 +10 -2
- package/dist/actions/createComment.d.ts +1 -1
- package/dist/actions/createComment.d.ts.map +1 -1
- package/dist/actions/createComment.js.map +1 -1
- package/dist/actions/createIssue.d.ts +1 -1
- package/dist/actions/createIssue.d.ts.map +1 -1
- package/dist/actions/createIssue.js.map +1 -1
- package/dist/actions/createProject.d.ts +1 -1
- package/dist/actions/createProject.d.ts.map +1 -1
- package/dist/actions/createProject.js.map +1 -1
- package/dist/actions/options.d.ts.map +1 -1
- package/dist/actions/options.js.map +1 -1
- package/dist/actions/rawGraphqlQuery.d.ts +1 -1
- package/dist/actions/updateIssue.d.ts +1 -1
- package/dist/actions/updateIssue.d.ts.map +1 -1
- package/dist/actions/updateIssue.js.map +1 -1
- package/dist/actions/updateProject.d.ts +1 -1
- package/dist/actions/updateProject.d.ts.map +1 -1
- package/dist/actions/updateProject.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +15 -15
- package/dist/index.d.ts +97 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -27
- package/dist/index.js.map +1 -1
- package/dist/questions/elicitation.js.map +1 -1
- package/dist/questions/notify.js.map +1 -1
- package/dist/questions/parse.d.ts.map +1 -1
- package/dist/questions/parse.js.map +1 -1
- package/dist/triggers/commentCreated.d.ts +6 -6
- package/dist/triggers/issueCreated.d.ts +6 -6
- package/dist/triggers/issueRemoved.d.ts +6 -6
- package/dist/triggers/issueUpdated.d.ts +6 -6
- package/dist/triggers/projectCreated.d.ts +6 -6
- package/dist/triggers/projectRemoved.d.ts +6 -6
- package/dist/triggers/projectUpdated.d.ts +6 -6
- package/dist/triggers/webhook.d.ts +6 -6
- package/dist/triggers/webhook.d.ts.map +1 -1
- package/dist/triggers/webhook.js +3 -3
- package/dist/triggers/webhook.js.map +1 -1
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,56 @@
|
|
|
1
|
+
import type { TypedUser } from 'frogbot';
|
|
1
2
|
import type { z } from 'zod';
|
|
2
3
|
import { LinearChannelAdapter } from './adapter.js';
|
|
3
4
|
import { createLinearClient } from './client.js';
|
|
4
5
|
export declare const linearActions: readonly ["createIssue", "updateIssue", "createProject", "updateProject", "createComment", "rawGraphqlQuery"];
|
|
5
6
|
export declare const linearTriggers: readonly ["commentCreated", "issueCreated", "issueUpdated", "issueRemoved", "projectCreated", "projectUpdated", "projectRemoved"];
|
|
6
|
-
export declare const linearScopes:
|
|
7
|
+
export declare const linearScopes: {
|
|
8
|
+
readonly read: "read";
|
|
9
|
+
readonly write: "write";
|
|
10
|
+
readonly 'issues:create': "issues:create";
|
|
11
|
+
readonly 'comments:create': "comments:create";
|
|
12
|
+
readonly 'timeSchedule:write': "timeSchedule:write";
|
|
13
|
+
readonly admin: "admin";
|
|
14
|
+
readonly 'app:assignable': "app:assignable";
|
|
15
|
+
readonly 'app:mentionable': "app:mentionable";
|
|
16
|
+
};
|
|
7
17
|
export declare const linearOAuth: {
|
|
8
18
|
authorizationUrl: string;
|
|
9
19
|
tokenUrl: string;
|
|
10
|
-
scopes:
|
|
20
|
+
scopes: {
|
|
21
|
+
catalog: {
|
|
22
|
+
readonly read: "read";
|
|
23
|
+
readonly write: "write";
|
|
24
|
+
readonly 'issues:create': "issues:create";
|
|
25
|
+
readonly 'comments:create': "comments:create";
|
|
26
|
+
readonly 'timeSchedule:write': "timeSchedule:write";
|
|
27
|
+
readonly admin: "admin";
|
|
28
|
+
readonly 'app:assignable': "app:assignable";
|
|
29
|
+
readonly 'app:mentionable': "app:mentionable";
|
|
30
|
+
};
|
|
31
|
+
defaults: ("write" | "issues:create" | "comments:create" | "app:mentionable")[];
|
|
32
|
+
required: "read"[];
|
|
33
|
+
};
|
|
11
34
|
scopeSeparator: ",";
|
|
12
35
|
params: {
|
|
13
36
|
actor: string;
|
|
14
37
|
};
|
|
15
38
|
toAuth({ tokens }: {
|
|
16
|
-
tokens: import("frogbot
|
|
39
|
+
tokens: import("frogbot").OAuthTokens;
|
|
17
40
|
}): {
|
|
18
41
|
accessToken: string;
|
|
19
42
|
};
|
|
20
43
|
account({ client }: {
|
|
21
|
-
tokens: import("frogbot
|
|
44
|
+
tokens: import("frogbot").OAuthTokens;
|
|
22
45
|
client: import("@linear/sdk").LinearClient;
|
|
23
|
-
req: import("frogbot
|
|
46
|
+
req: import("frogbot").FrogBotRequest;
|
|
24
47
|
}): Promise<{
|
|
25
48
|
id: string;
|
|
26
49
|
label: string;
|
|
27
50
|
email: string;
|
|
28
51
|
}>;
|
|
29
52
|
};
|
|
30
|
-
export declare const createLinear: import("frogbot
|
|
53
|
+
export declare const createLinear: import("frogbot").PieceFactory<{
|
|
31
54
|
readonly slug: "linear";
|
|
32
55
|
readonly label: "Linear";
|
|
33
56
|
readonly admin: {
|
|
@@ -53,20 +76,33 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
53
76
|
readonly oauth: {
|
|
54
77
|
authorizationUrl: string;
|
|
55
78
|
tokenUrl: string;
|
|
56
|
-
scopes:
|
|
79
|
+
scopes: {
|
|
80
|
+
catalog: {
|
|
81
|
+
readonly read: "read";
|
|
82
|
+
readonly write: "write";
|
|
83
|
+
readonly 'issues:create': "issues:create";
|
|
84
|
+
readonly 'comments:create': "comments:create";
|
|
85
|
+
readonly 'timeSchedule:write': "timeSchedule:write";
|
|
86
|
+
readonly admin: "admin";
|
|
87
|
+
readonly 'app:assignable': "app:assignable";
|
|
88
|
+
readonly 'app:mentionable': "app:mentionable";
|
|
89
|
+
};
|
|
90
|
+
defaults: ("write" | "issues:create" | "comments:create" | "app:mentionable")[];
|
|
91
|
+
required: "read"[];
|
|
92
|
+
};
|
|
57
93
|
scopeSeparator: ",";
|
|
58
94
|
params: {
|
|
59
95
|
actor: string;
|
|
60
96
|
};
|
|
61
97
|
toAuth({ tokens }: {
|
|
62
|
-
tokens: import("frogbot
|
|
98
|
+
tokens: import("frogbot").OAuthTokens;
|
|
63
99
|
}): {
|
|
64
100
|
accessToken: string;
|
|
65
101
|
};
|
|
66
102
|
account({ client }: {
|
|
67
|
-
tokens: import("frogbot
|
|
103
|
+
tokens: import("frogbot").OAuthTokens;
|
|
68
104
|
client: import("@linear/sdk").LinearClient;
|
|
69
|
-
req: import("frogbot
|
|
105
|
+
req: import("frogbot").FrogBotRequest;
|
|
70
106
|
}): Promise<{
|
|
71
107
|
id: string;
|
|
72
108
|
label: string;
|
|
@@ -74,7 +110,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
74
110
|
}>;
|
|
75
111
|
};
|
|
76
112
|
readonly client: typeof createLinearClient;
|
|
77
|
-
readonly webhook: import("frogbot
|
|
113
|
+
readonly webhook: import("frogbot").PieceWebhook<{
|
|
78
114
|
channelMode: "agent-sessions" | "comments";
|
|
79
115
|
webhookSecret?: string | undefined;
|
|
80
116
|
botUsername?: string | undefined;
|
|
@@ -95,14 +131,11 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
95
131
|
identity({ author, client, req }: {
|
|
96
132
|
author: import("chat").Author;
|
|
97
133
|
client: import("@linear/sdk").LinearClient;
|
|
98
|
-
req: import("frogbot
|
|
99
|
-
}): Promise<
|
|
100
|
-
collection: string;
|
|
101
|
-
id: string | number;
|
|
102
|
-
} | null>;
|
|
134
|
+
req: import("frogbot").FrogBotRequest;
|
|
135
|
+
}): Promise<TypedUser | null>;
|
|
103
136
|
questions: import("frogbot/pieces").PieceChannelQuestions<import("@linear/sdk").LinearClient>;
|
|
104
137
|
};
|
|
105
|
-
readonly actions: readonly [import("frogbot
|
|
138
|
+
readonly actions: readonly [import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
106
139
|
teamId: z.ZodString;
|
|
107
140
|
title: z.ZodString;
|
|
108
141
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -124,7 +157,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
124
157
|
lastSyncId?: number | undefined;
|
|
125
158
|
}> & {
|
|
126
159
|
slug: "createIssue";
|
|
127
|
-
}, import("frogbot
|
|
160
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
128
161
|
teamId: z.ZodString;
|
|
129
162
|
issueId: z.ZodString;
|
|
130
163
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -146,7 +179,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
146
179
|
lastSyncId?: number | undefined;
|
|
147
180
|
}> & {
|
|
148
181
|
slug: "updateIssue";
|
|
149
|
-
}, import("frogbot
|
|
182
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
150
183
|
teamId: z.ZodString;
|
|
151
184
|
name: z.ZodString;
|
|
152
185
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -168,7 +201,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
168
201
|
lastSyncId?: number | undefined;
|
|
169
202
|
}> & {
|
|
170
203
|
slug: "createProject";
|
|
171
|
-
}, import("frogbot
|
|
204
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
172
205
|
teamId: z.ZodString;
|
|
173
206
|
projectId: z.ZodString;
|
|
174
207
|
name: z.ZodString;
|
|
@@ -191,7 +224,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
191
224
|
lastSyncId?: number | undefined;
|
|
192
225
|
}> & {
|
|
193
226
|
slug: "updateProject";
|
|
194
|
-
}, import("frogbot
|
|
227
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
195
228
|
teamId: z.ZodString;
|
|
196
229
|
issueId: z.ZodString;
|
|
197
230
|
body: z.ZodString;
|
|
@@ -208,7 +241,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
208
241
|
lastSyncId?: number | undefined;
|
|
209
242
|
}> & {
|
|
210
243
|
slug: "createComment";
|
|
211
|
-
}, import("frogbot
|
|
244
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
212
245
|
query: z.ZodString;
|
|
213
246
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
247
|
}, z.core.$strip>, z.ZodUnknown, {
|
|
@@ -227,10 +260,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
227
260
|
authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
261
|
}, z.core.$strip>;
|
|
229
262
|
output?: undefined;
|
|
230
|
-
sample?: import("frogbot
|
|
263
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
231
264
|
} & {
|
|
232
265
|
type: "webhook";
|
|
233
|
-
onEnable(args: import("frogbot
|
|
266
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
234
267
|
teamIds?: string[] | undefined;
|
|
235
268
|
authorIds?: string[] | undefined;
|
|
236
269
|
}, {
|
|
@@ -242,7 +275,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
242
275
|
}): Promise<{
|
|
243
276
|
webhookId: string;
|
|
244
277
|
}>;
|
|
245
|
-
onDisable(args: import("frogbot
|
|
278
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
246
279
|
teamIds?: string[] | undefined;
|
|
247
280
|
authorIds?: string[] | undefined;
|
|
248
281
|
}, {
|
|
@@ -256,7 +289,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
256
289
|
}): Promise<void>;
|
|
257
290
|
renew?: {
|
|
258
291
|
schedule: string;
|
|
259
|
-
run(args: import("frogbot
|
|
292
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
260
293
|
teamIds?: string[] | undefined;
|
|
261
294
|
authorIds?: string[] | undefined;
|
|
262
295
|
}, {
|
|
@@ -272,7 +305,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
272
305
|
webhookId: string;
|
|
273
306
|
}>;
|
|
274
307
|
} | undefined;
|
|
275
|
-
run(args: import("frogbot
|
|
308
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
276
309
|
teamIds?: string[] | undefined;
|
|
277
310
|
authorIds?: string[] | undefined;
|
|
278
311
|
}, {
|
|
@@ -283,7 +316,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
283
316
|
state: {
|
|
284
317
|
webhookId: string;
|
|
285
318
|
};
|
|
286
|
-
}): Promise<import("frogbot
|
|
319
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
287
320
|
} & {
|
|
288
321
|
slug: "commentCreated";
|
|
289
322
|
}, {
|
|
@@ -294,10 +327,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
294
327
|
teamId: z.ZodString;
|
|
295
328
|
}, z.core.$strip>;
|
|
296
329
|
output?: undefined;
|
|
297
|
-
sample?: import("frogbot
|
|
330
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
298
331
|
} & {
|
|
299
332
|
type: "webhook";
|
|
300
|
-
onEnable(args: import("frogbot
|
|
333
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
301
334
|
teamId: string;
|
|
302
335
|
}, {
|
|
303
336
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -308,7 +341,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
308
341
|
}): Promise<{
|
|
309
342
|
webhookId: string;
|
|
310
343
|
}>;
|
|
311
|
-
onDisable(args: import("frogbot
|
|
344
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
312
345
|
teamId: string;
|
|
313
346
|
}, {
|
|
314
347
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -321,7 +354,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
321
354
|
}): Promise<void>;
|
|
322
355
|
renew?: {
|
|
323
356
|
schedule: string;
|
|
324
|
-
run(args: import("frogbot
|
|
357
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
325
358
|
teamId: string;
|
|
326
359
|
}, {
|
|
327
360
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -336,7 +369,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
336
369
|
webhookId: string;
|
|
337
370
|
}>;
|
|
338
371
|
} | undefined;
|
|
339
|
-
run(args: import("frogbot
|
|
372
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
340
373
|
teamId: string;
|
|
341
374
|
}, {
|
|
342
375
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -346,7 +379,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
346
379
|
state: {
|
|
347
380
|
webhookId: string;
|
|
348
381
|
};
|
|
349
|
-
}): Promise<import("frogbot
|
|
382
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
350
383
|
} & {
|
|
351
384
|
slug: "issueCreated";
|
|
352
385
|
}, {
|
|
@@ -357,10 +390,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
357
390
|
teamId: z.ZodOptional<z.ZodString>;
|
|
358
391
|
}, z.core.$strip>;
|
|
359
392
|
output?: undefined;
|
|
360
|
-
sample?: import("frogbot
|
|
393
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
361
394
|
} & {
|
|
362
395
|
type: "webhook";
|
|
363
|
-
onEnable(args: import("frogbot
|
|
396
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
364
397
|
teamId?: string | undefined;
|
|
365
398
|
}, {
|
|
366
399
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -371,7 +404,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
371
404
|
}): Promise<{
|
|
372
405
|
webhookId: string;
|
|
373
406
|
}>;
|
|
374
|
-
onDisable(args: import("frogbot
|
|
407
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
375
408
|
teamId?: string | undefined;
|
|
376
409
|
}, {
|
|
377
410
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -384,7 +417,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
384
417
|
}): Promise<void>;
|
|
385
418
|
renew?: {
|
|
386
419
|
schedule: string;
|
|
387
|
-
run(args: import("frogbot
|
|
420
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
388
421
|
teamId?: string | undefined;
|
|
389
422
|
}, {
|
|
390
423
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -399,7 +432,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
399
432
|
webhookId: string;
|
|
400
433
|
}>;
|
|
401
434
|
} | undefined;
|
|
402
|
-
run(args: import("frogbot
|
|
435
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
403
436
|
teamId?: string | undefined;
|
|
404
437
|
}, {
|
|
405
438
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -409,7 +442,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
409
442
|
state: {
|
|
410
443
|
webhookId: string;
|
|
411
444
|
};
|
|
412
|
-
}): Promise<import("frogbot
|
|
445
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
413
446
|
} & {
|
|
414
447
|
slug: "issueUpdated";
|
|
415
448
|
}, {
|
|
@@ -420,10 +453,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
420
453
|
teamId: z.ZodString;
|
|
421
454
|
}, z.core.$strip>;
|
|
422
455
|
output?: undefined;
|
|
423
|
-
sample?: import("frogbot
|
|
456
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
424
457
|
} & {
|
|
425
458
|
type: "webhook";
|
|
426
|
-
onEnable(args: import("frogbot
|
|
459
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
427
460
|
teamId: string;
|
|
428
461
|
}, {
|
|
429
462
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -434,7 +467,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
434
467
|
}): Promise<{
|
|
435
468
|
webhookId: string;
|
|
436
469
|
}>;
|
|
437
|
-
onDisable(args: import("frogbot
|
|
470
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
438
471
|
teamId: string;
|
|
439
472
|
}, {
|
|
440
473
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -447,7 +480,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
447
480
|
}): Promise<void>;
|
|
448
481
|
renew?: {
|
|
449
482
|
schedule: string;
|
|
450
|
-
run(args: import("frogbot
|
|
483
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
451
484
|
teamId: string;
|
|
452
485
|
}, {
|
|
453
486
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -462,7 +495,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
462
495
|
webhookId: string;
|
|
463
496
|
}>;
|
|
464
497
|
} | undefined;
|
|
465
|
-
run(args: import("frogbot
|
|
498
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
466
499
|
teamId: string;
|
|
467
500
|
}, {
|
|
468
501
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -472,7 +505,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
472
505
|
state: {
|
|
473
506
|
webhookId: string;
|
|
474
507
|
};
|
|
475
|
-
}): Promise<import("frogbot
|
|
508
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
476
509
|
} & {
|
|
477
510
|
slug: "issueRemoved";
|
|
478
511
|
}, {
|
|
@@ -481,10 +514,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
481
514
|
description: string;
|
|
482
515
|
input: z.ZodObject<{}, z.core.$strip>;
|
|
483
516
|
output?: undefined;
|
|
484
|
-
sample?: import("frogbot
|
|
517
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
485
518
|
} & {
|
|
486
519
|
type: "webhook";
|
|
487
|
-
onEnable(args: import("frogbot
|
|
520
|
+
onEnable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
488
521
|
channelMode: "agent-sessions" | "comments";
|
|
489
522
|
webhookSecret?: string | undefined;
|
|
490
523
|
botUsername?: string | undefined;
|
|
@@ -493,7 +526,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
493
526
|
}): Promise<{
|
|
494
527
|
webhookId: string;
|
|
495
528
|
}>;
|
|
496
|
-
onDisable(args: import("frogbot
|
|
529
|
+
onDisable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
497
530
|
channelMode: "agent-sessions" | "comments";
|
|
498
531
|
webhookSecret?: string | undefined;
|
|
499
532
|
botUsername?: string | undefined;
|
|
@@ -504,7 +537,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
504
537
|
}): Promise<void>;
|
|
505
538
|
renew?: {
|
|
506
539
|
schedule: string;
|
|
507
|
-
run(args: import("frogbot
|
|
540
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
508
541
|
channelMode: "agent-sessions" | "comments";
|
|
509
542
|
webhookSecret?: string | undefined;
|
|
510
543
|
botUsername?: string | undefined;
|
|
@@ -517,7 +550,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
517
550
|
webhookId: string;
|
|
518
551
|
}>;
|
|
519
552
|
} | undefined;
|
|
520
|
-
run(args: import("frogbot
|
|
553
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
521
554
|
channelMode: "agent-sessions" | "comments";
|
|
522
555
|
webhookSecret?: string | undefined;
|
|
523
556
|
botUsername?: string | undefined;
|
|
@@ -525,7 +558,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
525
558
|
state: {
|
|
526
559
|
webhookId: string;
|
|
527
560
|
};
|
|
528
|
-
}): Promise<import("frogbot
|
|
561
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
529
562
|
} & {
|
|
530
563
|
slug: "projectCreated";
|
|
531
564
|
}, {
|
|
@@ -537,10 +570,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
537
570
|
projectStatus: z.ZodOptional<z.ZodString>;
|
|
538
571
|
}, z.core.$strip>;
|
|
539
572
|
output?: undefined;
|
|
540
|
-
sample?: import("frogbot
|
|
573
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
541
574
|
} & {
|
|
542
575
|
type: "webhook";
|
|
543
|
-
onEnable(args: import("frogbot
|
|
576
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
544
577
|
teamIds?: string[] | undefined;
|
|
545
578
|
projectStatus?: string | undefined;
|
|
546
579
|
}, {
|
|
@@ -552,7 +585,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
552
585
|
}): Promise<{
|
|
553
586
|
webhookId: string;
|
|
554
587
|
}>;
|
|
555
|
-
onDisable(args: import("frogbot
|
|
588
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
556
589
|
teamIds?: string[] | undefined;
|
|
557
590
|
projectStatus?: string | undefined;
|
|
558
591
|
}, {
|
|
@@ -566,7 +599,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
566
599
|
}): Promise<void>;
|
|
567
600
|
renew?: {
|
|
568
601
|
schedule: string;
|
|
569
|
-
run(args: import("frogbot
|
|
602
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
570
603
|
teamIds?: string[] | undefined;
|
|
571
604
|
projectStatus?: string | undefined;
|
|
572
605
|
}, {
|
|
@@ -582,7 +615,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
582
615
|
webhookId: string;
|
|
583
616
|
}>;
|
|
584
617
|
} | undefined;
|
|
585
|
-
run(args: import("frogbot
|
|
618
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
586
619
|
teamIds?: string[] | undefined;
|
|
587
620
|
projectStatus?: string | undefined;
|
|
588
621
|
}, {
|
|
@@ -593,7 +626,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
593
626
|
state: {
|
|
594
627
|
webhookId: string;
|
|
595
628
|
};
|
|
596
|
-
}): Promise<import("frogbot
|
|
629
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
597
630
|
} & {
|
|
598
631
|
slug: "projectUpdated";
|
|
599
632
|
}, {
|
|
@@ -602,10 +635,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
602
635
|
description: string;
|
|
603
636
|
input: z.ZodObject<{}, z.core.$strip>;
|
|
604
637
|
output?: undefined;
|
|
605
|
-
sample?: import("frogbot
|
|
638
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
606
639
|
} & {
|
|
607
640
|
type: "webhook";
|
|
608
|
-
onEnable(args: import("frogbot
|
|
641
|
+
onEnable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
609
642
|
channelMode: "agent-sessions" | "comments";
|
|
610
643
|
webhookSecret?: string | undefined;
|
|
611
644
|
botUsername?: string | undefined;
|
|
@@ -614,7 +647,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
614
647
|
}): Promise<{
|
|
615
648
|
webhookId: string;
|
|
616
649
|
}>;
|
|
617
|
-
onDisable(args: import("frogbot
|
|
650
|
+
onDisable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
618
651
|
channelMode: "agent-sessions" | "comments";
|
|
619
652
|
webhookSecret?: string | undefined;
|
|
620
653
|
botUsername?: string | undefined;
|
|
@@ -625,7 +658,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
625
658
|
}): Promise<void>;
|
|
626
659
|
renew?: {
|
|
627
660
|
schedule: string;
|
|
628
|
-
run(args: import("frogbot
|
|
661
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
629
662
|
channelMode: "agent-sessions" | "comments";
|
|
630
663
|
webhookSecret?: string | undefined;
|
|
631
664
|
botUsername?: string | undefined;
|
|
@@ -638,7 +671,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
638
671
|
webhookId: string;
|
|
639
672
|
}>;
|
|
640
673
|
} | undefined;
|
|
641
|
-
run(args: import("frogbot
|
|
674
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
642
675
|
channelMode: "agent-sessions" | "comments";
|
|
643
676
|
webhookSecret?: string | undefined;
|
|
644
677
|
botUsername?: string | undefined;
|
|
@@ -646,7 +679,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
646
679
|
state: {
|
|
647
680
|
webhookId: string;
|
|
648
681
|
};
|
|
649
|
-
}): Promise<import("frogbot
|
|
682
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
650
683
|
} & {
|
|
651
684
|
slug: "projectRemoved";
|
|
652
685
|
}];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQzC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQ7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAe,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,aAAa,+GAOhB,CAAC;AACX,eAAO,MAAM,cAAc,mIAQjB,CAAC;AACX,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BvB,CAAC;AA0BF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAXkB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkClE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePiece } from 'frogbot/pieces';
|
|
1
|
+
import { definePiece, findUserByEmail } from 'frogbot/pieces';
|
|
2
2
|
import { createComment } from './actions/createComment.js';
|
|
3
3
|
import { createIssue } from './actions/createIssue.js';
|
|
4
4
|
import { createProject } from './actions/createProject.js';
|
|
@@ -34,17 +34,31 @@ export const linearTriggers = [
|
|
|
34
34
|
'projectUpdated',
|
|
35
35
|
'projectRemoved'
|
|
36
36
|
];
|
|
37
|
-
export const linearScopes =
|
|
37
|
+
export const linearScopes = {
|
|
38
|
+
read: 'read',
|
|
39
|
+
write: 'write',
|
|
40
|
+
'issues:create': 'issues:create',
|
|
41
|
+
'comments:create': 'comments:create',
|
|
42
|
+
'timeSchedule:write': 'timeSchedule:write',
|
|
43
|
+
admin: 'admin',
|
|
44
|
+
'app:assignable': 'app:assignable',
|
|
45
|
+
'app:mentionable': 'app:mentionable'
|
|
46
|
+
};
|
|
38
47
|
export const linearOAuth = {
|
|
39
48
|
authorizationUrl: 'https://linear.app/oauth/authorize',
|
|
40
49
|
tokenUrl: 'https://api.linear.app/oauth/token',
|
|
41
|
-
scopes:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
scopes: {
|
|
51
|
+
catalog: linearScopes,
|
|
52
|
+
defaults: [
|
|
53
|
+
'write',
|
|
54
|
+
'comments:create',
|
|
55
|
+
'issues:create',
|
|
56
|
+
'app:mentionable'
|
|
57
|
+
],
|
|
58
|
+
required: [
|
|
59
|
+
'read'
|
|
60
|
+
]
|
|
61
|
+
},
|
|
48
62
|
scopeSeparator: ',',
|
|
49
63
|
params: {
|
|
50
64
|
actor: 'app'
|
|
@@ -89,24 +103,7 @@ const linearChannel = {
|
|
|
89
103
|
const account = await client.user(author.userId);
|
|
90
104
|
const email = account.email?.trim().toLowerCase();
|
|
91
105
|
if (!email) return null;
|
|
92
|
-
|
|
93
|
-
const payloadConfig = await config._internal.payloadConfig;
|
|
94
|
-
const result = await req.frogbot.find({
|
|
95
|
-
collection: payloadConfig.admin.user,
|
|
96
|
-
where: {
|
|
97
|
-
email: {
|
|
98
|
-
equals: email
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
limit: 1,
|
|
102
|
-
overrideAccess: true,
|
|
103
|
-
req
|
|
104
|
-
});
|
|
105
|
-
const match = result.docs[0];
|
|
106
|
-
return match ? {
|
|
107
|
-
...match,
|
|
108
|
-
collection: payloadConfig.admin.user
|
|
109
|
-
} : null;
|
|
106
|
+
return findUserByEmail(req, email);
|
|
110
107
|
},
|
|
111
108
|
questions: linearQuestions
|
|
112
109
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["definePiece","createComment","createIssue","createProject","rawGraphqlQuery","updateIssue","updateProject","LinearChannelAdapter","createLinearClient","linearAuth","linearOptions","linearQuestions","commentCreated","issueCreated","issueRemoved","issueUpdated","projectCreated","projectRemoved","projectUpdated","linearWebhook","linearActions","linearTriggers","linearScopes","linearOAuth","authorizationUrl","tokenUrl","scopes","scopeSeparator","params","actor","toAuth","tokens","access_token","trim","Error","accessToken","account","client","viewer","email","id","label","name","linearChannel","adapter","auth","options","webhookSecret","apiKey","mode","channelMode","userName","botUsername","identity","author","req","user","userId","toLowerCase","
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["definePiece","findUserByEmail","createComment","createIssue","createProject","rawGraphqlQuery","updateIssue","updateProject","LinearChannelAdapter","createLinearClient","linearAuth","linearOptions","linearQuestions","commentCreated","issueCreated","issueRemoved","issueUpdated","projectCreated","projectRemoved","projectUpdated","linearWebhook","linearActions","linearTriggers","linearScopes","read","write","admin","linearOAuth","authorizationUrl","tokenUrl","scopes","catalog","defaults","required","scopeSeparator","params","actor","toAuth","tokens","access_token","trim","Error","accessToken","account","client","viewer","email","id","label","name","linearChannel","adapter","auth","options","webhookSecret","apiKey","mode","channelMode","userName","botUsername","identity","author","req","user","userId","toLowerCase","questions","createLinear","slug","description","group","oauth","webhook","channel","actions","triggers"],"mappings":"AACA,SACEA,WAAW,EACXC,eAAe,QAIV,iBAAiB;AAGxB,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,aAAa,QAA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
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/questions/elicitation.ts"],"names":["AgentActivitySignal","AgentActivityType","SELECT_OPTIONS","isSelectQuestion","input","item","questions","length","multiple","options","elicitation","call","notice","select","sections","selectSections","listSections","body","join","content","type","Elicitation","signal","Select","signalMetadata","map","label","value","response","Response","replyHint","numbered","header","escapeMarkdown","custom","text","replace","description","prompt","index","optionsHint","choose","question"],"mappings":"AAAA,SAASA,mBAAmB,EAAEC,iBAAiB,QAAQ,cAAc;AAKrE,OAAO,MAAMC,iBAAiB,GAAG;AAIjC,OAAO,SAASC,iBAAiBC,KAAoB;IACnD,MAAM,CAACC,KAAK,GAAGD,MAAME,SAAS;IAE9B,OAAOF,MAAME,SAAS,CAACC,MAAM,KAAK,KAAK,CAACF,
|
|
1
|
+
{"version":3,"sources":["../../src/questions/elicitation.ts"],"names":["AgentActivitySignal","AgentActivityType","SELECT_OPTIONS","isSelectQuestion","input","item","questions","length","multiple","options","elicitation","call","notice","select","sections","selectSections","listSections","body","join","content","type","Elicitation","signal","Select","signalMetadata","map","label","value","response","Response","replyHint","numbered","header","escapeMarkdown","custom","text","replace","description","prompt","index","optionsHint","choose","question"],"mappings":"AAAA,SAASA,mBAAmB,EAAEC,iBAAiB,QAAQ,cAAc;AAKrE,OAAO,MAAMC,iBAAiB,GAAG;AAIjC,OAAO,SAASC,iBAAiBC,KAAoB;IACnD,MAAM,CAACC,KAAK,GAAGD,MAAME,SAAS;IAE9B,OAAOF,MAAME,SAAS,CAACC,MAAM,KAAK,KAAK,CAACF,KAAKG,QAAQ,IAAIH,KAAKI,OAAO,CAACF,MAAM,IAAIL;AAClF;AAEA,OAAO,SAASQ,YAAY,EAC1BC,IAAI,EACJC,MAAM,EAIP;IACC,MAAM,EAAER,KAAK,EAAE,GAAGO;IAClB,MAAME,SAASV,iBAAiBC;IAChC,MAAMU,WAAWD,SAASE,eAAeX,MAAME,SAAS,CAAC,EAAE,IAAIU,aAAaZ;IAC5E,MA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AC,EAAEC,KAAK,EAAEW,WAAW,EAAE,GACrB,CAAC,IAAI,EAAEJ,eAAeP,OAAO,EAAE,EAAEW,cAAc,CAAC,GAAG,EAAEA,aAAa,GAAG,IAAI;IAG7E,OAAO;QACLC,OAAOjC;QACPI,QAAQS,IAAI,CAAC;QACbb,KAAK6B,MAAM,GAAG,qDAAqD;KACpE;AACH;AAEA,SAASlB,aAAaZ,KAAoB;IACxC,MAAME,YAAYF,MAAME,SAAS,CAACmB,GAAG,CAAC,CAACpB,OACrC;YACEiC,OAAOjC;YACPA,KAAKI,OAAO,CACTgB,GAAG,CACF,CAAC,EAAEC,KAAK,EAAEW,WAAW,EAAE,EAAEE,QACvB,GAAGA,QAAQ,EAAE,EAAE,EAAEN,eAAeP,SAASW,cAAc,CAAC,GAAG,EAAEA,aAAa,GAAG,IAAI,EAEpFnB,IAAI,CAAC;YACR,CAAC,CAAC,EAAEsB,YAAYnC,MAAM,CAAC,CAAC;SACzB,CAACa,IAAI,CAAC;IAGT,OAAOd,MAAME,SAAS,CAACC,MAAM,GAAG,IAC5B;WAAID;QAAW;KAAwD,GACvEA;AACN;AAEA,SAASkC,YAAYnC,IAAkB;IACrC,MAAMoC,SAASpC,KAAKG,QAAQ,GACxB,0FACA;IAEJ,OAAOH,KAAK6B,MAAM,GAAG,GAAGO,OAAO,0BAA0B,CAAC,GAAG,GAAGA,OAAO,CAAC,CAAC;AAC3E;AAEA,SAASH,OAAO,EAAEN,MAAM,EAAEU,QAAQ,EAAgB;IAChD,OAAO,CAAC,EAAE,EAAET,eAAeD,QAAQ,IAAI,EAAEU,UAAU;AACrD","file":"elicitation.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/questions/notify.ts"],"names":["elicitation","escapeMarkdown","response","postActivity","stopRequested","denyLinearQuestion","call","client","interaction","thread","notice","authorName","activity","threadId","id","rejectLinearQuestion","reason","staleLinearQuestion","body","author","type","message","event","user","name","fullName","userName"],"mappings":"AAGA,SAASA,WAAW,EAAEC,cAAc,EAAEC,QAAQ,QAAQ,mBAAmB;AACzE,SAASC,YAAY,EAAEC,aAAa,QAAQ,oBAAoB;AAIhE,OAAO,MAAMC,qBAAgD,OAAO,EAClEC,IAAI,EACJC,MAAM,EACNC,WAAW,EACXC,MAAM,EACP;IACC,MAAMC,SAAS,GAAGC,WAAWH,aAAa,2EAA2E,CAAC;IAEtH,MAAML,aAAa;QAAES,UAAUZ,YAAY;YAAEM;YAAMI;QAAO;QAAIH;QAAQM,UAAUJ,OAAOK,EAAE;IAAC;AAC5F,EAAE;AAEF,OAAO,MAAMC,uBAAoD,OAAO,EACtET,IAAI,EACJC,MAAM,EACNS,MAAM,EACNP,MAAM,EACP;IACC,MAAMN,aAAa;QACjBS,UAAUZ,YAAY;YAAEM;YAAMI,QAAQM;QAAO;QAC7CT;QACAM,UAAUJ,OAAOK,EAAE;IACrB;AACF,EAAE;AAEF,OAAO,MAAMG,sBAAgD,OAAO,EAClEV,MAAM,EACNC,WAAW,EACXC,MAAM,EACP;IACC,MAAMS,OAAOd,cAAcI,eACvB,wFACA;IAEJ,MAAML,aAAa;QAAES,UAAUV,SAASgB;QAAOX;QAAQM,UAAUJ,OAAOK,EAAE;IAAC;AAC7E,EAAE;AAEF,SAASH,WAAWH,WAAgC;IAClD,MAAMW,SACJX,YAAYY,IAAI,KAAK,YAAYZ,YAAYa,OAAO,CAACF,MAAM,GAAGX,YAAYc,KAAK,CAACC,IAAI;
|
|
1
|
+
{"version":3,"sources":["../../src/questions/notify.ts"],"names":["elicitation","escapeMarkdown","response","postActivity","stopRequested","denyLinearQuestion","call","client","interaction","thread","notice","authorName","activity","threadId","id","rejectLinearQuestion","reason","staleLinearQuestion","body","author","type","message","event","user","name","fullName","userName"],"mappings":"AAGA,SAASA,WAAW,EAAEC,cAAc,EAAEC,QAAQ,QAAQ,mBAAmB;AACzE,SAASC,YAAY,EAAEC,aAAa,QAAQ,oBAAoB;AAIhE,OAAO,MAAMC,qBAAgD,OAAO,EAClEC,IAAI,EACJC,MAAM,EACNC,WAAW,EACXC,MAAM,EACP;IACC,MAAMC,SAAS,GAAGC,WAAWH,aAAa,2EAA2E,CAAC;IAEtH,MAAML,aAAa;QAAES,UAAUZ,YAAY;YAAEM;YAAMI;QAAO;QAAIH;QAAQM,UAAUJ,OAAOK,EAAE;IAAC;AAC5F,EAAE;AAEF,OAAO,MAAMC,uBAAoD,OAAO,EACtET,IAAI,EACJC,MAAM,EACNS,MAAM,EACNP,MAAM,EACP;IACC,MAAMN,aAAa;QACjBS,UAAUZ,YAAY;YAAEM;YAAMI,QAAQM;QAAO;QAC7CT;QACAM,UAAUJ,OAAOK,EAAE;IACrB;AACF,EAAE;AAEF,OAAO,MAAMG,sBAAgD,OAAO,EAClEV,MAAM,EACNC,WAAW,EACXC,MAAM,EACP;IACC,MAAMS,OAAOd,cAAcI,eACvB,wFACA;IAEJ,MAAML,aAAa;QAAES,UAAUV,SAASgB;QAAOX;QAAQM,UAAUJ,OAAOK,EAAE;IAAC;AAC7E,EAAE;AAEF,SAASH,WAAWH,WAAgC;IAClD,MAAMW,SACJX,YAAYY,IAAI,KAAK,YAAYZ,YAAYa,OAAO,CAACF,MAAM,GAAGX,YAAYc,KAAK,CAACC,IAAI;IAEtF,MAAMC,OAAOL,OAAOM,QAAQ,IAAIN,OAAOO,QAAQ;IAE/C,OAAOF,OAAOvB,eAAeuB,QAAQ;AACvC","file":"notify.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/questions/parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAiC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/questions/parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAiC,MAAM,gBAAgB,CAAC;AAsB3F,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,OAAO,CAqB9D,CAAC"}
|