@robbeverhelst/do 1.154.0 → 1.155.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 -5
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -3040,6 +3040,7 @@ var collectionItems = pgTable("collection_items", {
|
|
|
3040
3040
|
areaId: text("area_id").references(() => areas.id),
|
|
3041
3041
|
placeId: text("place_id").references(() => places.id, { onDelete: "set null" }),
|
|
3042
3042
|
tags: text("tags").array().notNull().default([]),
|
|
3043
|
+
coverColor: text("cover_color"),
|
|
3043
3044
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
3044
3045
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
3045
3046
|
}, (t) => [
|
|
@@ -18476,10 +18477,12 @@ var collectionViewSchema = exports_external.enum(collectionViewValues);
|
|
|
18476
18477
|
// ../../packages/schema/src/contracts/collection.ts
|
|
18477
18478
|
var collectionRatingSchema = exports_external.number().min(0.5).max(5).step(0.5, "must be a whole or half star (0.5 steps)");
|
|
18478
18479
|
var collectionFacetSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
18480
|
+
var coverColorSchema = exports_external.string().regex(/^#[0-9a-f]{6}$/, "must be a #rrggbb hex colour");
|
|
18479
18481
|
var collectionItemSchema = createSelectSchema(collectionItems, {
|
|
18480
18482
|
facet: collectionFacetSchema.nullable(),
|
|
18481
18483
|
placeId: exports_external.string().nullable().default(null),
|
|
18482
18484
|
tags: exports_external.array(exports_external.string()),
|
|
18485
|
+
coverColor: coverColorSchema.nullable().default(null),
|
|
18483
18486
|
createdAt: exports_external.coerce.date(),
|
|
18484
18487
|
updatedAt: exports_external.coerce.date()
|
|
18485
18488
|
});
|
|
@@ -18492,7 +18495,7 @@ var createCollectionItemInputSchema = createInsertSchema(collectionItems, {
|
|
|
18492
18495
|
placeId: ulidSchema.nullish(),
|
|
18493
18496
|
tags: exports_external.array(exports_external.string().min(1)).optional(),
|
|
18494
18497
|
facet: collectionFacetSchema.nullish()
|
|
18495
|
-
}).omit({ tenantId: true, createdAt: true, updatedAt: true }).extend({
|
|
18498
|
+
}).omit({ tenantId: true, coverColor: true, createdAt: true, updatedAt: true }).extend({
|
|
18496
18499
|
title: exports_external.string().min(1),
|
|
18497
18500
|
parentId: ulidSchema.nullish()
|
|
18498
18501
|
});
|
|
@@ -18503,7 +18506,14 @@ var updateCollectionItemInputSchema = createUpdateSchema(collectionItems, {
|
|
|
18503
18506
|
placeId: ulidSchema.nullish(),
|
|
18504
18507
|
tags: exports_external.array(exports_external.string().min(1)).optional(),
|
|
18505
18508
|
facet: collectionFacetSchema.nullish()
|
|
18506
|
-
}).omit({
|
|
18509
|
+
}).omit({
|
|
18510
|
+
id: true,
|
|
18511
|
+
type: true,
|
|
18512
|
+
tenantId: true,
|
|
18513
|
+
coverColor: true,
|
|
18514
|
+
createdAt: true,
|
|
18515
|
+
updatedAt: true
|
|
18516
|
+
}).extend({
|
|
18507
18517
|
title: exports_external.string().min(1).optional(),
|
|
18508
18518
|
parentId: ulidSchema.nullish()
|
|
18509
18519
|
}).strict();
|
|
@@ -18540,7 +18550,8 @@ var collectionCoverResultSchema = exports_external.object({
|
|
|
18540
18550
|
});
|
|
18541
18551
|
var collectionCoverBackfillResultSchema = exports_external.object({
|
|
18542
18552
|
checked: exports_external.number().int().min(0),
|
|
18543
|
-
found: exports_external.number().int().min(0)
|
|
18553
|
+
found: exports_external.number().int().min(0),
|
|
18554
|
+
colored: exports_external.number().int().min(0).default(0)
|
|
18544
18555
|
});
|
|
18545
18556
|
var collectionSavedViewSchema = exports_external.object({
|
|
18546
18557
|
id: exports_external.string().min(1),
|
|
@@ -20375,7 +20386,8 @@ var bookFacetSchema = exports_external.object({
|
|
|
20375
20386
|
author: exports_external.string().min(1).max(200).nullish(),
|
|
20376
20387
|
coverUrl,
|
|
20377
20388
|
pageCount: exports_external.number().int().min(1).max(1e5).nullish(),
|
|
20378
|
-
currentPage: exports_external.number().int().min(0).max(1e5).nullish()
|
|
20389
|
+
currentPage: exports_external.number().int().min(0).max(1e5).nullish(),
|
|
20390
|
+
isbn: exports_external.string().regex(/^[0-9Xx][0-9Xx\s-]{8,20}$/, "must be an ISBN").nullish()
|
|
20379
20391
|
}).strict();
|
|
20380
20392
|
var filmFacetSchema = exports_external.object({
|
|
20381
20393
|
kind: exports_external.enum(["movie", "show"]).nullish(),
|
|
@@ -20809,7 +20821,7 @@ function parseCapture2(input, now) {
|
|
|
20809
20821
|
|
|
20810
20822
|
// src/meta.ts
|
|
20811
20823
|
var CLI_NAME = "do";
|
|
20812
|
-
var VERSION = "1.
|
|
20824
|
+
var VERSION = "1.155.0";
|
|
20813
20825
|
var API_PREFIX = "/api/v1";
|
|
20814
20826
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
20815
20827
|
|