fix: fixed attribute creating

This commit is contained in:
2025-11-01 23:17:43 +04:00
parent 95cc7f6259
commit e8ffafa6c5
2 changed files with 6 additions and 6 deletions

View File

@ -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
*/ */

View File

@ -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,