feat : update
This commit is contained in:
@@ -39,12 +39,14 @@ export const updateGuideSchema = z.strictObject({
|
||||
posterArtMediaId: z.string().uuid().nullable().optional(),
|
||||
posterArtOffsetX: z.number().finite().min(-50).max(50).optional(),
|
||||
posterArtOffsetY: z.number().finite().min(-50).max(50).optional(),
|
||||
posterArtScale: z.number().finite().min(50).max(200).optional(),
|
||||
posterTopColors: z.tuple([z.string().regex(/^#[0-9a-fA-F]{6}$/u), z.string().regex(/^#[0-9a-fA-F]{6}$/u)]).optional(),
|
||||
posterBottomColors: z.tuple([z.string().regex(/^#[0-9a-fA-F]{6}$/u), z.string().regex(/^#[0-9a-fA-F]{6}$/u)]).optional(),
|
||||
posterBleeding: z.array(z.strictObject({
|
||||
mediaId: z.string().uuid(),
|
||||
amount: z.number().finite().min(0).max(100),
|
||||
scale: z.number().finite().min(25).max(300),
|
||||
blendMode: z.enum(["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"]),
|
||||
})).max(30).optional(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user