@tashks/core 0.1.0 → 0.1.2
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/src/hooks.d.ts +18 -0
- package/dist/src/hooks.d.ts.map +1 -0
- package/dist/src/hooks.js +140 -0
- package/dist/src/id.d.ts +2 -0
- package/dist/src/id.d.ts.map +1 -0
- package/dist/src/id.js +17 -0
- package/dist/src/proseql-repository.d.ts +12 -0
- package/dist/src/proseql-repository.d.ts.map +1 -0
- package/dist/src/proseql-repository.js +255 -0
- package/dist/src/query.d.ts +110 -269
- package/dist/src/query.test.d.ts +1 -1
- package/dist/src/recurrence.d.ts +21 -0
- package/dist/src/recurrence.d.ts.map +1 -0
- package/dist/src/recurrence.js +194 -0
- package/dist/src/repository.d.ts +44 -83
- package/dist/src/repository.d.ts.map +1 -1
- package/dist/src/repository.js +26 -338
- package/dist/src/repository.test.d.ts +1 -1
- package/dist/src/repository.test.js +4 -0
- package/dist/src/schema.d.ts +208 -434
- package/dist/src/schema.test.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -8
package/dist/src/schema.d.ts
CHANGED
|
@@ -1,460 +1,234 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export declare const TaskStatus: Schema.Literal<
|
|
3
|
-
["active", "backlog", "blocked", "done", "dropped", "on-hold"]
|
|
4
|
-
>;
|
|
2
|
+
export declare const TaskStatus: Schema.Literal<["active", "backlog", "blocked", "done", "dropped", "on-hold"]>;
|
|
5
3
|
export type TaskStatus = Schema.Schema.Type<typeof TaskStatus>;
|
|
6
|
-
export declare const TaskArea: Schema.Literal<
|
|
7
|
-
[
|
|
8
|
-
"health",
|
|
9
|
-
"infrastructure",
|
|
10
|
-
"work",
|
|
11
|
-
"personal",
|
|
12
|
-
"blog",
|
|
13
|
-
"code",
|
|
14
|
-
"home",
|
|
15
|
-
"side-projects",
|
|
16
|
-
]
|
|
17
|
-
>;
|
|
4
|
+
export declare const TaskArea: Schema.Literal<["health", "infrastructure", "work", "personal", "blog", "code", "home", "side-projects"]>;
|
|
18
5
|
export type TaskArea = Schema.Schema.Type<typeof TaskArea>;
|
|
19
|
-
export declare const TaskUrgency: Schema.Literal<
|
|
20
|
-
["low", "medium", "high", "urgent", "critical"]
|
|
21
|
-
>;
|
|
6
|
+
export declare const TaskUrgency: Schema.Literal<["low", "medium", "high", "urgent", "critical"]>;
|
|
22
7
|
export type TaskUrgency = Schema.Schema.Type<typeof TaskUrgency>;
|
|
23
8
|
export declare const TaskEnergy: Schema.Literal<["low", "medium", "high"]>;
|
|
24
9
|
export type TaskEnergy = Schema.Schema.Type<typeof TaskEnergy>;
|
|
25
10
|
export declare const Subtask: Schema.Struct<{
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
text: typeof Schema.String;
|
|
12
|
+
done: typeof Schema.Boolean;
|
|
28
13
|
}>;
|
|
29
14
|
export type Subtask = Schema.Schema.Type<typeof Subtask>;
|
|
30
|
-
export declare const TaskRecurrenceTrigger: Schema.Literal<
|
|
31
|
-
|
|
32
|
-
>;
|
|
33
|
-
export type
|
|
34
|
-
typeof TaskRecurrenceTrigger
|
|
35
|
-
>;
|
|
36
|
-
export declare const TaskRecurrenceStrategy: Schema.Literal<
|
|
37
|
-
["replace", "accumulate"]
|
|
38
|
-
>;
|
|
39
|
-
export type TaskRecurrenceStrategy = Schema.Schema.Type<
|
|
40
|
-
typeof TaskRecurrenceStrategy
|
|
41
|
-
>;
|
|
15
|
+
export declare const TaskRecurrenceTrigger: Schema.Literal<["clock", "completion"]>;
|
|
16
|
+
export type TaskRecurrenceTrigger = Schema.Schema.Type<typeof TaskRecurrenceTrigger>;
|
|
17
|
+
export declare const TaskRecurrenceStrategy: Schema.Literal<["replace", "accumulate"]>;
|
|
18
|
+
export type TaskRecurrenceStrategy = Schema.Schema.Type<typeof TaskRecurrenceStrategy>;
|
|
42
19
|
export declare const Task: Schema.Struct<{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
text: typeof Schema.String;
|
|
71
|
-
done: typeof Schema.Boolean;
|
|
72
|
-
}>
|
|
73
|
-
>;
|
|
74
|
-
blocked_by: Schema.Array$<typeof Schema.String>;
|
|
75
|
-
estimated_minutes: Schema.NullOr<typeof Schema.Number>;
|
|
76
|
-
actual_minutes: Schema.NullOr<typeof Schema.Number>;
|
|
77
|
-
completed_at: Schema.NullOr<typeof Schema.String>;
|
|
78
|
-
last_surfaced: Schema.NullOr<typeof Schema.String>;
|
|
79
|
-
defer_until: Schema.NullOr<typeof Schema.String>;
|
|
80
|
-
nudge_count: typeof Schema.Number;
|
|
81
|
-
recurrence: Schema.NullOr<typeof Schema.String>;
|
|
82
|
-
recurrence_trigger: Schema.Literal<["clock", "completion"]>;
|
|
83
|
-
recurrence_strategy: Schema.Literal<["replace", "accumulate"]>;
|
|
84
|
-
recurrence_last_generated: Schema.NullOr<typeof Schema.String>;
|
|
20
|
+
id: typeof Schema.String;
|
|
21
|
+
title: typeof Schema.String;
|
|
22
|
+
status: Schema.Literal<["active", "backlog", "blocked", "done", "dropped", "on-hold"]>;
|
|
23
|
+
area: Schema.Literal<["health", "infrastructure", "work", "personal", "blog", "code", "home", "side-projects"]>;
|
|
24
|
+
project: Schema.NullOr<typeof Schema.String>;
|
|
25
|
+
tags: Schema.Array$<typeof Schema.String>;
|
|
26
|
+
created: typeof Schema.String;
|
|
27
|
+
updated: typeof Schema.String;
|
|
28
|
+
urgency: Schema.Literal<["low", "medium", "high", "urgent", "critical"]>;
|
|
29
|
+
energy: Schema.Literal<["low", "medium", "high"]>;
|
|
30
|
+
due: Schema.NullOr<typeof Schema.String>;
|
|
31
|
+
context: typeof Schema.String;
|
|
32
|
+
subtasks: Schema.Array$<Schema.Struct<{
|
|
33
|
+
text: typeof Schema.String;
|
|
34
|
+
done: typeof Schema.Boolean;
|
|
35
|
+
}>>;
|
|
36
|
+
blocked_by: Schema.Array$<typeof Schema.String>;
|
|
37
|
+
estimated_minutes: Schema.NullOr<typeof Schema.Number>;
|
|
38
|
+
actual_minutes: Schema.NullOr<typeof Schema.Number>;
|
|
39
|
+
completed_at: Schema.NullOr<typeof Schema.String>;
|
|
40
|
+
last_surfaced: Schema.NullOr<typeof Schema.String>;
|
|
41
|
+
defer_until: Schema.NullOr<typeof Schema.String>;
|
|
42
|
+
nudge_count: typeof Schema.Number;
|
|
43
|
+
recurrence: Schema.NullOr<typeof Schema.String>;
|
|
44
|
+
recurrence_trigger: Schema.Literal<["clock", "completion"]>;
|
|
45
|
+
recurrence_strategy: Schema.Literal<["replace", "accumulate"]>;
|
|
46
|
+
recurrence_last_generated: Schema.NullOr<typeof Schema.String>;
|
|
85
47
|
}>;
|
|
86
48
|
export type Task = Schema.Schema.Type<typeof Task>;
|
|
87
49
|
export declare const TaskCreateInput: Schema.Struct<{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
{
|
|
159
|
-
default: () => string;
|
|
160
|
-
}
|
|
161
|
-
>;
|
|
162
|
-
subtasks: Schema.optionalWith<
|
|
163
|
-
Schema.Array$<
|
|
164
|
-
Schema.Struct<{
|
|
165
|
-
text: typeof Schema.String;
|
|
166
|
-
done: typeof Schema.Boolean;
|
|
167
|
-
}>
|
|
168
|
-
>,
|
|
169
|
-
{
|
|
170
|
-
default: () => never[];
|
|
171
|
-
}
|
|
172
|
-
>;
|
|
173
|
-
blocked_by: Schema.optionalWith<
|
|
174
|
-
Schema.Array$<typeof Schema.String>,
|
|
175
|
-
{
|
|
176
|
-
default: () => never[];
|
|
177
|
-
}
|
|
178
|
-
>;
|
|
179
|
-
estimated_minutes: Schema.optionalWith<
|
|
180
|
-
Schema.NullOr<typeof Schema.Number>,
|
|
181
|
-
{
|
|
182
|
-
default: () => null;
|
|
183
|
-
}
|
|
184
|
-
>;
|
|
185
|
-
actual_minutes: Schema.optionalWith<
|
|
186
|
-
Schema.NullOr<typeof Schema.Number>,
|
|
187
|
-
{
|
|
188
|
-
default: () => null;
|
|
189
|
-
}
|
|
190
|
-
>;
|
|
191
|
-
completed_at: Schema.optionalWith<
|
|
192
|
-
Schema.NullOr<typeof Schema.String>,
|
|
193
|
-
{
|
|
194
|
-
default: () => null;
|
|
195
|
-
}
|
|
196
|
-
>;
|
|
197
|
-
last_surfaced: Schema.optionalWith<
|
|
198
|
-
Schema.NullOr<typeof Schema.String>,
|
|
199
|
-
{
|
|
200
|
-
default: () => null;
|
|
201
|
-
}
|
|
202
|
-
>;
|
|
203
|
-
defer_until: Schema.optionalWith<
|
|
204
|
-
Schema.NullOr<typeof Schema.String>,
|
|
205
|
-
{
|
|
206
|
-
default: () => null;
|
|
207
|
-
}
|
|
208
|
-
>;
|
|
209
|
-
nudge_count: Schema.optionalWith<
|
|
210
|
-
typeof Schema.Number,
|
|
211
|
-
{
|
|
212
|
-
default: () => number;
|
|
213
|
-
}
|
|
214
|
-
>;
|
|
215
|
-
recurrence: Schema.optionalWith<
|
|
216
|
-
Schema.NullOr<typeof Schema.String>,
|
|
217
|
-
{
|
|
218
|
-
default: () => null;
|
|
219
|
-
}
|
|
220
|
-
>;
|
|
221
|
-
recurrence_trigger: Schema.optionalWith<
|
|
222
|
-
Schema.Literal<["clock", "completion"]>,
|
|
223
|
-
{
|
|
224
|
-
default: () => "clock";
|
|
225
|
-
}
|
|
226
|
-
>;
|
|
227
|
-
recurrence_strategy: Schema.optionalWith<
|
|
228
|
-
Schema.Literal<["replace", "accumulate"]>,
|
|
229
|
-
{
|
|
230
|
-
default: () => "replace";
|
|
231
|
-
}
|
|
232
|
-
>;
|
|
233
|
-
recurrence_last_generated: Schema.optionalWith<
|
|
234
|
-
Schema.NullOr<typeof Schema.String>,
|
|
235
|
-
{
|
|
236
|
-
default: () => null;
|
|
237
|
-
}
|
|
238
|
-
>;
|
|
50
|
+
title: typeof Schema.String;
|
|
51
|
+
status: Schema.optionalWith<Schema.Literal<["active", "backlog", "blocked", "done", "dropped", "on-hold"]>, {
|
|
52
|
+
default: () => "active";
|
|
53
|
+
}>;
|
|
54
|
+
area: Schema.optionalWith<Schema.Literal<["health", "infrastructure", "work", "personal", "blog", "code", "home", "side-projects"]>, {
|
|
55
|
+
default: () => "personal";
|
|
56
|
+
}>;
|
|
57
|
+
project: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
58
|
+
default: () => null;
|
|
59
|
+
}>;
|
|
60
|
+
tags: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
61
|
+
default: () => never[];
|
|
62
|
+
}>;
|
|
63
|
+
created: Schema.optionalWith<typeof Schema.String, {
|
|
64
|
+
default: () => string;
|
|
65
|
+
}>;
|
|
66
|
+
updated: Schema.optionalWith<typeof Schema.String, {
|
|
67
|
+
default: () => string;
|
|
68
|
+
}>;
|
|
69
|
+
urgency: Schema.optionalWith<Schema.Literal<["low", "medium", "high", "urgent", "critical"]>, {
|
|
70
|
+
default: () => "medium";
|
|
71
|
+
}>;
|
|
72
|
+
energy: Schema.optionalWith<Schema.Literal<["low", "medium", "high"]>, {
|
|
73
|
+
default: () => "medium";
|
|
74
|
+
}>;
|
|
75
|
+
due: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
76
|
+
default: () => null;
|
|
77
|
+
}>;
|
|
78
|
+
context: Schema.optionalWith<typeof Schema.String, {
|
|
79
|
+
default: () => string;
|
|
80
|
+
}>;
|
|
81
|
+
subtasks: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
82
|
+
text: typeof Schema.String;
|
|
83
|
+
done: typeof Schema.Boolean;
|
|
84
|
+
}>>, {
|
|
85
|
+
default: () => never[];
|
|
86
|
+
}>;
|
|
87
|
+
blocked_by: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
88
|
+
default: () => never[];
|
|
89
|
+
}>;
|
|
90
|
+
estimated_minutes: Schema.optionalWith<Schema.NullOr<typeof Schema.Number>, {
|
|
91
|
+
default: () => null;
|
|
92
|
+
}>;
|
|
93
|
+
actual_minutes: Schema.optionalWith<Schema.NullOr<typeof Schema.Number>, {
|
|
94
|
+
default: () => null;
|
|
95
|
+
}>;
|
|
96
|
+
completed_at: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
97
|
+
default: () => null;
|
|
98
|
+
}>;
|
|
99
|
+
last_surfaced: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
100
|
+
default: () => null;
|
|
101
|
+
}>;
|
|
102
|
+
defer_until: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
103
|
+
default: () => null;
|
|
104
|
+
}>;
|
|
105
|
+
nudge_count: Schema.optionalWith<typeof Schema.Number, {
|
|
106
|
+
default: () => number;
|
|
107
|
+
}>;
|
|
108
|
+
recurrence: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
109
|
+
default: () => null;
|
|
110
|
+
}>;
|
|
111
|
+
recurrence_trigger: Schema.optionalWith<Schema.Literal<["clock", "completion"]>, {
|
|
112
|
+
default: () => "clock";
|
|
113
|
+
}>;
|
|
114
|
+
recurrence_strategy: Schema.optionalWith<Schema.Literal<["replace", "accumulate"]>, {
|
|
115
|
+
default: () => "replace";
|
|
116
|
+
}>;
|
|
117
|
+
recurrence_last_generated: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
118
|
+
default: () => null;
|
|
119
|
+
}>;
|
|
239
120
|
}>;
|
|
240
121
|
export type TaskCreateInput = Schema.Schema.Encoded<typeof TaskCreateInput>;
|
|
241
122
|
export declare const TaskPatch: Schema.Struct<{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
{
|
|
318
|
-
exact: true;
|
|
319
|
-
}
|
|
320
|
-
>;
|
|
321
|
-
context: Schema.optionalWith<
|
|
322
|
-
typeof Schema.String,
|
|
323
|
-
{
|
|
324
|
-
exact: true;
|
|
325
|
-
}
|
|
326
|
-
>;
|
|
327
|
-
subtasks: Schema.optionalWith<
|
|
328
|
-
Schema.Array$<
|
|
329
|
-
Schema.Struct<{
|
|
330
|
-
text: typeof Schema.String;
|
|
331
|
-
done: typeof Schema.Boolean;
|
|
332
|
-
}>
|
|
333
|
-
>,
|
|
334
|
-
{
|
|
335
|
-
exact: true;
|
|
336
|
-
}
|
|
337
|
-
>;
|
|
338
|
-
blocked_by: Schema.optionalWith<
|
|
339
|
-
Schema.Array$<typeof Schema.String>,
|
|
340
|
-
{
|
|
341
|
-
exact: true;
|
|
342
|
-
}
|
|
343
|
-
>;
|
|
344
|
-
estimated_minutes: Schema.optionalWith<
|
|
345
|
-
Schema.NullOr<typeof Schema.Number>,
|
|
346
|
-
{
|
|
347
|
-
exact: true;
|
|
348
|
-
}
|
|
349
|
-
>;
|
|
350
|
-
actual_minutes: Schema.optionalWith<
|
|
351
|
-
Schema.NullOr<typeof Schema.Number>,
|
|
352
|
-
{
|
|
353
|
-
exact: true;
|
|
354
|
-
}
|
|
355
|
-
>;
|
|
356
|
-
completed_at: Schema.optionalWith<
|
|
357
|
-
Schema.NullOr<typeof Schema.String>,
|
|
358
|
-
{
|
|
359
|
-
exact: true;
|
|
360
|
-
}
|
|
361
|
-
>;
|
|
362
|
-
last_surfaced: Schema.optionalWith<
|
|
363
|
-
Schema.NullOr<typeof Schema.String>,
|
|
364
|
-
{
|
|
365
|
-
exact: true;
|
|
366
|
-
}
|
|
367
|
-
>;
|
|
368
|
-
defer_until: Schema.optionalWith<
|
|
369
|
-
Schema.NullOr<typeof Schema.String>,
|
|
370
|
-
{
|
|
371
|
-
exact: true;
|
|
372
|
-
}
|
|
373
|
-
>;
|
|
374
|
-
nudge_count: Schema.optionalWith<
|
|
375
|
-
typeof Schema.Number,
|
|
376
|
-
{
|
|
377
|
-
exact: true;
|
|
378
|
-
}
|
|
379
|
-
>;
|
|
380
|
-
recurrence: Schema.optionalWith<
|
|
381
|
-
Schema.NullOr<typeof Schema.String>,
|
|
382
|
-
{
|
|
383
|
-
exact: true;
|
|
384
|
-
}
|
|
385
|
-
>;
|
|
386
|
-
recurrence_trigger: Schema.optionalWith<
|
|
387
|
-
Schema.Literal<["clock", "completion"]>,
|
|
388
|
-
{
|
|
389
|
-
exact: true;
|
|
390
|
-
}
|
|
391
|
-
>;
|
|
392
|
-
recurrence_strategy: Schema.optionalWith<
|
|
393
|
-
Schema.Literal<["replace", "accumulate"]>,
|
|
394
|
-
{
|
|
395
|
-
exact: true;
|
|
396
|
-
}
|
|
397
|
-
>;
|
|
398
|
-
recurrence_last_generated: Schema.optionalWith<
|
|
399
|
-
Schema.NullOr<typeof Schema.String>,
|
|
400
|
-
{
|
|
401
|
-
exact: true;
|
|
402
|
-
}
|
|
403
|
-
>;
|
|
123
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
124
|
+
exact: true;
|
|
125
|
+
}>;
|
|
126
|
+
title: Schema.optionalWith<typeof Schema.String, {
|
|
127
|
+
exact: true;
|
|
128
|
+
}>;
|
|
129
|
+
status: Schema.optionalWith<Schema.Literal<["active", "backlog", "blocked", "done", "dropped", "on-hold"]>, {
|
|
130
|
+
exact: true;
|
|
131
|
+
}>;
|
|
132
|
+
area: Schema.optionalWith<Schema.Literal<["health", "infrastructure", "work", "personal", "blog", "code", "home", "side-projects"]>, {
|
|
133
|
+
exact: true;
|
|
134
|
+
}>;
|
|
135
|
+
project: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
136
|
+
exact: true;
|
|
137
|
+
}>;
|
|
138
|
+
tags: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
139
|
+
exact: true;
|
|
140
|
+
}>;
|
|
141
|
+
created: Schema.optionalWith<typeof Schema.String, {
|
|
142
|
+
exact: true;
|
|
143
|
+
}>;
|
|
144
|
+
updated: Schema.optionalWith<typeof Schema.String, {
|
|
145
|
+
exact: true;
|
|
146
|
+
}>;
|
|
147
|
+
urgency: Schema.optionalWith<Schema.Literal<["low", "medium", "high", "urgent", "critical"]>, {
|
|
148
|
+
exact: true;
|
|
149
|
+
}>;
|
|
150
|
+
energy: Schema.optionalWith<Schema.Literal<["low", "medium", "high"]>, {
|
|
151
|
+
exact: true;
|
|
152
|
+
}>;
|
|
153
|
+
due: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
154
|
+
exact: true;
|
|
155
|
+
}>;
|
|
156
|
+
context: Schema.optionalWith<typeof Schema.String, {
|
|
157
|
+
exact: true;
|
|
158
|
+
}>;
|
|
159
|
+
subtasks: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
160
|
+
text: typeof Schema.String;
|
|
161
|
+
done: typeof Schema.Boolean;
|
|
162
|
+
}>>, {
|
|
163
|
+
exact: true;
|
|
164
|
+
}>;
|
|
165
|
+
blocked_by: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
166
|
+
exact: true;
|
|
167
|
+
}>;
|
|
168
|
+
estimated_minutes: Schema.optionalWith<Schema.NullOr<typeof Schema.Number>, {
|
|
169
|
+
exact: true;
|
|
170
|
+
}>;
|
|
171
|
+
actual_minutes: Schema.optionalWith<Schema.NullOr<typeof Schema.Number>, {
|
|
172
|
+
exact: true;
|
|
173
|
+
}>;
|
|
174
|
+
completed_at: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
175
|
+
exact: true;
|
|
176
|
+
}>;
|
|
177
|
+
last_surfaced: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
178
|
+
exact: true;
|
|
179
|
+
}>;
|
|
180
|
+
defer_until: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
181
|
+
exact: true;
|
|
182
|
+
}>;
|
|
183
|
+
nudge_count: Schema.optionalWith<typeof Schema.Number, {
|
|
184
|
+
exact: true;
|
|
185
|
+
}>;
|
|
186
|
+
recurrence: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
187
|
+
exact: true;
|
|
188
|
+
}>;
|
|
189
|
+
recurrence_trigger: Schema.optionalWith<Schema.Literal<["clock", "completion"]>, {
|
|
190
|
+
exact: true;
|
|
191
|
+
}>;
|
|
192
|
+
recurrence_strategy: Schema.optionalWith<Schema.Literal<["replace", "accumulate"]>, {
|
|
193
|
+
exact: true;
|
|
194
|
+
}>;
|
|
195
|
+
recurrence_last_generated: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
196
|
+
exact: true;
|
|
197
|
+
}>;
|
|
404
198
|
}>;
|
|
405
199
|
export type TaskPatch = Schema.Schema.Encoded<typeof TaskPatch>;
|
|
406
200
|
export declare const WorkLogEntry: Schema.Struct<{
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
201
|
+
id: typeof Schema.String;
|
|
202
|
+
task_id: typeof Schema.String;
|
|
203
|
+
started_at: typeof Schema.String;
|
|
204
|
+
ended_at: Schema.NullOr<typeof Schema.String>;
|
|
205
|
+
date: typeof Schema.String;
|
|
412
206
|
}>;
|
|
413
207
|
export type WorkLogEntry = Schema.Schema.Type<typeof WorkLogEntry>;
|
|
414
208
|
export declare const WorkLogCreateInput: Schema.Struct<{
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
default: () => null;
|
|
421
|
-
}
|
|
422
|
-
>;
|
|
209
|
+
task_id: typeof Schema.String;
|
|
210
|
+
started_at: typeof Schema.String;
|
|
211
|
+
ended_at: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
212
|
+
default: () => null;
|
|
213
|
+
}>;
|
|
423
214
|
}>;
|
|
424
|
-
export type WorkLogCreateInput = Schema.Schema.Encoded<
|
|
425
|
-
typeof WorkLogCreateInput
|
|
426
|
-
>;
|
|
215
|
+
export type WorkLogCreateInput = Schema.Schema.Encoded<typeof WorkLogCreateInput>;
|
|
427
216
|
export declare const WorkLogPatch: Schema.Struct<{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
exact: true;
|
|
444
|
-
}
|
|
445
|
-
>;
|
|
446
|
-
ended_at: Schema.optionalWith<
|
|
447
|
-
Schema.NullOr<typeof Schema.String>,
|
|
448
|
-
{
|
|
449
|
-
exact: true;
|
|
450
|
-
}
|
|
451
|
-
>;
|
|
452
|
-
date: Schema.optionalWith<
|
|
453
|
-
typeof Schema.String,
|
|
454
|
-
{
|
|
455
|
-
exact: true;
|
|
456
|
-
}
|
|
457
|
-
>;
|
|
217
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
218
|
+
exact: true;
|
|
219
|
+
}>;
|
|
220
|
+
task_id: Schema.optionalWith<typeof Schema.String, {
|
|
221
|
+
exact: true;
|
|
222
|
+
}>;
|
|
223
|
+
started_at: Schema.optionalWith<typeof Schema.String, {
|
|
224
|
+
exact: true;
|
|
225
|
+
}>;
|
|
226
|
+
ended_at: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
227
|
+
exact: true;
|
|
228
|
+
}>;
|
|
229
|
+
date: Schema.optionalWith<typeof Schema.String, {
|
|
230
|
+
exact: true;
|
|
231
|
+
}>;
|
|
458
232
|
}>;
|
|
459
233
|
export type WorkLogPatch = Schema.Schema.Encoded<typeof WorkLogPatch>;
|
|
460
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
234
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=schema.test.d.ts.map
|
|
2
|
+
//# sourceMappingURL=schema.test.d.ts.map
|