@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.
- package/dist/client.d.ts +2 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -5
- package/dist/client.ts +5 -2
- package/dist/generated/prisma/client.d.ts +427 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +73 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +2082 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +367 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +329 -0
- package/dist/generated/prisma/internal/class.d.ts +1000 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +87 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +8063 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +1256 -0
- package/dist/generated/prisma/models/Account.d.ts +1456 -0
- package/dist/generated/prisma/models/Account.d.ts.map +1 -0
- package/dist/generated/prisma/models/Account.js +2 -0
- package/dist/generated/prisma/models/ApiKey.d.ts +1387 -0
- package/dist/generated/prisma/models/ApiKey.d.ts.map +1 -0
- package/dist/generated/prisma/models/ApiKey.js +2 -0
- package/dist/generated/prisma/models/Attachment.d.ts +1520 -0
- package/dist/generated/prisma/models/Attachment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Attachment.js +2 -0
- package/dist/generated/prisma/models/AuditLog.d.ts +1590 -0
- package/dist/generated/prisma/models/AuditLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/AuditLog.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts +1507 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomation.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts +1455 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.js +2 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts +1139 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserbaseContext.js +2 -0
- package/dist/generated/prisma/models/Comment.d.ts +1502 -0
- package/dist/generated/prisma/models/Comment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Comment.js +2 -0
- package/dist/generated/prisma/models/Context.d.ts +1254 -0
- package/dist/generated/prisma/models/Context.d.ts.map +1 -0
- package/dist/generated/prisma/models/Context.js +2 -0
- package/dist/generated/prisma/models/Control.d.ts +1965 -0
- package/dist/generated/prisma/models/Control.d.ts.map +1 -0
- package/dist/generated/prisma/models/Control.js +2 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts +1115 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts.map +1 -0
- package/dist/generated/prisma/models/ControlDocumentType.js +2 -0
- package/dist/generated/prisma/models/Device.d.ts +1858 -0
- package/dist/generated/prisma/models/Device.d.ts.map +1 -0
- package/dist/generated/prisma/models/Device.js +2 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts +1517 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicCheck.js +2 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts +1528 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicIntegration.js +2 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts +1146 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts +1533 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomation.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts +1833 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts +1331 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.js +2 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts +1905 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceSubmission.js +2 -0
- package/dist/generated/prisma/models/Finding.d.ts +2386 -0
- package/dist/generated/prisma/models/Finding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Finding.js +2 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts +1264 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FindingTemplate.js +2 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts +1484 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/FleetPolicyResult.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts +1669 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts +1581 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts +1428 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts +1525 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts +1434 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts +1054 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.js +2 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts +1321 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkInstance.js +2 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts +1358 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts.map +1 -0
- package/dist/generated/prisma/models/GlobalVendors.js +2 -0
- package/dist/generated/prisma/models/Integration.d.ts +1363 -0
- package/dist/generated/prisma/models/Integration.d.ts.map +1 -0
- package/dist/generated/prisma/models/Integration.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts +1408 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts +1958 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts +2472 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationConnection.js +2 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts +1298 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts +1362 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts +1131 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts +1237 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts +1652 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.js +2 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts +1300 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationProvider.js +2 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts +1539 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts +1596 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts +1716 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.js +2 -0
- package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.js +2 -0
- package/dist/generated/prisma/models/Jwks.d.ts +998 -0
- package/dist/generated/prisma/models/Jwks.d.ts.map +1 -0
- package/dist/generated/prisma/models/Jwks.js +2 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1463 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +2 -0
- package/dist/generated/prisma/models/Member.d.ts +5530 -0
- package/dist/generated/prisma/models/Member.d.ts.map +1 -0
- package/dist/generated/prisma/models/Member.js +2 -0
- package/dist/generated/prisma/models/Onboarding.d.ts +1376 -0
- package/dist/generated/prisma/models/Onboarding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Onboarding.js +2 -0
- package/dist/generated/prisma/models/Organization.d.ts +14367 -0
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
- package/dist/generated/prisma/models/Organization.js +2 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts +1222 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationBilling.js +2 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts +1248 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationChart.js +2 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts +1251 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationRole.js +2 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts +1497 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts.map +1 -0
- package/dist/generated/prisma/models/PentestSubscription.js +2 -0
- package/dist/generated/prisma/models/Policy.d.ts +3356 -0
- package/dist/generated/prisma/models/Policy.d.ts.map +1 -0
- package/dist/generated/prisma/models/Policy.js +2 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts +1619 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/PolicyVersion.js +2 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts +1808 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts.map +1 -0
- package/dist/generated/prisma/models/Questionnaire.js +2 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts +1422 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.js +2 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts +1345 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts.map +1 -0
- package/dist/generated/prisma/models/RequirementMap.js +2 -0
- package/dist/generated/prisma/models/Risk.d.ts +1975 -0
- package/dist/generated/prisma/models/Risk.d.ts.map +1 -0
- package/dist/generated/prisma/models/Risk.js +2 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts +1391 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts.map +1 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.js +2 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts +1498 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAAnswer.js +2 -0
- package/dist/generated/prisma/models/SOADocument.d.ts +2272 -0
- package/dist/generated/prisma/models/SOADocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOADocument.js +2 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts +1445 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.js +2 -0
- package/dist/generated/prisma/models/Secret.d.ts +1321 -0
- package/dist/generated/prisma/models/Secret.d.ts.map +1 -0
- package/dist/generated/prisma/models/Secret.js +2 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts +1176 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.js +2 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts +1510 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.js +2 -0
- package/dist/generated/prisma/models/Session.d.ts +1351 -0
- package/dist/generated/prisma/models/Session.d.ts.map +1 -0
- package/dist/generated/prisma/models/Session.js +2 -0
- package/dist/generated/prisma/models/Task.d.ts +3980 -0
- package/dist/generated/prisma/models/Task.d.ts.map +1 -0
- package/dist/generated/prisma/models/Task.js +2 -0
- package/dist/generated/prisma/models/TaskItem.d.ts +1961 -0
- package/dist/generated/prisma/models/TaskItem.d.ts.map +1 -0
- package/dist/generated/prisma/models/TaskItem.js +2 -0
- package/dist/generated/prisma/models/Trust.d.ts +2242 -0
- package/dist/generated/prisma/models/Trust.d.ts.map +1 -0
- package/dist/generated/prisma/models/Trust.js +2 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts +1888 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessGrant.js +2 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts +2103 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessRequest.js +2 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts +1354 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustCustomLink.js +2 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts +1281 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustDocument.js +2 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts +1877 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.js +2 -0
- package/dist/generated/prisma/models/TrustResource.d.ts +1328 -0
- package/dist/generated/prisma/models/TrustResource.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustResource.js +2 -0
- package/dist/generated/prisma/models/User.d.ts +3070 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models/Vendor.d.ts +2307 -0
- package/dist/generated/prisma/models/Vendor.d.ts.map +1 -0
- package/dist/generated/prisma/models/Vendor.js +2 -0
- package/dist/generated/prisma/models/VendorContact.d.ts +1246 -0
- package/dist/generated/prisma/models/VendorContact.d.ts.map +1 -0
- package/dist/generated/prisma/models/VendorContact.js +2 -0
- package/dist/generated/prisma/models/Verification.d.ts +1026 -0
- package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
- package/dist/generated/prisma/models/Verification.js +2 -0
- package/dist/generated/prisma/models.d.ts +82 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.ts +1 -2
- package/dist/postinstall.js +1 -1
- package/dist/schema.prisma +455 -39
- package/package.json +56 -55
|
@@ -0,0 +1,3356 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.js";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Model Policy
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type PolicyModel = runtime.Types.Result.DefaultSelection<Prisma.$PolicyPayload>;
|
|
9
|
+
export type AggregatePolicy = {
|
|
10
|
+
_count: PolicyCountAggregateOutputType | null;
|
|
11
|
+
_min: PolicyMinAggregateOutputType | null;
|
|
12
|
+
_max: PolicyMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type PolicyMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
name: string | null;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: $Enums.PolicyStatus | null;
|
|
19
|
+
frequency: $Enums.Frequency | null;
|
|
20
|
+
department: $Enums.Departments | null;
|
|
21
|
+
isRequiredToSign: boolean | null;
|
|
22
|
+
reviewDate: Date | null;
|
|
23
|
+
isArchived: boolean | null;
|
|
24
|
+
displayFormat: $Enums.PolicyDisplayFormat | null;
|
|
25
|
+
pdfUrl: string | null;
|
|
26
|
+
visibility: $Enums.PolicyVisibility | null;
|
|
27
|
+
createdAt: Date | null;
|
|
28
|
+
updatedAt: Date | null;
|
|
29
|
+
lastArchivedAt: Date | null;
|
|
30
|
+
lastPublishedAt: Date | null;
|
|
31
|
+
organizationId: string | null;
|
|
32
|
+
assigneeId: string | null;
|
|
33
|
+
approverId: string | null;
|
|
34
|
+
policyTemplateId: string | null;
|
|
35
|
+
currentVersionId: string | null;
|
|
36
|
+
pendingVersionId: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type PolicyMaxAggregateOutputType = {
|
|
39
|
+
id: string | null;
|
|
40
|
+
name: string | null;
|
|
41
|
+
description: string | null;
|
|
42
|
+
status: $Enums.PolicyStatus | null;
|
|
43
|
+
frequency: $Enums.Frequency | null;
|
|
44
|
+
department: $Enums.Departments | null;
|
|
45
|
+
isRequiredToSign: boolean | null;
|
|
46
|
+
reviewDate: Date | null;
|
|
47
|
+
isArchived: boolean | null;
|
|
48
|
+
displayFormat: $Enums.PolicyDisplayFormat | null;
|
|
49
|
+
pdfUrl: string | null;
|
|
50
|
+
visibility: $Enums.PolicyVisibility | null;
|
|
51
|
+
createdAt: Date | null;
|
|
52
|
+
updatedAt: Date | null;
|
|
53
|
+
lastArchivedAt: Date | null;
|
|
54
|
+
lastPublishedAt: Date | null;
|
|
55
|
+
organizationId: string | null;
|
|
56
|
+
assigneeId: string | null;
|
|
57
|
+
approverId: string | null;
|
|
58
|
+
policyTemplateId: string | null;
|
|
59
|
+
currentVersionId: string | null;
|
|
60
|
+
pendingVersionId: string | null;
|
|
61
|
+
};
|
|
62
|
+
export type PolicyCountAggregateOutputType = {
|
|
63
|
+
id: number;
|
|
64
|
+
name: number;
|
|
65
|
+
description: number;
|
|
66
|
+
status: number;
|
|
67
|
+
content: number;
|
|
68
|
+
draftContent: number;
|
|
69
|
+
frequency: number;
|
|
70
|
+
department: number;
|
|
71
|
+
isRequiredToSign: number;
|
|
72
|
+
signedBy: number;
|
|
73
|
+
reviewDate: number;
|
|
74
|
+
isArchived: number;
|
|
75
|
+
displayFormat: number;
|
|
76
|
+
pdfUrl: number;
|
|
77
|
+
visibility: number;
|
|
78
|
+
visibleToDepartments: number;
|
|
79
|
+
createdAt: number;
|
|
80
|
+
updatedAt: number;
|
|
81
|
+
lastArchivedAt: number;
|
|
82
|
+
lastPublishedAt: number;
|
|
83
|
+
organizationId: number;
|
|
84
|
+
assigneeId: number;
|
|
85
|
+
approverId: number;
|
|
86
|
+
policyTemplateId: number;
|
|
87
|
+
currentVersionId: number;
|
|
88
|
+
pendingVersionId: number;
|
|
89
|
+
_all: number;
|
|
90
|
+
};
|
|
91
|
+
export type PolicyMinAggregateInputType = {
|
|
92
|
+
id?: true;
|
|
93
|
+
name?: true;
|
|
94
|
+
description?: true;
|
|
95
|
+
status?: true;
|
|
96
|
+
frequency?: true;
|
|
97
|
+
department?: true;
|
|
98
|
+
isRequiredToSign?: true;
|
|
99
|
+
reviewDate?: true;
|
|
100
|
+
isArchived?: true;
|
|
101
|
+
displayFormat?: true;
|
|
102
|
+
pdfUrl?: true;
|
|
103
|
+
visibility?: true;
|
|
104
|
+
createdAt?: true;
|
|
105
|
+
updatedAt?: true;
|
|
106
|
+
lastArchivedAt?: true;
|
|
107
|
+
lastPublishedAt?: true;
|
|
108
|
+
organizationId?: true;
|
|
109
|
+
assigneeId?: true;
|
|
110
|
+
approverId?: true;
|
|
111
|
+
policyTemplateId?: true;
|
|
112
|
+
currentVersionId?: true;
|
|
113
|
+
pendingVersionId?: true;
|
|
114
|
+
};
|
|
115
|
+
export type PolicyMaxAggregateInputType = {
|
|
116
|
+
id?: true;
|
|
117
|
+
name?: true;
|
|
118
|
+
description?: true;
|
|
119
|
+
status?: true;
|
|
120
|
+
frequency?: true;
|
|
121
|
+
department?: true;
|
|
122
|
+
isRequiredToSign?: true;
|
|
123
|
+
reviewDate?: true;
|
|
124
|
+
isArchived?: true;
|
|
125
|
+
displayFormat?: true;
|
|
126
|
+
pdfUrl?: true;
|
|
127
|
+
visibility?: true;
|
|
128
|
+
createdAt?: true;
|
|
129
|
+
updatedAt?: true;
|
|
130
|
+
lastArchivedAt?: true;
|
|
131
|
+
lastPublishedAt?: true;
|
|
132
|
+
organizationId?: true;
|
|
133
|
+
assigneeId?: true;
|
|
134
|
+
approverId?: true;
|
|
135
|
+
policyTemplateId?: true;
|
|
136
|
+
currentVersionId?: true;
|
|
137
|
+
pendingVersionId?: true;
|
|
138
|
+
};
|
|
139
|
+
export type PolicyCountAggregateInputType = {
|
|
140
|
+
id?: true;
|
|
141
|
+
name?: true;
|
|
142
|
+
description?: true;
|
|
143
|
+
status?: true;
|
|
144
|
+
content?: true;
|
|
145
|
+
draftContent?: true;
|
|
146
|
+
frequency?: true;
|
|
147
|
+
department?: true;
|
|
148
|
+
isRequiredToSign?: true;
|
|
149
|
+
signedBy?: true;
|
|
150
|
+
reviewDate?: true;
|
|
151
|
+
isArchived?: true;
|
|
152
|
+
displayFormat?: true;
|
|
153
|
+
pdfUrl?: true;
|
|
154
|
+
visibility?: true;
|
|
155
|
+
visibleToDepartments?: true;
|
|
156
|
+
createdAt?: true;
|
|
157
|
+
updatedAt?: true;
|
|
158
|
+
lastArchivedAt?: true;
|
|
159
|
+
lastPublishedAt?: true;
|
|
160
|
+
organizationId?: true;
|
|
161
|
+
assigneeId?: true;
|
|
162
|
+
approverId?: true;
|
|
163
|
+
policyTemplateId?: true;
|
|
164
|
+
currentVersionId?: true;
|
|
165
|
+
pendingVersionId?: true;
|
|
166
|
+
_all?: true;
|
|
167
|
+
};
|
|
168
|
+
export type PolicyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
169
|
+
/**
|
|
170
|
+
* Filter which Policy to aggregate.
|
|
171
|
+
*/
|
|
172
|
+
where?: Prisma.PolicyWhereInput;
|
|
173
|
+
/**
|
|
174
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
175
|
+
*
|
|
176
|
+
* Determine the order of Policies to fetch.
|
|
177
|
+
*/
|
|
178
|
+
orderBy?: Prisma.PolicyOrderByWithRelationInput | Prisma.PolicyOrderByWithRelationInput[];
|
|
179
|
+
/**
|
|
180
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
181
|
+
*
|
|
182
|
+
* Sets the start position
|
|
183
|
+
*/
|
|
184
|
+
cursor?: Prisma.PolicyWhereUniqueInput;
|
|
185
|
+
/**
|
|
186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
187
|
+
*
|
|
188
|
+
* Take `±n` Policies from the position of the cursor.
|
|
189
|
+
*/
|
|
190
|
+
take?: number;
|
|
191
|
+
/**
|
|
192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
193
|
+
*
|
|
194
|
+
* Skip the first `n` Policies.
|
|
195
|
+
*/
|
|
196
|
+
skip?: number;
|
|
197
|
+
/**
|
|
198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
199
|
+
*
|
|
200
|
+
* Count returned Policies
|
|
201
|
+
**/
|
|
202
|
+
_count?: true | PolicyCountAggregateInputType;
|
|
203
|
+
/**
|
|
204
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
205
|
+
*
|
|
206
|
+
* Select which fields to find the minimum value
|
|
207
|
+
**/
|
|
208
|
+
_min?: PolicyMinAggregateInputType;
|
|
209
|
+
/**
|
|
210
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
211
|
+
*
|
|
212
|
+
* Select which fields to find the maximum value
|
|
213
|
+
**/
|
|
214
|
+
_max?: PolicyMaxAggregateInputType;
|
|
215
|
+
};
|
|
216
|
+
export type GetPolicyAggregateType<T extends PolicyAggregateArgs> = {
|
|
217
|
+
[P in keyof T & keyof AggregatePolicy]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePolicy[P]> : Prisma.GetScalarType<T[P], AggregatePolicy[P]>;
|
|
218
|
+
};
|
|
219
|
+
export type PolicyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
220
|
+
where?: Prisma.PolicyWhereInput;
|
|
221
|
+
orderBy?: Prisma.PolicyOrderByWithAggregationInput | Prisma.PolicyOrderByWithAggregationInput[];
|
|
222
|
+
by: Prisma.PolicyScalarFieldEnum[] | Prisma.PolicyScalarFieldEnum;
|
|
223
|
+
having?: Prisma.PolicyScalarWhereWithAggregatesInput;
|
|
224
|
+
take?: number;
|
|
225
|
+
skip?: number;
|
|
226
|
+
_count?: PolicyCountAggregateInputType | true;
|
|
227
|
+
_min?: PolicyMinAggregateInputType;
|
|
228
|
+
_max?: PolicyMaxAggregateInputType;
|
|
229
|
+
};
|
|
230
|
+
export type PolicyGroupByOutputType = {
|
|
231
|
+
id: string;
|
|
232
|
+
name: string;
|
|
233
|
+
description: string | null;
|
|
234
|
+
status: $Enums.PolicyStatus;
|
|
235
|
+
content: runtime.JsonValue[];
|
|
236
|
+
draftContent: runtime.JsonValue[];
|
|
237
|
+
frequency: $Enums.Frequency | null;
|
|
238
|
+
department: $Enums.Departments | null;
|
|
239
|
+
isRequiredToSign: boolean;
|
|
240
|
+
signedBy: string[];
|
|
241
|
+
reviewDate: Date | null;
|
|
242
|
+
isArchived: boolean;
|
|
243
|
+
displayFormat: $Enums.PolicyDisplayFormat;
|
|
244
|
+
pdfUrl: string | null;
|
|
245
|
+
visibility: $Enums.PolicyVisibility;
|
|
246
|
+
visibleToDepartments: $Enums.Departments[];
|
|
247
|
+
createdAt: Date;
|
|
248
|
+
updatedAt: Date;
|
|
249
|
+
lastArchivedAt: Date | null;
|
|
250
|
+
lastPublishedAt: Date | null;
|
|
251
|
+
organizationId: string;
|
|
252
|
+
assigneeId: string | null;
|
|
253
|
+
approverId: string | null;
|
|
254
|
+
policyTemplateId: string | null;
|
|
255
|
+
currentVersionId: string | null;
|
|
256
|
+
pendingVersionId: string | null;
|
|
257
|
+
_count: PolicyCountAggregateOutputType | null;
|
|
258
|
+
_min: PolicyMinAggregateOutputType | null;
|
|
259
|
+
_max: PolicyMaxAggregateOutputType | null;
|
|
260
|
+
};
|
|
261
|
+
export type GetPolicyGroupByPayload<T extends PolicyGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PolicyGroupByOutputType, T['by']> & {
|
|
262
|
+
[P in ((keyof T) & (keyof PolicyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PolicyGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PolicyGroupByOutputType[P]>;
|
|
263
|
+
}>>;
|
|
264
|
+
export type PolicyWhereInput = {
|
|
265
|
+
AND?: Prisma.PolicyWhereInput | Prisma.PolicyWhereInput[];
|
|
266
|
+
OR?: Prisma.PolicyWhereInput[];
|
|
267
|
+
NOT?: Prisma.PolicyWhereInput | Prisma.PolicyWhereInput[];
|
|
268
|
+
id?: Prisma.StringFilter<"Policy"> | string;
|
|
269
|
+
name?: Prisma.StringFilter<"Policy"> | string;
|
|
270
|
+
description?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
271
|
+
status?: Prisma.EnumPolicyStatusFilter<"Policy"> | $Enums.PolicyStatus;
|
|
272
|
+
content?: Prisma.JsonNullableListFilter<"Policy">;
|
|
273
|
+
draftContent?: Prisma.JsonNullableListFilter<"Policy">;
|
|
274
|
+
frequency?: Prisma.EnumFrequencyNullableFilter<"Policy"> | $Enums.Frequency | null;
|
|
275
|
+
department?: Prisma.EnumDepartmentsNullableFilter<"Policy"> | $Enums.Departments | null;
|
|
276
|
+
isRequiredToSign?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
277
|
+
signedBy?: Prisma.StringNullableListFilter<"Policy">;
|
|
278
|
+
reviewDate?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
279
|
+
isArchived?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
280
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFilter<"Policy"> | $Enums.PolicyDisplayFormat;
|
|
281
|
+
pdfUrl?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
282
|
+
visibility?: Prisma.EnumPolicyVisibilityFilter<"Policy"> | $Enums.PolicyVisibility;
|
|
283
|
+
visibleToDepartments?: Prisma.EnumDepartmentsNullableListFilter<"Policy">;
|
|
284
|
+
createdAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
285
|
+
updatedAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
286
|
+
lastArchivedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
287
|
+
lastPublishedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
288
|
+
organizationId?: Prisma.StringFilter<"Policy"> | string;
|
|
289
|
+
assigneeId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
290
|
+
approverId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
291
|
+
policyTemplateId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
292
|
+
currentVersionId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
293
|
+
pendingVersionId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
294
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
295
|
+
assignee?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
|
|
296
|
+
approver?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
|
|
297
|
+
policyTemplate?: Prisma.XOR<Prisma.FrameworkEditorPolicyTemplateNullableScalarRelationFilter, Prisma.FrameworkEditorPolicyTemplateWhereInput> | null;
|
|
298
|
+
controls?: Prisma.ControlListRelationFilter;
|
|
299
|
+
currentVersion?: Prisma.XOR<Prisma.PolicyVersionNullableScalarRelationFilter, Prisma.PolicyVersionWhereInput> | null;
|
|
300
|
+
versions?: Prisma.PolicyVersionListRelationFilter;
|
|
301
|
+
};
|
|
302
|
+
export type PolicyOrderByWithRelationInput = {
|
|
303
|
+
id?: Prisma.SortOrder;
|
|
304
|
+
name?: Prisma.SortOrder;
|
|
305
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
306
|
+
status?: Prisma.SortOrder;
|
|
307
|
+
content?: Prisma.SortOrder;
|
|
308
|
+
draftContent?: Prisma.SortOrder;
|
|
309
|
+
frequency?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
310
|
+
department?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
311
|
+
isRequiredToSign?: Prisma.SortOrder;
|
|
312
|
+
signedBy?: Prisma.SortOrder;
|
|
313
|
+
reviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
314
|
+
isArchived?: Prisma.SortOrder;
|
|
315
|
+
displayFormat?: Prisma.SortOrder;
|
|
316
|
+
pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
317
|
+
visibility?: Prisma.SortOrder;
|
|
318
|
+
visibleToDepartments?: Prisma.SortOrder;
|
|
319
|
+
createdAt?: Prisma.SortOrder;
|
|
320
|
+
updatedAt?: Prisma.SortOrder;
|
|
321
|
+
lastArchivedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
322
|
+
lastPublishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
323
|
+
organizationId?: Prisma.SortOrder;
|
|
324
|
+
assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
325
|
+
approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
326
|
+
policyTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
327
|
+
currentVersionId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
328
|
+
pendingVersionId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
329
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
330
|
+
assignee?: Prisma.MemberOrderByWithRelationInput;
|
|
331
|
+
approver?: Prisma.MemberOrderByWithRelationInput;
|
|
332
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateOrderByWithRelationInput;
|
|
333
|
+
controls?: Prisma.ControlOrderByRelationAggregateInput;
|
|
334
|
+
currentVersion?: Prisma.PolicyVersionOrderByWithRelationInput;
|
|
335
|
+
versions?: Prisma.PolicyVersionOrderByRelationAggregateInput;
|
|
336
|
+
};
|
|
337
|
+
export type PolicyWhereUniqueInput = Prisma.AtLeast<{
|
|
338
|
+
id?: string;
|
|
339
|
+
currentVersionId?: string;
|
|
340
|
+
AND?: Prisma.PolicyWhereInput | Prisma.PolicyWhereInput[];
|
|
341
|
+
OR?: Prisma.PolicyWhereInput[];
|
|
342
|
+
NOT?: Prisma.PolicyWhereInput | Prisma.PolicyWhereInput[];
|
|
343
|
+
name?: Prisma.StringFilter<"Policy"> | string;
|
|
344
|
+
description?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
345
|
+
status?: Prisma.EnumPolicyStatusFilter<"Policy"> | $Enums.PolicyStatus;
|
|
346
|
+
content?: Prisma.JsonNullableListFilter<"Policy">;
|
|
347
|
+
draftContent?: Prisma.JsonNullableListFilter<"Policy">;
|
|
348
|
+
frequency?: Prisma.EnumFrequencyNullableFilter<"Policy"> | $Enums.Frequency | null;
|
|
349
|
+
department?: Prisma.EnumDepartmentsNullableFilter<"Policy"> | $Enums.Departments | null;
|
|
350
|
+
isRequiredToSign?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
351
|
+
signedBy?: Prisma.StringNullableListFilter<"Policy">;
|
|
352
|
+
reviewDate?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
353
|
+
isArchived?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
354
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFilter<"Policy"> | $Enums.PolicyDisplayFormat;
|
|
355
|
+
pdfUrl?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
356
|
+
visibility?: Prisma.EnumPolicyVisibilityFilter<"Policy"> | $Enums.PolicyVisibility;
|
|
357
|
+
visibleToDepartments?: Prisma.EnumDepartmentsNullableListFilter<"Policy">;
|
|
358
|
+
createdAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
359
|
+
updatedAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
360
|
+
lastArchivedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
361
|
+
lastPublishedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
362
|
+
organizationId?: Prisma.StringFilter<"Policy"> | string;
|
|
363
|
+
assigneeId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
364
|
+
approverId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
365
|
+
policyTemplateId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
366
|
+
pendingVersionId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
367
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
368
|
+
assignee?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
|
|
369
|
+
approver?: Prisma.XOR<Prisma.MemberNullableScalarRelationFilter, Prisma.MemberWhereInput> | null;
|
|
370
|
+
policyTemplate?: Prisma.XOR<Prisma.FrameworkEditorPolicyTemplateNullableScalarRelationFilter, Prisma.FrameworkEditorPolicyTemplateWhereInput> | null;
|
|
371
|
+
controls?: Prisma.ControlListRelationFilter;
|
|
372
|
+
currentVersion?: Prisma.XOR<Prisma.PolicyVersionNullableScalarRelationFilter, Prisma.PolicyVersionWhereInput> | null;
|
|
373
|
+
versions?: Prisma.PolicyVersionListRelationFilter;
|
|
374
|
+
}, "id" | "currentVersionId">;
|
|
375
|
+
export type PolicyOrderByWithAggregationInput = {
|
|
376
|
+
id?: Prisma.SortOrder;
|
|
377
|
+
name?: Prisma.SortOrder;
|
|
378
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
379
|
+
status?: Prisma.SortOrder;
|
|
380
|
+
content?: Prisma.SortOrder;
|
|
381
|
+
draftContent?: Prisma.SortOrder;
|
|
382
|
+
frequency?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
383
|
+
department?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
384
|
+
isRequiredToSign?: Prisma.SortOrder;
|
|
385
|
+
signedBy?: Prisma.SortOrder;
|
|
386
|
+
reviewDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
387
|
+
isArchived?: Prisma.SortOrder;
|
|
388
|
+
displayFormat?: Prisma.SortOrder;
|
|
389
|
+
pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
390
|
+
visibility?: Prisma.SortOrder;
|
|
391
|
+
visibleToDepartments?: Prisma.SortOrder;
|
|
392
|
+
createdAt?: Prisma.SortOrder;
|
|
393
|
+
updatedAt?: Prisma.SortOrder;
|
|
394
|
+
lastArchivedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
395
|
+
lastPublishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
396
|
+
organizationId?: Prisma.SortOrder;
|
|
397
|
+
assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
398
|
+
approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
399
|
+
policyTemplateId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
400
|
+
currentVersionId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
401
|
+
pendingVersionId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
402
|
+
_count?: Prisma.PolicyCountOrderByAggregateInput;
|
|
403
|
+
_max?: Prisma.PolicyMaxOrderByAggregateInput;
|
|
404
|
+
_min?: Prisma.PolicyMinOrderByAggregateInput;
|
|
405
|
+
};
|
|
406
|
+
export type PolicyScalarWhereWithAggregatesInput = {
|
|
407
|
+
AND?: Prisma.PolicyScalarWhereWithAggregatesInput | Prisma.PolicyScalarWhereWithAggregatesInput[];
|
|
408
|
+
OR?: Prisma.PolicyScalarWhereWithAggregatesInput[];
|
|
409
|
+
NOT?: Prisma.PolicyScalarWhereWithAggregatesInput | Prisma.PolicyScalarWhereWithAggregatesInput[];
|
|
410
|
+
id?: Prisma.StringWithAggregatesFilter<"Policy"> | string;
|
|
411
|
+
name?: Prisma.StringWithAggregatesFilter<"Policy"> | string;
|
|
412
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
413
|
+
status?: Prisma.EnumPolicyStatusWithAggregatesFilter<"Policy"> | $Enums.PolicyStatus;
|
|
414
|
+
content?: Prisma.JsonNullableListFilter<"Policy">;
|
|
415
|
+
draftContent?: Prisma.JsonNullableListFilter<"Policy">;
|
|
416
|
+
frequency?: Prisma.EnumFrequencyNullableWithAggregatesFilter<"Policy"> | $Enums.Frequency | null;
|
|
417
|
+
department?: Prisma.EnumDepartmentsNullableWithAggregatesFilter<"Policy"> | $Enums.Departments | null;
|
|
418
|
+
isRequiredToSign?: Prisma.BoolWithAggregatesFilter<"Policy"> | boolean;
|
|
419
|
+
signedBy?: Prisma.StringNullableListFilter<"Policy">;
|
|
420
|
+
reviewDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Policy"> | Date | string | null;
|
|
421
|
+
isArchived?: Prisma.BoolWithAggregatesFilter<"Policy"> | boolean;
|
|
422
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatWithAggregatesFilter<"Policy"> | $Enums.PolicyDisplayFormat;
|
|
423
|
+
pdfUrl?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
424
|
+
visibility?: Prisma.EnumPolicyVisibilityWithAggregatesFilter<"Policy"> | $Enums.PolicyVisibility;
|
|
425
|
+
visibleToDepartments?: Prisma.EnumDepartmentsNullableListFilter<"Policy">;
|
|
426
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Policy"> | Date | string;
|
|
427
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Policy"> | Date | string;
|
|
428
|
+
lastArchivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Policy"> | Date | string | null;
|
|
429
|
+
lastPublishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Policy"> | Date | string | null;
|
|
430
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Policy"> | string;
|
|
431
|
+
assigneeId?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
432
|
+
approverId?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
433
|
+
policyTemplateId?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
434
|
+
currentVersionId?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
435
|
+
pendingVersionId?: Prisma.StringNullableWithAggregatesFilter<"Policy"> | string | null;
|
|
436
|
+
};
|
|
437
|
+
export type PolicyCreateInput = {
|
|
438
|
+
id?: string;
|
|
439
|
+
name: string;
|
|
440
|
+
description?: string | null;
|
|
441
|
+
status?: $Enums.PolicyStatus;
|
|
442
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
443
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
444
|
+
frequency?: $Enums.Frequency | null;
|
|
445
|
+
department?: $Enums.Departments | null;
|
|
446
|
+
isRequiredToSign?: boolean;
|
|
447
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
448
|
+
reviewDate?: Date | string | null;
|
|
449
|
+
isArchived?: boolean;
|
|
450
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
451
|
+
pdfUrl?: string | null;
|
|
452
|
+
visibility?: $Enums.PolicyVisibility;
|
|
453
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
454
|
+
createdAt?: Date | string;
|
|
455
|
+
updatedAt?: Date | string;
|
|
456
|
+
lastArchivedAt?: Date | string | null;
|
|
457
|
+
lastPublishedAt?: Date | string | null;
|
|
458
|
+
pendingVersionId?: string | null;
|
|
459
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
460
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
461
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
462
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
463
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
464
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
465
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
466
|
+
};
|
|
467
|
+
export type PolicyUncheckedCreateInput = {
|
|
468
|
+
id?: string;
|
|
469
|
+
name: string;
|
|
470
|
+
description?: string | null;
|
|
471
|
+
status?: $Enums.PolicyStatus;
|
|
472
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
473
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
474
|
+
frequency?: $Enums.Frequency | null;
|
|
475
|
+
department?: $Enums.Departments | null;
|
|
476
|
+
isRequiredToSign?: boolean;
|
|
477
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
478
|
+
reviewDate?: Date | string | null;
|
|
479
|
+
isArchived?: boolean;
|
|
480
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
481
|
+
pdfUrl?: string | null;
|
|
482
|
+
visibility?: $Enums.PolicyVisibility;
|
|
483
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
484
|
+
createdAt?: Date | string;
|
|
485
|
+
updatedAt?: Date | string;
|
|
486
|
+
lastArchivedAt?: Date | string | null;
|
|
487
|
+
lastPublishedAt?: Date | string | null;
|
|
488
|
+
organizationId: string;
|
|
489
|
+
assigneeId?: string | null;
|
|
490
|
+
approverId?: string | null;
|
|
491
|
+
policyTemplateId?: string | null;
|
|
492
|
+
currentVersionId?: string | null;
|
|
493
|
+
pendingVersionId?: string | null;
|
|
494
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
495
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
496
|
+
};
|
|
497
|
+
export type PolicyUpdateInput = {
|
|
498
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
499
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
500
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
501
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
502
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
503
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
504
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
505
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
506
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
507
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
508
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
509
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
510
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
511
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
512
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
513
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
514
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
515
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
516
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
517
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
518
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
519
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
520
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
521
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
522
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
523
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
524
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
525
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
526
|
+
};
|
|
527
|
+
export type PolicyUncheckedUpdateInput = {
|
|
528
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
529
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
531
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
532
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
533
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
534
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
535
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
536
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
537
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
538
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
539
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
540
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
541
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
542
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
543
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
544
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
545
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
546
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
547
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
548
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
549
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
550
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
551
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
552
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
553
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
554
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
555
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
556
|
+
};
|
|
557
|
+
export type PolicyCreateManyInput = {
|
|
558
|
+
id?: string;
|
|
559
|
+
name: string;
|
|
560
|
+
description?: string | null;
|
|
561
|
+
status?: $Enums.PolicyStatus;
|
|
562
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
563
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
564
|
+
frequency?: $Enums.Frequency | null;
|
|
565
|
+
department?: $Enums.Departments | null;
|
|
566
|
+
isRequiredToSign?: boolean;
|
|
567
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
568
|
+
reviewDate?: Date | string | null;
|
|
569
|
+
isArchived?: boolean;
|
|
570
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
571
|
+
pdfUrl?: string | null;
|
|
572
|
+
visibility?: $Enums.PolicyVisibility;
|
|
573
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
574
|
+
createdAt?: Date | string;
|
|
575
|
+
updatedAt?: Date | string;
|
|
576
|
+
lastArchivedAt?: Date | string | null;
|
|
577
|
+
lastPublishedAt?: Date | string | null;
|
|
578
|
+
organizationId: string;
|
|
579
|
+
assigneeId?: string | null;
|
|
580
|
+
approverId?: string | null;
|
|
581
|
+
policyTemplateId?: string | null;
|
|
582
|
+
currentVersionId?: string | null;
|
|
583
|
+
pendingVersionId?: string | null;
|
|
584
|
+
};
|
|
585
|
+
export type PolicyUpdateManyMutationInput = {
|
|
586
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
587
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
588
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
589
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
590
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
591
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
592
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
593
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
594
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
595
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
596
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
597
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
598
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
599
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
600
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
601
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
602
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
603
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
604
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
605
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
606
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
607
|
+
};
|
|
608
|
+
export type PolicyUncheckedUpdateManyInput = {
|
|
609
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
610
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
612
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
613
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
614
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
615
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
616
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
617
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
618
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
619
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
620
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
621
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
622
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
623
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
624
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
625
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
626
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
627
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
628
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
629
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
630
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
631
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
632
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
633
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
634
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
635
|
+
};
|
|
636
|
+
export type PolicyListRelationFilter = {
|
|
637
|
+
every?: Prisma.PolicyWhereInput;
|
|
638
|
+
some?: Prisma.PolicyWhereInput;
|
|
639
|
+
none?: Prisma.PolicyWhereInput;
|
|
640
|
+
};
|
|
641
|
+
export type PolicyOrderByRelationAggregateInput = {
|
|
642
|
+
_count?: Prisma.SortOrder;
|
|
643
|
+
};
|
|
644
|
+
export type JsonNullableListFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableListFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableListFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableListFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableListFilterBase<$PrismaModel>>, 'path'>>;
|
|
645
|
+
export type JsonNullableListFilterBase<$PrismaModel = never> = {
|
|
646
|
+
equals?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel> | null;
|
|
647
|
+
has?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
648
|
+
hasEvery?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel>;
|
|
649
|
+
hasSome?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel>;
|
|
650
|
+
isEmpty?: boolean;
|
|
651
|
+
};
|
|
652
|
+
export type EnumDepartmentsNullableListFilter<$PrismaModel = never> = {
|
|
653
|
+
equals?: $Enums.Departments[] | Prisma.ListEnumDepartmentsFieldRefInput<$PrismaModel> | null;
|
|
654
|
+
has?: $Enums.Departments | Prisma.EnumDepartmentsFieldRefInput<$PrismaModel> | null;
|
|
655
|
+
hasEvery?: $Enums.Departments[] | Prisma.ListEnumDepartmentsFieldRefInput<$PrismaModel>;
|
|
656
|
+
hasSome?: $Enums.Departments[] | Prisma.ListEnumDepartmentsFieldRefInput<$PrismaModel>;
|
|
657
|
+
isEmpty?: boolean;
|
|
658
|
+
};
|
|
659
|
+
export type PolicyCountOrderByAggregateInput = {
|
|
660
|
+
id?: Prisma.SortOrder;
|
|
661
|
+
name?: Prisma.SortOrder;
|
|
662
|
+
description?: Prisma.SortOrder;
|
|
663
|
+
status?: Prisma.SortOrder;
|
|
664
|
+
content?: Prisma.SortOrder;
|
|
665
|
+
draftContent?: Prisma.SortOrder;
|
|
666
|
+
frequency?: Prisma.SortOrder;
|
|
667
|
+
department?: Prisma.SortOrder;
|
|
668
|
+
isRequiredToSign?: Prisma.SortOrder;
|
|
669
|
+
signedBy?: Prisma.SortOrder;
|
|
670
|
+
reviewDate?: Prisma.SortOrder;
|
|
671
|
+
isArchived?: Prisma.SortOrder;
|
|
672
|
+
displayFormat?: Prisma.SortOrder;
|
|
673
|
+
pdfUrl?: Prisma.SortOrder;
|
|
674
|
+
visibility?: Prisma.SortOrder;
|
|
675
|
+
visibleToDepartments?: Prisma.SortOrder;
|
|
676
|
+
createdAt?: Prisma.SortOrder;
|
|
677
|
+
updatedAt?: Prisma.SortOrder;
|
|
678
|
+
lastArchivedAt?: Prisma.SortOrder;
|
|
679
|
+
lastPublishedAt?: Prisma.SortOrder;
|
|
680
|
+
organizationId?: Prisma.SortOrder;
|
|
681
|
+
assigneeId?: Prisma.SortOrder;
|
|
682
|
+
approverId?: Prisma.SortOrder;
|
|
683
|
+
policyTemplateId?: Prisma.SortOrder;
|
|
684
|
+
currentVersionId?: Prisma.SortOrder;
|
|
685
|
+
pendingVersionId?: Prisma.SortOrder;
|
|
686
|
+
};
|
|
687
|
+
export type PolicyMaxOrderByAggregateInput = {
|
|
688
|
+
id?: Prisma.SortOrder;
|
|
689
|
+
name?: Prisma.SortOrder;
|
|
690
|
+
description?: Prisma.SortOrder;
|
|
691
|
+
status?: Prisma.SortOrder;
|
|
692
|
+
frequency?: Prisma.SortOrder;
|
|
693
|
+
department?: Prisma.SortOrder;
|
|
694
|
+
isRequiredToSign?: Prisma.SortOrder;
|
|
695
|
+
reviewDate?: Prisma.SortOrder;
|
|
696
|
+
isArchived?: Prisma.SortOrder;
|
|
697
|
+
displayFormat?: Prisma.SortOrder;
|
|
698
|
+
pdfUrl?: Prisma.SortOrder;
|
|
699
|
+
visibility?: Prisma.SortOrder;
|
|
700
|
+
createdAt?: Prisma.SortOrder;
|
|
701
|
+
updatedAt?: Prisma.SortOrder;
|
|
702
|
+
lastArchivedAt?: Prisma.SortOrder;
|
|
703
|
+
lastPublishedAt?: Prisma.SortOrder;
|
|
704
|
+
organizationId?: Prisma.SortOrder;
|
|
705
|
+
assigneeId?: Prisma.SortOrder;
|
|
706
|
+
approverId?: Prisma.SortOrder;
|
|
707
|
+
policyTemplateId?: Prisma.SortOrder;
|
|
708
|
+
currentVersionId?: Prisma.SortOrder;
|
|
709
|
+
pendingVersionId?: Prisma.SortOrder;
|
|
710
|
+
};
|
|
711
|
+
export type PolicyMinOrderByAggregateInput = {
|
|
712
|
+
id?: Prisma.SortOrder;
|
|
713
|
+
name?: Prisma.SortOrder;
|
|
714
|
+
description?: Prisma.SortOrder;
|
|
715
|
+
status?: Prisma.SortOrder;
|
|
716
|
+
frequency?: Prisma.SortOrder;
|
|
717
|
+
department?: Prisma.SortOrder;
|
|
718
|
+
isRequiredToSign?: Prisma.SortOrder;
|
|
719
|
+
reviewDate?: Prisma.SortOrder;
|
|
720
|
+
isArchived?: Prisma.SortOrder;
|
|
721
|
+
displayFormat?: Prisma.SortOrder;
|
|
722
|
+
pdfUrl?: Prisma.SortOrder;
|
|
723
|
+
visibility?: Prisma.SortOrder;
|
|
724
|
+
createdAt?: Prisma.SortOrder;
|
|
725
|
+
updatedAt?: Prisma.SortOrder;
|
|
726
|
+
lastArchivedAt?: Prisma.SortOrder;
|
|
727
|
+
lastPublishedAt?: Prisma.SortOrder;
|
|
728
|
+
organizationId?: Prisma.SortOrder;
|
|
729
|
+
assigneeId?: Prisma.SortOrder;
|
|
730
|
+
approverId?: Prisma.SortOrder;
|
|
731
|
+
policyTemplateId?: Prisma.SortOrder;
|
|
732
|
+
currentVersionId?: Prisma.SortOrder;
|
|
733
|
+
pendingVersionId?: Prisma.SortOrder;
|
|
734
|
+
};
|
|
735
|
+
export type PolicyScalarRelationFilter = {
|
|
736
|
+
is?: Prisma.PolicyWhereInput;
|
|
737
|
+
isNot?: Prisma.PolicyWhereInput;
|
|
738
|
+
};
|
|
739
|
+
export type PolicyNullableScalarRelationFilter = {
|
|
740
|
+
is?: Prisma.PolicyWhereInput | null;
|
|
741
|
+
isNot?: Prisma.PolicyWhereInput | null;
|
|
742
|
+
};
|
|
743
|
+
export type PolicyCreateNestedManyWithoutAssigneeInput = {
|
|
744
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput> | Prisma.PolicyCreateWithoutAssigneeInput[] | Prisma.PolicyUncheckedCreateWithoutAssigneeInput[];
|
|
745
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutAssigneeInput | Prisma.PolicyCreateOrConnectWithoutAssigneeInput[];
|
|
746
|
+
createMany?: Prisma.PolicyCreateManyAssigneeInputEnvelope;
|
|
747
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
748
|
+
};
|
|
749
|
+
export type PolicyCreateNestedManyWithoutApproverInput = {
|
|
750
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput> | Prisma.PolicyCreateWithoutApproverInput[] | Prisma.PolicyUncheckedCreateWithoutApproverInput[];
|
|
751
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutApproverInput | Prisma.PolicyCreateOrConnectWithoutApproverInput[];
|
|
752
|
+
createMany?: Prisma.PolicyCreateManyApproverInputEnvelope;
|
|
753
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
754
|
+
};
|
|
755
|
+
export type PolicyUncheckedCreateNestedManyWithoutAssigneeInput = {
|
|
756
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput> | Prisma.PolicyCreateWithoutAssigneeInput[] | Prisma.PolicyUncheckedCreateWithoutAssigneeInput[];
|
|
757
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutAssigneeInput | Prisma.PolicyCreateOrConnectWithoutAssigneeInput[];
|
|
758
|
+
createMany?: Prisma.PolicyCreateManyAssigneeInputEnvelope;
|
|
759
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
760
|
+
};
|
|
761
|
+
export type PolicyUncheckedCreateNestedManyWithoutApproverInput = {
|
|
762
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput> | Prisma.PolicyCreateWithoutApproverInput[] | Prisma.PolicyUncheckedCreateWithoutApproverInput[];
|
|
763
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutApproverInput | Prisma.PolicyCreateOrConnectWithoutApproverInput[];
|
|
764
|
+
createMany?: Prisma.PolicyCreateManyApproverInputEnvelope;
|
|
765
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
766
|
+
};
|
|
767
|
+
export type PolicyUpdateManyWithoutAssigneeNestedInput = {
|
|
768
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput> | Prisma.PolicyCreateWithoutAssigneeInput[] | Prisma.PolicyUncheckedCreateWithoutAssigneeInput[];
|
|
769
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutAssigneeInput | Prisma.PolicyCreateOrConnectWithoutAssigneeInput[];
|
|
770
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.PolicyUpsertWithWhereUniqueWithoutAssigneeInput[];
|
|
771
|
+
createMany?: Prisma.PolicyCreateManyAssigneeInputEnvelope;
|
|
772
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
773
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
774
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
775
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
776
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.PolicyUpdateWithWhereUniqueWithoutAssigneeInput[];
|
|
777
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutAssigneeInput | Prisma.PolicyUpdateManyWithWhereWithoutAssigneeInput[];
|
|
778
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
779
|
+
};
|
|
780
|
+
export type PolicyUpdateManyWithoutApproverNestedInput = {
|
|
781
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput> | Prisma.PolicyCreateWithoutApproverInput[] | Prisma.PolicyUncheckedCreateWithoutApproverInput[];
|
|
782
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutApproverInput | Prisma.PolicyCreateOrConnectWithoutApproverInput[];
|
|
783
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutApproverInput | Prisma.PolicyUpsertWithWhereUniqueWithoutApproverInput[];
|
|
784
|
+
createMany?: Prisma.PolicyCreateManyApproverInputEnvelope;
|
|
785
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
786
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
787
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
788
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
789
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutApproverInput | Prisma.PolicyUpdateWithWhereUniqueWithoutApproverInput[];
|
|
790
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutApproverInput | Prisma.PolicyUpdateManyWithWhereWithoutApproverInput[];
|
|
791
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
792
|
+
};
|
|
793
|
+
export type PolicyUncheckedUpdateManyWithoutAssigneeNestedInput = {
|
|
794
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput> | Prisma.PolicyCreateWithoutAssigneeInput[] | Prisma.PolicyUncheckedCreateWithoutAssigneeInput[];
|
|
795
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutAssigneeInput | Prisma.PolicyCreateOrConnectWithoutAssigneeInput[];
|
|
796
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.PolicyUpsertWithWhereUniqueWithoutAssigneeInput[];
|
|
797
|
+
createMany?: Prisma.PolicyCreateManyAssigneeInputEnvelope;
|
|
798
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
799
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
800
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
801
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
802
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.PolicyUpdateWithWhereUniqueWithoutAssigneeInput[];
|
|
803
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutAssigneeInput | Prisma.PolicyUpdateManyWithWhereWithoutAssigneeInput[];
|
|
804
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
805
|
+
};
|
|
806
|
+
export type PolicyUncheckedUpdateManyWithoutApproverNestedInput = {
|
|
807
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput> | Prisma.PolicyCreateWithoutApproverInput[] | Prisma.PolicyUncheckedCreateWithoutApproverInput[];
|
|
808
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutApproverInput | Prisma.PolicyCreateOrConnectWithoutApproverInput[];
|
|
809
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutApproverInput | Prisma.PolicyUpsertWithWhereUniqueWithoutApproverInput[];
|
|
810
|
+
createMany?: Prisma.PolicyCreateManyApproverInputEnvelope;
|
|
811
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
812
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
813
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
814
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
815
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutApproverInput | Prisma.PolicyUpdateWithWhereUniqueWithoutApproverInput[];
|
|
816
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutApproverInput | Prisma.PolicyUpdateManyWithWhereWithoutApproverInput[];
|
|
817
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
818
|
+
};
|
|
819
|
+
export type PolicyCreateNestedManyWithoutControlsInput = {
|
|
820
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput> | Prisma.PolicyCreateWithoutControlsInput[] | Prisma.PolicyUncheckedCreateWithoutControlsInput[];
|
|
821
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutControlsInput | Prisma.PolicyCreateOrConnectWithoutControlsInput[];
|
|
822
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
823
|
+
};
|
|
824
|
+
export type PolicyUncheckedCreateNestedManyWithoutControlsInput = {
|
|
825
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput> | Prisma.PolicyCreateWithoutControlsInput[] | Prisma.PolicyUncheckedCreateWithoutControlsInput[];
|
|
826
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutControlsInput | Prisma.PolicyCreateOrConnectWithoutControlsInput[];
|
|
827
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
828
|
+
};
|
|
829
|
+
export type PolicyUpdateManyWithoutControlsNestedInput = {
|
|
830
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput> | Prisma.PolicyCreateWithoutControlsInput[] | Prisma.PolicyUncheckedCreateWithoutControlsInput[];
|
|
831
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutControlsInput | Prisma.PolicyCreateOrConnectWithoutControlsInput[];
|
|
832
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutControlsInput | Prisma.PolicyUpsertWithWhereUniqueWithoutControlsInput[];
|
|
833
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
834
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
835
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
836
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
837
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutControlsInput | Prisma.PolicyUpdateWithWhereUniqueWithoutControlsInput[];
|
|
838
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutControlsInput | Prisma.PolicyUpdateManyWithWhereWithoutControlsInput[];
|
|
839
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
840
|
+
};
|
|
841
|
+
export type PolicyUncheckedUpdateManyWithoutControlsNestedInput = {
|
|
842
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput> | Prisma.PolicyCreateWithoutControlsInput[] | Prisma.PolicyUncheckedCreateWithoutControlsInput[];
|
|
843
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutControlsInput | Prisma.PolicyCreateOrConnectWithoutControlsInput[];
|
|
844
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutControlsInput | Prisma.PolicyUpsertWithWhereUniqueWithoutControlsInput[];
|
|
845
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
846
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
847
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
848
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
849
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutControlsInput | Prisma.PolicyUpdateWithWhereUniqueWithoutControlsInput[];
|
|
850
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutControlsInput | Prisma.PolicyUpdateManyWithWhereWithoutControlsInput[];
|
|
851
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
852
|
+
};
|
|
853
|
+
export type PolicyCreateNestedManyWithoutPolicyTemplateInput = {
|
|
854
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput> | Prisma.PolicyCreateWithoutPolicyTemplateInput[] | Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput[];
|
|
855
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput | Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput[];
|
|
856
|
+
createMany?: Prisma.PolicyCreateManyPolicyTemplateInputEnvelope;
|
|
857
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
858
|
+
};
|
|
859
|
+
export type PolicyUncheckedCreateNestedManyWithoutPolicyTemplateInput = {
|
|
860
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput> | Prisma.PolicyCreateWithoutPolicyTemplateInput[] | Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput[];
|
|
861
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput | Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput[];
|
|
862
|
+
createMany?: Prisma.PolicyCreateManyPolicyTemplateInputEnvelope;
|
|
863
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
864
|
+
};
|
|
865
|
+
export type PolicyUpdateManyWithoutPolicyTemplateNestedInput = {
|
|
866
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput> | Prisma.PolicyCreateWithoutPolicyTemplateInput[] | Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput[];
|
|
867
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput | Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput[];
|
|
868
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutPolicyTemplateInput | Prisma.PolicyUpsertWithWhereUniqueWithoutPolicyTemplateInput[];
|
|
869
|
+
createMany?: Prisma.PolicyCreateManyPolicyTemplateInputEnvelope;
|
|
870
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
871
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
872
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
873
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
874
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutPolicyTemplateInput | Prisma.PolicyUpdateWithWhereUniqueWithoutPolicyTemplateInput[];
|
|
875
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutPolicyTemplateInput | Prisma.PolicyUpdateManyWithWhereWithoutPolicyTemplateInput[];
|
|
876
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
877
|
+
};
|
|
878
|
+
export type PolicyUncheckedUpdateManyWithoutPolicyTemplateNestedInput = {
|
|
879
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput> | Prisma.PolicyCreateWithoutPolicyTemplateInput[] | Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput[];
|
|
880
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput | Prisma.PolicyCreateOrConnectWithoutPolicyTemplateInput[];
|
|
881
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutPolicyTemplateInput | Prisma.PolicyUpsertWithWhereUniqueWithoutPolicyTemplateInput[];
|
|
882
|
+
createMany?: Prisma.PolicyCreateManyPolicyTemplateInputEnvelope;
|
|
883
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
884
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
885
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
886
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
887
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutPolicyTemplateInput | Prisma.PolicyUpdateWithWhereUniqueWithoutPolicyTemplateInput[];
|
|
888
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutPolicyTemplateInput | Prisma.PolicyUpdateManyWithWhereWithoutPolicyTemplateInput[];
|
|
889
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
890
|
+
};
|
|
891
|
+
export type PolicyCreateNestedManyWithoutOrganizationInput = {
|
|
892
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput> | Prisma.PolicyCreateWithoutOrganizationInput[] | Prisma.PolicyUncheckedCreateWithoutOrganizationInput[];
|
|
893
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutOrganizationInput | Prisma.PolicyCreateOrConnectWithoutOrganizationInput[];
|
|
894
|
+
createMany?: Prisma.PolicyCreateManyOrganizationInputEnvelope;
|
|
895
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
896
|
+
};
|
|
897
|
+
export type PolicyUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
898
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput> | Prisma.PolicyCreateWithoutOrganizationInput[] | Prisma.PolicyUncheckedCreateWithoutOrganizationInput[];
|
|
899
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutOrganizationInput | Prisma.PolicyCreateOrConnectWithoutOrganizationInput[];
|
|
900
|
+
createMany?: Prisma.PolicyCreateManyOrganizationInputEnvelope;
|
|
901
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
902
|
+
};
|
|
903
|
+
export type PolicyUpdateManyWithoutOrganizationNestedInput = {
|
|
904
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput> | Prisma.PolicyCreateWithoutOrganizationInput[] | Prisma.PolicyUncheckedCreateWithoutOrganizationInput[];
|
|
905
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutOrganizationInput | Prisma.PolicyCreateOrConnectWithoutOrganizationInput[];
|
|
906
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.PolicyUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
907
|
+
createMany?: Prisma.PolicyCreateManyOrganizationInputEnvelope;
|
|
908
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
909
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
910
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
911
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
912
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.PolicyUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
913
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutOrganizationInput | Prisma.PolicyUpdateManyWithWhereWithoutOrganizationInput[];
|
|
914
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
915
|
+
};
|
|
916
|
+
export type PolicyUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
917
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput> | Prisma.PolicyCreateWithoutOrganizationInput[] | Prisma.PolicyUncheckedCreateWithoutOrganizationInput[];
|
|
918
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutOrganizationInput | Prisma.PolicyCreateOrConnectWithoutOrganizationInput[];
|
|
919
|
+
upsert?: Prisma.PolicyUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.PolicyUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
920
|
+
createMany?: Prisma.PolicyCreateManyOrganizationInputEnvelope;
|
|
921
|
+
set?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
922
|
+
disconnect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
923
|
+
delete?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
924
|
+
connect?: Prisma.PolicyWhereUniqueInput | Prisma.PolicyWhereUniqueInput[];
|
|
925
|
+
update?: Prisma.PolicyUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.PolicyUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
926
|
+
updateMany?: Prisma.PolicyUpdateManyWithWhereWithoutOrganizationInput | Prisma.PolicyUpdateManyWithWhereWithoutOrganizationInput[];
|
|
927
|
+
deleteMany?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
928
|
+
};
|
|
929
|
+
export type PolicyCreatecontentInput = {
|
|
930
|
+
set: runtime.InputJsonValue[];
|
|
931
|
+
};
|
|
932
|
+
export type PolicyCreatedraftContentInput = {
|
|
933
|
+
set: runtime.InputJsonValue[];
|
|
934
|
+
};
|
|
935
|
+
export type PolicyCreatesignedByInput = {
|
|
936
|
+
set: string[];
|
|
937
|
+
};
|
|
938
|
+
export type PolicyCreatevisibleToDepartmentsInput = {
|
|
939
|
+
set: $Enums.Departments[];
|
|
940
|
+
};
|
|
941
|
+
export type EnumPolicyStatusFieldUpdateOperationsInput = {
|
|
942
|
+
set?: $Enums.PolicyStatus;
|
|
943
|
+
};
|
|
944
|
+
export type PolicyUpdatecontentInput = {
|
|
945
|
+
set?: runtime.InputJsonValue[];
|
|
946
|
+
push?: runtime.InputJsonValue | runtime.InputJsonValue[];
|
|
947
|
+
};
|
|
948
|
+
export type PolicyUpdatedraftContentInput = {
|
|
949
|
+
set?: runtime.InputJsonValue[];
|
|
950
|
+
push?: runtime.InputJsonValue | runtime.InputJsonValue[];
|
|
951
|
+
};
|
|
952
|
+
export type NullableEnumFrequencyFieldUpdateOperationsInput = {
|
|
953
|
+
set?: $Enums.Frequency | null;
|
|
954
|
+
};
|
|
955
|
+
export type NullableEnumDepartmentsFieldUpdateOperationsInput = {
|
|
956
|
+
set?: $Enums.Departments | null;
|
|
957
|
+
};
|
|
958
|
+
export type PolicyUpdatesignedByInput = {
|
|
959
|
+
set?: string[];
|
|
960
|
+
push?: string | string[];
|
|
961
|
+
};
|
|
962
|
+
export type EnumPolicyDisplayFormatFieldUpdateOperationsInput = {
|
|
963
|
+
set?: $Enums.PolicyDisplayFormat;
|
|
964
|
+
};
|
|
965
|
+
export type EnumPolicyVisibilityFieldUpdateOperationsInput = {
|
|
966
|
+
set?: $Enums.PolicyVisibility;
|
|
967
|
+
};
|
|
968
|
+
export type PolicyUpdatevisibleToDepartmentsInput = {
|
|
969
|
+
set?: $Enums.Departments[];
|
|
970
|
+
push?: $Enums.Departments | $Enums.Departments[];
|
|
971
|
+
};
|
|
972
|
+
export type PolicyCreateNestedOneWithoutVersionsInput = {
|
|
973
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutVersionsInput, Prisma.PolicyUncheckedCreateWithoutVersionsInput>;
|
|
974
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutVersionsInput;
|
|
975
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
976
|
+
};
|
|
977
|
+
export type PolicyCreateNestedOneWithoutCurrentVersionInput = {
|
|
978
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
979
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutCurrentVersionInput;
|
|
980
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
981
|
+
};
|
|
982
|
+
export type PolicyUncheckedCreateNestedOneWithoutCurrentVersionInput = {
|
|
983
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
984
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutCurrentVersionInput;
|
|
985
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
986
|
+
};
|
|
987
|
+
export type PolicyUpdateOneRequiredWithoutVersionsNestedInput = {
|
|
988
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutVersionsInput, Prisma.PolicyUncheckedCreateWithoutVersionsInput>;
|
|
989
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutVersionsInput;
|
|
990
|
+
upsert?: Prisma.PolicyUpsertWithoutVersionsInput;
|
|
991
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
992
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PolicyUpdateToOneWithWhereWithoutVersionsInput, Prisma.PolicyUpdateWithoutVersionsInput>, Prisma.PolicyUncheckedUpdateWithoutVersionsInput>;
|
|
993
|
+
};
|
|
994
|
+
export type PolicyUpdateOneWithoutCurrentVersionNestedInput = {
|
|
995
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
996
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutCurrentVersionInput;
|
|
997
|
+
upsert?: Prisma.PolicyUpsertWithoutCurrentVersionInput;
|
|
998
|
+
disconnect?: Prisma.PolicyWhereInput | boolean;
|
|
999
|
+
delete?: Prisma.PolicyWhereInput | boolean;
|
|
1000
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
1001
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PolicyUpdateToOneWithWhereWithoutCurrentVersionInput, Prisma.PolicyUpdateWithoutCurrentVersionInput>, Prisma.PolicyUncheckedUpdateWithoutCurrentVersionInput>;
|
|
1002
|
+
};
|
|
1003
|
+
export type PolicyUncheckedUpdateOneWithoutCurrentVersionNestedInput = {
|
|
1004
|
+
create?: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
1005
|
+
connectOrCreate?: Prisma.PolicyCreateOrConnectWithoutCurrentVersionInput;
|
|
1006
|
+
upsert?: Prisma.PolicyUpsertWithoutCurrentVersionInput;
|
|
1007
|
+
disconnect?: Prisma.PolicyWhereInput | boolean;
|
|
1008
|
+
delete?: Prisma.PolicyWhereInput | boolean;
|
|
1009
|
+
connect?: Prisma.PolicyWhereUniqueInput;
|
|
1010
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PolicyUpdateToOneWithWhereWithoutCurrentVersionInput, Prisma.PolicyUpdateWithoutCurrentVersionInput>, Prisma.PolicyUncheckedUpdateWithoutCurrentVersionInput>;
|
|
1011
|
+
};
|
|
1012
|
+
export type PolicyCreateWithoutAssigneeInput = {
|
|
1013
|
+
id?: string;
|
|
1014
|
+
name: string;
|
|
1015
|
+
description?: string | null;
|
|
1016
|
+
status?: $Enums.PolicyStatus;
|
|
1017
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1018
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1019
|
+
frequency?: $Enums.Frequency | null;
|
|
1020
|
+
department?: $Enums.Departments | null;
|
|
1021
|
+
isRequiredToSign?: boolean;
|
|
1022
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1023
|
+
reviewDate?: Date | string | null;
|
|
1024
|
+
isArchived?: boolean;
|
|
1025
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1026
|
+
pdfUrl?: string | null;
|
|
1027
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1028
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1029
|
+
createdAt?: Date | string;
|
|
1030
|
+
updatedAt?: Date | string;
|
|
1031
|
+
lastArchivedAt?: Date | string | null;
|
|
1032
|
+
lastPublishedAt?: Date | string | null;
|
|
1033
|
+
pendingVersionId?: string | null;
|
|
1034
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1035
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1036
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1037
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1038
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1039
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1040
|
+
};
|
|
1041
|
+
export type PolicyUncheckedCreateWithoutAssigneeInput = {
|
|
1042
|
+
id?: string;
|
|
1043
|
+
name: string;
|
|
1044
|
+
description?: string | null;
|
|
1045
|
+
status?: $Enums.PolicyStatus;
|
|
1046
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1047
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1048
|
+
frequency?: $Enums.Frequency | null;
|
|
1049
|
+
department?: $Enums.Departments | null;
|
|
1050
|
+
isRequiredToSign?: boolean;
|
|
1051
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1052
|
+
reviewDate?: Date | string | null;
|
|
1053
|
+
isArchived?: boolean;
|
|
1054
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1055
|
+
pdfUrl?: string | null;
|
|
1056
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1057
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1058
|
+
createdAt?: Date | string;
|
|
1059
|
+
updatedAt?: Date | string;
|
|
1060
|
+
lastArchivedAt?: Date | string | null;
|
|
1061
|
+
lastPublishedAt?: Date | string | null;
|
|
1062
|
+
organizationId: string;
|
|
1063
|
+
approverId?: string | null;
|
|
1064
|
+
policyTemplateId?: string | null;
|
|
1065
|
+
currentVersionId?: string | null;
|
|
1066
|
+
pendingVersionId?: string | null;
|
|
1067
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1068
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1069
|
+
};
|
|
1070
|
+
export type PolicyCreateOrConnectWithoutAssigneeInput = {
|
|
1071
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1072
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput>;
|
|
1073
|
+
};
|
|
1074
|
+
export type PolicyCreateManyAssigneeInputEnvelope = {
|
|
1075
|
+
data: Prisma.PolicyCreateManyAssigneeInput | Prisma.PolicyCreateManyAssigneeInput[];
|
|
1076
|
+
skipDuplicates?: boolean;
|
|
1077
|
+
};
|
|
1078
|
+
export type PolicyCreateWithoutApproverInput = {
|
|
1079
|
+
id?: string;
|
|
1080
|
+
name: string;
|
|
1081
|
+
description?: string | null;
|
|
1082
|
+
status?: $Enums.PolicyStatus;
|
|
1083
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1084
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1085
|
+
frequency?: $Enums.Frequency | null;
|
|
1086
|
+
department?: $Enums.Departments | null;
|
|
1087
|
+
isRequiredToSign?: boolean;
|
|
1088
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1089
|
+
reviewDate?: Date | string | null;
|
|
1090
|
+
isArchived?: boolean;
|
|
1091
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1092
|
+
pdfUrl?: string | null;
|
|
1093
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1094
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1095
|
+
createdAt?: Date | string;
|
|
1096
|
+
updatedAt?: Date | string;
|
|
1097
|
+
lastArchivedAt?: Date | string | null;
|
|
1098
|
+
lastPublishedAt?: Date | string | null;
|
|
1099
|
+
pendingVersionId?: string | null;
|
|
1100
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1101
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1102
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1103
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1104
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1105
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1106
|
+
};
|
|
1107
|
+
export type PolicyUncheckedCreateWithoutApproverInput = {
|
|
1108
|
+
id?: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
description?: string | null;
|
|
1111
|
+
status?: $Enums.PolicyStatus;
|
|
1112
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1113
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1114
|
+
frequency?: $Enums.Frequency | null;
|
|
1115
|
+
department?: $Enums.Departments | null;
|
|
1116
|
+
isRequiredToSign?: boolean;
|
|
1117
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1118
|
+
reviewDate?: Date | string | null;
|
|
1119
|
+
isArchived?: boolean;
|
|
1120
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1121
|
+
pdfUrl?: string | null;
|
|
1122
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1123
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1124
|
+
createdAt?: Date | string;
|
|
1125
|
+
updatedAt?: Date | string;
|
|
1126
|
+
lastArchivedAt?: Date | string | null;
|
|
1127
|
+
lastPublishedAt?: Date | string | null;
|
|
1128
|
+
organizationId: string;
|
|
1129
|
+
assigneeId?: string | null;
|
|
1130
|
+
policyTemplateId?: string | null;
|
|
1131
|
+
currentVersionId?: string | null;
|
|
1132
|
+
pendingVersionId?: string | null;
|
|
1133
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1134
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1135
|
+
};
|
|
1136
|
+
export type PolicyCreateOrConnectWithoutApproverInput = {
|
|
1137
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1138
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput>;
|
|
1139
|
+
};
|
|
1140
|
+
export type PolicyCreateManyApproverInputEnvelope = {
|
|
1141
|
+
data: Prisma.PolicyCreateManyApproverInput | Prisma.PolicyCreateManyApproverInput[];
|
|
1142
|
+
skipDuplicates?: boolean;
|
|
1143
|
+
};
|
|
1144
|
+
export type PolicyUpsertWithWhereUniqueWithoutAssigneeInput = {
|
|
1145
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1146
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutAssigneeInput, Prisma.PolicyUncheckedUpdateWithoutAssigneeInput>;
|
|
1147
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutAssigneeInput, Prisma.PolicyUncheckedCreateWithoutAssigneeInput>;
|
|
1148
|
+
};
|
|
1149
|
+
export type PolicyUpdateWithWhereUniqueWithoutAssigneeInput = {
|
|
1150
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1151
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutAssigneeInput, Prisma.PolicyUncheckedUpdateWithoutAssigneeInput>;
|
|
1152
|
+
};
|
|
1153
|
+
export type PolicyUpdateManyWithWhereWithoutAssigneeInput = {
|
|
1154
|
+
where: Prisma.PolicyScalarWhereInput;
|
|
1155
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyWithoutAssigneeInput>;
|
|
1156
|
+
};
|
|
1157
|
+
export type PolicyScalarWhereInput = {
|
|
1158
|
+
AND?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
1159
|
+
OR?: Prisma.PolicyScalarWhereInput[];
|
|
1160
|
+
NOT?: Prisma.PolicyScalarWhereInput | Prisma.PolicyScalarWhereInput[];
|
|
1161
|
+
id?: Prisma.StringFilter<"Policy"> | string;
|
|
1162
|
+
name?: Prisma.StringFilter<"Policy"> | string;
|
|
1163
|
+
description?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1164
|
+
status?: Prisma.EnumPolicyStatusFilter<"Policy"> | $Enums.PolicyStatus;
|
|
1165
|
+
content?: Prisma.JsonNullableListFilter<"Policy">;
|
|
1166
|
+
draftContent?: Prisma.JsonNullableListFilter<"Policy">;
|
|
1167
|
+
frequency?: Prisma.EnumFrequencyNullableFilter<"Policy"> | $Enums.Frequency | null;
|
|
1168
|
+
department?: Prisma.EnumDepartmentsNullableFilter<"Policy"> | $Enums.Departments | null;
|
|
1169
|
+
isRequiredToSign?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
1170
|
+
signedBy?: Prisma.StringNullableListFilter<"Policy">;
|
|
1171
|
+
reviewDate?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
1172
|
+
isArchived?: Prisma.BoolFilter<"Policy"> | boolean;
|
|
1173
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFilter<"Policy"> | $Enums.PolicyDisplayFormat;
|
|
1174
|
+
pdfUrl?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1175
|
+
visibility?: Prisma.EnumPolicyVisibilityFilter<"Policy"> | $Enums.PolicyVisibility;
|
|
1176
|
+
visibleToDepartments?: Prisma.EnumDepartmentsNullableListFilter<"Policy">;
|
|
1177
|
+
createdAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
1178
|
+
updatedAt?: Prisma.DateTimeFilter<"Policy"> | Date | string;
|
|
1179
|
+
lastArchivedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
1180
|
+
lastPublishedAt?: Prisma.DateTimeNullableFilter<"Policy"> | Date | string | null;
|
|
1181
|
+
organizationId?: Prisma.StringFilter<"Policy"> | string;
|
|
1182
|
+
assigneeId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1183
|
+
approverId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1184
|
+
policyTemplateId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1185
|
+
currentVersionId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1186
|
+
pendingVersionId?: Prisma.StringNullableFilter<"Policy"> | string | null;
|
|
1187
|
+
};
|
|
1188
|
+
export type PolicyUpsertWithWhereUniqueWithoutApproverInput = {
|
|
1189
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1190
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutApproverInput, Prisma.PolicyUncheckedUpdateWithoutApproverInput>;
|
|
1191
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutApproverInput, Prisma.PolicyUncheckedCreateWithoutApproverInput>;
|
|
1192
|
+
};
|
|
1193
|
+
export type PolicyUpdateWithWhereUniqueWithoutApproverInput = {
|
|
1194
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1195
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutApproverInput, Prisma.PolicyUncheckedUpdateWithoutApproverInput>;
|
|
1196
|
+
};
|
|
1197
|
+
export type PolicyUpdateManyWithWhereWithoutApproverInput = {
|
|
1198
|
+
where: Prisma.PolicyScalarWhereInput;
|
|
1199
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyWithoutApproverInput>;
|
|
1200
|
+
};
|
|
1201
|
+
export type PolicyCreateWithoutControlsInput = {
|
|
1202
|
+
id?: string;
|
|
1203
|
+
name: string;
|
|
1204
|
+
description?: string | null;
|
|
1205
|
+
status?: $Enums.PolicyStatus;
|
|
1206
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1207
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1208
|
+
frequency?: $Enums.Frequency | null;
|
|
1209
|
+
department?: $Enums.Departments | null;
|
|
1210
|
+
isRequiredToSign?: boolean;
|
|
1211
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1212
|
+
reviewDate?: Date | string | null;
|
|
1213
|
+
isArchived?: boolean;
|
|
1214
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1215
|
+
pdfUrl?: string | null;
|
|
1216
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1217
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1218
|
+
createdAt?: Date | string;
|
|
1219
|
+
updatedAt?: Date | string;
|
|
1220
|
+
lastArchivedAt?: Date | string | null;
|
|
1221
|
+
lastPublishedAt?: Date | string | null;
|
|
1222
|
+
pendingVersionId?: string | null;
|
|
1223
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1224
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1225
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1226
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1227
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1228
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1229
|
+
};
|
|
1230
|
+
export type PolicyUncheckedCreateWithoutControlsInput = {
|
|
1231
|
+
id?: string;
|
|
1232
|
+
name: string;
|
|
1233
|
+
description?: string | null;
|
|
1234
|
+
status?: $Enums.PolicyStatus;
|
|
1235
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1236
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1237
|
+
frequency?: $Enums.Frequency | null;
|
|
1238
|
+
department?: $Enums.Departments | null;
|
|
1239
|
+
isRequiredToSign?: boolean;
|
|
1240
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1241
|
+
reviewDate?: Date | string | null;
|
|
1242
|
+
isArchived?: boolean;
|
|
1243
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1244
|
+
pdfUrl?: string | null;
|
|
1245
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1246
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1247
|
+
createdAt?: Date | string;
|
|
1248
|
+
updatedAt?: Date | string;
|
|
1249
|
+
lastArchivedAt?: Date | string | null;
|
|
1250
|
+
lastPublishedAt?: Date | string | null;
|
|
1251
|
+
organizationId: string;
|
|
1252
|
+
assigneeId?: string | null;
|
|
1253
|
+
approverId?: string | null;
|
|
1254
|
+
policyTemplateId?: string | null;
|
|
1255
|
+
currentVersionId?: string | null;
|
|
1256
|
+
pendingVersionId?: string | null;
|
|
1257
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1258
|
+
};
|
|
1259
|
+
export type PolicyCreateOrConnectWithoutControlsInput = {
|
|
1260
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1261
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput>;
|
|
1262
|
+
};
|
|
1263
|
+
export type PolicyUpsertWithWhereUniqueWithoutControlsInput = {
|
|
1264
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1265
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutControlsInput, Prisma.PolicyUncheckedUpdateWithoutControlsInput>;
|
|
1266
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutControlsInput, Prisma.PolicyUncheckedCreateWithoutControlsInput>;
|
|
1267
|
+
};
|
|
1268
|
+
export type PolicyUpdateWithWhereUniqueWithoutControlsInput = {
|
|
1269
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1270
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutControlsInput, Prisma.PolicyUncheckedUpdateWithoutControlsInput>;
|
|
1271
|
+
};
|
|
1272
|
+
export type PolicyUpdateManyWithWhereWithoutControlsInput = {
|
|
1273
|
+
where: Prisma.PolicyScalarWhereInput;
|
|
1274
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyWithoutControlsInput>;
|
|
1275
|
+
};
|
|
1276
|
+
export type PolicyCreateWithoutPolicyTemplateInput = {
|
|
1277
|
+
id?: string;
|
|
1278
|
+
name: string;
|
|
1279
|
+
description?: string | null;
|
|
1280
|
+
status?: $Enums.PolicyStatus;
|
|
1281
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1282
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1283
|
+
frequency?: $Enums.Frequency | null;
|
|
1284
|
+
department?: $Enums.Departments | null;
|
|
1285
|
+
isRequiredToSign?: boolean;
|
|
1286
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1287
|
+
reviewDate?: Date | string | null;
|
|
1288
|
+
isArchived?: boolean;
|
|
1289
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1290
|
+
pdfUrl?: string | null;
|
|
1291
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1292
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1293
|
+
createdAt?: Date | string;
|
|
1294
|
+
updatedAt?: Date | string;
|
|
1295
|
+
lastArchivedAt?: Date | string | null;
|
|
1296
|
+
lastPublishedAt?: Date | string | null;
|
|
1297
|
+
pendingVersionId?: string | null;
|
|
1298
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1299
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1300
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1301
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1302
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1303
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1304
|
+
};
|
|
1305
|
+
export type PolicyUncheckedCreateWithoutPolicyTemplateInput = {
|
|
1306
|
+
id?: string;
|
|
1307
|
+
name: string;
|
|
1308
|
+
description?: string | null;
|
|
1309
|
+
status?: $Enums.PolicyStatus;
|
|
1310
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1311
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1312
|
+
frequency?: $Enums.Frequency | null;
|
|
1313
|
+
department?: $Enums.Departments | null;
|
|
1314
|
+
isRequiredToSign?: boolean;
|
|
1315
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1316
|
+
reviewDate?: Date | string | null;
|
|
1317
|
+
isArchived?: boolean;
|
|
1318
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1319
|
+
pdfUrl?: string | null;
|
|
1320
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1321
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1322
|
+
createdAt?: Date | string;
|
|
1323
|
+
updatedAt?: Date | string;
|
|
1324
|
+
lastArchivedAt?: Date | string | null;
|
|
1325
|
+
lastPublishedAt?: Date | string | null;
|
|
1326
|
+
organizationId: string;
|
|
1327
|
+
assigneeId?: string | null;
|
|
1328
|
+
approverId?: string | null;
|
|
1329
|
+
currentVersionId?: string | null;
|
|
1330
|
+
pendingVersionId?: string | null;
|
|
1331
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1332
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1333
|
+
};
|
|
1334
|
+
export type PolicyCreateOrConnectWithoutPolicyTemplateInput = {
|
|
1335
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1336
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput>;
|
|
1337
|
+
};
|
|
1338
|
+
export type PolicyCreateManyPolicyTemplateInputEnvelope = {
|
|
1339
|
+
data: Prisma.PolicyCreateManyPolicyTemplateInput | Prisma.PolicyCreateManyPolicyTemplateInput[];
|
|
1340
|
+
skipDuplicates?: boolean;
|
|
1341
|
+
};
|
|
1342
|
+
export type PolicyUpsertWithWhereUniqueWithoutPolicyTemplateInput = {
|
|
1343
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1344
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedUpdateWithoutPolicyTemplateInput>;
|
|
1345
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedCreateWithoutPolicyTemplateInput>;
|
|
1346
|
+
};
|
|
1347
|
+
export type PolicyUpdateWithWhereUniqueWithoutPolicyTemplateInput = {
|
|
1348
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1349
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutPolicyTemplateInput, Prisma.PolicyUncheckedUpdateWithoutPolicyTemplateInput>;
|
|
1350
|
+
};
|
|
1351
|
+
export type PolicyUpdateManyWithWhereWithoutPolicyTemplateInput = {
|
|
1352
|
+
where: Prisma.PolicyScalarWhereInput;
|
|
1353
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyWithoutPolicyTemplateInput>;
|
|
1354
|
+
};
|
|
1355
|
+
export type PolicyCreateWithoutOrganizationInput = {
|
|
1356
|
+
id?: string;
|
|
1357
|
+
name: string;
|
|
1358
|
+
description?: string | null;
|
|
1359
|
+
status?: $Enums.PolicyStatus;
|
|
1360
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1361
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1362
|
+
frequency?: $Enums.Frequency | null;
|
|
1363
|
+
department?: $Enums.Departments | null;
|
|
1364
|
+
isRequiredToSign?: boolean;
|
|
1365
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1366
|
+
reviewDate?: Date | string | null;
|
|
1367
|
+
isArchived?: boolean;
|
|
1368
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1369
|
+
pdfUrl?: string | null;
|
|
1370
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1371
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1372
|
+
createdAt?: Date | string;
|
|
1373
|
+
updatedAt?: Date | string;
|
|
1374
|
+
lastArchivedAt?: Date | string | null;
|
|
1375
|
+
lastPublishedAt?: Date | string | null;
|
|
1376
|
+
pendingVersionId?: string | null;
|
|
1377
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1378
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1379
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1380
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1381
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1382
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1383
|
+
};
|
|
1384
|
+
export type PolicyUncheckedCreateWithoutOrganizationInput = {
|
|
1385
|
+
id?: string;
|
|
1386
|
+
name: string;
|
|
1387
|
+
description?: string | null;
|
|
1388
|
+
status?: $Enums.PolicyStatus;
|
|
1389
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1390
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1391
|
+
frequency?: $Enums.Frequency | null;
|
|
1392
|
+
department?: $Enums.Departments | null;
|
|
1393
|
+
isRequiredToSign?: boolean;
|
|
1394
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1395
|
+
reviewDate?: Date | string | null;
|
|
1396
|
+
isArchived?: boolean;
|
|
1397
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1398
|
+
pdfUrl?: string | null;
|
|
1399
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1400
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1401
|
+
createdAt?: Date | string;
|
|
1402
|
+
updatedAt?: Date | string;
|
|
1403
|
+
lastArchivedAt?: Date | string | null;
|
|
1404
|
+
lastPublishedAt?: Date | string | null;
|
|
1405
|
+
assigneeId?: string | null;
|
|
1406
|
+
approverId?: string | null;
|
|
1407
|
+
policyTemplateId?: string | null;
|
|
1408
|
+
currentVersionId?: string | null;
|
|
1409
|
+
pendingVersionId?: string | null;
|
|
1410
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1411
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1412
|
+
};
|
|
1413
|
+
export type PolicyCreateOrConnectWithoutOrganizationInput = {
|
|
1414
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1415
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput>;
|
|
1416
|
+
};
|
|
1417
|
+
export type PolicyCreateManyOrganizationInputEnvelope = {
|
|
1418
|
+
data: Prisma.PolicyCreateManyOrganizationInput | Prisma.PolicyCreateManyOrganizationInput[];
|
|
1419
|
+
skipDuplicates?: boolean;
|
|
1420
|
+
};
|
|
1421
|
+
export type PolicyUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
1422
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1423
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutOrganizationInput, Prisma.PolicyUncheckedUpdateWithoutOrganizationInput>;
|
|
1424
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutOrganizationInput, Prisma.PolicyUncheckedCreateWithoutOrganizationInput>;
|
|
1425
|
+
};
|
|
1426
|
+
export type PolicyUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
1427
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1428
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutOrganizationInput, Prisma.PolicyUncheckedUpdateWithoutOrganizationInput>;
|
|
1429
|
+
};
|
|
1430
|
+
export type PolicyUpdateManyWithWhereWithoutOrganizationInput = {
|
|
1431
|
+
where: Prisma.PolicyScalarWhereInput;
|
|
1432
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyWithoutOrganizationInput>;
|
|
1433
|
+
};
|
|
1434
|
+
export type PolicyCreateWithoutVersionsInput = {
|
|
1435
|
+
id?: string;
|
|
1436
|
+
name: string;
|
|
1437
|
+
description?: string | null;
|
|
1438
|
+
status?: $Enums.PolicyStatus;
|
|
1439
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1440
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1441
|
+
frequency?: $Enums.Frequency | null;
|
|
1442
|
+
department?: $Enums.Departments | null;
|
|
1443
|
+
isRequiredToSign?: boolean;
|
|
1444
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1445
|
+
reviewDate?: Date | string | null;
|
|
1446
|
+
isArchived?: boolean;
|
|
1447
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1448
|
+
pdfUrl?: string | null;
|
|
1449
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1450
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1451
|
+
createdAt?: Date | string;
|
|
1452
|
+
updatedAt?: Date | string;
|
|
1453
|
+
lastArchivedAt?: Date | string | null;
|
|
1454
|
+
lastPublishedAt?: Date | string | null;
|
|
1455
|
+
pendingVersionId?: string | null;
|
|
1456
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1457
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1458
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1459
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1460
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1461
|
+
currentVersion?: Prisma.PolicyVersionCreateNestedOneWithoutCurrentForPolicyInput;
|
|
1462
|
+
};
|
|
1463
|
+
export type PolicyUncheckedCreateWithoutVersionsInput = {
|
|
1464
|
+
id?: string;
|
|
1465
|
+
name: string;
|
|
1466
|
+
description?: string | null;
|
|
1467
|
+
status?: $Enums.PolicyStatus;
|
|
1468
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1469
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1470
|
+
frequency?: $Enums.Frequency | null;
|
|
1471
|
+
department?: $Enums.Departments | null;
|
|
1472
|
+
isRequiredToSign?: boolean;
|
|
1473
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1474
|
+
reviewDate?: Date | string | null;
|
|
1475
|
+
isArchived?: boolean;
|
|
1476
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1477
|
+
pdfUrl?: string | null;
|
|
1478
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1479
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1480
|
+
createdAt?: Date | string;
|
|
1481
|
+
updatedAt?: Date | string;
|
|
1482
|
+
lastArchivedAt?: Date | string | null;
|
|
1483
|
+
lastPublishedAt?: Date | string | null;
|
|
1484
|
+
organizationId: string;
|
|
1485
|
+
assigneeId?: string | null;
|
|
1486
|
+
approverId?: string | null;
|
|
1487
|
+
policyTemplateId?: string | null;
|
|
1488
|
+
currentVersionId?: string | null;
|
|
1489
|
+
pendingVersionId?: string | null;
|
|
1490
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1491
|
+
};
|
|
1492
|
+
export type PolicyCreateOrConnectWithoutVersionsInput = {
|
|
1493
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1494
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutVersionsInput, Prisma.PolicyUncheckedCreateWithoutVersionsInput>;
|
|
1495
|
+
};
|
|
1496
|
+
export type PolicyCreateWithoutCurrentVersionInput = {
|
|
1497
|
+
id?: string;
|
|
1498
|
+
name: string;
|
|
1499
|
+
description?: string | null;
|
|
1500
|
+
status?: $Enums.PolicyStatus;
|
|
1501
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1502
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1503
|
+
frequency?: $Enums.Frequency | null;
|
|
1504
|
+
department?: $Enums.Departments | null;
|
|
1505
|
+
isRequiredToSign?: boolean;
|
|
1506
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1507
|
+
reviewDate?: Date | string | null;
|
|
1508
|
+
isArchived?: boolean;
|
|
1509
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1510
|
+
pdfUrl?: string | null;
|
|
1511
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1512
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1513
|
+
createdAt?: Date | string;
|
|
1514
|
+
updatedAt?: Date | string;
|
|
1515
|
+
lastArchivedAt?: Date | string | null;
|
|
1516
|
+
lastPublishedAt?: Date | string | null;
|
|
1517
|
+
pendingVersionId?: string | null;
|
|
1518
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutPolicyInput;
|
|
1519
|
+
assignee?: Prisma.MemberCreateNestedOneWithoutAssignedPoliciesInput;
|
|
1520
|
+
approver?: Prisma.MemberCreateNestedOneWithoutApprovedPoliciesInput;
|
|
1521
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateCreateNestedOneWithoutPoliciesInput;
|
|
1522
|
+
controls?: Prisma.ControlCreateNestedManyWithoutPoliciesInput;
|
|
1523
|
+
versions?: Prisma.PolicyVersionCreateNestedManyWithoutPolicyInput;
|
|
1524
|
+
};
|
|
1525
|
+
export type PolicyUncheckedCreateWithoutCurrentVersionInput = {
|
|
1526
|
+
id?: string;
|
|
1527
|
+
name: string;
|
|
1528
|
+
description?: string | null;
|
|
1529
|
+
status?: $Enums.PolicyStatus;
|
|
1530
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1531
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1532
|
+
frequency?: $Enums.Frequency | null;
|
|
1533
|
+
department?: $Enums.Departments | null;
|
|
1534
|
+
isRequiredToSign?: boolean;
|
|
1535
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1536
|
+
reviewDate?: Date | string | null;
|
|
1537
|
+
isArchived?: boolean;
|
|
1538
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1539
|
+
pdfUrl?: string | null;
|
|
1540
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1541
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1542
|
+
createdAt?: Date | string;
|
|
1543
|
+
updatedAt?: Date | string;
|
|
1544
|
+
lastArchivedAt?: Date | string | null;
|
|
1545
|
+
lastPublishedAt?: Date | string | null;
|
|
1546
|
+
organizationId: string;
|
|
1547
|
+
assigneeId?: string | null;
|
|
1548
|
+
approverId?: string | null;
|
|
1549
|
+
policyTemplateId?: string | null;
|
|
1550
|
+
pendingVersionId?: string | null;
|
|
1551
|
+
controls?: Prisma.ControlUncheckedCreateNestedManyWithoutPoliciesInput;
|
|
1552
|
+
versions?: Prisma.PolicyVersionUncheckedCreateNestedManyWithoutPolicyInput;
|
|
1553
|
+
};
|
|
1554
|
+
export type PolicyCreateOrConnectWithoutCurrentVersionInput = {
|
|
1555
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
1556
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
1557
|
+
};
|
|
1558
|
+
export type PolicyUpsertWithoutVersionsInput = {
|
|
1559
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutVersionsInput, Prisma.PolicyUncheckedUpdateWithoutVersionsInput>;
|
|
1560
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutVersionsInput, Prisma.PolicyUncheckedCreateWithoutVersionsInput>;
|
|
1561
|
+
where?: Prisma.PolicyWhereInput;
|
|
1562
|
+
};
|
|
1563
|
+
export type PolicyUpdateToOneWithWhereWithoutVersionsInput = {
|
|
1564
|
+
where?: Prisma.PolicyWhereInput;
|
|
1565
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutVersionsInput, Prisma.PolicyUncheckedUpdateWithoutVersionsInput>;
|
|
1566
|
+
};
|
|
1567
|
+
export type PolicyUpdateWithoutVersionsInput = {
|
|
1568
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1569
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1570
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1571
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1572
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1573
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1574
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1575
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1576
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1577
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1578
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1579
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1580
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1581
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1582
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1583
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1584
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1585
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1586
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1587
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1588
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1589
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
1590
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
1591
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
1592
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
1593
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
1594
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
1595
|
+
};
|
|
1596
|
+
export type PolicyUncheckedUpdateWithoutVersionsInput = {
|
|
1597
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1598
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1599
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1600
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1601
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1602
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1603
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1604
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1605
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1606
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1607
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1608
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1609
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1610
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1611
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1612
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1613
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1614
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1615
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1616
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1617
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1618
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1619
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1620
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1621
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1622
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1623
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
1624
|
+
};
|
|
1625
|
+
export type PolicyUpsertWithoutCurrentVersionInput = {
|
|
1626
|
+
update: Prisma.XOR<Prisma.PolicyUpdateWithoutCurrentVersionInput, Prisma.PolicyUncheckedUpdateWithoutCurrentVersionInput>;
|
|
1627
|
+
create: Prisma.XOR<Prisma.PolicyCreateWithoutCurrentVersionInput, Prisma.PolicyUncheckedCreateWithoutCurrentVersionInput>;
|
|
1628
|
+
where?: Prisma.PolicyWhereInput;
|
|
1629
|
+
};
|
|
1630
|
+
export type PolicyUpdateToOneWithWhereWithoutCurrentVersionInput = {
|
|
1631
|
+
where?: Prisma.PolicyWhereInput;
|
|
1632
|
+
data: Prisma.XOR<Prisma.PolicyUpdateWithoutCurrentVersionInput, Prisma.PolicyUncheckedUpdateWithoutCurrentVersionInput>;
|
|
1633
|
+
};
|
|
1634
|
+
export type PolicyUpdateWithoutCurrentVersionInput = {
|
|
1635
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1636
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1637
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1638
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1639
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1640
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1641
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1642
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1643
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1644
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1645
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1646
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1647
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1648
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1649
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1650
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1651
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1652
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1653
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1654
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1655
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1656
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
1657
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
1658
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
1659
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
1660
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
1661
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
1662
|
+
};
|
|
1663
|
+
export type PolicyUncheckedUpdateWithoutCurrentVersionInput = {
|
|
1664
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1665
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1666
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1667
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1668
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1669
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1670
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1671
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1672
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1673
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1674
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1675
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1676
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1677
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1678
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1679
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1680
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1681
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1682
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1683
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1684
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1685
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1686
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1687
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1688
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1689
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
1690
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
1691
|
+
};
|
|
1692
|
+
export type PolicyCreateManyAssigneeInput = {
|
|
1693
|
+
id?: string;
|
|
1694
|
+
name: string;
|
|
1695
|
+
description?: string | null;
|
|
1696
|
+
status?: $Enums.PolicyStatus;
|
|
1697
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1698
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1699
|
+
frequency?: $Enums.Frequency | null;
|
|
1700
|
+
department?: $Enums.Departments | null;
|
|
1701
|
+
isRequiredToSign?: boolean;
|
|
1702
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1703
|
+
reviewDate?: Date | string | null;
|
|
1704
|
+
isArchived?: boolean;
|
|
1705
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1706
|
+
pdfUrl?: string | null;
|
|
1707
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1708
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1709
|
+
createdAt?: Date | string;
|
|
1710
|
+
updatedAt?: Date | string;
|
|
1711
|
+
lastArchivedAt?: Date | string | null;
|
|
1712
|
+
lastPublishedAt?: Date | string | null;
|
|
1713
|
+
organizationId: string;
|
|
1714
|
+
approverId?: string | null;
|
|
1715
|
+
policyTemplateId?: string | null;
|
|
1716
|
+
currentVersionId?: string | null;
|
|
1717
|
+
pendingVersionId?: string | null;
|
|
1718
|
+
};
|
|
1719
|
+
export type PolicyCreateManyApproverInput = {
|
|
1720
|
+
id?: string;
|
|
1721
|
+
name: string;
|
|
1722
|
+
description?: string | null;
|
|
1723
|
+
status?: $Enums.PolicyStatus;
|
|
1724
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
1725
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
1726
|
+
frequency?: $Enums.Frequency | null;
|
|
1727
|
+
department?: $Enums.Departments | null;
|
|
1728
|
+
isRequiredToSign?: boolean;
|
|
1729
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
1730
|
+
reviewDate?: Date | string | null;
|
|
1731
|
+
isArchived?: boolean;
|
|
1732
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
1733
|
+
pdfUrl?: string | null;
|
|
1734
|
+
visibility?: $Enums.PolicyVisibility;
|
|
1735
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1736
|
+
createdAt?: Date | string;
|
|
1737
|
+
updatedAt?: Date | string;
|
|
1738
|
+
lastArchivedAt?: Date | string | null;
|
|
1739
|
+
lastPublishedAt?: Date | string | null;
|
|
1740
|
+
organizationId: string;
|
|
1741
|
+
assigneeId?: string | null;
|
|
1742
|
+
policyTemplateId?: string | null;
|
|
1743
|
+
currentVersionId?: string | null;
|
|
1744
|
+
pendingVersionId?: string | null;
|
|
1745
|
+
};
|
|
1746
|
+
export type PolicyUpdateWithoutAssigneeInput = {
|
|
1747
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1748
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1749
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1750
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1751
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1752
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1753
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1754
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1755
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1756
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1757
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1758
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1759
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1760
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1761
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1762
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1763
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1764
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1765
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1766
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1767
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1768
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
1769
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
1770
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
1771
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
1772
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
1773
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
1774
|
+
};
|
|
1775
|
+
export type PolicyUncheckedUpdateWithoutAssigneeInput = {
|
|
1776
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1777
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1778
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1779
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1780
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1781
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1782
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1783
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1784
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1785
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1786
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1787
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1788
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1789
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1790
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1791
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1792
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1793
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1794
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1795
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1796
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1797
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1798
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1799
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1800
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1801
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
1802
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
1803
|
+
};
|
|
1804
|
+
export type PolicyUncheckedUpdateManyWithoutAssigneeInput = {
|
|
1805
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1806
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1807
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1808
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1809
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1810
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1811
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1812
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1813
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1814
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1815
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1816
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1817
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1818
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1819
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1820
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1821
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1822
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1823
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1824
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1825
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1826
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1827
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1828
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1829
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1830
|
+
};
|
|
1831
|
+
export type PolicyUpdateWithoutApproverInput = {
|
|
1832
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1833
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1834
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1835
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1836
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1837
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1838
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1839
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1840
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1841
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1842
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1843
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1844
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1845
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1846
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1847
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1848
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1849
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1850
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1851
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1852
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1853
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
1854
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
1855
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
1856
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
1857
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
1858
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
1859
|
+
};
|
|
1860
|
+
export type PolicyUncheckedUpdateWithoutApproverInput = {
|
|
1861
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1862
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1863
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1864
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1865
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1866
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1867
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1868
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1869
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1870
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1871
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1872
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1873
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1874
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1875
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1876
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1877
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1878
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1879
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1880
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1881
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1882
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1883
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1884
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1885
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1886
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
1887
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
1888
|
+
};
|
|
1889
|
+
export type PolicyUncheckedUpdateManyWithoutApproverInput = {
|
|
1890
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1891
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1892
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1893
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1894
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1895
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1896
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1897
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1898
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1899
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1900
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1901
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1902
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1903
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1904
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1905
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1906
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1907
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1908
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1909
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1910
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1911
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1912
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1913
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1914
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1915
|
+
};
|
|
1916
|
+
export type PolicyUpdateWithoutControlsInput = {
|
|
1917
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1918
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1919
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1920
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1921
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1922
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1923
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1924
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1925
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1926
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1927
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1928
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1929
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1930
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1931
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1932
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1933
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1934
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1935
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1936
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1937
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1938
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
1939
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
1940
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
1941
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
1942
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
1943
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
1944
|
+
};
|
|
1945
|
+
export type PolicyUncheckedUpdateWithoutControlsInput = {
|
|
1946
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1947
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1948
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1949
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1950
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1951
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1952
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1953
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1954
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1955
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1956
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1957
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1958
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1959
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1960
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1961
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1962
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1963
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1964
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1965
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1966
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1967
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1968
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1969
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1970
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1971
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1972
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
1973
|
+
};
|
|
1974
|
+
export type PolicyUncheckedUpdateManyWithoutControlsInput = {
|
|
1975
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1976
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1977
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1978
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
1979
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
1980
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
1981
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
1982
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
1983
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1984
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
1985
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1986
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1987
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
1988
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1989
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
1990
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
1991
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1992
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1993
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1994
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1995
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1996
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1997
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1998
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1999
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2000
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2001
|
+
};
|
|
2002
|
+
export type PolicyCreateManyPolicyTemplateInput = {
|
|
2003
|
+
id?: string;
|
|
2004
|
+
name: string;
|
|
2005
|
+
description?: string | null;
|
|
2006
|
+
status?: $Enums.PolicyStatus;
|
|
2007
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
2008
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
2009
|
+
frequency?: $Enums.Frequency | null;
|
|
2010
|
+
department?: $Enums.Departments | null;
|
|
2011
|
+
isRequiredToSign?: boolean;
|
|
2012
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
2013
|
+
reviewDate?: Date | string | null;
|
|
2014
|
+
isArchived?: boolean;
|
|
2015
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
2016
|
+
pdfUrl?: string | null;
|
|
2017
|
+
visibility?: $Enums.PolicyVisibility;
|
|
2018
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2019
|
+
createdAt?: Date | string;
|
|
2020
|
+
updatedAt?: Date | string;
|
|
2021
|
+
lastArchivedAt?: Date | string | null;
|
|
2022
|
+
lastPublishedAt?: Date | string | null;
|
|
2023
|
+
organizationId: string;
|
|
2024
|
+
assigneeId?: string | null;
|
|
2025
|
+
approverId?: string | null;
|
|
2026
|
+
currentVersionId?: string | null;
|
|
2027
|
+
pendingVersionId?: string | null;
|
|
2028
|
+
};
|
|
2029
|
+
export type PolicyUpdateWithoutPolicyTemplateInput = {
|
|
2030
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2031
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2032
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2033
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2034
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2035
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2036
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2037
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2038
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2039
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2040
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2041
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2042
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2043
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2044
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2045
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2046
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2047
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2048
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2049
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2050
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2051
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutPolicyNestedInput;
|
|
2052
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
2053
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
2054
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
2055
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
2056
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
2057
|
+
};
|
|
2058
|
+
export type PolicyUncheckedUpdateWithoutPolicyTemplateInput = {
|
|
2059
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2060
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2061
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2062
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2063
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2064
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2065
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2066
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2067
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2068
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2069
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2070
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2071
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2072
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2073
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2074
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2075
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2076
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2077
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2078
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2079
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2080
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2081
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2082
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2083
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2084
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
2085
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
2086
|
+
};
|
|
2087
|
+
export type PolicyUncheckedUpdateManyWithoutPolicyTemplateInput = {
|
|
2088
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2089
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2090
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2091
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2092
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2093
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2094
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2095
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2096
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2097
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2098
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2099
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2100
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2101
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2102
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2103
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2104
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2105
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2106
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2107
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2108
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2109
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2110
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2111
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2112
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2113
|
+
};
|
|
2114
|
+
export type PolicyCreateManyOrganizationInput = {
|
|
2115
|
+
id?: string;
|
|
2116
|
+
name: string;
|
|
2117
|
+
description?: string | null;
|
|
2118
|
+
status?: $Enums.PolicyStatus;
|
|
2119
|
+
content?: Prisma.PolicyCreatecontentInput | runtime.InputJsonValue[];
|
|
2120
|
+
draftContent?: Prisma.PolicyCreatedraftContentInput | runtime.InputJsonValue[];
|
|
2121
|
+
frequency?: $Enums.Frequency | null;
|
|
2122
|
+
department?: $Enums.Departments | null;
|
|
2123
|
+
isRequiredToSign?: boolean;
|
|
2124
|
+
signedBy?: Prisma.PolicyCreatesignedByInput | string[];
|
|
2125
|
+
reviewDate?: Date | string | null;
|
|
2126
|
+
isArchived?: boolean;
|
|
2127
|
+
displayFormat?: $Enums.PolicyDisplayFormat;
|
|
2128
|
+
pdfUrl?: string | null;
|
|
2129
|
+
visibility?: $Enums.PolicyVisibility;
|
|
2130
|
+
visibleToDepartments?: Prisma.PolicyCreatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2131
|
+
createdAt?: Date | string;
|
|
2132
|
+
updatedAt?: Date | string;
|
|
2133
|
+
lastArchivedAt?: Date | string | null;
|
|
2134
|
+
lastPublishedAt?: Date | string | null;
|
|
2135
|
+
assigneeId?: string | null;
|
|
2136
|
+
approverId?: string | null;
|
|
2137
|
+
policyTemplateId?: string | null;
|
|
2138
|
+
currentVersionId?: string | null;
|
|
2139
|
+
pendingVersionId?: string | null;
|
|
2140
|
+
};
|
|
2141
|
+
export type PolicyUpdateWithoutOrganizationInput = {
|
|
2142
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2143
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2144
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2145
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2146
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2147
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2148
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2149
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2150
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2151
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2152
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2153
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2154
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2155
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2156
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2157
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2158
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2159
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2160
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2161
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2162
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2163
|
+
assignee?: Prisma.MemberUpdateOneWithoutAssignedPoliciesNestedInput;
|
|
2164
|
+
approver?: Prisma.MemberUpdateOneWithoutApprovedPoliciesNestedInput;
|
|
2165
|
+
policyTemplate?: Prisma.FrameworkEditorPolicyTemplateUpdateOneWithoutPoliciesNestedInput;
|
|
2166
|
+
controls?: Prisma.ControlUpdateManyWithoutPoliciesNestedInput;
|
|
2167
|
+
currentVersion?: Prisma.PolicyVersionUpdateOneWithoutCurrentForPolicyNestedInput;
|
|
2168
|
+
versions?: Prisma.PolicyVersionUpdateManyWithoutPolicyNestedInput;
|
|
2169
|
+
};
|
|
2170
|
+
export type PolicyUncheckedUpdateWithoutOrganizationInput = {
|
|
2171
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2172
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2173
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2174
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2175
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2176
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2177
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2178
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2179
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2180
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2181
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2182
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2183
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2184
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2185
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2186
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2187
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2188
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2189
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2190
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2191
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2192
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2193
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2194
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2195
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2196
|
+
controls?: Prisma.ControlUncheckedUpdateManyWithoutPoliciesNestedInput;
|
|
2197
|
+
versions?: Prisma.PolicyVersionUncheckedUpdateManyWithoutPolicyNestedInput;
|
|
2198
|
+
};
|
|
2199
|
+
export type PolicyUncheckedUpdateManyWithoutOrganizationInput = {
|
|
2200
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2201
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2202
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2203
|
+
status?: Prisma.EnumPolicyStatusFieldUpdateOperationsInput | $Enums.PolicyStatus;
|
|
2204
|
+
content?: Prisma.PolicyUpdatecontentInput | runtime.InputJsonValue[];
|
|
2205
|
+
draftContent?: Prisma.PolicyUpdatedraftContentInput | runtime.InputJsonValue[];
|
|
2206
|
+
frequency?: Prisma.NullableEnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency | null;
|
|
2207
|
+
department?: Prisma.NullableEnumDepartmentsFieldUpdateOperationsInput | $Enums.Departments | null;
|
|
2208
|
+
isRequiredToSign?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2209
|
+
signedBy?: Prisma.PolicyUpdatesignedByInput | string[];
|
|
2210
|
+
reviewDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2211
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
2212
|
+
displayFormat?: Prisma.EnumPolicyDisplayFormatFieldUpdateOperationsInput | $Enums.PolicyDisplayFormat;
|
|
2213
|
+
pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2214
|
+
visibility?: Prisma.EnumPolicyVisibilityFieldUpdateOperationsInput | $Enums.PolicyVisibility;
|
|
2215
|
+
visibleToDepartments?: Prisma.PolicyUpdatevisibleToDepartmentsInput | $Enums.Departments[];
|
|
2216
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2217
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2218
|
+
lastArchivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2219
|
+
lastPublishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2220
|
+
assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2221
|
+
approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2222
|
+
policyTemplateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2223
|
+
currentVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2224
|
+
pendingVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2225
|
+
};
|
|
2226
|
+
/**
|
|
2227
|
+
* Count Type PolicyCountOutputType
|
|
2228
|
+
*/
|
|
2229
|
+
export type PolicyCountOutputType = {
|
|
2230
|
+
controls: number;
|
|
2231
|
+
versions: number;
|
|
2232
|
+
};
|
|
2233
|
+
export type PolicyCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2234
|
+
controls?: boolean | PolicyCountOutputTypeCountControlsArgs;
|
|
2235
|
+
versions?: boolean | PolicyCountOutputTypeCountVersionsArgs;
|
|
2236
|
+
};
|
|
2237
|
+
/**
|
|
2238
|
+
* PolicyCountOutputType without action
|
|
2239
|
+
*/
|
|
2240
|
+
export type PolicyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2241
|
+
/**
|
|
2242
|
+
* Select specific fields to fetch from the PolicyCountOutputType
|
|
2243
|
+
*/
|
|
2244
|
+
select?: Prisma.PolicyCountOutputTypeSelect<ExtArgs> | null;
|
|
2245
|
+
};
|
|
2246
|
+
/**
|
|
2247
|
+
* PolicyCountOutputType without action
|
|
2248
|
+
*/
|
|
2249
|
+
export type PolicyCountOutputTypeCountControlsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2250
|
+
where?: Prisma.ControlWhereInput;
|
|
2251
|
+
};
|
|
2252
|
+
/**
|
|
2253
|
+
* PolicyCountOutputType without action
|
|
2254
|
+
*/
|
|
2255
|
+
export type PolicyCountOutputTypeCountVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2256
|
+
where?: Prisma.PolicyVersionWhereInput;
|
|
2257
|
+
};
|
|
2258
|
+
export type PolicySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2259
|
+
id?: boolean;
|
|
2260
|
+
name?: boolean;
|
|
2261
|
+
description?: boolean;
|
|
2262
|
+
status?: boolean;
|
|
2263
|
+
content?: boolean;
|
|
2264
|
+
draftContent?: boolean;
|
|
2265
|
+
frequency?: boolean;
|
|
2266
|
+
department?: boolean;
|
|
2267
|
+
isRequiredToSign?: boolean;
|
|
2268
|
+
signedBy?: boolean;
|
|
2269
|
+
reviewDate?: boolean;
|
|
2270
|
+
isArchived?: boolean;
|
|
2271
|
+
displayFormat?: boolean;
|
|
2272
|
+
pdfUrl?: boolean;
|
|
2273
|
+
visibility?: boolean;
|
|
2274
|
+
visibleToDepartments?: boolean;
|
|
2275
|
+
createdAt?: boolean;
|
|
2276
|
+
updatedAt?: boolean;
|
|
2277
|
+
lastArchivedAt?: boolean;
|
|
2278
|
+
lastPublishedAt?: boolean;
|
|
2279
|
+
organizationId?: boolean;
|
|
2280
|
+
assigneeId?: boolean;
|
|
2281
|
+
approverId?: boolean;
|
|
2282
|
+
policyTemplateId?: boolean;
|
|
2283
|
+
currentVersionId?: boolean;
|
|
2284
|
+
pendingVersionId?: boolean;
|
|
2285
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2286
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2287
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2288
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2289
|
+
controls?: boolean | Prisma.Policy$controlsArgs<ExtArgs>;
|
|
2290
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2291
|
+
versions?: boolean | Prisma.Policy$versionsArgs<ExtArgs>;
|
|
2292
|
+
_count?: boolean | Prisma.PolicyCountOutputTypeDefaultArgs<ExtArgs>;
|
|
2293
|
+
}, ExtArgs["result"]["policy"]>;
|
|
2294
|
+
export type PolicySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2295
|
+
id?: boolean;
|
|
2296
|
+
name?: boolean;
|
|
2297
|
+
description?: boolean;
|
|
2298
|
+
status?: boolean;
|
|
2299
|
+
content?: boolean;
|
|
2300
|
+
draftContent?: boolean;
|
|
2301
|
+
frequency?: boolean;
|
|
2302
|
+
department?: boolean;
|
|
2303
|
+
isRequiredToSign?: boolean;
|
|
2304
|
+
signedBy?: boolean;
|
|
2305
|
+
reviewDate?: boolean;
|
|
2306
|
+
isArchived?: boolean;
|
|
2307
|
+
displayFormat?: boolean;
|
|
2308
|
+
pdfUrl?: boolean;
|
|
2309
|
+
visibility?: boolean;
|
|
2310
|
+
visibleToDepartments?: boolean;
|
|
2311
|
+
createdAt?: boolean;
|
|
2312
|
+
updatedAt?: boolean;
|
|
2313
|
+
lastArchivedAt?: boolean;
|
|
2314
|
+
lastPublishedAt?: boolean;
|
|
2315
|
+
organizationId?: boolean;
|
|
2316
|
+
assigneeId?: boolean;
|
|
2317
|
+
approverId?: boolean;
|
|
2318
|
+
policyTemplateId?: boolean;
|
|
2319
|
+
currentVersionId?: boolean;
|
|
2320
|
+
pendingVersionId?: boolean;
|
|
2321
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2322
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2323
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2324
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2325
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2326
|
+
}, ExtArgs["result"]["policy"]>;
|
|
2327
|
+
export type PolicySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2328
|
+
id?: boolean;
|
|
2329
|
+
name?: boolean;
|
|
2330
|
+
description?: boolean;
|
|
2331
|
+
status?: boolean;
|
|
2332
|
+
content?: boolean;
|
|
2333
|
+
draftContent?: boolean;
|
|
2334
|
+
frequency?: boolean;
|
|
2335
|
+
department?: boolean;
|
|
2336
|
+
isRequiredToSign?: boolean;
|
|
2337
|
+
signedBy?: boolean;
|
|
2338
|
+
reviewDate?: boolean;
|
|
2339
|
+
isArchived?: boolean;
|
|
2340
|
+
displayFormat?: boolean;
|
|
2341
|
+
pdfUrl?: boolean;
|
|
2342
|
+
visibility?: boolean;
|
|
2343
|
+
visibleToDepartments?: boolean;
|
|
2344
|
+
createdAt?: boolean;
|
|
2345
|
+
updatedAt?: boolean;
|
|
2346
|
+
lastArchivedAt?: boolean;
|
|
2347
|
+
lastPublishedAt?: boolean;
|
|
2348
|
+
organizationId?: boolean;
|
|
2349
|
+
assigneeId?: boolean;
|
|
2350
|
+
approverId?: boolean;
|
|
2351
|
+
policyTemplateId?: boolean;
|
|
2352
|
+
currentVersionId?: boolean;
|
|
2353
|
+
pendingVersionId?: boolean;
|
|
2354
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2355
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2356
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2357
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2358
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2359
|
+
}, ExtArgs["result"]["policy"]>;
|
|
2360
|
+
export type PolicySelectScalar = {
|
|
2361
|
+
id?: boolean;
|
|
2362
|
+
name?: boolean;
|
|
2363
|
+
description?: boolean;
|
|
2364
|
+
status?: boolean;
|
|
2365
|
+
content?: boolean;
|
|
2366
|
+
draftContent?: boolean;
|
|
2367
|
+
frequency?: boolean;
|
|
2368
|
+
department?: boolean;
|
|
2369
|
+
isRequiredToSign?: boolean;
|
|
2370
|
+
signedBy?: boolean;
|
|
2371
|
+
reviewDate?: boolean;
|
|
2372
|
+
isArchived?: boolean;
|
|
2373
|
+
displayFormat?: boolean;
|
|
2374
|
+
pdfUrl?: boolean;
|
|
2375
|
+
visibility?: boolean;
|
|
2376
|
+
visibleToDepartments?: boolean;
|
|
2377
|
+
createdAt?: boolean;
|
|
2378
|
+
updatedAt?: boolean;
|
|
2379
|
+
lastArchivedAt?: boolean;
|
|
2380
|
+
lastPublishedAt?: boolean;
|
|
2381
|
+
organizationId?: boolean;
|
|
2382
|
+
assigneeId?: boolean;
|
|
2383
|
+
approverId?: boolean;
|
|
2384
|
+
policyTemplateId?: boolean;
|
|
2385
|
+
currentVersionId?: boolean;
|
|
2386
|
+
pendingVersionId?: boolean;
|
|
2387
|
+
};
|
|
2388
|
+
export type PolicyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "status" | "content" | "draftContent" | "frequency" | "department" | "isRequiredToSign" | "signedBy" | "reviewDate" | "isArchived" | "displayFormat" | "pdfUrl" | "visibility" | "visibleToDepartments" | "createdAt" | "updatedAt" | "lastArchivedAt" | "lastPublishedAt" | "organizationId" | "assigneeId" | "approverId" | "policyTemplateId" | "currentVersionId" | "pendingVersionId", ExtArgs["result"]["policy"]>;
|
|
2389
|
+
export type PolicyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2390
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2391
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2392
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2393
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2394
|
+
controls?: boolean | Prisma.Policy$controlsArgs<ExtArgs>;
|
|
2395
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2396
|
+
versions?: boolean | Prisma.Policy$versionsArgs<ExtArgs>;
|
|
2397
|
+
_count?: boolean | Prisma.PolicyCountOutputTypeDefaultArgs<ExtArgs>;
|
|
2398
|
+
};
|
|
2399
|
+
export type PolicyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2400
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2401
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2402
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2403
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2404
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2405
|
+
};
|
|
2406
|
+
export type PolicyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2407
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
2408
|
+
assignee?: boolean | Prisma.Policy$assigneeArgs<ExtArgs>;
|
|
2409
|
+
approver?: boolean | Prisma.Policy$approverArgs<ExtArgs>;
|
|
2410
|
+
policyTemplate?: boolean | Prisma.Policy$policyTemplateArgs<ExtArgs>;
|
|
2411
|
+
currentVersion?: boolean | Prisma.Policy$currentVersionArgs<ExtArgs>;
|
|
2412
|
+
};
|
|
2413
|
+
export type $PolicyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2414
|
+
name: "Policy";
|
|
2415
|
+
objects: {
|
|
2416
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
2417
|
+
assignee: Prisma.$MemberPayload<ExtArgs> | null;
|
|
2418
|
+
approver: Prisma.$MemberPayload<ExtArgs> | null;
|
|
2419
|
+
policyTemplate: Prisma.$FrameworkEditorPolicyTemplatePayload<ExtArgs> | null;
|
|
2420
|
+
controls: Prisma.$ControlPayload<ExtArgs>[];
|
|
2421
|
+
currentVersion: Prisma.$PolicyVersionPayload<ExtArgs> | null;
|
|
2422
|
+
versions: Prisma.$PolicyVersionPayload<ExtArgs>[];
|
|
2423
|
+
};
|
|
2424
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
2425
|
+
id: string;
|
|
2426
|
+
name: string;
|
|
2427
|
+
description: string | null;
|
|
2428
|
+
status: $Enums.PolicyStatus;
|
|
2429
|
+
content: runtime.JsonValue[];
|
|
2430
|
+
draftContent: runtime.JsonValue[];
|
|
2431
|
+
frequency: $Enums.Frequency | null;
|
|
2432
|
+
department: $Enums.Departments | null;
|
|
2433
|
+
isRequiredToSign: boolean;
|
|
2434
|
+
signedBy: string[];
|
|
2435
|
+
reviewDate: Date | null;
|
|
2436
|
+
isArchived: boolean;
|
|
2437
|
+
displayFormat: $Enums.PolicyDisplayFormat;
|
|
2438
|
+
pdfUrl: string | null;
|
|
2439
|
+
visibility: $Enums.PolicyVisibility;
|
|
2440
|
+
visibleToDepartments: $Enums.Departments[];
|
|
2441
|
+
createdAt: Date;
|
|
2442
|
+
updatedAt: Date;
|
|
2443
|
+
lastArchivedAt: Date | null;
|
|
2444
|
+
lastPublishedAt: Date | null;
|
|
2445
|
+
organizationId: string;
|
|
2446
|
+
assigneeId: string | null;
|
|
2447
|
+
approverId: string | null;
|
|
2448
|
+
policyTemplateId: string | null;
|
|
2449
|
+
currentVersionId: string | null;
|
|
2450
|
+
pendingVersionId: string | null;
|
|
2451
|
+
}, ExtArgs["result"]["policy"]>;
|
|
2452
|
+
composites: {};
|
|
2453
|
+
};
|
|
2454
|
+
export type PolicyGetPayload<S extends boolean | null | undefined | PolicyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PolicyPayload, S>;
|
|
2455
|
+
export type PolicyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PolicyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
2456
|
+
select?: PolicyCountAggregateInputType | true;
|
|
2457
|
+
};
|
|
2458
|
+
export interface PolicyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
2459
|
+
[K: symbol]: {
|
|
2460
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Policy'];
|
|
2461
|
+
meta: {
|
|
2462
|
+
name: 'Policy';
|
|
2463
|
+
};
|
|
2464
|
+
};
|
|
2465
|
+
/**
|
|
2466
|
+
* Find zero or one Policy that matches the filter.
|
|
2467
|
+
* @param {PolicyFindUniqueArgs} args - Arguments to find a Policy
|
|
2468
|
+
* @example
|
|
2469
|
+
* // Get one Policy
|
|
2470
|
+
* const policy = await prisma.policy.findUnique({
|
|
2471
|
+
* where: {
|
|
2472
|
+
* // ... provide filter here
|
|
2473
|
+
* }
|
|
2474
|
+
* })
|
|
2475
|
+
*/
|
|
2476
|
+
findUnique<T extends PolicyFindUniqueArgs>(args: Prisma.SelectSubset<T, PolicyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2477
|
+
/**
|
|
2478
|
+
* Find one Policy that matches the filter or throw an error with `error.code='P2025'`
|
|
2479
|
+
* if no matches were found.
|
|
2480
|
+
* @param {PolicyFindUniqueOrThrowArgs} args - Arguments to find a Policy
|
|
2481
|
+
* @example
|
|
2482
|
+
* // Get one Policy
|
|
2483
|
+
* const policy = await prisma.policy.findUniqueOrThrow({
|
|
2484
|
+
* where: {
|
|
2485
|
+
* // ... provide filter here
|
|
2486
|
+
* }
|
|
2487
|
+
* })
|
|
2488
|
+
*/
|
|
2489
|
+
findUniqueOrThrow<T extends PolicyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PolicyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2490
|
+
/**
|
|
2491
|
+
* Find the first Policy that matches the filter.
|
|
2492
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2493
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2494
|
+
* @param {PolicyFindFirstArgs} args - Arguments to find a Policy
|
|
2495
|
+
* @example
|
|
2496
|
+
* // Get one Policy
|
|
2497
|
+
* const policy = await prisma.policy.findFirst({
|
|
2498
|
+
* where: {
|
|
2499
|
+
* // ... provide filter here
|
|
2500
|
+
* }
|
|
2501
|
+
* })
|
|
2502
|
+
*/
|
|
2503
|
+
findFirst<T extends PolicyFindFirstArgs>(args?: Prisma.SelectSubset<T, PolicyFindFirstArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2504
|
+
/**
|
|
2505
|
+
* Find the first Policy that matches the filter or
|
|
2506
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
2507
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2508
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2509
|
+
* @param {PolicyFindFirstOrThrowArgs} args - Arguments to find a Policy
|
|
2510
|
+
* @example
|
|
2511
|
+
* // Get one Policy
|
|
2512
|
+
* const policy = await prisma.policy.findFirstOrThrow({
|
|
2513
|
+
* where: {
|
|
2514
|
+
* // ... provide filter here
|
|
2515
|
+
* }
|
|
2516
|
+
* })
|
|
2517
|
+
*/
|
|
2518
|
+
findFirstOrThrow<T extends PolicyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PolicyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Find zero or more Policies that matches the filter.
|
|
2521
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2522
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2523
|
+
* @param {PolicyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
2524
|
+
* @example
|
|
2525
|
+
* // Get all Policies
|
|
2526
|
+
* const policies = await prisma.policy.findMany()
|
|
2527
|
+
*
|
|
2528
|
+
* // Get first 10 Policies
|
|
2529
|
+
* const policies = await prisma.policy.findMany({ take: 10 })
|
|
2530
|
+
*
|
|
2531
|
+
* // Only select the `id`
|
|
2532
|
+
* const policyWithIdOnly = await prisma.policy.findMany({ select: { id: true } })
|
|
2533
|
+
*
|
|
2534
|
+
*/
|
|
2535
|
+
findMany<T extends PolicyFindManyArgs>(args?: Prisma.SelectSubset<T, PolicyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
2536
|
+
/**
|
|
2537
|
+
* Create a Policy.
|
|
2538
|
+
* @param {PolicyCreateArgs} args - Arguments to create a Policy.
|
|
2539
|
+
* @example
|
|
2540
|
+
* // Create one Policy
|
|
2541
|
+
* const Policy = await prisma.policy.create({
|
|
2542
|
+
* data: {
|
|
2543
|
+
* // ... data to create a Policy
|
|
2544
|
+
* }
|
|
2545
|
+
* })
|
|
2546
|
+
*
|
|
2547
|
+
*/
|
|
2548
|
+
create<T extends PolicyCreateArgs>(args: Prisma.SelectSubset<T, PolicyCreateArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2549
|
+
/**
|
|
2550
|
+
* Create many Policies.
|
|
2551
|
+
* @param {PolicyCreateManyArgs} args - Arguments to create many Policies.
|
|
2552
|
+
* @example
|
|
2553
|
+
* // Create many Policies
|
|
2554
|
+
* const policy = await prisma.policy.createMany({
|
|
2555
|
+
* data: [
|
|
2556
|
+
* // ... provide data here
|
|
2557
|
+
* ]
|
|
2558
|
+
* })
|
|
2559
|
+
*
|
|
2560
|
+
*/
|
|
2561
|
+
createMany<T extends PolicyCreateManyArgs>(args?: Prisma.SelectSubset<T, PolicyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Create many Policies and returns the data saved in the database.
|
|
2564
|
+
* @param {PolicyCreateManyAndReturnArgs} args - Arguments to create many Policies.
|
|
2565
|
+
* @example
|
|
2566
|
+
* // Create many Policies
|
|
2567
|
+
* const policy = await prisma.policy.createManyAndReturn({
|
|
2568
|
+
* data: [
|
|
2569
|
+
* // ... provide data here
|
|
2570
|
+
* ]
|
|
2571
|
+
* })
|
|
2572
|
+
*
|
|
2573
|
+
* // Create many Policies and only return the `id`
|
|
2574
|
+
* const policyWithIdOnly = await prisma.policy.createManyAndReturn({
|
|
2575
|
+
* select: { id: true },
|
|
2576
|
+
* data: [
|
|
2577
|
+
* // ... provide data here
|
|
2578
|
+
* ]
|
|
2579
|
+
* })
|
|
2580
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2581
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2582
|
+
*
|
|
2583
|
+
*/
|
|
2584
|
+
createManyAndReturn<T extends PolicyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PolicyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
2585
|
+
/**
|
|
2586
|
+
* Delete a Policy.
|
|
2587
|
+
* @param {PolicyDeleteArgs} args - Arguments to delete one Policy.
|
|
2588
|
+
* @example
|
|
2589
|
+
* // Delete one Policy
|
|
2590
|
+
* const Policy = await prisma.policy.delete({
|
|
2591
|
+
* where: {
|
|
2592
|
+
* // ... filter to delete one Policy
|
|
2593
|
+
* }
|
|
2594
|
+
* })
|
|
2595
|
+
*
|
|
2596
|
+
*/
|
|
2597
|
+
delete<T extends PolicyDeleteArgs>(args: Prisma.SelectSubset<T, PolicyDeleteArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2598
|
+
/**
|
|
2599
|
+
* Update one Policy.
|
|
2600
|
+
* @param {PolicyUpdateArgs} args - Arguments to update one Policy.
|
|
2601
|
+
* @example
|
|
2602
|
+
* // Update one Policy
|
|
2603
|
+
* const policy = await prisma.policy.update({
|
|
2604
|
+
* where: {
|
|
2605
|
+
* // ... provide filter here
|
|
2606
|
+
* },
|
|
2607
|
+
* data: {
|
|
2608
|
+
* // ... provide data here
|
|
2609
|
+
* }
|
|
2610
|
+
* })
|
|
2611
|
+
*
|
|
2612
|
+
*/
|
|
2613
|
+
update<T extends PolicyUpdateArgs>(args: Prisma.SelectSubset<T, PolicyUpdateArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Delete zero or more Policies.
|
|
2616
|
+
* @param {PolicyDeleteManyArgs} args - Arguments to filter Policies to delete.
|
|
2617
|
+
* @example
|
|
2618
|
+
* // Delete a few Policies
|
|
2619
|
+
* const { count } = await prisma.policy.deleteMany({
|
|
2620
|
+
* where: {
|
|
2621
|
+
* // ... provide filter here
|
|
2622
|
+
* }
|
|
2623
|
+
* })
|
|
2624
|
+
*
|
|
2625
|
+
*/
|
|
2626
|
+
deleteMany<T extends PolicyDeleteManyArgs>(args?: Prisma.SelectSubset<T, PolicyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2627
|
+
/**
|
|
2628
|
+
* Update zero or more Policies.
|
|
2629
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2630
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2631
|
+
* @param {PolicyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
2632
|
+
* @example
|
|
2633
|
+
* // Update many Policies
|
|
2634
|
+
* const policy = await prisma.policy.updateMany({
|
|
2635
|
+
* where: {
|
|
2636
|
+
* // ... provide filter here
|
|
2637
|
+
* },
|
|
2638
|
+
* data: {
|
|
2639
|
+
* // ... provide data here
|
|
2640
|
+
* }
|
|
2641
|
+
* })
|
|
2642
|
+
*
|
|
2643
|
+
*/
|
|
2644
|
+
updateMany<T extends PolicyUpdateManyArgs>(args: Prisma.SelectSubset<T, PolicyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2645
|
+
/**
|
|
2646
|
+
* Update zero or more Policies and returns the data updated in the database.
|
|
2647
|
+
* @param {PolicyUpdateManyAndReturnArgs} args - Arguments to update many Policies.
|
|
2648
|
+
* @example
|
|
2649
|
+
* // Update many Policies
|
|
2650
|
+
* const policy = await prisma.policy.updateManyAndReturn({
|
|
2651
|
+
* where: {
|
|
2652
|
+
* // ... provide filter here
|
|
2653
|
+
* },
|
|
2654
|
+
* data: [
|
|
2655
|
+
* // ... provide data here
|
|
2656
|
+
* ]
|
|
2657
|
+
* })
|
|
2658
|
+
*
|
|
2659
|
+
* // Update zero or more Policies and only return the `id`
|
|
2660
|
+
* const policyWithIdOnly = await prisma.policy.updateManyAndReturn({
|
|
2661
|
+
* select: { id: true },
|
|
2662
|
+
* where: {
|
|
2663
|
+
* // ... provide filter here
|
|
2664
|
+
* },
|
|
2665
|
+
* data: [
|
|
2666
|
+
* // ... provide data here
|
|
2667
|
+
* ]
|
|
2668
|
+
* })
|
|
2669
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2670
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2671
|
+
*
|
|
2672
|
+
*/
|
|
2673
|
+
updateManyAndReturn<T extends PolicyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PolicyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
2674
|
+
/**
|
|
2675
|
+
* Create or update one Policy.
|
|
2676
|
+
* @param {PolicyUpsertArgs} args - Arguments to update or create a Policy.
|
|
2677
|
+
* @example
|
|
2678
|
+
* // Update or create a Policy
|
|
2679
|
+
* const policy = await prisma.policy.upsert({
|
|
2680
|
+
* create: {
|
|
2681
|
+
* // ... data to create a Policy
|
|
2682
|
+
* },
|
|
2683
|
+
* update: {
|
|
2684
|
+
* // ... in case it already exists, update
|
|
2685
|
+
* },
|
|
2686
|
+
* where: {
|
|
2687
|
+
* // ... the filter for the Policy we want to update
|
|
2688
|
+
* }
|
|
2689
|
+
* })
|
|
2690
|
+
*/
|
|
2691
|
+
upsert<T extends PolicyUpsertArgs>(args: Prisma.SelectSubset<T, PolicyUpsertArgs<ExtArgs>>): Prisma.Prisma__PolicyClient<runtime.Types.Result.GetResult<Prisma.$PolicyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2692
|
+
/**
|
|
2693
|
+
* Count the number of Policies.
|
|
2694
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2695
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2696
|
+
* @param {PolicyCountArgs} args - Arguments to filter Policies to count.
|
|
2697
|
+
* @example
|
|
2698
|
+
* // Count the number of Policies
|
|
2699
|
+
* const count = await prisma.policy.count({
|
|
2700
|
+
* where: {
|
|
2701
|
+
* // ... the filter for the Policies we want to count
|
|
2702
|
+
* }
|
|
2703
|
+
* })
|
|
2704
|
+
**/
|
|
2705
|
+
count<T extends PolicyCountArgs>(args?: Prisma.Subset<T, PolicyCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PolicyCountAggregateOutputType> : number>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Allows you to perform aggregations operations on a Policy.
|
|
2708
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2709
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2710
|
+
* @param {PolicyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
2711
|
+
* @example
|
|
2712
|
+
* // Ordered by age ascending
|
|
2713
|
+
* // Where email contains prisma.io
|
|
2714
|
+
* // Limited to the 10 users
|
|
2715
|
+
* const aggregations = await prisma.user.aggregate({
|
|
2716
|
+
* _avg: {
|
|
2717
|
+
* age: true,
|
|
2718
|
+
* },
|
|
2719
|
+
* where: {
|
|
2720
|
+
* email: {
|
|
2721
|
+
* contains: "prisma.io",
|
|
2722
|
+
* },
|
|
2723
|
+
* },
|
|
2724
|
+
* orderBy: {
|
|
2725
|
+
* age: "asc",
|
|
2726
|
+
* },
|
|
2727
|
+
* take: 10,
|
|
2728
|
+
* })
|
|
2729
|
+
**/
|
|
2730
|
+
aggregate<T extends PolicyAggregateArgs>(args: Prisma.Subset<T, PolicyAggregateArgs>): Prisma.PrismaPromise<GetPolicyAggregateType<T>>;
|
|
2731
|
+
/**
|
|
2732
|
+
* Group by Policy.
|
|
2733
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2734
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2735
|
+
* @param {PolicyGroupByArgs} args - Group by arguments.
|
|
2736
|
+
* @example
|
|
2737
|
+
* // Group by city, order by createdAt, get count
|
|
2738
|
+
* const result = await prisma.user.groupBy({
|
|
2739
|
+
* by: ['city', 'createdAt'],
|
|
2740
|
+
* orderBy: {
|
|
2741
|
+
* createdAt: true
|
|
2742
|
+
* },
|
|
2743
|
+
* _count: {
|
|
2744
|
+
* _all: true
|
|
2745
|
+
* },
|
|
2746
|
+
* })
|
|
2747
|
+
*
|
|
2748
|
+
**/
|
|
2749
|
+
groupBy<T extends PolicyGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
2750
|
+
orderBy: PolicyGroupByArgs['orderBy'];
|
|
2751
|
+
} : {
|
|
2752
|
+
orderBy?: PolicyGroupByArgs['orderBy'];
|
|
2753
|
+
}, 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 ? {
|
|
2754
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
2755
|
+
Error,
|
|
2756
|
+
'Field ',
|
|
2757
|
+
P,
|
|
2758
|
+
` in "having" needs to be provided in "by"`
|
|
2759
|
+
];
|
|
2760
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
2761
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2762
|
+
}[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 ? {} : {
|
|
2763
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2764
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
2765
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2766
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PolicyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPolicyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Fields of the Policy model
|
|
2769
|
+
*/
|
|
2770
|
+
readonly fields: PolicyFieldRefs;
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* The delegate class that acts as a "Promise-like" for Policy.
|
|
2774
|
+
* Why is this prefixed with `Prisma__`?
|
|
2775
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
2776
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
2777
|
+
*/
|
|
2778
|
+
export interface Prisma__PolicyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
2779
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
2780
|
+
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
2781
|
+
assignee<T extends Prisma.Policy$assigneeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$assigneeArgs<ExtArgs>>): Prisma.Prisma__MemberClient<runtime.Types.Result.GetResult<Prisma.$MemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2782
|
+
approver<T extends Prisma.Policy$approverArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$approverArgs<ExtArgs>>): Prisma.Prisma__MemberClient<runtime.Types.Result.GetResult<Prisma.$MemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2783
|
+
policyTemplate<T extends Prisma.Policy$policyTemplateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$policyTemplateArgs<ExtArgs>>): Prisma.Prisma__FrameworkEditorPolicyTemplateClient<runtime.Types.Result.GetResult<Prisma.$FrameworkEditorPolicyTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2784
|
+
controls<T extends Prisma.Policy$controlsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$controlsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ControlPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2785
|
+
currentVersion<T extends Prisma.Policy$currentVersionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$currentVersionArgs<ExtArgs>>): Prisma.Prisma__PolicyVersionClient<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2786
|
+
versions<T extends Prisma.Policy$versionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Policy$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PolicyVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2787
|
+
/**
|
|
2788
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
2789
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
2790
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2791
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
2792
|
+
*/
|
|
2793
|
+
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>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
2796
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2797
|
+
* @returns A Promise for the completion of the callback.
|
|
2798
|
+
*/
|
|
2799
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
2800
|
+
/**
|
|
2801
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
2802
|
+
* resolved value cannot be modified from the callback.
|
|
2803
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
2804
|
+
* @returns A Promise for the completion of the callback.
|
|
2805
|
+
*/
|
|
2806
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
2807
|
+
}
|
|
2808
|
+
/**
|
|
2809
|
+
* Fields of the Policy model
|
|
2810
|
+
*/
|
|
2811
|
+
export interface PolicyFieldRefs {
|
|
2812
|
+
readonly id: Prisma.FieldRef<"Policy", 'String'>;
|
|
2813
|
+
readonly name: Prisma.FieldRef<"Policy", 'String'>;
|
|
2814
|
+
readonly description: Prisma.FieldRef<"Policy", 'String'>;
|
|
2815
|
+
readonly status: Prisma.FieldRef<"Policy", 'PolicyStatus'>;
|
|
2816
|
+
readonly content: Prisma.FieldRef<"Policy", 'Json[]'>;
|
|
2817
|
+
readonly draftContent: Prisma.FieldRef<"Policy", 'Json[]'>;
|
|
2818
|
+
readonly frequency: Prisma.FieldRef<"Policy", 'Frequency'>;
|
|
2819
|
+
readonly department: Prisma.FieldRef<"Policy", 'Departments'>;
|
|
2820
|
+
readonly isRequiredToSign: Prisma.FieldRef<"Policy", 'Boolean'>;
|
|
2821
|
+
readonly signedBy: Prisma.FieldRef<"Policy", 'String[]'>;
|
|
2822
|
+
readonly reviewDate: Prisma.FieldRef<"Policy", 'DateTime'>;
|
|
2823
|
+
readonly isArchived: Prisma.FieldRef<"Policy", 'Boolean'>;
|
|
2824
|
+
readonly displayFormat: Prisma.FieldRef<"Policy", 'PolicyDisplayFormat'>;
|
|
2825
|
+
readonly pdfUrl: Prisma.FieldRef<"Policy", 'String'>;
|
|
2826
|
+
readonly visibility: Prisma.FieldRef<"Policy", 'PolicyVisibility'>;
|
|
2827
|
+
readonly visibleToDepartments: Prisma.FieldRef<"Policy", 'Departments[]'>;
|
|
2828
|
+
readonly createdAt: Prisma.FieldRef<"Policy", 'DateTime'>;
|
|
2829
|
+
readonly updatedAt: Prisma.FieldRef<"Policy", 'DateTime'>;
|
|
2830
|
+
readonly lastArchivedAt: Prisma.FieldRef<"Policy", 'DateTime'>;
|
|
2831
|
+
readonly lastPublishedAt: Prisma.FieldRef<"Policy", 'DateTime'>;
|
|
2832
|
+
readonly organizationId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2833
|
+
readonly assigneeId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2834
|
+
readonly approverId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2835
|
+
readonly policyTemplateId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2836
|
+
readonly currentVersionId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2837
|
+
readonly pendingVersionId: Prisma.FieldRef<"Policy", 'String'>;
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* Policy findUnique
|
|
2841
|
+
*/
|
|
2842
|
+
export type PolicyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2843
|
+
/**
|
|
2844
|
+
* Select specific fields to fetch from the Policy
|
|
2845
|
+
*/
|
|
2846
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
2847
|
+
/**
|
|
2848
|
+
* Omit specific fields from the Policy
|
|
2849
|
+
*/
|
|
2850
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
2851
|
+
/**
|
|
2852
|
+
* Choose, which related nodes to fetch as well
|
|
2853
|
+
*/
|
|
2854
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
2855
|
+
/**
|
|
2856
|
+
* Filter, which Policy to fetch.
|
|
2857
|
+
*/
|
|
2858
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
2859
|
+
};
|
|
2860
|
+
/**
|
|
2861
|
+
* Policy findUniqueOrThrow
|
|
2862
|
+
*/
|
|
2863
|
+
export type PolicyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2864
|
+
/**
|
|
2865
|
+
* Select specific fields to fetch from the Policy
|
|
2866
|
+
*/
|
|
2867
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
2868
|
+
/**
|
|
2869
|
+
* Omit specific fields from the Policy
|
|
2870
|
+
*/
|
|
2871
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
2872
|
+
/**
|
|
2873
|
+
* Choose, which related nodes to fetch as well
|
|
2874
|
+
*/
|
|
2875
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
2876
|
+
/**
|
|
2877
|
+
* Filter, which Policy to fetch.
|
|
2878
|
+
*/
|
|
2879
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
2880
|
+
};
|
|
2881
|
+
/**
|
|
2882
|
+
* Policy findFirst
|
|
2883
|
+
*/
|
|
2884
|
+
export type PolicyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2885
|
+
/**
|
|
2886
|
+
* Select specific fields to fetch from the Policy
|
|
2887
|
+
*/
|
|
2888
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
2889
|
+
/**
|
|
2890
|
+
* Omit specific fields from the Policy
|
|
2891
|
+
*/
|
|
2892
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
2893
|
+
/**
|
|
2894
|
+
* Choose, which related nodes to fetch as well
|
|
2895
|
+
*/
|
|
2896
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
2897
|
+
/**
|
|
2898
|
+
* Filter, which Policy to fetch.
|
|
2899
|
+
*/
|
|
2900
|
+
where?: Prisma.PolicyWhereInput;
|
|
2901
|
+
/**
|
|
2902
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2903
|
+
*
|
|
2904
|
+
* Determine the order of Policies to fetch.
|
|
2905
|
+
*/
|
|
2906
|
+
orderBy?: Prisma.PolicyOrderByWithRelationInput | Prisma.PolicyOrderByWithRelationInput[];
|
|
2907
|
+
/**
|
|
2908
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2909
|
+
*
|
|
2910
|
+
* Sets the position for searching for Policies.
|
|
2911
|
+
*/
|
|
2912
|
+
cursor?: Prisma.PolicyWhereUniqueInput;
|
|
2913
|
+
/**
|
|
2914
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2915
|
+
*
|
|
2916
|
+
* Take `±n` Policies from the position of the cursor.
|
|
2917
|
+
*/
|
|
2918
|
+
take?: number;
|
|
2919
|
+
/**
|
|
2920
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2921
|
+
*
|
|
2922
|
+
* Skip the first `n` Policies.
|
|
2923
|
+
*/
|
|
2924
|
+
skip?: number;
|
|
2925
|
+
/**
|
|
2926
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2927
|
+
*
|
|
2928
|
+
* Filter by unique combinations of Policies.
|
|
2929
|
+
*/
|
|
2930
|
+
distinct?: Prisma.PolicyScalarFieldEnum | Prisma.PolicyScalarFieldEnum[];
|
|
2931
|
+
};
|
|
2932
|
+
/**
|
|
2933
|
+
* Policy findFirstOrThrow
|
|
2934
|
+
*/
|
|
2935
|
+
export type PolicyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2936
|
+
/**
|
|
2937
|
+
* Select specific fields to fetch from the Policy
|
|
2938
|
+
*/
|
|
2939
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* Omit specific fields from the Policy
|
|
2942
|
+
*/
|
|
2943
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
2944
|
+
/**
|
|
2945
|
+
* Choose, which related nodes to fetch as well
|
|
2946
|
+
*/
|
|
2947
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
2948
|
+
/**
|
|
2949
|
+
* Filter, which Policy to fetch.
|
|
2950
|
+
*/
|
|
2951
|
+
where?: Prisma.PolicyWhereInput;
|
|
2952
|
+
/**
|
|
2953
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2954
|
+
*
|
|
2955
|
+
* Determine the order of Policies to fetch.
|
|
2956
|
+
*/
|
|
2957
|
+
orderBy?: Prisma.PolicyOrderByWithRelationInput | Prisma.PolicyOrderByWithRelationInput[];
|
|
2958
|
+
/**
|
|
2959
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2960
|
+
*
|
|
2961
|
+
* Sets the position for searching for Policies.
|
|
2962
|
+
*/
|
|
2963
|
+
cursor?: Prisma.PolicyWhereUniqueInput;
|
|
2964
|
+
/**
|
|
2965
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2966
|
+
*
|
|
2967
|
+
* Take `±n` Policies from the position of the cursor.
|
|
2968
|
+
*/
|
|
2969
|
+
take?: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2972
|
+
*
|
|
2973
|
+
* Skip the first `n` Policies.
|
|
2974
|
+
*/
|
|
2975
|
+
skip?: number;
|
|
2976
|
+
/**
|
|
2977
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2978
|
+
*
|
|
2979
|
+
* Filter by unique combinations of Policies.
|
|
2980
|
+
*/
|
|
2981
|
+
distinct?: Prisma.PolicyScalarFieldEnum | Prisma.PolicyScalarFieldEnum[];
|
|
2982
|
+
};
|
|
2983
|
+
/**
|
|
2984
|
+
* Policy findMany
|
|
2985
|
+
*/
|
|
2986
|
+
export type PolicyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2987
|
+
/**
|
|
2988
|
+
* Select specific fields to fetch from the Policy
|
|
2989
|
+
*/
|
|
2990
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
2991
|
+
/**
|
|
2992
|
+
* Omit specific fields from the Policy
|
|
2993
|
+
*/
|
|
2994
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
2995
|
+
/**
|
|
2996
|
+
* Choose, which related nodes to fetch as well
|
|
2997
|
+
*/
|
|
2998
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
2999
|
+
/**
|
|
3000
|
+
* Filter, which Policies to fetch.
|
|
3001
|
+
*/
|
|
3002
|
+
where?: Prisma.PolicyWhereInput;
|
|
3003
|
+
/**
|
|
3004
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
3005
|
+
*
|
|
3006
|
+
* Determine the order of Policies to fetch.
|
|
3007
|
+
*/
|
|
3008
|
+
orderBy?: Prisma.PolicyOrderByWithRelationInput | Prisma.PolicyOrderByWithRelationInput[];
|
|
3009
|
+
/**
|
|
3010
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
3011
|
+
*
|
|
3012
|
+
* Sets the position for listing Policies.
|
|
3013
|
+
*/
|
|
3014
|
+
cursor?: Prisma.PolicyWhereUniqueInput;
|
|
3015
|
+
/**
|
|
3016
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3017
|
+
*
|
|
3018
|
+
* Take `±n` Policies from the position of the cursor.
|
|
3019
|
+
*/
|
|
3020
|
+
take?: number;
|
|
3021
|
+
/**
|
|
3022
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3023
|
+
*
|
|
3024
|
+
* Skip the first `n` Policies.
|
|
3025
|
+
*/
|
|
3026
|
+
skip?: number;
|
|
3027
|
+
/**
|
|
3028
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
3029
|
+
*
|
|
3030
|
+
* Filter by unique combinations of Policies.
|
|
3031
|
+
*/
|
|
3032
|
+
distinct?: Prisma.PolicyScalarFieldEnum | Prisma.PolicyScalarFieldEnum[];
|
|
3033
|
+
};
|
|
3034
|
+
/**
|
|
3035
|
+
* Policy create
|
|
3036
|
+
*/
|
|
3037
|
+
export type PolicyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3038
|
+
/**
|
|
3039
|
+
* Select specific fields to fetch from the Policy
|
|
3040
|
+
*/
|
|
3041
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
3042
|
+
/**
|
|
3043
|
+
* Omit specific fields from the Policy
|
|
3044
|
+
*/
|
|
3045
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3046
|
+
/**
|
|
3047
|
+
* Choose, which related nodes to fetch as well
|
|
3048
|
+
*/
|
|
3049
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
3050
|
+
/**
|
|
3051
|
+
* The data needed to create a Policy.
|
|
3052
|
+
*/
|
|
3053
|
+
data: Prisma.XOR<Prisma.PolicyCreateInput, Prisma.PolicyUncheckedCreateInput>;
|
|
3054
|
+
};
|
|
3055
|
+
/**
|
|
3056
|
+
* Policy createMany
|
|
3057
|
+
*/
|
|
3058
|
+
export type PolicyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3059
|
+
/**
|
|
3060
|
+
* The data used to create many Policies.
|
|
3061
|
+
*/
|
|
3062
|
+
data: Prisma.PolicyCreateManyInput | Prisma.PolicyCreateManyInput[];
|
|
3063
|
+
skipDuplicates?: boolean;
|
|
3064
|
+
};
|
|
3065
|
+
/**
|
|
3066
|
+
* Policy createManyAndReturn
|
|
3067
|
+
*/
|
|
3068
|
+
export type PolicyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3069
|
+
/**
|
|
3070
|
+
* Select specific fields to fetch from the Policy
|
|
3071
|
+
*/
|
|
3072
|
+
select?: Prisma.PolicySelectCreateManyAndReturn<ExtArgs> | null;
|
|
3073
|
+
/**
|
|
3074
|
+
* Omit specific fields from the Policy
|
|
3075
|
+
*/
|
|
3076
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3077
|
+
/**
|
|
3078
|
+
* The data used to create many Policies.
|
|
3079
|
+
*/
|
|
3080
|
+
data: Prisma.PolicyCreateManyInput | Prisma.PolicyCreateManyInput[];
|
|
3081
|
+
skipDuplicates?: boolean;
|
|
3082
|
+
/**
|
|
3083
|
+
* Choose, which related nodes to fetch as well
|
|
3084
|
+
*/
|
|
3085
|
+
include?: Prisma.PolicyIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
3086
|
+
};
|
|
3087
|
+
/**
|
|
3088
|
+
* Policy update
|
|
3089
|
+
*/
|
|
3090
|
+
export type PolicyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3091
|
+
/**
|
|
3092
|
+
* Select specific fields to fetch from the Policy
|
|
3093
|
+
*/
|
|
3094
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
3095
|
+
/**
|
|
3096
|
+
* Omit specific fields from the Policy
|
|
3097
|
+
*/
|
|
3098
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3099
|
+
/**
|
|
3100
|
+
* Choose, which related nodes to fetch as well
|
|
3101
|
+
*/
|
|
3102
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
3103
|
+
/**
|
|
3104
|
+
* The data needed to update a Policy.
|
|
3105
|
+
*/
|
|
3106
|
+
data: Prisma.XOR<Prisma.PolicyUpdateInput, Prisma.PolicyUncheckedUpdateInput>;
|
|
3107
|
+
/**
|
|
3108
|
+
* Choose, which Policy to update.
|
|
3109
|
+
*/
|
|
3110
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
3111
|
+
};
|
|
3112
|
+
/**
|
|
3113
|
+
* Policy updateMany
|
|
3114
|
+
*/
|
|
3115
|
+
export type PolicyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3116
|
+
/**
|
|
3117
|
+
* The data used to update Policies.
|
|
3118
|
+
*/
|
|
3119
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyInput>;
|
|
3120
|
+
/**
|
|
3121
|
+
* Filter which Policies to update
|
|
3122
|
+
*/
|
|
3123
|
+
where?: Prisma.PolicyWhereInput;
|
|
3124
|
+
/**
|
|
3125
|
+
* Limit how many Policies to update.
|
|
3126
|
+
*/
|
|
3127
|
+
limit?: number;
|
|
3128
|
+
};
|
|
3129
|
+
/**
|
|
3130
|
+
* Policy updateManyAndReturn
|
|
3131
|
+
*/
|
|
3132
|
+
export type PolicyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3133
|
+
/**
|
|
3134
|
+
* Select specific fields to fetch from the Policy
|
|
3135
|
+
*/
|
|
3136
|
+
select?: Prisma.PolicySelectUpdateManyAndReturn<ExtArgs> | null;
|
|
3137
|
+
/**
|
|
3138
|
+
* Omit specific fields from the Policy
|
|
3139
|
+
*/
|
|
3140
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3141
|
+
/**
|
|
3142
|
+
* The data used to update Policies.
|
|
3143
|
+
*/
|
|
3144
|
+
data: Prisma.XOR<Prisma.PolicyUpdateManyMutationInput, Prisma.PolicyUncheckedUpdateManyInput>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Filter which Policies to update
|
|
3147
|
+
*/
|
|
3148
|
+
where?: Prisma.PolicyWhereInput;
|
|
3149
|
+
/**
|
|
3150
|
+
* Limit how many Policies to update.
|
|
3151
|
+
*/
|
|
3152
|
+
limit?: number;
|
|
3153
|
+
/**
|
|
3154
|
+
* Choose, which related nodes to fetch as well
|
|
3155
|
+
*/
|
|
3156
|
+
include?: Prisma.PolicyIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
3157
|
+
};
|
|
3158
|
+
/**
|
|
3159
|
+
* Policy upsert
|
|
3160
|
+
*/
|
|
3161
|
+
export type PolicyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3162
|
+
/**
|
|
3163
|
+
* Select specific fields to fetch from the Policy
|
|
3164
|
+
*/
|
|
3165
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
3166
|
+
/**
|
|
3167
|
+
* Omit specific fields from the Policy
|
|
3168
|
+
*/
|
|
3169
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3170
|
+
/**
|
|
3171
|
+
* Choose, which related nodes to fetch as well
|
|
3172
|
+
*/
|
|
3173
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
3174
|
+
/**
|
|
3175
|
+
* The filter to search for the Policy to update in case it exists.
|
|
3176
|
+
*/
|
|
3177
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
3178
|
+
/**
|
|
3179
|
+
* In case the Policy found by the `where` argument doesn't exist, create a new Policy with this data.
|
|
3180
|
+
*/
|
|
3181
|
+
create: Prisma.XOR<Prisma.PolicyCreateInput, Prisma.PolicyUncheckedCreateInput>;
|
|
3182
|
+
/**
|
|
3183
|
+
* In case the Policy was found with the provided `where` argument, update it with this data.
|
|
3184
|
+
*/
|
|
3185
|
+
update: Prisma.XOR<Prisma.PolicyUpdateInput, Prisma.PolicyUncheckedUpdateInput>;
|
|
3186
|
+
};
|
|
3187
|
+
/**
|
|
3188
|
+
* Policy delete
|
|
3189
|
+
*/
|
|
3190
|
+
export type PolicyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3191
|
+
/**
|
|
3192
|
+
* Select specific fields to fetch from the Policy
|
|
3193
|
+
*/
|
|
3194
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
3195
|
+
/**
|
|
3196
|
+
* Omit specific fields from the Policy
|
|
3197
|
+
*/
|
|
3198
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3199
|
+
/**
|
|
3200
|
+
* Choose, which related nodes to fetch as well
|
|
3201
|
+
*/
|
|
3202
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
3203
|
+
/**
|
|
3204
|
+
* Filter which Policy to delete.
|
|
3205
|
+
*/
|
|
3206
|
+
where: Prisma.PolicyWhereUniqueInput;
|
|
3207
|
+
};
|
|
3208
|
+
/**
|
|
3209
|
+
* Policy deleteMany
|
|
3210
|
+
*/
|
|
3211
|
+
export type PolicyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3212
|
+
/**
|
|
3213
|
+
* Filter which Policies to delete
|
|
3214
|
+
*/
|
|
3215
|
+
where?: Prisma.PolicyWhereInput;
|
|
3216
|
+
/**
|
|
3217
|
+
* Limit how many Policies to delete.
|
|
3218
|
+
*/
|
|
3219
|
+
limit?: number;
|
|
3220
|
+
};
|
|
3221
|
+
/**
|
|
3222
|
+
* Policy.assignee
|
|
3223
|
+
*/
|
|
3224
|
+
export type Policy$assigneeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3225
|
+
/**
|
|
3226
|
+
* Select specific fields to fetch from the Member
|
|
3227
|
+
*/
|
|
3228
|
+
select?: Prisma.MemberSelect<ExtArgs> | null;
|
|
3229
|
+
/**
|
|
3230
|
+
* Omit specific fields from the Member
|
|
3231
|
+
*/
|
|
3232
|
+
omit?: Prisma.MemberOmit<ExtArgs> | null;
|
|
3233
|
+
/**
|
|
3234
|
+
* Choose, which related nodes to fetch as well
|
|
3235
|
+
*/
|
|
3236
|
+
include?: Prisma.MemberInclude<ExtArgs> | null;
|
|
3237
|
+
where?: Prisma.MemberWhereInput;
|
|
3238
|
+
};
|
|
3239
|
+
/**
|
|
3240
|
+
* Policy.approver
|
|
3241
|
+
*/
|
|
3242
|
+
export type Policy$approverArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3243
|
+
/**
|
|
3244
|
+
* Select specific fields to fetch from the Member
|
|
3245
|
+
*/
|
|
3246
|
+
select?: Prisma.MemberSelect<ExtArgs> | null;
|
|
3247
|
+
/**
|
|
3248
|
+
* Omit specific fields from the Member
|
|
3249
|
+
*/
|
|
3250
|
+
omit?: Prisma.MemberOmit<ExtArgs> | null;
|
|
3251
|
+
/**
|
|
3252
|
+
* Choose, which related nodes to fetch as well
|
|
3253
|
+
*/
|
|
3254
|
+
include?: Prisma.MemberInclude<ExtArgs> | null;
|
|
3255
|
+
where?: Prisma.MemberWhereInput;
|
|
3256
|
+
};
|
|
3257
|
+
/**
|
|
3258
|
+
* Policy.policyTemplate
|
|
3259
|
+
*/
|
|
3260
|
+
export type Policy$policyTemplateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3261
|
+
/**
|
|
3262
|
+
* Select specific fields to fetch from the FrameworkEditorPolicyTemplate
|
|
3263
|
+
*/
|
|
3264
|
+
select?: Prisma.FrameworkEditorPolicyTemplateSelect<ExtArgs> | null;
|
|
3265
|
+
/**
|
|
3266
|
+
* Omit specific fields from the FrameworkEditorPolicyTemplate
|
|
3267
|
+
*/
|
|
3268
|
+
omit?: Prisma.FrameworkEditorPolicyTemplateOmit<ExtArgs> | null;
|
|
3269
|
+
/**
|
|
3270
|
+
* Choose, which related nodes to fetch as well
|
|
3271
|
+
*/
|
|
3272
|
+
include?: Prisma.FrameworkEditorPolicyTemplateInclude<ExtArgs> | null;
|
|
3273
|
+
where?: Prisma.FrameworkEditorPolicyTemplateWhereInput;
|
|
3274
|
+
};
|
|
3275
|
+
/**
|
|
3276
|
+
* Policy.controls
|
|
3277
|
+
*/
|
|
3278
|
+
export type Policy$controlsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3279
|
+
/**
|
|
3280
|
+
* Select specific fields to fetch from the Control
|
|
3281
|
+
*/
|
|
3282
|
+
select?: Prisma.ControlSelect<ExtArgs> | null;
|
|
3283
|
+
/**
|
|
3284
|
+
* Omit specific fields from the Control
|
|
3285
|
+
*/
|
|
3286
|
+
omit?: Prisma.ControlOmit<ExtArgs> | null;
|
|
3287
|
+
/**
|
|
3288
|
+
* Choose, which related nodes to fetch as well
|
|
3289
|
+
*/
|
|
3290
|
+
include?: Prisma.ControlInclude<ExtArgs> | null;
|
|
3291
|
+
where?: Prisma.ControlWhereInput;
|
|
3292
|
+
orderBy?: Prisma.ControlOrderByWithRelationInput | Prisma.ControlOrderByWithRelationInput[];
|
|
3293
|
+
cursor?: Prisma.ControlWhereUniqueInput;
|
|
3294
|
+
take?: number;
|
|
3295
|
+
skip?: number;
|
|
3296
|
+
distinct?: Prisma.ControlScalarFieldEnum | Prisma.ControlScalarFieldEnum[];
|
|
3297
|
+
};
|
|
3298
|
+
/**
|
|
3299
|
+
* Policy.currentVersion
|
|
3300
|
+
*/
|
|
3301
|
+
export type Policy$currentVersionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3302
|
+
/**
|
|
3303
|
+
* Select specific fields to fetch from the PolicyVersion
|
|
3304
|
+
*/
|
|
3305
|
+
select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
|
|
3306
|
+
/**
|
|
3307
|
+
* Omit specific fields from the PolicyVersion
|
|
3308
|
+
*/
|
|
3309
|
+
omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
|
|
3310
|
+
/**
|
|
3311
|
+
* Choose, which related nodes to fetch as well
|
|
3312
|
+
*/
|
|
3313
|
+
include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
|
|
3314
|
+
where?: Prisma.PolicyVersionWhereInput;
|
|
3315
|
+
};
|
|
3316
|
+
/**
|
|
3317
|
+
* Policy.versions
|
|
3318
|
+
*/
|
|
3319
|
+
export type Policy$versionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3320
|
+
/**
|
|
3321
|
+
* Select specific fields to fetch from the PolicyVersion
|
|
3322
|
+
*/
|
|
3323
|
+
select?: Prisma.PolicyVersionSelect<ExtArgs> | null;
|
|
3324
|
+
/**
|
|
3325
|
+
* Omit specific fields from the PolicyVersion
|
|
3326
|
+
*/
|
|
3327
|
+
omit?: Prisma.PolicyVersionOmit<ExtArgs> | null;
|
|
3328
|
+
/**
|
|
3329
|
+
* Choose, which related nodes to fetch as well
|
|
3330
|
+
*/
|
|
3331
|
+
include?: Prisma.PolicyVersionInclude<ExtArgs> | null;
|
|
3332
|
+
where?: Prisma.PolicyVersionWhereInput;
|
|
3333
|
+
orderBy?: Prisma.PolicyVersionOrderByWithRelationInput | Prisma.PolicyVersionOrderByWithRelationInput[];
|
|
3334
|
+
cursor?: Prisma.PolicyVersionWhereUniqueInput;
|
|
3335
|
+
take?: number;
|
|
3336
|
+
skip?: number;
|
|
3337
|
+
distinct?: Prisma.PolicyVersionScalarFieldEnum | Prisma.PolicyVersionScalarFieldEnum[];
|
|
3338
|
+
};
|
|
3339
|
+
/**
|
|
3340
|
+
* Policy without action
|
|
3341
|
+
*/
|
|
3342
|
+
export type PolicyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3343
|
+
/**
|
|
3344
|
+
* Select specific fields to fetch from the Policy
|
|
3345
|
+
*/
|
|
3346
|
+
select?: Prisma.PolicySelect<ExtArgs> | null;
|
|
3347
|
+
/**
|
|
3348
|
+
* Omit specific fields from the Policy
|
|
3349
|
+
*/
|
|
3350
|
+
omit?: Prisma.PolicyOmit<ExtArgs> | null;
|
|
3351
|
+
/**
|
|
3352
|
+
* Choose, which related nodes to fetch as well
|
|
3353
|
+
*/
|
|
3354
|
+
include?: Prisma.PolicyInclude<ExtArgs> | null;
|
|
3355
|
+
};
|
|
3356
|
+
//# sourceMappingURL=Policy.d.ts.map
|