@trycompai/db 1.3.22 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -5
- package/dist/client.ts +5 -2
- package/dist/generated/prisma/client.d.ts +427 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +73 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +2082 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +367 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +329 -0
- package/dist/generated/prisma/internal/class.d.ts +1000 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +87 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +8063 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +1256 -0
- package/dist/generated/prisma/models/Account.d.ts +1456 -0
- package/dist/generated/prisma/models/Account.d.ts.map +1 -0
- package/dist/generated/prisma/models/Account.js +2 -0
- package/dist/generated/prisma/models/ApiKey.d.ts +1387 -0
- package/dist/generated/prisma/models/ApiKey.d.ts.map +1 -0
- package/dist/generated/prisma/models/ApiKey.js +2 -0
- package/dist/generated/prisma/models/Attachment.d.ts +1520 -0
- package/dist/generated/prisma/models/Attachment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Attachment.js +2 -0
- package/dist/generated/prisma/models/AuditLog.d.ts +1590 -0
- package/dist/generated/prisma/models/AuditLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/AuditLog.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts +1507 -0
- package/dist/generated/prisma/models/BrowserAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomation.js +2 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts +1455 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserAutomationRun.js +2 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts +1139 -0
- package/dist/generated/prisma/models/BrowserbaseContext.d.ts.map +1 -0
- package/dist/generated/prisma/models/BrowserbaseContext.js +2 -0
- package/dist/generated/prisma/models/Comment.d.ts +1502 -0
- package/dist/generated/prisma/models/Comment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Comment.js +2 -0
- package/dist/generated/prisma/models/Context.d.ts +1254 -0
- package/dist/generated/prisma/models/Context.d.ts.map +1 -0
- package/dist/generated/prisma/models/Context.js +2 -0
- package/dist/generated/prisma/models/Control.d.ts +1965 -0
- package/dist/generated/prisma/models/Control.d.ts.map +1 -0
- package/dist/generated/prisma/models/Control.js +2 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts +1115 -0
- package/dist/generated/prisma/models/ControlDocumentType.d.ts.map +1 -0
- package/dist/generated/prisma/models/ControlDocumentType.js +2 -0
- package/dist/generated/prisma/models/Device.d.ts +1858 -0
- package/dist/generated/prisma/models/Device.d.ts.map +1 -0
- package/dist/generated/prisma/models/Device.js +2 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts +1517 -0
- package/dist/generated/prisma/models/DynamicCheck.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicCheck.js +2 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts +1528 -0
- package/dist/generated/prisma/models/DynamicIntegration.d.ts.map +1 -0
- package/dist/generated/prisma/models/DynamicIntegration.js +2 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts +1146 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts +1533 -0
- package/dist/generated/prisma/models/EvidenceAutomation.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomation.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts +1833 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationRun.js +2 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts +1331 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceAutomationVersion.js +2 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts +1905 -0
- package/dist/generated/prisma/models/EvidenceSubmission.d.ts.map +1 -0
- package/dist/generated/prisma/models/EvidenceSubmission.js +2 -0
- package/dist/generated/prisma/models/Finding.d.ts +2386 -0
- package/dist/generated/prisma/models/Finding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Finding.js +2 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts +1264 -0
- package/dist/generated/prisma/models/FindingTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FindingTemplate.js +2 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts +1484 -0
- package/dist/generated/prisma/models/FleetPolicyResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/FleetPolicyResult.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts +1669 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorControlTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts +1581 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorFramework.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts +1428 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts +1525 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorRequirement.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts +1434 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.js +2 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts +1054 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkEditorVideo.js +2 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts +1321 -0
- package/dist/generated/prisma/models/FrameworkInstance.d.ts.map +1 -0
- package/dist/generated/prisma/models/FrameworkInstance.js +2 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts +1358 -0
- package/dist/generated/prisma/models/GlobalVendors.d.ts.map +1 -0
- package/dist/generated/prisma/models/GlobalVendors.js +2 -0
- package/dist/generated/prisma/models/Integration.d.ts +1363 -0
- package/dist/generated/prisma/models/Integration.d.ts.map +1 -0
- package/dist/generated/prisma/models/Integration.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts +1408 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts +1958 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCheckRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts +2472 -0
- package/dist/generated/prisma/models/IntegrationConnection.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationConnection.js +2 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts +1298 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationCredentialVersion.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts +1362 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthApp.js +2 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts +1131 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationOAuthState.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts +1237 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformCredential.js +2 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts +1652 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationPlatformFinding.js +2 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts +1300 -0
- package/dist/generated/prisma/models/IntegrationProvider.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationProvider.js +2 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts +1539 -0
- package/dist/generated/prisma/models/IntegrationResult.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationResult.js +2 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts +1596 -0
- package/dist/generated/prisma/models/IntegrationRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationRun.js +2 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts +1716 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.d.ts.map +1 -0
- package/dist/generated/prisma/models/IntegrationSyncLog.js +2 -0
- package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.js +2 -0
- package/dist/generated/prisma/models/Jwks.d.ts +998 -0
- package/dist/generated/prisma/models/Jwks.d.ts.map +1 -0
- package/dist/generated/prisma/models/Jwks.js +2 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1463 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +2 -0
- package/dist/generated/prisma/models/Member.d.ts +5530 -0
- package/dist/generated/prisma/models/Member.d.ts.map +1 -0
- package/dist/generated/prisma/models/Member.js +2 -0
- package/dist/generated/prisma/models/Onboarding.d.ts +1376 -0
- package/dist/generated/prisma/models/Onboarding.d.ts.map +1 -0
- package/dist/generated/prisma/models/Onboarding.js +2 -0
- package/dist/generated/prisma/models/Organization.d.ts +14367 -0
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
- package/dist/generated/prisma/models/Organization.js +2 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts +1222 -0
- package/dist/generated/prisma/models/OrganizationBilling.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationBilling.js +2 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts +1248 -0
- package/dist/generated/prisma/models/OrganizationChart.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationChart.js +2 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts +1251 -0
- package/dist/generated/prisma/models/OrganizationRole.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrganizationRole.js +2 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts +1497 -0
- package/dist/generated/prisma/models/PentestSubscription.d.ts.map +1 -0
- package/dist/generated/prisma/models/PentestSubscription.js +2 -0
- package/dist/generated/prisma/models/Policy.d.ts +3356 -0
- package/dist/generated/prisma/models/Policy.d.ts.map +1 -0
- package/dist/generated/prisma/models/Policy.js +2 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts +1619 -0
- package/dist/generated/prisma/models/PolicyVersion.d.ts.map +1 -0
- package/dist/generated/prisma/models/PolicyVersion.js +2 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts +1808 -0
- package/dist/generated/prisma/models/Questionnaire.d.ts.map +1 -0
- package/dist/generated/prisma/models/Questionnaire.js +2 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts +1422 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.js +2 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts +1345 -0
- package/dist/generated/prisma/models/RequirementMap.d.ts.map +1 -0
- package/dist/generated/prisma/models/RequirementMap.js +2 -0
- package/dist/generated/prisma/models/Risk.d.ts +1975 -0
- package/dist/generated/prisma/models/Risk.d.ts.map +1 -0
- package/dist/generated/prisma/models/Risk.js +2 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts +1391 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.d.ts.map +1 -0
- package/dist/generated/prisma/models/RoleNotificationSetting.js +2 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts +1498 -0
- package/dist/generated/prisma/models/SOAAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAAnswer.js +2 -0
- package/dist/generated/prisma/models/SOADocument.d.ts +2272 -0
- package/dist/generated/prisma/models/SOADocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOADocument.js +2 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts +1445 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts.map +1 -0
- package/dist/generated/prisma/models/SOAFrameworkConfiguration.js +2 -0
- package/dist/generated/prisma/models/Secret.d.ts +1321 -0
- package/dist/generated/prisma/models/Secret.d.ts.map +1 -0
- package/dist/generated/prisma/models/Secret.js +2 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts +1176 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityPenetrationTestRun.js +2 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts +1510 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts.map +1 -0
- package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.js +2 -0
- package/dist/generated/prisma/models/Session.d.ts +1351 -0
- package/dist/generated/prisma/models/Session.d.ts.map +1 -0
- package/dist/generated/prisma/models/Session.js +2 -0
- package/dist/generated/prisma/models/Task.d.ts +3980 -0
- package/dist/generated/prisma/models/Task.d.ts.map +1 -0
- package/dist/generated/prisma/models/Task.js +2 -0
- package/dist/generated/prisma/models/TaskItem.d.ts +1961 -0
- package/dist/generated/prisma/models/TaskItem.d.ts.map +1 -0
- package/dist/generated/prisma/models/TaskItem.js +2 -0
- package/dist/generated/prisma/models/Trust.d.ts +2242 -0
- package/dist/generated/prisma/models/Trust.d.ts.map +1 -0
- package/dist/generated/prisma/models/Trust.js +2 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts +1888 -0
- package/dist/generated/prisma/models/TrustAccessGrant.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessGrant.js +2 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts +2103 -0
- package/dist/generated/prisma/models/TrustAccessRequest.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustAccessRequest.js +2 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts +1354 -0
- package/dist/generated/prisma/models/TrustCustomLink.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustCustomLink.js +2 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts +1281 -0
- package/dist/generated/prisma/models/TrustDocument.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustDocument.js +2 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts +1877 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustNDAAgreement.js +2 -0
- package/dist/generated/prisma/models/TrustResource.d.ts +1328 -0
- package/dist/generated/prisma/models/TrustResource.d.ts.map +1 -0
- package/dist/generated/prisma/models/TrustResource.js +2 -0
- package/dist/generated/prisma/models/User.d.ts +3070 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models/Vendor.d.ts +2307 -0
- package/dist/generated/prisma/models/Vendor.d.ts.map +1 -0
- package/dist/generated/prisma/models/Vendor.js +2 -0
- package/dist/generated/prisma/models/VendorContact.d.ts +1246 -0
- package/dist/generated/prisma/models/VendorContact.d.ts.map +1 -0
- package/dist/generated/prisma/models/VendorContact.js +2 -0
- package/dist/generated/prisma/models/Verification.d.ts +1026 -0
- package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
- package/dist/generated/prisma/models/Verification.js +2 -0
- package/dist/generated/prisma/models.d.ts +82 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.ts +1 -2
- package/dist/postinstall.js +1 -1
- package/dist/schema.prisma +455 -39
- package/package.json +56 -55
|
@@ -0,0 +1,1502 @@
|
|
|
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 Comment
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type CommentModel = runtime.Types.Result.DefaultSelection<Prisma.$CommentPayload>;
|
|
9
|
+
export type AggregateComment = {
|
|
10
|
+
_count: CommentCountAggregateOutputType | null;
|
|
11
|
+
_min: CommentMinAggregateOutputType | null;
|
|
12
|
+
_max: CommentMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type CommentMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
content: string | null;
|
|
17
|
+
entityId: string | null;
|
|
18
|
+
entityType: $Enums.CommentEntityType | null;
|
|
19
|
+
createdAt: Date | null;
|
|
20
|
+
authorId: string | null;
|
|
21
|
+
organizationId: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type CommentMaxAggregateOutputType = {
|
|
24
|
+
id: string | null;
|
|
25
|
+
content: string | null;
|
|
26
|
+
entityId: string | null;
|
|
27
|
+
entityType: $Enums.CommentEntityType | null;
|
|
28
|
+
createdAt: Date | null;
|
|
29
|
+
authorId: string | null;
|
|
30
|
+
organizationId: string | null;
|
|
31
|
+
};
|
|
32
|
+
export type CommentCountAggregateOutputType = {
|
|
33
|
+
id: number;
|
|
34
|
+
content: number;
|
|
35
|
+
entityId: number;
|
|
36
|
+
entityType: number;
|
|
37
|
+
createdAt: number;
|
|
38
|
+
authorId: number;
|
|
39
|
+
organizationId: number;
|
|
40
|
+
_all: number;
|
|
41
|
+
};
|
|
42
|
+
export type CommentMinAggregateInputType = {
|
|
43
|
+
id?: true;
|
|
44
|
+
content?: true;
|
|
45
|
+
entityId?: true;
|
|
46
|
+
entityType?: true;
|
|
47
|
+
createdAt?: true;
|
|
48
|
+
authorId?: true;
|
|
49
|
+
organizationId?: true;
|
|
50
|
+
};
|
|
51
|
+
export type CommentMaxAggregateInputType = {
|
|
52
|
+
id?: true;
|
|
53
|
+
content?: true;
|
|
54
|
+
entityId?: true;
|
|
55
|
+
entityType?: true;
|
|
56
|
+
createdAt?: true;
|
|
57
|
+
authorId?: true;
|
|
58
|
+
organizationId?: true;
|
|
59
|
+
};
|
|
60
|
+
export type CommentCountAggregateInputType = {
|
|
61
|
+
id?: true;
|
|
62
|
+
content?: true;
|
|
63
|
+
entityId?: true;
|
|
64
|
+
entityType?: true;
|
|
65
|
+
createdAt?: true;
|
|
66
|
+
authorId?: true;
|
|
67
|
+
organizationId?: true;
|
|
68
|
+
_all?: true;
|
|
69
|
+
};
|
|
70
|
+
export type CommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
71
|
+
/**
|
|
72
|
+
* Filter which Comment to aggregate.
|
|
73
|
+
*/
|
|
74
|
+
where?: Prisma.CommentWhereInput;
|
|
75
|
+
/**
|
|
76
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
77
|
+
*
|
|
78
|
+
* Determine the order of Comments to fetch.
|
|
79
|
+
*/
|
|
80
|
+
orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
|
|
81
|
+
/**
|
|
82
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
83
|
+
*
|
|
84
|
+
* Sets the start position
|
|
85
|
+
*/
|
|
86
|
+
cursor?: Prisma.CommentWhereUniqueInput;
|
|
87
|
+
/**
|
|
88
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
89
|
+
*
|
|
90
|
+
* Take `±n` Comments from the position of the cursor.
|
|
91
|
+
*/
|
|
92
|
+
take?: number;
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
95
|
+
*
|
|
96
|
+
* Skip the first `n` Comments.
|
|
97
|
+
*/
|
|
98
|
+
skip?: number;
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
101
|
+
*
|
|
102
|
+
* Count returned Comments
|
|
103
|
+
**/
|
|
104
|
+
_count?: true | CommentCountAggregateInputType;
|
|
105
|
+
/**
|
|
106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
107
|
+
*
|
|
108
|
+
* Select which fields to find the minimum value
|
|
109
|
+
**/
|
|
110
|
+
_min?: CommentMinAggregateInputType;
|
|
111
|
+
/**
|
|
112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
113
|
+
*
|
|
114
|
+
* Select which fields to find the maximum value
|
|
115
|
+
**/
|
|
116
|
+
_max?: CommentMaxAggregateInputType;
|
|
117
|
+
};
|
|
118
|
+
export type GetCommentAggregateType<T extends CommentAggregateArgs> = {
|
|
119
|
+
[P in keyof T & keyof AggregateComment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateComment[P]> : Prisma.GetScalarType<T[P], AggregateComment[P]>;
|
|
120
|
+
};
|
|
121
|
+
export type CommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
122
|
+
where?: Prisma.CommentWhereInput;
|
|
123
|
+
orderBy?: Prisma.CommentOrderByWithAggregationInput | Prisma.CommentOrderByWithAggregationInput[];
|
|
124
|
+
by: Prisma.CommentScalarFieldEnum[] | Prisma.CommentScalarFieldEnum;
|
|
125
|
+
having?: Prisma.CommentScalarWhereWithAggregatesInput;
|
|
126
|
+
take?: number;
|
|
127
|
+
skip?: number;
|
|
128
|
+
_count?: CommentCountAggregateInputType | true;
|
|
129
|
+
_min?: CommentMinAggregateInputType;
|
|
130
|
+
_max?: CommentMaxAggregateInputType;
|
|
131
|
+
};
|
|
132
|
+
export type CommentGroupByOutputType = {
|
|
133
|
+
id: string;
|
|
134
|
+
content: string;
|
|
135
|
+
entityId: string;
|
|
136
|
+
entityType: $Enums.CommentEntityType;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
authorId: string;
|
|
139
|
+
organizationId: string;
|
|
140
|
+
_count: CommentCountAggregateOutputType | null;
|
|
141
|
+
_min: CommentMinAggregateOutputType | null;
|
|
142
|
+
_max: CommentMaxAggregateOutputType | null;
|
|
143
|
+
};
|
|
144
|
+
export type GetCommentGroupByPayload<T extends CommentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CommentGroupByOutputType, T['by']> & {
|
|
145
|
+
[P in ((keyof T) & (keyof CommentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]>;
|
|
146
|
+
}>>;
|
|
147
|
+
export type CommentWhereInput = {
|
|
148
|
+
AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
|
|
149
|
+
OR?: Prisma.CommentWhereInput[];
|
|
150
|
+
NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
|
|
151
|
+
id?: Prisma.StringFilter<"Comment"> | string;
|
|
152
|
+
content?: Prisma.StringFilter<"Comment"> | string;
|
|
153
|
+
entityId?: Prisma.StringFilter<"Comment"> | string;
|
|
154
|
+
entityType?: Prisma.EnumCommentEntityTypeFilter<"Comment"> | $Enums.CommentEntityType;
|
|
155
|
+
createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
|
|
156
|
+
authorId?: Prisma.StringFilter<"Comment"> | string;
|
|
157
|
+
organizationId?: Prisma.StringFilter<"Comment"> | string;
|
|
158
|
+
author?: Prisma.XOR<Prisma.MemberScalarRelationFilter, Prisma.MemberWhereInput>;
|
|
159
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
160
|
+
attachments?: Prisma.AttachmentListRelationFilter;
|
|
161
|
+
};
|
|
162
|
+
export type CommentOrderByWithRelationInput = {
|
|
163
|
+
id?: Prisma.SortOrder;
|
|
164
|
+
content?: Prisma.SortOrder;
|
|
165
|
+
entityId?: Prisma.SortOrder;
|
|
166
|
+
entityType?: Prisma.SortOrder;
|
|
167
|
+
createdAt?: Prisma.SortOrder;
|
|
168
|
+
authorId?: Prisma.SortOrder;
|
|
169
|
+
organizationId?: Prisma.SortOrder;
|
|
170
|
+
author?: Prisma.MemberOrderByWithRelationInput;
|
|
171
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
172
|
+
attachments?: Prisma.AttachmentOrderByRelationAggregateInput;
|
|
173
|
+
};
|
|
174
|
+
export type CommentWhereUniqueInput = Prisma.AtLeast<{
|
|
175
|
+
id?: string;
|
|
176
|
+
AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
|
|
177
|
+
OR?: Prisma.CommentWhereInput[];
|
|
178
|
+
NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
|
|
179
|
+
content?: Prisma.StringFilter<"Comment"> | string;
|
|
180
|
+
entityId?: Prisma.StringFilter<"Comment"> | string;
|
|
181
|
+
entityType?: Prisma.EnumCommentEntityTypeFilter<"Comment"> | $Enums.CommentEntityType;
|
|
182
|
+
createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
|
|
183
|
+
authorId?: Prisma.StringFilter<"Comment"> | string;
|
|
184
|
+
organizationId?: Prisma.StringFilter<"Comment"> | string;
|
|
185
|
+
author?: Prisma.XOR<Prisma.MemberScalarRelationFilter, Prisma.MemberWhereInput>;
|
|
186
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
187
|
+
attachments?: Prisma.AttachmentListRelationFilter;
|
|
188
|
+
}, "id">;
|
|
189
|
+
export type CommentOrderByWithAggregationInput = {
|
|
190
|
+
id?: Prisma.SortOrder;
|
|
191
|
+
content?: Prisma.SortOrder;
|
|
192
|
+
entityId?: Prisma.SortOrder;
|
|
193
|
+
entityType?: Prisma.SortOrder;
|
|
194
|
+
createdAt?: Prisma.SortOrder;
|
|
195
|
+
authorId?: Prisma.SortOrder;
|
|
196
|
+
organizationId?: Prisma.SortOrder;
|
|
197
|
+
_count?: Prisma.CommentCountOrderByAggregateInput;
|
|
198
|
+
_max?: Prisma.CommentMaxOrderByAggregateInput;
|
|
199
|
+
_min?: Prisma.CommentMinOrderByAggregateInput;
|
|
200
|
+
};
|
|
201
|
+
export type CommentScalarWhereWithAggregatesInput = {
|
|
202
|
+
AND?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[];
|
|
203
|
+
OR?: Prisma.CommentScalarWhereWithAggregatesInput[];
|
|
204
|
+
NOT?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[];
|
|
205
|
+
id?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
|
|
206
|
+
content?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
|
|
207
|
+
entityId?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
|
|
208
|
+
entityType?: Prisma.EnumCommentEntityTypeWithAggregatesFilter<"Comment"> | $Enums.CommentEntityType;
|
|
209
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string;
|
|
210
|
+
authorId?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
|
|
211
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
|
|
212
|
+
};
|
|
213
|
+
export type CommentCreateInput = {
|
|
214
|
+
id?: string;
|
|
215
|
+
content: string;
|
|
216
|
+
entityId: string;
|
|
217
|
+
entityType: $Enums.CommentEntityType;
|
|
218
|
+
createdAt?: Date | string;
|
|
219
|
+
author: Prisma.MemberCreateNestedOneWithoutCommentsInput;
|
|
220
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutCommentsInput;
|
|
221
|
+
attachments?: Prisma.AttachmentCreateNestedManyWithoutCommentInput;
|
|
222
|
+
};
|
|
223
|
+
export type CommentUncheckedCreateInput = {
|
|
224
|
+
id?: string;
|
|
225
|
+
content: string;
|
|
226
|
+
entityId: string;
|
|
227
|
+
entityType: $Enums.CommentEntityType;
|
|
228
|
+
createdAt?: Date | string;
|
|
229
|
+
authorId: string;
|
|
230
|
+
organizationId: string;
|
|
231
|
+
attachments?: Prisma.AttachmentUncheckedCreateNestedManyWithoutCommentInput;
|
|
232
|
+
};
|
|
233
|
+
export type CommentUpdateInput = {
|
|
234
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
235
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
236
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
237
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
238
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
239
|
+
author?: Prisma.MemberUpdateOneRequiredWithoutCommentsNestedInput;
|
|
240
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutCommentsNestedInput;
|
|
241
|
+
attachments?: Prisma.AttachmentUpdateManyWithoutCommentNestedInput;
|
|
242
|
+
};
|
|
243
|
+
export type CommentUncheckedUpdateInput = {
|
|
244
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
245
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
246
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
247
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
248
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
249
|
+
authorId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
250
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
251
|
+
attachments?: Prisma.AttachmentUncheckedUpdateManyWithoutCommentNestedInput;
|
|
252
|
+
};
|
|
253
|
+
export type CommentCreateManyInput = {
|
|
254
|
+
id?: string;
|
|
255
|
+
content: string;
|
|
256
|
+
entityId: string;
|
|
257
|
+
entityType: $Enums.CommentEntityType;
|
|
258
|
+
createdAt?: Date | string;
|
|
259
|
+
authorId: string;
|
|
260
|
+
organizationId: string;
|
|
261
|
+
};
|
|
262
|
+
export type CommentUpdateManyMutationInput = {
|
|
263
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
265
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
266
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
267
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
268
|
+
};
|
|
269
|
+
export type CommentUncheckedUpdateManyInput = {
|
|
270
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
271
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
272
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
273
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
274
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
275
|
+
authorId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
276
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
277
|
+
};
|
|
278
|
+
export type CommentNullableScalarRelationFilter = {
|
|
279
|
+
is?: Prisma.CommentWhereInput | null;
|
|
280
|
+
isNot?: Prisma.CommentWhereInput | null;
|
|
281
|
+
};
|
|
282
|
+
export type CommentListRelationFilter = {
|
|
283
|
+
every?: Prisma.CommentWhereInput;
|
|
284
|
+
some?: Prisma.CommentWhereInput;
|
|
285
|
+
none?: Prisma.CommentWhereInput;
|
|
286
|
+
};
|
|
287
|
+
export type CommentOrderByRelationAggregateInput = {
|
|
288
|
+
_count?: Prisma.SortOrder;
|
|
289
|
+
};
|
|
290
|
+
export type CommentCountOrderByAggregateInput = {
|
|
291
|
+
id?: Prisma.SortOrder;
|
|
292
|
+
content?: Prisma.SortOrder;
|
|
293
|
+
entityId?: Prisma.SortOrder;
|
|
294
|
+
entityType?: Prisma.SortOrder;
|
|
295
|
+
createdAt?: Prisma.SortOrder;
|
|
296
|
+
authorId?: Prisma.SortOrder;
|
|
297
|
+
organizationId?: Prisma.SortOrder;
|
|
298
|
+
};
|
|
299
|
+
export type CommentMaxOrderByAggregateInput = {
|
|
300
|
+
id?: Prisma.SortOrder;
|
|
301
|
+
content?: Prisma.SortOrder;
|
|
302
|
+
entityId?: Prisma.SortOrder;
|
|
303
|
+
entityType?: Prisma.SortOrder;
|
|
304
|
+
createdAt?: Prisma.SortOrder;
|
|
305
|
+
authorId?: Prisma.SortOrder;
|
|
306
|
+
organizationId?: Prisma.SortOrder;
|
|
307
|
+
};
|
|
308
|
+
export type CommentMinOrderByAggregateInput = {
|
|
309
|
+
id?: Prisma.SortOrder;
|
|
310
|
+
content?: Prisma.SortOrder;
|
|
311
|
+
entityId?: Prisma.SortOrder;
|
|
312
|
+
entityType?: Prisma.SortOrder;
|
|
313
|
+
createdAt?: Prisma.SortOrder;
|
|
314
|
+
authorId?: Prisma.SortOrder;
|
|
315
|
+
organizationId?: Prisma.SortOrder;
|
|
316
|
+
};
|
|
317
|
+
export type CommentCreateNestedOneWithoutAttachmentsInput = {
|
|
318
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAttachmentsInput, Prisma.CommentUncheckedCreateWithoutAttachmentsInput>;
|
|
319
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAttachmentsInput;
|
|
320
|
+
connect?: Prisma.CommentWhereUniqueInput;
|
|
321
|
+
};
|
|
322
|
+
export type CommentUpdateOneWithoutAttachmentsNestedInput = {
|
|
323
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAttachmentsInput, Prisma.CommentUncheckedCreateWithoutAttachmentsInput>;
|
|
324
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAttachmentsInput;
|
|
325
|
+
upsert?: Prisma.CommentUpsertWithoutAttachmentsInput;
|
|
326
|
+
disconnect?: Prisma.CommentWhereInput | boolean;
|
|
327
|
+
delete?: Prisma.CommentWhereInput | boolean;
|
|
328
|
+
connect?: Prisma.CommentWhereUniqueInput;
|
|
329
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.CommentUpdateToOneWithWhereWithoutAttachmentsInput, Prisma.CommentUpdateWithoutAttachmentsInput>, Prisma.CommentUncheckedUpdateWithoutAttachmentsInput>;
|
|
330
|
+
};
|
|
331
|
+
export type CommentCreateNestedManyWithoutAuthorInput = {
|
|
332
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
|
|
333
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
|
|
334
|
+
createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
|
|
335
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
336
|
+
};
|
|
337
|
+
export type CommentUncheckedCreateNestedManyWithoutAuthorInput = {
|
|
338
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
|
|
339
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
|
|
340
|
+
createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
|
|
341
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
342
|
+
};
|
|
343
|
+
export type CommentUpdateManyWithoutAuthorNestedInput = {
|
|
344
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
|
|
345
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
|
|
346
|
+
upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput[];
|
|
347
|
+
createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
|
|
348
|
+
set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
349
|
+
disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
350
|
+
delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
351
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
352
|
+
update?: Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput[];
|
|
353
|
+
updateMany?: Prisma.CommentUpdateManyWithWhereWithoutAuthorInput | Prisma.CommentUpdateManyWithWhereWithoutAuthorInput[];
|
|
354
|
+
deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
355
|
+
};
|
|
356
|
+
export type CommentUncheckedUpdateManyWithoutAuthorNestedInput = {
|
|
357
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
|
|
358
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
|
|
359
|
+
upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput[];
|
|
360
|
+
createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
|
|
361
|
+
set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
362
|
+
disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
363
|
+
delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
364
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
365
|
+
update?: Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput[];
|
|
366
|
+
updateMany?: Prisma.CommentUpdateManyWithWhereWithoutAuthorInput | Prisma.CommentUpdateManyWithWhereWithoutAuthorInput[];
|
|
367
|
+
deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
368
|
+
};
|
|
369
|
+
export type EnumCommentEntityTypeFieldUpdateOperationsInput = {
|
|
370
|
+
set?: $Enums.CommentEntityType;
|
|
371
|
+
};
|
|
372
|
+
export type CommentCreateNestedManyWithoutOrganizationInput = {
|
|
373
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput> | Prisma.CommentCreateWithoutOrganizationInput[] | Prisma.CommentUncheckedCreateWithoutOrganizationInput[];
|
|
374
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutOrganizationInput | Prisma.CommentCreateOrConnectWithoutOrganizationInput[];
|
|
375
|
+
createMany?: Prisma.CommentCreateManyOrganizationInputEnvelope;
|
|
376
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
377
|
+
};
|
|
378
|
+
export type CommentUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput> | Prisma.CommentCreateWithoutOrganizationInput[] | Prisma.CommentUncheckedCreateWithoutOrganizationInput[];
|
|
380
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutOrganizationInput | Prisma.CommentCreateOrConnectWithoutOrganizationInput[];
|
|
381
|
+
createMany?: Prisma.CommentCreateManyOrganizationInputEnvelope;
|
|
382
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
383
|
+
};
|
|
384
|
+
export type CommentUpdateManyWithoutOrganizationNestedInput = {
|
|
385
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput> | Prisma.CommentCreateWithoutOrganizationInput[] | Prisma.CommentUncheckedCreateWithoutOrganizationInput[];
|
|
386
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutOrganizationInput | Prisma.CommentCreateOrConnectWithoutOrganizationInput[];
|
|
387
|
+
upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CommentUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
388
|
+
createMany?: Prisma.CommentCreateManyOrganizationInputEnvelope;
|
|
389
|
+
set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
390
|
+
disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
391
|
+
delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
392
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
393
|
+
update?: Prisma.CommentUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CommentUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
394
|
+
updateMany?: Prisma.CommentUpdateManyWithWhereWithoutOrganizationInput | Prisma.CommentUpdateManyWithWhereWithoutOrganizationInput[];
|
|
395
|
+
deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
396
|
+
};
|
|
397
|
+
export type CommentUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
398
|
+
create?: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput> | Prisma.CommentCreateWithoutOrganizationInput[] | Prisma.CommentUncheckedCreateWithoutOrganizationInput[];
|
|
399
|
+
connectOrCreate?: Prisma.CommentCreateOrConnectWithoutOrganizationInput | Prisma.CommentCreateOrConnectWithoutOrganizationInput[];
|
|
400
|
+
upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CommentUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
401
|
+
createMany?: Prisma.CommentCreateManyOrganizationInputEnvelope;
|
|
402
|
+
set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
403
|
+
disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
404
|
+
delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
405
|
+
connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
|
|
406
|
+
update?: Prisma.CommentUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CommentUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
407
|
+
updateMany?: Prisma.CommentUpdateManyWithWhereWithoutOrganizationInput | Prisma.CommentUpdateManyWithWhereWithoutOrganizationInput[];
|
|
408
|
+
deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
409
|
+
};
|
|
410
|
+
export type CommentCreateWithoutAttachmentsInput = {
|
|
411
|
+
id?: string;
|
|
412
|
+
content: string;
|
|
413
|
+
entityId: string;
|
|
414
|
+
entityType: $Enums.CommentEntityType;
|
|
415
|
+
createdAt?: Date | string;
|
|
416
|
+
author: Prisma.MemberCreateNestedOneWithoutCommentsInput;
|
|
417
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutCommentsInput;
|
|
418
|
+
};
|
|
419
|
+
export type CommentUncheckedCreateWithoutAttachmentsInput = {
|
|
420
|
+
id?: string;
|
|
421
|
+
content: string;
|
|
422
|
+
entityId: string;
|
|
423
|
+
entityType: $Enums.CommentEntityType;
|
|
424
|
+
createdAt?: Date | string;
|
|
425
|
+
authorId: string;
|
|
426
|
+
organizationId: string;
|
|
427
|
+
};
|
|
428
|
+
export type CommentCreateOrConnectWithoutAttachmentsInput = {
|
|
429
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
430
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutAttachmentsInput, Prisma.CommentUncheckedCreateWithoutAttachmentsInput>;
|
|
431
|
+
};
|
|
432
|
+
export type CommentUpsertWithoutAttachmentsInput = {
|
|
433
|
+
update: Prisma.XOR<Prisma.CommentUpdateWithoutAttachmentsInput, Prisma.CommentUncheckedUpdateWithoutAttachmentsInput>;
|
|
434
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutAttachmentsInput, Prisma.CommentUncheckedCreateWithoutAttachmentsInput>;
|
|
435
|
+
where?: Prisma.CommentWhereInput;
|
|
436
|
+
};
|
|
437
|
+
export type CommentUpdateToOneWithWhereWithoutAttachmentsInput = {
|
|
438
|
+
where?: Prisma.CommentWhereInput;
|
|
439
|
+
data: Prisma.XOR<Prisma.CommentUpdateWithoutAttachmentsInput, Prisma.CommentUncheckedUpdateWithoutAttachmentsInput>;
|
|
440
|
+
};
|
|
441
|
+
export type CommentUpdateWithoutAttachmentsInput = {
|
|
442
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
443
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
444
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
445
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
446
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
447
|
+
author?: Prisma.MemberUpdateOneRequiredWithoutCommentsNestedInput;
|
|
448
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutCommentsNestedInput;
|
|
449
|
+
};
|
|
450
|
+
export type CommentUncheckedUpdateWithoutAttachmentsInput = {
|
|
451
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
452
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
453
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
454
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
455
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
456
|
+
authorId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
457
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
458
|
+
};
|
|
459
|
+
export type CommentCreateWithoutAuthorInput = {
|
|
460
|
+
id?: string;
|
|
461
|
+
content: string;
|
|
462
|
+
entityId: string;
|
|
463
|
+
entityType: $Enums.CommentEntityType;
|
|
464
|
+
createdAt?: Date | string;
|
|
465
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutCommentsInput;
|
|
466
|
+
attachments?: Prisma.AttachmentCreateNestedManyWithoutCommentInput;
|
|
467
|
+
};
|
|
468
|
+
export type CommentUncheckedCreateWithoutAuthorInput = {
|
|
469
|
+
id?: string;
|
|
470
|
+
content: string;
|
|
471
|
+
entityId: string;
|
|
472
|
+
entityType: $Enums.CommentEntityType;
|
|
473
|
+
createdAt?: Date | string;
|
|
474
|
+
organizationId: string;
|
|
475
|
+
attachments?: Prisma.AttachmentUncheckedCreateNestedManyWithoutCommentInput;
|
|
476
|
+
};
|
|
477
|
+
export type CommentCreateOrConnectWithoutAuthorInput = {
|
|
478
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
479
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput>;
|
|
480
|
+
};
|
|
481
|
+
export type CommentCreateManyAuthorInputEnvelope = {
|
|
482
|
+
data: Prisma.CommentCreateManyAuthorInput | Prisma.CommentCreateManyAuthorInput[];
|
|
483
|
+
skipDuplicates?: boolean;
|
|
484
|
+
};
|
|
485
|
+
export type CommentUpsertWithWhereUniqueWithoutAuthorInput = {
|
|
486
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
487
|
+
update: Prisma.XOR<Prisma.CommentUpdateWithoutAuthorInput, Prisma.CommentUncheckedUpdateWithoutAuthorInput>;
|
|
488
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput>;
|
|
489
|
+
};
|
|
490
|
+
export type CommentUpdateWithWhereUniqueWithoutAuthorInput = {
|
|
491
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
492
|
+
data: Prisma.XOR<Prisma.CommentUpdateWithoutAuthorInput, Prisma.CommentUncheckedUpdateWithoutAuthorInput>;
|
|
493
|
+
};
|
|
494
|
+
export type CommentUpdateManyWithWhereWithoutAuthorInput = {
|
|
495
|
+
where: Prisma.CommentScalarWhereInput;
|
|
496
|
+
data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutAuthorInput>;
|
|
497
|
+
};
|
|
498
|
+
export type CommentScalarWhereInput = {
|
|
499
|
+
AND?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
500
|
+
OR?: Prisma.CommentScalarWhereInput[];
|
|
501
|
+
NOT?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
|
|
502
|
+
id?: Prisma.StringFilter<"Comment"> | string;
|
|
503
|
+
content?: Prisma.StringFilter<"Comment"> | string;
|
|
504
|
+
entityId?: Prisma.StringFilter<"Comment"> | string;
|
|
505
|
+
entityType?: Prisma.EnumCommentEntityTypeFilter<"Comment"> | $Enums.CommentEntityType;
|
|
506
|
+
createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
|
|
507
|
+
authorId?: Prisma.StringFilter<"Comment"> | string;
|
|
508
|
+
organizationId?: Prisma.StringFilter<"Comment"> | string;
|
|
509
|
+
};
|
|
510
|
+
export type CommentCreateWithoutOrganizationInput = {
|
|
511
|
+
id?: string;
|
|
512
|
+
content: string;
|
|
513
|
+
entityId: string;
|
|
514
|
+
entityType: $Enums.CommentEntityType;
|
|
515
|
+
createdAt?: Date | string;
|
|
516
|
+
author: Prisma.MemberCreateNestedOneWithoutCommentsInput;
|
|
517
|
+
attachments?: Prisma.AttachmentCreateNestedManyWithoutCommentInput;
|
|
518
|
+
};
|
|
519
|
+
export type CommentUncheckedCreateWithoutOrganizationInput = {
|
|
520
|
+
id?: string;
|
|
521
|
+
content: string;
|
|
522
|
+
entityId: string;
|
|
523
|
+
entityType: $Enums.CommentEntityType;
|
|
524
|
+
createdAt?: Date | string;
|
|
525
|
+
authorId: string;
|
|
526
|
+
attachments?: Prisma.AttachmentUncheckedCreateNestedManyWithoutCommentInput;
|
|
527
|
+
};
|
|
528
|
+
export type CommentCreateOrConnectWithoutOrganizationInput = {
|
|
529
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
530
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput>;
|
|
531
|
+
};
|
|
532
|
+
export type CommentCreateManyOrganizationInputEnvelope = {
|
|
533
|
+
data: Prisma.CommentCreateManyOrganizationInput | Prisma.CommentCreateManyOrganizationInput[];
|
|
534
|
+
skipDuplicates?: boolean;
|
|
535
|
+
};
|
|
536
|
+
export type CommentUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
537
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
538
|
+
update: Prisma.XOR<Prisma.CommentUpdateWithoutOrganizationInput, Prisma.CommentUncheckedUpdateWithoutOrganizationInput>;
|
|
539
|
+
create: Prisma.XOR<Prisma.CommentCreateWithoutOrganizationInput, Prisma.CommentUncheckedCreateWithoutOrganizationInput>;
|
|
540
|
+
};
|
|
541
|
+
export type CommentUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
542
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
543
|
+
data: Prisma.XOR<Prisma.CommentUpdateWithoutOrganizationInput, Prisma.CommentUncheckedUpdateWithoutOrganizationInput>;
|
|
544
|
+
};
|
|
545
|
+
export type CommentUpdateManyWithWhereWithoutOrganizationInput = {
|
|
546
|
+
where: Prisma.CommentScalarWhereInput;
|
|
547
|
+
data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutOrganizationInput>;
|
|
548
|
+
};
|
|
549
|
+
export type CommentCreateManyAuthorInput = {
|
|
550
|
+
id?: string;
|
|
551
|
+
content: string;
|
|
552
|
+
entityId: string;
|
|
553
|
+
entityType: $Enums.CommentEntityType;
|
|
554
|
+
createdAt?: Date | string;
|
|
555
|
+
organizationId: string;
|
|
556
|
+
};
|
|
557
|
+
export type CommentUpdateWithoutAuthorInput = {
|
|
558
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
559
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
560
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
561
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
562
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
563
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutCommentsNestedInput;
|
|
564
|
+
attachments?: Prisma.AttachmentUpdateManyWithoutCommentNestedInput;
|
|
565
|
+
};
|
|
566
|
+
export type CommentUncheckedUpdateWithoutAuthorInput = {
|
|
567
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
568
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
569
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
570
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
571
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
572
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
573
|
+
attachments?: Prisma.AttachmentUncheckedUpdateManyWithoutCommentNestedInput;
|
|
574
|
+
};
|
|
575
|
+
export type CommentUncheckedUpdateManyWithoutAuthorInput = {
|
|
576
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
577
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
578
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
579
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
580
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
581
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
582
|
+
};
|
|
583
|
+
export type CommentCreateManyOrganizationInput = {
|
|
584
|
+
id?: string;
|
|
585
|
+
content: string;
|
|
586
|
+
entityId: string;
|
|
587
|
+
entityType: $Enums.CommentEntityType;
|
|
588
|
+
createdAt?: Date | string;
|
|
589
|
+
authorId: string;
|
|
590
|
+
};
|
|
591
|
+
export type CommentUpdateWithoutOrganizationInput = {
|
|
592
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
593
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
594
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
595
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
596
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
597
|
+
author?: Prisma.MemberUpdateOneRequiredWithoutCommentsNestedInput;
|
|
598
|
+
attachments?: Prisma.AttachmentUpdateManyWithoutCommentNestedInput;
|
|
599
|
+
};
|
|
600
|
+
export type CommentUncheckedUpdateWithoutOrganizationInput = {
|
|
601
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
602
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
603
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
604
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
605
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
606
|
+
authorId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
607
|
+
attachments?: Prisma.AttachmentUncheckedUpdateManyWithoutCommentNestedInput;
|
|
608
|
+
};
|
|
609
|
+
export type CommentUncheckedUpdateManyWithoutOrganizationInput = {
|
|
610
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
612
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
613
|
+
entityType?: Prisma.EnumCommentEntityTypeFieldUpdateOperationsInput | $Enums.CommentEntityType;
|
|
614
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
615
|
+
authorId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Count Type CommentCountOutputType
|
|
619
|
+
*/
|
|
620
|
+
export type CommentCountOutputType = {
|
|
621
|
+
attachments: number;
|
|
622
|
+
};
|
|
623
|
+
export type CommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
624
|
+
attachments?: boolean | CommentCountOutputTypeCountAttachmentsArgs;
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* CommentCountOutputType without action
|
|
628
|
+
*/
|
|
629
|
+
export type CommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
630
|
+
/**
|
|
631
|
+
* Select specific fields to fetch from the CommentCountOutputType
|
|
632
|
+
*/
|
|
633
|
+
select?: Prisma.CommentCountOutputTypeSelect<ExtArgs> | null;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* CommentCountOutputType without action
|
|
637
|
+
*/
|
|
638
|
+
export type CommentCountOutputTypeCountAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
639
|
+
where?: Prisma.AttachmentWhereInput;
|
|
640
|
+
};
|
|
641
|
+
export type CommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
642
|
+
id?: boolean;
|
|
643
|
+
content?: boolean;
|
|
644
|
+
entityId?: boolean;
|
|
645
|
+
entityType?: boolean;
|
|
646
|
+
createdAt?: boolean;
|
|
647
|
+
authorId?: boolean;
|
|
648
|
+
organizationId?: boolean;
|
|
649
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
650
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
651
|
+
attachments?: boolean | Prisma.Comment$attachmentsArgs<ExtArgs>;
|
|
652
|
+
_count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>;
|
|
653
|
+
}, ExtArgs["result"]["comment"]>;
|
|
654
|
+
export type CommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
655
|
+
id?: boolean;
|
|
656
|
+
content?: boolean;
|
|
657
|
+
entityId?: boolean;
|
|
658
|
+
entityType?: boolean;
|
|
659
|
+
createdAt?: boolean;
|
|
660
|
+
authorId?: boolean;
|
|
661
|
+
organizationId?: boolean;
|
|
662
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
663
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
664
|
+
}, ExtArgs["result"]["comment"]>;
|
|
665
|
+
export type CommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
666
|
+
id?: boolean;
|
|
667
|
+
content?: boolean;
|
|
668
|
+
entityId?: boolean;
|
|
669
|
+
entityType?: boolean;
|
|
670
|
+
createdAt?: boolean;
|
|
671
|
+
authorId?: boolean;
|
|
672
|
+
organizationId?: boolean;
|
|
673
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
674
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
675
|
+
}, ExtArgs["result"]["comment"]>;
|
|
676
|
+
export type CommentSelectScalar = {
|
|
677
|
+
id?: boolean;
|
|
678
|
+
content?: boolean;
|
|
679
|
+
entityId?: boolean;
|
|
680
|
+
entityType?: boolean;
|
|
681
|
+
createdAt?: boolean;
|
|
682
|
+
authorId?: boolean;
|
|
683
|
+
organizationId?: boolean;
|
|
684
|
+
};
|
|
685
|
+
export type CommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "content" | "entityId" | "entityType" | "createdAt" | "authorId" | "organizationId", ExtArgs["result"]["comment"]>;
|
|
686
|
+
export type CommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
687
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
688
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
689
|
+
attachments?: boolean | Prisma.Comment$attachmentsArgs<ExtArgs>;
|
|
690
|
+
_count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>;
|
|
691
|
+
};
|
|
692
|
+
export type CommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
693
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
694
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
695
|
+
};
|
|
696
|
+
export type CommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
697
|
+
author?: boolean | Prisma.MemberDefaultArgs<ExtArgs>;
|
|
698
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
699
|
+
};
|
|
700
|
+
export type $CommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
701
|
+
name: "Comment";
|
|
702
|
+
objects: {
|
|
703
|
+
author: Prisma.$MemberPayload<ExtArgs>;
|
|
704
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
705
|
+
attachments: Prisma.$AttachmentPayload<ExtArgs>[];
|
|
706
|
+
};
|
|
707
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
708
|
+
id: string;
|
|
709
|
+
content: string;
|
|
710
|
+
entityId: string;
|
|
711
|
+
entityType: $Enums.CommentEntityType;
|
|
712
|
+
createdAt: Date;
|
|
713
|
+
authorId: string;
|
|
714
|
+
organizationId: string;
|
|
715
|
+
}, ExtArgs["result"]["comment"]>;
|
|
716
|
+
composites: {};
|
|
717
|
+
};
|
|
718
|
+
export type CommentGetPayload<S extends boolean | null | undefined | CommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CommentPayload, S>;
|
|
719
|
+
export type CommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
720
|
+
select?: CommentCountAggregateInputType | true;
|
|
721
|
+
};
|
|
722
|
+
export interface CommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
723
|
+
[K: symbol]: {
|
|
724
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Comment'];
|
|
725
|
+
meta: {
|
|
726
|
+
name: 'Comment';
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* Find zero or one Comment that matches the filter.
|
|
731
|
+
* @param {CommentFindUniqueArgs} args - Arguments to find a Comment
|
|
732
|
+
* @example
|
|
733
|
+
* // Get one Comment
|
|
734
|
+
* const comment = await prisma.comment.findUnique({
|
|
735
|
+
* where: {
|
|
736
|
+
* // ... provide filter here
|
|
737
|
+
* }
|
|
738
|
+
* })
|
|
739
|
+
*/
|
|
740
|
+
findUnique<T extends CommentFindUniqueArgs>(args: Prisma.SelectSubset<T, CommentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
741
|
+
/**
|
|
742
|
+
* Find one Comment that matches the filter or throw an error with `error.code='P2025'`
|
|
743
|
+
* if no matches were found.
|
|
744
|
+
* @param {CommentFindUniqueOrThrowArgs} args - Arguments to find a Comment
|
|
745
|
+
* @example
|
|
746
|
+
* // Get one Comment
|
|
747
|
+
* const comment = await prisma.comment.findUniqueOrThrow({
|
|
748
|
+
* where: {
|
|
749
|
+
* // ... provide filter here
|
|
750
|
+
* }
|
|
751
|
+
* })
|
|
752
|
+
*/
|
|
753
|
+
findUniqueOrThrow<T extends CommentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
754
|
+
/**
|
|
755
|
+
* Find the first Comment that matches the filter.
|
|
756
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
757
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
758
|
+
* @param {CommentFindFirstArgs} args - Arguments to find a Comment
|
|
759
|
+
* @example
|
|
760
|
+
* // Get one Comment
|
|
761
|
+
* const comment = await prisma.comment.findFirst({
|
|
762
|
+
* where: {
|
|
763
|
+
* // ... provide filter here
|
|
764
|
+
* }
|
|
765
|
+
* })
|
|
766
|
+
*/
|
|
767
|
+
findFirst<T extends CommentFindFirstArgs>(args?: Prisma.SelectSubset<T, CommentFindFirstArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
768
|
+
/**
|
|
769
|
+
* Find the first Comment that matches the filter or
|
|
770
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
771
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
772
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
773
|
+
* @param {CommentFindFirstOrThrowArgs} args - Arguments to find a Comment
|
|
774
|
+
* @example
|
|
775
|
+
* // Get one Comment
|
|
776
|
+
* const comment = await prisma.comment.findFirstOrThrow({
|
|
777
|
+
* where: {
|
|
778
|
+
* // ... provide filter here
|
|
779
|
+
* }
|
|
780
|
+
* })
|
|
781
|
+
*/
|
|
782
|
+
findFirstOrThrow<T extends CommentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CommentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
783
|
+
/**
|
|
784
|
+
* Find zero or more Comments that matches the filter.
|
|
785
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
786
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
787
|
+
* @param {CommentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
788
|
+
* @example
|
|
789
|
+
* // Get all Comments
|
|
790
|
+
* const comments = await prisma.comment.findMany()
|
|
791
|
+
*
|
|
792
|
+
* // Get first 10 Comments
|
|
793
|
+
* const comments = await prisma.comment.findMany({ take: 10 })
|
|
794
|
+
*
|
|
795
|
+
* // Only select the `id`
|
|
796
|
+
* const commentWithIdOnly = await prisma.comment.findMany({ select: { id: true } })
|
|
797
|
+
*
|
|
798
|
+
*/
|
|
799
|
+
findMany<T extends CommentFindManyArgs>(args?: Prisma.SelectSubset<T, CommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
800
|
+
/**
|
|
801
|
+
* Create a Comment.
|
|
802
|
+
* @param {CommentCreateArgs} args - Arguments to create a Comment.
|
|
803
|
+
* @example
|
|
804
|
+
* // Create one Comment
|
|
805
|
+
* const Comment = await prisma.comment.create({
|
|
806
|
+
* data: {
|
|
807
|
+
* // ... data to create a Comment
|
|
808
|
+
* }
|
|
809
|
+
* })
|
|
810
|
+
*
|
|
811
|
+
*/
|
|
812
|
+
create<T extends CommentCreateArgs>(args: Prisma.SelectSubset<T, CommentCreateArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
813
|
+
/**
|
|
814
|
+
* Create many Comments.
|
|
815
|
+
* @param {CommentCreateManyArgs} args - Arguments to create many Comments.
|
|
816
|
+
* @example
|
|
817
|
+
* // Create many Comments
|
|
818
|
+
* const comment = await prisma.comment.createMany({
|
|
819
|
+
* data: [
|
|
820
|
+
* // ... provide data here
|
|
821
|
+
* ]
|
|
822
|
+
* })
|
|
823
|
+
*
|
|
824
|
+
*/
|
|
825
|
+
createMany<T extends CommentCreateManyArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
826
|
+
/**
|
|
827
|
+
* Create many Comments and returns the data saved in the database.
|
|
828
|
+
* @param {CommentCreateManyAndReturnArgs} args - Arguments to create many Comments.
|
|
829
|
+
* @example
|
|
830
|
+
* // Create many Comments
|
|
831
|
+
* const comment = await prisma.comment.createManyAndReturn({
|
|
832
|
+
* data: [
|
|
833
|
+
* // ... provide data here
|
|
834
|
+
* ]
|
|
835
|
+
* })
|
|
836
|
+
*
|
|
837
|
+
* // Create many Comments and only return the `id`
|
|
838
|
+
* const commentWithIdOnly = await prisma.comment.createManyAndReturn({
|
|
839
|
+
* select: { id: true },
|
|
840
|
+
* data: [
|
|
841
|
+
* // ... provide data here
|
|
842
|
+
* ]
|
|
843
|
+
* })
|
|
844
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
845
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
846
|
+
*
|
|
847
|
+
*/
|
|
848
|
+
createManyAndReturn<T extends CommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
849
|
+
/**
|
|
850
|
+
* Delete a Comment.
|
|
851
|
+
* @param {CommentDeleteArgs} args - Arguments to delete one Comment.
|
|
852
|
+
* @example
|
|
853
|
+
* // Delete one Comment
|
|
854
|
+
* const Comment = await prisma.comment.delete({
|
|
855
|
+
* where: {
|
|
856
|
+
* // ... filter to delete one Comment
|
|
857
|
+
* }
|
|
858
|
+
* })
|
|
859
|
+
*
|
|
860
|
+
*/
|
|
861
|
+
delete<T extends CommentDeleteArgs>(args: Prisma.SelectSubset<T, CommentDeleteArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
862
|
+
/**
|
|
863
|
+
* Update one Comment.
|
|
864
|
+
* @param {CommentUpdateArgs} args - Arguments to update one Comment.
|
|
865
|
+
* @example
|
|
866
|
+
* // Update one Comment
|
|
867
|
+
* const comment = await prisma.comment.update({
|
|
868
|
+
* where: {
|
|
869
|
+
* // ... provide filter here
|
|
870
|
+
* },
|
|
871
|
+
* data: {
|
|
872
|
+
* // ... provide data here
|
|
873
|
+
* }
|
|
874
|
+
* })
|
|
875
|
+
*
|
|
876
|
+
*/
|
|
877
|
+
update<T extends CommentUpdateArgs>(args: Prisma.SelectSubset<T, CommentUpdateArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
878
|
+
/**
|
|
879
|
+
* Delete zero or more Comments.
|
|
880
|
+
* @param {CommentDeleteManyArgs} args - Arguments to filter Comments to delete.
|
|
881
|
+
* @example
|
|
882
|
+
* // Delete a few Comments
|
|
883
|
+
* const { count } = await prisma.comment.deleteMany({
|
|
884
|
+
* where: {
|
|
885
|
+
* // ... provide filter here
|
|
886
|
+
* }
|
|
887
|
+
* })
|
|
888
|
+
*
|
|
889
|
+
*/
|
|
890
|
+
deleteMany<T extends CommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
891
|
+
/**
|
|
892
|
+
* Update zero or more Comments.
|
|
893
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
894
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
895
|
+
* @param {CommentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
896
|
+
* @example
|
|
897
|
+
* // Update many Comments
|
|
898
|
+
* const comment = await prisma.comment.updateMany({
|
|
899
|
+
* where: {
|
|
900
|
+
* // ... provide filter here
|
|
901
|
+
* },
|
|
902
|
+
* data: {
|
|
903
|
+
* // ... provide data here
|
|
904
|
+
* }
|
|
905
|
+
* })
|
|
906
|
+
*
|
|
907
|
+
*/
|
|
908
|
+
updateMany<T extends CommentUpdateManyArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
909
|
+
/**
|
|
910
|
+
* Update zero or more Comments and returns the data updated in the database.
|
|
911
|
+
* @param {CommentUpdateManyAndReturnArgs} args - Arguments to update many Comments.
|
|
912
|
+
* @example
|
|
913
|
+
* // Update many Comments
|
|
914
|
+
* const comment = await prisma.comment.updateManyAndReturn({
|
|
915
|
+
* where: {
|
|
916
|
+
* // ... provide filter here
|
|
917
|
+
* },
|
|
918
|
+
* data: [
|
|
919
|
+
* // ... provide data here
|
|
920
|
+
* ]
|
|
921
|
+
* })
|
|
922
|
+
*
|
|
923
|
+
* // Update zero or more Comments and only return the `id`
|
|
924
|
+
* const commentWithIdOnly = await prisma.comment.updateManyAndReturn({
|
|
925
|
+
* select: { id: true },
|
|
926
|
+
* where: {
|
|
927
|
+
* // ... provide filter here
|
|
928
|
+
* },
|
|
929
|
+
* data: [
|
|
930
|
+
* // ... provide data here
|
|
931
|
+
* ]
|
|
932
|
+
* })
|
|
933
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
934
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
935
|
+
*
|
|
936
|
+
*/
|
|
937
|
+
updateManyAndReturn<T extends CommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
938
|
+
/**
|
|
939
|
+
* Create or update one Comment.
|
|
940
|
+
* @param {CommentUpsertArgs} args - Arguments to update or create a Comment.
|
|
941
|
+
* @example
|
|
942
|
+
* // Update or create a Comment
|
|
943
|
+
* const comment = await prisma.comment.upsert({
|
|
944
|
+
* create: {
|
|
945
|
+
* // ... data to create a Comment
|
|
946
|
+
* },
|
|
947
|
+
* update: {
|
|
948
|
+
* // ... in case it already exists, update
|
|
949
|
+
* },
|
|
950
|
+
* where: {
|
|
951
|
+
* // ... the filter for the Comment we want to update
|
|
952
|
+
* }
|
|
953
|
+
* })
|
|
954
|
+
*/
|
|
955
|
+
upsert<T extends CommentUpsertArgs>(args: Prisma.SelectSubset<T, CommentUpsertArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
956
|
+
/**
|
|
957
|
+
* Count the number of Comments.
|
|
958
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
959
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
960
|
+
* @param {CommentCountArgs} args - Arguments to filter Comments to count.
|
|
961
|
+
* @example
|
|
962
|
+
* // Count the number of Comments
|
|
963
|
+
* const count = await prisma.comment.count({
|
|
964
|
+
* where: {
|
|
965
|
+
* // ... the filter for the Comments we want to count
|
|
966
|
+
* }
|
|
967
|
+
* })
|
|
968
|
+
**/
|
|
969
|
+
count<T extends CommentCountArgs>(args?: Prisma.Subset<T, CommentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CommentCountAggregateOutputType> : number>;
|
|
970
|
+
/**
|
|
971
|
+
* Allows you to perform aggregations operations on a Comment.
|
|
972
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
973
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
974
|
+
* @param {CommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
975
|
+
* @example
|
|
976
|
+
* // Ordered by age ascending
|
|
977
|
+
* // Where email contains prisma.io
|
|
978
|
+
* // Limited to the 10 users
|
|
979
|
+
* const aggregations = await prisma.user.aggregate({
|
|
980
|
+
* _avg: {
|
|
981
|
+
* age: true,
|
|
982
|
+
* },
|
|
983
|
+
* where: {
|
|
984
|
+
* email: {
|
|
985
|
+
* contains: "prisma.io",
|
|
986
|
+
* },
|
|
987
|
+
* },
|
|
988
|
+
* orderBy: {
|
|
989
|
+
* age: "asc",
|
|
990
|
+
* },
|
|
991
|
+
* take: 10,
|
|
992
|
+
* })
|
|
993
|
+
**/
|
|
994
|
+
aggregate<T extends CommentAggregateArgs>(args: Prisma.Subset<T, CommentAggregateArgs>): Prisma.PrismaPromise<GetCommentAggregateType<T>>;
|
|
995
|
+
/**
|
|
996
|
+
* Group by Comment.
|
|
997
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
998
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
999
|
+
* @param {CommentGroupByArgs} args - Group by arguments.
|
|
1000
|
+
* @example
|
|
1001
|
+
* // Group by city, order by createdAt, get count
|
|
1002
|
+
* const result = await prisma.user.groupBy({
|
|
1003
|
+
* by: ['city', 'createdAt'],
|
|
1004
|
+
* orderBy: {
|
|
1005
|
+
* createdAt: true
|
|
1006
|
+
* },
|
|
1007
|
+
* _count: {
|
|
1008
|
+
* _all: true
|
|
1009
|
+
* },
|
|
1010
|
+
* })
|
|
1011
|
+
*
|
|
1012
|
+
**/
|
|
1013
|
+
groupBy<T extends CommentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1014
|
+
orderBy: CommentGroupByArgs['orderBy'];
|
|
1015
|
+
} : {
|
|
1016
|
+
orderBy?: CommentGroupByArgs['orderBy'];
|
|
1017
|
+
}, 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 ? {
|
|
1018
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1019
|
+
Error,
|
|
1020
|
+
'Field ',
|
|
1021
|
+
P,
|
|
1022
|
+
` in "having" needs to be provided in "by"`
|
|
1023
|
+
];
|
|
1024
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1025
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1026
|
+
}[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 ? {} : {
|
|
1027
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1028
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1029
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1030
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, CommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Fields of the Comment model
|
|
1033
|
+
*/
|
|
1034
|
+
readonly fields: CommentFieldRefs;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* The delegate class that acts as a "Promise-like" for Comment.
|
|
1038
|
+
* Why is this prefixed with `Prisma__`?
|
|
1039
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1040
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1041
|
+
*/
|
|
1042
|
+
export interface Prisma__CommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1043
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1044
|
+
author<T extends Prisma.MemberDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MemberDefaultArgs<ExtArgs>>): Prisma.Prisma__MemberClient<runtime.Types.Result.GetResult<Prisma.$MemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1045
|
+
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>;
|
|
1046
|
+
attachments<T extends Prisma.Comment$attachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1049
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1050
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1051
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1052
|
+
*/
|
|
1053
|
+
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>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1056
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1057
|
+
* @returns A Promise for the completion of the callback.
|
|
1058
|
+
*/
|
|
1059
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1062
|
+
* resolved value cannot be modified from the callback.
|
|
1063
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1064
|
+
* @returns A Promise for the completion of the callback.
|
|
1065
|
+
*/
|
|
1066
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Fields of the Comment model
|
|
1070
|
+
*/
|
|
1071
|
+
export interface CommentFieldRefs {
|
|
1072
|
+
readonly id: Prisma.FieldRef<"Comment", 'String'>;
|
|
1073
|
+
readonly content: Prisma.FieldRef<"Comment", 'String'>;
|
|
1074
|
+
readonly entityId: Prisma.FieldRef<"Comment", 'String'>;
|
|
1075
|
+
readonly entityType: Prisma.FieldRef<"Comment", 'CommentEntityType'>;
|
|
1076
|
+
readonly createdAt: Prisma.FieldRef<"Comment", 'DateTime'>;
|
|
1077
|
+
readonly authorId: Prisma.FieldRef<"Comment", 'String'>;
|
|
1078
|
+
readonly organizationId: Prisma.FieldRef<"Comment", 'String'>;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Comment findUnique
|
|
1082
|
+
*/
|
|
1083
|
+
export type CommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1084
|
+
/**
|
|
1085
|
+
* Select specific fields to fetch from the Comment
|
|
1086
|
+
*/
|
|
1087
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1088
|
+
/**
|
|
1089
|
+
* Omit specific fields from the Comment
|
|
1090
|
+
*/
|
|
1091
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1092
|
+
/**
|
|
1093
|
+
* Choose, which related nodes to fetch as well
|
|
1094
|
+
*/
|
|
1095
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Filter, which Comment to fetch.
|
|
1098
|
+
*/
|
|
1099
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* Comment findUniqueOrThrow
|
|
1103
|
+
*/
|
|
1104
|
+
export type CommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1105
|
+
/**
|
|
1106
|
+
* Select specific fields to fetch from the Comment
|
|
1107
|
+
*/
|
|
1108
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Omit specific fields from the Comment
|
|
1111
|
+
*/
|
|
1112
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* Choose, which related nodes to fetch as well
|
|
1115
|
+
*/
|
|
1116
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Filter, which Comment to fetch.
|
|
1119
|
+
*/
|
|
1120
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Comment findFirst
|
|
1124
|
+
*/
|
|
1125
|
+
export type CommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1126
|
+
/**
|
|
1127
|
+
* Select specific fields to fetch from the Comment
|
|
1128
|
+
*/
|
|
1129
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1130
|
+
/**
|
|
1131
|
+
* Omit specific fields from the Comment
|
|
1132
|
+
*/
|
|
1133
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1134
|
+
/**
|
|
1135
|
+
* Choose, which related nodes to fetch as well
|
|
1136
|
+
*/
|
|
1137
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1138
|
+
/**
|
|
1139
|
+
* Filter, which Comment to fetch.
|
|
1140
|
+
*/
|
|
1141
|
+
where?: Prisma.CommentWhereInput;
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Determine the order of Comments to fetch.
|
|
1146
|
+
*/
|
|
1147
|
+
orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1150
|
+
*
|
|
1151
|
+
* Sets the position for searching for Comments.
|
|
1152
|
+
*/
|
|
1153
|
+
cursor?: Prisma.CommentWhereUniqueInput;
|
|
1154
|
+
/**
|
|
1155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1156
|
+
*
|
|
1157
|
+
* Take `±n` Comments from the position of the cursor.
|
|
1158
|
+
*/
|
|
1159
|
+
take?: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1162
|
+
*
|
|
1163
|
+
* Skip the first `n` Comments.
|
|
1164
|
+
*/
|
|
1165
|
+
skip?: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1168
|
+
*
|
|
1169
|
+
* Filter by unique combinations of Comments.
|
|
1170
|
+
*/
|
|
1171
|
+
distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* Comment findFirstOrThrow
|
|
1175
|
+
*/
|
|
1176
|
+
export type CommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1177
|
+
/**
|
|
1178
|
+
* Select specific fields to fetch from the Comment
|
|
1179
|
+
*/
|
|
1180
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Omit specific fields from the Comment
|
|
1183
|
+
*/
|
|
1184
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Choose, which related nodes to fetch as well
|
|
1187
|
+
*/
|
|
1188
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* Filter, which Comment to fetch.
|
|
1191
|
+
*/
|
|
1192
|
+
where?: Prisma.CommentWhereInput;
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Determine the order of Comments to fetch.
|
|
1197
|
+
*/
|
|
1198
|
+
orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
|
|
1199
|
+
/**
|
|
1200
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1201
|
+
*
|
|
1202
|
+
* Sets the position for searching for Comments.
|
|
1203
|
+
*/
|
|
1204
|
+
cursor?: Prisma.CommentWhereUniqueInput;
|
|
1205
|
+
/**
|
|
1206
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1207
|
+
*
|
|
1208
|
+
* Take `±n` Comments from the position of the cursor.
|
|
1209
|
+
*/
|
|
1210
|
+
take?: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1213
|
+
*
|
|
1214
|
+
* Skip the first `n` Comments.
|
|
1215
|
+
*/
|
|
1216
|
+
skip?: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1219
|
+
*
|
|
1220
|
+
* Filter by unique combinations of Comments.
|
|
1221
|
+
*/
|
|
1222
|
+
distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Comment findMany
|
|
1226
|
+
*/
|
|
1227
|
+
export type CommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Select specific fields to fetch from the Comment
|
|
1230
|
+
*/
|
|
1231
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Omit specific fields from the Comment
|
|
1234
|
+
*/
|
|
1235
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Choose, which related nodes to fetch as well
|
|
1238
|
+
*/
|
|
1239
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1240
|
+
/**
|
|
1241
|
+
* Filter, which Comments to fetch.
|
|
1242
|
+
*/
|
|
1243
|
+
where?: Prisma.CommentWhereInput;
|
|
1244
|
+
/**
|
|
1245
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1246
|
+
*
|
|
1247
|
+
* Determine the order of Comments to fetch.
|
|
1248
|
+
*/
|
|
1249
|
+
orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
|
|
1250
|
+
/**
|
|
1251
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1252
|
+
*
|
|
1253
|
+
* Sets the position for listing Comments.
|
|
1254
|
+
*/
|
|
1255
|
+
cursor?: Prisma.CommentWhereUniqueInput;
|
|
1256
|
+
/**
|
|
1257
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1258
|
+
*
|
|
1259
|
+
* Take `±n` Comments from the position of the cursor.
|
|
1260
|
+
*/
|
|
1261
|
+
take?: number;
|
|
1262
|
+
/**
|
|
1263
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1264
|
+
*
|
|
1265
|
+
* Skip the first `n` Comments.
|
|
1266
|
+
*/
|
|
1267
|
+
skip?: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1270
|
+
*
|
|
1271
|
+
* Filter by unique combinations of Comments.
|
|
1272
|
+
*/
|
|
1273
|
+
distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
|
|
1274
|
+
};
|
|
1275
|
+
/**
|
|
1276
|
+
* Comment create
|
|
1277
|
+
*/
|
|
1278
|
+
export type CommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1279
|
+
/**
|
|
1280
|
+
* Select specific fields to fetch from the Comment
|
|
1281
|
+
*/
|
|
1282
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1283
|
+
/**
|
|
1284
|
+
* Omit specific fields from the Comment
|
|
1285
|
+
*/
|
|
1286
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Choose, which related nodes to fetch as well
|
|
1289
|
+
*/
|
|
1290
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* The data needed to create a Comment.
|
|
1293
|
+
*/
|
|
1294
|
+
data: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>;
|
|
1295
|
+
};
|
|
1296
|
+
/**
|
|
1297
|
+
* Comment createMany
|
|
1298
|
+
*/
|
|
1299
|
+
export type CommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1300
|
+
/**
|
|
1301
|
+
* The data used to create many Comments.
|
|
1302
|
+
*/
|
|
1303
|
+
data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[];
|
|
1304
|
+
skipDuplicates?: boolean;
|
|
1305
|
+
};
|
|
1306
|
+
/**
|
|
1307
|
+
* Comment createManyAndReturn
|
|
1308
|
+
*/
|
|
1309
|
+
export type CommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1310
|
+
/**
|
|
1311
|
+
* Select specific fields to fetch from the Comment
|
|
1312
|
+
*/
|
|
1313
|
+
select?: Prisma.CommentSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Omit specific fields from the Comment
|
|
1316
|
+
*/
|
|
1317
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1318
|
+
/**
|
|
1319
|
+
* The data used to create many Comments.
|
|
1320
|
+
*/
|
|
1321
|
+
data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[];
|
|
1322
|
+
skipDuplicates?: boolean;
|
|
1323
|
+
/**
|
|
1324
|
+
* Choose, which related nodes to fetch as well
|
|
1325
|
+
*/
|
|
1326
|
+
include?: Prisma.CommentIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1327
|
+
};
|
|
1328
|
+
/**
|
|
1329
|
+
* Comment update
|
|
1330
|
+
*/
|
|
1331
|
+
export type CommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1332
|
+
/**
|
|
1333
|
+
* Select specific fields to fetch from the Comment
|
|
1334
|
+
*/
|
|
1335
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1336
|
+
/**
|
|
1337
|
+
* Omit specific fields from the Comment
|
|
1338
|
+
*/
|
|
1339
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1340
|
+
/**
|
|
1341
|
+
* Choose, which related nodes to fetch as well
|
|
1342
|
+
*/
|
|
1343
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1344
|
+
/**
|
|
1345
|
+
* The data needed to update a Comment.
|
|
1346
|
+
*/
|
|
1347
|
+
data: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Choose, which Comment to update.
|
|
1350
|
+
*/
|
|
1351
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
1352
|
+
};
|
|
1353
|
+
/**
|
|
1354
|
+
* Comment updateMany
|
|
1355
|
+
*/
|
|
1356
|
+
export type CommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1357
|
+
/**
|
|
1358
|
+
* The data used to update Comments.
|
|
1359
|
+
*/
|
|
1360
|
+
data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>;
|
|
1361
|
+
/**
|
|
1362
|
+
* Filter which Comments to update
|
|
1363
|
+
*/
|
|
1364
|
+
where?: Prisma.CommentWhereInput;
|
|
1365
|
+
/**
|
|
1366
|
+
* Limit how many Comments to update.
|
|
1367
|
+
*/
|
|
1368
|
+
limit?: number;
|
|
1369
|
+
};
|
|
1370
|
+
/**
|
|
1371
|
+
* Comment updateManyAndReturn
|
|
1372
|
+
*/
|
|
1373
|
+
export type CommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1374
|
+
/**
|
|
1375
|
+
* Select specific fields to fetch from the Comment
|
|
1376
|
+
*/
|
|
1377
|
+
select?: Prisma.CommentSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Omit specific fields from the Comment
|
|
1380
|
+
*/
|
|
1381
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* The data used to update Comments.
|
|
1384
|
+
*/
|
|
1385
|
+
data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Filter which Comments to update
|
|
1388
|
+
*/
|
|
1389
|
+
where?: Prisma.CommentWhereInput;
|
|
1390
|
+
/**
|
|
1391
|
+
* Limit how many Comments to update.
|
|
1392
|
+
*/
|
|
1393
|
+
limit?: number;
|
|
1394
|
+
/**
|
|
1395
|
+
* Choose, which related nodes to fetch as well
|
|
1396
|
+
*/
|
|
1397
|
+
include?: Prisma.CommentIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1398
|
+
};
|
|
1399
|
+
/**
|
|
1400
|
+
* Comment upsert
|
|
1401
|
+
*/
|
|
1402
|
+
export type CommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1403
|
+
/**
|
|
1404
|
+
* Select specific fields to fetch from the Comment
|
|
1405
|
+
*/
|
|
1406
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1407
|
+
/**
|
|
1408
|
+
* Omit specific fields from the Comment
|
|
1409
|
+
*/
|
|
1410
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Choose, which related nodes to fetch as well
|
|
1413
|
+
*/
|
|
1414
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* The filter to search for the Comment to update in case it exists.
|
|
1417
|
+
*/
|
|
1418
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
1419
|
+
/**
|
|
1420
|
+
* In case the Comment found by the `where` argument doesn't exist, create a new Comment with this data.
|
|
1421
|
+
*/
|
|
1422
|
+
create: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>;
|
|
1423
|
+
/**
|
|
1424
|
+
* In case the Comment was found with the provided `where` argument, update it with this data.
|
|
1425
|
+
*/
|
|
1426
|
+
update: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>;
|
|
1427
|
+
};
|
|
1428
|
+
/**
|
|
1429
|
+
* Comment delete
|
|
1430
|
+
*/
|
|
1431
|
+
export type CommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1432
|
+
/**
|
|
1433
|
+
* Select specific fields to fetch from the Comment
|
|
1434
|
+
*/
|
|
1435
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1436
|
+
/**
|
|
1437
|
+
* Omit specific fields from the Comment
|
|
1438
|
+
*/
|
|
1439
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1440
|
+
/**
|
|
1441
|
+
* Choose, which related nodes to fetch as well
|
|
1442
|
+
*/
|
|
1443
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1444
|
+
/**
|
|
1445
|
+
* Filter which Comment to delete.
|
|
1446
|
+
*/
|
|
1447
|
+
where: Prisma.CommentWhereUniqueInput;
|
|
1448
|
+
};
|
|
1449
|
+
/**
|
|
1450
|
+
* Comment deleteMany
|
|
1451
|
+
*/
|
|
1452
|
+
export type CommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1453
|
+
/**
|
|
1454
|
+
* Filter which Comments to delete
|
|
1455
|
+
*/
|
|
1456
|
+
where?: Prisma.CommentWhereInput;
|
|
1457
|
+
/**
|
|
1458
|
+
* Limit how many Comments to delete.
|
|
1459
|
+
*/
|
|
1460
|
+
limit?: number;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Comment.attachments
|
|
1464
|
+
*/
|
|
1465
|
+
export type Comment$attachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1466
|
+
/**
|
|
1467
|
+
* Select specific fields to fetch from the Attachment
|
|
1468
|
+
*/
|
|
1469
|
+
select?: Prisma.AttachmentSelect<ExtArgs> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Omit specific fields from the Attachment
|
|
1472
|
+
*/
|
|
1473
|
+
omit?: Prisma.AttachmentOmit<ExtArgs> | null;
|
|
1474
|
+
/**
|
|
1475
|
+
* Choose, which related nodes to fetch as well
|
|
1476
|
+
*/
|
|
1477
|
+
include?: Prisma.AttachmentInclude<ExtArgs> | null;
|
|
1478
|
+
where?: Prisma.AttachmentWhereInput;
|
|
1479
|
+
orderBy?: Prisma.AttachmentOrderByWithRelationInput | Prisma.AttachmentOrderByWithRelationInput[];
|
|
1480
|
+
cursor?: Prisma.AttachmentWhereUniqueInput;
|
|
1481
|
+
take?: number;
|
|
1482
|
+
skip?: number;
|
|
1483
|
+
distinct?: Prisma.AttachmentScalarFieldEnum | Prisma.AttachmentScalarFieldEnum[];
|
|
1484
|
+
};
|
|
1485
|
+
/**
|
|
1486
|
+
* Comment without action
|
|
1487
|
+
*/
|
|
1488
|
+
export type CommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1489
|
+
/**
|
|
1490
|
+
* Select specific fields to fetch from the Comment
|
|
1491
|
+
*/
|
|
1492
|
+
select?: Prisma.CommentSelect<ExtArgs> | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Omit specific fields from the Comment
|
|
1495
|
+
*/
|
|
1496
|
+
omit?: Prisma.CommentOmit<ExtArgs> | null;
|
|
1497
|
+
/**
|
|
1498
|
+
* Choose, which related nodes to fetch as well
|
|
1499
|
+
*/
|
|
1500
|
+
include?: Prisma.CommentInclude<ExtArgs> | null;
|
|
1501
|
+
};
|
|
1502
|
+
//# sourceMappingURL=Comment.d.ts.map
|