@helloao/cli 0.0.9 → 0.0.11
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/cjs/cli.cjs +9669 -6373
- package/dist/cjs/index.cjs +16452 -0
- package/dist/esm/index.js +8102 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/actions.d.ts +27 -0
- package/dist/types/db.d.ts +50 -6
- package/dist/types/downloads.d.ts +1 -1
- package/dist/types/files.d.ts +13 -2
- package/dist/types/s3.d.ts +1 -1
- package/dist/types/uploads.d.ts +13 -0
- package/migrations/20241113173937_add_commentaries/migration.sql +56 -0
- package/migrations/20241204173229_add_license_notes/migration.sql +5 -0
- package/migrations/20241204182154_add_book_intro_summaries/migration.sql +2 -0
- package/migrations/20241218211246_add_profiles/migration.sql +12 -0
- package/migrations/20241218211453_add_profile_references/migration.sql +6 -0
- package/node_modules/@zip.js/zip.js/.github/workflows/publish.yml +17 -0
- package/node_modules/@zip.js/zip.js/deno.json +10 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker-fflate.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker-pako.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-fs-full.js +274 -133
- package/node_modules/@zip.js/zip.js/dist/zip-fs-full.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-fs.js +274 -125
- package/node_modules/@zip.js/zip.js/dist/zip-fs.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-full.js +233 -122
- package/node_modules/@zip.js/zip.js/dist/zip-full.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker-deflate.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker-inflate.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip.js +233 -114
- package/node_modules/@zip.js/zip.js/dist/zip.min.js +1 -1
- package/node_modules/@zip.js/zip.js/eslint.config.mjs +49 -0
- package/node_modules/@zip.js/zip.js/index-fflate.js +2 -1
- package/node_modules/@zip.js/zip.js/index.cjs +274 -133
- package/node_modules/@zip.js/zip.js/index.d.ts +254 -34
- package/node_modules/@zip.js/zip.js/index.js +3 -1
- package/node_modules/@zip.js/zip.js/index.min.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/core/codec-pool.js +3 -1
- package/node_modules/@zip.js/zip.js/lib/core/codec-worker.js +11 -8
- package/node_modules/@zip.js/zip.js/lib/core/configuration.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/core/constants.js +8 -0
- package/node_modules/@zip.js/zip.js/lib/core/io.js +10 -3
- package/node_modules/@zip.js/zip.js/lib/core/streams/aes-crypto-stream.js +4 -3
- package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/deflate.js +0 -4
- package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/inflate.js +0 -4
- package/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js +1 -0
- package/node_modules/@zip.js/zip.js/lib/core/streams/zip-entry-stream.js +4 -2
- package/node_modules/@zip.js/zip.js/lib/core/util/mime-type.js +0 -2
- package/node_modules/@zip.js/zip.js/lib/core/util/stream-codec-shim.js +4 -4
- package/node_modules/@zip.js/zip.js/lib/core/z-worker-core.js +4 -2
- package/node_modules/@zip.js/zip.js/lib/core/zip-entry.js +17 -5
- package/node_modules/@zip.js/zip.js/lib/core/zip-fs-core.js +41 -11
- package/node_modules/@zip.js/zip.js/lib/core/zip-reader.js +45 -23
- package/node_modules/@zip.js/zip.js/lib/core/zip-writer.js +147 -66
- package/node_modules/@zip.js/zip.js/lib/z-worker-inline-template.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/z-worker-inline.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/zip-data-uri.js +4 -1
- package/node_modules/@zip.js/zip.js/lib/zip-fs.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip-full-fflate.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip-full.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip.js +2 -1
- package/node_modules/@zip.js/zip.js/package.json +121 -78
- package/package.json +16 -6
- package/prisma-gen/client.d.ts +1 -0
- package/prisma-gen/client.js +4 -0
- package/prisma-gen/default.d.ts +1 -1
- package/prisma-gen/edge.d.ts +1 -1
- package/prisma-gen/edge.js +75 -9
- package/prisma-gen/index-browser.js +70 -4
- package/prisma-gen/index.d.ts +14040 -5448
- package/prisma-gen/index.js +75 -9
- package/prisma-gen/runtime/edge-esm.js +21 -18
- package/prisma-gen/runtime/edge.js +21 -18
- package/prisma-gen/runtime/index-browser.d.ts +1 -1
- package/prisma-gen/runtime/index-browser.js +1 -1
- package/prisma-gen/runtime/library.d.ts +306 -71
- package/prisma-gen/runtime/library.js +70 -67
- package/prisma-gen/runtime/react-native.js +80 -0
- package/prisma-gen/runtime/wasm.js +22 -19
- package/prisma-gen/wasm.d.ts +1 -1
- package/prisma-gen/wasm.js +70 -4
- package/schema.prisma +108 -0
package/prisma-gen/wasm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./index"
|
package/prisma-gen/wasm.js
CHANGED
|
@@ -7,6 +7,7 @@ const {
|
|
|
7
7
|
makeStrictEnum,
|
|
8
8
|
Public,
|
|
9
9
|
getRuntime,
|
|
10
|
+
skip
|
|
10
11
|
} = require('./runtime/index-browser.js')
|
|
11
12
|
|
|
12
13
|
|
|
@@ -16,12 +17,12 @@ exports.Prisma = Prisma
|
|
|
16
17
|
exports.$Enums = {}
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
* Prisma Client JS version: 5.
|
|
20
|
-
* Query Engine version:
|
|
20
|
+
* Prisma Client JS version: 5.22.0
|
|
21
|
+
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
21
22
|
*/
|
|
22
23
|
Prisma.prismaVersion = {
|
|
23
|
-
client: "5.
|
|
24
|
-
engine: "
|
|
24
|
+
client: "5.22.0",
|
|
25
|
+
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
@@ -108,6 +109,8 @@ Prisma.NullTypes = {
|
|
|
108
109
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
|
|
113
|
+
|
|
111
114
|
/**
|
|
112
115
|
* Enums
|
|
113
116
|
*/
|
|
@@ -121,6 +124,7 @@ exports.Prisma.TranslationScalarFieldEnum = {
|
|
|
121
124
|
name: 'name',
|
|
122
125
|
website: 'website',
|
|
123
126
|
licenseUrl: 'licenseUrl',
|
|
127
|
+
licenseNotes: 'licenseNotes',
|
|
124
128
|
shortName: 'shortName',
|
|
125
129
|
englishName: 'englishName',
|
|
126
130
|
language: 'language',
|
|
@@ -128,6 +132,18 @@ exports.Prisma.TranslationScalarFieldEnum = {
|
|
|
128
132
|
sha256: 'sha256'
|
|
129
133
|
};
|
|
130
134
|
|
|
135
|
+
exports.Prisma.CommentaryScalarFieldEnum = {
|
|
136
|
+
id: 'id',
|
|
137
|
+
name: 'name',
|
|
138
|
+
website: 'website',
|
|
139
|
+
licenseUrl: 'licenseUrl',
|
|
140
|
+
licenseNotes: 'licenseNotes',
|
|
141
|
+
englishName: 'englishName',
|
|
142
|
+
language: 'language',
|
|
143
|
+
textDirection: 'textDirection',
|
|
144
|
+
sha256: 'sha256'
|
|
145
|
+
};
|
|
146
|
+
|
|
131
147
|
exports.Prisma.InputFileScalarFieldEnum = {
|
|
132
148
|
translationId: 'translationId',
|
|
133
149
|
name: 'name',
|
|
@@ -147,6 +163,32 @@ exports.Prisma.BookScalarFieldEnum = {
|
|
|
147
163
|
sha256: 'sha256'
|
|
148
164
|
};
|
|
149
165
|
|
|
166
|
+
exports.Prisma.CommentaryBookScalarFieldEnum = {
|
|
167
|
+
id: 'id',
|
|
168
|
+
commentaryId: 'commentaryId',
|
|
169
|
+
name: 'name',
|
|
170
|
+
commonName: 'commonName',
|
|
171
|
+
introduction: 'introduction',
|
|
172
|
+
introductionSummary: 'introductionSummary',
|
|
173
|
+
order: 'order',
|
|
174
|
+
numberOfChapters: 'numberOfChapters',
|
|
175
|
+
sha256: 'sha256'
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
exports.Prisma.CommentaryProfileScalarFieldEnum = {
|
|
179
|
+
id: 'id',
|
|
180
|
+
commentaryId: 'commentaryId',
|
|
181
|
+
subject: 'subject',
|
|
182
|
+
content: 'content',
|
|
183
|
+
referenceBook: 'referenceBook',
|
|
184
|
+
referenceChapter: 'referenceChapter',
|
|
185
|
+
referenceVerse: 'referenceVerse',
|
|
186
|
+
referenceEndChapter: 'referenceEndChapter',
|
|
187
|
+
referenceEndVerse: 'referenceEndVerse',
|
|
188
|
+
json: 'json',
|
|
189
|
+
sha256: 'sha256'
|
|
190
|
+
};
|
|
191
|
+
|
|
150
192
|
exports.Prisma.ChapterScalarFieldEnum = {
|
|
151
193
|
number: 'number',
|
|
152
194
|
bookId: 'bookId',
|
|
@@ -155,6 +197,15 @@ exports.Prisma.ChapterScalarFieldEnum = {
|
|
|
155
197
|
sha256: 'sha256'
|
|
156
198
|
};
|
|
157
199
|
|
|
200
|
+
exports.Prisma.CommentaryChapterScalarFieldEnum = {
|
|
201
|
+
number: 'number',
|
|
202
|
+
bookId: 'bookId',
|
|
203
|
+
commentaryId: 'commentaryId',
|
|
204
|
+
introduction: 'introduction',
|
|
205
|
+
json: 'json',
|
|
206
|
+
sha256: 'sha256'
|
|
207
|
+
};
|
|
208
|
+
|
|
158
209
|
exports.Prisma.ChapterAudioUrlScalarFieldEnum = {
|
|
159
210
|
number: 'number',
|
|
160
211
|
bookId: 'bookId',
|
|
@@ -173,6 +224,16 @@ exports.Prisma.ChapterVerseScalarFieldEnum = {
|
|
|
173
224
|
sha256: 'sha256'
|
|
174
225
|
};
|
|
175
226
|
|
|
227
|
+
exports.Prisma.CommentaryChapterVerseScalarFieldEnum = {
|
|
228
|
+
number: 'number',
|
|
229
|
+
chapterNumber: 'chapterNumber',
|
|
230
|
+
bookId: 'bookId',
|
|
231
|
+
commentaryId: 'commentaryId',
|
|
232
|
+
text: 'text',
|
|
233
|
+
contentJson: 'contentJson',
|
|
234
|
+
sha256: 'sha256'
|
|
235
|
+
};
|
|
236
|
+
|
|
176
237
|
exports.Prisma.ChapterFootnoteScalarFieldEnum = {
|
|
177
238
|
id: 'id',
|
|
178
239
|
chapterNumber: 'chapterNumber',
|
|
@@ -196,11 +257,16 @@ exports.Prisma.NullsOrder = {
|
|
|
196
257
|
|
|
197
258
|
exports.Prisma.ModelName = {
|
|
198
259
|
Translation: 'Translation',
|
|
260
|
+
Commentary: 'Commentary',
|
|
199
261
|
InputFile: 'InputFile',
|
|
200
262
|
Book: 'Book',
|
|
263
|
+
CommentaryBook: 'CommentaryBook',
|
|
264
|
+
CommentaryProfile: 'CommentaryProfile',
|
|
201
265
|
Chapter: 'Chapter',
|
|
266
|
+
CommentaryChapter: 'CommentaryChapter',
|
|
202
267
|
ChapterAudioUrl: 'ChapterAudioUrl',
|
|
203
268
|
ChapterVerse: 'ChapterVerse',
|
|
269
|
+
CommentaryChapterVerse: 'CommentaryChapterVerse',
|
|
204
270
|
ChapterFootnote: 'ChapterFootnote'
|
|
205
271
|
};
|
|
206
272
|
|
package/schema.prisma
CHANGED
|
@@ -13,6 +13,7 @@ model Translation {
|
|
|
13
13
|
name String
|
|
14
14
|
website String
|
|
15
15
|
licenseUrl String
|
|
16
|
+
licenseNotes String?
|
|
16
17
|
shortName String?
|
|
17
18
|
englishName String
|
|
18
19
|
language String
|
|
@@ -29,6 +30,26 @@ model Translation {
|
|
|
29
30
|
audioUrls ChapterAudioUrl[]
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
model Commentary {
|
|
34
|
+
id String @id
|
|
35
|
+
name String
|
|
36
|
+
website String
|
|
37
|
+
licenseUrl String
|
|
38
|
+
licenseNotes String?
|
|
39
|
+
englishName String
|
|
40
|
+
language String
|
|
41
|
+
textDirection String
|
|
42
|
+
|
|
43
|
+
// The SHA-256 hash of the translation
|
|
44
|
+
// includes everything about the translation, including the books, chapters, verses, footnotes, etc.
|
|
45
|
+
sha256 String?
|
|
46
|
+
|
|
47
|
+
books CommentaryBook[]
|
|
48
|
+
chapters CommentaryChapter[]
|
|
49
|
+
verses CommentaryChapterVerse[]
|
|
50
|
+
profiles CommentaryProfile[]
|
|
51
|
+
}
|
|
52
|
+
|
|
32
53
|
model InputFile {
|
|
33
54
|
// The ID of the translation that the file is for
|
|
34
55
|
translationId String
|
|
@@ -70,6 +91,52 @@ model Book {
|
|
|
70
91
|
@@id([translationId, id])
|
|
71
92
|
}
|
|
72
93
|
|
|
94
|
+
model CommentaryBook {
|
|
95
|
+
id String
|
|
96
|
+
|
|
97
|
+
commentaryId String
|
|
98
|
+
commentary Commentary @relation(fields: [commentaryId], references: [id])
|
|
99
|
+
|
|
100
|
+
name String
|
|
101
|
+
commonName String
|
|
102
|
+
introduction String?
|
|
103
|
+
introductionSummary String?
|
|
104
|
+
order Int
|
|
105
|
+
|
|
106
|
+
numberOfChapters Int
|
|
107
|
+
|
|
108
|
+
// The SHA-256 hash of the book
|
|
109
|
+
sha256 String?
|
|
110
|
+
|
|
111
|
+
chapters CommentaryChapter[]
|
|
112
|
+
verses CommentaryChapterVerse[]
|
|
113
|
+
|
|
114
|
+
@@id([commentaryId, id])
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
model CommentaryProfile {
|
|
118
|
+
id String
|
|
119
|
+
|
|
120
|
+
commentaryId String
|
|
121
|
+
commentary Commentary @relation(fields: [commentaryId], references: [id])
|
|
122
|
+
|
|
123
|
+
subject String
|
|
124
|
+
content String
|
|
125
|
+
|
|
126
|
+
referenceBook String?
|
|
127
|
+
referenceChapter Int?
|
|
128
|
+
referenceVerse Int?
|
|
129
|
+
referenceEndChapter Int?
|
|
130
|
+
referenceEndVerse Int?
|
|
131
|
+
|
|
132
|
+
json String // The JSON of the profile
|
|
133
|
+
|
|
134
|
+
// The SHA-256 hash of the profile
|
|
135
|
+
sha256 String?
|
|
136
|
+
|
|
137
|
+
@@id([commentaryId, id])
|
|
138
|
+
}
|
|
139
|
+
|
|
73
140
|
model Chapter {
|
|
74
141
|
number Int
|
|
75
142
|
|
|
@@ -91,6 +158,26 @@ model Chapter {
|
|
|
91
158
|
@@id([translationId, bookId, number])
|
|
92
159
|
}
|
|
93
160
|
|
|
161
|
+
model CommentaryChapter {
|
|
162
|
+
number Int
|
|
163
|
+
|
|
164
|
+
bookId String
|
|
165
|
+
book CommentaryBook @relation(fields: [commentaryId, bookId], references: [commentaryId, id])
|
|
166
|
+
|
|
167
|
+
commentaryId String
|
|
168
|
+
commentary Commentary @relation(fields: [commentaryId], references: [id])
|
|
169
|
+
|
|
170
|
+
introduction String?
|
|
171
|
+
json String // The JSON of the chapter
|
|
172
|
+
|
|
173
|
+
// The SHA-256 hash of the chapter
|
|
174
|
+
sha256 String?
|
|
175
|
+
|
|
176
|
+
verses CommentaryChapterVerse[]
|
|
177
|
+
|
|
178
|
+
@@id([commentaryId, bookId, number])
|
|
179
|
+
}
|
|
180
|
+
|
|
94
181
|
model ChapterAudioUrl {
|
|
95
182
|
number Int
|
|
96
183
|
bookId String
|
|
@@ -130,6 +217,27 @@ model ChapterVerse {
|
|
|
130
217
|
@@id([translationId, bookId, chapterNumber, number])
|
|
131
218
|
}
|
|
132
219
|
|
|
220
|
+
model CommentaryChapterVerse {
|
|
221
|
+
number Int
|
|
222
|
+
|
|
223
|
+
chapterNumber Int
|
|
224
|
+
chapter CommentaryChapter @relation(fields: [commentaryId, bookId, chapterNumber], references: [commentaryId, bookId, number])
|
|
225
|
+
|
|
226
|
+
bookId String
|
|
227
|
+
book CommentaryBook @relation(fields: [commentaryId, bookId], references: [commentaryId, id])
|
|
228
|
+
|
|
229
|
+
commentaryId String
|
|
230
|
+
commentary Commentary @relation(fields: [commentaryId], references: [id])
|
|
231
|
+
|
|
232
|
+
text String // The text of the verse
|
|
233
|
+
contentJson String // The JSON of the verse content
|
|
234
|
+
|
|
235
|
+
// The SHA-256 hash of the verse
|
|
236
|
+
sha256 String?
|
|
237
|
+
|
|
238
|
+
@@id([commentaryId, bookId, chapterNumber, number])
|
|
239
|
+
}
|
|
240
|
+
|
|
133
241
|
model ChapterFootnote {
|
|
134
242
|
id Int
|
|
135
243
|
|