@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,611 @@
|
|
|
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
|
+
* WARNING: This is an internal file that is subject to change!
|
|
8
|
+
*
|
|
9
|
+
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
10
|
+
*
|
|
11
|
+
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
12
|
+
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
13
|
+
*
|
|
14
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
15
|
+
* model files in the `model` directory!
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
19
|
+
|
|
20
|
+
export type * from '../models'
|
|
21
|
+
export type * from './prismaNamespace'
|
|
22
|
+
|
|
23
|
+
export const Decimal = runtime.Decimal
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export const NullTypes = {
|
|
27
|
+
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
28
|
+
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
29
|
+
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
33
|
+
*
|
|
34
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
35
|
+
*/
|
|
36
|
+
export const DbNull = runtime.DbNull
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
40
|
+
*
|
|
41
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
42
|
+
*/
|
|
43
|
+
export const JsonNull = runtime.JsonNull
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
47
|
+
*
|
|
48
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
49
|
+
*/
|
|
50
|
+
export const AnyNull = runtime.AnyNull
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export const ModelName = {
|
|
54
|
+
User: 'User',
|
|
55
|
+
OAuthAccount: 'OAuthAccount',
|
|
56
|
+
Session: 'Session',
|
|
57
|
+
ApiKey: 'ApiKey',
|
|
58
|
+
AuditLog: 'AuditLog',
|
|
59
|
+
Folder: 'Folder',
|
|
60
|
+
Document: 'Document',
|
|
61
|
+
Version: 'Version',
|
|
62
|
+
Media: 'Media',
|
|
63
|
+
MediaUsage: 'MediaUsage',
|
|
64
|
+
ContentLock: 'ContentLock',
|
|
65
|
+
InAppNotification: 'InAppNotification',
|
|
66
|
+
ContentTemplate: 'ContentTemplate',
|
|
67
|
+
Site: 'Site',
|
|
68
|
+
WorkflowState: 'WorkflowState',
|
|
69
|
+
Redirect: 'Redirect',
|
|
70
|
+
FormSubmission: 'FormSubmission',
|
|
71
|
+
BackupRecord: 'BackupRecord'
|
|
72
|
+
} as const
|
|
73
|
+
|
|
74
|
+
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
* Enums
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
81
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
82
|
+
ReadCommitted: 'ReadCommitted',
|
|
83
|
+
RepeatableRead: 'RepeatableRead',
|
|
84
|
+
Serializable: 'Serializable'
|
|
85
|
+
} as const)
|
|
86
|
+
|
|
87
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export const UserScalarFieldEnum = {
|
|
91
|
+
id: 'id',
|
|
92
|
+
email: 'email',
|
|
93
|
+
name: 'name',
|
|
94
|
+
avatarUrl: 'avatarUrl',
|
|
95
|
+
role: 'role',
|
|
96
|
+
passwordHash: 'passwordHash',
|
|
97
|
+
totpSecret: 'totpSecret',
|
|
98
|
+
authProvider: 'authProvider',
|
|
99
|
+
isActive: 'isActive',
|
|
100
|
+
isApproved: 'isApproved',
|
|
101
|
+
emailVerified: 'emailVerified',
|
|
102
|
+
lastLoginAt: 'lastLoginAt',
|
|
103
|
+
createdAt: 'createdAt',
|
|
104
|
+
updatedAt: 'updatedAt'
|
|
105
|
+
} as const
|
|
106
|
+
|
|
107
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
export const OAuthAccountScalarFieldEnum = {
|
|
111
|
+
id: 'id',
|
|
112
|
+
userId: 'userId',
|
|
113
|
+
provider: 'provider',
|
|
114
|
+
providerAccountId: 'providerAccountId',
|
|
115
|
+
accessToken: 'accessToken',
|
|
116
|
+
refreshToken: 'refreshToken',
|
|
117
|
+
expiresAt: 'expiresAt',
|
|
118
|
+
createdAt: 'createdAt'
|
|
119
|
+
} as const
|
|
120
|
+
|
|
121
|
+
export type OAuthAccountScalarFieldEnum = (typeof OAuthAccountScalarFieldEnum)[keyof typeof OAuthAccountScalarFieldEnum]
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
export const SessionScalarFieldEnum = {
|
|
125
|
+
id: 'id',
|
|
126
|
+
userId: 'userId',
|
|
127
|
+
token: 'token',
|
|
128
|
+
expiresAt: 'expiresAt',
|
|
129
|
+
revokedAt: 'revokedAt',
|
|
130
|
+
ipAddress: 'ipAddress',
|
|
131
|
+
userAgent: 'userAgent',
|
|
132
|
+
fingerprintHash: 'fingerprintHash',
|
|
133
|
+
createdAt: 'createdAt'
|
|
134
|
+
} as const
|
|
135
|
+
|
|
136
|
+
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
export const ApiKeyScalarFieldEnum = {
|
|
140
|
+
id: 'id',
|
|
141
|
+
name: 'name',
|
|
142
|
+
keyHash: 'keyHash',
|
|
143
|
+
keyPrefix: 'keyPrefix',
|
|
144
|
+
userId: 'userId',
|
|
145
|
+
scopes: 'scopes',
|
|
146
|
+
ipRestrictions: 'ipRestrictions',
|
|
147
|
+
expiresAt: 'expiresAt',
|
|
148
|
+
lastUsedAt: 'lastUsedAt',
|
|
149
|
+
revokedAt: 'revokedAt',
|
|
150
|
+
createdAt: 'createdAt'
|
|
151
|
+
} as const
|
|
152
|
+
|
|
153
|
+
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
export const AuditLogScalarFieldEnum = {
|
|
157
|
+
id: 'id',
|
|
158
|
+
event: 'event',
|
|
159
|
+
userId: 'userId',
|
|
160
|
+
ipAddress: 'ipAddress',
|
|
161
|
+
userAgent: 'userAgent',
|
|
162
|
+
details: 'details',
|
|
163
|
+
timestamp: 'timestamp'
|
|
164
|
+
} as const
|
|
165
|
+
|
|
166
|
+
export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
export const FolderScalarFieldEnum = {
|
|
170
|
+
id: 'id',
|
|
171
|
+
name: 'name',
|
|
172
|
+
scope: 'scope',
|
|
173
|
+
parentId: 'parentId',
|
|
174
|
+
position: 'position',
|
|
175
|
+
createdAt: 'createdAt',
|
|
176
|
+
updatedAt: 'updatedAt'
|
|
177
|
+
} as const
|
|
178
|
+
|
|
179
|
+
export type FolderScalarFieldEnum = (typeof FolderScalarFieldEnum)[keyof typeof FolderScalarFieldEnum]
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
export const DocumentScalarFieldEnum = {
|
|
183
|
+
id: 'id',
|
|
184
|
+
collection: 'collection',
|
|
185
|
+
data: 'data',
|
|
186
|
+
status: 'status',
|
|
187
|
+
locale: 'locale',
|
|
188
|
+
localeGroupId: 'localeGroupId',
|
|
189
|
+
createdById: 'createdById',
|
|
190
|
+
updatedById: 'updatedById',
|
|
191
|
+
publishedAt: 'publishedAt',
|
|
192
|
+
scheduledAt: 'scheduledAt',
|
|
193
|
+
scheduledUnpublishAt: 'scheduledUnpublishAt',
|
|
194
|
+
deletedAt: 'deletedAt',
|
|
195
|
+
searchVector: 'searchVector',
|
|
196
|
+
plainText: 'plainText',
|
|
197
|
+
contentHash: 'contentHash',
|
|
198
|
+
structuredData: 'structuredData',
|
|
199
|
+
contentGraph: 'contentGraph',
|
|
200
|
+
siteId: 'siteId',
|
|
201
|
+
templateId: 'templateId',
|
|
202
|
+
folderId: 'folderId',
|
|
203
|
+
createdAt: 'createdAt',
|
|
204
|
+
updatedAt: 'updatedAt'
|
|
205
|
+
} as const
|
|
206
|
+
|
|
207
|
+
export type DocumentScalarFieldEnum = (typeof DocumentScalarFieldEnum)[keyof typeof DocumentScalarFieldEnum]
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
export const VersionScalarFieldEnum = {
|
|
211
|
+
id: 'id',
|
|
212
|
+
documentId: 'documentId',
|
|
213
|
+
data: 'data',
|
|
214
|
+
changedById: 'changedById',
|
|
215
|
+
changeType: 'changeType',
|
|
216
|
+
createdAt: 'createdAt'
|
|
217
|
+
} as const
|
|
218
|
+
|
|
219
|
+
export type VersionScalarFieldEnum = (typeof VersionScalarFieldEnum)[keyof typeof VersionScalarFieldEnum]
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
export const MediaScalarFieldEnum = {
|
|
223
|
+
id: 'id',
|
|
224
|
+
filename: 'filename',
|
|
225
|
+
storageKey: 'storageKey',
|
|
226
|
+
mimeType: 'mimeType',
|
|
227
|
+
fileSize: 'fileSize',
|
|
228
|
+
width: 'width',
|
|
229
|
+
height: 'height',
|
|
230
|
+
altText: 'altText',
|
|
231
|
+
title: 'title',
|
|
232
|
+
uploadedById: 'uploadedById',
|
|
233
|
+
focalPointX: 'focalPointX',
|
|
234
|
+
focalPointY: 'focalPointY',
|
|
235
|
+
blurHash: 'blurHash',
|
|
236
|
+
aiAltText: 'aiAltText',
|
|
237
|
+
aiTags: 'aiTags',
|
|
238
|
+
aiDescription: 'aiDescription',
|
|
239
|
+
folderId: 'folderId',
|
|
240
|
+
createdAt: 'createdAt',
|
|
241
|
+
updatedAt: 'updatedAt'
|
|
242
|
+
} as const
|
|
243
|
+
|
|
244
|
+
export type MediaScalarFieldEnum = (typeof MediaScalarFieldEnum)[keyof typeof MediaScalarFieldEnum]
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
export const MediaUsageScalarFieldEnum = {
|
|
248
|
+
id: 'id',
|
|
249
|
+
mediaId: 'mediaId',
|
|
250
|
+
documentId: 'documentId',
|
|
251
|
+
fieldName: 'fieldName',
|
|
252
|
+
createdAt: 'createdAt'
|
|
253
|
+
} as const
|
|
254
|
+
|
|
255
|
+
export type MediaUsageScalarFieldEnum = (typeof MediaUsageScalarFieldEnum)[keyof typeof MediaUsageScalarFieldEnum]
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
export const ContentLockScalarFieldEnum = {
|
|
259
|
+
id: 'id',
|
|
260
|
+
documentId: 'documentId',
|
|
261
|
+
userId: 'userId',
|
|
262
|
+
lockedAt: 'lockedAt',
|
|
263
|
+
expiresAt: 'expiresAt'
|
|
264
|
+
} as const
|
|
265
|
+
|
|
266
|
+
export type ContentLockScalarFieldEnum = (typeof ContentLockScalarFieldEnum)[keyof typeof ContentLockScalarFieldEnum]
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
export const InAppNotificationScalarFieldEnum = {
|
|
270
|
+
id: 'id',
|
|
271
|
+
userId: 'userId',
|
|
272
|
+
type: 'type',
|
|
273
|
+
title: 'title',
|
|
274
|
+
message: 'message',
|
|
275
|
+
link: 'link',
|
|
276
|
+
read: 'read',
|
|
277
|
+
createdAt: 'createdAt'
|
|
278
|
+
} as const
|
|
279
|
+
|
|
280
|
+
export type InAppNotificationScalarFieldEnum = (typeof InAppNotificationScalarFieldEnum)[keyof typeof InAppNotificationScalarFieldEnum]
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
export const ContentTemplateScalarFieldEnum = {
|
|
284
|
+
id: 'id',
|
|
285
|
+
name: 'name',
|
|
286
|
+
collection: 'collection',
|
|
287
|
+
templateData: 'templateData',
|
|
288
|
+
createdById: 'createdById',
|
|
289
|
+
createdAt: 'createdAt',
|
|
290
|
+
updatedAt: 'updatedAt'
|
|
291
|
+
} as const
|
|
292
|
+
|
|
293
|
+
export type ContentTemplateScalarFieldEnum = (typeof ContentTemplateScalarFieldEnum)[keyof typeof ContentTemplateScalarFieldEnum]
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
export const SiteScalarFieldEnum = {
|
|
297
|
+
id: 'id',
|
|
298
|
+
domain: 'domain',
|
|
299
|
+
name: 'name',
|
|
300
|
+
configOverrides: 'configOverrides',
|
|
301
|
+
isDefault: 'isDefault',
|
|
302
|
+
createdAt: 'createdAt',
|
|
303
|
+
updatedAt: 'updatedAt'
|
|
304
|
+
} as const
|
|
305
|
+
|
|
306
|
+
export type SiteScalarFieldEnum = (typeof SiteScalarFieldEnum)[keyof typeof SiteScalarFieldEnum]
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
export const WorkflowStateScalarFieldEnum = {
|
|
310
|
+
id: 'id',
|
|
311
|
+
documentId: 'documentId',
|
|
312
|
+
currentStep: 'currentStep',
|
|
313
|
+
assignedToId: 'assignedToId',
|
|
314
|
+
status: 'status',
|
|
315
|
+
definition: 'definition',
|
|
316
|
+
createdAt: 'createdAt',
|
|
317
|
+
updatedAt: 'updatedAt'
|
|
318
|
+
} as const
|
|
319
|
+
|
|
320
|
+
export type WorkflowStateScalarFieldEnum = (typeof WorkflowStateScalarFieldEnum)[keyof typeof WorkflowStateScalarFieldEnum]
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export const RedirectScalarFieldEnum = {
|
|
324
|
+
id: 'id',
|
|
325
|
+
source: 'source',
|
|
326
|
+
destination: 'destination',
|
|
327
|
+
statusCode: 'statusCode',
|
|
328
|
+
isRegex: 'isRegex',
|
|
329
|
+
notes: 'notes',
|
|
330
|
+
createdAt: 'createdAt',
|
|
331
|
+
updatedAt: 'updatedAt'
|
|
332
|
+
} as const
|
|
333
|
+
|
|
334
|
+
export type RedirectScalarFieldEnum = (typeof RedirectScalarFieldEnum)[keyof typeof RedirectScalarFieldEnum]
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
export const FormSubmissionScalarFieldEnum = {
|
|
338
|
+
id: 'id',
|
|
339
|
+
formId: 'formId',
|
|
340
|
+
data: 'data',
|
|
341
|
+
attribution: 'attribution',
|
|
342
|
+
status: 'status',
|
|
343
|
+
submittedAt: 'submittedAt',
|
|
344
|
+
createdAt: 'createdAt'
|
|
345
|
+
} as const
|
|
346
|
+
|
|
347
|
+
export type FormSubmissionScalarFieldEnum = (typeof FormSubmissionScalarFieldEnum)[keyof typeof FormSubmissionScalarFieldEnum]
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
export const BackupRecordScalarFieldEnum = {
|
|
351
|
+
id: 'id',
|
|
352
|
+
filename: 'filename',
|
|
353
|
+
storageKey: 'storageKey',
|
|
354
|
+
sizeBytes: 'sizeBytes',
|
|
355
|
+
type: 'type',
|
|
356
|
+
metadata: 'metadata',
|
|
357
|
+
createdAt: 'createdAt'
|
|
358
|
+
} as const
|
|
359
|
+
|
|
360
|
+
export type BackupRecordScalarFieldEnum = (typeof BackupRecordScalarFieldEnum)[keyof typeof BackupRecordScalarFieldEnum]
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
export const SortOrder = {
|
|
364
|
+
asc: 'asc',
|
|
365
|
+
desc: 'desc'
|
|
366
|
+
} as const
|
|
367
|
+
|
|
368
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
export const JsonNullValueInput = {
|
|
372
|
+
JsonNull: JsonNull
|
|
373
|
+
} as const
|
|
374
|
+
|
|
375
|
+
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
export const NullableJsonNullValueInput = {
|
|
379
|
+
DbNull: DbNull,
|
|
380
|
+
JsonNull: JsonNull
|
|
381
|
+
} as const
|
|
382
|
+
|
|
383
|
+
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
export const QueryMode = {
|
|
387
|
+
default: 'default',
|
|
388
|
+
insensitive: 'insensitive'
|
|
389
|
+
} as const
|
|
390
|
+
|
|
391
|
+
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
export const NullsOrder = {
|
|
395
|
+
first: 'first',
|
|
396
|
+
last: 'last'
|
|
397
|
+
} as const
|
|
398
|
+
|
|
399
|
+
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
export const UserOrderByRelevanceFieldEnum = {
|
|
403
|
+
id: 'id',
|
|
404
|
+
email: 'email',
|
|
405
|
+
name: 'name',
|
|
406
|
+
avatarUrl: 'avatarUrl',
|
|
407
|
+
passwordHash: 'passwordHash',
|
|
408
|
+
totpSecret: 'totpSecret',
|
|
409
|
+
authProvider: 'authProvider'
|
|
410
|
+
} as const
|
|
411
|
+
|
|
412
|
+
export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum]
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
export const OAuthAccountOrderByRelevanceFieldEnum = {
|
|
416
|
+
id: 'id',
|
|
417
|
+
userId: 'userId',
|
|
418
|
+
provider: 'provider',
|
|
419
|
+
providerAccountId: 'providerAccountId',
|
|
420
|
+
accessToken: 'accessToken',
|
|
421
|
+
refreshToken: 'refreshToken'
|
|
422
|
+
} as const
|
|
423
|
+
|
|
424
|
+
export type OAuthAccountOrderByRelevanceFieldEnum = (typeof OAuthAccountOrderByRelevanceFieldEnum)[keyof typeof OAuthAccountOrderByRelevanceFieldEnum]
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
export const SessionOrderByRelevanceFieldEnum = {
|
|
428
|
+
id: 'id',
|
|
429
|
+
userId: 'userId',
|
|
430
|
+
token: 'token',
|
|
431
|
+
ipAddress: 'ipAddress',
|
|
432
|
+
userAgent: 'userAgent',
|
|
433
|
+
fingerprintHash: 'fingerprintHash'
|
|
434
|
+
} as const
|
|
435
|
+
|
|
436
|
+
export type SessionOrderByRelevanceFieldEnum = (typeof SessionOrderByRelevanceFieldEnum)[keyof typeof SessionOrderByRelevanceFieldEnum]
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
export const JsonNullValueFilter = {
|
|
440
|
+
DbNull: DbNull,
|
|
441
|
+
JsonNull: JsonNull,
|
|
442
|
+
AnyNull: AnyNull
|
|
443
|
+
} as const
|
|
444
|
+
|
|
445
|
+
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
export const ApiKeyOrderByRelevanceFieldEnum = {
|
|
449
|
+
id: 'id',
|
|
450
|
+
name: 'name',
|
|
451
|
+
keyHash: 'keyHash',
|
|
452
|
+
keyPrefix: 'keyPrefix',
|
|
453
|
+
userId: 'userId'
|
|
454
|
+
} as const
|
|
455
|
+
|
|
456
|
+
export type ApiKeyOrderByRelevanceFieldEnum = (typeof ApiKeyOrderByRelevanceFieldEnum)[keyof typeof ApiKeyOrderByRelevanceFieldEnum]
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
export const AuditLogOrderByRelevanceFieldEnum = {
|
|
460
|
+
id: 'id',
|
|
461
|
+
event: 'event',
|
|
462
|
+
userId: 'userId',
|
|
463
|
+
ipAddress: 'ipAddress',
|
|
464
|
+
userAgent: 'userAgent'
|
|
465
|
+
} as const
|
|
466
|
+
|
|
467
|
+
export type AuditLogOrderByRelevanceFieldEnum = (typeof AuditLogOrderByRelevanceFieldEnum)[keyof typeof AuditLogOrderByRelevanceFieldEnum]
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
export const FolderOrderByRelevanceFieldEnum = {
|
|
471
|
+
id: 'id',
|
|
472
|
+
name: 'name',
|
|
473
|
+
scope: 'scope',
|
|
474
|
+
parentId: 'parentId'
|
|
475
|
+
} as const
|
|
476
|
+
|
|
477
|
+
export type FolderOrderByRelevanceFieldEnum = (typeof FolderOrderByRelevanceFieldEnum)[keyof typeof FolderOrderByRelevanceFieldEnum]
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
export const DocumentOrderByRelevanceFieldEnum = {
|
|
481
|
+
id: 'id',
|
|
482
|
+
collection: 'collection',
|
|
483
|
+
locale: 'locale',
|
|
484
|
+
localeGroupId: 'localeGroupId',
|
|
485
|
+
createdById: 'createdById',
|
|
486
|
+
updatedById: 'updatedById',
|
|
487
|
+
searchVector: 'searchVector',
|
|
488
|
+
plainText: 'plainText',
|
|
489
|
+
contentHash: 'contentHash',
|
|
490
|
+
siteId: 'siteId',
|
|
491
|
+
templateId: 'templateId',
|
|
492
|
+
folderId: 'folderId'
|
|
493
|
+
} as const
|
|
494
|
+
|
|
495
|
+
export type DocumentOrderByRelevanceFieldEnum = (typeof DocumentOrderByRelevanceFieldEnum)[keyof typeof DocumentOrderByRelevanceFieldEnum]
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
export const VersionOrderByRelevanceFieldEnum = {
|
|
499
|
+
id: 'id',
|
|
500
|
+
documentId: 'documentId',
|
|
501
|
+
changedById: 'changedById'
|
|
502
|
+
} as const
|
|
503
|
+
|
|
504
|
+
export type VersionOrderByRelevanceFieldEnum = (typeof VersionOrderByRelevanceFieldEnum)[keyof typeof VersionOrderByRelevanceFieldEnum]
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
export const MediaOrderByRelevanceFieldEnum = {
|
|
508
|
+
id: 'id',
|
|
509
|
+
filename: 'filename',
|
|
510
|
+
storageKey: 'storageKey',
|
|
511
|
+
mimeType: 'mimeType',
|
|
512
|
+
altText: 'altText',
|
|
513
|
+
title: 'title',
|
|
514
|
+
uploadedById: 'uploadedById',
|
|
515
|
+
blurHash: 'blurHash',
|
|
516
|
+
aiAltText: 'aiAltText',
|
|
517
|
+
aiDescription: 'aiDescription',
|
|
518
|
+
folderId: 'folderId'
|
|
519
|
+
} as const
|
|
520
|
+
|
|
521
|
+
export type MediaOrderByRelevanceFieldEnum = (typeof MediaOrderByRelevanceFieldEnum)[keyof typeof MediaOrderByRelevanceFieldEnum]
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
export const MediaUsageOrderByRelevanceFieldEnum = {
|
|
525
|
+
id: 'id',
|
|
526
|
+
mediaId: 'mediaId',
|
|
527
|
+
documentId: 'documentId',
|
|
528
|
+
fieldName: 'fieldName'
|
|
529
|
+
} as const
|
|
530
|
+
|
|
531
|
+
export type MediaUsageOrderByRelevanceFieldEnum = (typeof MediaUsageOrderByRelevanceFieldEnum)[keyof typeof MediaUsageOrderByRelevanceFieldEnum]
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
export const ContentLockOrderByRelevanceFieldEnum = {
|
|
535
|
+
id: 'id',
|
|
536
|
+
documentId: 'documentId',
|
|
537
|
+
userId: 'userId'
|
|
538
|
+
} as const
|
|
539
|
+
|
|
540
|
+
export type ContentLockOrderByRelevanceFieldEnum = (typeof ContentLockOrderByRelevanceFieldEnum)[keyof typeof ContentLockOrderByRelevanceFieldEnum]
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
export const InAppNotificationOrderByRelevanceFieldEnum = {
|
|
544
|
+
id: 'id',
|
|
545
|
+
userId: 'userId',
|
|
546
|
+
type: 'type',
|
|
547
|
+
title: 'title',
|
|
548
|
+
message: 'message',
|
|
549
|
+
link: 'link'
|
|
550
|
+
} as const
|
|
551
|
+
|
|
552
|
+
export type InAppNotificationOrderByRelevanceFieldEnum = (typeof InAppNotificationOrderByRelevanceFieldEnum)[keyof typeof InAppNotificationOrderByRelevanceFieldEnum]
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
export const ContentTemplateOrderByRelevanceFieldEnum = {
|
|
556
|
+
id: 'id',
|
|
557
|
+
name: 'name',
|
|
558
|
+
collection: 'collection',
|
|
559
|
+
createdById: 'createdById'
|
|
560
|
+
} as const
|
|
561
|
+
|
|
562
|
+
export type ContentTemplateOrderByRelevanceFieldEnum = (typeof ContentTemplateOrderByRelevanceFieldEnum)[keyof typeof ContentTemplateOrderByRelevanceFieldEnum]
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
export const SiteOrderByRelevanceFieldEnum = {
|
|
566
|
+
id: 'id',
|
|
567
|
+
domain: 'domain',
|
|
568
|
+
name: 'name'
|
|
569
|
+
} as const
|
|
570
|
+
|
|
571
|
+
export type SiteOrderByRelevanceFieldEnum = (typeof SiteOrderByRelevanceFieldEnum)[keyof typeof SiteOrderByRelevanceFieldEnum]
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
export const WorkflowStateOrderByRelevanceFieldEnum = {
|
|
575
|
+
id: 'id',
|
|
576
|
+
documentId: 'documentId',
|
|
577
|
+
assignedToId: 'assignedToId',
|
|
578
|
+
status: 'status'
|
|
579
|
+
} as const
|
|
580
|
+
|
|
581
|
+
export type WorkflowStateOrderByRelevanceFieldEnum = (typeof WorkflowStateOrderByRelevanceFieldEnum)[keyof typeof WorkflowStateOrderByRelevanceFieldEnum]
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
export const RedirectOrderByRelevanceFieldEnum = {
|
|
585
|
+
id: 'id',
|
|
586
|
+
source: 'source',
|
|
587
|
+
destination: 'destination',
|
|
588
|
+
notes: 'notes'
|
|
589
|
+
} as const
|
|
590
|
+
|
|
591
|
+
export type RedirectOrderByRelevanceFieldEnum = (typeof RedirectOrderByRelevanceFieldEnum)[keyof typeof RedirectOrderByRelevanceFieldEnum]
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
export const FormSubmissionOrderByRelevanceFieldEnum = {
|
|
595
|
+
id: 'id',
|
|
596
|
+
formId: 'formId',
|
|
597
|
+
status: 'status'
|
|
598
|
+
} as const
|
|
599
|
+
|
|
600
|
+
export type FormSubmissionOrderByRelevanceFieldEnum = (typeof FormSubmissionOrderByRelevanceFieldEnum)[keyof typeof FormSubmissionOrderByRelevanceFieldEnum]
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
export const BackupRecordOrderByRelevanceFieldEnum = {
|
|
604
|
+
id: 'id',
|
|
605
|
+
filename: 'filename',
|
|
606
|
+
storageKey: 'storageKey',
|
|
607
|
+
type: 'type'
|
|
608
|
+
} as const
|
|
609
|
+
|
|
610
|
+
export type BackupRecordOrderByRelevanceFieldEnum = (typeof BackupRecordOrderByRelevanceFieldEnum)[keyof typeof BackupRecordOrderByRelevanceFieldEnum]
|
|
611
|
+
|