@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,1619 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model PolicyVersion
5
+ *
6
+ */
7
+ export type PolicyVersionModel = runtime.Types.Result.DefaultSelection<Prisma.$PolicyVersionPayload>;
8
+ export type AggregatePolicyVersion = {
9
+ _count: PolicyVersionCountAggregateOutputType | null;
10
+ _avg: PolicyVersionAvgAggregateOutputType | null;
11
+ _sum: PolicyVersionSumAggregateOutputType | null;
12
+ _min: PolicyVersionMinAggregateOutputType | null;
13
+ _max: PolicyVersionMaxAggregateOutputType | null;
14
+ };
15
+ export type PolicyVersionAvgAggregateOutputType = {
16
+ version: number | null;
17
+ };
18
+ export type PolicyVersionSumAggregateOutputType = {
19
+ version: number | null;
20
+ };
21
+ export type PolicyVersionMinAggregateOutputType = {
22
+ id: string | null;
23
+ createdAt: Date | null;
24
+ updatedAt: Date | null;
25
+ policyId: string | null;
26
+ version: number | null;
27
+ pdfUrl: string | null;
28
+ publishedById: string | null;
29
+ changelog: string | null;
30
+ };
31
+ export type PolicyVersionMaxAggregateOutputType = {
32
+ id: string | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ policyId: string | null;
36
+ version: number | null;
37
+ pdfUrl: string | null;
38
+ publishedById: string | null;
39
+ changelog: string | null;
40
+ };
41
+ export type PolicyVersionCountAggregateOutputType = {
42
+ id: number;
43
+ createdAt: number;
44
+ updatedAt: number;
45
+ policyId: number;
46
+ version: number;
47
+ content: number;
48
+ pdfUrl: number;
49
+ publishedById: number;
50
+ changelog: number;
51
+ _all: number;
52
+ };
53
+ export type PolicyVersionAvgAggregateInputType = {
54
+ version?: true;
55
+ };
56
+ export type PolicyVersionSumAggregateInputType = {
57
+ version?: true;
58
+ };
59
+ export type PolicyVersionMinAggregateInputType = {
60
+ id?: true;
61
+ createdAt?: true;
62
+ updatedAt?: true;
63
+ policyId?: true;
64
+ version?: true;
65
+ pdfUrl?: true;
66
+ publishedById?: true;
67
+ changelog?: true;
68
+ };
69
+ export type PolicyVersionMaxAggregateInputType = {
70
+ id?: true;
71
+ createdAt?: true;
72
+ updatedAt?: true;
73
+ policyId?: true;
74
+ version?: true;
75
+ pdfUrl?: true;
76
+ publishedById?: true;
77
+ changelog?: true;
78
+ };
79
+ export type PolicyVersionCountAggregateInputType = {
80
+ id?: true;
81
+ createdAt?: true;
82
+ updatedAt?: true;
83
+ policyId?: true;
84
+ version?: true;
85
+ content?: true;
86
+ pdfUrl?: true;
87
+ publishedById?: true;
88
+ changelog?: true;
89
+ _all?: true;
90
+ };
91
+ export type PolicyVersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
92
+ /**
93
+ * Filter which PolicyVersion to aggregate.
94
+ */
95
+ where?: Prisma.PolicyVersionWhereInput;
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
98
+ *
99
+ * Determine the order of PolicyVersions to fetch.
100
+ */
101
+ orderBy?: Prisma.PolicyVersionOrderByWithRelationInput | Prisma.PolicyVersionOrderByWithRelationInput[];
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
104
+ *
105
+ * Sets the start position
106
+ */
107
+ cursor?: Prisma.PolicyVersionWhereUniqueInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
110
+ *
111
+ * Take `±n` PolicyVersions from the position of the cursor.
112
+ */
113
+ take?: number;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
116
+ *
117
+ * Skip the first `n` PolicyVersions.
118
+ */
119
+ skip?: number;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
+ *
123
+ * Count returned PolicyVersions
124
+ **/
125
+ _count?: true | PolicyVersionCountAggregateInputType;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Select which fields to average
130
+ **/
131
+ _avg?: PolicyVersionAvgAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to sum
136
+ **/
137
+ _sum?: PolicyVersionSumAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to find the minimum value
142
+ **/
143
+ _min?: PolicyVersionMinAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to find the maximum value
148
+ **/
149
+ _max?: PolicyVersionMaxAggregateInputType;
150
+ };
151
+ export type GetPolicyVersionAggregateType<T extends PolicyVersionAggregateArgs> = {
152
+ [P in keyof T & keyof AggregatePolicyVersion]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePolicyVersion[P]> : Prisma.GetScalarType<T[P], AggregatePolicyVersion[P]>;
153
+ };
154
+ export type PolicyVersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
155
+ where?: Prisma.PolicyVersionWhereInput;
156
+ orderBy?: Prisma.PolicyVersionOrderByWithAggregationInput | Prisma.PolicyVersionOrderByWithAggregationInput[];
157
+ by: Prisma.PolicyVersionScalarFieldEnum[] | Prisma.PolicyVersionScalarFieldEnum;
158
+ having?: Prisma.PolicyVersionScalarWhereWithAggregatesInput;
159
+ take?: number;
160
+ skip?: number;
161
+ _count?: PolicyVersionCountAggregateInputType | true;
162
+ _avg?: PolicyVersionAvgAggregateInputType;
163
+ _sum?: PolicyVersionSumAggregateInputType;
164
+ _min?: PolicyVersionMinAggregateInputType;
165
+ _max?: PolicyVersionMaxAggregateInputType;
166
+ };
167
+ export type PolicyVersionGroupByOutputType = {
168
+ id: string;
169
+ createdAt: Date;
170
+ updatedAt: Date;
171
+ policyId: string;
172
+ version: number;
173
+ content: runtime.JsonValue[];
174
+ pdfUrl: string | null;
175
+ publishedById: string | null;
176
+ changelog: string | null;
177
+ _count: PolicyVersionCountAggregateOutputType | null;
178
+ _avg: PolicyVersionAvgAggregateOutputType | null;
179
+ _sum: PolicyVersionSumAggregateOutputType | null;
180
+ _min: PolicyVersionMinAggregateOutputType | null;
181
+ _max: PolicyVersionMaxAggregateOutputType | null;
182
+ };
183
+ export type GetPolicyVersionGroupByPayload<T extends PolicyVersionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PolicyVersionGroupByOutputType, T['by']> & {
184
+ [P in ((keyof T) & (keyof PolicyVersionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PolicyVersionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PolicyVersionGroupByOutputType[P]>;
185
+ }>>;
186
+ export type PolicyVersionWhereInput = {
187
+ AND?: Prisma.PolicyVersionWhereInput | Prisma.PolicyVersionWhereInput[];
188
+ OR?: Prisma.PolicyVersionWhereInput[];
189
+ NOT?: Prisma.PolicyVersionWhereInput | Prisma.PolicyVersionWhereInput[];
190
+ id?: Prisma.StringFilter<"PolicyVersion"> | string;
191
+ createdAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
192
+ updatedAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
193
+ policyId?: Prisma.StringFilter<"PolicyVersion"> | string;
194
+ version?: Prisma.IntFilter<"PolicyVersion"> | number;
195
+ content?: Prisma.JsonNullableListFilter<"PolicyVersion">;
196
+ pdfUrl?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
197
+ publishedById?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
198
+ changelog?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
199
+ policy?: Prisma.XOR<Prisma.PolicyScalarRelationFilter, Prisma.PolicyWhereInput>;
200
+ currentForPolicy?: Prisma.XOR<Prisma.PolicyNullableScalarRelationFilter, Prisma.PolicyWhereInput> | null;
201
+ publishedBy?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
202
+ };
203
+ export type PolicyVersionOrderByWithRelationInput = {
204
+ id?: Prisma.SortOrder;
205
+ createdAt?: Prisma.SortOrder;
206
+ updatedAt?: Prisma.SortOrder;
207
+ policyId?: Prisma.SortOrder;
208
+ version?: Prisma.SortOrder;
209
+ content?: Prisma.SortOrder;
210
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
211
+ publishedById?: Prisma.SortOrderInput | Prisma.SortOrder;
212
+ changelog?: Prisma.SortOrderInput | Prisma.SortOrder;
213
+ policy?: Prisma.PolicyOrderByWithRelationInput;
214
+ currentForPolicy?: Prisma.PolicyOrderByWithRelationInput;
215
+ publishedBy?: Prisma.MemberOrderByWithRelationInput;
216
+ };
217
+ export type PolicyVersionWhereUniqueInput = Prisma.AtLeast<{
218
+ id?: string;
219
+ policyId_version?: Prisma.PolicyVersionPolicyIdVersionCompoundUniqueInput;
220
+ AND?: Prisma.PolicyVersionWhereInput | Prisma.PolicyVersionWhereInput[];
221
+ OR?: Prisma.PolicyVersionWhereInput[];
222
+ NOT?: Prisma.PolicyVersionWhereInput | Prisma.PolicyVersionWhereInput[];
223
+ createdAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
224
+ updatedAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
225
+ policyId?: Prisma.StringFilter<"PolicyVersion"> | string;
226
+ version?: Prisma.IntFilter<"PolicyVersion"> | number;
227
+ content?: Prisma.JsonNullableListFilter<"PolicyVersion">;
228
+ pdfUrl?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
229
+ publishedById?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
230
+ changelog?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
231
+ policy?: Prisma.XOR<Prisma.PolicyScalarRelationFilter, Prisma.PolicyWhereInput>;
232
+ currentForPolicy?: Prisma.XOR<Prisma.PolicyNullableScalarRelationFilter, Prisma.PolicyWhereInput> | null;
233
+ publishedBy?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
234
+ }, "id" | "policyId_version">;
235
+ export type PolicyVersionOrderByWithAggregationInput = {
236
+ id?: Prisma.SortOrder;
237
+ createdAt?: Prisma.SortOrder;
238
+ updatedAt?: Prisma.SortOrder;
239
+ policyId?: Prisma.SortOrder;
240
+ version?: Prisma.SortOrder;
241
+ content?: Prisma.SortOrder;
242
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ publishedById?: Prisma.SortOrderInput | Prisma.SortOrder;
244
+ changelog?: Prisma.SortOrderInput | Prisma.SortOrder;
245
+ _count?: Prisma.PolicyVersionCountOrderByAggregateInput;
246
+ _avg?: Prisma.PolicyVersionAvgOrderByAggregateInput;
247
+ _max?: Prisma.PolicyVersionMaxOrderByAggregateInput;
248
+ _min?: Prisma.PolicyVersionMinOrderByAggregateInput;
249
+ _sum?: Prisma.PolicyVersionSumOrderByAggregateInput;
250
+ };
251
+ export type PolicyVersionScalarWhereWithAggregatesInput = {
252
+ AND?: Prisma.PolicyVersionScalarWhereWithAggregatesInput | Prisma.PolicyVersionScalarWhereWithAggregatesInput[];
253
+ OR?: Prisma.PolicyVersionScalarWhereWithAggregatesInput[];
254
+ NOT?: Prisma.PolicyVersionScalarWhereWithAggregatesInput | Prisma.PolicyVersionScalarWhereWithAggregatesInput[];
255
+ id?: Prisma.StringWithAggregatesFilter<"PolicyVersion"> | string;
256
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PolicyVersion"> | Date | string;
257
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PolicyVersion"> | Date | string;
258
+ policyId?: Prisma.StringWithAggregatesFilter<"PolicyVersion"> | string;
259
+ version?: Prisma.IntWithAggregatesFilter<"PolicyVersion"> | number;
260
+ content?: Prisma.JsonNullableListFilter<"PolicyVersion">;
261
+ pdfUrl?: Prisma.StringNullableWithAggregatesFilter<"PolicyVersion"> | string | null;
262
+ publishedById?: Prisma.StringNullableWithAggregatesFilter<"PolicyVersion"> | string | null;
263
+ changelog?: Prisma.StringNullableWithAggregatesFilter<"PolicyVersion"> | string | null;
264
+ };
265
+ export type PolicyVersionCreateInput = {
266
+ id?: string;
267
+ createdAt?: Date | string;
268
+ updatedAt?: Date | string;
269
+ version: number;
270
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
271
+ pdfUrl?: string | null;
272
+ changelog?: string | null;
273
+ policy: Prisma.PolicyCreateNestedOneWithoutVersionsInput;
274
+ currentForPolicy?: Prisma.PolicyCreateNestedOneWithoutCurrentVersionInput;
275
+ publishedBy?: Prisma.MemberCreateNestedOneWithoutPublishedPolicyVersionsInput;
276
+ };
277
+ export type PolicyVersionUncheckedCreateInput = {
278
+ id?: string;
279
+ createdAt?: Date | string;
280
+ updatedAt?: Date | string;
281
+ policyId: string;
282
+ version: number;
283
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
284
+ pdfUrl?: string | null;
285
+ publishedById?: string | null;
286
+ changelog?: string | null;
287
+ currentForPolicy?: Prisma.PolicyUncheckedCreateNestedOneWithoutCurrentVersionInput;
288
+ };
289
+ export type PolicyVersionUpdateInput = {
290
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
292
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
293
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
294
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
295
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
296
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
297
+ policy?: Prisma.PolicyUpdateOneRequiredWithoutVersionsNestedInput;
298
+ currentForPolicy?: Prisma.PolicyUpdateOneWithoutCurrentVersionNestedInput;
299
+ publishedBy?: Prisma.MemberUpdateOneWithoutPublishedPolicyVersionsNestedInput;
300
+ };
301
+ export type PolicyVersionUncheckedUpdateInput = {
302
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
304
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ policyId?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
307
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
308
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ publishedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
311
+ currentForPolicy?: Prisma.PolicyUncheckedUpdateOneWithoutCurrentVersionNestedInput;
312
+ };
313
+ export type PolicyVersionCreateManyInput = {
314
+ id?: string;
315
+ createdAt?: Date | string;
316
+ updatedAt?: Date | string;
317
+ policyId: string;
318
+ version: number;
319
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
320
+ pdfUrl?: string | null;
321
+ publishedById?: string | null;
322
+ changelog?: string | null;
323
+ };
324
+ export type PolicyVersionUpdateManyMutationInput = {
325
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
328
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
329
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
330
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
331
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
332
+ };
333
+ export type PolicyVersionUncheckedUpdateManyInput = {
334
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
336
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
337
+ policyId?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
339
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
340
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
341
+ publishedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
342
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
343
+ };
344
+ export type PolicyVersionListRelationFilter = {
345
+ every?: Prisma.PolicyVersionWhereInput;
346
+ some?: Prisma.PolicyVersionWhereInput;
347
+ none?: Prisma.PolicyVersionWhereInput;
348
+ };
349
+ export type PolicyVersionOrderByRelationAggregateInput = {
350
+ _count?: Prisma.SortOrder;
351
+ };
352
+ export type PolicyVersionNullableScalarRelationFilter = {
353
+ is?: Prisma.PolicyVersionWhereInput | null;
354
+ isNot?: Prisma.PolicyVersionWhereInput | null;
355
+ };
356
+ export type PolicyVersionPolicyIdVersionCompoundUniqueInput = {
357
+ policyId: string;
358
+ version: number;
359
+ };
360
+ export type PolicyVersionCountOrderByAggregateInput = {
361
+ id?: Prisma.SortOrder;
362
+ createdAt?: Prisma.SortOrder;
363
+ updatedAt?: Prisma.SortOrder;
364
+ policyId?: Prisma.SortOrder;
365
+ version?: Prisma.SortOrder;
366
+ content?: Prisma.SortOrder;
367
+ pdfUrl?: Prisma.SortOrder;
368
+ publishedById?: Prisma.SortOrder;
369
+ changelog?: Prisma.SortOrder;
370
+ };
371
+ export type PolicyVersionAvgOrderByAggregateInput = {
372
+ version?: Prisma.SortOrder;
373
+ };
374
+ export type PolicyVersionMaxOrderByAggregateInput = {
375
+ id?: Prisma.SortOrder;
376
+ createdAt?: Prisma.SortOrder;
377
+ updatedAt?: Prisma.SortOrder;
378
+ policyId?: Prisma.SortOrder;
379
+ version?: Prisma.SortOrder;
380
+ pdfUrl?: Prisma.SortOrder;
381
+ publishedById?: Prisma.SortOrder;
382
+ changelog?: Prisma.SortOrder;
383
+ };
384
+ export type PolicyVersionMinOrderByAggregateInput = {
385
+ id?: Prisma.SortOrder;
386
+ createdAt?: Prisma.SortOrder;
387
+ updatedAt?: Prisma.SortOrder;
388
+ policyId?: Prisma.SortOrder;
389
+ version?: Prisma.SortOrder;
390
+ pdfUrl?: Prisma.SortOrder;
391
+ publishedById?: Prisma.SortOrder;
392
+ changelog?: Prisma.SortOrder;
393
+ };
394
+ export type PolicyVersionSumOrderByAggregateInput = {
395
+ version?: Prisma.SortOrder;
396
+ };
397
+ export type PolicyVersionCreateNestedManyWithoutPublishedByInput = {
398
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput> | Prisma.PolicyVersionCreateWithoutPublishedByInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput[];
399
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput | Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput[];
400
+ createMany?: Prisma.PolicyVersionCreateManyPublishedByInputEnvelope;
401
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
402
+ };
403
+ export type PolicyVersionUncheckedCreateNestedManyWithoutPublishedByInput = {
404
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput> | Prisma.PolicyVersionCreateWithoutPublishedByInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput[];
405
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput | Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput[];
406
+ createMany?: Prisma.PolicyVersionCreateManyPublishedByInputEnvelope;
407
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
408
+ };
409
+ export type PolicyVersionUpdateManyWithoutPublishedByNestedInput = {
410
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput> | Prisma.PolicyVersionCreateWithoutPublishedByInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput[];
411
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput | Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput[];
412
+ upsert?: Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPublishedByInput | Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPublishedByInput[];
413
+ createMany?: Prisma.PolicyVersionCreateManyPublishedByInputEnvelope;
414
+ set?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
415
+ disconnect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
416
+ delete?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
417
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
418
+ update?: Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPublishedByInput | Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPublishedByInput[];
419
+ updateMany?: Prisma.PolicyVersionUpdateManyWithWhereWithoutPublishedByInput | Prisma.PolicyVersionUpdateManyWithWhereWithoutPublishedByInput[];
420
+ deleteMany?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
421
+ };
422
+ export type PolicyVersionUncheckedUpdateManyWithoutPublishedByNestedInput = {
423
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput> | Prisma.PolicyVersionCreateWithoutPublishedByInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput[];
424
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput | Prisma.PolicyVersionCreateOrConnectWithoutPublishedByInput[];
425
+ upsert?: Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPublishedByInput | Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPublishedByInput[];
426
+ createMany?: Prisma.PolicyVersionCreateManyPublishedByInputEnvelope;
427
+ set?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
428
+ disconnect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
429
+ delete?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
430
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
431
+ update?: Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPublishedByInput | Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPublishedByInput[];
432
+ updateMany?: Prisma.PolicyVersionUpdateManyWithWhereWithoutPublishedByInput | Prisma.PolicyVersionUpdateManyWithWhereWithoutPublishedByInput[];
433
+ deleteMany?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
434
+ };
435
+ export type PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput = {
436
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutCurrentForPolicyInput>;
437
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutCurrentForPolicyInput;
438
+ connect?: Prisma.PolicyVersionWhereUniqueInput;
439
+ };
440
+ export type PolicyVersionCreateNestedManyWithoutPolicyInput = {
441
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput> | Prisma.PolicyVersionCreateWithoutPolicyInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput[];
442
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput | Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput[];
443
+ createMany?: Prisma.PolicyVersionCreateManyPolicyInputEnvelope;
444
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
445
+ };
446
+ export type PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput = {
447
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput> | Prisma.PolicyVersionCreateWithoutPolicyInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput[];
448
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput | Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput[];
449
+ createMany?: Prisma.PolicyVersionCreateManyPolicyInputEnvelope;
450
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
451
+ };
452
+ export type PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput = {
453
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutCurrentForPolicyInput>;
454
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutCurrentForPolicyInput;
455
+ upsert?: Prisma.PolicyVersionUpsertWithoutCurrentForPolicyInput;
456
+ disconnect?: Prisma.PolicyVersionWhereInput | boolean;
457
+ delete?: Prisma.PolicyVersionWhereInput | boolean;
458
+ connect?: Prisma.PolicyVersionWhereUniqueInput;
459
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PolicyVersionUpdateToOneWithWhereWithoutCurrentForPolicyInput, Prisma.PolicyVersionUpdateWithoutCurrentForPolicyInput>, Prisma.PolicyVersionUncheckedUpdateWithoutCurrentForPolicyInput>;
460
+ };
461
+ export type PolicyVersionUpdateManyWithoutPolicyNestedInput = {
462
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput> | Prisma.PolicyVersionCreateWithoutPolicyInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput[];
463
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput | Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput[];
464
+ upsert?: Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPolicyInput | Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPolicyInput[];
465
+ createMany?: Prisma.PolicyVersionCreateManyPolicyInputEnvelope;
466
+ set?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
467
+ disconnect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
468
+ delete?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
469
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
470
+ update?: Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPolicyInput | Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPolicyInput[];
471
+ updateMany?: Prisma.PolicyVersionUpdateManyWithWhereWithoutPolicyInput | Prisma.PolicyVersionUpdateManyWithWhereWithoutPolicyInput[];
472
+ deleteMany?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
473
+ };
474
+ export type PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput = {
475
+ create?: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput> | Prisma.PolicyVersionCreateWithoutPolicyInput[] | Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput[];
476
+ connectOrCreate?: Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput | Prisma.PolicyVersionCreateOrConnectWithoutPolicyInput[];
477
+ upsert?: Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPolicyInput | Prisma.PolicyVersionUpsertWithWhereUniqueWithoutPolicyInput[];
478
+ createMany?: Prisma.PolicyVersionCreateManyPolicyInputEnvelope;
479
+ set?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
480
+ disconnect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
481
+ delete?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
482
+ connect?: Prisma.PolicyVersionWhereUniqueInput | Prisma.PolicyVersionWhereUniqueInput[];
483
+ update?: Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPolicyInput | Prisma.PolicyVersionUpdateWithWhereUniqueWithoutPolicyInput[];
484
+ updateMany?: Prisma.PolicyVersionUpdateManyWithWhereWithoutPolicyInput | Prisma.PolicyVersionUpdateManyWithWhereWithoutPolicyInput[];
485
+ deleteMany?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
486
+ };
487
+ export type PolicyVersionCreatecontentInput = {
488
+ set: runtime.InputJsonValue[];
489
+ };
490
+ export type PolicyVersionUpdatecontentInput = {
491
+ set?: runtime.InputJsonValue[];
492
+ push?: runtime.InputJsonValue | runtime.InputJsonValue[];
493
+ };
494
+ export type PolicyVersionCreateWithoutPublishedByInput = {
495
+ id?: string;
496
+ createdAt?: Date | string;
497
+ updatedAt?: Date | string;
498
+ version: number;
499
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
500
+ pdfUrl?: string | null;
501
+ changelog?: string | null;
502
+ policy: Prisma.PolicyCreateNestedOneWithoutVersionsInput;
503
+ currentForPolicy?: Prisma.PolicyCreateNestedOneWithoutCurrentVersionInput;
504
+ };
505
+ export type PolicyVersionUncheckedCreateWithoutPublishedByInput = {
506
+ id?: string;
507
+ createdAt?: Date | string;
508
+ updatedAt?: Date | string;
509
+ policyId: string;
510
+ version: number;
511
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
512
+ pdfUrl?: string | null;
513
+ changelog?: string | null;
514
+ currentForPolicy?: Prisma.PolicyUncheckedCreateNestedOneWithoutCurrentVersionInput;
515
+ };
516
+ export type PolicyVersionCreateOrConnectWithoutPublishedByInput = {
517
+ where: Prisma.PolicyVersionWhereUniqueInput;
518
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput>;
519
+ };
520
+ export type PolicyVersionCreateManyPublishedByInputEnvelope = {
521
+ data: Prisma.PolicyVersionCreateManyPublishedByInput | Prisma.PolicyVersionCreateManyPublishedByInput[];
522
+ skipDuplicates?: boolean;
523
+ };
524
+ export type PolicyVersionUpsertWithWhereUniqueWithoutPublishedByInput = {
525
+ where: Prisma.PolicyVersionWhereUniqueInput;
526
+ update: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedUpdateWithoutPublishedByInput>;
527
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedCreateWithoutPublishedByInput>;
528
+ };
529
+ export type PolicyVersionUpdateWithWhereUniqueWithoutPublishedByInput = {
530
+ where: Prisma.PolicyVersionWhereUniqueInput;
531
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutPublishedByInput, Prisma.PolicyVersionUncheckedUpdateWithoutPublishedByInput>;
532
+ };
533
+ export type PolicyVersionUpdateManyWithWhereWithoutPublishedByInput = {
534
+ where: Prisma.PolicyVersionScalarWhereInput;
535
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateManyMutationInput, Prisma.PolicyVersionUncheckedUpdateManyWithoutPublishedByInput>;
536
+ };
537
+ export type PolicyVersionScalarWhereInput = {
538
+ AND?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
539
+ OR?: Prisma.PolicyVersionScalarWhereInput[];
540
+ NOT?: Prisma.PolicyVersionScalarWhereInput | Prisma.PolicyVersionScalarWhereInput[];
541
+ id?: Prisma.StringFilter<"PolicyVersion"> | string;
542
+ createdAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
543
+ updatedAt?: Prisma.DateTimeFilter<"PolicyVersion"> | Date | string;
544
+ policyId?: Prisma.StringFilter<"PolicyVersion"> | string;
545
+ version?: Prisma.IntFilter<"PolicyVersion"> | number;
546
+ content?: Prisma.JsonNullableListFilter<"PolicyVersion">;
547
+ pdfUrl?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
548
+ publishedById?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
549
+ changelog?: Prisma.StringNullableFilter<"PolicyVersion"> | string | null;
550
+ };
551
+ export type PolicyVersionCreateWithoutCurrentForPolicyInput = {
552
+ id?: string;
553
+ createdAt?: Date | string;
554
+ updatedAt?: Date | string;
555
+ version: number;
556
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
557
+ pdfUrl?: string | null;
558
+ changelog?: string | null;
559
+ policy: Prisma.PolicyCreateNestedOneWithoutVersionsInput;
560
+ publishedBy?: Prisma.MemberCreateNestedOneWithoutPublishedPolicyVersionsInput;
561
+ };
562
+ export type PolicyVersionUncheckedCreateWithoutCurrentForPolicyInput = {
563
+ id?: string;
564
+ createdAt?: Date | string;
565
+ updatedAt?: Date | string;
566
+ policyId: string;
567
+ version: number;
568
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
569
+ pdfUrl?: string | null;
570
+ publishedById?: string | null;
571
+ changelog?: string | null;
572
+ };
573
+ export type PolicyVersionCreateOrConnectWithoutCurrentForPolicyInput = {
574
+ where: Prisma.PolicyVersionWhereUniqueInput;
575
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutCurrentForPolicyInput>;
576
+ };
577
+ export type PolicyVersionCreateWithoutPolicyInput = {
578
+ id?: string;
579
+ createdAt?: Date | string;
580
+ updatedAt?: Date | string;
581
+ version: number;
582
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
583
+ pdfUrl?: string | null;
584
+ changelog?: string | null;
585
+ currentForPolicy?: Prisma.PolicyCreateNestedOneWithoutCurrentVersionInput;
586
+ publishedBy?: Prisma.MemberCreateNestedOneWithoutPublishedPolicyVersionsInput;
587
+ };
588
+ export type PolicyVersionUncheckedCreateWithoutPolicyInput = {
589
+ id?: string;
590
+ createdAt?: Date | string;
591
+ updatedAt?: Date | string;
592
+ version: number;
593
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
594
+ pdfUrl?: string | null;
595
+ publishedById?: string | null;
596
+ changelog?: string | null;
597
+ currentForPolicy?: Prisma.PolicyUncheckedCreateNestedOneWithoutCurrentVersionInput;
598
+ };
599
+ export type PolicyVersionCreateOrConnectWithoutPolicyInput = {
600
+ where: Prisma.PolicyVersionWhereUniqueInput;
601
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput>;
602
+ };
603
+ export type PolicyVersionCreateManyPolicyInputEnvelope = {
604
+ data: Prisma.PolicyVersionCreateManyPolicyInput | Prisma.PolicyVersionCreateManyPolicyInput[];
605
+ skipDuplicates?: boolean;
606
+ };
607
+ export type PolicyVersionUpsertWithoutCurrentForPolicyInput = {
608
+ update: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedUpdateWithoutCurrentForPolicyInput>;
609
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutCurrentForPolicyInput>;
610
+ where?: Prisma.PolicyVersionWhereInput;
611
+ };
612
+ export type PolicyVersionUpdateToOneWithWhereWithoutCurrentForPolicyInput = {
613
+ where?: Prisma.PolicyVersionWhereInput;
614
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutCurrentForPolicyInput, Prisma.PolicyVersionUncheckedUpdateWithoutCurrentForPolicyInput>;
615
+ };
616
+ export type PolicyVersionUpdateWithoutCurrentForPolicyInput = {
617
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
619
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
620
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
621
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
622
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
623
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
624
+ policy?: Prisma.PolicyUpdateOneRequiredWithoutVersionsNestedInput;
625
+ publishedBy?: Prisma.MemberUpdateOneWithoutPublishedPolicyVersionsNestedInput;
626
+ };
627
+ export type PolicyVersionUncheckedUpdateWithoutCurrentForPolicyInput = {
628
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
629
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
630
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
631
+ policyId?: Prisma.StringFieldUpdateOperationsInput | string;
632
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
633
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
634
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
635
+ publishedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
636
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
637
+ };
638
+ export type PolicyVersionUpsertWithWhereUniqueWithoutPolicyInput = {
639
+ where: Prisma.PolicyVersionWhereUniqueInput;
640
+ update: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutPolicyInput, Prisma.PolicyVersionUncheckedUpdateWithoutPolicyInput>;
641
+ create: Prisma.XOR<Prisma.PolicyVersionCreateWithoutPolicyInput, Prisma.PolicyVersionUncheckedCreateWithoutPolicyInput>;
642
+ };
643
+ export type PolicyVersionUpdateWithWhereUniqueWithoutPolicyInput = {
644
+ where: Prisma.PolicyVersionWhereUniqueInput;
645
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateWithoutPolicyInput, Prisma.PolicyVersionUncheckedUpdateWithoutPolicyInput>;
646
+ };
647
+ export type PolicyVersionUpdateManyWithWhereWithoutPolicyInput = {
648
+ where: Prisma.PolicyVersionScalarWhereInput;
649
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateManyMutationInput, Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyInput>;
650
+ };
651
+ export type PolicyVersionCreateManyPublishedByInput = {
652
+ id?: string;
653
+ createdAt?: Date | string;
654
+ updatedAt?: Date | string;
655
+ policyId: string;
656
+ version: number;
657
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
658
+ pdfUrl?: string | null;
659
+ changelog?: string | null;
660
+ };
661
+ export type PolicyVersionUpdateWithoutPublishedByInput = {
662
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
664
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
665
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
666
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
667
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
668
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
669
+ policy?: Prisma.PolicyUpdateOneRequiredWithoutVersionsNestedInput;
670
+ currentForPolicy?: Prisma.PolicyUpdateOneWithoutCurrentVersionNestedInput;
671
+ };
672
+ export type PolicyVersionUncheckedUpdateWithoutPublishedByInput = {
673
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
674
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
675
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
676
+ policyId?: Prisma.StringFieldUpdateOperationsInput | string;
677
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
678
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
679
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
680
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
681
+ currentForPolicy?: Prisma.PolicyUncheckedUpdateOneWithoutCurrentVersionNestedInput;
682
+ };
683
+ export type PolicyVersionUncheckedUpdateManyWithoutPublishedByInput = {
684
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
685
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
686
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
687
+ policyId?: Prisma.StringFieldUpdateOperationsInput | string;
688
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
689
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
690
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
691
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
692
+ };
693
+ export type PolicyVersionCreateManyPolicyInput = {
694
+ id?: string;
695
+ createdAt?: Date | string;
696
+ updatedAt?: Date | string;
697
+ version: number;
698
+ content?: Prisma.PolicyVersionCreatecontentInput | runtime.InputJsonValue[];
699
+ pdfUrl?: string | null;
700
+ publishedById?: string | null;
701
+ changelog?: string | null;
702
+ };
703
+ export type PolicyVersionUpdateWithoutPolicyInput = {
704
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
705
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
706
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
707
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
708
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
709
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
710
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
711
+ currentForPolicy?: Prisma.PolicyUpdateOneWithoutCurrentVersionNestedInput;
712
+ publishedBy?: Prisma.MemberUpdateOneWithoutPublishedPolicyVersionsNestedInput;
713
+ };
714
+ export type PolicyVersionUncheckedUpdateWithoutPolicyInput = {
715
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
716
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
717
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
718
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
719
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
720
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
721
+ publishedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
722
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
723
+ currentForPolicy?: Prisma.PolicyUncheckedUpdateOneWithoutCurrentVersionNestedInput;
724
+ };
725
+ export type PolicyVersionUncheckedUpdateManyWithoutPolicyInput = {
726
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
727
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
728
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
729
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
730
+ content?: Prisma.PolicyVersionUpdatecontentInput | runtime.InputJsonValue[];
731
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
732
+ publishedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
733
+ changelog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
734
+ };
735
+ export type PolicyVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
736
+ id?: boolean;
737
+ createdAt?: boolean;
738
+ updatedAt?: boolean;
739
+ policyId?: boolean;
740
+ version?: boolean;
741
+ content?: boolean;
742
+ pdfUrl?: boolean;
743
+ publishedById?: boolean;
744
+ changelog?: boolean;
745
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
746
+ currentForPolicy?: boolean | Prisma.PolicyVersion$currentForPolicyArgs<ExtArgs>;
747
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
748
+ }, ExtArgs["result"]["policyVersion"]>;
749
+ export type PolicyVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
750
+ id?: boolean;
751
+ createdAt?: boolean;
752
+ updatedAt?: boolean;
753
+ policyId?: boolean;
754
+ version?: boolean;
755
+ content?: boolean;
756
+ pdfUrl?: boolean;
757
+ publishedById?: boolean;
758
+ changelog?: boolean;
759
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
760
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
761
+ }, ExtArgs["result"]["policyVersion"]>;
762
+ export type PolicyVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
763
+ id?: boolean;
764
+ createdAt?: boolean;
765
+ updatedAt?: boolean;
766
+ policyId?: boolean;
767
+ version?: boolean;
768
+ content?: boolean;
769
+ pdfUrl?: boolean;
770
+ publishedById?: boolean;
771
+ changelog?: boolean;
772
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
773
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
774
+ }, ExtArgs["result"]["policyVersion"]>;
775
+ export type PolicyVersionSelectScalar = {
776
+ id?: boolean;
777
+ createdAt?: boolean;
778
+ updatedAt?: boolean;
779
+ policyId?: boolean;
780
+ version?: boolean;
781
+ content?: boolean;
782
+ pdfUrl?: boolean;
783
+ publishedById?: boolean;
784
+ changelog?: boolean;
785
+ };
786
+ export type PolicyVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "policyId" | "version" | "content" | "pdfUrl" | "publishedById" | "changelog", ExtArgs["result"]["policyVersion"]>;
787
+ export type PolicyVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
788
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
789
+ currentForPolicy?: boolean | Prisma.PolicyVersion$currentForPolicyArgs<ExtArgs>;
790
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
791
+ };
792
+ export type PolicyVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
793
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
794
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
795
+ };
796
+ export type PolicyVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
797
+ policy?: boolean | Prisma.PolicyDefaultArgs<ExtArgs>;
798
+ publishedBy?: boolean | Prisma.PolicyVersion$publishedByArgs<ExtArgs>;
799
+ };
800
+ export type $PolicyVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
801
+ name: "PolicyVersion";
802
+ objects: {
803
+ policy: Prisma.$PolicyPayload<ExtArgs>;
804
+ currentForPolicy: Prisma.$PolicyPayload<ExtArgs> | null;
805
+ publishedBy: Prisma.$MemberPayload<ExtArgs> | null;
806
+ };
807
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
808
+ id: string;
809
+ createdAt: Date;
810
+ updatedAt: Date;
811
+ policyId: string;
812
+ version: number;
813
+ content: runtime.JsonValue[];
814
+ pdfUrl: string | null;
815
+ publishedById: string | null;
816
+ changelog: string | null;
817
+ }, ExtArgs["result"]["policyVersion"]>;
818
+ composites: {};
819
+ };
820
+ export type PolicyVersionGetPayload<S extends boolean | null | undefined | PolicyVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload, S>;
821
+ export type PolicyVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PolicyVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
822
+ select?: PolicyVersionCountAggregateInputType | true;
823
+ };
824
+ export interface PolicyVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
825
+ [K: symbol]: {
826
+ types: Prisma.TypeMap<ExtArgs>['model']['PolicyVersion'];
827
+ meta: {
828
+ name: 'PolicyVersion';
829
+ };
830
+ };
831
+ /**
832
+ * Find zero or one PolicyVersion that matches the filter.
833
+ * @param {PolicyVersionFindUniqueArgs} args - Arguments to find a PolicyVersion
834
+ * @example
835
+ * // Get one PolicyVersion
836
+ * const policyVersion = await prisma.policyVersion.findUnique({
837
+ * where: {
838
+ * // ... provide filter here
839
+ * }
840
+ * })
841
+ */
842
+ findUnique<T extends PolicyVersionFindUniqueArgs>(args: Prisma.SelectSubset<T, PolicyVersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
843
+ /**
844
+ * Find one PolicyVersion that matches the filter or throw an error with `error.code='P2025'`
845
+ * if no matches were found.
846
+ * @param {PolicyVersionFindUniqueOrThrowArgs} args - Arguments to find a PolicyVersion
847
+ * @example
848
+ * // Get one PolicyVersion
849
+ * const policyVersion = await prisma.policyVersion.findUniqueOrThrow({
850
+ * where: {
851
+ * // ... provide filter here
852
+ * }
853
+ * })
854
+ */
855
+ findUniqueOrThrow<T extends PolicyVersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PolicyVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
856
+ /**
857
+ * Find the first PolicyVersion that matches the filter.
858
+ * Note, that providing `undefined` is treated as the value not being there.
859
+ * Read more here: https://pris.ly/d/null-undefined
860
+ * @param {PolicyVersionFindFirstArgs} args - Arguments to find a PolicyVersion
861
+ * @example
862
+ * // Get one PolicyVersion
863
+ * const policyVersion = await prisma.policyVersion.findFirst({
864
+ * where: {
865
+ * // ... provide filter here
866
+ * }
867
+ * })
868
+ */
869
+ findFirst<T extends PolicyVersionFindFirstArgs>(args?: Prisma.SelectSubset<T, PolicyVersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
870
+ /**
871
+ * Find the first PolicyVersion that matches the filter or
872
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
873
+ * Note, that providing `undefined` is treated as the value not being there.
874
+ * Read more here: https://pris.ly/d/null-undefined
875
+ * @param {PolicyVersionFindFirstOrThrowArgs} args - Arguments to find a PolicyVersion
876
+ * @example
877
+ * // Get one PolicyVersion
878
+ * const policyVersion = await prisma.policyVersion.findFirstOrThrow({
879
+ * where: {
880
+ * // ... provide filter here
881
+ * }
882
+ * })
883
+ */
884
+ findFirstOrThrow<T extends PolicyVersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PolicyVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
885
+ /**
886
+ * Find zero or more PolicyVersions that matches the filter.
887
+ * Note, that providing `undefined` is treated as the value not being there.
888
+ * Read more here: https://pris.ly/d/null-undefined
889
+ * @param {PolicyVersionFindManyArgs} args - Arguments to filter and select certain fields only.
890
+ * @example
891
+ * // Get all PolicyVersions
892
+ * const policyVersions = await prisma.policyVersion.findMany()
893
+ *
894
+ * // Get first 10 PolicyVersions
895
+ * const policyVersions = await prisma.policyVersion.findMany({ take: 10 })
896
+ *
897
+ * // Only select the `id`
898
+ * const policyVersionWithIdOnly = await prisma.policyVersion.findMany({ select: { id: true } })
899
+ *
900
+ */
901
+ findMany<T extends PolicyVersionFindManyArgs>(args?: Prisma.SelectSubset<T, PolicyVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
902
+ /**
903
+ * Create a PolicyVersion.
904
+ * @param {PolicyVersionCreateArgs} args - Arguments to create a PolicyVersion.
905
+ * @example
906
+ * // Create one PolicyVersion
907
+ * const PolicyVersion = await prisma.policyVersion.create({
908
+ * data: {
909
+ * // ... data to create a PolicyVersion
910
+ * }
911
+ * })
912
+ *
913
+ */
914
+ create<T extends PolicyVersionCreateArgs>(args: Prisma.SelectSubset<T, PolicyVersionCreateArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
915
+ /**
916
+ * Create many PolicyVersions.
917
+ * @param {PolicyVersionCreateManyArgs} args - Arguments to create many PolicyVersions.
918
+ * @example
919
+ * // Create many PolicyVersions
920
+ * const policyVersion = await prisma.policyVersion.createMany({
921
+ * data: [
922
+ * // ... provide data here
923
+ * ]
924
+ * })
925
+ *
926
+ */
927
+ createMany<T extends PolicyVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, PolicyVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
928
+ /**
929
+ * Create many PolicyVersions and returns the data saved in the database.
930
+ * @param {PolicyVersionCreateManyAndReturnArgs} args - Arguments to create many PolicyVersions.
931
+ * @example
932
+ * // Create many PolicyVersions
933
+ * const policyVersion = await prisma.policyVersion.createManyAndReturn({
934
+ * data: [
935
+ * // ... provide data here
936
+ * ]
937
+ * })
938
+ *
939
+ * // Create many PolicyVersions and only return the `id`
940
+ * const policyVersionWithIdOnly = await prisma.policyVersion.createManyAndReturn({
941
+ * select: { id: true },
942
+ * data: [
943
+ * // ... provide data here
944
+ * ]
945
+ * })
946
+ * Note, that providing `undefined` is treated as the value not being there.
947
+ * Read more here: https://pris.ly/d/null-undefined
948
+ *
949
+ */
950
+ createManyAndReturn<T extends PolicyVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PolicyVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
951
+ /**
952
+ * Delete a PolicyVersion.
953
+ * @param {PolicyVersionDeleteArgs} args - Arguments to delete one PolicyVersion.
954
+ * @example
955
+ * // Delete one PolicyVersion
956
+ * const PolicyVersion = await prisma.policyVersion.delete({
957
+ * where: {
958
+ * // ... filter to delete one PolicyVersion
959
+ * }
960
+ * })
961
+ *
962
+ */
963
+ delete<T extends PolicyVersionDeleteArgs>(args: Prisma.SelectSubset<T, PolicyVersionDeleteArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
964
+ /**
965
+ * Update one PolicyVersion.
966
+ * @param {PolicyVersionUpdateArgs} args - Arguments to update one PolicyVersion.
967
+ * @example
968
+ * // Update one PolicyVersion
969
+ * const policyVersion = await prisma.policyVersion.update({
970
+ * where: {
971
+ * // ... provide filter here
972
+ * },
973
+ * data: {
974
+ * // ... provide data here
975
+ * }
976
+ * })
977
+ *
978
+ */
979
+ update<T extends PolicyVersionUpdateArgs>(args: Prisma.SelectSubset<T, PolicyVersionUpdateArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
980
+ /**
981
+ * Delete zero or more PolicyVersions.
982
+ * @param {PolicyVersionDeleteManyArgs} args - Arguments to filter PolicyVersions to delete.
983
+ * @example
984
+ * // Delete a few PolicyVersions
985
+ * const { count } = await prisma.policyVersion.deleteMany({
986
+ * where: {
987
+ * // ... provide filter here
988
+ * }
989
+ * })
990
+ *
991
+ */
992
+ deleteMany<T extends PolicyVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PolicyVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
993
+ /**
994
+ * Update zero or more PolicyVersions.
995
+ * Note, that providing `undefined` is treated as the value not being there.
996
+ * Read more here: https://pris.ly/d/null-undefined
997
+ * @param {PolicyVersionUpdateManyArgs} args - Arguments to update one or more rows.
998
+ * @example
999
+ * // Update many PolicyVersions
1000
+ * const policyVersion = await prisma.policyVersion.updateMany({
1001
+ * where: {
1002
+ * // ... provide filter here
1003
+ * },
1004
+ * data: {
1005
+ * // ... provide data here
1006
+ * }
1007
+ * })
1008
+ *
1009
+ */
1010
+ updateMany<T extends PolicyVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, PolicyVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1011
+ /**
1012
+ * Update zero or more PolicyVersions and returns the data updated in the database.
1013
+ * @param {PolicyVersionUpdateManyAndReturnArgs} args - Arguments to update many PolicyVersions.
1014
+ * @example
1015
+ * // Update many PolicyVersions
1016
+ * const policyVersion = await prisma.policyVersion.updateManyAndReturn({
1017
+ * where: {
1018
+ * // ... provide filter here
1019
+ * },
1020
+ * data: [
1021
+ * // ... provide data here
1022
+ * ]
1023
+ * })
1024
+ *
1025
+ * // Update zero or more PolicyVersions and only return the `id`
1026
+ * const policyVersionWithIdOnly = await prisma.policyVersion.updateManyAndReturn({
1027
+ * select: { id: true },
1028
+ * where: {
1029
+ * // ... provide filter here
1030
+ * },
1031
+ * data: [
1032
+ * // ... provide data here
1033
+ * ]
1034
+ * })
1035
+ * Note, that providing `undefined` is treated as the value not being there.
1036
+ * Read more here: https://pris.ly/d/null-undefined
1037
+ *
1038
+ */
1039
+ updateManyAndReturn<T extends PolicyVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PolicyVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1040
+ /**
1041
+ * Create or update one PolicyVersion.
1042
+ * @param {PolicyVersionUpsertArgs} args - Arguments to update or create a PolicyVersion.
1043
+ * @example
1044
+ * // Update or create a PolicyVersion
1045
+ * const policyVersion = await prisma.policyVersion.upsert({
1046
+ * create: {
1047
+ * // ... data to create a PolicyVersion
1048
+ * },
1049
+ * update: {
1050
+ * // ... in case it already exists, update
1051
+ * },
1052
+ * where: {
1053
+ * // ... the filter for the PolicyVersion we want to update
1054
+ * }
1055
+ * })
1056
+ */
1057
+ upsert<T extends PolicyVersionUpsertArgs>(args: Prisma.SelectSubset<T, PolicyVersionUpsertArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1058
+ /**
1059
+ * Count the number of PolicyVersions.
1060
+ * Note, that providing `undefined` is treated as the value not being there.
1061
+ * Read more here: https://pris.ly/d/null-undefined
1062
+ * @param {PolicyVersionCountArgs} args - Arguments to filter PolicyVersions to count.
1063
+ * @example
1064
+ * // Count the number of PolicyVersions
1065
+ * const count = await prisma.policyVersion.count({
1066
+ * where: {
1067
+ * // ... the filter for the PolicyVersions we want to count
1068
+ * }
1069
+ * })
1070
+ **/
1071
+ count<T extends PolicyVersionCountArgs>(args?: Prisma.Subset<T, PolicyVersionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PolicyVersionCountAggregateOutputType> : number>;
1072
+ /**
1073
+ * Allows you to perform aggregations operations on a PolicyVersion.
1074
+ * Note, that providing `undefined` is treated as the value not being there.
1075
+ * Read more here: https://pris.ly/d/null-undefined
1076
+ * @param {PolicyVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1077
+ * @example
1078
+ * // Ordered by age ascending
1079
+ * // Where email contains prisma.io
1080
+ * // Limited to the 10 users
1081
+ * const aggregations = await prisma.user.aggregate({
1082
+ * _avg: {
1083
+ * age: true,
1084
+ * },
1085
+ * where: {
1086
+ * email: {
1087
+ * contains: "prisma.io",
1088
+ * },
1089
+ * },
1090
+ * orderBy: {
1091
+ * age: "asc",
1092
+ * },
1093
+ * take: 10,
1094
+ * })
1095
+ **/
1096
+ aggregate<T extends PolicyVersionAggregateArgs>(args: Prisma.Subset<T, PolicyVersionAggregateArgs>): Prisma.PrismaPromise<GetPolicyVersionAggregateType<T>>;
1097
+ /**
1098
+ * Group by PolicyVersion.
1099
+ * Note, that providing `undefined` is treated as the value not being there.
1100
+ * Read more here: https://pris.ly/d/null-undefined
1101
+ * @param {PolicyVersionGroupByArgs} args - Group by arguments.
1102
+ * @example
1103
+ * // Group by city, order by createdAt, get count
1104
+ * const result = await prisma.user.groupBy({
1105
+ * by: ['city', 'createdAt'],
1106
+ * orderBy: {
1107
+ * createdAt: true
1108
+ * },
1109
+ * _count: {
1110
+ * _all: true
1111
+ * },
1112
+ * })
1113
+ *
1114
+ **/
1115
+ groupBy<T extends PolicyVersionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1116
+ orderBy: PolicyVersionGroupByArgs['orderBy'];
1117
+ } : {
1118
+ orderBy?: PolicyVersionGroupByArgs['orderBy'];
1119
+ }, 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 ? {
1120
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1121
+ Error,
1122
+ 'Field ',
1123
+ P,
1124
+ ` in "having" needs to be provided in "by"`
1125
+ ];
1126
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1127
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1128
+ }[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 ? {} : {
1129
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1130
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1131
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1132
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PolicyVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPolicyVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1133
+ /**
1134
+ * Fields of the PolicyVersion model
1135
+ */
1136
+ readonly fields: PolicyVersionFieldRefs;
1137
+ }
1138
+ /**
1139
+ * The delegate class that acts as a "Promise-like" for PolicyVersion.
1140
+ * Why is this prefixed with `Prisma__`?
1141
+ * Because we want to prevent naming conflicts as mentioned in
1142
+ * https://github.com/prisma/prisma-client-js/issues/707
1143
+ */
1144
+ export interface Prisma__PolicyVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1145
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1146
+ policy<T extends Prisma.PolicyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PolicyDefaultArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1147
+ currentForPolicy<T extends Prisma.PolicyVersion$currentForPolicyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PolicyVersion$currentForPolicyArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1148
+ publishedBy<T extends Prisma.PolicyVersion$publishedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PolicyVersion$publishedByArgs<ExtArgs>>): Prisma.Prisma__MemberClient<runtime.Types.Result.GetResult<Prisma.$MemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1149
+ /**
1150
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1151
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1152
+ * @param onrejected The callback to execute when the Promise is rejected.
1153
+ * @returns A Promise for the completion of which ever callback is executed.
1154
+ */
1155
+ 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>;
1156
+ /**
1157
+ * Attaches a callback for only the rejection of the Promise.
1158
+ * @param onrejected The callback to execute when the Promise is rejected.
1159
+ * @returns A Promise for the completion of the callback.
1160
+ */
1161
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1162
+ /**
1163
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1164
+ * resolved value cannot be modified from the callback.
1165
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1166
+ * @returns A Promise for the completion of the callback.
1167
+ */
1168
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1169
+ }
1170
+ /**
1171
+ * Fields of the PolicyVersion model
1172
+ */
1173
+ export interface PolicyVersionFieldRefs {
1174
+ readonly id: Prisma.FieldRef<"PolicyVersion", 'String'>;
1175
+ readonly createdAt: Prisma.FieldRef<"PolicyVersion", 'DateTime'>;
1176
+ readonly updatedAt: Prisma.FieldRef<"PolicyVersion", 'DateTime'>;
1177
+ readonly policyId: Prisma.FieldRef<"PolicyVersion", 'String'>;
1178
+ readonly version: Prisma.FieldRef<"PolicyVersion", 'Int'>;
1179
+ readonly content: Prisma.FieldRef<"PolicyVersion", 'Json[]'>;
1180
+ readonly pdfUrl: Prisma.FieldRef<"PolicyVersion", 'String'>;
1181
+ readonly publishedById: Prisma.FieldRef<"PolicyVersion", 'String'>;
1182
+ readonly changelog: Prisma.FieldRef<"PolicyVersion", 'String'>;
1183
+ }
1184
+ /**
1185
+ * PolicyVersion findUnique
1186
+ */
1187
+ export type PolicyVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1188
+ /**
1189
+ * Select specific fields to fetch from the PolicyVersion
1190
+ */
1191
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1192
+ /**
1193
+ * Omit specific fields from the PolicyVersion
1194
+ */
1195
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1196
+ /**
1197
+ * Choose, which related nodes to fetch as well
1198
+ */
1199
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1200
+ /**
1201
+ * Filter, which PolicyVersion to fetch.
1202
+ */
1203
+ where: Prisma.PolicyVersionWhereUniqueInput;
1204
+ };
1205
+ /**
1206
+ * PolicyVersion findUniqueOrThrow
1207
+ */
1208
+ export type PolicyVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1209
+ /**
1210
+ * Select specific fields to fetch from the PolicyVersion
1211
+ */
1212
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1213
+ /**
1214
+ * Omit specific fields from the PolicyVersion
1215
+ */
1216
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1217
+ /**
1218
+ * Choose, which related nodes to fetch as well
1219
+ */
1220
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1221
+ /**
1222
+ * Filter, which PolicyVersion to fetch.
1223
+ */
1224
+ where: Prisma.PolicyVersionWhereUniqueInput;
1225
+ };
1226
+ /**
1227
+ * PolicyVersion findFirst
1228
+ */
1229
+ export type PolicyVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ /**
1231
+ * Select specific fields to fetch from the PolicyVersion
1232
+ */
1233
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1234
+ /**
1235
+ * Omit specific fields from the PolicyVersion
1236
+ */
1237
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1238
+ /**
1239
+ * Choose, which related nodes to fetch as well
1240
+ */
1241
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1242
+ /**
1243
+ * Filter, which PolicyVersion to fetch.
1244
+ */
1245
+ where?: Prisma.PolicyVersionWhereInput;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1248
+ *
1249
+ * Determine the order of PolicyVersions to fetch.
1250
+ */
1251
+ orderBy?: Prisma.PolicyVersionOrderByWithRelationInput | Prisma.PolicyVersionOrderByWithRelationInput[];
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1254
+ *
1255
+ * Sets the position for searching for PolicyVersions.
1256
+ */
1257
+ cursor?: Prisma.PolicyVersionWhereUniqueInput;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1260
+ *
1261
+ * Take `±n` PolicyVersions from the position of the cursor.
1262
+ */
1263
+ take?: number;
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1266
+ *
1267
+ * Skip the first `n` PolicyVersions.
1268
+ */
1269
+ skip?: number;
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1272
+ *
1273
+ * Filter by unique combinations of PolicyVersions.
1274
+ */
1275
+ distinct?: Prisma.PolicyVersionScalarFieldEnum | Prisma.PolicyVersionScalarFieldEnum[];
1276
+ };
1277
+ /**
1278
+ * PolicyVersion findFirstOrThrow
1279
+ */
1280
+ export type PolicyVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * Select specific fields to fetch from the PolicyVersion
1283
+ */
1284
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1285
+ /**
1286
+ * Omit specific fields from the PolicyVersion
1287
+ */
1288
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1293
+ /**
1294
+ * Filter, which PolicyVersion to fetch.
1295
+ */
1296
+ where?: Prisma.PolicyVersionWhereInput;
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1299
+ *
1300
+ * Determine the order of PolicyVersions to fetch.
1301
+ */
1302
+ orderBy?: Prisma.PolicyVersionOrderByWithRelationInput | Prisma.PolicyVersionOrderByWithRelationInput[];
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1305
+ *
1306
+ * Sets the position for searching for PolicyVersions.
1307
+ */
1308
+ cursor?: Prisma.PolicyVersionWhereUniqueInput;
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1311
+ *
1312
+ * Take `±n` PolicyVersions from the position of the cursor.
1313
+ */
1314
+ take?: number;
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1317
+ *
1318
+ * Skip the first `n` PolicyVersions.
1319
+ */
1320
+ skip?: number;
1321
+ /**
1322
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1323
+ *
1324
+ * Filter by unique combinations of PolicyVersions.
1325
+ */
1326
+ distinct?: Prisma.PolicyVersionScalarFieldEnum | Prisma.PolicyVersionScalarFieldEnum[];
1327
+ };
1328
+ /**
1329
+ * PolicyVersion findMany
1330
+ */
1331
+ export type PolicyVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
+ /**
1333
+ * Select specific fields to fetch from the PolicyVersion
1334
+ */
1335
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1336
+ /**
1337
+ * Omit specific fields from the PolicyVersion
1338
+ */
1339
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1340
+ /**
1341
+ * Choose, which related nodes to fetch as well
1342
+ */
1343
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1344
+ /**
1345
+ * Filter, which PolicyVersions to fetch.
1346
+ */
1347
+ where?: Prisma.PolicyVersionWhereInput;
1348
+ /**
1349
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1350
+ *
1351
+ * Determine the order of PolicyVersions to fetch.
1352
+ */
1353
+ orderBy?: Prisma.PolicyVersionOrderByWithRelationInput | Prisma.PolicyVersionOrderByWithRelationInput[];
1354
+ /**
1355
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1356
+ *
1357
+ * Sets the position for listing PolicyVersions.
1358
+ */
1359
+ cursor?: Prisma.PolicyVersionWhereUniqueInput;
1360
+ /**
1361
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1362
+ *
1363
+ * Take `±n` PolicyVersions from the position of the cursor.
1364
+ */
1365
+ take?: number;
1366
+ /**
1367
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1368
+ *
1369
+ * Skip the first `n` PolicyVersions.
1370
+ */
1371
+ skip?: number;
1372
+ /**
1373
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1374
+ *
1375
+ * Filter by unique combinations of PolicyVersions.
1376
+ */
1377
+ distinct?: Prisma.PolicyVersionScalarFieldEnum | Prisma.PolicyVersionScalarFieldEnum[];
1378
+ };
1379
+ /**
1380
+ * PolicyVersion create
1381
+ */
1382
+ export type PolicyVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
+ /**
1384
+ * Select specific fields to fetch from the PolicyVersion
1385
+ */
1386
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1387
+ /**
1388
+ * Omit specific fields from the PolicyVersion
1389
+ */
1390
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1391
+ /**
1392
+ * Choose, which related nodes to fetch as well
1393
+ */
1394
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1395
+ /**
1396
+ * The data needed to create a PolicyVersion.
1397
+ */
1398
+ data: Prisma.XOR<Prisma.PolicyVersionCreateInput, Prisma.PolicyVersionUncheckedCreateInput>;
1399
+ };
1400
+ /**
1401
+ * PolicyVersion createMany
1402
+ */
1403
+ export type PolicyVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * The data used to create many PolicyVersions.
1406
+ */
1407
+ data: Prisma.PolicyVersionCreateManyInput | Prisma.PolicyVersionCreateManyInput[];
1408
+ skipDuplicates?: boolean;
1409
+ };
1410
+ /**
1411
+ * PolicyVersion createManyAndReturn
1412
+ */
1413
+ export type PolicyVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1414
+ /**
1415
+ * Select specific fields to fetch from the PolicyVersion
1416
+ */
1417
+ select?: Prisma.PolicyVersionSelectCreateManyAndReturn<ExtArgs> | null;
1418
+ /**
1419
+ * Omit specific fields from the PolicyVersion
1420
+ */
1421
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1422
+ /**
1423
+ * The data used to create many PolicyVersions.
1424
+ */
1425
+ data: Prisma.PolicyVersionCreateManyInput | Prisma.PolicyVersionCreateManyInput[];
1426
+ skipDuplicates?: boolean;
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.PolicyVersionIncludeCreateManyAndReturn<ExtArgs> | null;
1431
+ };
1432
+ /**
1433
+ * PolicyVersion update
1434
+ */
1435
+ export type PolicyVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1436
+ /**
1437
+ * Select specific fields to fetch from the PolicyVersion
1438
+ */
1439
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1440
+ /**
1441
+ * Omit specific fields from the PolicyVersion
1442
+ */
1443
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1448
+ /**
1449
+ * The data needed to update a PolicyVersion.
1450
+ */
1451
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateInput, Prisma.PolicyVersionUncheckedUpdateInput>;
1452
+ /**
1453
+ * Choose, which PolicyVersion to update.
1454
+ */
1455
+ where: Prisma.PolicyVersionWhereUniqueInput;
1456
+ };
1457
+ /**
1458
+ * PolicyVersion updateMany
1459
+ */
1460
+ export type PolicyVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1461
+ /**
1462
+ * The data used to update PolicyVersions.
1463
+ */
1464
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateManyMutationInput, Prisma.PolicyVersionUncheckedUpdateManyInput>;
1465
+ /**
1466
+ * Filter which PolicyVersions to update
1467
+ */
1468
+ where?: Prisma.PolicyVersionWhereInput;
1469
+ /**
1470
+ * Limit how many PolicyVersions to update.
1471
+ */
1472
+ limit?: number;
1473
+ };
1474
+ /**
1475
+ * PolicyVersion updateManyAndReturn
1476
+ */
1477
+ export type PolicyVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ /**
1479
+ * Select specific fields to fetch from the PolicyVersion
1480
+ */
1481
+ select?: Prisma.PolicyVersionSelectUpdateManyAndReturn<ExtArgs> | null;
1482
+ /**
1483
+ * Omit specific fields from the PolicyVersion
1484
+ */
1485
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1486
+ /**
1487
+ * The data used to update PolicyVersions.
1488
+ */
1489
+ data: Prisma.XOR<Prisma.PolicyVersionUpdateManyMutationInput, Prisma.PolicyVersionUncheckedUpdateManyInput>;
1490
+ /**
1491
+ * Filter which PolicyVersions to update
1492
+ */
1493
+ where?: Prisma.PolicyVersionWhereInput;
1494
+ /**
1495
+ * Limit how many PolicyVersions to update.
1496
+ */
1497
+ limit?: number;
1498
+ /**
1499
+ * Choose, which related nodes to fetch as well
1500
+ */
1501
+ include?: Prisma.PolicyVersionIncludeUpdateManyAndReturn<ExtArgs> | null;
1502
+ };
1503
+ /**
1504
+ * PolicyVersion upsert
1505
+ */
1506
+ export type PolicyVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1507
+ /**
1508
+ * Select specific fields to fetch from the PolicyVersion
1509
+ */
1510
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1511
+ /**
1512
+ * Omit specific fields from the PolicyVersion
1513
+ */
1514
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1515
+ /**
1516
+ * Choose, which related nodes to fetch as well
1517
+ */
1518
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1519
+ /**
1520
+ * The filter to search for the PolicyVersion to update in case it exists.
1521
+ */
1522
+ where: Prisma.PolicyVersionWhereUniqueInput;
1523
+ /**
1524
+ * In case the PolicyVersion found by the `where` argument doesn't exist, create a new PolicyVersion with this data.
1525
+ */
1526
+ create: Prisma.XOR<Prisma.PolicyVersionCreateInput, Prisma.PolicyVersionUncheckedCreateInput>;
1527
+ /**
1528
+ * In case the PolicyVersion was found with the provided `where` argument, update it with this data.
1529
+ */
1530
+ update: Prisma.XOR<Prisma.PolicyVersionUpdateInput, Prisma.PolicyVersionUncheckedUpdateInput>;
1531
+ };
1532
+ /**
1533
+ * PolicyVersion delete
1534
+ */
1535
+ export type PolicyVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1536
+ /**
1537
+ * Select specific fields to fetch from the PolicyVersion
1538
+ */
1539
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1540
+ /**
1541
+ * Omit specific fields from the PolicyVersion
1542
+ */
1543
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1544
+ /**
1545
+ * Choose, which related nodes to fetch as well
1546
+ */
1547
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1548
+ /**
1549
+ * Filter which PolicyVersion to delete.
1550
+ */
1551
+ where: Prisma.PolicyVersionWhereUniqueInput;
1552
+ };
1553
+ /**
1554
+ * PolicyVersion deleteMany
1555
+ */
1556
+ export type PolicyVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1557
+ /**
1558
+ * Filter which PolicyVersions to delete
1559
+ */
1560
+ where?: Prisma.PolicyVersionWhereInput;
1561
+ /**
1562
+ * Limit how many PolicyVersions to delete.
1563
+ */
1564
+ limit?: number;
1565
+ };
1566
+ /**
1567
+ * PolicyVersion.currentForPolicy
1568
+ */
1569
+ export type PolicyVersion$currentForPolicyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1570
+ /**
1571
+ * Select specific fields to fetch from the Policy
1572
+ */
1573
+ select?: Prisma.PolicySelect<ExtArgs> | null;
1574
+ /**
1575
+ * Omit specific fields from the Policy
1576
+ */
1577
+ omit?: Prisma.PolicyOmit<ExtArgs> | null;
1578
+ /**
1579
+ * Choose, which related nodes to fetch as well
1580
+ */
1581
+ include?: Prisma.PolicyInclude<ExtArgs> | null;
1582
+ where?: Prisma.PolicyWhereInput;
1583
+ };
1584
+ /**
1585
+ * PolicyVersion.publishedBy
1586
+ */
1587
+ export type PolicyVersion$publishedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1588
+ /**
1589
+ * Select specific fields to fetch from the Member
1590
+ */
1591
+ select?: Prisma.MemberSelect<ExtArgs> | null;
1592
+ /**
1593
+ * Omit specific fields from the Member
1594
+ */
1595
+ omit?: Prisma.MemberOmit<ExtArgs> | null;
1596
+ /**
1597
+ * Choose, which related nodes to fetch as well
1598
+ */
1599
+ include?: Prisma.MemberInclude<ExtArgs> | null;
1600
+ where?: Prisma.MemberWhereInput;
1601
+ };
1602
+ /**
1603
+ * PolicyVersion without action
1604
+ */
1605
+ export type PolicyVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1606
+ /**
1607
+ * Select specific fields to fetch from the PolicyVersion
1608
+ */
1609
+ select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
1610
+ /**
1611
+ * Omit specific fields from the PolicyVersion
1612
+ */
1613
+ omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
1614
+ /**
1615
+ * Choose, which related nodes to fetch as well
1616
+ */
1617
+ include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
1618
+ };
1619
+ //# sourceMappingURL=PolicyVersion.d.ts.map