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