@robbeverhelst/do 1.83.1 → 1.85.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 +36 -3
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -4478,7 +4478,8 @@ var notificationType = pgEnum("notification_type", [
|
|
|
4478
4478
|
"occurrence_due",
|
|
4479
4479
|
"contact_date_due",
|
|
4480
4480
|
"automation",
|
|
4481
|
-
"streak_at_risk"
|
|
4481
|
+
"streak_at_risk",
|
|
4482
|
+
"reflection_nudge"
|
|
4482
4483
|
]);
|
|
4483
4484
|
var notifications = pgTable("notifications", {
|
|
4484
4485
|
id: text("id").primaryKey(),
|
|
@@ -4621,7 +4622,8 @@ var recipes = pgTable("recipes", {
|
|
|
4621
4622
|
prepMinutes: integer("prep_minutes"),
|
|
4622
4623
|
cookMinutes: integer("cook_minutes"),
|
|
4623
4624
|
source: text("source"),
|
|
4624
|
-
tags: text("tags").array().notNull().default([])
|
|
4625
|
+
tags: text("tags").array().notNull().default([]),
|
|
4626
|
+
favorite: boolean("favorite").notNull().default(false)
|
|
4625
4627
|
}, (t) => [
|
|
4626
4628
|
index("recipes_tenant_idx").on(t.tenantId)
|
|
4627
4629
|
]);
|
|
@@ -5113,6 +5115,23 @@ var insightsFindings = pgTable("insights_findings", {
|
|
|
5113
5115
|
}, (t) => [
|
|
5114
5116
|
index("insights_findings_tenant_idx").on(t.tenantId)
|
|
5115
5117
|
]);
|
|
5118
|
+
// ../../packages/schema/src/db/reflections.ts
|
|
5119
|
+
var reflectionKind = pgEnum("reflection_kind", ["daily", "weekly"]);
|
|
5120
|
+
var reflections = pgTable("reflections", {
|
|
5121
|
+
id: text("id").primaryKey(),
|
|
5122
|
+
tenantId: text("tenant_id").notNull().references(() => tenants.id),
|
|
5123
|
+
userId: text("user_id").notNull().references(() => users.id),
|
|
5124
|
+
kind: reflectionKind("kind").notNull(),
|
|
5125
|
+
periodKey: text("period_key").notNull(),
|
|
5126
|
+
wentWell: text("went_well"),
|
|
5127
|
+
blockers: text("blockers"),
|
|
5128
|
+
nextFocus: text("next_focus"),
|
|
5129
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
5130
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
5131
|
+
}, (t) => [
|
|
5132
|
+
unique("reflections_tenant_user_kind_period_uniq").on(t.tenantId, t.userId, t.kind, t.periodKey),
|
|
5133
|
+
index("reflections_tenant_user_created_idx").on(t.tenantId, t.userId, t.createdAt)
|
|
5134
|
+
]);
|
|
5116
5135
|
// ../../node_modules/zod/v4/classic/external.js
|
|
5117
5136
|
var exports_external = {};
|
|
5118
5137
|
__export(exports_external, {
|
|
@@ -19754,6 +19773,7 @@ var challengeSourceSchema = exports_external.enum(challengeSource.enumValues);
|
|
|
19754
19773
|
var challengeSubjectTypeSchema = exports_external.enum(challengeSubjectType.enumValues);
|
|
19755
19774
|
var automationRunStatusSchema = exports_external.enum(automationRunStatus.enumValues);
|
|
19756
19775
|
var notificationTypeSchema = exports_external.enum(notificationType.enumValues);
|
|
19776
|
+
var reflectionKindSchema = exports_external.enum(reflectionKind.enumValues);
|
|
19757
19777
|
// ../../packages/schema/src/contracts/barcode.ts
|
|
19758
19778
|
var barcodeLookupQuerySchema = exports_external.object({
|
|
19759
19779
|
barcode: exports_external.string().min(1).max(64)
|
|
@@ -21940,6 +21960,19 @@ var insightsOverviewSchema = exports_external.object({
|
|
|
21940
21960
|
correlations: exports_external.array(insightsCorrelationSchema),
|
|
21941
21961
|
streaks: exports_external.array(insightsStreakSchema)
|
|
21942
21962
|
});
|
|
21963
|
+
// ../../packages/schema/src/contracts/reflections.ts
|
|
21964
|
+
var periodKeySchema = exports_external.string().min(1).max(10);
|
|
21965
|
+
var reflectionSchema = createSelectSchema(reflections, {
|
|
21966
|
+
createdAt: exports_external.coerce.date(),
|
|
21967
|
+
updatedAt: exports_external.coerce.date()
|
|
21968
|
+
});
|
|
21969
|
+
var saveReflectionInputSchema = createInsertSchema(reflections, {
|
|
21970
|
+
kind: reflectionKindSchema,
|
|
21971
|
+
periodKey: periodKeySchema,
|
|
21972
|
+
wentWell: exports_external.string().max(4000).nullish(),
|
|
21973
|
+
blockers: exports_external.string().max(4000).nullish(),
|
|
21974
|
+
nextFocus: exports_external.string().max(4000).nullish()
|
|
21975
|
+
}).omit({ id: true, tenantId: true, userId: true, createdAt: true, updatedAt: true }).strict();
|
|
21943
21976
|
// ../../packages/schema/src/when.ts
|
|
21944
21977
|
var WEEKDAYS = [
|
|
21945
21978
|
{ name: "sunday", dow: 0, code: "SU" },
|
|
@@ -24435,7 +24468,7 @@ function parseCapture2(input, now) {
|
|
|
24435
24468
|
|
|
24436
24469
|
// src/meta.ts
|
|
24437
24470
|
var CLI_NAME = "do";
|
|
24438
|
-
var VERSION = "1.
|
|
24471
|
+
var VERSION = "1.85.0";
|
|
24439
24472
|
var API_PREFIX = "/api/v1";
|
|
24440
24473
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
24441
24474
|
|