@helloao/cli 0.0.4 → 0.0.5
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/README.md +125 -36
- package/actions.js +37 -37
- package/cli.js +10 -3
- package/db.d.ts +13 -44
- package/db.js +147 -239
- package/files.d.ts +59 -2
- package/files.js +109 -0
- package/migrations/20240623183848_add_book_order/migration.sql +26 -26
- package/migrations/20240629194121_add_chapter_links/migration.sql +45 -45
- package/migrations/20240629194513_add_chapter_content/migration.sql +30 -30
- package/migrations/20240705221833_remove_unused_columns/migration.sql +27 -27
- package/package.json +3 -5
- package/prisma-gen/edge.js +5 -5
- package/prisma-gen/index.js +10 -10
- package/s3.d.ts +1 -1
- package/schema.prisma +154 -154
- package/uploads.d.ts +23 -4
- package/uploads.js +130 -11
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Added the required column `order` to the `Book` table without a default value. This is not possible if the table is not empty.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- RedefineTables
|
|
8
|
-
PRAGMA defer_foreign_keys=ON;
|
|
9
|
-
PRAGMA foreign_keys=OFF;
|
|
10
|
-
CREATE TABLE "new_Book" (
|
|
11
|
-
"id" TEXT NOT NULL,
|
|
12
|
-
"translationId" TEXT NOT NULL,
|
|
13
|
-
"name" TEXT NOT NULL,
|
|
14
|
-
"commonName" TEXT NOT NULL,
|
|
15
|
-
"title" TEXT,
|
|
16
|
-
"order" INTEGER NOT NULL,
|
|
17
|
-
"numberOfChapters" INTEGER NOT NULL,
|
|
18
|
-
|
|
19
|
-
PRIMARY KEY ("translationId", "id"),
|
|
20
|
-
CONSTRAINT "Book_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
21
|
-
);
|
|
22
|
-
INSERT INTO "new_Book" ("commonName", "id", "name", "numberOfChapters", "title", "translationId") SELECT "commonName", "id", "name", "numberOfChapters", "title", "translationId" FROM "Book";
|
|
23
|
-
DROP TABLE "Book";
|
|
24
|
-
ALTER TABLE "new_Book" RENAME TO "Book";
|
|
25
|
-
PRAGMA foreign_keys=ON;
|
|
26
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `order` to the `Book` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- RedefineTables
|
|
8
|
+
PRAGMA defer_foreign_keys=ON;
|
|
9
|
+
PRAGMA foreign_keys=OFF;
|
|
10
|
+
CREATE TABLE "new_Book" (
|
|
11
|
+
"id" TEXT NOT NULL,
|
|
12
|
+
"translationId" TEXT NOT NULL,
|
|
13
|
+
"name" TEXT NOT NULL,
|
|
14
|
+
"commonName" TEXT NOT NULL,
|
|
15
|
+
"title" TEXT,
|
|
16
|
+
"order" INTEGER NOT NULL,
|
|
17
|
+
"numberOfChapters" INTEGER NOT NULL,
|
|
18
|
+
|
|
19
|
+
PRIMARY KEY ("translationId", "id"),
|
|
20
|
+
CONSTRAINT "Book_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
21
|
+
);
|
|
22
|
+
INSERT INTO "new_Book" ("commonName", "id", "name", "numberOfChapters", "title", "translationId") SELECT "commonName", "id", "name", "numberOfChapters", "title", "translationId" FROM "Book";
|
|
23
|
+
DROP TABLE "Book";
|
|
24
|
+
ALTER TABLE "new_Book" RENAME TO "Book";
|
|
25
|
+
PRAGMA foreign_keys=ON;
|
|
26
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Added the required column `contentJson` to the `ChapterVerse` table without a default value. This is not possible if the table is not empty.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- RedefineTables
|
|
8
|
-
PRAGMA defer_foreign_keys=ON;
|
|
9
|
-
PRAGMA foreign_keys=OFF;
|
|
10
|
-
CREATE TABLE "new_Chapter" (
|
|
11
|
-
"number" INTEGER NOT NULL,
|
|
12
|
-
"bookId" TEXT NOT NULL,
|
|
13
|
-
"translationId" TEXT NOT NULL,
|
|
14
|
-
"apiLink" TEXT NOT NULL,
|
|
15
|
-
"previousChapterTranslationId" TEXT,
|
|
16
|
-
"previousChapterBookId" TEXT,
|
|
17
|
-
"previousChapterNumber" INTEGER,
|
|
18
|
-
|
|
19
|
-
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
20
|
-
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
21
|
-
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
22
|
-
CONSTRAINT "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_fkey" FOREIGN KEY ("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE SET NULL ON UPDATE CASCADE
|
|
23
|
-
);
|
|
24
|
-
INSERT INTO "new_Chapter" ("apiLink", "bookId", "number", "translationId") SELECT "apiLink", "bookId", "number", "translationId" FROM "Chapter";
|
|
25
|
-
DROP TABLE "Chapter";
|
|
26
|
-
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
27
|
-
CREATE UNIQUE INDEX "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_key" ON "Chapter"("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber");
|
|
28
|
-
CREATE TABLE "new_ChapterVerse" (
|
|
29
|
-
"number" INTEGER NOT NULL,
|
|
30
|
-
"chapterNumber" INTEGER NOT NULL,
|
|
31
|
-
"bookId" TEXT NOT NULL,
|
|
32
|
-
"translationId" TEXT NOT NULL,
|
|
33
|
-
"text" TEXT NOT NULL,
|
|
34
|
-
"contentJson" TEXT NOT NULL,
|
|
35
|
-
|
|
36
|
-
PRIMARY KEY ("translationId", "bookId", "chapterNumber", "number"),
|
|
37
|
-
CONSTRAINT "ChapterVerse_translationId_bookId_chapterNumber_fkey" FOREIGN KEY ("translationId", "bookId", "chapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
38
|
-
CONSTRAINT "ChapterVerse_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
39
|
-
CONSTRAINT "ChapterVerse_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
40
|
-
);
|
|
41
|
-
INSERT INTO "new_ChapterVerse" ("bookId", "chapterNumber", "number", "text", "translationId") SELECT "bookId", "chapterNumber", "number", "text", "translationId" FROM "ChapterVerse";
|
|
42
|
-
DROP TABLE "ChapterVerse";
|
|
43
|
-
ALTER TABLE "new_ChapterVerse" RENAME TO "ChapterVerse";
|
|
44
|
-
PRAGMA foreign_keys=ON;
|
|
45
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `contentJson` to the `ChapterVerse` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- RedefineTables
|
|
8
|
+
PRAGMA defer_foreign_keys=ON;
|
|
9
|
+
PRAGMA foreign_keys=OFF;
|
|
10
|
+
CREATE TABLE "new_Chapter" (
|
|
11
|
+
"number" INTEGER NOT NULL,
|
|
12
|
+
"bookId" TEXT NOT NULL,
|
|
13
|
+
"translationId" TEXT NOT NULL,
|
|
14
|
+
"apiLink" TEXT NOT NULL,
|
|
15
|
+
"previousChapterTranslationId" TEXT,
|
|
16
|
+
"previousChapterBookId" TEXT,
|
|
17
|
+
"previousChapterNumber" INTEGER,
|
|
18
|
+
|
|
19
|
+
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
20
|
+
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
21
|
+
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
22
|
+
CONSTRAINT "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_fkey" FOREIGN KEY ("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE SET NULL ON UPDATE CASCADE
|
|
23
|
+
);
|
|
24
|
+
INSERT INTO "new_Chapter" ("apiLink", "bookId", "number", "translationId") SELECT "apiLink", "bookId", "number", "translationId" FROM "Chapter";
|
|
25
|
+
DROP TABLE "Chapter";
|
|
26
|
+
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
27
|
+
CREATE UNIQUE INDEX "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_key" ON "Chapter"("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber");
|
|
28
|
+
CREATE TABLE "new_ChapterVerse" (
|
|
29
|
+
"number" INTEGER NOT NULL,
|
|
30
|
+
"chapterNumber" INTEGER NOT NULL,
|
|
31
|
+
"bookId" TEXT NOT NULL,
|
|
32
|
+
"translationId" TEXT NOT NULL,
|
|
33
|
+
"text" TEXT NOT NULL,
|
|
34
|
+
"contentJson" TEXT NOT NULL,
|
|
35
|
+
|
|
36
|
+
PRIMARY KEY ("translationId", "bookId", "chapterNumber", "number"),
|
|
37
|
+
CONSTRAINT "ChapterVerse_translationId_bookId_chapterNumber_fkey" FOREIGN KEY ("translationId", "bookId", "chapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
38
|
+
CONSTRAINT "ChapterVerse_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
39
|
+
CONSTRAINT "ChapterVerse_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
40
|
+
);
|
|
41
|
+
INSERT INTO "new_ChapterVerse" ("bookId", "chapterNumber", "number", "text", "translationId") SELECT "bookId", "chapterNumber", "number", "text", "translationId" FROM "ChapterVerse";
|
|
42
|
+
DROP TABLE "ChapterVerse";
|
|
43
|
+
ALTER TABLE "new_ChapterVerse" RENAME TO "ChapterVerse";
|
|
44
|
+
PRAGMA foreign_keys=ON;
|
|
45
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- Added the required column `json` to the `Chapter` table without a default value. This is not possible if the table is not empty.
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
-- RedefineTables
|
|
8
|
-
PRAGMA defer_foreign_keys=ON;
|
|
9
|
-
PRAGMA foreign_keys=OFF;
|
|
10
|
-
CREATE TABLE "new_Chapter" (
|
|
11
|
-
"number" INTEGER NOT NULL,
|
|
12
|
-
"bookId" TEXT NOT NULL,
|
|
13
|
-
"translationId" TEXT NOT NULL,
|
|
14
|
-
"apiLink" TEXT NOT NULL,
|
|
15
|
-
"json" TEXT NOT NULL,
|
|
16
|
-
"previousChapterTranslationId" TEXT,
|
|
17
|
-
"previousChapterBookId" TEXT,
|
|
18
|
-
"previousChapterNumber" INTEGER,
|
|
19
|
-
|
|
20
|
-
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
21
|
-
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
22
|
-
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
23
|
-
CONSTRAINT "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_fkey" FOREIGN KEY ("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE SET NULL ON UPDATE CASCADE
|
|
24
|
-
);
|
|
25
|
-
INSERT INTO "new_Chapter" ("apiLink", "bookId", "number", "previousChapterBookId", "previousChapterNumber", "previousChapterTranslationId", "translationId") SELECT "apiLink", "bookId", "number", "previousChapterBookId", "previousChapterNumber", "previousChapterTranslationId", "translationId" FROM "Chapter";
|
|
26
|
-
DROP TABLE "Chapter";
|
|
27
|
-
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
28
|
-
CREATE UNIQUE INDEX "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_key" ON "Chapter"("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber");
|
|
29
|
-
PRAGMA foreign_keys=ON;
|
|
30
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `json` to the `Chapter` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- RedefineTables
|
|
8
|
+
PRAGMA defer_foreign_keys=ON;
|
|
9
|
+
PRAGMA foreign_keys=OFF;
|
|
10
|
+
CREATE TABLE "new_Chapter" (
|
|
11
|
+
"number" INTEGER NOT NULL,
|
|
12
|
+
"bookId" TEXT NOT NULL,
|
|
13
|
+
"translationId" TEXT NOT NULL,
|
|
14
|
+
"apiLink" TEXT NOT NULL,
|
|
15
|
+
"json" TEXT NOT NULL,
|
|
16
|
+
"previousChapterTranslationId" TEXT,
|
|
17
|
+
"previousChapterBookId" TEXT,
|
|
18
|
+
"previousChapterNumber" INTEGER,
|
|
19
|
+
|
|
20
|
+
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
21
|
+
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
22
|
+
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
23
|
+
CONSTRAINT "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_fkey" FOREIGN KEY ("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber") REFERENCES "Chapter" ("translationId", "bookId", "number") ON DELETE SET NULL ON UPDATE CASCADE
|
|
24
|
+
);
|
|
25
|
+
INSERT INTO "new_Chapter" ("apiLink", "bookId", "number", "previousChapterBookId", "previousChapterNumber", "previousChapterTranslationId", "translationId") SELECT "apiLink", "bookId", "number", "previousChapterBookId", "previousChapterNumber", "previousChapterTranslationId", "translationId" FROM "Chapter";
|
|
26
|
+
DROP TABLE "Chapter";
|
|
27
|
+
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
28
|
+
CREATE UNIQUE INDEX "Chapter_previousChapterTranslationId_previousChapterBookId_previousChapterNumber_key" ON "Chapter"("previousChapterTranslationId", "previousChapterBookId", "previousChapterNumber");
|
|
29
|
+
PRAGMA foreign_keys=ON;
|
|
30
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Warnings:
|
|
3
|
-
|
|
4
|
-
- You are about to drop the column `apiLink` on the `Chapter` table. All the data in the column will be lost.
|
|
5
|
-
- You are about to drop the column `previousChapterBookId` on the `Chapter` table. All the data in the column will be lost.
|
|
6
|
-
- You are about to drop the column `previousChapterNumber` on the `Chapter` table. All the data in the column will be lost.
|
|
7
|
-
- You are about to drop the column `previousChapterTranslationId` on the `Chapter` table. All the data in the column will be lost.
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
-- RedefineTables
|
|
11
|
-
PRAGMA defer_foreign_keys=ON;
|
|
12
|
-
PRAGMA foreign_keys=OFF;
|
|
13
|
-
CREATE TABLE "new_Chapter" (
|
|
14
|
-
"number" INTEGER NOT NULL,
|
|
15
|
-
"bookId" TEXT NOT NULL,
|
|
16
|
-
"translationId" TEXT NOT NULL,
|
|
17
|
-
"json" TEXT NOT NULL,
|
|
18
|
-
|
|
19
|
-
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
20
|
-
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
21
|
-
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
22
|
-
);
|
|
23
|
-
INSERT INTO "new_Chapter" ("bookId", "json", "number", "translationId") SELECT "bookId", "json", "number", "translationId" FROM "Chapter";
|
|
24
|
-
DROP TABLE "Chapter";
|
|
25
|
-
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
26
|
-
PRAGMA foreign_keys=ON;
|
|
27
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `apiLink` on the `Chapter` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `previousChapterBookId` on the `Chapter` table. All the data in the column will be lost.
|
|
6
|
+
- You are about to drop the column `previousChapterNumber` on the `Chapter` table. All the data in the column will be lost.
|
|
7
|
+
- You are about to drop the column `previousChapterTranslationId` on the `Chapter` table. All the data in the column will be lost.
|
|
8
|
+
|
|
9
|
+
*/
|
|
10
|
+
-- RedefineTables
|
|
11
|
+
PRAGMA defer_foreign_keys=ON;
|
|
12
|
+
PRAGMA foreign_keys=OFF;
|
|
13
|
+
CREATE TABLE "new_Chapter" (
|
|
14
|
+
"number" INTEGER NOT NULL,
|
|
15
|
+
"bookId" TEXT NOT NULL,
|
|
16
|
+
"translationId" TEXT NOT NULL,
|
|
17
|
+
"json" TEXT NOT NULL,
|
|
18
|
+
|
|
19
|
+
PRIMARY KEY ("translationId", "bookId", "number"),
|
|
20
|
+
CONSTRAINT "Chapter_translationId_bookId_fkey" FOREIGN KEY ("translationId", "bookId") REFERENCES "Book" ("translationId", "id") ON DELETE RESTRICT ON UPDATE CASCADE,
|
|
21
|
+
CONSTRAINT "Chapter_translationId_fkey" FOREIGN KEY ("translationId") REFERENCES "Translation" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
22
|
+
);
|
|
23
|
+
INSERT INTO "new_Chapter" ("bookId", "json", "number", "translationId") SELECT "bookId", "json", "number", "translationId" FROM "Chapter";
|
|
24
|
+
DROP TABLE "Chapter";
|
|
25
|
+
ALTER TABLE "new_Chapter" RENAME TO "Chapter";
|
|
26
|
+
PRAGMA foreign_keys=ON;
|
|
27
|
+
PRAGMA defer_foreign_keys=OFF;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helloao/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A CLI and related tools for managing HelloAO's Free Bible API",
|
|
5
5
|
"module": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Kallyn Gowdy <kal@helloao.org>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@helloao/tools": "^0.0.
|
|
13
|
+
"@helloao/tools": "^0.0.5",
|
|
14
14
|
"commander": "12.1.0",
|
|
15
15
|
"@gracious.tech/fetch-client": "^0.7.0",
|
|
16
16
|
"prisma": "^5.12.1",
|
|
@@ -37,7 +37,5 @@
|
|
|
37
37
|
"prisma": {
|
|
38
38
|
"schema": "./schema.prisma"
|
|
39
39
|
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"postinstall": "prisma generate"
|
|
42
|
-
}
|
|
40
|
+
"scripts": {}
|
|
43
41
|
}
|
package/prisma-gen/edge.js
CHANGED
|
@@ -182,7 +182,7 @@ const config = {
|
|
|
182
182
|
"value": "prisma-client-js"
|
|
183
183
|
},
|
|
184
184
|
"output": {
|
|
185
|
-
"value": "
|
|
185
|
+
"value": "/Users/kallyngowdy/YetiCode/bible-api/packages/helloao-cli/prisma-gen",
|
|
186
186
|
"fromEnvVar": null
|
|
187
187
|
},
|
|
188
188
|
"config": {
|
|
@@ -191,12 +191,12 @@ const config = {
|
|
|
191
191
|
"binaryTargets": [
|
|
192
192
|
{
|
|
193
193
|
"fromEnvVar": null,
|
|
194
|
-
"value": "
|
|
194
|
+
"value": "darwin-arm64",
|
|
195
195
|
"native": true
|
|
196
196
|
}
|
|
197
197
|
],
|
|
198
198
|
"previewFeatures": [],
|
|
199
|
-
"sourceFilePath": "
|
|
199
|
+
"sourceFilePath": "/Users/kallyngowdy/YetiCode/bible-api/packages/helloao-cli/schema.prisma",
|
|
200
200
|
"isCustomOutput": true
|
|
201
201
|
},
|
|
202
202
|
"relativeEnvPaths": {
|
|
@@ -218,8 +218,8 @@ const config = {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
|
-
"inlineSchema": "datasource db {\
|
|
222
|
-
"inlineSchemaHash": "
|
|
221
|
+
"inlineSchema": "datasource db {\n provider = \"sqlite\"\n url = \"file:../../bible-api.dev.db\"\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./prisma-gen\"\n}\n\nmodel Translation {\n id String @id\n name String\n website String\n licenseUrl String\n shortName String?\n englishName String\n language String\n textDirection String\n\n // The SHA-256 hash of the translation\n // includes everything about the translation, including the books, chapters, verses, footnotes, etc.\n sha256 String?\n \n books Book[]\n chapters Chapter[]\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n}\n\nmodel InputFile {\n // The ID of the translation that the file is for\n translationId String\n\n // The name of the file\n name String\n\n format String\n\n // The SHA-256 hash of the file\n sha256 String\n \n sizeInBytes Int\n\n @@id([translationId, name])\n}\n\nmodel Book {\n id String\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n name String\n commonName String\n title String?\n order Int\n\n numberOfChapters Int\n\n // The SHA-256 hash of the book\n sha256 String?\n\n chapters Chapter[]\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n\n @@id([translationId, id])\n}\n\nmodel Chapter {\n number Int\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n json String // The JSON of the chapter\n\n // The SHA-256 hash of the chapter\n sha256 String?\n\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n\n @@id([translationId, bookId, number])\n}\n\nmodel ChapterAudioUrl {\n number Int\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n chapter Chapter @relation(fields: [translationId, bookId, number], references: [translationId, bookId, number])\n\n reader String\n url String\n\n @@id([translationId, bookId, number, reader])\n}\n\nmodel ChapterVerse {\n number Int\n\n chapterNumber Int\n chapter Chapter @relation(fields: [translationId, bookId, chapterNumber], references: [translationId, bookId, number])\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n text String // The text of the verse\n contentJson String // The JSON of the verse content\n\n // The SHA-256 hash of the verse\n sha256 String?\n\n footnotes ChapterFootnote[]\n\n @@id([translationId, bookId, chapterNumber, number])\n}\n\nmodel ChapterFootnote {\n id Int\n\n chapterNumber Int\n chapter Chapter @relation(fields: [translationId, bookId, chapterNumber], references: [translationId, bookId, number])\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n text String\n\n // The SHA-256 hash of the footnote\n sha256 String?\n\n verseNumber Int?\n verse ChapterVerse? @relation(fields: [translationId, bookId, chapterNumber, verseNumber], references: [translationId, bookId, chapterNumber, number])\n\n @@id([translationId, bookId, chapterNumber, id])\n}\n",
|
|
222
|
+
"inlineSchemaHash": "ea2402692f047e9193d3a8f798f93adeef7fbcb5a1be2a437be6f623707da36a",
|
|
223
223
|
"copyEngine": true
|
|
224
224
|
}
|
|
225
225
|
config.dirname = '/'
|
package/prisma-gen/index.js
CHANGED
|
@@ -183,7 +183,7 @@ const config = {
|
|
|
183
183
|
"value": "prisma-client-js"
|
|
184
184
|
},
|
|
185
185
|
"output": {
|
|
186
|
-
"value": "
|
|
186
|
+
"value": "/Users/kallyngowdy/YetiCode/bible-api/packages/helloao-cli/prisma-gen",
|
|
187
187
|
"fromEnvVar": null
|
|
188
188
|
},
|
|
189
189
|
"config": {
|
|
@@ -192,12 +192,12 @@ const config = {
|
|
|
192
192
|
"binaryTargets": [
|
|
193
193
|
{
|
|
194
194
|
"fromEnvVar": null,
|
|
195
|
-
"value": "
|
|
195
|
+
"value": "darwin-arm64",
|
|
196
196
|
"native": true
|
|
197
197
|
}
|
|
198
198
|
],
|
|
199
199
|
"previewFeatures": [],
|
|
200
|
-
"sourceFilePath": "
|
|
200
|
+
"sourceFilePath": "/Users/kallyngowdy/YetiCode/bible-api/packages/helloao-cli/schema.prisma",
|
|
201
201
|
"isCustomOutput": true
|
|
202
202
|
},
|
|
203
203
|
"relativeEnvPaths": {
|
|
@@ -219,8 +219,8 @@ const config = {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
|
-
"inlineSchema": "datasource db {\
|
|
223
|
-
"inlineSchemaHash": "
|
|
222
|
+
"inlineSchema": "datasource db {\n provider = \"sqlite\"\n url = \"file:../../bible-api.dev.db\"\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./prisma-gen\"\n}\n\nmodel Translation {\n id String @id\n name String\n website String\n licenseUrl String\n shortName String?\n englishName String\n language String\n textDirection String\n\n // The SHA-256 hash of the translation\n // includes everything about the translation, including the books, chapters, verses, footnotes, etc.\n sha256 String?\n \n books Book[]\n chapters Chapter[]\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n}\n\nmodel InputFile {\n // The ID of the translation that the file is for\n translationId String\n\n // The name of the file\n name String\n\n format String\n\n // The SHA-256 hash of the file\n sha256 String\n \n sizeInBytes Int\n\n @@id([translationId, name])\n}\n\nmodel Book {\n id String\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n name String\n commonName String\n title String?\n order Int\n\n numberOfChapters Int\n\n // The SHA-256 hash of the book\n sha256 String?\n\n chapters Chapter[]\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n\n @@id([translationId, id])\n}\n\nmodel Chapter {\n number Int\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n json String // The JSON of the chapter\n\n // The SHA-256 hash of the chapter\n sha256 String?\n\n verses ChapterVerse[]\n footnotes ChapterFootnote[]\n audioUrls ChapterAudioUrl[]\n\n @@id([translationId, bookId, number])\n}\n\nmodel ChapterAudioUrl {\n number Int\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n chapter Chapter @relation(fields: [translationId, bookId, number], references: [translationId, bookId, number])\n\n reader String\n url String\n\n @@id([translationId, bookId, number, reader])\n}\n\nmodel ChapterVerse {\n number Int\n\n chapterNumber Int\n chapter Chapter @relation(fields: [translationId, bookId, chapterNumber], references: [translationId, bookId, number])\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n text String // The text of the verse\n contentJson String // The JSON of the verse content\n\n // The SHA-256 hash of the verse\n sha256 String?\n\n footnotes ChapterFootnote[]\n\n @@id([translationId, bookId, chapterNumber, number])\n}\n\nmodel ChapterFootnote {\n id Int\n\n chapterNumber Int\n chapter Chapter @relation(fields: [translationId, bookId, chapterNumber], references: [translationId, bookId, number])\n\n bookId String\n book Book @relation(fields: [translationId, bookId], references: [translationId, id])\n\n translationId String\n translation Translation @relation(fields: [translationId], references: [id])\n\n text String\n\n // The SHA-256 hash of the footnote\n sha256 String?\n\n verseNumber Int?\n verse ChapterVerse? @relation(fields: [translationId, bookId, chapterNumber, verseNumber], references: [translationId, bookId, chapterNumber, number])\n\n @@id([translationId, bookId, chapterNumber, id])\n}\n",
|
|
223
|
+
"inlineSchemaHash": "ea2402692f047e9193d3a8f798f93adeef7fbcb5a1be2a437be6f623707da36a",
|
|
224
224
|
"copyEngine": true
|
|
225
225
|
}
|
|
226
226
|
|
|
@@ -229,8 +229,8 @@ const fs = require('fs')
|
|
|
229
229
|
config.dirname = __dirname
|
|
230
230
|
if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|
231
231
|
const alternativePaths = [
|
|
232
|
-
"prisma-gen",
|
|
233
|
-
"",
|
|
232
|
+
"packages/helloao-cli/prisma-gen",
|
|
233
|
+
"helloao-cli/prisma-gen",
|
|
234
234
|
]
|
|
235
235
|
|
|
236
236
|
const alternativePath = alternativePaths.find((altPath) => {
|
|
@@ -258,8 +258,8 @@ exports.PrismaClient = PrismaClient
|
|
|
258
258
|
Object.assign(exports, Prisma)
|
|
259
259
|
|
|
260
260
|
// file annotations for bundling tools to include these files
|
|
261
|
-
path.join(__dirname, "
|
|
262
|
-
path.join(process.cwd(), "prisma-gen/
|
|
261
|
+
path.join(__dirname, "libquery_engine-darwin-arm64.dylib.node");
|
|
262
|
+
path.join(process.cwd(), "packages/helloao-cli/prisma-gen/libquery_engine-darwin-arm64.dylib.node")
|
|
263
263
|
// file annotations for bundling tools to include these files
|
|
264
264
|
path.join(__dirname, "schema.prisma");
|
|
265
|
-
path.join(process.cwd(), "prisma-gen/schema.prisma")
|
|
265
|
+
path.join(process.cwd(), "packages/helloao-cli/prisma-gen/schema.prisma")
|
package/s3.d.ts
CHANGED