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