@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,1431 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model Plan
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type PlanModel = runtime.Types.Result.DefaultSelection<Prisma.$PlanPayload>;
|
|
8
|
+
export type AggregatePlan = {
|
|
9
|
+
_count: PlanCountAggregateOutputType | null;
|
|
10
|
+
_avg: PlanAvgAggregateOutputType | null;
|
|
11
|
+
_sum: PlanSumAggregateOutputType | null;
|
|
12
|
+
_min: PlanMinAggregateOutputType | null;
|
|
13
|
+
_max: PlanMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type PlanAvgAggregateOutputType = {
|
|
16
|
+
price: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type PlanSumAggregateOutputType = {
|
|
19
|
+
price: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type PlanMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
name: string | null;
|
|
24
|
+
description: string | null;
|
|
25
|
+
type: string | null;
|
|
26
|
+
price: number | null;
|
|
27
|
+
stripePriceId: string | null;
|
|
28
|
+
interval: string | null;
|
|
29
|
+
active: boolean | null;
|
|
30
|
+
createdAt: Date | null;
|
|
31
|
+
};
|
|
32
|
+
export type PlanMaxAggregateOutputType = {
|
|
33
|
+
id: string | null;
|
|
34
|
+
name: string | null;
|
|
35
|
+
description: string | null;
|
|
36
|
+
type: string | null;
|
|
37
|
+
price: number | null;
|
|
38
|
+
stripePriceId: string | null;
|
|
39
|
+
interval: string | null;
|
|
40
|
+
active: boolean | null;
|
|
41
|
+
createdAt: Date | null;
|
|
42
|
+
};
|
|
43
|
+
export type PlanCountAggregateOutputType = {
|
|
44
|
+
id: number;
|
|
45
|
+
name: number;
|
|
46
|
+
description: number;
|
|
47
|
+
type: number;
|
|
48
|
+
price: number;
|
|
49
|
+
stripePriceId: number;
|
|
50
|
+
interval: number;
|
|
51
|
+
active: number;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
_all: number;
|
|
54
|
+
};
|
|
55
|
+
export type PlanAvgAggregateInputType = {
|
|
56
|
+
price?: true;
|
|
57
|
+
};
|
|
58
|
+
export type PlanSumAggregateInputType = {
|
|
59
|
+
price?: true;
|
|
60
|
+
};
|
|
61
|
+
export type PlanMinAggregateInputType = {
|
|
62
|
+
id?: true;
|
|
63
|
+
name?: true;
|
|
64
|
+
description?: true;
|
|
65
|
+
type?: true;
|
|
66
|
+
price?: true;
|
|
67
|
+
stripePriceId?: true;
|
|
68
|
+
interval?: true;
|
|
69
|
+
active?: true;
|
|
70
|
+
createdAt?: true;
|
|
71
|
+
};
|
|
72
|
+
export type PlanMaxAggregateInputType = {
|
|
73
|
+
id?: true;
|
|
74
|
+
name?: true;
|
|
75
|
+
description?: true;
|
|
76
|
+
type?: true;
|
|
77
|
+
price?: true;
|
|
78
|
+
stripePriceId?: true;
|
|
79
|
+
interval?: true;
|
|
80
|
+
active?: true;
|
|
81
|
+
createdAt?: true;
|
|
82
|
+
};
|
|
83
|
+
export type PlanCountAggregateInputType = {
|
|
84
|
+
id?: true;
|
|
85
|
+
name?: true;
|
|
86
|
+
description?: true;
|
|
87
|
+
type?: true;
|
|
88
|
+
price?: true;
|
|
89
|
+
stripePriceId?: true;
|
|
90
|
+
interval?: true;
|
|
91
|
+
active?: true;
|
|
92
|
+
createdAt?: true;
|
|
93
|
+
_all?: true;
|
|
94
|
+
};
|
|
95
|
+
export type PlanAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
96
|
+
/**
|
|
97
|
+
* Filter which Plan to aggregate.
|
|
98
|
+
*/
|
|
99
|
+
where?: Prisma.PlanWhereInput;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
102
|
+
*
|
|
103
|
+
* Determine the order of Plans to fetch.
|
|
104
|
+
*/
|
|
105
|
+
orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[];
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
108
|
+
*
|
|
109
|
+
* Sets the start position
|
|
110
|
+
*/
|
|
111
|
+
cursor?: Prisma.PlanWhereUniqueInput;
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
114
|
+
*
|
|
115
|
+
* Take `±n` Plans from the position of the cursor.
|
|
116
|
+
*/
|
|
117
|
+
take?: number;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
120
|
+
*
|
|
121
|
+
* Skip the first `n` Plans.
|
|
122
|
+
*/
|
|
123
|
+
skip?: number;
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
126
|
+
*
|
|
127
|
+
* Count returned Plans
|
|
128
|
+
**/
|
|
129
|
+
_count?: true | PlanCountAggregateInputType;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
132
|
+
*
|
|
133
|
+
* Select which fields to average
|
|
134
|
+
**/
|
|
135
|
+
_avg?: PlanAvgAggregateInputType;
|
|
136
|
+
/**
|
|
137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
138
|
+
*
|
|
139
|
+
* Select which fields to sum
|
|
140
|
+
**/
|
|
141
|
+
_sum?: PlanSumAggregateInputType;
|
|
142
|
+
/**
|
|
143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
144
|
+
*
|
|
145
|
+
* Select which fields to find the minimum value
|
|
146
|
+
**/
|
|
147
|
+
_min?: PlanMinAggregateInputType;
|
|
148
|
+
/**
|
|
149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
150
|
+
*
|
|
151
|
+
* Select which fields to find the maximum value
|
|
152
|
+
**/
|
|
153
|
+
_max?: PlanMaxAggregateInputType;
|
|
154
|
+
};
|
|
155
|
+
export type GetPlanAggregateType<T extends PlanAggregateArgs> = {
|
|
156
|
+
[P in keyof T & keyof AggregatePlan]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePlan[P]> : Prisma.GetScalarType<T[P], AggregatePlan[P]>;
|
|
157
|
+
};
|
|
158
|
+
export type PlanGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
159
|
+
where?: Prisma.PlanWhereInput;
|
|
160
|
+
orderBy?: Prisma.PlanOrderByWithAggregationInput | Prisma.PlanOrderByWithAggregationInput[];
|
|
161
|
+
by: Prisma.PlanScalarFieldEnum[] | Prisma.PlanScalarFieldEnum;
|
|
162
|
+
having?: Prisma.PlanScalarWhereWithAggregatesInput;
|
|
163
|
+
take?: number;
|
|
164
|
+
skip?: number;
|
|
165
|
+
_count?: PlanCountAggregateInputType | true;
|
|
166
|
+
_avg?: PlanAvgAggregateInputType;
|
|
167
|
+
_sum?: PlanSumAggregateInputType;
|
|
168
|
+
_min?: PlanMinAggregateInputType;
|
|
169
|
+
_max?: PlanMaxAggregateInputType;
|
|
170
|
+
};
|
|
171
|
+
export type PlanGroupByOutputType = {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
description: string | null;
|
|
175
|
+
type: string;
|
|
176
|
+
price: number;
|
|
177
|
+
stripePriceId: string;
|
|
178
|
+
interval: string | null;
|
|
179
|
+
active: boolean;
|
|
180
|
+
createdAt: Date;
|
|
181
|
+
_count: PlanCountAggregateOutputType | null;
|
|
182
|
+
_avg: PlanAvgAggregateOutputType | null;
|
|
183
|
+
_sum: PlanSumAggregateOutputType | null;
|
|
184
|
+
_min: PlanMinAggregateOutputType | null;
|
|
185
|
+
_max: PlanMaxAggregateOutputType | null;
|
|
186
|
+
};
|
|
187
|
+
export type GetPlanGroupByPayload<T extends PlanGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PlanGroupByOutputType, T['by']> & {
|
|
188
|
+
[P in ((keyof T) & (keyof PlanGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PlanGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PlanGroupByOutputType[P]>;
|
|
189
|
+
}>>;
|
|
190
|
+
export type PlanWhereInput = {
|
|
191
|
+
AND?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[];
|
|
192
|
+
OR?: Prisma.PlanWhereInput[];
|
|
193
|
+
NOT?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[];
|
|
194
|
+
id?: Prisma.StringFilter<"Plan"> | string;
|
|
195
|
+
name?: Prisma.StringFilter<"Plan"> | string;
|
|
196
|
+
description?: Prisma.StringNullableFilter<"Plan"> | string | null;
|
|
197
|
+
type?: Prisma.StringFilter<"Plan"> | string;
|
|
198
|
+
price?: Prisma.IntFilter<"Plan"> | number;
|
|
199
|
+
stripePriceId?: Prisma.StringFilter<"Plan"> | string;
|
|
200
|
+
interval?: Prisma.StringNullableFilter<"Plan"> | string | null;
|
|
201
|
+
active?: Prisma.BoolFilter<"Plan"> | boolean;
|
|
202
|
+
createdAt?: Prisma.DateTimeFilter<"Plan"> | Date | string;
|
|
203
|
+
limit?: Prisma.XOR<Prisma.PlanLimitNullableScalarRelationFilter, Prisma.PlanLimitWhereInput> | null;
|
|
204
|
+
subscriptions?: Prisma.SubscriptionListRelationFilter;
|
|
205
|
+
};
|
|
206
|
+
export type PlanOrderByWithRelationInput = {
|
|
207
|
+
id?: Prisma.SortOrder;
|
|
208
|
+
name?: Prisma.SortOrder;
|
|
209
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
210
|
+
type?: Prisma.SortOrder;
|
|
211
|
+
price?: Prisma.SortOrder;
|
|
212
|
+
stripePriceId?: Prisma.SortOrder;
|
|
213
|
+
interval?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
214
|
+
active?: Prisma.SortOrder;
|
|
215
|
+
createdAt?: Prisma.SortOrder;
|
|
216
|
+
limit?: Prisma.PlanLimitOrderByWithRelationInput;
|
|
217
|
+
subscriptions?: Prisma.SubscriptionOrderByRelationAggregateInput;
|
|
218
|
+
};
|
|
219
|
+
export type PlanWhereUniqueInput = Prisma.AtLeast<{
|
|
220
|
+
id?: string;
|
|
221
|
+
AND?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[];
|
|
222
|
+
OR?: Prisma.PlanWhereInput[];
|
|
223
|
+
NOT?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[];
|
|
224
|
+
name?: Prisma.StringFilter<"Plan"> | string;
|
|
225
|
+
description?: Prisma.StringNullableFilter<"Plan"> | string | null;
|
|
226
|
+
type?: Prisma.StringFilter<"Plan"> | string;
|
|
227
|
+
price?: Prisma.IntFilter<"Plan"> | number;
|
|
228
|
+
stripePriceId?: Prisma.StringFilter<"Plan"> | string;
|
|
229
|
+
interval?: Prisma.StringNullableFilter<"Plan"> | string | null;
|
|
230
|
+
active?: Prisma.BoolFilter<"Plan"> | boolean;
|
|
231
|
+
createdAt?: Prisma.DateTimeFilter<"Plan"> | Date | string;
|
|
232
|
+
limit?: Prisma.XOR<Prisma.PlanLimitNullableScalarRelationFilter, Prisma.PlanLimitWhereInput> | null;
|
|
233
|
+
subscriptions?: Prisma.SubscriptionListRelationFilter;
|
|
234
|
+
}, "id">;
|
|
235
|
+
export type PlanOrderByWithAggregationInput = {
|
|
236
|
+
id?: Prisma.SortOrder;
|
|
237
|
+
name?: Prisma.SortOrder;
|
|
238
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
239
|
+
type?: Prisma.SortOrder;
|
|
240
|
+
price?: Prisma.SortOrder;
|
|
241
|
+
stripePriceId?: Prisma.SortOrder;
|
|
242
|
+
interval?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
243
|
+
active?: Prisma.SortOrder;
|
|
244
|
+
createdAt?: Prisma.SortOrder;
|
|
245
|
+
_count?: Prisma.PlanCountOrderByAggregateInput;
|
|
246
|
+
_avg?: Prisma.PlanAvgOrderByAggregateInput;
|
|
247
|
+
_max?: Prisma.PlanMaxOrderByAggregateInput;
|
|
248
|
+
_min?: Prisma.PlanMinOrderByAggregateInput;
|
|
249
|
+
_sum?: Prisma.PlanSumOrderByAggregateInput;
|
|
250
|
+
};
|
|
251
|
+
export type PlanScalarWhereWithAggregatesInput = {
|
|
252
|
+
AND?: Prisma.PlanScalarWhereWithAggregatesInput | Prisma.PlanScalarWhereWithAggregatesInput[];
|
|
253
|
+
OR?: Prisma.PlanScalarWhereWithAggregatesInput[];
|
|
254
|
+
NOT?: Prisma.PlanScalarWhereWithAggregatesInput | Prisma.PlanScalarWhereWithAggregatesInput[];
|
|
255
|
+
id?: Prisma.StringWithAggregatesFilter<"Plan"> | string;
|
|
256
|
+
name?: Prisma.StringWithAggregatesFilter<"Plan"> | string;
|
|
257
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null;
|
|
258
|
+
type?: Prisma.StringWithAggregatesFilter<"Plan"> | string;
|
|
259
|
+
price?: Prisma.IntWithAggregatesFilter<"Plan"> | number;
|
|
260
|
+
stripePriceId?: Prisma.StringWithAggregatesFilter<"Plan"> | string;
|
|
261
|
+
interval?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null;
|
|
262
|
+
active?: Prisma.BoolWithAggregatesFilter<"Plan"> | boolean;
|
|
263
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Plan"> | Date | string;
|
|
264
|
+
};
|
|
265
|
+
export type PlanCreateInput = {
|
|
266
|
+
id?: string;
|
|
267
|
+
name: string;
|
|
268
|
+
description?: string | null;
|
|
269
|
+
type: string;
|
|
270
|
+
price: number;
|
|
271
|
+
stripePriceId: string;
|
|
272
|
+
interval?: string | null;
|
|
273
|
+
active?: boolean;
|
|
274
|
+
createdAt?: Date | string;
|
|
275
|
+
limit?: Prisma.PlanLimitCreateNestedOneWithoutPlanInput;
|
|
276
|
+
subscriptions?: Prisma.SubscriptionCreateNestedManyWithoutPlanInput;
|
|
277
|
+
};
|
|
278
|
+
export type PlanUncheckedCreateInput = {
|
|
279
|
+
id?: string;
|
|
280
|
+
name: string;
|
|
281
|
+
description?: string | null;
|
|
282
|
+
type: string;
|
|
283
|
+
price: number;
|
|
284
|
+
stripePriceId: string;
|
|
285
|
+
interval?: string | null;
|
|
286
|
+
active?: boolean;
|
|
287
|
+
createdAt?: Date | string;
|
|
288
|
+
limit?: Prisma.PlanLimitUncheckedCreateNestedOneWithoutPlanInput;
|
|
289
|
+
subscriptions?: Prisma.SubscriptionUncheckedCreateNestedManyWithoutPlanInput;
|
|
290
|
+
};
|
|
291
|
+
export type PlanUpdateInput = {
|
|
292
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
293
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
294
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
295
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
296
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
297
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
298
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
299
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
300
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
301
|
+
limit?: Prisma.PlanLimitUpdateOneWithoutPlanNestedInput;
|
|
302
|
+
subscriptions?: Prisma.SubscriptionUpdateManyWithoutPlanNestedInput;
|
|
303
|
+
};
|
|
304
|
+
export type PlanUncheckedUpdateInput = {
|
|
305
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
306
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
307
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
308
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
309
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
310
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
311
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
312
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
313
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
314
|
+
limit?: Prisma.PlanLimitUncheckedUpdateOneWithoutPlanNestedInput;
|
|
315
|
+
subscriptions?: Prisma.SubscriptionUncheckedUpdateManyWithoutPlanNestedInput;
|
|
316
|
+
};
|
|
317
|
+
export type PlanCreateManyInput = {
|
|
318
|
+
id?: string;
|
|
319
|
+
name: string;
|
|
320
|
+
description?: string | null;
|
|
321
|
+
type: string;
|
|
322
|
+
price: number;
|
|
323
|
+
stripePriceId: string;
|
|
324
|
+
interval?: string | null;
|
|
325
|
+
active?: boolean;
|
|
326
|
+
createdAt?: Date | string;
|
|
327
|
+
};
|
|
328
|
+
export type PlanUpdateManyMutationInput = {
|
|
329
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
330
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
332
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
333
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
334
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
335
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
336
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
337
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
338
|
+
};
|
|
339
|
+
export type PlanUncheckedUpdateManyInput = {
|
|
340
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
341
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
343
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
344
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
345
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
346
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
348
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
349
|
+
};
|
|
350
|
+
export type PlanCountOrderByAggregateInput = {
|
|
351
|
+
id?: Prisma.SortOrder;
|
|
352
|
+
name?: Prisma.SortOrder;
|
|
353
|
+
description?: Prisma.SortOrder;
|
|
354
|
+
type?: Prisma.SortOrder;
|
|
355
|
+
price?: Prisma.SortOrder;
|
|
356
|
+
stripePriceId?: Prisma.SortOrder;
|
|
357
|
+
interval?: Prisma.SortOrder;
|
|
358
|
+
active?: Prisma.SortOrder;
|
|
359
|
+
createdAt?: Prisma.SortOrder;
|
|
360
|
+
};
|
|
361
|
+
export type PlanAvgOrderByAggregateInput = {
|
|
362
|
+
price?: Prisma.SortOrder;
|
|
363
|
+
};
|
|
364
|
+
export type PlanMaxOrderByAggregateInput = {
|
|
365
|
+
id?: Prisma.SortOrder;
|
|
366
|
+
name?: Prisma.SortOrder;
|
|
367
|
+
description?: Prisma.SortOrder;
|
|
368
|
+
type?: Prisma.SortOrder;
|
|
369
|
+
price?: Prisma.SortOrder;
|
|
370
|
+
stripePriceId?: Prisma.SortOrder;
|
|
371
|
+
interval?: Prisma.SortOrder;
|
|
372
|
+
active?: Prisma.SortOrder;
|
|
373
|
+
createdAt?: Prisma.SortOrder;
|
|
374
|
+
};
|
|
375
|
+
export type PlanMinOrderByAggregateInput = {
|
|
376
|
+
id?: Prisma.SortOrder;
|
|
377
|
+
name?: Prisma.SortOrder;
|
|
378
|
+
description?: Prisma.SortOrder;
|
|
379
|
+
type?: Prisma.SortOrder;
|
|
380
|
+
price?: Prisma.SortOrder;
|
|
381
|
+
stripePriceId?: Prisma.SortOrder;
|
|
382
|
+
interval?: Prisma.SortOrder;
|
|
383
|
+
active?: Prisma.SortOrder;
|
|
384
|
+
createdAt?: Prisma.SortOrder;
|
|
385
|
+
};
|
|
386
|
+
export type PlanSumOrderByAggregateInput = {
|
|
387
|
+
price?: Prisma.SortOrder;
|
|
388
|
+
};
|
|
389
|
+
export type PlanScalarRelationFilter = {
|
|
390
|
+
is?: Prisma.PlanWhereInput;
|
|
391
|
+
isNot?: Prisma.PlanWhereInput;
|
|
392
|
+
};
|
|
393
|
+
export type PlanCreateNestedOneWithoutLimitInput = {
|
|
394
|
+
create?: Prisma.XOR<Prisma.PlanCreateWithoutLimitInput, Prisma.PlanUncheckedCreateWithoutLimitInput>;
|
|
395
|
+
connectOrCreate?: Prisma.PlanCreateOrConnectWithoutLimitInput;
|
|
396
|
+
connect?: Prisma.PlanWhereUniqueInput;
|
|
397
|
+
};
|
|
398
|
+
export type PlanUpdateOneRequiredWithoutLimitNestedInput = {
|
|
399
|
+
create?: Prisma.XOR<Prisma.PlanCreateWithoutLimitInput, Prisma.PlanUncheckedCreateWithoutLimitInput>;
|
|
400
|
+
connectOrCreate?: Prisma.PlanCreateOrConnectWithoutLimitInput;
|
|
401
|
+
upsert?: Prisma.PlanUpsertWithoutLimitInput;
|
|
402
|
+
connect?: Prisma.PlanWhereUniqueInput;
|
|
403
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlanUpdateToOneWithWhereWithoutLimitInput, Prisma.PlanUpdateWithoutLimitInput>, Prisma.PlanUncheckedUpdateWithoutLimitInput>;
|
|
404
|
+
};
|
|
405
|
+
export type PlanCreateNestedOneWithoutSubscriptionsInput = {
|
|
406
|
+
create?: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>;
|
|
407
|
+
connectOrCreate?: Prisma.PlanCreateOrConnectWithoutSubscriptionsInput;
|
|
408
|
+
connect?: Prisma.PlanWhereUniqueInput;
|
|
409
|
+
};
|
|
410
|
+
export type PlanUpdateOneRequiredWithoutSubscriptionsNestedInput = {
|
|
411
|
+
create?: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>;
|
|
412
|
+
connectOrCreate?: Prisma.PlanCreateOrConnectWithoutSubscriptionsInput;
|
|
413
|
+
upsert?: Prisma.PlanUpsertWithoutSubscriptionsInput;
|
|
414
|
+
connect?: Prisma.PlanWhereUniqueInput;
|
|
415
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PlanUpdateToOneWithWhereWithoutSubscriptionsInput, Prisma.PlanUpdateWithoutSubscriptionsInput>, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>;
|
|
416
|
+
};
|
|
417
|
+
export type PlanCreateWithoutLimitInput = {
|
|
418
|
+
id?: string;
|
|
419
|
+
name: string;
|
|
420
|
+
description?: string | null;
|
|
421
|
+
type: string;
|
|
422
|
+
price: number;
|
|
423
|
+
stripePriceId: string;
|
|
424
|
+
interval?: string | null;
|
|
425
|
+
active?: boolean;
|
|
426
|
+
createdAt?: Date | string;
|
|
427
|
+
subscriptions?: Prisma.SubscriptionCreateNestedManyWithoutPlanInput;
|
|
428
|
+
};
|
|
429
|
+
export type PlanUncheckedCreateWithoutLimitInput = {
|
|
430
|
+
id?: string;
|
|
431
|
+
name: string;
|
|
432
|
+
description?: string | null;
|
|
433
|
+
type: string;
|
|
434
|
+
price: number;
|
|
435
|
+
stripePriceId: string;
|
|
436
|
+
interval?: string | null;
|
|
437
|
+
active?: boolean;
|
|
438
|
+
createdAt?: Date | string;
|
|
439
|
+
subscriptions?: Prisma.SubscriptionUncheckedCreateNestedManyWithoutPlanInput;
|
|
440
|
+
};
|
|
441
|
+
export type PlanCreateOrConnectWithoutLimitInput = {
|
|
442
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
443
|
+
create: Prisma.XOR<Prisma.PlanCreateWithoutLimitInput, Prisma.PlanUncheckedCreateWithoutLimitInput>;
|
|
444
|
+
};
|
|
445
|
+
export type PlanUpsertWithoutLimitInput = {
|
|
446
|
+
update: Prisma.XOR<Prisma.PlanUpdateWithoutLimitInput, Prisma.PlanUncheckedUpdateWithoutLimitInput>;
|
|
447
|
+
create: Prisma.XOR<Prisma.PlanCreateWithoutLimitInput, Prisma.PlanUncheckedCreateWithoutLimitInput>;
|
|
448
|
+
where?: Prisma.PlanWhereInput;
|
|
449
|
+
};
|
|
450
|
+
export type PlanUpdateToOneWithWhereWithoutLimitInput = {
|
|
451
|
+
where?: Prisma.PlanWhereInput;
|
|
452
|
+
data: Prisma.XOR<Prisma.PlanUpdateWithoutLimitInput, Prisma.PlanUncheckedUpdateWithoutLimitInput>;
|
|
453
|
+
};
|
|
454
|
+
export type PlanUpdateWithoutLimitInput = {
|
|
455
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
456
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
457
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
458
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
459
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
460
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
461
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
462
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
463
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
464
|
+
subscriptions?: Prisma.SubscriptionUpdateManyWithoutPlanNestedInput;
|
|
465
|
+
};
|
|
466
|
+
export type PlanUncheckedUpdateWithoutLimitInput = {
|
|
467
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
468
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
469
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
470
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
471
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
472
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
473
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
474
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
475
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
476
|
+
subscriptions?: Prisma.SubscriptionUncheckedUpdateManyWithoutPlanNestedInput;
|
|
477
|
+
};
|
|
478
|
+
export type PlanCreateWithoutSubscriptionsInput = {
|
|
479
|
+
id?: string;
|
|
480
|
+
name: string;
|
|
481
|
+
description?: string | null;
|
|
482
|
+
type: string;
|
|
483
|
+
price: number;
|
|
484
|
+
stripePriceId: string;
|
|
485
|
+
interval?: string | null;
|
|
486
|
+
active?: boolean;
|
|
487
|
+
createdAt?: Date | string;
|
|
488
|
+
limit?: Prisma.PlanLimitCreateNestedOneWithoutPlanInput;
|
|
489
|
+
};
|
|
490
|
+
export type PlanUncheckedCreateWithoutSubscriptionsInput = {
|
|
491
|
+
id?: string;
|
|
492
|
+
name: string;
|
|
493
|
+
description?: string | null;
|
|
494
|
+
type: string;
|
|
495
|
+
price: number;
|
|
496
|
+
stripePriceId: string;
|
|
497
|
+
interval?: string | null;
|
|
498
|
+
active?: boolean;
|
|
499
|
+
createdAt?: Date | string;
|
|
500
|
+
limit?: Prisma.PlanLimitUncheckedCreateNestedOneWithoutPlanInput;
|
|
501
|
+
};
|
|
502
|
+
export type PlanCreateOrConnectWithoutSubscriptionsInput = {
|
|
503
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
504
|
+
create: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>;
|
|
505
|
+
};
|
|
506
|
+
export type PlanUpsertWithoutSubscriptionsInput = {
|
|
507
|
+
update: Prisma.XOR<Prisma.PlanUpdateWithoutSubscriptionsInput, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>;
|
|
508
|
+
create: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>;
|
|
509
|
+
where?: Prisma.PlanWhereInput;
|
|
510
|
+
};
|
|
511
|
+
export type PlanUpdateToOneWithWhereWithoutSubscriptionsInput = {
|
|
512
|
+
where?: Prisma.PlanWhereInput;
|
|
513
|
+
data: Prisma.XOR<Prisma.PlanUpdateWithoutSubscriptionsInput, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>;
|
|
514
|
+
};
|
|
515
|
+
export type PlanUpdateWithoutSubscriptionsInput = {
|
|
516
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
517
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
518
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
519
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
520
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
521
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
522
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
523
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
524
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
525
|
+
limit?: Prisma.PlanLimitUpdateOneWithoutPlanNestedInput;
|
|
526
|
+
};
|
|
527
|
+
export type PlanUncheckedUpdateWithoutSubscriptionsInput = {
|
|
528
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
529
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
531
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
532
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
533
|
+
stripePriceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
534
|
+
interval?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
535
|
+
active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
536
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
537
|
+
limit?: Prisma.PlanLimitUncheckedUpdateOneWithoutPlanNestedInput;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Count Type PlanCountOutputType
|
|
541
|
+
*/
|
|
542
|
+
export type PlanCountOutputType = {
|
|
543
|
+
subscriptions: number;
|
|
544
|
+
};
|
|
545
|
+
export type PlanCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
546
|
+
subscriptions?: boolean | PlanCountOutputTypeCountSubscriptionsArgs;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* PlanCountOutputType without action
|
|
550
|
+
*/
|
|
551
|
+
export type PlanCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
552
|
+
/**
|
|
553
|
+
* Select specific fields to fetch from the PlanCountOutputType
|
|
554
|
+
*/
|
|
555
|
+
select?: Prisma.PlanCountOutputTypeSelect<ExtArgs> | null;
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* PlanCountOutputType without action
|
|
559
|
+
*/
|
|
560
|
+
export type PlanCountOutputTypeCountSubscriptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
561
|
+
where?: Prisma.SubscriptionWhereInput;
|
|
562
|
+
};
|
|
563
|
+
export type PlanSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
564
|
+
id?: boolean;
|
|
565
|
+
name?: boolean;
|
|
566
|
+
description?: boolean;
|
|
567
|
+
type?: boolean;
|
|
568
|
+
price?: boolean;
|
|
569
|
+
stripePriceId?: boolean;
|
|
570
|
+
interval?: boolean;
|
|
571
|
+
active?: boolean;
|
|
572
|
+
createdAt?: boolean;
|
|
573
|
+
limit?: boolean | Prisma.Plan$limitArgs<ExtArgs>;
|
|
574
|
+
subscriptions?: boolean | Prisma.Plan$subscriptionsArgs<ExtArgs>;
|
|
575
|
+
_count?: boolean | Prisma.PlanCountOutputTypeDefaultArgs<ExtArgs>;
|
|
576
|
+
}, ExtArgs["result"]["plan"]>;
|
|
577
|
+
export type PlanSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
578
|
+
id?: boolean;
|
|
579
|
+
name?: boolean;
|
|
580
|
+
description?: boolean;
|
|
581
|
+
type?: boolean;
|
|
582
|
+
price?: boolean;
|
|
583
|
+
stripePriceId?: boolean;
|
|
584
|
+
interval?: boolean;
|
|
585
|
+
active?: boolean;
|
|
586
|
+
createdAt?: boolean;
|
|
587
|
+
}, ExtArgs["result"]["plan"]>;
|
|
588
|
+
export type PlanSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
589
|
+
id?: boolean;
|
|
590
|
+
name?: boolean;
|
|
591
|
+
description?: boolean;
|
|
592
|
+
type?: boolean;
|
|
593
|
+
price?: boolean;
|
|
594
|
+
stripePriceId?: boolean;
|
|
595
|
+
interval?: boolean;
|
|
596
|
+
active?: boolean;
|
|
597
|
+
createdAt?: boolean;
|
|
598
|
+
}, ExtArgs["result"]["plan"]>;
|
|
599
|
+
export type PlanSelectScalar = {
|
|
600
|
+
id?: boolean;
|
|
601
|
+
name?: boolean;
|
|
602
|
+
description?: boolean;
|
|
603
|
+
type?: boolean;
|
|
604
|
+
price?: boolean;
|
|
605
|
+
stripePriceId?: boolean;
|
|
606
|
+
interval?: boolean;
|
|
607
|
+
active?: boolean;
|
|
608
|
+
createdAt?: boolean;
|
|
609
|
+
};
|
|
610
|
+
export type PlanOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "type" | "price" | "stripePriceId" | "interval" | "active" | "createdAt", ExtArgs["result"]["plan"]>;
|
|
611
|
+
export type PlanInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
612
|
+
limit?: boolean | Prisma.Plan$limitArgs<ExtArgs>;
|
|
613
|
+
subscriptions?: boolean | Prisma.Plan$subscriptionsArgs<ExtArgs>;
|
|
614
|
+
_count?: boolean | Prisma.PlanCountOutputTypeDefaultArgs<ExtArgs>;
|
|
615
|
+
};
|
|
616
|
+
export type PlanIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
617
|
+
export type PlanIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
618
|
+
export type $PlanPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
619
|
+
name: "Plan";
|
|
620
|
+
objects: {
|
|
621
|
+
limit: Prisma.$PlanLimitPayload<ExtArgs> | null;
|
|
622
|
+
subscriptions: Prisma.$SubscriptionPayload<ExtArgs>[];
|
|
623
|
+
};
|
|
624
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
625
|
+
id: string;
|
|
626
|
+
name: string;
|
|
627
|
+
description: string | null;
|
|
628
|
+
type: string;
|
|
629
|
+
price: number;
|
|
630
|
+
stripePriceId: string;
|
|
631
|
+
interval: string | null;
|
|
632
|
+
active: boolean;
|
|
633
|
+
createdAt: Date;
|
|
634
|
+
}, ExtArgs["result"]["plan"]>;
|
|
635
|
+
composites: {};
|
|
636
|
+
};
|
|
637
|
+
export type PlanGetPayload<S extends boolean | null | undefined | PlanDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlanPayload, S>;
|
|
638
|
+
export type PlanCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PlanFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
639
|
+
select?: PlanCountAggregateInputType | true;
|
|
640
|
+
};
|
|
641
|
+
export interface PlanDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
642
|
+
[K: symbol]: {
|
|
643
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Plan'];
|
|
644
|
+
meta: {
|
|
645
|
+
name: 'Plan';
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* Find zero or one Plan that matches the filter.
|
|
650
|
+
* @param {PlanFindUniqueArgs} args - Arguments to find a Plan
|
|
651
|
+
* @example
|
|
652
|
+
* // Get one Plan
|
|
653
|
+
* const plan = await prisma.plan.findUnique({
|
|
654
|
+
* where: {
|
|
655
|
+
* // ... provide filter here
|
|
656
|
+
* }
|
|
657
|
+
* })
|
|
658
|
+
*/
|
|
659
|
+
findUnique<T extends PlanFindUniqueArgs>(args: Prisma.SelectSubset<T, PlanFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
660
|
+
/**
|
|
661
|
+
* Find one Plan that matches the filter or throw an error with `error.code='P2025'`
|
|
662
|
+
* if no matches were found.
|
|
663
|
+
* @param {PlanFindUniqueOrThrowArgs} args - Arguments to find a Plan
|
|
664
|
+
* @example
|
|
665
|
+
* // Get one Plan
|
|
666
|
+
* const plan = await prisma.plan.findUniqueOrThrow({
|
|
667
|
+
* where: {
|
|
668
|
+
* // ... provide filter here
|
|
669
|
+
* }
|
|
670
|
+
* })
|
|
671
|
+
*/
|
|
672
|
+
findUniqueOrThrow<T extends PlanFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PlanFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
673
|
+
/**
|
|
674
|
+
* Find the first Plan that matches the filter.
|
|
675
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
676
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
677
|
+
* @param {PlanFindFirstArgs} args - Arguments to find a Plan
|
|
678
|
+
* @example
|
|
679
|
+
* // Get one Plan
|
|
680
|
+
* const plan = await prisma.plan.findFirst({
|
|
681
|
+
* where: {
|
|
682
|
+
* // ... provide filter here
|
|
683
|
+
* }
|
|
684
|
+
* })
|
|
685
|
+
*/
|
|
686
|
+
findFirst<T extends PlanFindFirstArgs>(args?: Prisma.SelectSubset<T, PlanFindFirstArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
687
|
+
/**
|
|
688
|
+
* Find the first Plan that matches the filter or
|
|
689
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
690
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
691
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
692
|
+
* @param {PlanFindFirstOrThrowArgs} args - Arguments to find a Plan
|
|
693
|
+
* @example
|
|
694
|
+
* // Get one Plan
|
|
695
|
+
* const plan = await prisma.plan.findFirstOrThrow({
|
|
696
|
+
* where: {
|
|
697
|
+
* // ... provide filter here
|
|
698
|
+
* }
|
|
699
|
+
* })
|
|
700
|
+
*/
|
|
701
|
+
findFirstOrThrow<T extends PlanFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PlanFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
702
|
+
/**
|
|
703
|
+
* Find zero or more Plans that matches the filter.
|
|
704
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
705
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
706
|
+
* @param {PlanFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
707
|
+
* @example
|
|
708
|
+
* // Get all Plans
|
|
709
|
+
* const plans = await prisma.plan.findMany()
|
|
710
|
+
*
|
|
711
|
+
* // Get first 10 Plans
|
|
712
|
+
* const plans = await prisma.plan.findMany({ take: 10 })
|
|
713
|
+
*
|
|
714
|
+
* // Only select the `id`
|
|
715
|
+
* const planWithIdOnly = await prisma.plan.findMany({ select: { id: true } })
|
|
716
|
+
*
|
|
717
|
+
*/
|
|
718
|
+
findMany<T extends PlanFindManyArgs>(args?: Prisma.SelectSubset<T, PlanFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
719
|
+
/**
|
|
720
|
+
* Create a Plan.
|
|
721
|
+
* @param {PlanCreateArgs} args - Arguments to create a Plan.
|
|
722
|
+
* @example
|
|
723
|
+
* // Create one Plan
|
|
724
|
+
* const Plan = await prisma.plan.create({
|
|
725
|
+
* data: {
|
|
726
|
+
* // ... data to create a Plan
|
|
727
|
+
* }
|
|
728
|
+
* })
|
|
729
|
+
*
|
|
730
|
+
*/
|
|
731
|
+
create<T extends PlanCreateArgs>(args: Prisma.SelectSubset<T, PlanCreateArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
732
|
+
/**
|
|
733
|
+
* Create many Plans.
|
|
734
|
+
* @param {PlanCreateManyArgs} args - Arguments to create many Plans.
|
|
735
|
+
* @example
|
|
736
|
+
* // Create many Plans
|
|
737
|
+
* const plan = await prisma.plan.createMany({
|
|
738
|
+
* data: [
|
|
739
|
+
* // ... provide data here
|
|
740
|
+
* ]
|
|
741
|
+
* })
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
createMany<T extends PlanCreateManyArgs>(args?: Prisma.SelectSubset<T, PlanCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
745
|
+
/**
|
|
746
|
+
* Create many Plans and returns the data saved in the database.
|
|
747
|
+
* @param {PlanCreateManyAndReturnArgs} args - Arguments to create many Plans.
|
|
748
|
+
* @example
|
|
749
|
+
* // Create many Plans
|
|
750
|
+
* const plan = await prisma.plan.createManyAndReturn({
|
|
751
|
+
* data: [
|
|
752
|
+
* // ... provide data here
|
|
753
|
+
* ]
|
|
754
|
+
* })
|
|
755
|
+
*
|
|
756
|
+
* // Create many Plans and only return the `id`
|
|
757
|
+
* const planWithIdOnly = await prisma.plan.createManyAndReturn({
|
|
758
|
+
* select: { id: true },
|
|
759
|
+
* data: [
|
|
760
|
+
* // ... provide data here
|
|
761
|
+
* ]
|
|
762
|
+
* })
|
|
763
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
764
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
765
|
+
*
|
|
766
|
+
*/
|
|
767
|
+
createManyAndReturn<T extends PlanCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PlanCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
768
|
+
/**
|
|
769
|
+
* Delete a Plan.
|
|
770
|
+
* @param {PlanDeleteArgs} args - Arguments to delete one Plan.
|
|
771
|
+
* @example
|
|
772
|
+
* // Delete one Plan
|
|
773
|
+
* const Plan = await prisma.plan.delete({
|
|
774
|
+
* where: {
|
|
775
|
+
* // ... filter to delete one Plan
|
|
776
|
+
* }
|
|
777
|
+
* })
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
delete<T extends PlanDeleteArgs>(args: Prisma.SelectSubset<T, PlanDeleteArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
781
|
+
/**
|
|
782
|
+
* Update one Plan.
|
|
783
|
+
* @param {PlanUpdateArgs} args - Arguments to update one Plan.
|
|
784
|
+
* @example
|
|
785
|
+
* // Update one Plan
|
|
786
|
+
* const plan = await prisma.plan.update({
|
|
787
|
+
* where: {
|
|
788
|
+
* // ... provide filter here
|
|
789
|
+
* },
|
|
790
|
+
* data: {
|
|
791
|
+
* // ... provide data here
|
|
792
|
+
* }
|
|
793
|
+
* })
|
|
794
|
+
*
|
|
795
|
+
*/
|
|
796
|
+
update<T extends PlanUpdateArgs>(args: Prisma.SelectSubset<T, PlanUpdateArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
797
|
+
/**
|
|
798
|
+
* Delete zero or more Plans.
|
|
799
|
+
* @param {PlanDeleteManyArgs} args - Arguments to filter Plans to delete.
|
|
800
|
+
* @example
|
|
801
|
+
* // Delete a few Plans
|
|
802
|
+
* const { count } = await prisma.plan.deleteMany({
|
|
803
|
+
* where: {
|
|
804
|
+
* // ... provide filter here
|
|
805
|
+
* }
|
|
806
|
+
* })
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
deleteMany<T extends PlanDeleteManyArgs>(args?: Prisma.SelectSubset<T, PlanDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
810
|
+
/**
|
|
811
|
+
* Update zero or more Plans.
|
|
812
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
813
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
814
|
+
* @param {PlanUpdateManyArgs} args - Arguments to update one or more rows.
|
|
815
|
+
* @example
|
|
816
|
+
* // Update many Plans
|
|
817
|
+
* const plan = await prisma.plan.updateMany({
|
|
818
|
+
* where: {
|
|
819
|
+
* // ... provide filter here
|
|
820
|
+
* },
|
|
821
|
+
* data: {
|
|
822
|
+
* // ... provide data here
|
|
823
|
+
* }
|
|
824
|
+
* })
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
updateMany<T extends PlanUpdateManyArgs>(args: Prisma.SelectSubset<T, PlanUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
828
|
+
/**
|
|
829
|
+
* Update zero or more Plans and returns the data updated in the database.
|
|
830
|
+
* @param {PlanUpdateManyAndReturnArgs} args - Arguments to update many Plans.
|
|
831
|
+
* @example
|
|
832
|
+
* // Update many Plans
|
|
833
|
+
* const plan = await prisma.plan.updateManyAndReturn({
|
|
834
|
+
* where: {
|
|
835
|
+
* // ... provide filter here
|
|
836
|
+
* },
|
|
837
|
+
* data: [
|
|
838
|
+
* // ... provide data here
|
|
839
|
+
* ]
|
|
840
|
+
* })
|
|
841
|
+
*
|
|
842
|
+
* // Update zero or more Plans and only return the `id`
|
|
843
|
+
* const planWithIdOnly = await prisma.plan.updateManyAndReturn({
|
|
844
|
+
* select: { id: true },
|
|
845
|
+
* where: {
|
|
846
|
+
* // ... provide filter here
|
|
847
|
+
* },
|
|
848
|
+
* data: [
|
|
849
|
+
* // ... provide data here
|
|
850
|
+
* ]
|
|
851
|
+
* })
|
|
852
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
853
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
updateManyAndReturn<T extends PlanUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PlanUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
857
|
+
/**
|
|
858
|
+
* Create or update one Plan.
|
|
859
|
+
* @param {PlanUpsertArgs} args - Arguments to update or create a Plan.
|
|
860
|
+
* @example
|
|
861
|
+
* // Update or create a Plan
|
|
862
|
+
* const plan = await prisma.plan.upsert({
|
|
863
|
+
* create: {
|
|
864
|
+
* // ... data to create a Plan
|
|
865
|
+
* },
|
|
866
|
+
* update: {
|
|
867
|
+
* // ... in case it already exists, update
|
|
868
|
+
* },
|
|
869
|
+
* where: {
|
|
870
|
+
* // ... the filter for the Plan we want to update
|
|
871
|
+
* }
|
|
872
|
+
* })
|
|
873
|
+
*/
|
|
874
|
+
upsert<T extends PlanUpsertArgs>(args: Prisma.SelectSubset<T, PlanUpsertArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
875
|
+
/**
|
|
876
|
+
* Count the number of Plans.
|
|
877
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
878
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
879
|
+
* @param {PlanCountArgs} args - Arguments to filter Plans to count.
|
|
880
|
+
* @example
|
|
881
|
+
* // Count the number of Plans
|
|
882
|
+
* const count = await prisma.plan.count({
|
|
883
|
+
* where: {
|
|
884
|
+
* // ... the filter for the Plans we want to count
|
|
885
|
+
* }
|
|
886
|
+
* })
|
|
887
|
+
**/
|
|
888
|
+
count<T extends PlanCountArgs>(args?: Prisma.Subset<T, PlanCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PlanCountAggregateOutputType> : number>;
|
|
889
|
+
/**
|
|
890
|
+
* Allows you to perform aggregations operations on a Plan.
|
|
891
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
892
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
893
|
+
* @param {PlanAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
894
|
+
* @example
|
|
895
|
+
* // Ordered by age ascending
|
|
896
|
+
* // Where email contains prisma.io
|
|
897
|
+
* // Limited to the 10 users
|
|
898
|
+
* const aggregations = await prisma.user.aggregate({
|
|
899
|
+
* _avg: {
|
|
900
|
+
* age: true,
|
|
901
|
+
* },
|
|
902
|
+
* where: {
|
|
903
|
+
* email: {
|
|
904
|
+
* contains: "prisma.io",
|
|
905
|
+
* },
|
|
906
|
+
* },
|
|
907
|
+
* orderBy: {
|
|
908
|
+
* age: "asc",
|
|
909
|
+
* },
|
|
910
|
+
* take: 10,
|
|
911
|
+
* })
|
|
912
|
+
**/
|
|
913
|
+
aggregate<T extends PlanAggregateArgs>(args: Prisma.Subset<T, PlanAggregateArgs>): Prisma.PrismaPromise<GetPlanAggregateType<T>>;
|
|
914
|
+
/**
|
|
915
|
+
* Group by Plan.
|
|
916
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
917
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
918
|
+
* @param {PlanGroupByArgs} args - Group by arguments.
|
|
919
|
+
* @example
|
|
920
|
+
* // Group by city, order by createdAt, get count
|
|
921
|
+
* const result = await prisma.user.groupBy({
|
|
922
|
+
* by: ['city', 'createdAt'],
|
|
923
|
+
* orderBy: {
|
|
924
|
+
* createdAt: true
|
|
925
|
+
* },
|
|
926
|
+
* _count: {
|
|
927
|
+
* _all: true
|
|
928
|
+
* },
|
|
929
|
+
* })
|
|
930
|
+
*
|
|
931
|
+
**/
|
|
932
|
+
groupBy<T extends PlanGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
933
|
+
orderBy: PlanGroupByArgs['orderBy'];
|
|
934
|
+
} : {
|
|
935
|
+
orderBy?: PlanGroupByArgs['orderBy'];
|
|
936
|
+
}, 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 ? {
|
|
937
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
938
|
+
Error,
|
|
939
|
+
'Field ',
|
|
940
|
+
P,
|
|
941
|
+
` in "having" needs to be provided in "by"`
|
|
942
|
+
];
|
|
943
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
944
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
945
|
+
}[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 ? {} : {
|
|
946
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
947
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
948
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
949
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PlanGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPlanGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
950
|
+
/**
|
|
951
|
+
* Fields of the Plan model
|
|
952
|
+
*/
|
|
953
|
+
readonly fields: PlanFieldRefs;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* The delegate class that acts as a "Promise-like" for Plan.
|
|
957
|
+
* Why is this prefixed with `Prisma__`?
|
|
958
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
959
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
960
|
+
*/
|
|
961
|
+
export interface Prisma__PlanClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
962
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
963
|
+
limit<T extends Prisma.Plan$limitArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Plan$limitArgs<ExtArgs>>): Prisma.Prisma__PlanLimitClient<runtime.Types.Result.GetResult<Prisma.$PlanLimitPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
964
|
+
subscriptions<T extends Prisma.Plan$subscriptionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Plan$subscriptionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
965
|
+
/**
|
|
966
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
967
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
968
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
969
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
970
|
+
*/
|
|
971
|
+
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>;
|
|
972
|
+
/**
|
|
973
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
974
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
975
|
+
* @returns A Promise for the completion of the callback.
|
|
976
|
+
*/
|
|
977
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
978
|
+
/**
|
|
979
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
980
|
+
* resolved value cannot be modified from the callback.
|
|
981
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
982
|
+
* @returns A Promise for the completion of the callback.
|
|
983
|
+
*/
|
|
984
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Fields of the Plan model
|
|
988
|
+
*/
|
|
989
|
+
export interface PlanFieldRefs {
|
|
990
|
+
readonly id: Prisma.FieldRef<"Plan", 'String'>;
|
|
991
|
+
readonly name: Prisma.FieldRef<"Plan", 'String'>;
|
|
992
|
+
readonly description: Prisma.FieldRef<"Plan", 'String'>;
|
|
993
|
+
readonly type: Prisma.FieldRef<"Plan", 'String'>;
|
|
994
|
+
readonly price: Prisma.FieldRef<"Plan", 'Int'>;
|
|
995
|
+
readonly stripePriceId: Prisma.FieldRef<"Plan", 'String'>;
|
|
996
|
+
readonly interval: Prisma.FieldRef<"Plan", 'String'>;
|
|
997
|
+
readonly active: Prisma.FieldRef<"Plan", 'Boolean'>;
|
|
998
|
+
readonly createdAt: Prisma.FieldRef<"Plan", 'DateTime'>;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Plan findUnique
|
|
1002
|
+
*/
|
|
1003
|
+
export type PlanFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
+
/**
|
|
1005
|
+
* Select specific fields to fetch from the Plan
|
|
1006
|
+
*/
|
|
1007
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1008
|
+
/**
|
|
1009
|
+
* Omit specific fields from the Plan
|
|
1010
|
+
*/
|
|
1011
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1012
|
+
/**
|
|
1013
|
+
* Choose, which related nodes to fetch as well
|
|
1014
|
+
*/
|
|
1015
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1016
|
+
/**
|
|
1017
|
+
* Filter, which Plan to fetch.
|
|
1018
|
+
*/
|
|
1019
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
1020
|
+
};
|
|
1021
|
+
/**
|
|
1022
|
+
* Plan findUniqueOrThrow
|
|
1023
|
+
*/
|
|
1024
|
+
export type PlanFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1025
|
+
/**
|
|
1026
|
+
* Select specific fields to fetch from the Plan
|
|
1027
|
+
*/
|
|
1028
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1029
|
+
/**
|
|
1030
|
+
* Omit specific fields from the Plan
|
|
1031
|
+
*/
|
|
1032
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Choose, which related nodes to fetch as well
|
|
1035
|
+
*/
|
|
1036
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Filter, which Plan to fetch.
|
|
1039
|
+
*/
|
|
1040
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* Plan findFirst
|
|
1044
|
+
*/
|
|
1045
|
+
export type PlanFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1046
|
+
/**
|
|
1047
|
+
* Select specific fields to fetch from the Plan
|
|
1048
|
+
*/
|
|
1049
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* Omit specific fields from the Plan
|
|
1052
|
+
*/
|
|
1053
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* Choose, which related nodes to fetch as well
|
|
1056
|
+
*/
|
|
1057
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Filter, which Plan to fetch.
|
|
1060
|
+
*/
|
|
1061
|
+
where?: Prisma.PlanWhereInput;
|
|
1062
|
+
/**
|
|
1063
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1064
|
+
*
|
|
1065
|
+
* Determine the order of Plans to fetch.
|
|
1066
|
+
*/
|
|
1067
|
+
orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[];
|
|
1068
|
+
/**
|
|
1069
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1070
|
+
*
|
|
1071
|
+
* Sets the position for searching for Plans.
|
|
1072
|
+
*/
|
|
1073
|
+
cursor?: Prisma.PlanWhereUniqueInput;
|
|
1074
|
+
/**
|
|
1075
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1076
|
+
*
|
|
1077
|
+
* Take `±n` Plans from the position of the cursor.
|
|
1078
|
+
*/
|
|
1079
|
+
take?: number;
|
|
1080
|
+
/**
|
|
1081
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1082
|
+
*
|
|
1083
|
+
* Skip the first `n` Plans.
|
|
1084
|
+
*/
|
|
1085
|
+
skip?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1088
|
+
*
|
|
1089
|
+
* Filter by unique combinations of Plans.
|
|
1090
|
+
*/
|
|
1091
|
+
distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[];
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Plan findFirstOrThrow
|
|
1095
|
+
*/
|
|
1096
|
+
export type PlanFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1097
|
+
/**
|
|
1098
|
+
* Select specific fields to fetch from the Plan
|
|
1099
|
+
*/
|
|
1100
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Omit specific fields from the Plan
|
|
1103
|
+
*/
|
|
1104
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Choose, which related nodes to fetch as well
|
|
1107
|
+
*/
|
|
1108
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Filter, which Plan to fetch.
|
|
1111
|
+
*/
|
|
1112
|
+
where?: Prisma.PlanWhereInput;
|
|
1113
|
+
/**
|
|
1114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1115
|
+
*
|
|
1116
|
+
* Determine the order of Plans to fetch.
|
|
1117
|
+
*/
|
|
1118
|
+
orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[];
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Sets the position for searching for Plans.
|
|
1123
|
+
*/
|
|
1124
|
+
cursor?: Prisma.PlanWhereUniqueInput;
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Take `±n` Plans from the position of the cursor.
|
|
1129
|
+
*/
|
|
1130
|
+
take?: number;
|
|
1131
|
+
/**
|
|
1132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1133
|
+
*
|
|
1134
|
+
* Skip the first `n` Plans.
|
|
1135
|
+
*/
|
|
1136
|
+
skip?: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Filter by unique combinations of Plans.
|
|
1141
|
+
*/
|
|
1142
|
+
distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[];
|
|
1143
|
+
};
|
|
1144
|
+
/**
|
|
1145
|
+
* Plan findMany
|
|
1146
|
+
*/
|
|
1147
|
+
export type PlanFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1148
|
+
/**
|
|
1149
|
+
* Select specific fields to fetch from the Plan
|
|
1150
|
+
*/
|
|
1151
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* Omit specific fields from the Plan
|
|
1154
|
+
*/
|
|
1155
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Choose, which related nodes to fetch as well
|
|
1158
|
+
*/
|
|
1159
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1160
|
+
/**
|
|
1161
|
+
* Filter, which Plans to fetch.
|
|
1162
|
+
*/
|
|
1163
|
+
where?: Prisma.PlanWhereInput;
|
|
1164
|
+
/**
|
|
1165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1166
|
+
*
|
|
1167
|
+
* Determine the order of Plans to fetch.
|
|
1168
|
+
*/
|
|
1169
|
+
orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[];
|
|
1170
|
+
/**
|
|
1171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1172
|
+
*
|
|
1173
|
+
* Sets the position for listing Plans.
|
|
1174
|
+
*/
|
|
1175
|
+
cursor?: Prisma.PlanWhereUniqueInput;
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1178
|
+
*
|
|
1179
|
+
* Take `±n` Plans from the position of the cursor.
|
|
1180
|
+
*/
|
|
1181
|
+
take?: number;
|
|
1182
|
+
/**
|
|
1183
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1184
|
+
*
|
|
1185
|
+
* Skip the first `n` Plans.
|
|
1186
|
+
*/
|
|
1187
|
+
skip?: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1190
|
+
*
|
|
1191
|
+
* Filter by unique combinations of Plans.
|
|
1192
|
+
*/
|
|
1193
|
+
distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[];
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* Plan create
|
|
1197
|
+
*/
|
|
1198
|
+
export type PlanCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1199
|
+
/**
|
|
1200
|
+
* Select specific fields to fetch from the Plan
|
|
1201
|
+
*/
|
|
1202
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* Omit specific fields from the Plan
|
|
1205
|
+
*/
|
|
1206
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1207
|
+
/**
|
|
1208
|
+
* Choose, which related nodes to fetch as well
|
|
1209
|
+
*/
|
|
1210
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1211
|
+
/**
|
|
1212
|
+
* The data needed to create a Plan.
|
|
1213
|
+
*/
|
|
1214
|
+
data: Prisma.XOR<Prisma.PlanCreateInput, Prisma.PlanUncheckedCreateInput>;
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* Plan createMany
|
|
1218
|
+
*/
|
|
1219
|
+
export type PlanCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1220
|
+
/**
|
|
1221
|
+
* The data used to create many Plans.
|
|
1222
|
+
*/
|
|
1223
|
+
data: Prisma.PlanCreateManyInput | Prisma.PlanCreateManyInput[];
|
|
1224
|
+
skipDuplicates?: boolean;
|
|
1225
|
+
};
|
|
1226
|
+
/**
|
|
1227
|
+
* Plan createManyAndReturn
|
|
1228
|
+
*/
|
|
1229
|
+
export type PlanCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1230
|
+
/**
|
|
1231
|
+
* Select specific fields to fetch from the Plan
|
|
1232
|
+
*/
|
|
1233
|
+
select?: Prisma.PlanSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* Omit specific fields from the Plan
|
|
1236
|
+
*/
|
|
1237
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* The data used to create many Plans.
|
|
1240
|
+
*/
|
|
1241
|
+
data: Prisma.PlanCreateManyInput | Prisma.PlanCreateManyInput[];
|
|
1242
|
+
skipDuplicates?: boolean;
|
|
1243
|
+
};
|
|
1244
|
+
/**
|
|
1245
|
+
* Plan update
|
|
1246
|
+
*/
|
|
1247
|
+
export type PlanUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1248
|
+
/**
|
|
1249
|
+
* Select specific fields to fetch from the Plan
|
|
1250
|
+
*/
|
|
1251
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* Omit specific fields from the Plan
|
|
1254
|
+
*/
|
|
1255
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1256
|
+
/**
|
|
1257
|
+
* Choose, which related nodes to fetch as well
|
|
1258
|
+
*/
|
|
1259
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* The data needed to update a Plan.
|
|
1262
|
+
*/
|
|
1263
|
+
data: Prisma.XOR<Prisma.PlanUpdateInput, Prisma.PlanUncheckedUpdateInput>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Choose, which Plan to update.
|
|
1266
|
+
*/
|
|
1267
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* Plan updateMany
|
|
1271
|
+
*/
|
|
1272
|
+
export type PlanUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1273
|
+
/**
|
|
1274
|
+
* The data used to update Plans.
|
|
1275
|
+
*/
|
|
1276
|
+
data: Prisma.XOR<Prisma.PlanUpdateManyMutationInput, Prisma.PlanUncheckedUpdateManyInput>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Filter which Plans to update
|
|
1279
|
+
*/
|
|
1280
|
+
where?: Prisma.PlanWhereInput;
|
|
1281
|
+
/**
|
|
1282
|
+
* Limit how many Plans to update.
|
|
1283
|
+
*/
|
|
1284
|
+
limit?: number;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Plan updateManyAndReturn
|
|
1288
|
+
*/
|
|
1289
|
+
export type PlanUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* Select specific fields to fetch from the Plan
|
|
1292
|
+
*/
|
|
1293
|
+
select?: Prisma.PlanSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Omit specific fields from the Plan
|
|
1296
|
+
*/
|
|
1297
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1298
|
+
/**
|
|
1299
|
+
* The data used to update Plans.
|
|
1300
|
+
*/
|
|
1301
|
+
data: Prisma.XOR<Prisma.PlanUpdateManyMutationInput, Prisma.PlanUncheckedUpdateManyInput>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Filter which Plans to update
|
|
1304
|
+
*/
|
|
1305
|
+
where?: Prisma.PlanWhereInput;
|
|
1306
|
+
/**
|
|
1307
|
+
* Limit how many Plans to update.
|
|
1308
|
+
*/
|
|
1309
|
+
limit?: number;
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Plan upsert
|
|
1313
|
+
*/
|
|
1314
|
+
export type PlanUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Select specific fields to fetch from the Plan
|
|
1317
|
+
*/
|
|
1318
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* Omit specific fields from the Plan
|
|
1321
|
+
*/
|
|
1322
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1323
|
+
/**
|
|
1324
|
+
* Choose, which related nodes to fetch as well
|
|
1325
|
+
*/
|
|
1326
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1327
|
+
/**
|
|
1328
|
+
* The filter to search for the Plan to update in case it exists.
|
|
1329
|
+
*/
|
|
1330
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
1331
|
+
/**
|
|
1332
|
+
* In case the Plan found by the `where` argument doesn't exist, create a new Plan with this data.
|
|
1333
|
+
*/
|
|
1334
|
+
create: Prisma.XOR<Prisma.PlanCreateInput, Prisma.PlanUncheckedCreateInput>;
|
|
1335
|
+
/**
|
|
1336
|
+
* In case the Plan was found with the provided `where` argument, update it with this data.
|
|
1337
|
+
*/
|
|
1338
|
+
update: Prisma.XOR<Prisma.PlanUpdateInput, Prisma.PlanUncheckedUpdateInput>;
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* Plan delete
|
|
1342
|
+
*/
|
|
1343
|
+
export type PlanDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Select specific fields to fetch from the Plan
|
|
1346
|
+
*/
|
|
1347
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* Omit specific fields from the Plan
|
|
1350
|
+
*/
|
|
1351
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1352
|
+
/**
|
|
1353
|
+
* Choose, which related nodes to fetch as well
|
|
1354
|
+
*/
|
|
1355
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Filter which Plan to delete.
|
|
1358
|
+
*/
|
|
1359
|
+
where: Prisma.PlanWhereUniqueInput;
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* Plan deleteMany
|
|
1363
|
+
*/
|
|
1364
|
+
export type PlanDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Filter which Plans to delete
|
|
1367
|
+
*/
|
|
1368
|
+
where?: Prisma.PlanWhereInput;
|
|
1369
|
+
/**
|
|
1370
|
+
* Limit how many Plans to delete.
|
|
1371
|
+
*/
|
|
1372
|
+
limit?: number;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* Plan.limit
|
|
1376
|
+
*/
|
|
1377
|
+
export type Plan$limitArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1378
|
+
/**
|
|
1379
|
+
* Select specific fields to fetch from the PlanLimit
|
|
1380
|
+
*/
|
|
1381
|
+
select?: Prisma.PlanLimitSelect<ExtArgs> | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* Omit specific fields from the PlanLimit
|
|
1384
|
+
*/
|
|
1385
|
+
omit?: Prisma.PlanLimitOmit<ExtArgs> | null;
|
|
1386
|
+
/**
|
|
1387
|
+
* Choose, which related nodes to fetch as well
|
|
1388
|
+
*/
|
|
1389
|
+
include?: Prisma.PlanLimitInclude<ExtArgs> | null;
|
|
1390
|
+
where?: Prisma.PlanLimitWhereInput;
|
|
1391
|
+
};
|
|
1392
|
+
/**
|
|
1393
|
+
* Plan.subscriptions
|
|
1394
|
+
*/
|
|
1395
|
+
export type Plan$subscriptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1396
|
+
/**
|
|
1397
|
+
* Select specific fields to fetch from the Subscription
|
|
1398
|
+
*/
|
|
1399
|
+
select?: Prisma.SubscriptionSelect<ExtArgs> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Omit specific fields from the Subscription
|
|
1402
|
+
*/
|
|
1403
|
+
omit?: Prisma.SubscriptionOmit<ExtArgs> | null;
|
|
1404
|
+
/**
|
|
1405
|
+
* Choose, which related nodes to fetch as well
|
|
1406
|
+
*/
|
|
1407
|
+
include?: Prisma.SubscriptionInclude<ExtArgs> | null;
|
|
1408
|
+
where?: Prisma.SubscriptionWhereInput;
|
|
1409
|
+
orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[];
|
|
1410
|
+
cursor?: Prisma.SubscriptionWhereUniqueInput;
|
|
1411
|
+
take?: number;
|
|
1412
|
+
skip?: number;
|
|
1413
|
+
distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[];
|
|
1414
|
+
};
|
|
1415
|
+
/**
|
|
1416
|
+
* Plan without action
|
|
1417
|
+
*/
|
|
1418
|
+
export type PlanDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1419
|
+
/**
|
|
1420
|
+
* Select specific fields to fetch from the Plan
|
|
1421
|
+
*/
|
|
1422
|
+
select?: Prisma.PlanSelect<ExtArgs> | null;
|
|
1423
|
+
/**
|
|
1424
|
+
* Omit specific fields from the Plan
|
|
1425
|
+
*/
|
|
1426
|
+
omit?: Prisma.PlanOmit<ExtArgs> | null;
|
|
1427
|
+
/**
|
|
1428
|
+
* Choose, which related nodes to fetch as well
|
|
1429
|
+
*/
|
|
1430
|
+
include?: Prisma.PlanInclude<ExtArgs> | null;
|
|
1431
|
+
};
|