# Variable widgetsStateSchema`Const`

widgetsStateSchema: ZodObject<
{
currentEditableIndex: ZodNumber;
currentEditableWidgetId: ZodUnion<[ZodString, ZodUndefined]>;
editableMap: ZodRecord<
ZodString,
ZodObject<
{ index: ZodNumber; uniqid: ZodString },
"strip",
ZodTypeAny,
{ index: number; uniqid: string },
{ index: number; uniqid: string },
>,
>;
flushedWidgets: ZodArray<ZodString, "many">;
ids: ZodRecord<
ZodString,
ZodObject<
ZodShape<WidgetWrapperGeneric<CombinedWidgetType>>,
"strip",
ZodTypeAny,
WidgetWrapperGeneric<CombinedWidgetType>,
WidgetWrapperGeneric<CombinedWidgetType>,
>,
>;
layers: ZodRecord<
ZodString,
ZodObject<
ZodShape<WidgetLayer>,
"strip",
ZodTypeAny,
WidgetLayer,
WidgetLayer,
>,
>;
modal: ZodUnion<
[
ZodObject<
ZodShape<WidgetModalProps>,
"strip",
ZodTypeAny,
WidgetModalProps,
WidgetModalProps,
>,
ZodUndefined,
],
>;
rtObjectStack: ZodArray<
ZodObject<
ZodShape<WidgetRtObject>,
"strip",
ZodTypeAny,
WidgetRtObject,
WidgetRtObject,
>,
"many",
>;
states: ZodRecord<
ZodString,
ZodObject<
ZodShape<WidgetStateProps>,
"strip",
ZodTypeAny,
WidgetStateProps,
WidgetStateProps,
>,
>;
token: ZodOptional<ZodUnion<[ZodString, ZodUndefined]>>;
widgetAuthor: ZodRecord<
ZodString,
ZodObject<
{
_url: ZodOptional<ZodString>;
dateCreation: ZodOptional<ZodString>;
dateModified: ZodOptional<ZodString>;
id: ZodOptional<ZodType<number, ZodTypeDef, number>>;
level: ZodOptional<
ZodNativeEnum<{ ADMIN: 9; EXTERNAL: 3; GUEST: 0; USER: 5 }>,
>;
mainType: ZodOptional<ZodType<string, ZodTypeDef, string>>;
title: ZodOptional<ZodString>;
type: ZodOptional<ZodType<string, ZodTypeDef, string>>;
uri: ZodOptional<ZodType<string, ZodTypeDef, string>>;
variant: ZodOptional<
ZodOptional<ZodNativeEnum<{ EXTRABOT: "extraBot" }>>,
>;
},
"strip",
ZodTypeAny,
{
_url?: string;
dateCreation?: string;
dateModified?: string;
id?: number;
level?: 0
| 3
| 5
| 9;
mainType?: string;
title?: string;
type?: string;
uri?: string;
variant?: "extraBot";
},
{
_url?: string;
dateCreation?: string;
dateModified?: string;
id?: number;
level?: 0
| 3
| 5
| 9;
mainType?: string;
title?: string;
type?: string;
uri?: string;
variant?: "extraBot";
},
>,
>;
widgetChipCount: ZodRecord<ZodString, ZodNumber>;
widgetContext: ZodRecord<
ZodString,
ZodEnum<["comment", "article", "intranet", "platform-block"]>,
>;
widgetObject: ZodRecord<
ZodString,
ZodObject<
{
_url: ZodOptional<ZodString>;
dateCreation: ZodOptional<
ZodOptionalType<
ZodType<string | undefined, ZodTypeDef, string | undefined>,
>,
>;
dateModified: ZodOptional<
ZodOptionalType<
ZodType<
string
| null
| undefined,
ZodTypeDef,
string | null | undefined,
>,
>,
>;
id: ZodOptional<ZodType<number, ZodTypeDef, number>>;
mainType: ZodOptional<ZodType<string, ZodTypeDef, string>>;
title: ZodOptional<ZodString>;
type: ZodOptional<ZodType<string, ZodTypeDef, string>>;
uri: ZodOptional<ZodType<string, ZodTypeDef, string>>;
},
"strip",
ZodTypeAny,
{
_url?: string;
dateCreation?: string;
dateModified?: string
| null;
id?: number;
mainType?: string;
title?: string;
type?: string;
uri?: string;
},
{
_url?: string;
dateCreation?: string;
dateModified?: string
| null;
id?: number;
mainType?: string;
title?: string;
type?: string;
uri?: string;
},
>,
>;
widgetObjectRights: ZodRecord<
ZodString,
ZodObject<ZodShape<Rights>, "strip", ZodTypeAny, Rights, Rights>,
>;
widgetSynchronizationStates: ZodRecord<ZodString, ZodBoolean>;
widgetTitleStyle: ZodRecord<
ZodString,
ZodRecord<ZodString, ZodUnion<[ZodString, ZodNumber]>>,
>;
widgetUrls: ZodRecord<ZodString, ZodString>;
widgetWrapperBackgroundImage: ZodRecord<
ZodString,
ZodObject<
ZodShape<WidgetSelectionBackgroundProps>,
"strip",
ZodTypeAny,
WidgetSelectionBackgroundProps,
WidgetSelectionBackgroundProps,
>,
>;
widgetWrapperStyle: ZodRecord<
ZodString,
ZodRecord<ZodString, ZodUnion<[ZodString, ZodNumber]>>,
>;
},
"strip",
ZodTypeAny,
WidgetsState,
WidgetsState,
> = ...

- Defined in jamespot-user-api/src/types/widgets.ts:231