@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,1391 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model RoleNotificationSetting
5
+ *
6
+ */
7
+ export type RoleNotificationSettingModel = runtime.Types.Result.DefaultSelection<Prisma.$RoleNotificationSettingPayload>;
8
+ export type AggregateRoleNotificationSetting = {
9
+ _count: RoleNotificationSettingCountAggregateOutputType | null;
10
+ _min: RoleNotificationSettingMinAggregateOutputType | null;
11
+ _max: RoleNotificationSettingMaxAggregateOutputType | null;
12
+ };
13
+ export type RoleNotificationSettingMinAggregateOutputType = {
14
+ id: string | null;
15
+ organizationId: string | null;
16
+ role: string | null;
17
+ policyNotifications: boolean | null;
18
+ taskReminders: boolean | null;
19
+ taskAssignments: boolean | null;
20
+ taskMentions: boolean | null;
21
+ weeklyTaskDigest: boolean | null;
22
+ findingNotifications: boolean | null;
23
+ createdAt: Date | null;
24
+ updatedAt: Date | null;
25
+ };
26
+ export type RoleNotificationSettingMaxAggregateOutputType = {
27
+ id: string | null;
28
+ organizationId: string | null;
29
+ role: string | null;
30
+ policyNotifications: boolean | null;
31
+ taskReminders: boolean | null;
32
+ taskAssignments: boolean | null;
33
+ taskMentions: boolean | null;
34
+ weeklyTaskDigest: boolean | null;
35
+ findingNotifications: boolean | null;
36
+ createdAt: Date | null;
37
+ updatedAt: Date | null;
38
+ };
39
+ export type RoleNotificationSettingCountAggregateOutputType = {
40
+ id: number;
41
+ organizationId: number;
42
+ role: number;
43
+ policyNotifications: number;
44
+ taskReminders: number;
45
+ taskAssignments: number;
46
+ taskMentions: number;
47
+ weeklyTaskDigest: number;
48
+ findingNotifications: number;
49
+ createdAt: number;
50
+ updatedAt: number;
51
+ _all: number;
52
+ };
53
+ export type RoleNotificationSettingMinAggregateInputType = {
54
+ id?: true;
55
+ organizationId?: true;
56
+ role?: true;
57
+ policyNotifications?: true;
58
+ taskReminders?: true;
59
+ taskAssignments?: true;
60
+ taskMentions?: true;
61
+ weeklyTaskDigest?: true;
62
+ findingNotifications?: true;
63
+ createdAt?: true;
64
+ updatedAt?: true;
65
+ };
66
+ export type RoleNotificationSettingMaxAggregateInputType = {
67
+ id?: true;
68
+ organizationId?: true;
69
+ role?: true;
70
+ policyNotifications?: true;
71
+ taskReminders?: true;
72
+ taskAssignments?: true;
73
+ taskMentions?: true;
74
+ weeklyTaskDigest?: true;
75
+ findingNotifications?: true;
76
+ createdAt?: true;
77
+ updatedAt?: true;
78
+ };
79
+ export type RoleNotificationSettingCountAggregateInputType = {
80
+ id?: true;
81
+ organizationId?: true;
82
+ role?: true;
83
+ policyNotifications?: true;
84
+ taskReminders?: true;
85
+ taskAssignments?: true;
86
+ taskMentions?: true;
87
+ weeklyTaskDigest?: true;
88
+ findingNotifications?: true;
89
+ createdAt?: true;
90
+ updatedAt?: true;
91
+ _all?: true;
92
+ };
93
+ export type RoleNotificationSettingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
94
+ /**
95
+ * Filter which RoleNotificationSetting to aggregate.
96
+ */
97
+ where?: Prisma.RoleNotificationSettingWhereInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
100
+ *
101
+ * Determine the order of RoleNotificationSettings to fetch.
102
+ */
103
+ orderBy?: Prisma.RoleNotificationSettingOrderByWithRelationInput | Prisma.RoleNotificationSettingOrderByWithRelationInput[];
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
106
+ *
107
+ * Sets the start position
108
+ */
109
+ cursor?: Prisma.RoleNotificationSettingWhereUniqueInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
112
+ *
113
+ * Take `±n` RoleNotificationSettings from the position of the cursor.
114
+ */
115
+ take?: number;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
118
+ *
119
+ * Skip the first `n` RoleNotificationSettings.
120
+ */
121
+ skip?: number;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Count returned RoleNotificationSettings
126
+ **/
127
+ _count?: true | RoleNotificationSettingCountAggregateInputType;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the minimum value
132
+ **/
133
+ _min?: RoleNotificationSettingMinAggregateInputType;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Select which fields to find the maximum value
138
+ **/
139
+ _max?: RoleNotificationSettingMaxAggregateInputType;
140
+ };
141
+ export type GetRoleNotificationSettingAggregateType<T extends RoleNotificationSettingAggregateArgs> = {
142
+ [P in keyof T & keyof AggregateRoleNotificationSetting]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRoleNotificationSetting[P]> : Prisma.GetScalarType<T[P], AggregateRoleNotificationSetting[P]>;
143
+ };
144
+ export type RoleNotificationSettingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.RoleNotificationSettingWhereInput;
146
+ orderBy?: Prisma.RoleNotificationSettingOrderByWithAggregationInput | Prisma.RoleNotificationSettingOrderByWithAggregationInput[];
147
+ by: Prisma.RoleNotificationSettingScalarFieldEnum[] | Prisma.RoleNotificationSettingScalarFieldEnum;
148
+ having?: Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput;
149
+ take?: number;
150
+ skip?: number;
151
+ _count?: RoleNotificationSettingCountAggregateInputType | true;
152
+ _min?: RoleNotificationSettingMinAggregateInputType;
153
+ _max?: RoleNotificationSettingMaxAggregateInputType;
154
+ };
155
+ export type RoleNotificationSettingGroupByOutputType = {
156
+ id: string;
157
+ organizationId: string;
158
+ role: string;
159
+ policyNotifications: boolean;
160
+ taskReminders: boolean;
161
+ taskAssignments: boolean;
162
+ taskMentions: boolean;
163
+ weeklyTaskDigest: boolean;
164
+ findingNotifications: boolean;
165
+ createdAt: Date;
166
+ updatedAt: Date;
167
+ _count: RoleNotificationSettingCountAggregateOutputType | null;
168
+ _min: RoleNotificationSettingMinAggregateOutputType | null;
169
+ _max: RoleNotificationSettingMaxAggregateOutputType | null;
170
+ };
171
+ export type GetRoleNotificationSettingGroupByPayload<T extends RoleNotificationSettingGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RoleNotificationSettingGroupByOutputType, T['by']> & {
172
+ [P in ((keyof T) & (keyof RoleNotificationSettingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RoleNotificationSettingGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RoleNotificationSettingGroupByOutputType[P]>;
173
+ }>>;
174
+ export type RoleNotificationSettingWhereInput = {
175
+ AND?: Prisma.RoleNotificationSettingWhereInput | Prisma.RoleNotificationSettingWhereInput[];
176
+ OR?: Prisma.RoleNotificationSettingWhereInput[];
177
+ NOT?: Prisma.RoleNotificationSettingWhereInput | Prisma.RoleNotificationSettingWhereInput[];
178
+ id?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
179
+ organizationId?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
180
+ role?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
181
+ policyNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
182
+ taskReminders?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
183
+ taskAssignments?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
184
+ taskMentions?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
185
+ weeklyTaskDigest?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
186
+ findingNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
187
+ createdAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
188
+ updatedAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
189
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
190
+ };
191
+ export type RoleNotificationSettingOrderByWithRelationInput = {
192
+ id?: Prisma.SortOrder;
193
+ organizationId?: Prisma.SortOrder;
194
+ role?: Prisma.SortOrder;
195
+ policyNotifications?: Prisma.SortOrder;
196
+ taskReminders?: Prisma.SortOrder;
197
+ taskAssignments?: Prisma.SortOrder;
198
+ taskMentions?: Prisma.SortOrder;
199
+ weeklyTaskDigest?: Prisma.SortOrder;
200
+ findingNotifications?: Prisma.SortOrder;
201
+ createdAt?: Prisma.SortOrder;
202
+ updatedAt?: Prisma.SortOrder;
203
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
204
+ };
205
+ export type RoleNotificationSettingWhereUniqueInput = Prisma.AtLeast<{
206
+ id?: string;
207
+ organizationId_role?: Prisma.RoleNotificationSettingOrganizationIdRoleCompoundUniqueInput;
208
+ AND?: Prisma.RoleNotificationSettingWhereInput | Prisma.RoleNotificationSettingWhereInput[];
209
+ OR?: Prisma.RoleNotificationSettingWhereInput[];
210
+ NOT?: Prisma.RoleNotificationSettingWhereInput | Prisma.RoleNotificationSettingWhereInput[];
211
+ organizationId?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
212
+ role?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
213
+ policyNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
214
+ taskReminders?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
215
+ taskAssignments?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
216
+ taskMentions?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
217
+ weeklyTaskDigest?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
218
+ findingNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
219
+ createdAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
220
+ updatedAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
221
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
222
+ }, "id" | "organizationId_role">;
223
+ export type RoleNotificationSettingOrderByWithAggregationInput = {
224
+ id?: Prisma.SortOrder;
225
+ organizationId?: Prisma.SortOrder;
226
+ role?: Prisma.SortOrder;
227
+ policyNotifications?: Prisma.SortOrder;
228
+ taskReminders?: Prisma.SortOrder;
229
+ taskAssignments?: Prisma.SortOrder;
230
+ taskMentions?: Prisma.SortOrder;
231
+ weeklyTaskDigest?: Prisma.SortOrder;
232
+ findingNotifications?: Prisma.SortOrder;
233
+ createdAt?: Prisma.SortOrder;
234
+ updatedAt?: Prisma.SortOrder;
235
+ _count?: Prisma.RoleNotificationSettingCountOrderByAggregateInput;
236
+ _max?: Prisma.RoleNotificationSettingMaxOrderByAggregateInput;
237
+ _min?: Prisma.RoleNotificationSettingMinOrderByAggregateInput;
238
+ };
239
+ export type RoleNotificationSettingScalarWhereWithAggregatesInput = {
240
+ AND?: Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput | Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput[];
241
+ OR?: Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput[];
242
+ NOT?: Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput | Prisma.RoleNotificationSettingScalarWhereWithAggregatesInput[];
243
+ id?: Prisma.StringWithAggregatesFilter<"RoleNotificationSetting"> | string;
244
+ organizationId?: Prisma.StringWithAggregatesFilter<"RoleNotificationSetting"> | string;
245
+ role?: Prisma.StringWithAggregatesFilter<"RoleNotificationSetting"> | string;
246
+ policyNotifications?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
247
+ taskReminders?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
248
+ taskAssignments?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
249
+ taskMentions?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
250
+ weeklyTaskDigest?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
251
+ findingNotifications?: Prisma.BoolWithAggregatesFilter<"RoleNotificationSetting"> | boolean;
252
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"RoleNotificationSetting"> | Date | string;
253
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"RoleNotificationSetting"> | Date | string;
254
+ };
255
+ export type RoleNotificationSettingCreateInput = {
256
+ id?: string;
257
+ role: string;
258
+ policyNotifications?: boolean;
259
+ taskReminders?: boolean;
260
+ taskAssignments?: boolean;
261
+ taskMentions?: boolean;
262
+ weeklyTaskDigest?: boolean;
263
+ findingNotifications?: boolean;
264
+ createdAt?: Date | string;
265
+ updatedAt?: Date | string;
266
+ organization: Prisma.OrganizationCreateNestedOneWithoutRoleNotificationSettingsInput;
267
+ };
268
+ export type RoleNotificationSettingUncheckedCreateInput = {
269
+ id?: string;
270
+ organizationId: string;
271
+ role: string;
272
+ policyNotifications?: boolean;
273
+ taskReminders?: boolean;
274
+ taskAssignments?: boolean;
275
+ taskMentions?: boolean;
276
+ weeklyTaskDigest?: boolean;
277
+ findingNotifications?: boolean;
278
+ createdAt?: Date | string;
279
+ updatedAt?: Date | string;
280
+ };
281
+ export type RoleNotificationSettingUpdateInput = {
282
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
283
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
285
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
286
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
287
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
288
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
289
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
290
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
291
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
292
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutRoleNotificationSettingsNestedInput;
293
+ };
294
+ export type RoleNotificationSettingUncheckedUpdateInput = {
295
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
297
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
298
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
299
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
300
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
301
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
302
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
303
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ };
307
+ export type RoleNotificationSettingCreateManyInput = {
308
+ id?: string;
309
+ organizationId: string;
310
+ role: string;
311
+ policyNotifications?: boolean;
312
+ taskReminders?: boolean;
313
+ taskAssignments?: boolean;
314
+ taskMentions?: boolean;
315
+ weeklyTaskDigest?: boolean;
316
+ findingNotifications?: boolean;
317
+ createdAt?: Date | string;
318
+ updatedAt?: Date | string;
319
+ };
320
+ export type RoleNotificationSettingUpdateManyMutationInput = {
321
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
324
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
325
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
326
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
327
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
328
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
+ };
332
+ export type RoleNotificationSettingUncheckedUpdateManyInput = {
333
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
337
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
338
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
339
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
340
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
341
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
343
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
344
+ };
345
+ export type RoleNotificationSettingOrganizationIdRoleCompoundUniqueInput = {
346
+ organizationId: string;
347
+ role: string;
348
+ };
349
+ export type RoleNotificationSettingCountOrderByAggregateInput = {
350
+ id?: Prisma.SortOrder;
351
+ organizationId?: Prisma.SortOrder;
352
+ role?: Prisma.SortOrder;
353
+ policyNotifications?: Prisma.SortOrder;
354
+ taskReminders?: Prisma.SortOrder;
355
+ taskAssignments?: Prisma.SortOrder;
356
+ taskMentions?: Prisma.SortOrder;
357
+ weeklyTaskDigest?: Prisma.SortOrder;
358
+ findingNotifications?: Prisma.SortOrder;
359
+ createdAt?: Prisma.SortOrder;
360
+ updatedAt?: Prisma.SortOrder;
361
+ };
362
+ export type RoleNotificationSettingMaxOrderByAggregateInput = {
363
+ id?: Prisma.SortOrder;
364
+ organizationId?: Prisma.SortOrder;
365
+ role?: Prisma.SortOrder;
366
+ policyNotifications?: Prisma.SortOrder;
367
+ taskReminders?: Prisma.SortOrder;
368
+ taskAssignments?: Prisma.SortOrder;
369
+ taskMentions?: Prisma.SortOrder;
370
+ weeklyTaskDigest?: Prisma.SortOrder;
371
+ findingNotifications?: Prisma.SortOrder;
372
+ createdAt?: Prisma.SortOrder;
373
+ updatedAt?: Prisma.SortOrder;
374
+ };
375
+ export type RoleNotificationSettingMinOrderByAggregateInput = {
376
+ id?: Prisma.SortOrder;
377
+ organizationId?: Prisma.SortOrder;
378
+ role?: Prisma.SortOrder;
379
+ policyNotifications?: Prisma.SortOrder;
380
+ taskReminders?: Prisma.SortOrder;
381
+ taskAssignments?: Prisma.SortOrder;
382
+ taskMentions?: Prisma.SortOrder;
383
+ weeklyTaskDigest?: Prisma.SortOrder;
384
+ findingNotifications?: Prisma.SortOrder;
385
+ createdAt?: Prisma.SortOrder;
386
+ updatedAt?: Prisma.SortOrder;
387
+ };
388
+ export type RoleNotificationSettingListRelationFilter = {
389
+ every?: Prisma.RoleNotificationSettingWhereInput;
390
+ some?: Prisma.RoleNotificationSettingWhereInput;
391
+ none?: Prisma.RoleNotificationSettingWhereInput;
392
+ };
393
+ export type RoleNotificationSettingOrderByRelationAggregateInput = {
394
+ _count?: Prisma.SortOrder;
395
+ };
396
+ export type RoleNotificationSettingCreateNestedManyWithoutOrganizationInput = {
397
+ create?: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput> | Prisma.RoleNotificationSettingCreateWithoutOrganizationInput[] | Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput[];
398
+ connectOrCreate?: Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput | Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput[];
399
+ createMany?: Prisma.RoleNotificationSettingCreateManyOrganizationInputEnvelope;
400
+ connect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
401
+ };
402
+ export type RoleNotificationSettingUncheckedCreateNestedManyWithoutOrganizationInput = {
403
+ create?: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput> | Prisma.RoleNotificationSettingCreateWithoutOrganizationInput[] | Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput[];
404
+ connectOrCreate?: Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput | Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput[];
405
+ createMany?: Prisma.RoleNotificationSettingCreateManyOrganizationInputEnvelope;
406
+ connect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
407
+ };
408
+ export type RoleNotificationSettingUpdateManyWithoutOrganizationNestedInput = {
409
+ create?: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput> | Prisma.RoleNotificationSettingCreateWithoutOrganizationInput[] | Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput[];
410
+ connectOrCreate?: Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput | Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput[];
411
+ upsert?: Prisma.RoleNotificationSettingUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.RoleNotificationSettingUpsertWithWhereUniqueWithoutOrganizationInput[];
412
+ createMany?: Prisma.RoleNotificationSettingCreateManyOrganizationInputEnvelope;
413
+ set?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
414
+ disconnect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
415
+ delete?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
416
+ connect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
417
+ update?: Prisma.RoleNotificationSettingUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.RoleNotificationSettingUpdateWithWhereUniqueWithoutOrganizationInput[];
418
+ updateMany?: Prisma.RoleNotificationSettingUpdateManyWithWhereWithoutOrganizationInput | Prisma.RoleNotificationSettingUpdateManyWithWhereWithoutOrganizationInput[];
419
+ deleteMany?: Prisma.RoleNotificationSettingScalarWhereInput | Prisma.RoleNotificationSettingScalarWhereInput[];
420
+ };
421
+ export type RoleNotificationSettingUncheckedUpdateManyWithoutOrganizationNestedInput = {
422
+ create?: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput> | Prisma.RoleNotificationSettingCreateWithoutOrganizationInput[] | Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput[];
423
+ connectOrCreate?: Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput | Prisma.RoleNotificationSettingCreateOrConnectWithoutOrganizationInput[];
424
+ upsert?: Prisma.RoleNotificationSettingUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.RoleNotificationSettingUpsertWithWhereUniqueWithoutOrganizationInput[];
425
+ createMany?: Prisma.RoleNotificationSettingCreateManyOrganizationInputEnvelope;
426
+ set?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
427
+ disconnect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
428
+ delete?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
429
+ connect?: Prisma.RoleNotificationSettingWhereUniqueInput | Prisma.RoleNotificationSettingWhereUniqueInput[];
430
+ update?: Prisma.RoleNotificationSettingUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.RoleNotificationSettingUpdateWithWhereUniqueWithoutOrganizationInput[];
431
+ updateMany?: Prisma.RoleNotificationSettingUpdateManyWithWhereWithoutOrganizationInput | Prisma.RoleNotificationSettingUpdateManyWithWhereWithoutOrganizationInput[];
432
+ deleteMany?: Prisma.RoleNotificationSettingScalarWhereInput | Prisma.RoleNotificationSettingScalarWhereInput[];
433
+ };
434
+ export type RoleNotificationSettingCreateWithoutOrganizationInput = {
435
+ id?: string;
436
+ role: string;
437
+ policyNotifications?: boolean;
438
+ taskReminders?: boolean;
439
+ taskAssignments?: boolean;
440
+ taskMentions?: boolean;
441
+ weeklyTaskDigest?: boolean;
442
+ findingNotifications?: boolean;
443
+ createdAt?: Date | string;
444
+ updatedAt?: Date | string;
445
+ };
446
+ export type RoleNotificationSettingUncheckedCreateWithoutOrganizationInput = {
447
+ id?: string;
448
+ role: string;
449
+ policyNotifications?: boolean;
450
+ taskReminders?: boolean;
451
+ taskAssignments?: boolean;
452
+ taskMentions?: boolean;
453
+ weeklyTaskDigest?: boolean;
454
+ findingNotifications?: boolean;
455
+ createdAt?: Date | string;
456
+ updatedAt?: Date | string;
457
+ };
458
+ export type RoleNotificationSettingCreateOrConnectWithoutOrganizationInput = {
459
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
460
+ create: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput>;
461
+ };
462
+ export type RoleNotificationSettingCreateManyOrganizationInputEnvelope = {
463
+ data: Prisma.RoleNotificationSettingCreateManyOrganizationInput | Prisma.RoleNotificationSettingCreateManyOrganizationInput[];
464
+ skipDuplicates?: boolean;
465
+ };
466
+ export type RoleNotificationSettingUpsertWithWhereUniqueWithoutOrganizationInput = {
467
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
468
+ update: Prisma.XOR<Prisma.RoleNotificationSettingUpdateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedUpdateWithoutOrganizationInput>;
469
+ create: Prisma.XOR<Prisma.RoleNotificationSettingCreateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedCreateWithoutOrganizationInput>;
470
+ };
471
+ export type RoleNotificationSettingUpdateWithWhereUniqueWithoutOrganizationInput = {
472
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
473
+ data: Prisma.XOR<Prisma.RoleNotificationSettingUpdateWithoutOrganizationInput, Prisma.RoleNotificationSettingUncheckedUpdateWithoutOrganizationInput>;
474
+ };
475
+ export type RoleNotificationSettingUpdateManyWithWhereWithoutOrganizationInput = {
476
+ where: Prisma.RoleNotificationSettingScalarWhereInput;
477
+ data: Prisma.XOR<Prisma.RoleNotificationSettingUpdateManyMutationInput, Prisma.RoleNotificationSettingUncheckedUpdateManyWithoutOrganizationInput>;
478
+ };
479
+ export type RoleNotificationSettingScalarWhereInput = {
480
+ AND?: Prisma.RoleNotificationSettingScalarWhereInput | Prisma.RoleNotificationSettingScalarWhereInput[];
481
+ OR?: Prisma.RoleNotificationSettingScalarWhereInput[];
482
+ NOT?: Prisma.RoleNotificationSettingScalarWhereInput | Prisma.RoleNotificationSettingScalarWhereInput[];
483
+ id?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
484
+ organizationId?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
485
+ role?: Prisma.StringFilter<"RoleNotificationSetting"> | string;
486
+ policyNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
487
+ taskReminders?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
488
+ taskAssignments?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
489
+ taskMentions?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
490
+ weeklyTaskDigest?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
491
+ findingNotifications?: Prisma.BoolFilter<"RoleNotificationSetting"> | boolean;
492
+ createdAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
493
+ updatedAt?: Prisma.DateTimeFilter<"RoleNotificationSetting"> | Date | string;
494
+ };
495
+ export type RoleNotificationSettingCreateManyOrganizationInput = {
496
+ id?: string;
497
+ role: string;
498
+ policyNotifications?: boolean;
499
+ taskReminders?: boolean;
500
+ taskAssignments?: boolean;
501
+ taskMentions?: boolean;
502
+ weeklyTaskDigest?: boolean;
503
+ findingNotifications?: boolean;
504
+ createdAt?: Date | string;
505
+ updatedAt?: Date | string;
506
+ };
507
+ export type RoleNotificationSettingUpdateWithoutOrganizationInput = {
508
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
509
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
510
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
511
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
512
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
513
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
514
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
515
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
516
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
517
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
518
+ };
519
+ export type RoleNotificationSettingUncheckedUpdateWithoutOrganizationInput = {
520
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
521
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
522
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
523
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
524
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
525
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
526
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
527
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
528
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
529
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
530
+ };
531
+ export type RoleNotificationSettingUncheckedUpdateManyWithoutOrganizationInput = {
532
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ role?: Prisma.StringFieldUpdateOperationsInput | string;
534
+ policyNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
535
+ taskReminders?: Prisma.BoolFieldUpdateOperationsInput | boolean;
536
+ taskAssignments?: Prisma.BoolFieldUpdateOperationsInput | boolean;
537
+ taskMentions?: Prisma.BoolFieldUpdateOperationsInput | boolean;
538
+ weeklyTaskDigest?: Prisma.BoolFieldUpdateOperationsInput | boolean;
539
+ findingNotifications?: Prisma.BoolFieldUpdateOperationsInput | boolean;
540
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
541
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
542
+ };
543
+ export type RoleNotificationSettingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
544
+ id?: boolean;
545
+ organizationId?: boolean;
546
+ role?: boolean;
547
+ policyNotifications?: boolean;
548
+ taskReminders?: boolean;
549
+ taskAssignments?: boolean;
550
+ taskMentions?: boolean;
551
+ weeklyTaskDigest?: boolean;
552
+ findingNotifications?: boolean;
553
+ createdAt?: boolean;
554
+ updatedAt?: boolean;
555
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
556
+ }, ExtArgs["result"]["roleNotificationSetting"]>;
557
+ export type RoleNotificationSettingSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
558
+ id?: boolean;
559
+ organizationId?: boolean;
560
+ role?: boolean;
561
+ policyNotifications?: boolean;
562
+ taskReminders?: boolean;
563
+ taskAssignments?: boolean;
564
+ taskMentions?: boolean;
565
+ weeklyTaskDigest?: boolean;
566
+ findingNotifications?: boolean;
567
+ createdAt?: boolean;
568
+ updatedAt?: boolean;
569
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
570
+ }, ExtArgs["result"]["roleNotificationSetting"]>;
571
+ export type RoleNotificationSettingSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
572
+ id?: boolean;
573
+ organizationId?: boolean;
574
+ role?: boolean;
575
+ policyNotifications?: boolean;
576
+ taskReminders?: boolean;
577
+ taskAssignments?: boolean;
578
+ taskMentions?: boolean;
579
+ weeklyTaskDigest?: boolean;
580
+ findingNotifications?: boolean;
581
+ createdAt?: boolean;
582
+ updatedAt?: boolean;
583
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
584
+ }, ExtArgs["result"]["roleNotificationSetting"]>;
585
+ export type RoleNotificationSettingSelectScalar = {
586
+ id?: boolean;
587
+ organizationId?: boolean;
588
+ role?: boolean;
589
+ policyNotifications?: boolean;
590
+ taskReminders?: boolean;
591
+ taskAssignments?: boolean;
592
+ taskMentions?: boolean;
593
+ weeklyTaskDigest?: boolean;
594
+ findingNotifications?: boolean;
595
+ createdAt?: boolean;
596
+ updatedAt?: boolean;
597
+ };
598
+ export type RoleNotificationSettingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "role" | "policyNotifications" | "taskReminders" | "taskAssignments" | "taskMentions" | "weeklyTaskDigest" | "findingNotifications" | "createdAt" | "updatedAt", ExtArgs["result"]["roleNotificationSetting"]>;
599
+ export type RoleNotificationSettingInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
600
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
601
+ };
602
+ export type RoleNotificationSettingIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
603
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
604
+ };
605
+ export type RoleNotificationSettingIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
606
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
607
+ };
608
+ export type $RoleNotificationSettingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
609
+ name: "RoleNotificationSetting";
610
+ objects: {
611
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
612
+ };
613
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
614
+ id: string;
615
+ organizationId: string;
616
+ role: string;
617
+ policyNotifications: boolean;
618
+ taskReminders: boolean;
619
+ taskAssignments: boolean;
620
+ taskMentions: boolean;
621
+ weeklyTaskDigest: boolean;
622
+ findingNotifications: boolean;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ }, ExtArgs["result"]["roleNotificationSetting"]>;
626
+ composites: {};
627
+ };
628
+ export type RoleNotificationSettingGetPayload<S extends boolean | null | undefined | RoleNotificationSettingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload, S>;
629
+ export type RoleNotificationSettingCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RoleNotificationSettingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
630
+ select?: RoleNotificationSettingCountAggregateInputType | true;
631
+ };
632
+ export interface RoleNotificationSettingDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
633
+ [K: symbol]: {
634
+ types: Prisma.TypeMap<ExtArgs>['model']['RoleNotificationSetting'];
635
+ meta: {
636
+ name: 'RoleNotificationSetting';
637
+ };
638
+ };
639
+ /**
640
+ * Find zero or one RoleNotificationSetting that matches the filter.
641
+ * @param {RoleNotificationSettingFindUniqueArgs} args - Arguments to find a RoleNotificationSetting
642
+ * @example
643
+ * // Get one RoleNotificationSetting
644
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.findUnique({
645
+ * where: {
646
+ * // ... provide filter here
647
+ * }
648
+ * })
649
+ */
650
+ findUnique<T extends RoleNotificationSettingFindUniqueArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
651
+ /**
652
+ * Find one RoleNotificationSetting that matches the filter or throw an error with `error.code='P2025'`
653
+ * if no matches were found.
654
+ * @param {RoleNotificationSettingFindUniqueOrThrowArgs} args - Arguments to find a RoleNotificationSetting
655
+ * @example
656
+ * // Get one RoleNotificationSetting
657
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.findUniqueOrThrow({
658
+ * where: {
659
+ * // ... provide filter here
660
+ * }
661
+ * })
662
+ */
663
+ findUniqueOrThrow<T extends RoleNotificationSettingFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
664
+ /**
665
+ * Find the first RoleNotificationSetting that matches the filter.
666
+ * Note, that providing `undefined` is treated as the value not being there.
667
+ * Read more here: https://pris.ly/d/null-undefined
668
+ * @param {RoleNotificationSettingFindFirstArgs} args - Arguments to find a RoleNotificationSetting
669
+ * @example
670
+ * // Get one RoleNotificationSetting
671
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.findFirst({
672
+ * where: {
673
+ * // ... provide filter here
674
+ * }
675
+ * })
676
+ */
677
+ findFirst<T extends RoleNotificationSettingFindFirstArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingFindFirstArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
678
+ /**
679
+ * Find the first RoleNotificationSetting that matches the filter or
680
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
681
+ * Note, that providing `undefined` is treated as the value not being there.
682
+ * Read more here: https://pris.ly/d/null-undefined
683
+ * @param {RoleNotificationSettingFindFirstOrThrowArgs} args - Arguments to find a RoleNotificationSetting
684
+ * @example
685
+ * // Get one RoleNotificationSetting
686
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.findFirstOrThrow({
687
+ * where: {
688
+ * // ... provide filter here
689
+ * }
690
+ * })
691
+ */
692
+ findFirstOrThrow<T extends RoleNotificationSettingFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
693
+ /**
694
+ * Find zero or more RoleNotificationSettings that matches the filter.
695
+ * Note, that providing `undefined` is treated as the value not being there.
696
+ * Read more here: https://pris.ly/d/null-undefined
697
+ * @param {RoleNotificationSettingFindManyArgs} args - Arguments to filter and select certain fields only.
698
+ * @example
699
+ * // Get all RoleNotificationSettings
700
+ * const roleNotificationSettings = await prisma.roleNotificationSetting.findMany()
701
+ *
702
+ * // Get first 10 RoleNotificationSettings
703
+ * const roleNotificationSettings = await prisma.roleNotificationSetting.findMany({ take: 10 })
704
+ *
705
+ * // Only select the `id`
706
+ * const roleNotificationSettingWithIdOnly = await prisma.roleNotificationSetting.findMany({ select: { id: true } })
707
+ *
708
+ */
709
+ findMany<T extends RoleNotificationSettingFindManyArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
710
+ /**
711
+ * Create a RoleNotificationSetting.
712
+ * @param {RoleNotificationSettingCreateArgs} args - Arguments to create a RoleNotificationSetting.
713
+ * @example
714
+ * // Create one RoleNotificationSetting
715
+ * const RoleNotificationSetting = await prisma.roleNotificationSetting.create({
716
+ * data: {
717
+ * // ... data to create a RoleNotificationSetting
718
+ * }
719
+ * })
720
+ *
721
+ */
722
+ create<T extends RoleNotificationSettingCreateArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingCreateArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
723
+ /**
724
+ * Create many RoleNotificationSettings.
725
+ * @param {RoleNotificationSettingCreateManyArgs} args - Arguments to create many RoleNotificationSettings.
726
+ * @example
727
+ * // Create many RoleNotificationSettings
728
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.createMany({
729
+ * data: [
730
+ * // ... provide data here
731
+ * ]
732
+ * })
733
+ *
734
+ */
735
+ createMany<T extends RoleNotificationSettingCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
736
+ /**
737
+ * Create many RoleNotificationSettings and returns the data saved in the database.
738
+ * @param {RoleNotificationSettingCreateManyAndReturnArgs} args - Arguments to create many RoleNotificationSettings.
739
+ * @example
740
+ * // Create many RoleNotificationSettings
741
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.createManyAndReturn({
742
+ * data: [
743
+ * // ... provide data here
744
+ * ]
745
+ * })
746
+ *
747
+ * // Create many RoleNotificationSettings and only return the `id`
748
+ * const roleNotificationSettingWithIdOnly = await prisma.roleNotificationSetting.createManyAndReturn({
749
+ * select: { id: true },
750
+ * data: [
751
+ * // ... provide data here
752
+ * ]
753
+ * })
754
+ * Note, that providing `undefined` is treated as the value not being there.
755
+ * Read more here: https://pris.ly/d/null-undefined
756
+ *
757
+ */
758
+ createManyAndReturn<T extends RoleNotificationSettingCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
759
+ /**
760
+ * Delete a RoleNotificationSetting.
761
+ * @param {RoleNotificationSettingDeleteArgs} args - Arguments to delete one RoleNotificationSetting.
762
+ * @example
763
+ * // Delete one RoleNotificationSetting
764
+ * const RoleNotificationSetting = await prisma.roleNotificationSetting.delete({
765
+ * where: {
766
+ * // ... filter to delete one RoleNotificationSetting
767
+ * }
768
+ * })
769
+ *
770
+ */
771
+ delete<T extends RoleNotificationSettingDeleteArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingDeleteArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
772
+ /**
773
+ * Update one RoleNotificationSetting.
774
+ * @param {RoleNotificationSettingUpdateArgs} args - Arguments to update one RoleNotificationSetting.
775
+ * @example
776
+ * // Update one RoleNotificationSetting
777
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.update({
778
+ * where: {
779
+ * // ... provide filter here
780
+ * },
781
+ * data: {
782
+ * // ... provide data here
783
+ * }
784
+ * })
785
+ *
786
+ */
787
+ update<T extends RoleNotificationSettingUpdateArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingUpdateArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
788
+ /**
789
+ * Delete zero or more RoleNotificationSettings.
790
+ * @param {RoleNotificationSettingDeleteManyArgs} args - Arguments to filter RoleNotificationSettings to delete.
791
+ * @example
792
+ * // Delete a few RoleNotificationSettings
793
+ * const { count } = await prisma.roleNotificationSetting.deleteMany({
794
+ * where: {
795
+ * // ... provide filter here
796
+ * }
797
+ * })
798
+ *
799
+ */
800
+ deleteMany<T extends RoleNotificationSettingDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleNotificationSettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
801
+ /**
802
+ * Update zero or more RoleNotificationSettings.
803
+ * Note, that providing `undefined` is treated as the value not being there.
804
+ * Read more here: https://pris.ly/d/null-undefined
805
+ * @param {RoleNotificationSettingUpdateManyArgs} args - Arguments to update one or more rows.
806
+ * @example
807
+ * // Update many RoleNotificationSettings
808
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.updateMany({
809
+ * where: {
810
+ * // ... provide filter here
811
+ * },
812
+ * data: {
813
+ * // ... provide data here
814
+ * }
815
+ * })
816
+ *
817
+ */
818
+ updateMany<T extends RoleNotificationSettingUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
819
+ /**
820
+ * Update zero or more RoleNotificationSettings and returns the data updated in the database.
821
+ * @param {RoleNotificationSettingUpdateManyAndReturnArgs} args - Arguments to update many RoleNotificationSettings.
822
+ * @example
823
+ * // Update many RoleNotificationSettings
824
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.updateManyAndReturn({
825
+ * where: {
826
+ * // ... provide filter here
827
+ * },
828
+ * data: [
829
+ * // ... provide data here
830
+ * ]
831
+ * })
832
+ *
833
+ * // Update zero or more RoleNotificationSettings and only return the `id`
834
+ * const roleNotificationSettingWithIdOnly = await prisma.roleNotificationSetting.updateManyAndReturn({
835
+ * select: { id: true },
836
+ * where: {
837
+ * // ... provide filter here
838
+ * },
839
+ * data: [
840
+ * // ... provide data here
841
+ * ]
842
+ * })
843
+ * Note, that providing `undefined` is treated as the value not being there.
844
+ * Read more here: https://pris.ly/d/null-undefined
845
+ *
846
+ */
847
+ updateManyAndReturn<T extends RoleNotificationSettingUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
848
+ /**
849
+ * Create or update one RoleNotificationSetting.
850
+ * @param {RoleNotificationSettingUpsertArgs} args - Arguments to update or create a RoleNotificationSetting.
851
+ * @example
852
+ * // Update or create a RoleNotificationSetting
853
+ * const roleNotificationSetting = await prisma.roleNotificationSetting.upsert({
854
+ * create: {
855
+ * // ... data to create a RoleNotificationSetting
856
+ * },
857
+ * update: {
858
+ * // ... in case it already exists, update
859
+ * },
860
+ * where: {
861
+ * // ... the filter for the RoleNotificationSetting we want to update
862
+ * }
863
+ * })
864
+ */
865
+ upsert<T extends RoleNotificationSettingUpsertArgs>(args: Prisma.SelectSubset<T, RoleNotificationSettingUpsertArgs<ExtArgs>>): Prisma.Prisma__RoleNotificationSettingClient<runtime.Types.Result.GetResult<Prisma.$RoleNotificationSettingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
866
+ /**
867
+ * Count the number of RoleNotificationSettings.
868
+ * Note, that providing `undefined` is treated as the value not being there.
869
+ * Read more here: https://pris.ly/d/null-undefined
870
+ * @param {RoleNotificationSettingCountArgs} args - Arguments to filter RoleNotificationSettings to count.
871
+ * @example
872
+ * // Count the number of RoleNotificationSettings
873
+ * const count = await prisma.roleNotificationSetting.count({
874
+ * where: {
875
+ * // ... the filter for the RoleNotificationSettings we want to count
876
+ * }
877
+ * })
878
+ **/
879
+ count<T extends RoleNotificationSettingCountArgs>(args?: Prisma.Subset<T, RoleNotificationSettingCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RoleNotificationSettingCountAggregateOutputType> : number>;
880
+ /**
881
+ * Allows you to perform aggregations operations on a RoleNotificationSetting.
882
+ * Note, that providing `undefined` is treated as the value not being there.
883
+ * Read more here: https://pris.ly/d/null-undefined
884
+ * @param {RoleNotificationSettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
885
+ * @example
886
+ * // Ordered by age ascending
887
+ * // Where email contains prisma.io
888
+ * // Limited to the 10 users
889
+ * const aggregations = await prisma.user.aggregate({
890
+ * _avg: {
891
+ * age: true,
892
+ * },
893
+ * where: {
894
+ * email: {
895
+ * contains: "prisma.io",
896
+ * },
897
+ * },
898
+ * orderBy: {
899
+ * age: "asc",
900
+ * },
901
+ * take: 10,
902
+ * })
903
+ **/
904
+ aggregate<T extends RoleNotificationSettingAggregateArgs>(args: Prisma.Subset<T, RoleNotificationSettingAggregateArgs>): Prisma.PrismaPromise<GetRoleNotificationSettingAggregateType<T>>;
905
+ /**
906
+ * Group by RoleNotificationSetting.
907
+ * Note, that providing `undefined` is treated as the value not being there.
908
+ * Read more here: https://pris.ly/d/null-undefined
909
+ * @param {RoleNotificationSettingGroupByArgs} args - Group by arguments.
910
+ * @example
911
+ * // Group by city, order by createdAt, get count
912
+ * const result = await prisma.user.groupBy({
913
+ * by: ['city', 'createdAt'],
914
+ * orderBy: {
915
+ * createdAt: true
916
+ * },
917
+ * _count: {
918
+ * _all: true
919
+ * },
920
+ * })
921
+ *
922
+ **/
923
+ groupBy<T extends RoleNotificationSettingGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
924
+ orderBy: RoleNotificationSettingGroupByArgs['orderBy'];
925
+ } : {
926
+ orderBy?: RoleNotificationSettingGroupByArgs['orderBy'];
927
+ }, 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 ? {
928
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
929
+ Error,
930
+ 'Field ',
931
+ P,
932
+ ` in "having" needs to be provided in "by"`
933
+ ];
934
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
935
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
936
+ }[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 ? {} : {
937
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
938
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
939
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
940
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RoleNotificationSettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleNotificationSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
941
+ /**
942
+ * Fields of the RoleNotificationSetting model
943
+ */
944
+ readonly fields: RoleNotificationSettingFieldRefs;
945
+ }
946
+ /**
947
+ * The delegate class that acts as a "Promise-like" for RoleNotificationSetting.
948
+ * Why is this prefixed with `Prisma__`?
949
+ * Because we want to prevent naming conflicts as mentioned in
950
+ * https://github.com/prisma/prisma-client-js/issues/707
951
+ */
952
+ export interface Prisma__RoleNotificationSettingClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
953
+ readonly [Symbol.toStringTag]: "PrismaPromise";
954
+ 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>;
955
+ /**
956
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
957
+ * @param onfulfilled The callback to execute when the Promise is resolved.
958
+ * @param onrejected The callback to execute when the Promise is rejected.
959
+ * @returns A Promise for the completion of which ever callback is executed.
960
+ */
961
+ 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>;
962
+ /**
963
+ * Attaches a callback for only the rejection of the Promise.
964
+ * @param onrejected The callback to execute when the Promise is rejected.
965
+ * @returns A Promise for the completion of the callback.
966
+ */
967
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
968
+ /**
969
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
970
+ * resolved value cannot be modified from the callback.
971
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
972
+ * @returns A Promise for the completion of the callback.
973
+ */
974
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
975
+ }
976
+ /**
977
+ * Fields of the RoleNotificationSetting model
978
+ */
979
+ export interface RoleNotificationSettingFieldRefs {
980
+ readonly id: Prisma.FieldRef<"RoleNotificationSetting", 'String'>;
981
+ readonly organizationId: Prisma.FieldRef<"RoleNotificationSetting", 'String'>;
982
+ readonly role: Prisma.FieldRef<"RoleNotificationSetting", 'String'>;
983
+ readonly policyNotifications: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
984
+ readonly taskReminders: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
985
+ readonly taskAssignments: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
986
+ readonly taskMentions: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
987
+ readonly weeklyTaskDigest: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
988
+ readonly findingNotifications: Prisma.FieldRef<"RoleNotificationSetting", 'Boolean'>;
989
+ readonly createdAt: Prisma.FieldRef<"RoleNotificationSetting", 'DateTime'>;
990
+ readonly updatedAt: Prisma.FieldRef<"RoleNotificationSetting", 'DateTime'>;
991
+ }
992
+ /**
993
+ * RoleNotificationSetting findUnique
994
+ */
995
+ export type RoleNotificationSettingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
996
+ /**
997
+ * Select specific fields to fetch from the RoleNotificationSetting
998
+ */
999
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1000
+ /**
1001
+ * Omit specific fields from the RoleNotificationSetting
1002
+ */
1003
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1004
+ /**
1005
+ * Choose, which related nodes to fetch as well
1006
+ */
1007
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1008
+ /**
1009
+ * Filter, which RoleNotificationSetting to fetch.
1010
+ */
1011
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
1012
+ };
1013
+ /**
1014
+ * RoleNotificationSetting findUniqueOrThrow
1015
+ */
1016
+ export type RoleNotificationSettingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1017
+ /**
1018
+ * Select specific fields to fetch from the RoleNotificationSetting
1019
+ */
1020
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1021
+ /**
1022
+ * Omit specific fields from the RoleNotificationSetting
1023
+ */
1024
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1025
+ /**
1026
+ * Choose, which related nodes to fetch as well
1027
+ */
1028
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1029
+ /**
1030
+ * Filter, which RoleNotificationSetting to fetch.
1031
+ */
1032
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
1033
+ };
1034
+ /**
1035
+ * RoleNotificationSetting findFirst
1036
+ */
1037
+ export type RoleNotificationSettingFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1038
+ /**
1039
+ * Select specific fields to fetch from the RoleNotificationSetting
1040
+ */
1041
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1042
+ /**
1043
+ * Omit specific fields from the RoleNotificationSetting
1044
+ */
1045
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1046
+ /**
1047
+ * Choose, which related nodes to fetch as well
1048
+ */
1049
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1050
+ /**
1051
+ * Filter, which RoleNotificationSetting to fetch.
1052
+ */
1053
+ where?: Prisma.RoleNotificationSettingWhereInput;
1054
+ /**
1055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1056
+ *
1057
+ * Determine the order of RoleNotificationSettings to fetch.
1058
+ */
1059
+ orderBy?: Prisma.RoleNotificationSettingOrderByWithRelationInput | Prisma.RoleNotificationSettingOrderByWithRelationInput[];
1060
+ /**
1061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1062
+ *
1063
+ * Sets the position for searching for RoleNotificationSettings.
1064
+ */
1065
+ cursor?: Prisma.RoleNotificationSettingWhereUniqueInput;
1066
+ /**
1067
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1068
+ *
1069
+ * Take `±n` RoleNotificationSettings from the position of the cursor.
1070
+ */
1071
+ take?: number;
1072
+ /**
1073
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1074
+ *
1075
+ * Skip the first `n` RoleNotificationSettings.
1076
+ */
1077
+ skip?: number;
1078
+ /**
1079
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1080
+ *
1081
+ * Filter by unique combinations of RoleNotificationSettings.
1082
+ */
1083
+ distinct?: Prisma.RoleNotificationSettingScalarFieldEnum | Prisma.RoleNotificationSettingScalarFieldEnum[];
1084
+ };
1085
+ /**
1086
+ * RoleNotificationSetting findFirstOrThrow
1087
+ */
1088
+ export type RoleNotificationSettingFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Select specific fields to fetch from the RoleNotificationSetting
1091
+ */
1092
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1093
+ /**
1094
+ * Omit specific fields from the RoleNotificationSetting
1095
+ */
1096
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1097
+ /**
1098
+ * Choose, which related nodes to fetch as well
1099
+ */
1100
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1101
+ /**
1102
+ * Filter, which RoleNotificationSetting to fetch.
1103
+ */
1104
+ where?: Prisma.RoleNotificationSettingWhereInput;
1105
+ /**
1106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1107
+ *
1108
+ * Determine the order of RoleNotificationSettings to fetch.
1109
+ */
1110
+ orderBy?: Prisma.RoleNotificationSettingOrderByWithRelationInput | Prisma.RoleNotificationSettingOrderByWithRelationInput[];
1111
+ /**
1112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1113
+ *
1114
+ * Sets the position for searching for RoleNotificationSettings.
1115
+ */
1116
+ cursor?: Prisma.RoleNotificationSettingWhereUniqueInput;
1117
+ /**
1118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1119
+ *
1120
+ * Take `±n` RoleNotificationSettings from the position of the cursor.
1121
+ */
1122
+ take?: number;
1123
+ /**
1124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1125
+ *
1126
+ * Skip the first `n` RoleNotificationSettings.
1127
+ */
1128
+ skip?: number;
1129
+ /**
1130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1131
+ *
1132
+ * Filter by unique combinations of RoleNotificationSettings.
1133
+ */
1134
+ distinct?: Prisma.RoleNotificationSettingScalarFieldEnum | Prisma.RoleNotificationSettingScalarFieldEnum[];
1135
+ };
1136
+ /**
1137
+ * RoleNotificationSetting findMany
1138
+ */
1139
+ export type RoleNotificationSettingFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1140
+ /**
1141
+ * Select specific fields to fetch from the RoleNotificationSetting
1142
+ */
1143
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1144
+ /**
1145
+ * Omit specific fields from the RoleNotificationSetting
1146
+ */
1147
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1148
+ /**
1149
+ * Choose, which related nodes to fetch as well
1150
+ */
1151
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1152
+ /**
1153
+ * Filter, which RoleNotificationSettings to fetch.
1154
+ */
1155
+ where?: Prisma.RoleNotificationSettingWhereInput;
1156
+ /**
1157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1158
+ *
1159
+ * Determine the order of RoleNotificationSettings to fetch.
1160
+ */
1161
+ orderBy?: Prisma.RoleNotificationSettingOrderByWithRelationInput | Prisma.RoleNotificationSettingOrderByWithRelationInput[];
1162
+ /**
1163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1164
+ *
1165
+ * Sets the position for listing RoleNotificationSettings.
1166
+ */
1167
+ cursor?: Prisma.RoleNotificationSettingWhereUniqueInput;
1168
+ /**
1169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1170
+ *
1171
+ * Take `±n` RoleNotificationSettings from the position of the cursor.
1172
+ */
1173
+ take?: number;
1174
+ /**
1175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1176
+ *
1177
+ * Skip the first `n` RoleNotificationSettings.
1178
+ */
1179
+ skip?: number;
1180
+ /**
1181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1182
+ *
1183
+ * Filter by unique combinations of RoleNotificationSettings.
1184
+ */
1185
+ distinct?: Prisma.RoleNotificationSettingScalarFieldEnum | Prisma.RoleNotificationSettingScalarFieldEnum[];
1186
+ };
1187
+ /**
1188
+ * RoleNotificationSetting create
1189
+ */
1190
+ export type RoleNotificationSettingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1191
+ /**
1192
+ * Select specific fields to fetch from the RoleNotificationSetting
1193
+ */
1194
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1195
+ /**
1196
+ * Omit specific fields from the RoleNotificationSetting
1197
+ */
1198
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1199
+ /**
1200
+ * Choose, which related nodes to fetch as well
1201
+ */
1202
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1203
+ /**
1204
+ * The data needed to create a RoleNotificationSetting.
1205
+ */
1206
+ data: Prisma.XOR<Prisma.RoleNotificationSettingCreateInput, Prisma.RoleNotificationSettingUncheckedCreateInput>;
1207
+ };
1208
+ /**
1209
+ * RoleNotificationSetting createMany
1210
+ */
1211
+ export type RoleNotificationSettingCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1212
+ /**
1213
+ * The data used to create many RoleNotificationSettings.
1214
+ */
1215
+ data: Prisma.RoleNotificationSettingCreateManyInput | Prisma.RoleNotificationSettingCreateManyInput[];
1216
+ skipDuplicates?: boolean;
1217
+ };
1218
+ /**
1219
+ * RoleNotificationSetting createManyAndReturn
1220
+ */
1221
+ export type RoleNotificationSettingCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the RoleNotificationSetting
1224
+ */
1225
+ select?: Prisma.RoleNotificationSettingSelectCreateManyAndReturn<ExtArgs> | null;
1226
+ /**
1227
+ * Omit specific fields from the RoleNotificationSetting
1228
+ */
1229
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1230
+ /**
1231
+ * The data used to create many RoleNotificationSettings.
1232
+ */
1233
+ data: Prisma.RoleNotificationSettingCreateManyInput | Prisma.RoleNotificationSettingCreateManyInput[];
1234
+ skipDuplicates?: boolean;
1235
+ /**
1236
+ * Choose, which related nodes to fetch as well
1237
+ */
1238
+ include?: Prisma.RoleNotificationSettingIncludeCreateManyAndReturn<ExtArgs> | null;
1239
+ };
1240
+ /**
1241
+ * RoleNotificationSetting update
1242
+ */
1243
+ export type RoleNotificationSettingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the RoleNotificationSetting
1246
+ */
1247
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1248
+ /**
1249
+ * Omit specific fields from the RoleNotificationSetting
1250
+ */
1251
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1256
+ /**
1257
+ * The data needed to update a RoleNotificationSetting.
1258
+ */
1259
+ data: Prisma.XOR<Prisma.RoleNotificationSettingUpdateInput, Prisma.RoleNotificationSettingUncheckedUpdateInput>;
1260
+ /**
1261
+ * Choose, which RoleNotificationSetting to update.
1262
+ */
1263
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
1264
+ };
1265
+ /**
1266
+ * RoleNotificationSetting updateMany
1267
+ */
1268
+ export type RoleNotificationSettingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
+ /**
1270
+ * The data used to update RoleNotificationSettings.
1271
+ */
1272
+ data: Prisma.XOR<Prisma.RoleNotificationSettingUpdateManyMutationInput, Prisma.RoleNotificationSettingUncheckedUpdateManyInput>;
1273
+ /**
1274
+ * Filter which RoleNotificationSettings to update
1275
+ */
1276
+ where?: Prisma.RoleNotificationSettingWhereInput;
1277
+ /**
1278
+ * Limit how many RoleNotificationSettings to update.
1279
+ */
1280
+ limit?: number;
1281
+ };
1282
+ /**
1283
+ * RoleNotificationSetting updateManyAndReturn
1284
+ */
1285
+ export type RoleNotificationSettingUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1286
+ /**
1287
+ * Select specific fields to fetch from the RoleNotificationSetting
1288
+ */
1289
+ select?: Prisma.RoleNotificationSettingSelectUpdateManyAndReturn<ExtArgs> | null;
1290
+ /**
1291
+ * Omit specific fields from the RoleNotificationSetting
1292
+ */
1293
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1294
+ /**
1295
+ * The data used to update RoleNotificationSettings.
1296
+ */
1297
+ data: Prisma.XOR<Prisma.RoleNotificationSettingUpdateManyMutationInput, Prisma.RoleNotificationSettingUncheckedUpdateManyInput>;
1298
+ /**
1299
+ * Filter which RoleNotificationSettings to update
1300
+ */
1301
+ where?: Prisma.RoleNotificationSettingWhereInput;
1302
+ /**
1303
+ * Limit how many RoleNotificationSettings to update.
1304
+ */
1305
+ limit?: number;
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.RoleNotificationSettingIncludeUpdateManyAndReturn<ExtArgs> | null;
1310
+ };
1311
+ /**
1312
+ * RoleNotificationSetting upsert
1313
+ */
1314
+ export type RoleNotificationSettingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * Select specific fields to fetch from the RoleNotificationSetting
1317
+ */
1318
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1319
+ /**
1320
+ * Omit specific fields from the RoleNotificationSetting
1321
+ */
1322
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1323
+ /**
1324
+ * Choose, which related nodes to fetch as well
1325
+ */
1326
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1327
+ /**
1328
+ * The filter to search for the RoleNotificationSetting to update in case it exists.
1329
+ */
1330
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
1331
+ /**
1332
+ * In case the RoleNotificationSetting found by the `where` argument doesn't exist, create a new RoleNotificationSetting with this data.
1333
+ */
1334
+ create: Prisma.XOR<Prisma.RoleNotificationSettingCreateInput, Prisma.RoleNotificationSettingUncheckedCreateInput>;
1335
+ /**
1336
+ * In case the RoleNotificationSetting was found with the provided `where` argument, update it with this data.
1337
+ */
1338
+ update: Prisma.XOR<Prisma.RoleNotificationSettingUpdateInput, Prisma.RoleNotificationSettingUncheckedUpdateInput>;
1339
+ };
1340
+ /**
1341
+ * RoleNotificationSetting delete
1342
+ */
1343
+ export type RoleNotificationSettingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1344
+ /**
1345
+ * Select specific fields to fetch from the RoleNotificationSetting
1346
+ */
1347
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1348
+ /**
1349
+ * Omit specific fields from the RoleNotificationSetting
1350
+ */
1351
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1352
+ /**
1353
+ * Choose, which related nodes to fetch as well
1354
+ */
1355
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1356
+ /**
1357
+ * Filter which RoleNotificationSetting to delete.
1358
+ */
1359
+ where: Prisma.RoleNotificationSettingWhereUniqueInput;
1360
+ };
1361
+ /**
1362
+ * RoleNotificationSetting deleteMany
1363
+ */
1364
+ export type RoleNotificationSettingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
+ /**
1366
+ * Filter which RoleNotificationSettings to delete
1367
+ */
1368
+ where?: Prisma.RoleNotificationSettingWhereInput;
1369
+ /**
1370
+ * Limit how many RoleNotificationSettings to delete.
1371
+ */
1372
+ limit?: number;
1373
+ };
1374
+ /**
1375
+ * RoleNotificationSetting without action
1376
+ */
1377
+ export type RoleNotificationSettingDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the RoleNotificationSetting
1380
+ */
1381
+ select?: Prisma.RoleNotificationSettingSelect<ExtArgs> | null;
1382
+ /**
1383
+ * Omit specific fields from the RoleNotificationSetting
1384
+ */
1385
+ omit?: Prisma.RoleNotificationSettingOmit<ExtArgs> | null;
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.RoleNotificationSettingInclude<ExtArgs> | null;
1390
+ };
1391
+ //# sourceMappingURL=RoleNotificationSetting.d.ts.map