From 88a2ca970654c3b7a33a2d6f1bd25f6566831b28 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 9 Jan 2025 01:06:38 +0100 Subject: [PATCH] Added support to useAutomaticColor --- src/schemas/index.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/schemas/index.ts b/src/schemas/index.ts index 6fc56ba..2e68c3d 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -274,6 +274,18 @@ export interface PassProps { * for it. */ footerBackgroundColor?: string; + + /** + * New field for iOS 18 Event Ticket. + * Enables the automatic calculation of the + * `foregroundColor` and `labelColor` based + * on the background image in the new event + * ticket passes. + * + * If enabled, `foregroundColor` and `labelColor` + * are ignored. + */ + useAutomaticColor?: boolean; } /** @@ -503,6 +515,18 @@ export const OverridablePassProps = Joi.object({ * for it. */ footerBackgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX), + + /** + * New field for iOS 18 Event Ticket. + * Enables the automatic calculation of the + * `foregroundColor` and `labelColor` based + * on the background image in the new event + * ticket passes. + * + * If enabled, `foregroundColor` and `labelColor` + * are ignored. + */ + useAutomaticColor: Joi.boolean(), }).with("webServiceURL", "authenticationToken"); export const PassProps = Joi.object<