@cerbos/orm-prisma 4.0.0 → 4.1.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.
- package/README.md +168 -12
- package/lib/index.d.ts +74 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +344 -90
- package/lib/index.js.map +1 -1
- package/package.json +10 -7
- package/src/adversarial.test.ts +948 -253
- package/src/corpus.ts +414 -0
- package/src/generated/prisma-adversarial/browser.ts +10 -0
- package/src/generated/prisma-adversarial/client.ts +10 -0
- package/src/generated/prisma-adversarial/internal/class.ts +24 -4
- package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +178 -2
- package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +27 -1
- package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
- package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
- package/src/generated/prisma-adversarial/models/AdversarialResource.ts +124 -0
- package/src/generated/prisma-adversarial/models.ts +2 -0
- package/src/generated/{prisma → prisma-adversarial-pg}/browser.ts +14 -19
- package/src/generated/{prisma → prisma-adversarial-pg}/client.ts +16 -21
- package/src/generated/{prisma → prisma-adversarial-pg}/commonInputTypes.ts +153 -71
- package/src/generated/prisma-adversarial-pg/internal/class.ts +264 -0
- package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespace.ts +339 -371
- package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespaceBrowser.ts +56 -48
- package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +1791 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
- package/src/generated/prisma-adversarial-pg/models.ts +18 -0
- package/src/generated/prisma-adversarial-pg-v6/index.d.ts +11830 -0
- package/src/generated/prisma-adversarial-v6/index.d.ts +3173 -44
- package/src/index.ts +508 -119
- package/src/test-setup.adversarial-url.ts +18 -0
- package/src/test-setup.adversarial.pg.v6.ts +13 -0
- package/src/test-setup.adversarial.pg.v7.ts +9 -0
- package/src/translator.test.ts +1586 -0
- package/src/generated/prisma/internal/class.ts +0 -274
- package/src/generated/prisma/models/Category.ts +0 -1412
- package/src/generated/prisma/models/Label.ts +0 -1276
- package/src/generated/prisma/models/NestedResource.ts +0 -1562
- package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
- package/src/generated/prisma/models/Resource.ts +0 -2196
- package/src/generated/prisma/models/SubCategory.ts +0 -1412
- package/src/generated/prisma/models/Tag.ts +0 -1276
- package/src/generated/prisma/models/User.ts +0 -1503
- package/src/generated/prisma/models.ts +0 -19
- package/src/generated/prisma-v6/index.d.ts +0 -13726
- package/src/index.test.ts +0 -8885
- package/src/test-setup.v6.ts +0 -5
- package/src/test-setup.v7.ts +0 -7
- /package/src/generated/{prisma → prisma-adversarial-pg}/enums.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/client.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/default.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/edge.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/index-browser.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/library.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/wasm.d.ts +0 -0
|
@@ -254,6 +254,7 @@ export type AdversarialResourceWhereInput = {
|
|
|
254
254
|
createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
|
|
255
255
|
tags?: Prisma.AdversarialTagListRelationFilter
|
|
256
256
|
categories?: Prisma.AdversarialCategoryListRelationFilter
|
|
257
|
+
parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
export type AdversarialResourceOrderByWithRelationInput = {
|
|
@@ -268,6 +269,7 @@ export type AdversarialResourceOrderByWithRelationInput = {
|
|
|
268
269
|
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
269
270
|
tags?: Prisma.AdversarialTagOrderByRelationAggregateInput
|
|
270
271
|
categories?: Prisma.AdversarialCategoryOrderByRelationAggregateInput
|
|
272
|
+
parent?: Prisma.AdversarialParentOrderByWithRelationInput
|
|
271
273
|
}
|
|
272
274
|
|
|
273
275
|
export type AdversarialResourceWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -285,6 +287,7 @@ export type AdversarialResourceWhereUniqueInput = Prisma.AtLeast<{
|
|
|
285
287
|
createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
|
|
286
288
|
tags?: Prisma.AdversarialTagListRelationFilter
|
|
287
289
|
categories?: Prisma.AdversarialCategoryListRelationFilter
|
|
290
|
+
parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
|
|
288
291
|
}, "id">
|
|
289
292
|
|
|
290
293
|
export type AdversarialResourceOrderByWithAggregationInput = {
|
|
@@ -331,6 +334,7 @@ export type AdversarialResourceCreateInput = {
|
|
|
331
334
|
createdAt?: Date | string | null
|
|
332
335
|
tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
|
|
333
336
|
categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
|
|
337
|
+
parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
|
|
334
338
|
}
|
|
335
339
|
|
|
336
340
|
export type AdversarialResourceUncheckedCreateInput = {
|
|
@@ -345,6 +349,7 @@ export type AdversarialResourceUncheckedCreateInput = {
|
|
|
345
349
|
createdAt?: Date | string | null
|
|
346
350
|
tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
|
|
347
351
|
categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
|
|
352
|
+
parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
|
|
348
353
|
}
|
|
349
354
|
|
|
350
355
|
export type AdversarialResourceUpdateInput = {
|
|
@@ -359,6 +364,7 @@ export type AdversarialResourceUpdateInput = {
|
|
|
359
364
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
360
365
|
tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
|
|
361
366
|
categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
|
|
367
|
+
parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
|
|
362
368
|
}
|
|
363
369
|
|
|
364
370
|
export type AdversarialResourceUncheckedUpdateInput = {
|
|
@@ -373,6 +379,7 @@ export type AdversarialResourceUncheckedUpdateInput = {
|
|
|
373
379
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
374
380
|
tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
|
|
375
381
|
categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
|
|
382
|
+
parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
|
|
376
383
|
}
|
|
377
384
|
|
|
378
385
|
export type AdversarialResourceCreateManyInput = {
|
|
@@ -522,6 +529,20 @@ export type AdversarialResourceUpdateOneRequiredWithoutCategoriesNestedInput = {
|
|
|
522
529
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutCategoriesInput, Prisma.AdversarialResourceUpdateWithoutCategoriesInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
|
|
523
530
|
}
|
|
524
531
|
|
|
532
|
+
export type AdversarialResourceCreateNestedOneWithoutParentInput = {
|
|
533
|
+
create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
|
|
534
|
+
connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
|
|
535
|
+
connect?: Prisma.AdversarialResourceWhereUniqueInput
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type AdversarialResourceUpdateOneRequiredWithoutParentNestedInput = {
|
|
539
|
+
create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
|
|
540
|
+
connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
|
|
541
|
+
upsert?: Prisma.AdversarialResourceUpsertWithoutParentInput
|
|
542
|
+
connect?: Prisma.AdversarialResourceWhereUniqueInput
|
|
543
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutParentInput, Prisma.AdversarialResourceUpdateWithoutParentInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
|
|
544
|
+
}
|
|
545
|
+
|
|
525
546
|
export type AdversarialResourceCreateWithoutTagsInput = {
|
|
526
547
|
id: string
|
|
527
548
|
aBool: boolean
|
|
@@ -533,6 +554,7 @@ export type AdversarialResourceCreateWithoutTagsInput = {
|
|
|
533
554
|
scope?: string | null
|
|
534
555
|
createdAt?: Date | string | null
|
|
535
556
|
categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
|
|
557
|
+
parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
|
|
536
558
|
}
|
|
537
559
|
|
|
538
560
|
export type AdversarialResourceUncheckedCreateWithoutTagsInput = {
|
|
@@ -546,6 +568,7 @@ export type AdversarialResourceUncheckedCreateWithoutTagsInput = {
|
|
|
546
568
|
scope?: string | null
|
|
547
569
|
createdAt?: Date | string | null
|
|
548
570
|
categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
|
|
571
|
+
parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
|
|
549
572
|
}
|
|
550
573
|
|
|
551
574
|
export type AdversarialResourceCreateOrConnectWithoutTagsInput = {
|
|
@@ -575,6 +598,7 @@ export type AdversarialResourceUpdateWithoutTagsInput = {
|
|
|
575
598
|
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
576
599
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
577
600
|
categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
|
|
601
|
+
parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
|
|
578
602
|
}
|
|
579
603
|
|
|
580
604
|
export type AdversarialResourceUncheckedUpdateWithoutTagsInput = {
|
|
@@ -588,6 +612,7 @@ export type AdversarialResourceUncheckedUpdateWithoutTagsInput = {
|
|
|
588
612
|
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
589
613
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
590
614
|
categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
|
|
615
|
+
parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
|
|
591
616
|
}
|
|
592
617
|
|
|
593
618
|
export type AdversarialResourceCreateWithoutCategoriesInput = {
|
|
@@ -601,6 +626,7 @@ export type AdversarialResourceCreateWithoutCategoriesInput = {
|
|
|
601
626
|
scope?: string | null
|
|
602
627
|
createdAt?: Date | string | null
|
|
603
628
|
tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
|
|
629
|
+
parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
|
|
604
630
|
}
|
|
605
631
|
|
|
606
632
|
export type AdversarialResourceUncheckedCreateWithoutCategoriesInput = {
|
|
@@ -614,6 +640,7 @@ export type AdversarialResourceUncheckedCreateWithoutCategoriesInput = {
|
|
|
614
640
|
scope?: string | null
|
|
615
641
|
createdAt?: Date | string | null
|
|
616
642
|
tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
|
|
643
|
+
parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
|
|
617
644
|
}
|
|
618
645
|
|
|
619
646
|
export type AdversarialResourceCreateOrConnectWithoutCategoriesInput = {
|
|
@@ -643,6 +670,7 @@ export type AdversarialResourceUpdateWithoutCategoriesInput = {
|
|
|
643
670
|
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
644
671
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
645
672
|
tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
|
|
673
|
+
parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
|
|
646
674
|
}
|
|
647
675
|
|
|
648
676
|
export type AdversarialResourceUncheckedUpdateWithoutCategoriesInput = {
|
|
@@ -656,6 +684,79 @@ export type AdversarialResourceUncheckedUpdateWithoutCategoriesInput = {
|
|
|
656
684
|
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
657
685
|
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
658
686
|
tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
|
|
687
|
+
parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export type AdversarialResourceCreateWithoutParentInput = {
|
|
691
|
+
id: string
|
|
692
|
+
aBool: boolean
|
|
693
|
+
aString: string
|
|
694
|
+
aNumber: number
|
|
695
|
+
aDouble?: number | null
|
|
696
|
+
aOptionalString?: string | null
|
|
697
|
+
createdBy: string
|
|
698
|
+
scope?: string | null
|
|
699
|
+
createdAt?: Date | string | null
|
|
700
|
+
tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
|
|
701
|
+
categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export type AdversarialResourceUncheckedCreateWithoutParentInput = {
|
|
705
|
+
id: string
|
|
706
|
+
aBool: boolean
|
|
707
|
+
aString: string
|
|
708
|
+
aNumber: number
|
|
709
|
+
aDouble?: number | null
|
|
710
|
+
aOptionalString?: string | null
|
|
711
|
+
createdBy: string
|
|
712
|
+
scope?: string | null
|
|
713
|
+
createdAt?: Date | string | null
|
|
714
|
+
tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
|
|
715
|
+
categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export type AdversarialResourceCreateOrConnectWithoutParentInput = {
|
|
719
|
+
where: Prisma.AdversarialResourceWhereUniqueInput
|
|
720
|
+
create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export type AdversarialResourceUpsertWithoutParentInput = {
|
|
724
|
+
update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
|
|
725
|
+
create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
|
|
726
|
+
where?: Prisma.AdversarialResourceWhereInput
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export type AdversarialResourceUpdateToOneWithWhereWithoutParentInput = {
|
|
730
|
+
where?: Prisma.AdversarialResourceWhereInput
|
|
731
|
+
data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export type AdversarialResourceUpdateWithoutParentInput = {
|
|
735
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
736
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
737
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
738
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
739
|
+
aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
740
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
741
|
+
createdBy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
742
|
+
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
743
|
+
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
744
|
+
tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
|
|
745
|
+
categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export type AdversarialResourceUncheckedUpdateWithoutParentInput = {
|
|
749
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
750
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
751
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
752
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
753
|
+
aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
754
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
755
|
+
createdBy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
756
|
+
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
757
|
+
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
758
|
+
tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
|
|
759
|
+
categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
|
|
659
760
|
}
|
|
660
761
|
|
|
661
762
|
|
|
@@ -710,6 +811,7 @@ export type AdversarialResourceSelect<ExtArgs extends runtime.Types.Extensions.I
|
|
|
710
811
|
createdAt?: boolean
|
|
711
812
|
tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
|
|
712
813
|
categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
|
|
814
|
+
parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
|
|
713
815
|
_count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
714
816
|
}, ExtArgs["result"]["adversarialResource"]>
|
|
715
817
|
|
|
@@ -753,6 +855,7 @@ export type AdversarialResourceOmit<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
753
855
|
export type AdversarialResourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
754
856
|
tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
|
|
755
857
|
categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
|
|
858
|
+
parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
|
|
756
859
|
_count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
757
860
|
}
|
|
758
861
|
export type AdversarialResourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
@@ -763,6 +866,7 @@ export type $AdversarialResourcePayload<ExtArgs extends runtime.Types.Extensions
|
|
|
763
866
|
objects: {
|
|
764
867
|
tags: Prisma.$AdversarialTagPayload<ExtArgs>[]
|
|
765
868
|
categories: Prisma.$AdversarialCategoryPayload<ExtArgs>[]
|
|
869
|
+
parent: Prisma.$AdversarialParentPayload<ExtArgs> | null
|
|
766
870
|
}
|
|
767
871
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
768
872
|
id: string
|
|
@@ -1170,6 +1274,7 @@ export interface Prisma__AdversarialResourceClient<T, Null = never, ExtArgs exte
|
|
|
1170
1274
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1171
1275
|
tags<T extends Prisma.AdversarialResource$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1172
1276
|
categories<T extends Prisma.AdversarialResource$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1277
|
+
parent<T extends Prisma.AdversarialResource$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$parentArgs<ExtArgs>>): Prisma.Prisma__AdversarialParentClient<runtime.Types.Result.GetResult<Prisma.$AdversarialParentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1173
1278
|
/**
|
|
1174
1279
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1175
1280
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1646,6 +1751,25 @@ export type AdversarialResource$categoriesArgs<ExtArgs extends runtime.Types.Ext
|
|
|
1646
1751
|
distinct?: Prisma.AdversarialCategoryScalarFieldEnum | Prisma.AdversarialCategoryScalarFieldEnum[]
|
|
1647
1752
|
}
|
|
1648
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* AdversarialResource.parent
|
|
1756
|
+
*/
|
|
1757
|
+
export type AdversarialResource$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1758
|
+
/**
|
|
1759
|
+
* Select specific fields to fetch from the AdversarialParent
|
|
1760
|
+
*/
|
|
1761
|
+
select?: Prisma.AdversarialParentSelect<ExtArgs> | null
|
|
1762
|
+
/**
|
|
1763
|
+
* Omit specific fields from the AdversarialParent
|
|
1764
|
+
*/
|
|
1765
|
+
omit?: Prisma.AdversarialParentOmit<ExtArgs> | null
|
|
1766
|
+
/**
|
|
1767
|
+
* Choose, which related nodes to fetch as well
|
|
1768
|
+
*/
|
|
1769
|
+
include?: Prisma.AdversarialParentInclude<ExtArgs> | null
|
|
1770
|
+
where?: Prisma.AdversarialParentWhereInput
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1649
1773
|
/**
|
|
1650
1774
|
* AdversarialResource without action
|
|
1651
1775
|
*/
|
|
@@ -13,4 +13,6 @@ export type * from './models/AdversarialTag.js'
|
|
|
13
13
|
export type * from './models/AdversarialCategory.js'
|
|
14
14
|
export type * from './models/AdversarialSubCategory.js'
|
|
15
15
|
export type * from './models/AdversarialLabel.js'
|
|
16
|
+
export type * from './models/AdversarialParent.js'
|
|
17
|
+
export type * from './models/AdversarialInner.js'
|
|
16
18
|
export type * from './commonInputTypes.js'
|
|
@@ -18,42 +18,37 @@ export { Prisma }
|
|
|
18
18
|
export * as $Enums from './enums.js'
|
|
19
19
|
export * from './enums.js';
|
|
20
20
|
/**
|
|
21
|
-
* Model
|
|
21
|
+
* Model AdversarialResource
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type AdversarialResource = Prisma.AdversarialResourceModel
|
|
25
25
|
/**
|
|
26
|
-
* Model
|
|
26
|
+
* Model AdversarialTag
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type AdversarialTag = Prisma.AdversarialTagModel
|
|
30
30
|
/**
|
|
31
|
-
* Model
|
|
31
|
+
* Model AdversarialCategory
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
export type
|
|
34
|
+
export type AdversarialCategory = Prisma.AdversarialCategoryModel
|
|
35
35
|
/**
|
|
36
|
-
* Model
|
|
36
|
+
* Model AdversarialSubCategory
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
export type
|
|
39
|
+
export type AdversarialSubCategory = Prisma.AdversarialSubCategoryModel
|
|
40
40
|
/**
|
|
41
|
-
* Model
|
|
41
|
+
* Model AdversarialLabel
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export type
|
|
44
|
+
export type AdversarialLabel = Prisma.AdversarialLabelModel
|
|
45
45
|
/**
|
|
46
|
-
* Model
|
|
46
|
+
* Model AdversarialParent
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
export type
|
|
49
|
+
export type AdversarialParent = Prisma.AdversarialParentModel
|
|
50
50
|
/**
|
|
51
|
-
* Model
|
|
51
|
+
* Model AdversarialInner
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
export type
|
|
55
|
-
/**
|
|
56
|
-
* Model Label
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export type Label = Prisma.LabelModel
|
|
54
|
+
export type AdversarialInner = Prisma.AdversarialInnerModel
|
|
@@ -29,8 +29,8 @@ export * from "./enums.js"
|
|
|
29
29
|
* const prisma = new PrismaClient({
|
|
30
30
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
31
31
|
* })
|
|
32
|
-
* // Fetch zero or more
|
|
33
|
-
* const
|
|
32
|
+
* // Fetch zero or more AdversarialResources
|
|
33
|
+
* const adversarialResources = await prisma.adversarialResource.findMany()
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* Read more in our [docs](https://pris.ly/d/client).
|
|
@@ -40,42 +40,37 @@ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts exten
|
|
|
40
40
|
export { Prisma }
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Model
|
|
43
|
+
* Model AdversarialResource
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
export type
|
|
46
|
+
export type AdversarialResource = Prisma.AdversarialResourceModel
|
|
47
47
|
/**
|
|
48
|
-
* Model
|
|
48
|
+
* Model AdversarialTag
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
export type
|
|
51
|
+
export type AdversarialTag = Prisma.AdversarialTagModel
|
|
52
52
|
/**
|
|
53
|
-
* Model
|
|
53
|
+
* Model AdversarialCategory
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
export type
|
|
56
|
+
export type AdversarialCategory = Prisma.AdversarialCategoryModel
|
|
57
57
|
/**
|
|
58
|
-
* Model
|
|
58
|
+
* Model AdversarialSubCategory
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
|
-
export type
|
|
61
|
+
export type AdversarialSubCategory = Prisma.AdversarialSubCategoryModel
|
|
62
62
|
/**
|
|
63
|
-
* Model
|
|
63
|
+
* Model AdversarialLabel
|
|
64
64
|
*
|
|
65
65
|
*/
|
|
66
|
-
export type
|
|
66
|
+
export type AdversarialLabel = Prisma.AdversarialLabelModel
|
|
67
67
|
/**
|
|
68
|
-
* Model
|
|
68
|
+
* Model AdversarialParent
|
|
69
69
|
*
|
|
70
70
|
*/
|
|
71
|
-
export type
|
|
71
|
+
export type AdversarialParent = Prisma.AdversarialParentModel
|
|
72
72
|
/**
|
|
73
|
-
* Model
|
|
73
|
+
* Model AdversarialInner
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
|
-
export type
|
|
77
|
-
/**
|
|
78
|
-
* Model Label
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
export type Label = Prisma.LabelModel
|
|
76
|
+
export type AdversarialInner = Prisma.AdversarialInnerModel
|