fix: fixed attribute creating
This commit is contained in:
@ -91,7 +91,7 @@ export type AttributeSchema = {
|
|||||||
/**
|
/**
|
||||||
* Selectid
|
* Selectid
|
||||||
*/
|
*/
|
||||||
selectId: number | null;
|
selectId?: number | null;
|
||||||
/**
|
/**
|
||||||
* Id
|
* Id
|
||||||
*/
|
*/
|
||||||
@ -370,7 +370,7 @@ export type CreateAttributeSchema = {
|
|||||||
/**
|
/**
|
||||||
* Selectid
|
* Selectid
|
||||||
*/
|
*/
|
||||||
selectId: number | null;
|
selectId?: number | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1886,7 +1886,7 @@ export type ModuleAttributeSchema = {
|
|||||||
/**
|
/**
|
||||||
* Selectid
|
* Selectid
|
||||||
*/
|
*/
|
||||||
selectId: number | null;
|
selectId?: number | null;
|
||||||
/**
|
/**
|
||||||
* Id
|
* Id
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -62,7 +62,7 @@ export const zAttributeSchema = z.object({
|
|||||||
defaultValue: z.union([z.unknown(), z.null()]),
|
defaultValue: z.union([z.unknown(), z.null()]),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
typeId: z.int(),
|
typeId: z.int(),
|
||||||
selectId: z.union([z.int(), z.null()]),
|
selectId: z.optional(z.union([z.int(), z.null()])),
|
||||||
id: z.int(),
|
id: z.int(),
|
||||||
isBuiltIn: z.boolean(),
|
isBuiltIn: z.boolean(),
|
||||||
type: zAttributeTypeSchema,
|
type: zAttributeTypeSchema,
|
||||||
@ -172,7 +172,7 @@ export const zCreateAttributeSchema = z.object({
|
|||||||
defaultValue: z.union([z.unknown(), z.null()]),
|
defaultValue: z.union([z.unknown(), z.null()]),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
typeId: z.int(),
|
typeId: z.int(),
|
||||||
selectId: z.union([z.int(), z.null()]),
|
selectId: z.optional(z.union([z.int(), z.null()])),
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1071,7 +1071,7 @@ export const zModuleAttributeSchema = z.object({
|
|||||||
defaultValue: z.union([z.unknown(), z.null()]),
|
defaultValue: z.union([z.unknown(), z.null()]),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
typeId: z.int(),
|
typeId: z.int(),
|
||||||
selectId: z.union([z.int(), z.null()]),
|
selectId: z.optional(z.union([z.int(), z.null()])),
|
||||||
id: z.int(),
|
id: z.int(),
|
||||||
isBuiltIn: z.boolean(),
|
isBuiltIn: z.boolean(),
|
||||||
type: zAttributeTypeSchema,
|
type: zAttributeTypeSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user