@helloao/cli 0.2.0 → 0.3.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 (77) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/cli.cjs +2772 -6200
  3. package/dist/cjs/index.cjs +2694 -6253
  4. package/dist/esm/cli.js +5699 -0
  5. package/dist/esm/cli.js.map +7 -0
  6. package/dist/esm/index.js +839 -6020
  7. package/dist/esm/index.js.map +4 -4
  8. package/dist/types/actions.d.ts +36 -1
  9. package/dist/types/db.d.ts +12 -8
  10. package/dist/types/ebible.d.ts +1 -1
  11. package/dist/types/files.d.ts +6 -1
  12. package/dist/types/prisma-gen/browser.d.ts +110 -0
  13. package/dist/types/prisma-gen/client.d.ts +129 -0
  14. package/dist/types/prisma-gen/commonInputTypes.d.ts +378 -0
  15. package/dist/types/prisma-gen/enums.d.ts +2 -0
  16. package/dist/types/prisma-gen/internal/class.d.ts +353 -0
  17. package/dist/types/prisma-gen/internal/prismaNamespace.d.ts +2273 -0
  18. package/dist/types/prisma-gen/internal/prismaNamespaceBrowser.d.ts +294 -0
  19. package/dist/types/prisma-gen/models/Book.d.ts +2197 -0
  20. package/dist/types/prisma-gen/models/Chapter.d.ts +1934 -0
  21. package/dist/types/prisma-gen/models/ChapterAudioTiming.d.ts +1414 -0
  22. package/dist/types/prisma-gen/models/ChapterAudioUrl.d.ts +1414 -0
  23. package/dist/types/prisma-gen/models/ChapterFootnote.d.ts +1642 -0
  24. package/dist/types/prisma-gen/models/ChapterVerse.d.ts +1653 -0
  25. package/dist/types/prisma-gen/models/ChapterWords.d.ts +1366 -0
  26. package/dist/types/prisma-gen/models/Commentary.d.ts +1711 -0
  27. package/dist/types/prisma-gen/models/CommentaryBook.d.ts +1622 -0
  28. package/dist/types/prisma-gen/models/CommentaryChapter.d.ts +1487 -0
  29. package/dist/types/prisma-gen/models/CommentaryChapterVerse.d.ts +1514 -0
  30. package/dist/types/prisma-gen/models/CommentaryProfile.d.ts +1451 -0
  31. package/dist/types/prisma-gen/models/Dataset.d.ts +1667 -0
  32. package/dist/types/prisma-gen/models/DatasetBook.d.ts +1565 -0
  33. package/dist/types/prisma-gen/models/DatasetChapter.d.ts +1553 -0
  34. package/dist/types/prisma-gen/models/DatasetChapterVerse.d.ts +1600 -0
  35. package/dist/types/prisma-gen/models/DatasetReference.d.ts +1789 -0
  36. package/dist/types/prisma-gen/models/EBibleSource.d.ts +1686 -0
  37. package/dist/types/prisma-gen/models/InputFile.d.ts +1039 -0
  38. package/dist/types/prisma-gen/models/InputFileWarning.d.ts +946 -0
  39. package/dist/types/prisma-gen/models/Translation.d.ts +2238 -0
  40. package/dist/types/prisma-gen/models.d.ts +23 -0
  41. package/dist/types/s3.d.ts +2 -0
  42. package/dist/types/uploads.d.ts +1 -1
  43. package/meta/ARBNAV.json +10 -10
  44. package/meta/BSB.json +10 -10
  45. package/meta/HBOMAS.json +10 -10
  46. package/meta/HINIRV.json +10 -10
  47. package/meta/eng_dra.json +10 -10
  48. package/migrations/20240420231455_initial/migration.sql +66 -66
  49. package/migrations/20240711173108_add_chapter_audio/migration.sql +13 -13
  50. package/migrations/20240724212651_add_hashing/migration.sql +25 -25
  51. package/migrations/20250625201152_add_extra_ebible_metadata/migration.sql +3 -3
  52. package/migrations/20250630200532_add_apocryhpa_flag/migration.sql +2 -2
  53. package/migrations/20250701195337_add_file_warnings/migration.sql +8 -8
  54. package/migrations/20251028135135_add_datasets/migration.sql +72 -72
  55. package/migrations/20251028144932_fix_dataset_types/migration.sql +50 -50
  56. package/migrations/20260217200934_add_license_notice/migration.sql +5 -5
  57. package/migrations/20260703000000_add_chapter_audio_timing/migration.sql +13 -0
  58. package/migrations/20260809000000_add_chapter_words/migration.sql +12 -0
  59. package/package.json +21 -18
  60. package/schema.prisma +41 -2
  61. package/prisma-gen/default.d.ts +0 -1
  62. package/prisma-gen/default.js +0 -1
  63. package/prisma-gen/edge.d.ts +0 -1
  64. package/prisma-gen/edge.js +0 -403
  65. package/prisma-gen/index-browser.js +0 -397
  66. package/prisma-gen/index.d.ts +0 -34011
  67. package/prisma-gen/index.js +0 -426
  68. package/prisma-gen/runtime/edge-esm.js +0 -31
  69. package/prisma-gen/runtime/edge.js +0 -31
  70. package/prisma-gen/runtime/index-browser.d.ts +0 -365
  71. package/prisma-gen/runtime/index-browser.js +0 -13
  72. package/prisma-gen/runtime/library.d.ts +0 -3403
  73. package/prisma-gen/runtime/library.js +0 -143
  74. package/prisma-gen/runtime/react-native.js +0 -80
  75. package/prisma-gen/runtime/wasm.js +0 -32
  76. package/prisma-gen/wasm.d.ts +0 -1
  77. package/prisma-gen/wasm.js +0 -397
@@ -0,0 +1,353 @@
1
+ import * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "./prismaNamespace";
3
+ export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
+ export interface PrismaClientConstructor {
5
+ /**
6
+ * ## Prisma Client
7
+ *
8
+ * Type-safe database client for TypeScript
9
+ * @example
10
+ * ```
11
+ * const prisma = new PrismaClient({
12
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
13
+ * })
14
+ * // Fetch zero or more Translations
15
+ * const translations = await prisma.translation.findMany()
16
+ * ```
17
+ *
18
+ * Read more in our [docs](https://pris.ly/d/client).
19
+ */
20
+ new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
21
+ omit: infer U;
22
+ } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
23
+ }
24
+ /**
25
+ * ## Prisma Client
26
+ *
27
+ * Type-safe database client for TypeScript
28
+ * @example
29
+ * ```
30
+ * const prisma = new PrismaClient({
31
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
32
+ * })
33
+ * // Fetch zero or more Translations
34
+ * const translations = await prisma.translation.findMany()
35
+ * ```
36
+ *
37
+ * Read more in our [docs](https://pris.ly/d/client).
38
+ */
39
+ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
40
+ [K: symbol]: {
41
+ types: Prisma.TypeMap<ExtArgs>['other'];
42
+ };
43
+ $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
44
+ /**
45
+ * Connect with the database
46
+ */
47
+ $connect(): runtime.Types.Utils.JsPromise<void>;
48
+ /**
49
+ * Disconnect from the database
50
+ */
51
+ $disconnect(): runtime.Types.Utils.JsPromise<void>;
52
+ /**
53
+ * Executes a prepared raw query and returns the number of affected rows.
54
+ * @example
55
+ * ```
56
+ * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
57
+ * ```
58
+ *
59
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
60
+ */
61
+ $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
62
+ /**
63
+ * Executes a raw query and returns the number of affected rows.
64
+ * Susceptible to SQL injections, see documentation.
65
+ * @example
66
+ * ```
67
+ * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
68
+ * ```
69
+ *
70
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
71
+ */
72
+ $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
73
+ /**
74
+ * Performs a prepared raw query and returns the `SELECT` data.
75
+ * @example
76
+ * ```
77
+ * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
78
+ * ```
79
+ *
80
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
81
+ */
82
+ $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
83
+ /**
84
+ * Performs a raw query and returns the `SELECT` data.
85
+ * Susceptible to SQL injections, see documentation.
86
+ * @example
87
+ * ```
88
+ * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
89
+ * ```
90
+ *
91
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
92
+ */
93
+ $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
94
+ /**
95
+ * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
96
+ * @example
97
+ * ```
98
+ * const [george, bob, alice] = await prisma.$transaction([
99
+ * prisma.user.create({ data: { name: 'George' } }),
100
+ * prisma.user.create({ data: { name: 'Bob' } }),
101
+ * prisma.user.create({ data: { name: 'Alice' } }),
102
+ * ])
103
+ * ```
104
+ *
105
+ * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
106
+ */
107
+ $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
108
+ maxWait?: number;
109
+ timeout?: number;
110
+ isolationLevel?: Prisma.TransactionIsolationLevel;
111
+ }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
112
+ $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
113
+ maxWait?: number;
114
+ timeout?: number;
115
+ isolationLevel?: Prisma.TransactionIsolationLevel;
116
+ }): runtime.Types.Utils.JsPromise<R>;
117
+ $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
118
+ extArgs: ExtArgs;
119
+ }>>;
120
+ /**
121
+ * `prisma.translation`: Exposes CRUD operations for the **Translation** model.
122
+ * Example usage:
123
+ * ```ts
124
+ * // Fetch zero or more Translations
125
+ * const translations = await prisma.translation.findMany()
126
+ * ```
127
+ */
128
+ get translation(): Prisma.TranslationDelegate<ExtArgs, {
129
+ omit: OmitOpts;
130
+ }>;
131
+ /**
132
+ * `prisma.commentary`: Exposes CRUD operations for the **Commentary** model.
133
+ * Example usage:
134
+ * ```ts
135
+ * // Fetch zero or more Commentaries
136
+ * const commentaries = await prisma.commentary.findMany()
137
+ * ```
138
+ */
139
+ get commentary(): Prisma.CommentaryDelegate<ExtArgs, {
140
+ omit: OmitOpts;
141
+ }>;
142
+ /**
143
+ * `prisma.eBibleSource`: Exposes CRUD operations for the **EBibleSource** model.
144
+ * Example usage:
145
+ * ```ts
146
+ * // Fetch zero or more EBibleSources
147
+ * const eBibleSources = await prisma.eBibleSource.findMany()
148
+ * ```
149
+ */
150
+ get eBibleSource(): Prisma.EBibleSourceDelegate<ExtArgs, {
151
+ omit: OmitOpts;
152
+ }>;
153
+ /**
154
+ * `prisma.inputFile`: Exposes CRUD operations for the **InputFile** model.
155
+ * Example usage:
156
+ * ```ts
157
+ * // Fetch zero or more InputFiles
158
+ * const inputFiles = await prisma.inputFile.findMany()
159
+ * ```
160
+ */
161
+ get inputFile(): Prisma.InputFileDelegate<ExtArgs, {
162
+ omit: OmitOpts;
163
+ }>;
164
+ /**
165
+ * `prisma.inputFileWarning`: Exposes CRUD operations for the **InputFileWarning** model.
166
+ * Example usage:
167
+ * ```ts
168
+ * // Fetch zero or more InputFileWarnings
169
+ * const inputFileWarnings = await prisma.inputFileWarning.findMany()
170
+ * ```
171
+ */
172
+ get inputFileWarning(): Prisma.InputFileWarningDelegate<ExtArgs, {
173
+ omit: OmitOpts;
174
+ }>;
175
+ /**
176
+ * `prisma.book`: Exposes CRUD operations for the **Book** model.
177
+ * Example usage:
178
+ * ```ts
179
+ * // Fetch zero or more Books
180
+ * const books = await prisma.book.findMany()
181
+ * ```
182
+ */
183
+ get book(): Prisma.BookDelegate<ExtArgs, {
184
+ omit: OmitOpts;
185
+ }>;
186
+ /**
187
+ * `prisma.commentaryBook`: Exposes CRUD operations for the **CommentaryBook** model.
188
+ * Example usage:
189
+ * ```ts
190
+ * // Fetch zero or more CommentaryBooks
191
+ * const commentaryBooks = await prisma.commentaryBook.findMany()
192
+ * ```
193
+ */
194
+ get commentaryBook(): Prisma.CommentaryBookDelegate<ExtArgs, {
195
+ omit: OmitOpts;
196
+ }>;
197
+ /**
198
+ * `prisma.commentaryProfile`: Exposes CRUD operations for the **CommentaryProfile** model.
199
+ * Example usage:
200
+ * ```ts
201
+ * // Fetch zero or more CommentaryProfiles
202
+ * const commentaryProfiles = await prisma.commentaryProfile.findMany()
203
+ * ```
204
+ */
205
+ get commentaryProfile(): Prisma.CommentaryProfileDelegate<ExtArgs, {
206
+ omit: OmitOpts;
207
+ }>;
208
+ /**
209
+ * `prisma.chapter`: Exposes CRUD operations for the **Chapter** model.
210
+ * Example usage:
211
+ * ```ts
212
+ * // Fetch zero or more Chapters
213
+ * const chapters = await prisma.chapter.findMany()
214
+ * ```
215
+ */
216
+ get chapter(): Prisma.ChapterDelegate<ExtArgs, {
217
+ omit: OmitOpts;
218
+ }>;
219
+ /**
220
+ * `prisma.commentaryChapter`: Exposes CRUD operations for the **CommentaryChapter** model.
221
+ * Example usage:
222
+ * ```ts
223
+ * // Fetch zero or more CommentaryChapters
224
+ * const commentaryChapters = await prisma.commentaryChapter.findMany()
225
+ * ```
226
+ */
227
+ get commentaryChapter(): Prisma.CommentaryChapterDelegate<ExtArgs, {
228
+ omit: OmitOpts;
229
+ }>;
230
+ /**
231
+ * `prisma.chapterAudioUrl`: Exposes CRUD operations for the **ChapterAudioUrl** model.
232
+ * Example usage:
233
+ * ```ts
234
+ * // Fetch zero or more ChapterAudioUrls
235
+ * const chapterAudioUrls = await prisma.chapterAudioUrl.findMany()
236
+ * ```
237
+ */
238
+ get chapterAudioUrl(): Prisma.ChapterAudioUrlDelegate<ExtArgs, {
239
+ omit: OmitOpts;
240
+ }>;
241
+ /**
242
+ * `prisma.chapterAudioTiming`: Exposes CRUD operations for the **ChapterAudioTiming** model.
243
+ * Example usage:
244
+ * ```ts
245
+ * // Fetch zero or more ChapterAudioTimings
246
+ * const chapterAudioTimings = await prisma.chapterAudioTiming.findMany()
247
+ * ```
248
+ */
249
+ get chapterAudioTiming(): Prisma.ChapterAudioTimingDelegate<ExtArgs, {
250
+ omit: OmitOpts;
251
+ }>;
252
+ /**
253
+ * `prisma.chapterWords`: Exposes CRUD operations for the **ChapterWords** model.
254
+ * Example usage:
255
+ * ```ts
256
+ * // Fetch zero or more ChapterWords
257
+ * const chapterWords = await prisma.chapterWords.findMany()
258
+ * ```
259
+ */
260
+ get chapterWords(): Prisma.ChapterWordsDelegate<ExtArgs, {
261
+ omit: OmitOpts;
262
+ }>;
263
+ /**
264
+ * `prisma.chapterVerse`: Exposes CRUD operations for the **ChapterVerse** model.
265
+ * Example usage:
266
+ * ```ts
267
+ * // Fetch zero or more ChapterVerses
268
+ * const chapterVerses = await prisma.chapterVerse.findMany()
269
+ * ```
270
+ */
271
+ get chapterVerse(): Prisma.ChapterVerseDelegate<ExtArgs, {
272
+ omit: OmitOpts;
273
+ }>;
274
+ /**
275
+ * `prisma.commentaryChapterVerse`: Exposes CRUD operations for the **CommentaryChapterVerse** model.
276
+ * Example usage:
277
+ * ```ts
278
+ * // Fetch zero or more CommentaryChapterVerses
279
+ * const commentaryChapterVerses = await prisma.commentaryChapterVerse.findMany()
280
+ * ```
281
+ */
282
+ get commentaryChapterVerse(): Prisma.CommentaryChapterVerseDelegate<ExtArgs, {
283
+ omit: OmitOpts;
284
+ }>;
285
+ /**
286
+ * `prisma.chapterFootnote`: Exposes CRUD operations for the **ChapterFootnote** model.
287
+ * Example usage:
288
+ * ```ts
289
+ * // Fetch zero or more ChapterFootnotes
290
+ * const chapterFootnotes = await prisma.chapterFootnote.findMany()
291
+ * ```
292
+ */
293
+ get chapterFootnote(): Prisma.ChapterFootnoteDelegate<ExtArgs, {
294
+ omit: OmitOpts;
295
+ }>;
296
+ /**
297
+ * `prisma.dataset`: Exposes CRUD operations for the **Dataset** model.
298
+ * Example usage:
299
+ * ```ts
300
+ * // Fetch zero or more Datasets
301
+ * const datasets = await prisma.dataset.findMany()
302
+ * ```
303
+ */
304
+ get dataset(): Prisma.DatasetDelegate<ExtArgs, {
305
+ omit: OmitOpts;
306
+ }>;
307
+ /**
308
+ * `prisma.datasetBook`: Exposes CRUD operations for the **DatasetBook** model.
309
+ * Example usage:
310
+ * ```ts
311
+ * // Fetch zero or more DatasetBooks
312
+ * const datasetBooks = await prisma.datasetBook.findMany()
313
+ * ```
314
+ */
315
+ get datasetBook(): Prisma.DatasetBookDelegate<ExtArgs, {
316
+ omit: OmitOpts;
317
+ }>;
318
+ /**
319
+ * `prisma.datasetChapter`: Exposes CRUD operations for the **DatasetChapter** model.
320
+ * Example usage:
321
+ * ```ts
322
+ * // Fetch zero or more DatasetChapters
323
+ * const datasetChapters = await prisma.datasetChapter.findMany()
324
+ * ```
325
+ */
326
+ get datasetChapter(): Prisma.DatasetChapterDelegate<ExtArgs, {
327
+ omit: OmitOpts;
328
+ }>;
329
+ /**
330
+ * `prisma.datasetChapterVerse`: Exposes CRUD operations for the **DatasetChapterVerse** model.
331
+ * Example usage:
332
+ * ```ts
333
+ * // Fetch zero or more DatasetChapterVerses
334
+ * const datasetChapterVerses = await prisma.datasetChapterVerse.findMany()
335
+ * ```
336
+ */
337
+ get datasetChapterVerse(): Prisma.DatasetChapterVerseDelegate<ExtArgs, {
338
+ omit: OmitOpts;
339
+ }>;
340
+ /**
341
+ * `prisma.datasetReference`: Exposes CRUD operations for the **DatasetReference** model.
342
+ * Example usage:
343
+ * ```ts
344
+ * // Fetch zero or more DatasetReferences
345
+ * const datasetReferences = await prisma.datasetReference.findMany()
346
+ * ```
347
+ */
348
+ get datasetReference(): Prisma.DatasetReferenceDelegate<ExtArgs, {
349
+ omit: OmitOpts;
350
+ }>;
351
+ }
352
+ export declare function getPrismaClientClass(): PrismaClientConstructor;
353
+ //# sourceMappingURL=class.d.ts.map