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