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