@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.
- package/LICENSE +21 -21
- package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
- package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
- package/dist/__tests__/api/api-key-auth.test.js +217 -0
- package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
- package/dist/__tests__/api/health.test.d.ts +2 -0
- package/dist/__tests__/api/health.test.d.ts.map +1 -0
- package/dist/__tests__/api/health.test.js +140 -0
- package/dist/__tests__/api/health.test.js.map +1 -0
- package/dist/__tests__/auth/oauth.test.d.ts +2 -0
- package/dist/__tests__/auth/oauth.test.d.ts.map +1 -0
- package/dist/__tests__/auth/oauth.test.js +406 -0
- package/dist/__tests__/auth/oauth.test.js.map +1 -0
- package/dist/__tests__/auth/reset.test.d.ts +2 -0
- package/dist/__tests__/auth/reset.test.d.ts.map +1 -0
- package/dist/__tests__/auth/reset.test.js +303 -0
- package/dist/__tests__/auth/reset.test.js.map +1 -0
- package/dist/__tests__/diagnostics/env.test.d.ts +2 -0
- package/dist/__tests__/diagnostics/env.test.d.ts.map +1 -0
- package/dist/__tests__/diagnostics/env.test.js +119 -0
- package/dist/__tests__/diagnostics/env.test.js.map +1 -0
- package/dist/__tests__/diagnostics/logger.test.d.ts +2 -0
- package/dist/__tests__/diagnostics/logger.test.d.ts.map +1 -0
- package/dist/__tests__/diagnostics/logger.test.js +111 -0
- package/dist/__tests__/diagnostics/logger.test.js.map +1 -0
- package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
- package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
- package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
- package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
- package/dist/__tests__/security/rate-limit.test.js +42 -0
- package/dist/__tests__/security/rate-limit.test.js.map +1 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +7 -6
- package/dist/actions.js.map +1 -1
- package/dist/api/handler-factory.d.ts.map +1 -1
- package/dist/api/handler-factory.js +31 -8
- package/dist/api/handler-factory.js.map +1 -1
- package/dist/api/handlers.d.ts.map +1 -1
- package/dist/api/handlers.js +508 -55
- package/dist/api/handlers.js.map +1 -1
- package/dist/auth/oauth.d.ts.map +1 -1
- package/dist/auth/oauth.js +5 -1
- package/dist/auth/oauth.js.map +1 -1
- package/dist/auth/reset.d.ts.map +1 -1
- package/dist/auth/reset.js +2 -1
- package/dist/auth/reset.js.map +1 -1
- package/dist/config/runtime.d.ts +99 -0
- package/dist/config/runtime.d.ts.map +1 -0
- package/dist/config/runtime.js +43 -0
- package/dist/config/runtime.js.map +1 -0
- package/dist/config/types.d.ts +21 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/diagnostics/env.d.ts +44 -0
- package/dist/diagnostics/env.d.ts.map +1 -0
- package/dist/diagnostics/env.js +293 -0
- package/dist/diagnostics/env.js.map +1 -0
- package/dist/diagnostics/logger.d.ts +38 -0
- package/dist/diagnostics/logger.d.ts.map +1 -0
- package/dist/diagnostics/logger.js +89 -0
- package/dist/diagnostics/logger.js.map +1 -0
- package/dist/page-builder/blocks.d.ts.map +1 -1
- package/dist/page-builder/blocks.js +6 -1
- package/dist/page-builder/blocks.js.map +1 -1
- package/dist/security/api-key-enhanced.d.ts +48 -5
- package/dist/security/api-key-enhanced.d.ts.map +1 -1
- package/dist/security/api-key-enhanced.js +60 -9
- package/dist/security/api-key-enhanced.js.map +1 -1
- package/dist/security/audit.d.ts.map +1 -1
- package/dist/security/audit.js +3 -1
- package/dist/security/audit.js.map +1 -1
- package/dist/security/rate-limit.d.ts +8 -0
- package/dist/security/rate-limit.d.ts.map +1 -1
- package/dist/security/rate-limit.js +81 -3
- package/dist/security/rate-limit.js.map +1 -1
- package/generated/browser.ts +109 -0
- package/generated/client.ts +133 -0
- package/generated/commonInputTypes.ts +709 -0
- package/generated/enums.ts +125 -0
- package/generated/internal/class.ts +376 -0
- package/generated/internal/prismaNamespace.ts +2617 -0
- package/generated/internal/prismaNamespaceBrowser.ts +611 -0
- package/generated/models/ApiKey.ts +1550 -0
- package/generated/models/AuditLog.ts +1206 -0
- package/generated/models/BackupRecord.ts +1250 -0
- package/generated/models/ContentLock.ts +1472 -0
- package/generated/models/ContentTemplate.ts +1416 -0
- package/generated/models/Document.ts +3005 -0
- package/generated/models/Folder.ts +1904 -0
- package/generated/models/FormSubmission.ts +1200 -0
- package/generated/models/InAppNotification.ts +1457 -0
- package/generated/models/Media.ts +2340 -0
- package/generated/models/MediaUsage.ts +1472 -0
- package/generated/models/OAuthAccount.ts +1463 -0
- package/generated/models/Redirect.ts +1284 -0
- package/generated/models/Session.ts +1492 -0
- package/generated/models/Site.ts +1206 -0
- package/generated/models/User.ts +3513 -0
- package/generated/models/Version.ts +1511 -0
- package/generated/models/WorkflowState.ts +1514 -0
- package/generated/models.ts +29 -0
- package/package.json +1 -1
- package/prisma/cms-schema.prisma +306 -306
- package/prisma/migrations/0001_init/migration.sql +384 -384
- package/prisma/migrations/0002_folders/migration.sql +39 -39
- package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
- package/prisma/migrations/0004_script_tags/migration.sql +21 -21
- package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
- package/prisma/migrations/0006_page_builder/migration.sql +38 -38
- package/prisma/migrations/migration_lock.toml +3 -3
- package/prisma/schema.prisma +549 -549
|
@@ -0,0 +1,1511 @@
|
|
|
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 `Version` 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 Version
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type VersionModel = runtime.Types.Result.DefaultSelection<Prisma.$VersionPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateVersion = {
|
|
22
|
+
_count: VersionCountAggregateOutputType | null
|
|
23
|
+
_min: VersionMinAggregateOutputType | null
|
|
24
|
+
_max: VersionMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type VersionMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
documentId: string | null
|
|
30
|
+
changedById: string | null
|
|
31
|
+
changeType: $Enums.ChangeType | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type VersionMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
documentId: string | null
|
|
38
|
+
changedById: string | null
|
|
39
|
+
changeType: $Enums.ChangeType | null
|
|
40
|
+
createdAt: Date | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type VersionCountAggregateOutputType = {
|
|
44
|
+
id: number
|
|
45
|
+
documentId: number
|
|
46
|
+
data: number
|
|
47
|
+
changedById: number
|
|
48
|
+
changeType: number
|
|
49
|
+
createdAt: number
|
|
50
|
+
_all: number
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export type VersionMinAggregateInputType = {
|
|
55
|
+
id?: true
|
|
56
|
+
documentId?: true
|
|
57
|
+
changedById?: true
|
|
58
|
+
changeType?: true
|
|
59
|
+
createdAt?: true
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type VersionMaxAggregateInputType = {
|
|
63
|
+
id?: true
|
|
64
|
+
documentId?: true
|
|
65
|
+
changedById?: true
|
|
66
|
+
changeType?: true
|
|
67
|
+
createdAt?: true
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type VersionCountAggregateInputType = {
|
|
71
|
+
id?: true
|
|
72
|
+
documentId?: true
|
|
73
|
+
data?: true
|
|
74
|
+
changedById?: true
|
|
75
|
+
changeType?: true
|
|
76
|
+
createdAt?: true
|
|
77
|
+
_all?: true
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type VersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
81
|
+
/**
|
|
82
|
+
* Filter which Version to aggregate.
|
|
83
|
+
*/
|
|
84
|
+
where?: Prisma.VersionWhereInput
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
87
|
+
*
|
|
88
|
+
* Determine the order of Versions to fetch.
|
|
89
|
+
*/
|
|
90
|
+
orderBy?: Prisma.VersionOrderByWithRelationInput | Prisma.VersionOrderByWithRelationInput[]
|
|
91
|
+
/**
|
|
92
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
93
|
+
*
|
|
94
|
+
* Sets the start position
|
|
95
|
+
*/
|
|
96
|
+
cursor?: Prisma.VersionWhereUniqueInput
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
99
|
+
*
|
|
100
|
+
* Take `±n` Versions from the position of the cursor.
|
|
101
|
+
*/
|
|
102
|
+
take?: number
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
105
|
+
*
|
|
106
|
+
* Skip the first `n` Versions.
|
|
107
|
+
*/
|
|
108
|
+
skip?: number
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
111
|
+
*
|
|
112
|
+
* Count returned Versions
|
|
113
|
+
**/
|
|
114
|
+
_count?: true | VersionCountAggregateInputType
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
+
*
|
|
118
|
+
* Select which fields to find the minimum value
|
|
119
|
+
**/
|
|
120
|
+
_min?: VersionMinAggregateInputType
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
123
|
+
*
|
|
124
|
+
* Select which fields to find the maximum value
|
|
125
|
+
**/
|
|
126
|
+
_max?: VersionMaxAggregateInputType
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type GetVersionAggregateType<T extends VersionAggregateArgs> = {
|
|
130
|
+
[P in keyof T & keyof AggregateVersion]: P extends '_count' | 'count'
|
|
131
|
+
? T[P] extends true
|
|
132
|
+
? number
|
|
133
|
+
: Prisma.GetScalarType<T[P], AggregateVersion[P]>
|
|
134
|
+
: Prisma.GetScalarType<T[P], AggregateVersion[P]>
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export type VersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
+
where?: Prisma.VersionWhereInput
|
|
142
|
+
orderBy?: Prisma.VersionOrderByWithAggregationInput | Prisma.VersionOrderByWithAggregationInput[]
|
|
143
|
+
by: Prisma.VersionScalarFieldEnum[] | Prisma.VersionScalarFieldEnum
|
|
144
|
+
having?: Prisma.VersionScalarWhereWithAggregatesInput
|
|
145
|
+
take?: number
|
|
146
|
+
skip?: number
|
|
147
|
+
_count?: VersionCountAggregateInputType | true
|
|
148
|
+
_min?: VersionMinAggregateInputType
|
|
149
|
+
_max?: VersionMaxAggregateInputType
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type VersionGroupByOutputType = {
|
|
153
|
+
id: string
|
|
154
|
+
documentId: string
|
|
155
|
+
data: runtime.JsonValue
|
|
156
|
+
changedById: string
|
|
157
|
+
changeType: $Enums.ChangeType
|
|
158
|
+
createdAt: Date
|
|
159
|
+
_count: VersionCountAggregateOutputType | null
|
|
160
|
+
_min: VersionMinAggregateOutputType | null
|
|
161
|
+
_max: VersionMaxAggregateOutputType | null
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
type GetVersionGroupByPayload<T extends VersionGroupByArgs> = Prisma.PrismaPromise<
|
|
165
|
+
Array<
|
|
166
|
+
Prisma.PickEnumerable<VersionGroupByOutputType, T['by']> &
|
|
167
|
+
{
|
|
168
|
+
[P in ((keyof T) & (keyof VersionGroupByOutputType))]: P extends '_count'
|
|
169
|
+
? T[P] extends boolean
|
|
170
|
+
? number
|
|
171
|
+
: Prisma.GetScalarType<T[P], VersionGroupByOutputType[P]>
|
|
172
|
+
: Prisma.GetScalarType<T[P], VersionGroupByOutputType[P]>
|
|
173
|
+
}
|
|
174
|
+
>
|
|
175
|
+
>
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
export type VersionWhereInput = {
|
|
180
|
+
AND?: Prisma.VersionWhereInput | Prisma.VersionWhereInput[]
|
|
181
|
+
OR?: Prisma.VersionWhereInput[]
|
|
182
|
+
NOT?: Prisma.VersionWhereInput | Prisma.VersionWhereInput[]
|
|
183
|
+
id?: Prisma.StringFilter<"Version"> | string
|
|
184
|
+
documentId?: Prisma.StringFilter<"Version"> | string
|
|
185
|
+
data?: Prisma.JsonFilter<"Version">
|
|
186
|
+
changedById?: Prisma.StringFilter<"Version"> | string
|
|
187
|
+
changeType?: Prisma.EnumChangeTypeFilter<"Version"> | $Enums.ChangeType
|
|
188
|
+
createdAt?: Prisma.DateTimeFilter<"Version"> | Date | string
|
|
189
|
+
document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
|
|
190
|
+
changedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type VersionOrderByWithRelationInput = {
|
|
194
|
+
id?: Prisma.SortOrder
|
|
195
|
+
documentId?: Prisma.SortOrder
|
|
196
|
+
data?: Prisma.SortOrder
|
|
197
|
+
changedById?: Prisma.SortOrder
|
|
198
|
+
changeType?: Prisma.SortOrder
|
|
199
|
+
createdAt?: Prisma.SortOrder
|
|
200
|
+
document?: Prisma.DocumentOrderByWithRelationInput
|
|
201
|
+
changedBy?: Prisma.UserOrderByWithRelationInput
|
|
202
|
+
_relevance?: Prisma.VersionOrderByRelevanceInput
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type VersionWhereUniqueInput = Prisma.AtLeast<{
|
|
206
|
+
id?: string
|
|
207
|
+
AND?: Prisma.VersionWhereInput | Prisma.VersionWhereInput[]
|
|
208
|
+
OR?: Prisma.VersionWhereInput[]
|
|
209
|
+
NOT?: Prisma.VersionWhereInput | Prisma.VersionWhereInput[]
|
|
210
|
+
documentId?: Prisma.StringFilter<"Version"> | string
|
|
211
|
+
data?: Prisma.JsonFilter<"Version">
|
|
212
|
+
changedById?: Prisma.StringFilter<"Version"> | string
|
|
213
|
+
changeType?: Prisma.EnumChangeTypeFilter<"Version"> | $Enums.ChangeType
|
|
214
|
+
createdAt?: Prisma.DateTimeFilter<"Version"> | Date | string
|
|
215
|
+
document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
|
|
216
|
+
changedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
217
|
+
}, "id">
|
|
218
|
+
|
|
219
|
+
export type VersionOrderByWithAggregationInput = {
|
|
220
|
+
id?: Prisma.SortOrder
|
|
221
|
+
documentId?: Prisma.SortOrder
|
|
222
|
+
data?: Prisma.SortOrder
|
|
223
|
+
changedById?: Prisma.SortOrder
|
|
224
|
+
changeType?: Prisma.SortOrder
|
|
225
|
+
createdAt?: Prisma.SortOrder
|
|
226
|
+
_count?: Prisma.VersionCountOrderByAggregateInput
|
|
227
|
+
_max?: Prisma.VersionMaxOrderByAggregateInput
|
|
228
|
+
_min?: Prisma.VersionMinOrderByAggregateInput
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type VersionScalarWhereWithAggregatesInput = {
|
|
232
|
+
AND?: Prisma.VersionScalarWhereWithAggregatesInput | Prisma.VersionScalarWhereWithAggregatesInput[]
|
|
233
|
+
OR?: Prisma.VersionScalarWhereWithAggregatesInput[]
|
|
234
|
+
NOT?: Prisma.VersionScalarWhereWithAggregatesInput | Prisma.VersionScalarWhereWithAggregatesInput[]
|
|
235
|
+
id?: Prisma.StringWithAggregatesFilter<"Version"> | string
|
|
236
|
+
documentId?: Prisma.StringWithAggregatesFilter<"Version"> | string
|
|
237
|
+
data?: Prisma.JsonWithAggregatesFilter<"Version">
|
|
238
|
+
changedById?: Prisma.StringWithAggregatesFilter<"Version"> | string
|
|
239
|
+
changeType?: Prisma.EnumChangeTypeWithAggregatesFilter<"Version"> | $Enums.ChangeType
|
|
240
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Version"> | Date | string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type VersionCreateInput = {
|
|
244
|
+
id?: string
|
|
245
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
246
|
+
changeType: $Enums.ChangeType
|
|
247
|
+
createdAt?: Date | string
|
|
248
|
+
document: Prisma.DocumentCreateNestedOneWithoutVersionsInput
|
|
249
|
+
changedBy: Prisma.UserCreateNestedOneWithoutVersionsInput
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type VersionUncheckedCreateInput = {
|
|
253
|
+
id?: string
|
|
254
|
+
documentId: string
|
|
255
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
256
|
+
changedById: string
|
|
257
|
+
changeType: $Enums.ChangeType
|
|
258
|
+
createdAt?: Date | string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type VersionUpdateInput = {
|
|
262
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
264
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
265
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
266
|
+
document?: Prisma.DocumentUpdateOneRequiredWithoutVersionsNestedInput
|
|
267
|
+
changedBy?: Prisma.UserUpdateOneRequiredWithoutVersionsNestedInput
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type VersionUncheckedUpdateInput = {
|
|
271
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
272
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
273
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
274
|
+
changedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
275
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
276
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export type VersionCreateManyInput = {
|
|
280
|
+
id?: string
|
|
281
|
+
documentId: string
|
|
282
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
283
|
+
changedById: string
|
|
284
|
+
changeType: $Enums.ChangeType
|
|
285
|
+
createdAt?: Date | string
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type VersionUpdateManyMutationInput = {
|
|
289
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
291
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
292
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type VersionUncheckedUpdateManyInput = {
|
|
296
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
297
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
298
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
299
|
+
changedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
300
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
301
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type VersionListRelationFilter = {
|
|
305
|
+
every?: Prisma.VersionWhereInput
|
|
306
|
+
some?: Prisma.VersionWhereInput
|
|
307
|
+
none?: Prisma.VersionWhereInput
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type VersionOrderByRelationAggregateInput = {
|
|
311
|
+
_count?: Prisma.SortOrder
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type VersionOrderByRelevanceInput = {
|
|
315
|
+
fields: Prisma.VersionOrderByRelevanceFieldEnum | Prisma.VersionOrderByRelevanceFieldEnum[]
|
|
316
|
+
sort: Prisma.SortOrder
|
|
317
|
+
search: string
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type VersionCountOrderByAggregateInput = {
|
|
321
|
+
id?: Prisma.SortOrder
|
|
322
|
+
documentId?: Prisma.SortOrder
|
|
323
|
+
data?: Prisma.SortOrder
|
|
324
|
+
changedById?: Prisma.SortOrder
|
|
325
|
+
changeType?: Prisma.SortOrder
|
|
326
|
+
createdAt?: Prisma.SortOrder
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type VersionMaxOrderByAggregateInput = {
|
|
330
|
+
id?: Prisma.SortOrder
|
|
331
|
+
documentId?: Prisma.SortOrder
|
|
332
|
+
changedById?: Prisma.SortOrder
|
|
333
|
+
changeType?: Prisma.SortOrder
|
|
334
|
+
createdAt?: Prisma.SortOrder
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type VersionMinOrderByAggregateInput = {
|
|
338
|
+
id?: Prisma.SortOrder
|
|
339
|
+
documentId?: Prisma.SortOrder
|
|
340
|
+
changedById?: Prisma.SortOrder
|
|
341
|
+
changeType?: Prisma.SortOrder
|
|
342
|
+
createdAt?: Prisma.SortOrder
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type VersionCreateNestedManyWithoutChangedByInput = {
|
|
346
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput> | Prisma.VersionCreateWithoutChangedByInput[] | Prisma.VersionUncheckedCreateWithoutChangedByInput[]
|
|
347
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutChangedByInput | Prisma.VersionCreateOrConnectWithoutChangedByInput[]
|
|
348
|
+
createMany?: Prisma.VersionCreateManyChangedByInputEnvelope
|
|
349
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export type VersionUncheckedCreateNestedManyWithoutChangedByInput = {
|
|
353
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput> | Prisma.VersionCreateWithoutChangedByInput[] | Prisma.VersionUncheckedCreateWithoutChangedByInput[]
|
|
354
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutChangedByInput | Prisma.VersionCreateOrConnectWithoutChangedByInput[]
|
|
355
|
+
createMany?: Prisma.VersionCreateManyChangedByInputEnvelope
|
|
356
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type VersionUpdateManyWithoutChangedByNestedInput = {
|
|
360
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput> | Prisma.VersionCreateWithoutChangedByInput[] | Prisma.VersionUncheckedCreateWithoutChangedByInput[]
|
|
361
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutChangedByInput | Prisma.VersionCreateOrConnectWithoutChangedByInput[]
|
|
362
|
+
upsert?: Prisma.VersionUpsertWithWhereUniqueWithoutChangedByInput | Prisma.VersionUpsertWithWhereUniqueWithoutChangedByInput[]
|
|
363
|
+
createMany?: Prisma.VersionCreateManyChangedByInputEnvelope
|
|
364
|
+
set?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
365
|
+
disconnect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
366
|
+
delete?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
367
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
368
|
+
update?: Prisma.VersionUpdateWithWhereUniqueWithoutChangedByInput | Prisma.VersionUpdateWithWhereUniqueWithoutChangedByInput[]
|
|
369
|
+
updateMany?: Prisma.VersionUpdateManyWithWhereWithoutChangedByInput | Prisma.VersionUpdateManyWithWhereWithoutChangedByInput[]
|
|
370
|
+
deleteMany?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type VersionUncheckedUpdateManyWithoutChangedByNestedInput = {
|
|
374
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput> | Prisma.VersionCreateWithoutChangedByInput[] | Prisma.VersionUncheckedCreateWithoutChangedByInput[]
|
|
375
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutChangedByInput | Prisma.VersionCreateOrConnectWithoutChangedByInput[]
|
|
376
|
+
upsert?: Prisma.VersionUpsertWithWhereUniqueWithoutChangedByInput | Prisma.VersionUpsertWithWhereUniqueWithoutChangedByInput[]
|
|
377
|
+
createMany?: Prisma.VersionCreateManyChangedByInputEnvelope
|
|
378
|
+
set?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
379
|
+
disconnect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
380
|
+
delete?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
381
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
382
|
+
update?: Prisma.VersionUpdateWithWhereUniqueWithoutChangedByInput | Prisma.VersionUpdateWithWhereUniqueWithoutChangedByInput[]
|
|
383
|
+
updateMany?: Prisma.VersionUpdateManyWithWhereWithoutChangedByInput | Prisma.VersionUpdateManyWithWhereWithoutChangedByInput[]
|
|
384
|
+
deleteMany?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export type VersionCreateNestedManyWithoutDocumentInput = {
|
|
388
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput> | Prisma.VersionCreateWithoutDocumentInput[] | Prisma.VersionUncheckedCreateWithoutDocumentInput[]
|
|
389
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutDocumentInput | Prisma.VersionCreateOrConnectWithoutDocumentInput[]
|
|
390
|
+
createMany?: Prisma.VersionCreateManyDocumentInputEnvelope
|
|
391
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export type VersionUncheckedCreateNestedManyWithoutDocumentInput = {
|
|
395
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput> | Prisma.VersionCreateWithoutDocumentInput[] | Prisma.VersionUncheckedCreateWithoutDocumentInput[]
|
|
396
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutDocumentInput | Prisma.VersionCreateOrConnectWithoutDocumentInput[]
|
|
397
|
+
createMany?: Prisma.VersionCreateManyDocumentInputEnvelope
|
|
398
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export type VersionUpdateManyWithoutDocumentNestedInput = {
|
|
402
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput> | Prisma.VersionCreateWithoutDocumentInput[] | Prisma.VersionUncheckedCreateWithoutDocumentInput[]
|
|
403
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutDocumentInput | Prisma.VersionCreateOrConnectWithoutDocumentInput[]
|
|
404
|
+
upsert?: Prisma.VersionUpsertWithWhereUniqueWithoutDocumentInput | Prisma.VersionUpsertWithWhereUniqueWithoutDocumentInput[]
|
|
405
|
+
createMany?: Prisma.VersionCreateManyDocumentInputEnvelope
|
|
406
|
+
set?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
407
|
+
disconnect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
408
|
+
delete?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
409
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
410
|
+
update?: Prisma.VersionUpdateWithWhereUniqueWithoutDocumentInput | Prisma.VersionUpdateWithWhereUniqueWithoutDocumentInput[]
|
|
411
|
+
updateMany?: Prisma.VersionUpdateManyWithWhereWithoutDocumentInput | Prisma.VersionUpdateManyWithWhereWithoutDocumentInput[]
|
|
412
|
+
deleteMany?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export type VersionUncheckedUpdateManyWithoutDocumentNestedInput = {
|
|
416
|
+
create?: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput> | Prisma.VersionCreateWithoutDocumentInput[] | Prisma.VersionUncheckedCreateWithoutDocumentInput[]
|
|
417
|
+
connectOrCreate?: Prisma.VersionCreateOrConnectWithoutDocumentInput | Prisma.VersionCreateOrConnectWithoutDocumentInput[]
|
|
418
|
+
upsert?: Prisma.VersionUpsertWithWhereUniqueWithoutDocumentInput | Prisma.VersionUpsertWithWhereUniqueWithoutDocumentInput[]
|
|
419
|
+
createMany?: Prisma.VersionCreateManyDocumentInputEnvelope
|
|
420
|
+
set?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
421
|
+
disconnect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
422
|
+
delete?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
423
|
+
connect?: Prisma.VersionWhereUniqueInput | Prisma.VersionWhereUniqueInput[]
|
|
424
|
+
update?: Prisma.VersionUpdateWithWhereUniqueWithoutDocumentInput | Prisma.VersionUpdateWithWhereUniqueWithoutDocumentInput[]
|
|
425
|
+
updateMany?: Prisma.VersionUpdateManyWithWhereWithoutDocumentInput | Prisma.VersionUpdateManyWithWhereWithoutDocumentInput[]
|
|
426
|
+
deleteMany?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export type EnumChangeTypeFieldUpdateOperationsInput = {
|
|
430
|
+
set?: $Enums.ChangeType
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export type VersionCreateWithoutChangedByInput = {
|
|
434
|
+
id?: string
|
|
435
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
436
|
+
changeType: $Enums.ChangeType
|
|
437
|
+
createdAt?: Date | string
|
|
438
|
+
document: Prisma.DocumentCreateNestedOneWithoutVersionsInput
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type VersionUncheckedCreateWithoutChangedByInput = {
|
|
442
|
+
id?: string
|
|
443
|
+
documentId: string
|
|
444
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
445
|
+
changeType: $Enums.ChangeType
|
|
446
|
+
createdAt?: Date | string
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export type VersionCreateOrConnectWithoutChangedByInput = {
|
|
450
|
+
where: Prisma.VersionWhereUniqueInput
|
|
451
|
+
create: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput>
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type VersionCreateManyChangedByInputEnvelope = {
|
|
455
|
+
data: Prisma.VersionCreateManyChangedByInput | Prisma.VersionCreateManyChangedByInput[]
|
|
456
|
+
skipDuplicates?: boolean
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export type VersionUpsertWithWhereUniqueWithoutChangedByInput = {
|
|
460
|
+
where: Prisma.VersionWhereUniqueInput
|
|
461
|
+
update: Prisma.XOR<Prisma.VersionUpdateWithoutChangedByInput, Prisma.VersionUncheckedUpdateWithoutChangedByInput>
|
|
462
|
+
create: Prisma.XOR<Prisma.VersionCreateWithoutChangedByInput, Prisma.VersionUncheckedCreateWithoutChangedByInput>
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export type VersionUpdateWithWhereUniqueWithoutChangedByInput = {
|
|
466
|
+
where: Prisma.VersionWhereUniqueInput
|
|
467
|
+
data: Prisma.XOR<Prisma.VersionUpdateWithoutChangedByInput, Prisma.VersionUncheckedUpdateWithoutChangedByInput>
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export type VersionUpdateManyWithWhereWithoutChangedByInput = {
|
|
471
|
+
where: Prisma.VersionScalarWhereInput
|
|
472
|
+
data: Prisma.XOR<Prisma.VersionUpdateManyMutationInput, Prisma.VersionUncheckedUpdateManyWithoutChangedByInput>
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export type VersionScalarWhereInput = {
|
|
476
|
+
AND?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
477
|
+
OR?: Prisma.VersionScalarWhereInput[]
|
|
478
|
+
NOT?: Prisma.VersionScalarWhereInput | Prisma.VersionScalarWhereInput[]
|
|
479
|
+
id?: Prisma.StringFilter<"Version"> | string
|
|
480
|
+
documentId?: Prisma.StringFilter<"Version"> | string
|
|
481
|
+
data?: Prisma.JsonFilter<"Version">
|
|
482
|
+
changedById?: Prisma.StringFilter<"Version"> | string
|
|
483
|
+
changeType?: Prisma.EnumChangeTypeFilter<"Version"> | $Enums.ChangeType
|
|
484
|
+
createdAt?: Prisma.DateTimeFilter<"Version"> | Date | string
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export type VersionCreateWithoutDocumentInput = {
|
|
488
|
+
id?: string
|
|
489
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
490
|
+
changeType: $Enums.ChangeType
|
|
491
|
+
createdAt?: Date | string
|
|
492
|
+
changedBy: Prisma.UserCreateNestedOneWithoutVersionsInput
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export type VersionUncheckedCreateWithoutDocumentInput = {
|
|
496
|
+
id?: string
|
|
497
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
498
|
+
changedById: string
|
|
499
|
+
changeType: $Enums.ChangeType
|
|
500
|
+
createdAt?: Date | string
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export type VersionCreateOrConnectWithoutDocumentInput = {
|
|
504
|
+
where: Prisma.VersionWhereUniqueInput
|
|
505
|
+
create: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput>
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export type VersionCreateManyDocumentInputEnvelope = {
|
|
509
|
+
data: Prisma.VersionCreateManyDocumentInput | Prisma.VersionCreateManyDocumentInput[]
|
|
510
|
+
skipDuplicates?: boolean
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export type VersionUpsertWithWhereUniqueWithoutDocumentInput = {
|
|
514
|
+
where: Prisma.VersionWhereUniqueInput
|
|
515
|
+
update: Prisma.XOR<Prisma.VersionUpdateWithoutDocumentInput, Prisma.VersionUncheckedUpdateWithoutDocumentInput>
|
|
516
|
+
create: Prisma.XOR<Prisma.VersionCreateWithoutDocumentInput, Prisma.VersionUncheckedCreateWithoutDocumentInput>
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export type VersionUpdateWithWhereUniqueWithoutDocumentInput = {
|
|
520
|
+
where: Prisma.VersionWhereUniqueInput
|
|
521
|
+
data: Prisma.XOR<Prisma.VersionUpdateWithoutDocumentInput, Prisma.VersionUncheckedUpdateWithoutDocumentInput>
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export type VersionUpdateManyWithWhereWithoutDocumentInput = {
|
|
525
|
+
where: Prisma.VersionScalarWhereInput
|
|
526
|
+
data: Prisma.XOR<Prisma.VersionUpdateManyMutationInput, Prisma.VersionUncheckedUpdateManyWithoutDocumentInput>
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export type VersionCreateManyChangedByInput = {
|
|
530
|
+
id?: string
|
|
531
|
+
documentId: string
|
|
532
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
533
|
+
changeType: $Enums.ChangeType
|
|
534
|
+
createdAt?: Date | string
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export type VersionUpdateWithoutChangedByInput = {
|
|
538
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
539
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
540
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
541
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
542
|
+
document?: Prisma.DocumentUpdateOneRequiredWithoutVersionsNestedInput
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export type VersionUncheckedUpdateWithoutChangedByInput = {
|
|
546
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
547
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
548
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
549
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
550
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export type VersionUncheckedUpdateManyWithoutChangedByInput = {
|
|
554
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
555
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
556
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
557
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
558
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export type VersionCreateManyDocumentInput = {
|
|
562
|
+
id?: string
|
|
563
|
+
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
564
|
+
changedById: string
|
|
565
|
+
changeType: $Enums.ChangeType
|
|
566
|
+
createdAt?: Date | string
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export type VersionUpdateWithoutDocumentInput = {
|
|
570
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
571
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
572
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
573
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
574
|
+
changedBy?: Prisma.UserUpdateOneRequiredWithoutVersionsNestedInput
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export type VersionUncheckedUpdateWithoutDocumentInput = {
|
|
578
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
579
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
580
|
+
changedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
581
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
582
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export type VersionUncheckedUpdateManyWithoutDocumentInput = {
|
|
586
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
587
|
+
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
588
|
+
changedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
589
|
+
changeType?: Prisma.EnumChangeTypeFieldUpdateOperationsInput | $Enums.ChangeType
|
|
590
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
export type VersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
596
|
+
id?: boolean
|
|
597
|
+
documentId?: boolean
|
|
598
|
+
data?: boolean
|
|
599
|
+
changedById?: boolean
|
|
600
|
+
changeType?: boolean
|
|
601
|
+
createdAt?: boolean
|
|
602
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
603
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
604
|
+
}, ExtArgs["result"]["version"]>
|
|
605
|
+
|
|
606
|
+
export type VersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
607
|
+
id?: boolean
|
|
608
|
+
documentId?: boolean
|
|
609
|
+
data?: boolean
|
|
610
|
+
changedById?: boolean
|
|
611
|
+
changeType?: boolean
|
|
612
|
+
createdAt?: boolean
|
|
613
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
614
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
615
|
+
}, ExtArgs["result"]["version"]>
|
|
616
|
+
|
|
617
|
+
export type VersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
618
|
+
id?: boolean
|
|
619
|
+
documentId?: boolean
|
|
620
|
+
data?: boolean
|
|
621
|
+
changedById?: boolean
|
|
622
|
+
changeType?: boolean
|
|
623
|
+
createdAt?: boolean
|
|
624
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
625
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
626
|
+
}, ExtArgs["result"]["version"]>
|
|
627
|
+
|
|
628
|
+
export type VersionSelectScalar = {
|
|
629
|
+
id?: boolean
|
|
630
|
+
documentId?: boolean
|
|
631
|
+
data?: boolean
|
|
632
|
+
changedById?: boolean
|
|
633
|
+
changeType?: boolean
|
|
634
|
+
createdAt?: boolean
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export type VersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "documentId" | "data" | "changedById" | "changeType" | "createdAt", ExtArgs["result"]["version"]>
|
|
638
|
+
export type VersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
639
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
640
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
641
|
+
}
|
|
642
|
+
export type VersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
643
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
644
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
645
|
+
}
|
|
646
|
+
export type VersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
647
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
648
|
+
changedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export type $VersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
652
|
+
name: "Version"
|
|
653
|
+
objects: {
|
|
654
|
+
document: Prisma.$DocumentPayload<ExtArgs>
|
|
655
|
+
changedBy: Prisma.$UserPayload<ExtArgs>
|
|
656
|
+
}
|
|
657
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
658
|
+
id: string
|
|
659
|
+
documentId: string
|
|
660
|
+
data: runtime.JsonValue
|
|
661
|
+
changedById: string
|
|
662
|
+
changeType: $Enums.ChangeType
|
|
663
|
+
createdAt: Date
|
|
664
|
+
}, ExtArgs["result"]["version"]>
|
|
665
|
+
composites: {}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export type VersionGetPayload<S extends boolean | null | undefined | VersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$VersionPayload, S>
|
|
669
|
+
|
|
670
|
+
export type VersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
671
|
+
Omit<VersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
672
|
+
select?: VersionCountAggregateInputType | true
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export interface VersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
676
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Version'], meta: { name: 'Version' } }
|
|
677
|
+
/**
|
|
678
|
+
* Find zero or one Version that matches the filter.
|
|
679
|
+
* @param {VersionFindUniqueArgs} args - Arguments to find a Version
|
|
680
|
+
* @example
|
|
681
|
+
* // Get one Version
|
|
682
|
+
* const version = await prisma.version.findUnique({
|
|
683
|
+
* where: {
|
|
684
|
+
* // ... provide filter here
|
|
685
|
+
* }
|
|
686
|
+
* })
|
|
687
|
+
*/
|
|
688
|
+
findUnique<T extends VersionFindUniqueArgs>(args: Prisma.SelectSubset<T, VersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Find one Version that matches the filter or throw an error with `error.code='P2025'`
|
|
692
|
+
* if no matches were found.
|
|
693
|
+
* @param {VersionFindUniqueOrThrowArgs} args - Arguments to find a Version
|
|
694
|
+
* @example
|
|
695
|
+
* // Get one Version
|
|
696
|
+
* const version = await prisma.version.findUniqueOrThrow({
|
|
697
|
+
* where: {
|
|
698
|
+
* // ... provide filter here
|
|
699
|
+
* }
|
|
700
|
+
* })
|
|
701
|
+
*/
|
|
702
|
+
findUniqueOrThrow<T extends VersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, VersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Find the first Version that matches the filter.
|
|
706
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
707
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
708
|
+
* @param {VersionFindFirstArgs} args - Arguments to find a Version
|
|
709
|
+
* @example
|
|
710
|
+
* // Get one Version
|
|
711
|
+
* const version = await prisma.version.findFirst({
|
|
712
|
+
* where: {
|
|
713
|
+
* // ... provide filter here
|
|
714
|
+
* }
|
|
715
|
+
* })
|
|
716
|
+
*/
|
|
717
|
+
findFirst<T extends VersionFindFirstArgs>(args?: Prisma.SelectSubset<T, VersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Find the first Version that matches the filter or
|
|
721
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
722
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
723
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
724
|
+
* @param {VersionFindFirstOrThrowArgs} args - Arguments to find a Version
|
|
725
|
+
* @example
|
|
726
|
+
* // Get one Version
|
|
727
|
+
* const version = await prisma.version.findFirstOrThrow({
|
|
728
|
+
* where: {
|
|
729
|
+
* // ... provide filter here
|
|
730
|
+
* }
|
|
731
|
+
* })
|
|
732
|
+
*/
|
|
733
|
+
findFirstOrThrow<T extends VersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, VersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Find zero or more Versions that matches the filter.
|
|
737
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
738
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
739
|
+
* @param {VersionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
740
|
+
* @example
|
|
741
|
+
* // Get all Versions
|
|
742
|
+
* const versions = await prisma.version.findMany()
|
|
743
|
+
*
|
|
744
|
+
* // Get first 10 Versions
|
|
745
|
+
* const versions = await prisma.version.findMany({ take: 10 })
|
|
746
|
+
*
|
|
747
|
+
* // Only select the `id`
|
|
748
|
+
* const versionWithIdOnly = await prisma.version.findMany({ select: { id: true } })
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
751
|
+
findMany<T extends VersionFindManyArgs>(args?: Prisma.SelectSubset<T, VersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Create a Version.
|
|
755
|
+
* @param {VersionCreateArgs} args - Arguments to create a Version.
|
|
756
|
+
* @example
|
|
757
|
+
* // Create one Version
|
|
758
|
+
* const Version = await prisma.version.create({
|
|
759
|
+
* data: {
|
|
760
|
+
* // ... data to create a Version
|
|
761
|
+
* }
|
|
762
|
+
* })
|
|
763
|
+
*
|
|
764
|
+
*/
|
|
765
|
+
create<T extends VersionCreateArgs>(args: Prisma.SelectSubset<T, VersionCreateArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Create many Versions.
|
|
769
|
+
* @param {VersionCreateManyArgs} args - Arguments to create many Versions.
|
|
770
|
+
* @example
|
|
771
|
+
* // Create many Versions
|
|
772
|
+
* const version = await prisma.version.createMany({
|
|
773
|
+
* data: [
|
|
774
|
+
* // ... provide data here
|
|
775
|
+
* ]
|
|
776
|
+
* })
|
|
777
|
+
*
|
|
778
|
+
*/
|
|
779
|
+
createMany<T extends VersionCreateManyArgs>(args?: Prisma.SelectSubset<T, VersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Create many Versions and returns the data saved in the database.
|
|
783
|
+
* @param {VersionCreateManyAndReturnArgs} args - Arguments to create many Versions.
|
|
784
|
+
* @example
|
|
785
|
+
* // Create many Versions
|
|
786
|
+
* const version = await prisma.version.createManyAndReturn({
|
|
787
|
+
* data: [
|
|
788
|
+
* // ... provide data here
|
|
789
|
+
* ]
|
|
790
|
+
* })
|
|
791
|
+
*
|
|
792
|
+
* // Create many Versions and only return the `id`
|
|
793
|
+
* const versionWithIdOnly = await prisma.version.createManyAndReturn({
|
|
794
|
+
* select: { id: true },
|
|
795
|
+
* data: [
|
|
796
|
+
* // ... provide data here
|
|
797
|
+
* ]
|
|
798
|
+
* })
|
|
799
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
800
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
801
|
+
*
|
|
802
|
+
*/
|
|
803
|
+
createManyAndReturn<T extends VersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, VersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Delete a Version.
|
|
807
|
+
* @param {VersionDeleteArgs} args - Arguments to delete one Version.
|
|
808
|
+
* @example
|
|
809
|
+
* // Delete one Version
|
|
810
|
+
* const Version = await prisma.version.delete({
|
|
811
|
+
* where: {
|
|
812
|
+
* // ... filter to delete one Version
|
|
813
|
+
* }
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
delete<T extends VersionDeleteArgs>(args: Prisma.SelectSubset<T, VersionDeleteArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Update one Version.
|
|
821
|
+
* @param {VersionUpdateArgs} args - Arguments to update one Version.
|
|
822
|
+
* @example
|
|
823
|
+
* // Update one Version
|
|
824
|
+
* const version = await prisma.version.update({
|
|
825
|
+
* where: {
|
|
826
|
+
* // ... provide filter here
|
|
827
|
+
* },
|
|
828
|
+
* data: {
|
|
829
|
+
* // ... provide data here
|
|
830
|
+
* }
|
|
831
|
+
* })
|
|
832
|
+
*
|
|
833
|
+
*/
|
|
834
|
+
update<T extends VersionUpdateArgs>(args: Prisma.SelectSubset<T, VersionUpdateArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Delete zero or more Versions.
|
|
838
|
+
* @param {VersionDeleteManyArgs} args - Arguments to filter Versions to delete.
|
|
839
|
+
* @example
|
|
840
|
+
* // Delete a few Versions
|
|
841
|
+
* const { count } = await prisma.version.deleteMany({
|
|
842
|
+
* where: {
|
|
843
|
+
* // ... provide filter here
|
|
844
|
+
* }
|
|
845
|
+
* })
|
|
846
|
+
*
|
|
847
|
+
*/
|
|
848
|
+
deleteMany<T extends VersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, VersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Update zero or more Versions.
|
|
852
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
853
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
854
|
+
* @param {VersionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
855
|
+
* @example
|
|
856
|
+
* // Update many Versions
|
|
857
|
+
* const version = await prisma.version.updateMany({
|
|
858
|
+
* where: {
|
|
859
|
+
* // ... provide filter here
|
|
860
|
+
* },
|
|
861
|
+
* data: {
|
|
862
|
+
* // ... provide data here
|
|
863
|
+
* }
|
|
864
|
+
* })
|
|
865
|
+
*
|
|
866
|
+
*/
|
|
867
|
+
updateMany<T extends VersionUpdateManyArgs>(args: Prisma.SelectSubset<T, VersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Update zero or more Versions and returns the data updated in the database.
|
|
871
|
+
* @param {VersionUpdateManyAndReturnArgs} args - Arguments to update many Versions.
|
|
872
|
+
* @example
|
|
873
|
+
* // Update many Versions
|
|
874
|
+
* const version = await prisma.version.updateManyAndReturn({
|
|
875
|
+
* where: {
|
|
876
|
+
* // ... provide filter here
|
|
877
|
+
* },
|
|
878
|
+
* data: [
|
|
879
|
+
* // ... provide data here
|
|
880
|
+
* ]
|
|
881
|
+
* })
|
|
882
|
+
*
|
|
883
|
+
* // Update zero or more Versions and only return the `id`
|
|
884
|
+
* const versionWithIdOnly = await prisma.version.updateManyAndReturn({
|
|
885
|
+
* select: { id: true },
|
|
886
|
+
* where: {
|
|
887
|
+
* // ... provide filter here
|
|
888
|
+
* },
|
|
889
|
+
* data: [
|
|
890
|
+
* // ... provide data here
|
|
891
|
+
* ]
|
|
892
|
+
* })
|
|
893
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
894
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
895
|
+
*
|
|
896
|
+
*/
|
|
897
|
+
updateManyAndReturn<T extends VersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, VersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Create or update one Version.
|
|
901
|
+
* @param {VersionUpsertArgs} args - Arguments to update or create a Version.
|
|
902
|
+
* @example
|
|
903
|
+
* // Update or create a Version
|
|
904
|
+
* const version = await prisma.version.upsert({
|
|
905
|
+
* create: {
|
|
906
|
+
* // ... data to create a Version
|
|
907
|
+
* },
|
|
908
|
+
* update: {
|
|
909
|
+
* // ... in case it already exists, update
|
|
910
|
+
* },
|
|
911
|
+
* where: {
|
|
912
|
+
* // ... the filter for the Version we want to update
|
|
913
|
+
* }
|
|
914
|
+
* })
|
|
915
|
+
*/
|
|
916
|
+
upsert<T extends VersionUpsertArgs>(args: Prisma.SelectSubset<T, VersionUpsertArgs<ExtArgs>>): Prisma.Prisma__VersionClient<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Count the number of Versions.
|
|
921
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
922
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
923
|
+
* @param {VersionCountArgs} args - Arguments to filter Versions to count.
|
|
924
|
+
* @example
|
|
925
|
+
* // Count the number of Versions
|
|
926
|
+
* const count = await prisma.version.count({
|
|
927
|
+
* where: {
|
|
928
|
+
* // ... the filter for the Versions we want to count
|
|
929
|
+
* }
|
|
930
|
+
* })
|
|
931
|
+
**/
|
|
932
|
+
count<T extends VersionCountArgs>(
|
|
933
|
+
args?: Prisma.Subset<T, VersionCountArgs>,
|
|
934
|
+
): Prisma.PrismaPromise<
|
|
935
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
936
|
+
? T['select'] extends true
|
|
937
|
+
? number
|
|
938
|
+
: Prisma.GetScalarType<T['select'], VersionCountAggregateOutputType>
|
|
939
|
+
: number
|
|
940
|
+
>
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Allows you to perform aggregations operations on a Version.
|
|
944
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
945
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
946
|
+
* @param {VersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
947
|
+
* @example
|
|
948
|
+
* // Ordered by age ascending
|
|
949
|
+
* // Where email contains prisma.io
|
|
950
|
+
* // Limited to the 10 users
|
|
951
|
+
* const aggregations = await prisma.user.aggregate({
|
|
952
|
+
* _avg: {
|
|
953
|
+
* age: true,
|
|
954
|
+
* },
|
|
955
|
+
* where: {
|
|
956
|
+
* email: {
|
|
957
|
+
* contains: "prisma.io",
|
|
958
|
+
* },
|
|
959
|
+
* },
|
|
960
|
+
* orderBy: {
|
|
961
|
+
* age: "asc",
|
|
962
|
+
* },
|
|
963
|
+
* take: 10,
|
|
964
|
+
* })
|
|
965
|
+
**/
|
|
966
|
+
aggregate<T extends VersionAggregateArgs>(args: Prisma.Subset<T, VersionAggregateArgs>): Prisma.PrismaPromise<GetVersionAggregateType<T>>
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Group by Version.
|
|
970
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
971
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
972
|
+
* @param {VersionGroupByArgs} args - Group by arguments.
|
|
973
|
+
* @example
|
|
974
|
+
* // Group by city, order by createdAt, get count
|
|
975
|
+
* const result = await prisma.user.groupBy({
|
|
976
|
+
* by: ['city', 'createdAt'],
|
|
977
|
+
* orderBy: {
|
|
978
|
+
* createdAt: true
|
|
979
|
+
* },
|
|
980
|
+
* _count: {
|
|
981
|
+
* _all: true
|
|
982
|
+
* },
|
|
983
|
+
* })
|
|
984
|
+
*
|
|
985
|
+
**/
|
|
986
|
+
groupBy<
|
|
987
|
+
T extends VersionGroupByArgs,
|
|
988
|
+
HasSelectOrTake extends Prisma.Or<
|
|
989
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
990
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
991
|
+
>,
|
|
992
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
993
|
+
? { orderBy: VersionGroupByArgs['orderBy'] }
|
|
994
|
+
: { orderBy?: VersionGroupByArgs['orderBy'] },
|
|
995
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
996
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
997
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
998
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
999
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1000
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1001
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1002
|
+
? `Error: "by" must not be empty.`
|
|
1003
|
+
: HavingValid extends Prisma.False
|
|
1004
|
+
? {
|
|
1005
|
+
[P in HavingFields]: P extends ByFields
|
|
1006
|
+
? never
|
|
1007
|
+
: P extends string
|
|
1008
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1009
|
+
: [
|
|
1010
|
+
Error,
|
|
1011
|
+
'Field ',
|
|
1012
|
+
P,
|
|
1013
|
+
` in "having" needs to be provided in "by"`,
|
|
1014
|
+
]
|
|
1015
|
+
}[HavingFields]
|
|
1016
|
+
: 'take' extends Prisma.Keys<T>
|
|
1017
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1018
|
+
? ByValid extends Prisma.True
|
|
1019
|
+
? {}
|
|
1020
|
+
: {
|
|
1021
|
+
[P in OrderFields]: P extends ByFields
|
|
1022
|
+
? never
|
|
1023
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1024
|
+
}[OrderFields]
|
|
1025
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1026
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1027
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1028
|
+
? ByValid extends Prisma.True
|
|
1029
|
+
? {}
|
|
1030
|
+
: {
|
|
1031
|
+
[P in OrderFields]: P extends ByFields
|
|
1032
|
+
? never
|
|
1033
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1034
|
+
}[OrderFields]
|
|
1035
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1036
|
+
: ByValid extends Prisma.True
|
|
1037
|
+
? {}
|
|
1038
|
+
: {
|
|
1039
|
+
[P in OrderFields]: P extends ByFields
|
|
1040
|
+
? never
|
|
1041
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1042
|
+
}[OrderFields]
|
|
1043
|
+
>(args: Prisma.SubsetIntersection<T, VersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1044
|
+
/**
|
|
1045
|
+
* Fields of the Version model
|
|
1046
|
+
*/
|
|
1047
|
+
readonly fields: VersionFieldRefs;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* The delegate class that acts as a "Promise-like" for Version.
|
|
1052
|
+
* Why is this prefixed with `Prisma__`?
|
|
1053
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1054
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1055
|
+
*/
|
|
1056
|
+
export interface Prisma__VersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1057
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1058
|
+
document<T extends Prisma.DocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentClient<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1059
|
+
changedBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1060
|
+
/**
|
|
1061
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1062
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1063
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1064
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1065
|
+
*/
|
|
1066
|
+
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>
|
|
1067
|
+
/**
|
|
1068
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1069
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1070
|
+
* @returns A Promise for the completion of the callback.
|
|
1071
|
+
*/
|
|
1072
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1073
|
+
/**
|
|
1074
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1075
|
+
* resolved value cannot be modified from the callback.
|
|
1076
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1077
|
+
* @returns A Promise for the completion of the callback.
|
|
1078
|
+
*/
|
|
1079
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Fields of the Version model
|
|
1087
|
+
*/
|
|
1088
|
+
export interface VersionFieldRefs {
|
|
1089
|
+
readonly id: Prisma.FieldRef<"Version", 'String'>
|
|
1090
|
+
readonly documentId: Prisma.FieldRef<"Version", 'String'>
|
|
1091
|
+
readonly data: Prisma.FieldRef<"Version", 'Json'>
|
|
1092
|
+
readonly changedById: Prisma.FieldRef<"Version", 'String'>
|
|
1093
|
+
readonly changeType: Prisma.FieldRef<"Version", 'ChangeType'>
|
|
1094
|
+
readonly createdAt: Prisma.FieldRef<"Version", 'DateTime'>
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
// Custom InputTypes
|
|
1099
|
+
/**
|
|
1100
|
+
* Version findUnique
|
|
1101
|
+
*/
|
|
1102
|
+
export type VersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1103
|
+
/**
|
|
1104
|
+
* Select specific fields to fetch from the Version
|
|
1105
|
+
*/
|
|
1106
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1107
|
+
/**
|
|
1108
|
+
* Omit specific fields from the Version
|
|
1109
|
+
*/
|
|
1110
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1111
|
+
/**
|
|
1112
|
+
* Choose, which related nodes to fetch as well
|
|
1113
|
+
*/
|
|
1114
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1115
|
+
/**
|
|
1116
|
+
* Filter, which Version to fetch.
|
|
1117
|
+
*/
|
|
1118
|
+
where: Prisma.VersionWhereUniqueInput
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Version findUniqueOrThrow
|
|
1123
|
+
*/
|
|
1124
|
+
export type VersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1125
|
+
/**
|
|
1126
|
+
* Select specific fields to fetch from the Version
|
|
1127
|
+
*/
|
|
1128
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1129
|
+
/**
|
|
1130
|
+
* Omit specific fields from the Version
|
|
1131
|
+
*/
|
|
1132
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1133
|
+
/**
|
|
1134
|
+
* Choose, which related nodes to fetch as well
|
|
1135
|
+
*/
|
|
1136
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1137
|
+
/**
|
|
1138
|
+
* Filter, which Version to fetch.
|
|
1139
|
+
*/
|
|
1140
|
+
where: Prisma.VersionWhereUniqueInput
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Version findFirst
|
|
1145
|
+
*/
|
|
1146
|
+
export type VersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1147
|
+
/**
|
|
1148
|
+
* Select specific fields to fetch from the Version
|
|
1149
|
+
*/
|
|
1150
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1151
|
+
/**
|
|
1152
|
+
* Omit specific fields from the Version
|
|
1153
|
+
*/
|
|
1154
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1155
|
+
/**
|
|
1156
|
+
* Choose, which related nodes to fetch as well
|
|
1157
|
+
*/
|
|
1158
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1159
|
+
/**
|
|
1160
|
+
* Filter, which Version to fetch.
|
|
1161
|
+
*/
|
|
1162
|
+
where?: Prisma.VersionWhereInput
|
|
1163
|
+
/**
|
|
1164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1165
|
+
*
|
|
1166
|
+
* Determine the order of Versions to fetch.
|
|
1167
|
+
*/
|
|
1168
|
+
orderBy?: Prisma.VersionOrderByWithRelationInput | Prisma.VersionOrderByWithRelationInput[]
|
|
1169
|
+
/**
|
|
1170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1171
|
+
*
|
|
1172
|
+
* Sets the position for searching for Versions.
|
|
1173
|
+
*/
|
|
1174
|
+
cursor?: Prisma.VersionWhereUniqueInput
|
|
1175
|
+
/**
|
|
1176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1177
|
+
*
|
|
1178
|
+
* Take `±n` Versions from the position of the cursor.
|
|
1179
|
+
*/
|
|
1180
|
+
take?: number
|
|
1181
|
+
/**
|
|
1182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1183
|
+
*
|
|
1184
|
+
* Skip the first `n` Versions.
|
|
1185
|
+
*/
|
|
1186
|
+
skip?: number
|
|
1187
|
+
/**
|
|
1188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1189
|
+
*
|
|
1190
|
+
* Filter by unique combinations of Versions.
|
|
1191
|
+
*/
|
|
1192
|
+
distinct?: Prisma.VersionScalarFieldEnum | Prisma.VersionScalarFieldEnum[]
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Version findFirstOrThrow
|
|
1197
|
+
*/
|
|
1198
|
+
export type VersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1199
|
+
/**
|
|
1200
|
+
* Select specific fields to fetch from the Version
|
|
1201
|
+
*/
|
|
1202
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1203
|
+
/**
|
|
1204
|
+
* Omit specific fields from the Version
|
|
1205
|
+
*/
|
|
1206
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1207
|
+
/**
|
|
1208
|
+
* Choose, which related nodes to fetch as well
|
|
1209
|
+
*/
|
|
1210
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1211
|
+
/**
|
|
1212
|
+
* Filter, which Version to fetch.
|
|
1213
|
+
*/
|
|
1214
|
+
where?: Prisma.VersionWhereInput
|
|
1215
|
+
/**
|
|
1216
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1217
|
+
*
|
|
1218
|
+
* Determine the order of Versions to fetch.
|
|
1219
|
+
*/
|
|
1220
|
+
orderBy?: Prisma.VersionOrderByWithRelationInput | Prisma.VersionOrderByWithRelationInput[]
|
|
1221
|
+
/**
|
|
1222
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1223
|
+
*
|
|
1224
|
+
* Sets the position for searching for Versions.
|
|
1225
|
+
*/
|
|
1226
|
+
cursor?: Prisma.VersionWhereUniqueInput
|
|
1227
|
+
/**
|
|
1228
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1229
|
+
*
|
|
1230
|
+
* Take `±n` Versions from the position of the cursor.
|
|
1231
|
+
*/
|
|
1232
|
+
take?: number
|
|
1233
|
+
/**
|
|
1234
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1235
|
+
*
|
|
1236
|
+
* Skip the first `n` Versions.
|
|
1237
|
+
*/
|
|
1238
|
+
skip?: number
|
|
1239
|
+
/**
|
|
1240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1241
|
+
*
|
|
1242
|
+
* Filter by unique combinations of Versions.
|
|
1243
|
+
*/
|
|
1244
|
+
distinct?: Prisma.VersionScalarFieldEnum | Prisma.VersionScalarFieldEnum[]
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Version findMany
|
|
1249
|
+
*/
|
|
1250
|
+
export type VersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1251
|
+
/**
|
|
1252
|
+
* Select specific fields to fetch from the Version
|
|
1253
|
+
*/
|
|
1254
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1255
|
+
/**
|
|
1256
|
+
* Omit specific fields from the Version
|
|
1257
|
+
*/
|
|
1258
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1259
|
+
/**
|
|
1260
|
+
* Choose, which related nodes to fetch as well
|
|
1261
|
+
*/
|
|
1262
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1263
|
+
/**
|
|
1264
|
+
* Filter, which Versions to fetch.
|
|
1265
|
+
*/
|
|
1266
|
+
where?: Prisma.VersionWhereInput
|
|
1267
|
+
/**
|
|
1268
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1269
|
+
*
|
|
1270
|
+
* Determine the order of Versions to fetch.
|
|
1271
|
+
*/
|
|
1272
|
+
orderBy?: Prisma.VersionOrderByWithRelationInput | Prisma.VersionOrderByWithRelationInput[]
|
|
1273
|
+
/**
|
|
1274
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1275
|
+
*
|
|
1276
|
+
* Sets the position for listing Versions.
|
|
1277
|
+
*/
|
|
1278
|
+
cursor?: Prisma.VersionWhereUniqueInput
|
|
1279
|
+
/**
|
|
1280
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1281
|
+
*
|
|
1282
|
+
* Take `±n` Versions from the position of the cursor.
|
|
1283
|
+
*/
|
|
1284
|
+
take?: number
|
|
1285
|
+
/**
|
|
1286
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1287
|
+
*
|
|
1288
|
+
* Skip the first `n` Versions.
|
|
1289
|
+
*/
|
|
1290
|
+
skip?: number
|
|
1291
|
+
/**
|
|
1292
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1293
|
+
*
|
|
1294
|
+
* Filter by unique combinations of Versions.
|
|
1295
|
+
*/
|
|
1296
|
+
distinct?: Prisma.VersionScalarFieldEnum | Prisma.VersionScalarFieldEnum[]
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Version create
|
|
1301
|
+
*/
|
|
1302
|
+
export type VersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1303
|
+
/**
|
|
1304
|
+
* Select specific fields to fetch from the Version
|
|
1305
|
+
*/
|
|
1306
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1307
|
+
/**
|
|
1308
|
+
* Omit specific fields from the Version
|
|
1309
|
+
*/
|
|
1310
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1311
|
+
/**
|
|
1312
|
+
* Choose, which related nodes to fetch as well
|
|
1313
|
+
*/
|
|
1314
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1315
|
+
/**
|
|
1316
|
+
* The data needed to create a Version.
|
|
1317
|
+
*/
|
|
1318
|
+
data: Prisma.XOR<Prisma.VersionCreateInput, Prisma.VersionUncheckedCreateInput>
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Version createMany
|
|
1323
|
+
*/
|
|
1324
|
+
export type VersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1325
|
+
/**
|
|
1326
|
+
* The data used to create many Versions.
|
|
1327
|
+
*/
|
|
1328
|
+
data: Prisma.VersionCreateManyInput | Prisma.VersionCreateManyInput[]
|
|
1329
|
+
skipDuplicates?: boolean
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Version createManyAndReturn
|
|
1334
|
+
*/
|
|
1335
|
+
export type VersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1336
|
+
/**
|
|
1337
|
+
* Select specific fields to fetch from the Version
|
|
1338
|
+
*/
|
|
1339
|
+
select?: Prisma.VersionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1340
|
+
/**
|
|
1341
|
+
* Omit specific fields from the Version
|
|
1342
|
+
*/
|
|
1343
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1344
|
+
/**
|
|
1345
|
+
* The data used to create many Versions.
|
|
1346
|
+
*/
|
|
1347
|
+
data: Prisma.VersionCreateManyInput | Prisma.VersionCreateManyInput[]
|
|
1348
|
+
skipDuplicates?: boolean
|
|
1349
|
+
/**
|
|
1350
|
+
* Choose, which related nodes to fetch as well
|
|
1351
|
+
*/
|
|
1352
|
+
include?: Prisma.VersionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Version update
|
|
1357
|
+
*/
|
|
1358
|
+
export type VersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1359
|
+
/**
|
|
1360
|
+
* Select specific fields to fetch from the Version
|
|
1361
|
+
*/
|
|
1362
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1363
|
+
/**
|
|
1364
|
+
* Omit specific fields from the Version
|
|
1365
|
+
*/
|
|
1366
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1367
|
+
/**
|
|
1368
|
+
* Choose, which related nodes to fetch as well
|
|
1369
|
+
*/
|
|
1370
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1371
|
+
/**
|
|
1372
|
+
* The data needed to update a Version.
|
|
1373
|
+
*/
|
|
1374
|
+
data: Prisma.XOR<Prisma.VersionUpdateInput, Prisma.VersionUncheckedUpdateInput>
|
|
1375
|
+
/**
|
|
1376
|
+
* Choose, which Version to update.
|
|
1377
|
+
*/
|
|
1378
|
+
where: Prisma.VersionWhereUniqueInput
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* Version updateMany
|
|
1383
|
+
*/
|
|
1384
|
+
export type VersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1385
|
+
/**
|
|
1386
|
+
* The data used to update Versions.
|
|
1387
|
+
*/
|
|
1388
|
+
data: Prisma.XOR<Prisma.VersionUpdateManyMutationInput, Prisma.VersionUncheckedUpdateManyInput>
|
|
1389
|
+
/**
|
|
1390
|
+
* Filter which Versions to update
|
|
1391
|
+
*/
|
|
1392
|
+
where?: Prisma.VersionWhereInput
|
|
1393
|
+
/**
|
|
1394
|
+
* Limit how many Versions to update.
|
|
1395
|
+
*/
|
|
1396
|
+
limit?: number
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Version updateManyAndReturn
|
|
1401
|
+
*/
|
|
1402
|
+
export type VersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1403
|
+
/**
|
|
1404
|
+
* Select specific fields to fetch from the Version
|
|
1405
|
+
*/
|
|
1406
|
+
select?: Prisma.VersionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1407
|
+
/**
|
|
1408
|
+
* Omit specific fields from the Version
|
|
1409
|
+
*/
|
|
1410
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1411
|
+
/**
|
|
1412
|
+
* The data used to update Versions.
|
|
1413
|
+
*/
|
|
1414
|
+
data: Prisma.XOR<Prisma.VersionUpdateManyMutationInput, Prisma.VersionUncheckedUpdateManyInput>
|
|
1415
|
+
/**
|
|
1416
|
+
* Filter which Versions to update
|
|
1417
|
+
*/
|
|
1418
|
+
where?: Prisma.VersionWhereInput
|
|
1419
|
+
/**
|
|
1420
|
+
* Limit how many Versions to update.
|
|
1421
|
+
*/
|
|
1422
|
+
limit?: number
|
|
1423
|
+
/**
|
|
1424
|
+
* Choose, which related nodes to fetch as well
|
|
1425
|
+
*/
|
|
1426
|
+
include?: Prisma.VersionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Version upsert
|
|
1431
|
+
*/
|
|
1432
|
+
export type VersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1433
|
+
/**
|
|
1434
|
+
* Select specific fields to fetch from the Version
|
|
1435
|
+
*/
|
|
1436
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1437
|
+
/**
|
|
1438
|
+
* Omit specific fields from the Version
|
|
1439
|
+
*/
|
|
1440
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1441
|
+
/**
|
|
1442
|
+
* Choose, which related nodes to fetch as well
|
|
1443
|
+
*/
|
|
1444
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1445
|
+
/**
|
|
1446
|
+
* The filter to search for the Version to update in case it exists.
|
|
1447
|
+
*/
|
|
1448
|
+
where: Prisma.VersionWhereUniqueInput
|
|
1449
|
+
/**
|
|
1450
|
+
* In case the Version found by the `where` argument doesn't exist, create a new Version with this data.
|
|
1451
|
+
*/
|
|
1452
|
+
create: Prisma.XOR<Prisma.VersionCreateInput, Prisma.VersionUncheckedCreateInput>
|
|
1453
|
+
/**
|
|
1454
|
+
* In case the Version was found with the provided `where` argument, update it with this data.
|
|
1455
|
+
*/
|
|
1456
|
+
update: Prisma.XOR<Prisma.VersionUpdateInput, Prisma.VersionUncheckedUpdateInput>
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Version delete
|
|
1461
|
+
*/
|
|
1462
|
+
export type VersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1463
|
+
/**
|
|
1464
|
+
* Select specific fields to fetch from the Version
|
|
1465
|
+
*/
|
|
1466
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1467
|
+
/**
|
|
1468
|
+
* Omit specific fields from the Version
|
|
1469
|
+
*/
|
|
1470
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1471
|
+
/**
|
|
1472
|
+
* Choose, which related nodes to fetch as well
|
|
1473
|
+
*/
|
|
1474
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1475
|
+
/**
|
|
1476
|
+
* Filter which Version to delete.
|
|
1477
|
+
*/
|
|
1478
|
+
where: Prisma.VersionWhereUniqueInput
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Version deleteMany
|
|
1483
|
+
*/
|
|
1484
|
+
export type VersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1485
|
+
/**
|
|
1486
|
+
* Filter which Versions to delete
|
|
1487
|
+
*/
|
|
1488
|
+
where?: Prisma.VersionWhereInput
|
|
1489
|
+
/**
|
|
1490
|
+
* Limit how many Versions to delete.
|
|
1491
|
+
*/
|
|
1492
|
+
limit?: number
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Version without action
|
|
1497
|
+
*/
|
|
1498
|
+
export type VersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1499
|
+
/**
|
|
1500
|
+
* Select specific fields to fetch from the Version
|
|
1501
|
+
*/
|
|
1502
|
+
select?: Prisma.VersionSelect<ExtArgs> | null
|
|
1503
|
+
/**
|
|
1504
|
+
* Omit specific fields from the Version
|
|
1505
|
+
*/
|
|
1506
|
+
omit?: Prisma.VersionOmit<ExtArgs> | null
|
|
1507
|
+
/**
|
|
1508
|
+
* Choose, which related nodes to fetch as well
|
|
1509
|
+
*/
|
|
1510
|
+
include?: Prisma.VersionInclude<ExtArgs> | null
|
|
1511
|
+
}
|