@robbeverhelst/do 1.269.0 → 1.271.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 +17 -4
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -4788,6 +4788,7 @@ var moneyGoals = pgTable("money_goals", {
|
|
|
4788
4788
|
monthlyPlan: numeric("monthly_plan", { precision: 14, scale: 2 }),
|
|
4789
4789
|
savedBefore: numeric("saved_before", { precision: 14, scale: 2 }).notNull().default("0"),
|
|
4790
4790
|
projectId: text("project_id").references(() => nodes.id, { onDelete: "set null" }),
|
|
4791
|
+
split: jsonb("split").$type().notNull().default([]),
|
|
4791
4792
|
status: moneyGoalStatus("status").notNull().default("active"),
|
|
4792
4793
|
startedOn: date("started_on").notNull().defaultNow(),
|
|
4793
4794
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
@@ -21151,7 +21152,9 @@ var houseOverviewSchema = object({
|
|
|
21151
21152
|
upkeepSoon: array(houseUpkeepSoonSchema),
|
|
21152
21153
|
places: array(housePlaceTileSchema),
|
|
21153
21154
|
thingCount: number2().int().min(0),
|
|
21154
|
-
upkeepCount: number2().int().min(0)
|
|
21155
|
+
upkeepCount: number2().int().min(0),
|
|
21156
|
+
toolCount: number2().int().min(0),
|
|
21157
|
+
animalCount: number2().int().min(0)
|
|
21155
21158
|
});
|
|
21156
21159
|
var upkeepScheduleSchema = object({
|
|
21157
21160
|
every: number2().int().min(1).max(365),
|
|
@@ -21217,7 +21220,8 @@ var houseAssetSchema = object({
|
|
|
21217
21220
|
item: collectionItemDetailSchema,
|
|
21218
21221
|
trail: array(houseTrailStepSchema),
|
|
21219
21222
|
parts: array(houseAssetPartSchema),
|
|
21220
|
-
linked: array(houseAssetLinkSchema)
|
|
21223
|
+
linked: array(houseAssetLinkSchema),
|
|
21224
|
+
warrantyUntil: day.nullable()
|
|
21221
21225
|
});
|
|
21222
21226
|
var linkAssetPartInputSchema = object({ inventoryItemId: ulidSchema }).strict();
|
|
21223
21227
|
var lendAssetInputSchema = object({
|
|
@@ -24477,7 +24481,14 @@ var moneyBudgetMonthSchema = object({
|
|
|
24477
24481
|
var moneyGoalStatusSchema = _enum2(moneyGoalStatus.enumValues);
|
|
24478
24482
|
var positiveAmount = moneyAmountSchema.refine((v) => amountToCents(v) > 0n, "expected an amount above zero");
|
|
24479
24483
|
var nonNegativeAmount = moneyAmountSchema.refine((v) => !v.startsWith("-"), "expected an amount of zero or more");
|
|
24484
|
+
var moneyGoalSplitPartSchema = object({
|
|
24485
|
+
name: string2().trim().min(1).max(60),
|
|
24486
|
+
monthly: positiveAmount,
|
|
24487
|
+
synced: boolean3().default(false)
|
|
24488
|
+
}).strict();
|
|
24489
|
+
var moneyGoalSplitSchema = array(moneyGoalSplitPartSchema).max(6);
|
|
24480
24490
|
var moneyGoalSchema = createSelectSchema(moneyGoals, {
|
|
24491
|
+
split: moneyGoalSplitSchema,
|
|
24481
24492
|
targetAmount: amount3,
|
|
24482
24493
|
targetOn: keyDateDaySchema.nullable(),
|
|
24483
24494
|
monthlyPlan: amount3.nullable(),
|
|
@@ -24524,7 +24535,8 @@ var createMoneyGoalInputSchema = object({
|
|
|
24524
24535
|
savedBefore: nonNegativeAmount.optional(),
|
|
24525
24536
|
projectId: ulidSchema.nullish(),
|
|
24526
24537
|
startedOn: keyDateDaySchema.optional(),
|
|
24527
|
-
visibility: _enum2(NODE_VISIBILITY_VALUES).optional()
|
|
24538
|
+
visibility: _enum2(NODE_VISIBILITY_VALUES).optional(),
|
|
24539
|
+
split: moneyGoalSplitSchema.optional()
|
|
24528
24540
|
}).strict();
|
|
24529
24541
|
var updateMoneyGoalInputSchema = createMoneyGoalInputSchema.omit({ id: true }).extend({ status: moneyGoalStatusSchema }).partial().strict();
|
|
24530
24542
|
var createMoneyGoalLineInputSchema = object({
|
|
@@ -25134,6 +25146,7 @@ var isoDate = string2().regex(/^\d{4}-\d{2}-\d{2}$/, "must be an ISO date (YYYY-
|
|
|
25134
25146
|
var ref = string2().trim().min(1).max(200);
|
|
25135
25147
|
var runCharacterSchema = object({
|
|
25136
25148
|
name,
|
|
25149
|
+
pronoun: _enum2(["he", "she", "they"]).nullish(),
|
|
25137
25150
|
subtitle: shortText.nullish(),
|
|
25138
25151
|
level: number2().int().min(0).max(1e4).nullish(),
|
|
25139
25152
|
build: shortText.nullish(),
|
|
@@ -28150,7 +28163,7 @@ function parseCapture2(input, now) {
|
|
|
28150
28163
|
|
|
28151
28164
|
// src/meta.ts
|
|
28152
28165
|
var CLI_NAME = "do";
|
|
28153
|
-
var VERSION = "1.
|
|
28166
|
+
var VERSION = "1.271.0";
|
|
28154
28167
|
var API_PREFIX = "/api/v1";
|
|
28155
28168
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
28156
28169
|
|
package/package.json
CHANGED