@trycompai/db 1.3.22-canary.0 → 2.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 (269) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +4 -5
  4. package/dist/client.ts +5 -2
  5. package/dist/generated/prisma/client.d.ts +427 -0
  6. package/dist/generated/prisma/client.d.ts.map +1 -0
  7. package/dist/generated/prisma/client.js +73 -0
  8. package/dist/generated/prisma/commonInputTypes.d.ts +2082 -0
  9. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  10. package/dist/generated/prisma/commonInputTypes.js +11 -0
  11. package/dist/generated/prisma/enums.d.ts +367 -0
  12. package/dist/generated/prisma/enums.d.ts.map +1 -0
  13. package/dist/generated/prisma/enums.js +329 -0
  14. package/dist/generated/prisma/internal/class.d.ts +1000 -0
  15. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  16. package/dist/generated/prisma/internal/class.js +87 -0
  17. package/dist/generated/prisma/internal/prismaNamespace.d.ts +8063 -0
  18. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  19. package/dist/generated/prisma/internal/prismaNamespace.js +1256 -0
  20. package/dist/generated/prisma/models/Account.d.ts +1456 -0
  21. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  22. package/dist/generated/prisma/models/Account.js +2 -0
  23. package/dist/generated/prisma/models/ApiKey.d.ts +1387 -0
  24. package/dist/generated/prisma/models/ApiKey.d.ts.map +1 -0
  25. package/dist/generated/prisma/models/ApiKey.js +2 -0
  26. package/dist/generated/prisma/models/Attachment.d.ts +1520 -0
  27. package/dist/generated/prisma/models/Attachment.d.ts.map +1 -0
  28. package/dist/generated/prisma/models/Attachment.js +2 -0
  29. package/dist/generated/prisma/models/AuditLog.d.ts +1590 -0
  30. package/dist/generated/prisma/models/AuditLog.d.ts.map +1 -0
  31. package/dist/generated/prisma/models/AuditLog.js +2 -0
  32. package/dist/generated/prisma/models/BrowserAutomation.d.ts +1507 -0
  33. package/dist/generated/prisma/models/BrowserAutomation.d.ts.map +1 -0
  34. package/dist/generated/prisma/models/BrowserAutomation.js +2 -0
  35. package/dist/generated/prisma/models/BrowserAutomationRun.d.ts +1455 -0
  36. package/dist/generated/prisma/models/BrowserAutomationRun.d.ts.map +1 -0
  37. package/dist/generated/prisma/models/BrowserAutomationRun.js +2 -0
  38. package/dist/generated/prisma/models/BrowserbaseContext.d.ts +1139 -0
  39. package/dist/generated/prisma/models/BrowserbaseContext.d.ts.map +1 -0
  40. package/dist/generated/prisma/models/BrowserbaseContext.js +2 -0
  41. package/dist/generated/prisma/models/Comment.d.ts +1502 -0
  42. package/dist/generated/prisma/models/Comment.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/Comment.js +2 -0
  44. package/dist/generated/prisma/models/Context.d.ts +1254 -0
  45. package/dist/generated/prisma/models/Context.d.ts.map +1 -0
  46. package/dist/generated/prisma/models/Context.js +2 -0
  47. package/dist/generated/prisma/models/Control.d.ts +1965 -0
  48. package/dist/generated/prisma/models/Control.d.ts.map +1 -0
  49. package/dist/generated/prisma/models/Control.js +2 -0
  50. package/dist/generated/prisma/models/ControlDocumentType.d.ts +1115 -0
  51. package/dist/generated/prisma/models/ControlDocumentType.d.ts.map +1 -0
  52. package/dist/generated/prisma/models/ControlDocumentType.js +2 -0
  53. package/dist/generated/prisma/models/Device.d.ts +1858 -0
  54. package/dist/generated/prisma/models/Device.d.ts.map +1 -0
  55. package/dist/generated/prisma/models/Device.js +2 -0
  56. package/dist/generated/prisma/models/DynamicCheck.d.ts +1517 -0
  57. package/dist/generated/prisma/models/DynamicCheck.d.ts.map +1 -0
  58. package/dist/generated/prisma/models/DynamicCheck.js +2 -0
  59. package/dist/generated/prisma/models/DynamicIntegration.d.ts +1528 -0
  60. package/dist/generated/prisma/models/DynamicIntegration.d.ts.map +1 -0
  61. package/dist/generated/prisma/models/DynamicIntegration.js +2 -0
  62. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts +1146 -0
  63. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts.map +1 -0
  64. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.js +2 -0
  65. package/dist/generated/prisma/models/EvidenceAutomation.d.ts +1533 -0
  66. package/dist/generated/prisma/models/EvidenceAutomation.d.ts.map +1 -0
  67. package/dist/generated/prisma/models/EvidenceAutomation.js +2 -0
  68. package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts +1833 -0
  69. package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts.map +1 -0
  70. package/dist/generated/prisma/models/EvidenceAutomationRun.js +2 -0
  71. package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts +1331 -0
  72. package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts.map +1 -0
  73. package/dist/generated/prisma/models/EvidenceAutomationVersion.js +2 -0
  74. package/dist/generated/prisma/models/EvidenceSubmission.d.ts +1905 -0
  75. package/dist/generated/prisma/models/EvidenceSubmission.d.ts.map +1 -0
  76. package/dist/generated/prisma/models/EvidenceSubmission.js +2 -0
  77. package/dist/generated/prisma/models/Finding.d.ts +2386 -0
  78. package/dist/generated/prisma/models/Finding.d.ts.map +1 -0
  79. package/dist/generated/prisma/models/Finding.js +2 -0
  80. package/dist/generated/prisma/models/FindingTemplate.d.ts +1264 -0
  81. package/dist/generated/prisma/models/FindingTemplate.d.ts.map +1 -0
  82. package/dist/generated/prisma/models/FindingTemplate.js +2 -0
  83. package/dist/generated/prisma/models/FleetPolicyResult.d.ts +1484 -0
  84. package/dist/generated/prisma/models/FleetPolicyResult.d.ts.map +1 -0
  85. package/dist/generated/prisma/models/FleetPolicyResult.js +2 -0
  86. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts +1669 -0
  87. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts.map +1 -0
  88. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.js +2 -0
  89. package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts +1581 -0
  90. package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts.map +1 -0
  91. package/dist/generated/prisma/models/FrameworkEditorFramework.js +2 -0
  92. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts +1428 -0
  93. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts.map +1 -0
  94. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.js +2 -0
  95. package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts +1525 -0
  96. package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts.map +1 -0
  97. package/dist/generated/prisma/models/FrameworkEditorRequirement.js +2 -0
  98. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts +1434 -0
  99. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts.map +1 -0
  100. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.js +2 -0
  101. package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts +1054 -0
  102. package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts.map +1 -0
  103. package/dist/generated/prisma/models/FrameworkEditorVideo.js +2 -0
  104. package/dist/generated/prisma/models/FrameworkInstance.d.ts +1321 -0
  105. package/dist/generated/prisma/models/FrameworkInstance.d.ts.map +1 -0
  106. package/dist/generated/prisma/models/FrameworkInstance.js +2 -0
  107. package/dist/generated/prisma/models/GlobalVendors.d.ts +1358 -0
  108. package/dist/generated/prisma/models/GlobalVendors.d.ts.map +1 -0
  109. package/dist/generated/prisma/models/GlobalVendors.js +2 -0
  110. package/dist/generated/prisma/models/Integration.d.ts +1363 -0
  111. package/dist/generated/prisma/models/Integration.d.ts.map +1 -0
  112. package/dist/generated/prisma/models/Integration.js +2 -0
  113. package/dist/generated/prisma/models/IntegrationCheckResult.d.ts +1408 -0
  114. package/dist/generated/prisma/models/IntegrationCheckResult.d.ts.map +1 -0
  115. package/dist/generated/prisma/models/IntegrationCheckResult.js +2 -0
  116. package/dist/generated/prisma/models/IntegrationCheckRun.d.ts +1958 -0
  117. package/dist/generated/prisma/models/IntegrationCheckRun.d.ts.map +1 -0
  118. package/dist/generated/prisma/models/IntegrationCheckRun.js +2 -0
  119. package/dist/generated/prisma/models/IntegrationConnection.d.ts +2472 -0
  120. package/dist/generated/prisma/models/IntegrationConnection.d.ts.map +1 -0
  121. package/dist/generated/prisma/models/IntegrationConnection.js +2 -0
  122. package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts +1298 -0
  123. package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts.map +1 -0
  124. package/dist/generated/prisma/models/IntegrationCredentialVersion.js +2 -0
  125. package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts +1362 -0
  126. package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts.map +1 -0
  127. package/dist/generated/prisma/models/IntegrationOAuthApp.js +2 -0
  128. package/dist/generated/prisma/models/IntegrationOAuthState.d.ts +1131 -0
  129. package/dist/generated/prisma/models/IntegrationOAuthState.d.ts.map +1 -0
  130. package/dist/generated/prisma/models/IntegrationOAuthState.js +2 -0
  131. package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts +1237 -0
  132. package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts.map +1 -0
  133. package/dist/generated/prisma/models/IntegrationPlatformCredential.js +2 -0
  134. package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts +1652 -0
  135. package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts.map +1 -0
  136. package/dist/generated/prisma/models/IntegrationPlatformFinding.js +2 -0
  137. package/dist/generated/prisma/models/IntegrationProvider.d.ts +1300 -0
  138. package/dist/generated/prisma/models/IntegrationProvider.d.ts.map +1 -0
  139. package/dist/generated/prisma/models/IntegrationProvider.js +2 -0
  140. package/dist/generated/prisma/models/IntegrationResult.d.ts +1539 -0
  141. package/dist/generated/prisma/models/IntegrationResult.d.ts.map +1 -0
  142. package/dist/generated/prisma/models/IntegrationResult.js +2 -0
  143. package/dist/generated/prisma/models/IntegrationRun.d.ts +1596 -0
  144. package/dist/generated/prisma/models/IntegrationRun.d.ts.map +1 -0
  145. package/dist/generated/prisma/models/IntegrationRun.js +2 -0
  146. package/dist/generated/prisma/models/IntegrationSyncLog.d.ts +1716 -0
  147. package/dist/generated/prisma/models/IntegrationSyncLog.d.ts.map +1 -0
  148. package/dist/generated/prisma/models/IntegrationSyncLog.js +2 -0
  149. package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
  150. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
  151. package/dist/generated/prisma/models/Invitation.js +2 -0
  152. package/dist/generated/prisma/models/Jwks.d.ts +998 -0
  153. package/dist/generated/prisma/models/Jwks.d.ts.map +1 -0
  154. package/dist/generated/prisma/models/Jwks.js +2 -0
  155. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1463 -0
  156. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts.map +1 -0
  157. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +2 -0
  158. package/dist/generated/prisma/models/Member.d.ts +5530 -0
  159. package/dist/generated/prisma/models/Member.d.ts.map +1 -0
  160. package/dist/generated/prisma/models/Member.js +2 -0
  161. package/dist/generated/prisma/models/Onboarding.d.ts +1376 -0
  162. package/dist/generated/prisma/models/Onboarding.d.ts.map +1 -0
  163. package/dist/generated/prisma/models/Onboarding.js +2 -0
  164. package/dist/generated/prisma/models/Organization.d.ts +14367 -0
  165. package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
  166. package/dist/generated/prisma/models/Organization.js +2 -0
  167. package/dist/generated/prisma/models/OrganizationBilling.d.ts +1222 -0
  168. package/dist/generated/prisma/models/OrganizationBilling.d.ts.map +1 -0
  169. package/dist/generated/prisma/models/OrganizationBilling.js +2 -0
  170. package/dist/generated/prisma/models/OrganizationChart.d.ts +1248 -0
  171. package/dist/generated/prisma/models/OrganizationChart.d.ts.map +1 -0
  172. package/dist/generated/prisma/models/OrganizationChart.js +2 -0
  173. package/dist/generated/prisma/models/OrganizationRole.d.ts +1251 -0
  174. package/dist/generated/prisma/models/OrganizationRole.d.ts.map +1 -0
  175. package/dist/generated/prisma/models/OrganizationRole.js +2 -0
  176. package/dist/generated/prisma/models/PentestSubscription.d.ts +1497 -0
  177. package/dist/generated/prisma/models/PentestSubscription.d.ts.map +1 -0
  178. package/dist/generated/prisma/models/PentestSubscription.js +2 -0
  179. package/dist/generated/prisma/models/Policy.d.ts +3356 -0
  180. package/dist/generated/prisma/models/Policy.d.ts.map +1 -0
  181. package/dist/generated/prisma/models/Policy.js +2 -0
  182. package/dist/generated/prisma/models/PolicyVersion.d.ts +1619 -0
  183. package/dist/generated/prisma/models/PolicyVersion.d.ts.map +1 -0
  184. package/dist/generated/prisma/models/PolicyVersion.js +2 -0
  185. package/dist/generated/prisma/models/Questionnaire.d.ts +1808 -0
  186. package/dist/generated/prisma/models/Questionnaire.d.ts.map +1 -0
  187. package/dist/generated/prisma/models/Questionnaire.js +2 -0
  188. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts +1422 -0
  189. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts.map +1 -0
  190. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.js +2 -0
  191. package/dist/generated/prisma/models/RequirementMap.d.ts +1345 -0
  192. package/dist/generated/prisma/models/RequirementMap.d.ts.map +1 -0
  193. package/dist/generated/prisma/models/RequirementMap.js +2 -0
  194. package/dist/generated/prisma/models/Risk.d.ts +1975 -0
  195. package/dist/generated/prisma/models/Risk.d.ts.map +1 -0
  196. package/dist/generated/prisma/models/Risk.js +2 -0
  197. package/dist/generated/prisma/models/RoleNotificationSetting.d.ts +1391 -0
  198. package/dist/generated/prisma/models/RoleNotificationSetting.d.ts.map +1 -0
  199. package/dist/generated/prisma/models/RoleNotificationSetting.js +2 -0
  200. package/dist/generated/prisma/models/SOAAnswer.d.ts +1498 -0
  201. package/dist/generated/prisma/models/SOAAnswer.d.ts.map +1 -0
  202. package/dist/generated/prisma/models/SOAAnswer.js +2 -0
  203. package/dist/generated/prisma/models/SOADocument.d.ts +2272 -0
  204. package/dist/generated/prisma/models/SOADocument.d.ts.map +1 -0
  205. package/dist/generated/prisma/models/SOADocument.js +2 -0
  206. package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts +1445 -0
  207. package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts.map +1 -0
  208. package/dist/generated/prisma/models/SOAFrameworkConfiguration.js +2 -0
  209. package/dist/generated/prisma/models/Secret.d.ts +1321 -0
  210. package/dist/generated/prisma/models/Secret.d.ts.map +1 -0
  211. package/dist/generated/prisma/models/Secret.js +2 -0
  212. package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts +1176 -0
  213. package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts.map +1 -0
  214. package/dist/generated/prisma/models/SecurityPenetrationTestRun.js +2 -0
  215. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts +1510 -0
  216. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts.map +1 -0
  217. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.js +2 -0
  218. package/dist/generated/prisma/models/Session.d.ts +1351 -0
  219. package/dist/generated/prisma/models/Session.d.ts.map +1 -0
  220. package/dist/generated/prisma/models/Session.js +2 -0
  221. package/dist/generated/prisma/models/Task.d.ts +3980 -0
  222. package/dist/generated/prisma/models/Task.d.ts.map +1 -0
  223. package/dist/generated/prisma/models/Task.js +2 -0
  224. package/dist/generated/prisma/models/TaskItem.d.ts +1961 -0
  225. package/dist/generated/prisma/models/TaskItem.d.ts.map +1 -0
  226. package/dist/generated/prisma/models/TaskItem.js +2 -0
  227. package/dist/generated/prisma/models/Trust.d.ts +2242 -0
  228. package/dist/generated/prisma/models/Trust.d.ts.map +1 -0
  229. package/dist/generated/prisma/models/Trust.js +2 -0
  230. package/dist/generated/prisma/models/TrustAccessGrant.d.ts +1888 -0
  231. package/dist/generated/prisma/models/TrustAccessGrant.d.ts.map +1 -0
  232. package/dist/generated/prisma/models/TrustAccessGrant.js +2 -0
  233. package/dist/generated/prisma/models/TrustAccessRequest.d.ts +2103 -0
  234. package/dist/generated/prisma/models/TrustAccessRequest.d.ts.map +1 -0
  235. package/dist/generated/prisma/models/TrustAccessRequest.js +2 -0
  236. package/dist/generated/prisma/models/TrustCustomLink.d.ts +1354 -0
  237. package/dist/generated/prisma/models/TrustCustomLink.d.ts.map +1 -0
  238. package/dist/generated/prisma/models/TrustCustomLink.js +2 -0
  239. package/dist/generated/prisma/models/TrustDocument.d.ts +1281 -0
  240. package/dist/generated/prisma/models/TrustDocument.d.ts.map +1 -0
  241. package/dist/generated/prisma/models/TrustDocument.js +2 -0
  242. package/dist/generated/prisma/models/TrustNDAAgreement.d.ts +1877 -0
  243. package/dist/generated/prisma/models/TrustNDAAgreement.d.ts.map +1 -0
  244. package/dist/generated/prisma/models/TrustNDAAgreement.js +2 -0
  245. package/dist/generated/prisma/models/TrustResource.d.ts +1328 -0
  246. package/dist/generated/prisma/models/TrustResource.d.ts.map +1 -0
  247. package/dist/generated/prisma/models/TrustResource.js +2 -0
  248. package/dist/generated/prisma/models/User.d.ts +3070 -0
  249. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  250. package/dist/generated/prisma/models/User.js +2 -0
  251. package/dist/generated/prisma/models/Vendor.d.ts +2307 -0
  252. package/dist/generated/prisma/models/Vendor.d.ts.map +1 -0
  253. package/dist/generated/prisma/models/Vendor.js +2 -0
  254. package/dist/generated/prisma/models/VendorContact.d.ts +1246 -0
  255. package/dist/generated/prisma/models/VendorContact.d.ts.map +1 -0
  256. package/dist/generated/prisma/models/VendorContact.js +2 -0
  257. package/dist/generated/prisma/models/Verification.d.ts +1026 -0
  258. package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
  259. package/dist/generated/prisma/models/Verification.js +2 -0
  260. package/dist/generated/prisma/models.d.ts +82 -0
  261. package/dist/generated/prisma/models.d.ts.map +1 -0
  262. package/dist/generated/prisma/models.js +2 -0
  263. package/dist/index.d.ts +0 -1
  264. package/dist/index.d.ts.map +1 -1
  265. package/dist/index.js +0 -3
  266. package/dist/index.ts +1 -2
  267. package/dist/postinstall.js +1 -1
  268. package/dist/schema.prisma +458 -39
  269. package/package.json +56 -55
@@ -0,0 +1,1115 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model ControlDocumentType
6
+ *
7
+ */
8
+ export type ControlDocumentTypeModel = runtime.Types.Result.DefaultSelection<Prisma.$ControlDocumentTypePayload>;
9
+ export type AggregateControlDocumentType = {
10
+ _count: ControlDocumentTypeCountAggregateOutputType | null;
11
+ _min: ControlDocumentTypeMinAggregateOutputType | null;
12
+ _max: ControlDocumentTypeMaxAggregateOutputType | null;
13
+ };
14
+ export type ControlDocumentTypeMinAggregateOutputType = {
15
+ id: string | null;
16
+ controlId: string | null;
17
+ formType: $Enums.EvidenceFormType | null;
18
+ };
19
+ export type ControlDocumentTypeMaxAggregateOutputType = {
20
+ id: string | null;
21
+ controlId: string | null;
22
+ formType: $Enums.EvidenceFormType | null;
23
+ };
24
+ export type ControlDocumentTypeCountAggregateOutputType = {
25
+ id: number;
26
+ controlId: number;
27
+ formType: number;
28
+ _all: number;
29
+ };
30
+ export type ControlDocumentTypeMinAggregateInputType = {
31
+ id?: true;
32
+ controlId?: true;
33
+ formType?: true;
34
+ };
35
+ export type ControlDocumentTypeMaxAggregateInputType = {
36
+ id?: true;
37
+ controlId?: true;
38
+ formType?: true;
39
+ };
40
+ export type ControlDocumentTypeCountAggregateInputType = {
41
+ id?: true;
42
+ controlId?: true;
43
+ formType?: true;
44
+ _all?: true;
45
+ };
46
+ export type ControlDocumentTypeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
47
+ /**
48
+ * Filter which ControlDocumentType to aggregate.
49
+ */
50
+ where?: Prisma.ControlDocumentTypeWhereInput;
51
+ /**
52
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
53
+ *
54
+ * Determine the order of ControlDocumentTypes to fetch.
55
+ */
56
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithRelationInput | Prisma.ControlDocumentTypeOrderByWithRelationInput[];
57
+ /**
58
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
59
+ *
60
+ * Sets the start position
61
+ */
62
+ cursor?: Prisma.ControlDocumentTypeWhereUniqueInput;
63
+ /**
64
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
65
+ *
66
+ * Take `±n` ControlDocumentTypes from the position of the cursor.
67
+ */
68
+ take?: number;
69
+ /**
70
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
71
+ *
72
+ * Skip the first `n` ControlDocumentTypes.
73
+ */
74
+ skip?: number;
75
+ /**
76
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
77
+ *
78
+ * Count returned ControlDocumentTypes
79
+ **/
80
+ _count?: true | ControlDocumentTypeCountAggregateInputType;
81
+ /**
82
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
83
+ *
84
+ * Select which fields to find the minimum value
85
+ **/
86
+ _min?: ControlDocumentTypeMinAggregateInputType;
87
+ /**
88
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89
+ *
90
+ * Select which fields to find the maximum value
91
+ **/
92
+ _max?: ControlDocumentTypeMaxAggregateInputType;
93
+ };
94
+ export type GetControlDocumentTypeAggregateType<T extends ControlDocumentTypeAggregateArgs> = {
95
+ [P in keyof T & keyof AggregateControlDocumentType]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateControlDocumentType[P]> : Prisma.GetScalarType<T[P], AggregateControlDocumentType[P]>;
96
+ };
97
+ export type ControlDocumentTypeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
98
+ where?: Prisma.ControlDocumentTypeWhereInput;
99
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithAggregationInput | Prisma.ControlDocumentTypeOrderByWithAggregationInput[];
100
+ by: Prisma.ControlDocumentTypeScalarFieldEnum[] | Prisma.ControlDocumentTypeScalarFieldEnum;
101
+ having?: Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput;
102
+ take?: number;
103
+ skip?: number;
104
+ _count?: ControlDocumentTypeCountAggregateInputType | true;
105
+ _min?: ControlDocumentTypeMinAggregateInputType;
106
+ _max?: ControlDocumentTypeMaxAggregateInputType;
107
+ };
108
+ export type ControlDocumentTypeGroupByOutputType = {
109
+ id: string;
110
+ controlId: string;
111
+ formType: $Enums.EvidenceFormType;
112
+ _count: ControlDocumentTypeCountAggregateOutputType | null;
113
+ _min: ControlDocumentTypeMinAggregateOutputType | null;
114
+ _max: ControlDocumentTypeMaxAggregateOutputType | null;
115
+ };
116
+ export type GetControlDocumentTypeGroupByPayload<T extends ControlDocumentTypeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ControlDocumentTypeGroupByOutputType, T['by']> & {
117
+ [P in ((keyof T) & (keyof ControlDocumentTypeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ControlDocumentTypeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ControlDocumentTypeGroupByOutputType[P]>;
118
+ }>>;
119
+ export type ControlDocumentTypeWhereInput = {
120
+ AND?: Prisma.ControlDocumentTypeWhereInput | Prisma.ControlDocumentTypeWhereInput[];
121
+ OR?: Prisma.ControlDocumentTypeWhereInput[];
122
+ NOT?: Prisma.ControlDocumentTypeWhereInput | Prisma.ControlDocumentTypeWhereInput[];
123
+ id?: Prisma.StringFilter<"ControlDocumentType"> | string;
124
+ controlId?: Prisma.StringFilter<"ControlDocumentType"> | string;
125
+ formType?: Prisma.EnumEvidenceFormTypeFilter<"ControlDocumentType"> | $Enums.EvidenceFormType;
126
+ control?: Prisma.XOR<Prisma.ControlScalarRelationFilter, Prisma.ControlWhereInput>;
127
+ };
128
+ export type ControlDocumentTypeOrderByWithRelationInput = {
129
+ id?: Prisma.SortOrder;
130
+ controlId?: Prisma.SortOrder;
131
+ formType?: Prisma.SortOrder;
132
+ control?: Prisma.ControlOrderByWithRelationInput;
133
+ };
134
+ export type ControlDocumentTypeWhereUniqueInput = Prisma.AtLeast<{
135
+ id?: string;
136
+ controlId_formType?: Prisma.ControlDocumentTypeControlIdFormTypeCompoundUniqueInput;
137
+ AND?: Prisma.ControlDocumentTypeWhereInput | Prisma.ControlDocumentTypeWhereInput[];
138
+ OR?: Prisma.ControlDocumentTypeWhereInput[];
139
+ NOT?: Prisma.ControlDocumentTypeWhereInput | Prisma.ControlDocumentTypeWhereInput[];
140
+ controlId?: Prisma.StringFilter<"ControlDocumentType"> | string;
141
+ formType?: Prisma.EnumEvidenceFormTypeFilter<"ControlDocumentType"> | $Enums.EvidenceFormType;
142
+ control?: Prisma.XOR<Prisma.ControlScalarRelationFilter, Prisma.ControlWhereInput>;
143
+ }, "id" | "controlId_formType">;
144
+ export type ControlDocumentTypeOrderByWithAggregationInput = {
145
+ id?: Prisma.SortOrder;
146
+ controlId?: Prisma.SortOrder;
147
+ formType?: Prisma.SortOrder;
148
+ _count?: Prisma.ControlDocumentTypeCountOrderByAggregateInput;
149
+ _max?: Prisma.ControlDocumentTypeMaxOrderByAggregateInput;
150
+ _min?: Prisma.ControlDocumentTypeMinOrderByAggregateInput;
151
+ };
152
+ export type ControlDocumentTypeScalarWhereWithAggregatesInput = {
153
+ AND?: Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput | Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput[];
154
+ OR?: Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput[];
155
+ NOT?: Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput | Prisma.ControlDocumentTypeScalarWhereWithAggregatesInput[];
156
+ id?: Prisma.StringWithAggregatesFilter<"ControlDocumentType"> | string;
157
+ controlId?: Prisma.StringWithAggregatesFilter<"ControlDocumentType"> | string;
158
+ formType?: Prisma.EnumEvidenceFormTypeWithAggregatesFilter<"ControlDocumentType"> | $Enums.EvidenceFormType;
159
+ };
160
+ export type ControlDocumentTypeCreateInput = {
161
+ id?: string;
162
+ formType: $Enums.EvidenceFormType;
163
+ control: Prisma.ControlCreateNestedOneWithoutControlDocumentTypesInput;
164
+ };
165
+ export type ControlDocumentTypeUncheckedCreateInput = {
166
+ id?: string;
167
+ controlId: string;
168
+ formType: $Enums.EvidenceFormType;
169
+ };
170
+ export type ControlDocumentTypeUpdateInput = {
171
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
172
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
173
+ control?: Prisma.ControlUpdateOneRequiredWithoutControlDocumentTypesNestedInput;
174
+ };
175
+ export type ControlDocumentTypeUncheckedUpdateInput = {
176
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
177
+ controlId?: Prisma.StringFieldUpdateOperationsInput | string;
178
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
179
+ };
180
+ export type ControlDocumentTypeCreateManyInput = {
181
+ id?: string;
182
+ controlId: string;
183
+ formType: $Enums.EvidenceFormType;
184
+ };
185
+ export type ControlDocumentTypeUpdateManyMutationInput = {
186
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
187
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
188
+ };
189
+ export type ControlDocumentTypeUncheckedUpdateManyInput = {
190
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
191
+ controlId?: Prisma.StringFieldUpdateOperationsInput | string;
192
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
193
+ };
194
+ export type ControlDocumentTypeControlIdFormTypeCompoundUniqueInput = {
195
+ controlId: string;
196
+ formType: $Enums.EvidenceFormType;
197
+ };
198
+ export type ControlDocumentTypeCountOrderByAggregateInput = {
199
+ id?: Prisma.SortOrder;
200
+ controlId?: Prisma.SortOrder;
201
+ formType?: Prisma.SortOrder;
202
+ };
203
+ export type ControlDocumentTypeMaxOrderByAggregateInput = {
204
+ id?: Prisma.SortOrder;
205
+ controlId?: Prisma.SortOrder;
206
+ formType?: Prisma.SortOrder;
207
+ };
208
+ export type ControlDocumentTypeMinOrderByAggregateInput = {
209
+ id?: Prisma.SortOrder;
210
+ controlId?: Prisma.SortOrder;
211
+ formType?: Prisma.SortOrder;
212
+ };
213
+ export type ControlDocumentTypeListRelationFilter = {
214
+ every?: Prisma.ControlDocumentTypeWhereInput;
215
+ some?: Prisma.ControlDocumentTypeWhereInput;
216
+ none?: Prisma.ControlDocumentTypeWhereInput;
217
+ };
218
+ export type ControlDocumentTypeOrderByRelationAggregateInput = {
219
+ _count?: Prisma.SortOrder;
220
+ };
221
+ export type EnumEvidenceFormTypeFieldUpdateOperationsInput = {
222
+ set?: $Enums.EvidenceFormType;
223
+ };
224
+ export type ControlDocumentTypeCreateNestedManyWithoutControlInput = {
225
+ create?: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput> | Prisma.ControlDocumentTypeCreateWithoutControlInput[] | Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput[];
226
+ connectOrCreate?: Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput | Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput[];
227
+ createMany?: Prisma.ControlDocumentTypeCreateManyControlInputEnvelope;
228
+ connect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
229
+ };
230
+ export type ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput = {
231
+ create?: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput> | Prisma.ControlDocumentTypeCreateWithoutControlInput[] | Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput[];
232
+ connectOrCreate?: Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput | Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput[];
233
+ createMany?: Prisma.ControlDocumentTypeCreateManyControlInputEnvelope;
234
+ connect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
235
+ };
236
+ export type ControlDocumentTypeUpdateManyWithoutControlNestedInput = {
237
+ create?: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput> | Prisma.ControlDocumentTypeCreateWithoutControlInput[] | Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput[];
238
+ connectOrCreate?: Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput | Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput[];
239
+ upsert?: Prisma.ControlDocumentTypeUpsertWithWhereUniqueWithoutControlInput | Prisma.ControlDocumentTypeUpsertWithWhereUniqueWithoutControlInput[];
240
+ createMany?: Prisma.ControlDocumentTypeCreateManyControlInputEnvelope;
241
+ set?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
242
+ disconnect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
243
+ delete?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
244
+ connect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
245
+ update?: Prisma.ControlDocumentTypeUpdateWithWhereUniqueWithoutControlInput | Prisma.ControlDocumentTypeUpdateWithWhereUniqueWithoutControlInput[];
246
+ updateMany?: Prisma.ControlDocumentTypeUpdateManyWithWhereWithoutControlInput | Prisma.ControlDocumentTypeUpdateManyWithWhereWithoutControlInput[];
247
+ deleteMany?: Prisma.ControlDocumentTypeScalarWhereInput | Prisma.ControlDocumentTypeScalarWhereInput[];
248
+ };
249
+ export type ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput = {
250
+ create?: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput> | Prisma.ControlDocumentTypeCreateWithoutControlInput[] | Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput[];
251
+ connectOrCreate?: Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput | Prisma.ControlDocumentTypeCreateOrConnectWithoutControlInput[];
252
+ upsert?: Prisma.ControlDocumentTypeUpsertWithWhereUniqueWithoutControlInput | Prisma.ControlDocumentTypeUpsertWithWhereUniqueWithoutControlInput[];
253
+ createMany?: Prisma.ControlDocumentTypeCreateManyControlInputEnvelope;
254
+ set?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
255
+ disconnect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
256
+ delete?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
257
+ connect?: Prisma.ControlDocumentTypeWhereUniqueInput | Prisma.ControlDocumentTypeWhereUniqueInput[];
258
+ update?: Prisma.ControlDocumentTypeUpdateWithWhereUniqueWithoutControlInput | Prisma.ControlDocumentTypeUpdateWithWhereUniqueWithoutControlInput[];
259
+ updateMany?: Prisma.ControlDocumentTypeUpdateManyWithWhereWithoutControlInput | Prisma.ControlDocumentTypeUpdateManyWithWhereWithoutControlInput[];
260
+ deleteMany?: Prisma.ControlDocumentTypeScalarWhereInput | Prisma.ControlDocumentTypeScalarWhereInput[];
261
+ };
262
+ export type ControlDocumentTypeCreateWithoutControlInput = {
263
+ id?: string;
264
+ formType: $Enums.EvidenceFormType;
265
+ };
266
+ export type ControlDocumentTypeUncheckedCreateWithoutControlInput = {
267
+ id?: string;
268
+ formType: $Enums.EvidenceFormType;
269
+ };
270
+ export type ControlDocumentTypeCreateOrConnectWithoutControlInput = {
271
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
272
+ create: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput>;
273
+ };
274
+ export type ControlDocumentTypeCreateManyControlInputEnvelope = {
275
+ data: Prisma.ControlDocumentTypeCreateManyControlInput | Prisma.ControlDocumentTypeCreateManyControlInput[];
276
+ skipDuplicates?: boolean;
277
+ };
278
+ export type ControlDocumentTypeUpsertWithWhereUniqueWithoutControlInput = {
279
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
280
+ update: Prisma.XOR<Prisma.ControlDocumentTypeUpdateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedUpdateWithoutControlInput>;
281
+ create: Prisma.XOR<Prisma.ControlDocumentTypeCreateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedCreateWithoutControlInput>;
282
+ };
283
+ export type ControlDocumentTypeUpdateWithWhereUniqueWithoutControlInput = {
284
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
285
+ data: Prisma.XOR<Prisma.ControlDocumentTypeUpdateWithoutControlInput, Prisma.ControlDocumentTypeUncheckedUpdateWithoutControlInput>;
286
+ };
287
+ export type ControlDocumentTypeUpdateManyWithWhereWithoutControlInput = {
288
+ where: Prisma.ControlDocumentTypeScalarWhereInput;
289
+ data: Prisma.XOR<Prisma.ControlDocumentTypeUpdateManyMutationInput, Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlInput>;
290
+ };
291
+ export type ControlDocumentTypeScalarWhereInput = {
292
+ AND?: Prisma.ControlDocumentTypeScalarWhereInput | Prisma.ControlDocumentTypeScalarWhereInput[];
293
+ OR?: Prisma.ControlDocumentTypeScalarWhereInput[];
294
+ NOT?: Prisma.ControlDocumentTypeScalarWhereInput | Prisma.ControlDocumentTypeScalarWhereInput[];
295
+ id?: Prisma.StringFilter<"ControlDocumentType"> | string;
296
+ controlId?: Prisma.StringFilter<"ControlDocumentType"> | string;
297
+ formType?: Prisma.EnumEvidenceFormTypeFilter<"ControlDocumentType"> | $Enums.EvidenceFormType;
298
+ };
299
+ export type ControlDocumentTypeCreateManyControlInput = {
300
+ id?: string;
301
+ formType: $Enums.EvidenceFormType;
302
+ };
303
+ export type ControlDocumentTypeUpdateWithoutControlInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
306
+ };
307
+ export type ControlDocumentTypeUncheckedUpdateWithoutControlInput = {
308
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
309
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
310
+ };
311
+ export type ControlDocumentTypeUncheckedUpdateManyWithoutControlInput = {
312
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
313
+ formType?: Prisma.EnumEvidenceFormTypeFieldUpdateOperationsInput | $Enums.EvidenceFormType;
314
+ };
315
+ export type ControlDocumentTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
316
+ id?: boolean;
317
+ controlId?: boolean;
318
+ formType?: boolean;
319
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
320
+ }, ExtArgs["result"]["controlDocumentType"]>;
321
+ export type ControlDocumentTypeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
322
+ id?: boolean;
323
+ controlId?: boolean;
324
+ formType?: boolean;
325
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
326
+ }, ExtArgs["result"]["controlDocumentType"]>;
327
+ export type ControlDocumentTypeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
328
+ id?: boolean;
329
+ controlId?: boolean;
330
+ formType?: boolean;
331
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
332
+ }, ExtArgs["result"]["controlDocumentType"]>;
333
+ export type ControlDocumentTypeSelectScalar = {
334
+ id?: boolean;
335
+ controlId?: boolean;
336
+ formType?: boolean;
337
+ };
338
+ export type ControlDocumentTypeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "controlId" | "formType", ExtArgs["result"]["controlDocumentType"]>;
339
+ export type ControlDocumentTypeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
340
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
341
+ };
342
+ export type ControlDocumentTypeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
343
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
344
+ };
345
+ export type ControlDocumentTypeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
346
+ control?: boolean | Prisma.ControlDefaultArgs<ExtArgs>;
347
+ };
348
+ export type $ControlDocumentTypePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
349
+ name: "ControlDocumentType";
350
+ objects: {
351
+ control: Prisma.$ControlPayload<ExtArgs>;
352
+ };
353
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
354
+ id: string;
355
+ controlId: string;
356
+ formType: $Enums.EvidenceFormType;
357
+ }, ExtArgs["result"]["controlDocumentType"]>;
358
+ composites: {};
359
+ };
360
+ export type ControlDocumentTypeGetPayload<S extends boolean | null | undefined | ControlDocumentTypeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload, S>;
361
+ export type ControlDocumentTypeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ControlDocumentTypeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
362
+ select?: ControlDocumentTypeCountAggregateInputType | true;
363
+ };
364
+ export interface ControlDocumentTypeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
365
+ [K: symbol]: {
366
+ types: Prisma.TypeMap<ExtArgs>['model']['ControlDocumentType'];
367
+ meta: {
368
+ name: 'ControlDocumentType';
369
+ };
370
+ };
371
+ /**
372
+ * Find zero or one ControlDocumentType that matches the filter.
373
+ * @param {ControlDocumentTypeFindUniqueArgs} args - Arguments to find a ControlDocumentType
374
+ * @example
375
+ * // Get one ControlDocumentType
376
+ * const controlDocumentType = await prisma.controlDocumentType.findUnique({
377
+ * where: {
378
+ * // ... provide filter here
379
+ * }
380
+ * })
381
+ */
382
+ findUnique<T extends ControlDocumentTypeFindUniqueArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
383
+ /**
384
+ * Find one ControlDocumentType that matches the filter or throw an error with `error.code='P2025'`
385
+ * if no matches were found.
386
+ * @param {ControlDocumentTypeFindUniqueOrThrowArgs} args - Arguments to find a ControlDocumentType
387
+ * @example
388
+ * // Get one ControlDocumentType
389
+ * const controlDocumentType = await prisma.controlDocumentType.findUniqueOrThrow({
390
+ * where: {
391
+ * // ... provide filter here
392
+ * }
393
+ * })
394
+ */
395
+ findUniqueOrThrow<T extends ControlDocumentTypeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
396
+ /**
397
+ * Find the first ControlDocumentType that matches the filter.
398
+ * Note, that providing `undefined` is treated as the value not being there.
399
+ * Read more here: https://pris.ly/d/null-undefined
400
+ * @param {ControlDocumentTypeFindFirstArgs} args - Arguments to find a ControlDocumentType
401
+ * @example
402
+ * // Get one ControlDocumentType
403
+ * const controlDocumentType = await prisma.controlDocumentType.findFirst({
404
+ * where: {
405
+ * // ... provide filter here
406
+ * }
407
+ * })
408
+ */
409
+ findFirst<T extends ControlDocumentTypeFindFirstArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeFindFirstArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
410
+ /**
411
+ * Find the first ControlDocumentType that matches the filter or
412
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
413
+ * Note, that providing `undefined` is treated as the value not being there.
414
+ * Read more here: https://pris.ly/d/null-undefined
415
+ * @param {ControlDocumentTypeFindFirstOrThrowArgs} args - Arguments to find a ControlDocumentType
416
+ * @example
417
+ * // Get one ControlDocumentType
418
+ * const controlDocumentType = await prisma.controlDocumentType.findFirstOrThrow({
419
+ * where: {
420
+ * // ... provide filter here
421
+ * }
422
+ * })
423
+ */
424
+ findFirstOrThrow<T extends ControlDocumentTypeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
425
+ /**
426
+ * Find zero or more ControlDocumentTypes that matches the filter.
427
+ * Note, that providing `undefined` is treated as the value not being there.
428
+ * Read more here: https://pris.ly/d/null-undefined
429
+ * @param {ControlDocumentTypeFindManyArgs} args - Arguments to filter and select certain fields only.
430
+ * @example
431
+ * // Get all ControlDocumentTypes
432
+ * const controlDocumentTypes = await prisma.controlDocumentType.findMany()
433
+ *
434
+ * // Get first 10 ControlDocumentTypes
435
+ * const controlDocumentTypes = await prisma.controlDocumentType.findMany({ take: 10 })
436
+ *
437
+ * // Only select the `id`
438
+ * const controlDocumentTypeWithIdOnly = await prisma.controlDocumentType.findMany({ select: { id: true } })
439
+ *
440
+ */
441
+ findMany<T extends ControlDocumentTypeFindManyArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
442
+ /**
443
+ * Create a ControlDocumentType.
444
+ * @param {ControlDocumentTypeCreateArgs} args - Arguments to create a ControlDocumentType.
445
+ * @example
446
+ * // Create one ControlDocumentType
447
+ * const ControlDocumentType = await prisma.controlDocumentType.create({
448
+ * data: {
449
+ * // ... data to create a ControlDocumentType
450
+ * }
451
+ * })
452
+ *
453
+ */
454
+ create<T extends ControlDocumentTypeCreateArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeCreateArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
455
+ /**
456
+ * Create many ControlDocumentTypes.
457
+ * @param {ControlDocumentTypeCreateManyArgs} args - Arguments to create many ControlDocumentTypes.
458
+ * @example
459
+ * // Create many ControlDocumentTypes
460
+ * const controlDocumentType = await prisma.controlDocumentType.createMany({
461
+ * data: [
462
+ * // ... provide data here
463
+ * ]
464
+ * })
465
+ *
466
+ */
467
+ createMany<T extends ControlDocumentTypeCreateManyArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
468
+ /**
469
+ * Create many ControlDocumentTypes and returns the data saved in the database.
470
+ * @param {ControlDocumentTypeCreateManyAndReturnArgs} args - Arguments to create many ControlDocumentTypes.
471
+ * @example
472
+ * // Create many ControlDocumentTypes
473
+ * const controlDocumentType = await prisma.controlDocumentType.createManyAndReturn({
474
+ * data: [
475
+ * // ... provide data here
476
+ * ]
477
+ * })
478
+ *
479
+ * // Create many ControlDocumentTypes and only return the `id`
480
+ * const controlDocumentTypeWithIdOnly = await prisma.controlDocumentType.createManyAndReturn({
481
+ * select: { id: true },
482
+ * data: [
483
+ * // ... provide data here
484
+ * ]
485
+ * })
486
+ * Note, that providing `undefined` is treated as the value not being there.
487
+ * Read more here: https://pris.ly/d/null-undefined
488
+ *
489
+ */
490
+ createManyAndReturn<T extends ControlDocumentTypeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
491
+ /**
492
+ * Delete a ControlDocumentType.
493
+ * @param {ControlDocumentTypeDeleteArgs} args - Arguments to delete one ControlDocumentType.
494
+ * @example
495
+ * // Delete one ControlDocumentType
496
+ * const ControlDocumentType = await prisma.controlDocumentType.delete({
497
+ * where: {
498
+ * // ... filter to delete one ControlDocumentType
499
+ * }
500
+ * })
501
+ *
502
+ */
503
+ delete<T extends ControlDocumentTypeDeleteArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeDeleteArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
504
+ /**
505
+ * Update one ControlDocumentType.
506
+ * @param {ControlDocumentTypeUpdateArgs} args - Arguments to update one ControlDocumentType.
507
+ * @example
508
+ * // Update one ControlDocumentType
509
+ * const controlDocumentType = await prisma.controlDocumentType.update({
510
+ * where: {
511
+ * // ... provide filter here
512
+ * },
513
+ * data: {
514
+ * // ... provide data here
515
+ * }
516
+ * })
517
+ *
518
+ */
519
+ update<T extends ControlDocumentTypeUpdateArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeUpdateArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
520
+ /**
521
+ * Delete zero or more ControlDocumentTypes.
522
+ * @param {ControlDocumentTypeDeleteManyArgs} args - Arguments to filter ControlDocumentTypes to delete.
523
+ * @example
524
+ * // Delete a few ControlDocumentTypes
525
+ * const { count } = await prisma.controlDocumentType.deleteMany({
526
+ * where: {
527
+ * // ... provide filter here
528
+ * }
529
+ * })
530
+ *
531
+ */
532
+ deleteMany<T extends ControlDocumentTypeDeleteManyArgs>(args?: Prisma.SelectSubset<T, ControlDocumentTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
533
+ /**
534
+ * Update zero or more ControlDocumentTypes.
535
+ * Note, that providing `undefined` is treated as the value not being there.
536
+ * Read more here: https://pris.ly/d/null-undefined
537
+ * @param {ControlDocumentTypeUpdateManyArgs} args - Arguments to update one or more rows.
538
+ * @example
539
+ * // Update many ControlDocumentTypes
540
+ * const controlDocumentType = await prisma.controlDocumentType.updateMany({
541
+ * where: {
542
+ * // ... provide filter here
543
+ * },
544
+ * data: {
545
+ * // ... provide data here
546
+ * }
547
+ * })
548
+ *
549
+ */
550
+ updateMany<T extends ControlDocumentTypeUpdateManyArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
551
+ /**
552
+ * Update zero or more ControlDocumentTypes and returns the data updated in the database.
553
+ * @param {ControlDocumentTypeUpdateManyAndReturnArgs} args - Arguments to update many ControlDocumentTypes.
554
+ * @example
555
+ * // Update many ControlDocumentTypes
556
+ * const controlDocumentType = await prisma.controlDocumentType.updateManyAndReturn({
557
+ * where: {
558
+ * // ... provide filter here
559
+ * },
560
+ * data: [
561
+ * // ... provide data here
562
+ * ]
563
+ * })
564
+ *
565
+ * // Update zero or more ControlDocumentTypes and only return the `id`
566
+ * const controlDocumentTypeWithIdOnly = await prisma.controlDocumentType.updateManyAndReturn({
567
+ * select: { id: true },
568
+ * where: {
569
+ * // ... provide filter here
570
+ * },
571
+ * data: [
572
+ * // ... provide data here
573
+ * ]
574
+ * })
575
+ * Note, that providing `undefined` is treated as the value not being there.
576
+ * Read more here: https://pris.ly/d/null-undefined
577
+ *
578
+ */
579
+ updateManyAndReturn<T extends ControlDocumentTypeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
580
+ /**
581
+ * Create or update one ControlDocumentType.
582
+ * @param {ControlDocumentTypeUpsertArgs} args - Arguments to update or create a ControlDocumentType.
583
+ * @example
584
+ * // Update or create a ControlDocumentType
585
+ * const controlDocumentType = await prisma.controlDocumentType.upsert({
586
+ * create: {
587
+ * // ... data to create a ControlDocumentType
588
+ * },
589
+ * update: {
590
+ * // ... in case it already exists, update
591
+ * },
592
+ * where: {
593
+ * // ... the filter for the ControlDocumentType we want to update
594
+ * }
595
+ * })
596
+ */
597
+ upsert<T extends ControlDocumentTypeUpsertArgs>(args: Prisma.SelectSubset<T, ControlDocumentTypeUpsertArgs<ExtArgs>>): Prisma.Prisma__ControlDocumentTypeClient<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
598
+ /**
599
+ * Count the number of ControlDocumentTypes.
600
+ * Note, that providing `undefined` is treated as the value not being there.
601
+ * Read more here: https://pris.ly/d/null-undefined
602
+ * @param {ControlDocumentTypeCountArgs} args - Arguments to filter ControlDocumentTypes to count.
603
+ * @example
604
+ * // Count the number of ControlDocumentTypes
605
+ * const count = await prisma.controlDocumentType.count({
606
+ * where: {
607
+ * // ... the filter for the ControlDocumentTypes we want to count
608
+ * }
609
+ * })
610
+ **/
611
+ count<T extends ControlDocumentTypeCountArgs>(args?: Prisma.Subset<T, ControlDocumentTypeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ControlDocumentTypeCountAggregateOutputType> : number>;
612
+ /**
613
+ * Allows you to perform aggregations operations on a ControlDocumentType.
614
+ * Note, that providing `undefined` is treated as the value not being there.
615
+ * Read more here: https://pris.ly/d/null-undefined
616
+ * @param {ControlDocumentTypeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
617
+ * @example
618
+ * // Ordered by age ascending
619
+ * // Where email contains prisma.io
620
+ * // Limited to the 10 users
621
+ * const aggregations = await prisma.user.aggregate({
622
+ * _avg: {
623
+ * age: true,
624
+ * },
625
+ * where: {
626
+ * email: {
627
+ * contains: "prisma.io",
628
+ * },
629
+ * },
630
+ * orderBy: {
631
+ * age: "asc",
632
+ * },
633
+ * take: 10,
634
+ * })
635
+ **/
636
+ aggregate<T extends ControlDocumentTypeAggregateArgs>(args: Prisma.Subset<T, ControlDocumentTypeAggregateArgs>): Prisma.PrismaPromise<GetControlDocumentTypeAggregateType<T>>;
637
+ /**
638
+ * Group by ControlDocumentType.
639
+ * Note, that providing `undefined` is treated as the value not being there.
640
+ * Read more here: https://pris.ly/d/null-undefined
641
+ * @param {ControlDocumentTypeGroupByArgs} args - Group by arguments.
642
+ * @example
643
+ * // Group by city, order by createdAt, get count
644
+ * const result = await prisma.user.groupBy({
645
+ * by: ['city', 'createdAt'],
646
+ * orderBy: {
647
+ * createdAt: true
648
+ * },
649
+ * _count: {
650
+ * _all: true
651
+ * },
652
+ * })
653
+ *
654
+ **/
655
+ groupBy<T extends ControlDocumentTypeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
656
+ orderBy: ControlDocumentTypeGroupByArgs['orderBy'];
657
+ } : {
658
+ orderBy?: ControlDocumentTypeGroupByArgs['orderBy'];
659
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
660
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
661
+ Error,
662
+ 'Field ',
663
+ P,
664
+ ` in "having" needs to be provided in "by"`
665
+ ];
666
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
667
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
668
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
669
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
670
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
671
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
672
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ControlDocumentTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetControlDocumentTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
673
+ /**
674
+ * Fields of the ControlDocumentType model
675
+ */
676
+ readonly fields: ControlDocumentTypeFieldRefs;
677
+ }
678
+ /**
679
+ * The delegate class that acts as a "Promise-like" for ControlDocumentType.
680
+ * Why is this prefixed with `Prisma__`?
681
+ * Because we want to prevent naming conflicts as mentioned in
682
+ * https://github.com/prisma/prisma-client-js/issues/707
683
+ */
684
+ export interface Prisma__ControlDocumentTypeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
685
+ readonly [Symbol.toStringTag]: "PrismaPromise";
686
+ control<T extends Prisma.ControlDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ControlDefaultArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
687
+ /**
688
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
689
+ * @param onfulfilled The callback to execute when the Promise is resolved.
690
+ * @param onrejected The callback to execute when the Promise is rejected.
691
+ * @returns A Promise for the completion of which ever callback is executed.
692
+ */
693
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
694
+ /**
695
+ * Attaches a callback for only the rejection of the Promise.
696
+ * @param onrejected The callback to execute when the Promise is rejected.
697
+ * @returns A Promise for the completion of the callback.
698
+ */
699
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
700
+ /**
701
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
702
+ * resolved value cannot be modified from the callback.
703
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
704
+ * @returns A Promise for the completion of the callback.
705
+ */
706
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
707
+ }
708
+ /**
709
+ * Fields of the ControlDocumentType model
710
+ */
711
+ export interface ControlDocumentTypeFieldRefs {
712
+ readonly id: Prisma.FieldRef<"ControlDocumentType", 'String'>;
713
+ readonly controlId: Prisma.FieldRef<"ControlDocumentType", 'String'>;
714
+ readonly formType: Prisma.FieldRef<"ControlDocumentType", 'EvidenceFormType'>;
715
+ }
716
+ /**
717
+ * ControlDocumentType findUnique
718
+ */
719
+ export type ControlDocumentTypeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
720
+ /**
721
+ * Select specific fields to fetch from the ControlDocumentType
722
+ */
723
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
724
+ /**
725
+ * Omit specific fields from the ControlDocumentType
726
+ */
727
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
728
+ /**
729
+ * Choose, which related nodes to fetch as well
730
+ */
731
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
732
+ /**
733
+ * Filter, which ControlDocumentType to fetch.
734
+ */
735
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
736
+ };
737
+ /**
738
+ * ControlDocumentType findUniqueOrThrow
739
+ */
740
+ export type ControlDocumentTypeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
741
+ /**
742
+ * Select specific fields to fetch from the ControlDocumentType
743
+ */
744
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
745
+ /**
746
+ * Omit specific fields from the ControlDocumentType
747
+ */
748
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
749
+ /**
750
+ * Choose, which related nodes to fetch as well
751
+ */
752
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
753
+ /**
754
+ * Filter, which ControlDocumentType to fetch.
755
+ */
756
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
757
+ };
758
+ /**
759
+ * ControlDocumentType findFirst
760
+ */
761
+ export type ControlDocumentTypeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
762
+ /**
763
+ * Select specific fields to fetch from the ControlDocumentType
764
+ */
765
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
766
+ /**
767
+ * Omit specific fields from the ControlDocumentType
768
+ */
769
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
770
+ /**
771
+ * Choose, which related nodes to fetch as well
772
+ */
773
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
774
+ /**
775
+ * Filter, which ControlDocumentType to fetch.
776
+ */
777
+ where?: Prisma.ControlDocumentTypeWhereInput;
778
+ /**
779
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
780
+ *
781
+ * Determine the order of ControlDocumentTypes to fetch.
782
+ */
783
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithRelationInput | Prisma.ControlDocumentTypeOrderByWithRelationInput[];
784
+ /**
785
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
786
+ *
787
+ * Sets the position for searching for ControlDocumentTypes.
788
+ */
789
+ cursor?: Prisma.ControlDocumentTypeWhereUniqueInput;
790
+ /**
791
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
792
+ *
793
+ * Take `±n` ControlDocumentTypes from the position of the cursor.
794
+ */
795
+ take?: number;
796
+ /**
797
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
798
+ *
799
+ * Skip the first `n` ControlDocumentTypes.
800
+ */
801
+ skip?: number;
802
+ /**
803
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
804
+ *
805
+ * Filter by unique combinations of ControlDocumentTypes.
806
+ */
807
+ distinct?: Prisma.ControlDocumentTypeScalarFieldEnum | Prisma.ControlDocumentTypeScalarFieldEnum[];
808
+ };
809
+ /**
810
+ * ControlDocumentType findFirstOrThrow
811
+ */
812
+ export type ControlDocumentTypeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
813
+ /**
814
+ * Select specific fields to fetch from the ControlDocumentType
815
+ */
816
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
817
+ /**
818
+ * Omit specific fields from the ControlDocumentType
819
+ */
820
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
821
+ /**
822
+ * Choose, which related nodes to fetch as well
823
+ */
824
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
825
+ /**
826
+ * Filter, which ControlDocumentType to fetch.
827
+ */
828
+ where?: Prisma.ControlDocumentTypeWhereInput;
829
+ /**
830
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
831
+ *
832
+ * Determine the order of ControlDocumentTypes to fetch.
833
+ */
834
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithRelationInput | Prisma.ControlDocumentTypeOrderByWithRelationInput[];
835
+ /**
836
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
837
+ *
838
+ * Sets the position for searching for ControlDocumentTypes.
839
+ */
840
+ cursor?: Prisma.ControlDocumentTypeWhereUniqueInput;
841
+ /**
842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
843
+ *
844
+ * Take `±n` ControlDocumentTypes from the position of the cursor.
845
+ */
846
+ take?: number;
847
+ /**
848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
849
+ *
850
+ * Skip the first `n` ControlDocumentTypes.
851
+ */
852
+ skip?: number;
853
+ /**
854
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
855
+ *
856
+ * Filter by unique combinations of ControlDocumentTypes.
857
+ */
858
+ distinct?: Prisma.ControlDocumentTypeScalarFieldEnum | Prisma.ControlDocumentTypeScalarFieldEnum[];
859
+ };
860
+ /**
861
+ * ControlDocumentType findMany
862
+ */
863
+ export type ControlDocumentTypeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
864
+ /**
865
+ * Select specific fields to fetch from the ControlDocumentType
866
+ */
867
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
868
+ /**
869
+ * Omit specific fields from the ControlDocumentType
870
+ */
871
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
872
+ /**
873
+ * Choose, which related nodes to fetch as well
874
+ */
875
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
876
+ /**
877
+ * Filter, which ControlDocumentTypes to fetch.
878
+ */
879
+ where?: Prisma.ControlDocumentTypeWhereInput;
880
+ /**
881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
882
+ *
883
+ * Determine the order of ControlDocumentTypes to fetch.
884
+ */
885
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithRelationInput | Prisma.ControlDocumentTypeOrderByWithRelationInput[];
886
+ /**
887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
888
+ *
889
+ * Sets the position for listing ControlDocumentTypes.
890
+ */
891
+ cursor?: Prisma.ControlDocumentTypeWhereUniqueInput;
892
+ /**
893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
894
+ *
895
+ * Take `±n` ControlDocumentTypes from the position of the cursor.
896
+ */
897
+ take?: number;
898
+ /**
899
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
900
+ *
901
+ * Skip the first `n` ControlDocumentTypes.
902
+ */
903
+ skip?: number;
904
+ /**
905
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
906
+ *
907
+ * Filter by unique combinations of ControlDocumentTypes.
908
+ */
909
+ distinct?: Prisma.ControlDocumentTypeScalarFieldEnum | Prisma.ControlDocumentTypeScalarFieldEnum[];
910
+ };
911
+ /**
912
+ * ControlDocumentType create
913
+ */
914
+ export type ControlDocumentTypeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
915
+ /**
916
+ * Select specific fields to fetch from the ControlDocumentType
917
+ */
918
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
919
+ /**
920
+ * Omit specific fields from the ControlDocumentType
921
+ */
922
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
923
+ /**
924
+ * Choose, which related nodes to fetch as well
925
+ */
926
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
927
+ /**
928
+ * The data needed to create a ControlDocumentType.
929
+ */
930
+ data: Prisma.XOR<Prisma.ControlDocumentTypeCreateInput, Prisma.ControlDocumentTypeUncheckedCreateInput>;
931
+ };
932
+ /**
933
+ * ControlDocumentType createMany
934
+ */
935
+ export type ControlDocumentTypeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
+ /**
937
+ * The data used to create many ControlDocumentTypes.
938
+ */
939
+ data: Prisma.ControlDocumentTypeCreateManyInput | Prisma.ControlDocumentTypeCreateManyInput[];
940
+ skipDuplicates?: boolean;
941
+ };
942
+ /**
943
+ * ControlDocumentType createManyAndReturn
944
+ */
945
+ export type ControlDocumentTypeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
946
+ /**
947
+ * Select specific fields to fetch from the ControlDocumentType
948
+ */
949
+ select?: Prisma.ControlDocumentTypeSelectCreateManyAndReturn<ExtArgs> | null;
950
+ /**
951
+ * Omit specific fields from the ControlDocumentType
952
+ */
953
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
954
+ /**
955
+ * The data used to create many ControlDocumentTypes.
956
+ */
957
+ data: Prisma.ControlDocumentTypeCreateManyInput | Prisma.ControlDocumentTypeCreateManyInput[];
958
+ skipDuplicates?: boolean;
959
+ /**
960
+ * Choose, which related nodes to fetch as well
961
+ */
962
+ include?: Prisma.ControlDocumentTypeIncludeCreateManyAndReturn<ExtArgs> | null;
963
+ };
964
+ /**
965
+ * ControlDocumentType update
966
+ */
967
+ export type ControlDocumentTypeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
968
+ /**
969
+ * Select specific fields to fetch from the ControlDocumentType
970
+ */
971
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
972
+ /**
973
+ * Omit specific fields from the ControlDocumentType
974
+ */
975
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
976
+ /**
977
+ * Choose, which related nodes to fetch as well
978
+ */
979
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
980
+ /**
981
+ * The data needed to update a ControlDocumentType.
982
+ */
983
+ data: Prisma.XOR<Prisma.ControlDocumentTypeUpdateInput, Prisma.ControlDocumentTypeUncheckedUpdateInput>;
984
+ /**
985
+ * Choose, which ControlDocumentType to update.
986
+ */
987
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
988
+ };
989
+ /**
990
+ * ControlDocumentType updateMany
991
+ */
992
+ export type ControlDocumentTypeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
993
+ /**
994
+ * The data used to update ControlDocumentTypes.
995
+ */
996
+ data: Prisma.XOR<Prisma.ControlDocumentTypeUpdateManyMutationInput, Prisma.ControlDocumentTypeUncheckedUpdateManyInput>;
997
+ /**
998
+ * Filter which ControlDocumentTypes to update
999
+ */
1000
+ where?: Prisma.ControlDocumentTypeWhereInput;
1001
+ /**
1002
+ * Limit how many ControlDocumentTypes to update.
1003
+ */
1004
+ limit?: number;
1005
+ };
1006
+ /**
1007
+ * ControlDocumentType updateManyAndReturn
1008
+ */
1009
+ export type ControlDocumentTypeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the ControlDocumentType
1012
+ */
1013
+ select?: Prisma.ControlDocumentTypeSelectUpdateManyAndReturn<ExtArgs> | null;
1014
+ /**
1015
+ * Omit specific fields from the ControlDocumentType
1016
+ */
1017
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
1018
+ /**
1019
+ * The data used to update ControlDocumentTypes.
1020
+ */
1021
+ data: Prisma.XOR<Prisma.ControlDocumentTypeUpdateManyMutationInput, Prisma.ControlDocumentTypeUncheckedUpdateManyInput>;
1022
+ /**
1023
+ * Filter which ControlDocumentTypes to update
1024
+ */
1025
+ where?: Prisma.ControlDocumentTypeWhereInput;
1026
+ /**
1027
+ * Limit how many ControlDocumentTypes to update.
1028
+ */
1029
+ limit?: number;
1030
+ /**
1031
+ * Choose, which related nodes to fetch as well
1032
+ */
1033
+ include?: Prisma.ControlDocumentTypeIncludeUpdateManyAndReturn<ExtArgs> | null;
1034
+ };
1035
+ /**
1036
+ * ControlDocumentType upsert
1037
+ */
1038
+ export type ControlDocumentTypeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the ControlDocumentType
1041
+ */
1042
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
1043
+ /**
1044
+ * Omit specific fields from the ControlDocumentType
1045
+ */
1046
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
1047
+ /**
1048
+ * Choose, which related nodes to fetch as well
1049
+ */
1050
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
1051
+ /**
1052
+ * The filter to search for the ControlDocumentType to update in case it exists.
1053
+ */
1054
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
1055
+ /**
1056
+ * In case the ControlDocumentType found by the `where` argument doesn't exist, create a new ControlDocumentType with this data.
1057
+ */
1058
+ create: Prisma.XOR<Prisma.ControlDocumentTypeCreateInput, Prisma.ControlDocumentTypeUncheckedCreateInput>;
1059
+ /**
1060
+ * In case the ControlDocumentType was found with the provided `where` argument, update it with this data.
1061
+ */
1062
+ update: Prisma.XOR<Prisma.ControlDocumentTypeUpdateInput, Prisma.ControlDocumentTypeUncheckedUpdateInput>;
1063
+ };
1064
+ /**
1065
+ * ControlDocumentType delete
1066
+ */
1067
+ export type ControlDocumentTypeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1068
+ /**
1069
+ * Select specific fields to fetch from the ControlDocumentType
1070
+ */
1071
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
1072
+ /**
1073
+ * Omit specific fields from the ControlDocumentType
1074
+ */
1075
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
1076
+ /**
1077
+ * Choose, which related nodes to fetch as well
1078
+ */
1079
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
1080
+ /**
1081
+ * Filter which ControlDocumentType to delete.
1082
+ */
1083
+ where: Prisma.ControlDocumentTypeWhereUniqueInput;
1084
+ };
1085
+ /**
1086
+ * ControlDocumentType deleteMany
1087
+ */
1088
+ export type ControlDocumentTypeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Filter which ControlDocumentTypes to delete
1091
+ */
1092
+ where?: Prisma.ControlDocumentTypeWhereInput;
1093
+ /**
1094
+ * Limit how many ControlDocumentTypes to delete.
1095
+ */
1096
+ limit?: number;
1097
+ };
1098
+ /**
1099
+ * ControlDocumentType without action
1100
+ */
1101
+ export type ControlDocumentTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1102
+ /**
1103
+ * Select specific fields to fetch from the ControlDocumentType
1104
+ */
1105
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
1106
+ /**
1107
+ * Omit specific fields from the ControlDocumentType
1108
+ */
1109
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
1110
+ /**
1111
+ * Choose, which related nodes to fetch as well
1112
+ */
1113
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
1114
+ };
1115
+ //# sourceMappingURL=ControlDocumentType.d.ts.map