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