@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.
Files changed (82) hide show
  1. package/dist/cjs/cli.cjs +9669 -6373
  2. package/dist/cjs/index.cjs +16452 -0
  3. package/dist/esm/index.js +8102 -0
  4. package/dist/esm/index.js.map +7 -0
  5. package/dist/types/actions.d.ts +27 -0
  6. package/dist/types/db.d.ts +50 -6
  7. package/dist/types/downloads.d.ts +1 -1
  8. package/dist/types/files.d.ts +13 -2
  9. package/dist/types/s3.d.ts +1 -1
  10. package/dist/types/uploads.d.ts +13 -0
  11. package/migrations/20241113173937_add_commentaries/migration.sql +56 -0
  12. package/migrations/20241204173229_add_license_notes/migration.sql +5 -0
  13. package/migrations/20241204182154_add_book_intro_summaries/migration.sql +2 -0
  14. package/migrations/20241218211246_add_profiles/migration.sql +12 -0
  15. package/migrations/20241218211453_add_profile_references/migration.sql +6 -0
  16. package/node_modules/@zip.js/zip.js/.github/workflows/publish.yml +17 -0
  17. package/node_modules/@zip.js/zip.js/deno.json +10 -1
  18. package/node_modules/@zip.js/zip.js/dist/z-worker-fflate.js +1 -1
  19. package/node_modules/@zip.js/zip.js/dist/z-worker-pako.js +1 -1
  20. package/node_modules/@zip.js/zip.js/dist/z-worker.js +1 -1
  21. package/node_modules/@zip.js/zip.js/dist/zip-fs-full.js +274 -133
  22. package/node_modules/@zip.js/zip.js/dist/zip-fs-full.min.js +1 -1
  23. package/node_modules/@zip.js/zip.js/dist/zip-fs.js +274 -125
  24. package/node_modules/@zip.js/zip.js/dist/zip-fs.min.js +1 -1
  25. package/node_modules/@zip.js/zip.js/dist/zip-full.js +233 -122
  26. package/node_modules/@zip.js/zip.js/dist/zip-full.min.js +1 -1
  27. package/node_modules/@zip.js/zip.js/dist/zip-no-worker-deflate.min.js +1 -1
  28. package/node_modules/@zip.js/zip.js/dist/zip-no-worker-inflate.min.js +1 -1
  29. package/node_modules/@zip.js/zip.js/dist/zip-no-worker.min.js +1 -1
  30. package/node_modules/@zip.js/zip.js/dist/zip.js +233 -114
  31. package/node_modules/@zip.js/zip.js/dist/zip.min.js +1 -1
  32. package/node_modules/@zip.js/zip.js/eslint.config.mjs +49 -0
  33. package/node_modules/@zip.js/zip.js/index-fflate.js +2 -1
  34. package/node_modules/@zip.js/zip.js/index.cjs +274 -133
  35. package/node_modules/@zip.js/zip.js/index.d.ts +254 -34
  36. package/node_modules/@zip.js/zip.js/index.js +3 -1
  37. package/node_modules/@zip.js/zip.js/index.min.js +1 -1
  38. package/node_modules/@zip.js/zip.js/lib/core/codec-pool.js +3 -1
  39. package/node_modules/@zip.js/zip.js/lib/core/codec-worker.js +11 -8
  40. package/node_modules/@zip.js/zip.js/lib/core/configuration.js +2 -1
  41. package/node_modules/@zip.js/zip.js/lib/core/constants.js +8 -0
  42. package/node_modules/@zip.js/zip.js/lib/core/io.js +10 -3
  43. package/node_modules/@zip.js/zip.js/lib/core/streams/aes-crypto-stream.js +4 -3
  44. package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/deflate.js +0 -4
  45. package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/inflate.js +0 -4
  46. package/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js +1 -0
  47. package/node_modules/@zip.js/zip.js/lib/core/streams/zip-entry-stream.js +4 -2
  48. package/node_modules/@zip.js/zip.js/lib/core/util/mime-type.js +0 -2
  49. package/node_modules/@zip.js/zip.js/lib/core/util/stream-codec-shim.js +4 -4
  50. package/node_modules/@zip.js/zip.js/lib/core/z-worker-core.js +4 -2
  51. package/node_modules/@zip.js/zip.js/lib/core/zip-entry.js +17 -5
  52. package/node_modules/@zip.js/zip.js/lib/core/zip-fs-core.js +41 -11
  53. package/node_modules/@zip.js/zip.js/lib/core/zip-reader.js +45 -23
  54. package/node_modules/@zip.js/zip.js/lib/core/zip-writer.js +147 -66
  55. package/node_modules/@zip.js/zip.js/lib/z-worker-inline-template.js +1 -1
  56. package/node_modules/@zip.js/zip.js/lib/z-worker-inline.js +1 -1
  57. package/node_modules/@zip.js/zip.js/lib/zip-data-uri.js +4 -1
  58. package/node_modules/@zip.js/zip.js/lib/zip-fs.js +2 -1
  59. package/node_modules/@zip.js/zip.js/lib/zip-full-fflate.js +2 -1
  60. package/node_modules/@zip.js/zip.js/lib/zip-full.js +2 -1
  61. package/node_modules/@zip.js/zip.js/lib/zip.js +2 -1
  62. package/node_modules/@zip.js/zip.js/package.json +121 -78
  63. package/package.json +16 -6
  64. package/prisma-gen/client.d.ts +1 -0
  65. package/prisma-gen/client.js +4 -0
  66. package/prisma-gen/default.d.ts +1 -1
  67. package/prisma-gen/edge.d.ts +1 -1
  68. package/prisma-gen/edge.js +75 -9
  69. package/prisma-gen/index-browser.js +70 -4
  70. package/prisma-gen/index.d.ts +14040 -5448
  71. package/prisma-gen/index.js +75 -9
  72. package/prisma-gen/runtime/edge-esm.js +21 -18
  73. package/prisma-gen/runtime/edge.js +21 -18
  74. package/prisma-gen/runtime/index-browser.d.ts +1 -1
  75. package/prisma-gen/runtime/index-browser.js +1 -1
  76. package/prisma-gen/runtime/library.d.ts +306 -71
  77. package/prisma-gen/runtime/library.js +70 -67
  78. package/prisma-gen/runtime/react-native.js +80 -0
  79. package/prisma-gen/runtime/wasm.js +22 -19
  80. package/prisma-gen/wasm.d.ts +1 -1
  81. package/prisma-gen/wasm.js +70 -4
  82. package/schema.prisma +108 -0
@@ -1 +1 @@
1
- export * from './index'
1
+ export * from "./index"
@@ -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.12.1
20
- * Query Engine version: 4c784e32044a8a016d99474bd02a3b6123742169
20
+ * Prisma Client JS version: 5.22.0
21
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
21
22
  */
22
23
  Prisma.prismaVersion = {
23
- client: "5.12.1",
24
- engine: "4c784e32044a8a016d99474bd02a3b6123742169"
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