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