@robbeverhelst/do 1.65.0 → 1.67.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/do.js +67 -5
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -19768,26 +19768,24 @@ var taskAreaNameSchema = exports_external.string().trim().min(1).nullish();
|
|
|
19768
19768
|
var createTaskInputSchema = createInsertSchema(tasks, {
|
|
19769
19769
|
id: ulidSchema,
|
|
19770
19770
|
scheduledAt: exports_external.coerce.date().nullish(),
|
|
19771
|
-
startAt: exports_external.coerce.date().nullish(),
|
|
19772
19771
|
dueAt: exports_external.coerce.date().nullish(),
|
|
19773
19772
|
durationMinutes: exports_external.number().int().positive().nullish(),
|
|
19774
19773
|
tags: exports_external.array(exports_external.string()).optional(),
|
|
19775
19774
|
projectId: taskProjectIdSchema,
|
|
19776
19775
|
areaId: taskAreaIdSchema
|
|
19777
|
-
}).omit({ tenantId: true, recurrenceRuleId: true }).extend({
|
|
19776
|
+
}).omit({ tenantId: true, recurrenceRuleId: true, startAt: true }).extend({
|
|
19778
19777
|
title: exports_external.string().min(1),
|
|
19779
19778
|
parentId: ulidSchema.nullish(),
|
|
19780
19779
|
areaName: taskAreaNameSchema
|
|
19781
19780
|
});
|
|
19782
19781
|
var updateTaskInputSchema = createUpdateSchema(tasks, {
|
|
19783
19782
|
scheduledAt: exports_external.coerce.date().nullish(),
|
|
19784
|
-
startAt: exports_external.coerce.date().nullish(),
|
|
19785
19783
|
dueAt: exports_external.coerce.date().nullish(),
|
|
19786
19784
|
durationMinutes: exports_external.number().int().positive().nullish(),
|
|
19787
19785
|
tags: exports_external.array(exports_external.string()).optional(),
|
|
19788
19786
|
projectId: taskProjectIdSchema,
|
|
19789
19787
|
areaId: taskAreaIdSchema
|
|
19790
|
-
}).omit({ id: true, tenantId: true, recurrenceRuleId: true }).extend({
|
|
19788
|
+
}).omit({ id: true, tenantId: true, recurrenceRuleId: true, startAt: true }).extend({
|
|
19791
19789
|
title: exports_external.string().min(1).optional(),
|
|
19792
19790
|
parentId: ulidSchema.nullish()
|
|
19793
19791
|
}).strict();
|
|
@@ -22208,6 +22206,70 @@ function toCollectionTypeSummary(config2) {
|
|
|
22208
22206
|
};
|
|
22209
22207
|
}
|
|
22210
22208
|
var COLLECTION_TYPE_SUMMARIES = COLLECTION_TYPE_LIST.map(toCollectionTypeSummary);
|
|
22209
|
+
// ../../packages/schema/src/presets/tracking-types.ts
|
|
22210
|
+
var trackingTypeValues = ["yesno", "meter", "timer", "quit", "trend"];
|
|
22211
|
+
var trackingTypeSchema = exports_external.enum(trackingTypeValues);
|
|
22212
|
+
var TRACKING_TYPES = {
|
|
22213
|
+
yesno: {
|
|
22214
|
+
key: "yesno",
|
|
22215
|
+
label: "Yes / no",
|
|
22216
|
+
question: "Did you do it? A simple daily tick.",
|
|
22217
|
+
measurementType: "binary",
|
|
22218
|
+
looks: [{ displayKind: "calendar-heatmap", label: "Calendar" }],
|
|
22219
|
+
target: "none",
|
|
22220
|
+
streak: "tick"
|
|
22221
|
+
},
|
|
22222
|
+
meter: {
|
|
22223
|
+
key: "meter",
|
|
22224
|
+
label: "Count toward a target",
|
|
22225
|
+
question: "Rack up an amount toward a goal each period.",
|
|
22226
|
+
measurementType: "quantitative",
|
|
22227
|
+
looks: [
|
|
22228
|
+
{ displayKind: "goal-ring", label: "Ring" },
|
|
22229
|
+
{ displayKind: "counter", label: "Counter" },
|
|
22230
|
+
{ displayKind: "water-cup", label: "Cup" }
|
|
22231
|
+
],
|
|
22232
|
+
target: "required",
|
|
22233
|
+
targetLabel: "Target",
|
|
22234
|
+
targetPlaceholder: "8",
|
|
22235
|
+
unitPlaceholder: "glasses",
|
|
22236
|
+
streak: "reach-target"
|
|
22237
|
+
},
|
|
22238
|
+
timer: {
|
|
22239
|
+
key: "timer",
|
|
22240
|
+
label: "Time it",
|
|
22241
|
+
question: "Track time spent \u2014 meditate, focus, work out.",
|
|
22242
|
+
measurementType: "duration",
|
|
22243
|
+
looks: [{ displayKind: "duration-timer", label: "Timer" }],
|
|
22244
|
+
target: "optional",
|
|
22245
|
+
targetLabel: "Target",
|
|
22246
|
+
targetPlaceholder: "30",
|
|
22247
|
+
unitPlaceholder: "min",
|
|
22248
|
+
streak: "reach-target"
|
|
22249
|
+
},
|
|
22250
|
+
quit: {
|
|
22251
|
+
key: "quit",
|
|
22252
|
+
label: "Quit it",
|
|
22253
|
+
question: "Stay clean and count the days \u2014 no smoking, no sugar.",
|
|
22254
|
+
measurementType: "negative",
|
|
22255
|
+
looks: [{ displayKind: "abstinence-streak", label: "Abstinence" }],
|
|
22256
|
+
target: "none",
|
|
22257
|
+
streak: "stay-clean"
|
|
22258
|
+
},
|
|
22259
|
+
trend: {
|
|
22260
|
+
key: "trend",
|
|
22261
|
+
label: "Track a number over time",
|
|
22262
|
+
question: "Log a number and watch the trend \u2014 weight, mood, sleep.",
|
|
22263
|
+
measurementType: "quantitative",
|
|
22264
|
+
looks: [{ displayKind: "trend-chart", label: "Trend" }],
|
|
22265
|
+
target: "optional",
|
|
22266
|
+
targetLabel: "Target (optional)",
|
|
22267
|
+
targetPlaceholder: "70",
|
|
22268
|
+
unitPlaceholder: "kg",
|
|
22269
|
+
streak: "record"
|
|
22270
|
+
}
|
|
22271
|
+
};
|
|
22272
|
+
var TRACKING_TYPE_LIST = trackingTypeValues.map((k) => TRACKING_TYPES[k]);
|
|
22211
22273
|
// ../../packages/schema/src/presets/recipe.ts
|
|
22212
22274
|
var presetEntitySchema = exports_external.enum([
|
|
22213
22275
|
"habit",
|
|
@@ -24226,7 +24288,7 @@ function parseCapture2(input, now) {
|
|
|
24226
24288
|
|
|
24227
24289
|
// src/meta.ts
|
|
24228
24290
|
var CLI_NAME = "do";
|
|
24229
|
-
var VERSION = "1.
|
|
24291
|
+
var VERSION = "1.67.0";
|
|
24230
24292
|
var API_PREFIX = "/api/v1";
|
|
24231
24293
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
24232
24294
|
|