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