@igstack/app-catalog-backend-core 0.1.1-alpha-20260304050203 → 0.2.0

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