@robbeverhelst/do 1.95.0 → 1.96.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 +52 -26
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -20520,35 +20520,14 @@ var shoppingListDetailSchema = shoppingListViewSchema.extend({
|
|
|
20520
20520
|
var setShoppingItemCheckedInputSchema = exports_external.object({ isChecked: exports_external.boolean() }).strict();
|
|
20521
20521
|
// ../../packages/schema/src/presets/facets.ts
|
|
20522
20522
|
var PANTRY_DISPLAY_KIND = "pantry";
|
|
20523
|
-
var WARDROBE_DISPLAY_KIND = "wardrobe";
|
|
20524
|
-
var TOOLS_DISPLAY_KIND = "tools";
|
|
20525
20523
|
var MEDS_DISPLAY_KIND = "meds";
|
|
20526
|
-
var INVENTORY_AREA_KINDS = [
|
|
20527
|
-
PANTRY_DISPLAY_KIND,
|
|
20528
|
-
WARDROBE_DISPLAY_KIND,
|
|
20529
|
-
TOOLS_DISPLAY_KIND,
|
|
20530
|
-
MEDS_DISPLAY_KIND
|
|
20531
|
-
];
|
|
20524
|
+
var INVENTORY_AREA_KINDS = [PANTRY_DISPLAY_KIND, MEDS_DISPLAY_KIND];
|
|
20532
20525
|
var INVENTORY_DISPLAY_KINDS = ["default", ...INVENTORY_AREA_KINDS];
|
|
20533
20526
|
var isoDateString = exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/, "must be an ISO date (YYYY-MM-DD)");
|
|
20534
|
-
var wardrobeSeasonValues = ["spring", "summer", "autumn", "winter", "all-season"];
|
|
20535
|
-
var wardrobeSeasonSchema = exports_external.enum(wardrobeSeasonValues);
|
|
20536
|
-
var toolConditionValues = ["new", "good", "worn", "broken"];
|
|
20537
|
-
var toolConditionSchema = exports_external.enum(toolConditionValues);
|
|
20538
20527
|
var pantryFacetSchema = exports_external.object({
|
|
20539
20528
|
brand: exports_external.string().min(1).max(200).nullish(),
|
|
20540
20529
|
openedAt: isoDateString.nullish()
|
|
20541
20530
|
}).strict();
|
|
20542
|
-
var wardrobeFacetSchema = exports_external.object({
|
|
20543
|
-
size: exports_external.string().min(1).max(50).nullish(),
|
|
20544
|
-
season: wardrobeSeasonSchema.nullish(),
|
|
20545
|
-
color: exports_external.string().min(1).max(50).nullish()
|
|
20546
|
-
}).strict();
|
|
20547
|
-
var toolsFacetSchema = exports_external.object({
|
|
20548
|
-
brand: exports_external.string().min(1).max(200).nullish(),
|
|
20549
|
-
condition: toolConditionSchema.nullish(),
|
|
20550
|
-
lastServicedAt: isoDateString.nullish()
|
|
20551
|
-
}).strict();
|
|
20552
20531
|
var medsFacetSchema = exports_external.object({
|
|
20553
20532
|
dose: exports_external.string().min(1).max(100).nullish(),
|
|
20554
20533
|
refillBy: isoDateString.nullish(),
|
|
@@ -20556,8 +20535,6 @@ var medsFacetSchema = exports_external.object({
|
|
|
20556
20535
|
}).strict();
|
|
20557
20536
|
var facetSchemasByDisplayKind = {
|
|
20558
20537
|
[PANTRY_DISPLAY_KIND]: pantryFacetSchema,
|
|
20559
|
-
[WARDROBE_DISPLAY_KIND]: wardrobeFacetSchema,
|
|
20560
|
-
[TOOLS_DISPLAY_KIND]: toolsFacetSchema,
|
|
20561
20538
|
[MEDS_DISPLAY_KIND]: medsFacetSchema
|
|
20562
20539
|
};
|
|
20563
20540
|
|
|
@@ -20614,7 +20591,16 @@ var restockInputSchema = exports_external.object({
|
|
|
20614
20591
|
// ../../packages/schema/src/contracts/collection.ts
|
|
20615
20592
|
var collectionStatusValues = ["want", "have", "doing", "done", "dropped"];
|
|
20616
20593
|
var collectionStatusSchema = exports_external.enum(collectionStatusValues);
|
|
20617
|
-
var collectionTypeValues = [
|
|
20594
|
+
var collectionTypeValues = [
|
|
20595
|
+
"book",
|
|
20596
|
+
"film",
|
|
20597
|
+
"game",
|
|
20598
|
+
"music",
|
|
20599
|
+
"place",
|
|
20600
|
+
"wine",
|
|
20601
|
+
"wardrobe",
|
|
20602
|
+
"tools"
|
|
20603
|
+
];
|
|
20618
20604
|
var collectionTypeSchema = exports_external.enum(collectionTypeValues);
|
|
20619
20605
|
var collectionViewValues = ["grid", "shelf", "map"];
|
|
20620
20606
|
var collectionViewSchema = exports_external.enum(collectionViewValues);
|
|
@@ -22382,6 +22368,26 @@ var wineFacetSchema = exports_external.object({
|
|
|
22382
22368
|
region: exports_external.string().min(1).max(200).nullish(),
|
|
22383
22369
|
vintage: exports_external.number().int().min(1800).max(2100).nullish()
|
|
22384
22370
|
}).strict();
|
|
22371
|
+
var isoDateString2 = exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/, "must be an ISO date (YYYY-MM-DD)");
|
|
22372
|
+
var wardrobeSeasonValues = ["spring", "summer", "autumn", "winter", "all-season"];
|
|
22373
|
+
var wardrobeSeasonSchema = exports_external.enum(wardrobeSeasonValues);
|
|
22374
|
+
var toolConditionValues = ["new", "good", "worn", "broken"];
|
|
22375
|
+
var toolConditionSchema = exports_external.enum(toolConditionValues);
|
|
22376
|
+
var wardrobeFacetSchema = exports_external.object({
|
|
22377
|
+
brand: exports_external.string().min(1).max(200).nullish(),
|
|
22378
|
+
size: exports_external.string().min(1).max(50).nullish(),
|
|
22379
|
+
color: exports_external.string().min(1).max(50).nullish(),
|
|
22380
|
+
season: wardrobeSeasonSchema.nullish(),
|
|
22381
|
+
location: exports_external.string().min(1).max(200).nullish(),
|
|
22382
|
+
coverUrl
|
|
22383
|
+
}).strict();
|
|
22384
|
+
var toolsFacetSchema = exports_external.object({
|
|
22385
|
+
brand: exports_external.string().min(1).max(200).nullish(),
|
|
22386
|
+
condition: toolConditionSchema.nullish(),
|
|
22387
|
+
location: exports_external.string().min(1).max(200).nullish(),
|
|
22388
|
+
lastServicedAt: isoDateString2.nullish(),
|
|
22389
|
+
coverUrl
|
|
22390
|
+
}).strict();
|
|
22385
22391
|
var COLLECTION_TYPES = {
|
|
22386
22392
|
book: {
|
|
22387
22393
|
key: "book",
|
|
@@ -22469,6 +22475,26 @@ var COLLECTION_TYPES = {
|
|
|
22469
22475
|
view: "grid",
|
|
22470
22476
|
subtitleKey: "region",
|
|
22471
22477
|
depletesOnLog: true
|
|
22478
|
+
},
|
|
22479
|
+
wardrobe: {
|
|
22480
|
+
key: "wardrobe",
|
|
22481
|
+
label: "Wardrobe",
|
|
22482
|
+
itemNoun: "item",
|
|
22483
|
+
statuses: ["want", "have"],
|
|
22484
|
+
statusLabels: { want: "Want", have: "Owned" },
|
|
22485
|
+
facetSchema: wardrobeFacetSchema,
|
|
22486
|
+
view: "grid",
|
|
22487
|
+
subtitleKey: "brand"
|
|
22488
|
+
},
|
|
22489
|
+
tools: {
|
|
22490
|
+
key: "tools",
|
|
22491
|
+
label: "Tools",
|
|
22492
|
+
itemNoun: "tool",
|
|
22493
|
+
statuses: ["want", "have"],
|
|
22494
|
+
statusLabels: { want: "Want", have: "Owned" },
|
|
22495
|
+
facetSchema: toolsFacetSchema,
|
|
22496
|
+
view: "grid",
|
|
22497
|
+
subtitleKey: "brand"
|
|
22472
22498
|
}
|
|
22473
22499
|
};
|
|
22474
22500
|
var COLLECTION_TYPE_LIST = collectionTypeValues.map((k) => COLLECTION_TYPES[k]);
|
|
@@ -24215,7 +24241,7 @@ function parseCapture2(input, now) {
|
|
|
24215
24241
|
|
|
24216
24242
|
// src/meta.ts
|
|
24217
24243
|
var CLI_NAME = "do";
|
|
24218
|
-
var VERSION = "1.
|
|
24244
|
+
var VERSION = "1.96.0";
|
|
24219
24245
|
var API_PREFIX = "/api/v1";
|
|
24220
24246
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
24221
24247
|
|