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