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