@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,1254 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model Context
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type ContextModel = runtime.Types.Result.DefaultSelection<Prisma.$ContextPayload>;
|
|
8
|
+
export type AggregateContext = {
|
|
9
|
+
_count: ContextCountAggregateOutputType | null;
|
|
10
|
+
_min: ContextMinAggregateOutputType | null;
|
|
11
|
+
_max: ContextMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type ContextMinAggregateOutputType = {
|
|
14
|
+
id: string | null;
|
|
15
|
+
organizationId: string | null;
|
|
16
|
+
question: string | null;
|
|
17
|
+
answer: string | null;
|
|
18
|
+
createdAt: Date | null;
|
|
19
|
+
updatedAt: Date | null;
|
|
20
|
+
};
|
|
21
|
+
export type ContextMaxAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
organizationId: string | null;
|
|
24
|
+
question: string | null;
|
|
25
|
+
answer: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type ContextCountAggregateOutputType = {
|
|
30
|
+
id: number;
|
|
31
|
+
organizationId: number;
|
|
32
|
+
question: number;
|
|
33
|
+
answer: number;
|
|
34
|
+
tags: number;
|
|
35
|
+
createdAt: number;
|
|
36
|
+
updatedAt: number;
|
|
37
|
+
_all: number;
|
|
38
|
+
};
|
|
39
|
+
export type ContextMinAggregateInputType = {
|
|
40
|
+
id?: true;
|
|
41
|
+
organizationId?: true;
|
|
42
|
+
question?: true;
|
|
43
|
+
answer?: true;
|
|
44
|
+
createdAt?: true;
|
|
45
|
+
updatedAt?: true;
|
|
46
|
+
};
|
|
47
|
+
export type ContextMaxAggregateInputType = {
|
|
48
|
+
id?: true;
|
|
49
|
+
organizationId?: true;
|
|
50
|
+
question?: true;
|
|
51
|
+
answer?: true;
|
|
52
|
+
createdAt?: true;
|
|
53
|
+
updatedAt?: true;
|
|
54
|
+
};
|
|
55
|
+
export type ContextCountAggregateInputType = {
|
|
56
|
+
id?: true;
|
|
57
|
+
organizationId?: true;
|
|
58
|
+
question?: true;
|
|
59
|
+
answer?: true;
|
|
60
|
+
tags?: true;
|
|
61
|
+
createdAt?: true;
|
|
62
|
+
updatedAt?: true;
|
|
63
|
+
_all?: true;
|
|
64
|
+
};
|
|
65
|
+
export type ContextAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
66
|
+
/**
|
|
67
|
+
* Filter which Context to aggregate.
|
|
68
|
+
*/
|
|
69
|
+
where?: Prisma.ContextWhereInput;
|
|
70
|
+
/**
|
|
71
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
72
|
+
*
|
|
73
|
+
* Determine the order of Contexts to fetch.
|
|
74
|
+
*/
|
|
75
|
+
orderBy?: Prisma.ContextOrderByWithRelationInput | Prisma.ContextOrderByWithRelationInput[];
|
|
76
|
+
/**
|
|
77
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
78
|
+
*
|
|
79
|
+
* Sets the start position
|
|
80
|
+
*/
|
|
81
|
+
cursor?: Prisma.ContextWhereUniqueInput;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
84
|
+
*
|
|
85
|
+
* Take `±n` Contexts from the position of the cursor.
|
|
86
|
+
*/
|
|
87
|
+
take?: number;
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
90
|
+
*
|
|
91
|
+
* Skip the first `n` Contexts.
|
|
92
|
+
*/
|
|
93
|
+
skip?: number;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
96
|
+
*
|
|
97
|
+
* Count returned Contexts
|
|
98
|
+
**/
|
|
99
|
+
_count?: true | ContextCountAggregateInputType;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
102
|
+
*
|
|
103
|
+
* Select which fields to find the minimum value
|
|
104
|
+
**/
|
|
105
|
+
_min?: ContextMinAggregateInputType;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Select which fields to find the maximum value
|
|
110
|
+
**/
|
|
111
|
+
_max?: ContextMaxAggregateInputType;
|
|
112
|
+
};
|
|
113
|
+
export type GetContextAggregateType<T extends ContextAggregateArgs> = {
|
|
114
|
+
[P in keyof T & keyof AggregateContext]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContext[P]> : Prisma.GetScalarType<T[P], AggregateContext[P]>;
|
|
115
|
+
};
|
|
116
|
+
export type ContextGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
117
|
+
where?: Prisma.ContextWhereInput;
|
|
118
|
+
orderBy?: Prisma.ContextOrderByWithAggregationInput | Prisma.ContextOrderByWithAggregationInput[];
|
|
119
|
+
by: Prisma.ContextScalarFieldEnum[] | Prisma.ContextScalarFieldEnum;
|
|
120
|
+
having?: Prisma.ContextScalarWhereWithAggregatesInput;
|
|
121
|
+
take?: number;
|
|
122
|
+
skip?: number;
|
|
123
|
+
_count?: ContextCountAggregateInputType | true;
|
|
124
|
+
_min?: ContextMinAggregateInputType;
|
|
125
|
+
_max?: ContextMaxAggregateInputType;
|
|
126
|
+
};
|
|
127
|
+
export type ContextGroupByOutputType = {
|
|
128
|
+
id: string;
|
|
129
|
+
organizationId: string;
|
|
130
|
+
question: string;
|
|
131
|
+
answer: string;
|
|
132
|
+
tags: string[];
|
|
133
|
+
createdAt: Date;
|
|
134
|
+
updatedAt: Date;
|
|
135
|
+
_count: ContextCountAggregateOutputType | null;
|
|
136
|
+
_min: ContextMinAggregateOutputType | null;
|
|
137
|
+
_max: ContextMaxAggregateOutputType | null;
|
|
138
|
+
};
|
|
139
|
+
export type GetContextGroupByPayload<T extends ContextGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContextGroupByOutputType, T['by']> & {
|
|
140
|
+
[P in ((keyof T) & (keyof ContextGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContextGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContextGroupByOutputType[P]>;
|
|
141
|
+
}>>;
|
|
142
|
+
export type ContextWhereInput = {
|
|
143
|
+
AND?: Prisma.ContextWhereInput | Prisma.ContextWhereInput[];
|
|
144
|
+
OR?: Prisma.ContextWhereInput[];
|
|
145
|
+
NOT?: Prisma.ContextWhereInput | Prisma.ContextWhereInput[];
|
|
146
|
+
id?: Prisma.StringFilter<"Context"> | string;
|
|
147
|
+
organizationId?: Prisma.StringFilter<"Context"> | string;
|
|
148
|
+
question?: Prisma.StringFilter<"Context"> | string;
|
|
149
|
+
answer?: Prisma.StringFilter<"Context"> | string;
|
|
150
|
+
tags?: Prisma.StringNullableListFilter<"Context">;
|
|
151
|
+
createdAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
152
|
+
updatedAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
153
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
154
|
+
};
|
|
155
|
+
export type ContextOrderByWithRelationInput = {
|
|
156
|
+
id?: Prisma.SortOrder;
|
|
157
|
+
organizationId?: Prisma.SortOrder;
|
|
158
|
+
question?: Prisma.SortOrder;
|
|
159
|
+
answer?: Prisma.SortOrder;
|
|
160
|
+
tags?: Prisma.SortOrder;
|
|
161
|
+
createdAt?: Prisma.SortOrder;
|
|
162
|
+
updatedAt?: Prisma.SortOrder;
|
|
163
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
164
|
+
};
|
|
165
|
+
export type ContextWhereUniqueInput = Prisma.AtLeast<{
|
|
166
|
+
id?: string;
|
|
167
|
+
AND?: Prisma.ContextWhereInput | Prisma.ContextWhereInput[];
|
|
168
|
+
OR?: Prisma.ContextWhereInput[];
|
|
169
|
+
NOT?: Prisma.ContextWhereInput | Prisma.ContextWhereInput[];
|
|
170
|
+
organizationId?: Prisma.StringFilter<"Context"> | string;
|
|
171
|
+
question?: Prisma.StringFilter<"Context"> | string;
|
|
172
|
+
answer?: Prisma.StringFilter<"Context"> | string;
|
|
173
|
+
tags?: Prisma.StringNullableListFilter<"Context">;
|
|
174
|
+
createdAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
175
|
+
updatedAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
176
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
177
|
+
}, "id">;
|
|
178
|
+
export type ContextOrderByWithAggregationInput = {
|
|
179
|
+
id?: Prisma.SortOrder;
|
|
180
|
+
organizationId?: Prisma.SortOrder;
|
|
181
|
+
question?: Prisma.SortOrder;
|
|
182
|
+
answer?: Prisma.SortOrder;
|
|
183
|
+
tags?: Prisma.SortOrder;
|
|
184
|
+
createdAt?: Prisma.SortOrder;
|
|
185
|
+
updatedAt?: Prisma.SortOrder;
|
|
186
|
+
_count?: Prisma.ContextCountOrderByAggregateInput;
|
|
187
|
+
_max?: Prisma.ContextMaxOrderByAggregateInput;
|
|
188
|
+
_min?: Prisma.ContextMinOrderByAggregateInput;
|
|
189
|
+
};
|
|
190
|
+
export type ContextScalarWhereWithAggregatesInput = {
|
|
191
|
+
AND?: Prisma.ContextScalarWhereWithAggregatesInput | Prisma.ContextScalarWhereWithAggregatesInput[];
|
|
192
|
+
OR?: Prisma.ContextScalarWhereWithAggregatesInput[];
|
|
193
|
+
NOT?: Prisma.ContextScalarWhereWithAggregatesInput | Prisma.ContextScalarWhereWithAggregatesInput[];
|
|
194
|
+
id?: Prisma.StringWithAggregatesFilter<"Context"> | string;
|
|
195
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Context"> | string;
|
|
196
|
+
question?: Prisma.StringWithAggregatesFilter<"Context"> | string;
|
|
197
|
+
answer?: Prisma.StringWithAggregatesFilter<"Context"> | string;
|
|
198
|
+
tags?: Prisma.StringNullableListFilter<"Context">;
|
|
199
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Context"> | Date | string;
|
|
200
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Context"> | Date | string;
|
|
201
|
+
};
|
|
202
|
+
export type ContextCreateInput = {
|
|
203
|
+
id?: string;
|
|
204
|
+
question: string;
|
|
205
|
+
answer: string;
|
|
206
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
207
|
+
createdAt?: Date | string;
|
|
208
|
+
updatedAt?: Date | string;
|
|
209
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutContextInput;
|
|
210
|
+
};
|
|
211
|
+
export type ContextUncheckedCreateInput = {
|
|
212
|
+
id?: string;
|
|
213
|
+
organizationId: string;
|
|
214
|
+
question: string;
|
|
215
|
+
answer: string;
|
|
216
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
217
|
+
createdAt?: Date | string;
|
|
218
|
+
updatedAt?: Date | string;
|
|
219
|
+
};
|
|
220
|
+
export type ContextUpdateInput = {
|
|
221
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
222
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
223
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
224
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
225
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
226
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
227
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutContextNestedInput;
|
|
228
|
+
};
|
|
229
|
+
export type ContextUncheckedUpdateInput = {
|
|
230
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
231
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
233
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
234
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
235
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
236
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
237
|
+
};
|
|
238
|
+
export type ContextCreateManyInput = {
|
|
239
|
+
id?: string;
|
|
240
|
+
organizationId: string;
|
|
241
|
+
question: string;
|
|
242
|
+
answer: string;
|
|
243
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
244
|
+
createdAt?: Date | string;
|
|
245
|
+
updatedAt?: Date | string;
|
|
246
|
+
};
|
|
247
|
+
export type ContextUpdateManyMutationInput = {
|
|
248
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
249
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
250
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
251
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
252
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
253
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
254
|
+
};
|
|
255
|
+
export type ContextUncheckedUpdateManyInput = {
|
|
256
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
257
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
258
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
259
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
260
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
261
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
262
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
263
|
+
};
|
|
264
|
+
export type StringNullableListFilter<$PrismaModel = never> = {
|
|
265
|
+
equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
266
|
+
has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
267
|
+
hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
268
|
+
hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
269
|
+
isEmpty?: boolean;
|
|
270
|
+
};
|
|
271
|
+
export type ContextCountOrderByAggregateInput = {
|
|
272
|
+
id?: Prisma.SortOrder;
|
|
273
|
+
organizationId?: Prisma.SortOrder;
|
|
274
|
+
question?: Prisma.SortOrder;
|
|
275
|
+
answer?: Prisma.SortOrder;
|
|
276
|
+
tags?: Prisma.SortOrder;
|
|
277
|
+
createdAt?: Prisma.SortOrder;
|
|
278
|
+
updatedAt?: Prisma.SortOrder;
|
|
279
|
+
};
|
|
280
|
+
export type ContextMaxOrderByAggregateInput = {
|
|
281
|
+
id?: Prisma.SortOrder;
|
|
282
|
+
organizationId?: Prisma.SortOrder;
|
|
283
|
+
question?: Prisma.SortOrder;
|
|
284
|
+
answer?: Prisma.SortOrder;
|
|
285
|
+
createdAt?: Prisma.SortOrder;
|
|
286
|
+
updatedAt?: Prisma.SortOrder;
|
|
287
|
+
};
|
|
288
|
+
export type ContextMinOrderByAggregateInput = {
|
|
289
|
+
id?: Prisma.SortOrder;
|
|
290
|
+
organizationId?: Prisma.SortOrder;
|
|
291
|
+
question?: Prisma.SortOrder;
|
|
292
|
+
answer?: Prisma.SortOrder;
|
|
293
|
+
createdAt?: Prisma.SortOrder;
|
|
294
|
+
updatedAt?: Prisma.SortOrder;
|
|
295
|
+
};
|
|
296
|
+
export type ContextListRelationFilter = {
|
|
297
|
+
every?: Prisma.ContextWhereInput;
|
|
298
|
+
some?: Prisma.ContextWhereInput;
|
|
299
|
+
none?: Prisma.ContextWhereInput;
|
|
300
|
+
};
|
|
301
|
+
export type ContextOrderByRelationAggregateInput = {
|
|
302
|
+
_count?: Prisma.SortOrder;
|
|
303
|
+
};
|
|
304
|
+
export type ContextCreatetagsInput = {
|
|
305
|
+
set: string[];
|
|
306
|
+
};
|
|
307
|
+
export type ContextUpdatetagsInput = {
|
|
308
|
+
set?: string[];
|
|
309
|
+
push?: string | string[];
|
|
310
|
+
};
|
|
311
|
+
export type ContextCreateNestedManyWithoutOrganizationInput = {
|
|
312
|
+
create?: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput> | Prisma.ContextCreateWithoutOrganizationInput[] | Prisma.ContextUncheckedCreateWithoutOrganizationInput[];
|
|
313
|
+
connectOrCreate?: Prisma.ContextCreateOrConnectWithoutOrganizationInput | Prisma.ContextCreateOrConnectWithoutOrganizationInput[];
|
|
314
|
+
createMany?: Prisma.ContextCreateManyOrganizationInputEnvelope;
|
|
315
|
+
connect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
316
|
+
};
|
|
317
|
+
export type ContextUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
318
|
+
create?: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput> | Prisma.ContextCreateWithoutOrganizationInput[] | Prisma.ContextUncheckedCreateWithoutOrganizationInput[];
|
|
319
|
+
connectOrCreate?: Prisma.ContextCreateOrConnectWithoutOrganizationInput | Prisma.ContextCreateOrConnectWithoutOrganizationInput[];
|
|
320
|
+
createMany?: Prisma.ContextCreateManyOrganizationInputEnvelope;
|
|
321
|
+
connect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
322
|
+
};
|
|
323
|
+
export type ContextUpdateManyWithoutOrganizationNestedInput = {
|
|
324
|
+
create?: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput> | Prisma.ContextCreateWithoutOrganizationInput[] | Prisma.ContextUncheckedCreateWithoutOrganizationInput[];
|
|
325
|
+
connectOrCreate?: Prisma.ContextCreateOrConnectWithoutOrganizationInput | Prisma.ContextCreateOrConnectWithoutOrganizationInput[];
|
|
326
|
+
upsert?: Prisma.ContextUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ContextUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
327
|
+
createMany?: Prisma.ContextCreateManyOrganizationInputEnvelope;
|
|
328
|
+
set?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
329
|
+
disconnect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
330
|
+
delete?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
331
|
+
connect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
332
|
+
update?: Prisma.ContextUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ContextUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
333
|
+
updateMany?: Prisma.ContextUpdateManyWithWhereWithoutOrganizationInput | Prisma.ContextUpdateManyWithWhereWithoutOrganizationInput[];
|
|
334
|
+
deleteMany?: Prisma.ContextScalarWhereInput | Prisma.ContextScalarWhereInput[];
|
|
335
|
+
};
|
|
336
|
+
export type ContextUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
337
|
+
create?: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput> | Prisma.ContextCreateWithoutOrganizationInput[] | Prisma.ContextUncheckedCreateWithoutOrganizationInput[];
|
|
338
|
+
connectOrCreate?: Prisma.ContextCreateOrConnectWithoutOrganizationInput | Prisma.ContextCreateOrConnectWithoutOrganizationInput[];
|
|
339
|
+
upsert?: Prisma.ContextUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ContextUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
340
|
+
createMany?: Prisma.ContextCreateManyOrganizationInputEnvelope;
|
|
341
|
+
set?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
342
|
+
disconnect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
343
|
+
delete?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
344
|
+
connect?: Prisma.ContextWhereUniqueInput | Prisma.ContextWhereUniqueInput[];
|
|
345
|
+
update?: Prisma.ContextUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ContextUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
346
|
+
updateMany?: Prisma.ContextUpdateManyWithWhereWithoutOrganizationInput | Prisma.ContextUpdateManyWithWhereWithoutOrganizationInput[];
|
|
347
|
+
deleteMany?: Prisma.ContextScalarWhereInput | Prisma.ContextScalarWhereInput[];
|
|
348
|
+
};
|
|
349
|
+
export type ContextCreateWithoutOrganizationInput = {
|
|
350
|
+
id?: string;
|
|
351
|
+
question: string;
|
|
352
|
+
answer: string;
|
|
353
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
354
|
+
createdAt?: Date | string;
|
|
355
|
+
updatedAt?: Date | string;
|
|
356
|
+
};
|
|
357
|
+
export type ContextUncheckedCreateWithoutOrganizationInput = {
|
|
358
|
+
id?: string;
|
|
359
|
+
question: string;
|
|
360
|
+
answer: string;
|
|
361
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
362
|
+
createdAt?: Date | string;
|
|
363
|
+
updatedAt?: Date | string;
|
|
364
|
+
};
|
|
365
|
+
export type ContextCreateOrConnectWithoutOrganizationInput = {
|
|
366
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
367
|
+
create: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput>;
|
|
368
|
+
};
|
|
369
|
+
export type ContextCreateManyOrganizationInputEnvelope = {
|
|
370
|
+
data: Prisma.ContextCreateManyOrganizationInput | Prisma.ContextCreateManyOrganizationInput[];
|
|
371
|
+
skipDuplicates?: boolean;
|
|
372
|
+
};
|
|
373
|
+
export type ContextUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
374
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
375
|
+
update: Prisma.XOR<Prisma.ContextUpdateWithoutOrganizationInput, Prisma.ContextUncheckedUpdateWithoutOrganizationInput>;
|
|
376
|
+
create: Prisma.XOR<Prisma.ContextCreateWithoutOrganizationInput, Prisma.ContextUncheckedCreateWithoutOrganizationInput>;
|
|
377
|
+
};
|
|
378
|
+
export type ContextUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
379
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
380
|
+
data: Prisma.XOR<Prisma.ContextUpdateWithoutOrganizationInput, Prisma.ContextUncheckedUpdateWithoutOrganizationInput>;
|
|
381
|
+
};
|
|
382
|
+
export type ContextUpdateManyWithWhereWithoutOrganizationInput = {
|
|
383
|
+
where: Prisma.ContextScalarWhereInput;
|
|
384
|
+
data: Prisma.XOR<Prisma.ContextUpdateManyMutationInput, Prisma.ContextUncheckedUpdateManyWithoutOrganizationInput>;
|
|
385
|
+
};
|
|
386
|
+
export type ContextScalarWhereInput = {
|
|
387
|
+
AND?: Prisma.ContextScalarWhereInput | Prisma.ContextScalarWhereInput[];
|
|
388
|
+
OR?: Prisma.ContextScalarWhereInput[];
|
|
389
|
+
NOT?: Prisma.ContextScalarWhereInput | Prisma.ContextScalarWhereInput[];
|
|
390
|
+
id?: Prisma.StringFilter<"Context"> | string;
|
|
391
|
+
organizationId?: Prisma.StringFilter<"Context"> | string;
|
|
392
|
+
question?: Prisma.StringFilter<"Context"> | string;
|
|
393
|
+
answer?: Prisma.StringFilter<"Context"> | string;
|
|
394
|
+
tags?: Prisma.StringNullableListFilter<"Context">;
|
|
395
|
+
createdAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
396
|
+
updatedAt?: Prisma.DateTimeFilter<"Context"> | Date | string;
|
|
397
|
+
};
|
|
398
|
+
export type ContextCreateManyOrganizationInput = {
|
|
399
|
+
id?: string;
|
|
400
|
+
question: string;
|
|
401
|
+
answer: string;
|
|
402
|
+
tags?: Prisma.ContextCreatetagsInput | string[];
|
|
403
|
+
createdAt?: Date | string;
|
|
404
|
+
updatedAt?: Date | string;
|
|
405
|
+
};
|
|
406
|
+
export type ContextUpdateWithoutOrganizationInput = {
|
|
407
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
408
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
409
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
410
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
411
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
412
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
413
|
+
};
|
|
414
|
+
export type ContextUncheckedUpdateWithoutOrganizationInput = {
|
|
415
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
416
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
417
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
418
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
419
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
420
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
421
|
+
};
|
|
422
|
+
export type ContextUncheckedUpdateManyWithoutOrganizationInput = {
|
|
423
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
424
|
+
question?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
425
|
+
answer?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
426
|
+
tags?: Prisma.ContextUpdatetagsInput | string[];
|
|
427
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
428
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
429
|
+
};
|
|
430
|
+
export type ContextSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
431
|
+
id?: boolean;
|
|
432
|
+
organizationId?: boolean;
|
|
433
|
+
question?: boolean;
|
|
434
|
+
answer?: boolean;
|
|
435
|
+
tags?: boolean;
|
|
436
|
+
createdAt?: boolean;
|
|
437
|
+
updatedAt?: boolean;
|
|
438
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
439
|
+
}, ExtArgs["result"]["context"]>;
|
|
440
|
+
export type ContextSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
441
|
+
id?: boolean;
|
|
442
|
+
organizationId?: boolean;
|
|
443
|
+
question?: boolean;
|
|
444
|
+
answer?: boolean;
|
|
445
|
+
tags?: boolean;
|
|
446
|
+
createdAt?: boolean;
|
|
447
|
+
updatedAt?: boolean;
|
|
448
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
449
|
+
}, ExtArgs["result"]["context"]>;
|
|
450
|
+
export type ContextSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
451
|
+
id?: boolean;
|
|
452
|
+
organizationId?: boolean;
|
|
453
|
+
question?: boolean;
|
|
454
|
+
answer?: boolean;
|
|
455
|
+
tags?: boolean;
|
|
456
|
+
createdAt?: boolean;
|
|
457
|
+
updatedAt?: boolean;
|
|
458
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
459
|
+
}, ExtArgs["result"]["context"]>;
|
|
460
|
+
export type ContextSelectScalar = {
|
|
461
|
+
id?: boolean;
|
|
462
|
+
organizationId?: boolean;
|
|
463
|
+
question?: boolean;
|
|
464
|
+
answer?: boolean;
|
|
465
|
+
tags?: boolean;
|
|
466
|
+
createdAt?: boolean;
|
|
467
|
+
updatedAt?: boolean;
|
|
468
|
+
};
|
|
469
|
+
export type ContextOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "question" | "answer" | "tags" | "createdAt" | "updatedAt", ExtArgs["result"]["context"]>;
|
|
470
|
+
export type ContextInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
471
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
472
|
+
};
|
|
473
|
+
export type ContextIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
474
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
475
|
+
};
|
|
476
|
+
export type ContextIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
477
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
478
|
+
};
|
|
479
|
+
export type $ContextPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
480
|
+
name: "Context";
|
|
481
|
+
objects: {
|
|
482
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
483
|
+
};
|
|
484
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
485
|
+
id: string;
|
|
486
|
+
organizationId: string;
|
|
487
|
+
question: string;
|
|
488
|
+
answer: string;
|
|
489
|
+
tags: string[];
|
|
490
|
+
createdAt: Date;
|
|
491
|
+
updatedAt: Date;
|
|
492
|
+
}, ExtArgs["result"]["context"]>;
|
|
493
|
+
composites: {};
|
|
494
|
+
};
|
|
495
|
+
export type ContextGetPayload<S extends boolean | null | undefined | ContextDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContextPayload, S>;
|
|
496
|
+
export type ContextCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContextFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
497
|
+
select?: ContextCountAggregateInputType | true;
|
|
498
|
+
};
|
|
499
|
+
export interface ContextDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
500
|
+
[K: symbol]: {
|
|
501
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Context'];
|
|
502
|
+
meta: {
|
|
503
|
+
name: 'Context';
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Find zero or one Context that matches the filter.
|
|
508
|
+
* @param {ContextFindUniqueArgs} args - Arguments to find a Context
|
|
509
|
+
* @example
|
|
510
|
+
* // Get one Context
|
|
511
|
+
* const context = await prisma.context.findUnique({
|
|
512
|
+
* where: {
|
|
513
|
+
* // ... provide filter here
|
|
514
|
+
* }
|
|
515
|
+
* })
|
|
516
|
+
*/
|
|
517
|
+
findUnique<T extends ContextFindUniqueArgs>(args: Prisma.SelectSubset<T, ContextFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
518
|
+
/**
|
|
519
|
+
* Find one Context that matches the filter or throw an error with `error.code='P2025'`
|
|
520
|
+
* if no matches were found.
|
|
521
|
+
* @param {ContextFindUniqueOrThrowArgs} args - Arguments to find a Context
|
|
522
|
+
* @example
|
|
523
|
+
* // Get one Context
|
|
524
|
+
* const context = await prisma.context.findUniqueOrThrow({
|
|
525
|
+
* where: {
|
|
526
|
+
* // ... provide filter here
|
|
527
|
+
* }
|
|
528
|
+
* })
|
|
529
|
+
*/
|
|
530
|
+
findUniqueOrThrow<T extends ContextFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContextFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
531
|
+
/**
|
|
532
|
+
* Find the first Context that matches the filter.
|
|
533
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
534
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
535
|
+
* @param {ContextFindFirstArgs} args - Arguments to find a Context
|
|
536
|
+
* @example
|
|
537
|
+
* // Get one Context
|
|
538
|
+
* const context = await prisma.context.findFirst({
|
|
539
|
+
* where: {
|
|
540
|
+
* // ... provide filter here
|
|
541
|
+
* }
|
|
542
|
+
* })
|
|
543
|
+
*/
|
|
544
|
+
findFirst<T extends ContextFindFirstArgs>(args?: Prisma.SelectSubset<T, ContextFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
545
|
+
/**
|
|
546
|
+
* Find the first Context that matches the filter or
|
|
547
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
548
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
549
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
550
|
+
* @param {ContextFindFirstOrThrowArgs} args - Arguments to find a Context
|
|
551
|
+
* @example
|
|
552
|
+
* // Get one Context
|
|
553
|
+
* const context = await prisma.context.findFirstOrThrow({
|
|
554
|
+
* where: {
|
|
555
|
+
* // ... provide filter here
|
|
556
|
+
* }
|
|
557
|
+
* })
|
|
558
|
+
*/
|
|
559
|
+
findFirstOrThrow<T extends ContextFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContextFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
560
|
+
/**
|
|
561
|
+
* Find zero or more Contexts that matches the filter.
|
|
562
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
563
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
564
|
+
* @param {ContextFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
565
|
+
* @example
|
|
566
|
+
* // Get all Contexts
|
|
567
|
+
* const contexts = await prisma.context.findMany()
|
|
568
|
+
*
|
|
569
|
+
* // Get first 10 Contexts
|
|
570
|
+
* const contexts = await prisma.context.findMany({ take: 10 })
|
|
571
|
+
*
|
|
572
|
+
* // Only select the `id`
|
|
573
|
+
* const contextWithIdOnly = await prisma.context.findMany({ select: { id: true } })
|
|
574
|
+
*
|
|
575
|
+
*/
|
|
576
|
+
findMany<T extends ContextFindManyArgs>(args?: Prisma.SelectSubset<T, ContextFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
577
|
+
/**
|
|
578
|
+
* Create a Context.
|
|
579
|
+
* @param {ContextCreateArgs} args - Arguments to create a Context.
|
|
580
|
+
* @example
|
|
581
|
+
* // Create one Context
|
|
582
|
+
* const Context = await prisma.context.create({
|
|
583
|
+
* data: {
|
|
584
|
+
* // ... data to create a Context
|
|
585
|
+
* }
|
|
586
|
+
* })
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
589
|
+
create<T extends ContextCreateArgs>(args: Prisma.SelectSubset<T, ContextCreateArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
590
|
+
/**
|
|
591
|
+
* Create many Contexts.
|
|
592
|
+
* @param {ContextCreateManyArgs} args - Arguments to create many Contexts.
|
|
593
|
+
* @example
|
|
594
|
+
* // Create many Contexts
|
|
595
|
+
* const context = await prisma.context.createMany({
|
|
596
|
+
* data: [
|
|
597
|
+
* // ... provide data here
|
|
598
|
+
* ]
|
|
599
|
+
* })
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
createMany<T extends ContextCreateManyArgs>(args?: Prisma.SelectSubset<T, ContextCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
603
|
+
/**
|
|
604
|
+
* Create many Contexts and returns the data saved in the database.
|
|
605
|
+
* @param {ContextCreateManyAndReturnArgs} args - Arguments to create many Contexts.
|
|
606
|
+
* @example
|
|
607
|
+
* // Create many Contexts
|
|
608
|
+
* const context = await prisma.context.createManyAndReturn({
|
|
609
|
+
* data: [
|
|
610
|
+
* // ... provide data here
|
|
611
|
+
* ]
|
|
612
|
+
* })
|
|
613
|
+
*
|
|
614
|
+
* // Create many Contexts and only return the `id`
|
|
615
|
+
* const contextWithIdOnly = await prisma.context.createManyAndReturn({
|
|
616
|
+
* select: { id: true },
|
|
617
|
+
* data: [
|
|
618
|
+
* // ... provide data here
|
|
619
|
+
* ]
|
|
620
|
+
* })
|
|
621
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
622
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
623
|
+
*
|
|
624
|
+
*/
|
|
625
|
+
createManyAndReturn<T extends ContextCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ContextCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
626
|
+
/**
|
|
627
|
+
* Delete a Context.
|
|
628
|
+
* @param {ContextDeleteArgs} args - Arguments to delete one Context.
|
|
629
|
+
* @example
|
|
630
|
+
* // Delete one Context
|
|
631
|
+
* const Context = await prisma.context.delete({
|
|
632
|
+
* where: {
|
|
633
|
+
* // ... filter to delete one Context
|
|
634
|
+
* }
|
|
635
|
+
* })
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
delete<T extends ContextDeleteArgs>(args: Prisma.SelectSubset<T, ContextDeleteArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
639
|
+
/**
|
|
640
|
+
* Update one Context.
|
|
641
|
+
* @param {ContextUpdateArgs} args - Arguments to update one Context.
|
|
642
|
+
* @example
|
|
643
|
+
* // Update one Context
|
|
644
|
+
* const context = await prisma.context.update({
|
|
645
|
+
* where: {
|
|
646
|
+
* // ... provide filter here
|
|
647
|
+
* },
|
|
648
|
+
* data: {
|
|
649
|
+
* // ... provide data here
|
|
650
|
+
* }
|
|
651
|
+
* })
|
|
652
|
+
*
|
|
653
|
+
*/
|
|
654
|
+
update<T extends ContextUpdateArgs>(args: Prisma.SelectSubset<T, ContextUpdateArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
655
|
+
/**
|
|
656
|
+
* Delete zero or more Contexts.
|
|
657
|
+
* @param {ContextDeleteManyArgs} args - Arguments to filter Contexts to delete.
|
|
658
|
+
* @example
|
|
659
|
+
* // Delete a few Contexts
|
|
660
|
+
* const { count } = await prisma.context.deleteMany({
|
|
661
|
+
* where: {
|
|
662
|
+
* // ... provide filter here
|
|
663
|
+
* }
|
|
664
|
+
* })
|
|
665
|
+
*
|
|
666
|
+
*/
|
|
667
|
+
deleteMany<T extends ContextDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContextDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
668
|
+
/**
|
|
669
|
+
* Update zero or more Contexts.
|
|
670
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
671
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
672
|
+
* @param {ContextUpdateManyArgs} args - Arguments to update one or more rows.
|
|
673
|
+
* @example
|
|
674
|
+
* // Update many Contexts
|
|
675
|
+
* const context = await prisma.context.updateMany({
|
|
676
|
+
* where: {
|
|
677
|
+
* // ... provide filter here
|
|
678
|
+
* },
|
|
679
|
+
* data: {
|
|
680
|
+
* // ... provide data here
|
|
681
|
+
* }
|
|
682
|
+
* })
|
|
683
|
+
*
|
|
684
|
+
*/
|
|
685
|
+
updateMany<T extends ContextUpdateManyArgs>(args: Prisma.SelectSubset<T, ContextUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
686
|
+
/**
|
|
687
|
+
* Update zero or more Contexts and returns the data updated in the database.
|
|
688
|
+
* @param {ContextUpdateManyAndReturnArgs} args - Arguments to update many Contexts.
|
|
689
|
+
* @example
|
|
690
|
+
* // Update many Contexts
|
|
691
|
+
* const context = await prisma.context.updateManyAndReturn({
|
|
692
|
+
* where: {
|
|
693
|
+
* // ... provide filter here
|
|
694
|
+
* },
|
|
695
|
+
* data: [
|
|
696
|
+
* // ... provide data here
|
|
697
|
+
* ]
|
|
698
|
+
* })
|
|
699
|
+
*
|
|
700
|
+
* // Update zero or more Contexts and only return the `id`
|
|
701
|
+
* const contextWithIdOnly = await prisma.context.updateManyAndReturn({
|
|
702
|
+
* select: { id: true },
|
|
703
|
+
* where: {
|
|
704
|
+
* // ... provide filter here
|
|
705
|
+
* },
|
|
706
|
+
* data: [
|
|
707
|
+
* // ... provide data here
|
|
708
|
+
* ]
|
|
709
|
+
* })
|
|
710
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
711
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
712
|
+
*
|
|
713
|
+
*/
|
|
714
|
+
updateManyAndReturn<T extends ContextUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ContextUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
715
|
+
/**
|
|
716
|
+
* Create or update one Context.
|
|
717
|
+
* @param {ContextUpsertArgs} args - Arguments to update or create a Context.
|
|
718
|
+
* @example
|
|
719
|
+
* // Update or create a Context
|
|
720
|
+
* const context = await prisma.context.upsert({
|
|
721
|
+
* create: {
|
|
722
|
+
* // ... data to create a Context
|
|
723
|
+
* },
|
|
724
|
+
* update: {
|
|
725
|
+
* // ... in case it already exists, update
|
|
726
|
+
* },
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... the filter for the Context we want to update
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
*/
|
|
732
|
+
upsert<T extends ContextUpsertArgs>(args: Prisma.SelectSubset<T, ContextUpsertArgs<ExtArgs>>): Prisma.Prisma__ContextClient<runtime.Types.Result.GetResult<Prisma.$ContextPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Count the number of Contexts.
|
|
735
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
736
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
737
|
+
* @param {ContextCountArgs} args - Arguments to filter Contexts to count.
|
|
738
|
+
* @example
|
|
739
|
+
* // Count the number of Contexts
|
|
740
|
+
* const count = await prisma.context.count({
|
|
741
|
+
* where: {
|
|
742
|
+
* // ... the filter for the Contexts we want to count
|
|
743
|
+
* }
|
|
744
|
+
* })
|
|
745
|
+
**/
|
|
746
|
+
count<T extends ContextCountArgs>(args?: Prisma.Subset<T, ContextCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContextCountAggregateOutputType> : number>;
|
|
747
|
+
/**
|
|
748
|
+
* Allows you to perform aggregations operations on a Context.
|
|
749
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
750
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
751
|
+
* @param {ContextAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
752
|
+
* @example
|
|
753
|
+
* // Ordered by age ascending
|
|
754
|
+
* // Where email contains prisma.io
|
|
755
|
+
* // Limited to the 10 users
|
|
756
|
+
* const aggregations = await prisma.user.aggregate({
|
|
757
|
+
* _avg: {
|
|
758
|
+
* age: true,
|
|
759
|
+
* },
|
|
760
|
+
* where: {
|
|
761
|
+
* email: {
|
|
762
|
+
* contains: "prisma.io",
|
|
763
|
+
* },
|
|
764
|
+
* },
|
|
765
|
+
* orderBy: {
|
|
766
|
+
* age: "asc",
|
|
767
|
+
* },
|
|
768
|
+
* take: 10,
|
|
769
|
+
* })
|
|
770
|
+
**/
|
|
771
|
+
aggregate<T extends ContextAggregateArgs>(args: Prisma.Subset<T, ContextAggregateArgs>): Prisma.PrismaPromise<GetContextAggregateType<T>>;
|
|
772
|
+
/**
|
|
773
|
+
* Group by Context.
|
|
774
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
775
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
776
|
+
* @param {ContextGroupByArgs} args - Group by arguments.
|
|
777
|
+
* @example
|
|
778
|
+
* // Group by city, order by createdAt, get count
|
|
779
|
+
* const result = await prisma.user.groupBy({
|
|
780
|
+
* by: ['city', 'createdAt'],
|
|
781
|
+
* orderBy: {
|
|
782
|
+
* createdAt: true
|
|
783
|
+
* },
|
|
784
|
+
* _count: {
|
|
785
|
+
* _all: true
|
|
786
|
+
* },
|
|
787
|
+
* })
|
|
788
|
+
*
|
|
789
|
+
**/
|
|
790
|
+
groupBy<T extends ContextGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
791
|
+
orderBy: ContextGroupByArgs['orderBy'];
|
|
792
|
+
} : {
|
|
793
|
+
orderBy?: ContextGroupByArgs['orderBy'];
|
|
794
|
+
}, 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 ? {
|
|
795
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
796
|
+
Error,
|
|
797
|
+
'Field ',
|
|
798
|
+
P,
|
|
799
|
+
` in "having" needs to be provided in "by"`
|
|
800
|
+
];
|
|
801
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
802
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
803
|
+
}[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 ? {} : {
|
|
804
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
805
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
806
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
807
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ContextGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContextGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
808
|
+
/**
|
|
809
|
+
* Fields of the Context model
|
|
810
|
+
*/
|
|
811
|
+
readonly fields: ContextFieldRefs;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* The delegate class that acts as a "Promise-like" for Context.
|
|
815
|
+
* Why is this prefixed with `Prisma__`?
|
|
816
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
817
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
818
|
+
*/
|
|
819
|
+
export interface Prisma__ContextClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
820
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
821
|
+
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>;
|
|
822
|
+
/**
|
|
823
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
824
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
825
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
826
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
827
|
+
*/
|
|
828
|
+
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>;
|
|
829
|
+
/**
|
|
830
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
831
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
832
|
+
* @returns A Promise for the completion of the callback.
|
|
833
|
+
*/
|
|
834
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
835
|
+
/**
|
|
836
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
837
|
+
* resolved value cannot be modified from the callback.
|
|
838
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
839
|
+
* @returns A Promise for the completion of the callback.
|
|
840
|
+
*/
|
|
841
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Fields of the Context model
|
|
845
|
+
*/
|
|
846
|
+
export interface ContextFieldRefs {
|
|
847
|
+
readonly id: Prisma.FieldRef<"Context", 'String'>;
|
|
848
|
+
readonly organizationId: Prisma.FieldRef<"Context", 'String'>;
|
|
849
|
+
readonly question: Prisma.FieldRef<"Context", 'String'>;
|
|
850
|
+
readonly answer: Prisma.FieldRef<"Context", 'String'>;
|
|
851
|
+
readonly tags: Prisma.FieldRef<"Context", 'String[]'>;
|
|
852
|
+
readonly createdAt: Prisma.FieldRef<"Context", 'DateTime'>;
|
|
853
|
+
readonly updatedAt: Prisma.FieldRef<"Context", 'DateTime'>;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Context findUnique
|
|
857
|
+
*/
|
|
858
|
+
export type ContextFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
859
|
+
/**
|
|
860
|
+
* Select specific fields to fetch from the Context
|
|
861
|
+
*/
|
|
862
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
863
|
+
/**
|
|
864
|
+
* Omit specific fields from the Context
|
|
865
|
+
*/
|
|
866
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
867
|
+
/**
|
|
868
|
+
* Choose, which related nodes to fetch as well
|
|
869
|
+
*/
|
|
870
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
871
|
+
/**
|
|
872
|
+
* Filter, which Context to fetch.
|
|
873
|
+
*/
|
|
874
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Context findUniqueOrThrow
|
|
878
|
+
*/
|
|
879
|
+
export type ContextFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
880
|
+
/**
|
|
881
|
+
* Select specific fields to fetch from the Context
|
|
882
|
+
*/
|
|
883
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
884
|
+
/**
|
|
885
|
+
* Omit specific fields from the Context
|
|
886
|
+
*/
|
|
887
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
888
|
+
/**
|
|
889
|
+
* Choose, which related nodes to fetch as well
|
|
890
|
+
*/
|
|
891
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
892
|
+
/**
|
|
893
|
+
* Filter, which Context to fetch.
|
|
894
|
+
*/
|
|
895
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Context findFirst
|
|
899
|
+
*/
|
|
900
|
+
export type ContextFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
901
|
+
/**
|
|
902
|
+
* Select specific fields to fetch from the Context
|
|
903
|
+
*/
|
|
904
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
905
|
+
/**
|
|
906
|
+
* Omit specific fields from the Context
|
|
907
|
+
*/
|
|
908
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
909
|
+
/**
|
|
910
|
+
* Choose, which related nodes to fetch as well
|
|
911
|
+
*/
|
|
912
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
913
|
+
/**
|
|
914
|
+
* Filter, which Context to fetch.
|
|
915
|
+
*/
|
|
916
|
+
where?: Prisma.ContextWhereInput;
|
|
917
|
+
/**
|
|
918
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
919
|
+
*
|
|
920
|
+
* Determine the order of Contexts to fetch.
|
|
921
|
+
*/
|
|
922
|
+
orderBy?: Prisma.ContextOrderByWithRelationInput | Prisma.ContextOrderByWithRelationInput[];
|
|
923
|
+
/**
|
|
924
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
925
|
+
*
|
|
926
|
+
* Sets the position for searching for Contexts.
|
|
927
|
+
*/
|
|
928
|
+
cursor?: Prisma.ContextWhereUniqueInput;
|
|
929
|
+
/**
|
|
930
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
931
|
+
*
|
|
932
|
+
* Take `±n` Contexts from the position of the cursor.
|
|
933
|
+
*/
|
|
934
|
+
take?: number;
|
|
935
|
+
/**
|
|
936
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
937
|
+
*
|
|
938
|
+
* Skip the first `n` Contexts.
|
|
939
|
+
*/
|
|
940
|
+
skip?: number;
|
|
941
|
+
/**
|
|
942
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
943
|
+
*
|
|
944
|
+
* Filter by unique combinations of Contexts.
|
|
945
|
+
*/
|
|
946
|
+
distinct?: Prisma.ContextScalarFieldEnum | Prisma.ContextScalarFieldEnum[];
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Context findFirstOrThrow
|
|
950
|
+
*/
|
|
951
|
+
export type ContextFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
952
|
+
/**
|
|
953
|
+
* Select specific fields to fetch from the Context
|
|
954
|
+
*/
|
|
955
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
956
|
+
/**
|
|
957
|
+
* Omit specific fields from the Context
|
|
958
|
+
*/
|
|
959
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
960
|
+
/**
|
|
961
|
+
* Choose, which related nodes to fetch as well
|
|
962
|
+
*/
|
|
963
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
964
|
+
/**
|
|
965
|
+
* Filter, which Context to fetch.
|
|
966
|
+
*/
|
|
967
|
+
where?: Prisma.ContextWhereInput;
|
|
968
|
+
/**
|
|
969
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
970
|
+
*
|
|
971
|
+
* Determine the order of Contexts to fetch.
|
|
972
|
+
*/
|
|
973
|
+
orderBy?: Prisma.ContextOrderByWithRelationInput | Prisma.ContextOrderByWithRelationInput[];
|
|
974
|
+
/**
|
|
975
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
976
|
+
*
|
|
977
|
+
* Sets the position for searching for Contexts.
|
|
978
|
+
*/
|
|
979
|
+
cursor?: Prisma.ContextWhereUniqueInput;
|
|
980
|
+
/**
|
|
981
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
982
|
+
*
|
|
983
|
+
* Take `±n` Contexts from the position of the cursor.
|
|
984
|
+
*/
|
|
985
|
+
take?: number;
|
|
986
|
+
/**
|
|
987
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
988
|
+
*
|
|
989
|
+
* Skip the first `n` Contexts.
|
|
990
|
+
*/
|
|
991
|
+
skip?: number;
|
|
992
|
+
/**
|
|
993
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
994
|
+
*
|
|
995
|
+
* Filter by unique combinations of Contexts.
|
|
996
|
+
*/
|
|
997
|
+
distinct?: Prisma.ContextScalarFieldEnum | Prisma.ContextScalarFieldEnum[];
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* Context findMany
|
|
1001
|
+
*/
|
|
1002
|
+
export type ContextFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1003
|
+
/**
|
|
1004
|
+
* Select specific fields to fetch from the Context
|
|
1005
|
+
*/
|
|
1006
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1007
|
+
/**
|
|
1008
|
+
* Omit specific fields from the Context
|
|
1009
|
+
*/
|
|
1010
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1011
|
+
/**
|
|
1012
|
+
* Choose, which related nodes to fetch as well
|
|
1013
|
+
*/
|
|
1014
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1015
|
+
/**
|
|
1016
|
+
* Filter, which Contexts to fetch.
|
|
1017
|
+
*/
|
|
1018
|
+
where?: Prisma.ContextWhereInput;
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Determine the order of Contexts to fetch.
|
|
1023
|
+
*/
|
|
1024
|
+
orderBy?: Prisma.ContextOrderByWithRelationInput | Prisma.ContextOrderByWithRelationInput[];
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Sets the position for listing Contexts.
|
|
1029
|
+
*/
|
|
1030
|
+
cursor?: Prisma.ContextWhereUniqueInput;
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Take `±n` Contexts from the position of the cursor.
|
|
1035
|
+
*/
|
|
1036
|
+
take?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1039
|
+
*
|
|
1040
|
+
* Skip the first `n` Contexts.
|
|
1041
|
+
*/
|
|
1042
|
+
skip?: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1045
|
+
*
|
|
1046
|
+
* Filter by unique combinations of Contexts.
|
|
1047
|
+
*/
|
|
1048
|
+
distinct?: Prisma.ContextScalarFieldEnum | Prisma.ContextScalarFieldEnum[];
|
|
1049
|
+
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Context create
|
|
1052
|
+
*/
|
|
1053
|
+
export type ContextCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1054
|
+
/**
|
|
1055
|
+
* Select specific fields to fetch from the Context
|
|
1056
|
+
*/
|
|
1057
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Omit specific fields from the Context
|
|
1060
|
+
*/
|
|
1061
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1062
|
+
/**
|
|
1063
|
+
* Choose, which related nodes to fetch as well
|
|
1064
|
+
*/
|
|
1065
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1066
|
+
/**
|
|
1067
|
+
* The data needed to create a Context.
|
|
1068
|
+
*/
|
|
1069
|
+
data: Prisma.XOR<Prisma.ContextCreateInput, Prisma.ContextUncheckedCreateInput>;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Context createMany
|
|
1073
|
+
*/
|
|
1074
|
+
export type ContextCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1075
|
+
/**
|
|
1076
|
+
* The data used to create many Contexts.
|
|
1077
|
+
*/
|
|
1078
|
+
data: Prisma.ContextCreateManyInput | Prisma.ContextCreateManyInput[];
|
|
1079
|
+
skipDuplicates?: boolean;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Context createManyAndReturn
|
|
1083
|
+
*/
|
|
1084
|
+
export type ContextCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Select specific fields to fetch from the Context
|
|
1087
|
+
*/
|
|
1088
|
+
select?: Prisma.ContextSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Omit specific fields from the Context
|
|
1091
|
+
*/
|
|
1092
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* The data used to create many Contexts.
|
|
1095
|
+
*/
|
|
1096
|
+
data: Prisma.ContextCreateManyInput | Prisma.ContextCreateManyInput[];
|
|
1097
|
+
skipDuplicates?: boolean;
|
|
1098
|
+
/**
|
|
1099
|
+
* Choose, which related nodes to fetch as well
|
|
1100
|
+
*/
|
|
1101
|
+
include?: Prisma.ContextIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1102
|
+
};
|
|
1103
|
+
/**
|
|
1104
|
+
* Context update
|
|
1105
|
+
*/
|
|
1106
|
+
export type ContextUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1107
|
+
/**
|
|
1108
|
+
* Select specific fields to fetch from the Context
|
|
1109
|
+
*/
|
|
1110
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Omit specific fields from the Context
|
|
1113
|
+
*/
|
|
1114
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* Choose, which related nodes to fetch as well
|
|
1117
|
+
*/
|
|
1118
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1119
|
+
/**
|
|
1120
|
+
* The data needed to update a Context.
|
|
1121
|
+
*/
|
|
1122
|
+
data: Prisma.XOR<Prisma.ContextUpdateInput, Prisma.ContextUncheckedUpdateInput>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Choose, which Context to update.
|
|
1125
|
+
*/
|
|
1126
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* Context updateMany
|
|
1130
|
+
*/
|
|
1131
|
+
export type ContextUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1132
|
+
/**
|
|
1133
|
+
* The data used to update Contexts.
|
|
1134
|
+
*/
|
|
1135
|
+
data: Prisma.XOR<Prisma.ContextUpdateManyMutationInput, Prisma.ContextUncheckedUpdateManyInput>;
|
|
1136
|
+
/**
|
|
1137
|
+
* Filter which Contexts to update
|
|
1138
|
+
*/
|
|
1139
|
+
where?: Prisma.ContextWhereInput;
|
|
1140
|
+
/**
|
|
1141
|
+
* Limit how many Contexts to update.
|
|
1142
|
+
*/
|
|
1143
|
+
limit?: number;
|
|
1144
|
+
};
|
|
1145
|
+
/**
|
|
1146
|
+
* Context updateManyAndReturn
|
|
1147
|
+
*/
|
|
1148
|
+
export type ContextUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1149
|
+
/**
|
|
1150
|
+
* Select specific fields to fetch from the Context
|
|
1151
|
+
*/
|
|
1152
|
+
select?: Prisma.ContextSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* Omit specific fields from the Context
|
|
1155
|
+
*/
|
|
1156
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* The data used to update Contexts.
|
|
1159
|
+
*/
|
|
1160
|
+
data: Prisma.XOR<Prisma.ContextUpdateManyMutationInput, Prisma.ContextUncheckedUpdateManyInput>;
|
|
1161
|
+
/**
|
|
1162
|
+
* Filter which Contexts to update
|
|
1163
|
+
*/
|
|
1164
|
+
where?: Prisma.ContextWhereInput;
|
|
1165
|
+
/**
|
|
1166
|
+
* Limit how many Contexts to update.
|
|
1167
|
+
*/
|
|
1168
|
+
limit?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* Choose, which related nodes to fetch as well
|
|
1171
|
+
*/
|
|
1172
|
+
include?: Prisma.ContextIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* Context upsert
|
|
1176
|
+
*/
|
|
1177
|
+
export type ContextUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1178
|
+
/**
|
|
1179
|
+
* Select specific fields to fetch from the Context
|
|
1180
|
+
*/
|
|
1181
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Omit specific fields from the Context
|
|
1184
|
+
*/
|
|
1185
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Choose, which related nodes to fetch as well
|
|
1188
|
+
*/
|
|
1189
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* The filter to search for the Context to update in case it exists.
|
|
1192
|
+
*/
|
|
1193
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
1194
|
+
/**
|
|
1195
|
+
* In case the Context found by the `where` argument doesn't exist, create a new Context with this data.
|
|
1196
|
+
*/
|
|
1197
|
+
create: Prisma.XOR<Prisma.ContextCreateInput, Prisma.ContextUncheckedCreateInput>;
|
|
1198
|
+
/**
|
|
1199
|
+
* In case the Context was found with the provided `where` argument, update it with this data.
|
|
1200
|
+
*/
|
|
1201
|
+
update: Prisma.XOR<Prisma.ContextUpdateInput, Prisma.ContextUncheckedUpdateInput>;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* Context delete
|
|
1205
|
+
*/
|
|
1206
|
+
export type ContextDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1207
|
+
/**
|
|
1208
|
+
* Select specific fields to fetch from the Context
|
|
1209
|
+
*/
|
|
1210
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1211
|
+
/**
|
|
1212
|
+
* Omit specific fields from the Context
|
|
1213
|
+
*/
|
|
1214
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Choose, which related nodes to fetch as well
|
|
1217
|
+
*/
|
|
1218
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Filter which Context to delete.
|
|
1221
|
+
*/
|
|
1222
|
+
where: Prisma.ContextWhereUniqueInput;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Context deleteMany
|
|
1226
|
+
*/
|
|
1227
|
+
export type ContextDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Filter which Contexts to delete
|
|
1230
|
+
*/
|
|
1231
|
+
where?: Prisma.ContextWhereInput;
|
|
1232
|
+
/**
|
|
1233
|
+
* Limit how many Contexts to delete.
|
|
1234
|
+
*/
|
|
1235
|
+
limit?: number;
|
|
1236
|
+
};
|
|
1237
|
+
/**
|
|
1238
|
+
* Context without action
|
|
1239
|
+
*/
|
|
1240
|
+
export type ContextDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1241
|
+
/**
|
|
1242
|
+
* Select specific fields to fetch from the Context
|
|
1243
|
+
*/
|
|
1244
|
+
select?: Prisma.ContextSelect<ExtArgs> | null;
|
|
1245
|
+
/**
|
|
1246
|
+
* Omit specific fields from the Context
|
|
1247
|
+
*/
|
|
1248
|
+
omit?: Prisma.ContextOmit<ExtArgs> | null;
|
|
1249
|
+
/**
|
|
1250
|
+
* Choose, which related nodes to fetch as well
|
|
1251
|
+
*/
|
|
1252
|
+
include?: Prisma.ContextInclude<ExtArgs> | null;
|
|
1253
|
+
};
|
|
1254
|
+
//# sourceMappingURL=Context.d.ts.map
|