@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,1847 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
4
|
+
/**
|
|
5
|
+
* Model ActivityLog
|
|
6
|
+
* Append-only system / user activity (tRPC and explicit events). Retention via admin or scheduled job.
|
|
7
|
+
*/
|
|
8
|
+
export type ActivityLogModel = runtime.Types.Result.DefaultSelection<Prisma.$ActivityLogPayload>;
|
|
9
|
+
export type AggregateActivityLog = {
|
|
10
|
+
_count: ActivityLogCountAggregateOutputType | null;
|
|
11
|
+
_avg: ActivityLogAvgAggregateOutputType | null;
|
|
12
|
+
_sum: ActivityLogSumAggregateOutputType | null;
|
|
13
|
+
_min: ActivityLogMinAggregateOutputType | null;
|
|
14
|
+
_max: ActivityLogMaxAggregateOutputType | null;
|
|
15
|
+
};
|
|
16
|
+
export type ActivityLogAvgAggregateOutputType = {
|
|
17
|
+
durationMs: number | null;
|
|
18
|
+
};
|
|
19
|
+
export type ActivityLogSumAggregateOutputType = {
|
|
20
|
+
durationMs: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type ActivityLogMinAggregateOutputType = {
|
|
23
|
+
id: string | null;
|
|
24
|
+
createdAt: Date | null;
|
|
25
|
+
actorUserId: string | null;
|
|
26
|
+
actorEmailSnapshot: string | null;
|
|
27
|
+
action: string | null;
|
|
28
|
+
category: $Enums.ActivityLogCategory | null;
|
|
29
|
+
resourceType: string | null;
|
|
30
|
+
resourceId: string | null;
|
|
31
|
+
workspaceId: string | null;
|
|
32
|
+
trpcPath: string | null;
|
|
33
|
+
httpMethod: string | null;
|
|
34
|
+
status: $Enums.ActivityLogStatus | null;
|
|
35
|
+
errorCode: string | null;
|
|
36
|
+
durationMs: number | null;
|
|
37
|
+
ipAddress: string | null;
|
|
38
|
+
userAgent: string | null;
|
|
39
|
+
};
|
|
40
|
+
export type ActivityLogMaxAggregateOutputType = {
|
|
41
|
+
id: string | null;
|
|
42
|
+
createdAt: Date | null;
|
|
43
|
+
actorUserId: string | null;
|
|
44
|
+
actorEmailSnapshot: string | null;
|
|
45
|
+
action: string | null;
|
|
46
|
+
category: $Enums.ActivityLogCategory | null;
|
|
47
|
+
resourceType: string | null;
|
|
48
|
+
resourceId: string | null;
|
|
49
|
+
workspaceId: string | null;
|
|
50
|
+
trpcPath: string | null;
|
|
51
|
+
httpMethod: string | null;
|
|
52
|
+
status: $Enums.ActivityLogStatus | null;
|
|
53
|
+
errorCode: string | null;
|
|
54
|
+
durationMs: number | null;
|
|
55
|
+
ipAddress: string | null;
|
|
56
|
+
userAgent: string | null;
|
|
57
|
+
};
|
|
58
|
+
export type ActivityLogCountAggregateOutputType = {
|
|
59
|
+
id: number;
|
|
60
|
+
createdAt: number;
|
|
61
|
+
actorUserId: number;
|
|
62
|
+
actorEmailSnapshot: number;
|
|
63
|
+
action: number;
|
|
64
|
+
category: number;
|
|
65
|
+
resourceType: number;
|
|
66
|
+
resourceId: number;
|
|
67
|
+
workspaceId: number;
|
|
68
|
+
trpcPath: number;
|
|
69
|
+
httpMethod: number;
|
|
70
|
+
status: number;
|
|
71
|
+
errorCode: number;
|
|
72
|
+
durationMs: number;
|
|
73
|
+
ipAddress: number;
|
|
74
|
+
userAgent: number;
|
|
75
|
+
metadata: number;
|
|
76
|
+
_all: number;
|
|
77
|
+
};
|
|
78
|
+
export type ActivityLogAvgAggregateInputType = {
|
|
79
|
+
durationMs?: true;
|
|
80
|
+
};
|
|
81
|
+
export type ActivityLogSumAggregateInputType = {
|
|
82
|
+
durationMs?: true;
|
|
83
|
+
};
|
|
84
|
+
export type ActivityLogMinAggregateInputType = {
|
|
85
|
+
id?: true;
|
|
86
|
+
createdAt?: true;
|
|
87
|
+
actorUserId?: true;
|
|
88
|
+
actorEmailSnapshot?: true;
|
|
89
|
+
action?: true;
|
|
90
|
+
category?: true;
|
|
91
|
+
resourceType?: true;
|
|
92
|
+
resourceId?: true;
|
|
93
|
+
workspaceId?: true;
|
|
94
|
+
trpcPath?: true;
|
|
95
|
+
httpMethod?: true;
|
|
96
|
+
status?: true;
|
|
97
|
+
errorCode?: true;
|
|
98
|
+
durationMs?: true;
|
|
99
|
+
ipAddress?: true;
|
|
100
|
+
userAgent?: true;
|
|
101
|
+
};
|
|
102
|
+
export type ActivityLogMaxAggregateInputType = {
|
|
103
|
+
id?: true;
|
|
104
|
+
createdAt?: true;
|
|
105
|
+
actorUserId?: true;
|
|
106
|
+
actorEmailSnapshot?: true;
|
|
107
|
+
action?: true;
|
|
108
|
+
category?: true;
|
|
109
|
+
resourceType?: true;
|
|
110
|
+
resourceId?: true;
|
|
111
|
+
workspaceId?: true;
|
|
112
|
+
trpcPath?: true;
|
|
113
|
+
httpMethod?: true;
|
|
114
|
+
status?: true;
|
|
115
|
+
errorCode?: true;
|
|
116
|
+
durationMs?: true;
|
|
117
|
+
ipAddress?: true;
|
|
118
|
+
userAgent?: true;
|
|
119
|
+
};
|
|
120
|
+
export type ActivityLogCountAggregateInputType = {
|
|
121
|
+
id?: true;
|
|
122
|
+
createdAt?: true;
|
|
123
|
+
actorUserId?: true;
|
|
124
|
+
actorEmailSnapshot?: true;
|
|
125
|
+
action?: true;
|
|
126
|
+
category?: true;
|
|
127
|
+
resourceType?: true;
|
|
128
|
+
resourceId?: true;
|
|
129
|
+
workspaceId?: true;
|
|
130
|
+
trpcPath?: true;
|
|
131
|
+
httpMethod?: true;
|
|
132
|
+
status?: true;
|
|
133
|
+
errorCode?: true;
|
|
134
|
+
durationMs?: true;
|
|
135
|
+
ipAddress?: true;
|
|
136
|
+
userAgent?: true;
|
|
137
|
+
metadata?: true;
|
|
138
|
+
_all?: true;
|
|
139
|
+
};
|
|
140
|
+
export type ActivityLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
+
/**
|
|
142
|
+
* Filter which ActivityLog to aggregate.
|
|
143
|
+
*/
|
|
144
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
145
|
+
/**
|
|
146
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
147
|
+
*
|
|
148
|
+
* Determine the order of ActivityLogs to fetch.
|
|
149
|
+
*/
|
|
150
|
+
orderBy?: Prisma.ActivityLogOrderByWithRelationInput | Prisma.ActivityLogOrderByWithRelationInput[];
|
|
151
|
+
/**
|
|
152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
153
|
+
*
|
|
154
|
+
* Sets the start position
|
|
155
|
+
*/
|
|
156
|
+
cursor?: Prisma.ActivityLogWhereUniqueInput;
|
|
157
|
+
/**
|
|
158
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
159
|
+
*
|
|
160
|
+
* Take `±n` ActivityLogs from the position of the cursor.
|
|
161
|
+
*/
|
|
162
|
+
take?: number;
|
|
163
|
+
/**
|
|
164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
165
|
+
*
|
|
166
|
+
* Skip the first `n` ActivityLogs.
|
|
167
|
+
*/
|
|
168
|
+
skip?: number;
|
|
169
|
+
/**
|
|
170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
171
|
+
*
|
|
172
|
+
* Count returned ActivityLogs
|
|
173
|
+
**/
|
|
174
|
+
_count?: true | ActivityLogCountAggregateInputType;
|
|
175
|
+
/**
|
|
176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
177
|
+
*
|
|
178
|
+
* Select which fields to average
|
|
179
|
+
**/
|
|
180
|
+
_avg?: ActivityLogAvgAggregateInputType;
|
|
181
|
+
/**
|
|
182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
183
|
+
*
|
|
184
|
+
* Select which fields to sum
|
|
185
|
+
**/
|
|
186
|
+
_sum?: ActivityLogSumAggregateInputType;
|
|
187
|
+
/**
|
|
188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
189
|
+
*
|
|
190
|
+
* Select which fields to find the minimum value
|
|
191
|
+
**/
|
|
192
|
+
_min?: ActivityLogMinAggregateInputType;
|
|
193
|
+
/**
|
|
194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
195
|
+
*
|
|
196
|
+
* Select which fields to find the maximum value
|
|
197
|
+
**/
|
|
198
|
+
_max?: ActivityLogMaxAggregateInputType;
|
|
199
|
+
};
|
|
200
|
+
export type GetActivityLogAggregateType<T extends ActivityLogAggregateArgs> = {
|
|
201
|
+
[P in keyof T & keyof AggregateActivityLog]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateActivityLog[P]> : Prisma.GetScalarType<T[P], AggregateActivityLog[P]>;
|
|
202
|
+
};
|
|
203
|
+
export type ActivityLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
204
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
205
|
+
orderBy?: Prisma.ActivityLogOrderByWithAggregationInput | Prisma.ActivityLogOrderByWithAggregationInput[];
|
|
206
|
+
by: Prisma.ActivityLogScalarFieldEnum[] | Prisma.ActivityLogScalarFieldEnum;
|
|
207
|
+
having?: Prisma.ActivityLogScalarWhereWithAggregatesInput;
|
|
208
|
+
take?: number;
|
|
209
|
+
skip?: number;
|
|
210
|
+
_count?: ActivityLogCountAggregateInputType | true;
|
|
211
|
+
_avg?: ActivityLogAvgAggregateInputType;
|
|
212
|
+
_sum?: ActivityLogSumAggregateInputType;
|
|
213
|
+
_min?: ActivityLogMinAggregateInputType;
|
|
214
|
+
_max?: ActivityLogMaxAggregateInputType;
|
|
215
|
+
};
|
|
216
|
+
export type ActivityLogGroupByOutputType = {
|
|
217
|
+
id: string;
|
|
218
|
+
createdAt: Date;
|
|
219
|
+
actorUserId: string | null;
|
|
220
|
+
actorEmailSnapshot: string | null;
|
|
221
|
+
action: string;
|
|
222
|
+
category: $Enums.ActivityLogCategory;
|
|
223
|
+
resourceType: string | null;
|
|
224
|
+
resourceId: string | null;
|
|
225
|
+
workspaceId: string | null;
|
|
226
|
+
trpcPath: string | null;
|
|
227
|
+
httpMethod: string | null;
|
|
228
|
+
status: $Enums.ActivityLogStatus;
|
|
229
|
+
errorCode: string | null;
|
|
230
|
+
durationMs: number;
|
|
231
|
+
ipAddress: string | null;
|
|
232
|
+
userAgent: string | null;
|
|
233
|
+
metadata: runtime.JsonValue | null;
|
|
234
|
+
_count: ActivityLogCountAggregateOutputType | null;
|
|
235
|
+
_avg: ActivityLogAvgAggregateOutputType | null;
|
|
236
|
+
_sum: ActivityLogSumAggregateOutputType | null;
|
|
237
|
+
_min: ActivityLogMinAggregateOutputType | null;
|
|
238
|
+
_max: ActivityLogMaxAggregateOutputType | null;
|
|
239
|
+
};
|
|
240
|
+
export type GetActivityLogGroupByPayload<T extends ActivityLogGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ActivityLogGroupByOutputType, T['by']> & {
|
|
241
|
+
[P in ((keyof T) & (keyof ActivityLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ActivityLogGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ActivityLogGroupByOutputType[P]>;
|
|
242
|
+
}>>;
|
|
243
|
+
export type ActivityLogWhereInput = {
|
|
244
|
+
AND?: Prisma.ActivityLogWhereInput | Prisma.ActivityLogWhereInput[];
|
|
245
|
+
OR?: Prisma.ActivityLogWhereInput[];
|
|
246
|
+
NOT?: Prisma.ActivityLogWhereInput | Prisma.ActivityLogWhereInput[];
|
|
247
|
+
id?: Prisma.StringFilter<"ActivityLog"> | string;
|
|
248
|
+
createdAt?: Prisma.DateTimeFilter<"ActivityLog"> | Date | string;
|
|
249
|
+
actorUserId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
250
|
+
actorEmailSnapshot?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
251
|
+
action?: Prisma.StringFilter<"ActivityLog"> | string;
|
|
252
|
+
category?: Prisma.EnumActivityLogCategoryFilter<"ActivityLog"> | $Enums.ActivityLogCategory;
|
|
253
|
+
resourceType?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
254
|
+
resourceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
255
|
+
workspaceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
256
|
+
trpcPath?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
257
|
+
httpMethod?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
258
|
+
status?: Prisma.EnumActivityLogStatusFilter<"ActivityLog"> | $Enums.ActivityLogStatus;
|
|
259
|
+
errorCode?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
260
|
+
durationMs?: Prisma.IntFilter<"ActivityLog"> | number;
|
|
261
|
+
ipAddress?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
262
|
+
userAgent?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
263
|
+
metadata?: Prisma.JsonNullableFilter<"ActivityLog">;
|
|
264
|
+
actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
265
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
|
|
266
|
+
};
|
|
267
|
+
export type ActivityLogOrderByWithRelationInput = {
|
|
268
|
+
id?: Prisma.SortOrder;
|
|
269
|
+
createdAt?: Prisma.SortOrder;
|
|
270
|
+
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
271
|
+
actorEmailSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
272
|
+
action?: Prisma.SortOrder;
|
|
273
|
+
category?: Prisma.SortOrder;
|
|
274
|
+
resourceType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
275
|
+
resourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
276
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
277
|
+
trpcPath?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
278
|
+
httpMethod?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
279
|
+
status?: Prisma.SortOrder;
|
|
280
|
+
errorCode?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
281
|
+
durationMs?: Prisma.SortOrder;
|
|
282
|
+
ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
283
|
+
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
284
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
285
|
+
actor?: Prisma.UserOrderByWithRelationInput;
|
|
286
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput;
|
|
287
|
+
};
|
|
288
|
+
export type ActivityLogWhereUniqueInput = Prisma.AtLeast<{
|
|
289
|
+
id?: string;
|
|
290
|
+
AND?: Prisma.ActivityLogWhereInput | Prisma.ActivityLogWhereInput[];
|
|
291
|
+
OR?: Prisma.ActivityLogWhereInput[];
|
|
292
|
+
NOT?: Prisma.ActivityLogWhereInput | Prisma.ActivityLogWhereInput[];
|
|
293
|
+
createdAt?: Prisma.DateTimeFilter<"ActivityLog"> | Date | string;
|
|
294
|
+
actorUserId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
295
|
+
actorEmailSnapshot?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
296
|
+
action?: Prisma.StringFilter<"ActivityLog"> | string;
|
|
297
|
+
category?: Prisma.EnumActivityLogCategoryFilter<"ActivityLog"> | $Enums.ActivityLogCategory;
|
|
298
|
+
resourceType?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
299
|
+
resourceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
300
|
+
workspaceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
301
|
+
trpcPath?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
302
|
+
httpMethod?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
303
|
+
status?: Prisma.EnumActivityLogStatusFilter<"ActivityLog"> | $Enums.ActivityLogStatus;
|
|
304
|
+
errorCode?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
305
|
+
durationMs?: Prisma.IntFilter<"ActivityLog"> | number;
|
|
306
|
+
ipAddress?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
307
|
+
userAgent?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
308
|
+
metadata?: Prisma.JsonNullableFilter<"ActivityLog">;
|
|
309
|
+
actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
310
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
|
|
311
|
+
}, "id">;
|
|
312
|
+
export type ActivityLogOrderByWithAggregationInput = {
|
|
313
|
+
id?: Prisma.SortOrder;
|
|
314
|
+
createdAt?: Prisma.SortOrder;
|
|
315
|
+
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
316
|
+
actorEmailSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
317
|
+
action?: Prisma.SortOrder;
|
|
318
|
+
category?: Prisma.SortOrder;
|
|
319
|
+
resourceType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
320
|
+
resourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
321
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
322
|
+
trpcPath?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
323
|
+
httpMethod?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
324
|
+
status?: Prisma.SortOrder;
|
|
325
|
+
errorCode?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
326
|
+
durationMs?: Prisma.SortOrder;
|
|
327
|
+
ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
328
|
+
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
329
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
330
|
+
_count?: Prisma.ActivityLogCountOrderByAggregateInput;
|
|
331
|
+
_avg?: Prisma.ActivityLogAvgOrderByAggregateInput;
|
|
332
|
+
_max?: Prisma.ActivityLogMaxOrderByAggregateInput;
|
|
333
|
+
_min?: Prisma.ActivityLogMinOrderByAggregateInput;
|
|
334
|
+
_sum?: Prisma.ActivityLogSumOrderByAggregateInput;
|
|
335
|
+
};
|
|
336
|
+
export type ActivityLogScalarWhereWithAggregatesInput = {
|
|
337
|
+
AND?: Prisma.ActivityLogScalarWhereWithAggregatesInput | Prisma.ActivityLogScalarWhereWithAggregatesInput[];
|
|
338
|
+
OR?: Prisma.ActivityLogScalarWhereWithAggregatesInput[];
|
|
339
|
+
NOT?: Prisma.ActivityLogScalarWhereWithAggregatesInput | Prisma.ActivityLogScalarWhereWithAggregatesInput[];
|
|
340
|
+
id?: Prisma.StringWithAggregatesFilter<"ActivityLog"> | string;
|
|
341
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ActivityLog"> | Date | string;
|
|
342
|
+
actorUserId?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
343
|
+
actorEmailSnapshot?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
344
|
+
action?: Prisma.StringWithAggregatesFilter<"ActivityLog"> | string;
|
|
345
|
+
category?: Prisma.EnumActivityLogCategoryWithAggregatesFilter<"ActivityLog"> | $Enums.ActivityLogCategory;
|
|
346
|
+
resourceType?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
347
|
+
resourceId?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
348
|
+
workspaceId?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
349
|
+
trpcPath?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
350
|
+
httpMethod?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
351
|
+
status?: Prisma.EnumActivityLogStatusWithAggregatesFilter<"ActivityLog"> | $Enums.ActivityLogStatus;
|
|
352
|
+
errorCode?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
353
|
+
durationMs?: Prisma.IntWithAggregatesFilter<"ActivityLog"> | number;
|
|
354
|
+
ipAddress?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
355
|
+
userAgent?: Prisma.StringNullableWithAggregatesFilter<"ActivityLog"> | string | null;
|
|
356
|
+
metadata?: Prisma.JsonNullableWithAggregatesFilter<"ActivityLog">;
|
|
357
|
+
};
|
|
358
|
+
export type ActivityLogCreateInput = {
|
|
359
|
+
id?: string;
|
|
360
|
+
createdAt?: Date | string;
|
|
361
|
+
actorEmailSnapshot?: string | null;
|
|
362
|
+
action: string;
|
|
363
|
+
category: $Enums.ActivityLogCategory;
|
|
364
|
+
resourceType?: string | null;
|
|
365
|
+
resourceId?: string | null;
|
|
366
|
+
trpcPath?: string | null;
|
|
367
|
+
httpMethod?: string | null;
|
|
368
|
+
status: $Enums.ActivityLogStatus;
|
|
369
|
+
errorCode?: string | null;
|
|
370
|
+
durationMs: number;
|
|
371
|
+
ipAddress?: string | null;
|
|
372
|
+
userAgent?: string | null;
|
|
373
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
374
|
+
actor?: Prisma.UserCreateNestedOneWithoutActivityLogsInput;
|
|
375
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutActivityLogsInput;
|
|
376
|
+
};
|
|
377
|
+
export type ActivityLogUncheckedCreateInput = {
|
|
378
|
+
id?: string;
|
|
379
|
+
createdAt?: Date | string;
|
|
380
|
+
actorUserId?: string | null;
|
|
381
|
+
actorEmailSnapshot?: string | null;
|
|
382
|
+
action: string;
|
|
383
|
+
category: $Enums.ActivityLogCategory;
|
|
384
|
+
resourceType?: string | null;
|
|
385
|
+
resourceId?: string | null;
|
|
386
|
+
workspaceId?: string | null;
|
|
387
|
+
trpcPath?: string | null;
|
|
388
|
+
httpMethod?: string | null;
|
|
389
|
+
status: $Enums.ActivityLogStatus;
|
|
390
|
+
errorCode?: string | null;
|
|
391
|
+
durationMs: number;
|
|
392
|
+
ipAddress?: string | null;
|
|
393
|
+
userAgent?: string | null;
|
|
394
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
395
|
+
};
|
|
396
|
+
export type ActivityLogUpdateInput = {
|
|
397
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
398
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
399
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
400
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
401
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
402
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
403
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
404
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
405
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
406
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
407
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
408
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
409
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
410
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
411
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
412
|
+
actor?: Prisma.UserUpdateOneWithoutActivityLogsNestedInput;
|
|
413
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutActivityLogsNestedInput;
|
|
414
|
+
};
|
|
415
|
+
export type ActivityLogUncheckedUpdateInput = {
|
|
416
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
417
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
418
|
+
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
419
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
420
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
421
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
422
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
423
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
424
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
425
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
426
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
427
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
428
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
429
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
430
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
431
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
432
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
433
|
+
};
|
|
434
|
+
export type ActivityLogCreateManyInput = {
|
|
435
|
+
id?: string;
|
|
436
|
+
createdAt?: Date | string;
|
|
437
|
+
actorUserId?: string | null;
|
|
438
|
+
actorEmailSnapshot?: string | null;
|
|
439
|
+
action: string;
|
|
440
|
+
category: $Enums.ActivityLogCategory;
|
|
441
|
+
resourceType?: string | null;
|
|
442
|
+
resourceId?: string | null;
|
|
443
|
+
workspaceId?: string | null;
|
|
444
|
+
trpcPath?: string | null;
|
|
445
|
+
httpMethod?: string | null;
|
|
446
|
+
status: $Enums.ActivityLogStatus;
|
|
447
|
+
errorCode?: string | null;
|
|
448
|
+
durationMs: number;
|
|
449
|
+
ipAddress?: string | null;
|
|
450
|
+
userAgent?: string | null;
|
|
451
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
452
|
+
};
|
|
453
|
+
export type ActivityLogUpdateManyMutationInput = {
|
|
454
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
455
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
456
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
457
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
458
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
459
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
460
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
461
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
462
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
463
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
464
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
465
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
466
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
467
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
468
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
469
|
+
};
|
|
470
|
+
export type ActivityLogUncheckedUpdateManyInput = {
|
|
471
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
472
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
473
|
+
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
474
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
475
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
476
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
477
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
478
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
479
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
480
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
481
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
482
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
483
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
484
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
485
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
486
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
487
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
488
|
+
};
|
|
489
|
+
export type ActivityLogListRelationFilter = {
|
|
490
|
+
every?: Prisma.ActivityLogWhereInput;
|
|
491
|
+
some?: Prisma.ActivityLogWhereInput;
|
|
492
|
+
none?: Prisma.ActivityLogWhereInput;
|
|
493
|
+
};
|
|
494
|
+
export type ActivityLogOrderByRelationAggregateInput = {
|
|
495
|
+
_count?: Prisma.SortOrder;
|
|
496
|
+
};
|
|
497
|
+
export type ActivityLogCountOrderByAggregateInput = {
|
|
498
|
+
id?: Prisma.SortOrder;
|
|
499
|
+
createdAt?: Prisma.SortOrder;
|
|
500
|
+
actorUserId?: Prisma.SortOrder;
|
|
501
|
+
actorEmailSnapshot?: Prisma.SortOrder;
|
|
502
|
+
action?: Prisma.SortOrder;
|
|
503
|
+
category?: Prisma.SortOrder;
|
|
504
|
+
resourceType?: Prisma.SortOrder;
|
|
505
|
+
resourceId?: Prisma.SortOrder;
|
|
506
|
+
workspaceId?: Prisma.SortOrder;
|
|
507
|
+
trpcPath?: Prisma.SortOrder;
|
|
508
|
+
httpMethod?: Prisma.SortOrder;
|
|
509
|
+
status?: Prisma.SortOrder;
|
|
510
|
+
errorCode?: Prisma.SortOrder;
|
|
511
|
+
durationMs?: Prisma.SortOrder;
|
|
512
|
+
ipAddress?: Prisma.SortOrder;
|
|
513
|
+
userAgent?: Prisma.SortOrder;
|
|
514
|
+
metadata?: Prisma.SortOrder;
|
|
515
|
+
};
|
|
516
|
+
export type ActivityLogAvgOrderByAggregateInput = {
|
|
517
|
+
durationMs?: Prisma.SortOrder;
|
|
518
|
+
};
|
|
519
|
+
export type ActivityLogMaxOrderByAggregateInput = {
|
|
520
|
+
id?: Prisma.SortOrder;
|
|
521
|
+
createdAt?: Prisma.SortOrder;
|
|
522
|
+
actorUserId?: Prisma.SortOrder;
|
|
523
|
+
actorEmailSnapshot?: Prisma.SortOrder;
|
|
524
|
+
action?: Prisma.SortOrder;
|
|
525
|
+
category?: Prisma.SortOrder;
|
|
526
|
+
resourceType?: Prisma.SortOrder;
|
|
527
|
+
resourceId?: Prisma.SortOrder;
|
|
528
|
+
workspaceId?: Prisma.SortOrder;
|
|
529
|
+
trpcPath?: Prisma.SortOrder;
|
|
530
|
+
httpMethod?: Prisma.SortOrder;
|
|
531
|
+
status?: Prisma.SortOrder;
|
|
532
|
+
errorCode?: Prisma.SortOrder;
|
|
533
|
+
durationMs?: Prisma.SortOrder;
|
|
534
|
+
ipAddress?: Prisma.SortOrder;
|
|
535
|
+
userAgent?: Prisma.SortOrder;
|
|
536
|
+
};
|
|
537
|
+
export type ActivityLogMinOrderByAggregateInput = {
|
|
538
|
+
id?: Prisma.SortOrder;
|
|
539
|
+
createdAt?: Prisma.SortOrder;
|
|
540
|
+
actorUserId?: Prisma.SortOrder;
|
|
541
|
+
actorEmailSnapshot?: Prisma.SortOrder;
|
|
542
|
+
action?: Prisma.SortOrder;
|
|
543
|
+
category?: Prisma.SortOrder;
|
|
544
|
+
resourceType?: Prisma.SortOrder;
|
|
545
|
+
resourceId?: Prisma.SortOrder;
|
|
546
|
+
workspaceId?: Prisma.SortOrder;
|
|
547
|
+
trpcPath?: Prisma.SortOrder;
|
|
548
|
+
httpMethod?: Prisma.SortOrder;
|
|
549
|
+
status?: Prisma.SortOrder;
|
|
550
|
+
errorCode?: Prisma.SortOrder;
|
|
551
|
+
durationMs?: Prisma.SortOrder;
|
|
552
|
+
ipAddress?: Prisma.SortOrder;
|
|
553
|
+
userAgent?: Prisma.SortOrder;
|
|
554
|
+
};
|
|
555
|
+
export type ActivityLogSumOrderByAggregateInput = {
|
|
556
|
+
durationMs?: Prisma.SortOrder;
|
|
557
|
+
};
|
|
558
|
+
export type ActivityLogCreateNestedManyWithoutActorInput = {
|
|
559
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput> | Prisma.ActivityLogCreateWithoutActorInput[] | Prisma.ActivityLogUncheckedCreateWithoutActorInput[];
|
|
560
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutActorInput | Prisma.ActivityLogCreateOrConnectWithoutActorInput[];
|
|
561
|
+
createMany?: Prisma.ActivityLogCreateManyActorInputEnvelope;
|
|
562
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
563
|
+
};
|
|
564
|
+
export type ActivityLogUncheckedCreateNestedManyWithoutActorInput = {
|
|
565
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput> | Prisma.ActivityLogCreateWithoutActorInput[] | Prisma.ActivityLogUncheckedCreateWithoutActorInput[];
|
|
566
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutActorInput | Prisma.ActivityLogCreateOrConnectWithoutActorInput[];
|
|
567
|
+
createMany?: Prisma.ActivityLogCreateManyActorInputEnvelope;
|
|
568
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
569
|
+
};
|
|
570
|
+
export type ActivityLogUpdateManyWithoutActorNestedInput = {
|
|
571
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput> | Prisma.ActivityLogCreateWithoutActorInput[] | Prisma.ActivityLogUncheckedCreateWithoutActorInput[];
|
|
572
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutActorInput | Prisma.ActivityLogCreateOrConnectWithoutActorInput[];
|
|
573
|
+
upsert?: Prisma.ActivityLogUpsertWithWhereUniqueWithoutActorInput | Prisma.ActivityLogUpsertWithWhereUniqueWithoutActorInput[];
|
|
574
|
+
createMany?: Prisma.ActivityLogCreateManyActorInputEnvelope;
|
|
575
|
+
set?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
576
|
+
disconnect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
577
|
+
delete?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
578
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
579
|
+
update?: Prisma.ActivityLogUpdateWithWhereUniqueWithoutActorInput | Prisma.ActivityLogUpdateWithWhereUniqueWithoutActorInput[];
|
|
580
|
+
updateMany?: Prisma.ActivityLogUpdateManyWithWhereWithoutActorInput | Prisma.ActivityLogUpdateManyWithWhereWithoutActorInput[];
|
|
581
|
+
deleteMany?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
582
|
+
};
|
|
583
|
+
export type ActivityLogUncheckedUpdateManyWithoutActorNestedInput = {
|
|
584
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput> | Prisma.ActivityLogCreateWithoutActorInput[] | Prisma.ActivityLogUncheckedCreateWithoutActorInput[];
|
|
585
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutActorInput | Prisma.ActivityLogCreateOrConnectWithoutActorInput[];
|
|
586
|
+
upsert?: Prisma.ActivityLogUpsertWithWhereUniqueWithoutActorInput | Prisma.ActivityLogUpsertWithWhereUniqueWithoutActorInput[];
|
|
587
|
+
createMany?: Prisma.ActivityLogCreateManyActorInputEnvelope;
|
|
588
|
+
set?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
589
|
+
disconnect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
590
|
+
delete?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
591
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
592
|
+
update?: Prisma.ActivityLogUpdateWithWhereUniqueWithoutActorInput | Prisma.ActivityLogUpdateWithWhereUniqueWithoutActorInput[];
|
|
593
|
+
updateMany?: Prisma.ActivityLogUpdateManyWithWhereWithoutActorInput | Prisma.ActivityLogUpdateManyWithWhereWithoutActorInput[];
|
|
594
|
+
deleteMany?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
595
|
+
};
|
|
596
|
+
export type ActivityLogCreateNestedManyWithoutWorkspaceInput = {
|
|
597
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput> | Prisma.ActivityLogCreateWithoutWorkspaceInput[] | Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput[];
|
|
598
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput | Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput[];
|
|
599
|
+
createMany?: Prisma.ActivityLogCreateManyWorkspaceInputEnvelope;
|
|
600
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
601
|
+
};
|
|
602
|
+
export type ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
603
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput> | Prisma.ActivityLogCreateWithoutWorkspaceInput[] | Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput[];
|
|
604
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput | Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput[];
|
|
605
|
+
createMany?: Prisma.ActivityLogCreateManyWorkspaceInputEnvelope;
|
|
606
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
607
|
+
};
|
|
608
|
+
export type ActivityLogUpdateManyWithoutWorkspaceNestedInput = {
|
|
609
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput> | Prisma.ActivityLogCreateWithoutWorkspaceInput[] | Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput[];
|
|
610
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput | Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput[];
|
|
611
|
+
upsert?: Prisma.ActivityLogUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ActivityLogUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
612
|
+
createMany?: Prisma.ActivityLogCreateManyWorkspaceInputEnvelope;
|
|
613
|
+
set?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
614
|
+
disconnect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
615
|
+
delete?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
616
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
617
|
+
update?: Prisma.ActivityLogUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ActivityLogUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
618
|
+
updateMany?: Prisma.ActivityLogUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ActivityLogUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
619
|
+
deleteMany?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
620
|
+
};
|
|
621
|
+
export type ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
622
|
+
create?: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput> | Prisma.ActivityLogCreateWithoutWorkspaceInput[] | Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput[];
|
|
623
|
+
connectOrCreate?: Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput | Prisma.ActivityLogCreateOrConnectWithoutWorkspaceInput[];
|
|
624
|
+
upsert?: Prisma.ActivityLogUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ActivityLogUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
625
|
+
createMany?: Prisma.ActivityLogCreateManyWorkspaceInputEnvelope;
|
|
626
|
+
set?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
627
|
+
disconnect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
628
|
+
delete?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
629
|
+
connect?: Prisma.ActivityLogWhereUniqueInput | Prisma.ActivityLogWhereUniqueInput[];
|
|
630
|
+
update?: Prisma.ActivityLogUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ActivityLogUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
631
|
+
updateMany?: Prisma.ActivityLogUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ActivityLogUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
632
|
+
deleteMany?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
633
|
+
};
|
|
634
|
+
export type EnumActivityLogCategoryFieldUpdateOperationsInput = {
|
|
635
|
+
set?: $Enums.ActivityLogCategory;
|
|
636
|
+
};
|
|
637
|
+
export type EnumActivityLogStatusFieldUpdateOperationsInput = {
|
|
638
|
+
set?: $Enums.ActivityLogStatus;
|
|
639
|
+
};
|
|
640
|
+
export type ActivityLogCreateWithoutActorInput = {
|
|
641
|
+
id?: string;
|
|
642
|
+
createdAt?: Date | string;
|
|
643
|
+
actorEmailSnapshot?: string | null;
|
|
644
|
+
action: string;
|
|
645
|
+
category: $Enums.ActivityLogCategory;
|
|
646
|
+
resourceType?: string | null;
|
|
647
|
+
resourceId?: string | null;
|
|
648
|
+
trpcPath?: string | null;
|
|
649
|
+
httpMethod?: string | null;
|
|
650
|
+
status: $Enums.ActivityLogStatus;
|
|
651
|
+
errorCode?: string | null;
|
|
652
|
+
durationMs: number;
|
|
653
|
+
ipAddress?: string | null;
|
|
654
|
+
userAgent?: string | null;
|
|
655
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
656
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutActivityLogsInput;
|
|
657
|
+
};
|
|
658
|
+
export type ActivityLogUncheckedCreateWithoutActorInput = {
|
|
659
|
+
id?: string;
|
|
660
|
+
createdAt?: Date | string;
|
|
661
|
+
actorEmailSnapshot?: string | null;
|
|
662
|
+
action: string;
|
|
663
|
+
category: $Enums.ActivityLogCategory;
|
|
664
|
+
resourceType?: string | null;
|
|
665
|
+
resourceId?: string | null;
|
|
666
|
+
workspaceId?: string | null;
|
|
667
|
+
trpcPath?: string | null;
|
|
668
|
+
httpMethod?: string | null;
|
|
669
|
+
status: $Enums.ActivityLogStatus;
|
|
670
|
+
errorCode?: string | null;
|
|
671
|
+
durationMs: number;
|
|
672
|
+
ipAddress?: string | null;
|
|
673
|
+
userAgent?: string | null;
|
|
674
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
675
|
+
};
|
|
676
|
+
export type ActivityLogCreateOrConnectWithoutActorInput = {
|
|
677
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
678
|
+
create: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput>;
|
|
679
|
+
};
|
|
680
|
+
export type ActivityLogCreateManyActorInputEnvelope = {
|
|
681
|
+
data: Prisma.ActivityLogCreateManyActorInput | Prisma.ActivityLogCreateManyActorInput[];
|
|
682
|
+
skipDuplicates?: boolean;
|
|
683
|
+
};
|
|
684
|
+
export type ActivityLogUpsertWithWhereUniqueWithoutActorInput = {
|
|
685
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
686
|
+
update: Prisma.XOR<Prisma.ActivityLogUpdateWithoutActorInput, Prisma.ActivityLogUncheckedUpdateWithoutActorInput>;
|
|
687
|
+
create: Prisma.XOR<Prisma.ActivityLogCreateWithoutActorInput, Prisma.ActivityLogUncheckedCreateWithoutActorInput>;
|
|
688
|
+
};
|
|
689
|
+
export type ActivityLogUpdateWithWhereUniqueWithoutActorInput = {
|
|
690
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
691
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateWithoutActorInput, Prisma.ActivityLogUncheckedUpdateWithoutActorInput>;
|
|
692
|
+
};
|
|
693
|
+
export type ActivityLogUpdateManyWithWhereWithoutActorInput = {
|
|
694
|
+
where: Prisma.ActivityLogScalarWhereInput;
|
|
695
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateManyMutationInput, Prisma.ActivityLogUncheckedUpdateManyWithoutActorInput>;
|
|
696
|
+
};
|
|
697
|
+
export type ActivityLogScalarWhereInput = {
|
|
698
|
+
AND?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
699
|
+
OR?: Prisma.ActivityLogScalarWhereInput[];
|
|
700
|
+
NOT?: Prisma.ActivityLogScalarWhereInput | Prisma.ActivityLogScalarWhereInput[];
|
|
701
|
+
id?: Prisma.StringFilter<"ActivityLog"> | string;
|
|
702
|
+
createdAt?: Prisma.DateTimeFilter<"ActivityLog"> | Date | string;
|
|
703
|
+
actorUserId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
704
|
+
actorEmailSnapshot?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
705
|
+
action?: Prisma.StringFilter<"ActivityLog"> | string;
|
|
706
|
+
category?: Prisma.EnumActivityLogCategoryFilter<"ActivityLog"> | $Enums.ActivityLogCategory;
|
|
707
|
+
resourceType?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
708
|
+
resourceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
709
|
+
workspaceId?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
710
|
+
trpcPath?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
711
|
+
httpMethod?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
712
|
+
status?: Prisma.EnumActivityLogStatusFilter<"ActivityLog"> | $Enums.ActivityLogStatus;
|
|
713
|
+
errorCode?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
714
|
+
durationMs?: Prisma.IntFilter<"ActivityLog"> | number;
|
|
715
|
+
ipAddress?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
716
|
+
userAgent?: Prisma.StringNullableFilter<"ActivityLog"> | string | null;
|
|
717
|
+
metadata?: Prisma.JsonNullableFilter<"ActivityLog">;
|
|
718
|
+
};
|
|
719
|
+
export type ActivityLogCreateWithoutWorkspaceInput = {
|
|
720
|
+
id?: string;
|
|
721
|
+
createdAt?: Date | string;
|
|
722
|
+
actorEmailSnapshot?: string | null;
|
|
723
|
+
action: string;
|
|
724
|
+
category: $Enums.ActivityLogCategory;
|
|
725
|
+
resourceType?: string | null;
|
|
726
|
+
resourceId?: string | null;
|
|
727
|
+
trpcPath?: string | null;
|
|
728
|
+
httpMethod?: string | null;
|
|
729
|
+
status: $Enums.ActivityLogStatus;
|
|
730
|
+
errorCode?: string | null;
|
|
731
|
+
durationMs: number;
|
|
732
|
+
ipAddress?: string | null;
|
|
733
|
+
userAgent?: string | null;
|
|
734
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
735
|
+
actor?: Prisma.UserCreateNestedOneWithoutActivityLogsInput;
|
|
736
|
+
};
|
|
737
|
+
export type ActivityLogUncheckedCreateWithoutWorkspaceInput = {
|
|
738
|
+
id?: string;
|
|
739
|
+
createdAt?: Date | string;
|
|
740
|
+
actorUserId?: string | null;
|
|
741
|
+
actorEmailSnapshot?: string | null;
|
|
742
|
+
action: string;
|
|
743
|
+
category: $Enums.ActivityLogCategory;
|
|
744
|
+
resourceType?: string | null;
|
|
745
|
+
resourceId?: string | null;
|
|
746
|
+
trpcPath?: string | null;
|
|
747
|
+
httpMethod?: string | null;
|
|
748
|
+
status: $Enums.ActivityLogStatus;
|
|
749
|
+
errorCode?: string | null;
|
|
750
|
+
durationMs: number;
|
|
751
|
+
ipAddress?: string | null;
|
|
752
|
+
userAgent?: string | null;
|
|
753
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
754
|
+
};
|
|
755
|
+
export type ActivityLogCreateOrConnectWithoutWorkspaceInput = {
|
|
756
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
757
|
+
create: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput>;
|
|
758
|
+
};
|
|
759
|
+
export type ActivityLogCreateManyWorkspaceInputEnvelope = {
|
|
760
|
+
data: Prisma.ActivityLogCreateManyWorkspaceInput | Prisma.ActivityLogCreateManyWorkspaceInput[];
|
|
761
|
+
skipDuplicates?: boolean;
|
|
762
|
+
};
|
|
763
|
+
export type ActivityLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
764
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
765
|
+
update: Prisma.XOR<Prisma.ActivityLogUpdateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedUpdateWithoutWorkspaceInput>;
|
|
766
|
+
create: Prisma.XOR<Prisma.ActivityLogCreateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedCreateWithoutWorkspaceInput>;
|
|
767
|
+
};
|
|
768
|
+
export type ActivityLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
769
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
770
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateWithoutWorkspaceInput, Prisma.ActivityLogUncheckedUpdateWithoutWorkspaceInput>;
|
|
771
|
+
};
|
|
772
|
+
export type ActivityLogUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
773
|
+
where: Prisma.ActivityLogScalarWhereInput;
|
|
774
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateManyMutationInput, Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceInput>;
|
|
775
|
+
};
|
|
776
|
+
export type ActivityLogCreateManyActorInput = {
|
|
777
|
+
id?: string;
|
|
778
|
+
createdAt?: Date | string;
|
|
779
|
+
actorEmailSnapshot?: string | null;
|
|
780
|
+
action: string;
|
|
781
|
+
category: $Enums.ActivityLogCategory;
|
|
782
|
+
resourceType?: string | null;
|
|
783
|
+
resourceId?: string | null;
|
|
784
|
+
workspaceId?: string | null;
|
|
785
|
+
trpcPath?: string | null;
|
|
786
|
+
httpMethod?: string | null;
|
|
787
|
+
status: $Enums.ActivityLogStatus;
|
|
788
|
+
errorCode?: string | null;
|
|
789
|
+
durationMs: number;
|
|
790
|
+
ipAddress?: string | null;
|
|
791
|
+
userAgent?: string | null;
|
|
792
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
793
|
+
};
|
|
794
|
+
export type ActivityLogUpdateWithoutActorInput = {
|
|
795
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
796
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
797
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
798
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
799
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
800
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
801
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
802
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
803
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
804
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
805
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
806
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
807
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
808
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
809
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
810
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutActivityLogsNestedInput;
|
|
811
|
+
};
|
|
812
|
+
export type ActivityLogUncheckedUpdateWithoutActorInput = {
|
|
813
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
814
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
815
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
816
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
817
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
818
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
819
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
820
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
821
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
822
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
823
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
824
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
825
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
826
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
827
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
828
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
829
|
+
};
|
|
830
|
+
export type ActivityLogUncheckedUpdateManyWithoutActorInput = {
|
|
831
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
832
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
833
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
834
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
835
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
836
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
837
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
838
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
839
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
840
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
841
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
842
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
843
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
844
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
845
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
846
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
847
|
+
};
|
|
848
|
+
export type ActivityLogCreateManyWorkspaceInput = {
|
|
849
|
+
id?: string;
|
|
850
|
+
createdAt?: Date | string;
|
|
851
|
+
actorUserId?: string | null;
|
|
852
|
+
actorEmailSnapshot?: string | null;
|
|
853
|
+
action: string;
|
|
854
|
+
category: $Enums.ActivityLogCategory;
|
|
855
|
+
resourceType?: string | null;
|
|
856
|
+
resourceId?: string | null;
|
|
857
|
+
trpcPath?: string | null;
|
|
858
|
+
httpMethod?: string | null;
|
|
859
|
+
status: $Enums.ActivityLogStatus;
|
|
860
|
+
errorCode?: string | null;
|
|
861
|
+
durationMs: number;
|
|
862
|
+
ipAddress?: string | null;
|
|
863
|
+
userAgent?: string | null;
|
|
864
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
865
|
+
};
|
|
866
|
+
export type ActivityLogUpdateWithoutWorkspaceInput = {
|
|
867
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
868
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
869
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
870
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
871
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
872
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
873
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
874
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
875
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
876
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
877
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
878
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
879
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
880
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
881
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
882
|
+
actor?: Prisma.UserUpdateOneWithoutActivityLogsNestedInput;
|
|
883
|
+
};
|
|
884
|
+
export type ActivityLogUncheckedUpdateWithoutWorkspaceInput = {
|
|
885
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
886
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
887
|
+
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
888
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
889
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
890
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
891
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
892
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
893
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
894
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
895
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
896
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
897
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
898
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
899
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
900
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
901
|
+
};
|
|
902
|
+
export type ActivityLogUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
903
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
904
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
905
|
+
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
906
|
+
actorEmailSnapshot?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
907
|
+
action?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
908
|
+
category?: Prisma.EnumActivityLogCategoryFieldUpdateOperationsInput | $Enums.ActivityLogCategory;
|
|
909
|
+
resourceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
910
|
+
resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
911
|
+
trpcPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
912
|
+
httpMethod?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
913
|
+
status?: Prisma.EnumActivityLogStatusFieldUpdateOperationsInput | $Enums.ActivityLogStatus;
|
|
914
|
+
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
915
|
+
durationMs?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
916
|
+
ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
917
|
+
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
918
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
919
|
+
};
|
|
920
|
+
export type ActivityLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
921
|
+
id?: boolean;
|
|
922
|
+
createdAt?: boolean;
|
|
923
|
+
actorUserId?: boolean;
|
|
924
|
+
actorEmailSnapshot?: boolean;
|
|
925
|
+
action?: boolean;
|
|
926
|
+
category?: boolean;
|
|
927
|
+
resourceType?: boolean;
|
|
928
|
+
resourceId?: boolean;
|
|
929
|
+
workspaceId?: boolean;
|
|
930
|
+
trpcPath?: boolean;
|
|
931
|
+
httpMethod?: boolean;
|
|
932
|
+
status?: boolean;
|
|
933
|
+
errorCode?: boolean;
|
|
934
|
+
durationMs?: boolean;
|
|
935
|
+
ipAddress?: boolean;
|
|
936
|
+
userAgent?: boolean;
|
|
937
|
+
metadata?: boolean;
|
|
938
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
939
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
940
|
+
}, ExtArgs["result"]["activityLog"]>;
|
|
941
|
+
export type ActivityLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
942
|
+
id?: boolean;
|
|
943
|
+
createdAt?: boolean;
|
|
944
|
+
actorUserId?: boolean;
|
|
945
|
+
actorEmailSnapshot?: boolean;
|
|
946
|
+
action?: boolean;
|
|
947
|
+
category?: boolean;
|
|
948
|
+
resourceType?: boolean;
|
|
949
|
+
resourceId?: boolean;
|
|
950
|
+
workspaceId?: boolean;
|
|
951
|
+
trpcPath?: boolean;
|
|
952
|
+
httpMethod?: boolean;
|
|
953
|
+
status?: boolean;
|
|
954
|
+
errorCode?: boolean;
|
|
955
|
+
durationMs?: boolean;
|
|
956
|
+
ipAddress?: boolean;
|
|
957
|
+
userAgent?: boolean;
|
|
958
|
+
metadata?: boolean;
|
|
959
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
960
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
961
|
+
}, ExtArgs["result"]["activityLog"]>;
|
|
962
|
+
export type ActivityLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
963
|
+
id?: boolean;
|
|
964
|
+
createdAt?: boolean;
|
|
965
|
+
actorUserId?: boolean;
|
|
966
|
+
actorEmailSnapshot?: boolean;
|
|
967
|
+
action?: boolean;
|
|
968
|
+
category?: boolean;
|
|
969
|
+
resourceType?: boolean;
|
|
970
|
+
resourceId?: boolean;
|
|
971
|
+
workspaceId?: boolean;
|
|
972
|
+
trpcPath?: boolean;
|
|
973
|
+
httpMethod?: boolean;
|
|
974
|
+
status?: boolean;
|
|
975
|
+
errorCode?: boolean;
|
|
976
|
+
durationMs?: boolean;
|
|
977
|
+
ipAddress?: boolean;
|
|
978
|
+
userAgent?: boolean;
|
|
979
|
+
metadata?: boolean;
|
|
980
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
981
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
982
|
+
}, ExtArgs["result"]["activityLog"]>;
|
|
983
|
+
export type ActivityLogSelectScalar = {
|
|
984
|
+
id?: boolean;
|
|
985
|
+
createdAt?: boolean;
|
|
986
|
+
actorUserId?: boolean;
|
|
987
|
+
actorEmailSnapshot?: boolean;
|
|
988
|
+
action?: boolean;
|
|
989
|
+
category?: boolean;
|
|
990
|
+
resourceType?: boolean;
|
|
991
|
+
resourceId?: boolean;
|
|
992
|
+
workspaceId?: boolean;
|
|
993
|
+
trpcPath?: boolean;
|
|
994
|
+
httpMethod?: boolean;
|
|
995
|
+
status?: boolean;
|
|
996
|
+
errorCode?: boolean;
|
|
997
|
+
durationMs?: boolean;
|
|
998
|
+
ipAddress?: boolean;
|
|
999
|
+
userAgent?: boolean;
|
|
1000
|
+
metadata?: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
export type ActivityLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "actorUserId" | "actorEmailSnapshot" | "action" | "category" | "resourceType" | "resourceId" | "workspaceId" | "trpcPath" | "httpMethod" | "status" | "errorCode" | "durationMs" | "ipAddress" | "userAgent" | "metadata", ExtArgs["result"]["activityLog"]>;
|
|
1003
|
+
export type ActivityLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
1005
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
1006
|
+
};
|
|
1007
|
+
export type ActivityLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1008
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
1009
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
1010
|
+
};
|
|
1011
|
+
export type ActivityLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1012
|
+
actor?: boolean | Prisma.ActivityLog$actorArgs<ExtArgs>;
|
|
1013
|
+
workspace?: boolean | Prisma.ActivityLog$workspaceArgs<ExtArgs>;
|
|
1014
|
+
};
|
|
1015
|
+
export type $ActivityLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1016
|
+
name: "ActivityLog";
|
|
1017
|
+
objects: {
|
|
1018
|
+
actor: Prisma.$UserPayload<ExtArgs> | null;
|
|
1019
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs> | null;
|
|
1020
|
+
};
|
|
1021
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1022
|
+
id: string;
|
|
1023
|
+
createdAt: Date;
|
|
1024
|
+
actorUserId: string | null;
|
|
1025
|
+
actorEmailSnapshot: string | null;
|
|
1026
|
+
action: string;
|
|
1027
|
+
category: $Enums.ActivityLogCategory;
|
|
1028
|
+
resourceType: string | null;
|
|
1029
|
+
resourceId: string | null;
|
|
1030
|
+
workspaceId: string | null;
|
|
1031
|
+
trpcPath: string | null;
|
|
1032
|
+
httpMethod: string | null;
|
|
1033
|
+
status: $Enums.ActivityLogStatus;
|
|
1034
|
+
errorCode: string | null;
|
|
1035
|
+
durationMs: number;
|
|
1036
|
+
ipAddress: string | null;
|
|
1037
|
+
userAgent: string | null;
|
|
1038
|
+
metadata: runtime.JsonValue | null;
|
|
1039
|
+
}, ExtArgs["result"]["activityLog"]>;
|
|
1040
|
+
composites: {};
|
|
1041
|
+
};
|
|
1042
|
+
export type ActivityLogGetPayload<S extends boolean | null | undefined | ActivityLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload, S>;
|
|
1043
|
+
export type ActivityLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ActivityLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1044
|
+
select?: ActivityLogCountAggregateInputType | true;
|
|
1045
|
+
};
|
|
1046
|
+
export interface ActivityLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1047
|
+
[K: symbol]: {
|
|
1048
|
+
types: Prisma.TypeMap<ExtArgs>['model']['ActivityLog'];
|
|
1049
|
+
meta: {
|
|
1050
|
+
name: 'ActivityLog';
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* Find zero or one ActivityLog that matches the filter.
|
|
1055
|
+
* @param {ActivityLogFindUniqueArgs} args - Arguments to find a ActivityLog
|
|
1056
|
+
* @example
|
|
1057
|
+
* // Get one ActivityLog
|
|
1058
|
+
* const activityLog = await prisma.activityLog.findUnique({
|
|
1059
|
+
* where: {
|
|
1060
|
+
* // ... provide filter here
|
|
1061
|
+
* }
|
|
1062
|
+
* })
|
|
1063
|
+
*/
|
|
1064
|
+
findUnique<T extends ActivityLogFindUniqueArgs>(args: Prisma.SelectSubset<T, ActivityLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Find one ActivityLog that matches the filter or throw an error with `error.code='P2025'`
|
|
1067
|
+
* if no matches were found.
|
|
1068
|
+
* @param {ActivityLogFindUniqueOrThrowArgs} args - Arguments to find a ActivityLog
|
|
1069
|
+
* @example
|
|
1070
|
+
* // Get one ActivityLog
|
|
1071
|
+
* const activityLog = await prisma.activityLog.findUniqueOrThrow({
|
|
1072
|
+
* where: {
|
|
1073
|
+
* // ... provide filter here
|
|
1074
|
+
* }
|
|
1075
|
+
* })
|
|
1076
|
+
*/
|
|
1077
|
+
findUniqueOrThrow<T extends ActivityLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ActivityLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Find the first ActivityLog that matches the filter.
|
|
1080
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1081
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1082
|
+
* @param {ActivityLogFindFirstArgs} args - Arguments to find a ActivityLog
|
|
1083
|
+
* @example
|
|
1084
|
+
* // Get one ActivityLog
|
|
1085
|
+
* const activityLog = await prisma.activityLog.findFirst({
|
|
1086
|
+
* where: {
|
|
1087
|
+
* // ... provide filter here
|
|
1088
|
+
* }
|
|
1089
|
+
* })
|
|
1090
|
+
*/
|
|
1091
|
+
findFirst<T extends ActivityLogFindFirstArgs>(args?: Prisma.SelectSubset<T, ActivityLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Find the first ActivityLog that matches the filter or
|
|
1094
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1095
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1096
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1097
|
+
* @param {ActivityLogFindFirstOrThrowArgs} args - Arguments to find a ActivityLog
|
|
1098
|
+
* @example
|
|
1099
|
+
* // Get one ActivityLog
|
|
1100
|
+
* const activityLog = await prisma.activityLog.findFirstOrThrow({
|
|
1101
|
+
* where: {
|
|
1102
|
+
* // ... provide filter here
|
|
1103
|
+
* }
|
|
1104
|
+
* })
|
|
1105
|
+
*/
|
|
1106
|
+
findFirstOrThrow<T extends ActivityLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ActivityLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Find zero or more ActivityLogs that matches the filter.
|
|
1109
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1110
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1111
|
+
* @param {ActivityLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1112
|
+
* @example
|
|
1113
|
+
* // Get all ActivityLogs
|
|
1114
|
+
* const activityLogs = await prisma.activityLog.findMany()
|
|
1115
|
+
*
|
|
1116
|
+
* // Get first 10 ActivityLogs
|
|
1117
|
+
* const activityLogs = await prisma.activityLog.findMany({ take: 10 })
|
|
1118
|
+
*
|
|
1119
|
+
* // Only select the `id`
|
|
1120
|
+
* const activityLogWithIdOnly = await prisma.activityLog.findMany({ select: { id: true } })
|
|
1121
|
+
*
|
|
1122
|
+
*/
|
|
1123
|
+
findMany<T extends ActivityLogFindManyArgs>(args?: Prisma.SelectSubset<T, ActivityLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Create a ActivityLog.
|
|
1126
|
+
* @param {ActivityLogCreateArgs} args - Arguments to create a ActivityLog.
|
|
1127
|
+
* @example
|
|
1128
|
+
* // Create one ActivityLog
|
|
1129
|
+
* const ActivityLog = await prisma.activityLog.create({
|
|
1130
|
+
* data: {
|
|
1131
|
+
* // ... data to create a ActivityLog
|
|
1132
|
+
* }
|
|
1133
|
+
* })
|
|
1134
|
+
*
|
|
1135
|
+
*/
|
|
1136
|
+
create<T extends ActivityLogCreateArgs>(args: Prisma.SelectSubset<T, ActivityLogCreateArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Create many ActivityLogs.
|
|
1139
|
+
* @param {ActivityLogCreateManyArgs} args - Arguments to create many ActivityLogs.
|
|
1140
|
+
* @example
|
|
1141
|
+
* // Create many ActivityLogs
|
|
1142
|
+
* const activityLog = await prisma.activityLog.createMany({
|
|
1143
|
+
* data: [
|
|
1144
|
+
* // ... provide data here
|
|
1145
|
+
* ]
|
|
1146
|
+
* })
|
|
1147
|
+
*
|
|
1148
|
+
*/
|
|
1149
|
+
createMany<T extends ActivityLogCreateManyArgs>(args?: Prisma.SelectSubset<T, ActivityLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Create many ActivityLogs and returns the data saved in the database.
|
|
1152
|
+
* @param {ActivityLogCreateManyAndReturnArgs} args - Arguments to create many ActivityLogs.
|
|
1153
|
+
* @example
|
|
1154
|
+
* // Create many ActivityLogs
|
|
1155
|
+
* const activityLog = await prisma.activityLog.createManyAndReturn({
|
|
1156
|
+
* data: [
|
|
1157
|
+
* // ... provide data here
|
|
1158
|
+
* ]
|
|
1159
|
+
* })
|
|
1160
|
+
*
|
|
1161
|
+
* // Create many ActivityLogs and only return the `id`
|
|
1162
|
+
* const activityLogWithIdOnly = await prisma.activityLog.createManyAndReturn({
|
|
1163
|
+
* select: { id: true },
|
|
1164
|
+
* data: [
|
|
1165
|
+
* // ... provide data here
|
|
1166
|
+
* ]
|
|
1167
|
+
* })
|
|
1168
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1169
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1170
|
+
*
|
|
1171
|
+
*/
|
|
1172
|
+
createManyAndReturn<T extends ActivityLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ActivityLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1173
|
+
/**
|
|
1174
|
+
* Delete a ActivityLog.
|
|
1175
|
+
* @param {ActivityLogDeleteArgs} args - Arguments to delete one ActivityLog.
|
|
1176
|
+
* @example
|
|
1177
|
+
* // Delete one ActivityLog
|
|
1178
|
+
* const ActivityLog = await prisma.activityLog.delete({
|
|
1179
|
+
* where: {
|
|
1180
|
+
* // ... filter to delete one ActivityLog
|
|
1181
|
+
* }
|
|
1182
|
+
* })
|
|
1183
|
+
*
|
|
1184
|
+
*/
|
|
1185
|
+
delete<T extends ActivityLogDeleteArgs>(args: Prisma.SelectSubset<T, ActivityLogDeleteArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Update one ActivityLog.
|
|
1188
|
+
* @param {ActivityLogUpdateArgs} args - Arguments to update one ActivityLog.
|
|
1189
|
+
* @example
|
|
1190
|
+
* // Update one ActivityLog
|
|
1191
|
+
* const activityLog = await prisma.activityLog.update({
|
|
1192
|
+
* where: {
|
|
1193
|
+
* // ... provide filter here
|
|
1194
|
+
* },
|
|
1195
|
+
* data: {
|
|
1196
|
+
* // ... provide data here
|
|
1197
|
+
* }
|
|
1198
|
+
* })
|
|
1199
|
+
*
|
|
1200
|
+
*/
|
|
1201
|
+
update<T extends ActivityLogUpdateArgs>(args: Prisma.SelectSubset<T, ActivityLogUpdateArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Delete zero or more ActivityLogs.
|
|
1204
|
+
* @param {ActivityLogDeleteManyArgs} args - Arguments to filter ActivityLogs to delete.
|
|
1205
|
+
* @example
|
|
1206
|
+
* // Delete a few ActivityLogs
|
|
1207
|
+
* const { count } = await prisma.activityLog.deleteMany({
|
|
1208
|
+
* where: {
|
|
1209
|
+
* // ... provide filter here
|
|
1210
|
+
* }
|
|
1211
|
+
* })
|
|
1212
|
+
*
|
|
1213
|
+
*/
|
|
1214
|
+
deleteMany<T extends ActivityLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, ActivityLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Update zero or more ActivityLogs.
|
|
1217
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1218
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1219
|
+
* @param {ActivityLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1220
|
+
* @example
|
|
1221
|
+
* // Update many ActivityLogs
|
|
1222
|
+
* const activityLog = await prisma.activityLog.updateMany({
|
|
1223
|
+
* where: {
|
|
1224
|
+
* // ... provide filter here
|
|
1225
|
+
* },
|
|
1226
|
+
* data: {
|
|
1227
|
+
* // ... provide data here
|
|
1228
|
+
* }
|
|
1229
|
+
* })
|
|
1230
|
+
*
|
|
1231
|
+
*/
|
|
1232
|
+
updateMany<T extends ActivityLogUpdateManyArgs>(args: Prisma.SelectSubset<T, ActivityLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Update zero or more ActivityLogs and returns the data updated in the database.
|
|
1235
|
+
* @param {ActivityLogUpdateManyAndReturnArgs} args - Arguments to update many ActivityLogs.
|
|
1236
|
+
* @example
|
|
1237
|
+
* // Update many ActivityLogs
|
|
1238
|
+
* const activityLog = await prisma.activityLog.updateManyAndReturn({
|
|
1239
|
+
* where: {
|
|
1240
|
+
* // ... provide filter here
|
|
1241
|
+
* },
|
|
1242
|
+
* data: [
|
|
1243
|
+
* // ... provide data here
|
|
1244
|
+
* ]
|
|
1245
|
+
* })
|
|
1246
|
+
*
|
|
1247
|
+
* // Update zero or more ActivityLogs and only return the `id`
|
|
1248
|
+
* const activityLogWithIdOnly = await prisma.activityLog.updateManyAndReturn({
|
|
1249
|
+
* select: { id: true },
|
|
1250
|
+
* where: {
|
|
1251
|
+
* // ... provide filter here
|
|
1252
|
+
* },
|
|
1253
|
+
* data: [
|
|
1254
|
+
* // ... provide data here
|
|
1255
|
+
* ]
|
|
1256
|
+
* })
|
|
1257
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1258
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1259
|
+
*
|
|
1260
|
+
*/
|
|
1261
|
+
updateManyAndReturn<T extends ActivityLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ActivityLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Create or update one ActivityLog.
|
|
1264
|
+
* @param {ActivityLogUpsertArgs} args - Arguments to update or create a ActivityLog.
|
|
1265
|
+
* @example
|
|
1266
|
+
* // Update or create a ActivityLog
|
|
1267
|
+
* const activityLog = await prisma.activityLog.upsert({
|
|
1268
|
+
* create: {
|
|
1269
|
+
* // ... data to create a ActivityLog
|
|
1270
|
+
* },
|
|
1271
|
+
* update: {
|
|
1272
|
+
* // ... in case it already exists, update
|
|
1273
|
+
* },
|
|
1274
|
+
* where: {
|
|
1275
|
+
* // ... the filter for the ActivityLog we want to update
|
|
1276
|
+
* }
|
|
1277
|
+
* })
|
|
1278
|
+
*/
|
|
1279
|
+
upsert<T extends ActivityLogUpsertArgs>(args: Prisma.SelectSubset<T, ActivityLogUpsertArgs<ExtArgs>>): Prisma.Prisma__ActivityLogClient<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Count the number of ActivityLogs.
|
|
1282
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1283
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1284
|
+
* @param {ActivityLogCountArgs} args - Arguments to filter ActivityLogs to count.
|
|
1285
|
+
* @example
|
|
1286
|
+
* // Count the number of ActivityLogs
|
|
1287
|
+
* const count = await prisma.activityLog.count({
|
|
1288
|
+
* where: {
|
|
1289
|
+
* // ... the filter for the ActivityLogs we want to count
|
|
1290
|
+
* }
|
|
1291
|
+
* })
|
|
1292
|
+
**/
|
|
1293
|
+
count<T extends ActivityLogCountArgs>(args?: Prisma.Subset<T, ActivityLogCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ActivityLogCountAggregateOutputType> : number>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Allows you to perform aggregations operations on a ActivityLog.
|
|
1296
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1297
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1298
|
+
* @param {ActivityLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1299
|
+
* @example
|
|
1300
|
+
* // Ordered by age ascending
|
|
1301
|
+
* // Where email contains prisma.io
|
|
1302
|
+
* // Limited to the 10 users
|
|
1303
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1304
|
+
* _avg: {
|
|
1305
|
+
* age: true,
|
|
1306
|
+
* },
|
|
1307
|
+
* where: {
|
|
1308
|
+
* email: {
|
|
1309
|
+
* contains: "prisma.io",
|
|
1310
|
+
* },
|
|
1311
|
+
* },
|
|
1312
|
+
* orderBy: {
|
|
1313
|
+
* age: "asc",
|
|
1314
|
+
* },
|
|
1315
|
+
* take: 10,
|
|
1316
|
+
* })
|
|
1317
|
+
**/
|
|
1318
|
+
aggregate<T extends ActivityLogAggregateArgs>(args: Prisma.Subset<T, ActivityLogAggregateArgs>): Prisma.PrismaPromise<GetActivityLogAggregateType<T>>;
|
|
1319
|
+
/**
|
|
1320
|
+
* Group by ActivityLog.
|
|
1321
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1322
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1323
|
+
* @param {ActivityLogGroupByArgs} args - Group by arguments.
|
|
1324
|
+
* @example
|
|
1325
|
+
* // Group by city, order by createdAt, get count
|
|
1326
|
+
* const result = await prisma.user.groupBy({
|
|
1327
|
+
* by: ['city', 'createdAt'],
|
|
1328
|
+
* orderBy: {
|
|
1329
|
+
* createdAt: true
|
|
1330
|
+
* },
|
|
1331
|
+
* _count: {
|
|
1332
|
+
* _all: true
|
|
1333
|
+
* },
|
|
1334
|
+
* })
|
|
1335
|
+
*
|
|
1336
|
+
**/
|
|
1337
|
+
groupBy<T extends ActivityLogGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1338
|
+
orderBy: ActivityLogGroupByArgs['orderBy'];
|
|
1339
|
+
} : {
|
|
1340
|
+
orderBy?: ActivityLogGroupByArgs['orderBy'];
|
|
1341
|
+
}, 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 ? {
|
|
1342
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1343
|
+
Error,
|
|
1344
|
+
'Field ',
|
|
1345
|
+
P,
|
|
1346
|
+
` in "having" needs to be provided in "by"`
|
|
1347
|
+
];
|
|
1348
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1349
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1350
|
+
}[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 ? {} : {
|
|
1351
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1352
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1353
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1354
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ActivityLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetActivityLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Fields of the ActivityLog model
|
|
1357
|
+
*/
|
|
1358
|
+
readonly fields: ActivityLogFieldRefs;
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* The delegate class that acts as a "Promise-like" for ActivityLog.
|
|
1362
|
+
* Why is this prefixed with `Prisma__`?
|
|
1363
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1364
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1365
|
+
*/
|
|
1366
|
+
export interface Prisma__ActivityLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1367
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1368
|
+
actor<T extends Prisma.ActivityLog$actorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ActivityLog$actorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1369
|
+
workspace<T extends Prisma.ActivityLog$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ActivityLog$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1372
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1373
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1374
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1375
|
+
*/
|
|
1376
|
+
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>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1379
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1380
|
+
* @returns A Promise for the completion of the callback.
|
|
1381
|
+
*/
|
|
1382
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1385
|
+
* resolved value cannot be modified from the callback.
|
|
1386
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1387
|
+
* @returns A Promise for the completion of the callback.
|
|
1388
|
+
*/
|
|
1389
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Fields of the ActivityLog model
|
|
1393
|
+
*/
|
|
1394
|
+
export interface ActivityLogFieldRefs {
|
|
1395
|
+
readonly id: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1396
|
+
readonly createdAt: Prisma.FieldRef<"ActivityLog", 'DateTime'>;
|
|
1397
|
+
readonly actorUserId: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1398
|
+
readonly actorEmailSnapshot: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1399
|
+
readonly action: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1400
|
+
readonly category: Prisma.FieldRef<"ActivityLog", 'ActivityLogCategory'>;
|
|
1401
|
+
readonly resourceType: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1402
|
+
readonly resourceId: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1403
|
+
readonly workspaceId: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1404
|
+
readonly trpcPath: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1405
|
+
readonly httpMethod: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1406
|
+
readonly status: Prisma.FieldRef<"ActivityLog", 'ActivityLogStatus'>;
|
|
1407
|
+
readonly errorCode: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1408
|
+
readonly durationMs: Prisma.FieldRef<"ActivityLog", 'Int'>;
|
|
1409
|
+
readonly ipAddress: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1410
|
+
readonly userAgent: Prisma.FieldRef<"ActivityLog", 'String'>;
|
|
1411
|
+
readonly metadata: Prisma.FieldRef<"ActivityLog", 'Json'>;
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* ActivityLog findUnique
|
|
1415
|
+
*/
|
|
1416
|
+
export type ActivityLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1417
|
+
/**
|
|
1418
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1419
|
+
*/
|
|
1420
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Omit specific fields from the ActivityLog
|
|
1423
|
+
*/
|
|
1424
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* Choose, which related nodes to fetch as well
|
|
1427
|
+
*/
|
|
1428
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Filter, which ActivityLog to fetch.
|
|
1431
|
+
*/
|
|
1432
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* ActivityLog findUniqueOrThrow
|
|
1436
|
+
*/
|
|
1437
|
+
export type ActivityLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1438
|
+
/**
|
|
1439
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1440
|
+
*/
|
|
1441
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* Omit specific fields from the ActivityLog
|
|
1444
|
+
*/
|
|
1445
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Choose, which related nodes to fetch as well
|
|
1448
|
+
*/
|
|
1449
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1450
|
+
/**
|
|
1451
|
+
* Filter, which ActivityLog to fetch.
|
|
1452
|
+
*/
|
|
1453
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
1454
|
+
};
|
|
1455
|
+
/**
|
|
1456
|
+
* ActivityLog findFirst
|
|
1457
|
+
*/
|
|
1458
|
+
export type ActivityLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1459
|
+
/**
|
|
1460
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1461
|
+
*/
|
|
1462
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1463
|
+
/**
|
|
1464
|
+
* Omit specific fields from the ActivityLog
|
|
1465
|
+
*/
|
|
1466
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1467
|
+
/**
|
|
1468
|
+
* Choose, which related nodes to fetch as well
|
|
1469
|
+
*/
|
|
1470
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Filter, which ActivityLog to fetch.
|
|
1473
|
+
*/
|
|
1474
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1475
|
+
/**
|
|
1476
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1477
|
+
*
|
|
1478
|
+
* Determine the order of ActivityLogs to fetch.
|
|
1479
|
+
*/
|
|
1480
|
+
orderBy?: Prisma.ActivityLogOrderByWithRelationInput | Prisma.ActivityLogOrderByWithRelationInput[];
|
|
1481
|
+
/**
|
|
1482
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1483
|
+
*
|
|
1484
|
+
* Sets the position for searching for ActivityLogs.
|
|
1485
|
+
*/
|
|
1486
|
+
cursor?: Prisma.ActivityLogWhereUniqueInput;
|
|
1487
|
+
/**
|
|
1488
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1489
|
+
*
|
|
1490
|
+
* Take `±n` ActivityLogs from the position of the cursor.
|
|
1491
|
+
*/
|
|
1492
|
+
take?: number;
|
|
1493
|
+
/**
|
|
1494
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1495
|
+
*
|
|
1496
|
+
* Skip the first `n` ActivityLogs.
|
|
1497
|
+
*/
|
|
1498
|
+
skip?: number;
|
|
1499
|
+
/**
|
|
1500
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1501
|
+
*
|
|
1502
|
+
* Filter by unique combinations of ActivityLogs.
|
|
1503
|
+
*/
|
|
1504
|
+
distinct?: Prisma.ActivityLogScalarFieldEnum | Prisma.ActivityLogScalarFieldEnum[];
|
|
1505
|
+
};
|
|
1506
|
+
/**
|
|
1507
|
+
* ActivityLog findFirstOrThrow
|
|
1508
|
+
*/
|
|
1509
|
+
export type ActivityLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1510
|
+
/**
|
|
1511
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1512
|
+
*/
|
|
1513
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1514
|
+
/**
|
|
1515
|
+
* Omit specific fields from the ActivityLog
|
|
1516
|
+
*/
|
|
1517
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1518
|
+
/**
|
|
1519
|
+
* Choose, which related nodes to fetch as well
|
|
1520
|
+
*/
|
|
1521
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1522
|
+
/**
|
|
1523
|
+
* Filter, which ActivityLog to fetch.
|
|
1524
|
+
*/
|
|
1525
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1526
|
+
/**
|
|
1527
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1528
|
+
*
|
|
1529
|
+
* Determine the order of ActivityLogs to fetch.
|
|
1530
|
+
*/
|
|
1531
|
+
orderBy?: Prisma.ActivityLogOrderByWithRelationInput | Prisma.ActivityLogOrderByWithRelationInput[];
|
|
1532
|
+
/**
|
|
1533
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1534
|
+
*
|
|
1535
|
+
* Sets the position for searching for ActivityLogs.
|
|
1536
|
+
*/
|
|
1537
|
+
cursor?: Prisma.ActivityLogWhereUniqueInput;
|
|
1538
|
+
/**
|
|
1539
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1540
|
+
*
|
|
1541
|
+
* Take `±n` ActivityLogs from the position of the cursor.
|
|
1542
|
+
*/
|
|
1543
|
+
take?: number;
|
|
1544
|
+
/**
|
|
1545
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1546
|
+
*
|
|
1547
|
+
* Skip the first `n` ActivityLogs.
|
|
1548
|
+
*/
|
|
1549
|
+
skip?: number;
|
|
1550
|
+
/**
|
|
1551
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1552
|
+
*
|
|
1553
|
+
* Filter by unique combinations of ActivityLogs.
|
|
1554
|
+
*/
|
|
1555
|
+
distinct?: Prisma.ActivityLogScalarFieldEnum | Prisma.ActivityLogScalarFieldEnum[];
|
|
1556
|
+
};
|
|
1557
|
+
/**
|
|
1558
|
+
* ActivityLog findMany
|
|
1559
|
+
*/
|
|
1560
|
+
export type ActivityLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1561
|
+
/**
|
|
1562
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1563
|
+
*/
|
|
1564
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1565
|
+
/**
|
|
1566
|
+
* Omit specific fields from the ActivityLog
|
|
1567
|
+
*/
|
|
1568
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1569
|
+
/**
|
|
1570
|
+
* Choose, which related nodes to fetch as well
|
|
1571
|
+
*/
|
|
1572
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1573
|
+
/**
|
|
1574
|
+
* Filter, which ActivityLogs to fetch.
|
|
1575
|
+
*/
|
|
1576
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1577
|
+
/**
|
|
1578
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1579
|
+
*
|
|
1580
|
+
* Determine the order of ActivityLogs to fetch.
|
|
1581
|
+
*/
|
|
1582
|
+
orderBy?: Prisma.ActivityLogOrderByWithRelationInput | Prisma.ActivityLogOrderByWithRelationInput[];
|
|
1583
|
+
/**
|
|
1584
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1585
|
+
*
|
|
1586
|
+
* Sets the position for listing ActivityLogs.
|
|
1587
|
+
*/
|
|
1588
|
+
cursor?: Prisma.ActivityLogWhereUniqueInput;
|
|
1589
|
+
/**
|
|
1590
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1591
|
+
*
|
|
1592
|
+
* Take `±n` ActivityLogs from the position of the cursor.
|
|
1593
|
+
*/
|
|
1594
|
+
take?: number;
|
|
1595
|
+
/**
|
|
1596
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1597
|
+
*
|
|
1598
|
+
* Skip the first `n` ActivityLogs.
|
|
1599
|
+
*/
|
|
1600
|
+
skip?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1603
|
+
*
|
|
1604
|
+
* Filter by unique combinations of ActivityLogs.
|
|
1605
|
+
*/
|
|
1606
|
+
distinct?: Prisma.ActivityLogScalarFieldEnum | Prisma.ActivityLogScalarFieldEnum[];
|
|
1607
|
+
};
|
|
1608
|
+
/**
|
|
1609
|
+
* ActivityLog create
|
|
1610
|
+
*/
|
|
1611
|
+
export type ActivityLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1612
|
+
/**
|
|
1613
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1614
|
+
*/
|
|
1615
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1616
|
+
/**
|
|
1617
|
+
* Omit specific fields from the ActivityLog
|
|
1618
|
+
*/
|
|
1619
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1620
|
+
/**
|
|
1621
|
+
* Choose, which related nodes to fetch as well
|
|
1622
|
+
*/
|
|
1623
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1624
|
+
/**
|
|
1625
|
+
* The data needed to create a ActivityLog.
|
|
1626
|
+
*/
|
|
1627
|
+
data: Prisma.XOR<Prisma.ActivityLogCreateInput, Prisma.ActivityLogUncheckedCreateInput>;
|
|
1628
|
+
};
|
|
1629
|
+
/**
|
|
1630
|
+
* ActivityLog createMany
|
|
1631
|
+
*/
|
|
1632
|
+
export type ActivityLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1633
|
+
/**
|
|
1634
|
+
* The data used to create many ActivityLogs.
|
|
1635
|
+
*/
|
|
1636
|
+
data: Prisma.ActivityLogCreateManyInput | Prisma.ActivityLogCreateManyInput[];
|
|
1637
|
+
skipDuplicates?: boolean;
|
|
1638
|
+
};
|
|
1639
|
+
/**
|
|
1640
|
+
* ActivityLog createManyAndReturn
|
|
1641
|
+
*/
|
|
1642
|
+
export type ActivityLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1643
|
+
/**
|
|
1644
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1645
|
+
*/
|
|
1646
|
+
select?: Prisma.ActivityLogSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1647
|
+
/**
|
|
1648
|
+
* Omit specific fields from the ActivityLog
|
|
1649
|
+
*/
|
|
1650
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* The data used to create many ActivityLogs.
|
|
1653
|
+
*/
|
|
1654
|
+
data: Prisma.ActivityLogCreateManyInput | Prisma.ActivityLogCreateManyInput[];
|
|
1655
|
+
skipDuplicates?: boolean;
|
|
1656
|
+
/**
|
|
1657
|
+
* Choose, which related nodes to fetch as well
|
|
1658
|
+
*/
|
|
1659
|
+
include?: Prisma.ActivityLogIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1660
|
+
};
|
|
1661
|
+
/**
|
|
1662
|
+
* ActivityLog update
|
|
1663
|
+
*/
|
|
1664
|
+
export type ActivityLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1665
|
+
/**
|
|
1666
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1667
|
+
*/
|
|
1668
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1669
|
+
/**
|
|
1670
|
+
* Omit specific fields from the ActivityLog
|
|
1671
|
+
*/
|
|
1672
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1673
|
+
/**
|
|
1674
|
+
* Choose, which related nodes to fetch as well
|
|
1675
|
+
*/
|
|
1676
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1677
|
+
/**
|
|
1678
|
+
* The data needed to update a ActivityLog.
|
|
1679
|
+
*/
|
|
1680
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateInput, Prisma.ActivityLogUncheckedUpdateInput>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Choose, which ActivityLog to update.
|
|
1683
|
+
*/
|
|
1684
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
1685
|
+
};
|
|
1686
|
+
/**
|
|
1687
|
+
* ActivityLog updateMany
|
|
1688
|
+
*/
|
|
1689
|
+
export type ActivityLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1690
|
+
/**
|
|
1691
|
+
* The data used to update ActivityLogs.
|
|
1692
|
+
*/
|
|
1693
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateManyMutationInput, Prisma.ActivityLogUncheckedUpdateManyInput>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Filter which ActivityLogs to update
|
|
1696
|
+
*/
|
|
1697
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1698
|
+
/**
|
|
1699
|
+
* Limit how many ActivityLogs to update.
|
|
1700
|
+
*/
|
|
1701
|
+
limit?: number;
|
|
1702
|
+
};
|
|
1703
|
+
/**
|
|
1704
|
+
* ActivityLog updateManyAndReturn
|
|
1705
|
+
*/
|
|
1706
|
+
export type ActivityLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1707
|
+
/**
|
|
1708
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1709
|
+
*/
|
|
1710
|
+
select?: Prisma.ActivityLogSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1711
|
+
/**
|
|
1712
|
+
* Omit specific fields from the ActivityLog
|
|
1713
|
+
*/
|
|
1714
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1715
|
+
/**
|
|
1716
|
+
* The data used to update ActivityLogs.
|
|
1717
|
+
*/
|
|
1718
|
+
data: Prisma.XOR<Prisma.ActivityLogUpdateManyMutationInput, Prisma.ActivityLogUncheckedUpdateManyInput>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Filter which ActivityLogs to update
|
|
1721
|
+
*/
|
|
1722
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1723
|
+
/**
|
|
1724
|
+
* Limit how many ActivityLogs to update.
|
|
1725
|
+
*/
|
|
1726
|
+
limit?: number;
|
|
1727
|
+
/**
|
|
1728
|
+
* Choose, which related nodes to fetch as well
|
|
1729
|
+
*/
|
|
1730
|
+
include?: Prisma.ActivityLogIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* ActivityLog upsert
|
|
1734
|
+
*/
|
|
1735
|
+
export type ActivityLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1736
|
+
/**
|
|
1737
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1738
|
+
*/
|
|
1739
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* Omit specific fields from the ActivityLog
|
|
1742
|
+
*/
|
|
1743
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1744
|
+
/**
|
|
1745
|
+
* Choose, which related nodes to fetch as well
|
|
1746
|
+
*/
|
|
1747
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1748
|
+
/**
|
|
1749
|
+
* The filter to search for the ActivityLog to update in case it exists.
|
|
1750
|
+
*/
|
|
1751
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
1752
|
+
/**
|
|
1753
|
+
* In case the ActivityLog found by the `where` argument doesn't exist, create a new ActivityLog with this data.
|
|
1754
|
+
*/
|
|
1755
|
+
create: Prisma.XOR<Prisma.ActivityLogCreateInput, Prisma.ActivityLogUncheckedCreateInput>;
|
|
1756
|
+
/**
|
|
1757
|
+
* In case the ActivityLog was found with the provided `where` argument, update it with this data.
|
|
1758
|
+
*/
|
|
1759
|
+
update: Prisma.XOR<Prisma.ActivityLogUpdateInput, Prisma.ActivityLogUncheckedUpdateInput>;
|
|
1760
|
+
};
|
|
1761
|
+
/**
|
|
1762
|
+
* ActivityLog delete
|
|
1763
|
+
*/
|
|
1764
|
+
export type ActivityLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1765
|
+
/**
|
|
1766
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1767
|
+
*/
|
|
1768
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Omit specific fields from the ActivityLog
|
|
1771
|
+
*/
|
|
1772
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* Choose, which related nodes to fetch as well
|
|
1775
|
+
*/
|
|
1776
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1777
|
+
/**
|
|
1778
|
+
* Filter which ActivityLog to delete.
|
|
1779
|
+
*/
|
|
1780
|
+
where: Prisma.ActivityLogWhereUniqueInput;
|
|
1781
|
+
};
|
|
1782
|
+
/**
|
|
1783
|
+
* ActivityLog deleteMany
|
|
1784
|
+
*/
|
|
1785
|
+
export type ActivityLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1786
|
+
/**
|
|
1787
|
+
* Filter which ActivityLogs to delete
|
|
1788
|
+
*/
|
|
1789
|
+
where?: Prisma.ActivityLogWhereInput;
|
|
1790
|
+
/**
|
|
1791
|
+
* Limit how many ActivityLogs to delete.
|
|
1792
|
+
*/
|
|
1793
|
+
limit?: number;
|
|
1794
|
+
};
|
|
1795
|
+
/**
|
|
1796
|
+
* ActivityLog.actor
|
|
1797
|
+
*/
|
|
1798
|
+
export type ActivityLog$actorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1799
|
+
/**
|
|
1800
|
+
* Select specific fields to fetch from the User
|
|
1801
|
+
*/
|
|
1802
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* Omit specific fields from the User
|
|
1805
|
+
*/
|
|
1806
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1807
|
+
/**
|
|
1808
|
+
* Choose, which related nodes to fetch as well
|
|
1809
|
+
*/
|
|
1810
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1811
|
+
where?: Prisma.UserWhereInput;
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* ActivityLog.workspace
|
|
1815
|
+
*/
|
|
1816
|
+
export type ActivityLog$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1817
|
+
/**
|
|
1818
|
+
* Select specific fields to fetch from the Workspace
|
|
1819
|
+
*/
|
|
1820
|
+
select?: Prisma.WorkspaceSelect<ExtArgs> | null;
|
|
1821
|
+
/**
|
|
1822
|
+
* Omit specific fields from the Workspace
|
|
1823
|
+
*/
|
|
1824
|
+
omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
|
|
1825
|
+
/**
|
|
1826
|
+
* Choose, which related nodes to fetch as well
|
|
1827
|
+
*/
|
|
1828
|
+
include?: Prisma.WorkspaceInclude<ExtArgs> | null;
|
|
1829
|
+
where?: Prisma.WorkspaceWhereInput;
|
|
1830
|
+
};
|
|
1831
|
+
/**
|
|
1832
|
+
* ActivityLog without action
|
|
1833
|
+
*/
|
|
1834
|
+
export type ActivityLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1835
|
+
/**
|
|
1836
|
+
* Select specific fields to fetch from the ActivityLog
|
|
1837
|
+
*/
|
|
1838
|
+
select?: Prisma.ActivityLogSelect<ExtArgs> | null;
|
|
1839
|
+
/**
|
|
1840
|
+
* Omit specific fields from the ActivityLog
|
|
1841
|
+
*/
|
|
1842
|
+
omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
|
|
1843
|
+
/**
|
|
1844
|
+
* Choose, which related nodes to fetch as well
|
|
1845
|
+
*/
|
|
1846
|
+
include?: Prisma.ActivityLogInclude<ExtArgs> | null;
|
|
1847
|
+
};
|