@robbeverhelst/do 1.273.0 → 1.274.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 +38 -7
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -5698,6 +5698,7 @@ var healthProfiles = pgTable("health_profiles", {
|
|
|
5698
5698
|
bloodGroup: text("blood_group"),
|
|
5699
5699
|
allergies: text("allergies").array().notNull().default(sql`'{}'::text[]`),
|
|
5700
5700
|
heightCm: numeric("height_cm", { mode: "number" }),
|
|
5701
|
+
sex: text("sex"),
|
|
5701
5702
|
alcohol: text("alcohol"),
|
|
5702
5703
|
smoking: text("smoking"),
|
|
5703
5704
|
exercise: text("exercise"),
|
|
@@ -21440,7 +21441,8 @@ var healthProfileSchema = createSelectSchema(healthProfiles, {
|
|
|
21440
21441
|
allergies: array(string2()),
|
|
21441
21442
|
updatedAt: exports_coerce.date()
|
|
21442
21443
|
}).extend({
|
|
21443
|
-
notes: string2().nullable().default(null)
|
|
21444
|
+
notes: string2().nullable().default(null),
|
|
21445
|
+
sex: string2().nullable().default(null)
|
|
21444
21446
|
});
|
|
21445
21447
|
var healthConsentStateSchema = object({
|
|
21446
21448
|
granted: boolean3(),
|
|
@@ -21554,6 +21556,7 @@ var updateHealthProfileInputSchema = object({
|
|
|
21554
21556
|
bloodGroup: string2().regex(/^(A|B|AB|O)[+-]$/, "must be like A+ or O-").nullish(),
|
|
21555
21557
|
allergies: array(text2(100)).max(30).optional(),
|
|
21556
21558
|
heightCm: number2().min(30).max(260).nullish(),
|
|
21559
|
+
sex: text2(40).nullish(),
|
|
21557
21560
|
alcohol: text2(200).nullish(),
|
|
21558
21561
|
smoking: text2(200).nullish(),
|
|
21559
21562
|
exercise: text2(200).nullish(),
|
|
@@ -21618,7 +21621,8 @@ var healthTriedSchema = object({
|
|
|
21618
21621
|
title: string2(),
|
|
21619
21622
|
doses: number2().int(),
|
|
21620
21623
|
effects: array(healthDoseEffectSchema),
|
|
21621
|
-
lastTakenAt: exports_coerce.date()
|
|
21624
|
+
lastTakenAt: exports_coerce.date(),
|
|
21625
|
+
amount: string2().nullable().default(null)
|
|
21622
21626
|
});
|
|
21623
21627
|
var healthSummaryLabSchema = object({
|
|
21624
21628
|
id: string2(),
|
|
@@ -21643,6 +21647,7 @@ var healthTrendSchema = object({
|
|
|
21643
21647
|
});
|
|
21644
21648
|
var healthSummarySchema = object({
|
|
21645
21649
|
generatedAt: exports_coerce.date(),
|
|
21650
|
+
patient: object({ name: string2().nullable() }).default({ name: null }),
|
|
21646
21651
|
episode: healthEpisodeViewSchema.nullable(),
|
|
21647
21652
|
course: array(healthCourseDaySchema),
|
|
21648
21653
|
entries: array(healthSymptomEntrySchema),
|
|
@@ -25255,7 +25260,9 @@ var runChecklistSchema = object({
|
|
|
25255
25260
|
total: number2().int().min(0).max(5000).nullish(),
|
|
25256
25261
|
items: array(object({ id: ref, label: shortText.nullish() }).strict()).max(5000).optional(),
|
|
25257
25262
|
done: array(ref).max(5000),
|
|
25258
|
-
notes: record(ref, shortText).optional()
|
|
25263
|
+
notes: record(ref, shortText).optional(),
|
|
25264
|
+
carrying: array(ref).max(5000).optional(),
|
|
25265
|
+
legend: shortText.nullish()
|
|
25259
25266
|
}).strict();
|
|
25260
25267
|
var runTeamMemberSchema = object({
|
|
25261
25268
|
species: name,
|
|
@@ -25271,7 +25278,13 @@ var runAchievementsSchema = object({
|
|
|
25271
25278
|
source: _enum2(["steam", "xbox", "psn", "manual"]).default("manual"),
|
|
25272
25279
|
total: number2().int().min(0).max(5000).nullish(),
|
|
25273
25280
|
enabled: boolean3().default(true),
|
|
25274
|
-
unlocked: array(object({ name, on: isoDate.nullish(), hint: shortText.nullish() }).strict()).max(5000)
|
|
25281
|
+
unlocked: array(object({ name, on: isoDate.nullish(), hint: shortText.nullish() }).strict()).max(5000),
|
|
25282
|
+
locked: array(object({ name, hint: shortText.nullish() }).strict()).max(5000).optional()
|
|
25283
|
+
}).strict();
|
|
25284
|
+
var runRareFindsSchema = object({
|
|
25285
|
+
place: shortText.nullish(),
|
|
25286
|
+
items: array(shortText).max(200),
|
|
25287
|
+
note: text5.nullish()
|
|
25275
25288
|
}).strict();
|
|
25276
25289
|
var runInstallSchema = object({
|
|
25277
25290
|
edition: shortText.nullish(),
|
|
@@ -25298,6 +25311,7 @@ var runFacetSchema = object({
|
|
|
25298
25311
|
checklists: array(runChecklistSchema).max(30).optional(),
|
|
25299
25312
|
uniques: array(runUniqueSchema).max(1000).optional(),
|
|
25300
25313
|
achievements: runAchievementsSchema.nullish(),
|
|
25314
|
+
rareFinds: runRareFindsSchema.nullish(),
|
|
25301
25315
|
install: runInstallSchema.nullish(),
|
|
25302
25316
|
money: object({ goal: shortText.nullish(), purpose: shortText.nullish() }).strict().nullish(),
|
|
25303
25317
|
links: array(object({ label: name, url: string2().url().max(2000) }).strict()).max(50).optional()
|
|
@@ -25324,6 +25338,7 @@ var runValueSectionValues = [
|
|
|
25324
25338
|
"arc",
|
|
25325
25339
|
"nextSteps",
|
|
25326
25340
|
"achievements",
|
|
25341
|
+
"rareFinds",
|
|
25327
25342
|
"install",
|
|
25328
25343
|
"money"
|
|
25329
25344
|
];
|
|
@@ -25338,7 +25353,15 @@ var runChangeSchema = discriminatedUnion("op", [
|
|
|
25338
25353
|
}).strict(),
|
|
25339
25354
|
object({
|
|
25340
25355
|
op: literal("merge"),
|
|
25341
|
-
section: _enum2([
|
|
25356
|
+
section: _enum2([
|
|
25357
|
+
"character",
|
|
25358
|
+
"arc",
|
|
25359
|
+
"nextSteps",
|
|
25360
|
+
"achievements",
|
|
25361
|
+
"rareFinds",
|
|
25362
|
+
"install",
|
|
25363
|
+
"money"
|
|
25364
|
+
]),
|
|
25342
25365
|
value: record(string2(), unknown()),
|
|
25343
25366
|
label: label.optional()
|
|
25344
25367
|
}).strict(),
|
|
@@ -28172,7 +28195,7 @@ function parseCapture2(input, now) {
|
|
|
28172
28195
|
|
|
28173
28196
|
// src/meta.ts
|
|
28174
28197
|
var CLI_NAME = "do";
|
|
28175
|
-
var VERSION = "1.
|
|
28198
|
+
var VERSION = "1.274.0";
|
|
28176
28199
|
var API_PREFIX = "/api/v1";
|
|
28177
28200
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
28178
28201
|
|
|
@@ -29319,11 +29342,16 @@ var HEALTH_COMMAND_SPECS = [
|
|
|
29319
29342
|
name: "notes",
|
|
29320
29343
|
type: "string",
|
|
29321
29344
|
description: 'Anything else a doctor should know, in your words ("Kell negative"); "" clears it.'
|
|
29345
|
+
},
|
|
29346
|
+
{
|
|
29347
|
+
name: "sex",
|
|
29348
|
+
type: "string",
|
|
29349
|
+
description: `Sex, in your words, for the doctor's page ("female"); "" clears it.`
|
|
29322
29350
|
}
|
|
29323
29351
|
],
|
|
29324
29352
|
scopes: WRITE2,
|
|
29325
29353
|
returns: "HealthProfile",
|
|
29326
|
-
notes: "Body: UpdateHealthProfileInput. An absent key keeps a field; null clears it. Lifestyle is `alcohol`, `smoking`, `exercise`, and `notes` anything else: the member's own words. Notes go on For the doctor's background."
|
|
29354
|
+
notes: "Body: UpdateHealthProfileInput. An absent key keeps a field; null clears it. Lifestyle is `alcohol`, `smoking`, `exercise`, and `notes` anything else: the member's own words. Notes go on For the doctor's background; `sex` on its patient line."
|
|
29327
29355
|
},
|
|
29328
29356
|
{
|
|
29329
29357
|
path: ["health", "record"],
|
|
@@ -37537,6 +37565,9 @@ var HANDLERS = {
|
|
|
37537
37565
|
const notes = flagString(flags, "notes");
|
|
37538
37566
|
if (notes !== undefined)
|
|
37539
37567
|
fields.notes = notes.trim() ? notes : null;
|
|
37568
|
+
const sex = flagString(flags, "sex");
|
|
37569
|
+
if (sex !== undefined)
|
|
37570
|
+
fields.sex = sex.trim() ? sex.trim() : null;
|
|
37540
37571
|
const body = parseInput(updateHealthProfileInputSchema, fields);
|
|
37541
37572
|
return { data: await requireClient().patch("/health/profile", body), render: renderRecord };
|
|
37542
37573
|
},
|
package/package.json
CHANGED