@trycompai/db 1.3.22 → 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 +455 -39
  269. package/package.json +56 -55
@@ -0,0 +1,1965 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Control
5
+ *
6
+ */
7
+ export type ControlModel = runtime.Types.Result.DefaultSelection<Prisma.$ControlPayload>;
8
+ export type AggregateControl = {
9
+ _count: ControlCountAggregateOutputType | null;
10
+ _min: ControlMinAggregateOutputType | null;
11
+ _max: ControlMaxAggregateOutputType | null;
12
+ };
13
+ export type ControlMinAggregateOutputType = {
14
+ id: string | null;
15
+ name: string | null;
16
+ description: string | null;
17
+ lastReviewDate: Date | null;
18
+ nextReviewDate: Date | null;
19
+ organizationId: string | null;
20
+ controlTemplateId: string | null;
21
+ };
22
+ export type ControlMaxAggregateOutputType = {
23
+ id: string | null;
24
+ name: string | null;
25
+ description: string | null;
26
+ lastReviewDate: Date | null;
27
+ nextReviewDate: Date | null;
28
+ organizationId: string | null;
29
+ controlTemplateId: string | null;
30
+ };
31
+ export type ControlCountAggregateOutputType = {
32
+ id: number;
33
+ name: number;
34
+ description: number;
35
+ lastReviewDate: number;
36
+ nextReviewDate: number;
37
+ organizationId: number;
38
+ controlTemplateId: number;
39
+ _all: number;
40
+ };
41
+ export type ControlMinAggregateInputType = {
42
+ id?: true;
43
+ name?: true;
44
+ description?: true;
45
+ lastReviewDate?: true;
46
+ nextReviewDate?: true;
47
+ organizationId?: true;
48
+ controlTemplateId?: true;
49
+ };
50
+ export type ControlMaxAggregateInputType = {
51
+ id?: true;
52
+ name?: true;
53
+ description?: true;
54
+ lastReviewDate?: true;
55
+ nextReviewDate?: true;
56
+ organizationId?: true;
57
+ controlTemplateId?: true;
58
+ };
59
+ export type ControlCountAggregateInputType = {
60
+ id?: true;
61
+ name?: true;
62
+ description?: true;
63
+ lastReviewDate?: true;
64
+ nextReviewDate?: true;
65
+ organizationId?: true;
66
+ controlTemplateId?: true;
67
+ _all?: true;
68
+ };
69
+ export type ControlAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which Control to aggregate.
72
+ */
73
+ where?: Prisma.ControlWhereInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of Controls to fetch.
78
+ */
79
+ orderBy?: Prisma.ControlOrderByWithRelationInput | Prisma.ControlOrderByWithRelationInput[];
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.ControlWhereUniqueInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` Controls from the position of the cursor.
90
+ */
91
+ take?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` Controls.
96
+ */
97
+ skip?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned Controls
102
+ **/
103
+ _count?: true | ControlCountAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: ControlMinAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: ControlMaxAggregateInputType;
116
+ };
117
+ export type GetControlAggregateType<T extends ControlAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateControl]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateControl[P]> : Prisma.GetScalarType<T[P], AggregateControl[P]>;
119
+ };
120
+ export type ControlGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.ControlWhereInput;
122
+ orderBy?: Prisma.ControlOrderByWithAggregationInput | Prisma.ControlOrderByWithAggregationInput[];
123
+ by: Prisma.ControlScalarFieldEnum[] | Prisma.ControlScalarFieldEnum;
124
+ having?: Prisma.ControlScalarWhereWithAggregatesInput;
125
+ take?: number;
126
+ skip?: number;
127
+ _count?: ControlCountAggregateInputType | true;
128
+ _min?: ControlMinAggregateInputType;
129
+ _max?: ControlMaxAggregateInputType;
130
+ };
131
+ export type ControlGroupByOutputType = {
132
+ id: string;
133
+ name: string;
134
+ description: string;
135
+ lastReviewDate: Date | null;
136
+ nextReviewDate: Date | null;
137
+ organizationId: string;
138
+ controlTemplateId: string | null;
139
+ _count: ControlCountAggregateOutputType | null;
140
+ _min: ControlMinAggregateOutputType | null;
141
+ _max: ControlMaxAggregateOutputType | null;
142
+ };
143
+ export type GetControlGroupByPayload<T extends ControlGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ControlGroupByOutputType, T['by']> & {
144
+ [P in ((keyof T) & (keyof ControlGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ControlGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ControlGroupByOutputType[P]>;
145
+ }>>;
146
+ export type ControlWhereInput = {
147
+ AND?: Prisma.ControlWhereInput | Prisma.ControlWhereInput[];
148
+ OR?: Prisma.ControlWhereInput[];
149
+ NOT?: Prisma.ControlWhereInput | Prisma.ControlWhereInput[];
150
+ id?: Prisma.StringFilter<"Control"> | string;
151
+ name?: Prisma.StringFilter<"Control"> | string;
152
+ description?: Prisma.StringFilter<"Control"> | string;
153
+ lastReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
154
+ nextReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
155
+ organizationId?: Prisma.StringFilter<"Control"> | string;
156
+ controlTemplateId?: Prisma.StringNullableFilter<"Control"> | string | null;
157
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
158
+ requirementsMapped?: Prisma.RequirementMapListRelationFilter;
159
+ tasks?: Prisma.TaskListRelationFilter;
160
+ policies?: Prisma.PolicyListRelationFilter;
161
+ controlTemplate?: Prisma.XOR<Prisma.FrameworkEditorControlTemplateNullableScalarRelationFilter, Prisma.FrameworkEditorControlTemplateWhereInput> | null;
162
+ controlDocumentTypes?: Prisma.ControlDocumentTypeListRelationFilter;
163
+ };
164
+ export type ControlOrderByWithRelationInput = {
165
+ id?: Prisma.SortOrder;
166
+ name?: Prisma.SortOrder;
167
+ description?: Prisma.SortOrder;
168
+ lastReviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
169
+ nextReviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
170
+ organizationId?: Prisma.SortOrder;
171
+ controlTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
172
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
173
+ requirementsMapped?: Prisma.RequirementMapOrderByRelationAggregateInput;
174
+ tasks?: Prisma.TaskOrderByRelationAggregateInput;
175
+ policies?: Prisma.PolicyOrderByRelationAggregateInput;
176
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateOrderByWithRelationInput;
177
+ controlDocumentTypes?: Prisma.ControlDocumentTypeOrderByRelationAggregateInput;
178
+ };
179
+ export type ControlWhereUniqueInput = Prisma.AtLeast<{
180
+ id?: string;
181
+ AND?: Prisma.ControlWhereInput | Prisma.ControlWhereInput[];
182
+ OR?: Prisma.ControlWhereInput[];
183
+ NOT?: Prisma.ControlWhereInput | Prisma.ControlWhereInput[];
184
+ name?: Prisma.StringFilter<"Control"> | string;
185
+ description?: Prisma.StringFilter<"Control"> | string;
186
+ lastReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
187
+ nextReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
188
+ organizationId?: Prisma.StringFilter<"Control"> | string;
189
+ controlTemplateId?: Prisma.StringNullableFilter<"Control"> | string | null;
190
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
191
+ requirementsMapped?: Prisma.RequirementMapListRelationFilter;
192
+ tasks?: Prisma.TaskListRelationFilter;
193
+ policies?: Prisma.PolicyListRelationFilter;
194
+ controlTemplate?: Prisma.XOR<Prisma.FrameworkEditorControlTemplateNullableScalarRelationFilter, Prisma.FrameworkEditorControlTemplateWhereInput> | null;
195
+ controlDocumentTypes?: Prisma.ControlDocumentTypeListRelationFilter;
196
+ }, "id">;
197
+ export type ControlOrderByWithAggregationInput = {
198
+ id?: Prisma.SortOrder;
199
+ name?: Prisma.SortOrder;
200
+ description?: Prisma.SortOrder;
201
+ lastReviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
202
+ nextReviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
203
+ organizationId?: Prisma.SortOrder;
204
+ controlTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
205
+ _count?: Prisma.ControlCountOrderByAggregateInput;
206
+ _max?: Prisma.ControlMaxOrderByAggregateInput;
207
+ _min?: Prisma.ControlMinOrderByAggregateInput;
208
+ };
209
+ export type ControlScalarWhereWithAggregatesInput = {
210
+ AND?: Prisma.ControlScalarWhereWithAggregatesInput | Prisma.ControlScalarWhereWithAggregatesInput[];
211
+ OR?: Prisma.ControlScalarWhereWithAggregatesInput[];
212
+ NOT?: Prisma.ControlScalarWhereWithAggregatesInput | Prisma.ControlScalarWhereWithAggregatesInput[];
213
+ id?: Prisma.StringWithAggregatesFilter<"Control"> | string;
214
+ name?: Prisma.StringWithAggregatesFilter<"Control"> | string;
215
+ description?: Prisma.StringWithAggregatesFilter<"Control"> | string;
216
+ lastReviewDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Control"> | Date | string | null;
217
+ nextReviewDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Control"> | Date | string | null;
218
+ organizationId?: Prisma.StringWithAggregatesFilter<"Control"> | string;
219
+ controlTemplateId?: Prisma.StringNullableWithAggregatesFilter<"Control"> | string | null;
220
+ };
221
+ export type ControlCreateInput = {
222
+ id?: string;
223
+ name: string;
224
+ description: string;
225
+ lastReviewDate?: Date | string | null;
226
+ nextReviewDate?: Date | string | null;
227
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
228
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
229
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
230
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
231
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
232
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
233
+ };
234
+ export type ControlUncheckedCreateInput = {
235
+ id?: string;
236
+ name: string;
237
+ description: string;
238
+ lastReviewDate?: Date | string | null;
239
+ nextReviewDate?: Date | string | null;
240
+ organizationId: string;
241
+ controlTemplateId?: string | null;
242
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
243
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
244
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
245
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
246
+ };
247
+ export type ControlUpdateInput = {
248
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
249
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
250
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
251
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
252
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
253
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
254
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
255
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
256
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
257
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
258
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
259
+ };
260
+ export type ControlUncheckedUpdateInput = {
261
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
262
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
263
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
264
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
265
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
266
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
268
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
269
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
270
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
271
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
272
+ };
273
+ export type ControlCreateManyInput = {
274
+ id?: string;
275
+ name: string;
276
+ description: string;
277
+ lastReviewDate?: Date | string | null;
278
+ nextReviewDate?: Date | string | null;
279
+ organizationId: string;
280
+ controlTemplateId?: string | null;
281
+ };
282
+ export type ControlUpdateManyMutationInput = {
283
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
287
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
288
+ };
289
+ export type ControlUncheckedUpdateManyInput = {
290
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
294
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
295
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
297
+ };
298
+ export type ControlScalarRelationFilter = {
299
+ is?: Prisma.ControlWhereInput;
300
+ isNot?: Prisma.ControlWhereInput;
301
+ };
302
+ export type ControlCountOrderByAggregateInput = {
303
+ id?: Prisma.SortOrder;
304
+ name?: Prisma.SortOrder;
305
+ description?: Prisma.SortOrder;
306
+ lastReviewDate?: Prisma.SortOrder;
307
+ nextReviewDate?: Prisma.SortOrder;
308
+ organizationId?: Prisma.SortOrder;
309
+ controlTemplateId?: Prisma.SortOrder;
310
+ };
311
+ export type ControlMaxOrderByAggregateInput = {
312
+ id?: Prisma.SortOrder;
313
+ name?: Prisma.SortOrder;
314
+ description?: Prisma.SortOrder;
315
+ lastReviewDate?: Prisma.SortOrder;
316
+ nextReviewDate?: Prisma.SortOrder;
317
+ organizationId?: Prisma.SortOrder;
318
+ controlTemplateId?: Prisma.SortOrder;
319
+ };
320
+ export type ControlMinOrderByAggregateInput = {
321
+ id?: Prisma.SortOrder;
322
+ name?: Prisma.SortOrder;
323
+ description?: Prisma.SortOrder;
324
+ lastReviewDate?: Prisma.SortOrder;
325
+ nextReviewDate?: Prisma.SortOrder;
326
+ organizationId?: Prisma.SortOrder;
327
+ controlTemplateId?: Prisma.SortOrder;
328
+ };
329
+ export type ControlListRelationFilter = {
330
+ every?: Prisma.ControlWhereInput;
331
+ some?: Prisma.ControlWhereInput;
332
+ none?: Prisma.ControlWhereInput;
333
+ };
334
+ export type ControlOrderByRelationAggregateInput = {
335
+ _count?: Prisma.SortOrder;
336
+ };
337
+ export type ControlCreateNestedOneWithoutControlDocumentTypesInput = {
338
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedCreateWithoutControlDocumentTypesInput>;
339
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlDocumentTypesInput;
340
+ connect?: Prisma.ControlWhereUniqueInput;
341
+ };
342
+ export type ControlUpdateOneRequiredWithoutControlDocumentTypesNestedInput = {
343
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedCreateWithoutControlDocumentTypesInput>;
344
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlDocumentTypesInput;
345
+ upsert?: Prisma.ControlUpsertWithoutControlDocumentTypesInput;
346
+ connect?: Prisma.ControlWhereUniqueInput;
347
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ControlUpdateToOneWithWhereWithoutControlDocumentTypesInput, Prisma.ControlUpdateWithoutControlDocumentTypesInput>, Prisma.ControlUncheckedUpdateWithoutControlDocumentTypesInput>;
348
+ };
349
+ export type ControlCreateNestedManyWithoutControlTemplateInput = {
350
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput> | Prisma.ControlCreateWithoutControlTemplateInput[] | Prisma.ControlUncheckedCreateWithoutControlTemplateInput[];
351
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlTemplateInput | Prisma.ControlCreateOrConnectWithoutControlTemplateInput[];
352
+ createMany?: Prisma.ControlCreateManyControlTemplateInputEnvelope;
353
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
354
+ };
355
+ export type ControlUncheckedCreateNestedManyWithoutControlTemplateInput = {
356
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput> | Prisma.ControlCreateWithoutControlTemplateInput[] | Prisma.ControlUncheckedCreateWithoutControlTemplateInput[];
357
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlTemplateInput | Prisma.ControlCreateOrConnectWithoutControlTemplateInput[];
358
+ createMany?: Prisma.ControlCreateManyControlTemplateInputEnvelope;
359
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
360
+ };
361
+ export type ControlUpdateManyWithoutControlTemplateNestedInput = {
362
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput> | Prisma.ControlCreateWithoutControlTemplateInput[] | Prisma.ControlUncheckedCreateWithoutControlTemplateInput[];
363
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlTemplateInput | Prisma.ControlCreateOrConnectWithoutControlTemplateInput[];
364
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutControlTemplateInput | Prisma.ControlUpsertWithWhereUniqueWithoutControlTemplateInput[];
365
+ createMany?: Prisma.ControlCreateManyControlTemplateInputEnvelope;
366
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
367
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
368
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
369
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
370
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutControlTemplateInput | Prisma.ControlUpdateWithWhereUniqueWithoutControlTemplateInput[];
371
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutControlTemplateInput | Prisma.ControlUpdateManyWithWhereWithoutControlTemplateInput[];
372
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
373
+ };
374
+ export type ControlUncheckedUpdateManyWithoutControlTemplateNestedInput = {
375
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput> | Prisma.ControlCreateWithoutControlTemplateInput[] | Prisma.ControlUncheckedCreateWithoutControlTemplateInput[];
376
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutControlTemplateInput | Prisma.ControlCreateOrConnectWithoutControlTemplateInput[];
377
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutControlTemplateInput | Prisma.ControlUpsertWithWhereUniqueWithoutControlTemplateInput[];
378
+ createMany?: Prisma.ControlCreateManyControlTemplateInputEnvelope;
379
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
380
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
381
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
382
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
383
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutControlTemplateInput | Prisma.ControlUpdateWithWhereUniqueWithoutControlTemplateInput[];
384
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutControlTemplateInput | Prisma.ControlUpdateManyWithWhereWithoutControlTemplateInput[];
385
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
386
+ };
387
+ export type ControlCreateNestedManyWithoutOrganizationInput = {
388
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput> | Prisma.ControlCreateWithoutOrganizationInput[] | Prisma.ControlUncheckedCreateWithoutOrganizationInput[];
389
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutOrganizationInput | Prisma.ControlCreateOrConnectWithoutOrganizationInput[];
390
+ createMany?: Prisma.ControlCreateManyOrganizationInputEnvelope;
391
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
392
+ };
393
+ export type ControlUncheckedCreateNestedManyWithoutOrganizationInput = {
394
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput> | Prisma.ControlCreateWithoutOrganizationInput[] | Prisma.ControlUncheckedCreateWithoutOrganizationInput[];
395
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutOrganizationInput | Prisma.ControlCreateOrConnectWithoutOrganizationInput[];
396
+ createMany?: Prisma.ControlCreateManyOrganizationInputEnvelope;
397
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
398
+ };
399
+ export type ControlUpdateManyWithoutOrganizationNestedInput = {
400
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput> | Prisma.ControlCreateWithoutOrganizationInput[] | Prisma.ControlUncheckedCreateWithoutOrganizationInput[];
401
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutOrganizationInput | Prisma.ControlCreateOrConnectWithoutOrganizationInput[];
402
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ControlUpsertWithWhereUniqueWithoutOrganizationInput[];
403
+ createMany?: Prisma.ControlCreateManyOrganizationInputEnvelope;
404
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
405
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
406
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
407
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
408
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ControlUpdateWithWhereUniqueWithoutOrganizationInput[];
409
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutOrganizationInput | Prisma.ControlUpdateManyWithWhereWithoutOrganizationInput[];
410
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
411
+ };
412
+ export type ControlUncheckedUpdateManyWithoutOrganizationNestedInput = {
413
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput> | Prisma.ControlCreateWithoutOrganizationInput[] | Prisma.ControlUncheckedCreateWithoutOrganizationInput[];
414
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutOrganizationInput | Prisma.ControlCreateOrConnectWithoutOrganizationInput[];
415
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ControlUpsertWithWhereUniqueWithoutOrganizationInput[];
416
+ createMany?: Prisma.ControlCreateManyOrganizationInputEnvelope;
417
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
418
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
419
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
420
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
421
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ControlUpdateWithWhereUniqueWithoutOrganizationInput[];
422
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutOrganizationInput | Prisma.ControlUpdateManyWithWhereWithoutOrganizationInput[];
423
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
424
+ };
425
+ export type ControlCreateNestedManyWithoutPoliciesInput = {
426
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput> | Prisma.ControlCreateWithoutPoliciesInput[] | Prisma.ControlUncheckedCreateWithoutPoliciesInput[];
427
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutPoliciesInput | Prisma.ControlCreateOrConnectWithoutPoliciesInput[];
428
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
429
+ };
430
+ export type ControlUncheckedCreateNestedManyWithoutPoliciesInput = {
431
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput> | Prisma.ControlCreateWithoutPoliciesInput[] | Prisma.ControlUncheckedCreateWithoutPoliciesInput[];
432
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutPoliciesInput | Prisma.ControlCreateOrConnectWithoutPoliciesInput[];
433
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
434
+ };
435
+ export type ControlUpdateManyWithoutPoliciesNestedInput = {
436
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput> | Prisma.ControlCreateWithoutPoliciesInput[] | Prisma.ControlUncheckedCreateWithoutPoliciesInput[];
437
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutPoliciesInput | Prisma.ControlCreateOrConnectWithoutPoliciesInput[];
438
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutPoliciesInput | Prisma.ControlUpsertWithWhereUniqueWithoutPoliciesInput[];
439
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
440
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
441
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
442
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
443
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutPoliciesInput | Prisma.ControlUpdateWithWhereUniqueWithoutPoliciesInput[];
444
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutPoliciesInput | Prisma.ControlUpdateManyWithWhereWithoutPoliciesInput[];
445
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
446
+ };
447
+ export type ControlUncheckedUpdateManyWithoutPoliciesNestedInput = {
448
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput> | Prisma.ControlCreateWithoutPoliciesInput[] | Prisma.ControlUncheckedCreateWithoutPoliciesInput[];
449
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutPoliciesInput | Prisma.ControlCreateOrConnectWithoutPoliciesInput[];
450
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutPoliciesInput | Prisma.ControlUpsertWithWhereUniqueWithoutPoliciesInput[];
451
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
452
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
453
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
454
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
455
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutPoliciesInput | Prisma.ControlUpdateWithWhereUniqueWithoutPoliciesInput[];
456
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutPoliciesInput | Prisma.ControlUpdateManyWithWhereWithoutPoliciesInput[];
457
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
458
+ };
459
+ export type ControlCreateNestedOneWithoutRequirementsMappedInput = {
460
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutRequirementsMappedInput, Prisma.ControlUncheckedCreateWithoutRequirementsMappedInput>;
461
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutRequirementsMappedInput;
462
+ connect?: Prisma.ControlWhereUniqueInput;
463
+ };
464
+ export type ControlUpdateOneRequiredWithoutRequirementsMappedNestedInput = {
465
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutRequirementsMappedInput, Prisma.ControlUncheckedCreateWithoutRequirementsMappedInput>;
466
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutRequirementsMappedInput;
467
+ upsert?: Prisma.ControlUpsertWithoutRequirementsMappedInput;
468
+ connect?: Prisma.ControlWhereUniqueInput;
469
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ControlUpdateToOneWithWhereWithoutRequirementsMappedInput, Prisma.ControlUpdateWithoutRequirementsMappedInput>, Prisma.ControlUncheckedUpdateWithoutRequirementsMappedInput>;
470
+ };
471
+ export type ControlCreateNestedManyWithoutTasksInput = {
472
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput> | Prisma.ControlCreateWithoutTasksInput[] | Prisma.ControlUncheckedCreateWithoutTasksInput[];
473
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutTasksInput | Prisma.ControlCreateOrConnectWithoutTasksInput[];
474
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
475
+ };
476
+ export type ControlUncheckedCreateNestedManyWithoutTasksInput = {
477
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput> | Prisma.ControlCreateWithoutTasksInput[] | Prisma.ControlUncheckedCreateWithoutTasksInput[];
478
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutTasksInput | Prisma.ControlCreateOrConnectWithoutTasksInput[];
479
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
480
+ };
481
+ export type ControlUpdateManyWithoutTasksNestedInput = {
482
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput> | Prisma.ControlCreateWithoutTasksInput[] | Prisma.ControlUncheckedCreateWithoutTasksInput[];
483
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutTasksInput | Prisma.ControlCreateOrConnectWithoutTasksInput[];
484
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutTasksInput | Prisma.ControlUpsertWithWhereUniqueWithoutTasksInput[];
485
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
486
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
487
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
488
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
489
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutTasksInput | Prisma.ControlUpdateWithWhereUniqueWithoutTasksInput[];
490
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutTasksInput | Prisma.ControlUpdateManyWithWhereWithoutTasksInput[];
491
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
492
+ };
493
+ export type ControlUncheckedUpdateManyWithoutTasksNestedInput = {
494
+ create?: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput> | Prisma.ControlCreateWithoutTasksInput[] | Prisma.ControlUncheckedCreateWithoutTasksInput[];
495
+ connectOrCreate?: Prisma.ControlCreateOrConnectWithoutTasksInput | Prisma.ControlCreateOrConnectWithoutTasksInput[];
496
+ upsert?: Prisma.ControlUpsertWithWhereUniqueWithoutTasksInput | Prisma.ControlUpsertWithWhereUniqueWithoutTasksInput[];
497
+ set?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
498
+ disconnect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
499
+ delete?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
500
+ connect?: Prisma.ControlWhereUniqueInput | Prisma.ControlWhereUniqueInput[];
501
+ update?: Prisma.ControlUpdateWithWhereUniqueWithoutTasksInput | Prisma.ControlUpdateWithWhereUniqueWithoutTasksInput[];
502
+ updateMany?: Prisma.ControlUpdateManyWithWhereWithoutTasksInput | Prisma.ControlUpdateManyWithWhereWithoutTasksInput[];
503
+ deleteMany?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
504
+ };
505
+ export type ControlCreateWithoutControlDocumentTypesInput = {
506
+ id?: string;
507
+ name: string;
508
+ description: string;
509
+ lastReviewDate?: Date | string | null;
510
+ nextReviewDate?: Date | string | null;
511
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
512
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
513
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
514
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
515
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
516
+ };
517
+ export type ControlUncheckedCreateWithoutControlDocumentTypesInput = {
518
+ id?: string;
519
+ name: string;
520
+ description: string;
521
+ lastReviewDate?: Date | string | null;
522
+ nextReviewDate?: Date | string | null;
523
+ organizationId: string;
524
+ controlTemplateId?: string | null;
525
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
526
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
527
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
528
+ };
529
+ export type ControlCreateOrConnectWithoutControlDocumentTypesInput = {
530
+ where: Prisma.ControlWhereUniqueInput;
531
+ create: Prisma.XOR<Prisma.ControlCreateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedCreateWithoutControlDocumentTypesInput>;
532
+ };
533
+ export type ControlUpsertWithoutControlDocumentTypesInput = {
534
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedUpdateWithoutControlDocumentTypesInput>;
535
+ create: Prisma.XOR<Prisma.ControlCreateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedCreateWithoutControlDocumentTypesInput>;
536
+ where?: Prisma.ControlWhereInput;
537
+ };
538
+ export type ControlUpdateToOneWithWhereWithoutControlDocumentTypesInput = {
539
+ where?: Prisma.ControlWhereInput;
540
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutControlDocumentTypesInput, Prisma.ControlUncheckedUpdateWithoutControlDocumentTypesInput>;
541
+ };
542
+ export type ControlUpdateWithoutControlDocumentTypesInput = {
543
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
544
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
545
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
546
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
547
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
548
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
549
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
550
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
551
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
552
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
553
+ };
554
+ export type ControlUncheckedUpdateWithoutControlDocumentTypesInput = {
555
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
556
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
557
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
558
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
559
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
560
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
561
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
562
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
563
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
564
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
565
+ };
566
+ export type ControlCreateWithoutControlTemplateInput = {
567
+ id?: string;
568
+ name: string;
569
+ description: string;
570
+ lastReviewDate?: Date | string | null;
571
+ nextReviewDate?: Date | string | null;
572
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
573
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
574
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
575
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
576
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
577
+ };
578
+ export type ControlUncheckedCreateWithoutControlTemplateInput = {
579
+ id?: string;
580
+ name: string;
581
+ description: string;
582
+ lastReviewDate?: Date | string | null;
583
+ nextReviewDate?: Date | string | null;
584
+ organizationId: string;
585
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
586
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
587
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
588
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
589
+ };
590
+ export type ControlCreateOrConnectWithoutControlTemplateInput = {
591
+ where: Prisma.ControlWhereUniqueInput;
592
+ create: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput>;
593
+ };
594
+ export type ControlCreateManyControlTemplateInputEnvelope = {
595
+ data: Prisma.ControlCreateManyControlTemplateInput | Prisma.ControlCreateManyControlTemplateInput[];
596
+ skipDuplicates?: boolean;
597
+ };
598
+ export type ControlUpsertWithWhereUniqueWithoutControlTemplateInput = {
599
+ where: Prisma.ControlWhereUniqueInput;
600
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutControlTemplateInput, Prisma.ControlUncheckedUpdateWithoutControlTemplateInput>;
601
+ create: Prisma.XOR<Prisma.ControlCreateWithoutControlTemplateInput, Prisma.ControlUncheckedCreateWithoutControlTemplateInput>;
602
+ };
603
+ export type ControlUpdateWithWhereUniqueWithoutControlTemplateInput = {
604
+ where: Prisma.ControlWhereUniqueInput;
605
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutControlTemplateInput, Prisma.ControlUncheckedUpdateWithoutControlTemplateInput>;
606
+ };
607
+ export type ControlUpdateManyWithWhereWithoutControlTemplateInput = {
608
+ where: Prisma.ControlScalarWhereInput;
609
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyWithoutControlTemplateInput>;
610
+ };
611
+ export type ControlScalarWhereInput = {
612
+ AND?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
613
+ OR?: Prisma.ControlScalarWhereInput[];
614
+ NOT?: Prisma.ControlScalarWhereInput | Prisma.ControlScalarWhereInput[];
615
+ id?: Prisma.StringFilter<"Control"> | string;
616
+ name?: Prisma.StringFilter<"Control"> | string;
617
+ description?: Prisma.StringFilter<"Control"> | string;
618
+ lastReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
619
+ nextReviewDate?: Prisma.DateTimeNullableFilter<"Control"> | Date | string | null;
620
+ organizationId?: Prisma.StringFilter<"Control"> | string;
621
+ controlTemplateId?: Prisma.StringNullableFilter<"Control"> | string | null;
622
+ };
623
+ export type ControlCreateWithoutOrganizationInput = {
624
+ id?: string;
625
+ name: string;
626
+ description: string;
627
+ lastReviewDate?: Date | string | null;
628
+ nextReviewDate?: Date | string | null;
629
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
630
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
631
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
632
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
633
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
634
+ };
635
+ export type ControlUncheckedCreateWithoutOrganizationInput = {
636
+ id?: string;
637
+ name: string;
638
+ description: string;
639
+ lastReviewDate?: Date | string | null;
640
+ nextReviewDate?: Date | string | null;
641
+ controlTemplateId?: string | null;
642
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
643
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
644
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
645
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
646
+ };
647
+ export type ControlCreateOrConnectWithoutOrganizationInput = {
648
+ where: Prisma.ControlWhereUniqueInput;
649
+ create: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput>;
650
+ };
651
+ export type ControlCreateManyOrganizationInputEnvelope = {
652
+ data: Prisma.ControlCreateManyOrganizationInput | Prisma.ControlCreateManyOrganizationInput[];
653
+ skipDuplicates?: boolean;
654
+ };
655
+ export type ControlUpsertWithWhereUniqueWithoutOrganizationInput = {
656
+ where: Prisma.ControlWhereUniqueInput;
657
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutOrganizationInput, Prisma.ControlUncheckedUpdateWithoutOrganizationInput>;
658
+ create: Prisma.XOR<Prisma.ControlCreateWithoutOrganizationInput, Prisma.ControlUncheckedCreateWithoutOrganizationInput>;
659
+ };
660
+ export type ControlUpdateWithWhereUniqueWithoutOrganizationInput = {
661
+ where: Prisma.ControlWhereUniqueInput;
662
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutOrganizationInput, Prisma.ControlUncheckedUpdateWithoutOrganizationInput>;
663
+ };
664
+ export type ControlUpdateManyWithWhereWithoutOrganizationInput = {
665
+ where: Prisma.ControlScalarWhereInput;
666
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyWithoutOrganizationInput>;
667
+ };
668
+ export type ControlCreateWithoutPoliciesInput = {
669
+ id?: string;
670
+ name: string;
671
+ description: string;
672
+ lastReviewDate?: Date | string | null;
673
+ nextReviewDate?: Date | string | null;
674
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
675
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
676
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
677
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
678
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
679
+ };
680
+ export type ControlUncheckedCreateWithoutPoliciesInput = {
681
+ id?: string;
682
+ name: string;
683
+ description: string;
684
+ lastReviewDate?: Date | string | null;
685
+ nextReviewDate?: Date | string | null;
686
+ organizationId: string;
687
+ controlTemplateId?: string | null;
688
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
689
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
690
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
691
+ };
692
+ export type ControlCreateOrConnectWithoutPoliciesInput = {
693
+ where: Prisma.ControlWhereUniqueInput;
694
+ create: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput>;
695
+ };
696
+ export type ControlUpsertWithWhereUniqueWithoutPoliciesInput = {
697
+ where: Prisma.ControlWhereUniqueInput;
698
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutPoliciesInput, Prisma.ControlUncheckedUpdateWithoutPoliciesInput>;
699
+ create: Prisma.XOR<Prisma.ControlCreateWithoutPoliciesInput, Prisma.ControlUncheckedCreateWithoutPoliciesInput>;
700
+ };
701
+ export type ControlUpdateWithWhereUniqueWithoutPoliciesInput = {
702
+ where: Prisma.ControlWhereUniqueInput;
703
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutPoliciesInput, Prisma.ControlUncheckedUpdateWithoutPoliciesInput>;
704
+ };
705
+ export type ControlUpdateManyWithWhereWithoutPoliciesInput = {
706
+ where: Prisma.ControlScalarWhereInput;
707
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyWithoutPoliciesInput>;
708
+ };
709
+ export type ControlCreateWithoutRequirementsMappedInput = {
710
+ id?: string;
711
+ name: string;
712
+ description: string;
713
+ lastReviewDate?: Date | string | null;
714
+ nextReviewDate?: Date | string | null;
715
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
716
+ tasks?: Prisma.TaskCreateNestedManyWithoutControlsInput;
717
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
718
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
719
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
720
+ };
721
+ export type ControlUncheckedCreateWithoutRequirementsMappedInput = {
722
+ id?: string;
723
+ name: string;
724
+ description: string;
725
+ lastReviewDate?: Date | string | null;
726
+ nextReviewDate?: Date | string | null;
727
+ organizationId: string;
728
+ controlTemplateId?: string | null;
729
+ tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutControlsInput;
730
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
731
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
732
+ };
733
+ export type ControlCreateOrConnectWithoutRequirementsMappedInput = {
734
+ where: Prisma.ControlWhereUniqueInput;
735
+ create: Prisma.XOR<Prisma.ControlCreateWithoutRequirementsMappedInput, Prisma.ControlUncheckedCreateWithoutRequirementsMappedInput>;
736
+ };
737
+ export type ControlUpsertWithoutRequirementsMappedInput = {
738
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutRequirementsMappedInput, Prisma.ControlUncheckedUpdateWithoutRequirementsMappedInput>;
739
+ create: Prisma.XOR<Prisma.ControlCreateWithoutRequirementsMappedInput, Prisma.ControlUncheckedCreateWithoutRequirementsMappedInput>;
740
+ where?: Prisma.ControlWhereInput;
741
+ };
742
+ export type ControlUpdateToOneWithWhereWithoutRequirementsMappedInput = {
743
+ where?: Prisma.ControlWhereInput;
744
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutRequirementsMappedInput, Prisma.ControlUncheckedUpdateWithoutRequirementsMappedInput>;
745
+ };
746
+ export type ControlUpdateWithoutRequirementsMappedInput = {
747
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
748
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
749
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
750
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
751
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
752
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
753
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
754
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
755
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
756
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
757
+ };
758
+ export type ControlUncheckedUpdateWithoutRequirementsMappedInput = {
759
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
760
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
761
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
762
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
763
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
764
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
765
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
766
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
767
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
768
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
769
+ };
770
+ export type ControlCreateWithoutTasksInput = {
771
+ id?: string;
772
+ name: string;
773
+ description: string;
774
+ lastReviewDate?: Date | string | null;
775
+ nextReviewDate?: Date | string | null;
776
+ organization: Prisma.OrganizationCreateNestedOneWithoutControlsInput;
777
+ requirementsMapped?: Prisma.RequirementMapCreateNestedManyWithoutControlInput;
778
+ policies?: Prisma.PolicyCreateNestedManyWithoutControlsInput;
779
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateCreateNestedOneWithoutControlsInput;
780
+ controlDocumentTypes?: Prisma.ControlDocumentTypeCreateNestedManyWithoutControlInput;
781
+ };
782
+ export type ControlUncheckedCreateWithoutTasksInput = {
783
+ id?: string;
784
+ name: string;
785
+ description: string;
786
+ lastReviewDate?: Date | string | null;
787
+ nextReviewDate?: Date | string | null;
788
+ organizationId: string;
789
+ controlTemplateId?: string | null;
790
+ requirementsMapped?: Prisma.RequirementMapUncheckedCreateNestedManyWithoutControlInput;
791
+ policies?: Prisma.PolicyUncheckedCreateNestedManyWithoutControlsInput;
792
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedCreateNestedManyWithoutControlInput;
793
+ };
794
+ export type ControlCreateOrConnectWithoutTasksInput = {
795
+ where: Prisma.ControlWhereUniqueInput;
796
+ create: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput>;
797
+ };
798
+ export type ControlUpsertWithWhereUniqueWithoutTasksInput = {
799
+ where: Prisma.ControlWhereUniqueInput;
800
+ update: Prisma.XOR<Prisma.ControlUpdateWithoutTasksInput, Prisma.ControlUncheckedUpdateWithoutTasksInput>;
801
+ create: Prisma.XOR<Prisma.ControlCreateWithoutTasksInput, Prisma.ControlUncheckedCreateWithoutTasksInput>;
802
+ };
803
+ export type ControlUpdateWithWhereUniqueWithoutTasksInput = {
804
+ where: Prisma.ControlWhereUniqueInput;
805
+ data: Prisma.XOR<Prisma.ControlUpdateWithoutTasksInput, Prisma.ControlUncheckedUpdateWithoutTasksInput>;
806
+ };
807
+ export type ControlUpdateManyWithWhereWithoutTasksInput = {
808
+ where: Prisma.ControlScalarWhereInput;
809
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyWithoutTasksInput>;
810
+ };
811
+ export type ControlCreateManyControlTemplateInput = {
812
+ id?: string;
813
+ name: string;
814
+ description: string;
815
+ lastReviewDate?: Date | string | null;
816
+ nextReviewDate?: Date | string | null;
817
+ organizationId: string;
818
+ };
819
+ export type ControlUpdateWithoutControlTemplateInput = {
820
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
821
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
822
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
823
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
824
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
825
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
826
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
827
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
828
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
829
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
830
+ };
831
+ export type ControlUncheckedUpdateWithoutControlTemplateInput = {
832
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
833
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
834
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
835
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
836
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
837
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
838
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
839
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
840
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
841
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
842
+ };
843
+ export type ControlUncheckedUpdateManyWithoutControlTemplateInput = {
844
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
845
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
846
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
847
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
848
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
849
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
850
+ };
851
+ export type ControlCreateManyOrganizationInput = {
852
+ id?: string;
853
+ name: string;
854
+ description: string;
855
+ lastReviewDate?: Date | string | null;
856
+ nextReviewDate?: Date | string | null;
857
+ controlTemplateId?: string | null;
858
+ };
859
+ export type ControlUpdateWithoutOrganizationInput = {
860
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
861
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
862
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
863
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
864
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
865
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
866
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
867
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
868
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
869
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
870
+ };
871
+ export type ControlUncheckedUpdateWithoutOrganizationInput = {
872
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
873
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
874
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
875
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
876
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
877
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
878
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
879
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
880
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
881
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
882
+ };
883
+ export type ControlUncheckedUpdateManyWithoutOrganizationInput = {
884
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
885
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
886
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
887
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
888
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
889
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
890
+ };
891
+ export type ControlUpdateWithoutPoliciesInput = {
892
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
893
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
894
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
895
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
896
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
897
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
898
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
899
+ tasks?: Prisma.TaskUpdateManyWithoutControlsNestedInput;
900
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
901
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
902
+ };
903
+ export type ControlUncheckedUpdateWithoutPoliciesInput = {
904
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
905
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
906
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
907
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
908
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
909
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
910
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
911
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
912
+ tasks?: Prisma.TaskUncheckedUpdateManyWithoutControlsNestedInput;
913
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
914
+ };
915
+ export type ControlUncheckedUpdateManyWithoutPoliciesInput = {
916
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
917
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
918
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
919
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
920
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
921
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
922
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
923
+ };
924
+ export type ControlUpdateWithoutTasksInput = {
925
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
926
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
927
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
928
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
929
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
930
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutControlsNestedInput;
931
+ requirementsMapped?: Prisma.RequirementMapUpdateManyWithoutControlNestedInput;
932
+ policies?: Prisma.PolicyUpdateManyWithoutControlsNestedInput;
933
+ controlTemplate?: Prisma.FrameworkEditorControlTemplateUpdateOneWithoutControlsNestedInput;
934
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUpdateManyWithoutControlNestedInput;
935
+ };
936
+ export type ControlUncheckedUpdateWithoutTasksInput = {
937
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
938
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
939
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
940
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
941
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
942
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
943
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
944
+ requirementsMapped?: Prisma.RequirementMapUncheckedUpdateManyWithoutControlNestedInput;
945
+ policies?: Prisma.PolicyUncheckedUpdateManyWithoutControlsNestedInput;
946
+ controlDocumentTypes?: Prisma.ControlDocumentTypeUncheckedUpdateManyWithoutControlNestedInput;
947
+ };
948
+ export type ControlUncheckedUpdateManyWithoutTasksInput = {
949
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
950
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
951
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
952
+ lastReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
953
+ nextReviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
954
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
955
+ controlTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
956
+ };
957
+ /**
958
+ * Count Type ControlCountOutputType
959
+ */
960
+ export type ControlCountOutputType = {
961
+ requirementsMapped: number;
962
+ tasks: number;
963
+ policies: number;
964
+ controlDocumentTypes: number;
965
+ };
966
+ export type ControlCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ requirementsMapped?: boolean | ControlCountOutputTypeCountRequirementsMappedArgs;
968
+ tasks?: boolean | ControlCountOutputTypeCountTasksArgs;
969
+ policies?: boolean | ControlCountOutputTypeCountPoliciesArgs;
970
+ controlDocumentTypes?: boolean | ControlCountOutputTypeCountControlDocumentTypesArgs;
971
+ };
972
+ /**
973
+ * ControlCountOutputType without action
974
+ */
975
+ export type ControlCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
976
+ /**
977
+ * Select specific fields to fetch from the ControlCountOutputType
978
+ */
979
+ select?: Prisma.ControlCountOutputTypeSelect<ExtArgs> | null;
980
+ };
981
+ /**
982
+ * ControlCountOutputType without action
983
+ */
984
+ export type ControlCountOutputTypeCountRequirementsMappedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
985
+ where?: Prisma.RequirementMapWhereInput;
986
+ };
987
+ /**
988
+ * ControlCountOutputType without action
989
+ */
990
+ export type ControlCountOutputTypeCountTasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
991
+ where?: Prisma.TaskWhereInput;
992
+ };
993
+ /**
994
+ * ControlCountOutputType without action
995
+ */
996
+ export type ControlCountOutputTypeCountPoliciesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
997
+ where?: Prisma.PolicyWhereInput;
998
+ };
999
+ /**
1000
+ * ControlCountOutputType without action
1001
+ */
1002
+ export type ControlCountOutputTypeCountControlDocumentTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1003
+ where?: Prisma.ControlDocumentTypeWhereInput;
1004
+ };
1005
+ export type ControlSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1006
+ id?: boolean;
1007
+ name?: boolean;
1008
+ description?: boolean;
1009
+ lastReviewDate?: boolean;
1010
+ nextReviewDate?: boolean;
1011
+ organizationId?: boolean;
1012
+ controlTemplateId?: boolean;
1013
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1014
+ requirementsMapped?: boolean | Prisma.Control$requirementsMappedArgs<ExtArgs>;
1015
+ tasks?: boolean | Prisma.Control$tasksArgs<ExtArgs>;
1016
+ policies?: boolean | Prisma.Control$policiesArgs<ExtArgs>;
1017
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1018
+ controlDocumentTypes?: boolean | Prisma.Control$controlDocumentTypesArgs<ExtArgs>;
1019
+ _count?: boolean | Prisma.ControlCountOutputTypeDefaultArgs<ExtArgs>;
1020
+ }, ExtArgs["result"]["control"]>;
1021
+ export type ControlSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1022
+ id?: boolean;
1023
+ name?: boolean;
1024
+ description?: boolean;
1025
+ lastReviewDate?: boolean;
1026
+ nextReviewDate?: boolean;
1027
+ organizationId?: boolean;
1028
+ controlTemplateId?: boolean;
1029
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1030
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1031
+ }, ExtArgs["result"]["control"]>;
1032
+ export type ControlSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1033
+ id?: boolean;
1034
+ name?: boolean;
1035
+ description?: boolean;
1036
+ lastReviewDate?: boolean;
1037
+ nextReviewDate?: boolean;
1038
+ organizationId?: boolean;
1039
+ controlTemplateId?: boolean;
1040
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1041
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1042
+ }, ExtArgs["result"]["control"]>;
1043
+ export type ControlSelectScalar = {
1044
+ id?: boolean;
1045
+ name?: boolean;
1046
+ description?: boolean;
1047
+ lastReviewDate?: boolean;
1048
+ nextReviewDate?: boolean;
1049
+ organizationId?: boolean;
1050
+ controlTemplateId?: boolean;
1051
+ };
1052
+ export type ControlOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "lastReviewDate" | "nextReviewDate" | "organizationId" | "controlTemplateId", ExtArgs["result"]["control"]>;
1053
+ export type ControlInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1054
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1055
+ requirementsMapped?: boolean | Prisma.Control$requirementsMappedArgs<ExtArgs>;
1056
+ tasks?: boolean | Prisma.Control$tasksArgs<ExtArgs>;
1057
+ policies?: boolean | Prisma.Control$policiesArgs<ExtArgs>;
1058
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1059
+ controlDocumentTypes?: boolean | Prisma.Control$controlDocumentTypesArgs<ExtArgs>;
1060
+ _count?: boolean | Prisma.ControlCountOutputTypeDefaultArgs<ExtArgs>;
1061
+ };
1062
+ export type ControlIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1063
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1064
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1065
+ };
1066
+ export type ControlIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1067
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1068
+ controlTemplate?: boolean | Prisma.Control$controlTemplateArgs<ExtArgs>;
1069
+ };
1070
+ export type $ControlPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ name: "Control";
1072
+ objects: {
1073
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
1074
+ requirementsMapped: Prisma.$RequirementMapPayload<ExtArgs>[];
1075
+ tasks: Prisma.$TaskPayload<ExtArgs>[];
1076
+ policies: Prisma.$PolicyPayload<ExtArgs>[];
1077
+ controlTemplate: Prisma.$FrameworkEditorControlTemplatePayload<ExtArgs> | null;
1078
+ controlDocumentTypes: Prisma.$ControlDocumentTypePayload<ExtArgs>[];
1079
+ };
1080
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1081
+ id: string;
1082
+ name: string;
1083
+ description: string;
1084
+ lastReviewDate: Date | null;
1085
+ nextReviewDate: Date | null;
1086
+ organizationId: string;
1087
+ controlTemplateId: string | null;
1088
+ }, ExtArgs["result"]["control"]>;
1089
+ composites: {};
1090
+ };
1091
+ export type ControlGetPayload<S extends boolean | null | undefined | ControlDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ControlPayload, S>;
1092
+ export type ControlCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ControlFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1093
+ select?: ControlCountAggregateInputType | true;
1094
+ };
1095
+ export interface ControlDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1096
+ [K: symbol]: {
1097
+ types: Prisma.TypeMap<ExtArgs>['model']['Control'];
1098
+ meta: {
1099
+ name: 'Control';
1100
+ };
1101
+ };
1102
+ /**
1103
+ * Find zero or one Control that matches the filter.
1104
+ * @param {ControlFindUniqueArgs} args - Arguments to find a Control
1105
+ * @example
1106
+ * // Get one Control
1107
+ * const control = await prisma.control.findUnique({
1108
+ * where: {
1109
+ * // ... provide filter here
1110
+ * }
1111
+ * })
1112
+ */
1113
+ findUnique<T extends ControlFindUniqueArgs>(args: Prisma.SelectSubset<T, ControlFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1114
+ /**
1115
+ * Find one Control that matches the filter or throw an error with `error.code='P2025'`
1116
+ * if no matches were found.
1117
+ * @param {ControlFindUniqueOrThrowArgs} args - Arguments to find a Control
1118
+ * @example
1119
+ * // Get one Control
1120
+ * const control = await prisma.control.findUniqueOrThrow({
1121
+ * where: {
1122
+ * // ... provide filter here
1123
+ * }
1124
+ * })
1125
+ */
1126
+ findUniqueOrThrow<T extends ControlFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ControlFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1127
+ /**
1128
+ * Find the first Control that matches the filter.
1129
+ * Note, that providing `undefined` is treated as the value not being there.
1130
+ * Read more here: https://pris.ly/d/null-undefined
1131
+ * @param {ControlFindFirstArgs} args - Arguments to find a Control
1132
+ * @example
1133
+ * // Get one Control
1134
+ * const control = await prisma.control.findFirst({
1135
+ * where: {
1136
+ * // ... provide filter here
1137
+ * }
1138
+ * })
1139
+ */
1140
+ findFirst<T extends ControlFindFirstArgs>(args?: Prisma.SelectSubset<T, ControlFindFirstArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1141
+ /**
1142
+ * Find the first Control that matches the filter or
1143
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1144
+ * Note, that providing `undefined` is treated as the value not being there.
1145
+ * Read more here: https://pris.ly/d/null-undefined
1146
+ * @param {ControlFindFirstOrThrowArgs} args - Arguments to find a Control
1147
+ * @example
1148
+ * // Get one Control
1149
+ * const control = await prisma.control.findFirstOrThrow({
1150
+ * where: {
1151
+ * // ... provide filter here
1152
+ * }
1153
+ * })
1154
+ */
1155
+ findFirstOrThrow<T extends ControlFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ControlFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1156
+ /**
1157
+ * Find zero or more Controls that matches the filter.
1158
+ * Note, that providing `undefined` is treated as the value not being there.
1159
+ * Read more here: https://pris.ly/d/null-undefined
1160
+ * @param {ControlFindManyArgs} args - Arguments to filter and select certain fields only.
1161
+ * @example
1162
+ * // Get all Controls
1163
+ * const controls = await prisma.control.findMany()
1164
+ *
1165
+ * // Get first 10 Controls
1166
+ * const controls = await prisma.control.findMany({ take: 10 })
1167
+ *
1168
+ * // Only select the `id`
1169
+ * const controlWithIdOnly = await prisma.control.findMany({ select: { id: true } })
1170
+ *
1171
+ */
1172
+ findMany<T extends ControlFindManyArgs>(args?: Prisma.SelectSubset<T, ControlFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1173
+ /**
1174
+ * Create a Control.
1175
+ * @param {ControlCreateArgs} args - Arguments to create a Control.
1176
+ * @example
1177
+ * // Create one Control
1178
+ * const Control = await prisma.control.create({
1179
+ * data: {
1180
+ * // ... data to create a Control
1181
+ * }
1182
+ * })
1183
+ *
1184
+ */
1185
+ create<T extends ControlCreateArgs>(args: Prisma.SelectSubset<T, ControlCreateArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1186
+ /**
1187
+ * Create many Controls.
1188
+ * @param {ControlCreateManyArgs} args - Arguments to create many Controls.
1189
+ * @example
1190
+ * // Create many Controls
1191
+ * const control = await prisma.control.createMany({
1192
+ * data: [
1193
+ * // ... provide data here
1194
+ * ]
1195
+ * })
1196
+ *
1197
+ */
1198
+ createMany<T extends ControlCreateManyArgs>(args?: Prisma.SelectSubset<T, ControlCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1199
+ /**
1200
+ * Create many Controls and returns the data saved in the database.
1201
+ * @param {ControlCreateManyAndReturnArgs} args - Arguments to create many Controls.
1202
+ * @example
1203
+ * // Create many Controls
1204
+ * const control = await prisma.control.createManyAndReturn({
1205
+ * data: [
1206
+ * // ... provide data here
1207
+ * ]
1208
+ * })
1209
+ *
1210
+ * // Create many Controls and only return the `id`
1211
+ * const controlWithIdOnly = await prisma.control.createManyAndReturn({
1212
+ * select: { id: true },
1213
+ * data: [
1214
+ * // ... provide data here
1215
+ * ]
1216
+ * })
1217
+ * Note, that providing `undefined` is treated as the value not being there.
1218
+ * Read more here: https://pris.ly/d/null-undefined
1219
+ *
1220
+ */
1221
+ createManyAndReturn<T extends ControlCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ControlCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1222
+ /**
1223
+ * Delete a Control.
1224
+ * @param {ControlDeleteArgs} args - Arguments to delete one Control.
1225
+ * @example
1226
+ * // Delete one Control
1227
+ * const Control = await prisma.control.delete({
1228
+ * where: {
1229
+ * // ... filter to delete one Control
1230
+ * }
1231
+ * })
1232
+ *
1233
+ */
1234
+ delete<T extends ControlDeleteArgs>(args: Prisma.SelectSubset<T, ControlDeleteArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1235
+ /**
1236
+ * Update one Control.
1237
+ * @param {ControlUpdateArgs} args - Arguments to update one Control.
1238
+ * @example
1239
+ * // Update one Control
1240
+ * const control = await prisma.control.update({
1241
+ * where: {
1242
+ * // ... provide filter here
1243
+ * },
1244
+ * data: {
1245
+ * // ... provide data here
1246
+ * }
1247
+ * })
1248
+ *
1249
+ */
1250
+ update<T extends ControlUpdateArgs>(args: Prisma.SelectSubset<T, ControlUpdateArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1251
+ /**
1252
+ * Delete zero or more Controls.
1253
+ * @param {ControlDeleteManyArgs} args - Arguments to filter Controls to delete.
1254
+ * @example
1255
+ * // Delete a few Controls
1256
+ * const { count } = await prisma.control.deleteMany({
1257
+ * where: {
1258
+ * // ... provide filter here
1259
+ * }
1260
+ * })
1261
+ *
1262
+ */
1263
+ deleteMany<T extends ControlDeleteManyArgs>(args?: Prisma.SelectSubset<T, ControlDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1264
+ /**
1265
+ * Update zero or more Controls.
1266
+ * Note, that providing `undefined` is treated as the value not being there.
1267
+ * Read more here: https://pris.ly/d/null-undefined
1268
+ * @param {ControlUpdateManyArgs} args - Arguments to update one or more rows.
1269
+ * @example
1270
+ * // Update many Controls
1271
+ * const control = await prisma.control.updateMany({
1272
+ * where: {
1273
+ * // ... provide filter here
1274
+ * },
1275
+ * data: {
1276
+ * // ... provide data here
1277
+ * }
1278
+ * })
1279
+ *
1280
+ */
1281
+ updateMany<T extends ControlUpdateManyArgs>(args: Prisma.SelectSubset<T, ControlUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1282
+ /**
1283
+ * Update zero or more Controls and returns the data updated in the database.
1284
+ * @param {ControlUpdateManyAndReturnArgs} args - Arguments to update many Controls.
1285
+ * @example
1286
+ * // Update many Controls
1287
+ * const control = await prisma.control.updateManyAndReturn({
1288
+ * where: {
1289
+ * // ... provide filter here
1290
+ * },
1291
+ * data: [
1292
+ * // ... provide data here
1293
+ * ]
1294
+ * })
1295
+ *
1296
+ * // Update zero or more Controls and only return the `id`
1297
+ * const controlWithIdOnly = await prisma.control.updateManyAndReturn({
1298
+ * select: { id: true },
1299
+ * where: {
1300
+ * // ... provide filter here
1301
+ * },
1302
+ * data: [
1303
+ * // ... provide data here
1304
+ * ]
1305
+ * })
1306
+ * Note, that providing `undefined` is treated as the value not being there.
1307
+ * Read more here: https://pris.ly/d/null-undefined
1308
+ *
1309
+ */
1310
+ updateManyAndReturn<T extends ControlUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ControlUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1311
+ /**
1312
+ * Create or update one Control.
1313
+ * @param {ControlUpsertArgs} args - Arguments to update or create a Control.
1314
+ * @example
1315
+ * // Update or create a Control
1316
+ * const control = await prisma.control.upsert({
1317
+ * create: {
1318
+ * // ... data to create a Control
1319
+ * },
1320
+ * update: {
1321
+ * // ... in case it already exists, update
1322
+ * },
1323
+ * where: {
1324
+ * // ... the filter for the Control we want to update
1325
+ * }
1326
+ * })
1327
+ */
1328
+ upsert<T extends ControlUpsertArgs>(args: Prisma.SelectSubset<T, ControlUpsertArgs<ExtArgs>>): Prisma.Prisma__ControlClient<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1329
+ /**
1330
+ * Count the number of Controls.
1331
+ * Note, that providing `undefined` is treated as the value not being there.
1332
+ * Read more here: https://pris.ly/d/null-undefined
1333
+ * @param {ControlCountArgs} args - Arguments to filter Controls to count.
1334
+ * @example
1335
+ * // Count the number of Controls
1336
+ * const count = await prisma.control.count({
1337
+ * where: {
1338
+ * // ... the filter for the Controls we want to count
1339
+ * }
1340
+ * })
1341
+ **/
1342
+ count<T extends ControlCountArgs>(args?: Prisma.Subset<T, ControlCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ControlCountAggregateOutputType> : number>;
1343
+ /**
1344
+ * Allows you to perform aggregations operations on a Control.
1345
+ * Note, that providing `undefined` is treated as the value not being there.
1346
+ * Read more here: https://pris.ly/d/null-undefined
1347
+ * @param {ControlAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1348
+ * @example
1349
+ * // Ordered by age ascending
1350
+ * // Where email contains prisma.io
1351
+ * // Limited to the 10 users
1352
+ * const aggregations = await prisma.user.aggregate({
1353
+ * _avg: {
1354
+ * age: true,
1355
+ * },
1356
+ * where: {
1357
+ * email: {
1358
+ * contains: "prisma.io",
1359
+ * },
1360
+ * },
1361
+ * orderBy: {
1362
+ * age: "asc",
1363
+ * },
1364
+ * take: 10,
1365
+ * })
1366
+ **/
1367
+ aggregate<T extends ControlAggregateArgs>(args: Prisma.Subset<T, ControlAggregateArgs>): Prisma.PrismaPromise<GetControlAggregateType<T>>;
1368
+ /**
1369
+ * Group by Control.
1370
+ * Note, that providing `undefined` is treated as the value not being there.
1371
+ * Read more here: https://pris.ly/d/null-undefined
1372
+ * @param {ControlGroupByArgs} args - Group by arguments.
1373
+ * @example
1374
+ * // Group by city, order by createdAt, get count
1375
+ * const result = await prisma.user.groupBy({
1376
+ * by: ['city', 'createdAt'],
1377
+ * orderBy: {
1378
+ * createdAt: true
1379
+ * },
1380
+ * _count: {
1381
+ * _all: true
1382
+ * },
1383
+ * })
1384
+ *
1385
+ **/
1386
+ groupBy<T extends ControlGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1387
+ orderBy: ControlGroupByArgs['orderBy'];
1388
+ } : {
1389
+ orderBy?: ControlGroupByArgs['orderBy'];
1390
+ }, 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 ? {
1391
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1392
+ Error,
1393
+ 'Field ',
1394
+ P,
1395
+ ` in "having" needs to be provided in "by"`
1396
+ ];
1397
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1398
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1399
+ }[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 ? {} : {
1400
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1401
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1402
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1403
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ControlGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetControlGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1404
+ /**
1405
+ * Fields of the Control model
1406
+ */
1407
+ readonly fields: ControlFieldRefs;
1408
+ }
1409
+ /**
1410
+ * The delegate class that acts as a "Promise-like" for Control.
1411
+ * Why is this prefixed with `Prisma__`?
1412
+ * Because we want to prevent naming conflicts as mentioned in
1413
+ * https://github.com/prisma/prisma-client-js/issues/707
1414
+ */
1415
+ export interface Prisma__ControlClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1416
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1417
+ organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1418
+ requirementsMapped<T extends Prisma.Control$requirementsMappedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Control$requirementsMappedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RequirementMapPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1419
+ tasks<T extends Prisma.Control$tasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Control$tasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1420
+ policies<T extends Prisma.Control$policiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Control$policiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1421
+ controlTemplate<T extends Prisma.Control$controlTemplateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Control$controlTemplateArgs<ExtArgs>>): Prisma.Prisma__FrameworkEditorControlTemplateClient<runtime.Types.Result.GetResult<Prisma.$FrameworkEditorControlTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1422
+ controlDocumentTypes<T extends Prisma.Control$controlDocumentTypesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Control$controlDocumentTypesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlDocumentTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1423
+ /**
1424
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1425
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1426
+ * @param onrejected The callback to execute when the Promise is rejected.
1427
+ * @returns A Promise for the completion of which ever callback is executed.
1428
+ */
1429
+ 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>;
1430
+ /**
1431
+ * Attaches a callback for only the rejection of the Promise.
1432
+ * @param onrejected The callback to execute when the Promise is rejected.
1433
+ * @returns A Promise for the completion of the callback.
1434
+ */
1435
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1436
+ /**
1437
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1438
+ * resolved value cannot be modified from the callback.
1439
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1440
+ * @returns A Promise for the completion of the callback.
1441
+ */
1442
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1443
+ }
1444
+ /**
1445
+ * Fields of the Control model
1446
+ */
1447
+ export interface ControlFieldRefs {
1448
+ readonly id: Prisma.FieldRef<"Control", 'String'>;
1449
+ readonly name: Prisma.FieldRef<"Control", 'String'>;
1450
+ readonly description: Prisma.FieldRef<"Control", 'String'>;
1451
+ readonly lastReviewDate: Prisma.FieldRef<"Control", 'DateTime'>;
1452
+ readonly nextReviewDate: Prisma.FieldRef<"Control", 'DateTime'>;
1453
+ readonly organizationId: Prisma.FieldRef<"Control", 'String'>;
1454
+ readonly controlTemplateId: Prisma.FieldRef<"Control", 'String'>;
1455
+ }
1456
+ /**
1457
+ * Control findUnique
1458
+ */
1459
+ export type ControlFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1460
+ /**
1461
+ * Select specific fields to fetch from the Control
1462
+ */
1463
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1464
+ /**
1465
+ * Omit specific fields from the Control
1466
+ */
1467
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1468
+ /**
1469
+ * Choose, which related nodes to fetch as well
1470
+ */
1471
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1472
+ /**
1473
+ * Filter, which Control to fetch.
1474
+ */
1475
+ where: Prisma.ControlWhereUniqueInput;
1476
+ };
1477
+ /**
1478
+ * Control findUniqueOrThrow
1479
+ */
1480
+ export type ControlFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1481
+ /**
1482
+ * Select specific fields to fetch from the Control
1483
+ */
1484
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1485
+ /**
1486
+ * Omit specific fields from the Control
1487
+ */
1488
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1489
+ /**
1490
+ * Choose, which related nodes to fetch as well
1491
+ */
1492
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1493
+ /**
1494
+ * Filter, which Control to fetch.
1495
+ */
1496
+ where: Prisma.ControlWhereUniqueInput;
1497
+ };
1498
+ /**
1499
+ * Control findFirst
1500
+ */
1501
+ export type ControlFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the Control
1504
+ */
1505
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1506
+ /**
1507
+ * Omit specific fields from the Control
1508
+ */
1509
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1514
+ /**
1515
+ * Filter, which Control to fetch.
1516
+ */
1517
+ where?: Prisma.ControlWhereInput;
1518
+ /**
1519
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1520
+ *
1521
+ * Determine the order of Controls to fetch.
1522
+ */
1523
+ orderBy?: Prisma.ControlOrderByWithRelationInput | Prisma.ControlOrderByWithRelationInput[];
1524
+ /**
1525
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1526
+ *
1527
+ * Sets the position for searching for Controls.
1528
+ */
1529
+ cursor?: Prisma.ControlWhereUniqueInput;
1530
+ /**
1531
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1532
+ *
1533
+ * Take `±n` Controls from the position of the cursor.
1534
+ */
1535
+ take?: number;
1536
+ /**
1537
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1538
+ *
1539
+ * Skip the first `n` Controls.
1540
+ */
1541
+ skip?: number;
1542
+ /**
1543
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1544
+ *
1545
+ * Filter by unique combinations of Controls.
1546
+ */
1547
+ distinct?: Prisma.ControlScalarFieldEnum | Prisma.ControlScalarFieldEnum[];
1548
+ };
1549
+ /**
1550
+ * Control findFirstOrThrow
1551
+ */
1552
+ export type ControlFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
+ /**
1554
+ * Select specific fields to fetch from the Control
1555
+ */
1556
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1557
+ /**
1558
+ * Omit specific fields from the Control
1559
+ */
1560
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1561
+ /**
1562
+ * Choose, which related nodes to fetch as well
1563
+ */
1564
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1565
+ /**
1566
+ * Filter, which Control to fetch.
1567
+ */
1568
+ where?: Prisma.ControlWhereInput;
1569
+ /**
1570
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1571
+ *
1572
+ * Determine the order of Controls to fetch.
1573
+ */
1574
+ orderBy?: Prisma.ControlOrderByWithRelationInput | Prisma.ControlOrderByWithRelationInput[];
1575
+ /**
1576
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1577
+ *
1578
+ * Sets the position for searching for Controls.
1579
+ */
1580
+ cursor?: Prisma.ControlWhereUniqueInput;
1581
+ /**
1582
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1583
+ *
1584
+ * Take `±n` Controls from the position of the cursor.
1585
+ */
1586
+ take?: number;
1587
+ /**
1588
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1589
+ *
1590
+ * Skip the first `n` Controls.
1591
+ */
1592
+ skip?: number;
1593
+ /**
1594
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1595
+ *
1596
+ * Filter by unique combinations of Controls.
1597
+ */
1598
+ distinct?: Prisma.ControlScalarFieldEnum | Prisma.ControlScalarFieldEnum[];
1599
+ };
1600
+ /**
1601
+ * Control findMany
1602
+ */
1603
+ export type ControlFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1604
+ /**
1605
+ * Select specific fields to fetch from the Control
1606
+ */
1607
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1608
+ /**
1609
+ * Omit specific fields from the Control
1610
+ */
1611
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1612
+ /**
1613
+ * Choose, which related nodes to fetch as well
1614
+ */
1615
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1616
+ /**
1617
+ * Filter, which Controls to fetch.
1618
+ */
1619
+ where?: Prisma.ControlWhereInput;
1620
+ /**
1621
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1622
+ *
1623
+ * Determine the order of Controls to fetch.
1624
+ */
1625
+ orderBy?: Prisma.ControlOrderByWithRelationInput | Prisma.ControlOrderByWithRelationInput[];
1626
+ /**
1627
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1628
+ *
1629
+ * Sets the position for listing Controls.
1630
+ */
1631
+ cursor?: Prisma.ControlWhereUniqueInput;
1632
+ /**
1633
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1634
+ *
1635
+ * Take `±n` Controls from the position of the cursor.
1636
+ */
1637
+ take?: number;
1638
+ /**
1639
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1640
+ *
1641
+ * Skip the first `n` Controls.
1642
+ */
1643
+ skip?: number;
1644
+ /**
1645
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1646
+ *
1647
+ * Filter by unique combinations of Controls.
1648
+ */
1649
+ distinct?: Prisma.ControlScalarFieldEnum | Prisma.ControlScalarFieldEnum[];
1650
+ };
1651
+ /**
1652
+ * Control create
1653
+ */
1654
+ export type ControlCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1655
+ /**
1656
+ * Select specific fields to fetch from the Control
1657
+ */
1658
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1659
+ /**
1660
+ * Omit specific fields from the Control
1661
+ */
1662
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1663
+ /**
1664
+ * Choose, which related nodes to fetch as well
1665
+ */
1666
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1667
+ /**
1668
+ * The data needed to create a Control.
1669
+ */
1670
+ data: Prisma.XOR<Prisma.ControlCreateInput, Prisma.ControlUncheckedCreateInput>;
1671
+ };
1672
+ /**
1673
+ * Control createMany
1674
+ */
1675
+ export type ControlCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * The data used to create many Controls.
1678
+ */
1679
+ data: Prisma.ControlCreateManyInput | Prisma.ControlCreateManyInput[];
1680
+ skipDuplicates?: boolean;
1681
+ };
1682
+ /**
1683
+ * Control createManyAndReturn
1684
+ */
1685
+ export type ControlCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1686
+ /**
1687
+ * Select specific fields to fetch from the Control
1688
+ */
1689
+ select?: Prisma.ControlSelectCreateManyAndReturn<ExtArgs> | null;
1690
+ /**
1691
+ * Omit specific fields from the Control
1692
+ */
1693
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1694
+ /**
1695
+ * The data used to create many Controls.
1696
+ */
1697
+ data: Prisma.ControlCreateManyInput | Prisma.ControlCreateManyInput[];
1698
+ skipDuplicates?: boolean;
1699
+ /**
1700
+ * Choose, which related nodes to fetch as well
1701
+ */
1702
+ include?: Prisma.ControlIncludeCreateManyAndReturn<ExtArgs> | null;
1703
+ };
1704
+ /**
1705
+ * Control update
1706
+ */
1707
+ export type ControlUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1708
+ /**
1709
+ * Select specific fields to fetch from the Control
1710
+ */
1711
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1712
+ /**
1713
+ * Omit specific fields from the Control
1714
+ */
1715
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1716
+ /**
1717
+ * Choose, which related nodes to fetch as well
1718
+ */
1719
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1720
+ /**
1721
+ * The data needed to update a Control.
1722
+ */
1723
+ data: Prisma.XOR<Prisma.ControlUpdateInput, Prisma.ControlUncheckedUpdateInput>;
1724
+ /**
1725
+ * Choose, which Control to update.
1726
+ */
1727
+ where: Prisma.ControlWhereUniqueInput;
1728
+ };
1729
+ /**
1730
+ * Control updateMany
1731
+ */
1732
+ export type ControlUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1733
+ /**
1734
+ * The data used to update Controls.
1735
+ */
1736
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyInput>;
1737
+ /**
1738
+ * Filter which Controls to update
1739
+ */
1740
+ where?: Prisma.ControlWhereInput;
1741
+ /**
1742
+ * Limit how many Controls to update.
1743
+ */
1744
+ limit?: number;
1745
+ };
1746
+ /**
1747
+ * Control updateManyAndReturn
1748
+ */
1749
+ export type ControlUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1750
+ /**
1751
+ * Select specific fields to fetch from the Control
1752
+ */
1753
+ select?: Prisma.ControlSelectUpdateManyAndReturn<ExtArgs> | null;
1754
+ /**
1755
+ * Omit specific fields from the Control
1756
+ */
1757
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1758
+ /**
1759
+ * The data used to update Controls.
1760
+ */
1761
+ data: Prisma.XOR<Prisma.ControlUpdateManyMutationInput, Prisma.ControlUncheckedUpdateManyInput>;
1762
+ /**
1763
+ * Filter which Controls to update
1764
+ */
1765
+ where?: Prisma.ControlWhereInput;
1766
+ /**
1767
+ * Limit how many Controls to update.
1768
+ */
1769
+ limit?: number;
1770
+ /**
1771
+ * Choose, which related nodes to fetch as well
1772
+ */
1773
+ include?: Prisma.ControlIncludeUpdateManyAndReturn<ExtArgs> | null;
1774
+ };
1775
+ /**
1776
+ * Control upsert
1777
+ */
1778
+ export type ControlUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1779
+ /**
1780
+ * Select specific fields to fetch from the Control
1781
+ */
1782
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1783
+ /**
1784
+ * Omit specific fields from the Control
1785
+ */
1786
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1787
+ /**
1788
+ * Choose, which related nodes to fetch as well
1789
+ */
1790
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1791
+ /**
1792
+ * The filter to search for the Control to update in case it exists.
1793
+ */
1794
+ where: Prisma.ControlWhereUniqueInput;
1795
+ /**
1796
+ * In case the Control found by the `where` argument doesn't exist, create a new Control with this data.
1797
+ */
1798
+ create: Prisma.XOR<Prisma.ControlCreateInput, Prisma.ControlUncheckedCreateInput>;
1799
+ /**
1800
+ * In case the Control was found with the provided `where` argument, update it with this data.
1801
+ */
1802
+ update: Prisma.XOR<Prisma.ControlUpdateInput, Prisma.ControlUncheckedUpdateInput>;
1803
+ };
1804
+ /**
1805
+ * Control delete
1806
+ */
1807
+ export type ControlDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1808
+ /**
1809
+ * Select specific fields to fetch from the Control
1810
+ */
1811
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1812
+ /**
1813
+ * Omit specific fields from the Control
1814
+ */
1815
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1816
+ /**
1817
+ * Choose, which related nodes to fetch as well
1818
+ */
1819
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1820
+ /**
1821
+ * Filter which Control to delete.
1822
+ */
1823
+ where: Prisma.ControlWhereUniqueInput;
1824
+ };
1825
+ /**
1826
+ * Control deleteMany
1827
+ */
1828
+ export type ControlDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1829
+ /**
1830
+ * Filter which Controls to delete
1831
+ */
1832
+ where?: Prisma.ControlWhereInput;
1833
+ /**
1834
+ * Limit how many Controls to delete.
1835
+ */
1836
+ limit?: number;
1837
+ };
1838
+ /**
1839
+ * Control.requirementsMapped
1840
+ */
1841
+ export type Control$requirementsMappedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1842
+ /**
1843
+ * Select specific fields to fetch from the RequirementMap
1844
+ */
1845
+ select?: Prisma.RequirementMapSelect<ExtArgs> | null;
1846
+ /**
1847
+ * Omit specific fields from the RequirementMap
1848
+ */
1849
+ omit?: Prisma.RequirementMapOmit<ExtArgs> | null;
1850
+ /**
1851
+ * Choose, which related nodes to fetch as well
1852
+ */
1853
+ include?: Prisma.RequirementMapInclude<ExtArgs> | null;
1854
+ where?: Prisma.RequirementMapWhereInput;
1855
+ orderBy?: Prisma.RequirementMapOrderByWithRelationInput | Prisma.RequirementMapOrderByWithRelationInput[];
1856
+ cursor?: Prisma.RequirementMapWhereUniqueInput;
1857
+ take?: number;
1858
+ skip?: number;
1859
+ distinct?: Prisma.RequirementMapScalarFieldEnum | Prisma.RequirementMapScalarFieldEnum[];
1860
+ };
1861
+ /**
1862
+ * Control.tasks
1863
+ */
1864
+ export type Control$tasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1865
+ /**
1866
+ * Select specific fields to fetch from the Task
1867
+ */
1868
+ select?: Prisma.TaskSelect<ExtArgs> | null;
1869
+ /**
1870
+ * Omit specific fields from the Task
1871
+ */
1872
+ omit?: Prisma.TaskOmit<ExtArgs> | null;
1873
+ /**
1874
+ * Choose, which related nodes to fetch as well
1875
+ */
1876
+ include?: Prisma.TaskInclude<ExtArgs> | null;
1877
+ where?: Prisma.TaskWhereInput;
1878
+ orderBy?: Prisma.TaskOrderByWithRelationInput | Prisma.TaskOrderByWithRelationInput[];
1879
+ cursor?: Prisma.TaskWhereUniqueInput;
1880
+ take?: number;
1881
+ skip?: number;
1882
+ distinct?: Prisma.TaskScalarFieldEnum | Prisma.TaskScalarFieldEnum[];
1883
+ };
1884
+ /**
1885
+ * Control.policies
1886
+ */
1887
+ export type Control$policiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1888
+ /**
1889
+ * Select specific fields to fetch from the Policy
1890
+ */
1891
+ select?: Prisma.PolicySelect<ExtArgs> | null;
1892
+ /**
1893
+ * Omit specific fields from the Policy
1894
+ */
1895
+ omit?: Prisma.PolicyOmit<ExtArgs> | null;
1896
+ /**
1897
+ * Choose, which related nodes to fetch as well
1898
+ */
1899
+ include?: Prisma.PolicyInclude<ExtArgs> | null;
1900
+ where?: Prisma.PolicyWhereInput;
1901
+ orderBy?: Prisma.PolicyOrderByWithRelationInput | Prisma.PolicyOrderByWithRelationInput[];
1902
+ cursor?: Prisma.PolicyWhereUniqueInput;
1903
+ take?: number;
1904
+ skip?: number;
1905
+ distinct?: Prisma.PolicyScalarFieldEnum | Prisma.PolicyScalarFieldEnum[];
1906
+ };
1907
+ /**
1908
+ * Control.controlTemplate
1909
+ */
1910
+ export type Control$controlTemplateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1911
+ /**
1912
+ * Select specific fields to fetch from the FrameworkEditorControlTemplate
1913
+ */
1914
+ select?: Prisma.FrameworkEditorControlTemplateSelect<ExtArgs> | null;
1915
+ /**
1916
+ * Omit specific fields from the FrameworkEditorControlTemplate
1917
+ */
1918
+ omit?: Prisma.FrameworkEditorControlTemplateOmit<ExtArgs> | null;
1919
+ /**
1920
+ * Choose, which related nodes to fetch as well
1921
+ */
1922
+ include?: Prisma.FrameworkEditorControlTemplateInclude<ExtArgs> | null;
1923
+ where?: Prisma.FrameworkEditorControlTemplateWhereInput;
1924
+ };
1925
+ /**
1926
+ * Control.controlDocumentTypes
1927
+ */
1928
+ export type Control$controlDocumentTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1929
+ /**
1930
+ * Select specific fields to fetch from the ControlDocumentType
1931
+ */
1932
+ select?: Prisma.ControlDocumentTypeSelect<ExtArgs> | null;
1933
+ /**
1934
+ * Omit specific fields from the ControlDocumentType
1935
+ */
1936
+ omit?: Prisma.ControlDocumentTypeOmit<ExtArgs> | null;
1937
+ /**
1938
+ * Choose, which related nodes to fetch as well
1939
+ */
1940
+ include?: Prisma.ControlDocumentTypeInclude<ExtArgs> | null;
1941
+ where?: Prisma.ControlDocumentTypeWhereInput;
1942
+ orderBy?: Prisma.ControlDocumentTypeOrderByWithRelationInput | Prisma.ControlDocumentTypeOrderByWithRelationInput[];
1943
+ cursor?: Prisma.ControlDocumentTypeWhereUniqueInput;
1944
+ take?: number;
1945
+ skip?: number;
1946
+ distinct?: Prisma.ControlDocumentTypeScalarFieldEnum | Prisma.ControlDocumentTypeScalarFieldEnum[];
1947
+ };
1948
+ /**
1949
+ * Control without action
1950
+ */
1951
+ export type ControlDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1952
+ /**
1953
+ * Select specific fields to fetch from the Control
1954
+ */
1955
+ select?: Prisma.ControlSelect<ExtArgs> | null;
1956
+ /**
1957
+ * Omit specific fields from the Control
1958
+ */
1959
+ omit?: Prisma.ControlOmit<ExtArgs> | null;
1960
+ /**
1961
+ * Choose, which related nodes to fetch as well
1962
+ */
1963
+ include?: Prisma.ControlInclude<ExtArgs> | null;
1964
+ };
1965
+ //# sourceMappingURL=Control.d.ts.map