@cerbos/orm-prisma 4.0.0 → 5.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.
Files changed (203) hide show
  1. package/README.md +611 -460
  2. package/lib/collections.d.ts +30 -0
  3. package/lib/collections.d.ts.map +1 -0
  4. package/lib/collections.js +421 -0
  5. package/lib/collections.js.map +1 -0
  6. package/lib/comparison.d.ts +24 -0
  7. package/lib/comparison.d.ts.map +1 -0
  8. package/lib/comparison.js +731 -0
  9. package/lib/comparison.js.map +1 -0
  10. package/lib/errors.d.ts +13 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +17 -0
  13. package/lib/errors.js.map +1 -0
  14. package/lib/evaluate.d.ts +5 -0
  15. package/lib/evaluate.d.ts.map +1 -0
  16. package/lib/evaluate.js +118 -0
  17. package/lib/evaluate.js.map +1 -0
  18. package/lib/fields.d.ts +34 -0
  19. package/lib/fields.d.ts.map +1 -0
  20. package/lib/fields.js +253 -0
  21. package/lib/fields.js.map +1 -0
  22. package/lib/functions.d.ts +5 -0
  23. package/lib/functions.d.ts.map +1 -0
  24. package/lib/functions.js +408 -0
  25. package/lib/functions.js.map +1 -0
  26. package/lib/hierarchy.d.ts +6 -0
  27. package/lib/hierarchy.d.ts.map +1 -0
  28. package/lib/hierarchy.js +266 -0
  29. package/lib/hierarchy.js.map +1 -0
  30. package/lib/index.d.ts +91 -8
  31. package/lib/index.d.ts.map +1 -1
  32. package/lib/index.js +34 -2301
  33. package/lib/index.js.map +1 -1
  34. package/lib/literals.d.ts +20 -0
  35. package/lib/literals.d.ts.map +1 -0
  36. package/lib/literals.js +290 -0
  37. package/lib/literals.js.map +1 -0
  38. package/lib/mapping.d.ts +95 -0
  39. package/lib/mapping.d.ts.map +1 -0
  40. package/lib/mapping.js +316 -0
  41. package/lib/mapping.js.map +1 -0
  42. package/lib/narrowing.d.ts +12 -0
  43. package/lib/narrowing.d.ts.map +1 -0
  44. package/lib/narrowing.js +32 -0
  45. package/lib/narrowing.js.map +1 -0
  46. package/lib/plan.d.ts +49 -0
  47. package/lib/plan.d.ts.map +1 -0
  48. package/lib/plan.js +86 -0
  49. package/lib/plan.js.map +1 -0
  50. package/lib/presence.d.ts +25 -0
  51. package/lib/presence.d.ts.map +1 -0
  52. package/lib/presence.js +82 -0
  53. package/lib/presence.js.map +1 -0
  54. package/lib/regex.d.ts +33 -0
  55. package/lib/regex.d.ts.map +1 -0
  56. package/lib/regex.js +480 -0
  57. package/lib/regex.js.map +1 -0
  58. package/lib/relations.d.ts +58 -0
  59. package/lib/relations.d.ts.map +1 -0
  60. package/lib/relations.js +175 -0
  61. package/lib/relations.js.map +1 -0
  62. package/lib/rewrite.d.ts +36 -0
  63. package/lib/rewrite.d.ts.map +1 -0
  64. package/lib/rewrite.js +366 -0
  65. package/lib/rewrite.js.map +1 -0
  66. package/lib/solve.d.ts +20 -0
  67. package/lib/solve.d.ts.map +1 -0
  68. package/lib/solve.js +77 -0
  69. package/lib/solve.js.map +1 -0
  70. package/lib/strings.d.ts +12 -0
  71. package/lib/strings.d.ts.map +1 -0
  72. package/lib/strings.js +110 -0
  73. package/lib/strings.js.map +1 -0
  74. package/lib/ternary.d.ts +12 -0
  75. package/lib/ternary.d.ts.map +1 -0
  76. package/lib/ternary.js +192 -0
  77. package/lib/ternary.js.map +1 -0
  78. package/lib/timestamp.d.ts +45 -0
  79. package/lib/timestamp.d.ts.map +1 -0
  80. package/lib/timestamp.js +225 -0
  81. package/lib/timestamp.js.map +1 -0
  82. package/lib/translate.d.ts +20 -0
  83. package/lib/translate.d.ts.map +1 -0
  84. package/lib/translate.js +287 -0
  85. package/lib/translate.js.map +1 -0
  86. package/lib/types.d.ts +29 -0
  87. package/lib/types.d.ts.map +1 -0
  88. package/lib/types.js +980 -0
  89. package/lib/types.js.map +1 -0
  90. package/lib/value.d.ts +8 -0
  91. package/lib/value.d.ts.map +1 -0
  92. package/lib/value.js +7 -0
  93. package/lib/value.js.map +1 -0
  94. package/package.json +31 -18
  95. package/src/adversarial.test.ts +488 -488
  96. package/src/collections.ts +738 -0
  97. package/src/comparison.ts +1157 -0
  98. package/src/corpus.ts +597 -0
  99. package/src/errors.ts +12 -0
  100. package/src/evaluate.ts +170 -0
  101. package/src/fields.ts +373 -0
  102. package/src/functions.ts +548 -0
  103. package/src/generated/prisma-adversarial/browser.ts +20 -0
  104. package/src/generated/prisma-adversarial/client.ts +20 -0
  105. package/src/generated/prisma-adversarial/commonInputTypes.ts +116 -127
  106. package/src/generated/prisma-adversarial/internal/class.ts +44 -4
  107. package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +350 -3
  108. package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +49 -2
  109. package/src/generated/prisma-adversarial/models/AdversarialBoolListElement.ts +1272 -0
  110. package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
  111. package/src/generated/prisma-adversarial/models/AdversarialNumberListElement.ts +1316 -0
  112. package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
  113. package/src/generated/prisma-adversarial/models/AdversarialResource.ts +547 -75
  114. package/src/generated/prisma-adversarial/models.ts +4 -0
  115. package/src/generated/prisma-adversarial-mysql/browser.ts +64 -0
  116. package/src/generated/{prisma → prisma-adversarial-mysql}/client.ts +23 -18
  117. package/src/generated/{prisma → prisma-adversarial-mysql}/commonInputTypes.ts +167 -92
  118. package/src/generated/prisma-adversarial-mysql/internal/class.ts +284 -0
  119. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespace.ts +1518 -0
  120. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespaceBrowser.ts +274 -0
  121. package/src/generated/prisma-adversarial-mysql/models/AdversarialBoolListElement.ts +1157 -0
  122. package/src/generated/prisma-adversarial-mysql/models/AdversarialCategory.ts +1286 -0
  123. package/src/generated/prisma-adversarial-mysql/models/AdversarialInner.ts +1247 -0
  124. package/src/generated/prisma-adversarial-mysql/models/AdversarialLabel.ts +1157 -0
  125. package/src/generated/prisma-adversarial-mysql/models/AdversarialNumberListElement.ts +1201 -0
  126. package/src/generated/prisma-adversarial-mysql/models/AdversarialParent.ts +1352 -0
  127. package/src/generated/prisma-adversarial-mysql/models/AdversarialResource.ts +2021 -0
  128. package/src/generated/prisma-adversarial-mysql/models/AdversarialSubCategory.ts +1286 -0
  129. package/src/generated/prisma-adversarial-mysql/models/AdversarialTag.ts +1190 -0
  130. package/src/generated/prisma-adversarial-mysql/models.ts +20 -0
  131. package/src/generated/prisma-adversarial-mysql-v6/index.d.ts +13822 -0
  132. package/src/generated/prisma-adversarial-pg/browser.ts +64 -0
  133. package/src/generated/prisma-adversarial-pg/client.ts +86 -0
  134. package/src/generated/prisma-adversarial-pg/commonInputTypes.ts +345 -0
  135. package/src/generated/prisma-adversarial-pg/enums.ts +15 -0
  136. package/src/generated/prisma-adversarial-pg/internal/class.ts +284 -0
  137. package/src/generated/prisma-adversarial-pg/internal/prismaNamespace.ts +1542 -0
  138. package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespaceBrowser.ts +72 -43
  139. package/src/generated/prisma-adversarial-pg/models/AdversarialBoolListElement.ts +1275 -0
  140. package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
  141. package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
  142. package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
  143. package/src/generated/prisma-adversarial-pg/models/AdversarialNumberListElement.ts +1319 -0
  144. package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
  145. package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +2139 -0
  146. package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
  147. package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
  148. package/src/generated/prisma-adversarial-pg/models.ts +20 -0
  149. package/src/generated/prisma-adversarial-pg-v6/client.d.ts +1 -0
  150. package/src/generated/prisma-adversarial-pg-v6/default.d.ts +1 -0
  151. package/src/generated/prisma-adversarial-pg-v6/edge.d.ts +1 -0
  152. package/src/generated/prisma-adversarial-pg-v6/index.d.ts +14918 -0
  153. package/src/generated/prisma-adversarial-pg-v6/runtime/index-browser.d.ts +370 -0
  154. package/src/generated/prisma-adversarial-pg-v6/runtime/library.d.ts +3982 -0
  155. package/src/generated/prisma-adversarial-pg-v6/wasm.d.ts +1 -0
  156. package/src/generated/prisma-adversarial-v6/index.d.ts +6515 -304
  157. package/src/hierarchy.ts +405 -0
  158. package/src/index.ts +134 -3325
  159. package/src/literals.ts +363 -0
  160. package/src/mapping.ts +474 -0
  161. package/src/narrowing.ts +33 -0
  162. package/src/plan.ts +125 -0
  163. package/src/presence.ts +114 -0
  164. package/src/regex.ts +596 -0
  165. package/src/relations.ts +226 -0
  166. package/src/rewrite.ts +524 -0
  167. package/src/solve.ts +96 -0
  168. package/src/strings.ts +152 -0
  169. package/src/ternary.ts +359 -0
  170. package/src/test-setup.adversarial-url.ts +21 -0
  171. package/src/test-setup.adversarial.mysql.v6.ts +13 -0
  172. package/src/test-setup.adversarial.mysql.v7.ts +12 -0
  173. package/src/test-setup.adversarial.pg.v6.ts +13 -0
  174. package/src/test-setup.adversarial.pg.v7.ts +9 -0
  175. package/src/test-setup.adversarial.v7.ts +1 -0
  176. package/src/timestamp.ts +308 -0
  177. package/src/translate.ts +419 -0
  178. package/src/translator.test.ts +766 -0
  179. package/src/types.ts +1310 -0
  180. package/src/value.ts +16 -0
  181. package/src/generated/prisma/browser.ts +0 -59
  182. package/src/generated/prisma/internal/class.ts +0 -274
  183. package/src/generated/prisma/internal/prismaNamespace.ts +0 -1403
  184. package/src/generated/prisma/models/Category.ts +0 -1412
  185. package/src/generated/prisma/models/Label.ts +0 -1276
  186. package/src/generated/prisma/models/NestedResource.ts +0 -1562
  187. package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
  188. package/src/generated/prisma/models/Resource.ts +0 -2196
  189. package/src/generated/prisma/models/SubCategory.ts +0 -1412
  190. package/src/generated/prisma/models/Tag.ts +0 -1276
  191. package/src/generated/prisma/models/User.ts +0 -1503
  192. package/src/generated/prisma/models.ts +0 -19
  193. package/src/generated/prisma-v6/index.d.ts +0 -13726
  194. package/src/index.test.ts +0 -8885
  195. package/src/test-setup.v6.ts +0 -5
  196. package/src/test-setup.v7.ts +0 -7
  197. /package/src/generated/{prisma → prisma-adversarial-mysql}/enums.ts +0 -0
  198. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/client.d.ts +0 -0
  199. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/default.d.ts +0 -0
  200. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/edge.d.ts +0 -0
  201. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/index-browser.d.ts +0 -0
  202. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/library.d.ts +0 -0
  203. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/wasm.d.ts +0 -0
@@ -0,0 +1,64 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file should be your main import to use Prisma-related types and utilities in a browser.
8
+ * Use it to get access to models, enums, and input types.
9
+ *
10
+ * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
11
+ * See `client.ts` for the standard, server-side entry point.
12
+ *
13
+ * 🟢 You can import this file directly.
14
+ */
15
+
16
+ import * as Prisma from './internal/prismaNamespaceBrowser.js'
17
+ export { Prisma }
18
+ export * as $Enums from './enums.js'
19
+ export * from './enums.js';
20
+ /**
21
+ * Model AdversarialResource
22
+ *
23
+ */
24
+ export type AdversarialResource = Prisma.AdversarialResourceModel
25
+ /**
26
+ * Model AdversarialTag
27
+ *
28
+ */
29
+ export type AdversarialTag = Prisma.AdversarialTagModel
30
+ /**
31
+ * Model AdversarialCategory
32
+ *
33
+ */
34
+ export type AdversarialCategory = Prisma.AdversarialCategoryModel
35
+ /**
36
+ * Model AdversarialSubCategory
37
+ *
38
+ */
39
+ export type AdversarialSubCategory = Prisma.AdversarialSubCategoryModel
40
+ /**
41
+ * Model AdversarialLabel
42
+ *
43
+ */
44
+ export type AdversarialLabel = Prisma.AdversarialLabelModel
45
+ /**
46
+ * Model AdversarialParent
47
+ *
48
+ */
49
+ export type AdversarialParent = Prisma.AdversarialParentModel
50
+ /**
51
+ * Model AdversarialInner
52
+ *
53
+ */
54
+ export type AdversarialInner = Prisma.AdversarialInnerModel
55
+ /**
56
+ * Model AdversarialNumberListElement
57
+ *
58
+ */
59
+ export type AdversarialNumberListElement = Prisma.AdversarialNumberListElementModel
60
+ /**
61
+ * Model AdversarialBoolListElement
62
+ *
63
+ */
64
+ export type AdversarialBoolListElement = Prisma.AdversarialBoolListElementModel
@@ -0,0 +1,86 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
8
+ * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
9
+ *
10
+ * 🟢 You can import this file directly.
11
+ */
12
+
13
+ import * as process from 'node:process'
14
+ import * as path from 'node:path'
15
+
16
+ import * as runtime from "@prisma/client/runtime/client"
17
+ import * as $Enums from "./enums.js"
18
+ import * as $Class from "./internal/class.js"
19
+ import * as Prisma from "./internal/prismaNamespace.js"
20
+
21
+ export * as $Enums from './enums.js'
22
+ export * from "./enums.js"
23
+ /**
24
+ * ## Prisma Client
25
+ *
26
+ * Type-safe database client for TypeScript
27
+ * @example
28
+ * ```
29
+ * const prisma = new PrismaClient({
30
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
31
+ * })
32
+ * // Fetch zero or more AdversarialResources
33
+ * const adversarialResources = await prisma.adversarialResource.findMany()
34
+ * ```
35
+ *
36
+ * Read more in our [docs](https://pris.ly/d/client).
37
+ */
38
+ export const PrismaClient = $Class.getPrismaClientClass()
39
+ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
40
+ export { Prisma }
41
+
42
+ /**
43
+ * Model AdversarialResource
44
+ *
45
+ */
46
+ export type AdversarialResource = Prisma.AdversarialResourceModel
47
+ /**
48
+ * Model AdversarialTag
49
+ *
50
+ */
51
+ export type AdversarialTag = Prisma.AdversarialTagModel
52
+ /**
53
+ * Model AdversarialCategory
54
+ *
55
+ */
56
+ export type AdversarialCategory = Prisma.AdversarialCategoryModel
57
+ /**
58
+ * Model AdversarialSubCategory
59
+ *
60
+ */
61
+ export type AdversarialSubCategory = Prisma.AdversarialSubCategoryModel
62
+ /**
63
+ * Model AdversarialLabel
64
+ *
65
+ */
66
+ export type AdversarialLabel = Prisma.AdversarialLabelModel
67
+ /**
68
+ * Model AdversarialParent
69
+ *
70
+ */
71
+ export type AdversarialParent = Prisma.AdversarialParentModel
72
+ /**
73
+ * Model AdversarialInner
74
+ *
75
+ */
76
+ export type AdversarialInner = Prisma.AdversarialInnerModel
77
+ /**
78
+ * Model AdversarialNumberListElement
79
+ *
80
+ */
81
+ export type AdversarialNumberListElement = Prisma.AdversarialNumberListElementModel
82
+ /**
83
+ * Model AdversarialBoolListElement
84
+ *
85
+ */
86
+ export type AdversarialBoolListElement = Prisma.AdversarialBoolListElementModel
@@ -0,0 +1,345 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports various common sort, input & filter types that are not directly linked to a particular model.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+
12
+ import type * as runtime from "@prisma/client/runtime/client"
13
+ import * as $Enums from "./enums.js"
14
+ import type * as Prisma from "./internal/prismaNamespace.js"
15
+
16
+
17
+ export type StringFilter<$PrismaModel = never> = {
18
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
19
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
20
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
21
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
22
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
23
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
24
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
25
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
26
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
27
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
28
+ mode?: Prisma.QueryMode
29
+ not?: Prisma.NestedStringFilter<$PrismaModel> | string
30
+ }
31
+
32
+ export type BoolNullableFilter<$PrismaModel = never> = {
33
+ equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
34
+ not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
35
+ }
36
+
37
+ export type StringNullableFilter<$PrismaModel = never> = {
38
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
39
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
40
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
41
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
42
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
43
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
44
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
45
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
46
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
47
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
48
+ mode?: Prisma.QueryMode
49
+ not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
50
+ }
51
+
52
+ export type IntNullableFilter<$PrismaModel = never> = {
53
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
54
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
55
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
56
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
57
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
58
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
59
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
60
+ not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
61
+ }
62
+
63
+ export type FloatNullableFilter<$PrismaModel = never> = {
64
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
65
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
66
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
67
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
68
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
69
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
70
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
71
+ not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
72
+ }
73
+
74
+ export type DateTimeNullableFilter<$PrismaModel = never> = {
75
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
76
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
77
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
78
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
79
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
80
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
81
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
82
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
83
+ }
84
+
85
+ export type SortOrderInput = {
86
+ sort: Prisma.SortOrder
87
+ nulls?: Prisma.NullsOrder
88
+ }
89
+
90
+ export type StringWithAggregatesFilter<$PrismaModel = never> = {
91
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
92
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
93
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
94
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
95
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
96
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
97
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
98
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
99
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
100
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
101
+ mode?: Prisma.QueryMode
102
+ not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
103
+ _count?: Prisma.NestedIntFilter<$PrismaModel>
104
+ _min?: Prisma.NestedStringFilter<$PrismaModel>
105
+ _max?: Prisma.NestedStringFilter<$PrismaModel>
106
+ }
107
+
108
+ export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
109
+ equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
110
+ not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
111
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
112
+ _min?: Prisma.NestedBoolNullableFilter<$PrismaModel>
113
+ _max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
114
+ }
115
+
116
+ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
117
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
118
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
119
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
120
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
121
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
122
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
123
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
124
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
125
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
126
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
127
+ mode?: Prisma.QueryMode
128
+ not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
129
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
130
+ _min?: Prisma.NestedStringNullableFilter<$PrismaModel>
131
+ _max?: Prisma.NestedStringNullableFilter<$PrismaModel>
132
+ }
133
+
134
+ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
135
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
136
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
137
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
138
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
139
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
140
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
141
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
142
+ not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
143
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
144
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
145
+ _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
146
+ _min?: Prisma.NestedIntNullableFilter<$PrismaModel>
147
+ _max?: Prisma.NestedIntNullableFilter<$PrismaModel>
148
+ }
149
+
150
+ export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
151
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
152
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
153
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
154
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
155
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
156
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
157
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
158
+ not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
159
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
160
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
161
+ _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
162
+ _min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
163
+ _max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
164
+ }
165
+
166
+ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
167
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
168
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
169
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
170
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
171
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
172
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
173
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
174
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
175
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
176
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
177
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
178
+ }
179
+
180
+ export type NestedStringFilter<$PrismaModel = never> = {
181
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
182
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
183
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
184
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
185
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
186
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
187
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
188
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
189
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
190
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
191
+ not?: Prisma.NestedStringFilter<$PrismaModel> | string
192
+ }
193
+
194
+ export type NestedBoolNullableFilter<$PrismaModel = never> = {
195
+ equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
196
+ not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
197
+ }
198
+
199
+ export type NestedStringNullableFilter<$PrismaModel = never> = {
200
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
201
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
202
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
203
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
204
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
205
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
206
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
207
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
208
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
209
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
210
+ not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
211
+ }
212
+
213
+ export type NestedIntNullableFilter<$PrismaModel = never> = {
214
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
215
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
216
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
217
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
218
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
219
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
220
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
221
+ not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
222
+ }
223
+
224
+ export type NestedFloatNullableFilter<$PrismaModel = never> = {
225
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
226
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
227
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
228
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
229
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
230
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
231
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
232
+ not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
233
+ }
234
+
235
+ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
236
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
237
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
238
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
239
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
240
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
241
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
242
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
243
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
244
+ }
245
+
246
+ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
247
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
248
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
249
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
250
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
251
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
252
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
253
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
254
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
255
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
256
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
257
+ not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
258
+ _count?: Prisma.NestedIntFilter<$PrismaModel>
259
+ _min?: Prisma.NestedStringFilter<$PrismaModel>
260
+ _max?: Prisma.NestedStringFilter<$PrismaModel>
261
+ }
262
+
263
+ export type NestedIntFilter<$PrismaModel = never> = {
264
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
265
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
266
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
267
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
268
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
269
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
270
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
271
+ not?: Prisma.NestedIntFilter<$PrismaModel> | number
272
+ }
273
+
274
+ export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
275
+ equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
276
+ not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
277
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
278
+ _min?: Prisma.NestedBoolNullableFilter<$PrismaModel>
279
+ _max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
280
+ }
281
+
282
+ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
283
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
284
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
285
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
286
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
287
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
288
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
289
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
290
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
291
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
292
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
293
+ not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
294
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
295
+ _min?: Prisma.NestedStringNullableFilter<$PrismaModel>
296
+ _max?: Prisma.NestedStringNullableFilter<$PrismaModel>
297
+ }
298
+
299
+ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
300
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
301
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
302
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
303
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
304
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
305
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
306
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
307
+ not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
308
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
309
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
310
+ _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
311
+ _min?: Prisma.NestedIntNullableFilter<$PrismaModel>
312
+ _max?: Prisma.NestedIntNullableFilter<$PrismaModel>
313
+ }
314
+
315
+ export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
316
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
317
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
318
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
319
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
320
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
321
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
322
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
323
+ not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
324
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
325
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
326
+ _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
327
+ _min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
328
+ _max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
329
+ }
330
+
331
+ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
332
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
333
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
334
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
335
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
336
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
337
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
338
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
339
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
340
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
341
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
342
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
343
+ }
344
+
345
+
@@ -0,0 +1,15 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports all enum related types from the schema.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+
12
+
13
+
14
+ // This file is empty because there are no enums in the schema.
15
+ export {}