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