@goscribe/server 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/prisma/client.d.ts +224 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +67 -0
- package/dist/generated/prisma/enums.js +66 -0
- package/dist/generated/prisma/internal/class.d.ts +539 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
- package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
- package/dist/generated/prisma/models/ActivityLog.js +1 -0
- package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
- package/dist/generated/prisma/models/Artifact.js +1 -0
- package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
- package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
- package/dist/generated/prisma/models/Channel.d.ts +1257 -0
- package/dist/generated/prisma/models/Channel.js +1 -0
- package/dist/generated/prisma/models/Chat.d.ts +1339 -0
- package/dist/generated/prisma/models/Chat.js +1 -0
- package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
- package/dist/generated/prisma/models/CopilotConversation.js +1 -0
- package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
- package/dist/generated/prisma/models/CopilotMessage.js +1 -0
- package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
- package/dist/generated/prisma/models/FileAsset.js +1 -0
- package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
- package/dist/generated/prisma/models/Flashcard.js +1 -0
- package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
- package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
- package/dist/generated/prisma/models/Folder.d.ts +1685 -0
- package/dist/generated/prisma/models/Folder.js +1 -0
- package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
- package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
- package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
- package/dist/generated/prisma/models/Invoice.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
- package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
- package/dist/generated/prisma/models/Notification.d.ts +1992 -0
- package/dist/generated/prisma/models/Notification.js +1 -0
- package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
- package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
- package/dist/generated/prisma/models/Plan.d.ts +1431 -0
- package/dist/generated/prisma/models/Plan.js +1 -0
- package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
- package/dist/generated/prisma/models/PlanLimit.js +1 -0
- package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
- package/dist/generated/prisma/models/PodcastSegment.js +1 -0
- package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
- package/dist/generated/prisma/models/ResourcePrice.js +1 -0
- package/dist/generated/prisma/models/Role.d.ts +1065 -0
- package/dist/generated/prisma/models/Role.js +1 -0
- package/dist/generated/prisma/models/Session.d.ts +1105 -0
- package/dist/generated/prisma/models/Session.js +1 -0
- package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
- package/dist/generated/prisma/models/StripeEvent.js +1 -0
- package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
- package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
- package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
- package/dist/generated/prisma/models/Subscription.js +1 -0
- package/dist/generated/prisma/models/User.d.ts +7559 -0
- package/dist/generated/prisma/models/User.js +1 -0
- package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
- package/dist/generated/prisma/models/UserCredit.js +1 -0
- package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
- package/dist/generated/prisma/models/VerificationToken.js +1 -0
- package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
- package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
- package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
- package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
- package/dist/generated/prisma/models/Workspace.js +1 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
- package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
- package/dist/generated/prisma/models.d.ts +39 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/src/context.d.ts +27 -0
- package/dist/src/context.js +33 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -0
- package/dist/src/lib/ai/config.d.ts +20 -0
- package/dist/src/lib/ai/config.js +31 -0
- package/dist/src/lib/ai/embedding-client.d.ts +8 -0
- package/dist/src/lib/ai/embedding-client.js +30 -0
- package/dist/src/lib/ai/index.d.ts +48 -0
- package/dist/src/lib/ai/index.js +29 -0
- package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
- package/dist/src/lib/ai/inference-backend/client.js +301 -0
- package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
- package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
- package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
- package/dist/src/lib/ai/inference-backend/types.js +1 -0
- package/dist/src/lib/ai/json-parse.d.ts +2 -0
- package/dist/src/lib/ai/json-parse.js +34 -0
- package/dist/src/lib/ai/llm-client.d.ts +7 -0
- package/dist/src/lib/ai/llm-client.js +36 -0
- package/dist/src/lib/ai/mock.d.ts +2 -0
- package/dist/src/lib/ai/mock.js +10 -0
- package/dist/src/lib/ai/types.d.ts +9 -0
- package/dist/src/lib/ai/types.js +1 -0
- package/dist/src/lib/auth.d.ts +36 -0
- package/dist/src/lib/auth.js +117 -0
- package/dist/src/lib/chunking.d.ts +19 -0
- package/dist/src/lib/chunking.js +47 -0
- package/dist/src/lib/constants.d.ts +13 -0
- package/dist/src/lib/constants.js +12 -0
- package/dist/src/lib/curated-kb-seed.d.ts +12 -0
- package/dist/src/lib/curated-kb-seed.js +155 -0
- package/dist/src/lib/email.d.ts +11 -0
- package/dist/src/lib/email.js +152 -0
- package/dist/src/lib/embeddings.d.ts +2 -0
- package/dist/src/lib/embeddings.js +1 -0
- package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
- package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
- package/dist/src/lib/env.d.ts +41 -0
- package/dist/src/lib/env.js +57 -0
- package/dist/src/lib/errors.d.ts +33 -0
- package/dist/src/lib/errors.js +78 -0
- package/dist/src/lib/file.d.ts +0 -0
- package/dist/src/lib/file.js +1 -0
- package/dist/src/lib/inference.d.ts +1 -0
- package/dist/src/lib/inference.js +1 -0
- package/dist/src/lib/kb-meta.d.ts +8 -0
- package/dist/src/lib/kb-meta.js +77 -0
- package/dist/src/lib/logger.d.ts +62 -0
- package/dist/src/lib/logger.js +364 -0
- package/dist/src/lib/pdf.d.ts +11 -0
- package/dist/src/lib/pdf.js +11 -0
- package/dist/src/lib/prisma.d.ts +3 -0
- package/dist/src/lib/prisma.js +15 -0
- package/dist/src/lib/pusher.d.ts +38 -0
- package/dist/src/lib/pusher.js +170 -0
- package/dist/src/lib/retry.d.ts +15 -0
- package/dist/src/lib/retry.js +37 -0
- package/dist/src/lib/storage.d.ts +11 -0
- package/dist/src/lib/storage.js +71 -0
- package/dist/src/lib/stripe.d.ts +10 -0
- package/dist/src/lib/stripe.js +36 -0
- package/dist/src/lib/validation.d.ts +51 -0
- package/dist/src/lib/validation.js +64 -0
- package/dist/src/lib/workspace-kb.d.ts +5 -0
- package/dist/src/lib/workspace-kb.js +7 -0
- package/dist/src/repositories/artifact.repository.d.ts +64 -0
- package/dist/src/repositories/artifact.repository.js +40 -0
- package/dist/src/repositories/base.repository.d.ts +14 -0
- package/dist/src/repositories/base.repository.js +14 -0
- package/dist/src/repositories/invitation.repository.d.ts +104 -0
- package/dist/src/repositories/invitation.repository.js +44 -0
- package/dist/src/repositories/notification.repository.d.ts +76 -0
- package/dist/src/repositories/notification.repository.js +44 -0
- package/dist/src/repositories/user.repository.d.ts +84 -0
- package/dist/src/repositories/user.repository.js +37 -0
- package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
- package/dist/src/repositories/workspace-member.repository.js +31 -0
- package/dist/src/repositories/workspace.repository.d.ts +101 -0
- package/dist/src/repositories/workspace.repository.js +79 -0
- package/dist/src/routers/_app.d.ts +3464 -0
- package/dist/src/routers/_app.js +36 -0
- package/dist/src/routers/admin.d.ts +358 -0
- package/dist/src/routers/admin.js +105 -0
- package/dist/src/routers/annotations.d.ts +219 -0
- package/dist/src/routers/annotations.js +29 -0
- package/dist/src/routers/artifactVersions.d.ts +65 -0
- package/dist/src/routers/artifactVersions.js +14 -0
- package/dist/src/routers/auth.d.ts +161 -0
- package/dist/src/routers/auth.js +97 -0
- package/dist/src/routers/chat.d.ts +170 -0
- package/dist/src/routers/chat.js +32 -0
- package/dist/src/routers/copilot.d.ts +200 -0
- package/dist/src/routers/copilot.js +52 -0
- package/dist/src/routers/flashcards.d.ts +336 -0
- package/dist/src/routers/flashcards.js +93 -0
- package/dist/src/routers/knowledgeBase.d.ts +421 -0
- package/dist/src/routers/knowledgeBase.js +118 -0
- package/dist/src/routers/members.d.ts +169 -0
- package/dist/src/routers/members.js +47 -0
- package/dist/src/routers/notifications.d.ts +99 -0
- package/dist/src/routers/notifications.js +25 -0
- package/dist/src/routers/payment.d.ts +80 -0
- package/dist/src/routers/payment.js +21 -0
- package/dist/src/routers/podcast.d.ts +287 -0
- package/dist/src/routers/podcast.js +34 -0
- package/dist/src/routers/studyguide.d.ts +36 -0
- package/dist/src/routers/studyguide.js +8 -0
- package/dist/src/routers/worksheets.d.ts +429 -0
- package/dist/src/routers/worksheets.js +139 -0
- package/dist/src/routers/workspace.d.ts +563 -0
- package/dist/src/routers/workspace.js +104 -0
- package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
- package/dist/src/scripts/purge-deleted-users.js +148 -0
- package/dist/src/server.d.ts +1 -0
- package/dist/src/server.js +190 -0
- package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
- package/dist/src/services/activity/activity-human-description.service.js +221 -0
- package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
- package/dist/src/services/activity/activity-log.service.d.ts +87 -0
- package/dist/src/services/activity/activity-log.service.js +276 -0
- package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-log.service.test.js +27 -0
- package/dist/src/services/admin/admin.service.d.ts +270 -0
- package/dist/src/services/admin/admin.service.js +476 -0
- package/dist/src/services/ai/ai-session.service.d.ts +5 -0
- package/dist/src/services/ai/ai-session.service.js +4 -0
- package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
- package/dist/src/services/artifacts/annotation.service.js +154 -0
- package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
- package/dist/src/services/artifacts/artifact-version.service.js +129 -0
- package/dist/src/services/artifacts/chat.service.d.ts +127 -0
- package/dist/src/services/artifacts/chat.service.js +182 -0
- package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
- package/dist/src/services/artifacts/study-guide.service.js +65 -0
- package/dist/src/services/auth/auth.service.d.ts +94 -0
- package/dist/src/services/auth/auth.service.js +368 -0
- package/dist/src/services/base.service.d.ts +14 -0
- package/dist/src/services/base.service.js +14 -0
- package/dist/src/services/billing/payment.service.d.ts +44 -0
- package/dist/src/services/billing/payment.service.js +365 -0
- package/dist/src/services/billing/subscription.service.d.ts +37 -0
- package/dist/src/services/billing/subscription.service.js +654 -0
- package/dist/src/services/billing/usage.service.d.ts +47 -0
- package/dist/src/services/billing/usage.service.js +149 -0
- package/dist/src/services/content/copilot.service.d.ts +113 -0
- package/dist/src/services/content/copilot.service.js +439 -0
- package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
- package/dist/src/services/content/flashcard-progress.service.js +432 -0
- package/dist/src/services/content/flashcard.service.d.ts +184 -0
- package/dist/src/services/content/flashcard.service.js +339 -0
- package/dist/src/services/content/media-analysis.service.d.ts +23 -0
- package/dist/src/services/content/media-analysis.service.js +404 -0
- package/dist/src/services/content/podcast.service.d.ts +267 -0
- package/dist/src/services/content/podcast.service.js +653 -0
- package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
- package/dist/src/services/content/worksheet-content.service.js +84 -0
- package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-content.service.test.js +69 -0
- package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
- package/dist/src/services/content/worksheet-generation.service.js +95 -0
- package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
- package/dist/src/services/content/worksheet.service.d.ts +347 -0
- package/dist/src/services/content/worksheet.service.js +599 -0
- package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
- package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
- package/dist/src/services/members/invitation.service.d.ts +66 -0
- package/dist/src/services/members/invitation.service.js +348 -0
- package/dist/src/services/members/member.service.d.ts +36 -0
- package/dist/src/services/members/member.service.js +193 -0
- package/dist/src/services/notifications/notification.service.d.ts +214 -0
- package/dist/src/services/notifications/notification.service.js +550 -0
- package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
- package/dist/src/services/notifications/notification.service.test.js +87 -0
- package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
- package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
- package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
- package/dist/src/services/workspace/workspace-kb.service.js +184 -0
- package/dist/src/services/workspace/workspace.service.d.ts +263 -0
- package/dist/src/services/workspace/workspace.service.js +401 -0
- package/dist/src/trpc.d.ts +60 -0
- package/dist/src/trpc.js +217 -0
- package/dist/src/types/index.d.ts +126 -0
- package/dist/src/types/index.js +1 -0
- package/package.json +8 -9
- package/prisma/schema.prisma +3 -4
- package/prisma/seed.mjs +5 -2
- package/prisma.config.ts +16 -0
- package/src/lib/prisma.ts +18 -9
- package/src/scripts/purge-deleted-users.ts +1 -3
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,1328 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model PlanLimit
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type PlanLimitModel = runtime.Types.Result.DefaultSelection<Prisma.$PlanLimitPayload>;
|
|
8
|
+
export type AggregatePlanLimit = {
|
|
9
|
+
_count: PlanLimitCountAggregateOutputType | null;
|
|
10
|
+
_avg: PlanLimitAvgAggregateOutputType | null;
|
|
11
|
+
_sum: PlanLimitSumAggregateOutputType | null;
|
|
12
|
+
_min: PlanLimitMinAggregateOutputType | null;
|
|
13
|
+
_max: PlanLimitMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type PlanLimitAvgAggregateOutputType = {
|
|
16
|
+
maxStorageBytes: number | null;
|
|
17
|
+
maxWorksheets: number | null;
|
|
18
|
+
maxFlashcards: number | null;
|
|
19
|
+
maxPodcasts: number | null;
|
|
20
|
+
maxStudyGuides: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type PlanLimitSumAggregateOutputType = {
|
|
23
|
+
maxStorageBytes: bigint | null;
|
|
24
|
+
maxWorksheets: number | null;
|
|
25
|
+
maxFlashcards: number | null;
|
|
26
|
+
maxPodcasts: number | null;
|
|
27
|
+
maxStudyGuides: number | null;
|
|
28
|
+
};
|
|
29
|
+
export type PlanLimitMinAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
planId: string | null;
|
|
32
|
+
maxStorageBytes: bigint | null;
|
|
33
|
+
maxWorksheets: number | null;
|
|
34
|
+
maxFlashcards: number | null;
|
|
35
|
+
maxPodcasts: number | null;
|
|
36
|
+
maxStudyGuides: number | null;
|
|
37
|
+
createdAt: Date | null;
|
|
38
|
+
updatedAt: Date | null;
|
|
39
|
+
};
|
|
40
|
+
export type PlanLimitMaxAggregateOutputType = {
|
|
41
|
+
id: string | null;
|
|
42
|
+
planId: string | null;
|
|
43
|
+
maxStorageBytes: bigint | null;
|
|
44
|
+
maxWorksheets: number | null;
|
|
45
|
+
maxFlashcards: number | null;
|
|
46
|
+
maxPodcasts: number | null;
|
|
47
|
+
maxStudyGuides: number | null;
|
|
48
|
+
createdAt: Date | null;
|
|
49
|
+
updatedAt: Date | null;
|
|
50
|
+
};
|
|
51
|
+
export type PlanLimitCountAggregateOutputType = {
|
|
52
|
+
id: number;
|
|
53
|
+
planId: number;
|
|
54
|
+
maxStorageBytes: number;
|
|
55
|
+
maxWorksheets: number;
|
|
56
|
+
maxFlashcards: number;
|
|
57
|
+
maxPodcasts: number;
|
|
58
|
+
maxStudyGuides: number;
|
|
59
|
+
createdAt: number;
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
_all: number;
|
|
62
|
+
};
|
|
63
|
+
export type PlanLimitAvgAggregateInputType = {
|
|
64
|
+
maxStorageBytes?: true;
|
|
65
|
+
maxWorksheets?: true;
|
|
66
|
+
maxFlashcards?: true;
|
|
67
|
+
maxPodcasts?: true;
|
|
68
|
+
maxStudyGuides?: true;
|
|
69
|
+
};
|
|
70
|
+
export type PlanLimitSumAggregateInputType = {
|
|
71
|
+
maxStorageBytes?: true;
|
|
72
|
+
maxWorksheets?: true;
|
|
73
|
+
maxFlashcards?: true;
|
|
74
|
+
maxPodcasts?: true;
|
|
75
|
+
maxStudyGuides?: true;
|
|
76
|
+
};
|
|
77
|
+
export type PlanLimitMinAggregateInputType = {
|
|
78
|
+
id?: true;
|
|
79
|
+
planId?: true;
|
|
80
|
+
maxStorageBytes?: true;
|
|
81
|
+
maxWorksheets?: true;
|
|
82
|
+
maxFlashcards?: true;
|
|
83
|
+
maxPodcasts?: true;
|
|
84
|
+
maxStudyGuides?: true;
|
|
85
|
+
createdAt?: true;
|
|
86
|
+
updatedAt?: true;
|
|
87
|
+
};
|
|
88
|
+
export type PlanLimitMaxAggregateInputType = {
|
|
89
|
+
id?: true;
|
|
90
|
+
planId?: true;
|
|
91
|
+
maxStorageBytes?: true;
|
|
92
|
+
maxWorksheets?: true;
|
|
93
|
+
maxFlashcards?: true;
|
|
94
|
+
maxPodcasts?: true;
|
|
95
|
+
maxStudyGuides?: true;
|
|
96
|
+
createdAt?: true;
|
|
97
|
+
updatedAt?: true;
|
|
98
|
+
};
|
|
99
|
+
export type PlanLimitCountAggregateInputType = {
|
|
100
|
+
id?: true;
|
|
101
|
+
planId?: true;
|
|
102
|
+
maxStorageBytes?: true;
|
|
103
|
+
maxWorksheets?: true;
|
|
104
|
+
maxFlashcards?: true;
|
|
105
|
+
maxPodcasts?: true;
|
|
106
|
+
maxStudyGuides?: true;
|
|
107
|
+
createdAt?: true;
|
|
108
|
+
updatedAt?: true;
|
|
109
|
+
_all?: true;
|
|
110
|
+
};
|
|
111
|
+
export type PlanLimitAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
112
|
+
/**
|
|
113
|
+
* Filter which PlanLimit to aggregate.
|
|
114
|
+
*/
|
|
115
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
118
|
+
*
|
|
119
|
+
* Determine the order of PlanLimits to fetch.
|
|
120
|
+
*/
|
|
121
|
+
orderBy?: Prisma.PlanLimitOrderByWithRelationInput | Prisma.PlanLimitOrderByWithRelationInput[];
|
|
122
|
+
/**
|
|
123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
124
|
+
*
|
|
125
|
+
* Sets the start position
|
|
126
|
+
*/
|
|
127
|
+
cursor?: Prisma.PlanLimitWhereUniqueInput;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
130
|
+
*
|
|
131
|
+
* Take `±n` PlanLimits from the position of the cursor.
|
|
132
|
+
*/
|
|
133
|
+
take?: number;
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
136
|
+
*
|
|
137
|
+
* Skip the first `n` PlanLimits.
|
|
138
|
+
*/
|
|
139
|
+
skip?: number;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
142
|
+
*
|
|
143
|
+
* Count returned PlanLimits
|
|
144
|
+
**/
|
|
145
|
+
_count?: true | PlanLimitCountAggregateInputType;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
148
|
+
*
|
|
149
|
+
* Select which fields to average
|
|
150
|
+
**/
|
|
151
|
+
_avg?: PlanLimitAvgAggregateInputType;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Select which fields to sum
|
|
156
|
+
**/
|
|
157
|
+
_sum?: PlanLimitSumAggregateInputType;
|
|
158
|
+
/**
|
|
159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
|
+
*
|
|
161
|
+
* Select which fields to find the minimum value
|
|
162
|
+
**/
|
|
163
|
+
_min?: PlanLimitMinAggregateInputType;
|
|
164
|
+
/**
|
|
165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
166
|
+
*
|
|
167
|
+
* Select which fields to find the maximum value
|
|
168
|
+
**/
|
|
169
|
+
_max?: PlanLimitMaxAggregateInputType;
|
|
170
|
+
};
|
|
171
|
+
export type GetPlanLimitAggregateType<T extends PlanLimitAggregateArgs> = {
|
|
172
|
+
[P in keyof T & keyof AggregatePlanLimit]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePlanLimit[P]> : Prisma.GetScalarType<T[P], AggregatePlanLimit[P]>;
|
|
173
|
+
};
|
|
174
|
+
export type PlanLimitGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
175
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
176
|
+
orderBy?: Prisma.PlanLimitOrderByWithAggregationInput | Prisma.PlanLimitOrderByWithAggregationInput[];
|
|
177
|
+
by: Prisma.PlanLimitScalarFieldEnum[] | Prisma.PlanLimitScalarFieldEnum;
|
|
178
|
+
having?: Prisma.PlanLimitScalarWhereWithAggregatesInput;
|
|
179
|
+
take?: number;
|
|
180
|
+
skip?: number;
|
|
181
|
+
_count?: PlanLimitCountAggregateInputType | true;
|
|
182
|
+
_avg?: PlanLimitAvgAggregateInputType;
|
|
183
|
+
_sum?: PlanLimitSumAggregateInputType;
|
|
184
|
+
_min?: PlanLimitMinAggregateInputType;
|
|
185
|
+
_max?: PlanLimitMaxAggregateInputType;
|
|
186
|
+
};
|
|
187
|
+
export type PlanLimitGroupByOutputType = {
|
|
188
|
+
id: string;
|
|
189
|
+
planId: string;
|
|
190
|
+
maxStorageBytes: bigint;
|
|
191
|
+
maxWorksheets: number;
|
|
192
|
+
maxFlashcards: number;
|
|
193
|
+
maxPodcasts: number;
|
|
194
|
+
maxStudyGuides: number;
|
|
195
|
+
createdAt: Date;
|
|
196
|
+
updatedAt: Date;
|
|
197
|
+
_count: PlanLimitCountAggregateOutputType | null;
|
|
198
|
+
_avg: PlanLimitAvgAggregateOutputType | null;
|
|
199
|
+
_sum: PlanLimitSumAggregateOutputType | null;
|
|
200
|
+
_min: PlanLimitMinAggregateOutputType | null;
|
|
201
|
+
_max: PlanLimitMaxAggregateOutputType | null;
|
|
202
|
+
};
|
|
203
|
+
export type GetPlanLimitGroupByPayload<T extends PlanLimitGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PlanLimitGroupByOutputType, T['by']> & {
|
|
204
|
+
[P in ((keyof T) & (keyof PlanLimitGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PlanLimitGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PlanLimitGroupByOutputType[P]>;
|
|
205
|
+
}>>;
|
|
206
|
+
export type PlanLimitWhereInput = {
|
|
207
|
+
AND?: Prisma.PlanLimitWhereInput | Prisma.PlanLimitWhereInput[];
|
|
208
|
+
OR?: Prisma.PlanLimitWhereInput[];
|
|
209
|
+
NOT?: Prisma.PlanLimitWhereInput | Prisma.PlanLimitWhereInput[];
|
|
210
|
+
id?: Prisma.StringFilter<"PlanLimit"> | string;
|
|
211
|
+
planId?: Prisma.StringFilter<"PlanLimit"> | string;
|
|
212
|
+
maxStorageBytes?: Prisma.BigIntFilter<"PlanLimit"> | bigint | number;
|
|
213
|
+
maxWorksheets?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
214
|
+
maxFlashcards?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
215
|
+
maxPodcasts?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
216
|
+
maxStudyGuides?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
217
|
+
createdAt?: Prisma.DateTimeFilter<"PlanLimit"> | Date | string;
|
|
218
|
+
updatedAt?: Prisma.DateTimeFilter<"PlanLimit"> | Date | string;
|
|
219
|
+
plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>;
|
|
220
|
+
};
|
|
221
|
+
export type PlanLimitOrderByWithRelationInput = {
|
|
222
|
+
id?: Prisma.SortOrder;
|
|
223
|
+
planId?: Prisma.SortOrder;
|
|
224
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
225
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
226
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
227
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
228
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
229
|
+
createdAt?: Prisma.SortOrder;
|
|
230
|
+
updatedAt?: Prisma.SortOrder;
|
|
231
|
+
plan?: Prisma.PlanOrderByWithRelationInput;
|
|
232
|
+
};
|
|
233
|
+
export type PlanLimitWhereUniqueInput = Prisma.AtLeast<{
|
|
234
|
+
id?: string;
|
|
235
|
+
planId?: string;
|
|
236
|
+
AND?: Prisma.PlanLimitWhereInput | Prisma.PlanLimitWhereInput[];
|
|
237
|
+
OR?: Prisma.PlanLimitWhereInput[];
|
|
238
|
+
NOT?: Prisma.PlanLimitWhereInput | Prisma.PlanLimitWhereInput[];
|
|
239
|
+
maxStorageBytes?: Prisma.BigIntFilter<"PlanLimit"> | bigint | number;
|
|
240
|
+
maxWorksheets?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
241
|
+
maxFlashcards?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
242
|
+
maxPodcasts?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
243
|
+
maxStudyGuides?: Prisma.IntFilter<"PlanLimit"> | number;
|
|
244
|
+
createdAt?: Prisma.DateTimeFilter<"PlanLimit"> | Date | string;
|
|
245
|
+
updatedAt?: Prisma.DateTimeFilter<"PlanLimit"> | Date | string;
|
|
246
|
+
plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>;
|
|
247
|
+
}, "id" | "planId">;
|
|
248
|
+
export type PlanLimitOrderByWithAggregationInput = {
|
|
249
|
+
id?: Prisma.SortOrder;
|
|
250
|
+
planId?: Prisma.SortOrder;
|
|
251
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
252
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
253
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
254
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
255
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
256
|
+
createdAt?: Prisma.SortOrder;
|
|
257
|
+
updatedAt?: Prisma.SortOrder;
|
|
258
|
+
_count?: Prisma.PlanLimitCountOrderByAggregateInput;
|
|
259
|
+
_avg?: Prisma.PlanLimitAvgOrderByAggregateInput;
|
|
260
|
+
_max?: Prisma.PlanLimitMaxOrderByAggregateInput;
|
|
261
|
+
_min?: Prisma.PlanLimitMinOrderByAggregateInput;
|
|
262
|
+
_sum?: Prisma.PlanLimitSumOrderByAggregateInput;
|
|
263
|
+
};
|
|
264
|
+
export type PlanLimitScalarWhereWithAggregatesInput = {
|
|
265
|
+
AND?: Prisma.PlanLimitScalarWhereWithAggregatesInput | Prisma.PlanLimitScalarWhereWithAggregatesInput[];
|
|
266
|
+
OR?: Prisma.PlanLimitScalarWhereWithAggregatesInput[];
|
|
267
|
+
NOT?: Prisma.PlanLimitScalarWhereWithAggregatesInput | Prisma.PlanLimitScalarWhereWithAggregatesInput[];
|
|
268
|
+
id?: Prisma.StringWithAggregatesFilter<"PlanLimit"> | string;
|
|
269
|
+
planId?: Prisma.StringWithAggregatesFilter<"PlanLimit"> | string;
|
|
270
|
+
maxStorageBytes?: Prisma.BigIntWithAggregatesFilter<"PlanLimit"> | bigint | number;
|
|
271
|
+
maxWorksheets?: Prisma.IntWithAggregatesFilter<"PlanLimit"> | number;
|
|
272
|
+
maxFlashcards?: Prisma.IntWithAggregatesFilter<"PlanLimit"> | number;
|
|
273
|
+
maxPodcasts?: Prisma.IntWithAggregatesFilter<"PlanLimit"> | number;
|
|
274
|
+
maxStudyGuides?: Prisma.IntWithAggregatesFilter<"PlanLimit"> | number;
|
|
275
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PlanLimit"> | Date | string;
|
|
276
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PlanLimit"> | Date | string;
|
|
277
|
+
};
|
|
278
|
+
export type PlanLimitCreateInput = {
|
|
279
|
+
id?: string;
|
|
280
|
+
maxStorageBytes?: bigint | number;
|
|
281
|
+
maxWorksheets?: number;
|
|
282
|
+
maxFlashcards?: number;
|
|
283
|
+
maxPodcasts?: number;
|
|
284
|
+
maxStudyGuides?: number;
|
|
285
|
+
createdAt?: Date | string;
|
|
286
|
+
updatedAt?: Date | string;
|
|
287
|
+
plan: Prisma.PlanCreateNestedOneWithoutLimitInput;
|
|
288
|
+
};
|
|
289
|
+
export type PlanLimitUncheckedCreateInput = {
|
|
290
|
+
id?: string;
|
|
291
|
+
planId: string;
|
|
292
|
+
maxStorageBytes?: bigint | number;
|
|
293
|
+
maxWorksheets?: number;
|
|
294
|
+
maxFlashcards?: number;
|
|
295
|
+
maxPodcasts?: number;
|
|
296
|
+
maxStudyGuides?: number;
|
|
297
|
+
createdAt?: Date | string;
|
|
298
|
+
updatedAt?: Date | string;
|
|
299
|
+
};
|
|
300
|
+
export type PlanLimitUpdateInput = {
|
|
301
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
302
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
303
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
304
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
305
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
306
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
307
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
308
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
309
|
+
plan?: Prisma.PlanUpdateOneRequiredWithoutLimitNestedInput;
|
|
310
|
+
};
|
|
311
|
+
export type PlanLimitUncheckedUpdateInput = {
|
|
312
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
313
|
+
planId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
314
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
315
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
316
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
317
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
318
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
319
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
320
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
321
|
+
};
|
|
322
|
+
export type PlanLimitCreateManyInput = {
|
|
323
|
+
id?: string;
|
|
324
|
+
planId: string;
|
|
325
|
+
maxStorageBytes?: bigint | number;
|
|
326
|
+
maxWorksheets?: number;
|
|
327
|
+
maxFlashcards?: number;
|
|
328
|
+
maxPodcasts?: number;
|
|
329
|
+
maxStudyGuides?: number;
|
|
330
|
+
createdAt?: Date | string;
|
|
331
|
+
updatedAt?: Date | string;
|
|
332
|
+
};
|
|
333
|
+
export type PlanLimitUpdateManyMutationInput = {
|
|
334
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
335
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
336
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
337
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
338
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
339
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
340
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
341
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
342
|
+
};
|
|
343
|
+
export type PlanLimitUncheckedUpdateManyInput = {
|
|
344
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
|
+
planId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
346
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
347
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
348
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
349
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
350
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
351
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
352
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
353
|
+
};
|
|
354
|
+
export type PlanLimitNullableScalarRelationFilter = {
|
|
355
|
+
is?: Prisma.PlanLimitWhereInput | null;
|
|
356
|
+
isNot?: Prisma.PlanLimitWhereInput | null;
|
|
357
|
+
};
|
|
358
|
+
export type PlanLimitCountOrderByAggregateInput = {
|
|
359
|
+
id?: Prisma.SortOrder;
|
|
360
|
+
planId?: Prisma.SortOrder;
|
|
361
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
362
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
363
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
364
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
365
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
366
|
+
createdAt?: Prisma.SortOrder;
|
|
367
|
+
updatedAt?: Prisma.SortOrder;
|
|
368
|
+
};
|
|
369
|
+
export type PlanLimitAvgOrderByAggregateInput = {
|
|
370
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
371
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
372
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
373
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
374
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
375
|
+
};
|
|
376
|
+
export type PlanLimitMaxOrderByAggregateInput = {
|
|
377
|
+
id?: Prisma.SortOrder;
|
|
378
|
+
planId?: Prisma.SortOrder;
|
|
379
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
380
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
381
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
382
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
383
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
384
|
+
createdAt?: Prisma.SortOrder;
|
|
385
|
+
updatedAt?: Prisma.SortOrder;
|
|
386
|
+
};
|
|
387
|
+
export type PlanLimitMinOrderByAggregateInput = {
|
|
388
|
+
id?: Prisma.SortOrder;
|
|
389
|
+
planId?: Prisma.SortOrder;
|
|
390
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
391
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
392
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
393
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
394
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
395
|
+
createdAt?: Prisma.SortOrder;
|
|
396
|
+
updatedAt?: Prisma.SortOrder;
|
|
397
|
+
};
|
|
398
|
+
export type PlanLimitSumOrderByAggregateInput = {
|
|
399
|
+
maxStorageBytes?: Prisma.SortOrder;
|
|
400
|
+
maxWorksheets?: Prisma.SortOrder;
|
|
401
|
+
maxFlashcards?: Prisma.SortOrder;
|
|
402
|
+
maxPodcasts?: Prisma.SortOrder;
|
|
403
|
+
maxStudyGuides?: Prisma.SortOrder;
|
|
404
|
+
};
|
|
405
|
+
export type PlanLimitCreateNestedOneWithoutPlanInput = {
|
|
406
|
+
create?: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
407
|
+
connectOrCreate?: Prisma.PlanLimitCreateOrConnectWithoutPlanInput;
|
|
408
|
+
connect?: Prisma.PlanLimitWhereUniqueInput;
|
|
409
|
+
};
|
|
410
|
+
export type PlanLimitUncheckedCreateNestedOneWithoutPlanInput = {
|
|
411
|
+
create?: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
412
|
+
connectOrCreate?: Prisma.PlanLimitCreateOrConnectWithoutPlanInput;
|
|
413
|
+
connect?: Prisma.PlanLimitWhereUniqueInput;
|
|
414
|
+
};
|
|
415
|
+
export type PlanLimitUpdateOneWithoutPlanNestedInput = {
|
|
416
|
+
create?: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
417
|
+
connectOrCreate?: Prisma.PlanLimitCreateOrConnectWithoutPlanInput;
|
|
418
|
+
upsert?: Prisma.PlanLimitUpsertWithoutPlanInput;
|
|
419
|
+
disconnect?: Prisma.PlanLimitWhereInput | boolean;
|
|
420
|
+
delete?: Prisma.PlanLimitWhereInput | boolean;
|
|
421
|
+
connect?: Prisma.PlanLimitWhereUniqueInput;
|
|
422
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlanLimitUpdateToOneWithWhereWithoutPlanInput, Prisma.PlanLimitUpdateWithoutPlanInput>, Prisma.PlanLimitUncheckedUpdateWithoutPlanInput>;
|
|
423
|
+
};
|
|
424
|
+
export type PlanLimitUncheckedUpdateOneWithoutPlanNestedInput = {
|
|
425
|
+
create?: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
426
|
+
connectOrCreate?: Prisma.PlanLimitCreateOrConnectWithoutPlanInput;
|
|
427
|
+
upsert?: Prisma.PlanLimitUpsertWithoutPlanInput;
|
|
428
|
+
disconnect?: Prisma.PlanLimitWhereInput | boolean;
|
|
429
|
+
delete?: Prisma.PlanLimitWhereInput | boolean;
|
|
430
|
+
connect?: Prisma.PlanLimitWhereUniqueInput;
|
|
431
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlanLimitUpdateToOneWithWhereWithoutPlanInput, Prisma.PlanLimitUpdateWithoutPlanInput>, Prisma.PlanLimitUncheckedUpdateWithoutPlanInput>;
|
|
432
|
+
};
|
|
433
|
+
export type BigIntFieldUpdateOperationsInput = {
|
|
434
|
+
set?: bigint | number;
|
|
435
|
+
increment?: bigint | number;
|
|
436
|
+
decrement?: bigint | number;
|
|
437
|
+
multiply?: bigint | number;
|
|
438
|
+
divide?: bigint | number;
|
|
439
|
+
};
|
|
440
|
+
export type PlanLimitCreateWithoutPlanInput = {
|
|
441
|
+
id?: string;
|
|
442
|
+
maxStorageBytes?: bigint | number;
|
|
443
|
+
maxWorksheets?: number;
|
|
444
|
+
maxFlashcards?: number;
|
|
445
|
+
maxPodcasts?: number;
|
|
446
|
+
maxStudyGuides?: number;
|
|
447
|
+
createdAt?: Date | string;
|
|
448
|
+
updatedAt?: Date | string;
|
|
449
|
+
};
|
|
450
|
+
export type PlanLimitUncheckedCreateWithoutPlanInput = {
|
|
451
|
+
id?: string;
|
|
452
|
+
maxStorageBytes?: bigint | number;
|
|
453
|
+
maxWorksheets?: number;
|
|
454
|
+
maxFlashcards?: number;
|
|
455
|
+
maxPodcasts?: number;
|
|
456
|
+
maxStudyGuides?: number;
|
|
457
|
+
createdAt?: Date | string;
|
|
458
|
+
updatedAt?: Date | string;
|
|
459
|
+
};
|
|
460
|
+
export type PlanLimitCreateOrConnectWithoutPlanInput = {
|
|
461
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
462
|
+
create: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
463
|
+
};
|
|
464
|
+
export type PlanLimitUpsertWithoutPlanInput = {
|
|
465
|
+
update: Prisma.XOR<Prisma.PlanLimitUpdateWithoutPlanInput, Prisma.PlanLimitUncheckedUpdateWithoutPlanInput>;
|
|
466
|
+
create: Prisma.XOR<Prisma.PlanLimitCreateWithoutPlanInput, Prisma.PlanLimitUncheckedCreateWithoutPlanInput>;
|
|
467
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
468
|
+
};
|
|
469
|
+
export type PlanLimitUpdateToOneWithWhereWithoutPlanInput = {
|
|
470
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
471
|
+
data: Prisma.XOR<Prisma.PlanLimitUpdateWithoutPlanInput, Prisma.PlanLimitUncheckedUpdateWithoutPlanInput>;
|
|
472
|
+
};
|
|
473
|
+
export type PlanLimitUpdateWithoutPlanInput = {
|
|
474
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
475
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
476
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
477
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
478
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
479
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
480
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
481
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
482
|
+
};
|
|
483
|
+
export type PlanLimitUncheckedUpdateWithoutPlanInput = {
|
|
484
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
485
|
+
maxStorageBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
486
|
+
maxWorksheets?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
487
|
+
maxFlashcards?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
488
|
+
maxPodcasts?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
489
|
+
maxStudyGuides?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
490
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
491
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
492
|
+
};
|
|
493
|
+
export type PlanLimitSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
494
|
+
id?: boolean;
|
|
495
|
+
planId?: boolean;
|
|
496
|
+
maxStorageBytes?: boolean;
|
|
497
|
+
maxWorksheets?: boolean;
|
|
498
|
+
maxFlashcards?: boolean;
|
|
499
|
+
maxPodcasts?: boolean;
|
|
500
|
+
maxStudyGuides?: boolean;
|
|
501
|
+
createdAt?: boolean;
|
|
502
|
+
updatedAt?: boolean;
|
|
503
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
504
|
+
}, ExtArgs["result"]["planLimit"]>;
|
|
505
|
+
export type PlanLimitSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
506
|
+
id?: boolean;
|
|
507
|
+
planId?: boolean;
|
|
508
|
+
maxStorageBytes?: boolean;
|
|
509
|
+
maxWorksheets?: boolean;
|
|
510
|
+
maxFlashcards?: boolean;
|
|
511
|
+
maxPodcasts?: boolean;
|
|
512
|
+
maxStudyGuides?: boolean;
|
|
513
|
+
createdAt?: boolean;
|
|
514
|
+
updatedAt?: boolean;
|
|
515
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
516
|
+
}, ExtArgs["result"]["planLimit"]>;
|
|
517
|
+
export type PlanLimitSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
518
|
+
id?: boolean;
|
|
519
|
+
planId?: boolean;
|
|
520
|
+
maxStorageBytes?: boolean;
|
|
521
|
+
maxWorksheets?: boolean;
|
|
522
|
+
maxFlashcards?: boolean;
|
|
523
|
+
maxPodcasts?: boolean;
|
|
524
|
+
maxStudyGuides?: boolean;
|
|
525
|
+
createdAt?: boolean;
|
|
526
|
+
updatedAt?: boolean;
|
|
527
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
528
|
+
}, ExtArgs["result"]["planLimit"]>;
|
|
529
|
+
export type PlanLimitSelectScalar = {
|
|
530
|
+
id?: boolean;
|
|
531
|
+
planId?: boolean;
|
|
532
|
+
maxStorageBytes?: boolean;
|
|
533
|
+
maxWorksheets?: boolean;
|
|
534
|
+
maxFlashcards?: boolean;
|
|
535
|
+
maxPodcasts?: boolean;
|
|
536
|
+
maxStudyGuides?: boolean;
|
|
537
|
+
createdAt?: boolean;
|
|
538
|
+
updatedAt?: boolean;
|
|
539
|
+
};
|
|
540
|
+
export type PlanLimitOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "planId" | "maxStorageBytes" | "maxWorksheets" | "maxFlashcards" | "maxPodcasts" | "maxStudyGuides" | "createdAt" | "updatedAt", ExtArgs["result"]["planLimit"]>;
|
|
541
|
+
export type PlanLimitInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
542
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
543
|
+
};
|
|
544
|
+
export type PlanLimitIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
545
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
546
|
+
};
|
|
547
|
+
export type PlanLimitIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
548
|
+
plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>;
|
|
549
|
+
};
|
|
550
|
+
export type $PlanLimitPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
551
|
+
name: "PlanLimit";
|
|
552
|
+
objects: {
|
|
553
|
+
plan: Prisma.$PlanPayload<ExtArgs>;
|
|
554
|
+
};
|
|
555
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
556
|
+
id: string;
|
|
557
|
+
planId: string;
|
|
558
|
+
maxStorageBytes: bigint;
|
|
559
|
+
maxWorksheets: number;
|
|
560
|
+
maxFlashcards: number;
|
|
561
|
+
maxPodcasts: number;
|
|
562
|
+
maxStudyGuides: number;
|
|
563
|
+
createdAt: Date;
|
|
564
|
+
updatedAt: Date;
|
|
565
|
+
}, ExtArgs["result"]["planLimit"]>;
|
|
566
|
+
composites: {};
|
|
567
|
+
};
|
|
568
|
+
export type PlanLimitGetPayload<S extends boolean | null | undefined | PlanLimitDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload, S>;
|
|
569
|
+
export type PlanLimitCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PlanLimitFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
570
|
+
select?: PlanLimitCountAggregateInputType | true;
|
|
571
|
+
};
|
|
572
|
+
export interface PlanLimitDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
573
|
+
[K: symbol]: {
|
|
574
|
+
types: Prisma.TypeMap<ExtArgs>['model']['PlanLimit'];
|
|
575
|
+
meta: {
|
|
576
|
+
name: 'PlanLimit';
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Find zero or one PlanLimit that matches the filter.
|
|
581
|
+
* @param {PlanLimitFindUniqueArgs} args - Arguments to find a PlanLimit
|
|
582
|
+
* @example
|
|
583
|
+
* // Get one PlanLimit
|
|
584
|
+
* const planLimit = await prisma.planLimit.findUnique({
|
|
585
|
+
* where: {
|
|
586
|
+
* // ... provide filter here
|
|
587
|
+
* }
|
|
588
|
+
* })
|
|
589
|
+
*/
|
|
590
|
+
findUnique<T extends PlanLimitFindUniqueArgs>(args: Prisma.SelectSubset<T, PlanLimitFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
591
|
+
/**
|
|
592
|
+
* Find one PlanLimit that matches the filter or throw an error with `error.code='P2025'`
|
|
593
|
+
* if no matches were found.
|
|
594
|
+
* @param {PlanLimitFindUniqueOrThrowArgs} args - Arguments to find a PlanLimit
|
|
595
|
+
* @example
|
|
596
|
+
* // Get one PlanLimit
|
|
597
|
+
* const planLimit = await prisma.planLimit.findUniqueOrThrow({
|
|
598
|
+
* where: {
|
|
599
|
+
* // ... provide filter here
|
|
600
|
+
* }
|
|
601
|
+
* })
|
|
602
|
+
*/
|
|
603
|
+
findUniqueOrThrow<T extends PlanLimitFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PlanLimitFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
604
|
+
/**
|
|
605
|
+
* Find the first PlanLimit that matches the filter.
|
|
606
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
607
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
608
|
+
* @param {PlanLimitFindFirstArgs} args - Arguments to find a PlanLimit
|
|
609
|
+
* @example
|
|
610
|
+
* // Get one PlanLimit
|
|
611
|
+
* const planLimit = await prisma.planLimit.findFirst({
|
|
612
|
+
* where: {
|
|
613
|
+
* // ... provide filter here
|
|
614
|
+
* }
|
|
615
|
+
* })
|
|
616
|
+
*/
|
|
617
|
+
findFirst<T extends PlanLimitFindFirstArgs>(args?: Prisma.SelectSubset<T, PlanLimitFindFirstArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
618
|
+
/**
|
|
619
|
+
* Find the first PlanLimit that matches the filter or
|
|
620
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
621
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
622
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
623
|
+
* @param {PlanLimitFindFirstOrThrowArgs} args - Arguments to find a PlanLimit
|
|
624
|
+
* @example
|
|
625
|
+
* // Get one PlanLimit
|
|
626
|
+
* const planLimit = await prisma.planLimit.findFirstOrThrow({
|
|
627
|
+
* where: {
|
|
628
|
+
* // ... provide filter here
|
|
629
|
+
* }
|
|
630
|
+
* })
|
|
631
|
+
*/
|
|
632
|
+
findFirstOrThrow<T extends PlanLimitFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PlanLimitFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
633
|
+
/**
|
|
634
|
+
* Find zero or more PlanLimits that matches the filter.
|
|
635
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
636
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
637
|
+
* @param {PlanLimitFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
638
|
+
* @example
|
|
639
|
+
* // Get all PlanLimits
|
|
640
|
+
* const planLimits = await prisma.planLimit.findMany()
|
|
641
|
+
*
|
|
642
|
+
* // Get first 10 PlanLimits
|
|
643
|
+
* const planLimits = await prisma.planLimit.findMany({ take: 10 })
|
|
644
|
+
*
|
|
645
|
+
* // Only select the `id`
|
|
646
|
+
* const planLimitWithIdOnly = await prisma.planLimit.findMany({ select: { id: true } })
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
findMany<T extends PlanLimitFindManyArgs>(args?: Prisma.SelectSubset<T, PlanLimitFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
650
|
+
/**
|
|
651
|
+
* Create a PlanLimit.
|
|
652
|
+
* @param {PlanLimitCreateArgs} args - Arguments to create a PlanLimit.
|
|
653
|
+
* @example
|
|
654
|
+
* // Create one PlanLimit
|
|
655
|
+
* const PlanLimit = await prisma.planLimit.create({
|
|
656
|
+
* data: {
|
|
657
|
+
* // ... data to create a PlanLimit
|
|
658
|
+
* }
|
|
659
|
+
* })
|
|
660
|
+
*
|
|
661
|
+
*/
|
|
662
|
+
create<T extends PlanLimitCreateArgs>(args: Prisma.SelectSubset<T, PlanLimitCreateArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
663
|
+
/**
|
|
664
|
+
* Create many PlanLimits.
|
|
665
|
+
* @param {PlanLimitCreateManyArgs} args - Arguments to create many PlanLimits.
|
|
666
|
+
* @example
|
|
667
|
+
* // Create many PlanLimits
|
|
668
|
+
* const planLimit = await prisma.planLimit.createMany({
|
|
669
|
+
* data: [
|
|
670
|
+
* // ... provide data here
|
|
671
|
+
* ]
|
|
672
|
+
* })
|
|
673
|
+
*
|
|
674
|
+
*/
|
|
675
|
+
createMany<T extends PlanLimitCreateManyArgs>(args?: Prisma.SelectSubset<T, PlanLimitCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
676
|
+
/**
|
|
677
|
+
* Create many PlanLimits and returns the data saved in the database.
|
|
678
|
+
* @param {PlanLimitCreateManyAndReturnArgs} args - Arguments to create many PlanLimits.
|
|
679
|
+
* @example
|
|
680
|
+
* // Create many PlanLimits
|
|
681
|
+
* const planLimit = await prisma.planLimit.createManyAndReturn({
|
|
682
|
+
* data: [
|
|
683
|
+
* // ... provide data here
|
|
684
|
+
* ]
|
|
685
|
+
* })
|
|
686
|
+
*
|
|
687
|
+
* // Create many PlanLimits and only return the `id`
|
|
688
|
+
* const planLimitWithIdOnly = await prisma.planLimit.createManyAndReturn({
|
|
689
|
+
* select: { id: true },
|
|
690
|
+
* data: [
|
|
691
|
+
* // ... provide data here
|
|
692
|
+
* ]
|
|
693
|
+
* })
|
|
694
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
695
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
698
|
+
createManyAndReturn<T extends PlanLimitCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PlanLimitCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
699
|
+
/**
|
|
700
|
+
* Delete a PlanLimit.
|
|
701
|
+
* @param {PlanLimitDeleteArgs} args - Arguments to delete one PlanLimit.
|
|
702
|
+
* @example
|
|
703
|
+
* // Delete one PlanLimit
|
|
704
|
+
* const PlanLimit = await prisma.planLimit.delete({
|
|
705
|
+
* where: {
|
|
706
|
+
* // ... filter to delete one PlanLimit
|
|
707
|
+
* }
|
|
708
|
+
* })
|
|
709
|
+
*
|
|
710
|
+
*/
|
|
711
|
+
delete<T extends PlanLimitDeleteArgs>(args: Prisma.SelectSubset<T, PlanLimitDeleteArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
712
|
+
/**
|
|
713
|
+
* Update one PlanLimit.
|
|
714
|
+
* @param {PlanLimitUpdateArgs} args - Arguments to update one PlanLimit.
|
|
715
|
+
* @example
|
|
716
|
+
* // Update one PlanLimit
|
|
717
|
+
* const planLimit = await prisma.planLimit.update({
|
|
718
|
+
* where: {
|
|
719
|
+
* // ... provide filter here
|
|
720
|
+
* },
|
|
721
|
+
* data: {
|
|
722
|
+
* // ... provide data here
|
|
723
|
+
* }
|
|
724
|
+
* })
|
|
725
|
+
*
|
|
726
|
+
*/
|
|
727
|
+
update<T extends PlanLimitUpdateArgs>(args: Prisma.SelectSubset<T, PlanLimitUpdateArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
728
|
+
/**
|
|
729
|
+
* Delete zero or more PlanLimits.
|
|
730
|
+
* @param {PlanLimitDeleteManyArgs} args - Arguments to filter PlanLimits to delete.
|
|
731
|
+
* @example
|
|
732
|
+
* // Delete a few PlanLimits
|
|
733
|
+
* const { count } = await prisma.planLimit.deleteMany({
|
|
734
|
+
* where: {
|
|
735
|
+
* // ... provide filter here
|
|
736
|
+
* }
|
|
737
|
+
* })
|
|
738
|
+
*
|
|
739
|
+
*/
|
|
740
|
+
deleteMany<T extends PlanLimitDeleteManyArgs>(args?: Prisma.SelectSubset<T, PlanLimitDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
741
|
+
/**
|
|
742
|
+
* Update zero or more PlanLimits.
|
|
743
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
744
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
745
|
+
* @param {PlanLimitUpdateManyArgs} args - Arguments to update one or more rows.
|
|
746
|
+
* @example
|
|
747
|
+
* // Update many PlanLimits
|
|
748
|
+
* const planLimit = await prisma.planLimit.updateMany({
|
|
749
|
+
* where: {
|
|
750
|
+
* // ... provide filter here
|
|
751
|
+
* },
|
|
752
|
+
* data: {
|
|
753
|
+
* // ... provide data here
|
|
754
|
+
* }
|
|
755
|
+
* })
|
|
756
|
+
*
|
|
757
|
+
*/
|
|
758
|
+
updateMany<T extends PlanLimitUpdateManyArgs>(args: Prisma.SelectSubset<T, PlanLimitUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
759
|
+
/**
|
|
760
|
+
* Update zero or more PlanLimits and returns the data updated in the database.
|
|
761
|
+
* @param {PlanLimitUpdateManyAndReturnArgs} args - Arguments to update many PlanLimits.
|
|
762
|
+
* @example
|
|
763
|
+
* // Update many PlanLimits
|
|
764
|
+
* const planLimit = await prisma.planLimit.updateManyAndReturn({
|
|
765
|
+
* where: {
|
|
766
|
+
* // ... provide filter here
|
|
767
|
+
* },
|
|
768
|
+
* data: [
|
|
769
|
+
* // ... provide data here
|
|
770
|
+
* ]
|
|
771
|
+
* })
|
|
772
|
+
*
|
|
773
|
+
* // Update zero or more PlanLimits and only return the `id`
|
|
774
|
+
* const planLimitWithIdOnly = await prisma.planLimit.updateManyAndReturn({
|
|
775
|
+
* select: { id: true },
|
|
776
|
+
* where: {
|
|
777
|
+
* // ... provide filter here
|
|
778
|
+
* },
|
|
779
|
+
* data: [
|
|
780
|
+
* // ... provide data here
|
|
781
|
+
* ]
|
|
782
|
+
* })
|
|
783
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
784
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
updateManyAndReturn<T extends PlanLimitUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PlanLimitUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
788
|
+
/**
|
|
789
|
+
* Create or update one PlanLimit.
|
|
790
|
+
* @param {PlanLimitUpsertArgs} args - Arguments to update or create a PlanLimit.
|
|
791
|
+
* @example
|
|
792
|
+
* // Update or create a PlanLimit
|
|
793
|
+
* const planLimit = await prisma.planLimit.upsert({
|
|
794
|
+
* create: {
|
|
795
|
+
* // ... data to create a PlanLimit
|
|
796
|
+
* },
|
|
797
|
+
* update: {
|
|
798
|
+
* // ... in case it already exists, update
|
|
799
|
+
* },
|
|
800
|
+
* where: {
|
|
801
|
+
* // ... the filter for the PlanLimit we want to update
|
|
802
|
+
* }
|
|
803
|
+
* })
|
|
804
|
+
*/
|
|
805
|
+
upsert<T extends PlanLimitUpsertArgs>(args: Prisma.SelectSubset<T, PlanLimitUpsertArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
806
|
+
/**
|
|
807
|
+
* Count the number of PlanLimits.
|
|
808
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
809
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
810
|
+
* @param {PlanLimitCountArgs} args - Arguments to filter PlanLimits to count.
|
|
811
|
+
* @example
|
|
812
|
+
* // Count the number of PlanLimits
|
|
813
|
+
* const count = await prisma.planLimit.count({
|
|
814
|
+
* where: {
|
|
815
|
+
* // ... the filter for the PlanLimits we want to count
|
|
816
|
+
* }
|
|
817
|
+
* })
|
|
818
|
+
**/
|
|
819
|
+
count<T extends PlanLimitCountArgs>(args?: Prisma.Subset<T, PlanLimitCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PlanLimitCountAggregateOutputType> : number>;
|
|
820
|
+
/**
|
|
821
|
+
* Allows you to perform aggregations operations on a PlanLimit.
|
|
822
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
823
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
824
|
+
* @param {PlanLimitAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
825
|
+
* @example
|
|
826
|
+
* // Ordered by age ascending
|
|
827
|
+
* // Where email contains prisma.io
|
|
828
|
+
* // Limited to the 10 users
|
|
829
|
+
* const aggregations = await prisma.user.aggregate({
|
|
830
|
+
* _avg: {
|
|
831
|
+
* age: true,
|
|
832
|
+
* },
|
|
833
|
+
* where: {
|
|
834
|
+
* email: {
|
|
835
|
+
* contains: "prisma.io",
|
|
836
|
+
* },
|
|
837
|
+
* },
|
|
838
|
+
* orderBy: {
|
|
839
|
+
* age: "asc",
|
|
840
|
+
* },
|
|
841
|
+
* take: 10,
|
|
842
|
+
* })
|
|
843
|
+
**/
|
|
844
|
+
aggregate<T extends PlanLimitAggregateArgs>(args: Prisma.Subset<T, PlanLimitAggregateArgs>): Prisma.PrismaPromise<GetPlanLimitAggregateType<T>>;
|
|
845
|
+
/**
|
|
846
|
+
* Group by PlanLimit.
|
|
847
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
848
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
849
|
+
* @param {PlanLimitGroupByArgs} args - Group by arguments.
|
|
850
|
+
* @example
|
|
851
|
+
* // Group by city, order by createdAt, get count
|
|
852
|
+
* const result = await prisma.user.groupBy({
|
|
853
|
+
* by: ['city', 'createdAt'],
|
|
854
|
+
* orderBy: {
|
|
855
|
+
* createdAt: true
|
|
856
|
+
* },
|
|
857
|
+
* _count: {
|
|
858
|
+
* _all: true
|
|
859
|
+
* },
|
|
860
|
+
* })
|
|
861
|
+
*
|
|
862
|
+
**/
|
|
863
|
+
groupBy<T extends PlanLimitGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
864
|
+
orderBy: PlanLimitGroupByArgs['orderBy'];
|
|
865
|
+
} : {
|
|
866
|
+
orderBy?: PlanLimitGroupByArgs['orderBy'];
|
|
867
|
+
}, 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 ? {
|
|
868
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
869
|
+
Error,
|
|
870
|
+
'Field ',
|
|
871
|
+
P,
|
|
872
|
+
` in "having" needs to be provided in "by"`
|
|
873
|
+
];
|
|
874
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
875
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
876
|
+
}[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 ? {} : {
|
|
877
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
878
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
879
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
880
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PlanLimitGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPlanLimitGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
881
|
+
/**
|
|
882
|
+
* Fields of the PlanLimit model
|
|
883
|
+
*/
|
|
884
|
+
readonly fields: PlanLimitFieldRefs;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* The delegate class that acts as a "Promise-like" for PlanLimit.
|
|
888
|
+
* Why is this prefixed with `Prisma__`?
|
|
889
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
890
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
891
|
+
*/
|
|
892
|
+
export interface Prisma__PlanLimitClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
893
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
894
|
+
plan<T extends Prisma.PlanDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PlanDefaultArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
895
|
+
/**
|
|
896
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
897
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
898
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
899
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
900
|
+
*/
|
|
901
|
+
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>;
|
|
902
|
+
/**
|
|
903
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
904
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
905
|
+
* @returns A Promise for the completion of the callback.
|
|
906
|
+
*/
|
|
907
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
908
|
+
/**
|
|
909
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
910
|
+
* resolved value cannot be modified from the callback.
|
|
911
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
912
|
+
* @returns A Promise for the completion of the callback.
|
|
913
|
+
*/
|
|
914
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Fields of the PlanLimit model
|
|
918
|
+
*/
|
|
919
|
+
export interface PlanLimitFieldRefs {
|
|
920
|
+
readonly id: Prisma.FieldRef<"PlanLimit", 'String'>;
|
|
921
|
+
readonly planId: Prisma.FieldRef<"PlanLimit", 'String'>;
|
|
922
|
+
readonly maxStorageBytes: Prisma.FieldRef<"PlanLimit", 'BigInt'>;
|
|
923
|
+
readonly maxWorksheets: Prisma.FieldRef<"PlanLimit", 'Int'>;
|
|
924
|
+
readonly maxFlashcards: Prisma.FieldRef<"PlanLimit", 'Int'>;
|
|
925
|
+
readonly maxPodcasts: Prisma.FieldRef<"PlanLimit", 'Int'>;
|
|
926
|
+
readonly maxStudyGuides: Prisma.FieldRef<"PlanLimit", 'Int'>;
|
|
927
|
+
readonly createdAt: Prisma.FieldRef<"PlanLimit", 'DateTime'>;
|
|
928
|
+
readonly updatedAt: Prisma.FieldRef<"PlanLimit", 'DateTime'>;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* PlanLimit findUnique
|
|
932
|
+
*/
|
|
933
|
+
export type PlanLimitFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
934
|
+
/**
|
|
935
|
+
* Select specific fields to fetch from the PlanLimit
|
|
936
|
+
*/
|
|
937
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
938
|
+
/**
|
|
939
|
+
* Omit specific fields from the PlanLimit
|
|
940
|
+
*/
|
|
941
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
942
|
+
/**
|
|
943
|
+
* Choose, which related nodes to fetch as well
|
|
944
|
+
*/
|
|
945
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
946
|
+
/**
|
|
947
|
+
* Filter, which PlanLimit to fetch.
|
|
948
|
+
*/
|
|
949
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* PlanLimit findUniqueOrThrow
|
|
953
|
+
*/
|
|
954
|
+
export type PlanLimitFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
955
|
+
/**
|
|
956
|
+
* Select specific fields to fetch from the PlanLimit
|
|
957
|
+
*/
|
|
958
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
959
|
+
/**
|
|
960
|
+
* Omit specific fields from the PlanLimit
|
|
961
|
+
*/
|
|
962
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
963
|
+
/**
|
|
964
|
+
* Choose, which related nodes to fetch as well
|
|
965
|
+
*/
|
|
966
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
967
|
+
/**
|
|
968
|
+
* Filter, which PlanLimit to fetch.
|
|
969
|
+
*/
|
|
970
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
971
|
+
};
|
|
972
|
+
/**
|
|
973
|
+
* PlanLimit findFirst
|
|
974
|
+
*/
|
|
975
|
+
export type PlanLimitFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
976
|
+
/**
|
|
977
|
+
* Select specific fields to fetch from the PlanLimit
|
|
978
|
+
*/
|
|
979
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
980
|
+
/**
|
|
981
|
+
* Omit specific fields from the PlanLimit
|
|
982
|
+
*/
|
|
983
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
984
|
+
/**
|
|
985
|
+
* Choose, which related nodes to fetch as well
|
|
986
|
+
*/
|
|
987
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
988
|
+
/**
|
|
989
|
+
* Filter, which PlanLimit to fetch.
|
|
990
|
+
*/
|
|
991
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
992
|
+
/**
|
|
993
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
994
|
+
*
|
|
995
|
+
* Determine the order of PlanLimits to fetch.
|
|
996
|
+
*/
|
|
997
|
+
orderBy?: Prisma.PlanLimitOrderByWithRelationInput | Prisma.PlanLimitOrderByWithRelationInput[];
|
|
998
|
+
/**
|
|
999
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1000
|
+
*
|
|
1001
|
+
* Sets the position for searching for PlanLimits.
|
|
1002
|
+
*/
|
|
1003
|
+
cursor?: Prisma.PlanLimitWhereUniqueInput;
|
|
1004
|
+
/**
|
|
1005
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1006
|
+
*
|
|
1007
|
+
* Take `±n` PlanLimits from the position of the cursor.
|
|
1008
|
+
*/
|
|
1009
|
+
take?: number;
|
|
1010
|
+
/**
|
|
1011
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1012
|
+
*
|
|
1013
|
+
* Skip the first `n` PlanLimits.
|
|
1014
|
+
*/
|
|
1015
|
+
skip?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1018
|
+
*
|
|
1019
|
+
* Filter by unique combinations of PlanLimits.
|
|
1020
|
+
*/
|
|
1021
|
+
distinct?: Prisma.PlanLimitScalarFieldEnum | Prisma.PlanLimitScalarFieldEnum[];
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* PlanLimit findFirstOrThrow
|
|
1025
|
+
*/
|
|
1026
|
+
export type PlanLimitFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1027
|
+
/**
|
|
1028
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1029
|
+
*/
|
|
1030
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Omit specific fields from the PlanLimit
|
|
1033
|
+
*/
|
|
1034
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Choose, which related nodes to fetch as well
|
|
1037
|
+
*/
|
|
1038
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1039
|
+
/**
|
|
1040
|
+
* Filter, which PlanLimit to fetch.
|
|
1041
|
+
*/
|
|
1042
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1043
|
+
/**
|
|
1044
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1045
|
+
*
|
|
1046
|
+
* Determine the order of PlanLimits to fetch.
|
|
1047
|
+
*/
|
|
1048
|
+
orderBy?: Prisma.PlanLimitOrderByWithRelationInput | Prisma.PlanLimitOrderByWithRelationInput[];
|
|
1049
|
+
/**
|
|
1050
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1051
|
+
*
|
|
1052
|
+
* Sets the position for searching for PlanLimits.
|
|
1053
|
+
*/
|
|
1054
|
+
cursor?: Prisma.PlanLimitWhereUniqueInput;
|
|
1055
|
+
/**
|
|
1056
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1057
|
+
*
|
|
1058
|
+
* Take `±n` PlanLimits from the position of the cursor.
|
|
1059
|
+
*/
|
|
1060
|
+
take?: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1063
|
+
*
|
|
1064
|
+
* Skip the first `n` PlanLimits.
|
|
1065
|
+
*/
|
|
1066
|
+
skip?: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1069
|
+
*
|
|
1070
|
+
* Filter by unique combinations of PlanLimits.
|
|
1071
|
+
*/
|
|
1072
|
+
distinct?: Prisma.PlanLimitScalarFieldEnum | Prisma.PlanLimitScalarFieldEnum[];
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* PlanLimit findMany
|
|
1076
|
+
*/
|
|
1077
|
+
export type PlanLimitFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1080
|
+
*/
|
|
1081
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Omit specific fields from the PlanLimit
|
|
1084
|
+
*/
|
|
1085
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Choose, which related nodes to fetch as well
|
|
1088
|
+
*/
|
|
1089
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* Filter, which PlanLimits to fetch.
|
|
1092
|
+
*/
|
|
1093
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1094
|
+
/**
|
|
1095
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1096
|
+
*
|
|
1097
|
+
* Determine the order of PlanLimits to fetch.
|
|
1098
|
+
*/
|
|
1099
|
+
orderBy?: Prisma.PlanLimitOrderByWithRelationInput | Prisma.PlanLimitOrderByWithRelationInput[];
|
|
1100
|
+
/**
|
|
1101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1102
|
+
*
|
|
1103
|
+
* Sets the position for listing PlanLimits.
|
|
1104
|
+
*/
|
|
1105
|
+
cursor?: Prisma.PlanLimitWhereUniqueInput;
|
|
1106
|
+
/**
|
|
1107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1108
|
+
*
|
|
1109
|
+
* Take `±n` PlanLimits from the position of the cursor.
|
|
1110
|
+
*/
|
|
1111
|
+
take?: number;
|
|
1112
|
+
/**
|
|
1113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1114
|
+
*
|
|
1115
|
+
* Skip the first `n` PlanLimits.
|
|
1116
|
+
*/
|
|
1117
|
+
skip?: number;
|
|
1118
|
+
/**
|
|
1119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1120
|
+
*
|
|
1121
|
+
* Filter by unique combinations of PlanLimits.
|
|
1122
|
+
*/
|
|
1123
|
+
distinct?: Prisma.PlanLimitScalarFieldEnum | Prisma.PlanLimitScalarFieldEnum[];
|
|
1124
|
+
};
|
|
1125
|
+
/**
|
|
1126
|
+
* PlanLimit create
|
|
1127
|
+
*/
|
|
1128
|
+
export type PlanLimitCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1129
|
+
/**
|
|
1130
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1131
|
+
*/
|
|
1132
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Omit specific fields from the PlanLimit
|
|
1135
|
+
*/
|
|
1136
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Choose, which related nodes to fetch as well
|
|
1139
|
+
*/
|
|
1140
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* The data needed to create a PlanLimit.
|
|
1143
|
+
*/
|
|
1144
|
+
data: Prisma.XOR<Prisma.PlanLimitCreateInput, Prisma.PlanLimitUncheckedCreateInput>;
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* PlanLimit createMany
|
|
1148
|
+
*/
|
|
1149
|
+
export type PlanLimitCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1150
|
+
/**
|
|
1151
|
+
* The data used to create many PlanLimits.
|
|
1152
|
+
*/
|
|
1153
|
+
data: Prisma.PlanLimitCreateManyInput | Prisma.PlanLimitCreateManyInput[];
|
|
1154
|
+
skipDuplicates?: boolean;
|
|
1155
|
+
};
|
|
1156
|
+
/**
|
|
1157
|
+
* PlanLimit createManyAndReturn
|
|
1158
|
+
*/
|
|
1159
|
+
export type PlanLimitCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
|
+
/**
|
|
1161
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1162
|
+
*/
|
|
1163
|
+
select?: Prisma.PlanLimitSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Omit specific fields from the PlanLimit
|
|
1166
|
+
*/
|
|
1167
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* The data used to create many PlanLimits.
|
|
1170
|
+
*/
|
|
1171
|
+
data: Prisma.PlanLimitCreateManyInput | Prisma.PlanLimitCreateManyInput[];
|
|
1172
|
+
skipDuplicates?: boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* Choose, which related nodes to fetch as well
|
|
1175
|
+
*/
|
|
1176
|
+
include?: Prisma.PlanLimitIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* PlanLimit update
|
|
1180
|
+
*/
|
|
1181
|
+
export type PlanLimitUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1182
|
+
/**
|
|
1183
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1184
|
+
*/
|
|
1185
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Omit specific fields from the PlanLimit
|
|
1188
|
+
*/
|
|
1189
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Choose, which related nodes to fetch as well
|
|
1192
|
+
*/
|
|
1193
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* The data needed to update a PlanLimit.
|
|
1196
|
+
*/
|
|
1197
|
+
data: Prisma.XOR<Prisma.PlanLimitUpdateInput, Prisma.PlanLimitUncheckedUpdateInput>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which PlanLimit to update.
|
|
1200
|
+
*/
|
|
1201
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* PlanLimit updateMany
|
|
1205
|
+
*/
|
|
1206
|
+
export type PlanLimitUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1207
|
+
/**
|
|
1208
|
+
* The data used to update PlanLimits.
|
|
1209
|
+
*/
|
|
1210
|
+
data: Prisma.XOR<Prisma.PlanLimitUpdateManyMutationInput, Prisma.PlanLimitUncheckedUpdateManyInput>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Filter which PlanLimits to update
|
|
1213
|
+
*/
|
|
1214
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1215
|
+
/**
|
|
1216
|
+
* Limit how many PlanLimits to update.
|
|
1217
|
+
*/
|
|
1218
|
+
limit?: number;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* PlanLimit updateManyAndReturn
|
|
1222
|
+
*/
|
|
1223
|
+
export type PlanLimitUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1224
|
+
/**
|
|
1225
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1226
|
+
*/
|
|
1227
|
+
select?: Prisma.PlanLimitSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* Omit specific fields from the PlanLimit
|
|
1230
|
+
*/
|
|
1231
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* The data used to update PlanLimits.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.XOR<Prisma.PlanLimitUpdateManyMutationInput, Prisma.PlanLimitUncheckedUpdateManyInput>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Filter which PlanLimits to update
|
|
1238
|
+
*/
|
|
1239
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1240
|
+
/**
|
|
1241
|
+
* Limit how many PlanLimits to update.
|
|
1242
|
+
*/
|
|
1243
|
+
limit?: number;
|
|
1244
|
+
/**
|
|
1245
|
+
* Choose, which related nodes to fetch as well
|
|
1246
|
+
*/
|
|
1247
|
+
include?: Prisma.PlanLimitIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1248
|
+
};
|
|
1249
|
+
/**
|
|
1250
|
+
* PlanLimit upsert
|
|
1251
|
+
*/
|
|
1252
|
+
export type PlanLimitUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1253
|
+
/**
|
|
1254
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1255
|
+
*/
|
|
1256
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1257
|
+
/**
|
|
1258
|
+
* Omit specific fields from the PlanLimit
|
|
1259
|
+
*/
|
|
1260
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1261
|
+
/**
|
|
1262
|
+
* Choose, which related nodes to fetch as well
|
|
1263
|
+
*/
|
|
1264
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* The filter to search for the PlanLimit to update in case it exists.
|
|
1267
|
+
*/
|
|
1268
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
1269
|
+
/**
|
|
1270
|
+
* In case the PlanLimit found by the `where` argument doesn't exist, create a new PlanLimit with this data.
|
|
1271
|
+
*/
|
|
1272
|
+
create: Prisma.XOR<Prisma.PlanLimitCreateInput, Prisma.PlanLimitUncheckedCreateInput>;
|
|
1273
|
+
/**
|
|
1274
|
+
* In case the PlanLimit was found with the provided `where` argument, update it with this data.
|
|
1275
|
+
*/
|
|
1276
|
+
update: Prisma.XOR<Prisma.PlanLimitUpdateInput, Prisma.PlanLimitUncheckedUpdateInput>;
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* PlanLimit delete
|
|
1280
|
+
*/
|
|
1281
|
+
export type PlanLimitDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1282
|
+
/**
|
|
1283
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1284
|
+
*/
|
|
1285
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* Omit specific fields from the PlanLimit
|
|
1288
|
+
*/
|
|
1289
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* Choose, which related nodes to fetch as well
|
|
1292
|
+
*/
|
|
1293
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Filter which PlanLimit to delete.
|
|
1296
|
+
*/
|
|
1297
|
+
where: Prisma.PlanLimitWhereUniqueInput;
|
|
1298
|
+
};
|
|
1299
|
+
/**
|
|
1300
|
+
* PlanLimit deleteMany
|
|
1301
|
+
*/
|
|
1302
|
+
export type PlanLimitDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1303
|
+
/**
|
|
1304
|
+
* Filter which PlanLimits to delete
|
|
1305
|
+
*/
|
|
1306
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1307
|
+
/**
|
|
1308
|
+
* Limit how many PlanLimits to delete.
|
|
1309
|
+
*/
|
|
1310
|
+
limit?: number;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* PlanLimit without action
|
|
1314
|
+
*/
|
|
1315
|
+
export type PlanLimitDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
+
/**
|
|
1317
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1318
|
+
*/
|
|
1319
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Omit specific fields from the PlanLimit
|
|
1322
|
+
*/
|
|
1323
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Choose, which related nodes to fetch as well
|
|
1326
|
+
*/
|
|
1327
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1328
|
+
};
|