@helloao/cli 0.3.0 → 0.4.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.
@@ -15,6 +15,7 @@ export type * from './models/ChapterVerse';
15
15
  export type * from './models/CommentaryChapterVerse';
16
16
  export type * from './models/ChapterFootnote';
17
17
  export type * from './models/Dataset';
18
+ export type * from './models/DatasetEntity';
18
19
  export type * from './models/DatasetBook';
19
20
  export type * from './models/DatasetChapter';
20
21
  export type * from './models/DatasetChapterVerse';
@@ -0,0 +1,12 @@
1
+ -- CreateTable
2
+ CREATE TABLE "DatasetEntity" (
3
+ "id" TEXT NOT NULL,
4
+ "datasetId" TEXT NOT NULL,
5
+ "type" TEXT NOT NULL,
6
+ "name" TEXT NOT NULL,
7
+ "json" TEXT NOT NULL,
8
+ "sha256" TEXT,
9
+
10
+ PRIMARY KEY ("datasetId", "type", "id"),
11
+ CONSTRAINT "DatasetEntity_datasetId_fkey" FOREIGN KEY ("datasetId") REFERENCES "Dataset" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
12
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helloao/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A CLI and related tools for managing HelloAO's Free Bible API",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",
@@ -49,7 +49,7 @@
49
49
  "typesense": "3.0.5",
50
50
  "zod": "^4.4.3",
51
51
  "zod-openapi": "5.4.6",
52
- "@helloao/tools": "0.3.0"
52
+ "@helloao/tools": "0.4.0"
53
53
  },
54
54
  "files": [
55
55
  "/README.md",
package/schema.prisma CHANGED
@@ -380,6 +380,30 @@ model Dataset {
380
380
  chapters DatasetChapter[]
381
381
  verses DatasetChapterVerse[]
382
382
  references DatasetReference[]
383
+ entities DatasetEntity[]
384
+ }
385
+
386
+ // An entity (person, place, event, or people group) that is contained in a dataset.
387
+ model DatasetEntity {
388
+ id String
389
+
390
+ datasetId String
391
+ dataset Dataset @relation(fields: [datasetId], references: [id])
392
+
393
+ // The type of the entity.
394
+ // One of "person", "place", "event", or "peopleGroup".
395
+ type String
396
+
397
+ // The name of the entity.
398
+ name String
399
+
400
+ // The JSON of the entity.
401
+ json String
402
+
403
+ // The SHA-256 hash of the entity
404
+ sha256 String?
405
+
406
+ @@id([datasetId, type, id])
383
407
  }
384
408
 
385
409
  model DatasetBook {