@gjermundgaraba/wtf-api 0.13.0 → 0.14.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/dist/areas.d.ts +24 -9
- package/dist/areas.js +5 -6
- package/dist/goals.d.ts +48 -18
- package/dist/goals.js +9 -10
- package/dist/index.d.ts +128 -62
- package/dist/shared.d.ts +30 -2
- package/dist/shared.js +7 -1
- package/dist/tasks.d.ts +65 -19
- package/dist/tasks.js +14 -10
- package/dist/values.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
9
9
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
10
10
|
readonly title: import("effect/Schema").String;
|
|
11
11
|
readonly description: import("effect/Schema").String;
|
|
12
|
-
readonly sortKey: import("effect/Schema").String;
|
|
13
12
|
readonly createdAt: import("effect/Schema").String;
|
|
14
13
|
readonly updatedAt: import("effect/Schema").String;
|
|
15
14
|
}>>, readonly typeof import("./shared.ts").StorageError[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_get", import("effect/Schema").Struct<{
|
|
@@ -18,30 +17,37 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
18
17
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
19
18
|
readonly title: import("effect/Schema").String;
|
|
20
19
|
readonly description: import("effect/Schema").String;
|
|
21
|
-
readonly sortKey: import("effect/Schema").String;
|
|
22
20
|
readonly createdAt: import("effect/Schema").String;
|
|
23
21
|
readonly updatedAt: import("effect/Schema").String;
|
|
24
22
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").StorageError)[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_create", import("effect/Schema").Struct<{
|
|
25
23
|
readonly title: import("effect/Schema").String;
|
|
26
24
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
27
|
-
readonly
|
|
25
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
26
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
27
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
28
|
+
}>;
|
|
29
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
30
|
+
}>>;
|
|
28
31
|
}>, import("effect/Schema").Struct<{
|
|
29
32
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
30
33
|
readonly title: import("effect/Schema").String;
|
|
31
34
|
readonly description: import("effect/Schema").String;
|
|
32
|
-
readonly sortKey: import("effect/Schema").String;
|
|
33
35
|
readonly createdAt: import("effect/Schema").String;
|
|
34
36
|
readonly updatedAt: import("effect/Schema").String;
|
|
35
37
|
}>, readonly (typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_update", import("effect/Schema").Struct<{
|
|
36
38
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
37
39
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
38
40
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
39
|
-
readonly
|
|
41
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
42
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
43
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
44
|
+
}>;
|
|
45
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
46
|
+
}>>;
|
|
40
47
|
}>, import("effect/Schema").Struct<{
|
|
41
48
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
42
49
|
readonly title: import("effect/Schema").String;
|
|
43
50
|
readonly description: import("effect/Schema").String;
|
|
44
|
-
readonly sortKey: import("effect/Schema").String;
|
|
45
51
|
readonly createdAt: import("effect/Schema").String;
|
|
46
52
|
readonly updatedAt: import("effect/Schema").String;
|
|
47
53
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_remove", import("effect/Schema").Struct<{
|
|
@@ -56,7 +62,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
56
62
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
57
63
|
readonly title: import("effect/Schema").String;
|
|
58
64
|
readonly description: import("effect/Schema").String;
|
|
59
|
-
readonly sortKey: import("effect/Schema").String;
|
|
60
65
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
61
66
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
62
67
|
readonly text: import("effect/Schema").String;
|
|
@@ -72,7 +77,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
72
77
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
73
78
|
readonly title: import("effect/Schema").String;
|
|
74
79
|
readonly description: import("effect/Schema").String;
|
|
75
|
-
readonly sortKey: import("effect/Schema").String;
|
|
76
80
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
77
81
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
78
82
|
readonly text: import("effect/Schema").String;
|
|
@@ -85,14 +89,18 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
85
89
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
86
90
|
readonly title: import("effect/Schema").String;
|
|
87
91
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
88
|
-
readonly
|
|
92
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
93
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
94
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
95
|
+
}>;
|
|
96
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
97
|
+
}>>;
|
|
89
98
|
readonly outcomes: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
90
99
|
}>, import("effect/Schema").Struct<{
|
|
91
100
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
92
101
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
93
102
|
readonly title: import("effect/Schema").String;
|
|
94
103
|
readonly description: import("effect/Schema").String;
|
|
95
|
-
readonly sortKey: import("effect/Schema").String;
|
|
96
104
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
97
105
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
98
106
|
readonly text: import("effect/Schema").String;
|
|
@@ -106,13 +114,17 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
106
114
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
107
115
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
108
116
|
readonly areaId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "AreaId">>;
|
|
109
|
-
readonly
|
|
117
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
118
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
119
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
120
|
+
}>;
|
|
121
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
122
|
+
}>>;
|
|
110
123
|
}>, import("effect/Schema").Struct<{
|
|
111
124
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
112
125
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
113
126
|
readonly title: import("effect/Schema").String;
|
|
114
127
|
readonly description: import("effect/Schema").String;
|
|
115
|
-
readonly sortKey: import("effect/Schema").String;
|
|
116
128
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
117
129
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
118
130
|
readonly text: import("effect/Schema").String;
|
|
@@ -124,13 +136,17 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
124
136
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"goals_add_outcome", import("effect/Schema").Struct<{
|
|
125
137
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
126
138
|
readonly text: import("effect/Schema").String;
|
|
127
|
-
readonly
|
|
139
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
140
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
141
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
142
|
+
}>;
|
|
143
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
144
|
+
}>>;
|
|
128
145
|
}>, import("effect/Schema").Struct<{
|
|
129
146
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
130
147
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
131
148
|
readonly title: import("effect/Schema").String;
|
|
132
149
|
readonly description: import("effect/Schema").String;
|
|
133
|
-
readonly sortKey: import("effect/Schema").String;
|
|
134
150
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
135
151
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
136
152
|
readonly text: import("effect/Schema").String;
|
|
@@ -144,13 +160,17 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
144
160
|
readonly outcomeId: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
145
161
|
readonly text: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
146
162
|
readonly achieved: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
147
|
-
readonly
|
|
163
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
164
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
165
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
166
|
+
}>;
|
|
167
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
168
|
+
}>>;
|
|
148
169
|
}>, import("effect/Schema").Struct<{
|
|
149
170
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
150
171
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
151
172
|
readonly title: import("effect/Schema").String;
|
|
152
173
|
readonly description: import("effect/Schema").String;
|
|
153
|
-
readonly sortKey: import("effect/Schema").String;
|
|
154
174
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
155
175
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
156
176
|
readonly text: import("effect/Schema").String;
|
|
@@ -167,7 +187,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
167
187
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
168
188
|
readonly title: import("effect/Schema").String;
|
|
169
189
|
readonly description: import("effect/Schema").String;
|
|
170
|
-
readonly sortKey: import("effect/Schema").String;
|
|
171
190
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
172
191
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
173
192
|
readonly text: import("effect/Schema").String;
|
|
@@ -183,7 +202,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
183
202
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
184
203
|
readonly title: import("effect/Schema").String;
|
|
185
204
|
readonly description: import("effect/Schema").String;
|
|
186
|
-
readonly sortKey: import("effect/Schema").String;
|
|
187
205
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
188
206
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
189
207
|
readonly text: import("effect/Schema").String;
|
|
@@ -199,7 +217,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
199
217
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
200
218
|
readonly title: import("effect/Schema").String;
|
|
201
219
|
readonly description: import("effect/Schema").String;
|
|
202
|
-
readonly sortKey: import("effect/Schema").String;
|
|
203
220
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
204
221
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
205
222
|
readonly text: import("effect/Schema").String;
|
|
@@ -231,7 +248,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
231
248
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
232
249
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
233
250
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
234
|
-
readonly sortKey: import("effect/Schema").String;
|
|
235
251
|
readonly createdAt: import("effect/Schema").String;
|
|
236
252
|
readonly updatedAt: import("effect/Schema").String;
|
|
237
253
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -250,14 +266,24 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
250
266
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
251
267
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
252
268
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
253
|
-
readonly sortKey: import("effect/Schema").String;
|
|
254
269
|
readonly createdAt: import("effect/Schema").String;
|
|
255
270
|
readonly updatedAt: import("effect/Schema").String;
|
|
256
271
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
257
272
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").StorageError)[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"tasks_create", import("effect/Schema").Struct<{
|
|
258
|
-
readonly
|
|
259
|
-
|
|
260
|
-
|
|
273
|
+
readonly placement: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
274
|
+
readonly Root: import("effect/Schema").TaggedStruct<"Root", {
|
|
275
|
+
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
276
|
+
}>;
|
|
277
|
+
readonly Under: import("effect/Schema").TaggedStruct<"Under", {
|
|
278
|
+
readonly parentTaskId: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
279
|
+
}>;
|
|
280
|
+
}>>;
|
|
281
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
282
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
283
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
284
|
+
}>;
|
|
285
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
286
|
+
}>>;
|
|
261
287
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
262
288
|
readonly status: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["inbox", "backlog", "todo", "in_progress", "done", "cancelled"]>>;
|
|
263
289
|
readonly focus: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
@@ -279,14 +305,24 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
279
305
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
280
306
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
281
307
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
282
|
-
readonly sortKey: import("effect/Schema").String;
|
|
283
308
|
readonly createdAt: import("effect/Schema").String;
|
|
284
309
|
readonly updatedAt: import("effect/Schema").String;
|
|
285
310
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
286
311
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").NoArea | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"tasks_update", import("effect/Schema").Struct<{
|
|
287
|
-
readonly
|
|
288
|
-
|
|
289
|
-
|
|
312
|
+
readonly placement: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
313
|
+
readonly Root: import("effect/Schema").TaggedStruct<"Root", {
|
|
314
|
+
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
315
|
+
}>;
|
|
316
|
+
readonly Under: import("effect/Schema").TaggedStruct<"Under", {
|
|
317
|
+
readonly parentTaskId: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
318
|
+
}>;
|
|
319
|
+
}>>;
|
|
320
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
321
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
322
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
323
|
+
}>;
|
|
324
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
325
|
+
}>>;
|
|
290
326
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
291
327
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
292
328
|
readonly status: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["inbox", "backlog", "todo", "in_progress", "done", "cancelled"]>>;
|
|
@@ -309,7 +345,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
309
345
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
310
346
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
311
347
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
312
|
-
readonly sortKey: import("effect/Schema").String;
|
|
313
348
|
readonly createdAt: import("effect/Schema").String;
|
|
314
349
|
readonly updatedAt: import("effect/Schema").String;
|
|
315
350
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -328,7 +363,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
328
363
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
329
364
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
330
365
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
331
|
-
readonly sortKey: import("effect/Schema").String;
|
|
332
366
|
readonly createdAt: import("effect/Schema").String;
|
|
333
367
|
readonly updatedAt: import("effect/Schema").String;
|
|
334
368
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -347,7 +381,6 @@ export declare const actions: readonly [import("@gjermundgaraba/effect-actions/A
|
|
|
347
381
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
348
382
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
349
383
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
350
|
-
readonly sortKey: import("effect/Schema").String;
|
|
351
384
|
readonly createdAt: import("effect/Schema").String;
|
|
352
385
|
readonly updatedAt: import("effect/Schema").String;
|
|
353
386
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -366,7 +399,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
366
399
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
367
400
|
readonly title: import("effect/Schema").String;
|
|
368
401
|
readonly description: import("effect/Schema").String;
|
|
369
|
-
readonly sortKey: import("effect/Schema").String;
|
|
370
402
|
readonly createdAt: import("effect/Schema").String;
|
|
371
403
|
readonly updatedAt: import("effect/Schema").String;
|
|
372
404
|
}>>, readonly typeof import("./shared.ts").StorageError[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_get", import("effect/Schema").Struct<{
|
|
@@ -375,30 +407,37 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
375
407
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
376
408
|
readonly title: import("effect/Schema").String;
|
|
377
409
|
readonly description: import("effect/Schema").String;
|
|
378
|
-
readonly sortKey: import("effect/Schema").String;
|
|
379
410
|
readonly createdAt: import("effect/Schema").String;
|
|
380
411
|
readonly updatedAt: import("effect/Schema").String;
|
|
381
412
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").StorageError)[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_create", import("effect/Schema").Struct<{
|
|
382
413
|
readonly title: import("effect/Schema").String;
|
|
383
414
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
384
|
-
readonly
|
|
415
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
416
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
417
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
418
|
+
}>;
|
|
419
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
420
|
+
}>>;
|
|
385
421
|
}>, import("effect/Schema").Struct<{
|
|
386
422
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
387
423
|
readonly title: import("effect/Schema").String;
|
|
388
424
|
readonly description: import("effect/Schema").String;
|
|
389
|
-
readonly sortKey: import("effect/Schema").String;
|
|
390
425
|
readonly createdAt: import("effect/Schema").String;
|
|
391
426
|
readonly updatedAt: import("effect/Schema").String;
|
|
392
427
|
}>, readonly (typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_update", import("effect/Schema").Struct<{
|
|
393
428
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
394
429
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
395
430
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
396
|
-
readonly
|
|
431
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
432
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
433
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
434
|
+
}>;
|
|
435
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
436
|
+
}>>;
|
|
397
437
|
}>, import("effect/Schema").Struct<{
|
|
398
438
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
399
439
|
readonly title: import("effect/Schema").String;
|
|
400
440
|
readonly description: import("effect/Schema").String;
|
|
401
|
-
readonly sortKey: import("effect/Schema").String;
|
|
402
441
|
readonly createdAt: import("effect/Schema").String;
|
|
403
442
|
readonly updatedAt: import("effect/Schema").String;
|
|
404
443
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"areas_remove", import("effect/Schema").Struct<{
|
|
@@ -413,7 +452,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
413
452
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
414
453
|
readonly title: import("effect/Schema").String;
|
|
415
454
|
readonly description: import("effect/Schema").String;
|
|
416
|
-
readonly sortKey: import("effect/Schema").String;
|
|
417
455
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
418
456
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
419
457
|
readonly text: import("effect/Schema").String;
|
|
@@ -429,7 +467,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
429
467
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
430
468
|
readonly title: import("effect/Schema").String;
|
|
431
469
|
readonly description: import("effect/Schema").String;
|
|
432
|
-
readonly sortKey: import("effect/Schema").String;
|
|
433
470
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
434
471
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
435
472
|
readonly text: import("effect/Schema").String;
|
|
@@ -442,14 +479,18 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
442
479
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
443
480
|
readonly title: import("effect/Schema").String;
|
|
444
481
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
445
|
-
readonly
|
|
482
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
483
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
484
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
485
|
+
}>;
|
|
486
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
487
|
+
}>>;
|
|
446
488
|
readonly outcomes: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
447
489
|
}>, import("effect/Schema").Struct<{
|
|
448
490
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
449
491
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
450
492
|
readonly title: import("effect/Schema").String;
|
|
451
493
|
readonly description: import("effect/Schema").String;
|
|
452
|
-
readonly sortKey: import("effect/Schema").String;
|
|
453
494
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
454
495
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
455
496
|
readonly text: import("effect/Schema").String;
|
|
@@ -463,13 +504,17 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
463
504
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
464
505
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
465
506
|
readonly areaId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "AreaId">>;
|
|
466
|
-
readonly
|
|
507
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
508
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
509
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
510
|
+
}>;
|
|
511
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
512
|
+
}>>;
|
|
467
513
|
}>, import("effect/Schema").Struct<{
|
|
468
514
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
469
515
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
470
516
|
readonly title: import("effect/Schema").String;
|
|
471
517
|
readonly description: import("effect/Schema").String;
|
|
472
|
-
readonly sortKey: import("effect/Schema").String;
|
|
473
518
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
474
519
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
475
520
|
readonly text: import("effect/Schema").String;
|
|
@@ -481,13 +526,17 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
481
526
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"goals_add_outcome", import("effect/Schema").Struct<{
|
|
482
527
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
483
528
|
readonly text: import("effect/Schema").String;
|
|
484
|
-
readonly
|
|
529
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
530
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
531
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
532
|
+
}>;
|
|
533
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
534
|
+
}>>;
|
|
485
535
|
}>, import("effect/Schema").Struct<{
|
|
486
536
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
487
537
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
488
538
|
readonly title: import("effect/Schema").String;
|
|
489
539
|
readonly description: import("effect/Schema").String;
|
|
490
|
-
readonly sortKey: import("effect/Schema").String;
|
|
491
540
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
492
541
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
493
542
|
readonly text: import("effect/Schema").String;
|
|
@@ -501,13 +550,17 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
501
550
|
readonly outcomeId: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
502
551
|
readonly text: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
503
552
|
readonly achieved: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
504
|
-
readonly
|
|
553
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
554
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
555
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
556
|
+
}>;
|
|
557
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
558
|
+
}>>;
|
|
505
559
|
}>, import("effect/Schema").Struct<{
|
|
506
560
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "GoalId">;
|
|
507
561
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
508
562
|
readonly title: import("effect/Schema").String;
|
|
509
563
|
readonly description: import("effect/Schema").String;
|
|
510
|
-
readonly sortKey: import("effect/Schema").String;
|
|
511
564
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
512
565
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
513
566
|
readonly text: import("effect/Schema").String;
|
|
@@ -524,7 +577,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
524
577
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
525
578
|
readonly title: import("effect/Schema").String;
|
|
526
579
|
readonly description: import("effect/Schema").String;
|
|
527
|
-
readonly sortKey: import("effect/Schema").String;
|
|
528
580
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
529
581
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
530
582
|
readonly text: import("effect/Schema").String;
|
|
@@ -540,7 +592,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
540
592
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
541
593
|
readonly title: import("effect/Schema").String;
|
|
542
594
|
readonly description: import("effect/Schema").String;
|
|
543
|
-
readonly sortKey: import("effect/Schema").String;
|
|
544
595
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
545
596
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
546
597
|
readonly text: import("effect/Schema").String;
|
|
@@ -556,7 +607,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
556
607
|
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
557
608
|
readonly title: import("effect/Schema").String;
|
|
558
609
|
readonly description: import("effect/Schema").String;
|
|
559
|
-
readonly sortKey: import("effect/Schema").String;
|
|
560
610
|
readonly outcomes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
561
611
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OutcomeId">;
|
|
562
612
|
readonly text: import("effect/Schema").String;
|
|
@@ -588,7 +638,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
588
638
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
589
639
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
590
640
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
591
|
-
readonly sortKey: import("effect/Schema").String;
|
|
592
641
|
readonly createdAt: import("effect/Schema").String;
|
|
593
642
|
readonly updatedAt: import("effect/Schema").String;
|
|
594
643
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -607,14 +656,24 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
607
656
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
608
657
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
609
658
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
610
|
-
readonly sortKey: import("effect/Schema").String;
|
|
611
659
|
readonly createdAt: import("effect/Schema").String;
|
|
612
660
|
readonly updatedAt: import("effect/Schema").String;
|
|
613
661
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
614
662
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").StorageError)[], true, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"tasks_create", import("effect/Schema").Struct<{
|
|
615
|
-
readonly
|
|
616
|
-
|
|
617
|
-
|
|
663
|
+
readonly placement: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
664
|
+
readonly Root: import("effect/Schema").TaggedStruct<"Root", {
|
|
665
|
+
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
666
|
+
}>;
|
|
667
|
+
readonly Under: import("effect/Schema").TaggedStruct<"Under", {
|
|
668
|
+
readonly parentTaskId: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
669
|
+
}>;
|
|
670
|
+
}>>;
|
|
671
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
672
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
673
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
674
|
+
}>;
|
|
675
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
676
|
+
}>>;
|
|
618
677
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
619
678
|
readonly status: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["inbox", "backlog", "todo", "in_progress", "done", "cancelled"]>>;
|
|
620
679
|
readonly focus: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
@@ -636,14 +695,24 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
636
695
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
637
696
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
638
697
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
639
|
-
readonly sortKey: import("effect/Schema").String;
|
|
640
698
|
readonly createdAt: import("effect/Schema").String;
|
|
641
699
|
readonly updatedAt: import("effect/Schema").String;
|
|
642
700
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
643
701
|
}>, readonly (typeof import("./shared.ts").NotFound | typeof import("./shared.ts").PlacementRefused | typeof import("./shared.ts").NoArea | typeof import("./shared.ts").StorageError)[], false, typeof import("@gjermundgaraba/effect-actions/Action").Anyone, undefined, undefined>, import("@gjermundgaraba/effect-actions/Action").Action<"tasks_update", import("effect/Schema").Struct<{
|
|
644
|
-
readonly
|
|
645
|
-
|
|
646
|
-
|
|
702
|
+
readonly placement: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
703
|
+
readonly Root: import("effect/Schema").TaggedStruct<"Root", {
|
|
704
|
+
readonly areaId: import("effect/Schema").brand<import("effect/Schema").String, "AreaId">;
|
|
705
|
+
}>;
|
|
706
|
+
readonly Under: import("effect/Schema").TaggedStruct<"Under", {
|
|
707
|
+
readonly parentTaskId: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
708
|
+
}>;
|
|
709
|
+
}>>;
|
|
710
|
+
readonly position: import("effect/Schema").optionalKey<import("effect/Schema").TaggedUnion<{
|
|
711
|
+
readonly Before: import("effect/Schema").TaggedStruct<"Before", {
|
|
712
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "TaskId">;
|
|
713
|
+
}>;
|
|
714
|
+
readonly End: import("effect/Schema").TaggedStruct<"End", {}>;
|
|
715
|
+
}>>;
|
|
647
716
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
648
717
|
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
649
718
|
readonly status: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["inbox", "backlog", "todo", "in_progress", "done", "cancelled"]>>;
|
|
@@ -666,7 +735,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
666
735
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
667
736
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
668
737
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
669
|
-
readonly sortKey: import("effect/Schema").String;
|
|
670
738
|
readonly createdAt: import("effect/Schema").String;
|
|
671
739
|
readonly updatedAt: import("effect/Schema").String;
|
|
672
740
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -685,7 +753,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
685
753
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
686
754
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
687
755
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
688
|
-
readonly sortKey: import("effect/Schema").String;
|
|
689
756
|
readonly createdAt: import("effect/Schema").String;
|
|
690
757
|
readonly updatedAt: import("effect/Schema").String;
|
|
691
758
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -704,7 +771,6 @@ export declare const Http: ActionHttp.Binding<readonly [import("@gjermundgaraba/
|
|
|
704
771
|
readonly parentTaskId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "TaskId">>;
|
|
705
772
|
readonly goalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
706
773
|
readonly inheritedGoalIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "GoalId">>;
|
|
707
|
-
readonly sortKey: import("effect/Schema").String;
|
|
708
774
|
readonly createdAt: import("effect/Schema").String;
|
|
709
775
|
readonly updatedAt: import("effect/Schema").String;
|
|
710
776
|
readonly archivedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
package/dist/shared.d.ts
CHANGED
|
@@ -19,10 +19,38 @@ declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFoun
|
|
|
19
19
|
}>;
|
|
20
20
|
export declare class NotFound extends NotFound_base {
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const AreaPosition: Schema.TaggedUnion<{
|
|
23
|
+
readonly Before: Schema.TaggedStruct<"Before", {
|
|
24
|
+
readonly id: Schema.brand<Schema.String, "AreaId">;
|
|
25
|
+
}>;
|
|
26
|
+
readonly End: Schema.TaggedStruct<"End", {}>;
|
|
27
|
+
}>;
|
|
28
|
+
export type AreaPosition = typeof AreaPosition.Type;
|
|
29
|
+
export declare const GoalPosition: Schema.TaggedUnion<{
|
|
30
|
+
readonly Before: Schema.TaggedStruct<"Before", {
|
|
31
|
+
readonly id: Schema.brand<Schema.String, "GoalId">;
|
|
32
|
+
}>;
|
|
33
|
+
readonly End: Schema.TaggedStruct<"End", {}>;
|
|
34
|
+
}>;
|
|
35
|
+
export type GoalPosition = typeof GoalPosition.Type;
|
|
36
|
+
export declare const OutcomePosition: Schema.TaggedUnion<{
|
|
37
|
+
readonly Before: Schema.TaggedStruct<"Before", {
|
|
38
|
+
readonly id: Schema.brand<Schema.String, "OutcomeId">;
|
|
39
|
+
}>;
|
|
40
|
+
readonly End: Schema.TaggedStruct<"End", {}>;
|
|
41
|
+
}>;
|
|
42
|
+
export type OutcomePosition = typeof OutcomePosition.Type;
|
|
43
|
+
export declare const TaskPosition: Schema.TaggedUnion<{
|
|
44
|
+
readonly Before: Schema.TaggedStruct<"Before", {
|
|
45
|
+
readonly id: Schema.brand<Schema.String, "TaskId">;
|
|
46
|
+
}>;
|
|
47
|
+
readonly End: Schema.TaggedStruct<"End", {}>;
|
|
48
|
+
}>;
|
|
49
|
+
export type TaskPosition = typeof TaskPosition.Type;
|
|
50
|
+
export declare const PlacementRefusal: Schema.Literals<readonly ["MissingArea", "MissingParent", "OwnSubtree", "MissingPosition", "ArchivedParent"]>;
|
|
23
51
|
export type PlacementRefusal = typeof PlacementRefusal.Type;
|
|
24
52
|
declare const PlacementRefused_base: Schema.Class<PlacementRefused, Schema.TaggedStruct<"PlacementRefused", {
|
|
25
|
-
readonly reason: Schema.Literals<readonly ["MissingArea", "MissingParent", "
|
|
53
|
+
readonly reason: Schema.Literals<readonly ["MissingArea", "MissingParent", "OwnSubtree", "MissingPosition", "ArchivedParent"]>;
|
|
26
54
|
readonly message: Schema.String;
|
|
27
55
|
}>, import("effect/Cause").YieldableError & {
|
|
28
56
|
readonly brand: unique symbol;
|
package/dist/shared.js
CHANGED
|
@@ -23,10 +23,16 @@ export class NotFound extends Schema.TaggedError()("NotFound", {
|
|
|
23
23
|
id: Schema.String,
|
|
24
24
|
}, { httpApiStatus: 404 }) {
|
|
25
25
|
}
|
|
26
|
+
const position = (id, sibling) => Schema.TaggedUnion({ Before: { id }, End: {} }).annotate({
|
|
27
|
+
description: `Where it goes among its siblings: Before the ${sibling} whose id is given, or at the End.`,
|
|
28
|
+
});
|
|
29
|
+
export const AreaPosition = position(AreaId, "area");
|
|
30
|
+
export const GoalPosition = position(GoalId, "goal of the destination area");
|
|
31
|
+
export const OutcomePosition = position(OutcomeId, "outcome of the goal");
|
|
32
|
+
export const TaskPosition = position(TaskId, "task of the destination group");
|
|
26
33
|
export const PlacementRefusal = Schema.Literals([
|
|
27
34
|
"MissingArea",
|
|
28
35
|
"MissingParent",
|
|
29
|
-
"ParentInAnotherArea",
|
|
30
36
|
"OwnSubtree",
|
|
31
37
|
"MissingPosition",
|
|
32
38
|
"ArchivedParent",
|