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

View File

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