@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,1552 @@
|
|
|
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 `CodeSnippet` 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 CodeSnippet
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type CodeSnippetModel = runtime.Types.Result.DefaultSelection<Prisma.$CodeSnippetPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateCodeSnippet = {
|
|
22
|
+
_count: CodeSnippetCountAggregateOutputType | null
|
|
23
|
+
_min: CodeSnippetMinAggregateOutputType | null
|
|
24
|
+
_max: CodeSnippetMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CodeSnippetMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
userId: string | null
|
|
30
|
+
name: string | null
|
|
31
|
+
title: string | null
|
|
32
|
+
description: string | null
|
|
33
|
+
code: string | null
|
|
34
|
+
enabled: boolean | null
|
|
35
|
+
createdAt: Date | null
|
|
36
|
+
updatedAt: Date | null
|
|
37
|
+
isDeleted: boolean | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type CodeSnippetMaxAggregateOutputType = {
|
|
41
|
+
id: string | null
|
|
42
|
+
userId: string | null
|
|
43
|
+
name: string | null
|
|
44
|
+
title: string | null
|
|
45
|
+
description: string | null
|
|
46
|
+
code: string | null
|
|
47
|
+
enabled: boolean | null
|
|
48
|
+
createdAt: Date | null
|
|
49
|
+
updatedAt: Date | null
|
|
50
|
+
isDeleted: boolean | null
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type CodeSnippetCountAggregateOutputType = {
|
|
54
|
+
id: number
|
|
55
|
+
userId: number
|
|
56
|
+
name: number
|
|
57
|
+
title: number
|
|
58
|
+
description: number
|
|
59
|
+
params: number
|
|
60
|
+
code: number
|
|
61
|
+
enabled: number
|
|
62
|
+
createdAt: number
|
|
63
|
+
updatedAt: number
|
|
64
|
+
isDeleted: number
|
|
65
|
+
_all: number
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
export type CodeSnippetMinAggregateInputType = {
|
|
70
|
+
id?: true
|
|
71
|
+
userId?: true
|
|
72
|
+
name?: true
|
|
73
|
+
title?: true
|
|
74
|
+
description?: true
|
|
75
|
+
code?: true
|
|
76
|
+
enabled?: true
|
|
77
|
+
createdAt?: true
|
|
78
|
+
updatedAt?: true
|
|
79
|
+
isDeleted?: true
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type CodeSnippetMaxAggregateInputType = {
|
|
83
|
+
id?: true
|
|
84
|
+
userId?: true
|
|
85
|
+
name?: true
|
|
86
|
+
title?: true
|
|
87
|
+
description?: true
|
|
88
|
+
code?: true
|
|
89
|
+
enabled?: true
|
|
90
|
+
createdAt?: true
|
|
91
|
+
updatedAt?: true
|
|
92
|
+
isDeleted?: true
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type CodeSnippetCountAggregateInputType = {
|
|
96
|
+
id?: true
|
|
97
|
+
userId?: true
|
|
98
|
+
name?: true
|
|
99
|
+
title?: true
|
|
100
|
+
description?: true
|
|
101
|
+
params?: true
|
|
102
|
+
code?: true
|
|
103
|
+
enabled?: true
|
|
104
|
+
createdAt?: true
|
|
105
|
+
updatedAt?: true
|
|
106
|
+
isDeleted?: true
|
|
107
|
+
_all?: true
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type CodeSnippetAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
111
|
+
/**
|
|
112
|
+
* Filter which CodeSnippet to aggregate.
|
|
113
|
+
*/
|
|
114
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
117
|
+
*
|
|
118
|
+
* Determine the order of CodeSnippets to fetch.
|
|
119
|
+
*/
|
|
120
|
+
orderBy?: Prisma.CodeSnippetOrderByWithRelationInput | Prisma.CodeSnippetOrderByWithRelationInput[]
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
123
|
+
*
|
|
124
|
+
* Sets the start position
|
|
125
|
+
*/
|
|
126
|
+
cursor?: Prisma.CodeSnippetWhereUniqueInput
|
|
127
|
+
/**
|
|
128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
129
|
+
*
|
|
130
|
+
* Take `±n` CodeSnippets from the position of the cursor.
|
|
131
|
+
*/
|
|
132
|
+
take?: number
|
|
133
|
+
/**
|
|
134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
135
|
+
*
|
|
136
|
+
* Skip the first `n` CodeSnippets.
|
|
137
|
+
*/
|
|
138
|
+
skip?: number
|
|
139
|
+
/**
|
|
140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
141
|
+
*
|
|
142
|
+
* Count returned CodeSnippets
|
|
143
|
+
**/
|
|
144
|
+
_count?: true | CodeSnippetCountAggregateInputType
|
|
145
|
+
/**
|
|
146
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
147
|
+
*
|
|
148
|
+
* Select which fields to find the minimum value
|
|
149
|
+
**/
|
|
150
|
+
_min?: CodeSnippetMinAggregateInputType
|
|
151
|
+
/**
|
|
152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
153
|
+
*
|
|
154
|
+
* Select which fields to find the maximum value
|
|
155
|
+
**/
|
|
156
|
+
_max?: CodeSnippetMaxAggregateInputType
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type GetCodeSnippetAggregateType<T extends CodeSnippetAggregateArgs> = {
|
|
160
|
+
[P in keyof T & keyof AggregateCodeSnippet]: P extends '_count' | 'count'
|
|
161
|
+
? T[P] extends true
|
|
162
|
+
? number
|
|
163
|
+
: Prisma.GetScalarType<T[P], AggregateCodeSnippet[P]>
|
|
164
|
+
: Prisma.GetScalarType<T[P], AggregateCodeSnippet[P]>
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
export type CodeSnippetGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
171
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
172
|
+
orderBy?: Prisma.CodeSnippetOrderByWithAggregationInput | Prisma.CodeSnippetOrderByWithAggregationInput[]
|
|
173
|
+
by: Prisma.CodeSnippetScalarFieldEnum[] | Prisma.CodeSnippetScalarFieldEnum
|
|
174
|
+
having?: Prisma.CodeSnippetScalarWhereWithAggregatesInput
|
|
175
|
+
take?: number
|
|
176
|
+
skip?: number
|
|
177
|
+
_count?: CodeSnippetCountAggregateInputType | true
|
|
178
|
+
_min?: CodeSnippetMinAggregateInputType
|
|
179
|
+
_max?: CodeSnippetMaxAggregateInputType
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type CodeSnippetGroupByOutputType = {
|
|
183
|
+
id: string
|
|
184
|
+
userId: string
|
|
185
|
+
name: string
|
|
186
|
+
title: string
|
|
187
|
+
description: string
|
|
188
|
+
params: runtime.JsonValue
|
|
189
|
+
code: string
|
|
190
|
+
enabled: boolean
|
|
191
|
+
createdAt: Date
|
|
192
|
+
updatedAt: Date
|
|
193
|
+
isDeleted: boolean
|
|
194
|
+
_count: CodeSnippetCountAggregateOutputType | null
|
|
195
|
+
_min: CodeSnippetMinAggregateOutputType | null
|
|
196
|
+
_max: CodeSnippetMaxAggregateOutputType | null
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type GetCodeSnippetGroupByPayload<T extends CodeSnippetGroupByArgs> = Prisma.PrismaPromise<
|
|
200
|
+
Array<
|
|
201
|
+
Prisma.PickEnumerable<CodeSnippetGroupByOutputType, T['by']> &
|
|
202
|
+
{
|
|
203
|
+
[P in ((keyof T) & (keyof CodeSnippetGroupByOutputType))]: P extends '_count'
|
|
204
|
+
? T[P] extends boolean
|
|
205
|
+
? number
|
|
206
|
+
: Prisma.GetScalarType<T[P], CodeSnippetGroupByOutputType[P]>
|
|
207
|
+
: Prisma.GetScalarType<T[P], CodeSnippetGroupByOutputType[P]>
|
|
208
|
+
}
|
|
209
|
+
>
|
|
210
|
+
>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
export type CodeSnippetWhereInput = {
|
|
215
|
+
AND?: Prisma.CodeSnippetWhereInput | Prisma.CodeSnippetWhereInput[]
|
|
216
|
+
OR?: Prisma.CodeSnippetWhereInput[]
|
|
217
|
+
NOT?: Prisma.CodeSnippetWhereInput | Prisma.CodeSnippetWhereInput[]
|
|
218
|
+
id?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
219
|
+
userId?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
220
|
+
name?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
221
|
+
title?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
222
|
+
description?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
223
|
+
params?: Prisma.JsonFilter<"CodeSnippet">
|
|
224
|
+
code?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
225
|
+
enabled?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
226
|
+
createdAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
227
|
+
updatedAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
228
|
+
isDeleted?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
229
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export type CodeSnippetOrderByWithRelationInput = {
|
|
233
|
+
id?: Prisma.SortOrder
|
|
234
|
+
userId?: Prisma.SortOrder
|
|
235
|
+
name?: Prisma.SortOrder
|
|
236
|
+
title?: Prisma.SortOrder
|
|
237
|
+
description?: Prisma.SortOrder
|
|
238
|
+
params?: Prisma.SortOrder
|
|
239
|
+
code?: Prisma.SortOrder
|
|
240
|
+
enabled?: Prisma.SortOrder
|
|
241
|
+
createdAt?: Prisma.SortOrder
|
|
242
|
+
updatedAt?: Prisma.SortOrder
|
|
243
|
+
isDeleted?: Prisma.SortOrder
|
|
244
|
+
user?: Prisma.UserOrderByWithRelationInput
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type CodeSnippetWhereUniqueInput = Prisma.AtLeast<{
|
|
248
|
+
id?: string
|
|
249
|
+
userId_name?: Prisma.CodeSnippetUserIdNameCompoundUniqueInput
|
|
250
|
+
AND?: Prisma.CodeSnippetWhereInput | Prisma.CodeSnippetWhereInput[]
|
|
251
|
+
OR?: Prisma.CodeSnippetWhereInput[]
|
|
252
|
+
NOT?: Prisma.CodeSnippetWhereInput | Prisma.CodeSnippetWhereInput[]
|
|
253
|
+
userId?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
254
|
+
name?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
255
|
+
title?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
256
|
+
description?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
257
|
+
params?: Prisma.JsonFilter<"CodeSnippet">
|
|
258
|
+
code?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
259
|
+
enabled?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
260
|
+
createdAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
261
|
+
updatedAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
262
|
+
isDeleted?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
263
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
264
|
+
}, "id" | "userId_name">
|
|
265
|
+
|
|
266
|
+
export type CodeSnippetOrderByWithAggregationInput = {
|
|
267
|
+
id?: Prisma.SortOrder
|
|
268
|
+
userId?: Prisma.SortOrder
|
|
269
|
+
name?: Prisma.SortOrder
|
|
270
|
+
title?: Prisma.SortOrder
|
|
271
|
+
description?: Prisma.SortOrder
|
|
272
|
+
params?: Prisma.SortOrder
|
|
273
|
+
code?: Prisma.SortOrder
|
|
274
|
+
enabled?: Prisma.SortOrder
|
|
275
|
+
createdAt?: Prisma.SortOrder
|
|
276
|
+
updatedAt?: Prisma.SortOrder
|
|
277
|
+
isDeleted?: Prisma.SortOrder
|
|
278
|
+
_count?: Prisma.CodeSnippetCountOrderByAggregateInput
|
|
279
|
+
_max?: Prisma.CodeSnippetMaxOrderByAggregateInput
|
|
280
|
+
_min?: Prisma.CodeSnippetMinOrderByAggregateInput
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type CodeSnippetScalarWhereWithAggregatesInput = {
|
|
284
|
+
AND?: Prisma.CodeSnippetScalarWhereWithAggregatesInput | Prisma.CodeSnippetScalarWhereWithAggregatesInput[]
|
|
285
|
+
OR?: Prisma.CodeSnippetScalarWhereWithAggregatesInput[]
|
|
286
|
+
NOT?: Prisma.CodeSnippetScalarWhereWithAggregatesInput | Prisma.CodeSnippetScalarWhereWithAggregatesInput[]
|
|
287
|
+
id?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
288
|
+
userId?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
289
|
+
name?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
290
|
+
title?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
291
|
+
description?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
292
|
+
params?: Prisma.JsonWithAggregatesFilter<"CodeSnippet">
|
|
293
|
+
code?: Prisma.StringWithAggregatesFilter<"CodeSnippet"> | string
|
|
294
|
+
enabled?: Prisma.BoolWithAggregatesFilter<"CodeSnippet"> | boolean
|
|
295
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CodeSnippet"> | Date | string
|
|
296
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CodeSnippet"> | Date | string
|
|
297
|
+
isDeleted?: Prisma.BoolWithAggregatesFilter<"CodeSnippet"> | boolean
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export type CodeSnippetCreateInput = {
|
|
301
|
+
id?: string
|
|
302
|
+
name: string
|
|
303
|
+
title: string
|
|
304
|
+
description: string
|
|
305
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
306
|
+
code: string
|
|
307
|
+
enabled?: boolean
|
|
308
|
+
createdAt?: Date | string
|
|
309
|
+
updatedAt?: Date | string
|
|
310
|
+
isDeleted?: boolean
|
|
311
|
+
user: Prisma.UserCreateNestedOneWithoutCodeSnippetsInput
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type CodeSnippetUncheckedCreateInput = {
|
|
315
|
+
id?: string
|
|
316
|
+
userId: string
|
|
317
|
+
name: string
|
|
318
|
+
title: string
|
|
319
|
+
description: string
|
|
320
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
321
|
+
code: string
|
|
322
|
+
enabled?: boolean
|
|
323
|
+
createdAt?: Date | string
|
|
324
|
+
updatedAt?: Date | string
|
|
325
|
+
isDeleted?: boolean
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type CodeSnippetUpdateInput = {
|
|
329
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
330
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
331
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
332
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
333
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
334
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
335
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
336
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
337
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
339
|
+
user?: Prisma.UserUpdateOneRequiredWithoutCodeSnippetsNestedInput
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type CodeSnippetUncheckedUpdateInput = {
|
|
343
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
344
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
345
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
346
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
347
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
348
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
349
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
350
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
351
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
352
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
353
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type CodeSnippetCreateManyInput = {
|
|
357
|
+
id?: string
|
|
358
|
+
userId: string
|
|
359
|
+
name: string
|
|
360
|
+
title: string
|
|
361
|
+
description: string
|
|
362
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
363
|
+
code: string
|
|
364
|
+
enabled?: boolean
|
|
365
|
+
createdAt?: Date | string
|
|
366
|
+
updatedAt?: Date | string
|
|
367
|
+
isDeleted?: boolean
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export type CodeSnippetUpdateManyMutationInput = {
|
|
371
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
372
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
373
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
374
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
375
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
376
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
377
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
378
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
379
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
380
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type CodeSnippetUncheckedUpdateManyInput = {
|
|
384
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
385
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
386
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
387
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
388
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
389
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
390
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
391
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
392
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
393
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
394
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export type CodeSnippetListRelationFilter = {
|
|
398
|
+
every?: Prisma.CodeSnippetWhereInput
|
|
399
|
+
some?: Prisma.CodeSnippetWhereInput
|
|
400
|
+
none?: Prisma.CodeSnippetWhereInput
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type CodeSnippetOrderByRelationAggregateInput = {
|
|
404
|
+
_count?: Prisma.SortOrder
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export type CodeSnippetUserIdNameCompoundUniqueInput = {
|
|
408
|
+
userId: string
|
|
409
|
+
name: string
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export type CodeSnippetCountOrderByAggregateInput = {
|
|
413
|
+
id?: Prisma.SortOrder
|
|
414
|
+
userId?: Prisma.SortOrder
|
|
415
|
+
name?: Prisma.SortOrder
|
|
416
|
+
title?: Prisma.SortOrder
|
|
417
|
+
description?: Prisma.SortOrder
|
|
418
|
+
params?: Prisma.SortOrder
|
|
419
|
+
code?: Prisma.SortOrder
|
|
420
|
+
enabled?: Prisma.SortOrder
|
|
421
|
+
createdAt?: Prisma.SortOrder
|
|
422
|
+
updatedAt?: Prisma.SortOrder
|
|
423
|
+
isDeleted?: Prisma.SortOrder
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export type CodeSnippetMaxOrderByAggregateInput = {
|
|
427
|
+
id?: Prisma.SortOrder
|
|
428
|
+
userId?: Prisma.SortOrder
|
|
429
|
+
name?: Prisma.SortOrder
|
|
430
|
+
title?: Prisma.SortOrder
|
|
431
|
+
description?: Prisma.SortOrder
|
|
432
|
+
code?: Prisma.SortOrder
|
|
433
|
+
enabled?: Prisma.SortOrder
|
|
434
|
+
createdAt?: Prisma.SortOrder
|
|
435
|
+
updatedAt?: Prisma.SortOrder
|
|
436
|
+
isDeleted?: Prisma.SortOrder
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export type CodeSnippetMinOrderByAggregateInput = {
|
|
440
|
+
id?: Prisma.SortOrder
|
|
441
|
+
userId?: Prisma.SortOrder
|
|
442
|
+
name?: Prisma.SortOrder
|
|
443
|
+
title?: Prisma.SortOrder
|
|
444
|
+
description?: Prisma.SortOrder
|
|
445
|
+
code?: Prisma.SortOrder
|
|
446
|
+
enabled?: Prisma.SortOrder
|
|
447
|
+
createdAt?: Prisma.SortOrder
|
|
448
|
+
updatedAt?: Prisma.SortOrder
|
|
449
|
+
isDeleted?: Prisma.SortOrder
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type CodeSnippetCreateNestedManyWithoutUserInput = {
|
|
453
|
+
create?: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput> | Prisma.CodeSnippetCreateWithoutUserInput[] | Prisma.CodeSnippetUncheckedCreateWithoutUserInput[]
|
|
454
|
+
connectOrCreate?: Prisma.CodeSnippetCreateOrConnectWithoutUserInput | Prisma.CodeSnippetCreateOrConnectWithoutUserInput[]
|
|
455
|
+
createMany?: Prisma.CodeSnippetCreateManyUserInputEnvelope
|
|
456
|
+
connect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export type CodeSnippetUncheckedCreateNestedManyWithoutUserInput = {
|
|
460
|
+
create?: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput> | Prisma.CodeSnippetCreateWithoutUserInput[] | Prisma.CodeSnippetUncheckedCreateWithoutUserInput[]
|
|
461
|
+
connectOrCreate?: Prisma.CodeSnippetCreateOrConnectWithoutUserInput | Prisma.CodeSnippetCreateOrConnectWithoutUserInput[]
|
|
462
|
+
createMany?: Prisma.CodeSnippetCreateManyUserInputEnvelope
|
|
463
|
+
connect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export type CodeSnippetUpdateManyWithoutUserNestedInput = {
|
|
467
|
+
create?: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput> | Prisma.CodeSnippetCreateWithoutUserInput[] | Prisma.CodeSnippetUncheckedCreateWithoutUserInput[]
|
|
468
|
+
connectOrCreate?: Prisma.CodeSnippetCreateOrConnectWithoutUserInput | Prisma.CodeSnippetCreateOrConnectWithoutUserInput[]
|
|
469
|
+
upsert?: Prisma.CodeSnippetUpsertWithWhereUniqueWithoutUserInput | Prisma.CodeSnippetUpsertWithWhereUniqueWithoutUserInput[]
|
|
470
|
+
createMany?: Prisma.CodeSnippetCreateManyUserInputEnvelope
|
|
471
|
+
set?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
472
|
+
disconnect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
473
|
+
delete?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
474
|
+
connect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
475
|
+
update?: Prisma.CodeSnippetUpdateWithWhereUniqueWithoutUserInput | Prisma.CodeSnippetUpdateWithWhereUniqueWithoutUserInput[]
|
|
476
|
+
updateMany?: Prisma.CodeSnippetUpdateManyWithWhereWithoutUserInput | Prisma.CodeSnippetUpdateManyWithWhereWithoutUserInput[]
|
|
477
|
+
deleteMany?: Prisma.CodeSnippetScalarWhereInput | Prisma.CodeSnippetScalarWhereInput[]
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export type CodeSnippetUncheckedUpdateManyWithoutUserNestedInput = {
|
|
481
|
+
create?: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput> | Prisma.CodeSnippetCreateWithoutUserInput[] | Prisma.CodeSnippetUncheckedCreateWithoutUserInput[]
|
|
482
|
+
connectOrCreate?: Prisma.CodeSnippetCreateOrConnectWithoutUserInput | Prisma.CodeSnippetCreateOrConnectWithoutUserInput[]
|
|
483
|
+
upsert?: Prisma.CodeSnippetUpsertWithWhereUniqueWithoutUserInput | Prisma.CodeSnippetUpsertWithWhereUniqueWithoutUserInput[]
|
|
484
|
+
createMany?: Prisma.CodeSnippetCreateManyUserInputEnvelope
|
|
485
|
+
set?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
486
|
+
disconnect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
487
|
+
delete?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
488
|
+
connect?: Prisma.CodeSnippetWhereUniqueInput | Prisma.CodeSnippetWhereUniqueInput[]
|
|
489
|
+
update?: Prisma.CodeSnippetUpdateWithWhereUniqueWithoutUserInput | Prisma.CodeSnippetUpdateWithWhereUniqueWithoutUserInput[]
|
|
490
|
+
updateMany?: Prisma.CodeSnippetUpdateManyWithWhereWithoutUserInput | Prisma.CodeSnippetUpdateManyWithWhereWithoutUserInput[]
|
|
491
|
+
deleteMany?: Prisma.CodeSnippetScalarWhereInput | Prisma.CodeSnippetScalarWhereInput[]
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export type CodeSnippetCreateWithoutUserInput = {
|
|
495
|
+
id?: string
|
|
496
|
+
name: string
|
|
497
|
+
title: string
|
|
498
|
+
description: string
|
|
499
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
500
|
+
code: string
|
|
501
|
+
enabled?: boolean
|
|
502
|
+
createdAt?: Date | string
|
|
503
|
+
updatedAt?: Date | string
|
|
504
|
+
isDeleted?: boolean
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export type CodeSnippetUncheckedCreateWithoutUserInput = {
|
|
508
|
+
id?: string
|
|
509
|
+
name: string
|
|
510
|
+
title: string
|
|
511
|
+
description: string
|
|
512
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
513
|
+
code: string
|
|
514
|
+
enabled?: boolean
|
|
515
|
+
createdAt?: Date | string
|
|
516
|
+
updatedAt?: Date | string
|
|
517
|
+
isDeleted?: boolean
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export type CodeSnippetCreateOrConnectWithoutUserInput = {
|
|
521
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
522
|
+
create: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput>
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export type CodeSnippetCreateManyUserInputEnvelope = {
|
|
526
|
+
data: Prisma.CodeSnippetCreateManyUserInput | Prisma.CodeSnippetCreateManyUserInput[]
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export type CodeSnippetUpsertWithWhereUniqueWithoutUserInput = {
|
|
530
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
531
|
+
update: Prisma.XOR<Prisma.CodeSnippetUpdateWithoutUserInput, Prisma.CodeSnippetUncheckedUpdateWithoutUserInput>
|
|
532
|
+
create: Prisma.XOR<Prisma.CodeSnippetCreateWithoutUserInput, Prisma.CodeSnippetUncheckedCreateWithoutUserInput>
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export type CodeSnippetUpdateWithWhereUniqueWithoutUserInput = {
|
|
536
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
537
|
+
data: Prisma.XOR<Prisma.CodeSnippetUpdateWithoutUserInput, Prisma.CodeSnippetUncheckedUpdateWithoutUserInput>
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export type CodeSnippetUpdateManyWithWhereWithoutUserInput = {
|
|
541
|
+
where: Prisma.CodeSnippetScalarWhereInput
|
|
542
|
+
data: Prisma.XOR<Prisma.CodeSnippetUpdateManyMutationInput, Prisma.CodeSnippetUncheckedUpdateManyWithoutUserInput>
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export type CodeSnippetScalarWhereInput = {
|
|
546
|
+
AND?: Prisma.CodeSnippetScalarWhereInput | Prisma.CodeSnippetScalarWhereInput[]
|
|
547
|
+
OR?: Prisma.CodeSnippetScalarWhereInput[]
|
|
548
|
+
NOT?: Prisma.CodeSnippetScalarWhereInput | Prisma.CodeSnippetScalarWhereInput[]
|
|
549
|
+
id?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
550
|
+
userId?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
551
|
+
name?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
552
|
+
title?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
553
|
+
description?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
554
|
+
params?: Prisma.JsonFilter<"CodeSnippet">
|
|
555
|
+
code?: Prisma.StringFilter<"CodeSnippet"> | string
|
|
556
|
+
enabled?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
557
|
+
createdAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
558
|
+
updatedAt?: Prisma.DateTimeFilter<"CodeSnippet"> | Date | string
|
|
559
|
+
isDeleted?: Prisma.BoolFilter<"CodeSnippet"> | boolean
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export type CodeSnippetCreateManyUserInput = {
|
|
563
|
+
id?: string
|
|
564
|
+
name: string
|
|
565
|
+
title: string
|
|
566
|
+
description: string
|
|
567
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
568
|
+
code: string
|
|
569
|
+
enabled?: boolean
|
|
570
|
+
createdAt?: Date | string
|
|
571
|
+
updatedAt?: Date | string
|
|
572
|
+
isDeleted?: boolean
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export type CodeSnippetUpdateWithoutUserInput = {
|
|
576
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
577
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
578
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
579
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
580
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
581
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
582
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
583
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
584
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
585
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export type CodeSnippetUncheckedUpdateWithoutUserInput = {
|
|
589
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
590
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
591
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
592
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
593
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
594
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
595
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
596
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
597
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
598
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export type CodeSnippetUncheckedUpdateManyWithoutUserInput = {
|
|
602
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
603
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
604
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
605
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string
|
|
606
|
+
params?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
607
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string
|
|
608
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
609
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
610
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
611
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
export type CodeSnippetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
617
|
+
id?: boolean
|
|
618
|
+
userId?: boolean
|
|
619
|
+
name?: boolean
|
|
620
|
+
title?: boolean
|
|
621
|
+
description?: boolean
|
|
622
|
+
params?: boolean
|
|
623
|
+
code?: boolean
|
|
624
|
+
enabled?: boolean
|
|
625
|
+
createdAt?: boolean
|
|
626
|
+
updatedAt?: boolean
|
|
627
|
+
isDeleted?: boolean
|
|
628
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
629
|
+
}, ExtArgs["result"]["codeSnippet"]>
|
|
630
|
+
|
|
631
|
+
export type CodeSnippetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
632
|
+
id?: boolean
|
|
633
|
+
userId?: boolean
|
|
634
|
+
name?: boolean
|
|
635
|
+
title?: boolean
|
|
636
|
+
description?: boolean
|
|
637
|
+
params?: boolean
|
|
638
|
+
code?: boolean
|
|
639
|
+
enabled?: boolean
|
|
640
|
+
createdAt?: boolean
|
|
641
|
+
updatedAt?: boolean
|
|
642
|
+
isDeleted?: boolean
|
|
643
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
644
|
+
}, ExtArgs["result"]["codeSnippet"]>
|
|
645
|
+
|
|
646
|
+
export type CodeSnippetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
647
|
+
id?: boolean
|
|
648
|
+
userId?: boolean
|
|
649
|
+
name?: boolean
|
|
650
|
+
title?: boolean
|
|
651
|
+
description?: boolean
|
|
652
|
+
params?: boolean
|
|
653
|
+
code?: boolean
|
|
654
|
+
enabled?: boolean
|
|
655
|
+
createdAt?: boolean
|
|
656
|
+
updatedAt?: boolean
|
|
657
|
+
isDeleted?: boolean
|
|
658
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
659
|
+
}, ExtArgs["result"]["codeSnippet"]>
|
|
660
|
+
|
|
661
|
+
export type CodeSnippetSelectScalar = {
|
|
662
|
+
id?: boolean
|
|
663
|
+
userId?: boolean
|
|
664
|
+
name?: boolean
|
|
665
|
+
title?: boolean
|
|
666
|
+
description?: boolean
|
|
667
|
+
params?: boolean
|
|
668
|
+
code?: boolean
|
|
669
|
+
enabled?: boolean
|
|
670
|
+
createdAt?: boolean
|
|
671
|
+
updatedAt?: boolean
|
|
672
|
+
isDeleted?: boolean
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type CodeSnippetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "title" | "description" | "params" | "code" | "enabled" | "createdAt" | "updatedAt" | "isDeleted", ExtArgs["result"]["codeSnippet"]>
|
|
676
|
+
export type CodeSnippetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
677
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
678
|
+
}
|
|
679
|
+
export type CodeSnippetIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
680
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
681
|
+
}
|
|
682
|
+
export type CodeSnippetIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
683
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export type $CodeSnippetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
687
|
+
name: "CodeSnippet"
|
|
688
|
+
objects: {
|
|
689
|
+
user: Prisma.$UserPayload<ExtArgs>
|
|
690
|
+
}
|
|
691
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
692
|
+
id: string
|
|
693
|
+
userId: string
|
|
694
|
+
name: string
|
|
695
|
+
title: string
|
|
696
|
+
description: string
|
|
697
|
+
params: runtime.JsonValue
|
|
698
|
+
code: string
|
|
699
|
+
enabled: boolean
|
|
700
|
+
createdAt: Date
|
|
701
|
+
updatedAt: Date
|
|
702
|
+
isDeleted: boolean
|
|
703
|
+
}, ExtArgs["result"]["codeSnippet"]>
|
|
704
|
+
composites: {}
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export type CodeSnippetGetPayload<S extends boolean | null | undefined | CodeSnippetDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload, S>
|
|
708
|
+
|
|
709
|
+
export type CodeSnippetCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
710
|
+
Omit<CodeSnippetFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
711
|
+
select?: CodeSnippetCountAggregateInputType | true
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export interface CodeSnippetDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
715
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CodeSnippet'], meta: { name: 'CodeSnippet' } }
|
|
716
|
+
/**
|
|
717
|
+
* Find zero or one CodeSnippet that matches the filter.
|
|
718
|
+
* @param {CodeSnippetFindUniqueArgs} args - Arguments to find a CodeSnippet
|
|
719
|
+
* @example
|
|
720
|
+
* // Get one CodeSnippet
|
|
721
|
+
* const codeSnippet = await prisma.codeSnippet.findUnique({
|
|
722
|
+
* where: {
|
|
723
|
+
* // ... provide filter here
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*/
|
|
727
|
+
findUnique<T extends CodeSnippetFindUniqueArgs>(args: Prisma.SelectSubset<T, CodeSnippetFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Find one CodeSnippet that matches the filter or throw an error with `error.code='P2025'`
|
|
731
|
+
* if no matches were found.
|
|
732
|
+
* @param {CodeSnippetFindUniqueOrThrowArgs} args - Arguments to find a CodeSnippet
|
|
733
|
+
* @example
|
|
734
|
+
* // Get one CodeSnippet
|
|
735
|
+
* const codeSnippet = await prisma.codeSnippet.findUniqueOrThrow({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... provide filter here
|
|
738
|
+
* }
|
|
739
|
+
* })
|
|
740
|
+
*/
|
|
741
|
+
findUniqueOrThrow<T extends CodeSnippetFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CodeSnippetFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Find the first CodeSnippet that matches the filter.
|
|
745
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
746
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
747
|
+
* @param {CodeSnippetFindFirstArgs} args - Arguments to find a CodeSnippet
|
|
748
|
+
* @example
|
|
749
|
+
* // Get one CodeSnippet
|
|
750
|
+
* const codeSnippet = await prisma.codeSnippet.findFirst({
|
|
751
|
+
* where: {
|
|
752
|
+
* // ... provide filter here
|
|
753
|
+
* }
|
|
754
|
+
* })
|
|
755
|
+
*/
|
|
756
|
+
findFirst<T extends CodeSnippetFindFirstArgs>(args?: Prisma.SelectSubset<T, CodeSnippetFindFirstArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Find the first CodeSnippet that matches the filter or
|
|
760
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
761
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
762
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
763
|
+
* @param {CodeSnippetFindFirstOrThrowArgs} args - Arguments to find a CodeSnippet
|
|
764
|
+
* @example
|
|
765
|
+
* // Get one CodeSnippet
|
|
766
|
+
* const codeSnippet = await prisma.codeSnippet.findFirstOrThrow({
|
|
767
|
+
* where: {
|
|
768
|
+
* // ... provide filter here
|
|
769
|
+
* }
|
|
770
|
+
* })
|
|
771
|
+
*/
|
|
772
|
+
findFirstOrThrow<T extends CodeSnippetFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CodeSnippetFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Find zero or more CodeSnippets that matches the filter.
|
|
776
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
777
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
778
|
+
* @param {CodeSnippetFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
779
|
+
* @example
|
|
780
|
+
* // Get all CodeSnippets
|
|
781
|
+
* const codeSnippets = await prisma.codeSnippet.findMany()
|
|
782
|
+
*
|
|
783
|
+
* // Get first 10 CodeSnippets
|
|
784
|
+
* const codeSnippets = await prisma.codeSnippet.findMany({ take: 10 })
|
|
785
|
+
*
|
|
786
|
+
* // Only select the `id`
|
|
787
|
+
* const codeSnippetWithIdOnly = await prisma.codeSnippet.findMany({ select: { id: true } })
|
|
788
|
+
*
|
|
789
|
+
*/
|
|
790
|
+
findMany<T extends CodeSnippetFindManyArgs>(args?: Prisma.SelectSubset<T, CodeSnippetFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Create a CodeSnippet.
|
|
794
|
+
* @param {CodeSnippetCreateArgs} args - Arguments to create a CodeSnippet.
|
|
795
|
+
* @example
|
|
796
|
+
* // Create one CodeSnippet
|
|
797
|
+
* const CodeSnippet = await prisma.codeSnippet.create({
|
|
798
|
+
* data: {
|
|
799
|
+
* // ... data to create a CodeSnippet
|
|
800
|
+
* }
|
|
801
|
+
* })
|
|
802
|
+
*
|
|
803
|
+
*/
|
|
804
|
+
create<T extends CodeSnippetCreateArgs>(args: Prisma.SelectSubset<T, CodeSnippetCreateArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Create many CodeSnippets.
|
|
808
|
+
* @param {CodeSnippetCreateManyArgs} args - Arguments to create many CodeSnippets.
|
|
809
|
+
* @example
|
|
810
|
+
* // Create many CodeSnippets
|
|
811
|
+
* const codeSnippet = await prisma.codeSnippet.createMany({
|
|
812
|
+
* data: [
|
|
813
|
+
* // ... provide data here
|
|
814
|
+
* ]
|
|
815
|
+
* })
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
818
|
+
createMany<T extends CodeSnippetCreateManyArgs>(args?: Prisma.SelectSubset<T, CodeSnippetCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Create many CodeSnippets and returns the data saved in the database.
|
|
822
|
+
* @param {CodeSnippetCreateManyAndReturnArgs} args - Arguments to create many CodeSnippets.
|
|
823
|
+
* @example
|
|
824
|
+
* // Create many CodeSnippets
|
|
825
|
+
* const codeSnippet = await prisma.codeSnippet.createManyAndReturn({
|
|
826
|
+
* data: [
|
|
827
|
+
* // ... provide data here
|
|
828
|
+
* ]
|
|
829
|
+
* })
|
|
830
|
+
*
|
|
831
|
+
* // Create many CodeSnippets and only return the `id`
|
|
832
|
+
* const codeSnippetWithIdOnly = await prisma.codeSnippet.createManyAndReturn({
|
|
833
|
+
* select: { id: true },
|
|
834
|
+
* data: [
|
|
835
|
+
* // ... provide data here
|
|
836
|
+
* ]
|
|
837
|
+
* })
|
|
838
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
839
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
840
|
+
*
|
|
841
|
+
*/
|
|
842
|
+
createManyAndReturn<T extends CodeSnippetCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CodeSnippetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Delete a CodeSnippet.
|
|
846
|
+
* @param {CodeSnippetDeleteArgs} args - Arguments to delete one CodeSnippet.
|
|
847
|
+
* @example
|
|
848
|
+
* // Delete one CodeSnippet
|
|
849
|
+
* const CodeSnippet = await prisma.codeSnippet.delete({
|
|
850
|
+
* where: {
|
|
851
|
+
* // ... filter to delete one CodeSnippet
|
|
852
|
+
* }
|
|
853
|
+
* })
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
delete<T extends CodeSnippetDeleteArgs>(args: Prisma.SelectSubset<T, CodeSnippetDeleteArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Update one CodeSnippet.
|
|
860
|
+
* @param {CodeSnippetUpdateArgs} args - Arguments to update one CodeSnippet.
|
|
861
|
+
* @example
|
|
862
|
+
* // Update one CodeSnippet
|
|
863
|
+
* const codeSnippet = await prisma.codeSnippet.update({
|
|
864
|
+
* where: {
|
|
865
|
+
* // ... provide filter here
|
|
866
|
+
* },
|
|
867
|
+
* data: {
|
|
868
|
+
* // ... provide data here
|
|
869
|
+
* }
|
|
870
|
+
* })
|
|
871
|
+
*
|
|
872
|
+
*/
|
|
873
|
+
update<T extends CodeSnippetUpdateArgs>(args: Prisma.SelectSubset<T, CodeSnippetUpdateArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Delete zero or more CodeSnippets.
|
|
877
|
+
* @param {CodeSnippetDeleteManyArgs} args - Arguments to filter CodeSnippets to delete.
|
|
878
|
+
* @example
|
|
879
|
+
* // Delete a few CodeSnippets
|
|
880
|
+
* const { count } = await prisma.codeSnippet.deleteMany({
|
|
881
|
+
* where: {
|
|
882
|
+
* // ... provide filter here
|
|
883
|
+
* }
|
|
884
|
+
* })
|
|
885
|
+
*
|
|
886
|
+
*/
|
|
887
|
+
deleteMany<T extends CodeSnippetDeleteManyArgs>(args?: Prisma.SelectSubset<T, CodeSnippetDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Update zero or more CodeSnippets.
|
|
891
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
892
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
893
|
+
* @param {CodeSnippetUpdateManyArgs} args - Arguments to update one or more rows.
|
|
894
|
+
* @example
|
|
895
|
+
* // Update many CodeSnippets
|
|
896
|
+
* const codeSnippet = await prisma.codeSnippet.updateMany({
|
|
897
|
+
* where: {
|
|
898
|
+
* // ... provide filter here
|
|
899
|
+
* },
|
|
900
|
+
* data: {
|
|
901
|
+
* // ... provide data here
|
|
902
|
+
* }
|
|
903
|
+
* })
|
|
904
|
+
*
|
|
905
|
+
*/
|
|
906
|
+
updateMany<T extends CodeSnippetUpdateManyArgs>(args: Prisma.SelectSubset<T, CodeSnippetUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Update zero or more CodeSnippets and returns the data updated in the database.
|
|
910
|
+
* @param {CodeSnippetUpdateManyAndReturnArgs} args - Arguments to update many CodeSnippets.
|
|
911
|
+
* @example
|
|
912
|
+
* // Update many CodeSnippets
|
|
913
|
+
* const codeSnippet = await prisma.codeSnippet.updateManyAndReturn({
|
|
914
|
+
* where: {
|
|
915
|
+
* // ... provide filter here
|
|
916
|
+
* },
|
|
917
|
+
* data: [
|
|
918
|
+
* // ... provide data here
|
|
919
|
+
* ]
|
|
920
|
+
* })
|
|
921
|
+
*
|
|
922
|
+
* // Update zero or more CodeSnippets and only return the `id`
|
|
923
|
+
* const codeSnippetWithIdOnly = await prisma.codeSnippet.updateManyAndReturn({
|
|
924
|
+
* select: { id: true },
|
|
925
|
+
* where: {
|
|
926
|
+
* // ... provide filter here
|
|
927
|
+
* },
|
|
928
|
+
* data: [
|
|
929
|
+
* // ... provide data here
|
|
930
|
+
* ]
|
|
931
|
+
* })
|
|
932
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
933
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
934
|
+
*
|
|
935
|
+
*/
|
|
936
|
+
updateManyAndReturn<T extends CodeSnippetUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CodeSnippetUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Create or update one CodeSnippet.
|
|
940
|
+
* @param {CodeSnippetUpsertArgs} args - Arguments to update or create a CodeSnippet.
|
|
941
|
+
* @example
|
|
942
|
+
* // Update or create a CodeSnippet
|
|
943
|
+
* const codeSnippet = await prisma.codeSnippet.upsert({
|
|
944
|
+
* create: {
|
|
945
|
+
* // ... data to create a CodeSnippet
|
|
946
|
+
* },
|
|
947
|
+
* update: {
|
|
948
|
+
* // ... in case it already exists, update
|
|
949
|
+
* },
|
|
950
|
+
* where: {
|
|
951
|
+
* // ... the filter for the CodeSnippet we want to update
|
|
952
|
+
* }
|
|
953
|
+
* })
|
|
954
|
+
*/
|
|
955
|
+
upsert<T extends CodeSnippetUpsertArgs>(args: Prisma.SelectSubset<T, CodeSnippetUpsertArgs<ExtArgs>>): Prisma.Prisma__CodeSnippetClient<runtime.Types.Result.GetResult<Prisma.$CodeSnippetPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Count the number of CodeSnippets.
|
|
960
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
961
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
962
|
+
* @param {CodeSnippetCountArgs} args - Arguments to filter CodeSnippets to count.
|
|
963
|
+
* @example
|
|
964
|
+
* // Count the number of CodeSnippets
|
|
965
|
+
* const count = await prisma.codeSnippet.count({
|
|
966
|
+
* where: {
|
|
967
|
+
* // ... the filter for the CodeSnippets we want to count
|
|
968
|
+
* }
|
|
969
|
+
* })
|
|
970
|
+
**/
|
|
971
|
+
count<T extends CodeSnippetCountArgs>(
|
|
972
|
+
args?: Prisma.Subset<T, CodeSnippetCountArgs>,
|
|
973
|
+
): Prisma.PrismaPromise<
|
|
974
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
975
|
+
? T['select'] extends true
|
|
976
|
+
? number
|
|
977
|
+
: Prisma.GetScalarType<T['select'], CodeSnippetCountAggregateOutputType>
|
|
978
|
+
: number
|
|
979
|
+
>
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* Allows you to perform aggregations operations on a CodeSnippet.
|
|
983
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
984
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
985
|
+
* @param {CodeSnippetAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
986
|
+
* @example
|
|
987
|
+
* // Ordered by age ascending
|
|
988
|
+
* // Where email contains prisma.io
|
|
989
|
+
* // Limited to the 10 users
|
|
990
|
+
* const aggregations = await prisma.user.aggregate({
|
|
991
|
+
* _avg: {
|
|
992
|
+
* age: true,
|
|
993
|
+
* },
|
|
994
|
+
* where: {
|
|
995
|
+
* email: {
|
|
996
|
+
* contains: "prisma.io",
|
|
997
|
+
* },
|
|
998
|
+
* },
|
|
999
|
+
* orderBy: {
|
|
1000
|
+
* age: "asc",
|
|
1001
|
+
* },
|
|
1002
|
+
* take: 10,
|
|
1003
|
+
* })
|
|
1004
|
+
**/
|
|
1005
|
+
aggregate<T extends CodeSnippetAggregateArgs>(args: Prisma.Subset<T, CodeSnippetAggregateArgs>): Prisma.PrismaPromise<GetCodeSnippetAggregateType<T>>
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Group by CodeSnippet.
|
|
1009
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1010
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1011
|
+
* @param {CodeSnippetGroupByArgs} args - Group by arguments.
|
|
1012
|
+
* @example
|
|
1013
|
+
* // Group by city, order by createdAt, get count
|
|
1014
|
+
* const result = await prisma.user.groupBy({
|
|
1015
|
+
* by: ['city', 'createdAt'],
|
|
1016
|
+
* orderBy: {
|
|
1017
|
+
* createdAt: true
|
|
1018
|
+
* },
|
|
1019
|
+
* _count: {
|
|
1020
|
+
* _all: true
|
|
1021
|
+
* },
|
|
1022
|
+
* })
|
|
1023
|
+
*
|
|
1024
|
+
**/
|
|
1025
|
+
groupBy<
|
|
1026
|
+
T extends CodeSnippetGroupByArgs,
|
|
1027
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1028
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1029
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1030
|
+
>,
|
|
1031
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1032
|
+
? { orderBy: CodeSnippetGroupByArgs['orderBy'] }
|
|
1033
|
+
: { orderBy?: CodeSnippetGroupByArgs['orderBy'] },
|
|
1034
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1035
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1036
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1037
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1038
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1039
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1040
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1041
|
+
? `Error: "by" must not be empty.`
|
|
1042
|
+
: HavingValid extends Prisma.False
|
|
1043
|
+
? {
|
|
1044
|
+
[P in HavingFields]: P extends ByFields
|
|
1045
|
+
? never
|
|
1046
|
+
: P extends string
|
|
1047
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1048
|
+
: [
|
|
1049
|
+
Error,
|
|
1050
|
+
'Field ',
|
|
1051
|
+
P,
|
|
1052
|
+
` in "having" needs to be provided in "by"`,
|
|
1053
|
+
]
|
|
1054
|
+
}[HavingFields]
|
|
1055
|
+
: 'take' extends Prisma.Keys<T>
|
|
1056
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1057
|
+
? ByValid extends Prisma.True
|
|
1058
|
+
? {}
|
|
1059
|
+
: {
|
|
1060
|
+
[P in OrderFields]: P extends ByFields
|
|
1061
|
+
? never
|
|
1062
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1063
|
+
}[OrderFields]
|
|
1064
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1065
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1066
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1067
|
+
? ByValid extends Prisma.True
|
|
1068
|
+
? {}
|
|
1069
|
+
: {
|
|
1070
|
+
[P in OrderFields]: P extends ByFields
|
|
1071
|
+
? never
|
|
1072
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1073
|
+
}[OrderFields]
|
|
1074
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1075
|
+
: ByValid extends Prisma.True
|
|
1076
|
+
? {}
|
|
1077
|
+
: {
|
|
1078
|
+
[P in OrderFields]: P extends ByFields
|
|
1079
|
+
? never
|
|
1080
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1081
|
+
}[OrderFields]
|
|
1082
|
+
>(args: Prisma.SubsetIntersection<T, CodeSnippetGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCodeSnippetGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1083
|
+
/**
|
|
1084
|
+
* Fields of the CodeSnippet model
|
|
1085
|
+
*/
|
|
1086
|
+
readonly fields: CodeSnippetFieldRefs;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* The delegate class that acts as a "Promise-like" for CodeSnippet.
|
|
1091
|
+
* Why is this prefixed with `Prisma__`?
|
|
1092
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1093
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1094
|
+
*/
|
|
1095
|
+
export interface Prisma__CodeSnippetClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1096
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1097
|
+
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>
|
|
1098
|
+
/**
|
|
1099
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1100
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1101
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1102
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1103
|
+
*/
|
|
1104
|
+
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>
|
|
1105
|
+
/**
|
|
1106
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1107
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1108
|
+
* @returns A Promise for the completion of the callback.
|
|
1109
|
+
*/
|
|
1110
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1111
|
+
/**
|
|
1112
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1113
|
+
* resolved value cannot be modified from the callback.
|
|
1114
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1115
|
+
* @returns A Promise for the completion of the callback.
|
|
1116
|
+
*/
|
|
1117
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Fields of the CodeSnippet model
|
|
1125
|
+
*/
|
|
1126
|
+
export interface CodeSnippetFieldRefs {
|
|
1127
|
+
readonly id: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1128
|
+
readonly userId: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1129
|
+
readonly name: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1130
|
+
readonly title: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1131
|
+
readonly description: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1132
|
+
readonly params: Prisma.FieldRef<"CodeSnippet", 'Json'>
|
|
1133
|
+
readonly code: Prisma.FieldRef<"CodeSnippet", 'String'>
|
|
1134
|
+
readonly enabled: Prisma.FieldRef<"CodeSnippet", 'Boolean'>
|
|
1135
|
+
readonly createdAt: Prisma.FieldRef<"CodeSnippet", 'DateTime'>
|
|
1136
|
+
readonly updatedAt: Prisma.FieldRef<"CodeSnippet", 'DateTime'>
|
|
1137
|
+
readonly isDeleted: Prisma.FieldRef<"CodeSnippet", 'Boolean'>
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
// Custom InputTypes
|
|
1142
|
+
/**
|
|
1143
|
+
* CodeSnippet findUnique
|
|
1144
|
+
*/
|
|
1145
|
+
export type CodeSnippetFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1148
|
+
*/
|
|
1149
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1150
|
+
/**
|
|
1151
|
+
* Omit specific fields from the CodeSnippet
|
|
1152
|
+
*/
|
|
1153
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1154
|
+
/**
|
|
1155
|
+
* Choose, which related nodes to fetch as well
|
|
1156
|
+
*/
|
|
1157
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1158
|
+
/**
|
|
1159
|
+
* Filter, which CodeSnippet to fetch.
|
|
1160
|
+
*/
|
|
1161
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* CodeSnippet findUniqueOrThrow
|
|
1166
|
+
*/
|
|
1167
|
+
export type CodeSnippetFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1168
|
+
/**
|
|
1169
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1170
|
+
*/
|
|
1171
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1172
|
+
/**
|
|
1173
|
+
* Omit specific fields from the CodeSnippet
|
|
1174
|
+
*/
|
|
1175
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1176
|
+
/**
|
|
1177
|
+
* Choose, which related nodes to fetch as well
|
|
1178
|
+
*/
|
|
1179
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1180
|
+
/**
|
|
1181
|
+
* Filter, which CodeSnippet to fetch.
|
|
1182
|
+
*/
|
|
1183
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* CodeSnippet findFirst
|
|
1188
|
+
*/
|
|
1189
|
+
export type CodeSnippetFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1192
|
+
*/
|
|
1193
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1194
|
+
/**
|
|
1195
|
+
* Omit specific fields from the CodeSnippet
|
|
1196
|
+
*/
|
|
1197
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which related nodes to fetch as well
|
|
1200
|
+
*/
|
|
1201
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1202
|
+
/**
|
|
1203
|
+
* Filter, which CodeSnippet to fetch.
|
|
1204
|
+
*/
|
|
1205
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1206
|
+
/**
|
|
1207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1208
|
+
*
|
|
1209
|
+
* Determine the order of CodeSnippets to fetch.
|
|
1210
|
+
*/
|
|
1211
|
+
orderBy?: Prisma.CodeSnippetOrderByWithRelationInput | Prisma.CodeSnippetOrderByWithRelationInput[]
|
|
1212
|
+
/**
|
|
1213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1214
|
+
*
|
|
1215
|
+
* Sets the position for searching for CodeSnippets.
|
|
1216
|
+
*/
|
|
1217
|
+
cursor?: Prisma.CodeSnippetWhereUniqueInput
|
|
1218
|
+
/**
|
|
1219
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1220
|
+
*
|
|
1221
|
+
* Take `±n` CodeSnippets from the position of the cursor.
|
|
1222
|
+
*/
|
|
1223
|
+
take?: number
|
|
1224
|
+
/**
|
|
1225
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1226
|
+
*
|
|
1227
|
+
* Skip the first `n` CodeSnippets.
|
|
1228
|
+
*/
|
|
1229
|
+
skip?: number
|
|
1230
|
+
/**
|
|
1231
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1232
|
+
*
|
|
1233
|
+
* Filter by unique combinations of CodeSnippets.
|
|
1234
|
+
*/
|
|
1235
|
+
distinct?: Prisma.CodeSnippetScalarFieldEnum | Prisma.CodeSnippetScalarFieldEnum[]
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* CodeSnippet findFirstOrThrow
|
|
1240
|
+
*/
|
|
1241
|
+
export type CodeSnippetFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1242
|
+
/**
|
|
1243
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1244
|
+
*/
|
|
1245
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1246
|
+
/**
|
|
1247
|
+
* Omit specific fields from the CodeSnippet
|
|
1248
|
+
*/
|
|
1249
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1250
|
+
/**
|
|
1251
|
+
* Choose, which related nodes to fetch as well
|
|
1252
|
+
*/
|
|
1253
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1254
|
+
/**
|
|
1255
|
+
* Filter, which CodeSnippet to fetch.
|
|
1256
|
+
*/
|
|
1257
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1258
|
+
/**
|
|
1259
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1260
|
+
*
|
|
1261
|
+
* Determine the order of CodeSnippets to fetch.
|
|
1262
|
+
*/
|
|
1263
|
+
orderBy?: Prisma.CodeSnippetOrderByWithRelationInput | Prisma.CodeSnippetOrderByWithRelationInput[]
|
|
1264
|
+
/**
|
|
1265
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1266
|
+
*
|
|
1267
|
+
* Sets the position for searching for CodeSnippets.
|
|
1268
|
+
*/
|
|
1269
|
+
cursor?: Prisma.CodeSnippetWhereUniqueInput
|
|
1270
|
+
/**
|
|
1271
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1272
|
+
*
|
|
1273
|
+
* Take `±n` CodeSnippets from the position of the cursor.
|
|
1274
|
+
*/
|
|
1275
|
+
take?: number
|
|
1276
|
+
/**
|
|
1277
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1278
|
+
*
|
|
1279
|
+
* Skip the first `n` CodeSnippets.
|
|
1280
|
+
*/
|
|
1281
|
+
skip?: number
|
|
1282
|
+
/**
|
|
1283
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1284
|
+
*
|
|
1285
|
+
* Filter by unique combinations of CodeSnippets.
|
|
1286
|
+
*/
|
|
1287
|
+
distinct?: Prisma.CodeSnippetScalarFieldEnum | Prisma.CodeSnippetScalarFieldEnum[]
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* CodeSnippet findMany
|
|
1292
|
+
*/
|
|
1293
|
+
export type CodeSnippetFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1294
|
+
/**
|
|
1295
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1296
|
+
*/
|
|
1297
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1298
|
+
/**
|
|
1299
|
+
* Omit specific fields from the CodeSnippet
|
|
1300
|
+
*/
|
|
1301
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1302
|
+
/**
|
|
1303
|
+
* Choose, which related nodes to fetch as well
|
|
1304
|
+
*/
|
|
1305
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1306
|
+
/**
|
|
1307
|
+
* Filter, which CodeSnippets to fetch.
|
|
1308
|
+
*/
|
|
1309
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1310
|
+
/**
|
|
1311
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1312
|
+
*
|
|
1313
|
+
* Determine the order of CodeSnippets to fetch.
|
|
1314
|
+
*/
|
|
1315
|
+
orderBy?: Prisma.CodeSnippetOrderByWithRelationInput | Prisma.CodeSnippetOrderByWithRelationInput[]
|
|
1316
|
+
/**
|
|
1317
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1318
|
+
*
|
|
1319
|
+
* Sets the position for listing CodeSnippets.
|
|
1320
|
+
*/
|
|
1321
|
+
cursor?: Prisma.CodeSnippetWhereUniqueInput
|
|
1322
|
+
/**
|
|
1323
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1324
|
+
*
|
|
1325
|
+
* Take `±n` CodeSnippets from the position of the cursor.
|
|
1326
|
+
*/
|
|
1327
|
+
take?: number
|
|
1328
|
+
/**
|
|
1329
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1330
|
+
*
|
|
1331
|
+
* Skip the first `n` CodeSnippets.
|
|
1332
|
+
*/
|
|
1333
|
+
skip?: number
|
|
1334
|
+
/**
|
|
1335
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1336
|
+
*
|
|
1337
|
+
* Filter by unique combinations of CodeSnippets.
|
|
1338
|
+
*/
|
|
1339
|
+
distinct?: Prisma.CodeSnippetScalarFieldEnum | Prisma.CodeSnippetScalarFieldEnum[]
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* CodeSnippet create
|
|
1344
|
+
*/
|
|
1345
|
+
export type CodeSnippetCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1348
|
+
*/
|
|
1349
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1350
|
+
/**
|
|
1351
|
+
* Omit specific fields from the CodeSnippet
|
|
1352
|
+
*/
|
|
1353
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1354
|
+
/**
|
|
1355
|
+
* Choose, which related nodes to fetch as well
|
|
1356
|
+
*/
|
|
1357
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1358
|
+
/**
|
|
1359
|
+
* The data needed to create a CodeSnippet.
|
|
1360
|
+
*/
|
|
1361
|
+
data: Prisma.XOR<Prisma.CodeSnippetCreateInput, Prisma.CodeSnippetUncheckedCreateInput>
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* CodeSnippet createMany
|
|
1366
|
+
*/
|
|
1367
|
+
export type CodeSnippetCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1368
|
+
/**
|
|
1369
|
+
* The data used to create many CodeSnippets.
|
|
1370
|
+
*/
|
|
1371
|
+
data: Prisma.CodeSnippetCreateManyInput | Prisma.CodeSnippetCreateManyInput[]
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* CodeSnippet createManyAndReturn
|
|
1376
|
+
*/
|
|
1377
|
+
export type CodeSnippetCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1378
|
+
/**
|
|
1379
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1380
|
+
*/
|
|
1381
|
+
select?: Prisma.CodeSnippetSelectCreateManyAndReturn<ExtArgs> | null
|
|
1382
|
+
/**
|
|
1383
|
+
* Omit specific fields from the CodeSnippet
|
|
1384
|
+
*/
|
|
1385
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1386
|
+
/**
|
|
1387
|
+
* The data used to create many CodeSnippets.
|
|
1388
|
+
*/
|
|
1389
|
+
data: Prisma.CodeSnippetCreateManyInput | Prisma.CodeSnippetCreateManyInput[]
|
|
1390
|
+
/**
|
|
1391
|
+
* Choose, which related nodes to fetch as well
|
|
1392
|
+
*/
|
|
1393
|
+
include?: Prisma.CodeSnippetIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* CodeSnippet update
|
|
1398
|
+
*/
|
|
1399
|
+
export type CodeSnippetUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1400
|
+
/**
|
|
1401
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1402
|
+
*/
|
|
1403
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1404
|
+
/**
|
|
1405
|
+
* Omit specific fields from the CodeSnippet
|
|
1406
|
+
*/
|
|
1407
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1408
|
+
/**
|
|
1409
|
+
* Choose, which related nodes to fetch as well
|
|
1410
|
+
*/
|
|
1411
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1412
|
+
/**
|
|
1413
|
+
* The data needed to update a CodeSnippet.
|
|
1414
|
+
*/
|
|
1415
|
+
data: Prisma.XOR<Prisma.CodeSnippetUpdateInput, Prisma.CodeSnippetUncheckedUpdateInput>
|
|
1416
|
+
/**
|
|
1417
|
+
* Choose, which CodeSnippet to update.
|
|
1418
|
+
*/
|
|
1419
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* CodeSnippet updateMany
|
|
1424
|
+
*/
|
|
1425
|
+
export type CodeSnippetUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1426
|
+
/**
|
|
1427
|
+
* The data used to update CodeSnippets.
|
|
1428
|
+
*/
|
|
1429
|
+
data: Prisma.XOR<Prisma.CodeSnippetUpdateManyMutationInput, Prisma.CodeSnippetUncheckedUpdateManyInput>
|
|
1430
|
+
/**
|
|
1431
|
+
* Filter which CodeSnippets to update
|
|
1432
|
+
*/
|
|
1433
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1434
|
+
/**
|
|
1435
|
+
* Limit how many CodeSnippets to update.
|
|
1436
|
+
*/
|
|
1437
|
+
limit?: number
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* CodeSnippet updateManyAndReturn
|
|
1442
|
+
*/
|
|
1443
|
+
export type CodeSnippetUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1444
|
+
/**
|
|
1445
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1446
|
+
*/
|
|
1447
|
+
select?: Prisma.CodeSnippetSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1448
|
+
/**
|
|
1449
|
+
* Omit specific fields from the CodeSnippet
|
|
1450
|
+
*/
|
|
1451
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1452
|
+
/**
|
|
1453
|
+
* The data used to update CodeSnippets.
|
|
1454
|
+
*/
|
|
1455
|
+
data: Prisma.XOR<Prisma.CodeSnippetUpdateManyMutationInput, Prisma.CodeSnippetUncheckedUpdateManyInput>
|
|
1456
|
+
/**
|
|
1457
|
+
* Filter which CodeSnippets to update
|
|
1458
|
+
*/
|
|
1459
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1460
|
+
/**
|
|
1461
|
+
* Limit how many CodeSnippets to update.
|
|
1462
|
+
*/
|
|
1463
|
+
limit?: number
|
|
1464
|
+
/**
|
|
1465
|
+
* Choose, which related nodes to fetch as well
|
|
1466
|
+
*/
|
|
1467
|
+
include?: Prisma.CodeSnippetIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* CodeSnippet upsert
|
|
1472
|
+
*/
|
|
1473
|
+
export type CodeSnippetUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1474
|
+
/**
|
|
1475
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1476
|
+
*/
|
|
1477
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1478
|
+
/**
|
|
1479
|
+
* Omit specific fields from the CodeSnippet
|
|
1480
|
+
*/
|
|
1481
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1482
|
+
/**
|
|
1483
|
+
* Choose, which related nodes to fetch as well
|
|
1484
|
+
*/
|
|
1485
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1486
|
+
/**
|
|
1487
|
+
* The filter to search for the CodeSnippet to update in case it exists.
|
|
1488
|
+
*/
|
|
1489
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
1490
|
+
/**
|
|
1491
|
+
* In case the CodeSnippet found by the `where` argument doesn't exist, create a new CodeSnippet with this data.
|
|
1492
|
+
*/
|
|
1493
|
+
create: Prisma.XOR<Prisma.CodeSnippetCreateInput, Prisma.CodeSnippetUncheckedCreateInput>
|
|
1494
|
+
/**
|
|
1495
|
+
* In case the CodeSnippet was found with the provided `where` argument, update it with this data.
|
|
1496
|
+
*/
|
|
1497
|
+
update: Prisma.XOR<Prisma.CodeSnippetUpdateInput, Prisma.CodeSnippetUncheckedUpdateInput>
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* CodeSnippet delete
|
|
1502
|
+
*/
|
|
1503
|
+
export type CodeSnippetDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1504
|
+
/**
|
|
1505
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1506
|
+
*/
|
|
1507
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1508
|
+
/**
|
|
1509
|
+
* Omit specific fields from the CodeSnippet
|
|
1510
|
+
*/
|
|
1511
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1512
|
+
/**
|
|
1513
|
+
* Choose, which related nodes to fetch as well
|
|
1514
|
+
*/
|
|
1515
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1516
|
+
/**
|
|
1517
|
+
* Filter which CodeSnippet to delete.
|
|
1518
|
+
*/
|
|
1519
|
+
where: Prisma.CodeSnippetWhereUniqueInput
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* CodeSnippet deleteMany
|
|
1524
|
+
*/
|
|
1525
|
+
export type CodeSnippetDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1526
|
+
/**
|
|
1527
|
+
* Filter which CodeSnippets to delete
|
|
1528
|
+
*/
|
|
1529
|
+
where?: Prisma.CodeSnippetWhereInput
|
|
1530
|
+
/**
|
|
1531
|
+
* Limit how many CodeSnippets to delete.
|
|
1532
|
+
*/
|
|
1533
|
+
limit?: number
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* CodeSnippet without action
|
|
1538
|
+
*/
|
|
1539
|
+
export type CodeSnippetDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1540
|
+
/**
|
|
1541
|
+
* Select specific fields to fetch from the CodeSnippet
|
|
1542
|
+
*/
|
|
1543
|
+
select?: Prisma.CodeSnippetSelect<ExtArgs> | null
|
|
1544
|
+
/**
|
|
1545
|
+
* Omit specific fields from the CodeSnippet
|
|
1546
|
+
*/
|
|
1547
|
+
omit?: Prisma.CodeSnippetOmit<ExtArgs> | null
|
|
1548
|
+
/**
|
|
1549
|
+
* Choose, which related nodes to fetch as well
|
|
1550
|
+
*/
|
|
1551
|
+
include?: Prisma.CodeSnippetInclude<ExtArgs> | null
|
|
1552
|
+
}
|