@anchrd/colab-sdk 0.1.10 → 0.1.12
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/actions/actions.d.ts +64 -11
- package/dist/actions/actions.js +22 -7
- package/dist/boards/boards.d.ts +321 -10
- package/dist/boards/boards.js +111 -13
- package/dist/card-kinds/card-kinds.d.ts +265 -0
- package/dist/card-kinds/card-kinds.js +153 -0
- package/dist/error/error.d.ts +6 -4
- package/dist/error/error.js +4 -3
- package/dist/gadgets/gadgets.d.ts +532 -0
- package/dist/gadgets/gadgets.js +329 -0
- package/dist/grammar/grammar.d.ts +1 -1
- package/dist/grammar/grammar.js +8 -1
- package/dist/nodes/nodes.d.ts +10 -10
- package/dist/nodes/nodes.js +4 -3
- package/dist/operators/operators.d.ts +4 -4
- package/dist/operators/operators.js +2 -2
- package/dist/runs/runs.d.ts +41 -70
- package/dist/runs/runs.js +14 -73
- package/dist/schedule/schedule.d.ts +36 -0
- package/dist/schedule/schedule.js +93 -0
- package/dist/sdk.d.ts +8 -6
- package/dist/sdk.js +8 -6
- package/dist/tables/tables.d.ts +8 -0
- package/dist/tables/tables.js +29 -4
- package/dist/users/users.js +2 -2
- package/dist/validation/validation.d.ts +2 -55
- package/dist/validation/validation.js +3 -22
- package/dist/versions/versions.d.ts +233 -1
- package/dist/versions/versions.js +57 -10
- package/package.json +1 -1
- package/dist/dashboards/dashboards.d.ts +0 -221
- package/dist/dashboards/dashboards.js +0 -520
|
@@ -78,7 +78,6 @@ export type ActionChat = z.infer<typeof ActionChat>;
|
|
|
78
78
|
export declare const ActionProcess: z.ZodObject<{
|
|
79
79
|
kind: z.ZodEnum<{
|
|
80
80
|
board: "board";
|
|
81
|
-
dashboard: "dashboard";
|
|
82
81
|
}>;
|
|
83
82
|
dueAt: z.ZodISODateTime;
|
|
84
83
|
}, z.core.$strip>;
|
|
@@ -91,9 +90,24 @@ export declare const ActionRun: z.ZodObject<{
|
|
|
91
90
|
done: "done";
|
|
92
91
|
running: "running";
|
|
93
92
|
}>;
|
|
94
|
-
entries: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
95
93
|
}, z.core.$strip>;
|
|
96
94
|
export type ActionRun = z.infer<typeof ActionRun>;
|
|
95
|
+
export declare const ActionGadget: z.ZodObject<{
|
|
96
|
+
problem: z.ZodEnum<{
|
|
97
|
+
error: "error";
|
|
98
|
+
test: "test";
|
|
99
|
+
}>;
|
|
100
|
+
message: z.ZodString;
|
|
101
|
+
callId: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
102
|
+
open: z.ZodNumber;
|
|
103
|
+
level: z.ZodEnum<{
|
|
104
|
+
publish: "publish";
|
|
105
|
+
draft: "draft";
|
|
106
|
+
report: "report";
|
|
107
|
+
}>;
|
|
108
|
+
hint: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type ActionGadget = z.infer<typeof ActionGadget>;
|
|
97
111
|
export declare const ActionItem: z.ZodObject<{
|
|
98
112
|
node: z.ZodObject<{
|
|
99
113
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -104,7 +118,7 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
104
118
|
table: "table";
|
|
105
119
|
board: "board";
|
|
106
120
|
task: "task";
|
|
107
|
-
|
|
121
|
+
gadget: "gadget";
|
|
108
122
|
}>;
|
|
109
123
|
name: z.ZodString;
|
|
110
124
|
path: z.ZodObject<{
|
|
@@ -198,7 +212,6 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
198
212
|
process: z.ZodNullable<z.ZodObject<{
|
|
199
213
|
kind: z.ZodEnum<{
|
|
200
214
|
board: "board";
|
|
201
|
-
dashboard: "dashboard";
|
|
202
215
|
}>;
|
|
203
216
|
dueAt: z.ZodISODateTime;
|
|
204
217
|
}, z.core.$strip>>;
|
|
@@ -210,7 +223,21 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
210
223
|
done: "done";
|
|
211
224
|
running: "running";
|
|
212
225
|
}>;
|
|
213
|
-
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
gadget: z.ZodNullable<z.ZodObject<{
|
|
228
|
+
problem: z.ZodEnum<{
|
|
229
|
+
error: "error";
|
|
230
|
+
test: "test";
|
|
231
|
+
}>;
|
|
232
|
+
message: z.ZodString;
|
|
233
|
+
callId: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
234
|
+
open: z.ZodNumber;
|
|
235
|
+
level: z.ZodEnum<{
|
|
236
|
+
publish: "publish";
|
|
237
|
+
draft: "draft";
|
|
238
|
+
report: "report";
|
|
239
|
+
}>;
|
|
240
|
+
hint: z.ZodBoolean;
|
|
214
241
|
}, z.core.$strip>>;
|
|
215
242
|
}, z.core.$strip>;
|
|
216
243
|
export type ActionItem = z.infer<typeof ActionItem>;
|
|
@@ -424,7 +451,7 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
424
451
|
table: "table";
|
|
425
452
|
board: "board";
|
|
426
453
|
task: "task";
|
|
427
|
-
|
|
454
|
+
gadget: "gadget";
|
|
428
455
|
}>;
|
|
429
456
|
name: z.ZodString;
|
|
430
457
|
path: z.ZodObject<{
|
|
@@ -518,7 +545,6 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
518
545
|
process: z.ZodNullable<z.ZodObject<{
|
|
519
546
|
kind: z.ZodEnum<{
|
|
520
547
|
board: "board";
|
|
521
|
-
dashboard: "dashboard";
|
|
522
548
|
}>;
|
|
523
549
|
dueAt: z.ZodISODateTime;
|
|
524
550
|
}, z.core.$strip>>;
|
|
@@ -530,7 +556,21 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
530
556
|
done: "done";
|
|
531
557
|
running: "running";
|
|
532
558
|
}>;
|
|
533
|
-
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
gadget: z.ZodNullable<z.ZodObject<{
|
|
561
|
+
problem: z.ZodEnum<{
|
|
562
|
+
error: "error";
|
|
563
|
+
test: "test";
|
|
564
|
+
}>;
|
|
565
|
+
message: z.ZodString;
|
|
566
|
+
callId: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
567
|
+
open: z.ZodNumber;
|
|
568
|
+
level: z.ZodEnum<{
|
|
569
|
+
publish: "publish";
|
|
570
|
+
draft: "draft";
|
|
571
|
+
report: "report";
|
|
572
|
+
}>;
|
|
573
|
+
hint: z.ZodBoolean;
|
|
534
574
|
}, z.core.$strip>>;
|
|
535
575
|
}, z.core.$strip>, z.ZodObject<{
|
|
536
576
|
notice: z.ZodObject<{
|
|
@@ -625,7 +665,7 @@ export declare const ActionList: z.ZodObject<{
|
|
|
625
665
|
table: "table";
|
|
626
666
|
board: "board";
|
|
627
667
|
task: "task";
|
|
628
|
-
|
|
668
|
+
gadget: "gadget";
|
|
629
669
|
}>;
|
|
630
670
|
name: z.ZodString;
|
|
631
671
|
path: z.ZodObject<{
|
|
@@ -719,7 +759,6 @@ export declare const ActionList: z.ZodObject<{
|
|
|
719
759
|
process: z.ZodNullable<z.ZodObject<{
|
|
720
760
|
kind: z.ZodEnum<{
|
|
721
761
|
board: "board";
|
|
722
|
-
dashboard: "dashboard";
|
|
723
762
|
}>;
|
|
724
763
|
dueAt: z.ZodISODateTime;
|
|
725
764
|
}, z.core.$strip>>;
|
|
@@ -731,7 +770,21 @@ export declare const ActionList: z.ZodObject<{
|
|
|
731
770
|
done: "done";
|
|
732
771
|
running: "running";
|
|
733
772
|
}>;
|
|
734
|
-
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
gadget: z.ZodNullable<z.ZodObject<{
|
|
775
|
+
problem: z.ZodEnum<{
|
|
776
|
+
error: "error";
|
|
777
|
+
test: "test";
|
|
778
|
+
}>;
|
|
779
|
+
message: z.ZodString;
|
|
780
|
+
callId: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
|
|
781
|
+
open: z.ZodNumber;
|
|
782
|
+
level: z.ZodEnum<{
|
|
783
|
+
publish: "publish";
|
|
784
|
+
draft: "draft";
|
|
785
|
+
report: "report";
|
|
786
|
+
}>;
|
|
787
|
+
hint: z.ZodBoolean;
|
|
735
788
|
}, z.core.$strip>>;
|
|
736
789
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
790
|
notice: z.ZodObject<{
|
package/dist/actions/actions.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ColumnType, TaskColumn } from "../columns/columns.js";
|
|
3
|
+
import { CallId } from "../connectors/connectors.js";
|
|
4
|
+
import { GadgetLevel } from "../gadgets/gadgets.js";
|
|
3
5
|
import { packages } from "../grammar/grammar.js";
|
|
4
6
|
import { InstructionsLink } from "../instructions/instructions.js";
|
|
5
7
|
import { Limit as PageSize } from "../list-input.js";
|
|
@@ -16,7 +18,7 @@ export const ActionListInput = z.strictObject({
|
|
|
16
18
|
filter: z
|
|
17
19
|
.enum(actionFilters)
|
|
18
20
|
.optional()
|
|
19
|
-
.describe("Which rows: all, tasks (tasks, due processes, open runs and
|
|
21
|
+
.describe("Which rows: all, tasks (tasks, due processes, open runs and broken gadgets you answer for) or chats (rows with something unread, a task's chat included). Notices of other parts of Colab come only with all. Leaving it out gives all. count always counts all."),
|
|
20
22
|
userId: UserId.optional().describe("Whose Actions to read, `user_…`. Only an admin in admin mode reads another person's, to see where they are stuck; anyone else gets not_found. Leaving it out reads your own."),
|
|
21
23
|
cursor: z
|
|
22
24
|
.string()
|
|
@@ -48,21 +50,33 @@ export const ActionChat = z.object({
|
|
|
48
50
|
createdAt: z.iso.datetime(),
|
|
49
51
|
}),
|
|
50
52
|
});
|
|
51
|
-
// A process board
|
|
53
|
+
// A process board that is due for its Operator.
|
|
52
54
|
export const ActionProcess = z.object({
|
|
53
|
-
kind: z.enum(["board"
|
|
55
|
+
kind: z.enum(["board"]),
|
|
54
56
|
// The moment of the schedule the next run stands for.
|
|
55
57
|
dueAt: z.iso.datetime(),
|
|
56
58
|
});
|
|
57
59
|
export const ActionRun = z.object({
|
|
58
60
|
runId: RunId,
|
|
59
61
|
status: RunStatus,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
});
|
|
63
|
+
// A gadget whose live version broke (#643, Nodes › Gadget › Einstellungen): every new error and every
|
|
64
|
+
// red test waits on its responsible; without one, on its publisher as a hint to name one. Open until
|
|
65
|
+
// the next version is published, or for a test until the tests of live pass again.
|
|
66
|
+
export const ActionGadget = z.object({
|
|
67
|
+
// The newest open problem: an error of a call (with its entry in the log) or a red test.
|
|
68
|
+
problem: z.enum(["error", "test"]),
|
|
69
|
+
message: z.string(),
|
|
70
|
+
callId: CallId.nullable(),
|
|
71
|
+
// How many different problems are open, each counted once however often it happened.
|
|
72
|
+
open: z.number().int(),
|
|
73
|
+
// How far the responsible may go: report, repair as a draft, or repair and publish.
|
|
74
|
+
level: GadgetLevel,
|
|
75
|
+
// Nobody is responsible: the row reaches the publisher only to name one.
|
|
76
|
+
hint: z.boolean(),
|
|
63
77
|
});
|
|
64
78
|
// One row: the node, where it waits, since when, and what makes it wait. Exactly one of task,
|
|
65
|
-
// process and
|
|
79
|
+
// process, run and gadget, or none of them on a row that is a chat alone; chat beside any of them.
|
|
66
80
|
export const ActionItem = z.object({
|
|
67
81
|
node: z.object({
|
|
68
82
|
nodeId: NodeId,
|
|
@@ -85,6 +99,7 @@ export const ActionItem = z.object({
|
|
|
85
99
|
chat: ActionChat.nullable(),
|
|
86
100
|
process: ActionProcess.nullable(),
|
|
87
101
|
run: ActionRun.nullable(),
|
|
102
|
+
gadget: ActionGadget.nullable(),
|
|
88
103
|
});
|
|
89
104
|
// What another package puts into a person's Actions (#334, E81, E82): "access invalid" for every
|
|
90
105
|
// admin, "Operator paused" for its responsible person. Gathered when asked like every row, never
|