/** * 物品相关数据验证模式 */ import { z } from 'zod'; /** * 物品ID验证 */ export declare const ItemIdSchema: z.ZodString; /** * 物品数量验证 */ export declare const ItemQuantitySchema: z.ZodNumber; /** * 物品品质验证 */ export declare const ItemQualitySchema: z.ZodEnum<["common", "uncommon", "rare", "epic", "legendary"]>; /** * 物品类型验证 */ export declare const ItemTypeSchema: z.ZodEnum<["weapon", "armor", "consumable", "material", "quest", "misc"]>; /** * 装备槽位验证 */ export declare const EquipmentSlotSchema: z.ZodEnum<["head", "chest", "legs", "feet", "hands", "main_hand", "off_hand", "ring", "necklace", "trinket"]>; /** * 物品元数据验证 */ export declare const ItemMetadataSchema: z.ZodOptional>; /** * 添加物品到背包参数验证 */ export declare const AddItemSchema: z.ZodObject<{ player_name: z.ZodString; item_id: z.ZodString; quantity: z.ZodNumber; quality: z.ZodOptional>; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { player_name: string; item_id: string; quantity: number; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }, { player_name: string; item_id: string; quantity: number; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }>; /** * 移除物品参数验证 */ export declare const RemoveItemSchema: z.ZodObject<{ player_name: z.ZodString; item_id: z.ZodString; quantity: z.ZodNumber; quality: z.ZodOptional>; }, "strip", z.ZodTypeAny, { player_name: string; item_id: string; quantity: number; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; }, { player_name: string; item_id: string; quantity: number; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; }>; /** * 装备物品参数验证 */ export declare const EquipItemSchema: z.ZodObject<{ player_name: z.ZodString; item_id: z.ZodString; slot: z.ZodEnum<["head", "chest", "legs", "feet", "hands", "main_hand", "off_hand", "ring", "necklace", "trinket"]>; }, "strip", z.ZodTypeAny, { player_name: string; item_id: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; }, { player_name: string; item_id: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; }>; /** * 卸下装备参数验证 */ export declare const UnequipItemSchema: z.ZodObject<{ player_name: z.ZodString; slot: z.ZodEnum<["head", "chest", "legs", "feet", "hands", "main_hand", "off_hand", "ring", "necklace", "trinket"]>; }, "strip", z.ZodTypeAny, { player_name: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; }, { player_name: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; }>; /** * 背包物品数据验证 */ export declare const InventoryItemSchema: z.ZodObject<{ id: z.ZodNumber; player_id: z.ZodNumber; item_id: z.ZodString; quantity: z.ZodNumber; quality: z.ZodOptional>; metadata: z.ZodOptional>; created_at: z.ZodDate; updated_at: z.ZodDate; }, "strip", z.ZodTypeAny, { id: number; item_id: string; quantity: number; player_id: number; created_at: Date; updated_at: Date; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }, { id: number; item_id: string; quantity: number; player_id: number; created_at: Date; updated_at: Date; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }>; /** * 装备数据验证 */ export declare const EquipmentSchema: z.ZodObject<{ id: z.ZodNumber; player_id: z.ZodNumber; slot: z.ZodEnum<["head", "chest", "legs", "feet", "hands", "main_hand", "off_hand", "ring", "necklace", "trinket"]>; item_id: z.ZodString; quality: z.ZodOptional>; metadata: z.ZodOptional>; equipped_at: z.ZodDate; }, "strip", z.ZodTypeAny, { id: number; item_id: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; player_id: number; equipped_at: Date; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }, { id: number; item_id: string; slot: "head" | "chest" | "legs" | "feet" | "hands" | "main_hand" | "off_hand" | "ring" | "necklace" | "trinket"; player_id: number; equipped_at: Date; quality?: "legendary" | "common" | "uncommon" | "rare" | "epic" | undefined; metadata?: Record | undefined; }>; /** * 类型导出 */ export type ItemId = z.infer; export type ItemQuantity = z.infer; export type ItemQuality = z.infer; export type ItemType = z.infer; export type EquipmentSlot = z.infer; export type ItemMetadata = z.infer; export type AddItemInput = z.infer; export type RemoveItemInput = z.infer; export type EquipItemInput = z.infer; export type UnequipItemInput = z.infer; export type InventoryItem = z.infer; export type Equipment = z.infer; //# sourceMappingURL=item.d.ts.map