UNPKG

dnf-api

Version:
150 lines (131 loc) 3.32 kB
import type * as Static from "../util/static"; import type { INameValue } from "./"; export enum ItemDetailKind { Material = "material", Equip = "equip", } /** 아이템 인터페이스 */ export interface IItem { itemId: string; itemName: string; itemRarity: Static.Rarity; itemType: string; itemTypeDetail: string; itemAvailableLevel: number; } /** 아이템 상세 인터페이스(합성 타입) */ export type IDetail = IMaterialDetail | IEquipDetail; /** 재료 아이템 상세 인터페이스 */ export interface IMaterialDetail { kind: ItemDetailKind.Material; itemId: string; itemName: string; itemRarity: string; itemTypeId: string; itemType: string; itemTypeDetailId: string; itemTypeDetail: string; itemAvailableLevel: number; itemExplain: string; itemExplainDetail: string; itemFlavorText: string; fame: number; setItemId: string | null; setItemName: string | null; obtainInfo: IObtainInfo; } /** 장비 아이템 상세 인터페이스 */ export interface IEquipDetail { kind: ItemDetailKind.Equip; itemId: string; itemName: string; itemRarity: string; itemTypeId: string; itemType: string; itemTypeDetailId: string; itemTypeDetail: string; itemAvailableLevel: number; itemExplain: string; itemExplainDetail: string; itemFlavorText: string; fame: number; setItemId: string | null; setItemName: string | null; itemStatus: INameValue[]; tune: ITune; itemBuff: IItemBuff; hashtag: string[]; obtainInfo: IObtainInfoDetail; } /** 정보 인터페이스 */ export interface ITune { level: number; setPoint: number; } /** 아이템 버프 인터페이스 */ export interface IItemBuff { explain: string; explainDetail: string; reinforceSkill: any[]; status: any | null; } /** 획득 정보 인터페이스 */ export interface IObtainInfo { dungeon: string | null; shop: IShopInfo[]; } /** 획득 상세 정보 인터페이스 */ export interface IObtainInfoDetail { dungeon: IDungeon[]; shop: IShopDetail[]; } /** 던전 정보 인터페이스 */ export interface IDungeon { type: string; rows: IDungeonRow[]; } /** 던전 인터페이스 */ export interface IDungeonRow { name: string; } /** 상점 정보 인터페이스 */ export interface IShopInfo { type: string; } /** 상점 상세 정보 인터페이스 */ export interface IShopDetail { rows: IShopRow[]; } /** 상점 인터페이스 */ export interface IShopRow { name: string; details: string[]; } /** 아이템 상점 판매 정보 인터페이스 */ export interface IShop { itemId: string; itemName: string; itemRarity: string; itemTypeId: string; itemType: string; itemTypeDetailId: string; itemTypeDetail: string; shopInfo: IShopSaleInfo[]; } /** 상점 판매 상세 정보 인터페이스 */ export interface IShopSaleInfo { shopName: string; npcName: string; cost: IShopCost[]; } /** 상점 비용 인터페이스 */ export interface IShopCost { type: string; itemId?: string; itemName?: string; value: number; } /** 아이템 해시태그 목록 인터페이스 */ export interface IHashtag { hashtag: string[]; }