@robbeverhelst/do 1.399.0 → 1.400.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 +5 -2
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -14420,7 +14420,7 @@ var configError = (message) => new CliError("config", message, EXIT.CONFIG);
|
|
|
14420
14420
|
|
|
14421
14421
|
// src/meta.ts
|
|
14422
14422
|
var CLI_NAME = "do";
|
|
14423
|
-
var VERSION = "1.
|
|
14423
|
+
var VERSION = "1.400.0";
|
|
14424
14424
|
var API_PREFIX = "/api/v1";
|
|
14425
14425
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
14426
14426
|
|
|
@@ -19729,7 +19729,7 @@ var askAnswerSchema = discriminatedUnion("kind", [
|
|
|
19729
19729
|
})
|
|
19730
19730
|
]);
|
|
19731
19731
|
var askAnchorSchema = object({
|
|
19732
|
-
type: _enum2(["task", "project", "habit", "note"]),
|
|
19732
|
+
type: _enum2(["task", "project", "habit", "note", "money_account"]),
|
|
19733
19733
|
id: string2().min(1).max(64)
|
|
19734
19734
|
});
|
|
19735
19735
|
var askExpirySchema = object({
|
|
@@ -24874,6 +24874,7 @@ var moneyAccounts = pgTable("money_accounts", {
|
|
|
24874
24874
|
openingBalance: numeric("opening_balance", { precision: 14, scale: 2 }).notNull().default("0"),
|
|
24875
24875
|
balance: numeric("balance", { precision: 14, scale: 2 }),
|
|
24876
24876
|
balanceAt: timestamp("balance_at", { withTimezone: true }),
|
|
24877
|
+
buffer: numeric("buffer", { precision: 14, scale: 2 }),
|
|
24877
24878
|
includeInBudget: boolean4("include_in_budget").notNull().default(true),
|
|
24878
24879
|
includeInNetWorth: boolean4("include_in_net_worth").notNull().default(true),
|
|
24879
24880
|
connectionId: text("connection_id").references(() => connections.id, {
|
|
@@ -27454,6 +27455,7 @@ var moneyAccountSchema = createSelectSchema(moneyAccounts, {
|
|
|
27454
27455
|
openingBalance: amount,
|
|
27455
27456
|
balance: amount.nullable(),
|
|
27456
27457
|
balanceAt: exports_coerce.date().nullable(),
|
|
27458
|
+
buffer: amount.nullable(),
|
|
27457
27459
|
createdAt: exports_coerce.date(),
|
|
27458
27460
|
updatedAt: exports_coerce.date()
|
|
27459
27461
|
});
|
|
@@ -27520,6 +27522,7 @@ var createMoneyAccountInputSchema = object({
|
|
|
27520
27522
|
openingBalance: moneyAmountSchema.optional(),
|
|
27521
27523
|
includeInBudget: boolean2().optional(),
|
|
27522
27524
|
includeInNetWorth: boolean2().optional(),
|
|
27525
|
+
buffer: moneyAmountSchema.refine((v) => !v.startsWith("-"), "a buffer is zero or more").nullish(),
|
|
27523
27526
|
visibility: _enum2(NODE_VISIBILITY_VALUES).optional()
|
|
27524
27527
|
}).strict();
|
|
27525
27528
|
var moneyBalanceAtSchema = union([keyDateDaySchema, exports_iso.datetime({ offset: true })]);
|
package/package.json
CHANGED