@tiddlywiki/mws 0.1.14 → 0.2.1

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 (117) hide show
  1. package/README.md +41 -20
  2. package/dist/metafile-esm.json +1 -1
  3. package/dist/mws.js +40121 -20116
  4. package/dist/mws.js.map +1 -1
  5. package/mws.run.mjs +28 -8
  6. package/package.json +20 -33
  7. package/plugins/client/plugin.info +1 -1
  8. package/plugins/client/src/multiwikiclientadaptor.ts +6 -34
  9. package/plugins/client/src/mws.d.ts +2 -1
  10. package/plugins/client/src/new-multiwikiclientadaptor.ts +634 -0
  11. package/plugins/client/src/types.d.ts +2531 -1036
  12. package/plugins/client/tiddlers/managetiddleraction.js +0 -5
  13. package/plugins/client/tiddlers/syncer/new-multiwikiclientadaptor.js +432 -0
  14. package/plugins/client/tiddlers/syncer/syncer.js +123 -241
  15. package/plugins/client/tsconfig.json +5 -1
  16. package/prisma/browser.ts +2 -0
  17. package/prisma/client/browser.ts +84 -0
  18. package/prisma/client/client.ts +108 -0
  19. package/prisma/client/commonInputTypes.ts +598 -0
  20. package/prisma/client/enums.ts +42 -0
  21. package/prisma/client/internal/class.ts +326 -0
  22. package/prisma/client/internal/prismaNamespace.ts +1870 -0
  23. package/prisma/client/internal/prismaNamespaceBrowser.ts +259 -0
  24. package/prisma/client/models/Bag.ts +1701 -0
  25. package/prisma/client/models/BagPermission.ts +1284 -0
  26. package/prisma/client/models/Recipe.ts +1722 -0
  27. package/prisma/client/models/RecipeBag.ts +1518 -0
  28. package/prisma/client/models/RecipePermission.ts +1284 -0
  29. package/prisma/client/models/Roles.ts +1316 -0
  30. package/prisma/client/models/Sessions.ts +1344 -0
  31. package/prisma/client/models/Settings.ts +1093 -0
  32. package/prisma/client/models/Template.ts +1477 -0
  33. package/prisma/client/models/TemplatePermission.ts +1284 -0
  34. package/prisma/client/models/Tiddler.ts +1434 -0
  35. package/prisma/client/models/TiddlerEvent.ts +1360 -0
  36. package/prisma/client/models/Users.ts +1579 -0
  37. package/prisma/client/models.ts +24 -0
  38. package/prisma/client/pjtg.ts +183 -0
  39. package/prisma/index.ts +74 -0
  40. package/prisma/migrations/20260708160259_init/migration.sql +172 -0
  41. package/prisma/migrations-v1/migration_lock.toml +3 -0
  42. package/prisma/package.json +12 -0
  43. package/prisma/schema.prisma +147 -89
  44. package/prisma/types.ts +9 -0
  45. package/public/.default.html +1 -0
  46. package/public/admin-vanilla/fish.svg +399 -0
  47. package/public/admin-vanilla/fish2.svg +389 -0
  48. package/public/admin-vanilla/main-LYDE4NDJ.css +1 -0
  49. package/public/admin-vanilla/main-Y4GDO4MD.js +1797 -0
  50. package/public/admin-vanilla/main-Y4GDO4MD.js.map +7 -0
  51. package/public/admin-vanilla/normalize.css +349 -0
  52. package/public/admin-vanilla/polyfill-ADOI2A4V.js +2 -0
  53. package/public/admin-vanilla/polyfill-ADOI2A4V.js.map +7 -0
  54. package/public/{react-admin → admin-vanilla}/site.webmanifest +1 -1
  55. package/public/admin-vanilla.html +62 -0
  56. package/public/admin-vanilla.json +1 -0
  57. package/public/{react-admin → stats}/stats.html +5 -2
  58. package/public/{react-admin → stats}/stats.js +2 -1
  59. package/scripts/build-docs.sh +30 -0
  60. package/scripts/helpers.mjs +107 -0
  61. package/scripts/json.js +8 -0
  62. package/scripts/scripts.mjs +114 -0
  63. package/prisma/client/client.d.ts +0 -1
  64. package/prisma/client/client.js +0 -3
  65. package/prisma/client/default.d.ts +0 -1
  66. package/prisma/client/default.js +0 -3
  67. package/prisma/client/edge.d.ts +0 -1
  68. package/prisma/client/edge.js +0 -297
  69. package/prisma/client/index-browser.js +0 -275
  70. package/prisma/client/index.d.ts +0 -17770
  71. package/prisma/client/index.js +0 -324
  72. package/prisma/client/package.json +0 -173
  73. package/prisma/client/query_engine_bg.js +0 -811
  74. package/prisma/client/query_engine_bg.wasm +0 -0
  75. package/prisma/client/runtime/edge-esm.js +0 -10000
  76. package/prisma/client/runtime/edge.js +0 -10036
  77. package/prisma/client/runtime/index-browser.d.ts +0 -370
  78. package/prisma/client/runtime/index-browser.js +0 -2300
  79. package/prisma/client/runtime/library.d.ts +0 -3681
  80. package/prisma/client/runtime/library.js +0 -10604
  81. package/prisma/client/runtime/react-native.js +0 -10629
  82. package/prisma/client/runtime/wasm-compiler-edge.js +0 -11238
  83. package/prisma/client/runtime/wasm-engine-edge.js +0 -7801
  84. package/prisma/client/schema.prisma +0 -156
  85. package/prisma/client/wasm-edge-light-loader.mjs +0 -4
  86. package/prisma/client/wasm-worker-loader.mjs +0 -4
  87. package/prisma/client/wasm.d.ts +0 -1
  88. package/prisma/client/wasm.js +0 -304
  89. package/prisma/global.ts +0 -53
  90. package/public/react-admin/chunk-YALWN5OT.js +0 -2
  91. package/public/react-admin/esm-L4WLVWJN.js +0 -3
  92. package/public/react-admin/esm-L4WLVWJN.js.map +0 -7
  93. package/public/react-admin/esm-QMNGI3LF.js +0 -3
  94. package/public/react-admin/esm-QMNGI3LF.js.map +0 -7
  95. package/public/react-admin/index.html +0 -36
  96. package/public/react-admin/main.js +0 -268
  97. package/public/react-admin/main.js.map +0 -7
  98. package/public/react-admin/stats.json +0 -1
  99. package/scripts.mjs +0 -142
  100. /package/prisma/{migrations → migrations-v1}/20250606001949_init/migration.sql +0 -0
  101. /package/prisma/{migrations → migrations-v1}/20250613000526_remove_group/migration.sql +0 -0
  102. /package/prisma/{migrations → migrations-v1}/20250620014502_settings/migration.sql +0 -0
  103. /package/prisma/{migrations → migrations-v1}/20250707205229_recipes/migration.sql +0 -0
  104. /package/public/{react-admin → admin-vanilla}/android-chrome-192x192.png +0 -0
  105. /package/public/{react-admin → admin-vanilla}/android-chrome-512x512.png +0 -0
  106. /package/public/{react-admin → admin-vanilla}/apple-touch-icon.png +0 -0
  107. /package/public/{react-admin → admin-vanilla}/favicon-16x16.png +0 -0
  108. /package/public/{react-admin → admin-vanilla}/favicon-32x32.png +0 -0
  109. /package/public/{react-admin → admin-vanilla}/favicon.ico +0 -0
  110. /package/public/{react-admin → admin-vanilla}/favicon.png +0 -0
  111. /package/public/{react-admin/chunk-YALWN5OT.js.map → admin-vanilla/main-LYDE4NDJ.css.map} +0 -0
  112. /package/public/{react-admin → admin-vanilla}/missing-favicon.png +0 -0
  113. /package/public/{react-admin → admin-vanilla}/motovun-jack.jpg +0 -0
  114. /package/public/{react-admin → admin-vanilla}/mws-icon.png +0 -0
  115. /package/public/{react-admin → admin-vanilla}/vite.svg +0 -0
  116. /package/public/{react-admin → stats}/stats.css +0 -0
  117. /package/public/{react-admin → stats}/stats.svg +0 -0
@@ -0,0 +1,1093 @@
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 `Settings` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+
12
+ import type * as PJTG from '../pjtg';
13
+ import type * as runtime from "@prisma/client/runtime/client"
14
+ import type * as $Enums from "../enums.ts"
15
+ import type * as Prisma from "../internal/prismaNamespace.ts"
16
+
17
+ /**
18
+ * Model Settings
19
+ *
20
+ */
21
+ export type SettingsModel = runtime.Types.Result.DefaultSelection<Prisma.$SettingsPayload>
22
+
23
+ export type AggregateSettings = {
24
+ _count: SettingsCountAggregateOutputType | null
25
+ _min: SettingsMinAggregateOutputType | null
26
+ _max: SettingsMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SettingsMinAggregateOutputType = {
30
+ key: string | null
31
+ value: string | null
32
+ updated: Date | null
33
+ }
34
+
35
+ export type SettingsMaxAggregateOutputType = {
36
+ key: string | null
37
+ value: string | null
38
+ updated: Date | null
39
+ }
40
+
41
+ export type SettingsCountAggregateOutputType = {
42
+ key: number
43
+ value: number
44
+ updated: number
45
+ _all: number
46
+ }
47
+
48
+
49
+ export type SettingsMinAggregateInputType = {
50
+ key?: true
51
+ value?: true
52
+ updated?: true
53
+ }
54
+
55
+ export type SettingsMaxAggregateInputType = {
56
+ key?: true
57
+ value?: true
58
+ updated?: true
59
+ }
60
+
61
+ export type SettingsCountAggregateInputType = {
62
+ key?: true
63
+ value?: true
64
+ updated?: true
65
+ _all?: true
66
+ }
67
+
68
+ export type SettingsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
69
+ /**
70
+ * Filter which Settings to aggregate.
71
+ */
72
+ where?: Prisma.SettingsWhereInput
73
+ /**
74
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
75
+ *
76
+ * Determine the order of Settings to fetch.
77
+ */
78
+ orderBy?: Prisma.SettingsOrderByWithRelationInput | Prisma.SettingsOrderByWithRelationInput[]
79
+ /**
80
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
81
+ *
82
+ * Sets the start position
83
+ */
84
+ cursor?: Prisma.SettingsWhereUniqueInput
85
+ /**
86
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87
+ *
88
+ * Take `±n` Settings from the position of the cursor.
89
+ */
90
+ take?: number
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
93
+ *
94
+ * Skip the first `n` Settings.
95
+ */
96
+ skip?: number
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
99
+ *
100
+ * Count returned Settings
101
+ **/
102
+ _count?: true | SettingsCountAggregateInputType
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
105
+ *
106
+ * Select which fields to find the minimum value
107
+ **/
108
+ _min?: SettingsMinAggregateInputType
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
111
+ *
112
+ * Select which fields to find the maximum value
113
+ **/
114
+ _max?: SettingsMaxAggregateInputType
115
+ }
116
+
117
+ export type GetSettingsAggregateType<T extends SettingsAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateSettings]: P extends '_count' | 'count'
119
+ ? T[P] extends true
120
+ ? number
121
+ : Prisma.GetScalarType<T[P], AggregateSettings[P]>
122
+ : Prisma.GetScalarType<T[P], AggregateSettings[P]>
123
+ }
124
+
125
+
126
+
127
+
128
+ export type SettingsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ where?: Prisma.SettingsWhereInput
130
+ orderBy?: Prisma.SettingsOrderByWithAggregationInput | Prisma.SettingsOrderByWithAggregationInput[]
131
+ by: Prisma.SettingsScalarFieldEnum[] | Prisma.SettingsScalarFieldEnum
132
+ having?: Prisma.SettingsScalarWhereWithAggregatesInput
133
+ take?: number
134
+ skip?: number
135
+ _count?: SettingsCountAggregateInputType | true
136
+ _min?: SettingsMinAggregateInputType
137
+ _max?: SettingsMaxAggregateInputType
138
+ }
139
+
140
+ export type SettingsGroupByOutputType = {
141
+ key: string
142
+ value: string
143
+ updated: Date
144
+ _count: SettingsCountAggregateOutputType | null
145
+ _min: SettingsMinAggregateOutputType | null
146
+ _max: SettingsMaxAggregateOutputType | null
147
+ }
148
+
149
+ export type GetSettingsGroupByPayload<T extends SettingsGroupByArgs> = Prisma.PrismaPromise<
150
+ Array<
151
+ Prisma.PickEnumerable<SettingsGroupByOutputType, T['by']> &
152
+ {
153
+ [P in ((keyof T) & (keyof SettingsGroupByOutputType))]: P extends '_count'
154
+ ? T[P] extends boolean
155
+ ? number
156
+ : Prisma.GetScalarType<T[P], SettingsGroupByOutputType[P]>
157
+ : Prisma.GetScalarType<T[P], SettingsGroupByOutputType[P]>
158
+ }
159
+ >
160
+ >
161
+
162
+
163
+
164
+ export type SettingsWhereInput = {
165
+ AND?: Prisma.SettingsWhereInput | Prisma.SettingsWhereInput[]
166
+ OR?: Prisma.SettingsWhereInput[]
167
+ NOT?: Prisma.SettingsWhereInput | Prisma.SettingsWhereInput[]
168
+ key?: Prisma.StringFilter<"Settings"> | string
169
+ value?: Prisma.StringFilter<"Settings"> | string
170
+ updated?: Prisma.DateTimeFilter<"Settings"> | Date | string
171
+ }
172
+
173
+ export type SettingsOrderByWithRelationInput = {
174
+ key?: Prisma.SortOrder
175
+ value?: Prisma.SortOrder
176
+ updated?: Prisma.SortOrder
177
+ }
178
+
179
+ export type SettingsWhereUniqueInput = Prisma.AtLeast<{
180
+ key?: string
181
+ AND?: Prisma.SettingsWhereInput | Prisma.SettingsWhereInput[]
182
+ OR?: Prisma.SettingsWhereInput[]
183
+ NOT?: Prisma.SettingsWhereInput | Prisma.SettingsWhereInput[]
184
+ value?: Prisma.StringFilter<"Settings"> | string
185
+ updated?: Prisma.DateTimeFilter<"Settings"> | Date | string
186
+ }, "key">
187
+
188
+ export type SettingsOrderByWithAggregationInput = {
189
+ key?: Prisma.SortOrder
190
+ value?: Prisma.SortOrder
191
+ updated?: Prisma.SortOrder
192
+ _count?: Prisma.SettingsCountOrderByAggregateInput
193
+ _max?: Prisma.SettingsMaxOrderByAggregateInput
194
+ _min?: Prisma.SettingsMinOrderByAggregateInput
195
+ }
196
+
197
+ export type SettingsScalarWhereWithAggregatesInput = {
198
+ AND?: Prisma.SettingsScalarWhereWithAggregatesInput | Prisma.SettingsScalarWhereWithAggregatesInput[]
199
+ OR?: Prisma.SettingsScalarWhereWithAggregatesInput[]
200
+ NOT?: Prisma.SettingsScalarWhereWithAggregatesInput | Prisma.SettingsScalarWhereWithAggregatesInput[]
201
+ key?: Prisma.StringWithAggregatesFilter<"Settings"> | string
202
+ value?: Prisma.StringWithAggregatesFilter<"Settings"> | string
203
+ updated?: Prisma.DateTimeWithAggregatesFilter<"Settings"> | Date | string
204
+ }
205
+
206
+ export type SettingsCreateInput = {
207
+ key: string
208
+ value: string
209
+ updated?: Date | string
210
+ }
211
+
212
+ export type SettingsUncheckedCreateInput = {
213
+ key: string
214
+ value: string
215
+ updated?: Date | string
216
+ }
217
+
218
+ export type SettingsUpdateInput = {
219
+ key?: Prisma.StringFieldUpdateOperationsInput | string
220
+ value?: Prisma.StringFieldUpdateOperationsInput | string
221
+ updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
222
+ }
223
+
224
+ export type SettingsUncheckedUpdateInput = {
225
+ key?: Prisma.StringFieldUpdateOperationsInput | string
226
+ value?: Prisma.StringFieldUpdateOperationsInput | string
227
+ updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
228
+ }
229
+
230
+ export type SettingsCreateManyInput = {
231
+ key: string
232
+ value: string
233
+ updated?: Date | string
234
+ }
235
+
236
+ export type SettingsUpdateManyMutationInput = {
237
+ key?: Prisma.StringFieldUpdateOperationsInput | string
238
+ value?: Prisma.StringFieldUpdateOperationsInput | string
239
+ updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
240
+ }
241
+
242
+ export type SettingsUncheckedUpdateManyInput = {
243
+ key?: Prisma.StringFieldUpdateOperationsInput | string
244
+ value?: Prisma.StringFieldUpdateOperationsInput | string
245
+ updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
246
+ }
247
+
248
+ export type SettingsCountOrderByAggregateInput = {
249
+ key?: Prisma.SortOrder
250
+ value?: Prisma.SortOrder
251
+ updated?: Prisma.SortOrder
252
+ }
253
+
254
+ export type SettingsMaxOrderByAggregateInput = {
255
+ key?: Prisma.SortOrder
256
+ value?: Prisma.SortOrder
257
+ updated?: Prisma.SortOrder
258
+ }
259
+
260
+ export type SettingsMinOrderByAggregateInput = {
261
+ key?: Prisma.SortOrder
262
+ value?: Prisma.SortOrder
263
+ updated?: Prisma.SortOrder
264
+ }
265
+
266
+
267
+
268
+ export type SettingsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
269
+ key?: boolean
270
+ value?: boolean
271
+ updated?: boolean
272
+ }, ExtArgs["result"]["settings"]>
273
+
274
+ export type SettingsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
275
+ key?: boolean
276
+ value?: boolean
277
+ updated?: boolean
278
+ }, ExtArgs["result"]["settings"]>
279
+
280
+ export type SettingsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
281
+ key?: boolean
282
+ value?: boolean
283
+ updated?: boolean
284
+ }, ExtArgs["result"]["settings"]>
285
+
286
+ export type SettingsSelectScalar = {
287
+ key?: boolean
288
+ value?: boolean
289
+ updated?: boolean
290
+ }
291
+
292
+ export type SettingsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"key" | "value" | "updated", ExtArgs["result"]["settings"]>
293
+
294
+ export type $SettingsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
295
+ name: "Settings"
296
+ objects: {}
297
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
298
+ key: string
299
+ value: string
300
+ updated: Date
301
+ }, ExtArgs["result"]["settings"]>
302
+ composites: {}
303
+ }
304
+
305
+ export type SettingsGetPayload<S extends boolean | null | undefined | SettingsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SettingsPayload, S>
306
+
307
+ export type SettingsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
308
+ Omit<SettingsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
309
+ select?: SettingsCountAggregateInputType | true
310
+ }
311
+
312
+ export interface SettingsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
313
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Settings'], meta: { name: 'Settings' } }
314
+ /**
315
+ * Find zero or one Settings that matches the filter.
316
+ * @param {SettingsFindUniqueArgs} args - Arguments to find a Settings
317
+ * @example
318
+ * // Get one Settings
319
+ * const settings = await prisma.settings.findUnique({
320
+ * where: {
321
+ * // ... provide filter here
322
+ * }
323
+ * })
324
+ */
325
+ findUnique<T extends SettingsFindUniqueArgs>(args: Prisma.SelectSubset<T, SettingsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
326
+
327
+ /**
328
+ * Find one Settings that matches the filter or throw an error with `error.code='P2025'`
329
+ * if no matches were found.
330
+ * @param {SettingsFindUniqueOrThrowArgs} args - Arguments to find a Settings
331
+ * @example
332
+ * // Get one Settings
333
+ * const settings = await prisma.settings.findUniqueOrThrow({
334
+ * where: {
335
+ * // ... provide filter here
336
+ * }
337
+ * })
338
+ */
339
+ findUniqueOrThrow<T extends SettingsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SettingsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
340
+
341
+ /**
342
+ * Find the first Settings that matches the filter.
343
+ * Note, that providing `undefined` is treated as the value not being there.
344
+ * Read more here: https://pris.ly/d/null-undefined
345
+ * @param {SettingsFindFirstArgs} args - Arguments to find a Settings
346
+ * @example
347
+ * // Get one Settings
348
+ * const settings = await prisma.settings.findFirst({
349
+ * where: {
350
+ * // ... provide filter here
351
+ * }
352
+ * })
353
+ */
354
+ findFirst<T extends SettingsFindFirstArgs>(args?: Prisma.SelectSubset<T, SettingsFindFirstArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
355
+
356
+ /**
357
+ * Find the first Settings that matches the filter or
358
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
359
+ * Note, that providing `undefined` is treated as the value not being there.
360
+ * Read more here: https://pris.ly/d/null-undefined
361
+ * @param {SettingsFindFirstOrThrowArgs} args - Arguments to find a Settings
362
+ * @example
363
+ * // Get one Settings
364
+ * const settings = await prisma.settings.findFirstOrThrow({
365
+ * where: {
366
+ * // ... provide filter here
367
+ * }
368
+ * })
369
+ */
370
+ findFirstOrThrow<T extends SettingsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SettingsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
371
+
372
+ /**
373
+ * Find zero or more Settings that matches the filter.
374
+ * Note, that providing `undefined` is treated as the value not being there.
375
+ * Read more here: https://pris.ly/d/null-undefined
376
+ * @param {SettingsFindManyArgs} args - Arguments to filter and select certain fields only.
377
+ * @example
378
+ * // Get all Settings
379
+ * const settings = await prisma.settings.findMany()
380
+ *
381
+ * // Get first 10 Settings
382
+ * const settings = await prisma.settings.findMany({ take: 10 })
383
+ *
384
+ * // Only select the `key`
385
+ * const settingsWithKeyOnly = await prisma.settings.findMany({ select: { key: true } })
386
+ *
387
+ */
388
+ findMany<T extends SettingsFindManyArgs>(args?: Prisma.SelectSubset<T, SettingsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
389
+
390
+ /**
391
+ * Create a Settings.
392
+ * @param {SettingsCreateArgs} args - Arguments to create a Settings.
393
+ * @example
394
+ * // Create one Settings
395
+ * const Settings = await prisma.settings.create({
396
+ * data: {
397
+ * // ... data to create a Settings
398
+ * }
399
+ * })
400
+ *
401
+ */
402
+ create<T extends SettingsCreateArgs>(args: Prisma.SelectSubset<T, SettingsCreateArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
403
+
404
+ /**
405
+ * Create many Settings.
406
+ * @param {SettingsCreateManyArgs} args - Arguments to create many Settings.
407
+ * @example
408
+ * // Create many Settings
409
+ * const settings = await prisma.settings.createMany({
410
+ * data: [
411
+ * // ... provide data here
412
+ * ]
413
+ * })
414
+ *
415
+ */
416
+ createMany<T extends SettingsCreateManyArgs>(args?: Prisma.SelectSubset<T, SettingsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
417
+
418
+ /**
419
+ * Create many Settings and returns the data saved in the database.
420
+ * @param {SettingsCreateManyAndReturnArgs} args - Arguments to create many Settings.
421
+ * @example
422
+ * // Create many Settings
423
+ * const settings = await prisma.settings.createManyAndReturn({
424
+ * data: [
425
+ * // ... provide data here
426
+ * ]
427
+ * })
428
+ *
429
+ * // Create many Settings and only return the `key`
430
+ * const settingsWithKeyOnly = await prisma.settings.createManyAndReturn({
431
+ * select: { key: true },
432
+ * data: [
433
+ * // ... provide data here
434
+ * ]
435
+ * })
436
+ * Note, that providing `undefined` is treated as the value not being there.
437
+ * Read more here: https://pris.ly/d/null-undefined
438
+ *
439
+ */
440
+ createManyAndReturn<T extends SettingsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SettingsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
441
+
442
+ /**
443
+ * Delete a Settings.
444
+ * @param {SettingsDeleteArgs} args - Arguments to delete one Settings.
445
+ * @example
446
+ * // Delete one Settings
447
+ * const Settings = await prisma.settings.delete({
448
+ * where: {
449
+ * // ... filter to delete one Settings
450
+ * }
451
+ * })
452
+ *
453
+ */
454
+ delete<T extends SettingsDeleteArgs>(args: Prisma.SelectSubset<T, SettingsDeleteArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
455
+
456
+ /**
457
+ * Update one Settings.
458
+ * @param {SettingsUpdateArgs} args - Arguments to update one Settings.
459
+ * @example
460
+ * // Update one Settings
461
+ * const settings = await prisma.settings.update({
462
+ * where: {
463
+ * // ... provide filter here
464
+ * },
465
+ * data: {
466
+ * // ... provide data here
467
+ * }
468
+ * })
469
+ *
470
+ */
471
+ update<T extends SettingsUpdateArgs>(args: Prisma.SelectSubset<T, SettingsUpdateArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
472
+
473
+ /**
474
+ * Delete zero or more Settings.
475
+ * @param {SettingsDeleteManyArgs} args - Arguments to filter Settings to delete.
476
+ * @example
477
+ * // Delete a few Settings
478
+ * const { count } = await prisma.settings.deleteMany({
479
+ * where: {
480
+ * // ... provide filter here
481
+ * }
482
+ * })
483
+ *
484
+ */
485
+ deleteMany<T extends SettingsDeleteManyArgs>(args?: Prisma.SelectSubset<T, SettingsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
486
+
487
+ /**
488
+ * Update zero or more Settings.
489
+ * Note, that providing `undefined` is treated as the value not being there.
490
+ * Read more here: https://pris.ly/d/null-undefined
491
+ * @param {SettingsUpdateManyArgs} args - Arguments to update one or more rows.
492
+ * @example
493
+ * // Update many Settings
494
+ * const settings = await prisma.settings.updateMany({
495
+ * where: {
496
+ * // ... provide filter here
497
+ * },
498
+ * data: {
499
+ * // ... provide data here
500
+ * }
501
+ * })
502
+ *
503
+ */
504
+ updateMany<T extends SettingsUpdateManyArgs>(args: Prisma.SelectSubset<T, SettingsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
505
+
506
+ /**
507
+ * Update zero or more Settings and returns the data updated in the database.
508
+ * @param {SettingsUpdateManyAndReturnArgs} args - Arguments to update many Settings.
509
+ * @example
510
+ * // Update many Settings
511
+ * const settings = await prisma.settings.updateManyAndReturn({
512
+ * where: {
513
+ * // ... provide filter here
514
+ * },
515
+ * data: [
516
+ * // ... provide data here
517
+ * ]
518
+ * })
519
+ *
520
+ * // Update zero or more Settings and only return the `key`
521
+ * const settingsWithKeyOnly = await prisma.settings.updateManyAndReturn({
522
+ * select: { key: true },
523
+ * where: {
524
+ * // ... provide filter here
525
+ * },
526
+ * data: [
527
+ * // ... provide data here
528
+ * ]
529
+ * })
530
+ * Note, that providing `undefined` is treated as the value not being there.
531
+ * Read more here: https://pris.ly/d/null-undefined
532
+ *
533
+ */
534
+ updateManyAndReturn<T extends SettingsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SettingsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
535
+
536
+ /**
537
+ * Create or update one Settings.
538
+ * @param {SettingsUpsertArgs} args - Arguments to update or create a Settings.
539
+ * @example
540
+ * // Update or create a Settings
541
+ * const settings = await prisma.settings.upsert({
542
+ * create: {
543
+ * // ... data to create a Settings
544
+ * },
545
+ * update: {
546
+ * // ... in case it already exists, update
547
+ * },
548
+ * where: {
549
+ * // ... the filter for the Settings we want to update
550
+ * }
551
+ * })
552
+ */
553
+ upsert<T extends SettingsUpsertArgs>(args: Prisma.SelectSubset<T, SettingsUpsertArgs<ExtArgs>>): Prisma.Prisma__SettingsClient<runtime.Types.Result.GetResult<Prisma.$SettingsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
554
+
555
+
556
+ /**
557
+ * Count the number of Settings.
558
+ * Note, that providing `undefined` is treated as the value not being there.
559
+ * Read more here: https://pris.ly/d/null-undefined
560
+ * @param {SettingsCountArgs} args - Arguments to filter Settings to count.
561
+ * @example
562
+ * // Count the number of Settings
563
+ * const count = await prisma.settings.count({
564
+ * where: {
565
+ * // ... the filter for the Settings we want to count
566
+ * }
567
+ * })
568
+ **/
569
+ count<T extends SettingsCountArgs>(
570
+ args?: Prisma.Subset<T, SettingsCountArgs>,
571
+ ): Prisma.PrismaPromise<
572
+ T extends runtime.Types.Utils.Record<'select', any>
573
+ ? T['select'] extends true
574
+ ? number
575
+ : Prisma.GetScalarType<T['select'], SettingsCountAggregateOutputType>
576
+ : number
577
+ >
578
+
579
+ /**
580
+ * Allows you to perform aggregations operations on a Settings.
581
+ * Note, that providing `undefined` is treated as the value not being there.
582
+ * Read more here: https://pris.ly/d/null-undefined
583
+ * @param {SettingsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
584
+ * @example
585
+ * // Ordered by age ascending
586
+ * // Where email contains prisma.io
587
+ * // Limited to the 10 users
588
+ * const aggregations = await prisma.user.aggregate({
589
+ * _avg: {
590
+ * age: true,
591
+ * },
592
+ * where: {
593
+ * email: {
594
+ * contains: "prisma.io",
595
+ * },
596
+ * },
597
+ * orderBy: {
598
+ * age: "asc",
599
+ * },
600
+ * take: 10,
601
+ * })
602
+ **/
603
+ aggregate<T extends SettingsAggregateArgs>(args: Prisma.Subset<T, SettingsAggregateArgs>): Prisma.PrismaPromise<GetSettingsAggregateType<T>>
604
+
605
+ /**
606
+ * Group by Settings.
607
+ * Note, that providing `undefined` is treated as the value not being there.
608
+ * Read more here: https://pris.ly/d/null-undefined
609
+ * @param {SettingsGroupByArgs} args - Group by arguments.
610
+ * @example
611
+ * // Group by city, order by createdAt, get count
612
+ * const result = await prisma.user.groupBy({
613
+ * by: ['city', 'createdAt'],
614
+ * orderBy: {
615
+ * createdAt: true
616
+ * },
617
+ * _count: {
618
+ * _all: true
619
+ * },
620
+ * })
621
+ *
622
+ **/
623
+ groupBy<
624
+ T extends SettingsGroupByArgs,
625
+ HasSelectOrTake extends Prisma.Or<
626
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
627
+ Prisma.Extends<'take', Prisma.Keys<T>>
628
+ >,
629
+ OrderByArg extends Prisma.True extends HasSelectOrTake
630
+ ? { orderBy: SettingsGroupByArgs['orderBy'] }
631
+ : { orderBy?: SettingsGroupByArgs['orderBy'] },
632
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
633
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
634
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
635
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
636
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
637
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
638
+ InputErrors extends ByEmpty extends Prisma.True
639
+ ? `Error: "by" must not be empty.`
640
+ : HavingValid extends Prisma.False
641
+ ? {
642
+ [P in HavingFields]: P extends ByFields
643
+ ? never
644
+ : P extends string
645
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
646
+ : [
647
+ Error,
648
+ 'Field ',
649
+ P,
650
+ ` in "having" needs to be provided in "by"`,
651
+ ]
652
+ }[HavingFields]
653
+ : 'take' extends Prisma.Keys<T>
654
+ ? 'orderBy' extends Prisma.Keys<T>
655
+ ? ByValid extends Prisma.True
656
+ ? {}
657
+ : {
658
+ [P in OrderFields]: P extends ByFields
659
+ ? never
660
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
661
+ }[OrderFields]
662
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
663
+ : 'skip' extends Prisma.Keys<T>
664
+ ? 'orderBy' extends Prisma.Keys<T>
665
+ ? ByValid extends Prisma.True
666
+ ? {}
667
+ : {
668
+ [P in OrderFields]: P extends ByFields
669
+ ? never
670
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
671
+ }[OrderFields]
672
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
673
+ : ByValid extends Prisma.True
674
+ ? {}
675
+ : {
676
+ [P in OrderFields]: P extends ByFields
677
+ ? never
678
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
679
+ }[OrderFields]
680
+ >(args: Prisma.SubsetIntersection<T, SettingsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSettingsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
681
+ /**
682
+ * Fields of the Settings model
683
+ */
684
+ readonly fields: SettingsFieldRefs;
685
+ }
686
+
687
+ /**
688
+ * The delegate class that acts as a "Promise-like" for Settings.
689
+ * Why is this prefixed with `Prisma__`?
690
+ * Because we want to prevent naming conflicts as mentioned in
691
+ * https://github.com/prisma/prisma-client-js/issues/707
692
+ */
693
+ export interface Prisma__SettingsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
694
+ readonly [Symbol.toStringTag]: "PrismaPromise"
695
+ /**
696
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
697
+ * @param onfulfilled The callback to execute when the Promise is resolved.
698
+ * @param onrejected The callback to execute when the Promise is rejected.
699
+ * @returns A Promise for the completion of which ever callback is executed.
700
+ */
701
+ 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>
702
+ /**
703
+ * Attaches a callback for only the rejection of the Promise.
704
+ * @param onrejected The callback to execute when the Promise is rejected.
705
+ * @returns A Promise for the completion of the callback.
706
+ */
707
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
708
+ /**
709
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
710
+ * resolved value cannot be modified from the callback.
711
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
712
+ * @returns A Promise for the completion of the callback.
713
+ */
714
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
715
+ }
716
+
717
+
718
+
719
+
720
+ /**
721
+ * Fields of the Settings model
722
+ */
723
+ export interface SettingsFieldRefs {
724
+ readonly key: Prisma.FieldRef<"Settings", 'String'>
725
+ readonly value: Prisma.FieldRef<"Settings", 'String'>
726
+ readonly updated: Prisma.FieldRef<"Settings", 'DateTime'>
727
+ }
728
+
729
+
730
+ // Custom InputTypes
731
+ /**
732
+ * Settings findUnique
733
+ */
734
+ export type SettingsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ /**
736
+ * Select specific fields to fetch from the Settings
737
+ */
738
+ select?: Prisma.SettingsSelect<ExtArgs> | null
739
+ /**
740
+ * Omit specific fields from the Settings
741
+ */
742
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
743
+ /**
744
+ * Filter, which Settings to fetch.
745
+ */
746
+ where: Prisma.SettingsWhereUniqueInput
747
+ }
748
+
749
+ /**
750
+ * Settings findUniqueOrThrow
751
+ */
752
+ export type SettingsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
753
+ /**
754
+ * Select specific fields to fetch from the Settings
755
+ */
756
+ select?: Prisma.SettingsSelect<ExtArgs> | null
757
+ /**
758
+ * Omit specific fields from the Settings
759
+ */
760
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
761
+ /**
762
+ * Filter, which Settings to fetch.
763
+ */
764
+ where: Prisma.SettingsWhereUniqueInput
765
+ }
766
+
767
+ /**
768
+ * Settings findFirst
769
+ */
770
+ export type SettingsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
771
+ /**
772
+ * Select specific fields to fetch from the Settings
773
+ */
774
+ select?: Prisma.SettingsSelect<ExtArgs> | null
775
+ /**
776
+ * Omit specific fields from the Settings
777
+ */
778
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
779
+ /**
780
+ * Filter, which Settings to fetch.
781
+ */
782
+ where?: Prisma.SettingsWhereInput
783
+ /**
784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
785
+ *
786
+ * Determine the order of Settings to fetch.
787
+ */
788
+ orderBy?: Prisma.SettingsOrderByWithRelationInput | Prisma.SettingsOrderByWithRelationInput[]
789
+ /**
790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
791
+ *
792
+ * Sets the position for searching for Settings.
793
+ */
794
+ cursor?: Prisma.SettingsWhereUniqueInput
795
+ /**
796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
797
+ *
798
+ * Take `±n` Settings from the position of the cursor.
799
+ */
800
+ take?: number
801
+ /**
802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
803
+ *
804
+ * Skip the first `n` Settings.
805
+ */
806
+ skip?: number
807
+ /**
808
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
809
+ *
810
+ * Filter by unique combinations of Settings.
811
+ */
812
+ distinct?: Prisma.SettingsScalarFieldEnum | Prisma.SettingsScalarFieldEnum[]
813
+ }
814
+
815
+ /**
816
+ * Settings findFirstOrThrow
817
+ */
818
+ export type SettingsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
819
+ /**
820
+ * Select specific fields to fetch from the Settings
821
+ */
822
+ select?: Prisma.SettingsSelect<ExtArgs> | null
823
+ /**
824
+ * Omit specific fields from the Settings
825
+ */
826
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
827
+ /**
828
+ * Filter, which Settings to fetch.
829
+ */
830
+ where?: Prisma.SettingsWhereInput
831
+ /**
832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
833
+ *
834
+ * Determine the order of Settings to fetch.
835
+ */
836
+ orderBy?: Prisma.SettingsOrderByWithRelationInput | Prisma.SettingsOrderByWithRelationInput[]
837
+ /**
838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
839
+ *
840
+ * Sets the position for searching for Settings.
841
+ */
842
+ cursor?: Prisma.SettingsWhereUniqueInput
843
+ /**
844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
845
+ *
846
+ * Take `±n` Settings from the position of the cursor.
847
+ */
848
+ take?: number
849
+ /**
850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
851
+ *
852
+ * Skip the first `n` Settings.
853
+ */
854
+ skip?: number
855
+ /**
856
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
857
+ *
858
+ * Filter by unique combinations of Settings.
859
+ */
860
+ distinct?: Prisma.SettingsScalarFieldEnum | Prisma.SettingsScalarFieldEnum[]
861
+ }
862
+
863
+ /**
864
+ * Settings findMany
865
+ */
866
+ export type SettingsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ /**
868
+ * Select specific fields to fetch from the Settings
869
+ */
870
+ select?: Prisma.SettingsSelect<ExtArgs> | null
871
+ /**
872
+ * Omit specific fields from the Settings
873
+ */
874
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
875
+ /**
876
+ * Filter, which Settings to fetch.
877
+ */
878
+ where?: Prisma.SettingsWhereInput
879
+ /**
880
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
881
+ *
882
+ * Determine the order of Settings to fetch.
883
+ */
884
+ orderBy?: Prisma.SettingsOrderByWithRelationInput | Prisma.SettingsOrderByWithRelationInput[]
885
+ /**
886
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
887
+ *
888
+ * Sets the position for listing Settings.
889
+ */
890
+ cursor?: Prisma.SettingsWhereUniqueInput
891
+ /**
892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
893
+ *
894
+ * Take `±n` Settings from the position of the cursor.
895
+ */
896
+ take?: number
897
+ /**
898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
899
+ *
900
+ * Skip the first `n` Settings.
901
+ */
902
+ skip?: number
903
+ /**
904
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
905
+ *
906
+ * Filter by unique combinations of Settings.
907
+ */
908
+ distinct?: Prisma.SettingsScalarFieldEnum | Prisma.SettingsScalarFieldEnum[]
909
+ }
910
+
911
+ /**
912
+ * Settings create
913
+ */
914
+ export type SettingsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
915
+ /**
916
+ * Select specific fields to fetch from the Settings
917
+ */
918
+ select?: Prisma.SettingsSelect<ExtArgs> | null
919
+ /**
920
+ * Omit specific fields from the Settings
921
+ */
922
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
923
+ /**
924
+ * The data needed to create a Settings.
925
+ */
926
+ data: Prisma.XOR<Prisma.SettingsCreateInput, Prisma.SettingsUncheckedCreateInput>
927
+ }
928
+
929
+ /**
930
+ * Settings createMany
931
+ */
932
+ export type SettingsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
933
+ /**
934
+ * The data used to create many Settings.
935
+ */
936
+ data: Prisma.SettingsCreateManyInput | Prisma.SettingsCreateManyInput[]
937
+ }
938
+
939
+ /**
940
+ * Settings createManyAndReturn
941
+ */
942
+ export type SettingsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
943
+ /**
944
+ * Select specific fields to fetch from the Settings
945
+ */
946
+ select?: Prisma.SettingsSelectCreateManyAndReturn<ExtArgs> | null
947
+ /**
948
+ * Omit specific fields from the Settings
949
+ */
950
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
951
+ /**
952
+ * The data used to create many Settings.
953
+ */
954
+ data: Prisma.SettingsCreateManyInput | Prisma.SettingsCreateManyInput[]
955
+ }
956
+
957
+ /**
958
+ * Settings update
959
+ */
960
+ export type SettingsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
961
+ /**
962
+ * Select specific fields to fetch from the Settings
963
+ */
964
+ select?: Prisma.SettingsSelect<ExtArgs> | null
965
+ /**
966
+ * Omit specific fields from the Settings
967
+ */
968
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
969
+ /**
970
+ * The data needed to update a Settings.
971
+ */
972
+ data: Prisma.XOR<Prisma.SettingsUpdateInput, Prisma.SettingsUncheckedUpdateInput>
973
+ /**
974
+ * Choose, which Settings to update.
975
+ */
976
+ where: Prisma.SettingsWhereUniqueInput
977
+ }
978
+
979
+ /**
980
+ * Settings updateMany
981
+ */
982
+ export type SettingsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
983
+ /**
984
+ * The data used to update Settings.
985
+ */
986
+ data: Prisma.XOR<Prisma.SettingsUpdateManyMutationInput, Prisma.SettingsUncheckedUpdateManyInput>
987
+ /**
988
+ * Filter which Settings to update
989
+ */
990
+ where?: Prisma.SettingsWhereInput
991
+ /**
992
+ * Limit how many Settings to update.
993
+ */
994
+ limit?: number
995
+ }
996
+
997
+ /**
998
+ * Settings updateManyAndReturn
999
+ */
1000
+ export type SettingsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ /**
1002
+ * Select specific fields to fetch from the Settings
1003
+ */
1004
+ select?: Prisma.SettingsSelectUpdateManyAndReturn<ExtArgs> | null
1005
+ /**
1006
+ * Omit specific fields from the Settings
1007
+ */
1008
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
1009
+ /**
1010
+ * The data used to update Settings.
1011
+ */
1012
+ data: Prisma.XOR<Prisma.SettingsUpdateManyMutationInput, Prisma.SettingsUncheckedUpdateManyInput>
1013
+ /**
1014
+ * Filter which Settings to update
1015
+ */
1016
+ where?: Prisma.SettingsWhereInput
1017
+ /**
1018
+ * Limit how many Settings to update.
1019
+ */
1020
+ limit?: number
1021
+ }
1022
+
1023
+ /**
1024
+ * Settings upsert
1025
+ */
1026
+ export type SettingsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1027
+ /**
1028
+ * Select specific fields to fetch from the Settings
1029
+ */
1030
+ select?: Prisma.SettingsSelect<ExtArgs> | null
1031
+ /**
1032
+ * Omit specific fields from the Settings
1033
+ */
1034
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
1035
+ /**
1036
+ * The filter to search for the Settings to update in case it exists.
1037
+ */
1038
+ where: Prisma.SettingsWhereUniqueInput
1039
+ /**
1040
+ * In case the Settings found by the `where` argument doesn't exist, create a new Settings with this data.
1041
+ */
1042
+ create: Prisma.XOR<Prisma.SettingsCreateInput, Prisma.SettingsUncheckedCreateInput>
1043
+ /**
1044
+ * In case the Settings was found with the provided `where` argument, update it with this data.
1045
+ */
1046
+ update: Prisma.XOR<Prisma.SettingsUpdateInput, Prisma.SettingsUncheckedUpdateInput>
1047
+ }
1048
+
1049
+ /**
1050
+ * Settings delete
1051
+ */
1052
+ export type SettingsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Select specific fields to fetch from the Settings
1055
+ */
1056
+ select?: Prisma.SettingsSelect<ExtArgs> | null
1057
+ /**
1058
+ * Omit specific fields from the Settings
1059
+ */
1060
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
1061
+ /**
1062
+ * Filter which Settings to delete.
1063
+ */
1064
+ where: Prisma.SettingsWhereUniqueInput
1065
+ }
1066
+
1067
+ /**
1068
+ * Settings deleteMany
1069
+ */
1070
+ export type SettingsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Filter which Settings to delete
1073
+ */
1074
+ where?: Prisma.SettingsWhereInput
1075
+ /**
1076
+ * Limit how many Settings to delete.
1077
+ */
1078
+ limit?: number
1079
+ }
1080
+
1081
+ /**
1082
+ * Settings without action
1083
+ */
1084
+ export type SettingsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the Settings
1087
+ */
1088
+ select?: Prisma.SettingsSelect<ExtArgs> | null
1089
+ /**
1090
+ * Omit specific fields from the Settings
1091
+ */
1092
+ omit?: Prisma.SettingsOmit<ExtArgs> | null
1093
+ }