@helloao/cli 0.3.0 → 0.4.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.
@@ -125,6 +125,13 @@ export declare function importCommentaries(dir: string, options: ImportTranslati
125
125
  * @param options The options.
126
126
  */
127
127
  export declare function importApi(dir: string, options: ImportTranslationOptions): Promise<void>;
128
+ /**
129
+ * Imports the Theographic Bible Metadata from the given directory into the database.
130
+ * The directory should contain the JSON files that are downloaded by the fetch-bible-metadata command.
131
+ * @param dir The directory that the Theographic JSON files are located in.
132
+ * @param options The options.
133
+ */
134
+ export declare function importBibleMetadata(dir: string, options: ImportTranslationOptions): Promise<void>;
128
135
  /**
129
136
  * A single chapter's worth of audio timing data to import.
130
137
  */
@@ -87,6 +87,13 @@ export declare function insertCommentaryBooks(db: Database, commentary: DatasetC
87
87
  export declare function insertCommentaryProfiles(db: Database, commentary: DatasetCommentary, commentaryProfiles: DatasetCommentaryProfile[]): void;
88
88
  export declare function insertCommentaryContent(db: Database, commentary: DatasetCommentary, book: DatasetCommentaryBook, chapters: CommentaryBookChapter[]): void;
89
89
  export declare function insertDatasets(db: Database, datasets: DatasetDataset[]): void;
90
+ /**
91
+ * Inserts the entities (people, places, events, and people groups) for the given dataset into the database.
92
+ * Any entities that are no longer present in the dataset are deleted.
93
+ * @param db The database to insert the entities into.
94
+ * @param dataset The dataset that the entities belong to.
95
+ */
96
+ export declare function insertDatasetEntities(db: Database, dataset: DatasetDataset): void;
90
97
  export declare function insertDatasetBooks(db: Database, dataset: DatasetDataset, datasetBooks: DatasetDatasetBook[]): void;
91
98
  export declare function insertDatasetContent(db: Database, dataset: DatasetDataset, book: DatasetDatasetBook, chapters: DatasetBookChapter[]): void;
92
99
  export declare function getDbPathFromDir(dir: string): string;
@@ -87,6 +87,11 @@ export type ChapterFootnote = Prisma.ChapterFootnoteModel;
87
87
  *
88
88
  */
89
89
  export type Dataset = Prisma.DatasetModel;
90
+ /**
91
+ * Model DatasetEntity
92
+ *
93
+ */
94
+ export type DatasetEntity = Prisma.DatasetEntityModel;
90
95
  /**
91
96
  * Model DatasetBook
92
97
  *
@@ -106,6 +106,11 @@ export type ChapterFootnote = Prisma.ChapterFootnoteModel;
106
106
  *
107
107
  */
108
108
  export type Dataset = Prisma.DatasetModel;
109
+ /**
110
+ * Model DatasetEntity
111
+ *
112
+ */
113
+ export type DatasetEntity = Prisma.DatasetEntityModel;
109
114
  /**
110
115
  * Model DatasetBook
111
116
  *
@@ -304,6 +304,17 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
304
304
  get dataset(): Prisma.DatasetDelegate<ExtArgs, {
305
305
  omit: OmitOpts;
306
306
  }>;
307
+ /**
308
+ * `prisma.datasetEntity`: Exposes CRUD operations for the **DatasetEntity** model.
309
+ * Example usage:
310
+ * ```ts
311
+ * // Fetch zero or more DatasetEntities
312
+ * const datasetEntities = await prisma.datasetEntity.findMany()
313
+ * ```
314
+ */
315
+ get datasetEntity(): Prisma.DatasetEntityDelegate<ExtArgs, {
316
+ omit: OmitOpts;
317
+ }>;
307
318
  /**
308
319
  * `prisma.datasetBook`: Exposes CRUD operations for the **DatasetBook** model.
309
320
  * Example usage:
@@ -248,6 +248,7 @@ export declare const ModelName: {
248
248
  readonly CommentaryChapterVerse: "CommentaryChapterVerse";
249
249
  readonly ChapterFootnote: "ChapterFootnote";
250
250
  readonly Dataset: "Dataset";
251
+ readonly DatasetEntity: "DatasetEntity";
251
252
  readonly DatasetBook: "DatasetBook";
252
253
  readonly DatasetChapter: "DatasetChapter";
253
254
  readonly DatasetChapterVerse: "DatasetChapterVerse";
@@ -264,7 +265,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
264
265
  omit: GlobalOmitOptions;
265
266
  };
266
267
  meta: {
267
- modelProps: "translation" | "commentary" | "eBibleSource" | "inputFile" | "inputFileWarning" | "book" | "commentaryBook" | "commentaryProfile" | "chapter" | "commentaryChapter" | "chapterAudioUrl" | "chapterAudioTiming" | "chapterWords" | "chapterVerse" | "commentaryChapterVerse" | "chapterFootnote" | "dataset" | "datasetBook" | "datasetChapter" | "datasetChapterVerse" | "datasetReference";
268
+ modelProps: "translation" | "commentary" | "eBibleSource" | "inputFile" | "inputFileWarning" | "book" | "commentaryBook" | "commentaryProfile" | "chapter" | "commentaryChapter" | "chapterAudioUrl" | "chapterAudioTiming" | "chapterWords" | "chapterVerse" | "commentaryChapterVerse" | "chapterFootnote" | "dataset" | "datasetEntity" | "datasetBook" | "datasetChapter" | "datasetChapterVerse" | "datasetReference";
268
269
  txIsolationLevel: TransactionIsolationLevel;
269
270
  };
270
271
  model: {
@@ -1526,6 +1527,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
1526
1527
  };
1527
1528
  };
1528
1529
  };
1530
+ DatasetEntity: {
1531
+ payload: Prisma.$DatasetEntityPayload<ExtArgs>;
1532
+ fields: Prisma.DatasetEntityFieldRefs;
1533
+ operations: {
1534
+ findUnique: {
1535
+ args: Prisma.DatasetEntityFindUniqueArgs<ExtArgs>;
1536
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload> | null;
1537
+ };
1538
+ findUniqueOrThrow: {
1539
+ args: Prisma.DatasetEntityFindUniqueOrThrowArgs<ExtArgs>;
1540
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1541
+ };
1542
+ findFirst: {
1543
+ args: Prisma.DatasetEntityFindFirstArgs<ExtArgs>;
1544
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload> | null;
1545
+ };
1546
+ findFirstOrThrow: {
1547
+ args: Prisma.DatasetEntityFindFirstOrThrowArgs<ExtArgs>;
1548
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1549
+ };
1550
+ findMany: {
1551
+ args: Prisma.DatasetEntityFindManyArgs<ExtArgs>;
1552
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>[];
1553
+ };
1554
+ create: {
1555
+ args: Prisma.DatasetEntityCreateArgs<ExtArgs>;
1556
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1557
+ };
1558
+ createMany: {
1559
+ args: Prisma.DatasetEntityCreateManyArgs<ExtArgs>;
1560
+ result: BatchPayload;
1561
+ };
1562
+ createManyAndReturn: {
1563
+ args: Prisma.DatasetEntityCreateManyAndReturnArgs<ExtArgs>;
1564
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>[];
1565
+ };
1566
+ delete: {
1567
+ args: Prisma.DatasetEntityDeleteArgs<ExtArgs>;
1568
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1569
+ };
1570
+ update: {
1571
+ args: Prisma.DatasetEntityUpdateArgs<ExtArgs>;
1572
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1573
+ };
1574
+ deleteMany: {
1575
+ args: Prisma.DatasetEntityDeleteManyArgs<ExtArgs>;
1576
+ result: BatchPayload;
1577
+ };
1578
+ updateMany: {
1579
+ args: Prisma.DatasetEntityUpdateManyArgs<ExtArgs>;
1580
+ result: BatchPayload;
1581
+ };
1582
+ updateManyAndReturn: {
1583
+ args: Prisma.DatasetEntityUpdateManyAndReturnArgs<ExtArgs>;
1584
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>[];
1585
+ };
1586
+ upsert: {
1587
+ args: Prisma.DatasetEntityUpsertArgs<ExtArgs>;
1588
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DatasetEntityPayload>;
1589
+ };
1590
+ aggregate: {
1591
+ args: Prisma.DatasetEntityAggregateArgs<ExtArgs>;
1592
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDatasetEntity>;
1593
+ };
1594
+ groupBy: {
1595
+ args: Prisma.DatasetEntityGroupByArgs<ExtArgs>;
1596
+ result: runtime.Types.Utils.Optional<Prisma.DatasetEntityGroupByOutputType>[];
1597
+ };
1598
+ count: {
1599
+ args: Prisma.DatasetEntityCountArgs<ExtArgs>;
1600
+ result: runtime.Types.Utils.Optional<Prisma.DatasetEntityCountAggregateOutputType> | number;
1601
+ };
1602
+ };
1603
+ };
1529
1604
  DatasetBook: {
1530
1605
  payload: Prisma.$DatasetBookPayload<ExtArgs>;
1531
1606
  fields: Prisma.DatasetBookFieldRefs;
@@ -2043,6 +2118,15 @@ export declare const DatasetScalarFieldEnum: {
2043
2118
  readonly sha256: "sha256";
2044
2119
  };
2045
2120
  export type DatasetScalarFieldEnum = (typeof DatasetScalarFieldEnum)[keyof typeof DatasetScalarFieldEnum];
2121
+ export declare const DatasetEntityScalarFieldEnum: {
2122
+ readonly id: "id";
2123
+ readonly datasetId: "datasetId";
2124
+ readonly type: "type";
2125
+ readonly name: "name";
2126
+ readonly json: "json";
2127
+ readonly sha256: "sha256";
2128
+ };
2129
+ export type DatasetEntityScalarFieldEnum = (typeof DatasetEntityScalarFieldEnum)[keyof typeof DatasetEntityScalarFieldEnum];
2046
2130
  export declare const DatasetBookScalarFieldEnum: {
2047
2131
  readonly id: "id";
2048
2132
  readonly datasetId: "datasetId";
@@ -2240,6 +2324,7 @@ export type GlobalOmitConfig = {
2240
2324
  commentaryChapterVerse?: Prisma.CommentaryChapterVerseOmit;
2241
2325
  chapterFootnote?: Prisma.ChapterFootnoteOmit;
2242
2326
  dataset?: Prisma.DatasetOmit;
2327
+ datasetEntity?: Prisma.DatasetEntityOmit;
2243
2328
  datasetBook?: Prisma.DatasetBookOmit;
2244
2329
  datasetChapter?: Prisma.DatasetChapterOmit;
2245
2330
  datasetChapterVerse?: Prisma.DatasetChapterVerseOmit;
@@ -43,6 +43,7 @@ export declare const ModelName: {
43
43
  readonly CommentaryChapterVerse: "CommentaryChapterVerse";
44
44
  readonly ChapterFootnote: "ChapterFootnote";
45
45
  readonly Dataset: "Dataset";
46
+ readonly DatasetEntity: "DatasetEntity";
46
47
  readonly DatasetBook: "DatasetBook";
47
48
  readonly DatasetChapter: "DatasetChapter";
48
49
  readonly DatasetChapterVerse: "DatasetChapterVerse";
@@ -243,6 +244,15 @@ export declare const DatasetScalarFieldEnum: {
243
244
  readonly sha256: "sha256";
244
245
  };
245
246
  export type DatasetScalarFieldEnum = (typeof DatasetScalarFieldEnum)[keyof typeof DatasetScalarFieldEnum];
247
+ export declare const DatasetEntityScalarFieldEnum: {
248
+ readonly id: "id";
249
+ readonly datasetId: "datasetId";
250
+ readonly type: "type";
251
+ readonly name: "name";
252
+ readonly json: "json";
253
+ readonly sha256: "sha256";
254
+ };
255
+ export type DatasetEntityScalarFieldEnum = (typeof DatasetEntityScalarFieldEnum)[keyof typeof DatasetEntityScalarFieldEnum];
246
256
  export declare const DatasetBookScalarFieldEnum: {
247
257
  readonly id: "id";
248
258
  readonly datasetId: "datasetId";
@@ -174,6 +174,7 @@ export type DatasetWhereInput = {
174
174
  chapters?: Prisma.DatasetChapterListRelationFilter;
175
175
  verses?: Prisma.DatasetChapterVerseListRelationFilter;
176
176
  references?: Prisma.DatasetReferenceListRelationFilter;
177
+ entities?: Prisma.DatasetEntityListRelationFilter;
177
178
  };
178
179
  export type DatasetOrderByWithRelationInput = {
179
180
  id?: Prisma.SortOrder;
@@ -189,6 +190,7 @@ export type DatasetOrderByWithRelationInput = {
189
190
  chapters?: Prisma.DatasetChapterOrderByRelationAggregateInput;
190
191
  verses?: Prisma.DatasetChapterVerseOrderByRelationAggregateInput;
191
192
  references?: Prisma.DatasetReferenceOrderByRelationAggregateInput;
193
+ entities?: Prisma.DatasetEntityOrderByRelationAggregateInput;
192
194
  };
193
195
  export type DatasetWhereUniqueInput = Prisma.AtLeast<{
194
196
  id?: string;
@@ -207,6 +209,7 @@ export type DatasetWhereUniqueInput = Prisma.AtLeast<{
207
209
  chapters?: Prisma.DatasetChapterListRelationFilter;
208
210
  verses?: Prisma.DatasetChapterVerseListRelationFilter;
209
211
  references?: Prisma.DatasetReferenceListRelationFilter;
212
+ entities?: Prisma.DatasetEntityListRelationFilter;
210
213
  }, "id">;
211
214
  export type DatasetOrderByWithAggregationInput = {
212
215
  id?: Prisma.SortOrder;
@@ -250,6 +253,7 @@ export type DatasetCreateInput = {
250
253
  chapters?: Prisma.DatasetChapterCreateNestedManyWithoutDatasetInput;
251
254
  verses?: Prisma.DatasetChapterVerseCreateNestedManyWithoutDatasetInput;
252
255
  references?: Prisma.DatasetReferenceCreateNestedManyWithoutDatasetInput;
256
+ entities?: Prisma.DatasetEntityCreateNestedManyWithoutDatasetInput;
253
257
  };
254
258
  export type DatasetUncheckedCreateInput = {
255
259
  id: string;
@@ -265,6 +269,7 @@ export type DatasetUncheckedCreateInput = {
265
269
  chapters?: Prisma.DatasetChapterUncheckedCreateNestedManyWithoutDatasetInput;
266
270
  verses?: Prisma.DatasetChapterVerseUncheckedCreateNestedManyWithoutDatasetInput;
267
271
  references?: Prisma.DatasetReferenceUncheckedCreateNestedManyWithoutDatasetInput;
272
+ entities?: Prisma.DatasetEntityUncheckedCreateNestedManyWithoutDatasetInput;
268
273
  };
269
274
  export type DatasetUpdateInput = {
270
275
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -280,6 +285,7 @@ export type DatasetUpdateInput = {
280
285
  chapters?: Prisma.DatasetChapterUpdateManyWithoutDatasetNestedInput;
281
286
  verses?: Prisma.DatasetChapterVerseUpdateManyWithoutDatasetNestedInput;
282
287
  references?: Prisma.DatasetReferenceUpdateManyWithoutDatasetNestedInput;
288
+ entities?: Prisma.DatasetEntityUpdateManyWithoutDatasetNestedInput;
283
289
  };
284
290
  export type DatasetUncheckedUpdateInput = {
285
291
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -295,6 +301,7 @@ export type DatasetUncheckedUpdateInput = {
295
301
  chapters?: Prisma.DatasetChapterUncheckedUpdateManyWithoutDatasetNestedInput;
296
302
  verses?: Prisma.DatasetChapterVerseUncheckedUpdateManyWithoutDatasetNestedInput;
297
303
  references?: Prisma.DatasetReferenceUncheckedUpdateManyWithoutDatasetNestedInput;
304
+ entities?: Prisma.DatasetEntityUncheckedUpdateManyWithoutDatasetNestedInput;
298
305
  };
299
306
  export type DatasetCreateManyInput = {
300
307
  id: string;
@@ -366,6 +373,18 @@ export type DatasetScalarRelationFilter = {
366
373
  is?: Prisma.DatasetWhereInput;
367
374
  isNot?: Prisma.DatasetWhereInput;
368
375
  };
376
+ export type DatasetCreateNestedOneWithoutEntitiesInput = {
377
+ create?: Prisma.XOR<Prisma.DatasetCreateWithoutEntitiesInput, Prisma.DatasetUncheckedCreateWithoutEntitiesInput>;
378
+ connectOrCreate?: Prisma.DatasetCreateOrConnectWithoutEntitiesInput;
379
+ connect?: Prisma.DatasetWhereUniqueInput;
380
+ };
381
+ export type DatasetUpdateOneRequiredWithoutEntitiesNestedInput = {
382
+ create?: Prisma.XOR<Prisma.DatasetCreateWithoutEntitiesInput, Prisma.DatasetUncheckedCreateWithoutEntitiesInput>;
383
+ connectOrCreate?: Prisma.DatasetCreateOrConnectWithoutEntitiesInput;
384
+ upsert?: Prisma.DatasetUpsertWithoutEntitiesInput;
385
+ connect?: Prisma.DatasetWhereUniqueInput;
386
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DatasetUpdateToOneWithWhereWithoutEntitiesInput, Prisma.DatasetUpdateWithoutEntitiesInput>, Prisma.DatasetUncheckedUpdateWithoutEntitiesInput>;
387
+ };
369
388
  export type DatasetCreateNestedOneWithoutBooksInput = {
370
389
  create?: Prisma.XOR<Prisma.DatasetCreateWithoutBooksInput, Prisma.DatasetUncheckedCreateWithoutBooksInput>;
371
390
  connectOrCreate?: Prisma.DatasetCreateOrConnectWithoutBooksInput;
@@ -414,6 +433,79 @@ export type DatasetUpdateOneRequiredWithoutReferencesNestedInput = {
414
433
  connect?: Prisma.DatasetWhereUniqueInput;
415
434
  update?: Prisma.XOR<Prisma.XOR<Prisma.DatasetUpdateToOneWithWhereWithoutReferencesInput, Prisma.DatasetUpdateWithoutReferencesInput>, Prisma.DatasetUncheckedUpdateWithoutReferencesInput>;
416
435
  };
436
+ export type DatasetCreateWithoutEntitiesInput = {
437
+ id: string;
438
+ name: string;
439
+ website: string;
440
+ licenseUrl: string;
441
+ licenseNotes?: string | null;
442
+ englishName: string;
443
+ language: string;
444
+ textDirection: string;
445
+ sha256?: string | null;
446
+ books?: Prisma.DatasetBookCreateNestedManyWithoutDatasetInput;
447
+ chapters?: Prisma.DatasetChapterCreateNestedManyWithoutDatasetInput;
448
+ verses?: Prisma.DatasetChapterVerseCreateNestedManyWithoutDatasetInput;
449
+ references?: Prisma.DatasetReferenceCreateNestedManyWithoutDatasetInput;
450
+ };
451
+ export type DatasetUncheckedCreateWithoutEntitiesInput = {
452
+ id: string;
453
+ name: string;
454
+ website: string;
455
+ licenseUrl: string;
456
+ licenseNotes?: string | null;
457
+ englishName: string;
458
+ language: string;
459
+ textDirection: string;
460
+ sha256?: string | null;
461
+ books?: Prisma.DatasetBookUncheckedCreateNestedManyWithoutDatasetInput;
462
+ chapters?: Prisma.DatasetChapterUncheckedCreateNestedManyWithoutDatasetInput;
463
+ verses?: Prisma.DatasetChapterVerseUncheckedCreateNestedManyWithoutDatasetInput;
464
+ references?: Prisma.DatasetReferenceUncheckedCreateNestedManyWithoutDatasetInput;
465
+ };
466
+ export type DatasetCreateOrConnectWithoutEntitiesInput = {
467
+ where: Prisma.DatasetWhereUniqueInput;
468
+ create: Prisma.XOR<Prisma.DatasetCreateWithoutEntitiesInput, Prisma.DatasetUncheckedCreateWithoutEntitiesInput>;
469
+ };
470
+ export type DatasetUpsertWithoutEntitiesInput = {
471
+ update: Prisma.XOR<Prisma.DatasetUpdateWithoutEntitiesInput, Prisma.DatasetUncheckedUpdateWithoutEntitiesInput>;
472
+ create: Prisma.XOR<Prisma.DatasetCreateWithoutEntitiesInput, Prisma.DatasetUncheckedCreateWithoutEntitiesInput>;
473
+ where?: Prisma.DatasetWhereInput;
474
+ };
475
+ export type DatasetUpdateToOneWithWhereWithoutEntitiesInput = {
476
+ where?: Prisma.DatasetWhereInput;
477
+ data: Prisma.XOR<Prisma.DatasetUpdateWithoutEntitiesInput, Prisma.DatasetUncheckedUpdateWithoutEntitiesInput>;
478
+ };
479
+ export type DatasetUpdateWithoutEntitiesInput = {
480
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
481
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
482
+ website?: Prisma.StringFieldUpdateOperationsInput | string;
483
+ licenseUrl?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ licenseNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
485
+ englishName?: Prisma.StringFieldUpdateOperationsInput | string;
486
+ language?: Prisma.StringFieldUpdateOperationsInput | string;
487
+ textDirection?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ sha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ books?: Prisma.DatasetBookUpdateManyWithoutDatasetNestedInput;
490
+ chapters?: Prisma.DatasetChapterUpdateManyWithoutDatasetNestedInput;
491
+ verses?: Prisma.DatasetChapterVerseUpdateManyWithoutDatasetNestedInput;
492
+ references?: Prisma.DatasetReferenceUpdateManyWithoutDatasetNestedInput;
493
+ };
494
+ export type DatasetUncheckedUpdateWithoutEntitiesInput = {
495
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
496
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
497
+ website?: Prisma.StringFieldUpdateOperationsInput | string;
498
+ licenseUrl?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ licenseNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
500
+ englishName?: Prisma.StringFieldUpdateOperationsInput | string;
501
+ language?: Prisma.StringFieldUpdateOperationsInput | string;
502
+ textDirection?: Prisma.StringFieldUpdateOperationsInput | string;
503
+ sha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
504
+ books?: Prisma.DatasetBookUncheckedUpdateManyWithoutDatasetNestedInput;
505
+ chapters?: Prisma.DatasetChapterUncheckedUpdateManyWithoutDatasetNestedInput;
506
+ verses?: Prisma.DatasetChapterVerseUncheckedUpdateManyWithoutDatasetNestedInput;
507
+ references?: Prisma.DatasetReferenceUncheckedUpdateManyWithoutDatasetNestedInput;
508
+ };
417
509
  export type DatasetCreateWithoutBooksInput = {
418
510
  id: string;
419
511
  name: string;
@@ -427,6 +519,7 @@ export type DatasetCreateWithoutBooksInput = {
427
519
  chapters?: Prisma.DatasetChapterCreateNestedManyWithoutDatasetInput;
428
520
  verses?: Prisma.DatasetChapterVerseCreateNestedManyWithoutDatasetInput;
429
521
  references?: Prisma.DatasetReferenceCreateNestedManyWithoutDatasetInput;
522
+ entities?: Prisma.DatasetEntityCreateNestedManyWithoutDatasetInput;
430
523
  };
431
524
  export type DatasetUncheckedCreateWithoutBooksInput = {
432
525
  id: string;
@@ -441,6 +534,7 @@ export type DatasetUncheckedCreateWithoutBooksInput = {
441
534
  chapters?: Prisma.DatasetChapterUncheckedCreateNestedManyWithoutDatasetInput;
442
535
  verses?: Prisma.DatasetChapterVerseUncheckedCreateNestedManyWithoutDatasetInput;
443
536
  references?: Prisma.DatasetReferenceUncheckedCreateNestedManyWithoutDatasetInput;
537
+ entities?: Prisma.DatasetEntityUncheckedCreateNestedManyWithoutDatasetInput;
444
538
  };
445
539
  export type DatasetCreateOrConnectWithoutBooksInput = {
446
540
  where: Prisma.DatasetWhereUniqueInput;
@@ -468,6 +562,7 @@ export type DatasetUpdateWithoutBooksInput = {
468
562
  chapters?: Prisma.DatasetChapterUpdateManyWithoutDatasetNestedInput;
469
563
  verses?: Prisma.DatasetChapterVerseUpdateManyWithoutDatasetNestedInput;
470
564
  references?: Prisma.DatasetReferenceUpdateManyWithoutDatasetNestedInput;
565
+ entities?: Prisma.DatasetEntityUpdateManyWithoutDatasetNestedInput;
471
566
  };
472
567
  export type DatasetUncheckedUpdateWithoutBooksInput = {
473
568
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -482,6 +577,7 @@ export type DatasetUncheckedUpdateWithoutBooksInput = {
482
577
  chapters?: Prisma.DatasetChapterUncheckedUpdateManyWithoutDatasetNestedInput;
483
578
  verses?: Prisma.DatasetChapterVerseUncheckedUpdateManyWithoutDatasetNestedInput;
484
579
  references?: Prisma.DatasetReferenceUncheckedUpdateManyWithoutDatasetNestedInput;
580
+ entities?: Prisma.DatasetEntityUncheckedUpdateManyWithoutDatasetNestedInput;
485
581
  };
486
582
  export type DatasetCreateWithoutChaptersInput = {
487
583
  id: string;
@@ -496,6 +592,7 @@ export type DatasetCreateWithoutChaptersInput = {
496
592
  books?: Prisma.DatasetBookCreateNestedManyWithoutDatasetInput;
497
593
  verses?: Prisma.DatasetChapterVerseCreateNestedManyWithoutDatasetInput;
498
594
  references?: Prisma.DatasetReferenceCreateNestedManyWithoutDatasetInput;
595
+ entities?: Prisma.DatasetEntityCreateNestedManyWithoutDatasetInput;
499
596
  };
500
597
  export type DatasetUncheckedCreateWithoutChaptersInput = {
501
598
  id: string;
@@ -510,6 +607,7 @@ export type DatasetUncheckedCreateWithoutChaptersInput = {
510
607
  books?: Prisma.DatasetBookUncheckedCreateNestedManyWithoutDatasetInput;
511
608
  verses?: Prisma.DatasetChapterVerseUncheckedCreateNestedManyWithoutDatasetInput;
512
609
  references?: Prisma.DatasetReferenceUncheckedCreateNestedManyWithoutDatasetInput;
610
+ entities?: Prisma.DatasetEntityUncheckedCreateNestedManyWithoutDatasetInput;
513
611
  };
514
612
  export type DatasetCreateOrConnectWithoutChaptersInput = {
515
613
  where: Prisma.DatasetWhereUniqueInput;
@@ -537,6 +635,7 @@ export type DatasetUpdateWithoutChaptersInput = {
537
635
  books?: Prisma.DatasetBookUpdateManyWithoutDatasetNestedInput;
538
636
  verses?: Prisma.DatasetChapterVerseUpdateManyWithoutDatasetNestedInput;
539
637
  references?: Prisma.DatasetReferenceUpdateManyWithoutDatasetNestedInput;
638
+ entities?: Prisma.DatasetEntityUpdateManyWithoutDatasetNestedInput;
540
639
  };
541
640
  export type DatasetUncheckedUpdateWithoutChaptersInput = {
542
641
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -551,6 +650,7 @@ export type DatasetUncheckedUpdateWithoutChaptersInput = {
551
650
  books?: Prisma.DatasetBookUncheckedUpdateManyWithoutDatasetNestedInput;
552
651
  verses?: Prisma.DatasetChapterVerseUncheckedUpdateManyWithoutDatasetNestedInput;
553
652
  references?: Prisma.DatasetReferenceUncheckedUpdateManyWithoutDatasetNestedInput;
653
+ entities?: Prisma.DatasetEntityUncheckedUpdateManyWithoutDatasetNestedInput;
554
654
  };
555
655
  export type DatasetCreateWithoutVersesInput = {
556
656
  id: string;
@@ -565,6 +665,7 @@ export type DatasetCreateWithoutVersesInput = {
565
665
  books?: Prisma.DatasetBookCreateNestedManyWithoutDatasetInput;
566
666
  chapters?: Prisma.DatasetChapterCreateNestedManyWithoutDatasetInput;
567
667
  references?: Prisma.DatasetReferenceCreateNestedManyWithoutDatasetInput;
668
+ entities?: Prisma.DatasetEntityCreateNestedManyWithoutDatasetInput;
568
669
  };
569
670
  export type DatasetUncheckedCreateWithoutVersesInput = {
570
671
  id: string;
@@ -579,6 +680,7 @@ export type DatasetUncheckedCreateWithoutVersesInput = {
579
680
  books?: Prisma.DatasetBookUncheckedCreateNestedManyWithoutDatasetInput;
580
681
  chapters?: Prisma.DatasetChapterUncheckedCreateNestedManyWithoutDatasetInput;
581
682
  references?: Prisma.DatasetReferenceUncheckedCreateNestedManyWithoutDatasetInput;
683
+ entities?: Prisma.DatasetEntityUncheckedCreateNestedManyWithoutDatasetInput;
582
684
  };
583
685
  export type DatasetCreateOrConnectWithoutVersesInput = {
584
686
  where: Prisma.DatasetWhereUniqueInput;
@@ -606,6 +708,7 @@ export type DatasetUpdateWithoutVersesInput = {
606
708
  books?: Prisma.DatasetBookUpdateManyWithoutDatasetNestedInput;
607
709
  chapters?: Prisma.DatasetChapterUpdateManyWithoutDatasetNestedInput;
608
710
  references?: Prisma.DatasetReferenceUpdateManyWithoutDatasetNestedInput;
711
+ entities?: Prisma.DatasetEntityUpdateManyWithoutDatasetNestedInput;
609
712
  };
610
713
  export type DatasetUncheckedUpdateWithoutVersesInput = {
611
714
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -620,6 +723,7 @@ export type DatasetUncheckedUpdateWithoutVersesInput = {
620
723
  books?: Prisma.DatasetBookUncheckedUpdateManyWithoutDatasetNestedInput;
621
724
  chapters?: Prisma.DatasetChapterUncheckedUpdateManyWithoutDatasetNestedInput;
622
725
  references?: Prisma.DatasetReferenceUncheckedUpdateManyWithoutDatasetNestedInput;
726
+ entities?: Prisma.DatasetEntityUncheckedUpdateManyWithoutDatasetNestedInput;
623
727
  };
624
728
  export type DatasetCreateWithoutReferencesInput = {
625
729
  id: string;
@@ -634,6 +738,7 @@ export type DatasetCreateWithoutReferencesInput = {
634
738
  books?: Prisma.DatasetBookCreateNestedManyWithoutDatasetInput;
635
739
  chapters?: Prisma.DatasetChapterCreateNestedManyWithoutDatasetInput;
636
740
  verses?: Prisma.DatasetChapterVerseCreateNestedManyWithoutDatasetInput;
741
+ entities?: Prisma.DatasetEntityCreateNestedManyWithoutDatasetInput;
637
742
  };
638
743
  export type DatasetUncheckedCreateWithoutReferencesInput = {
639
744
  id: string;
@@ -648,6 +753,7 @@ export type DatasetUncheckedCreateWithoutReferencesInput = {
648
753
  books?: Prisma.DatasetBookUncheckedCreateNestedManyWithoutDatasetInput;
649
754
  chapters?: Prisma.DatasetChapterUncheckedCreateNestedManyWithoutDatasetInput;
650
755
  verses?: Prisma.DatasetChapterVerseUncheckedCreateNestedManyWithoutDatasetInput;
756
+ entities?: Prisma.DatasetEntityUncheckedCreateNestedManyWithoutDatasetInput;
651
757
  };
652
758
  export type DatasetCreateOrConnectWithoutReferencesInput = {
653
759
  where: Prisma.DatasetWhereUniqueInput;
@@ -675,6 +781,7 @@ export type DatasetUpdateWithoutReferencesInput = {
675
781
  books?: Prisma.DatasetBookUpdateManyWithoutDatasetNestedInput;
676
782
  chapters?: Prisma.DatasetChapterUpdateManyWithoutDatasetNestedInput;
677
783
  verses?: Prisma.DatasetChapterVerseUpdateManyWithoutDatasetNestedInput;
784
+ entities?: Prisma.DatasetEntityUpdateManyWithoutDatasetNestedInput;
678
785
  };
679
786
  export type DatasetUncheckedUpdateWithoutReferencesInput = {
680
787
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -689,6 +796,7 @@ export type DatasetUncheckedUpdateWithoutReferencesInput = {
689
796
  books?: Prisma.DatasetBookUncheckedUpdateManyWithoutDatasetNestedInput;
690
797
  chapters?: Prisma.DatasetChapterUncheckedUpdateManyWithoutDatasetNestedInput;
691
798
  verses?: Prisma.DatasetChapterVerseUncheckedUpdateManyWithoutDatasetNestedInput;
799
+ entities?: Prisma.DatasetEntityUncheckedUpdateManyWithoutDatasetNestedInput;
692
800
  };
693
801
  /**
694
802
  * Count Type DatasetCountOutputType
@@ -698,12 +806,14 @@ export type DatasetCountOutputType = {
698
806
  chapters: number;
699
807
  verses: number;
700
808
  references: number;
809
+ entities: number;
701
810
  };
702
811
  export type DatasetCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
703
812
  books?: boolean | DatasetCountOutputTypeCountBooksArgs;
704
813
  chapters?: boolean | DatasetCountOutputTypeCountChaptersArgs;
705
814
  verses?: boolean | DatasetCountOutputTypeCountVersesArgs;
706
815
  references?: boolean | DatasetCountOutputTypeCountReferencesArgs;
816
+ entities?: boolean | DatasetCountOutputTypeCountEntitiesArgs;
707
817
  };
708
818
  /**
709
819
  * DatasetCountOutputType without action
@@ -738,6 +848,12 @@ export type DatasetCountOutputTypeCountVersesArgs<ExtArgs extends runtime.Types.
738
848
  export type DatasetCountOutputTypeCountReferencesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
849
  where?: Prisma.DatasetReferenceWhereInput;
740
850
  };
851
+ /**
852
+ * DatasetCountOutputType without action
853
+ */
854
+ export type DatasetCountOutputTypeCountEntitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
855
+ where?: Prisma.DatasetEntityWhereInput;
856
+ };
741
857
  export type DatasetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
742
858
  id?: boolean;
743
859
  name?: boolean;
@@ -752,6 +868,7 @@ export type DatasetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
752
868
  chapters?: boolean | Prisma.Dataset$chaptersArgs<ExtArgs>;
753
869
  verses?: boolean | Prisma.Dataset$versesArgs<ExtArgs>;
754
870
  references?: boolean | Prisma.Dataset$referencesArgs<ExtArgs>;
871
+ entities?: boolean | Prisma.Dataset$entitiesArgs<ExtArgs>;
755
872
  _count?: boolean | Prisma.DatasetCountOutputTypeDefaultArgs<ExtArgs>;
756
873
  }, ExtArgs["result"]["dataset"]>;
757
874
  export type DatasetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -793,6 +910,7 @@ export type DatasetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
793
910
  chapters?: boolean | Prisma.Dataset$chaptersArgs<ExtArgs>;
794
911
  verses?: boolean | Prisma.Dataset$versesArgs<ExtArgs>;
795
912
  references?: boolean | Prisma.Dataset$referencesArgs<ExtArgs>;
913
+ entities?: boolean | Prisma.Dataset$entitiesArgs<ExtArgs>;
796
914
  _count?: boolean | Prisma.DatasetCountOutputTypeDefaultArgs<ExtArgs>;
797
915
  };
798
916
  export type DatasetIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
@@ -804,6 +922,7 @@ export type $DatasetPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
804
922
  chapters: Prisma.$DatasetChapterPayload<ExtArgs>[];
805
923
  verses: Prisma.$DatasetChapterVersePayload<ExtArgs>[];
806
924
  references: Prisma.$DatasetReferencePayload<ExtArgs>[];
925
+ entities: Prisma.$DatasetEntityPayload<ExtArgs>[];
807
926
  };
808
927
  scalars: runtime.Types.Extensions.GetPayloadResult<{
809
928
  id: string;
@@ -1148,6 +1267,7 @@ export interface Prisma__DatasetClient<T, Null = never, ExtArgs extends runtime.
1148
1267
  chapters<T extends Prisma.Dataset$chaptersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Dataset$chaptersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatasetChapterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1149
1268
  verses<T extends Prisma.Dataset$versesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Dataset$versesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatasetChapterVersePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1150
1269
  references<T extends Prisma.Dataset$referencesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Dataset$referencesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatasetReferencePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1270
+ entities<T extends Prisma.Dataset$entitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Dataset$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatasetEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1151
1271
  /**
1152
1272
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1153
1273
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1647,6 +1767,29 @@ export type Dataset$referencesArgs<ExtArgs extends runtime.Types.Extensions.Inte
1647
1767
  skip?: number;
1648
1768
  distinct?: Prisma.DatasetReferenceScalarFieldEnum | Prisma.DatasetReferenceScalarFieldEnum[];
1649
1769
  };
1770
+ /**
1771
+ * Dataset.entities
1772
+ */
1773
+ export type Dataset$entitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1774
+ /**
1775
+ * Select specific fields to fetch from the DatasetEntity
1776
+ */
1777
+ select?: Prisma.DatasetEntitySelect<ExtArgs> | null;
1778
+ /**
1779
+ * Omit specific fields from the DatasetEntity
1780
+ */
1781
+ omit?: Prisma.DatasetEntityOmit<ExtArgs> | null;
1782
+ /**
1783
+ * Choose, which related nodes to fetch as well
1784
+ */
1785
+ include?: Prisma.DatasetEntityInclude<ExtArgs> | null;
1786
+ where?: Prisma.DatasetEntityWhereInput;
1787
+ orderBy?: Prisma.DatasetEntityOrderByWithRelationInput | Prisma.DatasetEntityOrderByWithRelationInput[];
1788
+ cursor?: Prisma.DatasetEntityWhereUniqueInput;
1789
+ take?: number;
1790
+ skip?: number;
1791
+ distinct?: Prisma.DatasetEntityScalarFieldEnum | Prisma.DatasetEntityScalarFieldEnum[];
1792
+ };
1650
1793
  /**
1651
1794
  * Dataset without action
1652
1795
  */