@prenta/core 4.3.2 → 5.0.1

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