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