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