mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
feat(premiere-uxp): introduce Adobe Premiere Pro UXP plugin for Shumai (#407)
* feat(premiere-uxp): use native Bun bundler and build script instead of Vite * feat(premiere-uxp): switch FileListView to use Search API consistent with WebUI * feat(premiere-uxp): add on-demand jpeg preview conversion for uxp compatibility * feat(premiere-uxp): integrate spectrum web components (swc) * fix(premiere-uxp): align swc packages with 0.37.0 and fix auth layout * feat(premiere-uxp): use horizontal 2-column card view for projects and files * style(premiere-uxp): enlarge file preview by 20% and add row padding * fix(premiere-uxp): prevent card squishing and overflow with large item counts * fix(premiere-uxp): change host in manifest to single object * docs(premiere-uxp): add AGENTS.md with SWC preferences and UXP layout rules * feat(premiere-uxp): integrate spectrum web components across plugin views * fix(premiere-uxp): remove breadcrumb icons and use slash separator * feat(premiere-uxp): add collapsible folder and file sections with infinite scroll * feat(premiere-uxp): update file card layout with right column info and clean preview * fix(premiere-uxp): use raw text for file card details and fix black icons * style(premiere-uxp): use contain object-fit and black background for file card preview * fix(premiere-uxp): refine header logo, sticky title bars, circular badges, and controls * fix(premiere-uxp): replace stroke icons with spectrum workflow icons * fix(premiere-uxp): switch icon buttons to swc sp-button with icon-only and slot=icon * fix(premiere-uxp): vertically center endpoint text in header * feat(premiere-uxp): add asset and proxy import support into Premiere Pro - Implement context menu on file cards with left-click, right-click, and more action button triggers - Support raw file import for non-video assets and video assets - Support video proxy submenu listing ready transcode resolutions - Add UXP native file picker save dialog and binary download orchestration - Call Premiere Pro project.importFiles API to import downloaded assets into active project - Add non-blocking toast notification banner for progress and status reporting - Add unit tests for premiere host service and import orchestration * fix(premiere-uxp): anchor import menu directly to file card using sp-action-menu - Replace custom fixed-position ContextMenu with native SWC sp-action-menu - Anchor menu directly to the triggered file card rather than the top-left window corner - Support programmatic opening on file card click/contextmenu via imperative handle - Support video submenu with Original and ready proxy options inside sp-action-menu - Lazy load video proxies on menu open or hover - Clean up obsolete fixed-position styles and unused backdrop overlays * fix(premiere-uxp): align SWC packages to 0.37.0 and guard custom element registry - Downgrade action-menu and menu SWC packages to 0.37.0 to match the rest of the workspace - Eliminate duplicate icons-ui and sp-icon-chevron100 customElements.define calls - Add polyfill guard to customElements.define to prevent duplicate registration errors during UXP reload * fix(premiere-uxp): polyfill window.matchMedia for Adobe UXP - Add window.matchMedia polyfill in polyfills.ts - Satisfies SWC MatchMediaController used by ActionMenu and PickerBase in UXP - Prevents TypeError when opening files page * feat(premiere-uxp): replace context menu with card download action and video import dialog * fix(premiere-uxp): resolve download url before save, pass null targetBin, and center download icon * fix(premiere-uxp): resolve raw download url via download-url endpoint with fallback * feat(premiere-uxp): use native folder picker and auto-increment conflict suffixes * feat(premiere-uxp): add sequence linking, comment-marker sync, and navigation tabs - Add sequence-to-asset linking with persistent project metadata storage - Support one-way comment-to-marker timeline synchronization - Add two-tab navigation (Sequences and Browse) using Spectrum buttons - Add LinkSequenceDialog, SequencesView, and autoSyncService background engine - Enforce Spectrum Workflow Icons and UXP layout rules * feat(premiere-uxp): refine UI layouts, card interactions, and search box activation * fix(premiere-uxp): set compact fixed width for file list search box * fix(premiere-uxp): ensure search box click activation across full width in UXP * fix(premiere-uxp): revert search box hacks and restore simple default sp-search layout * feat(premiere-uxp): sync non-timestamped comments as markers at time 0 * feat(premiere-uxp): change link icon to unlink when asset is linked in file card * fix(premiere-uxp): sync linked sequences between host project and browse view * feat(premiere-uxp): remove synced markers on sequence unlink matching Frame.io * fix(premiere-uxp): ensure reliable marker GUID capture, normalization, and fallback on unlink * fix(premiere-uxp): use official Shumai logo for plugin manifest icons * fix(premiere-uxp): use official PNG icons for manifest and plugin entrypoints * refactor(premiere-uxp): use single 114x114 icon for plugin and panel * feat(premiere-uxp): show file version in file list page file card * build(premiere-uxp): check in built ccx package and update packaging configuration * fix(premiere-uxp): address code review findings for media conversion, marker sync, and link scoping - Reset hasJpegCover on project cover update and hasJpegPreview on asset media transcode - Only advance synced comment metadata after confirmed marker transaction - Normalize GUID keys and lookups in AutoSyncService map - Restrict cached sequence link lookups to project-specific keys and prevent cross-project leakage on empty sequences - Update built CCX distribution package
This commit is contained in:
@@ -318,6 +318,28 @@ describe('folder api', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('POST /folders/:folderId/search passes previewFormat to searchService', async () => {
|
||||
vi.mocked(searchService.search).mockResolvedValue({
|
||||
data: [],
|
||||
pageInfo: { total: 0 },
|
||||
})
|
||||
|
||||
const app = new Hono().use('*', authMiddleware).route('/', folderRoute)
|
||||
const res = await app.request('/folders/test-id/search', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
previewFormat: 'jpeg',
|
||||
}),
|
||||
})
|
||||
|
||||
expect(res.status).toBe(200)
|
||||
expect(searchService.search).toHaveBeenCalledWith(
|
||||
'test-id',
|
||||
expect.objectContaining({ previewFormat: 'jpeg' }),
|
||||
)
|
||||
})
|
||||
|
||||
it('PATCH /folders/:folderId/order', async () => {
|
||||
vi.spyOn(assetService, 'updateAssetOrder').mockResolvedValue({
|
||||
id: 'test-id',
|
||||
|
||||
@@ -45,6 +45,8 @@ const apiRoute = new Hono<{ Variables: { user: User } }>()
|
||||
.use('/projects/*', tokenAuthMiddleware)
|
||||
.use('/folders', tokenAuthMiddleware)
|
||||
.use('/folders/*', tokenAuthMiddleware)
|
||||
.use('/files', tokenAuthMiddleware)
|
||||
.use('/files/*', tokenAuthMiddleware)
|
||||
.use('/teams/:teamId/upload/tasks', tokenAuthMiddleware)
|
||||
.use('/teams/:teamId/upload/tasks/*', tokenAuthMiddleware)
|
||||
|
||||
|
||||
@@ -77,6 +77,23 @@ describe('project api', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('GET /teams/:teamId/projects with previewFormat=jpeg', async () => {
|
||||
vi.mocked(projectService.listProjects).mockResolvedValue({
|
||||
data: [{ id: 'p1', name: 'p1', rootFolder: 'r1', coverImage: 'http://s3/p1.jpeg' }] as any, // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
pageInfo: { total: 1, cursor: 'abc' },
|
||||
})
|
||||
|
||||
const res = await app.request('/teams/t/projects?previewFormat=jpeg')
|
||||
|
||||
expect(res.status).toBe(200)
|
||||
expect(projectService.listProjects).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
teamId: 't',
|
||||
previewFormat: 'jpeg',
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
it('POST /teams/:teamId/projects', async () => {
|
||||
vi.mocked(projectService.createProject).mockResolvedValue({
|
||||
id: 'foo',
|
||||
@@ -412,6 +429,27 @@ describe('project api', () => {
|
||||
expect(projectService.getUserProjects).toHaveBeenCalledWith('user1', 10)
|
||||
})
|
||||
|
||||
it('GET /projects with previewFormat=jpeg', async () => {
|
||||
vi.mocked(projectService.getUserProjects).mockResolvedValue([
|
||||
{
|
||||
id: 'proj1',
|
||||
name: 'My Project',
|
||||
teamId: 'team1',
|
||||
rootFolder: 'folder1',
|
||||
coverImage: 'http://s3/proj1.jpeg',
|
||||
enableNotification: true,
|
||||
updatedAt: '2026-06-21T00:00:00.000Z',
|
||||
},
|
||||
] as unknown as ProjectInfo[])
|
||||
|
||||
const res = await app.request('/projects?first=10&previewFormat=jpeg')
|
||||
|
||||
expect(res.status).toBe(200)
|
||||
const json = await res.json()
|
||||
expect(json.data[0].coverImage).toBe('http://s3/proj1.jpeg')
|
||||
expect(projectService.getUserProjects).toHaveBeenCalledWith('user1', 10, 'jpeg')
|
||||
})
|
||||
|
||||
it('GET /projects/:projectId/recents', async () => {
|
||||
vi.mocked(assetService.listRecents).mockResolvedValue({
|
||||
data: [{ id: 'file1', name: 'video.mp4', type: 'file' }] as any, // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
@@ -8,25 +8,28 @@ import {
|
||||
createProjectRequestSchema,
|
||||
updateProjectRequestSchema,
|
||||
listProjectsRequestSchema,
|
||||
listUserProjectsRequestSchema,
|
||||
recentlyDeletedRequestSchema,
|
||||
updateProjectMemberRoleRequestSchema,
|
||||
addProjectMemberRequestSchema,
|
||||
listRecentsRequestSchema,
|
||||
recordRecentViewRequestSchema,
|
||||
} from '@shumai/dtos'
|
||||
import { listMembersQuerySchema, paginationParamsSchema, AuditAction } from '@shumai/dtos'
|
||||
import { listMembersQuerySchema, AuditAction } from '@shumai/dtos'
|
||||
import type { Prisma } from '@shumai/db'
|
||||
import { auditLogService } from '@shumai/core/src/auditLog/auditLog'
|
||||
|
||||
type User = Prisma.UserGetPayload<Record<string, never>>
|
||||
|
||||
const route = new Hono<{ Variables: { user: User } }>()
|
||||
.get('/projects', zValidator('query', paginationParamsSchema), async (c) => {
|
||||
.get('/projects', zValidator('query', listUserProjectsRequestSchema), async (c) => {
|
||||
const user = c.get('user')
|
||||
const req = c.req.valid('query')
|
||||
const limit = req.first ? Math.min(req.first, 200) : 200
|
||||
|
||||
const allProjects = await projectService.getUserProjects(user.id, limit)
|
||||
const allProjects = req.previewFormat
|
||||
? await projectService.getUserProjects(user.id, limit, req.previewFormat)
|
||||
: await projectService.getUserProjects(user.id, limit)
|
||||
|
||||
return c.json({
|
||||
data: allProjects.map((p) => ({
|
||||
@@ -34,6 +37,8 @@ const route = new Hono<{ Variables: { user: User } }>()
|
||||
name: p.name,
|
||||
teamId: p.teamId,
|
||||
rootFolder: p.rootFolder,
|
||||
coverImage: p.coverImage,
|
||||
coverImageKey: p.coverImageKey,
|
||||
enableNotification: p.enableNotification,
|
||||
updatedAt: p.updatedAt,
|
||||
})),
|
||||
@@ -197,6 +202,7 @@ const route = new Hono<{ Variables: { user: User } }>()
|
||||
userId: user.id,
|
||||
sortBy: req.sortBy,
|
||||
sortDirection: req.sortDirection,
|
||||
previewFormat: req.previewFormat,
|
||||
pagination: req,
|
||||
})
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ import { uploadService } from '@shumai/core/src/upload/upload'
|
||||
import { metadataService } from '@shumai/core/src/metadata/metadata'
|
||||
import { AssetService } from './asset'
|
||||
|
||||
import { ensureJpegInStorage } from '@shumai/core/src/s3/preview-converter'
|
||||
|
||||
vi.mock('@shumai/core/src/s3/s3', () => ({
|
||||
s3Service: {
|
||||
presign: vi.fn().mockResolvedValue('http://mock-s3-url'),
|
||||
@@ -19,6 +21,14 @@ vi.mock('@shumai/core/src/s3/s3', () => ({
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock('@shumai/core/src/s3/preview-converter', async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import('@shumai/core/src/s3/preview-converter')>()
|
||||
return {
|
||||
...actual,
|
||||
ensureJpegInStorage: vi.fn().mockResolvedValue(undefined),
|
||||
}
|
||||
})
|
||||
|
||||
describe('AssetService', () => {
|
||||
setupTestDbHooks()
|
||||
|
||||
@@ -1918,6 +1928,146 @@ describe('AssetService', () => {
|
||||
expect(info.preview).toBeDefined()
|
||||
expect(info.preview?.duration).toBeUndefined()
|
||||
})
|
||||
|
||||
it('converts webp thumbnail to jpeg on demand when hasJpegPreview is false', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockClear()
|
||||
const { project, user } = await setupBasicAssets()
|
||||
|
||||
const image = await prisma.asset.create({
|
||||
data: {
|
||||
name: 'photo.webp',
|
||||
type: AssetType.file,
|
||||
projectId: project.id,
|
||||
creatorId: user.id,
|
||||
sizeByte: 2000,
|
||||
mediaType: 'image/webp',
|
||||
status: 'processed',
|
||||
hasJpegPreview: false,
|
||||
media: {
|
||||
proxyType: 'image',
|
||||
thumbnail: { key: 'shumai/files/1/thumb.webp' },
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any,
|
||||
},
|
||||
})
|
||||
|
||||
const preview = await assetService.toPreviewInfo(image, 'jpeg')
|
||||
|
||||
expect(preview).toBeDefined()
|
||||
expect(ensureJpegInStorage).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'shumai/files/1/thumb.webp',
|
||||
'shumai/files/1/thumb.jpeg',
|
||||
)
|
||||
expect(s3Service.presign).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'shumai/files/1/thumb.jpeg',
|
||||
'GET',
|
||||
)
|
||||
|
||||
const updated = await prisma.asset.findUnique({ where: { id: image.id } })
|
||||
expect(updated?.hasJpegPreview).toBe(true)
|
||||
})
|
||||
|
||||
it('skips conversion when hasJpegPreview is already true', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockClear()
|
||||
const { project, user } = await setupBasicAssets()
|
||||
|
||||
const image = await prisma.asset.create({
|
||||
data: {
|
||||
name: 'photo-converted.webp',
|
||||
type: AssetType.file,
|
||||
projectId: project.id,
|
||||
creatorId: user.id,
|
||||
sizeByte: 2000,
|
||||
mediaType: 'image/webp',
|
||||
status: 'processed',
|
||||
hasJpegPreview: true,
|
||||
media: {
|
||||
proxyType: 'image',
|
||||
thumbnail: { key: 'shumai/files/2/thumb.webp' },
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any,
|
||||
},
|
||||
})
|
||||
|
||||
const preview = await assetService.toPreviewInfo(image, 'jpeg')
|
||||
|
||||
expect(preview).toBeDefined()
|
||||
expect(ensureJpegInStorage).not.toHaveBeenCalled()
|
||||
expect(s3Service.presign).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'shumai/files/2/thumb.jpeg',
|
||||
'GET',
|
||||
)
|
||||
})
|
||||
|
||||
it('gracefully falls back to webp when conversion fails', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockRejectedValueOnce(new Error('Sharp conversion failed'))
|
||||
const { project, user } = await setupBasicAssets()
|
||||
|
||||
const image = await prisma.asset.create({
|
||||
data: {
|
||||
name: 'failing.webp',
|
||||
type: AssetType.file,
|
||||
projectId: project.id,
|
||||
creatorId: user.id,
|
||||
sizeByte: 2000,
|
||||
mediaType: 'image/webp',
|
||||
status: 'processed',
|
||||
hasJpegPreview: false,
|
||||
media: {
|
||||
proxyType: 'image',
|
||||
thumbnail: { key: 'shumai/files/3/thumb.webp' },
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any,
|
||||
},
|
||||
})
|
||||
|
||||
const preview = await assetService.toPreviewInfo(image, 'jpeg')
|
||||
|
||||
expect(preview).toBeDefined()
|
||||
expect(s3Service.presign).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'shumai/files/3/thumb.webp',
|
||||
'GET',
|
||||
)
|
||||
|
||||
const updated = await prisma.asset.findUnique({ where: { id: image.id } })
|
||||
expect(updated?.hasJpegPreview).toBe(false)
|
||||
})
|
||||
|
||||
it('listAssetsByIds forwards previewFormat and converts preview', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockClear()
|
||||
const { project, user } = await setupBasicAssets()
|
||||
|
||||
const image = await prisma.asset.create({
|
||||
data: {
|
||||
name: 'list-photo.webp',
|
||||
type: AssetType.file,
|
||||
projectId: project.id,
|
||||
creatorId: user.id,
|
||||
sizeByte: 2000,
|
||||
mediaType: 'image/webp',
|
||||
status: 'processed',
|
||||
hasJpegPreview: false,
|
||||
media: {
|
||||
proxyType: 'image',
|
||||
thumbnail: { key: 'shumai/files/4/thumb.webp' },
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any,
|
||||
},
|
||||
})
|
||||
|
||||
const list = await assetService.listAssetsByIds([image.id], 'jpeg')
|
||||
|
||||
expect(list).toHaveLength(1)
|
||||
expect(ensureJpegInStorage).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'shumai/files/4/thumb.webp',
|
||||
'shumai/files/4/thumb.jpeg',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('Symlinks', () => {
|
||||
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
AssetUserInfo,
|
||||
ListRecentsRequest,
|
||||
CommentExportFormat,
|
||||
PreviewFormat,
|
||||
} from '@shumai/dtos'
|
||||
import {
|
||||
exportCommentsToFormat,
|
||||
@@ -32,6 +33,11 @@ import { HTTPException } from 'hono/http-exception'
|
||||
import { logger } from '@shumai/core/src/logger'
|
||||
import { PaginatedData, paginateQuery, PaginationParams } from '@shumai/core/src/pagination'
|
||||
import { s3Service } from '@shumai/core/src/s3/s3'
|
||||
import {
|
||||
ensureJpegInStorage,
|
||||
getJpegKeyForWebp,
|
||||
isWebpKey,
|
||||
} from '@shumai/core/src/s3/preview-converter'
|
||||
import { dedupeSymlinksToTarget } from './symlink'
|
||||
import { watermarkService } from '@shumai/core/src/watermark/watermark'
|
||||
import { generateKeyBetween } from 'jittered-fractional-indexing'
|
||||
@@ -133,7 +139,7 @@ export class AssetService {
|
||||
return [folderId, ...ids]
|
||||
}
|
||||
|
||||
async listAssetsByIds(ids: string[]): Promise<AssetInfo[]> {
|
||||
async listAssetsByIds(ids: string[], previewFormat?: PreviewFormat): Promise<AssetInfo[]> {
|
||||
if (ids.length === 0) return []
|
||||
|
||||
const assets = await this.prismaClient.asset.findMany({
|
||||
@@ -145,7 +151,7 @@ export class AssetService {
|
||||
const orderedAssets = ids
|
||||
.map((id) => assetMap.get(id))
|
||||
.filter((a): a is AssetWithIncludes => !!a)
|
||||
const orderedInfos = await this.toAssetInfos(orderedAssets)
|
||||
const orderedInfos = await this.toAssetInfos(orderedAssets, previewFormat)
|
||||
|
||||
return orderedInfos
|
||||
}
|
||||
@@ -2036,7 +2042,10 @@ export class AssetService {
|
||||
return exportCommentsToFormat(metadata, comments, format, options)
|
||||
}
|
||||
|
||||
async toAssetInfos(assets: AssetWithIncludes[]): Promise<AssetInfo[]> {
|
||||
async toAssetInfos(
|
||||
assets: AssetWithIncludes[],
|
||||
previewFormat?: PreviewFormat,
|
||||
): Promise<AssetInfo[]> {
|
||||
const stackIds = new Set<string>()
|
||||
|
||||
for (const a of assets) {
|
||||
@@ -2150,7 +2159,7 @@ export class AssetService {
|
||||
id: stackId,
|
||||
versions: await Promise.all(
|
||||
versions.map(async (v, i) => {
|
||||
const preview = await this.toPreviewInfo(v as Asset)
|
||||
const preview = await this.toPreviewInfo(v as Asset, previewFormat)
|
||||
return {
|
||||
version: versions.length - i,
|
||||
current: i === 0,
|
||||
@@ -2208,12 +2217,12 @@ export class AssetService {
|
||||
|
||||
latestChildren.push({
|
||||
type: mediaType,
|
||||
preview: await this.toPreviewInfo(previewAsset),
|
||||
preview: await this.toPreviewInfo(previewAsset, previewFormat),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const preview = await this.toPreviewInfo(latestVersion as Asset)
|
||||
const preview = await this.toPreviewInfo(latestVersion as Asset, previewFormat)
|
||||
|
||||
const creator = latestVersion.creator
|
||||
? {
|
||||
@@ -2374,6 +2383,7 @@ export class AssetService {
|
||||
const assets = await this.prismaClient.asset.findMany({
|
||||
where: { id: { in: assetIds }, isDeleted: false },
|
||||
select: {
|
||||
id: true,
|
||||
projectId: true,
|
||||
type: true,
|
||||
target: { select: { projectId: true } },
|
||||
@@ -2386,6 +2396,16 @@ export class AssetService {
|
||||
if (asset.type === 'symlink' && asset.target?.projectId) {
|
||||
projId = asset.target.projectId
|
||||
}
|
||||
if (!projId) {
|
||||
try {
|
||||
const ctx = await this.getAssetContext(asset.id)
|
||||
if (ctx.projectId) {
|
||||
projId = ctx.projectId
|
||||
}
|
||||
} catch {
|
||||
// ignore if no team/project context
|
||||
}
|
||||
}
|
||||
if (projId) {
|
||||
projectIds.add(projId)
|
||||
}
|
||||
@@ -2604,24 +2624,48 @@ export class AssetService {
|
||||
)
|
||||
}
|
||||
|
||||
async toPreviewInfo(asset: Asset | AssetWithIncludes): Promise<PreviewInfo | null> {
|
||||
async toPreviewInfo(
|
||||
asset: Asset | AssetWithIncludes,
|
||||
previewFormat?: PreviewFormat,
|
||||
): Promise<PreviewInfo | null> {
|
||||
if (!asset.media) return null
|
||||
|
||||
const proxyType = (asset.media?.proxyType || null) as 'image' | 'video' | 'audio' | 'pdf' | null
|
||||
|
||||
let thumbnailUrl = undefined
|
||||
let rawThumbKey: string | undefined
|
||||
if (proxyType === 'image' && asset.media.thumbnail?.key) {
|
||||
thumbnailUrl = await s3Service.presign(
|
||||
process.env.S3_BUCKET || 'shumai',
|
||||
asset.media.thumbnail.key,
|
||||
'GET',
|
||||
)
|
||||
rawThumbKey = asset.media.thumbnail.key
|
||||
} else if (asset.media.poster?.key) {
|
||||
thumbnailUrl = await s3Service.presign(
|
||||
process.env.S3_BUCKET || 'shumai',
|
||||
asset.media.poster.key,
|
||||
'GET',
|
||||
)
|
||||
rawThumbKey = asset.media.poster.key
|
||||
}
|
||||
|
||||
let thumbnailUrl = undefined
|
||||
if (rawThumbKey) {
|
||||
const bucket = process.env.S3_BUCKET || 'shumai'
|
||||
let finalKey = rawThumbKey
|
||||
if (previewFormat === 'jpeg' && isWebpKey(rawThumbKey)) {
|
||||
const targetJpegKey = getJpegKeyForWebp(rawThumbKey)
|
||||
if (asset.hasJpegPreview) {
|
||||
finalKey = targetJpegKey
|
||||
} else {
|
||||
try {
|
||||
await ensureJpegInStorage(bucket, rawThumbKey, targetJpegKey)
|
||||
await this.prismaClient.asset.update({
|
||||
where: { id: asset.id },
|
||||
data: { hasJpegPreview: true },
|
||||
})
|
||||
asset.hasJpegPreview = true
|
||||
finalKey = targetJpegKey
|
||||
} catch (err) {
|
||||
logger.warn(
|
||||
{ err, assetId: asset.id, rawThumbKey },
|
||||
'Failed to ensure JPEG preview for asset, falling back to WebP',
|
||||
)
|
||||
finalKey = rawThumbKey
|
||||
}
|
||||
}
|
||||
}
|
||||
thumbnailUrl = await s3Service.presign(bucket, finalKey, 'GET')
|
||||
}
|
||||
|
||||
let spriteUrl = undefined
|
||||
|
||||
@@ -5,6 +5,8 @@ import { ProjectService } from './project'
|
||||
import { s3Service } from '@shumai/core/src/s3/s3'
|
||||
import { assetService } from '@shumai/core/src/asset/asset'
|
||||
|
||||
import { ensureJpegInStorage } from '@shumai/core/src/s3/preview-converter'
|
||||
|
||||
vi.mock('@shumai/core/src/s3/s3', () => ({
|
||||
s3Service: {
|
||||
presign: vi.fn(),
|
||||
@@ -13,6 +15,14 @@ vi.mock('@shumai/core/src/s3/s3', () => ({
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock('@shumai/core/src/s3/preview-converter', async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import('@shumai/core/src/s3/preview-converter')>()
|
||||
return {
|
||||
...actual,
|
||||
ensureJpegInStorage: vi.fn().mockResolvedValue(undefined),
|
||||
}
|
||||
})
|
||||
|
||||
describe('ProjectService', () => {
|
||||
setupTestDbHooks()
|
||||
let projectService: ProjectService
|
||||
@@ -562,4 +572,116 @@ describe('ProjectService', () => {
|
||||
expect(result).toEqual([])
|
||||
})
|
||||
})
|
||||
|
||||
describe('previewFormat handling', () => {
|
||||
it('converts webp cover to jpeg on demand and updates hasJpegCover in listProjects', async () => {
|
||||
const team = await prisma.team.create({ data: { name: 'Preview Team' } })
|
||||
const user = await prisma.user.create({
|
||||
data: { name: 'preview-u1', email: 'preview-u1@example.com' },
|
||||
})
|
||||
await prisma.teamMember.create({
|
||||
data: { teamId: team.id, userId: user.id, role: 'editor', scope: 'team' },
|
||||
})
|
||||
|
||||
const project = await prisma.project.create({
|
||||
data: {
|
||||
name: 'Proj WebP',
|
||||
teamId: team.id,
|
||||
coverImageKey: 'projects/p1/cover.webp',
|
||||
hasJpegCover: false,
|
||||
},
|
||||
})
|
||||
|
||||
const res = await projectService.listProjects({
|
||||
teamId: team.id,
|
||||
userId: user.id,
|
||||
previewFormat: 'jpeg',
|
||||
pagination: {},
|
||||
})
|
||||
|
||||
expect(res.data).toHaveLength(1)
|
||||
expect(ensureJpegInStorage).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'projects/p1/cover.webp',
|
||||
'projects/p1/cover.jpeg',
|
||||
)
|
||||
expect(s3Service.presign).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'projects/p1/cover.jpeg',
|
||||
'GET',
|
||||
)
|
||||
|
||||
const updated = await prisma.project.findUnique({ where: { id: project.id } })
|
||||
expect(updated?.hasJpegCover).toBe(true)
|
||||
})
|
||||
|
||||
it('skips conversion if hasJpegCover is already true in getUserProjects', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockClear()
|
||||
const team = await prisma.team.create({ data: { name: 'Preview Team 2' } })
|
||||
const user = await prisma.user.create({
|
||||
data: { name: 'preview-u2', email: 'preview-u2@example.com' },
|
||||
})
|
||||
await prisma.teamMember.create({
|
||||
data: { teamId: team.id, userId: user.id, role: 'editor', scope: 'team' },
|
||||
})
|
||||
|
||||
await prisma.project.create({
|
||||
data: {
|
||||
name: 'Proj JPEG',
|
||||
teamId: team.id,
|
||||
coverImageKey: 'projects/p2/cover.webp',
|
||||
hasJpegCover: true,
|
||||
},
|
||||
})
|
||||
|
||||
const result = await projectService.getUserProjects(user.id, 10, 'jpeg')
|
||||
|
||||
expect(result).toHaveLength(1)
|
||||
expect(ensureJpegInStorage).not.toHaveBeenCalled()
|
||||
expect(s3Service.presign).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'projects/p2/cover.jpeg',
|
||||
'GET',
|
||||
)
|
||||
})
|
||||
|
||||
it('resets hasJpegCover to false when coverImageKey changes during updateProject and reconverts', async () => {
|
||||
vi.mocked(ensureJpegInStorage).mockClear()
|
||||
const team = await prisma.team.create({ data: { name: 'Preview Team 3' } })
|
||||
const user = await prisma.user.create({
|
||||
data: { name: 'preview-u3', email: 'preview-u3@example.com' },
|
||||
})
|
||||
await prisma.teamMember.create({
|
||||
data: { teamId: team.id, userId: user.id, role: 'editor', scope: 'team' },
|
||||
})
|
||||
|
||||
const project = await prisma.project.create({
|
||||
data: {
|
||||
name: 'Proj Original',
|
||||
teamId: team.id,
|
||||
coverImageKey: 'projects/p3/original.webp',
|
||||
hasJpegCover: true,
|
||||
},
|
||||
})
|
||||
|
||||
await projectService.updateProject({
|
||||
projectId: project.id,
|
||||
coverImageKey: 'projects/p3/replacement.webp',
|
||||
})
|
||||
|
||||
const afterUpdate = await prisma.project.findUnique({ where: { id: project.id } })
|
||||
expect(afterUpdate?.coverImageKey).toBe('projects/p3/replacement.webp')
|
||||
expect(afterUpdate?.hasJpegCover).toBe(false)
|
||||
|
||||
const fetched = await projectService.getUserProjects(user.id, 10, 'jpeg')
|
||||
expect(fetched).toHaveLength(1)
|
||||
expect(ensureJpegInStorage).toHaveBeenCalledWith(
|
||||
expect.any(String),
|
||||
'projects/p3/replacement.webp',
|
||||
'projects/p3/replacement.jpeg',
|
||||
)
|
||||
const afterFetch = await prisma.project.findUnique({ where: { id: project.id } })
|
||||
expect(afterFetch?.hasJpegCover).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -5,6 +5,12 @@ import { paginateQuery, PaginatedData } from '@shumai/core/src/pagination'
|
||||
import { getAvatarUrl } from '@shumai/core/src/user/avatar'
|
||||
import { getAllowedAgentRoles } from '@shumai/core/src/agent/permissions'
|
||||
import { resolveEffectiveRole } from '@shumai/core/src/authz/authz'
|
||||
import { logger } from '@shumai/core/src/logger'
|
||||
import {
|
||||
ensureJpegInStorage,
|
||||
getJpegKeyForWebp,
|
||||
isWebpKey,
|
||||
} from '@shumai/core/src/s3/preview-converter'
|
||||
import {
|
||||
ServiceCreateProjectRequest,
|
||||
ServiceUpdateProjectRequest,
|
||||
@@ -14,6 +20,7 @@ import {
|
||||
ServiceUpdateProjectMemberRoleRequest,
|
||||
ProjectInfo,
|
||||
ProjectUserInfo,
|
||||
PreviewFormat,
|
||||
} from '@shumai/dtos'
|
||||
|
||||
export class ProjectService {
|
||||
@@ -99,11 +106,15 @@ export class ProjectService {
|
||||
if (!project) throw new Error('Project not found')
|
||||
if (!project.team) throw new Error('Project has no team')
|
||||
|
||||
const isCoverChanged =
|
||||
req.coverImageKey !== undefined && req.coverImageKey !== project.coverImageKey
|
||||
|
||||
const updatedProject = await prisma.project.update({
|
||||
where: { id: req.projectId },
|
||||
data: {
|
||||
name: req.name,
|
||||
coverImageKey: req.coverImageKey,
|
||||
...(isCoverChanged ? { hasJpegCover: false } : {}),
|
||||
enableNotification: req.enableNotification,
|
||||
},
|
||||
include: { rootFolder: true },
|
||||
@@ -153,7 +164,9 @@ export class ProjectService {
|
||||
take,
|
||||
include: { rootFolder: true },
|
||||
})
|
||||
const infos = await Promise.all(projects.map((p) => this.toProjectInfo(p)))
|
||||
const infos = await Promise.all(
|
||||
projects.map((p) => this.toProjectInfo(p, req.previewFormat)),
|
||||
)
|
||||
return infos
|
||||
},
|
||||
null,
|
||||
@@ -162,7 +175,11 @@ export class ProjectService {
|
||||
return res
|
||||
}
|
||||
|
||||
async getUserProjects(userId: string, limit = 200): Promise<ProjectInfo[]> {
|
||||
async getUserProjects(
|
||||
userId: string,
|
||||
limit = 200,
|
||||
previewFormat?: PreviewFormat,
|
||||
): Promise<ProjectInfo[]> {
|
||||
const teamMembers = await prisma.teamMember.findMany({
|
||||
where: { userId },
|
||||
})
|
||||
@@ -184,7 +201,7 @@ export class ProjectService {
|
||||
take: limit - allProjects.length,
|
||||
include: { rootFolder: true },
|
||||
})
|
||||
const infos = await Promise.all(teamProjects.map((p) => this.toProjectInfo(p)))
|
||||
const infos = await Promise.all(teamProjects.map((p) => this.toProjectInfo(p, previewFormat)))
|
||||
allProjects.push(...infos)
|
||||
if (allProjects.length >= limit) {
|
||||
break
|
||||
@@ -503,7 +520,7 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
private async toProjectInfo(p: any): Promise<ProjectInfo> {
|
||||
private async toProjectInfo(p: any, previewFormat?: PreviewFormat): Promise<ProjectInfo> {
|
||||
const pi: ProjectInfo = {
|
||||
id: p.id,
|
||||
name: p.name,
|
||||
@@ -522,7 +539,30 @@ export class ProjectService {
|
||||
if (p.coverImageKey) {
|
||||
try {
|
||||
const bucket = process.env.S3_BUCKET || 'shumai'
|
||||
const url = await s3Service.presign(bucket, p.coverImageKey, 'GET')
|
||||
let finalKey = p.coverImageKey
|
||||
if (previewFormat === 'jpeg' && isWebpKey(p.coverImageKey)) {
|
||||
const targetJpegKey = getJpegKeyForWebp(p.coverImageKey)
|
||||
if (p.hasJpegCover) {
|
||||
finalKey = targetJpegKey
|
||||
} else {
|
||||
try {
|
||||
await ensureJpegInStorage(bucket, p.coverImageKey, targetJpegKey)
|
||||
await prisma.project.update({
|
||||
where: { id: p.id },
|
||||
data: { hasJpegCover: true },
|
||||
})
|
||||
p.hasJpegCover = true
|
||||
finalKey = targetJpegKey
|
||||
} catch (err) {
|
||||
logger.warn(
|
||||
{ err, projectId: p.id, coverImageKey: p.coverImageKey },
|
||||
'Failed to ensure JPEG cover for project, falling back to WebP',
|
||||
)
|
||||
finalKey = p.coverImageKey
|
||||
}
|
||||
}
|
||||
}
|
||||
const url = await s3Service.presign(bucket, finalKey, 'GET')
|
||||
pi.coverImage = url
|
||||
} catch (e: unknown) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { ensureJpegInStorage, getJpegKeyForWebp, isWebpKey } from './preview-converter'
|
||||
import { s3Service } from './s3'
|
||||
|
||||
vi.mock('./s3', () => ({
|
||||
s3Service: {
|
||||
getObject: vi.fn(),
|
||||
putObject: vi.fn(),
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock('sharp', () => {
|
||||
return {
|
||||
default: vi.fn(() => ({
|
||||
jpeg: vi.fn().mockReturnThis(),
|
||||
toBuffer: vi.fn().mockResolvedValue(Buffer.from('converted-jpeg-data')),
|
||||
})),
|
||||
}
|
||||
})
|
||||
|
||||
describe('preview-converter', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks()
|
||||
})
|
||||
|
||||
describe('isWebpKey', () => {
|
||||
it('returns true for .webp files case-insensitively', () => {
|
||||
expect(isWebpKey('thumb.webp')).toBe(true)
|
||||
expect(isWebpKey('folder/IMAGE.WEBP')).toBe(true)
|
||||
expect(isWebpKey('a/b/c/file.WebP')).toBe(true)
|
||||
})
|
||||
|
||||
it('returns false for non-webp files or empty inputs', () => {
|
||||
expect(isWebpKey('thumb.jpeg')).toBe(false)
|
||||
expect(isWebpKey('thumb.png')).toBe(false)
|
||||
expect(isWebpKey('')).toBe(false)
|
||||
expect(isWebpKey(null)).toBe(false)
|
||||
expect(isWebpKey(undefined)).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
describe('getJpegKeyForWebp', () => {
|
||||
it('replaces .webp extension with .jpeg', () => {
|
||||
expect(getJpegKeyForWebp('path/to/thumb.webp')).toBe('path/to/thumb.jpeg')
|
||||
expect(getJpegKeyForWebp('path/to/thumb.WEBP')).toBe('path/to/thumb.jpeg')
|
||||
})
|
||||
|
||||
it('appends .jpeg if not ending with .webp', () => {
|
||||
expect(getJpegKeyForWebp('path/to/thumb')).toBe('path/to/thumb.jpeg')
|
||||
})
|
||||
})
|
||||
|
||||
describe('ensureJpegInStorage', () => {
|
||||
it('converts webp to jpeg and puts it into storage', async () => {
|
||||
vi.mocked(s3Service.getObject).mockResolvedValue({
|
||||
buffer: Buffer.from('fake-webp-buffer'),
|
||||
contentType: 'image/webp',
|
||||
} as unknown as Awaited<ReturnType<typeof s3Service.getObject>>)
|
||||
vi.mocked(s3Service.putObject).mockResolvedValue(undefined)
|
||||
|
||||
await ensureJpegInStorage('my-bucket', 'path/thumb.webp', 'path/thumb.jpeg')
|
||||
|
||||
expect(s3Service.getObject).toHaveBeenCalledWith('my-bucket', 'path/thumb.webp')
|
||||
expect(s3Service.putObject).toHaveBeenCalledWith(
|
||||
'my-bucket',
|
||||
'path/thumb.jpeg',
|
||||
Buffer.from('converted-jpeg-data'),
|
||||
19,
|
||||
'image/jpeg',
|
||||
)
|
||||
})
|
||||
|
||||
it('throws error when object buffer is empty or missing', async () => {
|
||||
vi.mocked(s3Service.getObject).mockResolvedValue({
|
||||
buffer: Buffer.alloc(0),
|
||||
} as unknown as Awaited<ReturnType<typeof s3Service.getObject>>)
|
||||
|
||||
await expect(
|
||||
ensureJpegInStorage('my-bucket', 'path/empty.webp', 'path/empty.jpeg'),
|
||||
).rejects.toThrow('Empty or missing buffer')
|
||||
})
|
||||
|
||||
it('deduplicates concurrent requests for the same image', async () => {
|
||||
let resolveGetObject: ((val: unknown) => void) | undefined
|
||||
const getObjectPromise = new Promise<unknown>((resolve) => {
|
||||
resolveGetObject = resolve
|
||||
})
|
||||
vi.mocked(s3Service.getObject).mockImplementation(
|
||||
() => getObjectPromise as ReturnType<typeof s3Service.getObject>,
|
||||
)
|
||||
vi.mocked(s3Service.putObject).mockResolvedValue(undefined)
|
||||
|
||||
const p1 = ensureJpegInStorage('bucket', 'race.webp', 'race.jpeg')
|
||||
const p2 = ensureJpegInStorage('bucket', 'race.webp', 'race.jpeg')
|
||||
|
||||
// Resolve the object fetch
|
||||
resolveGetObject!({
|
||||
buffer: Buffer.from('race-webp-buffer'),
|
||||
})
|
||||
|
||||
await Promise.all([p1, p2])
|
||||
|
||||
// Only one getObject and putObject should have occurred
|
||||
expect(s3Service.getObject).toHaveBeenCalledTimes(1)
|
||||
expect(s3Service.putObject).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,61 @@
|
||||
import sharp from 'sharp'
|
||||
import { s3Service } from './s3'
|
||||
import { logger } from '../logger'
|
||||
|
||||
const inFlightConversions = new Map<string, Promise<void>>()
|
||||
|
||||
/**
|
||||
* Checks if a key represents a WebP image.
|
||||
*/
|
||||
export function isWebpKey(key?: string | null): boolean {
|
||||
if (!key) return false
|
||||
return key.toLowerCase().endsWith('.webp')
|
||||
}
|
||||
|
||||
/**
|
||||
* Deterministically derives the target JPEG storage key for a WebP key.
|
||||
* e.g. "shumai/files/123/image-300p.webp" -> "shumai/files/123/image-300p.jpeg"
|
||||
*/
|
||||
export function getJpegKeyForWebp(key: string): string {
|
||||
if (key.toLowerCase().endsWith('.webp')) {
|
||||
return `${key.slice(0, -5)}.jpeg`
|
||||
}
|
||||
return `${key}.jpeg`
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures that a JPEG version of the given WebP object exists in S3/storage.
|
||||
* Uses an in-flight Promise map to deduplicate concurrent requests for the same image.
|
||||
*/
|
||||
export async function ensureJpegInStorage(
|
||||
bucket: string,
|
||||
webpKey: string,
|
||||
jpegKey: string,
|
||||
): Promise<void> {
|
||||
const dedupeKey = `${bucket}:${webpKey}:${jpegKey}`
|
||||
const existing = inFlightConversions.get(dedupeKey)
|
||||
if (existing) {
|
||||
return await existing
|
||||
}
|
||||
|
||||
const conversionPromise = (async () => {
|
||||
const obj = await s3Service.getObject(bucket, webpKey)
|
||||
if (!obj.buffer || obj.buffer.length === 0) {
|
||||
throw new Error(`Empty or missing buffer for WebP object at ${bucket}/${webpKey}`)
|
||||
}
|
||||
|
||||
const jpegBuffer = await sharp(obj.buffer).jpeg({ quality: 85 }).toBuffer()
|
||||
await s3Service.putObject(bucket, jpegKey, jpegBuffer, jpegBuffer.length, 'image/jpeg')
|
||||
logger.debug({ bucket, webpKey, jpegKey }, 'Converted and saved JPEG preview to storage')
|
||||
})()
|
||||
|
||||
inFlightConversions.set(dedupeKey, conversionPromise)
|
||||
try {
|
||||
await conversionPromise
|
||||
} catch (err) {
|
||||
logger.warn({ err, bucket, webpKey, jpegKey }, 'Failed to convert WebP preview to JPEG')
|
||||
throw err
|
||||
} finally {
|
||||
inFlightConversions.delete(dedupeKey)
|
||||
}
|
||||
}
|
||||
@@ -1027,4 +1027,21 @@ describe('SearchService — natural sort by name', () => {
|
||||
|
||||
expect(result.data.map((a) => a.name)).toEqual(['scene 2', 'scene 9', 'scene 10', 'scene 100'])
|
||||
})
|
||||
|
||||
it('forwards previewFormat to listAssetsByIds during search', async () => {
|
||||
const { root } = await setupSearchNaturalSortAssets(['file1'])
|
||||
const spy = vi.spyOn(assetService, 'listAssetsByIds')
|
||||
|
||||
await searchService.search(root.id, {
|
||||
recursively: true,
|
||||
assetType: 'file',
|
||||
operator: 'AND',
|
||||
conditions: [],
|
||||
isSemantic: false,
|
||||
previewFormat: 'jpeg',
|
||||
})
|
||||
|
||||
expect(spy).toHaveBeenCalledWith(expect.any(Array), 'jpeg')
|
||||
spy.mockRestore()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -135,7 +135,7 @@ export class SearchService {
|
||||
|
||||
// 6. Map back to full rich metadata and return time-based duplicate segments
|
||||
const uniqueIds = Array.from(new Set(finalMatches.map((m) => m.assetId)))
|
||||
const fetchedInfos = await this.assetSvc.listAssetsByIds(uniqueIds)
|
||||
const fetchedInfos = await this.assetSvc.listAssetsByIds(uniqueIds, req.previewFormat)
|
||||
const assetInfosMap = new Map<string, AssetInfo>()
|
||||
for (const info of fetchedInfos) {
|
||||
assetInfosMap.set(info.id, info)
|
||||
@@ -334,7 +334,7 @@ export class SearchService {
|
||||
|
||||
// Map back to full rich metadata
|
||||
const uniqueIds = Array.from(new Set(finalMatches.map((m) => m.assetId)))
|
||||
const fetchedInfos = await this.assetSvc.listAssetsByIds(uniqueIds)
|
||||
const fetchedInfos = await this.assetSvc.listAssetsByIds(uniqueIds, req.previewFormat)
|
||||
const assetInfosMap = new Map<string, AssetInfo>()
|
||||
for (const info of fetchedInfos) {
|
||||
assetInfosMap.set(info.id, info)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { s3Service } from '@shumai/core/src/s3/s3'
|
||||
import { getDerivedArtifactDirectory, stemFromKey } from '@shumai/core/src/utils/filename'
|
||||
import { mapConcurrent } from '../utils/async'
|
||||
import { prisma, WorkflowTaskStatus, WorkflowTaskType } from '@shumai/db'
|
||||
import '@shumai/db/src/prisma-json-types'
|
||||
import { execFile } from 'child_process'
|
||||
@@ -12,6 +11,7 @@ import PDFDocument from 'pdfkit'
|
||||
import sharp from 'sharp'
|
||||
import { ulid } from 'ulid'
|
||||
import { promisify } from 'util'
|
||||
import { mapConcurrent } from '../utils/async'
|
||||
import { dataFormatNames } from './dataFormatNames'
|
||||
|
||||
const execFileAsync = promisify(execFile)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "assets" ADD COLUMN "has_jpeg_preview" BOOLEAN NOT NULL DEFAULT false;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "projects" ADD COLUMN "has_jpeg_cover" BOOLEAN NOT NULL DEFAULT false;
|
||||
@@ -392,6 +392,7 @@ model Project {
|
||||
id String @id @default(ulid())
|
||||
name String
|
||||
coverImageKey String? @map("cover_image_key")
|
||||
hasJpegCover Boolean @default(false) @map("has_jpeg_cover")
|
||||
/// [MetadataOverrides]
|
||||
metadataOverrides Json? @map("metadata_overrides")
|
||||
enableNotification Boolean @default(true) @map("enable_notification")
|
||||
@@ -526,6 +527,7 @@ model Asset {
|
||||
uploadId String? @map("upload_id")
|
||||
/// [MediaInfo]
|
||||
media Json?
|
||||
hasJpegPreview Boolean @default(false) @map("has_jpeg_preview")
|
||||
isDeleted Boolean @default(false) @map("is_deleted")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
sortIndex String? @map("sort_index")
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
@@ -4486,6 +4486,7 @@ export const ProjectScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
coverImageKey: 'coverImageKey',
|
||||
hasJpegCover: 'hasJpegCover',
|
||||
metadataOverrides: 'metadataOverrides',
|
||||
enableNotification: 'enableNotification',
|
||||
createdAt: 'createdAt',
|
||||
@@ -4578,6 +4579,7 @@ export const AssetScalarFieldEnum = {
|
||||
transcodeTaskId: 'transcodeTaskId',
|
||||
uploadId: 'uploadId',
|
||||
media: 'media',
|
||||
hasJpegPreview: 'hasJpegPreview',
|
||||
isDeleted: 'isDeleted',
|
||||
deletedAt: 'deletedAt',
|
||||
sortIndex: 'sortIndex',
|
||||
|
||||
@@ -252,6 +252,7 @@ export const ProjectScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
coverImageKey: 'coverImageKey',
|
||||
hasJpegCover: 'hasJpegCover',
|
||||
metadataOverrides: 'metadataOverrides',
|
||||
enableNotification: 'enableNotification',
|
||||
createdAt: 'createdAt',
|
||||
@@ -344,6 +345,7 @@ export const AssetScalarFieldEnum = {
|
||||
transcodeTaskId: 'transcodeTaskId',
|
||||
uploadId: 'uploadId',
|
||||
media: 'media',
|
||||
hasJpegPreview: 'hasJpegPreview',
|
||||
isDeleted: 'isDeleted',
|
||||
deletedAt: 'deletedAt',
|
||||
sortIndex: 'sortIndex',
|
||||
|
||||
+140
-1
@@ -48,6 +48,7 @@ export type AssetMinAggregateOutputType = {
|
||||
status: $Enums.AssetStatus | null
|
||||
transcodeTaskId: string | null
|
||||
uploadId: string | null
|
||||
hasJpegPreview: boolean | null
|
||||
isDeleted: boolean | null
|
||||
deletedAt: Date | null
|
||||
sortIndex: string | null
|
||||
@@ -72,6 +73,7 @@ export type AssetMaxAggregateOutputType = {
|
||||
status: $Enums.AssetStatus | null
|
||||
transcodeTaskId: string | null
|
||||
uploadId: string | null
|
||||
hasJpegPreview: boolean | null
|
||||
isDeleted: boolean | null
|
||||
deletedAt: Date | null
|
||||
sortIndex: string | null
|
||||
@@ -98,6 +100,7 @@ export type AssetCountAggregateOutputType = {
|
||||
transcodeTaskId: number
|
||||
uploadId: number
|
||||
media: number
|
||||
hasJpegPreview: number
|
||||
isDeleted: number
|
||||
deletedAt: number
|
||||
sortIndex: number
|
||||
@@ -134,6 +137,7 @@ export type AssetMinAggregateInputType = {
|
||||
status?: true
|
||||
transcodeTaskId?: true
|
||||
uploadId?: true
|
||||
hasJpegPreview?: true
|
||||
isDeleted?: true
|
||||
deletedAt?: true
|
||||
sortIndex?: true
|
||||
@@ -158,6 +162,7 @@ export type AssetMaxAggregateInputType = {
|
||||
status?: true
|
||||
transcodeTaskId?: true
|
||||
uploadId?: true
|
||||
hasJpegPreview?: true
|
||||
isDeleted?: true
|
||||
deletedAt?: true
|
||||
sortIndex?: true
|
||||
@@ -184,6 +189,7 @@ export type AssetCountAggregateInputType = {
|
||||
transcodeTaskId?: true
|
||||
uploadId?: true
|
||||
media?: true
|
||||
hasJpegPreview?: true
|
||||
isDeleted?: true
|
||||
deletedAt?: true
|
||||
sortIndex?: true
|
||||
@@ -297,6 +303,7 @@ export type AssetGroupByOutputType = {
|
||||
transcodeTaskId: string | null
|
||||
uploadId: string | null
|
||||
media:PrismaJson.MediaInfo | null
|
||||
hasJpegPreview: boolean
|
||||
isDeleted: boolean
|
||||
deletedAt: Date | null
|
||||
sortIndex: string | null
|
||||
@@ -346,6 +353,7 @@ export type AssetWhereInput = {
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
uploadId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
hasJpegPreview?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
|
||||
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
@@ -396,6 +404,7 @@ export type AssetOrderByWithRelationInput = {
|
||||
transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
uploadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
media?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
hasJpegPreview?: Prisma.SortOrder
|
||||
isDeleted?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -450,6 +459,7 @@ export type AssetWhereUniqueInput = Prisma.AtLeast<{
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
uploadId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
hasJpegPreview?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
|
||||
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
@@ -500,6 +510,7 @@ export type AssetOrderByWithAggregationInput = {
|
||||
transcodeTaskId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
uploadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
media?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
hasJpegPreview?: Prisma.SortOrder
|
||||
isDeleted?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortIndex?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -534,6 +545,7 @@ export type AssetScalarWhereWithAggregatesInput = {
|
||||
transcodeTaskId?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
|
||||
uploadId?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableWithAggregatesFilter<"Asset">
|
||||
hasJpegPreview?: Prisma.BoolWithAggregatesFilter<"Asset"> | boolean
|
||||
isDeleted?: Prisma.BoolWithAggregatesFilter<"Asset"> | boolean
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Asset"> | Date | string | null
|
||||
sortIndex?: Prisma.StringNullableWithAggregatesFilter<"Asset"> | string | null
|
||||
@@ -560,6 +572,7 @@ export type AssetCreateInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -603,6 +616,7 @@ export type AssetUncheckedCreateInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -646,6 +660,7 @@ export type AssetUpdateInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -689,6 +704,7 @@ export type AssetUncheckedUpdateInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -732,6 +748,7 @@ export type AssetCreateManyInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -758,6 +775,7 @@ export type AssetUpdateManyMutationInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -777,6 +795,7 @@ export type AssetUncheckedUpdateManyInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -828,6 +847,7 @@ export type AssetCountOrderByAggregateInput = {
|
||||
transcodeTaskId?: Prisma.SortOrder
|
||||
uploadId?: Prisma.SortOrder
|
||||
media?: Prisma.SortOrder
|
||||
hasJpegPreview?: Prisma.SortOrder
|
||||
isDeleted?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
sortIndex?: Prisma.SortOrder
|
||||
@@ -857,6 +877,7 @@ export type AssetMaxOrderByAggregateInput = {
|
||||
status?: Prisma.SortOrder
|
||||
transcodeTaskId?: Prisma.SortOrder
|
||||
uploadId?: Prisma.SortOrder
|
||||
hasJpegPreview?: Prisma.SortOrder
|
||||
isDeleted?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
sortIndex?: Prisma.SortOrder
|
||||
@@ -881,6 +902,7 @@ export type AssetMinOrderByAggregateInput = {
|
||||
status?: Prisma.SortOrder
|
||||
transcodeTaskId?: Prisma.SortOrder
|
||||
uploadId?: Prisma.SortOrder
|
||||
hasJpegPreview?: Prisma.SortOrder
|
||||
isDeleted?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
sortIndex?: Prisma.SortOrder
|
||||
@@ -1493,6 +1515,7 @@ export type AssetCreateWithoutCreatorInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1535,6 +1558,7 @@ export type AssetUncheckedCreateWithoutCreatorInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1606,6 +1630,7 @@ export type AssetScalarWhereInput = {
|
||||
transcodeTaskId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
uploadId?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
media?: Prisma.JsonNullableFilter<"Asset">
|
||||
hasJpegPreview?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
isDeleted?: Prisma.BoolFilter<"Asset"> | boolean
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Asset"> | Date | string | null
|
||||
sortIndex?: Prisma.StringNullableFilter<"Asset"> | string | null
|
||||
@@ -1632,6 +1657,7 @@ export type AssetCreateWithoutTeamRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1674,6 +1700,7 @@ export type AssetUncheckedCreateWithoutTeamRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1732,6 +1759,7 @@ export type AssetUpdateWithoutTeamRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -1774,6 +1802,7 @@ export type AssetUncheckedUpdateWithoutTeamRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -1816,6 +1845,7 @@ export type AssetCreateWithoutProjectRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1858,6 +1888,7 @@ export type AssetUncheckedCreateWithoutProjectRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1905,6 +1936,7 @@ export type AssetCreateWithoutProjectShareRootInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1947,6 +1979,7 @@ export type AssetUncheckedCreateWithoutProjectShareRootInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -1994,6 +2027,7 @@ export type AssetCreateWithoutProjectInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2036,6 +2070,7 @@ export type AssetUncheckedCreateWithoutProjectInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2099,6 +2134,7 @@ export type AssetUpdateWithoutProjectRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2141,6 +2177,7 @@ export type AssetUncheckedUpdateWithoutProjectRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2194,6 +2231,7 @@ export type AssetUpdateWithoutProjectShareRootInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2236,6 +2274,7 @@ export type AssetUncheckedUpdateWithoutProjectShareRootInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2294,6 +2333,7 @@ export type AssetCreateWithoutShareLinkRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2336,6 +2376,7 @@ export type AssetUncheckedCreateWithoutShareLinkRootFolderInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2394,6 +2435,7 @@ export type AssetUpdateWithoutShareLinkRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2436,6 +2478,7 @@ export type AssetUncheckedUpdateWithoutShareLinkRootFolderInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2478,6 +2521,7 @@ export type AssetCreateWithoutWatermarkFilesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2520,6 +2564,7 @@ export type AssetUncheckedCreateWithoutWatermarkFilesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2578,6 +2623,7 @@ export type AssetUpdateWithoutWatermarkFilesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2620,6 +2666,7 @@ export type AssetUncheckedUpdateWithoutWatermarkFilesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -2662,6 +2709,7 @@ export type AssetCreateWithoutChildrenInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2704,6 +2752,7 @@ export type AssetUncheckedCreateWithoutChildrenInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2751,6 +2800,7 @@ export type AssetCreateWithoutParentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2793,6 +2843,7 @@ export type AssetUncheckedCreateWithoutParentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2845,6 +2896,7 @@ export type AssetCreateWithoutSymlinksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2887,6 +2939,7 @@ export type AssetUncheckedCreateWithoutSymlinksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2934,6 +2987,7 @@ export type AssetCreateWithoutTargetInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -2976,6 +3030,7 @@ export type AssetUncheckedCreateWithoutTargetInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3039,6 +3094,7 @@ export type AssetUpdateWithoutChildrenInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3081,6 +3137,7 @@ export type AssetUncheckedUpdateWithoutChildrenInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3150,6 +3207,7 @@ export type AssetUpdateWithoutSymlinksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3192,6 +3250,7 @@ export type AssetUncheckedUpdateWithoutSymlinksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3250,6 +3309,7 @@ export type AssetCreateWithoutStorageKeyInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3292,6 +3352,7 @@ export type AssetUncheckedCreateWithoutStorageKeyInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3360,6 +3421,7 @@ export type AssetCreateWithoutMetadataValuesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3402,6 +3464,7 @@ export type AssetUncheckedCreateWithoutMetadataValuesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3460,6 +3523,7 @@ export type AssetUpdateWithoutMetadataValuesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3502,6 +3566,7 @@ export type AssetUncheckedUpdateWithoutMetadataValuesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3544,6 +3609,7 @@ export type AssetCreateWithoutAgentMdInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3586,6 +3652,7 @@ export type AssetUncheckedCreateWithoutAgentMdInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3644,6 +3711,7 @@ export type AssetUpdateWithoutAgentMdInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3686,6 +3754,7 @@ export type AssetUncheckedUpdateWithoutAgentMdInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3728,6 +3797,7 @@ export type AssetCreateWithoutCommentsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3770,6 +3840,7 @@ export type AssetUncheckedCreateWithoutCommentsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3828,6 +3899,7 @@ export type AssetUpdateWithoutCommentsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3870,6 +3942,7 @@ export type AssetUncheckedUpdateWithoutCommentsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -3912,6 +3985,7 @@ export type AssetCreateWithoutCommentAttachmentsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -3954,6 +4028,7 @@ export type AssetUncheckedCreateWithoutCommentAttachmentsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4012,6 +4087,7 @@ export type AssetUpdateWithoutCommentAttachmentsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4054,6 +4130,7 @@ export type AssetUncheckedUpdateWithoutCommentAttachmentsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4096,6 +4173,7 @@ export type AssetCreateWithoutEmbeddingsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4138,6 +4216,7 @@ export type AssetUncheckedCreateWithoutEmbeddingsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4196,6 +4275,7 @@ export type AssetUpdateWithoutEmbeddingsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4238,6 +4318,7 @@ export type AssetUncheckedUpdateWithoutEmbeddingsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4280,6 +4361,7 @@ export type AssetCreateWithoutNotificationsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4322,6 +4404,7 @@ export type AssetUncheckedCreateWithoutNotificationsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4380,6 +4463,7 @@ export type AssetUpdateWithoutNotificationsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4422,6 +4506,7 @@ export type AssetUncheckedUpdateWithoutNotificationsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4464,6 +4549,7 @@ export type AssetCreateWithoutTaskInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4506,6 +4592,7 @@ export type AssetUncheckedCreateWithoutTaskInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4574,6 +4661,7 @@ export type AssetCreateWithoutAgentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4616,6 +4704,7 @@ export type AssetUncheckedCreateWithoutAgentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4684,6 +4773,7 @@ export type AssetCreateWithoutAgentSessionsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4726,6 +4816,7 @@ export type AssetUncheckedCreateWithoutAgentSessionsInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4784,6 +4875,7 @@ export type AssetUpdateWithoutAgentSessionsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4826,6 +4918,7 @@ export type AssetUncheckedUpdateWithoutAgentSessionsInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -4868,6 +4961,7 @@ export type AssetCreateWithoutKanbanTargetTasksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4910,6 +5004,7 @@ export type AssetUncheckedCreateWithoutKanbanTargetTasksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -4968,6 +5063,7 @@ export type AssetUpdateWithoutKanbanTargetTasksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5010,6 +5106,7 @@ export type AssetUncheckedUpdateWithoutKanbanTargetTasksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5052,6 +5149,7 @@ export type AssetCreateWithoutKanbanTasksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5094,6 +5192,7 @@ export type AssetUncheckedCreateWithoutKanbanTasksInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5152,6 +5251,7 @@ export type AssetUpdateWithoutKanbanTasksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5194,6 +5294,7 @@ export type AssetUncheckedUpdateWithoutKanbanTasksInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5236,6 +5337,7 @@ export type AssetCreateWithoutRecentFilesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5278,6 +5380,7 @@ export type AssetUncheckedCreateWithoutRecentFilesInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5336,6 +5439,7 @@ export type AssetUpdateWithoutRecentFilesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5378,6 +5482,7 @@ export type AssetUncheckedUpdateWithoutRecentFilesInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5420,6 +5525,7 @@ export type AssetCreateManyCreatorInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5445,6 +5551,7 @@ export type AssetUpdateWithoutCreatorInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5487,6 +5594,7 @@ export type AssetUncheckedUpdateWithoutCreatorInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5529,6 +5637,7 @@ export type AssetUncheckedUpdateManyWithoutCreatorInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5554,6 +5663,7 @@ export type AssetCreateManyProjectInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5579,6 +5689,7 @@ export type AssetUpdateWithoutProjectInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5621,6 +5732,7 @@ export type AssetUncheckedUpdateWithoutProjectInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5663,6 +5775,7 @@ export type AssetUncheckedUpdateManyWithoutProjectInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5688,6 +5801,7 @@ export type AssetCreateManyParentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5713,6 +5827,7 @@ export type AssetCreateManyTargetInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5738,6 +5853,7 @@ export type AssetUpdateWithoutParentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5780,6 +5896,7 @@ export type AssetUncheckedUpdateWithoutParentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5822,6 +5939,7 @@ export type AssetUncheckedUpdateManyWithoutParentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5847,6 +5965,7 @@ export type AssetUpdateWithoutTargetInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5889,6 +6008,7 @@ export type AssetUncheckedUpdateWithoutTargetInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5931,6 +6051,7 @@ export type AssetUncheckedUpdateManyWithoutTargetInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -5956,6 +6077,7 @@ export type AssetCreateManyStorageKeyInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -5981,6 +6103,7 @@ export type AssetUpdateWithoutStorageKeyInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6023,6 +6146,7 @@ export type AssetUncheckedUpdateWithoutStorageKeyInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6065,6 +6189,7 @@ export type AssetUncheckedUpdateManyWithoutStorageKeyInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6090,6 +6215,7 @@ export type AssetCreateManyTaskInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -6115,6 +6241,7 @@ export type AssetUpdateWithoutTaskInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6157,6 +6284,7 @@ export type AssetUncheckedUpdateWithoutTaskInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6199,6 +6327,7 @@ export type AssetUncheckedUpdateManyWithoutTaskInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6224,6 +6353,7 @@ export type AssetCreateManyAgentInput = {
|
||||
transcodeTaskId?: string | null
|
||||
uploadId?: string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
sortIndex?: string | null
|
||||
@@ -6249,6 +6379,7 @@ export type AssetUpdateWithoutAgentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6291,6 +6422,7 @@ export type AssetUncheckedUpdateWithoutAgentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6333,6 +6465,7 @@ export type AssetUncheckedUpdateManyWithoutAgentInput = {
|
||||
transcodeTaskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
uploadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
||||
hasJpegPreview?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
sortIndex?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -6488,6 +6621,7 @@ export type AssetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
transcodeTaskId?: boolean
|
||||
uploadId?: boolean
|
||||
media?: boolean
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: boolean
|
||||
sortIndex?: boolean
|
||||
@@ -6539,6 +6673,7 @@ export type AssetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
|
||||
transcodeTaskId?: boolean
|
||||
uploadId?: boolean
|
||||
media?: boolean
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: boolean
|
||||
sortIndex?: boolean
|
||||
@@ -6572,6 +6707,7 @@ export type AssetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
|
||||
transcodeTaskId?: boolean
|
||||
uploadId?: boolean
|
||||
media?: boolean
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: boolean
|
||||
sortIndex?: boolean
|
||||
@@ -6605,6 +6741,7 @@ export type AssetSelectScalar = {
|
||||
transcodeTaskId?: boolean
|
||||
uploadId?: boolean
|
||||
media?: boolean
|
||||
hasJpegPreview?: boolean
|
||||
isDeleted?: boolean
|
||||
deletedAt?: boolean
|
||||
sortIndex?: boolean
|
||||
@@ -6619,7 +6756,7 @@ export type AssetSelectScalar = {
|
||||
projectId?: boolean
|
||||
}
|
||||
|
||||
export type AssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "nameNgram" | "type" | "mediaType" | "fileCount" | "sizeByte" | "status" | "transcodeTaskId" | "uploadId" | "media" | "isDeleted" | "deletedAt" | "sortIndex" | "createdAt" | "updatedAt" | "parentId" | "targetId" | "storageKeyId" | "creatorId" | "agentId" | "taskId" | "projectId", ExtArgs["result"]["asset"]>
|
||||
export type AssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "nameNgram" | "type" | "mediaType" | "fileCount" | "sizeByte" | "status" | "transcodeTaskId" | "uploadId" | "media" | "hasJpegPreview" | "isDeleted" | "deletedAt" | "sortIndex" | "createdAt" | "updatedAt" | "parentId" | "targetId" | "storageKeyId" | "creatorId" | "agentId" | "taskId" | "projectId", ExtArgs["result"]["asset"]>
|
||||
export type AssetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
parent?: boolean | Prisma.Asset$parentArgs<ExtArgs>
|
||||
children?: boolean | Prisma.Asset$childrenArgs<ExtArgs>
|
||||
@@ -6709,6 +6846,7 @@ export type $AssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
* [MediaInfo]
|
||||
*/
|
||||
media:PrismaJson.MediaInfo | null
|
||||
hasJpegPreview: boolean
|
||||
isDeleted: boolean
|
||||
deletedAt: Date | null
|
||||
sortIndex: string | null
|
||||
@@ -7179,6 +7317,7 @@ export interface AssetFieldRefs {
|
||||
readonly transcodeTaskId: Prisma.FieldRef<"Asset", 'String'>
|
||||
readonly uploadId: Prisma.FieldRef<"Asset", 'String'>
|
||||
readonly media: Prisma.FieldRef<"Asset", 'Json'>
|
||||
readonly hasJpegPreview: Prisma.FieldRef<"Asset", 'Boolean'>
|
||||
readonly isDeleted: Prisma.FieldRef<"Asset", 'Boolean'>
|
||||
readonly deletedAt: Prisma.FieldRef<"Asset", 'DateTime'>
|
||||
readonly sortIndex: Prisma.FieldRef<"Asset", 'String'>
|
||||
|
||||
+84
-1
@@ -30,6 +30,7 @@ export type ProjectMinAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
coverImageKey: string | null
|
||||
hasJpegCover: boolean | null
|
||||
enableNotification: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -42,6 +43,7 @@ export type ProjectMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
coverImageKey: string | null
|
||||
hasJpegCover: boolean | null
|
||||
enableNotification: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -54,6 +56,7 @@ export type ProjectCountAggregateOutputType = {
|
||||
id: number
|
||||
name: number
|
||||
coverImageKey: number
|
||||
hasJpegCover: number
|
||||
metadataOverrides: number
|
||||
enableNotification: number
|
||||
createdAt: number
|
||||
@@ -69,6 +72,7 @@ export type ProjectMinAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
coverImageKey?: true
|
||||
hasJpegCover?: true
|
||||
enableNotification?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -81,6 +85,7 @@ export type ProjectMaxAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
coverImageKey?: true
|
||||
hasJpegCover?: true
|
||||
enableNotification?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -93,6 +98,7 @@ export type ProjectCountAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
coverImageKey?: true
|
||||
hasJpegCover?: true
|
||||
metadataOverrides?: true
|
||||
enableNotification?: true
|
||||
createdAt?: true
|
||||
@@ -179,6 +185,7 @@ export type ProjectGroupByOutputType = {
|
||||
id: string
|
||||
name: string
|
||||
coverImageKey: string | null
|
||||
hasJpegCover: boolean
|
||||
metadataOverrides:PrismaJson.MetadataOverrides | null
|
||||
enableNotification: boolean
|
||||
createdAt: Date
|
||||
@@ -213,6 +220,7 @@ export type ProjectWhereInput = {
|
||||
id?: Prisma.StringFilter<"Project"> | string
|
||||
name?: Prisma.StringFilter<"Project"> | string
|
||||
coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null
|
||||
hasJpegCover?: Prisma.BoolFilter<"Project"> | boolean
|
||||
metadataOverrides?: Prisma.JsonNullableFilter<"Project">
|
||||
enableNotification?: Prisma.BoolFilter<"Project"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
|
||||
@@ -239,6 +247,7 @@ export type ProjectOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
hasJpegCover?: Prisma.SortOrder
|
||||
metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
enableNotification?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -270,6 +279,7 @@ export type ProjectWhereUniqueInput = Prisma.AtLeast<{
|
||||
NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]
|
||||
name?: Prisma.StringFilter<"Project"> | string
|
||||
coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null
|
||||
hasJpegCover?: Prisma.BoolFilter<"Project"> | boolean
|
||||
metadataOverrides?: Prisma.JsonNullableFilter<"Project">
|
||||
enableNotification?: Prisma.BoolFilter<"Project"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
|
||||
@@ -294,6 +304,7 @@ export type ProjectOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
coverImageKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
hasJpegCover?: Prisma.SortOrder
|
||||
metadataOverrides?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
enableNotification?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -313,6 +324,7 @@ export type ProjectScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.StringWithAggregatesFilter<"Project"> | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"Project"> | string
|
||||
coverImageKey?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null
|
||||
hasJpegCover?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean
|
||||
metadataOverrides?: Prisma.JsonNullableWithAggregatesFilter<"Project">
|
||||
enableNotification?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string
|
||||
@@ -326,6 +338,7 @@ export type ProjectCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -349,6 +362,7 @@ export type ProjectUncheckedCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -372,6 +386,7 @@ export type ProjectUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -395,6 +410,7 @@ export type ProjectUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -418,6 +434,7 @@ export type ProjectCreateManyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -431,6 +448,7 @@ export type ProjectUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -441,6 +459,7 @@ export type ProjectUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -464,6 +483,7 @@ export type ProjectCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
coverImageKey?: Prisma.SortOrder
|
||||
hasJpegCover?: Prisma.SortOrder
|
||||
metadataOverrides?: Prisma.SortOrder
|
||||
enableNotification?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -477,6 +497,7 @@ export type ProjectMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
coverImageKey?: Prisma.SortOrder
|
||||
hasJpegCover?: Prisma.SortOrder
|
||||
enableNotification?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -489,6 +510,7 @@ export type ProjectMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
coverImageKey?: Prisma.SortOrder
|
||||
hasJpegCover?: Prisma.SortOrder
|
||||
enableNotification?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -769,6 +791,7 @@ export type ProjectCreateWithoutTeamInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -791,6 +814,7 @@ export type ProjectUncheckedCreateWithoutTeamInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -842,6 +866,7 @@ export type ProjectScalarWhereInput = {
|
||||
id?: Prisma.StringFilter<"Project"> | string
|
||||
name?: Prisma.StringFilter<"Project"> | string
|
||||
coverImageKey?: Prisma.StringNullableFilter<"Project"> | string | null
|
||||
hasJpegCover?: Prisma.BoolFilter<"Project"> | boolean
|
||||
metadataOverrides?: Prisma.JsonNullableFilter<"Project">
|
||||
enableNotification?: Prisma.BoolFilter<"Project"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string
|
||||
@@ -855,6 +880,7 @@ export type ProjectCreateWithoutMembersInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -877,6 +903,7 @@ export type ProjectUncheckedCreateWithoutMembersInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -915,6 +942,7 @@ export type ProjectUpdateWithoutMembersInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -937,6 +965,7 @@ export type ProjectUncheckedUpdateWithoutMembersInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -959,6 +988,7 @@ export type ProjectCreateWithoutShareLinksInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -981,6 +1011,7 @@ export type ProjectUncheckedCreateWithoutShareLinksInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1019,6 +1050,7 @@ export type ProjectUpdateWithoutShareLinksInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1041,6 +1073,7 @@ export type ProjectUncheckedUpdateWithoutShareLinksInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1063,6 +1096,7 @@ export type ProjectCreateWithoutAssetsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1085,6 +1119,7 @@ export type ProjectUncheckedCreateWithoutAssetsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1112,6 +1147,7 @@ export type ProjectCreateWithoutRootFolderInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1134,6 +1170,7 @@ export type ProjectUncheckedCreateWithoutRootFolderInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1161,6 +1198,7 @@ export type ProjectCreateWithoutShareRootInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1183,6 +1221,7 @@ export type ProjectUncheckedCreateWithoutShareRootInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1221,6 +1260,7 @@ export type ProjectUpdateWithoutAssetsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1243,6 +1283,7 @@ export type ProjectUncheckedUpdateWithoutAssetsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1276,6 +1317,7 @@ export type ProjectUpdateWithoutRootFolderInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1298,6 +1340,7 @@ export type ProjectUncheckedUpdateWithoutRootFolderInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1331,6 +1374,7 @@ export type ProjectUpdateWithoutShareRootInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1353,6 +1397,7 @@ export type ProjectUncheckedUpdateWithoutShareRootInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1375,6 +1420,7 @@ export type ProjectCreateWithoutInvitesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1397,6 +1443,7 @@ export type ProjectUncheckedCreateWithoutInvitesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1435,6 +1482,7 @@ export type ProjectUpdateWithoutInvitesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1457,6 +1505,7 @@ export type ProjectUncheckedUpdateWithoutInvitesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1479,6 +1528,7 @@ export type ProjectCreateWithoutMetadataFieldsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1501,6 +1551,7 @@ export type ProjectUncheckedCreateWithoutMetadataFieldsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1539,6 +1590,7 @@ export type ProjectUpdateWithoutMetadataFieldsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1561,6 +1613,7 @@ export type ProjectUncheckedUpdateWithoutMetadataFieldsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1583,6 +1636,7 @@ export type ProjectCreateWithoutNotificationsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1605,6 +1659,7 @@ export type ProjectUncheckedCreateWithoutNotificationsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1643,6 +1698,7 @@ export type ProjectUpdateWithoutNotificationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1665,6 +1721,7 @@ export type ProjectUncheckedUpdateWithoutNotificationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1687,6 +1744,7 @@ export type ProjectCreateWithoutCollectionsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1709,6 +1767,7 @@ export type ProjectUncheckedCreateWithoutCollectionsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1747,6 +1806,7 @@ export type ProjectUpdateWithoutCollectionsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1769,6 +1829,7 @@ export type ProjectUncheckedUpdateWithoutCollectionsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1791,6 +1852,7 @@ export type ProjectCreateWithoutAuditLogsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1813,6 +1875,7 @@ export type ProjectUncheckedCreateWithoutAuditLogsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1851,6 +1914,7 @@ export type ProjectUpdateWithoutAuditLogsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1873,6 +1937,7 @@ export type ProjectUncheckedUpdateWithoutAuditLogsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1895,6 +1960,7 @@ export type ProjectCreateWithoutKanbanTasksInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1917,6 +1983,7 @@ export type ProjectUncheckedCreateWithoutKanbanTasksInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -1955,6 +2022,7 @@ export type ProjectUpdateWithoutKanbanTasksInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1977,6 +2045,7 @@ export type ProjectUncheckedUpdateWithoutKanbanTasksInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1999,6 +2068,7 @@ export type ProjectCreateWithoutRecentFilesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -2021,6 +2091,7 @@ export type ProjectUncheckedCreateWithoutRecentFilesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -2059,6 +2130,7 @@ export type ProjectUpdateWithoutRecentFilesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -2081,6 +2153,7 @@ export type ProjectUncheckedUpdateWithoutRecentFilesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -2103,6 +2176,7 @@ export type ProjectCreateManyTeamInput = {
|
||||
id?: string
|
||||
name: string
|
||||
coverImageKey?: string | null
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: boolean
|
||||
createdAt?: Date | string
|
||||
@@ -2115,6 +2189,7 @@ export type ProjectUpdateWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -2137,6 +2212,7 @@ export type ProjectUncheckedUpdateWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -2159,6 +2235,7 @@ export type ProjectUncheckedUpdateManyWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
coverImageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
hasJpegCover?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
metadataOverrides?:PrismaJson.MetadataOverrides | Prisma.NullableJsonNullValueInput
|
||||
enableNotification?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -2283,6 +2360,7 @@ export type ProjectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
coverImageKey?: boolean
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?: boolean
|
||||
enableNotification?: boolean
|
||||
createdAt?: boolean
|
||||
@@ -2310,6 +2388,7 @@ export type ProjectSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
coverImageKey?: boolean
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?: boolean
|
||||
enableNotification?: boolean
|
||||
createdAt?: boolean
|
||||
@@ -2326,6 +2405,7 @@ export type ProjectSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
coverImageKey?: boolean
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?: boolean
|
||||
enableNotification?: boolean
|
||||
createdAt?: boolean
|
||||
@@ -2342,6 +2422,7 @@ export type ProjectSelectScalar = {
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
coverImageKey?: boolean
|
||||
hasJpegCover?: boolean
|
||||
metadataOverrides?: boolean
|
||||
enableNotification?: boolean
|
||||
createdAt?: boolean
|
||||
@@ -2351,7 +2432,7 @@ export type ProjectSelectScalar = {
|
||||
shareRootId?: boolean
|
||||
}
|
||||
|
||||
export type ProjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "coverImageKey" | "metadataOverrides" | "enableNotification" | "createdAt" | "updatedAt" | "teamId" | "rootFolderId" | "shareRootId", ExtArgs["result"]["project"]>
|
||||
export type ProjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "coverImageKey" | "hasJpegCover" | "metadataOverrides" | "enableNotification" | "createdAt" | "updatedAt" | "teamId" | "rootFolderId" | "shareRootId", ExtArgs["result"]["project"]>
|
||||
export type ProjectInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
rootFolder?: boolean | Prisma.Project$rootFolderArgs<ExtArgs>
|
||||
@@ -2400,6 +2481,7 @@ export type $ProjectPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
id: string
|
||||
name: string
|
||||
coverImageKey: string | null
|
||||
hasJpegCover: boolean
|
||||
/**
|
||||
* [MetadataOverrides]
|
||||
*/
|
||||
@@ -2849,6 +2931,7 @@ export interface ProjectFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Project", 'String'>
|
||||
readonly name: Prisma.FieldRef<"Project", 'String'>
|
||||
readonly coverImageKey: Prisma.FieldRef<"Project", 'String'>
|
||||
readonly hasJpegCover: Prisma.FieldRef<"Project", 'Boolean'>
|
||||
readonly metadataOverrides: Prisma.FieldRef<"Project", 'Json'>
|
||||
readonly enableNotification: Prisma.FieldRef<"Project", 'Boolean'>
|
||||
readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'>
|
||||
|
||||
@@ -29,13 +29,23 @@ export const projectInfoSchema = z.object({
|
||||
})
|
||||
export type ProjectInfo = z.infer<typeof projectInfoSchema>
|
||||
|
||||
import { previewFormatSchema, type PreviewFormat } from './search'
|
||||
|
||||
export const listProjectsRequestSchema = z
|
||||
.object({
|
||||
sortBy: z.string().optional(),
|
||||
sortDirection: z.enum(['asc', 'desc']).optional(),
|
||||
previewFormat: previewFormatSchema.optional(),
|
||||
})
|
||||
.merge(paginationParamsSchema)
|
||||
|
||||
export const listUserProjectsRequestSchema = z
|
||||
.object({
|
||||
previewFormat: previewFormatSchema.optional(),
|
||||
})
|
||||
.merge(paginationParamsSchema)
|
||||
export type ListUserProjectsRequest = z.infer<typeof listUserProjectsRequestSchema>
|
||||
|
||||
export const listProjectsResponseSchema = z.object({
|
||||
data: z.array(projectInfoSchema),
|
||||
pageInfo: paginationPageInfoSchema,
|
||||
@@ -90,6 +100,7 @@ export interface ServiceListProjectsRequest {
|
||||
userId: string
|
||||
sortBy?: string
|
||||
sortDirection?: 'asc' | 'desc'
|
||||
previewFormat?: PreviewFormat
|
||||
pagination: z.infer<typeof paginationParamsSchema>
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ export type SearchOperator = z.infer<typeof searchOperatorSchema>
|
||||
export const searchAssetTypeSchema = z.enum(['file', 'folder'])
|
||||
export type SearchAssetType = z.infer<typeof searchAssetTypeSchema>
|
||||
|
||||
export const previewFormatSchema = z.enum(['jpeg', 'webp'])
|
||||
export type PreviewFormat = z.infer<typeof previewFormatSchema>
|
||||
|
||||
export const searchFilterSchema = z.object({
|
||||
operator: searchOperatorSchema.optional().default('AND'),
|
||||
conditions: z.array(searchConditionSchema).optional().default([]),
|
||||
@@ -54,6 +57,7 @@ export const searchFilterSchema = z.object({
|
||||
recursively: z.boolean().optional().default(true),
|
||||
query: z.string().optional(),
|
||||
isSemantic: z.boolean().optional().default(false),
|
||||
previewFormat: previewFormatSchema.optional(),
|
||||
})
|
||||
export type SearchFilter = z.infer<typeof searchFilterSchema>
|
||||
|
||||
|
||||
@@ -581,6 +581,7 @@ describe('Transcode Activities', () => {
|
||||
storageKey: { create: { key: 'v.mp4' } },
|
||||
status: 'uploaded',
|
||||
type: 'file',
|
||||
hasJpegPreview: true,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -591,6 +592,7 @@ describe('Transcode Activities', () => {
|
||||
const updated = await prisma.asset.findUnique({ where: { id: asset.id } })
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
expect((updated?.media as any).duration).toBe(123)
|
||||
expect(updated?.hasJpegPreview).toBe(false)
|
||||
expect(s3Service.putObject).toHaveBeenCalled()
|
||||
})
|
||||
it('should call transcodeService.transcodeVideo', async () => {
|
||||
|
||||
@@ -678,7 +678,7 @@ export async function updateAssetMediaActivity(params: UpdateAssetMediaActivityP
|
||||
await prisma.asset.update({
|
||||
where: { id: params.assetId },
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
data: { media: params.mediaInfo as any },
|
||||
data: { media: params.mediaInfo as any, hasJpegPreview: false },
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user