@goscribe/server 1.6.0 → 1.7.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/generated/prisma/client.d.ts +224 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +67 -0
- package/dist/generated/prisma/enums.js +66 -0
- package/dist/generated/prisma/internal/class.d.ts +539 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
- package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
- package/dist/generated/prisma/models/ActivityLog.js +1 -0
- package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
- package/dist/generated/prisma/models/Artifact.js +1 -0
- package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
- package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
- package/dist/generated/prisma/models/Channel.d.ts +1257 -0
- package/dist/generated/prisma/models/Channel.js +1 -0
- package/dist/generated/prisma/models/Chat.d.ts +1339 -0
- package/dist/generated/prisma/models/Chat.js +1 -0
- package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
- package/dist/generated/prisma/models/CopilotConversation.js +1 -0
- package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
- package/dist/generated/prisma/models/CopilotMessage.js +1 -0
- package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
- package/dist/generated/prisma/models/FileAsset.js +1 -0
- package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
- package/dist/generated/prisma/models/Flashcard.js +1 -0
- package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
- package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
- package/dist/generated/prisma/models/Folder.d.ts +1685 -0
- package/dist/generated/prisma/models/Folder.js +1 -0
- package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
- package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
- package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
- package/dist/generated/prisma/models/Invoice.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
- package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
- package/dist/generated/prisma/models/Notification.d.ts +1992 -0
- package/dist/generated/prisma/models/Notification.js +1 -0
- package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
- package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
- package/dist/generated/prisma/models/Plan.d.ts +1431 -0
- package/dist/generated/prisma/models/Plan.js +1 -0
- package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
- package/dist/generated/prisma/models/PlanLimit.js +1 -0
- package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
- package/dist/generated/prisma/models/PodcastSegment.js +1 -0
- package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
- package/dist/generated/prisma/models/ResourcePrice.js +1 -0
- package/dist/generated/prisma/models/Role.d.ts +1065 -0
- package/dist/generated/prisma/models/Role.js +1 -0
- package/dist/generated/prisma/models/Session.d.ts +1105 -0
- package/dist/generated/prisma/models/Session.js +1 -0
- package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
- package/dist/generated/prisma/models/StripeEvent.js +1 -0
- package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
- package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
- package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
- package/dist/generated/prisma/models/Subscription.js +1 -0
- package/dist/generated/prisma/models/User.d.ts +7559 -0
- package/dist/generated/prisma/models/User.js +1 -0
- package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
- package/dist/generated/prisma/models/UserCredit.js +1 -0
- package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
- package/dist/generated/prisma/models/VerificationToken.js +1 -0
- package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
- package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
- package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
- package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
- package/dist/generated/prisma/models/Workspace.js +1 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
- package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
- package/dist/generated/prisma/models.d.ts +39 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/src/context.d.ts +27 -0
- package/dist/src/context.js +33 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -0
- package/dist/src/lib/ai/config.d.ts +20 -0
- package/dist/src/lib/ai/config.js +31 -0
- package/dist/src/lib/ai/embedding-client.d.ts +8 -0
- package/dist/src/lib/ai/embedding-client.js +30 -0
- package/dist/src/lib/ai/index.d.ts +48 -0
- package/dist/src/lib/ai/index.js +29 -0
- package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
- package/dist/src/lib/ai/inference-backend/client.js +301 -0
- package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
- package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
- package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
- package/dist/src/lib/ai/inference-backend/types.js +1 -0
- package/dist/src/lib/ai/json-parse.d.ts +2 -0
- package/dist/src/lib/ai/json-parse.js +34 -0
- package/dist/src/lib/ai/llm-client.d.ts +7 -0
- package/dist/src/lib/ai/llm-client.js +36 -0
- package/dist/src/lib/ai/mock.d.ts +2 -0
- package/dist/src/lib/ai/mock.js +10 -0
- package/dist/src/lib/ai/types.d.ts +9 -0
- package/dist/src/lib/ai/types.js +1 -0
- package/dist/src/lib/auth.d.ts +36 -0
- package/dist/src/lib/auth.js +117 -0
- package/dist/src/lib/chunking.d.ts +19 -0
- package/dist/src/lib/chunking.js +47 -0
- package/dist/src/lib/constants.d.ts +13 -0
- package/dist/src/lib/constants.js +12 -0
- package/dist/src/lib/curated-kb-seed.d.ts +12 -0
- package/dist/src/lib/curated-kb-seed.js +155 -0
- package/dist/src/lib/email.d.ts +11 -0
- package/dist/src/lib/email.js +152 -0
- package/dist/src/lib/embeddings.d.ts +2 -0
- package/dist/src/lib/embeddings.js +1 -0
- package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
- package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
- package/dist/src/lib/env.d.ts +41 -0
- package/dist/src/lib/env.js +57 -0
- package/dist/src/lib/errors.d.ts +33 -0
- package/dist/src/lib/errors.js +78 -0
- package/dist/src/lib/file.d.ts +0 -0
- package/dist/src/lib/file.js +1 -0
- package/dist/src/lib/inference.d.ts +1 -0
- package/dist/src/lib/inference.js +1 -0
- package/dist/src/lib/kb-meta.d.ts +8 -0
- package/dist/src/lib/kb-meta.js +77 -0
- package/dist/src/lib/logger.d.ts +62 -0
- package/dist/src/lib/logger.js +364 -0
- package/dist/src/lib/pdf.d.ts +11 -0
- package/dist/src/lib/pdf.js +11 -0
- package/dist/src/lib/prisma.d.ts +3 -0
- package/dist/src/lib/prisma.js +15 -0
- package/dist/src/lib/pusher.d.ts +38 -0
- package/dist/src/lib/pusher.js +170 -0
- package/dist/src/lib/retry.d.ts +15 -0
- package/dist/src/lib/retry.js +37 -0
- package/dist/src/lib/storage.d.ts +11 -0
- package/dist/src/lib/storage.js +71 -0
- package/dist/src/lib/stripe.d.ts +10 -0
- package/dist/src/lib/stripe.js +36 -0
- package/dist/src/lib/validation.d.ts +51 -0
- package/dist/src/lib/validation.js +64 -0
- package/dist/src/lib/workspace-kb.d.ts +5 -0
- package/dist/src/lib/workspace-kb.js +7 -0
- package/dist/src/repositories/artifact.repository.d.ts +64 -0
- package/dist/src/repositories/artifact.repository.js +40 -0
- package/dist/src/repositories/base.repository.d.ts +14 -0
- package/dist/src/repositories/base.repository.js +14 -0
- package/dist/src/repositories/invitation.repository.d.ts +104 -0
- package/dist/src/repositories/invitation.repository.js +44 -0
- package/dist/src/repositories/notification.repository.d.ts +76 -0
- package/dist/src/repositories/notification.repository.js +44 -0
- package/dist/src/repositories/user.repository.d.ts +84 -0
- package/dist/src/repositories/user.repository.js +37 -0
- package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
- package/dist/src/repositories/workspace-member.repository.js +31 -0
- package/dist/src/repositories/workspace.repository.d.ts +101 -0
- package/dist/src/repositories/workspace.repository.js +79 -0
- package/dist/src/routers/_app.d.ts +3464 -0
- package/dist/src/routers/_app.js +36 -0
- package/dist/src/routers/admin.d.ts +358 -0
- package/dist/src/routers/admin.js +105 -0
- package/dist/src/routers/annotations.d.ts +219 -0
- package/dist/src/routers/annotations.js +29 -0
- package/dist/src/routers/artifactVersions.d.ts +65 -0
- package/dist/src/routers/artifactVersions.js +14 -0
- package/dist/src/routers/auth.d.ts +161 -0
- package/dist/src/routers/auth.js +97 -0
- package/dist/src/routers/chat.d.ts +170 -0
- package/dist/src/routers/chat.js +32 -0
- package/dist/src/routers/copilot.d.ts +200 -0
- package/dist/src/routers/copilot.js +52 -0
- package/dist/src/routers/flashcards.d.ts +336 -0
- package/dist/src/routers/flashcards.js +93 -0
- package/dist/src/routers/knowledgeBase.d.ts +421 -0
- package/dist/src/routers/knowledgeBase.js +118 -0
- package/dist/src/routers/members.d.ts +169 -0
- package/dist/src/routers/members.js +47 -0
- package/dist/src/routers/notifications.d.ts +99 -0
- package/dist/src/routers/notifications.js +25 -0
- package/dist/src/routers/payment.d.ts +80 -0
- package/dist/src/routers/payment.js +21 -0
- package/dist/src/routers/podcast.d.ts +287 -0
- package/dist/src/routers/podcast.js +34 -0
- package/dist/src/routers/studyguide.d.ts +36 -0
- package/dist/src/routers/studyguide.js +8 -0
- package/dist/src/routers/worksheets.d.ts +429 -0
- package/dist/src/routers/worksheets.js +139 -0
- package/dist/src/routers/workspace.d.ts +563 -0
- package/dist/src/routers/workspace.js +104 -0
- package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
- package/dist/src/scripts/purge-deleted-users.js +148 -0
- package/dist/src/server.d.ts +1 -0
- package/dist/src/server.js +190 -0
- package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
- package/dist/src/services/activity/activity-human-description.service.js +221 -0
- package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
- package/dist/src/services/activity/activity-log.service.d.ts +87 -0
- package/dist/src/services/activity/activity-log.service.js +276 -0
- package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-log.service.test.js +27 -0
- package/dist/src/services/admin/admin.service.d.ts +270 -0
- package/dist/src/services/admin/admin.service.js +476 -0
- package/dist/src/services/ai/ai-session.service.d.ts +5 -0
- package/dist/src/services/ai/ai-session.service.js +4 -0
- package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
- package/dist/src/services/artifacts/annotation.service.js +154 -0
- package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
- package/dist/src/services/artifacts/artifact-version.service.js +129 -0
- package/dist/src/services/artifacts/chat.service.d.ts +127 -0
- package/dist/src/services/artifacts/chat.service.js +182 -0
- package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
- package/dist/src/services/artifacts/study-guide.service.js +65 -0
- package/dist/src/services/auth/auth.service.d.ts +94 -0
- package/dist/src/services/auth/auth.service.js +368 -0
- package/dist/src/services/base.service.d.ts +14 -0
- package/dist/src/services/base.service.js +14 -0
- package/dist/src/services/billing/payment.service.d.ts +44 -0
- package/dist/src/services/billing/payment.service.js +365 -0
- package/dist/src/services/billing/subscription.service.d.ts +37 -0
- package/dist/src/services/billing/subscription.service.js +654 -0
- package/dist/src/services/billing/usage.service.d.ts +47 -0
- package/dist/src/services/billing/usage.service.js +149 -0
- package/dist/src/services/content/copilot.service.d.ts +113 -0
- package/dist/src/services/content/copilot.service.js +439 -0
- package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
- package/dist/src/services/content/flashcard-progress.service.js +432 -0
- package/dist/src/services/content/flashcard.service.d.ts +184 -0
- package/dist/src/services/content/flashcard.service.js +339 -0
- package/dist/src/services/content/media-analysis.service.d.ts +23 -0
- package/dist/src/services/content/media-analysis.service.js +404 -0
- package/dist/src/services/content/podcast.service.d.ts +267 -0
- package/dist/src/services/content/podcast.service.js +653 -0
- package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
- package/dist/src/services/content/worksheet-content.service.js +84 -0
- package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-content.service.test.js +69 -0
- package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
- package/dist/src/services/content/worksheet-generation.service.js +95 -0
- package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
- package/dist/src/services/content/worksheet.service.d.ts +347 -0
- package/dist/src/services/content/worksheet.service.js +599 -0
- package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
- package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
- package/dist/src/services/members/invitation.service.d.ts +66 -0
- package/dist/src/services/members/invitation.service.js +348 -0
- package/dist/src/services/members/member.service.d.ts +36 -0
- package/dist/src/services/members/member.service.js +193 -0
- package/dist/src/services/notifications/notification.service.d.ts +214 -0
- package/dist/src/services/notifications/notification.service.js +550 -0
- package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
- package/dist/src/services/notifications/notification.service.test.js +87 -0
- package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
- package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
- package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
- package/dist/src/services/workspace/workspace-kb.service.js +184 -0
- package/dist/src/services/workspace/workspace.service.d.ts +263 -0
- package/dist/src/services/workspace/workspace.service.js +401 -0
- package/dist/src/trpc.d.ts +60 -0
- package/dist/src/trpc.js +217 -0
- package/dist/src/types/index.d.ts +126 -0
- package/dist/src/types/index.js +1 -0
- package/package.json +8 -9
- package/prisma/schema.prisma +3 -4
- package/prisma/seed.mjs +5 -2
- package/prisma.config.ts +16 -0
- package/src/lib/prisma.ts +18 -9
- package/src/scripts/purge-deleted-users.ts +1 -3
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,1550 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model ArtifactVersion
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type ArtifactVersionModel = runtime.Types.Result.DefaultSelection<Prisma.$ArtifactVersionPayload>;
|
|
8
|
+
export type AggregateArtifactVersion = {
|
|
9
|
+
_count: ArtifactVersionCountAggregateOutputType | null;
|
|
10
|
+
_avg: ArtifactVersionAvgAggregateOutputType | null;
|
|
11
|
+
_sum: ArtifactVersionSumAggregateOutputType | null;
|
|
12
|
+
_min: ArtifactVersionMinAggregateOutputType | null;
|
|
13
|
+
_max: ArtifactVersionMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type ArtifactVersionAvgAggregateOutputType = {
|
|
16
|
+
version: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type ArtifactVersionSumAggregateOutputType = {
|
|
19
|
+
version: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type ArtifactVersionMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
artifactId: string | null;
|
|
24
|
+
content: string | null;
|
|
25
|
+
version: number | null;
|
|
26
|
+
createdById: string | null;
|
|
27
|
+
createdAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type ArtifactVersionMaxAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
artifactId: string | null;
|
|
32
|
+
content: string | null;
|
|
33
|
+
version: number | null;
|
|
34
|
+
createdById: string | null;
|
|
35
|
+
createdAt: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type ArtifactVersionCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
artifactId: number;
|
|
40
|
+
content: number;
|
|
41
|
+
data: number;
|
|
42
|
+
version: number;
|
|
43
|
+
createdById: number;
|
|
44
|
+
createdAt: number;
|
|
45
|
+
_all: number;
|
|
46
|
+
};
|
|
47
|
+
export type ArtifactVersionAvgAggregateInputType = {
|
|
48
|
+
version?: true;
|
|
49
|
+
};
|
|
50
|
+
export type ArtifactVersionSumAggregateInputType = {
|
|
51
|
+
version?: true;
|
|
52
|
+
};
|
|
53
|
+
export type ArtifactVersionMinAggregateInputType = {
|
|
54
|
+
id?: true;
|
|
55
|
+
artifactId?: true;
|
|
56
|
+
content?: true;
|
|
57
|
+
version?: true;
|
|
58
|
+
createdById?: true;
|
|
59
|
+
createdAt?: true;
|
|
60
|
+
};
|
|
61
|
+
export type ArtifactVersionMaxAggregateInputType = {
|
|
62
|
+
id?: true;
|
|
63
|
+
artifactId?: true;
|
|
64
|
+
content?: true;
|
|
65
|
+
version?: true;
|
|
66
|
+
createdById?: true;
|
|
67
|
+
createdAt?: true;
|
|
68
|
+
};
|
|
69
|
+
export type ArtifactVersionCountAggregateInputType = {
|
|
70
|
+
id?: true;
|
|
71
|
+
artifactId?: true;
|
|
72
|
+
content?: true;
|
|
73
|
+
data?: true;
|
|
74
|
+
version?: true;
|
|
75
|
+
createdById?: true;
|
|
76
|
+
createdAt?: true;
|
|
77
|
+
_all?: true;
|
|
78
|
+
};
|
|
79
|
+
export type ArtifactVersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
80
|
+
/**
|
|
81
|
+
* Filter which ArtifactVersion to aggregate.
|
|
82
|
+
*/
|
|
83
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
84
|
+
/**
|
|
85
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
86
|
+
*
|
|
87
|
+
* Determine the order of ArtifactVersions to fetch.
|
|
88
|
+
*/
|
|
89
|
+
orderBy?: Prisma.ArtifactVersionOrderByWithRelationInput | Prisma.ArtifactVersionOrderByWithRelationInput[];
|
|
90
|
+
/**
|
|
91
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
92
|
+
*
|
|
93
|
+
* Sets the start position
|
|
94
|
+
*/
|
|
95
|
+
cursor?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
96
|
+
/**
|
|
97
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
98
|
+
*
|
|
99
|
+
* Take `±n` ArtifactVersions from the position of the cursor.
|
|
100
|
+
*/
|
|
101
|
+
take?: number;
|
|
102
|
+
/**
|
|
103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
104
|
+
*
|
|
105
|
+
* Skip the first `n` ArtifactVersions.
|
|
106
|
+
*/
|
|
107
|
+
skip?: number;
|
|
108
|
+
/**
|
|
109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
110
|
+
*
|
|
111
|
+
* Count returned ArtifactVersions
|
|
112
|
+
**/
|
|
113
|
+
_count?: true | ArtifactVersionCountAggregateInputType;
|
|
114
|
+
/**
|
|
115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
116
|
+
*
|
|
117
|
+
* Select which fields to average
|
|
118
|
+
**/
|
|
119
|
+
_avg?: ArtifactVersionAvgAggregateInputType;
|
|
120
|
+
/**
|
|
121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
122
|
+
*
|
|
123
|
+
* Select which fields to sum
|
|
124
|
+
**/
|
|
125
|
+
_sum?: ArtifactVersionSumAggregateInputType;
|
|
126
|
+
/**
|
|
127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
128
|
+
*
|
|
129
|
+
* Select which fields to find the minimum value
|
|
130
|
+
**/
|
|
131
|
+
_min?: ArtifactVersionMinAggregateInputType;
|
|
132
|
+
/**
|
|
133
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
134
|
+
*
|
|
135
|
+
* Select which fields to find the maximum value
|
|
136
|
+
**/
|
|
137
|
+
_max?: ArtifactVersionMaxAggregateInputType;
|
|
138
|
+
};
|
|
139
|
+
export type GetArtifactVersionAggregateType<T extends ArtifactVersionAggregateArgs> = {
|
|
140
|
+
[P in keyof T & keyof AggregateArtifactVersion]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateArtifactVersion[P]> : Prisma.GetScalarType<T[P], AggregateArtifactVersion[P]>;
|
|
141
|
+
};
|
|
142
|
+
export type ArtifactVersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
143
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
144
|
+
orderBy?: Prisma.ArtifactVersionOrderByWithAggregationInput | Prisma.ArtifactVersionOrderByWithAggregationInput[];
|
|
145
|
+
by: Prisma.ArtifactVersionScalarFieldEnum[] | Prisma.ArtifactVersionScalarFieldEnum;
|
|
146
|
+
having?: Prisma.ArtifactVersionScalarWhereWithAggregatesInput;
|
|
147
|
+
take?: number;
|
|
148
|
+
skip?: number;
|
|
149
|
+
_count?: ArtifactVersionCountAggregateInputType | true;
|
|
150
|
+
_avg?: ArtifactVersionAvgAggregateInputType;
|
|
151
|
+
_sum?: ArtifactVersionSumAggregateInputType;
|
|
152
|
+
_min?: ArtifactVersionMinAggregateInputType;
|
|
153
|
+
_max?: ArtifactVersionMaxAggregateInputType;
|
|
154
|
+
};
|
|
155
|
+
export type ArtifactVersionGroupByOutputType = {
|
|
156
|
+
id: string;
|
|
157
|
+
artifactId: string;
|
|
158
|
+
content: string;
|
|
159
|
+
data: runtime.JsonValue | null;
|
|
160
|
+
version: number;
|
|
161
|
+
createdById: string | null;
|
|
162
|
+
createdAt: Date;
|
|
163
|
+
_count: ArtifactVersionCountAggregateOutputType | null;
|
|
164
|
+
_avg: ArtifactVersionAvgAggregateOutputType | null;
|
|
165
|
+
_sum: ArtifactVersionSumAggregateOutputType | null;
|
|
166
|
+
_min: ArtifactVersionMinAggregateOutputType | null;
|
|
167
|
+
_max: ArtifactVersionMaxAggregateOutputType | null;
|
|
168
|
+
};
|
|
169
|
+
export type GetArtifactVersionGroupByPayload<T extends ArtifactVersionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ArtifactVersionGroupByOutputType, T['by']> & {
|
|
170
|
+
[P in ((keyof T) & (keyof ArtifactVersionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ArtifactVersionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ArtifactVersionGroupByOutputType[P]>;
|
|
171
|
+
}>>;
|
|
172
|
+
export type ArtifactVersionWhereInput = {
|
|
173
|
+
AND?: Prisma.ArtifactVersionWhereInput | Prisma.ArtifactVersionWhereInput[];
|
|
174
|
+
OR?: Prisma.ArtifactVersionWhereInput[];
|
|
175
|
+
NOT?: Prisma.ArtifactVersionWhereInput | Prisma.ArtifactVersionWhereInput[];
|
|
176
|
+
id?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
177
|
+
artifactId?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
178
|
+
content?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
179
|
+
data?: Prisma.JsonNullableFilter<"ArtifactVersion">;
|
|
180
|
+
version?: Prisma.IntFilter<"ArtifactVersion"> | number;
|
|
181
|
+
createdById?: Prisma.StringNullableFilter<"ArtifactVersion"> | string | null;
|
|
182
|
+
createdAt?: Prisma.DateTimeFilter<"ArtifactVersion"> | Date | string;
|
|
183
|
+
artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
|
|
184
|
+
createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
185
|
+
highlights?: Prisma.StudyGuideHighlightListRelationFilter;
|
|
186
|
+
};
|
|
187
|
+
export type ArtifactVersionOrderByWithRelationInput = {
|
|
188
|
+
id?: Prisma.SortOrder;
|
|
189
|
+
artifactId?: Prisma.SortOrder;
|
|
190
|
+
content?: Prisma.SortOrder;
|
|
191
|
+
data?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
192
|
+
version?: Prisma.SortOrder;
|
|
193
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
194
|
+
createdAt?: Prisma.SortOrder;
|
|
195
|
+
artifact?: Prisma.ArtifactOrderByWithRelationInput;
|
|
196
|
+
createdBy?: Prisma.UserOrderByWithRelationInput;
|
|
197
|
+
highlights?: Prisma.StudyGuideHighlightOrderByRelationAggregateInput;
|
|
198
|
+
};
|
|
199
|
+
export type ArtifactVersionWhereUniqueInput = Prisma.AtLeast<{
|
|
200
|
+
id?: string;
|
|
201
|
+
artifactId_version?: Prisma.ArtifactVersionArtifactIdVersionCompoundUniqueInput;
|
|
202
|
+
AND?: Prisma.ArtifactVersionWhereInput | Prisma.ArtifactVersionWhereInput[];
|
|
203
|
+
OR?: Prisma.ArtifactVersionWhereInput[];
|
|
204
|
+
NOT?: Prisma.ArtifactVersionWhereInput | Prisma.ArtifactVersionWhereInput[];
|
|
205
|
+
artifactId?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
206
|
+
content?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
207
|
+
data?: Prisma.JsonNullableFilter<"ArtifactVersion">;
|
|
208
|
+
version?: Prisma.IntFilter<"ArtifactVersion"> | number;
|
|
209
|
+
createdById?: Prisma.StringNullableFilter<"ArtifactVersion"> | string | null;
|
|
210
|
+
createdAt?: Prisma.DateTimeFilter<"ArtifactVersion"> | Date | string;
|
|
211
|
+
artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
|
|
212
|
+
createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
213
|
+
highlights?: Prisma.StudyGuideHighlightListRelationFilter;
|
|
214
|
+
}, "id" | "artifactId_version">;
|
|
215
|
+
export type ArtifactVersionOrderByWithAggregationInput = {
|
|
216
|
+
id?: Prisma.SortOrder;
|
|
217
|
+
artifactId?: Prisma.SortOrder;
|
|
218
|
+
content?: Prisma.SortOrder;
|
|
219
|
+
data?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
220
|
+
version?: Prisma.SortOrder;
|
|
221
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
222
|
+
createdAt?: Prisma.SortOrder;
|
|
223
|
+
_count?: Prisma.ArtifactVersionCountOrderByAggregateInput;
|
|
224
|
+
_avg?: Prisma.ArtifactVersionAvgOrderByAggregateInput;
|
|
225
|
+
_max?: Prisma.ArtifactVersionMaxOrderByAggregateInput;
|
|
226
|
+
_min?: Prisma.ArtifactVersionMinOrderByAggregateInput;
|
|
227
|
+
_sum?: Prisma.ArtifactVersionSumOrderByAggregateInput;
|
|
228
|
+
};
|
|
229
|
+
export type ArtifactVersionScalarWhereWithAggregatesInput = {
|
|
230
|
+
AND?: Prisma.ArtifactVersionScalarWhereWithAggregatesInput | Prisma.ArtifactVersionScalarWhereWithAggregatesInput[];
|
|
231
|
+
OR?: Prisma.ArtifactVersionScalarWhereWithAggregatesInput[];
|
|
232
|
+
NOT?: Prisma.ArtifactVersionScalarWhereWithAggregatesInput | Prisma.ArtifactVersionScalarWhereWithAggregatesInput[];
|
|
233
|
+
id?: Prisma.StringWithAggregatesFilter<"ArtifactVersion"> | string;
|
|
234
|
+
artifactId?: Prisma.StringWithAggregatesFilter<"ArtifactVersion"> | string;
|
|
235
|
+
content?: Prisma.StringWithAggregatesFilter<"ArtifactVersion"> | string;
|
|
236
|
+
data?: Prisma.JsonNullableWithAggregatesFilter<"ArtifactVersion">;
|
|
237
|
+
version?: Prisma.IntWithAggregatesFilter<"ArtifactVersion"> | number;
|
|
238
|
+
createdById?: Prisma.StringNullableWithAggregatesFilter<"ArtifactVersion"> | string | null;
|
|
239
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ArtifactVersion"> | Date | string;
|
|
240
|
+
};
|
|
241
|
+
export type ArtifactVersionCreateInput = {
|
|
242
|
+
id?: string;
|
|
243
|
+
content: string;
|
|
244
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
245
|
+
version: number;
|
|
246
|
+
createdAt?: Date | string;
|
|
247
|
+
artifact: Prisma.ArtifactCreateNestedOneWithoutVersionsInput;
|
|
248
|
+
createdBy?: Prisma.UserCreateNestedOneWithoutVersionsInput;
|
|
249
|
+
highlights?: Prisma.StudyGuideHighlightCreateNestedManyWithoutArtifactVersionInput;
|
|
250
|
+
};
|
|
251
|
+
export type ArtifactVersionUncheckedCreateInput = {
|
|
252
|
+
id?: string;
|
|
253
|
+
artifactId: string;
|
|
254
|
+
content: string;
|
|
255
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
256
|
+
version: number;
|
|
257
|
+
createdById?: string | null;
|
|
258
|
+
createdAt?: Date | string;
|
|
259
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedCreateNestedManyWithoutArtifactVersionInput;
|
|
260
|
+
};
|
|
261
|
+
export type ArtifactVersionUpdateInput = {
|
|
262
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
263
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
265
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
266
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
267
|
+
artifact?: Prisma.ArtifactUpdateOneRequiredWithoutVersionsNestedInput;
|
|
268
|
+
createdBy?: Prisma.UserUpdateOneWithoutVersionsNestedInput;
|
|
269
|
+
highlights?: Prisma.StudyGuideHighlightUpdateManyWithoutArtifactVersionNestedInput;
|
|
270
|
+
};
|
|
271
|
+
export type ArtifactVersionUncheckedUpdateInput = {
|
|
272
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
273
|
+
artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
274
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
275
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
276
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
277
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
278
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
279
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedUpdateManyWithoutArtifactVersionNestedInput;
|
|
280
|
+
};
|
|
281
|
+
export type ArtifactVersionCreateManyInput = {
|
|
282
|
+
id?: string;
|
|
283
|
+
artifactId: string;
|
|
284
|
+
content: string;
|
|
285
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
286
|
+
version: number;
|
|
287
|
+
createdById?: string | null;
|
|
288
|
+
createdAt?: Date | string;
|
|
289
|
+
};
|
|
290
|
+
export type ArtifactVersionUpdateManyMutationInput = {
|
|
291
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
293
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
294
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
295
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
296
|
+
};
|
|
297
|
+
export type ArtifactVersionUncheckedUpdateManyInput = {
|
|
298
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
299
|
+
artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
300
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
301
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
302
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
303
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
304
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
305
|
+
};
|
|
306
|
+
export type ArtifactVersionListRelationFilter = {
|
|
307
|
+
every?: Prisma.ArtifactVersionWhereInput;
|
|
308
|
+
some?: Prisma.ArtifactVersionWhereInput;
|
|
309
|
+
none?: Prisma.ArtifactVersionWhereInput;
|
|
310
|
+
};
|
|
311
|
+
export type ArtifactVersionOrderByRelationAggregateInput = {
|
|
312
|
+
_count?: Prisma.SortOrder;
|
|
313
|
+
};
|
|
314
|
+
export type ArtifactVersionArtifactIdVersionCompoundUniqueInput = {
|
|
315
|
+
artifactId: string;
|
|
316
|
+
version: number;
|
|
317
|
+
};
|
|
318
|
+
export type ArtifactVersionCountOrderByAggregateInput = {
|
|
319
|
+
id?: Prisma.SortOrder;
|
|
320
|
+
artifactId?: Prisma.SortOrder;
|
|
321
|
+
content?: Prisma.SortOrder;
|
|
322
|
+
data?: Prisma.SortOrder;
|
|
323
|
+
version?: Prisma.SortOrder;
|
|
324
|
+
createdById?: Prisma.SortOrder;
|
|
325
|
+
createdAt?: Prisma.SortOrder;
|
|
326
|
+
};
|
|
327
|
+
export type ArtifactVersionAvgOrderByAggregateInput = {
|
|
328
|
+
version?: Prisma.SortOrder;
|
|
329
|
+
};
|
|
330
|
+
export type ArtifactVersionMaxOrderByAggregateInput = {
|
|
331
|
+
id?: Prisma.SortOrder;
|
|
332
|
+
artifactId?: Prisma.SortOrder;
|
|
333
|
+
content?: Prisma.SortOrder;
|
|
334
|
+
version?: Prisma.SortOrder;
|
|
335
|
+
createdById?: Prisma.SortOrder;
|
|
336
|
+
createdAt?: Prisma.SortOrder;
|
|
337
|
+
};
|
|
338
|
+
export type ArtifactVersionMinOrderByAggregateInput = {
|
|
339
|
+
id?: Prisma.SortOrder;
|
|
340
|
+
artifactId?: Prisma.SortOrder;
|
|
341
|
+
content?: Prisma.SortOrder;
|
|
342
|
+
version?: Prisma.SortOrder;
|
|
343
|
+
createdById?: Prisma.SortOrder;
|
|
344
|
+
createdAt?: Prisma.SortOrder;
|
|
345
|
+
};
|
|
346
|
+
export type ArtifactVersionSumOrderByAggregateInput = {
|
|
347
|
+
version?: Prisma.SortOrder;
|
|
348
|
+
};
|
|
349
|
+
export type ArtifactVersionScalarRelationFilter = {
|
|
350
|
+
is?: Prisma.ArtifactVersionWhereInput;
|
|
351
|
+
isNot?: Prisma.ArtifactVersionWhereInput;
|
|
352
|
+
};
|
|
353
|
+
export type ArtifactVersionCreateNestedManyWithoutCreatedByInput = {
|
|
354
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactVersionCreateWithoutCreatedByInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput[];
|
|
355
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput[];
|
|
356
|
+
createMany?: Prisma.ArtifactVersionCreateManyCreatedByInputEnvelope;
|
|
357
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
358
|
+
};
|
|
359
|
+
export type ArtifactVersionUncheckedCreateNestedManyWithoutCreatedByInput = {
|
|
360
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactVersionCreateWithoutCreatedByInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput[];
|
|
361
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput[];
|
|
362
|
+
createMany?: Prisma.ArtifactVersionCreateManyCreatedByInputEnvelope;
|
|
363
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
364
|
+
};
|
|
365
|
+
export type ArtifactVersionUpdateManyWithoutCreatedByNestedInput = {
|
|
366
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactVersionCreateWithoutCreatedByInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput[];
|
|
367
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput[];
|
|
368
|
+
upsert?: Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutCreatedByInput[];
|
|
369
|
+
createMany?: Prisma.ArtifactVersionCreateManyCreatedByInputEnvelope;
|
|
370
|
+
set?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
371
|
+
disconnect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
372
|
+
delete?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
373
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
374
|
+
update?: Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutCreatedByInput[];
|
|
375
|
+
updateMany?: Prisma.ArtifactVersionUpdateManyWithWhereWithoutCreatedByInput | Prisma.ArtifactVersionUpdateManyWithWhereWithoutCreatedByInput[];
|
|
376
|
+
deleteMany?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
377
|
+
};
|
|
378
|
+
export type ArtifactVersionUncheckedUpdateManyWithoutCreatedByNestedInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactVersionCreateWithoutCreatedByInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput[];
|
|
380
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactVersionCreateOrConnectWithoutCreatedByInput[];
|
|
381
|
+
upsert?: Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutCreatedByInput[];
|
|
382
|
+
createMany?: Prisma.ArtifactVersionCreateManyCreatedByInputEnvelope;
|
|
383
|
+
set?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
384
|
+
disconnect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
385
|
+
delete?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
386
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
387
|
+
update?: Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutCreatedByInput[];
|
|
388
|
+
updateMany?: Prisma.ArtifactVersionUpdateManyWithWhereWithoutCreatedByInput | Prisma.ArtifactVersionUpdateManyWithWhereWithoutCreatedByInput[];
|
|
389
|
+
deleteMany?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
390
|
+
};
|
|
391
|
+
export type ArtifactVersionCreateNestedManyWithoutArtifactInput = {
|
|
392
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput> | Prisma.ArtifactVersionCreateWithoutArtifactInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput[];
|
|
393
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput | Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput[];
|
|
394
|
+
createMany?: Prisma.ArtifactVersionCreateManyArtifactInputEnvelope;
|
|
395
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
396
|
+
};
|
|
397
|
+
export type ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput = {
|
|
398
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput> | Prisma.ArtifactVersionCreateWithoutArtifactInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput[];
|
|
399
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput | Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput[];
|
|
400
|
+
createMany?: Prisma.ArtifactVersionCreateManyArtifactInputEnvelope;
|
|
401
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
402
|
+
};
|
|
403
|
+
export type ArtifactVersionUpdateManyWithoutArtifactNestedInput = {
|
|
404
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput> | Prisma.ArtifactVersionCreateWithoutArtifactInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput[];
|
|
405
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput | Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput[];
|
|
406
|
+
upsert?: Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutArtifactInput | Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutArtifactInput[];
|
|
407
|
+
createMany?: Prisma.ArtifactVersionCreateManyArtifactInputEnvelope;
|
|
408
|
+
set?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
409
|
+
disconnect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
410
|
+
delete?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
411
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
412
|
+
update?: Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutArtifactInput | Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutArtifactInput[];
|
|
413
|
+
updateMany?: Prisma.ArtifactVersionUpdateManyWithWhereWithoutArtifactInput | Prisma.ArtifactVersionUpdateManyWithWhereWithoutArtifactInput[];
|
|
414
|
+
deleteMany?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
415
|
+
};
|
|
416
|
+
export type ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput = {
|
|
417
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput> | Prisma.ArtifactVersionCreateWithoutArtifactInput[] | Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput[];
|
|
418
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput | Prisma.ArtifactVersionCreateOrConnectWithoutArtifactInput[];
|
|
419
|
+
upsert?: Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutArtifactInput | Prisma.ArtifactVersionUpsertWithWhereUniqueWithoutArtifactInput[];
|
|
420
|
+
createMany?: Prisma.ArtifactVersionCreateManyArtifactInputEnvelope;
|
|
421
|
+
set?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
422
|
+
disconnect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
423
|
+
delete?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
424
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput | Prisma.ArtifactVersionWhereUniqueInput[];
|
|
425
|
+
update?: Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutArtifactInput | Prisma.ArtifactVersionUpdateWithWhereUniqueWithoutArtifactInput[];
|
|
426
|
+
updateMany?: Prisma.ArtifactVersionUpdateManyWithWhereWithoutArtifactInput | Prisma.ArtifactVersionUpdateManyWithWhereWithoutArtifactInput[];
|
|
427
|
+
deleteMany?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
428
|
+
};
|
|
429
|
+
export type ArtifactVersionCreateNestedOneWithoutHighlightsInput = {
|
|
430
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedCreateWithoutHighlightsInput>;
|
|
431
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutHighlightsInput;
|
|
432
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
433
|
+
};
|
|
434
|
+
export type ArtifactVersionUpdateOneRequiredWithoutHighlightsNestedInput = {
|
|
435
|
+
create?: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedCreateWithoutHighlightsInput>;
|
|
436
|
+
connectOrCreate?: Prisma.ArtifactVersionCreateOrConnectWithoutHighlightsInput;
|
|
437
|
+
upsert?: Prisma.ArtifactVersionUpsertWithoutHighlightsInput;
|
|
438
|
+
connect?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
439
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ArtifactVersionUpdateToOneWithWhereWithoutHighlightsInput, Prisma.ArtifactVersionUpdateWithoutHighlightsInput>, Prisma.ArtifactVersionUncheckedUpdateWithoutHighlightsInput>;
|
|
440
|
+
};
|
|
441
|
+
export type ArtifactVersionCreateWithoutCreatedByInput = {
|
|
442
|
+
id?: string;
|
|
443
|
+
content: string;
|
|
444
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
445
|
+
version: number;
|
|
446
|
+
createdAt?: Date | string;
|
|
447
|
+
artifact: Prisma.ArtifactCreateNestedOneWithoutVersionsInput;
|
|
448
|
+
highlights?: Prisma.StudyGuideHighlightCreateNestedManyWithoutArtifactVersionInput;
|
|
449
|
+
};
|
|
450
|
+
export type ArtifactVersionUncheckedCreateWithoutCreatedByInput = {
|
|
451
|
+
id?: string;
|
|
452
|
+
artifactId: string;
|
|
453
|
+
content: string;
|
|
454
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
455
|
+
version: number;
|
|
456
|
+
createdAt?: Date | string;
|
|
457
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedCreateNestedManyWithoutArtifactVersionInput;
|
|
458
|
+
};
|
|
459
|
+
export type ArtifactVersionCreateOrConnectWithoutCreatedByInput = {
|
|
460
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
461
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput>;
|
|
462
|
+
};
|
|
463
|
+
export type ArtifactVersionCreateManyCreatedByInputEnvelope = {
|
|
464
|
+
data: Prisma.ArtifactVersionCreateManyCreatedByInput | Prisma.ArtifactVersionCreateManyCreatedByInput[];
|
|
465
|
+
skipDuplicates?: boolean;
|
|
466
|
+
};
|
|
467
|
+
export type ArtifactVersionUpsertWithWhereUniqueWithoutCreatedByInput = {
|
|
468
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
469
|
+
update: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedUpdateWithoutCreatedByInput>;
|
|
470
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedCreateWithoutCreatedByInput>;
|
|
471
|
+
};
|
|
472
|
+
export type ArtifactVersionUpdateWithWhereUniqueWithoutCreatedByInput = {
|
|
473
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
474
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutCreatedByInput, Prisma.ArtifactVersionUncheckedUpdateWithoutCreatedByInput>;
|
|
475
|
+
};
|
|
476
|
+
export type ArtifactVersionUpdateManyWithWhereWithoutCreatedByInput = {
|
|
477
|
+
where: Prisma.ArtifactVersionScalarWhereInput;
|
|
478
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateManyMutationInput, Prisma.ArtifactVersionUncheckedUpdateManyWithoutCreatedByInput>;
|
|
479
|
+
};
|
|
480
|
+
export type ArtifactVersionScalarWhereInput = {
|
|
481
|
+
AND?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
482
|
+
OR?: Prisma.ArtifactVersionScalarWhereInput[];
|
|
483
|
+
NOT?: Prisma.ArtifactVersionScalarWhereInput | Prisma.ArtifactVersionScalarWhereInput[];
|
|
484
|
+
id?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
485
|
+
artifactId?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
486
|
+
content?: Prisma.StringFilter<"ArtifactVersion"> | string;
|
|
487
|
+
data?: Prisma.JsonNullableFilter<"ArtifactVersion">;
|
|
488
|
+
version?: Prisma.IntFilter<"ArtifactVersion"> | number;
|
|
489
|
+
createdById?: Prisma.StringNullableFilter<"ArtifactVersion"> | string | null;
|
|
490
|
+
createdAt?: Prisma.DateTimeFilter<"ArtifactVersion"> | Date | string;
|
|
491
|
+
};
|
|
492
|
+
export type ArtifactVersionCreateWithoutArtifactInput = {
|
|
493
|
+
id?: string;
|
|
494
|
+
content: string;
|
|
495
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
496
|
+
version: number;
|
|
497
|
+
createdAt?: Date | string;
|
|
498
|
+
createdBy?: Prisma.UserCreateNestedOneWithoutVersionsInput;
|
|
499
|
+
highlights?: Prisma.StudyGuideHighlightCreateNestedManyWithoutArtifactVersionInput;
|
|
500
|
+
};
|
|
501
|
+
export type ArtifactVersionUncheckedCreateWithoutArtifactInput = {
|
|
502
|
+
id?: string;
|
|
503
|
+
content: string;
|
|
504
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
505
|
+
version: number;
|
|
506
|
+
createdById?: string | null;
|
|
507
|
+
createdAt?: Date | string;
|
|
508
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedCreateNestedManyWithoutArtifactVersionInput;
|
|
509
|
+
};
|
|
510
|
+
export type ArtifactVersionCreateOrConnectWithoutArtifactInput = {
|
|
511
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
512
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput>;
|
|
513
|
+
};
|
|
514
|
+
export type ArtifactVersionCreateManyArtifactInputEnvelope = {
|
|
515
|
+
data: Prisma.ArtifactVersionCreateManyArtifactInput | Prisma.ArtifactVersionCreateManyArtifactInput[];
|
|
516
|
+
skipDuplicates?: boolean;
|
|
517
|
+
};
|
|
518
|
+
export type ArtifactVersionUpsertWithWhereUniqueWithoutArtifactInput = {
|
|
519
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
520
|
+
update: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedUpdateWithoutArtifactInput>;
|
|
521
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedCreateWithoutArtifactInput>;
|
|
522
|
+
};
|
|
523
|
+
export type ArtifactVersionUpdateWithWhereUniqueWithoutArtifactInput = {
|
|
524
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
525
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutArtifactInput, Prisma.ArtifactVersionUncheckedUpdateWithoutArtifactInput>;
|
|
526
|
+
};
|
|
527
|
+
export type ArtifactVersionUpdateManyWithWhereWithoutArtifactInput = {
|
|
528
|
+
where: Prisma.ArtifactVersionScalarWhereInput;
|
|
529
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateManyMutationInput, Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactInput>;
|
|
530
|
+
};
|
|
531
|
+
export type ArtifactVersionCreateWithoutHighlightsInput = {
|
|
532
|
+
id?: string;
|
|
533
|
+
content: string;
|
|
534
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
535
|
+
version: number;
|
|
536
|
+
createdAt?: Date | string;
|
|
537
|
+
artifact: Prisma.ArtifactCreateNestedOneWithoutVersionsInput;
|
|
538
|
+
createdBy?: Prisma.UserCreateNestedOneWithoutVersionsInput;
|
|
539
|
+
};
|
|
540
|
+
export type ArtifactVersionUncheckedCreateWithoutHighlightsInput = {
|
|
541
|
+
id?: string;
|
|
542
|
+
artifactId: string;
|
|
543
|
+
content: string;
|
|
544
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
545
|
+
version: number;
|
|
546
|
+
createdById?: string | null;
|
|
547
|
+
createdAt?: Date | string;
|
|
548
|
+
};
|
|
549
|
+
export type ArtifactVersionCreateOrConnectWithoutHighlightsInput = {
|
|
550
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
551
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedCreateWithoutHighlightsInput>;
|
|
552
|
+
};
|
|
553
|
+
export type ArtifactVersionUpsertWithoutHighlightsInput = {
|
|
554
|
+
update: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedUpdateWithoutHighlightsInput>;
|
|
555
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedCreateWithoutHighlightsInput>;
|
|
556
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
557
|
+
};
|
|
558
|
+
export type ArtifactVersionUpdateToOneWithWhereWithoutHighlightsInput = {
|
|
559
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
560
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateWithoutHighlightsInput, Prisma.ArtifactVersionUncheckedUpdateWithoutHighlightsInput>;
|
|
561
|
+
};
|
|
562
|
+
export type ArtifactVersionUpdateWithoutHighlightsInput = {
|
|
563
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
564
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
565
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
566
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
567
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
568
|
+
artifact?: Prisma.ArtifactUpdateOneRequiredWithoutVersionsNestedInput;
|
|
569
|
+
createdBy?: Prisma.UserUpdateOneWithoutVersionsNestedInput;
|
|
570
|
+
};
|
|
571
|
+
export type ArtifactVersionUncheckedUpdateWithoutHighlightsInput = {
|
|
572
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
573
|
+
artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
574
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
575
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
576
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
577
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
578
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
579
|
+
};
|
|
580
|
+
export type ArtifactVersionCreateManyCreatedByInput = {
|
|
581
|
+
id?: string;
|
|
582
|
+
artifactId: string;
|
|
583
|
+
content: string;
|
|
584
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
585
|
+
version: number;
|
|
586
|
+
createdAt?: Date | string;
|
|
587
|
+
};
|
|
588
|
+
export type ArtifactVersionUpdateWithoutCreatedByInput = {
|
|
589
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
590
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
591
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
592
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
593
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
594
|
+
artifact?: Prisma.ArtifactUpdateOneRequiredWithoutVersionsNestedInput;
|
|
595
|
+
highlights?: Prisma.StudyGuideHighlightUpdateManyWithoutArtifactVersionNestedInput;
|
|
596
|
+
};
|
|
597
|
+
export type ArtifactVersionUncheckedUpdateWithoutCreatedByInput = {
|
|
598
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
599
|
+
artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
600
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
601
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
602
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
603
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
604
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedUpdateManyWithoutArtifactVersionNestedInput;
|
|
605
|
+
};
|
|
606
|
+
export type ArtifactVersionUncheckedUpdateManyWithoutCreatedByInput = {
|
|
607
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
608
|
+
artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
609
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
610
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
611
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
612
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
613
|
+
};
|
|
614
|
+
export type ArtifactVersionCreateManyArtifactInput = {
|
|
615
|
+
id?: string;
|
|
616
|
+
content: string;
|
|
617
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
618
|
+
version: number;
|
|
619
|
+
createdById?: string | null;
|
|
620
|
+
createdAt?: Date | string;
|
|
621
|
+
};
|
|
622
|
+
export type ArtifactVersionUpdateWithoutArtifactInput = {
|
|
623
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
624
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
625
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
626
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
627
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
628
|
+
createdBy?: Prisma.UserUpdateOneWithoutVersionsNestedInput;
|
|
629
|
+
highlights?: Prisma.StudyGuideHighlightUpdateManyWithoutArtifactVersionNestedInput;
|
|
630
|
+
};
|
|
631
|
+
export type ArtifactVersionUncheckedUpdateWithoutArtifactInput = {
|
|
632
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
633
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
634
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
635
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
636
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
637
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
638
|
+
highlights?: Prisma.StudyGuideHighlightUncheckedUpdateManyWithoutArtifactVersionNestedInput;
|
|
639
|
+
};
|
|
640
|
+
export type ArtifactVersionUncheckedUpdateManyWithoutArtifactInput = {
|
|
641
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
642
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
643
|
+
data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
644
|
+
version?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
645
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
646
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* Count Type ArtifactVersionCountOutputType
|
|
650
|
+
*/
|
|
651
|
+
export type ArtifactVersionCountOutputType = {
|
|
652
|
+
highlights: number;
|
|
653
|
+
};
|
|
654
|
+
export type ArtifactVersionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
655
|
+
highlights?: boolean | ArtifactVersionCountOutputTypeCountHighlightsArgs;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* ArtifactVersionCountOutputType without action
|
|
659
|
+
*/
|
|
660
|
+
export type ArtifactVersionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
661
|
+
/**
|
|
662
|
+
* Select specific fields to fetch from the ArtifactVersionCountOutputType
|
|
663
|
+
*/
|
|
664
|
+
select?: Prisma.ArtifactVersionCountOutputTypeSelect<ExtArgs> | null;
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* ArtifactVersionCountOutputType without action
|
|
668
|
+
*/
|
|
669
|
+
export type ArtifactVersionCountOutputTypeCountHighlightsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
670
|
+
where?: Prisma.StudyGuideHighlightWhereInput;
|
|
671
|
+
};
|
|
672
|
+
export type ArtifactVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
673
|
+
id?: boolean;
|
|
674
|
+
artifactId?: boolean;
|
|
675
|
+
content?: boolean;
|
|
676
|
+
data?: boolean;
|
|
677
|
+
version?: boolean;
|
|
678
|
+
createdById?: boolean;
|
|
679
|
+
createdAt?: boolean;
|
|
680
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
681
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
682
|
+
highlights?: boolean | Prisma.ArtifactVersion$highlightsArgs<ExtArgs>;
|
|
683
|
+
_count?: boolean | Prisma.ArtifactVersionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
684
|
+
}, ExtArgs["result"]["artifactVersion"]>;
|
|
685
|
+
export type ArtifactVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
686
|
+
id?: boolean;
|
|
687
|
+
artifactId?: boolean;
|
|
688
|
+
content?: boolean;
|
|
689
|
+
data?: boolean;
|
|
690
|
+
version?: boolean;
|
|
691
|
+
createdById?: boolean;
|
|
692
|
+
createdAt?: boolean;
|
|
693
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
694
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
695
|
+
}, ExtArgs["result"]["artifactVersion"]>;
|
|
696
|
+
export type ArtifactVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
697
|
+
id?: boolean;
|
|
698
|
+
artifactId?: boolean;
|
|
699
|
+
content?: boolean;
|
|
700
|
+
data?: boolean;
|
|
701
|
+
version?: boolean;
|
|
702
|
+
createdById?: boolean;
|
|
703
|
+
createdAt?: boolean;
|
|
704
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
705
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
706
|
+
}, ExtArgs["result"]["artifactVersion"]>;
|
|
707
|
+
export type ArtifactVersionSelectScalar = {
|
|
708
|
+
id?: boolean;
|
|
709
|
+
artifactId?: boolean;
|
|
710
|
+
content?: boolean;
|
|
711
|
+
data?: boolean;
|
|
712
|
+
version?: boolean;
|
|
713
|
+
createdById?: boolean;
|
|
714
|
+
createdAt?: boolean;
|
|
715
|
+
};
|
|
716
|
+
export type ArtifactVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "artifactId" | "content" | "data" | "version" | "createdById" | "createdAt", ExtArgs["result"]["artifactVersion"]>;
|
|
717
|
+
export type ArtifactVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
718
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
719
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
720
|
+
highlights?: boolean | Prisma.ArtifactVersion$highlightsArgs<ExtArgs>;
|
|
721
|
+
_count?: boolean | Prisma.ArtifactVersionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
722
|
+
};
|
|
723
|
+
export type ArtifactVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
724
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
725
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
726
|
+
};
|
|
727
|
+
export type ArtifactVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
728
|
+
artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
|
|
729
|
+
createdBy?: boolean | Prisma.ArtifactVersion$createdByArgs<ExtArgs>;
|
|
730
|
+
};
|
|
731
|
+
export type $ArtifactVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
732
|
+
name: "ArtifactVersion";
|
|
733
|
+
objects: {
|
|
734
|
+
artifact: Prisma.$ArtifactPayload<ExtArgs>;
|
|
735
|
+
createdBy: Prisma.$UserPayload<ExtArgs> | null;
|
|
736
|
+
highlights: Prisma.$StudyGuideHighlightPayload<ExtArgs>[];
|
|
737
|
+
};
|
|
738
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
739
|
+
id: string;
|
|
740
|
+
artifactId: string;
|
|
741
|
+
content: string;
|
|
742
|
+
data: runtime.JsonValue | null;
|
|
743
|
+
version: number;
|
|
744
|
+
createdById: string | null;
|
|
745
|
+
createdAt: Date;
|
|
746
|
+
}, ExtArgs["result"]["artifactVersion"]>;
|
|
747
|
+
composites: {};
|
|
748
|
+
};
|
|
749
|
+
export type ArtifactVersionGetPayload<S extends boolean | null | undefined | ArtifactVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload, S>;
|
|
750
|
+
export type ArtifactVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ArtifactVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
751
|
+
select?: ArtifactVersionCountAggregateInputType | true;
|
|
752
|
+
};
|
|
753
|
+
export interface ArtifactVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
754
|
+
[K: symbol]: {
|
|
755
|
+
types: Prisma.TypeMap<ExtArgs>['model']['ArtifactVersion'];
|
|
756
|
+
meta: {
|
|
757
|
+
name: 'ArtifactVersion';
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* Find zero or one ArtifactVersion that matches the filter.
|
|
762
|
+
* @param {ArtifactVersionFindUniqueArgs} args - Arguments to find a ArtifactVersion
|
|
763
|
+
* @example
|
|
764
|
+
* // Get one ArtifactVersion
|
|
765
|
+
* const artifactVersion = await prisma.artifactVersion.findUnique({
|
|
766
|
+
* where: {
|
|
767
|
+
* // ... provide filter here
|
|
768
|
+
* }
|
|
769
|
+
* })
|
|
770
|
+
*/
|
|
771
|
+
findUnique<T extends ArtifactVersionFindUniqueArgs>(args: Prisma.SelectSubset<T, ArtifactVersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
772
|
+
/**
|
|
773
|
+
* Find one ArtifactVersion that matches the filter or throw an error with `error.code='P2025'`
|
|
774
|
+
* if no matches were found.
|
|
775
|
+
* @param {ArtifactVersionFindUniqueOrThrowArgs} args - Arguments to find a ArtifactVersion
|
|
776
|
+
* @example
|
|
777
|
+
* // Get one ArtifactVersion
|
|
778
|
+
* const artifactVersion = await prisma.artifactVersion.findUniqueOrThrow({
|
|
779
|
+
* where: {
|
|
780
|
+
* // ... provide filter here
|
|
781
|
+
* }
|
|
782
|
+
* })
|
|
783
|
+
*/
|
|
784
|
+
findUniqueOrThrow<T extends ArtifactVersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ArtifactVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
785
|
+
/**
|
|
786
|
+
* Find the first ArtifactVersion that matches the filter.
|
|
787
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
788
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
789
|
+
* @param {ArtifactVersionFindFirstArgs} args - Arguments to find a ArtifactVersion
|
|
790
|
+
* @example
|
|
791
|
+
* // Get one ArtifactVersion
|
|
792
|
+
* const artifactVersion = await prisma.artifactVersion.findFirst({
|
|
793
|
+
* where: {
|
|
794
|
+
* // ... provide filter here
|
|
795
|
+
* }
|
|
796
|
+
* })
|
|
797
|
+
*/
|
|
798
|
+
findFirst<T extends ArtifactVersionFindFirstArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
799
|
+
/**
|
|
800
|
+
* Find the first ArtifactVersion that matches the filter or
|
|
801
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
802
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
803
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
804
|
+
* @param {ArtifactVersionFindFirstOrThrowArgs} args - Arguments to find a ArtifactVersion
|
|
805
|
+
* @example
|
|
806
|
+
* // Get one ArtifactVersion
|
|
807
|
+
* const artifactVersion = await prisma.artifactVersion.findFirstOrThrow({
|
|
808
|
+
* where: {
|
|
809
|
+
* // ... provide filter here
|
|
810
|
+
* }
|
|
811
|
+
* })
|
|
812
|
+
*/
|
|
813
|
+
findFirstOrThrow<T extends ArtifactVersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
814
|
+
/**
|
|
815
|
+
* Find zero or more ArtifactVersions that matches the filter.
|
|
816
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
817
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
818
|
+
* @param {ArtifactVersionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
819
|
+
* @example
|
|
820
|
+
* // Get all ArtifactVersions
|
|
821
|
+
* const artifactVersions = await prisma.artifactVersion.findMany()
|
|
822
|
+
*
|
|
823
|
+
* // Get first 10 ArtifactVersions
|
|
824
|
+
* const artifactVersions = await prisma.artifactVersion.findMany({ take: 10 })
|
|
825
|
+
*
|
|
826
|
+
* // Only select the `id`
|
|
827
|
+
* const artifactVersionWithIdOnly = await prisma.artifactVersion.findMany({ select: { id: true } })
|
|
828
|
+
*
|
|
829
|
+
*/
|
|
830
|
+
findMany<T extends ArtifactVersionFindManyArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
831
|
+
/**
|
|
832
|
+
* Create a ArtifactVersion.
|
|
833
|
+
* @param {ArtifactVersionCreateArgs} args - Arguments to create a ArtifactVersion.
|
|
834
|
+
* @example
|
|
835
|
+
* // Create one ArtifactVersion
|
|
836
|
+
* const ArtifactVersion = await prisma.artifactVersion.create({
|
|
837
|
+
* data: {
|
|
838
|
+
* // ... data to create a ArtifactVersion
|
|
839
|
+
* }
|
|
840
|
+
* })
|
|
841
|
+
*
|
|
842
|
+
*/
|
|
843
|
+
create<T extends ArtifactVersionCreateArgs>(args: Prisma.SelectSubset<T, ArtifactVersionCreateArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
844
|
+
/**
|
|
845
|
+
* Create many ArtifactVersions.
|
|
846
|
+
* @param {ArtifactVersionCreateManyArgs} args - Arguments to create many ArtifactVersions.
|
|
847
|
+
* @example
|
|
848
|
+
* // Create many ArtifactVersions
|
|
849
|
+
* const artifactVersion = await prisma.artifactVersion.createMany({
|
|
850
|
+
* data: [
|
|
851
|
+
* // ... provide data here
|
|
852
|
+
* ]
|
|
853
|
+
* })
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
createMany<T extends ArtifactVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
857
|
+
/**
|
|
858
|
+
* Create many ArtifactVersions and returns the data saved in the database.
|
|
859
|
+
* @param {ArtifactVersionCreateManyAndReturnArgs} args - Arguments to create many ArtifactVersions.
|
|
860
|
+
* @example
|
|
861
|
+
* // Create many ArtifactVersions
|
|
862
|
+
* const artifactVersion = await prisma.artifactVersion.createManyAndReturn({
|
|
863
|
+
* data: [
|
|
864
|
+
* // ... provide data here
|
|
865
|
+
* ]
|
|
866
|
+
* })
|
|
867
|
+
*
|
|
868
|
+
* // Create many ArtifactVersions and only return the `id`
|
|
869
|
+
* const artifactVersionWithIdOnly = await prisma.artifactVersion.createManyAndReturn({
|
|
870
|
+
* select: { id: true },
|
|
871
|
+
* data: [
|
|
872
|
+
* // ... provide data here
|
|
873
|
+
* ]
|
|
874
|
+
* })
|
|
875
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
876
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
877
|
+
*
|
|
878
|
+
*/
|
|
879
|
+
createManyAndReturn<T extends ArtifactVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
880
|
+
/**
|
|
881
|
+
* Delete a ArtifactVersion.
|
|
882
|
+
* @param {ArtifactVersionDeleteArgs} args - Arguments to delete one ArtifactVersion.
|
|
883
|
+
* @example
|
|
884
|
+
* // Delete one ArtifactVersion
|
|
885
|
+
* const ArtifactVersion = await prisma.artifactVersion.delete({
|
|
886
|
+
* where: {
|
|
887
|
+
* // ... filter to delete one ArtifactVersion
|
|
888
|
+
* }
|
|
889
|
+
* })
|
|
890
|
+
*
|
|
891
|
+
*/
|
|
892
|
+
delete<T extends ArtifactVersionDeleteArgs>(args: Prisma.SelectSubset<T, ArtifactVersionDeleteArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
893
|
+
/**
|
|
894
|
+
* Update one ArtifactVersion.
|
|
895
|
+
* @param {ArtifactVersionUpdateArgs} args - Arguments to update one ArtifactVersion.
|
|
896
|
+
* @example
|
|
897
|
+
* // Update one ArtifactVersion
|
|
898
|
+
* const artifactVersion = await prisma.artifactVersion.update({
|
|
899
|
+
* where: {
|
|
900
|
+
* // ... provide filter here
|
|
901
|
+
* },
|
|
902
|
+
* data: {
|
|
903
|
+
* // ... provide data here
|
|
904
|
+
* }
|
|
905
|
+
* })
|
|
906
|
+
*
|
|
907
|
+
*/
|
|
908
|
+
update<T extends ArtifactVersionUpdateArgs>(args: Prisma.SelectSubset<T, ArtifactVersionUpdateArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
909
|
+
/**
|
|
910
|
+
* Delete zero or more ArtifactVersions.
|
|
911
|
+
* @param {ArtifactVersionDeleteManyArgs} args - Arguments to filter ArtifactVersions to delete.
|
|
912
|
+
* @example
|
|
913
|
+
* // Delete a few ArtifactVersions
|
|
914
|
+
* const { count } = await prisma.artifactVersion.deleteMany({
|
|
915
|
+
* where: {
|
|
916
|
+
* // ... provide filter here
|
|
917
|
+
* }
|
|
918
|
+
* })
|
|
919
|
+
*
|
|
920
|
+
*/
|
|
921
|
+
deleteMany<T extends ArtifactVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, ArtifactVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
922
|
+
/**
|
|
923
|
+
* Update zero or more ArtifactVersions.
|
|
924
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
925
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
926
|
+
* @param {ArtifactVersionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
927
|
+
* @example
|
|
928
|
+
* // Update many ArtifactVersions
|
|
929
|
+
* const artifactVersion = await prisma.artifactVersion.updateMany({
|
|
930
|
+
* where: {
|
|
931
|
+
* // ... provide filter here
|
|
932
|
+
* },
|
|
933
|
+
* data: {
|
|
934
|
+
* // ... provide data here
|
|
935
|
+
* }
|
|
936
|
+
* })
|
|
937
|
+
*
|
|
938
|
+
*/
|
|
939
|
+
updateMany<T extends ArtifactVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, ArtifactVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
940
|
+
/**
|
|
941
|
+
* Update zero or more ArtifactVersions and returns the data updated in the database.
|
|
942
|
+
* @param {ArtifactVersionUpdateManyAndReturnArgs} args - Arguments to update many ArtifactVersions.
|
|
943
|
+
* @example
|
|
944
|
+
* // Update many ArtifactVersions
|
|
945
|
+
* const artifactVersion = await prisma.artifactVersion.updateManyAndReturn({
|
|
946
|
+
* where: {
|
|
947
|
+
* // ... provide filter here
|
|
948
|
+
* },
|
|
949
|
+
* data: [
|
|
950
|
+
* // ... provide data here
|
|
951
|
+
* ]
|
|
952
|
+
* })
|
|
953
|
+
*
|
|
954
|
+
* // Update zero or more ArtifactVersions and only return the `id`
|
|
955
|
+
* const artifactVersionWithIdOnly = await prisma.artifactVersion.updateManyAndReturn({
|
|
956
|
+
* select: { id: true },
|
|
957
|
+
* where: {
|
|
958
|
+
* // ... provide filter here
|
|
959
|
+
* },
|
|
960
|
+
* data: [
|
|
961
|
+
* // ... provide data here
|
|
962
|
+
* ]
|
|
963
|
+
* })
|
|
964
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
965
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
966
|
+
*
|
|
967
|
+
*/
|
|
968
|
+
updateManyAndReturn<T extends ArtifactVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ArtifactVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
969
|
+
/**
|
|
970
|
+
* Create or update one ArtifactVersion.
|
|
971
|
+
* @param {ArtifactVersionUpsertArgs} args - Arguments to update or create a ArtifactVersion.
|
|
972
|
+
* @example
|
|
973
|
+
* // Update or create a ArtifactVersion
|
|
974
|
+
* const artifactVersion = await prisma.artifactVersion.upsert({
|
|
975
|
+
* create: {
|
|
976
|
+
* // ... data to create a ArtifactVersion
|
|
977
|
+
* },
|
|
978
|
+
* update: {
|
|
979
|
+
* // ... in case it already exists, update
|
|
980
|
+
* },
|
|
981
|
+
* where: {
|
|
982
|
+
* // ... the filter for the ArtifactVersion we want to update
|
|
983
|
+
* }
|
|
984
|
+
* })
|
|
985
|
+
*/
|
|
986
|
+
upsert<T extends ArtifactVersionUpsertArgs>(args: Prisma.SelectSubset<T, ArtifactVersionUpsertArgs<ExtArgs>>): Prisma.Prisma__ArtifactVersionClient<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
987
|
+
/**
|
|
988
|
+
* Count the number of ArtifactVersions.
|
|
989
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
990
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
991
|
+
* @param {ArtifactVersionCountArgs} args - Arguments to filter ArtifactVersions to count.
|
|
992
|
+
* @example
|
|
993
|
+
* // Count the number of ArtifactVersions
|
|
994
|
+
* const count = await prisma.artifactVersion.count({
|
|
995
|
+
* where: {
|
|
996
|
+
* // ... the filter for the ArtifactVersions we want to count
|
|
997
|
+
* }
|
|
998
|
+
* })
|
|
999
|
+
**/
|
|
1000
|
+
count<T extends ArtifactVersionCountArgs>(args?: Prisma.Subset<T, ArtifactVersionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ArtifactVersionCountAggregateOutputType> : number>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Allows you to perform aggregations operations on a ArtifactVersion.
|
|
1003
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1004
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1005
|
+
* @param {ArtifactVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1006
|
+
* @example
|
|
1007
|
+
* // Ordered by age ascending
|
|
1008
|
+
* // Where email contains prisma.io
|
|
1009
|
+
* // Limited to the 10 users
|
|
1010
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1011
|
+
* _avg: {
|
|
1012
|
+
* age: true,
|
|
1013
|
+
* },
|
|
1014
|
+
* where: {
|
|
1015
|
+
* email: {
|
|
1016
|
+
* contains: "prisma.io",
|
|
1017
|
+
* },
|
|
1018
|
+
* },
|
|
1019
|
+
* orderBy: {
|
|
1020
|
+
* age: "asc",
|
|
1021
|
+
* },
|
|
1022
|
+
* take: 10,
|
|
1023
|
+
* })
|
|
1024
|
+
**/
|
|
1025
|
+
aggregate<T extends ArtifactVersionAggregateArgs>(args: Prisma.Subset<T, ArtifactVersionAggregateArgs>): Prisma.PrismaPromise<GetArtifactVersionAggregateType<T>>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Group by ArtifactVersion.
|
|
1028
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1029
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1030
|
+
* @param {ArtifactVersionGroupByArgs} args - Group by arguments.
|
|
1031
|
+
* @example
|
|
1032
|
+
* // Group by city, order by createdAt, get count
|
|
1033
|
+
* const result = await prisma.user.groupBy({
|
|
1034
|
+
* by: ['city', 'createdAt'],
|
|
1035
|
+
* orderBy: {
|
|
1036
|
+
* createdAt: true
|
|
1037
|
+
* },
|
|
1038
|
+
* _count: {
|
|
1039
|
+
* _all: true
|
|
1040
|
+
* },
|
|
1041
|
+
* })
|
|
1042
|
+
*
|
|
1043
|
+
**/
|
|
1044
|
+
groupBy<T extends ArtifactVersionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1045
|
+
orderBy: ArtifactVersionGroupByArgs['orderBy'];
|
|
1046
|
+
} : {
|
|
1047
|
+
orderBy?: ArtifactVersionGroupByArgs['orderBy'];
|
|
1048
|
+
}, 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 ? {
|
|
1049
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1050
|
+
Error,
|
|
1051
|
+
'Field ',
|
|
1052
|
+
P,
|
|
1053
|
+
` in "having" needs to be provided in "by"`
|
|
1054
|
+
];
|
|
1055
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1056
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1057
|
+
}[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 ? {} : {
|
|
1058
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1059
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1060
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1061
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ArtifactVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArtifactVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Fields of the ArtifactVersion model
|
|
1064
|
+
*/
|
|
1065
|
+
readonly fields: ArtifactVersionFieldRefs;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* The delegate class that acts as a "Promise-like" for ArtifactVersion.
|
|
1069
|
+
* Why is this prefixed with `Prisma__`?
|
|
1070
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1071
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1072
|
+
*/
|
|
1073
|
+
export interface Prisma__ArtifactVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1074
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1075
|
+
artifact<T extends Prisma.ArtifactDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ArtifactDefaultArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1076
|
+
createdBy<T extends Prisma.ArtifactVersion$createdByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ArtifactVersion$createdByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1077
|
+
highlights<T extends Prisma.ArtifactVersion$highlightsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ArtifactVersion$highlightsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StudyGuideHighlightPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1080
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1081
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1082
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1083
|
+
*/
|
|
1084
|
+
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>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1087
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1088
|
+
* @returns A Promise for the completion of the callback.
|
|
1089
|
+
*/
|
|
1090
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1093
|
+
* resolved value cannot be modified from the callback.
|
|
1094
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1095
|
+
* @returns A Promise for the completion of the callback.
|
|
1096
|
+
*/
|
|
1097
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Fields of the ArtifactVersion model
|
|
1101
|
+
*/
|
|
1102
|
+
export interface ArtifactVersionFieldRefs {
|
|
1103
|
+
readonly id: Prisma.FieldRef<"ArtifactVersion", 'String'>;
|
|
1104
|
+
readonly artifactId: Prisma.FieldRef<"ArtifactVersion", 'String'>;
|
|
1105
|
+
readonly content: Prisma.FieldRef<"ArtifactVersion", 'String'>;
|
|
1106
|
+
readonly data: Prisma.FieldRef<"ArtifactVersion", 'Json'>;
|
|
1107
|
+
readonly version: Prisma.FieldRef<"ArtifactVersion", 'Int'>;
|
|
1108
|
+
readonly createdById: Prisma.FieldRef<"ArtifactVersion", 'String'>;
|
|
1109
|
+
readonly createdAt: Prisma.FieldRef<"ArtifactVersion", 'DateTime'>;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* ArtifactVersion findUnique
|
|
1113
|
+
*/
|
|
1114
|
+
export type ArtifactVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1115
|
+
/**
|
|
1116
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1117
|
+
*/
|
|
1118
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1119
|
+
/**
|
|
1120
|
+
* Omit specific fields from the ArtifactVersion
|
|
1121
|
+
*/
|
|
1122
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* Choose, which related nodes to fetch as well
|
|
1125
|
+
*/
|
|
1126
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1127
|
+
/**
|
|
1128
|
+
* Filter, which ArtifactVersion to fetch.
|
|
1129
|
+
*/
|
|
1130
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* ArtifactVersion findUniqueOrThrow
|
|
1134
|
+
*/
|
|
1135
|
+
export type ArtifactVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1138
|
+
*/
|
|
1139
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Omit specific fields from the ArtifactVersion
|
|
1142
|
+
*/
|
|
1143
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Choose, which related nodes to fetch as well
|
|
1146
|
+
*/
|
|
1147
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* Filter, which ArtifactVersion to fetch.
|
|
1150
|
+
*/
|
|
1151
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1152
|
+
};
|
|
1153
|
+
/**
|
|
1154
|
+
* ArtifactVersion findFirst
|
|
1155
|
+
*/
|
|
1156
|
+
export type ArtifactVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1157
|
+
/**
|
|
1158
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1159
|
+
*/
|
|
1160
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1161
|
+
/**
|
|
1162
|
+
* Omit specific fields from the ArtifactVersion
|
|
1163
|
+
*/
|
|
1164
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* Choose, which related nodes to fetch as well
|
|
1167
|
+
*/
|
|
1168
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* Filter, which ArtifactVersion to fetch.
|
|
1171
|
+
*/
|
|
1172
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1173
|
+
/**
|
|
1174
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1175
|
+
*
|
|
1176
|
+
* Determine the order of ArtifactVersions to fetch.
|
|
1177
|
+
*/
|
|
1178
|
+
orderBy?: Prisma.ArtifactVersionOrderByWithRelationInput | Prisma.ArtifactVersionOrderByWithRelationInput[];
|
|
1179
|
+
/**
|
|
1180
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1181
|
+
*
|
|
1182
|
+
* Sets the position for searching for ArtifactVersions.
|
|
1183
|
+
*/
|
|
1184
|
+
cursor?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1185
|
+
/**
|
|
1186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1187
|
+
*
|
|
1188
|
+
* Take `±n` ArtifactVersions from the position of the cursor.
|
|
1189
|
+
*/
|
|
1190
|
+
take?: number;
|
|
1191
|
+
/**
|
|
1192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1193
|
+
*
|
|
1194
|
+
* Skip the first `n` ArtifactVersions.
|
|
1195
|
+
*/
|
|
1196
|
+
skip?: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1199
|
+
*
|
|
1200
|
+
* Filter by unique combinations of ArtifactVersions.
|
|
1201
|
+
*/
|
|
1202
|
+
distinct?: Prisma.ArtifactVersionScalarFieldEnum | Prisma.ArtifactVersionScalarFieldEnum[];
|
|
1203
|
+
};
|
|
1204
|
+
/**
|
|
1205
|
+
* ArtifactVersion findFirstOrThrow
|
|
1206
|
+
*/
|
|
1207
|
+
export type ArtifactVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1208
|
+
/**
|
|
1209
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1210
|
+
*/
|
|
1211
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* Omit specific fields from the ArtifactVersion
|
|
1214
|
+
*/
|
|
1215
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Choose, which related nodes to fetch as well
|
|
1218
|
+
*/
|
|
1219
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Filter, which ArtifactVersion to fetch.
|
|
1222
|
+
*/
|
|
1223
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1224
|
+
/**
|
|
1225
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1226
|
+
*
|
|
1227
|
+
* Determine the order of ArtifactVersions to fetch.
|
|
1228
|
+
*/
|
|
1229
|
+
orderBy?: Prisma.ArtifactVersionOrderByWithRelationInput | Prisma.ArtifactVersionOrderByWithRelationInput[];
|
|
1230
|
+
/**
|
|
1231
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1232
|
+
*
|
|
1233
|
+
* Sets the position for searching for ArtifactVersions.
|
|
1234
|
+
*/
|
|
1235
|
+
cursor?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1236
|
+
/**
|
|
1237
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1238
|
+
*
|
|
1239
|
+
* Take `±n` ArtifactVersions from the position of the cursor.
|
|
1240
|
+
*/
|
|
1241
|
+
take?: number;
|
|
1242
|
+
/**
|
|
1243
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1244
|
+
*
|
|
1245
|
+
* Skip the first `n` ArtifactVersions.
|
|
1246
|
+
*/
|
|
1247
|
+
skip?: number;
|
|
1248
|
+
/**
|
|
1249
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1250
|
+
*
|
|
1251
|
+
* Filter by unique combinations of ArtifactVersions.
|
|
1252
|
+
*/
|
|
1253
|
+
distinct?: Prisma.ArtifactVersionScalarFieldEnum | Prisma.ArtifactVersionScalarFieldEnum[];
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* ArtifactVersion findMany
|
|
1257
|
+
*/
|
|
1258
|
+
export type ArtifactVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
|
+
/**
|
|
1260
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1261
|
+
*/
|
|
1262
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Omit specific fields from the ArtifactVersion
|
|
1265
|
+
*/
|
|
1266
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* Choose, which related nodes to fetch as well
|
|
1269
|
+
*/
|
|
1270
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Filter, which ArtifactVersions to fetch.
|
|
1273
|
+
*/
|
|
1274
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1275
|
+
/**
|
|
1276
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1277
|
+
*
|
|
1278
|
+
* Determine the order of ArtifactVersions to fetch.
|
|
1279
|
+
*/
|
|
1280
|
+
orderBy?: Prisma.ArtifactVersionOrderByWithRelationInput | Prisma.ArtifactVersionOrderByWithRelationInput[];
|
|
1281
|
+
/**
|
|
1282
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1283
|
+
*
|
|
1284
|
+
* Sets the position for listing ArtifactVersions.
|
|
1285
|
+
*/
|
|
1286
|
+
cursor?: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1287
|
+
/**
|
|
1288
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1289
|
+
*
|
|
1290
|
+
* Take `±n` ArtifactVersions from the position of the cursor.
|
|
1291
|
+
*/
|
|
1292
|
+
take?: number;
|
|
1293
|
+
/**
|
|
1294
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1295
|
+
*
|
|
1296
|
+
* Skip the first `n` ArtifactVersions.
|
|
1297
|
+
*/
|
|
1298
|
+
skip?: number;
|
|
1299
|
+
/**
|
|
1300
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1301
|
+
*
|
|
1302
|
+
* Filter by unique combinations of ArtifactVersions.
|
|
1303
|
+
*/
|
|
1304
|
+
distinct?: Prisma.ArtifactVersionScalarFieldEnum | Prisma.ArtifactVersionScalarFieldEnum[];
|
|
1305
|
+
};
|
|
1306
|
+
/**
|
|
1307
|
+
* ArtifactVersion create
|
|
1308
|
+
*/
|
|
1309
|
+
export type ArtifactVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1310
|
+
/**
|
|
1311
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1312
|
+
*/
|
|
1313
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Omit specific fields from the ArtifactVersion
|
|
1316
|
+
*/
|
|
1317
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1318
|
+
/**
|
|
1319
|
+
* Choose, which related nodes to fetch as well
|
|
1320
|
+
*/
|
|
1321
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* The data needed to create a ArtifactVersion.
|
|
1324
|
+
*/
|
|
1325
|
+
data: Prisma.XOR<Prisma.ArtifactVersionCreateInput, Prisma.ArtifactVersionUncheckedCreateInput>;
|
|
1326
|
+
};
|
|
1327
|
+
/**
|
|
1328
|
+
* ArtifactVersion createMany
|
|
1329
|
+
*/
|
|
1330
|
+
export type ArtifactVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1331
|
+
/**
|
|
1332
|
+
* The data used to create many ArtifactVersions.
|
|
1333
|
+
*/
|
|
1334
|
+
data: Prisma.ArtifactVersionCreateManyInput | Prisma.ArtifactVersionCreateManyInput[];
|
|
1335
|
+
skipDuplicates?: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
/**
|
|
1338
|
+
* ArtifactVersion createManyAndReturn
|
|
1339
|
+
*/
|
|
1340
|
+
export type ArtifactVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1341
|
+
/**
|
|
1342
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1343
|
+
*/
|
|
1344
|
+
select?: Prisma.ArtifactVersionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* Omit specific fields from the ArtifactVersion
|
|
1347
|
+
*/
|
|
1348
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* The data used to create many ArtifactVersions.
|
|
1351
|
+
*/
|
|
1352
|
+
data: Prisma.ArtifactVersionCreateManyInput | Prisma.ArtifactVersionCreateManyInput[];
|
|
1353
|
+
skipDuplicates?: boolean;
|
|
1354
|
+
/**
|
|
1355
|
+
* Choose, which related nodes to fetch as well
|
|
1356
|
+
*/
|
|
1357
|
+
include?: Prisma.ArtifactVersionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1358
|
+
};
|
|
1359
|
+
/**
|
|
1360
|
+
* ArtifactVersion update
|
|
1361
|
+
*/
|
|
1362
|
+
export type ArtifactVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1363
|
+
/**
|
|
1364
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1365
|
+
*/
|
|
1366
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1367
|
+
/**
|
|
1368
|
+
* Omit specific fields from the ArtifactVersion
|
|
1369
|
+
*/
|
|
1370
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1371
|
+
/**
|
|
1372
|
+
* Choose, which related nodes to fetch as well
|
|
1373
|
+
*/
|
|
1374
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1375
|
+
/**
|
|
1376
|
+
* The data needed to update a ArtifactVersion.
|
|
1377
|
+
*/
|
|
1378
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateInput, Prisma.ArtifactVersionUncheckedUpdateInput>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Choose, which ArtifactVersion to update.
|
|
1381
|
+
*/
|
|
1382
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* ArtifactVersion updateMany
|
|
1386
|
+
*/
|
|
1387
|
+
export type ArtifactVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1388
|
+
/**
|
|
1389
|
+
* The data used to update ArtifactVersions.
|
|
1390
|
+
*/
|
|
1391
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateManyMutationInput, Prisma.ArtifactVersionUncheckedUpdateManyInput>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Filter which ArtifactVersions to update
|
|
1394
|
+
*/
|
|
1395
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1396
|
+
/**
|
|
1397
|
+
* Limit how many ArtifactVersions to update.
|
|
1398
|
+
*/
|
|
1399
|
+
limit?: number;
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* ArtifactVersion updateManyAndReturn
|
|
1403
|
+
*/
|
|
1404
|
+
export type ArtifactVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1405
|
+
/**
|
|
1406
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1407
|
+
*/
|
|
1408
|
+
select?: Prisma.ArtifactVersionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* Omit specific fields from the ArtifactVersion
|
|
1411
|
+
*/
|
|
1412
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1413
|
+
/**
|
|
1414
|
+
* The data used to update ArtifactVersions.
|
|
1415
|
+
*/
|
|
1416
|
+
data: Prisma.XOR<Prisma.ArtifactVersionUpdateManyMutationInput, Prisma.ArtifactVersionUncheckedUpdateManyInput>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Filter which ArtifactVersions to update
|
|
1419
|
+
*/
|
|
1420
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1421
|
+
/**
|
|
1422
|
+
* Limit how many ArtifactVersions to update.
|
|
1423
|
+
*/
|
|
1424
|
+
limit?: number;
|
|
1425
|
+
/**
|
|
1426
|
+
* Choose, which related nodes to fetch as well
|
|
1427
|
+
*/
|
|
1428
|
+
include?: Prisma.ArtifactVersionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* ArtifactVersion upsert
|
|
1432
|
+
*/
|
|
1433
|
+
export type ArtifactVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1434
|
+
/**
|
|
1435
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1436
|
+
*/
|
|
1437
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* Omit specific fields from the ArtifactVersion
|
|
1440
|
+
*/
|
|
1441
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* Choose, which related nodes to fetch as well
|
|
1444
|
+
*/
|
|
1445
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* The filter to search for the ArtifactVersion to update in case it exists.
|
|
1448
|
+
*/
|
|
1449
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1450
|
+
/**
|
|
1451
|
+
* In case the ArtifactVersion found by the `where` argument doesn't exist, create a new ArtifactVersion with this data.
|
|
1452
|
+
*/
|
|
1453
|
+
create: Prisma.XOR<Prisma.ArtifactVersionCreateInput, Prisma.ArtifactVersionUncheckedCreateInput>;
|
|
1454
|
+
/**
|
|
1455
|
+
* In case the ArtifactVersion was found with the provided `where` argument, update it with this data.
|
|
1456
|
+
*/
|
|
1457
|
+
update: Prisma.XOR<Prisma.ArtifactVersionUpdateInput, Prisma.ArtifactVersionUncheckedUpdateInput>;
|
|
1458
|
+
};
|
|
1459
|
+
/**
|
|
1460
|
+
* ArtifactVersion delete
|
|
1461
|
+
*/
|
|
1462
|
+
export type ArtifactVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1463
|
+
/**
|
|
1464
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1465
|
+
*/
|
|
1466
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1467
|
+
/**
|
|
1468
|
+
* Omit specific fields from the ArtifactVersion
|
|
1469
|
+
*/
|
|
1470
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Choose, which related nodes to fetch as well
|
|
1473
|
+
*/
|
|
1474
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1475
|
+
/**
|
|
1476
|
+
* Filter which ArtifactVersion to delete.
|
|
1477
|
+
*/
|
|
1478
|
+
where: Prisma.ArtifactVersionWhereUniqueInput;
|
|
1479
|
+
};
|
|
1480
|
+
/**
|
|
1481
|
+
* ArtifactVersion deleteMany
|
|
1482
|
+
*/
|
|
1483
|
+
export type ArtifactVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1484
|
+
/**
|
|
1485
|
+
* Filter which ArtifactVersions to delete
|
|
1486
|
+
*/
|
|
1487
|
+
where?: Prisma.ArtifactVersionWhereInput;
|
|
1488
|
+
/**
|
|
1489
|
+
* Limit how many ArtifactVersions to delete.
|
|
1490
|
+
*/
|
|
1491
|
+
limit?: number;
|
|
1492
|
+
};
|
|
1493
|
+
/**
|
|
1494
|
+
* ArtifactVersion.createdBy
|
|
1495
|
+
*/
|
|
1496
|
+
export type ArtifactVersion$createdByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1497
|
+
/**
|
|
1498
|
+
* Select specific fields to fetch from the User
|
|
1499
|
+
*/
|
|
1500
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Omit specific fields from the User
|
|
1503
|
+
*/
|
|
1504
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Choose, which related nodes to fetch as well
|
|
1507
|
+
*/
|
|
1508
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1509
|
+
where?: Prisma.UserWhereInput;
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* ArtifactVersion.highlights
|
|
1513
|
+
*/
|
|
1514
|
+
export type ArtifactVersion$highlightsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1515
|
+
/**
|
|
1516
|
+
* Select specific fields to fetch from the StudyGuideHighlight
|
|
1517
|
+
*/
|
|
1518
|
+
select?: Prisma.StudyGuideHighlightSelect<ExtArgs> | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* Omit specific fields from the StudyGuideHighlight
|
|
1521
|
+
*/
|
|
1522
|
+
omit?: Prisma.StudyGuideHighlightOmit<ExtArgs> | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* Choose, which related nodes to fetch as well
|
|
1525
|
+
*/
|
|
1526
|
+
include?: Prisma.StudyGuideHighlightInclude<ExtArgs> | null;
|
|
1527
|
+
where?: Prisma.StudyGuideHighlightWhereInput;
|
|
1528
|
+
orderBy?: Prisma.StudyGuideHighlightOrderByWithRelationInput | Prisma.StudyGuideHighlightOrderByWithRelationInput[];
|
|
1529
|
+
cursor?: Prisma.StudyGuideHighlightWhereUniqueInput;
|
|
1530
|
+
take?: number;
|
|
1531
|
+
skip?: number;
|
|
1532
|
+
distinct?: Prisma.StudyGuideHighlightScalarFieldEnum | Prisma.StudyGuideHighlightScalarFieldEnum[];
|
|
1533
|
+
};
|
|
1534
|
+
/**
|
|
1535
|
+
* ArtifactVersion without action
|
|
1536
|
+
*/
|
|
1537
|
+
export type ArtifactVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1538
|
+
/**
|
|
1539
|
+
* Select specific fields to fetch from the ArtifactVersion
|
|
1540
|
+
*/
|
|
1541
|
+
select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* Omit specific fields from the ArtifactVersion
|
|
1544
|
+
*/
|
|
1545
|
+
omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
|
|
1546
|
+
/**
|
|
1547
|
+
* Choose, which related nodes to fetch as well
|
|
1548
|
+
*/
|
|
1549
|
+
include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
|
|
1550
|
+
};
|