Add new properties to event theme schemas and types
Introduce `background_image_url`, `foreground_image_url`, `asset_image_urls`, and `is_active` properties to the `EventTheme` schemas and types. These additions enhance flexibility and allow better customization of event themes. Default value for `is_active` ensures consistent behavior.
This commit is contained in:
@@ -553,6 +553,28 @@ export const EventThemeCreateSchema = {
|
|||||||
],
|
],
|
||||||
title: "Preview Image Url",
|
title: "Preview Image Url",
|
||||||
},
|
},
|
||||||
|
background_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Background Image Url",
|
||||||
|
},
|
||||||
|
foreground_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Foreground Image Url",
|
||||||
|
},
|
||||||
color_palette: {
|
color_palette: {
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@@ -561,6 +583,20 @@ export const EventThemeCreateSchema = {
|
|||||||
minProperties: 1,
|
minProperties: 1,
|
||||||
title: "Color Palette",
|
title: "Color Palette",
|
||||||
},
|
},
|
||||||
|
asset_image_urls: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
additionalProperties: {
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
type: "object",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Asset Image Urls",
|
||||||
|
},
|
||||||
fonts: {
|
fonts: {
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@@ -569,6 +605,11 @@ export const EventThemeCreateSchema = {
|
|||||||
minProperties: 1,
|
minProperties: 1,
|
||||||
title: "Fonts",
|
title: "Fonts",
|
||||||
},
|
},
|
||||||
|
is_active: {
|
||||||
|
type: "boolean",
|
||||||
|
title: "Is Active",
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
type: "object",
|
type: "object",
|
||||||
required: ["name", "color_palette", "fonts"],
|
required: ["name", "color_palette", "fonts"],
|
||||||
@@ -604,6 +645,28 @@ export const EventThemeResponseSchema = {
|
|||||||
],
|
],
|
||||||
title: "Preview Image Url",
|
title: "Preview Image Url",
|
||||||
},
|
},
|
||||||
|
background_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Background Image Url",
|
||||||
|
},
|
||||||
|
foreground_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Foreground Image Url",
|
||||||
|
},
|
||||||
color_palette: {
|
color_palette: {
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@@ -612,6 +675,20 @@ export const EventThemeResponseSchema = {
|
|||||||
minProperties: 1,
|
minProperties: 1,
|
||||||
title: "Color Palette",
|
title: "Color Palette",
|
||||||
},
|
},
|
||||||
|
asset_image_urls: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
additionalProperties: {
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
type: "object",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Asset Image Urls",
|
||||||
|
},
|
||||||
fonts: {
|
fonts: {
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@@ -620,6 +697,11 @@ export const EventThemeResponseSchema = {
|
|||||||
minProperties: 1,
|
minProperties: 1,
|
||||||
title: "Fonts",
|
title: "Fonts",
|
||||||
},
|
},
|
||||||
|
is_active: {
|
||||||
|
type: "boolean",
|
||||||
|
title: "Is Active",
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
id: {
|
id: {
|
||||||
type: "string",
|
type: "string",
|
||||||
format: "uuid",
|
format: "uuid",
|
||||||
@@ -666,6 +748,28 @@ export const EventThemeUpdateSchema = {
|
|||||||
],
|
],
|
||||||
title: "Preview Image Url",
|
title: "Preview Image Url",
|
||||||
},
|
},
|
||||||
|
background_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Background Image Url",
|
||||||
|
},
|
||||||
|
foreground_image_url: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Foreground Image Url",
|
||||||
|
},
|
||||||
color_palette: {
|
color_palette: {
|
||||||
anyOf: [
|
anyOf: [
|
||||||
{
|
{
|
||||||
@@ -680,6 +784,20 @@ export const EventThemeUpdateSchema = {
|
|||||||
],
|
],
|
||||||
title: "Color Palette",
|
title: "Color Palette",
|
||||||
},
|
},
|
||||||
|
asset_image_urls: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
additionalProperties: {
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
|
type: "object",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
title: "Asset Image Urls",
|
||||||
|
},
|
||||||
fonts: {
|
fonts: {
|
||||||
anyOf: [
|
anyOf: [
|
||||||
{
|
{
|
||||||
@@ -694,6 +812,11 @@ export const EventThemeUpdateSchema = {
|
|||||||
],
|
],
|
||||||
title: "Fonts",
|
title: "Fonts",
|
||||||
},
|
},
|
||||||
|
is_active: {
|
||||||
|
type: "boolean",
|
||||||
|
title: "Is Active",
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
type: "object",
|
type: "object",
|
||||||
title: "EventThemeUpdate",
|
title: "EventThemeUpdate",
|
||||||
|
|||||||
@@ -82,24 +82,36 @@ export type EventThemeCreate = {
|
|||||||
name: string;
|
name: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
preview_image_url?: string | null;
|
preview_image_url?: string | null;
|
||||||
|
background_image_url?: string | null;
|
||||||
|
foreground_image_url?: string | null;
|
||||||
color_palette: {
|
color_palette: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
asset_image_urls?: {
|
||||||
|
[key: string]: string;
|
||||||
|
} | null;
|
||||||
fonts: {
|
fonts: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
is_active?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EventThemeResponse = {
|
export type EventThemeResponse = {
|
||||||
name: string;
|
name: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
preview_image_url?: string | null;
|
preview_image_url?: string | null;
|
||||||
|
background_image_url?: string | null;
|
||||||
|
foreground_image_url?: string | null;
|
||||||
color_palette: {
|
color_palette: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
asset_image_urls?: {
|
||||||
|
[key: string]: string;
|
||||||
|
} | null;
|
||||||
fonts: {
|
fonts: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
is_active?: boolean;
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -107,12 +119,18 @@ export type EventThemeUpdate = {
|
|||||||
name?: string | null;
|
name?: string | null;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
preview_image_url?: string | null;
|
preview_image_url?: string | null;
|
||||||
|
background_image_url?: string | null;
|
||||||
|
foreground_image_url?: string | null;
|
||||||
color_palette?: {
|
color_palette?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
} | null;
|
} | null;
|
||||||
|
asset_image_urls?: {
|
||||||
|
[key: string]: string;
|
||||||
|
} | null;
|
||||||
fonts?: {
|
fonts?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
} | null;
|
} | null;
|
||||||
|
is_active?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EventUpdate = {
|
export type EventUpdate = {
|
||||||
|
|||||||
Reference in New Issue
Block a user