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