@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,1808 @@
|
|
|
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 Questionnaire
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type QuestionnaireModel = runtime.Types.Result.DefaultSelection<Prisma.$QuestionnairePayload>;
|
|
9
|
+
export type AggregateQuestionnaire = {
|
|
10
|
+
_count: QuestionnaireCountAggregateOutputType | null;
|
|
11
|
+
_avg: QuestionnaireAvgAggregateOutputType | null;
|
|
12
|
+
_sum: QuestionnaireSumAggregateOutputType | null;
|
|
13
|
+
_min: QuestionnaireMinAggregateOutputType | null;
|
|
14
|
+
_max: QuestionnaireMaxAggregateOutputType | null;
|
|
15
|
+
};
|
|
16
|
+
export type QuestionnaireAvgAggregateOutputType = {
|
|
17
|
+
fileSize: number | null;
|
|
18
|
+
totalQuestions: number | null;
|
|
19
|
+
answeredQuestions: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type QuestionnaireSumAggregateOutputType = {
|
|
22
|
+
fileSize: number | null;
|
|
23
|
+
totalQuestions: number | null;
|
|
24
|
+
answeredQuestions: number | null;
|
|
25
|
+
};
|
|
26
|
+
export type QuestionnaireMinAggregateOutputType = {
|
|
27
|
+
id: string | null;
|
|
28
|
+
filename: string | null;
|
|
29
|
+
s3Key: string | null;
|
|
30
|
+
fileType: string | null;
|
|
31
|
+
fileSize: number | null;
|
|
32
|
+
status: $Enums.QuestionnaireStatus | null;
|
|
33
|
+
parsedAt: Date | null;
|
|
34
|
+
totalQuestions: number | null;
|
|
35
|
+
answeredQuestions: number | null;
|
|
36
|
+
source: string | null;
|
|
37
|
+
createdAt: Date | null;
|
|
38
|
+
updatedAt: Date | null;
|
|
39
|
+
organizationId: string | null;
|
|
40
|
+
};
|
|
41
|
+
export type QuestionnaireMaxAggregateOutputType = {
|
|
42
|
+
id: string | null;
|
|
43
|
+
filename: string | null;
|
|
44
|
+
s3Key: string | null;
|
|
45
|
+
fileType: string | null;
|
|
46
|
+
fileSize: number | null;
|
|
47
|
+
status: $Enums.QuestionnaireStatus | null;
|
|
48
|
+
parsedAt: Date | null;
|
|
49
|
+
totalQuestions: number | null;
|
|
50
|
+
answeredQuestions: number | null;
|
|
51
|
+
source: string | null;
|
|
52
|
+
createdAt: Date | null;
|
|
53
|
+
updatedAt: Date | null;
|
|
54
|
+
organizationId: string | null;
|
|
55
|
+
};
|
|
56
|
+
export type QuestionnaireCountAggregateOutputType = {
|
|
57
|
+
id: number;
|
|
58
|
+
filename: number;
|
|
59
|
+
s3Key: number;
|
|
60
|
+
fileType: number;
|
|
61
|
+
fileSize: number;
|
|
62
|
+
status: number;
|
|
63
|
+
parsedAt: number;
|
|
64
|
+
totalQuestions: number;
|
|
65
|
+
answeredQuestions: number;
|
|
66
|
+
source: number;
|
|
67
|
+
createdAt: number;
|
|
68
|
+
updatedAt: number;
|
|
69
|
+
organizationId: number;
|
|
70
|
+
_all: number;
|
|
71
|
+
};
|
|
72
|
+
export type QuestionnaireAvgAggregateInputType = {
|
|
73
|
+
fileSize?: true;
|
|
74
|
+
totalQuestions?: true;
|
|
75
|
+
answeredQuestions?: true;
|
|
76
|
+
};
|
|
77
|
+
export type QuestionnaireSumAggregateInputType = {
|
|
78
|
+
fileSize?: true;
|
|
79
|
+
totalQuestions?: true;
|
|
80
|
+
answeredQuestions?: true;
|
|
81
|
+
};
|
|
82
|
+
export type QuestionnaireMinAggregateInputType = {
|
|
83
|
+
id?: true;
|
|
84
|
+
filename?: true;
|
|
85
|
+
s3Key?: true;
|
|
86
|
+
fileType?: true;
|
|
87
|
+
fileSize?: true;
|
|
88
|
+
status?: true;
|
|
89
|
+
parsedAt?: true;
|
|
90
|
+
totalQuestions?: true;
|
|
91
|
+
answeredQuestions?: true;
|
|
92
|
+
source?: true;
|
|
93
|
+
createdAt?: true;
|
|
94
|
+
updatedAt?: true;
|
|
95
|
+
organizationId?: true;
|
|
96
|
+
};
|
|
97
|
+
export type QuestionnaireMaxAggregateInputType = {
|
|
98
|
+
id?: true;
|
|
99
|
+
filename?: true;
|
|
100
|
+
s3Key?: true;
|
|
101
|
+
fileType?: true;
|
|
102
|
+
fileSize?: true;
|
|
103
|
+
status?: true;
|
|
104
|
+
parsedAt?: true;
|
|
105
|
+
totalQuestions?: true;
|
|
106
|
+
answeredQuestions?: true;
|
|
107
|
+
source?: true;
|
|
108
|
+
createdAt?: true;
|
|
109
|
+
updatedAt?: true;
|
|
110
|
+
organizationId?: true;
|
|
111
|
+
};
|
|
112
|
+
export type QuestionnaireCountAggregateInputType = {
|
|
113
|
+
id?: true;
|
|
114
|
+
filename?: true;
|
|
115
|
+
s3Key?: true;
|
|
116
|
+
fileType?: true;
|
|
117
|
+
fileSize?: true;
|
|
118
|
+
status?: true;
|
|
119
|
+
parsedAt?: true;
|
|
120
|
+
totalQuestions?: true;
|
|
121
|
+
answeredQuestions?: true;
|
|
122
|
+
source?: true;
|
|
123
|
+
createdAt?: true;
|
|
124
|
+
updatedAt?: true;
|
|
125
|
+
organizationId?: true;
|
|
126
|
+
_all?: true;
|
|
127
|
+
};
|
|
128
|
+
export type QuestionnaireAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
129
|
+
/**
|
|
130
|
+
* Filter which Questionnaire to aggregate.
|
|
131
|
+
*/
|
|
132
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
133
|
+
/**
|
|
134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
135
|
+
*
|
|
136
|
+
* Determine the order of Questionnaires to fetch.
|
|
137
|
+
*/
|
|
138
|
+
orderBy?: Prisma.QuestionnaireOrderByWithRelationInput | Prisma.QuestionnaireOrderByWithRelationInput[];
|
|
139
|
+
/**
|
|
140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
141
|
+
*
|
|
142
|
+
* Sets the start position
|
|
143
|
+
*/
|
|
144
|
+
cursor?: Prisma.QuestionnaireWhereUniqueInput;
|
|
145
|
+
/**
|
|
146
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
147
|
+
*
|
|
148
|
+
* Take `±n` Questionnaires from the position of the cursor.
|
|
149
|
+
*/
|
|
150
|
+
take?: number;
|
|
151
|
+
/**
|
|
152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
153
|
+
*
|
|
154
|
+
* Skip the first `n` Questionnaires.
|
|
155
|
+
*/
|
|
156
|
+
skip?: number;
|
|
157
|
+
/**
|
|
158
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
159
|
+
*
|
|
160
|
+
* Count returned Questionnaires
|
|
161
|
+
**/
|
|
162
|
+
_count?: true | QuestionnaireCountAggregateInputType;
|
|
163
|
+
/**
|
|
164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
165
|
+
*
|
|
166
|
+
* Select which fields to average
|
|
167
|
+
**/
|
|
168
|
+
_avg?: QuestionnaireAvgAggregateInputType;
|
|
169
|
+
/**
|
|
170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
171
|
+
*
|
|
172
|
+
* Select which fields to sum
|
|
173
|
+
**/
|
|
174
|
+
_sum?: QuestionnaireSumAggregateInputType;
|
|
175
|
+
/**
|
|
176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
177
|
+
*
|
|
178
|
+
* Select which fields to find the minimum value
|
|
179
|
+
**/
|
|
180
|
+
_min?: QuestionnaireMinAggregateInputType;
|
|
181
|
+
/**
|
|
182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
183
|
+
*
|
|
184
|
+
* Select which fields to find the maximum value
|
|
185
|
+
**/
|
|
186
|
+
_max?: QuestionnaireMaxAggregateInputType;
|
|
187
|
+
};
|
|
188
|
+
export type GetQuestionnaireAggregateType<T extends QuestionnaireAggregateArgs> = {
|
|
189
|
+
[P in keyof T & keyof AggregateQuestionnaire]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateQuestionnaire[P]> : Prisma.GetScalarType<T[P], AggregateQuestionnaire[P]>;
|
|
190
|
+
};
|
|
191
|
+
export type QuestionnaireGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
192
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
193
|
+
orderBy?: Prisma.QuestionnaireOrderByWithAggregationInput | Prisma.QuestionnaireOrderByWithAggregationInput[];
|
|
194
|
+
by: Prisma.QuestionnaireScalarFieldEnum[] | Prisma.QuestionnaireScalarFieldEnum;
|
|
195
|
+
having?: Prisma.QuestionnaireScalarWhereWithAggregatesInput;
|
|
196
|
+
take?: number;
|
|
197
|
+
skip?: number;
|
|
198
|
+
_count?: QuestionnaireCountAggregateInputType | true;
|
|
199
|
+
_avg?: QuestionnaireAvgAggregateInputType;
|
|
200
|
+
_sum?: QuestionnaireSumAggregateInputType;
|
|
201
|
+
_min?: QuestionnaireMinAggregateInputType;
|
|
202
|
+
_max?: QuestionnaireMaxAggregateInputType;
|
|
203
|
+
};
|
|
204
|
+
export type QuestionnaireGroupByOutputType = {
|
|
205
|
+
id: string;
|
|
206
|
+
filename: string;
|
|
207
|
+
s3Key: string;
|
|
208
|
+
fileType: string;
|
|
209
|
+
fileSize: number;
|
|
210
|
+
status: $Enums.QuestionnaireStatus;
|
|
211
|
+
parsedAt: Date | null;
|
|
212
|
+
totalQuestions: number;
|
|
213
|
+
answeredQuestions: number;
|
|
214
|
+
source: string;
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
updatedAt: Date;
|
|
217
|
+
organizationId: string;
|
|
218
|
+
_count: QuestionnaireCountAggregateOutputType | null;
|
|
219
|
+
_avg: QuestionnaireAvgAggregateOutputType | null;
|
|
220
|
+
_sum: QuestionnaireSumAggregateOutputType | null;
|
|
221
|
+
_min: QuestionnaireMinAggregateOutputType | null;
|
|
222
|
+
_max: QuestionnaireMaxAggregateOutputType | null;
|
|
223
|
+
};
|
|
224
|
+
export type GetQuestionnaireGroupByPayload<T extends QuestionnaireGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<QuestionnaireGroupByOutputType, T['by']> & {
|
|
225
|
+
[P in ((keyof T) & (keyof QuestionnaireGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], QuestionnaireGroupByOutputType[P]> : Prisma.GetScalarType<T[P], QuestionnaireGroupByOutputType[P]>;
|
|
226
|
+
}>>;
|
|
227
|
+
export type QuestionnaireWhereInput = {
|
|
228
|
+
AND?: Prisma.QuestionnaireWhereInput | Prisma.QuestionnaireWhereInput[];
|
|
229
|
+
OR?: Prisma.QuestionnaireWhereInput[];
|
|
230
|
+
NOT?: Prisma.QuestionnaireWhereInput | Prisma.QuestionnaireWhereInput[];
|
|
231
|
+
id?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
232
|
+
filename?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
233
|
+
s3Key?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
234
|
+
fileType?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
235
|
+
fileSize?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
236
|
+
status?: Prisma.EnumQuestionnaireStatusFilter<"Questionnaire"> | $Enums.QuestionnaireStatus;
|
|
237
|
+
parsedAt?: Prisma.DateTimeNullableFilter<"Questionnaire"> | Date | string | null;
|
|
238
|
+
totalQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
239
|
+
answeredQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
240
|
+
source?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
241
|
+
createdAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
242
|
+
updatedAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
243
|
+
organizationId?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
244
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
245
|
+
questions?: Prisma.QuestionnaireQuestionAnswerListRelationFilter;
|
|
246
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerListRelationFilter;
|
|
247
|
+
};
|
|
248
|
+
export type QuestionnaireOrderByWithRelationInput = {
|
|
249
|
+
id?: Prisma.SortOrder;
|
|
250
|
+
filename?: Prisma.SortOrder;
|
|
251
|
+
s3Key?: Prisma.SortOrder;
|
|
252
|
+
fileType?: Prisma.SortOrder;
|
|
253
|
+
fileSize?: Prisma.SortOrder;
|
|
254
|
+
status?: Prisma.SortOrder;
|
|
255
|
+
parsedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
256
|
+
totalQuestions?: Prisma.SortOrder;
|
|
257
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
258
|
+
source?: Prisma.SortOrder;
|
|
259
|
+
createdAt?: Prisma.SortOrder;
|
|
260
|
+
updatedAt?: Prisma.SortOrder;
|
|
261
|
+
organizationId?: Prisma.SortOrder;
|
|
262
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
263
|
+
questions?: Prisma.QuestionnaireQuestionAnswerOrderByRelationAggregateInput;
|
|
264
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerOrderByRelationAggregateInput;
|
|
265
|
+
};
|
|
266
|
+
export type QuestionnaireWhereUniqueInput = Prisma.AtLeast<{
|
|
267
|
+
id?: string;
|
|
268
|
+
AND?: Prisma.QuestionnaireWhereInput | Prisma.QuestionnaireWhereInput[];
|
|
269
|
+
OR?: Prisma.QuestionnaireWhereInput[];
|
|
270
|
+
NOT?: Prisma.QuestionnaireWhereInput | Prisma.QuestionnaireWhereInput[];
|
|
271
|
+
filename?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
272
|
+
s3Key?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
273
|
+
fileType?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
274
|
+
fileSize?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
275
|
+
status?: Prisma.EnumQuestionnaireStatusFilter<"Questionnaire"> | $Enums.QuestionnaireStatus;
|
|
276
|
+
parsedAt?: Prisma.DateTimeNullableFilter<"Questionnaire"> | Date | string | null;
|
|
277
|
+
totalQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
278
|
+
answeredQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
279
|
+
source?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
280
|
+
createdAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
281
|
+
updatedAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
282
|
+
organizationId?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
283
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
284
|
+
questions?: Prisma.QuestionnaireQuestionAnswerListRelationFilter;
|
|
285
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerListRelationFilter;
|
|
286
|
+
}, "id">;
|
|
287
|
+
export type QuestionnaireOrderByWithAggregationInput = {
|
|
288
|
+
id?: Prisma.SortOrder;
|
|
289
|
+
filename?: Prisma.SortOrder;
|
|
290
|
+
s3Key?: Prisma.SortOrder;
|
|
291
|
+
fileType?: Prisma.SortOrder;
|
|
292
|
+
fileSize?: Prisma.SortOrder;
|
|
293
|
+
status?: Prisma.SortOrder;
|
|
294
|
+
parsedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
295
|
+
totalQuestions?: Prisma.SortOrder;
|
|
296
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
297
|
+
source?: Prisma.SortOrder;
|
|
298
|
+
createdAt?: Prisma.SortOrder;
|
|
299
|
+
updatedAt?: Prisma.SortOrder;
|
|
300
|
+
organizationId?: Prisma.SortOrder;
|
|
301
|
+
_count?: Prisma.QuestionnaireCountOrderByAggregateInput;
|
|
302
|
+
_avg?: Prisma.QuestionnaireAvgOrderByAggregateInput;
|
|
303
|
+
_max?: Prisma.QuestionnaireMaxOrderByAggregateInput;
|
|
304
|
+
_min?: Prisma.QuestionnaireMinOrderByAggregateInput;
|
|
305
|
+
_sum?: Prisma.QuestionnaireSumOrderByAggregateInput;
|
|
306
|
+
};
|
|
307
|
+
export type QuestionnaireScalarWhereWithAggregatesInput = {
|
|
308
|
+
AND?: Prisma.QuestionnaireScalarWhereWithAggregatesInput | Prisma.QuestionnaireScalarWhereWithAggregatesInput[];
|
|
309
|
+
OR?: Prisma.QuestionnaireScalarWhereWithAggregatesInput[];
|
|
310
|
+
NOT?: Prisma.QuestionnaireScalarWhereWithAggregatesInput | Prisma.QuestionnaireScalarWhereWithAggregatesInput[];
|
|
311
|
+
id?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
312
|
+
filename?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
313
|
+
s3Key?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
314
|
+
fileType?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
315
|
+
fileSize?: Prisma.IntWithAggregatesFilter<"Questionnaire"> | number;
|
|
316
|
+
status?: Prisma.EnumQuestionnaireStatusWithAggregatesFilter<"Questionnaire"> | $Enums.QuestionnaireStatus;
|
|
317
|
+
parsedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Questionnaire"> | Date | string | null;
|
|
318
|
+
totalQuestions?: Prisma.IntWithAggregatesFilter<"Questionnaire"> | number;
|
|
319
|
+
answeredQuestions?: Prisma.IntWithAggregatesFilter<"Questionnaire"> | number;
|
|
320
|
+
source?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
321
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Questionnaire"> | Date | string;
|
|
322
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Questionnaire"> | Date | string;
|
|
323
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Questionnaire"> | string;
|
|
324
|
+
};
|
|
325
|
+
export type QuestionnaireCreateInput = {
|
|
326
|
+
id?: string;
|
|
327
|
+
filename: string;
|
|
328
|
+
s3Key: string;
|
|
329
|
+
fileType: string;
|
|
330
|
+
fileSize: number;
|
|
331
|
+
status?: $Enums.QuestionnaireStatus;
|
|
332
|
+
parsedAt?: Date | string | null;
|
|
333
|
+
totalQuestions?: number;
|
|
334
|
+
answeredQuestions?: number;
|
|
335
|
+
source?: string;
|
|
336
|
+
createdAt?: Date | string;
|
|
337
|
+
updatedAt?: Date | string;
|
|
338
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutQuestionnairesInput;
|
|
339
|
+
questions?: Prisma.QuestionnaireQuestionAnswerCreateNestedManyWithoutQuestionnaireInput;
|
|
340
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
341
|
+
};
|
|
342
|
+
export type QuestionnaireUncheckedCreateInput = {
|
|
343
|
+
id?: string;
|
|
344
|
+
filename: string;
|
|
345
|
+
s3Key: string;
|
|
346
|
+
fileType: string;
|
|
347
|
+
fileSize: number;
|
|
348
|
+
status?: $Enums.QuestionnaireStatus;
|
|
349
|
+
parsedAt?: Date | string | null;
|
|
350
|
+
totalQuestions?: number;
|
|
351
|
+
answeredQuestions?: number;
|
|
352
|
+
source?: string;
|
|
353
|
+
createdAt?: Date | string;
|
|
354
|
+
updatedAt?: Date | string;
|
|
355
|
+
organizationId: string;
|
|
356
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedCreateNestedManyWithoutQuestionnaireInput;
|
|
357
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
358
|
+
};
|
|
359
|
+
export type QuestionnaireUpdateInput = {
|
|
360
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
361
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
362
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
363
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
364
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
365
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
366
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
367
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
368
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
369
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
370
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
371
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
372
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutQuestionnairesNestedInput;
|
|
373
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUpdateManyWithoutQuestionnaireNestedInput;
|
|
374
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
375
|
+
};
|
|
376
|
+
export type QuestionnaireUncheckedUpdateInput = {
|
|
377
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
378
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
379
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
380
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
381
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
382
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
383
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
384
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
385
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
386
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
387
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
388
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
389
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
390
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedUpdateManyWithoutQuestionnaireNestedInput;
|
|
391
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
392
|
+
};
|
|
393
|
+
export type QuestionnaireCreateManyInput = {
|
|
394
|
+
id?: string;
|
|
395
|
+
filename: string;
|
|
396
|
+
s3Key: string;
|
|
397
|
+
fileType: string;
|
|
398
|
+
fileSize: number;
|
|
399
|
+
status?: $Enums.QuestionnaireStatus;
|
|
400
|
+
parsedAt?: Date | string | null;
|
|
401
|
+
totalQuestions?: number;
|
|
402
|
+
answeredQuestions?: number;
|
|
403
|
+
source?: string;
|
|
404
|
+
createdAt?: Date | string;
|
|
405
|
+
updatedAt?: Date | string;
|
|
406
|
+
organizationId: string;
|
|
407
|
+
};
|
|
408
|
+
export type QuestionnaireUpdateManyMutationInput = {
|
|
409
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
410
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
411
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
412
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
413
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
414
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
415
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
416
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
417
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
418
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
419
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
420
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
421
|
+
};
|
|
422
|
+
export type QuestionnaireUncheckedUpdateManyInput = {
|
|
423
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
424
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
425
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
426
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
427
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
428
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
429
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
430
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
431
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
432
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
433
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
434
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
435
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
436
|
+
};
|
|
437
|
+
export type QuestionnaireListRelationFilter = {
|
|
438
|
+
every?: Prisma.QuestionnaireWhereInput;
|
|
439
|
+
some?: Prisma.QuestionnaireWhereInput;
|
|
440
|
+
none?: Prisma.QuestionnaireWhereInput;
|
|
441
|
+
};
|
|
442
|
+
export type QuestionnaireOrderByRelationAggregateInput = {
|
|
443
|
+
_count?: Prisma.SortOrder;
|
|
444
|
+
};
|
|
445
|
+
export type QuestionnaireCountOrderByAggregateInput = {
|
|
446
|
+
id?: Prisma.SortOrder;
|
|
447
|
+
filename?: Prisma.SortOrder;
|
|
448
|
+
s3Key?: Prisma.SortOrder;
|
|
449
|
+
fileType?: Prisma.SortOrder;
|
|
450
|
+
fileSize?: Prisma.SortOrder;
|
|
451
|
+
status?: Prisma.SortOrder;
|
|
452
|
+
parsedAt?: Prisma.SortOrder;
|
|
453
|
+
totalQuestions?: Prisma.SortOrder;
|
|
454
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
455
|
+
source?: Prisma.SortOrder;
|
|
456
|
+
createdAt?: Prisma.SortOrder;
|
|
457
|
+
updatedAt?: Prisma.SortOrder;
|
|
458
|
+
organizationId?: Prisma.SortOrder;
|
|
459
|
+
};
|
|
460
|
+
export type QuestionnaireAvgOrderByAggregateInput = {
|
|
461
|
+
fileSize?: Prisma.SortOrder;
|
|
462
|
+
totalQuestions?: Prisma.SortOrder;
|
|
463
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
464
|
+
};
|
|
465
|
+
export type QuestionnaireMaxOrderByAggregateInput = {
|
|
466
|
+
id?: Prisma.SortOrder;
|
|
467
|
+
filename?: Prisma.SortOrder;
|
|
468
|
+
s3Key?: Prisma.SortOrder;
|
|
469
|
+
fileType?: Prisma.SortOrder;
|
|
470
|
+
fileSize?: Prisma.SortOrder;
|
|
471
|
+
status?: Prisma.SortOrder;
|
|
472
|
+
parsedAt?: Prisma.SortOrder;
|
|
473
|
+
totalQuestions?: Prisma.SortOrder;
|
|
474
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
475
|
+
source?: Prisma.SortOrder;
|
|
476
|
+
createdAt?: Prisma.SortOrder;
|
|
477
|
+
updatedAt?: Prisma.SortOrder;
|
|
478
|
+
organizationId?: Prisma.SortOrder;
|
|
479
|
+
};
|
|
480
|
+
export type QuestionnaireMinOrderByAggregateInput = {
|
|
481
|
+
id?: Prisma.SortOrder;
|
|
482
|
+
filename?: Prisma.SortOrder;
|
|
483
|
+
s3Key?: Prisma.SortOrder;
|
|
484
|
+
fileType?: Prisma.SortOrder;
|
|
485
|
+
fileSize?: Prisma.SortOrder;
|
|
486
|
+
status?: Prisma.SortOrder;
|
|
487
|
+
parsedAt?: Prisma.SortOrder;
|
|
488
|
+
totalQuestions?: Prisma.SortOrder;
|
|
489
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
490
|
+
source?: Prisma.SortOrder;
|
|
491
|
+
createdAt?: Prisma.SortOrder;
|
|
492
|
+
updatedAt?: Prisma.SortOrder;
|
|
493
|
+
organizationId?: Prisma.SortOrder;
|
|
494
|
+
};
|
|
495
|
+
export type QuestionnaireSumOrderByAggregateInput = {
|
|
496
|
+
fileSize?: Prisma.SortOrder;
|
|
497
|
+
totalQuestions?: Prisma.SortOrder;
|
|
498
|
+
answeredQuestions?: Prisma.SortOrder;
|
|
499
|
+
};
|
|
500
|
+
export type QuestionnaireScalarRelationFilter = {
|
|
501
|
+
is?: Prisma.QuestionnaireWhereInput;
|
|
502
|
+
isNot?: Prisma.QuestionnaireWhereInput;
|
|
503
|
+
};
|
|
504
|
+
export type QuestionnaireNullableScalarRelationFilter = {
|
|
505
|
+
is?: Prisma.QuestionnaireWhereInput | null;
|
|
506
|
+
isNot?: Prisma.QuestionnaireWhereInput | null;
|
|
507
|
+
};
|
|
508
|
+
export type QuestionnaireCreateNestedManyWithoutOrganizationInput = {
|
|
509
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput> | Prisma.QuestionnaireCreateWithoutOrganizationInput[] | Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput[];
|
|
510
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput | Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput[];
|
|
511
|
+
createMany?: Prisma.QuestionnaireCreateManyOrganizationInputEnvelope;
|
|
512
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
513
|
+
};
|
|
514
|
+
export type QuestionnaireUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
515
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput> | Prisma.QuestionnaireCreateWithoutOrganizationInput[] | Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput[];
|
|
516
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput | Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput[];
|
|
517
|
+
createMany?: Prisma.QuestionnaireCreateManyOrganizationInputEnvelope;
|
|
518
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
519
|
+
};
|
|
520
|
+
export type QuestionnaireUpdateManyWithoutOrganizationNestedInput = {
|
|
521
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput> | Prisma.QuestionnaireCreateWithoutOrganizationInput[] | Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput[];
|
|
522
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput | Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput[];
|
|
523
|
+
upsert?: Prisma.QuestionnaireUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.QuestionnaireUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
524
|
+
createMany?: Prisma.QuestionnaireCreateManyOrganizationInputEnvelope;
|
|
525
|
+
set?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
526
|
+
disconnect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
527
|
+
delete?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
528
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
529
|
+
update?: Prisma.QuestionnaireUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.QuestionnaireUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
530
|
+
updateMany?: Prisma.QuestionnaireUpdateManyWithWhereWithoutOrganizationInput | Prisma.QuestionnaireUpdateManyWithWhereWithoutOrganizationInput[];
|
|
531
|
+
deleteMany?: Prisma.QuestionnaireScalarWhereInput | Prisma.QuestionnaireScalarWhereInput[];
|
|
532
|
+
};
|
|
533
|
+
export type QuestionnaireUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
534
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput> | Prisma.QuestionnaireCreateWithoutOrganizationInput[] | Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput[];
|
|
535
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput | Prisma.QuestionnaireCreateOrConnectWithoutOrganizationInput[];
|
|
536
|
+
upsert?: Prisma.QuestionnaireUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.QuestionnaireUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
537
|
+
createMany?: Prisma.QuestionnaireCreateManyOrganizationInputEnvelope;
|
|
538
|
+
set?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
539
|
+
disconnect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
540
|
+
delete?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
541
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput | Prisma.QuestionnaireWhereUniqueInput[];
|
|
542
|
+
update?: Prisma.QuestionnaireUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.QuestionnaireUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
543
|
+
updateMany?: Prisma.QuestionnaireUpdateManyWithWhereWithoutOrganizationInput | Prisma.QuestionnaireUpdateManyWithWhereWithoutOrganizationInput[];
|
|
544
|
+
deleteMany?: Prisma.QuestionnaireScalarWhereInput | Prisma.QuestionnaireScalarWhereInput[];
|
|
545
|
+
};
|
|
546
|
+
export type EnumQuestionnaireStatusFieldUpdateOperationsInput = {
|
|
547
|
+
set?: $Enums.QuestionnaireStatus;
|
|
548
|
+
};
|
|
549
|
+
export type QuestionnaireCreateNestedOneWithoutQuestionsInput = {
|
|
550
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedCreateWithoutQuestionsInput>;
|
|
551
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutQuestionsInput;
|
|
552
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput;
|
|
553
|
+
};
|
|
554
|
+
export type QuestionnaireUpdateOneRequiredWithoutQuestionsNestedInput = {
|
|
555
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedCreateWithoutQuestionsInput>;
|
|
556
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutQuestionsInput;
|
|
557
|
+
upsert?: Prisma.QuestionnaireUpsertWithoutQuestionsInput;
|
|
558
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput;
|
|
559
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.QuestionnaireUpdateToOneWithWhereWithoutQuestionsInput, Prisma.QuestionnaireUpdateWithoutQuestionsInput>, Prisma.QuestionnaireUncheckedUpdateWithoutQuestionsInput>;
|
|
560
|
+
};
|
|
561
|
+
export type QuestionnaireCreateNestedOneWithoutManualAnswersInput = {
|
|
562
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedCreateWithoutManualAnswersInput>;
|
|
563
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutManualAnswersInput;
|
|
564
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput;
|
|
565
|
+
};
|
|
566
|
+
export type QuestionnaireUpdateOneWithoutManualAnswersNestedInput = {
|
|
567
|
+
create?: Prisma.XOR<Prisma.QuestionnaireCreateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedCreateWithoutManualAnswersInput>;
|
|
568
|
+
connectOrCreate?: Prisma.QuestionnaireCreateOrConnectWithoutManualAnswersInput;
|
|
569
|
+
upsert?: Prisma.QuestionnaireUpsertWithoutManualAnswersInput;
|
|
570
|
+
disconnect?: Prisma.QuestionnaireWhereInput | boolean;
|
|
571
|
+
delete?: Prisma.QuestionnaireWhereInput | boolean;
|
|
572
|
+
connect?: Prisma.QuestionnaireWhereUniqueInput;
|
|
573
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.QuestionnaireUpdateToOneWithWhereWithoutManualAnswersInput, Prisma.QuestionnaireUpdateWithoutManualAnswersInput>, Prisma.QuestionnaireUncheckedUpdateWithoutManualAnswersInput>;
|
|
574
|
+
};
|
|
575
|
+
export type QuestionnaireCreateWithoutOrganizationInput = {
|
|
576
|
+
id?: string;
|
|
577
|
+
filename: string;
|
|
578
|
+
s3Key: string;
|
|
579
|
+
fileType: string;
|
|
580
|
+
fileSize: number;
|
|
581
|
+
status?: $Enums.QuestionnaireStatus;
|
|
582
|
+
parsedAt?: Date | string | null;
|
|
583
|
+
totalQuestions?: number;
|
|
584
|
+
answeredQuestions?: number;
|
|
585
|
+
source?: string;
|
|
586
|
+
createdAt?: Date | string;
|
|
587
|
+
updatedAt?: Date | string;
|
|
588
|
+
questions?: Prisma.QuestionnaireQuestionAnswerCreateNestedManyWithoutQuestionnaireInput;
|
|
589
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
590
|
+
};
|
|
591
|
+
export type QuestionnaireUncheckedCreateWithoutOrganizationInput = {
|
|
592
|
+
id?: string;
|
|
593
|
+
filename: string;
|
|
594
|
+
s3Key: string;
|
|
595
|
+
fileType: string;
|
|
596
|
+
fileSize: number;
|
|
597
|
+
status?: $Enums.QuestionnaireStatus;
|
|
598
|
+
parsedAt?: Date | string | null;
|
|
599
|
+
totalQuestions?: number;
|
|
600
|
+
answeredQuestions?: number;
|
|
601
|
+
source?: string;
|
|
602
|
+
createdAt?: Date | string;
|
|
603
|
+
updatedAt?: Date | string;
|
|
604
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedCreateNestedManyWithoutQuestionnaireInput;
|
|
605
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
606
|
+
};
|
|
607
|
+
export type QuestionnaireCreateOrConnectWithoutOrganizationInput = {
|
|
608
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
609
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput>;
|
|
610
|
+
};
|
|
611
|
+
export type QuestionnaireCreateManyOrganizationInputEnvelope = {
|
|
612
|
+
data: Prisma.QuestionnaireCreateManyOrganizationInput | Prisma.QuestionnaireCreateManyOrganizationInput[];
|
|
613
|
+
skipDuplicates?: boolean;
|
|
614
|
+
};
|
|
615
|
+
export type QuestionnaireUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
616
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
617
|
+
update: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedUpdateWithoutOrganizationInput>;
|
|
618
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedCreateWithoutOrganizationInput>;
|
|
619
|
+
};
|
|
620
|
+
export type QuestionnaireUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
621
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
622
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutOrganizationInput, Prisma.QuestionnaireUncheckedUpdateWithoutOrganizationInput>;
|
|
623
|
+
};
|
|
624
|
+
export type QuestionnaireUpdateManyWithWhereWithoutOrganizationInput = {
|
|
625
|
+
where: Prisma.QuestionnaireScalarWhereInput;
|
|
626
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateManyMutationInput, Prisma.QuestionnaireUncheckedUpdateManyWithoutOrganizationInput>;
|
|
627
|
+
};
|
|
628
|
+
export type QuestionnaireScalarWhereInput = {
|
|
629
|
+
AND?: Prisma.QuestionnaireScalarWhereInput | Prisma.QuestionnaireScalarWhereInput[];
|
|
630
|
+
OR?: Prisma.QuestionnaireScalarWhereInput[];
|
|
631
|
+
NOT?: Prisma.QuestionnaireScalarWhereInput | Prisma.QuestionnaireScalarWhereInput[];
|
|
632
|
+
id?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
633
|
+
filename?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
634
|
+
s3Key?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
635
|
+
fileType?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
636
|
+
fileSize?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
637
|
+
status?: Prisma.EnumQuestionnaireStatusFilter<"Questionnaire"> | $Enums.QuestionnaireStatus;
|
|
638
|
+
parsedAt?: Prisma.DateTimeNullableFilter<"Questionnaire"> | Date | string | null;
|
|
639
|
+
totalQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
640
|
+
answeredQuestions?: Prisma.IntFilter<"Questionnaire"> | number;
|
|
641
|
+
source?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
642
|
+
createdAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
643
|
+
updatedAt?: Prisma.DateTimeFilter<"Questionnaire"> | Date | string;
|
|
644
|
+
organizationId?: Prisma.StringFilter<"Questionnaire"> | string;
|
|
645
|
+
};
|
|
646
|
+
export type QuestionnaireCreateWithoutQuestionsInput = {
|
|
647
|
+
id?: string;
|
|
648
|
+
filename: string;
|
|
649
|
+
s3Key: string;
|
|
650
|
+
fileType: string;
|
|
651
|
+
fileSize: number;
|
|
652
|
+
status?: $Enums.QuestionnaireStatus;
|
|
653
|
+
parsedAt?: Date | string | null;
|
|
654
|
+
totalQuestions?: number;
|
|
655
|
+
answeredQuestions?: number;
|
|
656
|
+
source?: string;
|
|
657
|
+
createdAt?: Date | string;
|
|
658
|
+
updatedAt?: Date | string;
|
|
659
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutQuestionnairesInput;
|
|
660
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
661
|
+
};
|
|
662
|
+
export type QuestionnaireUncheckedCreateWithoutQuestionsInput = {
|
|
663
|
+
id?: string;
|
|
664
|
+
filename: string;
|
|
665
|
+
s3Key: string;
|
|
666
|
+
fileType: string;
|
|
667
|
+
fileSize: number;
|
|
668
|
+
status?: $Enums.QuestionnaireStatus;
|
|
669
|
+
parsedAt?: Date | string | null;
|
|
670
|
+
totalQuestions?: number;
|
|
671
|
+
answeredQuestions?: number;
|
|
672
|
+
source?: string;
|
|
673
|
+
createdAt?: Date | string;
|
|
674
|
+
updatedAt?: Date | string;
|
|
675
|
+
organizationId: string;
|
|
676
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedCreateNestedManyWithoutSourceQuestionnaireInput;
|
|
677
|
+
};
|
|
678
|
+
export type QuestionnaireCreateOrConnectWithoutQuestionsInput = {
|
|
679
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
680
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedCreateWithoutQuestionsInput>;
|
|
681
|
+
};
|
|
682
|
+
export type QuestionnaireUpsertWithoutQuestionsInput = {
|
|
683
|
+
update: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedUpdateWithoutQuestionsInput>;
|
|
684
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedCreateWithoutQuestionsInput>;
|
|
685
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
686
|
+
};
|
|
687
|
+
export type QuestionnaireUpdateToOneWithWhereWithoutQuestionsInput = {
|
|
688
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
689
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutQuestionsInput, Prisma.QuestionnaireUncheckedUpdateWithoutQuestionsInput>;
|
|
690
|
+
};
|
|
691
|
+
export type QuestionnaireUpdateWithoutQuestionsInput = {
|
|
692
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
693
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
694
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
695
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
696
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
697
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
698
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
699
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
700
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
701
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
702
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
703
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
704
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutQuestionnairesNestedInput;
|
|
705
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
706
|
+
};
|
|
707
|
+
export type QuestionnaireUncheckedUpdateWithoutQuestionsInput = {
|
|
708
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
709
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
710
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
711
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
712
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
713
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
714
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
715
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
716
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
717
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
718
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
719
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
720
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
721
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
722
|
+
};
|
|
723
|
+
export type QuestionnaireCreateWithoutManualAnswersInput = {
|
|
724
|
+
id?: string;
|
|
725
|
+
filename: string;
|
|
726
|
+
s3Key: string;
|
|
727
|
+
fileType: string;
|
|
728
|
+
fileSize: number;
|
|
729
|
+
status?: $Enums.QuestionnaireStatus;
|
|
730
|
+
parsedAt?: Date | string | null;
|
|
731
|
+
totalQuestions?: number;
|
|
732
|
+
answeredQuestions?: number;
|
|
733
|
+
source?: string;
|
|
734
|
+
createdAt?: Date | string;
|
|
735
|
+
updatedAt?: Date | string;
|
|
736
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutQuestionnairesInput;
|
|
737
|
+
questions?: Prisma.QuestionnaireQuestionAnswerCreateNestedManyWithoutQuestionnaireInput;
|
|
738
|
+
};
|
|
739
|
+
export type QuestionnaireUncheckedCreateWithoutManualAnswersInput = {
|
|
740
|
+
id?: string;
|
|
741
|
+
filename: string;
|
|
742
|
+
s3Key: string;
|
|
743
|
+
fileType: string;
|
|
744
|
+
fileSize: number;
|
|
745
|
+
status?: $Enums.QuestionnaireStatus;
|
|
746
|
+
parsedAt?: Date | string | null;
|
|
747
|
+
totalQuestions?: number;
|
|
748
|
+
answeredQuestions?: number;
|
|
749
|
+
source?: string;
|
|
750
|
+
createdAt?: Date | string;
|
|
751
|
+
updatedAt?: Date | string;
|
|
752
|
+
organizationId: string;
|
|
753
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedCreateNestedManyWithoutQuestionnaireInput;
|
|
754
|
+
};
|
|
755
|
+
export type QuestionnaireCreateOrConnectWithoutManualAnswersInput = {
|
|
756
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
757
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedCreateWithoutManualAnswersInput>;
|
|
758
|
+
};
|
|
759
|
+
export type QuestionnaireUpsertWithoutManualAnswersInput = {
|
|
760
|
+
update: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedUpdateWithoutManualAnswersInput>;
|
|
761
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedCreateWithoutManualAnswersInput>;
|
|
762
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
763
|
+
};
|
|
764
|
+
export type QuestionnaireUpdateToOneWithWhereWithoutManualAnswersInput = {
|
|
765
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
766
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateWithoutManualAnswersInput, Prisma.QuestionnaireUncheckedUpdateWithoutManualAnswersInput>;
|
|
767
|
+
};
|
|
768
|
+
export type QuestionnaireUpdateWithoutManualAnswersInput = {
|
|
769
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
770
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
771
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
772
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
773
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
774
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
775
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
776
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
777
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
778
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
779
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
780
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
781
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutQuestionnairesNestedInput;
|
|
782
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUpdateManyWithoutQuestionnaireNestedInput;
|
|
783
|
+
};
|
|
784
|
+
export type QuestionnaireUncheckedUpdateWithoutManualAnswersInput = {
|
|
785
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
786
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
787
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
788
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
789
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
790
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
791
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
792
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
793
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
794
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
795
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
796
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
797
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
798
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedUpdateManyWithoutQuestionnaireNestedInput;
|
|
799
|
+
};
|
|
800
|
+
export type QuestionnaireCreateManyOrganizationInput = {
|
|
801
|
+
id?: string;
|
|
802
|
+
filename: string;
|
|
803
|
+
s3Key: string;
|
|
804
|
+
fileType: string;
|
|
805
|
+
fileSize: number;
|
|
806
|
+
status?: $Enums.QuestionnaireStatus;
|
|
807
|
+
parsedAt?: Date | string | null;
|
|
808
|
+
totalQuestions?: number;
|
|
809
|
+
answeredQuestions?: number;
|
|
810
|
+
source?: string;
|
|
811
|
+
createdAt?: Date | string;
|
|
812
|
+
updatedAt?: Date | string;
|
|
813
|
+
};
|
|
814
|
+
export type QuestionnaireUpdateWithoutOrganizationInput = {
|
|
815
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
816
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
817
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
818
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
819
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
820
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
821
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
822
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
823
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
824
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
825
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
826
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
827
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUpdateManyWithoutQuestionnaireNestedInput;
|
|
828
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
829
|
+
};
|
|
830
|
+
export type QuestionnaireUncheckedUpdateWithoutOrganizationInput = {
|
|
831
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
832
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
833
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
834
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
835
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
836
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
837
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
838
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
839
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
840
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
841
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
842
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
843
|
+
questions?: Prisma.QuestionnaireQuestionAnswerUncheckedUpdateManyWithoutQuestionnaireNestedInput;
|
|
844
|
+
manualAnswers?: Prisma.SecurityQuestionnaireManualAnswerUncheckedUpdateManyWithoutSourceQuestionnaireNestedInput;
|
|
845
|
+
};
|
|
846
|
+
export type QuestionnaireUncheckedUpdateManyWithoutOrganizationInput = {
|
|
847
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
848
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
849
|
+
s3Key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
850
|
+
fileType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
851
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
852
|
+
status?: Prisma.EnumQuestionnaireStatusFieldUpdateOperationsInput | $Enums.QuestionnaireStatus;
|
|
853
|
+
parsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
854
|
+
totalQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
855
|
+
answeredQuestions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
856
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
857
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
858
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Count Type QuestionnaireCountOutputType
|
|
862
|
+
*/
|
|
863
|
+
export type QuestionnaireCountOutputType = {
|
|
864
|
+
questions: number;
|
|
865
|
+
manualAnswers: number;
|
|
866
|
+
};
|
|
867
|
+
export type QuestionnaireCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
868
|
+
questions?: boolean | QuestionnaireCountOutputTypeCountQuestionsArgs;
|
|
869
|
+
manualAnswers?: boolean | QuestionnaireCountOutputTypeCountManualAnswersArgs;
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* QuestionnaireCountOutputType without action
|
|
873
|
+
*/
|
|
874
|
+
export type QuestionnaireCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
875
|
+
/**
|
|
876
|
+
* Select specific fields to fetch from the QuestionnaireCountOutputType
|
|
877
|
+
*/
|
|
878
|
+
select?: Prisma.QuestionnaireCountOutputTypeSelect<ExtArgs> | null;
|
|
879
|
+
};
|
|
880
|
+
/**
|
|
881
|
+
* QuestionnaireCountOutputType without action
|
|
882
|
+
*/
|
|
883
|
+
export type QuestionnaireCountOutputTypeCountQuestionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
884
|
+
where?: Prisma.QuestionnaireQuestionAnswerWhereInput;
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* QuestionnaireCountOutputType without action
|
|
888
|
+
*/
|
|
889
|
+
export type QuestionnaireCountOutputTypeCountManualAnswersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
890
|
+
where?: Prisma.SecurityQuestionnaireManualAnswerWhereInput;
|
|
891
|
+
};
|
|
892
|
+
export type QuestionnaireSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
893
|
+
id?: boolean;
|
|
894
|
+
filename?: boolean;
|
|
895
|
+
s3Key?: boolean;
|
|
896
|
+
fileType?: boolean;
|
|
897
|
+
fileSize?: boolean;
|
|
898
|
+
status?: boolean;
|
|
899
|
+
parsedAt?: boolean;
|
|
900
|
+
totalQuestions?: boolean;
|
|
901
|
+
answeredQuestions?: boolean;
|
|
902
|
+
source?: boolean;
|
|
903
|
+
createdAt?: boolean;
|
|
904
|
+
updatedAt?: boolean;
|
|
905
|
+
organizationId?: boolean;
|
|
906
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
907
|
+
questions?: boolean | Prisma.Questionnaire$questionsArgs<ExtArgs>;
|
|
908
|
+
manualAnswers?: boolean | Prisma.Questionnaire$manualAnswersArgs<ExtArgs>;
|
|
909
|
+
_count?: boolean | Prisma.QuestionnaireCountOutputTypeDefaultArgs<ExtArgs>;
|
|
910
|
+
}, ExtArgs["result"]["questionnaire"]>;
|
|
911
|
+
export type QuestionnaireSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
912
|
+
id?: boolean;
|
|
913
|
+
filename?: boolean;
|
|
914
|
+
s3Key?: boolean;
|
|
915
|
+
fileType?: boolean;
|
|
916
|
+
fileSize?: boolean;
|
|
917
|
+
status?: boolean;
|
|
918
|
+
parsedAt?: boolean;
|
|
919
|
+
totalQuestions?: boolean;
|
|
920
|
+
answeredQuestions?: boolean;
|
|
921
|
+
source?: boolean;
|
|
922
|
+
createdAt?: boolean;
|
|
923
|
+
updatedAt?: boolean;
|
|
924
|
+
organizationId?: boolean;
|
|
925
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
926
|
+
}, ExtArgs["result"]["questionnaire"]>;
|
|
927
|
+
export type QuestionnaireSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
928
|
+
id?: boolean;
|
|
929
|
+
filename?: boolean;
|
|
930
|
+
s3Key?: boolean;
|
|
931
|
+
fileType?: boolean;
|
|
932
|
+
fileSize?: boolean;
|
|
933
|
+
status?: boolean;
|
|
934
|
+
parsedAt?: boolean;
|
|
935
|
+
totalQuestions?: boolean;
|
|
936
|
+
answeredQuestions?: boolean;
|
|
937
|
+
source?: boolean;
|
|
938
|
+
createdAt?: boolean;
|
|
939
|
+
updatedAt?: boolean;
|
|
940
|
+
organizationId?: boolean;
|
|
941
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
942
|
+
}, ExtArgs["result"]["questionnaire"]>;
|
|
943
|
+
export type QuestionnaireSelectScalar = {
|
|
944
|
+
id?: boolean;
|
|
945
|
+
filename?: boolean;
|
|
946
|
+
s3Key?: boolean;
|
|
947
|
+
fileType?: boolean;
|
|
948
|
+
fileSize?: boolean;
|
|
949
|
+
status?: boolean;
|
|
950
|
+
parsedAt?: boolean;
|
|
951
|
+
totalQuestions?: boolean;
|
|
952
|
+
answeredQuestions?: boolean;
|
|
953
|
+
source?: boolean;
|
|
954
|
+
createdAt?: boolean;
|
|
955
|
+
updatedAt?: boolean;
|
|
956
|
+
organizationId?: boolean;
|
|
957
|
+
};
|
|
958
|
+
export type QuestionnaireOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "filename" | "s3Key" | "fileType" | "fileSize" | "status" | "parsedAt" | "totalQuestions" | "answeredQuestions" | "source" | "createdAt" | "updatedAt" | "organizationId", ExtArgs["result"]["questionnaire"]>;
|
|
959
|
+
export type QuestionnaireInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
960
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
961
|
+
questions?: boolean | Prisma.Questionnaire$questionsArgs<ExtArgs>;
|
|
962
|
+
manualAnswers?: boolean | Prisma.Questionnaire$manualAnswersArgs<ExtArgs>;
|
|
963
|
+
_count?: boolean | Prisma.QuestionnaireCountOutputTypeDefaultArgs<ExtArgs>;
|
|
964
|
+
};
|
|
965
|
+
export type QuestionnaireIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
966
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
967
|
+
};
|
|
968
|
+
export type QuestionnaireIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
969
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
970
|
+
};
|
|
971
|
+
export type $QuestionnairePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
972
|
+
name: "Questionnaire";
|
|
973
|
+
objects: {
|
|
974
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
975
|
+
questions: Prisma.$QuestionnaireQuestionAnswerPayload<ExtArgs>[];
|
|
976
|
+
manualAnswers: Prisma.$SecurityQuestionnaireManualAnswerPayload<ExtArgs>[];
|
|
977
|
+
};
|
|
978
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
979
|
+
id: string;
|
|
980
|
+
filename: string;
|
|
981
|
+
s3Key: string;
|
|
982
|
+
fileType: string;
|
|
983
|
+
fileSize: number;
|
|
984
|
+
status: $Enums.QuestionnaireStatus;
|
|
985
|
+
parsedAt: Date | null;
|
|
986
|
+
totalQuestions: number;
|
|
987
|
+
answeredQuestions: number;
|
|
988
|
+
source: string;
|
|
989
|
+
createdAt: Date;
|
|
990
|
+
updatedAt: Date;
|
|
991
|
+
organizationId: string;
|
|
992
|
+
}, ExtArgs["result"]["questionnaire"]>;
|
|
993
|
+
composites: {};
|
|
994
|
+
};
|
|
995
|
+
export type QuestionnaireGetPayload<S extends boolean | null | undefined | QuestionnaireDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload, S>;
|
|
996
|
+
export type QuestionnaireCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<QuestionnaireFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
997
|
+
select?: QuestionnaireCountAggregateInputType | true;
|
|
998
|
+
};
|
|
999
|
+
export interface QuestionnaireDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1000
|
+
[K: symbol]: {
|
|
1001
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Questionnaire'];
|
|
1002
|
+
meta: {
|
|
1003
|
+
name: 'Questionnaire';
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
/**
|
|
1007
|
+
* Find zero or one Questionnaire that matches the filter.
|
|
1008
|
+
* @param {QuestionnaireFindUniqueArgs} args - Arguments to find a Questionnaire
|
|
1009
|
+
* @example
|
|
1010
|
+
* // Get one Questionnaire
|
|
1011
|
+
* const questionnaire = await prisma.questionnaire.findUnique({
|
|
1012
|
+
* where: {
|
|
1013
|
+
* // ... provide filter here
|
|
1014
|
+
* }
|
|
1015
|
+
* })
|
|
1016
|
+
*/
|
|
1017
|
+
findUnique<T extends QuestionnaireFindUniqueArgs>(args: Prisma.SelectSubset<T, QuestionnaireFindUniqueArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Find one Questionnaire that matches the filter or throw an error with `error.code='P2025'`
|
|
1020
|
+
* if no matches were found.
|
|
1021
|
+
* @param {QuestionnaireFindUniqueOrThrowArgs} args - Arguments to find a Questionnaire
|
|
1022
|
+
* @example
|
|
1023
|
+
* // Get one Questionnaire
|
|
1024
|
+
* const questionnaire = await prisma.questionnaire.findUniqueOrThrow({
|
|
1025
|
+
* where: {
|
|
1026
|
+
* // ... provide filter here
|
|
1027
|
+
* }
|
|
1028
|
+
* })
|
|
1029
|
+
*/
|
|
1030
|
+
findUniqueOrThrow<T extends QuestionnaireFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, QuestionnaireFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Find the first Questionnaire that matches the filter.
|
|
1033
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1034
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1035
|
+
* @param {QuestionnaireFindFirstArgs} args - Arguments to find a Questionnaire
|
|
1036
|
+
* @example
|
|
1037
|
+
* // Get one Questionnaire
|
|
1038
|
+
* const questionnaire = await prisma.questionnaire.findFirst({
|
|
1039
|
+
* where: {
|
|
1040
|
+
* // ... provide filter here
|
|
1041
|
+
* }
|
|
1042
|
+
* })
|
|
1043
|
+
*/
|
|
1044
|
+
findFirst<T extends QuestionnaireFindFirstArgs>(args?: Prisma.SelectSubset<T, QuestionnaireFindFirstArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Find the first Questionnaire that matches the filter or
|
|
1047
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1048
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1049
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1050
|
+
* @param {QuestionnaireFindFirstOrThrowArgs} args - Arguments to find a Questionnaire
|
|
1051
|
+
* @example
|
|
1052
|
+
* // Get one Questionnaire
|
|
1053
|
+
* const questionnaire = await prisma.questionnaire.findFirstOrThrow({
|
|
1054
|
+
* where: {
|
|
1055
|
+
* // ... provide filter here
|
|
1056
|
+
* }
|
|
1057
|
+
* })
|
|
1058
|
+
*/
|
|
1059
|
+
findFirstOrThrow<T extends QuestionnaireFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, QuestionnaireFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Find zero or more Questionnaires that matches the filter.
|
|
1062
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1063
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1064
|
+
* @param {QuestionnaireFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1065
|
+
* @example
|
|
1066
|
+
* // Get all Questionnaires
|
|
1067
|
+
* const questionnaires = await prisma.questionnaire.findMany()
|
|
1068
|
+
*
|
|
1069
|
+
* // Get first 10 Questionnaires
|
|
1070
|
+
* const questionnaires = await prisma.questionnaire.findMany({ take: 10 })
|
|
1071
|
+
*
|
|
1072
|
+
* // Only select the `id`
|
|
1073
|
+
* const questionnaireWithIdOnly = await prisma.questionnaire.findMany({ select: { id: true } })
|
|
1074
|
+
*
|
|
1075
|
+
*/
|
|
1076
|
+
findMany<T extends QuestionnaireFindManyArgs>(args?: Prisma.SelectSubset<T, QuestionnaireFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Create a Questionnaire.
|
|
1079
|
+
* @param {QuestionnaireCreateArgs} args - Arguments to create a Questionnaire.
|
|
1080
|
+
* @example
|
|
1081
|
+
* // Create one Questionnaire
|
|
1082
|
+
* const Questionnaire = await prisma.questionnaire.create({
|
|
1083
|
+
* data: {
|
|
1084
|
+
* // ... data to create a Questionnaire
|
|
1085
|
+
* }
|
|
1086
|
+
* })
|
|
1087
|
+
*
|
|
1088
|
+
*/
|
|
1089
|
+
create<T extends QuestionnaireCreateArgs>(args: Prisma.SelectSubset<T, QuestionnaireCreateArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Create many Questionnaires.
|
|
1092
|
+
* @param {QuestionnaireCreateManyArgs} args - Arguments to create many Questionnaires.
|
|
1093
|
+
* @example
|
|
1094
|
+
* // Create many Questionnaires
|
|
1095
|
+
* const questionnaire = await prisma.questionnaire.createMany({
|
|
1096
|
+
* data: [
|
|
1097
|
+
* // ... provide data here
|
|
1098
|
+
* ]
|
|
1099
|
+
* })
|
|
1100
|
+
*
|
|
1101
|
+
*/
|
|
1102
|
+
createMany<T extends QuestionnaireCreateManyArgs>(args?: Prisma.SelectSubset<T, QuestionnaireCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Create many Questionnaires and returns the data saved in the database.
|
|
1105
|
+
* @param {QuestionnaireCreateManyAndReturnArgs} args - Arguments to create many Questionnaires.
|
|
1106
|
+
* @example
|
|
1107
|
+
* // Create many Questionnaires
|
|
1108
|
+
* const questionnaire = await prisma.questionnaire.createManyAndReturn({
|
|
1109
|
+
* data: [
|
|
1110
|
+
* // ... provide data here
|
|
1111
|
+
* ]
|
|
1112
|
+
* })
|
|
1113
|
+
*
|
|
1114
|
+
* // Create many Questionnaires and only return the `id`
|
|
1115
|
+
* const questionnaireWithIdOnly = await prisma.questionnaire.createManyAndReturn({
|
|
1116
|
+
* select: { id: true },
|
|
1117
|
+
* data: [
|
|
1118
|
+
* // ... provide data here
|
|
1119
|
+
* ]
|
|
1120
|
+
* })
|
|
1121
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1122
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1123
|
+
*
|
|
1124
|
+
*/
|
|
1125
|
+
createManyAndReturn<T extends QuestionnaireCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, QuestionnaireCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Delete a Questionnaire.
|
|
1128
|
+
* @param {QuestionnaireDeleteArgs} args - Arguments to delete one Questionnaire.
|
|
1129
|
+
* @example
|
|
1130
|
+
* // Delete one Questionnaire
|
|
1131
|
+
* const Questionnaire = await prisma.questionnaire.delete({
|
|
1132
|
+
* where: {
|
|
1133
|
+
* // ... filter to delete one Questionnaire
|
|
1134
|
+
* }
|
|
1135
|
+
* })
|
|
1136
|
+
*
|
|
1137
|
+
*/
|
|
1138
|
+
delete<T extends QuestionnaireDeleteArgs>(args: Prisma.SelectSubset<T, QuestionnaireDeleteArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Update one Questionnaire.
|
|
1141
|
+
* @param {QuestionnaireUpdateArgs} args - Arguments to update one Questionnaire.
|
|
1142
|
+
* @example
|
|
1143
|
+
* // Update one Questionnaire
|
|
1144
|
+
* const questionnaire = await prisma.questionnaire.update({
|
|
1145
|
+
* where: {
|
|
1146
|
+
* // ... provide filter here
|
|
1147
|
+
* },
|
|
1148
|
+
* data: {
|
|
1149
|
+
* // ... provide data here
|
|
1150
|
+
* }
|
|
1151
|
+
* })
|
|
1152
|
+
*
|
|
1153
|
+
*/
|
|
1154
|
+
update<T extends QuestionnaireUpdateArgs>(args: Prisma.SelectSubset<T, QuestionnaireUpdateArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Delete zero or more Questionnaires.
|
|
1157
|
+
* @param {QuestionnaireDeleteManyArgs} args - Arguments to filter Questionnaires to delete.
|
|
1158
|
+
* @example
|
|
1159
|
+
* // Delete a few Questionnaires
|
|
1160
|
+
* const { count } = await prisma.questionnaire.deleteMany({
|
|
1161
|
+
* where: {
|
|
1162
|
+
* // ... provide filter here
|
|
1163
|
+
* }
|
|
1164
|
+
* })
|
|
1165
|
+
*
|
|
1166
|
+
*/
|
|
1167
|
+
deleteMany<T extends QuestionnaireDeleteManyArgs>(args?: Prisma.SelectSubset<T, QuestionnaireDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Update zero or more Questionnaires.
|
|
1170
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1171
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1172
|
+
* @param {QuestionnaireUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1173
|
+
* @example
|
|
1174
|
+
* // Update many Questionnaires
|
|
1175
|
+
* const questionnaire = await prisma.questionnaire.updateMany({
|
|
1176
|
+
* where: {
|
|
1177
|
+
* // ... provide filter here
|
|
1178
|
+
* },
|
|
1179
|
+
* data: {
|
|
1180
|
+
* // ... provide data here
|
|
1181
|
+
* }
|
|
1182
|
+
* })
|
|
1183
|
+
*
|
|
1184
|
+
*/
|
|
1185
|
+
updateMany<T extends QuestionnaireUpdateManyArgs>(args: Prisma.SelectSubset<T, QuestionnaireUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Update zero or more Questionnaires and returns the data updated in the database.
|
|
1188
|
+
* @param {QuestionnaireUpdateManyAndReturnArgs} args - Arguments to update many Questionnaires.
|
|
1189
|
+
* @example
|
|
1190
|
+
* // Update many Questionnaires
|
|
1191
|
+
* const questionnaire = await prisma.questionnaire.updateManyAndReturn({
|
|
1192
|
+
* where: {
|
|
1193
|
+
* // ... provide filter here
|
|
1194
|
+
* },
|
|
1195
|
+
* data: [
|
|
1196
|
+
* // ... provide data here
|
|
1197
|
+
* ]
|
|
1198
|
+
* })
|
|
1199
|
+
*
|
|
1200
|
+
* // Update zero or more Questionnaires and only return the `id`
|
|
1201
|
+
* const questionnaireWithIdOnly = await prisma.questionnaire.updateManyAndReturn({
|
|
1202
|
+
* select: { id: true },
|
|
1203
|
+
* where: {
|
|
1204
|
+
* // ... provide filter here
|
|
1205
|
+
* },
|
|
1206
|
+
* data: [
|
|
1207
|
+
* // ... provide data here
|
|
1208
|
+
* ]
|
|
1209
|
+
* })
|
|
1210
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1211
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1212
|
+
*
|
|
1213
|
+
*/
|
|
1214
|
+
updateManyAndReturn<T extends QuestionnaireUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, QuestionnaireUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Create or update one Questionnaire.
|
|
1217
|
+
* @param {QuestionnaireUpsertArgs} args - Arguments to update or create a Questionnaire.
|
|
1218
|
+
* @example
|
|
1219
|
+
* // Update or create a Questionnaire
|
|
1220
|
+
* const questionnaire = await prisma.questionnaire.upsert({
|
|
1221
|
+
* create: {
|
|
1222
|
+
* // ... data to create a Questionnaire
|
|
1223
|
+
* },
|
|
1224
|
+
* update: {
|
|
1225
|
+
* // ... in case it already exists, update
|
|
1226
|
+
* },
|
|
1227
|
+
* where: {
|
|
1228
|
+
* // ... the filter for the Questionnaire we want to update
|
|
1229
|
+
* }
|
|
1230
|
+
* })
|
|
1231
|
+
*/
|
|
1232
|
+
upsert<T extends QuestionnaireUpsertArgs>(args: Prisma.SelectSubset<T, QuestionnaireUpsertArgs<ExtArgs>>): Prisma.Prisma__QuestionnaireClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Count the number of Questionnaires.
|
|
1235
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1236
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1237
|
+
* @param {QuestionnaireCountArgs} args - Arguments to filter Questionnaires to count.
|
|
1238
|
+
* @example
|
|
1239
|
+
* // Count the number of Questionnaires
|
|
1240
|
+
* const count = await prisma.questionnaire.count({
|
|
1241
|
+
* where: {
|
|
1242
|
+
* // ... the filter for the Questionnaires we want to count
|
|
1243
|
+
* }
|
|
1244
|
+
* })
|
|
1245
|
+
**/
|
|
1246
|
+
count<T extends QuestionnaireCountArgs>(args?: Prisma.Subset<T, QuestionnaireCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], QuestionnaireCountAggregateOutputType> : number>;
|
|
1247
|
+
/**
|
|
1248
|
+
* Allows you to perform aggregations operations on a Questionnaire.
|
|
1249
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1250
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1251
|
+
* @param {QuestionnaireAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1252
|
+
* @example
|
|
1253
|
+
* // Ordered by age ascending
|
|
1254
|
+
* // Where email contains prisma.io
|
|
1255
|
+
* // Limited to the 10 users
|
|
1256
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1257
|
+
* _avg: {
|
|
1258
|
+
* age: true,
|
|
1259
|
+
* },
|
|
1260
|
+
* where: {
|
|
1261
|
+
* email: {
|
|
1262
|
+
* contains: "prisma.io",
|
|
1263
|
+
* },
|
|
1264
|
+
* },
|
|
1265
|
+
* orderBy: {
|
|
1266
|
+
* age: "asc",
|
|
1267
|
+
* },
|
|
1268
|
+
* take: 10,
|
|
1269
|
+
* })
|
|
1270
|
+
**/
|
|
1271
|
+
aggregate<T extends QuestionnaireAggregateArgs>(args: Prisma.Subset<T, QuestionnaireAggregateArgs>): Prisma.PrismaPromise<GetQuestionnaireAggregateType<T>>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Group by Questionnaire.
|
|
1274
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1275
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1276
|
+
* @param {QuestionnaireGroupByArgs} args - Group by arguments.
|
|
1277
|
+
* @example
|
|
1278
|
+
* // Group by city, order by createdAt, get count
|
|
1279
|
+
* const result = await prisma.user.groupBy({
|
|
1280
|
+
* by: ['city', 'createdAt'],
|
|
1281
|
+
* orderBy: {
|
|
1282
|
+
* createdAt: true
|
|
1283
|
+
* },
|
|
1284
|
+
* _count: {
|
|
1285
|
+
* _all: true
|
|
1286
|
+
* },
|
|
1287
|
+
* })
|
|
1288
|
+
*
|
|
1289
|
+
**/
|
|
1290
|
+
groupBy<T extends QuestionnaireGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1291
|
+
orderBy: QuestionnaireGroupByArgs['orderBy'];
|
|
1292
|
+
} : {
|
|
1293
|
+
orderBy?: QuestionnaireGroupByArgs['orderBy'];
|
|
1294
|
+
}, 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 ? {
|
|
1295
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1296
|
+
Error,
|
|
1297
|
+
'Field ',
|
|
1298
|
+
P,
|
|
1299
|
+
` in "having" needs to be provided in "by"`
|
|
1300
|
+
];
|
|
1301
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1302
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1303
|
+
}[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 ? {} : {
|
|
1304
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1305
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1306
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1307
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, QuestionnaireGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQuestionnaireGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Fields of the Questionnaire model
|
|
1310
|
+
*/
|
|
1311
|
+
readonly fields: QuestionnaireFieldRefs;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* The delegate class that acts as a "Promise-like" for Questionnaire.
|
|
1315
|
+
* Why is this prefixed with `Prisma__`?
|
|
1316
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1317
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1318
|
+
*/
|
|
1319
|
+
export interface Prisma__QuestionnaireClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1320
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1321
|
+
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>;
|
|
1322
|
+
questions<T extends Prisma.Questionnaire$questionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Questionnaire$questionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnaireQuestionAnswerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1323
|
+
manualAnswers<T extends Prisma.Questionnaire$manualAnswersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Questionnaire$manualAnswersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecurityQuestionnaireManualAnswerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1326
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1327
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1328
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1329
|
+
*/
|
|
1330
|
+
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>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1333
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1334
|
+
* @returns A Promise for the completion of the callback.
|
|
1335
|
+
*/
|
|
1336
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1339
|
+
* resolved value cannot be modified from the callback.
|
|
1340
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1341
|
+
* @returns A Promise for the completion of the callback.
|
|
1342
|
+
*/
|
|
1343
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1346
|
+
* Fields of the Questionnaire model
|
|
1347
|
+
*/
|
|
1348
|
+
export interface QuestionnaireFieldRefs {
|
|
1349
|
+
readonly id: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1350
|
+
readonly filename: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1351
|
+
readonly s3Key: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1352
|
+
readonly fileType: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1353
|
+
readonly fileSize: Prisma.FieldRef<"Questionnaire", 'Int'>;
|
|
1354
|
+
readonly status: Prisma.FieldRef<"Questionnaire", 'QuestionnaireStatus'>;
|
|
1355
|
+
readonly parsedAt: Prisma.FieldRef<"Questionnaire", 'DateTime'>;
|
|
1356
|
+
readonly totalQuestions: Prisma.FieldRef<"Questionnaire", 'Int'>;
|
|
1357
|
+
readonly answeredQuestions: Prisma.FieldRef<"Questionnaire", 'Int'>;
|
|
1358
|
+
readonly source: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1359
|
+
readonly createdAt: Prisma.FieldRef<"Questionnaire", 'DateTime'>;
|
|
1360
|
+
readonly updatedAt: Prisma.FieldRef<"Questionnaire", 'DateTime'>;
|
|
1361
|
+
readonly organizationId: Prisma.FieldRef<"Questionnaire", 'String'>;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Questionnaire findUnique
|
|
1365
|
+
*/
|
|
1366
|
+
export type QuestionnaireFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1367
|
+
/**
|
|
1368
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1369
|
+
*/
|
|
1370
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1371
|
+
/**
|
|
1372
|
+
* Omit specific fields from the Questionnaire
|
|
1373
|
+
*/
|
|
1374
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1375
|
+
/**
|
|
1376
|
+
* Choose, which related nodes to fetch as well
|
|
1377
|
+
*/
|
|
1378
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1379
|
+
/**
|
|
1380
|
+
* Filter, which Questionnaire to fetch.
|
|
1381
|
+
*/
|
|
1382
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* Questionnaire findUniqueOrThrow
|
|
1386
|
+
*/
|
|
1387
|
+
export type QuestionnaireFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1388
|
+
/**
|
|
1389
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1390
|
+
*/
|
|
1391
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* Omit specific fields from the Questionnaire
|
|
1394
|
+
*/
|
|
1395
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Choose, which related nodes to fetch as well
|
|
1398
|
+
*/
|
|
1399
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Filter, which Questionnaire to fetch.
|
|
1402
|
+
*/
|
|
1403
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Questionnaire findFirst
|
|
1407
|
+
*/
|
|
1408
|
+
export type QuestionnaireFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1409
|
+
/**
|
|
1410
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1411
|
+
*/
|
|
1412
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1413
|
+
/**
|
|
1414
|
+
* Omit specific fields from the Questionnaire
|
|
1415
|
+
*/
|
|
1416
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1417
|
+
/**
|
|
1418
|
+
* Choose, which related nodes to fetch as well
|
|
1419
|
+
*/
|
|
1420
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Filter, which Questionnaire to fetch.
|
|
1423
|
+
*/
|
|
1424
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1425
|
+
/**
|
|
1426
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1427
|
+
*
|
|
1428
|
+
* Determine the order of Questionnaires to fetch.
|
|
1429
|
+
*/
|
|
1430
|
+
orderBy?: Prisma.QuestionnaireOrderByWithRelationInput | Prisma.QuestionnaireOrderByWithRelationInput[];
|
|
1431
|
+
/**
|
|
1432
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1433
|
+
*
|
|
1434
|
+
* Sets the position for searching for Questionnaires.
|
|
1435
|
+
*/
|
|
1436
|
+
cursor?: Prisma.QuestionnaireWhereUniqueInput;
|
|
1437
|
+
/**
|
|
1438
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1439
|
+
*
|
|
1440
|
+
* Take `±n` Questionnaires from the position of the cursor.
|
|
1441
|
+
*/
|
|
1442
|
+
take?: number;
|
|
1443
|
+
/**
|
|
1444
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1445
|
+
*
|
|
1446
|
+
* Skip the first `n` Questionnaires.
|
|
1447
|
+
*/
|
|
1448
|
+
skip?: number;
|
|
1449
|
+
/**
|
|
1450
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1451
|
+
*
|
|
1452
|
+
* Filter by unique combinations of Questionnaires.
|
|
1453
|
+
*/
|
|
1454
|
+
distinct?: Prisma.QuestionnaireScalarFieldEnum | Prisma.QuestionnaireScalarFieldEnum[];
|
|
1455
|
+
};
|
|
1456
|
+
/**
|
|
1457
|
+
* Questionnaire findFirstOrThrow
|
|
1458
|
+
*/
|
|
1459
|
+
export type QuestionnaireFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1460
|
+
/**
|
|
1461
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1462
|
+
*/
|
|
1463
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1464
|
+
/**
|
|
1465
|
+
* Omit specific fields from the Questionnaire
|
|
1466
|
+
*/
|
|
1467
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1468
|
+
/**
|
|
1469
|
+
* Choose, which related nodes to fetch as well
|
|
1470
|
+
*/
|
|
1471
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1472
|
+
/**
|
|
1473
|
+
* Filter, which Questionnaire to fetch.
|
|
1474
|
+
*/
|
|
1475
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1476
|
+
/**
|
|
1477
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1478
|
+
*
|
|
1479
|
+
* Determine the order of Questionnaires to fetch.
|
|
1480
|
+
*/
|
|
1481
|
+
orderBy?: Prisma.QuestionnaireOrderByWithRelationInput | Prisma.QuestionnaireOrderByWithRelationInput[];
|
|
1482
|
+
/**
|
|
1483
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1484
|
+
*
|
|
1485
|
+
* Sets the position for searching for Questionnaires.
|
|
1486
|
+
*/
|
|
1487
|
+
cursor?: Prisma.QuestionnaireWhereUniqueInput;
|
|
1488
|
+
/**
|
|
1489
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1490
|
+
*
|
|
1491
|
+
* Take `±n` Questionnaires from the position of the cursor.
|
|
1492
|
+
*/
|
|
1493
|
+
take?: number;
|
|
1494
|
+
/**
|
|
1495
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1496
|
+
*
|
|
1497
|
+
* Skip the first `n` Questionnaires.
|
|
1498
|
+
*/
|
|
1499
|
+
skip?: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1502
|
+
*
|
|
1503
|
+
* Filter by unique combinations of Questionnaires.
|
|
1504
|
+
*/
|
|
1505
|
+
distinct?: Prisma.QuestionnaireScalarFieldEnum | Prisma.QuestionnaireScalarFieldEnum[];
|
|
1506
|
+
};
|
|
1507
|
+
/**
|
|
1508
|
+
* Questionnaire findMany
|
|
1509
|
+
*/
|
|
1510
|
+
export type QuestionnaireFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1511
|
+
/**
|
|
1512
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1513
|
+
*/
|
|
1514
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1515
|
+
/**
|
|
1516
|
+
* Omit specific fields from the Questionnaire
|
|
1517
|
+
*/
|
|
1518
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* Choose, which related nodes to fetch as well
|
|
1521
|
+
*/
|
|
1522
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* Filter, which Questionnaires to fetch.
|
|
1525
|
+
*/
|
|
1526
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1527
|
+
/**
|
|
1528
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1529
|
+
*
|
|
1530
|
+
* Determine the order of Questionnaires to fetch.
|
|
1531
|
+
*/
|
|
1532
|
+
orderBy?: Prisma.QuestionnaireOrderByWithRelationInput | Prisma.QuestionnaireOrderByWithRelationInput[];
|
|
1533
|
+
/**
|
|
1534
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1535
|
+
*
|
|
1536
|
+
* Sets the position for listing Questionnaires.
|
|
1537
|
+
*/
|
|
1538
|
+
cursor?: Prisma.QuestionnaireWhereUniqueInput;
|
|
1539
|
+
/**
|
|
1540
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1541
|
+
*
|
|
1542
|
+
* Take `±n` Questionnaires from the position of the cursor.
|
|
1543
|
+
*/
|
|
1544
|
+
take?: number;
|
|
1545
|
+
/**
|
|
1546
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1547
|
+
*
|
|
1548
|
+
* Skip the first `n` Questionnaires.
|
|
1549
|
+
*/
|
|
1550
|
+
skip?: number;
|
|
1551
|
+
/**
|
|
1552
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1553
|
+
*
|
|
1554
|
+
* Filter by unique combinations of Questionnaires.
|
|
1555
|
+
*/
|
|
1556
|
+
distinct?: Prisma.QuestionnaireScalarFieldEnum | Prisma.QuestionnaireScalarFieldEnum[];
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* Questionnaire create
|
|
1560
|
+
*/
|
|
1561
|
+
export type QuestionnaireCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1562
|
+
/**
|
|
1563
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1564
|
+
*/
|
|
1565
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1566
|
+
/**
|
|
1567
|
+
* Omit specific fields from the Questionnaire
|
|
1568
|
+
*/
|
|
1569
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* Choose, which related nodes to fetch as well
|
|
1572
|
+
*/
|
|
1573
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1574
|
+
/**
|
|
1575
|
+
* The data needed to create a Questionnaire.
|
|
1576
|
+
*/
|
|
1577
|
+
data: Prisma.XOR<Prisma.QuestionnaireCreateInput, Prisma.QuestionnaireUncheckedCreateInput>;
|
|
1578
|
+
};
|
|
1579
|
+
/**
|
|
1580
|
+
* Questionnaire createMany
|
|
1581
|
+
*/
|
|
1582
|
+
export type QuestionnaireCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1583
|
+
/**
|
|
1584
|
+
* The data used to create many Questionnaires.
|
|
1585
|
+
*/
|
|
1586
|
+
data: Prisma.QuestionnaireCreateManyInput | Prisma.QuestionnaireCreateManyInput[];
|
|
1587
|
+
skipDuplicates?: boolean;
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* Questionnaire createManyAndReturn
|
|
1591
|
+
*/
|
|
1592
|
+
export type QuestionnaireCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1593
|
+
/**
|
|
1594
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1595
|
+
*/
|
|
1596
|
+
select?: Prisma.QuestionnaireSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1597
|
+
/**
|
|
1598
|
+
* Omit specific fields from the Questionnaire
|
|
1599
|
+
*/
|
|
1600
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1601
|
+
/**
|
|
1602
|
+
* The data used to create many Questionnaires.
|
|
1603
|
+
*/
|
|
1604
|
+
data: Prisma.QuestionnaireCreateManyInput | Prisma.QuestionnaireCreateManyInput[];
|
|
1605
|
+
skipDuplicates?: boolean;
|
|
1606
|
+
/**
|
|
1607
|
+
* Choose, which related nodes to fetch as well
|
|
1608
|
+
*/
|
|
1609
|
+
include?: Prisma.QuestionnaireIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1610
|
+
};
|
|
1611
|
+
/**
|
|
1612
|
+
* Questionnaire update
|
|
1613
|
+
*/
|
|
1614
|
+
export type QuestionnaireUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1615
|
+
/**
|
|
1616
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1617
|
+
*/
|
|
1618
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1619
|
+
/**
|
|
1620
|
+
* Omit specific fields from the Questionnaire
|
|
1621
|
+
*/
|
|
1622
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1623
|
+
/**
|
|
1624
|
+
* Choose, which related nodes to fetch as well
|
|
1625
|
+
*/
|
|
1626
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1627
|
+
/**
|
|
1628
|
+
* The data needed to update a Questionnaire.
|
|
1629
|
+
*/
|
|
1630
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateInput, Prisma.QuestionnaireUncheckedUpdateInput>;
|
|
1631
|
+
/**
|
|
1632
|
+
* Choose, which Questionnaire to update.
|
|
1633
|
+
*/
|
|
1634
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
1635
|
+
};
|
|
1636
|
+
/**
|
|
1637
|
+
* Questionnaire updateMany
|
|
1638
|
+
*/
|
|
1639
|
+
export type QuestionnaireUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1640
|
+
/**
|
|
1641
|
+
* The data used to update Questionnaires.
|
|
1642
|
+
*/
|
|
1643
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateManyMutationInput, Prisma.QuestionnaireUncheckedUpdateManyInput>;
|
|
1644
|
+
/**
|
|
1645
|
+
* Filter which Questionnaires to update
|
|
1646
|
+
*/
|
|
1647
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1648
|
+
/**
|
|
1649
|
+
* Limit how many Questionnaires to update.
|
|
1650
|
+
*/
|
|
1651
|
+
limit?: number;
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* Questionnaire updateManyAndReturn
|
|
1655
|
+
*/
|
|
1656
|
+
export type QuestionnaireUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1657
|
+
/**
|
|
1658
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1659
|
+
*/
|
|
1660
|
+
select?: Prisma.QuestionnaireSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1661
|
+
/**
|
|
1662
|
+
* Omit specific fields from the Questionnaire
|
|
1663
|
+
*/
|
|
1664
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1665
|
+
/**
|
|
1666
|
+
* The data used to update Questionnaires.
|
|
1667
|
+
*/
|
|
1668
|
+
data: Prisma.XOR<Prisma.QuestionnaireUpdateManyMutationInput, Prisma.QuestionnaireUncheckedUpdateManyInput>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Filter which Questionnaires to update
|
|
1671
|
+
*/
|
|
1672
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1673
|
+
/**
|
|
1674
|
+
* Limit how many Questionnaires to update.
|
|
1675
|
+
*/
|
|
1676
|
+
limit?: number;
|
|
1677
|
+
/**
|
|
1678
|
+
* Choose, which related nodes to fetch as well
|
|
1679
|
+
*/
|
|
1680
|
+
include?: Prisma.QuestionnaireIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1681
|
+
};
|
|
1682
|
+
/**
|
|
1683
|
+
* Questionnaire upsert
|
|
1684
|
+
*/
|
|
1685
|
+
export type QuestionnaireUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1686
|
+
/**
|
|
1687
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1688
|
+
*/
|
|
1689
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* Omit specific fields from the Questionnaire
|
|
1692
|
+
*/
|
|
1693
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1694
|
+
/**
|
|
1695
|
+
* Choose, which related nodes to fetch as well
|
|
1696
|
+
*/
|
|
1697
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1698
|
+
/**
|
|
1699
|
+
* The filter to search for the Questionnaire to update in case it exists.
|
|
1700
|
+
*/
|
|
1701
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
1702
|
+
/**
|
|
1703
|
+
* In case the Questionnaire found by the `where` argument doesn't exist, create a new Questionnaire with this data.
|
|
1704
|
+
*/
|
|
1705
|
+
create: Prisma.XOR<Prisma.QuestionnaireCreateInput, Prisma.QuestionnaireUncheckedCreateInput>;
|
|
1706
|
+
/**
|
|
1707
|
+
* In case the Questionnaire was found with the provided `where` argument, update it with this data.
|
|
1708
|
+
*/
|
|
1709
|
+
update: Prisma.XOR<Prisma.QuestionnaireUpdateInput, Prisma.QuestionnaireUncheckedUpdateInput>;
|
|
1710
|
+
};
|
|
1711
|
+
/**
|
|
1712
|
+
* Questionnaire delete
|
|
1713
|
+
*/
|
|
1714
|
+
export type QuestionnaireDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1715
|
+
/**
|
|
1716
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1717
|
+
*/
|
|
1718
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1719
|
+
/**
|
|
1720
|
+
* Omit specific fields from the Questionnaire
|
|
1721
|
+
*/
|
|
1722
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1723
|
+
/**
|
|
1724
|
+
* Choose, which related nodes to fetch as well
|
|
1725
|
+
*/
|
|
1726
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1727
|
+
/**
|
|
1728
|
+
* Filter which Questionnaire to delete.
|
|
1729
|
+
*/
|
|
1730
|
+
where: Prisma.QuestionnaireWhereUniqueInput;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* Questionnaire deleteMany
|
|
1734
|
+
*/
|
|
1735
|
+
export type QuestionnaireDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1736
|
+
/**
|
|
1737
|
+
* Filter which Questionnaires to delete
|
|
1738
|
+
*/
|
|
1739
|
+
where?: Prisma.QuestionnaireWhereInput;
|
|
1740
|
+
/**
|
|
1741
|
+
* Limit how many Questionnaires to delete.
|
|
1742
|
+
*/
|
|
1743
|
+
limit?: number;
|
|
1744
|
+
};
|
|
1745
|
+
/**
|
|
1746
|
+
* Questionnaire.questions
|
|
1747
|
+
*/
|
|
1748
|
+
export type Questionnaire$questionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1749
|
+
/**
|
|
1750
|
+
* Select specific fields to fetch from the QuestionnaireQuestionAnswer
|
|
1751
|
+
*/
|
|
1752
|
+
select?: Prisma.QuestionnaireQuestionAnswerSelect<ExtArgs> | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* Omit specific fields from the QuestionnaireQuestionAnswer
|
|
1755
|
+
*/
|
|
1756
|
+
omit?: Prisma.QuestionnaireQuestionAnswerOmit<ExtArgs> | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* Choose, which related nodes to fetch as well
|
|
1759
|
+
*/
|
|
1760
|
+
include?: Prisma.QuestionnaireQuestionAnswerInclude<ExtArgs> | null;
|
|
1761
|
+
where?: Prisma.QuestionnaireQuestionAnswerWhereInput;
|
|
1762
|
+
orderBy?: Prisma.QuestionnaireQuestionAnswerOrderByWithRelationInput | Prisma.QuestionnaireQuestionAnswerOrderByWithRelationInput[];
|
|
1763
|
+
cursor?: Prisma.QuestionnaireQuestionAnswerWhereUniqueInput;
|
|
1764
|
+
take?: number;
|
|
1765
|
+
skip?: number;
|
|
1766
|
+
distinct?: Prisma.QuestionnaireQuestionAnswerScalarFieldEnum | Prisma.QuestionnaireQuestionAnswerScalarFieldEnum[];
|
|
1767
|
+
};
|
|
1768
|
+
/**
|
|
1769
|
+
* Questionnaire.manualAnswers
|
|
1770
|
+
*/
|
|
1771
|
+
export type Questionnaire$manualAnswersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1772
|
+
/**
|
|
1773
|
+
* Select specific fields to fetch from the SecurityQuestionnaireManualAnswer
|
|
1774
|
+
*/
|
|
1775
|
+
select?: Prisma.SecurityQuestionnaireManualAnswerSelect<ExtArgs> | null;
|
|
1776
|
+
/**
|
|
1777
|
+
* Omit specific fields from the SecurityQuestionnaireManualAnswer
|
|
1778
|
+
*/
|
|
1779
|
+
omit?: Prisma.SecurityQuestionnaireManualAnswerOmit<ExtArgs> | null;
|
|
1780
|
+
/**
|
|
1781
|
+
* Choose, which related nodes to fetch as well
|
|
1782
|
+
*/
|
|
1783
|
+
include?: Prisma.SecurityQuestionnaireManualAnswerInclude<ExtArgs> | null;
|
|
1784
|
+
where?: Prisma.SecurityQuestionnaireManualAnswerWhereInput;
|
|
1785
|
+
orderBy?: Prisma.SecurityQuestionnaireManualAnswerOrderByWithRelationInput | Prisma.SecurityQuestionnaireManualAnswerOrderByWithRelationInput[];
|
|
1786
|
+
cursor?: Prisma.SecurityQuestionnaireManualAnswerWhereUniqueInput;
|
|
1787
|
+
take?: number;
|
|
1788
|
+
skip?: number;
|
|
1789
|
+
distinct?: Prisma.SecurityQuestionnaireManualAnswerScalarFieldEnum | Prisma.SecurityQuestionnaireManualAnswerScalarFieldEnum[];
|
|
1790
|
+
};
|
|
1791
|
+
/**
|
|
1792
|
+
* Questionnaire without action
|
|
1793
|
+
*/
|
|
1794
|
+
export type QuestionnaireDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1795
|
+
/**
|
|
1796
|
+
* Select specific fields to fetch from the Questionnaire
|
|
1797
|
+
*/
|
|
1798
|
+
select?: Prisma.QuestionnaireSelect<ExtArgs> | null;
|
|
1799
|
+
/**
|
|
1800
|
+
* Omit specific fields from the Questionnaire
|
|
1801
|
+
*/
|
|
1802
|
+
omit?: Prisma.QuestionnaireOmit<ExtArgs> | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* Choose, which related nodes to fetch as well
|
|
1805
|
+
*/
|
|
1806
|
+
include?: Prisma.QuestionnaireInclude<ExtArgs> | null;
|
|
1807
|
+
};
|
|
1808
|
+
//# sourceMappingURL=Questionnaire.d.ts.map
|