@robbeverhelst/do 1.288.0 → 1.290.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.
Files changed (2) hide show
  1. package/dist/do.js +44 -12
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -3975,7 +3975,8 @@ var notificationType = pgEnum("notification_type", [
3975
3975
  "card",
3976
3976
  "bank_link",
3977
3977
  "import_failed",
3978
- "animal_ask"
3978
+ "animal_ask",
3979
+ "life_block"
3979
3980
  ]);
3980
3981
  var notificationDomain = pgEnum("notification_domain", [
3981
3982
  "task",
@@ -4043,6 +4044,7 @@ var notifications = pgTable("notifications", {
4043
4044
  groupKey: text("group_key"),
4044
4045
  actor: text("actor"),
4045
4046
  digestId: text("digest_id"),
4047
+ display: jsonb("display").$type(),
4046
4048
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow()
4047
4049
  }, (t) => [
4048
4050
  unique("notifications_tenant_dedupe_uniq").on(t.tenantId, t.dedupeKey),
@@ -5019,6 +5021,7 @@ var households = pgTable("households", {
5019
5021
  tenantId: text("tenant_id").notNull().references(() => tenants.id),
5020
5022
  address: jsonb("address").$type(),
5021
5023
  language: text("language").notNull().default("nl"),
5024
+ group: boolean("group").notNull().default(false),
5022
5025
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
5023
5026
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
5024
5027
  }, (t) => [index("households_tenant_idx").on(t.tenantId)]);
@@ -21206,7 +21209,9 @@ var houseUpkeepSoonSchema = object({
21206
21209
  task: taskViewSchema,
21207
21210
  itemId: string2(),
21208
21211
  itemTitle: string2(),
21209
- nextOn: day.nullable()
21212
+ nextOn: day.nullable(),
21213
+ placeTitle: string2().nullable().default(null),
21214
+ lastOn: day.nullable().default(null)
21210
21215
  });
21211
21216
  var housePlaceTileSchema = object({
21212
21217
  id: string2(),
@@ -21222,7 +21227,8 @@ var houseOverviewSchema = object({
21222
21227
  thingCount: number2().int().min(0),
21223
21228
  upkeepCount: number2().int().min(0),
21224
21229
  toolCount: number2().int().min(0),
21225
- animalCount: number2().int().min(0)
21230
+ animalCount: number2().int().min(0),
21231
+ toConfirm: number2().int().min(0).default(0)
21226
21232
  });
21227
21233
  var upkeepScheduleSchema = object({
21228
21234
  every: number2().int().min(1).max(365),
@@ -21313,6 +21319,10 @@ var houseValueRowSchema = object({
21313
21319
  model: string2().nullable(),
21314
21320
  placeId: string2().nullable(),
21315
21321
  placeTitle: string2().nullable(),
21322
+ placeGroup: string2().nullable().default(null),
21323
+ withHouse: boolean3().default(false),
21324
+ paidApprox: boolean3().default(false),
21325
+ borrowedFrom: string2().nullable().default(null),
21316
21326
  bought: day.nullable(),
21317
21327
  paid: number2().nullable(),
21318
21328
  now: number2().nullable(),
@@ -21325,9 +21335,15 @@ var houseValueSchema = object({
21325
21335
  rows: array(houseValueRowSchema),
21326
21336
  totals: object({
21327
21337
  now: number2(),
21328
- paid: number2()
21338
+ paid: number2(),
21339
+ newForOld: number2().default(0)
21329
21340
  }),
21330
- policy: object({ documentId: string2(), title: string2(), insuredValue: number2() }).nullable()
21341
+ policy: object({
21342
+ documentId: string2(),
21343
+ title: string2(),
21344
+ insuredValue: number2(),
21345
+ lastClaim: object({ kind: string2(), on: day }).nullable().default(null)
21346
+ }).nullable()
21331
21347
  });
21332
21348
  var upkeepMonthMarkSchema = _enum2(["done", "due", "planned", "late"]).nullable();
21333
21349
  var houseUpkeepRoutineSchema = object({
@@ -21596,7 +21612,7 @@ var postRunSchema = object({
21596
21612
  status: runStatusSchema,
21597
21613
  steps: array(runStepSchema).max(12).optional()
21598
21614
  });
21599
- var POST_RECEIPT_ABOUT_VALUES = ["red_flags", "saved"];
21615
+ var POST_RECEIPT_ABOUT_VALUES = ["red_flags", "saved", "vet_visit"];
21600
21616
  var POST_RECEIPT_SOURCE_MAX = 80;
21601
21617
  var postReceiptInputSchema = object({
21602
21618
  nodeId: ulidSchema,
@@ -24193,9 +24209,18 @@ var peopleOverviewSchema = object({
24193
24209
  lastSeenAt: exports_coerce.date().nullable(),
24194
24210
  lastTalkedAt: exports_coerce.date().nullable(),
24195
24211
  rhythmDays: number2().int(),
24196
- ring: number2()
24212
+ ring: number2(),
24213
+ phone: string2().nullable().default(null)
24197
24214
  })),
24198
- heardLately: array(contactMomentViewSchema)
24215
+ heardLately: array(contactMomentViewSchema),
24216
+ lent: array(object({
24217
+ itemId: ulidSchema,
24218
+ title: string2(),
24219
+ contactId: ulidSchema,
24220
+ contactTitle: string2(),
24221
+ since: keyDateDaySchema,
24222
+ needFor: object({ taskId: ulidSchema, title: string2(), on: keyDateDaySchema }).nullable()
24223
+ })).default([])
24199
24224
  });
24200
24225
  var personPrivateNoteSchema = object({
24201
24226
  body: string2().nullable(),
@@ -26609,6 +26634,7 @@ var householdAddressSchema = object({
26609
26634
  }).strict();
26610
26635
  var householdRowSchema = createSelectSchema(households, {
26611
26636
  address: householdAddressSchema.nullable(),
26637
+ group: boolean3().default(false),
26612
26638
  createdAt: exports_coerce.date(),
26613
26639
  updatedAt: exports_coerce.date()
26614
26640
  });
@@ -26622,6 +26648,7 @@ var createHouseholdInputSchema = object({
26622
26648
  title: string2().trim().min(1).max(120),
26623
26649
  address: householdAddressSchema.nullish(),
26624
26650
  language: rsvpLanguageSchema.optional(),
26651
+ group: boolean3().optional(),
26625
26652
  memberIds: array(ulidSchema).max(30).optional()
26626
26653
  }).strict();
26627
26654
  var updateHouseholdInputSchema = createHouseholdInputSchema.omit({ id: true }).partial().strict();
@@ -26634,7 +26661,8 @@ var guestListSchema = createSelectSchema(guestLists, {
26634
26661
  });
26635
26662
  var guestListViewSchema = guestListSchema.extend({
26636
26663
  projectTitle: string2(),
26637
- rsvpBy: keyDateDaySchema.nullable()
26664
+ rsvpBy: keyDateDaySchema.nullable(),
26665
+ projectDay: keyDateDaySchema.nullable().default(null)
26638
26666
  });
26639
26667
  var createGuestListInputSchema = object({
26640
26668
  id: ulidSchema,
@@ -26715,6 +26743,7 @@ var guestListOverviewSchema = object({
26715
26743
  title: string2(),
26716
26744
  address: householdAddressSchema.nullable(),
26717
26745
  language: rsvpLanguageSchema,
26746
+ group: boolean3().default(false),
26718
26747
  guests: array(guestViewSchema)
26719
26748
  })),
26720
26749
  headCount: headCountSchema,
@@ -26828,7 +26857,7 @@ var createSeatingProposalInputSchema = object({
26828
26857
  return new Set(ids).size === ids.length;
26829
26858
  }, { message: "a guest can sit at one table only", path: ["tables"] });
26830
26859
  var seatingProposalsQuerySchema = object({ guestListId: ulidSchema });
26831
- var GUEST_EXPORT_KINDS = ["caterer", "venue", "floor-plan"];
26860
+ var GUEST_EXPORT_KINDS = ["caterer", "venue", "floor-plan", "church"];
26832
26861
  var guestExportKindSchema = _enum2(GUEST_EXPORT_KINDS);
26833
26862
  var thankYouGiftSchema = object({
26834
26863
  momentId: ulidSchema,
@@ -28286,6 +28315,9 @@ var assetFacetSchema = object({
28286
28315
  lastServicedAt: isoDateString2.nullish(),
28287
28316
  purchasedAt: isoDateString2.nullish(),
28288
28317
  purchasePrice: number2().min(0).max(1e7).nullish(),
28318
+ priceApprox: boolean3().nullish(),
28319
+ cameWithHouse: boolean3().nullish(),
28320
+ newPrice: number2().min(0).max(1e7).nullish(),
28289
28321
  merchant: string2().min(1).max(200).nullish(),
28290
28322
  merchantContactId: string2().min(1).max(64).nullish(),
28291
28323
  installedAt: isoDateString2.nullish(),
@@ -28686,7 +28718,7 @@ function parseCapture2(input, now) {
28686
28718
 
28687
28719
  // src/meta.ts
28688
28720
  var CLI_NAME = "do";
28689
- var VERSION = "1.288.0";
28721
+ var VERSION = "1.290.0";
28690
28722
  var API_PREFIX = "/api/v1";
28691
28723
  var DEFAULT_API_URL = "http://localhost:3001";
28692
28724
 
@@ -33736,7 +33768,7 @@ var COMMAND_SPECS = [
33736
33768
  ],
33737
33769
  scopes: ["animals:write"],
33738
33770
  returns: "AnimalVetVisit",
33739
- notes: 'POST /api/v1/animals/{id}/vet-visits (`animal_vet_visit`, mockup 03). The visit is the receipt: post it with `receipt: { nodeId: <visit id> }`. `do animals vet-visit <dog> --data \'{"reason":"booster","vaccine":{"name":"DHPPi + L4","source":"sticker"},"weight":{"value":37.8}}\'`.'
33771
+ notes: 'POST /api/v1/animals/{id}/vet-visits (`animal_vet_visit`, mockup 03). The visit is the receipt: post it with `receipt: { nodeId: <animal id>, about: "vet_visit", parts: [<visit id>] }`. `do animals vet-visit <dog> --data \'{"reason":"booster","vaccine":{"name":"DHPPi + L4","source":"sticker"},"weight":{"value":37.8}}\'`.'
33740
33772
  },
33741
33773
  {
33742
33774
  path: ["animals", "vet-visit-get"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.288.0",
3
+ "version": "1.290.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "homepage": "https://github.com/robbeverhelst/do/tree/main/apps/cli",