@robbeverhelst/do 1.269.0 → 1.270.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 +14 -3
- 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(),
|
|
@@ -21217,7 +21218,8 @@ var houseAssetSchema = object({
|
|
|
21217
21218
|
item: collectionItemDetailSchema,
|
|
21218
21219
|
trail: array(houseTrailStepSchema),
|
|
21219
21220
|
parts: array(houseAssetPartSchema),
|
|
21220
|
-
linked: array(houseAssetLinkSchema)
|
|
21221
|
+
linked: array(houseAssetLinkSchema),
|
|
21222
|
+
warrantyUntil: day.nullable()
|
|
21221
21223
|
});
|
|
21222
21224
|
var linkAssetPartInputSchema = object({ inventoryItemId: ulidSchema }).strict();
|
|
21223
21225
|
var lendAssetInputSchema = object({
|
|
@@ -24477,7 +24479,14 @@ var moneyBudgetMonthSchema = object({
|
|
|
24477
24479
|
var moneyGoalStatusSchema = _enum2(moneyGoalStatus.enumValues);
|
|
24478
24480
|
var positiveAmount = moneyAmountSchema.refine((v) => amountToCents(v) > 0n, "expected an amount above zero");
|
|
24479
24481
|
var nonNegativeAmount = moneyAmountSchema.refine((v) => !v.startsWith("-"), "expected an amount of zero or more");
|
|
24482
|
+
var moneyGoalSplitPartSchema = object({
|
|
24483
|
+
name: string2().trim().min(1).max(60),
|
|
24484
|
+
monthly: positiveAmount,
|
|
24485
|
+
synced: boolean3().default(false)
|
|
24486
|
+
}).strict();
|
|
24487
|
+
var moneyGoalSplitSchema = array(moneyGoalSplitPartSchema).max(6);
|
|
24480
24488
|
var moneyGoalSchema = createSelectSchema(moneyGoals, {
|
|
24489
|
+
split: moneyGoalSplitSchema,
|
|
24481
24490
|
targetAmount: amount3,
|
|
24482
24491
|
targetOn: keyDateDaySchema.nullable(),
|
|
24483
24492
|
monthlyPlan: amount3.nullable(),
|
|
@@ -24524,7 +24533,8 @@ var createMoneyGoalInputSchema = object({
|
|
|
24524
24533
|
savedBefore: nonNegativeAmount.optional(),
|
|
24525
24534
|
projectId: ulidSchema.nullish(),
|
|
24526
24535
|
startedOn: keyDateDaySchema.optional(),
|
|
24527
|
-
visibility: _enum2(NODE_VISIBILITY_VALUES).optional()
|
|
24536
|
+
visibility: _enum2(NODE_VISIBILITY_VALUES).optional(),
|
|
24537
|
+
split: moneyGoalSplitSchema.optional()
|
|
24528
24538
|
}).strict();
|
|
24529
24539
|
var updateMoneyGoalInputSchema = createMoneyGoalInputSchema.omit({ id: true }).extend({ status: moneyGoalStatusSchema }).partial().strict();
|
|
24530
24540
|
var createMoneyGoalLineInputSchema = object({
|
|
@@ -25134,6 +25144,7 @@ var isoDate = string2().regex(/^\d{4}-\d{2}-\d{2}$/, "must be an ISO date (YYYY-
|
|
|
25134
25144
|
var ref = string2().trim().min(1).max(200);
|
|
25135
25145
|
var runCharacterSchema = object({
|
|
25136
25146
|
name,
|
|
25147
|
+
pronoun: _enum2(["he", "she", "they"]).nullish(),
|
|
25137
25148
|
subtitle: shortText.nullish(),
|
|
25138
25149
|
level: number2().int().min(0).max(1e4).nullish(),
|
|
25139
25150
|
build: shortText.nullish(),
|
|
@@ -28150,7 +28161,7 @@ function parseCapture2(input, now) {
|
|
|
28150
28161
|
|
|
28151
28162
|
// src/meta.ts
|
|
28152
28163
|
var CLI_NAME = "do";
|
|
28153
|
-
var VERSION = "1.
|
|
28164
|
+
var VERSION = "1.270.0";
|
|
28154
28165
|
var API_PREFIX = "/api/v1";
|
|
28155
28166
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
28156
28167
|
|
package/package.json
CHANGED