@cerbos/orm-prisma 3.3.0 → 4.0.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 +83 -6
- package/lib/index.d.ts +29 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1459 -114
- package/lib/index.js.map +1 -1
- package/package.json +19 -13
- package/src/adversarial.test.ts +586 -0
- package/src/generated/prisma/commonInputTypes.ts +26 -0
- package/src/generated/prisma/internal/class.ts +9 -9
- package/src/generated/prisma/internal/prismaNamespace.ts +89 -19
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +2 -1
- package/src/generated/prisma/models/Category.ts +1 -1
- package/src/generated/prisma/models/Label.ts +1 -1
- package/src/generated/prisma/models/NestedResource.ts +1 -1
- package/src/generated/prisma/models/NextLevelNestedResource.ts +1 -1
- package/src/generated/prisma/models/Resource.ts +62 -2
- package/src/generated/prisma/models/SubCategory.ts +1 -1
- package/src/generated/prisma/models/Tag.ts +1 -1
- package/src/generated/prisma/models/User.ts +1 -1
- package/src/generated/prisma-adversarial/browser.ts +44 -0
- package/src/generated/prisma-adversarial/client.ts +66 -0
- package/src/generated/prisma-adversarial/commonInputTypes.ts +352 -0
- package/src/generated/prisma-adversarial/enums.ts +15 -0
- package/src/generated/prisma-adversarial/internal/class.ts +244 -0
- package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +1156 -0
- package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +140 -0
- package/src/generated/prisma-adversarial/models/AdversarialCategory.ts +1401 -0
- package/src/generated/prisma-adversarial/models/AdversarialLabel.ts +1272 -0
- package/src/generated/prisma-adversarial/models/AdversarialResource.ts +1665 -0
- package/src/generated/prisma-adversarial/models/AdversarialSubCategory.ts +1401 -0
- package/src/generated/prisma-adversarial/models/AdversarialTag.ts +1307 -0
- package/src/generated/prisma-adversarial/models.ts +16 -0
- package/src/generated/prisma-adversarial-v6/client.d.ts +1 -0
- package/src/generated/prisma-adversarial-v6/default.d.ts +1 -0
- package/src/generated/prisma-adversarial-v6/edge.d.ts +1 -0
- package/src/generated/prisma-adversarial-v6/index.d.ts +8640 -0
- package/src/generated/prisma-adversarial-v6/runtime/index-browser.d.ts +370 -0
- package/src/generated/prisma-adversarial-v6/runtime/library.d.ts +3982 -0
- package/src/generated/prisma-adversarial-v6/wasm.d.ts +1 -0
- package/src/generated/prisma-v6/index.d.ts +90 -3
- package/src/index.test.ts +3199 -636
- package/src/index.ts +2055 -148
- package/src/test-setup.adversarial.v6.ts +5 -0
- package/src/test-setup.adversarial.v7.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./default"
|
|
@@ -309,7 +309,7 @@ export namespace Prisma {
|
|
|
309
309
|
export import Exact = $Public.Exact
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Prisma Client JS version: 6.19.
|
|
312
|
+
* Prisma Client JS version: 6.19.3
|
|
313
313
|
* Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
|
|
314
314
|
*/
|
|
315
315
|
export type PrismaVersion = {
|
|
@@ -1818,6 +1818,7 @@ export namespace Prisma {
|
|
|
1818
1818
|
creatorId: string | null
|
|
1819
1819
|
nestedResourceId: string | null
|
|
1820
1820
|
aOptionalString: string | null
|
|
1821
|
+
aOptionalBool: boolean | null
|
|
1821
1822
|
}
|
|
1822
1823
|
|
|
1823
1824
|
export type ResourceMaxAggregateOutputType = {
|
|
@@ -1828,6 +1829,7 @@ export namespace Prisma {
|
|
|
1828
1829
|
creatorId: string | null
|
|
1829
1830
|
nestedResourceId: string | null
|
|
1830
1831
|
aOptionalString: string | null
|
|
1832
|
+
aOptionalBool: boolean | null
|
|
1831
1833
|
}
|
|
1832
1834
|
|
|
1833
1835
|
export type ResourceCountAggregateOutputType = {
|
|
@@ -1838,6 +1840,7 @@ export namespace Prisma {
|
|
|
1838
1840
|
creatorId: number
|
|
1839
1841
|
nestedResourceId: number
|
|
1840
1842
|
aOptionalString: number
|
|
1843
|
+
aOptionalBool: number
|
|
1841
1844
|
_all: number
|
|
1842
1845
|
}
|
|
1843
1846
|
|
|
@@ -1858,6 +1861,7 @@ export namespace Prisma {
|
|
|
1858
1861
|
creatorId?: true
|
|
1859
1862
|
nestedResourceId?: true
|
|
1860
1863
|
aOptionalString?: true
|
|
1864
|
+
aOptionalBool?: true
|
|
1861
1865
|
}
|
|
1862
1866
|
|
|
1863
1867
|
export type ResourceMaxAggregateInputType = {
|
|
@@ -1868,6 +1872,7 @@ export namespace Prisma {
|
|
|
1868
1872
|
creatorId?: true
|
|
1869
1873
|
nestedResourceId?: true
|
|
1870
1874
|
aOptionalString?: true
|
|
1875
|
+
aOptionalBool?: true
|
|
1871
1876
|
}
|
|
1872
1877
|
|
|
1873
1878
|
export type ResourceCountAggregateInputType = {
|
|
@@ -1878,6 +1883,7 @@ export namespace Prisma {
|
|
|
1878
1883
|
creatorId?: true
|
|
1879
1884
|
nestedResourceId?: true
|
|
1880
1885
|
aOptionalString?: true
|
|
1886
|
+
aOptionalBool?: true
|
|
1881
1887
|
_all?: true
|
|
1882
1888
|
}
|
|
1883
1889
|
|
|
@@ -1975,6 +1981,7 @@ export namespace Prisma {
|
|
|
1975
1981
|
creatorId: string
|
|
1976
1982
|
nestedResourceId: string
|
|
1977
1983
|
aOptionalString: string | null
|
|
1984
|
+
aOptionalBool: boolean | null
|
|
1978
1985
|
_count: ResourceCountAggregateOutputType | null
|
|
1979
1986
|
_avg: ResourceAvgAggregateOutputType | null
|
|
1980
1987
|
_sum: ResourceSumAggregateOutputType | null
|
|
@@ -2004,6 +2011,7 @@ export namespace Prisma {
|
|
|
2004
2011
|
creatorId?: boolean
|
|
2005
2012
|
nestedResourceId?: boolean
|
|
2006
2013
|
aOptionalString?: boolean
|
|
2014
|
+
aOptionalBool?: boolean
|
|
2007
2015
|
ownedBy?: boolean | Resource$ownedByArgs<ExtArgs>
|
|
2008
2016
|
createdBy?: boolean | UserDefaultArgs<ExtArgs>
|
|
2009
2017
|
nested?: boolean | NestedResourceDefaultArgs<ExtArgs>
|
|
@@ -2020,6 +2028,7 @@ export namespace Prisma {
|
|
|
2020
2028
|
creatorId?: boolean
|
|
2021
2029
|
nestedResourceId?: boolean
|
|
2022
2030
|
aOptionalString?: boolean
|
|
2031
|
+
aOptionalBool?: boolean
|
|
2023
2032
|
createdBy?: boolean | UserDefaultArgs<ExtArgs>
|
|
2024
2033
|
nested?: boolean | NestedResourceDefaultArgs<ExtArgs>
|
|
2025
2034
|
}, ExtArgs["result"]["resource"]>
|
|
@@ -2032,6 +2041,7 @@ export namespace Prisma {
|
|
|
2032
2041
|
creatorId?: boolean
|
|
2033
2042
|
nestedResourceId?: boolean
|
|
2034
2043
|
aOptionalString?: boolean
|
|
2044
|
+
aOptionalBool?: boolean
|
|
2035
2045
|
createdBy?: boolean | UserDefaultArgs<ExtArgs>
|
|
2036
2046
|
nested?: boolean | NestedResourceDefaultArgs<ExtArgs>
|
|
2037
2047
|
}, ExtArgs["result"]["resource"]>
|
|
@@ -2044,9 +2054,10 @@ export namespace Prisma {
|
|
|
2044
2054
|
creatorId?: boolean
|
|
2045
2055
|
nestedResourceId?: boolean
|
|
2046
2056
|
aOptionalString?: boolean
|
|
2057
|
+
aOptionalBool?: boolean
|
|
2047
2058
|
}
|
|
2048
2059
|
|
|
2049
|
-
export type ResourceOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "aString" | "aNumber" | "aBool" | "creatorId" | "nestedResourceId" | "aOptionalString", ExtArgs["result"]["resource"]>
|
|
2060
|
+
export type ResourceOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "aString" | "aNumber" | "aBool" | "creatorId" | "nestedResourceId" | "aOptionalString" | "aOptionalBool", ExtArgs["result"]["resource"]>
|
|
2050
2061
|
export type ResourceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2051
2062
|
ownedBy?: boolean | Resource$ownedByArgs<ExtArgs>
|
|
2052
2063
|
createdBy?: boolean | UserDefaultArgs<ExtArgs>
|
|
@@ -2081,6 +2092,7 @@ export namespace Prisma {
|
|
|
2081
2092
|
creatorId: string
|
|
2082
2093
|
nestedResourceId: string
|
|
2083
2094
|
aOptionalString: string | null
|
|
2095
|
+
aOptionalBool: boolean | null
|
|
2084
2096
|
}, ExtArgs["result"]["resource"]>
|
|
2085
2097
|
composites: {}
|
|
2086
2098
|
}
|
|
@@ -2516,6 +2528,7 @@ export namespace Prisma {
|
|
|
2516
2528
|
readonly creatorId: FieldRef<"Resource", 'String'>
|
|
2517
2529
|
readonly nestedResourceId: FieldRef<"Resource", 'String'>
|
|
2518
2530
|
readonly aOptionalString: FieldRef<"Resource", 'String'>
|
|
2531
|
+
readonly aOptionalBool: FieldRef<"Resource", 'Boolean'>
|
|
2519
2532
|
}
|
|
2520
2533
|
|
|
2521
2534
|
|
|
@@ -10529,7 +10542,8 @@ export namespace Prisma {
|
|
|
10529
10542
|
aBool: 'aBool',
|
|
10530
10543
|
creatorId: 'creatorId',
|
|
10531
10544
|
nestedResourceId: 'nestedResourceId',
|
|
10532
|
-
aOptionalString: 'aOptionalString'
|
|
10545
|
+
aOptionalString: 'aOptionalString',
|
|
10546
|
+
aOptionalBool: 'aOptionalBool'
|
|
10533
10547
|
};
|
|
10534
10548
|
|
|
10535
10549
|
export type ResourceScalarFieldEnum = (typeof ResourceScalarFieldEnum)[keyof typeof ResourceScalarFieldEnum]
|
|
@@ -10662,6 +10676,7 @@ export namespace Prisma {
|
|
|
10662
10676
|
creatorId?: StringFilter<"Resource"> | string
|
|
10663
10677
|
nestedResourceId?: StringFilter<"Resource"> | string
|
|
10664
10678
|
aOptionalString?: StringNullableFilter<"Resource"> | string | null
|
|
10679
|
+
aOptionalBool?: BoolNullableFilter<"Resource"> | boolean | null
|
|
10665
10680
|
ownedBy?: UserListRelationFilter
|
|
10666
10681
|
createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
10667
10682
|
nested?: XOR<NestedResourceScalarRelationFilter, NestedResourceWhereInput>
|
|
@@ -10677,6 +10692,7 @@ export namespace Prisma {
|
|
|
10677
10692
|
creatorId?: SortOrder
|
|
10678
10693
|
nestedResourceId?: SortOrder
|
|
10679
10694
|
aOptionalString?: SortOrderInput | SortOrder
|
|
10695
|
+
aOptionalBool?: SortOrderInput | SortOrder
|
|
10680
10696
|
ownedBy?: UserOrderByRelationAggregateInput
|
|
10681
10697
|
createdBy?: UserOrderByWithRelationInput
|
|
10682
10698
|
nested?: NestedResourceOrderByWithRelationInput
|
|
@@ -10695,6 +10711,7 @@ export namespace Prisma {
|
|
|
10695
10711
|
creatorId?: StringFilter<"Resource"> | string
|
|
10696
10712
|
nestedResourceId?: StringFilter<"Resource"> | string
|
|
10697
10713
|
aOptionalString?: StringNullableFilter<"Resource"> | string | null
|
|
10714
|
+
aOptionalBool?: BoolNullableFilter<"Resource"> | boolean | null
|
|
10698
10715
|
ownedBy?: UserListRelationFilter
|
|
10699
10716
|
createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
10700
10717
|
nested?: XOR<NestedResourceScalarRelationFilter, NestedResourceWhereInput>
|
|
@@ -10710,6 +10727,7 @@ export namespace Prisma {
|
|
|
10710
10727
|
creatorId?: SortOrder
|
|
10711
10728
|
nestedResourceId?: SortOrder
|
|
10712
10729
|
aOptionalString?: SortOrderInput | SortOrder
|
|
10730
|
+
aOptionalBool?: SortOrderInput | SortOrder
|
|
10713
10731
|
_count?: ResourceCountOrderByAggregateInput
|
|
10714
10732
|
_avg?: ResourceAvgOrderByAggregateInput
|
|
10715
10733
|
_max?: ResourceMaxOrderByAggregateInput
|
|
@@ -10728,6 +10746,7 @@ export namespace Prisma {
|
|
|
10728
10746
|
creatorId?: StringWithAggregatesFilter<"Resource"> | string
|
|
10729
10747
|
nestedResourceId?: StringWithAggregatesFilter<"Resource"> | string
|
|
10730
10748
|
aOptionalString?: StringNullableWithAggregatesFilter<"Resource"> | string | null
|
|
10749
|
+
aOptionalBool?: BoolNullableWithAggregatesFilter<"Resource"> | boolean | null
|
|
10731
10750
|
}
|
|
10732
10751
|
|
|
10733
10752
|
export type UserWhereInput = {
|
|
@@ -11074,6 +11093,7 @@ export namespace Prisma {
|
|
|
11074
11093
|
aNumber: number
|
|
11075
11094
|
aBool: boolean
|
|
11076
11095
|
aOptionalString?: string | null
|
|
11096
|
+
aOptionalBool?: boolean | null
|
|
11077
11097
|
ownedBy?: UserCreateNestedManyWithoutResourcesInput
|
|
11078
11098
|
createdBy: UserCreateNestedOneWithoutCreatedResourcesInput
|
|
11079
11099
|
nested: NestedResourceCreateNestedOneWithoutResourceInput
|
|
@@ -11089,6 +11109,7 @@ export namespace Prisma {
|
|
|
11089
11109
|
creatorId: string
|
|
11090
11110
|
nestedResourceId: string
|
|
11091
11111
|
aOptionalString?: string | null
|
|
11112
|
+
aOptionalBool?: boolean | null
|
|
11092
11113
|
ownedBy?: UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
11093
11114
|
tags?: TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
11094
11115
|
categories?: CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
@@ -11100,6 +11121,7 @@ export namespace Prisma {
|
|
|
11100
11121
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
11101
11122
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
11102
11123
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11124
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
11103
11125
|
ownedBy?: UserUpdateManyWithoutResourcesNestedInput
|
|
11104
11126
|
createdBy?: UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
11105
11127
|
nested?: NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
@@ -11115,6 +11137,7 @@ export namespace Prisma {
|
|
|
11115
11137
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
11116
11138
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
11117
11139
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11140
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
11118
11141
|
ownedBy?: UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
11119
11142
|
tags?: TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
11120
11143
|
categories?: CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
@@ -11128,6 +11151,7 @@ export namespace Prisma {
|
|
|
11128
11151
|
creatorId: string
|
|
11129
11152
|
nestedResourceId: string
|
|
11130
11153
|
aOptionalString?: string | null
|
|
11154
|
+
aOptionalBool?: boolean | null
|
|
11131
11155
|
}
|
|
11132
11156
|
|
|
11133
11157
|
export type ResourceUpdateManyMutationInput = {
|
|
@@ -11136,6 +11160,7 @@ export namespace Prisma {
|
|
|
11136
11160
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
11137
11161
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
11138
11162
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11163
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
11139
11164
|
}
|
|
11140
11165
|
|
|
11141
11166
|
export type ResourceUncheckedUpdateManyInput = {
|
|
@@ -11146,6 +11171,7 @@ export namespace Prisma {
|
|
|
11146
11171
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
11147
11172
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
11148
11173
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11174
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
11149
11175
|
}
|
|
11150
11176
|
|
|
11151
11177
|
export type UserCreateInput = {
|
|
@@ -11532,6 +11558,11 @@ export namespace Prisma {
|
|
|
11532
11558
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
11533
11559
|
}
|
|
11534
11560
|
|
|
11561
|
+
export type BoolNullableFilter<$PrismaModel = never> = {
|
|
11562
|
+
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
11563
|
+
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
11564
|
+
}
|
|
11565
|
+
|
|
11535
11566
|
export type UserListRelationFilter = {
|
|
11536
11567
|
every?: UserWhereInput
|
|
11537
11568
|
some?: UserWhereInput
|
|
@@ -11585,6 +11616,7 @@ export namespace Prisma {
|
|
|
11585
11616
|
creatorId?: SortOrder
|
|
11586
11617
|
nestedResourceId?: SortOrder
|
|
11587
11618
|
aOptionalString?: SortOrder
|
|
11619
|
+
aOptionalBool?: SortOrder
|
|
11588
11620
|
}
|
|
11589
11621
|
|
|
11590
11622
|
export type ResourceAvgOrderByAggregateInput = {
|
|
@@ -11599,6 +11631,7 @@ export namespace Prisma {
|
|
|
11599
11631
|
creatorId?: SortOrder
|
|
11600
11632
|
nestedResourceId?: SortOrder
|
|
11601
11633
|
aOptionalString?: SortOrder
|
|
11634
|
+
aOptionalBool?: SortOrder
|
|
11602
11635
|
}
|
|
11603
11636
|
|
|
11604
11637
|
export type ResourceMinOrderByAggregateInput = {
|
|
@@ -11609,6 +11642,7 @@ export namespace Prisma {
|
|
|
11609
11642
|
creatorId?: SortOrder
|
|
11610
11643
|
nestedResourceId?: SortOrder
|
|
11611
11644
|
aOptionalString?: SortOrder
|
|
11645
|
+
aOptionalBool?: SortOrder
|
|
11612
11646
|
}
|
|
11613
11647
|
|
|
11614
11648
|
export type ResourceSumOrderByAggregateInput = {
|
|
@@ -11673,6 +11707,14 @@ export namespace Prisma {
|
|
|
11673
11707
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
11674
11708
|
}
|
|
11675
11709
|
|
|
11710
|
+
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
11711
|
+
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
11712
|
+
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
11713
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
11714
|
+
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
11715
|
+
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
11716
|
+
}
|
|
11717
|
+
|
|
11676
11718
|
export type ResourceListRelationFilter = {
|
|
11677
11719
|
every?: ResourceWhereInput
|
|
11678
11720
|
some?: ResourceWhereInput
|
|
@@ -11939,6 +11981,10 @@ export namespace Prisma {
|
|
|
11939
11981
|
set?: string | null
|
|
11940
11982
|
}
|
|
11941
11983
|
|
|
11984
|
+
export type NullableBoolFieldUpdateOperationsInput = {
|
|
11985
|
+
set?: boolean | null
|
|
11986
|
+
}
|
|
11987
|
+
|
|
11942
11988
|
export type UserUpdateManyWithoutResourcesNestedInput = {
|
|
11943
11989
|
create?: XOR<UserCreateWithoutResourcesInput, UserUncheckedCreateWithoutResourcesInput> | UserCreateWithoutResourcesInput[] | UserUncheckedCreateWithoutResourcesInput[]
|
|
11944
11990
|
connectOrCreate?: UserCreateOrConnectWithoutResourcesInput | UserCreateOrConnectWithoutResourcesInput[]
|
|
@@ -12483,6 +12529,11 @@ export namespace Prisma {
|
|
|
12483
12529
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
12484
12530
|
}
|
|
12485
12531
|
|
|
12532
|
+
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
|
12533
|
+
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
12534
|
+
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
12535
|
+
}
|
|
12536
|
+
|
|
12486
12537
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
12487
12538
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
12488
12539
|
in?: string[]
|
|
@@ -12563,6 +12614,14 @@ export namespace Prisma {
|
|
|
12563
12614
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
12564
12615
|
}
|
|
12565
12616
|
|
|
12617
|
+
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
12618
|
+
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
12619
|
+
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
12620
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
12621
|
+
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
12622
|
+
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
12623
|
+
}
|
|
12624
|
+
|
|
12566
12625
|
export type UserCreateWithoutResourcesInput = {
|
|
12567
12626
|
id?: string
|
|
12568
12627
|
aString: string
|
|
@@ -12796,6 +12855,7 @@ export namespace Prisma {
|
|
|
12796
12855
|
aNumber: number
|
|
12797
12856
|
aBool: boolean
|
|
12798
12857
|
aOptionalString?: string | null
|
|
12858
|
+
aOptionalBool?: boolean | null
|
|
12799
12859
|
createdBy: UserCreateNestedOneWithoutCreatedResourcesInput
|
|
12800
12860
|
nested: NestedResourceCreateNestedOneWithoutResourceInput
|
|
12801
12861
|
tags?: TagCreateNestedManyWithoutResourcesInput
|
|
@@ -12810,6 +12870,7 @@ export namespace Prisma {
|
|
|
12810
12870
|
creatorId: string
|
|
12811
12871
|
nestedResourceId: string
|
|
12812
12872
|
aOptionalString?: string | null
|
|
12873
|
+
aOptionalBool?: boolean | null
|
|
12813
12874
|
tags?: TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
12814
12875
|
categories?: CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
12815
12876
|
}
|
|
@@ -12825,6 +12886,7 @@ export namespace Prisma {
|
|
|
12825
12886
|
aNumber: number
|
|
12826
12887
|
aBool: boolean
|
|
12827
12888
|
aOptionalString?: string | null
|
|
12889
|
+
aOptionalBool?: boolean | null
|
|
12828
12890
|
ownedBy?: UserCreateNestedManyWithoutResourcesInput
|
|
12829
12891
|
nested: NestedResourceCreateNestedOneWithoutResourceInput
|
|
12830
12892
|
tags?: TagCreateNestedManyWithoutResourcesInput
|
|
@@ -12838,6 +12900,7 @@ export namespace Prisma {
|
|
|
12838
12900
|
aBool: boolean
|
|
12839
12901
|
nestedResourceId: string
|
|
12840
12902
|
aOptionalString?: string | null
|
|
12903
|
+
aOptionalBool?: boolean | null
|
|
12841
12904
|
ownedBy?: UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
12842
12905
|
tags?: TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
12843
12906
|
categories?: CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
@@ -12879,6 +12942,7 @@ export namespace Prisma {
|
|
|
12879
12942
|
creatorId?: StringFilter<"Resource"> | string
|
|
12880
12943
|
nestedResourceId?: StringFilter<"Resource"> | string
|
|
12881
12944
|
aOptionalString?: StringNullableFilter<"Resource"> | string | null
|
|
12945
|
+
aOptionalBool?: BoolNullableFilter<"Resource"> | boolean | null
|
|
12882
12946
|
}
|
|
12883
12947
|
|
|
12884
12948
|
export type ResourceUpsertWithWhereUniqueWithoutCreatedByInput = {
|
|
@@ -12903,6 +12967,7 @@ export namespace Prisma {
|
|
|
12903
12967
|
aNumber: number
|
|
12904
12968
|
aBool: boolean
|
|
12905
12969
|
aOptionalString?: string | null
|
|
12970
|
+
aOptionalBool?: boolean | null
|
|
12906
12971
|
ownedBy?: UserCreateNestedManyWithoutResourcesInput
|
|
12907
12972
|
createdBy: UserCreateNestedOneWithoutCreatedResourcesInput
|
|
12908
12973
|
tags?: TagCreateNestedManyWithoutResourcesInput
|
|
@@ -12916,6 +12981,7 @@ export namespace Prisma {
|
|
|
12916
12981
|
aBool: boolean
|
|
12917
12982
|
creatorId: string
|
|
12918
12983
|
aOptionalString?: string | null
|
|
12984
|
+
aOptionalBool?: boolean | null
|
|
12919
12985
|
ownedBy?: UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
12920
12986
|
tags?: TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
12921
12987
|
categories?: CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
@@ -13051,6 +13117,7 @@ export namespace Prisma {
|
|
|
13051
13117
|
aNumber: number
|
|
13052
13118
|
aBool: boolean
|
|
13053
13119
|
aOptionalString?: string | null
|
|
13120
|
+
aOptionalBool?: boolean | null
|
|
13054
13121
|
ownedBy?: UserCreateNestedManyWithoutResourcesInput
|
|
13055
13122
|
createdBy: UserCreateNestedOneWithoutCreatedResourcesInput
|
|
13056
13123
|
nested: NestedResourceCreateNestedOneWithoutResourceInput
|
|
@@ -13065,6 +13132,7 @@ export namespace Prisma {
|
|
|
13065
13132
|
creatorId: string
|
|
13066
13133
|
nestedResourceId: string
|
|
13067
13134
|
aOptionalString?: string | null
|
|
13135
|
+
aOptionalBool?: boolean | null
|
|
13068
13136
|
ownedBy?: UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
13069
13137
|
categories?: CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
13070
13138
|
}
|
|
@@ -13096,6 +13164,7 @@ export namespace Prisma {
|
|
|
13096
13164
|
aNumber: number
|
|
13097
13165
|
aBool: boolean
|
|
13098
13166
|
aOptionalString?: string | null
|
|
13167
|
+
aOptionalBool?: boolean | null
|
|
13099
13168
|
ownedBy?: UserCreateNestedManyWithoutResourcesInput
|
|
13100
13169
|
createdBy: UserCreateNestedOneWithoutCreatedResourcesInput
|
|
13101
13170
|
nested: NestedResourceCreateNestedOneWithoutResourceInput
|
|
@@ -13110,6 +13179,7 @@ export namespace Prisma {
|
|
|
13110
13179
|
creatorId: string
|
|
13111
13180
|
nestedResourceId: string
|
|
13112
13181
|
aOptionalString?: string | null
|
|
13182
|
+
aOptionalBool?: boolean | null
|
|
13113
13183
|
ownedBy?: UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
13114
13184
|
tags?: TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
13115
13185
|
}
|
|
@@ -13343,6 +13413,7 @@ export namespace Prisma {
|
|
|
13343
13413
|
aBool: boolean
|
|
13344
13414
|
nestedResourceId: string
|
|
13345
13415
|
aOptionalString?: string | null
|
|
13416
|
+
aOptionalBool?: boolean | null
|
|
13346
13417
|
}
|
|
13347
13418
|
|
|
13348
13419
|
export type ResourceUpdateWithoutOwnedByInput = {
|
|
@@ -13351,6 +13422,7 @@ export namespace Prisma {
|
|
|
13351
13422
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
13352
13423
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13353
13424
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13425
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13354
13426
|
createdBy?: UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
13355
13427
|
nested?: NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
13356
13428
|
tags?: TagUpdateManyWithoutResourcesNestedInput
|
|
@@ -13365,6 +13437,7 @@ export namespace Prisma {
|
|
|
13365
13437
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13366
13438
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13367
13439
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13440
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13368
13441
|
tags?: TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13369
13442
|
categories?: CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13370
13443
|
}
|
|
@@ -13377,6 +13450,7 @@ export namespace Prisma {
|
|
|
13377
13450
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13378
13451
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13379
13452
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13453
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13380
13454
|
}
|
|
13381
13455
|
|
|
13382
13456
|
export type ResourceUpdateWithoutCreatedByInput = {
|
|
@@ -13385,6 +13459,7 @@ export namespace Prisma {
|
|
|
13385
13459
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
13386
13460
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13387
13461
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13462
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13388
13463
|
ownedBy?: UserUpdateManyWithoutResourcesNestedInput
|
|
13389
13464
|
nested?: NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
13390
13465
|
tags?: TagUpdateManyWithoutResourcesNestedInput
|
|
@@ -13398,6 +13473,7 @@ export namespace Prisma {
|
|
|
13398
13473
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13399
13474
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13400
13475
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13476
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13401
13477
|
ownedBy?: UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13402
13478
|
tags?: TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13403
13479
|
categories?: CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
@@ -13410,6 +13486,7 @@ export namespace Prisma {
|
|
|
13410
13486
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13411
13487
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13412
13488
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13489
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13413
13490
|
}
|
|
13414
13491
|
|
|
13415
13492
|
export type ResourceCreateManyNestedInput = {
|
|
@@ -13419,6 +13496,7 @@ export namespace Prisma {
|
|
|
13419
13496
|
aBool: boolean
|
|
13420
13497
|
creatorId: string
|
|
13421
13498
|
aOptionalString?: string | null
|
|
13499
|
+
aOptionalBool?: boolean | null
|
|
13422
13500
|
}
|
|
13423
13501
|
|
|
13424
13502
|
export type ResourceUpdateWithoutNestedInput = {
|
|
@@ -13427,6 +13505,7 @@ export namespace Prisma {
|
|
|
13427
13505
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
13428
13506
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13429
13507
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13508
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13430
13509
|
ownedBy?: UserUpdateManyWithoutResourcesNestedInput
|
|
13431
13510
|
createdBy?: UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
13432
13511
|
tags?: TagUpdateManyWithoutResourcesNestedInput
|
|
@@ -13440,6 +13519,7 @@ export namespace Prisma {
|
|
|
13440
13519
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13441
13520
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13442
13521
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13522
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13443
13523
|
ownedBy?: UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13444
13524
|
tags?: TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13445
13525
|
categories?: CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
@@ -13452,6 +13532,7 @@ export namespace Prisma {
|
|
|
13452
13532
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13453
13533
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13454
13534
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13535
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13455
13536
|
}
|
|
13456
13537
|
|
|
13457
13538
|
export type NestedResourceCreateManyNextlevelInput = {
|
|
@@ -13494,6 +13575,7 @@ export namespace Prisma {
|
|
|
13494
13575
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
13495
13576
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13496
13577
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13578
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13497
13579
|
ownedBy?: UserUpdateManyWithoutResourcesNestedInput
|
|
13498
13580
|
createdBy?: UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
13499
13581
|
nested?: NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
@@ -13508,6 +13590,7 @@ export namespace Prisma {
|
|
|
13508
13590
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13509
13591
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13510
13592
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13593
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13511
13594
|
ownedBy?: UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13512
13595
|
categories?: CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13513
13596
|
}
|
|
@@ -13520,6 +13603,7 @@ export namespace Prisma {
|
|
|
13520
13603
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13521
13604
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13522
13605
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13606
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13523
13607
|
}
|
|
13524
13608
|
|
|
13525
13609
|
export type ResourceUpdateWithoutCategoriesInput = {
|
|
@@ -13528,6 +13612,7 @@ export namespace Prisma {
|
|
|
13528
13612
|
aNumber?: IntFieldUpdateOperationsInput | number
|
|
13529
13613
|
aBool?: BoolFieldUpdateOperationsInput | boolean
|
|
13530
13614
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13615
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13531
13616
|
ownedBy?: UserUpdateManyWithoutResourcesNestedInput
|
|
13532
13617
|
createdBy?: UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
13533
13618
|
nested?: NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
@@ -13542,6 +13627,7 @@ export namespace Prisma {
|
|
|
13542
13627
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13543
13628
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13544
13629
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13630
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13545
13631
|
ownedBy?: UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13546
13632
|
tags?: TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
13547
13633
|
}
|
|
@@ -13554,6 +13640,7 @@ export namespace Prisma {
|
|
|
13554
13640
|
creatorId?: StringFieldUpdateOperationsInput | string
|
|
13555
13641
|
nestedResourceId?: StringFieldUpdateOperationsInput | string
|
|
13556
13642
|
aOptionalString?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13643
|
+
aOptionalBool?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
13557
13644
|
}
|
|
13558
13645
|
|
|
13559
13646
|
export type SubCategoryUpdateWithoutCategoriesInput = {
|