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