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