@helloao/cli 0.0.20 → 0.2.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.
Files changed (34) hide show
  1. package/README.md +136 -136
  2. package/dist/cjs/cli.cjs +5526 -6666
  3. package/dist/cjs/index.cjs +3830 -5150
  4. package/dist/esm/index.js +1233 -342
  5. package/dist/esm/index.js.map +4 -4
  6. package/dist/types/actions.d.ts +36 -0
  7. package/dist/types/db.d.ts +2 -2
  8. package/dist/types/ebible.d.ts +1 -1
  9. package/dist/types/files.d.ts +7 -1
  10. package/dist/types/openapi.d.ts +2 -0
  11. package/dist/types/uploads.d.ts +6 -0
  12. package/meta/ARBNAV.json +10 -10
  13. package/meta/BSB.json +10 -10
  14. package/meta/HBOMAS.json +10 -10
  15. package/meta/HINIRV.json +10 -10
  16. package/meta/eng_dra.json +10 -10
  17. package/migrations/20240420231455_initial/migration.sql +66 -66
  18. package/migrations/20240711173108_add_chapter_audio/migration.sql +13 -13
  19. package/migrations/20240724212651_add_hashing/migration.sql +25 -25
  20. package/migrations/20250625201152_add_extra_ebible_metadata/migration.sql +3 -3
  21. package/migrations/20250630200532_add_apocryhpa_flag/migration.sql +2 -2
  22. package/migrations/20250701195337_add_file_warnings/migration.sql +8 -8
  23. package/migrations/20251028135135_add_datasets/migration.sql +72 -72
  24. package/migrations/20251028144932_fix_dataset_types/migration.sql +50 -50
  25. package/migrations/20260217200934_add_license_notice/migration.sql +5 -0
  26. package/package.json +5 -2
  27. package/prisma-gen/edge.js +5 -3
  28. package/prisma-gen/index-browser.js +2 -0
  29. package/prisma-gen/index.d.ts +92 -0
  30. package/prisma-gen/index.js +5 -3
  31. package/prisma-gen/wasm.js +2 -0
  32. package/schema.prisma +2 -0
  33. package/prisma-gen/client.d.ts +0 -1
  34. package/prisma-gen/client.js +0 -4
@@ -1,50 +1,50 @@
1
- /*
2
- Warnings:
3
-
4
- - You are about to drop the column `commonName` on the `DatasetBook` table. All the data in the column will be lost.
5
- - You are about to drop the column `introduction` on the `DatasetBook` table. All the data in the column will be lost.
6
- - You are about to drop the column `introductionSummary` on the `DatasetBook` table. All the data in the column will be lost.
7
- - You are about to drop the column `name` on the `DatasetBook` table. All the data in the column will be lost.
8
- - You are about to drop the column `sha256` on the `DatasetReference` table. All the data in the column will be lost.
9
- - Added the required column `referenceBookId` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
10
- - Added the required column `referenceChapter` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
11
- - Added the required column `referenceVerse` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
12
-
13
- */
14
- -- RedefineTables
15
- PRAGMA defer_foreign_keys=ON;
16
- PRAGMA foreign_keys=OFF;
17
- CREATE TABLE "new_DatasetBook" (
18
- "id" TEXT NOT NULL,
19
- "datasetId" TEXT NOT NULL,
20
- "order" INTEGER NOT NULL,
21
- "numberOfChapters" INTEGER NOT NULL,
22
- "sha256" TEXT,
23
-
24
- PRIMARY KEY ("datasetId", "id"),
25
- CONSTRAINT "DatasetBook_datasetId_fkey" FOREIGN KEY ("datasetId") REFERENCES "Dataset" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
26
- );
27
- INSERT INTO "new_DatasetBook" ("datasetId", "id", "numberOfChapters", "order", "sha256") SELECT "datasetId", "id", "numberOfChapters", "order", "sha256" FROM "DatasetBook";
28
- DROP TABLE "DatasetBook";
29
- ALTER TABLE "new_DatasetBook" RENAME TO "DatasetBook";
30
- CREATE TABLE "new_DatasetReference" (
31
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
32
- "datasetId" TEXT NOT NULL,
33
- "bookId" TEXT NOT NULL,
34
- "chapterNumber" INTEGER NOT NULL,
35
- "verseNumber" INTEGER NOT NULL,
36
- "referenceBookId" TEXT NOT NULL,
37
- "referenceChapter" INTEGER NOT NULL,
38
- "referenceVerse" INTEGER NOT NULL,
39
- "endVerseNumber" INTEGER,
40
- "score" INTEGER,
41
- CONSTRAINT "DatasetReference_datasetId_fkey" FOREIGN KEY ("datasetId") REFERENCES "Dataset" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
42
- CONSTRAINT "DatasetReference_datasetId_bookId_fkey" FOREIGN KEY ("datasetId", "bookId") REFERENCES "DatasetBook" ("datasetId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
43
- CONSTRAINT "DatasetReference_datasetId_bookId_chapterNumber_fkey" FOREIGN KEY ("datasetId", "bookId", "chapterNumber") REFERENCES "DatasetChapter" ("datasetId", "bookId", "number") ON DELETE RESTRICT ON UPDATE CASCADE,
44
- CONSTRAINT "DatasetReference_datasetId_bookId_chapterNumber_verseNumber_fkey" FOREIGN KEY ("datasetId", "bookId", "chapterNumber", "verseNumber") REFERENCES "DatasetChapterVerse" ("datasetId", "bookId", "chapterNumber", "number") ON DELETE RESTRICT ON UPDATE CASCADE
45
- );
46
- INSERT INTO "new_DatasetReference" ("bookId", "chapterNumber", "datasetId", "endVerseNumber", "id", "score", "verseNumber") SELECT "bookId", "chapterNumber", "datasetId", "endVerseNumber", "id", "score", "verseNumber" FROM "DatasetReference";
47
- DROP TABLE "DatasetReference";
48
- ALTER TABLE "new_DatasetReference" RENAME TO "DatasetReference";
49
- PRAGMA foreign_keys=ON;
50
- PRAGMA defer_foreign_keys=OFF;
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `commonName` on the `DatasetBook` table. All the data in the column will be lost.
5
+ - You are about to drop the column `introduction` on the `DatasetBook` table. All the data in the column will be lost.
6
+ - You are about to drop the column `introductionSummary` on the `DatasetBook` table. All the data in the column will be lost.
7
+ - You are about to drop the column `name` on the `DatasetBook` table. All the data in the column will be lost.
8
+ - You are about to drop the column `sha256` on the `DatasetReference` table. All the data in the column will be lost.
9
+ - Added the required column `referenceBookId` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
10
+ - Added the required column `referenceChapter` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
11
+ - Added the required column `referenceVerse` to the `DatasetReference` table without a default value. This is not possible if the table is not empty.
12
+
13
+ */
14
+ -- RedefineTables
15
+ PRAGMA defer_foreign_keys=ON;
16
+ PRAGMA foreign_keys=OFF;
17
+ CREATE TABLE "new_DatasetBook" (
18
+ "id" TEXT NOT NULL,
19
+ "datasetId" TEXT NOT NULL,
20
+ "order" INTEGER NOT NULL,
21
+ "numberOfChapters" INTEGER NOT NULL,
22
+ "sha256" TEXT,
23
+
24
+ PRIMARY KEY ("datasetId", "id"),
25
+ CONSTRAINT "DatasetBook_datasetId_fkey" FOREIGN KEY ("datasetId") REFERENCES "Dataset" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
26
+ );
27
+ INSERT INTO "new_DatasetBook" ("datasetId", "id", "numberOfChapters", "order", "sha256") SELECT "datasetId", "id", "numberOfChapters", "order", "sha256" FROM "DatasetBook";
28
+ DROP TABLE "DatasetBook";
29
+ ALTER TABLE "new_DatasetBook" RENAME TO "DatasetBook";
30
+ CREATE TABLE "new_DatasetReference" (
31
+ "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
32
+ "datasetId" TEXT NOT NULL,
33
+ "bookId" TEXT NOT NULL,
34
+ "chapterNumber" INTEGER NOT NULL,
35
+ "verseNumber" INTEGER NOT NULL,
36
+ "referenceBookId" TEXT NOT NULL,
37
+ "referenceChapter" INTEGER NOT NULL,
38
+ "referenceVerse" INTEGER NOT NULL,
39
+ "endVerseNumber" INTEGER,
40
+ "score" INTEGER,
41
+ CONSTRAINT "DatasetReference_datasetId_fkey" FOREIGN KEY ("datasetId") REFERENCES "Dataset" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
42
+ CONSTRAINT "DatasetReference_datasetId_bookId_fkey" FOREIGN KEY ("datasetId", "bookId") REFERENCES "DatasetBook" ("datasetId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
43
+ CONSTRAINT "DatasetReference_datasetId_bookId_chapterNumber_fkey" FOREIGN KEY ("datasetId", "bookId", "chapterNumber") REFERENCES "DatasetChapter" ("datasetId", "bookId", "number") ON DELETE RESTRICT ON UPDATE CASCADE,
44
+ CONSTRAINT "DatasetReference_datasetId_bookId_chapterNumber_verseNumber_fkey" FOREIGN KEY ("datasetId", "bookId", "chapterNumber", "verseNumber") REFERENCES "DatasetChapterVerse" ("datasetId", "bookId", "chapterNumber", "number") ON DELETE RESTRICT ON UPDATE CASCADE
45
+ );
46
+ INSERT INTO "new_DatasetReference" ("bookId", "chapterNumber", "datasetId", "endVerseNumber", "id", "score", "verseNumber") SELECT "bookId", "chapterNumber", "datasetId", "endVerseNumber", "id", "score", "verseNumber" FROM "DatasetReference";
47
+ DROP TABLE "DatasetReference";
48
+ ALTER TABLE "new_DatasetReference" RENAME TO "DatasetReference";
49
+ PRAGMA foreign_keys=ON;
50
+ PRAGMA defer_foreign_keys=OFF;
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Commentary" ADD COLUMN "licenseNotice" TEXT;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "Translation" ADD COLUMN "licenseNotice" TEXT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helloao/cli",
3
- "version": "0.0.20",
3
+ "version": "0.2.0",
4
4
  "description": "A CLI and related tools for managing HelloAO's Free Bible API",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/esm/index.js",
@@ -43,7 +43,10 @@
43
43
  "all-iso-language-codes": "1.0.17",
44
44
  "papaparse": "5.4.1",
45
45
  "luxon": "3.5.0",
46
- "@helloao/tools": "0.0.20"
46
+ "typesense": "3.0.5",
47
+ "zod-openapi": "5.4.6",
48
+ "zod": "^4.4.3",
49
+ "@helloao/tools": "0.2.0"
47
50
  },
48
51
  "files": [
49
52
  "/README.md",