mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 02:29:29 +00:00
* feat(sharelink): add sharelink watermark support
* fix(sharelink): harden watermark feature against races, crashes, and tenant leaks
Addresses review findings on the sharelink watermark feature:
- fix(watermark): read back sharelink via transaction client so the
updateShareLinkWatermark response reflects the just-committed state
(global-client reads on a pooled connection miss uncommitted changes)
- fix(watermark): use prisma upsert on the config hash instead of
find-then-create to avoid P2002 races on concurrent enables
- fix(watermark): resolve nested symlinks when walking the share tree and
batch the walk level-by-level instead of one query per node
- fix(watermark): keep watermark tasks in flight from being purged by
orphan-config GC (avoids FK violations in completing activities)
- fix(transcode): re-transcode stale 'processing' watermark rows instead
of silently skipping (crash recovery); downscale embedded block images;
use pino structured logging; drop unused any casts
- fix(api): scope watermark-template list/create to the caller's teams,
reject teamless template creation, and make teamless templates
read-only; validate watermark config required when enabling (400);
map sharelink-not-found to 404
- fix(api): resolve symlink target ids once in public share children
endpoint instead of twice per item
- refactor(db): dedicated WatermarkFileStatus enum (migration included)
- test: activity unit tests (init crash recovery, image + video transcode
paths), concurrent upsert, nested-symlink resolution, API scoping and
validation, e2e video watermark path
* refactor(transcode): move sharp usage out of watermark activity into transcodeService
The transcode package does not declare sharp as a dependency (only
@shumai/core does), so importing it directly in the watermark activity
broke CI typecheck for the transcode package.
- add transcodeService.renderSvgToPng, downscaleImageToPng and
compositeOverlayToWebpFile encapsulating the sharp logic
- watermark activity now calls these methods instead of importing sharp
- activity tests mock the new methods (no sharp/real fixture needed)
- add unit tests for the new transcodeService helpers
* feat(watermark): restrict watermark transcode to existing image and video transcodes
* refactor(transcode): reuse transcodeVideo in watermark activity
* refactor(watermark): use Bun.hash instead of node crypto for watermark config hash
* refactor(watermark): move computeWatermarkConfigHash from dtos to core watermark-hash module
* refactor(api): delegate watermark DB queries from public-share route to watermarkService
* refactor(share): replace dynamic watermarkService import with static import
* feat(watermark): add waitForWatermarkFileActivity for in-flight watermark transcoding tasks
* refactor(asset): replace dynamic watermarkService import with static import
* test(watermark): harden purgeOrphanWatermarkConfigs coverage
Replace the single happy-path GC test with a dedicated suite covering:
- orphan config with proxies: purged, watermarkFiles removed, all four
proxy keys deleted from S3 while the original key is preserved
- config still referenced by a share link is not purged
- config with pending/processing transcode_watermark tasks is not purged
(in-flight guard), but completed tasks do not block purging
- pending tasks of other types (transcode_video) do not protect a config
- an S3 delete failure is non-fatal: remaining keys still deleted and the
config is still purged
- mixed run: only the orphan config is purged while a referenced one
survives (exact count assertion)
* feat(webui): add sharelink watermark editor and sidebar controls
* style(webui): enlarge watermark editor dialog and allocate 2/3 width to preview column
* fix(webui): override sm:max-w-lg in DialogContent to allow full 1400px width
* fix(webui): stop block click propagation and remove preview mode toggles
* fix(webui): store watermark block size as fraction of canvas width
The editor stored block.size in pixels (slider 10-120px, preview
fontSize: `${block.size}px`) while the SVG generator
(generateWatermarkSvg) interprets size as a fraction (0..1) of canvas
width. A 36px block therefore rendered as a ~36x-canvas glyph covering
the entire image.
- Keep backend fraction semantics (canvasWidth * size) so watermarks
scale proportionally with output resolution across proxies
- Editor: defaults (text 5%, image 15%), slider ranges (1-12% / 2-50%)
and number input now work in percent, storing a fraction
- Preview: scales blocks by the measured canvas width so WYSIWYG
- DTO schema: size constrained to (0..1) to enforce the contract
- Update DTO/editor tests to fraction sizes
* feat(webui): add single-row aspect ratio selector and 5 predefined background colors to watermark editor preview
* feat(webui): update aspect ratio to multi-toggle group and enable dot-grid pattern for all background colors
* fix(webui): update background swatches to distinct colors and share PRESET_BACKGROUND_OPTIONS array
* fix(webui): hide redundant absolute close button on watermark editor dialog header
* fix(transcode): skip raw video transcode when generating watermark proxies
The raw marker entry (isRaw: true) in videoTranscodes points at the
original source file and is only used to offer the 'Original' playback
option. It is not a transcoded proxy, so watermarking it produced a
redundant full-resolution transcode (the most expensive pass) plus an
unneeded S3 upload.
Skip entries with isRaw: true in transcodeWatermarkMediaActivity, and
cover the behavior with a unit regression test plus an e2e assertion
that exactly one watermark proxy is produced for a video asset.
* feat(webui): replace watermark image asset ID with 1MB file uploader
* fix(webui): correct watermark editor preview block sizing
The preview canvas width was measured in a useEffect([open]) that ran
before the Radix Dialog had mounted its content, so canvasRef.current was
still null, canvasWidthPx stayed 0, and every block silently fell back to
the hardcoded 640px width (block.size * (canvasWidthPx || 640)). A 100%
size therefore rendered at ~640px on an ~876px canvas (~72%), making the
preview smaller than the real watermarked output for both image and text
blocks.
- Measure the canvas via a ref callback (fires exactly when the node
mounts, regardless of dialog mount timing) and keep a ResizeObserver
attached for aspect-ratio/window changes.
- Use clientWidth (padding-box width) instead of getBoundingClientRect(),
which includes the dialog's zoom-in-95 animation transform.
- Drop max-w-full/max-h-full on the preview <img> so logos scale up to
the block size like the backend SVG rendering does, instead of being
capped at their natural pixel size.
* fix(webui): keep watermark editor preview aspect ratio and restore config scroll
- Compute the preview canvas size with a JS contain-fit (ResizeObserver on the
frame) instead of relying on CSS aspect-ratio + w-full/max-h-full, which
broke the selected ratio on wide-and-short (or tall-and-narrow) windows.
- Add min-h-0 to the config ScrollArea so it shrinks to the column's remaining
height instead of growing to its content height, restoring the scroll range.
* fix(webui): remove toast notification on template load
* fix(share): serve per-file watermark proxies in public share APIs
Stop gating watermark replacement on the share-link-wide watermarkStatus.
Public share endpoints now resolve each asset's own completed watermark
proxy and:
- replace videoTranscodes/imageTranscodes with the watermarked entries
when the watermark file is completed;
- empty those arrays when no completed proxy exists yet (still
transcoding or failed) so original, unwatermarked media is never
exposed while a newly added file is being processed;
- leave non-video/image media (pdf, audio, ...) untouched, since they
never receive watermark transcodes.
This removes the previous behavior where adding a file to a ready
watermark share flipped the whole share link to processing and served
original media for every file until the new transcode finished.
Adds API tests for detail/children endpoints (ready, in-flight, pdf, and
watermark-disabled cases) and a workflow E2E test for adding an asset to
an already-ready watermark sharelink.
1557 lines
64 KiB
TypeScript
Generated
1557 lines
64 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `WatermarkFile` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg';
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model WatermarkFile
|
|
*
|
|
*/
|
|
export type WatermarkFileModel = runtime.Types.Result.DefaultSelection<Prisma.$WatermarkFilePayload>
|
|
|
|
export type AggregateWatermarkFile = {
|
|
_count: WatermarkFileCountAggregateOutputType | null
|
|
_min: WatermarkFileMinAggregateOutputType | null
|
|
_max: WatermarkFileMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type WatermarkFileMinAggregateOutputType = {
|
|
id: string | null
|
|
assetId: string | null
|
|
watermarkConfigId: string | null
|
|
status: $Enums.WatermarkFileStatus | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type WatermarkFileMaxAggregateOutputType = {
|
|
id: string | null
|
|
assetId: string | null
|
|
watermarkConfigId: string | null
|
|
status: $Enums.WatermarkFileStatus | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type WatermarkFileCountAggregateOutputType = {
|
|
id: number
|
|
assetId: number
|
|
watermarkConfigId: number
|
|
media:PrismaJson.MediaInfo
|
|
status: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type WatermarkFileMinAggregateInputType = {
|
|
id?: true
|
|
assetId?: true
|
|
watermarkConfigId?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type WatermarkFileMaxAggregateInputType = {
|
|
id?: true
|
|
assetId?: true
|
|
watermarkConfigId?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type WatermarkFileCountAggregateInputType = {
|
|
id?: true
|
|
assetId?: true
|
|
watermarkConfigId?: true
|
|
media?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type WatermarkFileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WatermarkFile to aggregate.
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WatermarkFiles to fetch.
|
|
*/
|
|
orderBy?: Prisma.WatermarkFileOrderByWithRelationInput | Prisma.WatermarkFileOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.WatermarkFileWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WatermarkFiles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` WatermarkFiles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned WatermarkFiles
|
|
**/
|
|
_count?: true | WatermarkFileCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: WatermarkFileMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: WatermarkFileMaxAggregateInputType
|
|
}
|
|
|
|
export type GetWatermarkFileAggregateType<T extends WatermarkFileAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateWatermarkFile]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateWatermarkFile[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateWatermarkFile[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type WatermarkFileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
orderBy?: Prisma.WatermarkFileOrderByWithAggregationInput | Prisma.WatermarkFileOrderByWithAggregationInput[]
|
|
by: Prisma.WatermarkFileScalarFieldEnum[] | Prisma.WatermarkFileScalarFieldEnum
|
|
having?: Prisma.WatermarkFileScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: WatermarkFileCountAggregateInputType | true
|
|
_min?: WatermarkFileMinAggregateInputType
|
|
_max?: WatermarkFileMaxAggregateInputType
|
|
}
|
|
|
|
export type WatermarkFileGroupByOutputType = {
|
|
id: string
|
|
assetId: string
|
|
watermarkConfigId: string
|
|
media:PrismaJson.MediaInfo | null
|
|
status: $Enums.WatermarkFileStatus
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: WatermarkFileCountAggregateOutputType | null
|
|
_min: WatermarkFileMinAggregateOutputType | null
|
|
_max: WatermarkFileMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetWatermarkFileGroupByPayload<T extends WatermarkFileGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<WatermarkFileGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof WatermarkFileGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], WatermarkFileGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], WatermarkFileGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type WatermarkFileWhereInput = {
|
|
AND?: Prisma.WatermarkFileWhereInput | Prisma.WatermarkFileWhereInput[]
|
|
OR?: Prisma.WatermarkFileWhereInput[]
|
|
NOT?: Prisma.WatermarkFileWhereInput | Prisma.WatermarkFileWhereInput[]
|
|
id?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
assetId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
watermarkConfigId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
media?: Prisma.JsonNullableFilter<"WatermarkFile">
|
|
status?: Prisma.EnumWatermarkFileStatusFilter<"WatermarkFile"> | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
watermarkConfig?: Prisma.XOR<Prisma.WatermarkConfigScalarRelationFilter, Prisma.WatermarkConfigWhereInput>
|
|
}
|
|
|
|
export type WatermarkFileOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
watermarkConfigId?: Prisma.SortOrder
|
|
media?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
asset?: Prisma.AssetOrderByWithRelationInput
|
|
watermarkConfig?: Prisma.WatermarkConfigOrderByWithRelationInput
|
|
}
|
|
|
|
export type WatermarkFileWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
assetId_watermarkConfigId?: Prisma.WatermarkFileAssetIdWatermarkConfigIdCompoundUniqueInput
|
|
AND?: Prisma.WatermarkFileWhereInput | Prisma.WatermarkFileWhereInput[]
|
|
OR?: Prisma.WatermarkFileWhereInput[]
|
|
NOT?: Prisma.WatermarkFileWhereInput | Prisma.WatermarkFileWhereInput[]
|
|
assetId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
watermarkConfigId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
media?: Prisma.JsonNullableFilter<"WatermarkFile">
|
|
status?: Prisma.EnumWatermarkFileStatusFilter<"WatermarkFile"> | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
watermarkConfig?: Prisma.XOR<Prisma.WatermarkConfigScalarRelationFilter, Prisma.WatermarkConfigWhereInput>
|
|
}, "id" | "assetId_watermarkConfigId">
|
|
|
|
export type WatermarkFileOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
watermarkConfigId?: Prisma.SortOrder
|
|
media?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.WatermarkFileCountOrderByAggregateInput
|
|
_max?: Prisma.WatermarkFileMaxOrderByAggregateInput
|
|
_min?: Prisma.WatermarkFileMinOrderByAggregateInput
|
|
}
|
|
|
|
export type WatermarkFileScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.WatermarkFileScalarWhereWithAggregatesInput | Prisma.WatermarkFileScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.WatermarkFileScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.WatermarkFileScalarWhereWithAggregatesInput | Prisma.WatermarkFileScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"WatermarkFile"> | string
|
|
assetId?: Prisma.StringWithAggregatesFilter<"WatermarkFile"> | string
|
|
watermarkConfigId?: Prisma.StringWithAggregatesFilter<"WatermarkFile"> | string
|
|
media?: Prisma.JsonNullableWithAggregatesFilter<"WatermarkFile">
|
|
status?: Prisma.EnumWatermarkFileStatusWithAggregatesFilter<"WatermarkFile"> | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"WatermarkFile"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WatermarkFile"> | Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateInput = {
|
|
id?: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
asset: Prisma.AssetCreateNestedOneWithoutWatermarkFilesInput
|
|
watermarkConfig: Prisma.WatermarkConfigCreateNestedOneWithoutWatermarkFilesInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedCreateInput = {
|
|
id?: string
|
|
assetId: string
|
|
watermarkConfigId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
asset?: Prisma.AssetUpdateOneRequiredWithoutWatermarkFilesNestedInput
|
|
watermarkConfig?: Prisma.WatermarkConfigUpdateOneRequiredWithoutWatermarkFilesNestedInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
watermarkConfigId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateManyInput = {
|
|
id?: string
|
|
assetId: string
|
|
watermarkConfigId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
watermarkConfigId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileListRelationFilter = {
|
|
every?: Prisma.WatermarkFileWhereInput
|
|
some?: Prisma.WatermarkFileWhereInput
|
|
none?: Prisma.WatermarkFileWhereInput
|
|
}
|
|
|
|
export type WatermarkFileOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WatermarkFileAssetIdWatermarkConfigIdCompoundUniqueInput = {
|
|
assetId: string
|
|
watermarkConfigId: string
|
|
}
|
|
|
|
export type WatermarkFileCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
watermarkConfigId?: Prisma.SortOrder
|
|
media?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WatermarkFileMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
watermarkConfigId?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WatermarkFileMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
watermarkConfigId?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type WatermarkFileCreateNestedManyWithoutWatermarkConfigInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput> | Prisma.WatermarkFileCreateWithoutWatermarkConfigInput[] | Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput | Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyWatermarkConfigInputEnvelope
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
}
|
|
|
|
export type WatermarkFileUncheckedCreateNestedManyWithoutWatermarkConfigInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput> | Prisma.WatermarkFileCreateWithoutWatermarkConfigInput[] | Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput | Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyWatermarkConfigInputEnvelope
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
}
|
|
|
|
export type WatermarkFileUpdateManyWithoutWatermarkConfigNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput> | Prisma.WatermarkFileCreateWithoutWatermarkConfigInput[] | Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput | Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput[]
|
|
upsert?: Prisma.WatermarkFileUpsertWithWhereUniqueWithoutWatermarkConfigInput | Prisma.WatermarkFileUpsertWithWhereUniqueWithoutWatermarkConfigInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyWatermarkConfigInputEnvelope
|
|
set?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
disconnect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
delete?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
update?: Prisma.WatermarkFileUpdateWithWhereUniqueWithoutWatermarkConfigInput | Prisma.WatermarkFileUpdateWithWhereUniqueWithoutWatermarkConfigInput[]
|
|
updateMany?: Prisma.WatermarkFileUpdateManyWithWhereWithoutWatermarkConfigInput | Prisma.WatermarkFileUpdateManyWithWhereWithoutWatermarkConfigInput[]
|
|
deleteMany?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateManyWithoutWatermarkConfigNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput> | Prisma.WatermarkFileCreateWithoutWatermarkConfigInput[] | Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput | Prisma.WatermarkFileCreateOrConnectWithoutWatermarkConfigInput[]
|
|
upsert?: Prisma.WatermarkFileUpsertWithWhereUniqueWithoutWatermarkConfigInput | Prisma.WatermarkFileUpsertWithWhereUniqueWithoutWatermarkConfigInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyWatermarkConfigInputEnvelope
|
|
set?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
disconnect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
delete?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
update?: Prisma.WatermarkFileUpdateWithWhereUniqueWithoutWatermarkConfigInput | Prisma.WatermarkFileUpdateWithWhereUniqueWithoutWatermarkConfigInput[]
|
|
updateMany?: Prisma.WatermarkFileUpdateManyWithWhereWithoutWatermarkConfigInput | Prisma.WatermarkFileUpdateManyWithWhereWithoutWatermarkConfigInput[]
|
|
deleteMany?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumWatermarkFileStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.WatermarkFileStatus
|
|
}
|
|
|
|
export type WatermarkFileCreateNestedManyWithoutAssetInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput> | Prisma.WatermarkFileCreateWithoutAssetInput[] | Prisma.WatermarkFileUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutAssetInput | Prisma.WatermarkFileCreateOrConnectWithoutAssetInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyAssetInputEnvelope
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
}
|
|
|
|
export type WatermarkFileUncheckedCreateNestedManyWithoutAssetInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput> | Prisma.WatermarkFileCreateWithoutAssetInput[] | Prisma.WatermarkFileUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutAssetInput | Prisma.WatermarkFileCreateOrConnectWithoutAssetInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyAssetInputEnvelope
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
}
|
|
|
|
export type WatermarkFileUpdateManyWithoutAssetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput> | Prisma.WatermarkFileCreateWithoutAssetInput[] | Prisma.WatermarkFileUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutAssetInput | Prisma.WatermarkFileCreateOrConnectWithoutAssetInput[]
|
|
upsert?: Prisma.WatermarkFileUpsertWithWhereUniqueWithoutAssetInput | Prisma.WatermarkFileUpsertWithWhereUniqueWithoutAssetInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyAssetInputEnvelope
|
|
set?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
disconnect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
delete?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
update?: Prisma.WatermarkFileUpdateWithWhereUniqueWithoutAssetInput | Prisma.WatermarkFileUpdateWithWhereUniqueWithoutAssetInput[]
|
|
updateMany?: Prisma.WatermarkFileUpdateManyWithWhereWithoutAssetInput | Prisma.WatermarkFileUpdateManyWithWhereWithoutAssetInput[]
|
|
deleteMany?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateManyWithoutAssetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput> | Prisma.WatermarkFileCreateWithoutAssetInput[] | Prisma.WatermarkFileUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.WatermarkFileCreateOrConnectWithoutAssetInput | Prisma.WatermarkFileCreateOrConnectWithoutAssetInput[]
|
|
upsert?: Prisma.WatermarkFileUpsertWithWhereUniqueWithoutAssetInput | Prisma.WatermarkFileUpsertWithWhereUniqueWithoutAssetInput[]
|
|
createMany?: Prisma.WatermarkFileCreateManyAssetInputEnvelope
|
|
set?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
disconnect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
delete?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
connect?: Prisma.WatermarkFileWhereUniqueInput | Prisma.WatermarkFileWhereUniqueInput[]
|
|
update?: Prisma.WatermarkFileUpdateWithWhereUniqueWithoutAssetInput | Prisma.WatermarkFileUpdateWithWhereUniqueWithoutAssetInput[]
|
|
updateMany?: Prisma.WatermarkFileUpdateManyWithWhereWithoutAssetInput | Prisma.WatermarkFileUpdateManyWithWhereWithoutAssetInput[]
|
|
deleteMany?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
}
|
|
|
|
export type WatermarkFileCreateWithoutWatermarkConfigInput = {
|
|
id?: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
asset: Prisma.AssetCreateNestedOneWithoutWatermarkFilesInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedCreateWithoutWatermarkConfigInput = {
|
|
id?: string
|
|
assetId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateOrConnectWithoutWatermarkConfigInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput>
|
|
}
|
|
|
|
export type WatermarkFileCreateManyWatermarkConfigInputEnvelope = {
|
|
data: Prisma.WatermarkFileCreateManyWatermarkConfigInput | Prisma.WatermarkFileCreateManyWatermarkConfigInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type WatermarkFileUpsertWithWhereUniqueWithoutWatermarkConfigInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.WatermarkFileUpdateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedUpdateWithoutWatermarkConfigInput>
|
|
create: Prisma.XOR<Prisma.WatermarkFileCreateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedCreateWithoutWatermarkConfigInput>
|
|
}
|
|
|
|
export type WatermarkFileUpdateWithWhereUniqueWithoutWatermarkConfigInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateWithoutWatermarkConfigInput, Prisma.WatermarkFileUncheckedUpdateWithoutWatermarkConfigInput>
|
|
}
|
|
|
|
export type WatermarkFileUpdateManyWithWhereWithoutWatermarkConfigInput = {
|
|
where: Prisma.WatermarkFileScalarWhereInput
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateManyMutationInput, Prisma.WatermarkFileUncheckedUpdateManyWithoutWatermarkConfigInput>
|
|
}
|
|
|
|
export type WatermarkFileScalarWhereInput = {
|
|
AND?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
OR?: Prisma.WatermarkFileScalarWhereInput[]
|
|
NOT?: Prisma.WatermarkFileScalarWhereInput | Prisma.WatermarkFileScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
assetId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
watermarkConfigId?: Prisma.StringFilter<"WatermarkFile"> | string
|
|
media?: Prisma.JsonNullableFilter<"WatermarkFile">
|
|
status?: Prisma.EnumWatermarkFileStatusFilter<"WatermarkFile"> | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"WatermarkFile"> | Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateWithoutAssetInput = {
|
|
id?: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
watermarkConfig: Prisma.WatermarkConfigCreateNestedOneWithoutWatermarkFilesInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedCreateWithoutAssetInput = {
|
|
id?: string
|
|
watermarkConfigId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateOrConnectWithoutAssetInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput>
|
|
}
|
|
|
|
export type WatermarkFileCreateManyAssetInputEnvelope = {
|
|
data: Prisma.WatermarkFileCreateManyAssetInput | Prisma.WatermarkFileCreateManyAssetInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type WatermarkFileUpsertWithWhereUniqueWithoutAssetInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.WatermarkFileUpdateWithoutAssetInput, Prisma.WatermarkFileUncheckedUpdateWithoutAssetInput>
|
|
create: Prisma.XOR<Prisma.WatermarkFileCreateWithoutAssetInput, Prisma.WatermarkFileUncheckedCreateWithoutAssetInput>
|
|
}
|
|
|
|
export type WatermarkFileUpdateWithWhereUniqueWithoutAssetInput = {
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateWithoutAssetInput, Prisma.WatermarkFileUncheckedUpdateWithoutAssetInput>
|
|
}
|
|
|
|
export type WatermarkFileUpdateManyWithWhereWithoutAssetInput = {
|
|
where: Prisma.WatermarkFileScalarWhereInput
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateManyMutationInput, Prisma.WatermarkFileUncheckedUpdateManyWithoutAssetInput>
|
|
}
|
|
|
|
export type WatermarkFileCreateManyWatermarkConfigInput = {
|
|
id?: string
|
|
assetId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileUpdateWithoutWatermarkConfigInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
asset?: Prisma.AssetUpdateOneRequiredWithoutWatermarkFilesNestedInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateWithoutWatermarkConfigInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateManyWithoutWatermarkConfigInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileCreateManyAssetInput = {
|
|
id?: string
|
|
watermarkConfigId: string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: $Enums.WatermarkFileStatus
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type WatermarkFileUpdateWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
watermarkConfig?: Prisma.WatermarkConfigUpdateOneRequiredWithoutWatermarkFilesNestedInput
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
watermarkConfigId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type WatermarkFileUncheckedUpdateManyWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
watermarkConfigId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
media?:PrismaJson.MediaInfo | Prisma.NullableJsonNullValueInput
|
|
status?: Prisma.EnumWatermarkFileStatusFieldUpdateOperationsInput | $Enums.WatermarkFileStatus
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type WatermarkFileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
assetId?: boolean
|
|
watermarkConfigId?: boolean
|
|
media?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["watermarkFile"]>
|
|
|
|
export type WatermarkFileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
assetId?: boolean
|
|
watermarkConfigId?: boolean
|
|
media?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["watermarkFile"]>
|
|
|
|
export type WatermarkFileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
assetId?: boolean
|
|
watermarkConfigId?: boolean
|
|
media?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["watermarkFile"]>
|
|
|
|
export type WatermarkFileSelectScalar = {
|
|
id?: boolean
|
|
assetId?: boolean
|
|
watermarkConfigId?: boolean
|
|
media?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type WatermarkFileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "assetId" | "watermarkConfigId" | "media" | "status" | "createdAt" | "updatedAt", ExtArgs["result"]["watermarkFile"]>
|
|
export type WatermarkFileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}
|
|
export type WatermarkFileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}
|
|
export type WatermarkFileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
watermarkConfig?: boolean | Prisma.WatermarkConfigDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $WatermarkFilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "WatermarkFile"
|
|
objects: {
|
|
asset: Prisma.$AssetPayload<ExtArgs>
|
|
watermarkConfig: Prisma.$WatermarkConfigPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
assetId: string
|
|
watermarkConfigId: string
|
|
/**
|
|
* [MediaInfo]
|
|
*/
|
|
media:PrismaJson.MediaInfo | null
|
|
status: $Enums.WatermarkFileStatus
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["watermarkFile"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type WatermarkFileGetPayload<S extends boolean | null | undefined | WatermarkFileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload, S>
|
|
|
|
export type WatermarkFileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<WatermarkFileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: WatermarkFileCountAggregateInputType | true
|
|
}
|
|
|
|
export interface WatermarkFileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WatermarkFile'], meta: { name: 'WatermarkFile' } }
|
|
/**
|
|
* Find zero or one WatermarkFile that matches the filter.
|
|
* @param {WatermarkFileFindUniqueArgs} args - Arguments to find a WatermarkFile
|
|
* @example
|
|
* // Get one WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends WatermarkFileFindUniqueArgs>(args: Prisma.SelectSubset<T, WatermarkFileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one WatermarkFile that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {WatermarkFileFindUniqueOrThrowArgs} args - Arguments to find a WatermarkFile
|
|
* @example
|
|
* // Get one WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends WatermarkFileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WatermarkFileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WatermarkFile that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileFindFirstArgs} args - Arguments to find a WatermarkFile
|
|
* @example
|
|
* // Get one WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends WatermarkFileFindFirstArgs>(args?: Prisma.SelectSubset<T, WatermarkFileFindFirstArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first WatermarkFile that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileFindFirstOrThrowArgs} args - Arguments to find a WatermarkFile
|
|
* @example
|
|
* // Get one WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends WatermarkFileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WatermarkFileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more WatermarkFiles that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all WatermarkFiles
|
|
* const watermarkFiles = await prisma.watermarkFile.findMany()
|
|
*
|
|
* // Get first 10 WatermarkFiles
|
|
* const watermarkFiles = await prisma.watermarkFile.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const watermarkFileWithIdOnly = await prisma.watermarkFile.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends WatermarkFileFindManyArgs>(args?: Prisma.SelectSubset<T, WatermarkFileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a WatermarkFile.
|
|
* @param {WatermarkFileCreateArgs} args - Arguments to create a WatermarkFile.
|
|
* @example
|
|
* // Create one WatermarkFile
|
|
* const WatermarkFile = await prisma.watermarkFile.create({
|
|
* data: {
|
|
* // ... data to create a WatermarkFile
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends WatermarkFileCreateArgs>(args: Prisma.SelectSubset<T, WatermarkFileCreateArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many WatermarkFiles.
|
|
* @param {WatermarkFileCreateManyArgs} args - Arguments to create many WatermarkFiles.
|
|
* @example
|
|
* // Create many WatermarkFiles
|
|
* const watermarkFile = await prisma.watermarkFile.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends WatermarkFileCreateManyArgs>(args?: Prisma.SelectSubset<T, WatermarkFileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many WatermarkFiles and returns the data saved in the database.
|
|
* @param {WatermarkFileCreateManyAndReturnArgs} args - Arguments to create many WatermarkFiles.
|
|
* @example
|
|
* // Create many WatermarkFiles
|
|
* const watermarkFile = await prisma.watermarkFile.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many WatermarkFiles and only return the `id`
|
|
* const watermarkFileWithIdOnly = await prisma.watermarkFile.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends WatermarkFileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WatermarkFileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a WatermarkFile.
|
|
* @param {WatermarkFileDeleteArgs} args - Arguments to delete one WatermarkFile.
|
|
* @example
|
|
* // Delete one WatermarkFile
|
|
* const WatermarkFile = await prisma.watermarkFile.delete({
|
|
* where: {
|
|
* // ... filter to delete one WatermarkFile
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends WatermarkFileDeleteArgs>(args: Prisma.SelectSubset<T, WatermarkFileDeleteArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one WatermarkFile.
|
|
* @param {WatermarkFileUpdateArgs} args - Arguments to update one WatermarkFile.
|
|
* @example
|
|
* // Update one WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends WatermarkFileUpdateArgs>(args: Prisma.SelectSubset<T, WatermarkFileUpdateArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more WatermarkFiles.
|
|
* @param {WatermarkFileDeleteManyArgs} args - Arguments to filter WatermarkFiles to delete.
|
|
* @example
|
|
* // Delete a few WatermarkFiles
|
|
* const { count } = await prisma.watermarkFile.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends WatermarkFileDeleteManyArgs>(args?: Prisma.SelectSubset<T, WatermarkFileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WatermarkFiles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many WatermarkFiles
|
|
* const watermarkFile = await prisma.watermarkFile.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends WatermarkFileUpdateManyArgs>(args: Prisma.SelectSubset<T, WatermarkFileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more WatermarkFiles and returns the data updated in the database.
|
|
* @param {WatermarkFileUpdateManyAndReturnArgs} args - Arguments to update many WatermarkFiles.
|
|
* @example
|
|
* // Update many WatermarkFiles
|
|
* const watermarkFile = await prisma.watermarkFile.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more WatermarkFiles and only return the `id`
|
|
* const watermarkFileWithIdOnly = await prisma.watermarkFile.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends WatermarkFileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WatermarkFileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one WatermarkFile.
|
|
* @param {WatermarkFileUpsertArgs} args - Arguments to update or create a WatermarkFile.
|
|
* @example
|
|
* // Update or create a WatermarkFile
|
|
* const watermarkFile = await prisma.watermarkFile.upsert({
|
|
* create: {
|
|
* // ... data to create a WatermarkFile
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the WatermarkFile we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends WatermarkFileUpsertArgs>(args: Prisma.SelectSubset<T, WatermarkFileUpsertArgs<ExtArgs>>): Prisma.Prisma__WatermarkFileClient<runtime.Types.Result.GetResult<Prisma.$WatermarkFilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of WatermarkFiles.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileCountArgs} args - Arguments to filter WatermarkFiles to count.
|
|
* @example
|
|
* // Count the number of WatermarkFiles
|
|
* const count = await prisma.watermarkFile.count({
|
|
* where: {
|
|
* // ... the filter for the WatermarkFiles we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends WatermarkFileCountArgs>(
|
|
args?: Prisma.Subset<T, WatermarkFileCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], WatermarkFileCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a WatermarkFile.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends WatermarkFileAggregateArgs>(args: Prisma.Subset<T, WatermarkFileAggregateArgs>): Prisma.PrismaPromise<GetWatermarkFileAggregateType<T>>
|
|
|
|
/**
|
|
* Group by WatermarkFile.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {WatermarkFileGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends WatermarkFileGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: WatermarkFileGroupByArgs['orderBy'] }
|
|
: { orderBy?: WatermarkFileGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, WatermarkFileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWatermarkFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the WatermarkFile model
|
|
*/
|
|
readonly fields: WatermarkFileFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for WatermarkFile.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__WatermarkFileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
asset<T extends Prisma.AssetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetDefaultArgs<ExtArgs>>): Prisma.Prisma__AssetClient<runtime.Types.Result.GetResult<Prisma.$AssetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
watermarkConfig<T extends Prisma.WatermarkConfigDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WatermarkConfigDefaultArgs<ExtArgs>>): Prisma.Prisma__WatermarkConfigClient<runtime.Types.Result.GetResult<Prisma.$WatermarkConfigPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the WatermarkFile model
|
|
*/
|
|
export interface WatermarkFileFieldRefs {
|
|
readonly id: Prisma.FieldRef<"WatermarkFile", 'String'>
|
|
readonly assetId: Prisma.FieldRef<"WatermarkFile", 'String'>
|
|
readonly watermarkConfigId: Prisma.FieldRef<"WatermarkFile", 'String'>
|
|
readonly media: Prisma.FieldRef<"WatermarkFile", 'Json'>
|
|
readonly status: Prisma.FieldRef<"WatermarkFile", 'WatermarkFileStatus'>
|
|
readonly createdAt: Prisma.FieldRef<"WatermarkFile", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"WatermarkFile", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* WatermarkFile findUnique
|
|
*/
|
|
export type WatermarkFileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WatermarkFile to fetch.
|
|
*/
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile findUniqueOrThrow
|
|
*/
|
|
export type WatermarkFileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WatermarkFile to fetch.
|
|
*/
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile findFirst
|
|
*/
|
|
export type WatermarkFileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WatermarkFile to fetch.
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WatermarkFiles to fetch.
|
|
*/
|
|
orderBy?: Prisma.WatermarkFileOrderByWithRelationInput | Prisma.WatermarkFileOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WatermarkFiles.
|
|
*/
|
|
cursor?: Prisma.WatermarkFileWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WatermarkFiles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` WatermarkFiles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WatermarkFiles.
|
|
*/
|
|
distinct?: Prisma.WatermarkFileScalarFieldEnum | Prisma.WatermarkFileScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile findFirstOrThrow
|
|
*/
|
|
export type WatermarkFileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WatermarkFile to fetch.
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WatermarkFiles to fetch.
|
|
*/
|
|
orderBy?: Prisma.WatermarkFileOrderByWithRelationInput | Prisma.WatermarkFileOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for WatermarkFiles.
|
|
*/
|
|
cursor?: Prisma.WatermarkFileWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WatermarkFiles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` WatermarkFiles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WatermarkFiles.
|
|
*/
|
|
distinct?: Prisma.WatermarkFileScalarFieldEnum | Prisma.WatermarkFileScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile findMany
|
|
*/
|
|
export type WatermarkFileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which WatermarkFiles to fetch.
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of WatermarkFiles to fetch.
|
|
*/
|
|
orderBy?: Prisma.WatermarkFileOrderByWithRelationInput | Prisma.WatermarkFileOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing WatermarkFiles.
|
|
*/
|
|
cursor?: Prisma.WatermarkFileWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` WatermarkFiles from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` WatermarkFiles.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of WatermarkFiles.
|
|
*/
|
|
distinct?: Prisma.WatermarkFileScalarFieldEnum | Prisma.WatermarkFileScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile create
|
|
*/
|
|
export type WatermarkFileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a WatermarkFile.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WatermarkFileCreateInput, Prisma.WatermarkFileUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile createMany
|
|
*/
|
|
export type WatermarkFileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many WatermarkFiles.
|
|
*/
|
|
data: Prisma.WatermarkFileCreateManyInput | Prisma.WatermarkFileCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile createManyAndReturn
|
|
*/
|
|
export type WatermarkFileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many WatermarkFiles.
|
|
*/
|
|
data: Prisma.WatermarkFileCreateManyInput | Prisma.WatermarkFileCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile update
|
|
*/
|
|
export type WatermarkFileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a WatermarkFile.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateInput, Prisma.WatermarkFileUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which WatermarkFile to update.
|
|
*/
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile updateMany
|
|
*/
|
|
export type WatermarkFileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update WatermarkFiles.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateManyMutationInput, Prisma.WatermarkFileUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WatermarkFiles to update
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* Limit how many WatermarkFiles to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile updateManyAndReturn
|
|
*/
|
|
export type WatermarkFileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update WatermarkFiles.
|
|
*/
|
|
data: Prisma.XOR<Prisma.WatermarkFileUpdateManyMutationInput, Prisma.WatermarkFileUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which WatermarkFiles to update
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* Limit how many WatermarkFiles to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile upsert
|
|
*/
|
|
export type WatermarkFileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the WatermarkFile to update in case it exists.
|
|
*/
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
/**
|
|
* In case the WatermarkFile found by the `where` argument doesn't exist, create a new WatermarkFile with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.WatermarkFileCreateInput, Prisma.WatermarkFileUncheckedCreateInput>
|
|
/**
|
|
* In case the WatermarkFile was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.WatermarkFileUpdateInput, Prisma.WatermarkFileUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile delete
|
|
*/
|
|
export type WatermarkFileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which WatermarkFile to delete.
|
|
*/
|
|
where: Prisma.WatermarkFileWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile deleteMany
|
|
*/
|
|
export type WatermarkFileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which WatermarkFiles to delete
|
|
*/
|
|
where?: Prisma.WatermarkFileWhereInput
|
|
/**
|
|
* Limit how many WatermarkFiles to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* WatermarkFile without action
|
|
*/
|
|
export type WatermarkFileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WatermarkFile
|
|
*/
|
|
select?: Prisma.WatermarkFileSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WatermarkFile
|
|
*/
|
|
omit?: Prisma.WatermarkFileOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WatermarkFileInclude<ExtArgs> | null
|
|
}
|