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