@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.
Files changed (103) hide show
  1. package/LICENSE +661 -0
  2. package/dist/get-prisma.d.ts +1 -0
  3. package/dist/get-prisma.js +7 -0
  4. package/generated/browser.ts +85 -0
  5. package/generated/client.ts +85 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +174 -4
  8. package/generated/internal/prismaNamespace.ts +1698 -151
  9. package/generated/internal/prismaNamespaceBrowser.ts +279 -7
  10. package/generated/models/AiProviderConfig.ts +100 -1
  11. package/generated/models/AiStreamChunk.ts +1159 -0
  12. package/generated/models/AiUsageLog.ts +91 -31
  13. package/generated/models/Blob.ts +1428 -0
  14. package/generated/models/BusinessAgentBinding.ts +1553 -0
  15. package/generated/models/ChatInterrupt.ts +42 -1
  16. package/generated/models/ChatMessage.ts +58 -29
  17. package/generated/models/ChatPersistenceMeta.ts +1121 -0
  18. package/generated/models/ChatRun.ts +166 -1
  19. package/generated/models/ChatThread.ts +294 -1
  20. package/generated/models/CodeSnippet.ts +1555 -0
  21. package/generated/models/DesktopSetting.ts +1059 -0
  22. package/generated/models/EmailLog.ts +1345 -0
  23. package/generated/models/EmailPreference.ts +1257 -0
  24. package/generated/models/EmailSubscriber.ts +1233 -0
  25. package/generated/models/EmailVerificationToken.ts +1380 -0
  26. package/generated/models/GenerationRun.ts +193 -1
  27. package/generated/models/HarnessPlugin.ts +1677 -0
  28. package/generated/models/HarnessWorkspace.ts +1650 -0
  29. package/generated/models/InvitationCode.ts +65 -9
  30. package/generated/models/NotificationPreference.ts +27 -1
  31. package/generated/models/OAuthProviderConfig.ts +1227 -0
  32. package/generated/models/Plan.ts +115 -1
  33. package/generated/models/SandboxInstance.ts +1277 -0
  34. package/generated/models/SystemPromptTemplate.ts +1583 -0
  35. package/generated/models/SystemPromptVersion.ts +1459 -0
  36. package/generated/models/User.ts +5759 -823
  37. package/generated/models/UserAgent.ts +250 -1
  38. package/generated/models/Workspace.ts +3 -1
  39. package/generated/models/WorkspaceFile.ts +1535 -0
  40. package/generated/models.ts +17 -0
  41. package/generated-sqlite/browser.ts +90 -0
  42. package/generated-sqlite/client.ts +90 -0
  43. package/generated-sqlite/commonInputTypes.ts +192 -78
  44. package/generated-sqlite/internal/class.ts +184 -4
  45. package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
  46. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
  47. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  48. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  49. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  50. package/generated-sqlite/models/Blob.ts +1425 -0
  51. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  52. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  53. package/generated-sqlite/models/ChatMessage.ts +58 -29
  54. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  55. package/generated-sqlite/models/ChatRun.ts +174 -1
  56. package/generated-sqlite/models/ChatThread.ts +293 -1
  57. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  58. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  59. package/generated-sqlite/models/EmailLog.ts +1343 -0
  60. package/generated-sqlite/models/EmailPreference.ts +1255 -0
  61. package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
  62. package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
  63. package/generated-sqlite/models/GenerationRun.ts +193 -1
  64. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  65. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  66. package/generated-sqlite/models/InvitationCode.ts +65 -9
  67. package/generated-sqlite/models/NotificationPreference.ts +1313 -0
  68. package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
  69. package/generated-sqlite/models/PageVersion.ts +0 -8
  70. package/generated-sqlite/models/Plan.ts +115 -1
  71. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  72. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  73. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  74. package/generated-sqlite/models/User.ts +5345 -701
  75. package/generated-sqlite/models/UserAgent.ts +250 -1
  76. package/generated-sqlite/models/Workspace.ts +3 -1
  77. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  78. package/generated-sqlite/models.ts +18 -0
  79. package/get-prisma.ts +6 -0
  80. package/index.ts +11 -6
  81. package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
  82. package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
  83. package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
  84. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  85. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  86. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  87. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  88. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  89. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  90. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  91. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  92. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  93. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  94. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  95. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  96. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  97. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  98. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  99. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  100. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  101. package/package.json +8 -3
  102. package/schema.prisma +413 -99
  103. package/schema.sqlite.prisma +865 -543
@@ -0,0 +1,1057 @@
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 `DesktopSetting` 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 DesktopSetting
17
+ *
18
+ */
19
+ export type DesktopSettingModel = runtime.Types.Result.DefaultSelection<Prisma.$DesktopSettingPayload>
20
+
21
+ export type AggregateDesktopSetting = {
22
+ _count: DesktopSettingCountAggregateOutputType | null
23
+ _min: DesktopSettingMinAggregateOutputType | null
24
+ _max: DesktopSettingMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type DesktopSettingMinAggregateOutputType = {
28
+ key: string | null
29
+ }
30
+
31
+ export type DesktopSettingMaxAggregateOutputType = {
32
+ key: string | null
33
+ }
34
+
35
+ export type DesktopSettingCountAggregateOutputType = {
36
+ key: number
37
+ value: number
38
+ _all: number
39
+ }
40
+
41
+
42
+ export type DesktopSettingMinAggregateInputType = {
43
+ key?: true
44
+ }
45
+
46
+ export type DesktopSettingMaxAggregateInputType = {
47
+ key?: true
48
+ }
49
+
50
+ export type DesktopSettingCountAggregateInputType = {
51
+ key?: true
52
+ value?: true
53
+ _all?: true
54
+ }
55
+
56
+ export type DesktopSettingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
57
+ /**
58
+ * Filter which DesktopSetting to aggregate.
59
+ */
60
+ where?: Prisma.DesktopSettingWhereInput
61
+ /**
62
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
63
+ *
64
+ * Determine the order of DesktopSettings to fetch.
65
+ */
66
+ orderBy?: Prisma.DesktopSettingOrderByWithRelationInput | Prisma.DesktopSettingOrderByWithRelationInput[]
67
+ /**
68
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
69
+ *
70
+ * Sets the start position
71
+ */
72
+ cursor?: Prisma.DesktopSettingWhereUniqueInput
73
+ /**
74
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
75
+ *
76
+ * Take `±n` DesktopSettings from the position of the cursor.
77
+ */
78
+ take?: number
79
+ /**
80
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
81
+ *
82
+ * Skip the first `n` DesktopSettings.
83
+ */
84
+ skip?: number
85
+ /**
86
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
87
+ *
88
+ * Count returned DesktopSettings
89
+ **/
90
+ _count?: true | DesktopSettingCountAggregateInputType
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
93
+ *
94
+ * Select which fields to find the minimum value
95
+ **/
96
+ _min?: DesktopSettingMinAggregateInputType
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
99
+ *
100
+ * Select which fields to find the maximum value
101
+ **/
102
+ _max?: DesktopSettingMaxAggregateInputType
103
+ }
104
+
105
+ export type GetDesktopSettingAggregateType<T extends DesktopSettingAggregateArgs> = {
106
+ [P in keyof T & keyof AggregateDesktopSetting]: P extends '_count' | 'count'
107
+ ? T[P] extends true
108
+ ? number
109
+ : Prisma.GetScalarType<T[P], AggregateDesktopSetting[P]>
110
+ : Prisma.GetScalarType<T[P], AggregateDesktopSetting[P]>
111
+ }
112
+
113
+
114
+
115
+
116
+ export type DesktopSettingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
+ where?: Prisma.DesktopSettingWhereInput
118
+ orderBy?: Prisma.DesktopSettingOrderByWithAggregationInput | Prisma.DesktopSettingOrderByWithAggregationInput[]
119
+ by: Prisma.DesktopSettingScalarFieldEnum[] | Prisma.DesktopSettingScalarFieldEnum
120
+ having?: Prisma.DesktopSettingScalarWhereWithAggregatesInput
121
+ take?: number
122
+ skip?: number
123
+ _count?: DesktopSettingCountAggregateInputType | true
124
+ _min?: DesktopSettingMinAggregateInputType
125
+ _max?: DesktopSettingMaxAggregateInputType
126
+ }
127
+
128
+ export type DesktopSettingGroupByOutputType = {
129
+ key: string
130
+ value: runtime.JsonValue
131
+ _count: DesktopSettingCountAggregateOutputType | null
132
+ _min: DesktopSettingMinAggregateOutputType | null
133
+ _max: DesktopSettingMaxAggregateOutputType | null
134
+ }
135
+
136
+ export type GetDesktopSettingGroupByPayload<T extends DesktopSettingGroupByArgs> = Prisma.PrismaPromise<
137
+ Array<
138
+ Prisma.PickEnumerable<DesktopSettingGroupByOutputType, T['by']> &
139
+ {
140
+ [P in ((keyof T) & (keyof DesktopSettingGroupByOutputType))]: P extends '_count'
141
+ ? T[P] extends boolean
142
+ ? number
143
+ : Prisma.GetScalarType<T[P], DesktopSettingGroupByOutputType[P]>
144
+ : Prisma.GetScalarType<T[P], DesktopSettingGroupByOutputType[P]>
145
+ }
146
+ >
147
+ >
148
+
149
+
150
+
151
+ export type DesktopSettingWhereInput = {
152
+ AND?: Prisma.DesktopSettingWhereInput | Prisma.DesktopSettingWhereInput[]
153
+ OR?: Prisma.DesktopSettingWhereInput[]
154
+ NOT?: Prisma.DesktopSettingWhereInput | Prisma.DesktopSettingWhereInput[]
155
+ key?: Prisma.StringFilter<"DesktopSetting"> | string
156
+ value?: Prisma.JsonFilter<"DesktopSetting">
157
+ }
158
+
159
+ export type DesktopSettingOrderByWithRelationInput = {
160
+ key?: Prisma.SortOrder
161
+ value?: Prisma.SortOrder
162
+ }
163
+
164
+ export type DesktopSettingWhereUniqueInput = Prisma.AtLeast<{
165
+ key?: string
166
+ AND?: Prisma.DesktopSettingWhereInput | Prisma.DesktopSettingWhereInput[]
167
+ OR?: Prisma.DesktopSettingWhereInput[]
168
+ NOT?: Prisma.DesktopSettingWhereInput | Prisma.DesktopSettingWhereInput[]
169
+ value?: Prisma.JsonFilter<"DesktopSetting">
170
+ }, "key">
171
+
172
+ export type DesktopSettingOrderByWithAggregationInput = {
173
+ key?: Prisma.SortOrder
174
+ value?: Prisma.SortOrder
175
+ _count?: Prisma.DesktopSettingCountOrderByAggregateInput
176
+ _max?: Prisma.DesktopSettingMaxOrderByAggregateInput
177
+ _min?: Prisma.DesktopSettingMinOrderByAggregateInput
178
+ }
179
+
180
+ export type DesktopSettingScalarWhereWithAggregatesInput = {
181
+ AND?: Prisma.DesktopSettingScalarWhereWithAggregatesInput | Prisma.DesktopSettingScalarWhereWithAggregatesInput[]
182
+ OR?: Prisma.DesktopSettingScalarWhereWithAggregatesInput[]
183
+ NOT?: Prisma.DesktopSettingScalarWhereWithAggregatesInput | Prisma.DesktopSettingScalarWhereWithAggregatesInput[]
184
+ key?: Prisma.StringWithAggregatesFilter<"DesktopSetting"> | string
185
+ value?: Prisma.JsonWithAggregatesFilter<"DesktopSetting">
186
+ }
187
+
188
+ export type DesktopSettingCreateInput = {
189
+ key: string
190
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue
191
+ }
192
+
193
+ export type DesktopSettingUncheckedCreateInput = {
194
+ key: string
195
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue
196
+ }
197
+
198
+ export type DesktopSettingUpdateInput = {
199
+ key?: Prisma.StringFieldUpdateOperationsInput | string
200
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
201
+ }
202
+
203
+ export type DesktopSettingUncheckedUpdateInput = {
204
+ key?: Prisma.StringFieldUpdateOperationsInput | string
205
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
206
+ }
207
+
208
+ export type DesktopSettingCreateManyInput = {
209
+ key: string
210
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue
211
+ }
212
+
213
+ export type DesktopSettingUpdateManyMutationInput = {
214
+ key?: Prisma.StringFieldUpdateOperationsInput | string
215
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
216
+ }
217
+
218
+ export type DesktopSettingUncheckedUpdateManyInput = {
219
+ key?: Prisma.StringFieldUpdateOperationsInput | string
220
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
221
+ }
222
+
223
+ export type DesktopSettingCountOrderByAggregateInput = {
224
+ key?: Prisma.SortOrder
225
+ value?: Prisma.SortOrder
226
+ }
227
+
228
+ export type DesktopSettingMaxOrderByAggregateInput = {
229
+ key?: Prisma.SortOrder
230
+ }
231
+
232
+ export type DesktopSettingMinOrderByAggregateInput = {
233
+ key?: Prisma.SortOrder
234
+ }
235
+
236
+
237
+
238
+ export type DesktopSettingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
239
+ key?: boolean
240
+ value?: boolean
241
+ }, ExtArgs["result"]["desktopSetting"]>
242
+
243
+ export type DesktopSettingSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
244
+ key?: boolean
245
+ value?: boolean
246
+ }, ExtArgs["result"]["desktopSetting"]>
247
+
248
+ export type DesktopSettingSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
249
+ key?: boolean
250
+ value?: boolean
251
+ }, ExtArgs["result"]["desktopSetting"]>
252
+
253
+ export type DesktopSettingSelectScalar = {
254
+ key?: boolean
255
+ value?: boolean
256
+ }
257
+
258
+ export type DesktopSettingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"key" | "value", ExtArgs["result"]["desktopSetting"]>
259
+
260
+ export type $DesktopSettingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
261
+ name: "DesktopSetting"
262
+ objects: {}
263
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
264
+ key: string
265
+ value: runtime.JsonValue
266
+ }, ExtArgs["result"]["desktopSetting"]>
267
+ composites: {}
268
+ }
269
+
270
+ export type DesktopSettingGetPayload<S extends boolean | null | undefined | DesktopSettingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload, S>
271
+
272
+ export type DesktopSettingCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
273
+ Omit<DesktopSettingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
274
+ select?: DesktopSettingCountAggregateInputType | true
275
+ }
276
+
277
+ export interface DesktopSettingDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
278
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DesktopSetting'], meta: { name: 'DesktopSetting' } }
279
+ /**
280
+ * Find zero or one DesktopSetting that matches the filter.
281
+ * @param {DesktopSettingFindUniqueArgs} args - Arguments to find a DesktopSetting
282
+ * @example
283
+ * // Get one DesktopSetting
284
+ * const desktopSetting = await prisma.desktopSetting.findUnique({
285
+ * where: {
286
+ * // ... provide filter here
287
+ * }
288
+ * })
289
+ */
290
+ findUnique<T extends DesktopSettingFindUniqueArgs>(args: Prisma.SelectSubset<T, DesktopSettingFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
291
+
292
+ /**
293
+ * Find one DesktopSetting that matches the filter or throw an error with `error.code='P2025'`
294
+ * if no matches were found.
295
+ * @param {DesktopSettingFindUniqueOrThrowArgs} args - Arguments to find a DesktopSetting
296
+ * @example
297
+ * // Get one DesktopSetting
298
+ * const desktopSetting = await prisma.desktopSetting.findUniqueOrThrow({
299
+ * where: {
300
+ * // ... provide filter here
301
+ * }
302
+ * })
303
+ */
304
+ findUniqueOrThrow<T extends DesktopSettingFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DesktopSettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
305
+
306
+ /**
307
+ * Find the first DesktopSetting that matches the filter.
308
+ * Note, that providing `undefined` is treated as the value not being there.
309
+ * Read more here: https://pris.ly/d/null-undefined
310
+ * @param {DesktopSettingFindFirstArgs} args - Arguments to find a DesktopSetting
311
+ * @example
312
+ * // Get one DesktopSetting
313
+ * const desktopSetting = await prisma.desktopSetting.findFirst({
314
+ * where: {
315
+ * // ... provide filter here
316
+ * }
317
+ * })
318
+ */
319
+ findFirst<T extends DesktopSettingFindFirstArgs>(args?: Prisma.SelectSubset<T, DesktopSettingFindFirstArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
320
+
321
+ /**
322
+ * Find the first DesktopSetting that matches the filter or
323
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
324
+ * Note, that providing `undefined` is treated as the value not being there.
325
+ * Read more here: https://pris.ly/d/null-undefined
326
+ * @param {DesktopSettingFindFirstOrThrowArgs} args - Arguments to find a DesktopSetting
327
+ * @example
328
+ * // Get one DesktopSetting
329
+ * const desktopSetting = await prisma.desktopSetting.findFirstOrThrow({
330
+ * where: {
331
+ * // ... provide filter here
332
+ * }
333
+ * })
334
+ */
335
+ findFirstOrThrow<T extends DesktopSettingFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DesktopSettingFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
336
+
337
+ /**
338
+ * Find zero or more DesktopSettings that matches the filter.
339
+ * Note, that providing `undefined` is treated as the value not being there.
340
+ * Read more here: https://pris.ly/d/null-undefined
341
+ * @param {DesktopSettingFindManyArgs} args - Arguments to filter and select certain fields only.
342
+ * @example
343
+ * // Get all DesktopSettings
344
+ * const desktopSettings = await prisma.desktopSetting.findMany()
345
+ *
346
+ * // Get first 10 DesktopSettings
347
+ * const desktopSettings = await prisma.desktopSetting.findMany({ take: 10 })
348
+ *
349
+ * // Only select the `key`
350
+ * const desktopSettingWithKeyOnly = await prisma.desktopSetting.findMany({ select: { key: true } })
351
+ *
352
+ */
353
+ findMany<T extends DesktopSettingFindManyArgs>(args?: Prisma.SelectSubset<T, DesktopSettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
354
+
355
+ /**
356
+ * Create a DesktopSetting.
357
+ * @param {DesktopSettingCreateArgs} args - Arguments to create a DesktopSetting.
358
+ * @example
359
+ * // Create one DesktopSetting
360
+ * const DesktopSetting = await prisma.desktopSetting.create({
361
+ * data: {
362
+ * // ... data to create a DesktopSetting
363
+ * }
364
+ * })
365
+ *
366
+ */
367
+ create<T extends DesktopSettingCreateArgs>(args: Prisma.SelectSubset<T, DesktopSettingCreateArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
368
+
369
+ /**
370
+ * Create many DesktopSettings.
371
+ * @param {DesktopSettingCreateManyArgs} args - Arguments to create many DesktopSettings.
372
+ * @example
373
+ * // Create many DesktopSettings
374
+ * const desktopSetting = await prisma.desktopSetting.createMany({
375
+ * data: [
376
+ * // ... provide data here
377
+ * ]
378
+ * })
379
+ *
380
+ */
381
+ createMany<T extends DesktopSettingCreateManyArgs>(args?: Prisma.SelectSubset<T, DesktopSettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
382
+
383
+ /**
384
+ * Create many DesktopSettings and returns the data saved in the database.
385
+ * @param {DesktopSettingCreateManyAndReturnArgs} args - Arguments to create many DesktopSettings.
386
+ * @example
387
+ * // Create many DesktopSettings
388
+ * const desktopSetting = await prisma.desktopSetting.createManyAndReturn({
389
+ * data: [
390
+ * // ... provide data here
391
+ * ]
392
+ * })
393
+ *
394
+ * // Create many DesktopSettings and only return the `key`
395
+ * const desktopSettingWithKeyOnly = await prisma.desktopSetting.createManyAndReturn({
396
+ * select: { key: true },
397
+ * data: [
398
+ * // ... provide data here
399
+ * ]
400
+ * })
401
+ * Note, that providing `undefined` is treated as the value not being there.
402
+ * Read more here: https://pris.ly/d/null-undefined
403
+ *
404
+ */
405
+ createManyAndReturn<T extends DesktopSettingCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesktopSettingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
406
+
407
+ /**
408
+ * Delete a DesktopSetting.
409
+ * @param {DesktopSettingDeleteArgs} args - Arguments to delete one DesktopSetting.
410
+ * @example
411
+ * // Delete one DesktopSetting
412
+ * const DesktopSetting = await prisma.desktopSetting.delete({
413
+ * where: {
414
+ * // ... filter to delete one DesktopSetting
415
+ * }
416
+ * })
417
+ *
418
+ */
419
+ delete<T extends DesktopSettingDeleteArgs>(args: Prisma.SelectSubset<T, DesktopSettingDeleteArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
420
+
421
+ /**
422
+ * Update one DesktopSetting.
423
+ * @param {DesktopSettingUpdateArgs} args - Arguments to update one DesktopSetting.
424
+ * @example
425
+ * // Update one DesktopSetting
426
+ * const desktopSetting = await prisma.desktopSetting.update({
427
+ * where: {
428
+ * // ... provide filter here
429
+ * },
430
+ * data: {
431
+ * // ... provide data here
432
+ * }
433
+ * })
434
+ *
435
+ */
436
+ update<T extends DesktopSettingUpdateArgs>(args: Prisma.SelectSubset<T, DesktopSettingUpdateArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
437
+
438
+ /**
439
+ * Delete zero or more DesktopSettings.
440
+ * @param {DesktopSettingDeleteManyArgs} args - Arguments to filter DesktopSettings to delete.
441
+ * @example
442
+ * // Delete a few DesktopSettings
443
+ * const { count } = await prisma.desktopSetting.deleteMany({
444
+ * where: {
445
+ * // ... provide filter here
446
+ * }
447
+ * })
448
+ *
449
+ */
450
+ deleteMany<T extends DesktopSettingDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesktopSettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
451
+
452
+ /**
453
+ * Update zero or more DesktopSettings.
454
+ * Note, that providing `undefined` is treated as the value not being there.
455
+ * Read more here: https://pris.ly/d/null-undefined
456
+ * @param {DesktopSettingUpdateManyArgs} args - Arguments to update one or more rows.
457
+ * @example
458
+ * // Update many DesktopSettings
459
+ * const desktopSetting = await prisma.desktopSetting.updateMany({
460
+ * where: {
461
+ * // ... provide filter here
462
+ * },
463
+ * data: {
464
+ * // ... provide data here
465
+ * }
466
+ * })
467
+ *
468
+ */
469
+ updateMany<T extends DesktopSettingUpdateManyArgs>(args: Prisma.SelectSubset<T, DesktopSettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
470
+
471
+ /**
472
+ * Update zero or more DesktopSettings and returns the data updated in the database.
473
+ * @param {DesktopSettingUpdateManyAndReturnArgs} args - Arguments to update many DesktopSettings.
474
+ * @example
475
+ * // Update many DesktopSettings
476
+ * const desktopSetting = await prisma.desktopSetting.updateManyAndReturn({
477
+ * where: {
478
+ * // ... provide filter here
479
+ * },
480
+ * data: [
481
+ * // ... provide data here
482
+ * ]
483
+ * })
484
+ *
485
+ * // Update zero or more DesktopSettings and only return the `key`
486
+ * const desktopSettingWithKeyOnly = await prisma.desktopSetting.updateManyAndReturn({
487
+ * select: { key: true },
488
+ * where: {
489
+ * // ... provide filter here
490
+ * },
491
+ * data: [
492
+ * // ... provide data here
493
+ * ]
494
+ * })
495
+ * Note, that providing `undefined` is treated as the value not being there.
496
+ * Read more here: https://pris.ly/d/null-undefined
497
+ *
498
+ */
499
+ updateManyAndReturn<T extends DesktopSettingUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesktopSettingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
500
+
501
+ /**
502
+ * Create or update one DesktopSetting.
503
+ * @param {DesktopSettingUpsertArgs} args - Arguments to update or create a DesktopSetting.
504
+ * @example
505
+ * // Update or create a DesktopSetting
506
+ * const desktopSetting = await prisma.desktopSetting.upsert({
507
+ * create: {
508
+ * // ... data to create a DesktopSetting
509
+ * },
510
+ * update: {
511
+ * // ... in case it already exists, update
512
+ * },
513
+ * where: {
514
+ * // ... the filter for the DesktopSetting we want to update
515
+ * }
516
+ * })
517
+ */
518
+ upsert<T extends DesktopSettingUpsertArgs>(args: Prisma.SelectSubset<T, DesktopSettingUpsertArgs<ExtArgs>>): Prisma.Prisma__DesktopSettingClient<runtime.Types.Result.GetResult<Prisma.$DesktopSettingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
519
+
520
+
521
+ /**
522
+ * Count the number of DesktopSettings.
523
+ * Note, that providing `undefined` is treated as the value not being there.
524
+ * Read more here: https://pris.ly/d/null-undefined
525
+ * @param {DesktopSettingCountArgs} args - Arguments to filter DesktopSettings to count.
526
+ * @example
527
+ * // Count the number of DesktopSettings
528
+ * const count = await prisma.desktopSetting.count({
529
+ * where: {
530
+ * // ... the filter for the DesktopSettings we want to count
531
+ * }
532
+ * })
533
+ **/
534
+ count<T extends DesktopSettingCountArgs>(
535
+ args?: Prisma.Subset<T, DesktopSettingCountArgs>,
536
+ ): Prisma.PrismaPromise<
537
+ T extends runtime.Types.Utils.Record<'select', any>
538
+ ? T['select'] extends true
539
+ ? number
540
+ : Prisma.GetScalarType<T['select'], DesktopSettingCountAggregateOutputType>
541
+ : number
542
+ >
543
+
544
+ /**
545
+ * Allows you to perform aggregations operations on a DesktopSetting.
546
+ * Note, that providing `undefined` is treated as the value not being there.
547
+ * Read more here: https://pris.ly/d/null-undefined
548
+ * @param {DesktopSettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
549
+ * @example
550
+ * // Ordered by age ascending
551
+ * // Where email contains prisma.io
552
+ * // Limited to the 10 users
553
+ * const aggregations = await prisma.user.aggregate({
554
+ * _avg: {
555
+ * age: true,
556
+ * },
557
+ * where: {
558
+ * email: {
559
+ * contains: "prisma.io",
560
+ * },
561
+ * },
562
+ * orderBy: {
563
+ * age: "asc",
564
+ * },
565
+ * take: 10,
566
+ * })
567
+ **/
568
+ aggregate<T extends DesktopSettingAggregateArgs>(args: Prisma.Subset<T, DesktopSettingAggregateArgs>): Prisma.PrismaPromise<GetDesktopSettingAggregateType<T>>
569
+
570
+ /**
571
+ * Group by DesktopSetting.
572
+ * Note, that providing `undefined` is treated as the value not being there.
573
+ * Read more here: https://pris.ly/d/null-undefined
574
+ * @param {DesktopSettingGroupByArgs} args - Group by arguments.
575
+ * @example
576
+ * // Group by city, order by createdAt, get count
577
+ * const result = await prisma.user.groupBy({
578
+ * by: ['city', 'createdAt'],
579
+ * orderBy: {
580
+ * createdAt: true
581
+ * },
582
+ * _count: {
583
+ * _all: true
584
+ * },
585
+ * })
586
+ *
587
+ **/
588
+ groupBy<
589
+ T extends DesktopSettingGroupByArgs,
590
+ HasSelectOrTake extends Prisma.Or<
591
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
592
+ Prisma.Extends<'take', Prisma.Keys<T>>
593
+ >,
594
+ OrderByArg extends Prisma.True extends HasSelectOrTake
595
+ ? { orderBy: DesktopSettingGroupByArgs['orderBy'] }
596
+ : { orderBy?: DesktopSettingGroupByArgs['orderBy'] },
597
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
598
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
599
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
600
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
601
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
602
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
603
+ InputErrors extends ByEmpty extends Prisma.True
604
+ ? `Error: "by" must not be empty.`
605
+ : HavingValid extends Prisma.False
606
+ ? {
607
+ [P in HavingFields]: P extends ByFields
608
+ ? never
609
+ : P extends string
610
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
611
+ : [
612
+ Error,
613
+ 'Field ',
614
+ P,
615
+ ` in "having" needs to be provided in "by"`,
616
+ ]
617
+ }[HavingFields]
618
+ : 'take' extends Prisma.Keys<T>
619
+ ? 'orderBy' extends Prisma.Keys<T>
620
+ ? ByValid extends Prisma.True
621
+ ? {}
622
+ : {
623
+ [P in OrderFields]: P extends ByFields
624
+ ? never
625
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
626
+ }[OrderFields]
627
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
628
+ : 'skip' extends Prisma.Keys<T>
629
+ ? 'orderBy' extends Prisma.Keys<T>
630
+ ? ByValid extends Prisma.True
631
+ ? {}
632
+ : {
633
+ [P in OrderFields]: P extends ByFields
634
+ ? never
635
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
636
+ }[OrderFields]
637
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
638
+ : ByValid extends Prisma.True
639
+ ? {}
640
+ : {
641
+ [P in OrderFields]: P extends ByFields
642
+ ? never
643
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
644
+ }[OrderFields]
645
+ >(args: Prisma.SubsetIntersection<T, DesktopSettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesktopSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
646
+ /**
647
+ * Fields of the DesktopSetting model
648
+ */
649
+ readonly fields: DesktopSettingFieldRefs;
650
+ }
651
+
652
+ /**
653
+ * The delegate class that acts as a "Promise-like" for DesktopSetting.
654
+ * Why is this prefixed with `Prisma__`?
655
+ * Because we want to prevent naming conflicts as mentioned in
656
+ * https://github.com/prisma/prisma-client-js/issues/707
657
+ */
658
+ export interface Prisma__DesktopSettingClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
659
+ readonly [Symbol.toStringTag]: "PrismaPromise"
660
+ /**
661
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
662
+ * @param onfulfilled The callback to execute when the Promise is resolved.
663
+ * @param onrejected The callback to execute when the Promise is rejected.
664
+ * @returns A Promise for the completion of which ever callback is executed.
665
+ */
666
+ 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>
667
+ /**
668
+ * Attaches a callback for only the rejection of the Promise.
669
+ * @param onrejected The callback to execute when the Promise is rejected.
670
+ * @returns A Promise for the completion of the callback.
671
+ */
672
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
673
+ /**
674
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
675
+ * resolved value cannot be modified from the callback.
676
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
677
+ * @returns A Promise for the completion of the callback.
678
+ */
679
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
680
+ }
681
+
682
+
683
+
684
+
685
+ /**
686
+ * Fields of the DesktopSetting model
687
+ */
688
+ export interface DesktopSettingFieldRefs {
689
+ readonly key: Prisma.FieldRef<"DesktopSetting", 'String'>
690
+ readonly value: Prisma.FieldRef<"DesktopSetting", 'Json'>
691
+ }
692
+
693
+
694
+ // Custom InputTypes
695
+ /**
696
+ * DesktopSetting findUnique
697
+ */
698
+ export type DesktopSettingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
699
+ /**
700
+ * Select specific fields to fetch from the DesktopSetting
701
+ */
702
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
703
+ /**
704
+ * Omit specific fields from the DesktopSetting
705
+ */
706
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
707
+ /**
708
+ * Filter, which DesktopSetting to fetch.
709
+ */
710
+ where: Prisma.DesktopSettingWhereUniqueInput
711
+ }
712
+
713
+ /**
714
+ * DesktopSetting findUniqueOrThrow
715
+ */
716
+ export type DesktopSettingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
717
+ /**
718
+ * Select specific fields to fetch from the DesktopSetting
719
+ */
720
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
721
+ /**
722
+ * Omit specific fields from the DesktopSetting
723
+ */
724
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
725
+ /**
726
+ * Filter, which DesktopSetting to fetch.
727
+ */
728
+ where: Prisma.DesktopSettingWhereUniqueInput
729
+ }
730
+
731
+ /**
732
+ * DesktopSetting findFirst
733
+ */
734
+ export type DesktopSettingFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ /**
736
+ * Select specific fields to fetch from the DesktopSetting
737
+ */
738
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
739
+ /**
740
+ * Omit specific fields from the DesktopSetting
741
+ */
742
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
743
+ /**
744
+ * Filter, which DesktopSetting to fetch.
745
+ */
746
+ where?: Prisma.DesktopSettingWhereInput
747
+ /**
748
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
749
+ *
750
+ * Determine the order of DesktopSettings to fetch.
751
+ */
752
+ orderBy?: Prisma.DesktopSettingOrderByWithRelationInput | Prisma.DesktopSettingOrderByWithRelationInput[]
753
+ /**
754
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
755
+ *
756
+ * Sets the position for searching for DesktopSettings.
757
+ */
758
+ cursor?: Prisma.DesktopSettingWhereUniqueInput
759
+ /**
760
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
761
+ *
762
+ * Take `±n` DesktopSettings from the position of the cursor.
763
+ */
764
+ take?: number
765
+ /**
766
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
767
+ *
768
+ * Skip the first `n` DesktopSettings.
769
+ */
770
+ skip?: number
771
+ /**
772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
773
+ *
774
+ * Filter by unique combinations of DesktopSettings.
775
+ */
776
+ distinct?: Prisma.DesktopSettingScalarFieldEnum | Prisma.DesktopSettingScalarFieldEnum[]
777
+ }
778
+
779
+ /**
780
+ * DesktopSetting findFirstOrThrow
781
+ */
782
+ export type DesktopSettingFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
783
+ /**
784
+ * Select specific fields to fetch from the DesktopSetting
785
+ */
786
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
787
+ /**
788
+ * Omit specific fields from the DesktopSetting
789
+ */
790
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
791
+ /**
792
+ * Filter, which DesktopSetting to fetch.
793
+ */
794
+ where?: Prisma.DesktopSettingWhereInput
795
+ /**
796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
797
+ *
798
+ * Determine the order of DesktopSettings to fetch.
799
+ */
800
+ orderBy?: Prisma.DesktopSettingOrderByWithRelationInput | Prisma.DesktopSettingOrderByWithRelationInput[]
801
+ /**
802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
803
+ *
804
+ * Sets the position for searching for DesktopSettings.
805
+ */
806
+ cursor?: Prisma.DesktopSettingWhereUniqueInput
807
+ /**
808
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
809
+ *
810
+ * Take `±n` DesktopSettings from the position of the cursor.
811
+ */
812
+ take?: number
813
+ /**
814
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
815
+ *
816
+ * Skip the first `n` DesktopSettings.
817
+ */
818
+ skip?: number
819
+ /**
820
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
821
+ *
822
+ * Filter by unique combinations of DesktopSettings.
823
+ */
824
+ distinct?: Prisma.DesktopSettingScalarFieldEnum | Prisma.DesktopSettingScalarFieldEnum[]
825
+ }
826
+
827
+ /**
828
+ * DesktopSetting findMany
829
+ */
830
+ export type DesktopSettingFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
831
+ /**
832
+ * Select specific fields to fetch from the DesktopSetting
833
+ */
834
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
835
+ /**
836
+ * Omit specific fields from the DesktopSetting
837
+ */
838
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
839
+ /**
840
+ * Filter, which DesktopSettings to fetch.
841
+ */
842
+ where?: Prisma.DesktopSettingWhereInput
843
+ /**
844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
845
+ *
846
+ * Determine the order of DesktopSettings to fetch.
847
+ */
848
+ orderBy?: Prisma.DesktopSettingOrderByWithRelationInput | Prisma.DesktopSettingOrderByWithRelationInput[]
849
+ /**
850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
851
+ *
852
+ * Sets the position for listing DesktopSettings.
853
+ */
854
+ cursor?: Prisma.DesktopSettingWhereUniqueInput
855
+ /**
856
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
857
+ *
858
+ * Take `±n` DesktopSettings from the position of the cursor.
859
+ */
860
+ take?: number
861
+ /**
862
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
863
+ *
864
+ * Skip the first `n` DesktopSettings.
865
+ */
866
+ skip?: number
867
+ /**
868
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
869
+ *
870
+ * Filter by unique combinations of DesktopSettings.
871
+ */
872
+ distinct?: Prisma.DesktopSettingScalarFieldEnum | Prisma.DesktopSettingScalarFieldEnum[]
873
+ }
874
+
875
+ /**
876
+ * DesktopSetting create
877
+ */
878
+ export type DesktopSettingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
879
+ /**
880
+ * Select specific fields to fetch from the DesktopSetting
881
+ */
882
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
883
+ /**
884
+ * Omit specific fields from the DesktopSetting
885
+ */
886
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
887
+ /**
888
+ * The data needed to create a DesktopSetting.
889
+ */
890
+ data: Prisma.XOR<Prisma.DesktopSettingCreateInput, Prisma.DesktopSettingUncheckedCreateInput>
891
+ }
892
+
893
+ /**
894
+ * DesktopSetting createMany
895
+ */
896
+ export type DesktopSettingCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
897
+ /**
898
+ * The data used to create many DesktopSettings.
899
+ */
900
+ data: Prisma.DesktopSettingCreateManyInput | Prisma.DesktopSettingCreateManyInput[]
901
+ }
902
+
903
+ /**
904
+ * DesktopSetting createManyAndReturn
905
+ */
906
+ export type DesktopSettingCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
907
+ /**
908
+ * Select specific fields to fetch from the DesktopSetting
909
+ */
910
+ select?: Prisma.DesktopSettingSelectCreateManyAndReturn<ExtArgs> | null
911
+ /**
912
+ * Omit specific fields from the DesktopSetting
913
+ */
914
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
915
+ /**
916
+ * The data used to create many DesktopSettings.
917
+ */
918
+ data: Prisma.DesktopSettingCreateManyInput | Prisma.DesktopSettingCreateManyInput[]
919
+ }
920
+
921
+ /**
922
+ * DesktopSetting update
923
+ */
924
+ export type DesktopSettingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * Select specific fields to fetch from the DesktopSetting
927
+ */
928
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
929
+ /**
930
+ * Omit specific fields from the DesktopSetting
931
+ */
932
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
933
+ /**
934
+ * The data needed to update a DesktopSetting.
935
+ */
936
+ data: Prisma.XOR<Prisma.DesktopSettingUpdateInput, Prisma.DesktopSettingUncheckedUpdateInput>
937
+ /**
938
+ * Choose, which DesktopSetting to update.
939
+ */
940
+ where: Prisma.DesktopSettingWhereUniqueInput
941
+ }
942
+
943
+ /**
944
+ * DesktopSetting updateMany
945
+ */
946
+ export type DesktopSettingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * The data used to update DesktopSettings.
949
+ */
950
+ data: Prisma.XOR<Prisma.DesktopSettingUpdateManyMutationInput, Prisma.DesktopSettingUncheckedUpdateManyInput>
951
+ /**
952
+ * Filter which DesktopSettings to update
953
+ */
954
+ where?: Prisma.DesktopSettingWhereInput
955
+ /**
956
+ * Limit how many DesktopSettings to update.
957
+ */
958
+ limit?: number
959
+ }
960
+
961
+ /**
962
+ * DesktopSetting updateManyAndReturn
963
+ */
964
+ export type DesktopSettingUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the DesktopSetting
967
+ */
968
+ select?: Prisma.DesktopSettingSelectUpdateManyAndReturn<ExtArgs> | null
969
+ /**
970
+ * Omit specific fields from the DesktopSetting
971
+ */
972
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
973
+ /**
974
+ * The data used to update DesktopSettings.
975
+ */
976
+ data: Prisma.XOR<Prisma.DesktopSettingUpdateManyMutationInput, Prisma.DesktopSettingUncheckedUpdateManyInput>
977
+ /**
978
+ * Filter which DesktopSettings to update
979
+ */
980
+ where?: Prisma.DesktopSettingWhereInput
981
+ /**
982
+ * Limit how many DesktopSettings to update.
983
+ */
984
+ limit?: number
985
+ }
986
+
987
+ /**
988
+ * DesktopSetting upsert
989
+ */
990
+ export type DesktopSettingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
991
+ /**
992
+ * Select specific fields to fetch from the DesktopSetting
993
+ */
994
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
995
+ /**
996
+ * Omit specific fields from the DesktopSetting
997
+ */
998
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
999
+ /**
1000
+ * The filter to search for the DesktopSetting to update in case it exists.
1001
+ */
1002
+ where: Prisma.DesktopSettingWhereUniqueInput
1003
+ /**
1004
+ * In case the DesktopSetting found by the `where` argument doesn't exist, create a new DesktopSetting with this data.
1005
+ */
1006
+ create: Prisma.XOR<Prisma.DesktopSettingCreateInput, Prisma.DesktopSettingUncheckedCreateInput>
1007
+ /**
1008
+ * In case the DesktopSetting was found with the provided `where` argument, update it with this data.
1009
+ */
1010
+ update: Prisma.XOR<Prisma.DesktopSettingUpdateInput, Prisma.DesktopSettingUncheckedUpdateInput>
1011
+ }
1012
+
1013
+ /**
1014
+ * DesktopSetting delete
1015
+ */
1016
+ export type DesktopSettingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1017
+ /**
1018
+ * Select specific fields to fetch from the DesktopSetting
1019
+ */
1020
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
1021
+ /**
1022
+ * Omit specific fields from the DesktopSetting
1023
+ */
1024
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
1025
+ /**
1026
+ * Filter which DesktopSetting to delete.
1027
+ */
1028
+ where: Prisma.DesktopSettingWhereUniqueInput
1029
+ }
1030
+
1031
+ /**
1032
+ * DesktopSetting deleteMany
1033
+ */
1034
+ export type DesktopSettingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * Filter which DesktopSettings to delete
1037
+ */
1038
+ where?: Prisma.DesktopSettingWhereInput
1039
+ /**
1040
+ * Limit how many DesktopSettings to delete.
1041
+ */
1042
+ limit?: number
1043
+ }
1044
+
1045
+ /**
1046
+ * DesktopSetting without action
1047
+ */
1048
+ export type DesktopSettingDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the DesktopSetting
1051
+ */
1052
+ select?: Prisma.DesktopSettingSelect<ExtArgs> | null
1053
+ /**
1054
+ * Omit specific fields from the DesktopSetting
1055
+ */
1056
+ omit?: Prisma.DesktopSettingOmit<ExtArgs> | null
1057
+ }