@robbeverhelst/do 1.49.0 → 1.50.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 +89 -32
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -21567,32 +21567,37 @@ function parseCapture(input) {
|
|
|
21567
21567
|
return { title, tags, ...priority ? { priority } : {}, ...area ? { area } : {} };
|
|
21568
21568
|
}
|
|
21569
21569
|
// ../../packages/schema/src/presets/collection-types.ts
|
|
21570
|
+
var coverUrl = exports_external.string().url().max(2048).nullish();
|
|
21570
21571
|
var bookFacetSchema = exports_external.object({
|
|
21571
21572
|
author: exports_external.string().min(1).max(200).nullish(),
|
|
21572
|
-
coverUrl
|
|
21573
|
+
coverUrl,
|
|
21573
21574
|
pageCount: exports_external.number().int().min(1).max(1e5).nullish()
|
|
21574
21575
|
}).strict();
|
|
21575
|
-
var
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
|
|
21576
|
+
var filmFacetSchema = exports_external.object({
|
|
21577
|
+
kind: exports_external.enum(["movie", "show"]).nullish(),
|
|
21578
|
+
year: exports_external.number().int().min(1888).max(2100).nullish(),
|
|
21579
|
+
director: exports_external.string().min(1).max(200).nullish(),
|
|
21580
|
+
coverUrl
|
|
21581
|
+
}).strict();
|
|
21582
|
+
var gameFacetSchema2 = exports_external.object({
|
|
21583
|
+
platform: exports_external.string().min(1).max(120).nullish(),
|
|
21584
|
+
coverUrl
|
|
21585
|
+
}).strict();
|
|
21586
|
+
var musicFacetSchema = exports_external.object({
|
|
21587
|
+
artist: exports_external.string().min(1).max(200).nullish(),
|
|
21588
|
+
year: exports_external.number().int().min(1860).max(2100).nullish(),
|
|
21589
|
+
coverUrl
|
|
21590
|
+
}).strict();
|
|
21591
|
+
var placeFacetSchema2 = exports_external.object({
|
|
21592
|
+
address: exports_external.string().min(1).max(400).nullish(),
|
|
21593
|
+
lat: exports_external.number().min(-90).max(90).nullish(),
|
|
21594
|
+
lng: exports_external.number().min(-180).max(180).nullish()
|
|
21595
|
+
}).strict();
|
|
21596
|
+
var wineFacetSchema = exports_external.object({
|
|
21597
|
+
type: exports_external.enum(["wine", "whisky"]).nullish(),
|
|
21598
|
+
region: exports_external.string().min(1).max(200).nullish(),
|
|
21599
|
+
vintage: exports_external.number().int().min(1800).max(2100).nullish()
|
|
21600
|
+
}).strict();
|
|
21596
21601
|
var COLLECTION_TYPES = {
|
|
21597
21602
|
book: {
|
|
21598
21603
|
key: "book",
|
|
@@ -21608,13 +21613,67 @@ var COLLECTION_TYPES = {
|
|
|
21608
21613
|
},
|
|
21609
21614
|
facetSchema: bookFacetSchema,
|
|
21610
21615
|
view: "shelf",
|
|
21616
|
+
subtitleKey: "author",
|
|
21611
21617
|
lookupId: "open-library"
|
|
21612
21618
|
},
|
|
21613
|
-
film:
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21619
|
+
film: {
|
|
21620
|
+
key: "film",
|
|
21621
|
+
label: "Films & TV",
|
|
21622
|
+
itemNoun: "title",
|
|
21623
|
+
statuses: ["want", "doing", "done", "dropped"],
|
|
21624
|
+
statusLabels: { want: "Want", doing: "Watching", done: "Watched", dropped: "Dropped" },
|
|
21625
|
+
facetSchema: filmFacetSchema,
|
|
21626
|
+
view: "grid",
|
|
21627
|
+
subtitleKey: "director",
|
|
21628
|
+
lookupId: "tmdb"
|
|
21629
|
+
},
|
|
21630
|
+
game: {
|
|
21631
|
+
key: "game",
|
|
21632
|
+
label: "Games",
|
|
21633
|
+
itemNoun: "game",
|
|
21634
|
+
statuses: ["want", "have", "doing", "done", "dropped"],
|
|
21635
|
+
statusLabels: {
|
|
21636
|
+
want: "Want",
|
|
21637
|
+
have: "Have",
|
|
21638
|
+
doing: "Playing",
|
|
21639
|
+
done: "Beaten",
|
|
21640
|
+
dropped: "Dropped"
|
|
21641
|
+
},
|
|
21642
|
+
facetSchema: gameFacetSchema2,
|
|
21643
|
+
view: "grid",
|
|
21644
|
+
subtitleKey: "platform",
|
|
21645
|
+
lookupId: "igdb"
|
|
21646
|
+
},
|
|
21647
|
+
music: {
|
|
21648
|
+
key: "music",
|
|
21649
|
+
label: "Music",
|
|
21650
|
+
itemNoun: "album",
|
|
21651
|
+
statuses: ["want", "done"],
|
|
21652
|
+
statusLabels: { want: "Want", done: "Listened" },
|
|
21653
|
+
facetSchema: musicFacetSchema,
|
|
21654
|
+
view: "shelf",
|
|
21655
|
+
subtitleKey: "artist"
|
|
21656
|
+
},
|
|
21657
|
+
place: {
|
|
21658
|
+
key: "place",
|
|
21659
|
+
label: "Places",
|
|
21660
|
+
itemNoun: "place",
|
|
21661
|
+
statuses: ["want", "done"],
|
|
21662
|
+
statusLabels: { want: "Want", done: "Been" },
|
|
21663
|
+
facetSchema: placeFacetSchema2,
|
|
21664
|
+
view: "map",
|
|
21665
|
+
subtitleKey: "address"
|
|
21666
|
+
},
|
|
21667
|
+
wine: {
|
|
21668
|
+
key: "wine",
|
|
21669
|
+
label: "Wines",
|
|
21670
|
+
itemNoun: "bottle",
|
|
21671
|
+
statuses: ["want", "have"],
|
|
21672
|
+
statusLabels: { want: "Want", have: "Have" },
|
|
21673
|
+
facetSchema: wineFacetSchema,
|
|
21674
|
+
view: "grid",
|
|
21675
|
+
subtitleKey: "region"
|
|
21676
|
+
}
|
|
21618
21677
|
};
|
|
21619
21678
|
var COLLECTION_TYPE_LIST = collectionTypeValues.map((k) => COLLECTION_TYPES[k]);
|
|
21620
21679
|
var collectionTypeSummarySchema = exports_external.object({
|
|
@@ -21624,8 +21683,7 @@ var collectionTypeSummarySchema = exports_external.object({
|
|
|
21624
21683
|
statuses: exports_external.array(collectionStatusSchema),
|
|
21625
21684
|
statusLabels: exports_external.record(exports_external.string(), exports_external.string()),
|
|
21626
21685
|
view: collectionViewSchema,
|
|
21627
|
-
lookupId: exports_external.string().nullable()
|
|
21628
|
-
stub: exports_external.boolean()
|
|
21686
|
+
lookupId: exports_external.string().nullable()
|
|
21629
21687
|
});
|
|
21630
21688
|
function toCollectionTypeSummary(config2) {
|
|
21631
21689
|
return {
|
|
@@ -21635,8 +21693,7 @@ function toCollectionTypeSummary(config2) {
|
|
|
21635
21693
|
statuses: [...config2.statuses],
|
|
21636
21694
|
statusLabels: { ...config2.statusLabels },
|
|
21637
21695
|
view: config2.view,
|
|
21638
|
-
lookupId: config2.lookupId ?? null
|
|
21639
|
-
stub: config2.stub ?? false
|
|
21696
|
+
lookupId: config2.lookupId ?? null
|
|
21640
21697
|
};
|
|
21641
21698
|
}
|
|
21642
21699
|
var COLLECTION_TYPE_SUMMARIES = COLLECTION_TYPE_LIST.map(toCollectionTypeSummary);
|
|
@@ -23658,7 +23715,7 @@ function parseCapture2(input) {
|
|
|
23658
23715
|
|
|
23659
23716
|
// src/meta.ts
|
|
23660
23717
|
var CLI_NAME = "do";
|
|
23661
|
-
var VERSION = "1.
|
|
23718
|
+
var VERSION = "1.50.0";
|
|
23662
23719
|
var API_PREFIX = "/api/v1";
|
|
23663
23720
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
23664
23721
|
|