dnf-api 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ import type * as Model from "../model";
2
+ import { type Params } from "../util";
3
+ /**
4
+ * 경매장에 등록된 아이템을 "아이템 이름"을 기준으로 받아옵니다
5
+ *
6
+ * @param {string} itemName 검색할 아이템의 이름입니다.
7
+ * @param {object} params 선택적 요청변수의 Object입니다.
8
+ */
9
+ export declare const itemName: (itemName: string, params?: Params.IAuction) => Promise<Model.DnfResponse<Model.Rows<Model.Auction>>>;
10
+ /**
11
+ * 경매장에 등록된 아이템을 "아이템 아이디"을 기준으로 받아옵니다
12
+ *
13
+ * @param {string} itemID 검색할 아이템의 ID입니다.
14
+ * @param {object} params 선택적 요청변수의 Object입니다.
15
+ */
16
+ export declare const itemId: (itemId: string, params?: Params.IAuction) => Promise<Model.DnfResponse<Model.Rows<Model.Auction>>>;
17
+ /**
18
+ * 경매장에 등록된 경매장번호로 받아옵니다.
19
+ *
20
+ * @param {Number} auctionNo 검색할 경매장 번호입니다.
21
+ */
22
+ export declare const no: (auctionNo: number) => Promise<Model.DnfResponse<Model.Auction>>;
23
+ export declare const auctionSoldName: (itemName: string, params?: Params.IActionSoldOption) => Promise<Model.DnfResponse<Model.Rows<Model.AuctionSolid>>>;
24
+ export declare const auctionSoldId: (itemId: string, params?: Params.IActionSoldOption) => Promise<Model.DnfResponse<Model.Rows<Model.AuctionSolid>>>;
@@ -0,0 +1,32 @@
1
+ import type * as Model from "../model";
2
+ import { type Params, Static } from "../util";
3
+ /**
4
+ * 서버 이름과 캐릭터 닉네임을 입력하여 해당 캐릭터를 검색합니다.
5
+ *
6
+ * @param {Static.Server} [serverId=""] 캐릭터가 존재하는 서버의 이름입니다.
7
+ * @param {string} [characterName=""] 검색할 캐릭터의 이름입니다.
8
+ * @param {object} [params={}] 선택적 요청변수의 Object입니다.
9
+ */
10
+ export declare const characterName: (serverId: Static.Server, characterName: string, params?: Params.ICharParams) => Promise<Model.DnfResponse<Model.Rows<Model.Char.Character>>>;
11
+ /**
12
+ * 캐릭터 ID를 입력하여 해당 캐릭터 정보를 받아옵니다
13
+ *
14
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
15
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
16
+ */
17
+ export declare const characterId: (serverId: Static.Server, characterId: string) => Promise<Model.DnfResponse<Model.Char.Info>>;
18
+ /**
19
+ * 캐릭터 ID를 입력하여 해당 캐릭터의 타임라인 정보를 검색합니다.
20
+ *
21
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
22
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
23
+ * @param {object} params 선택적 요청변수의 Object입니다.
24
+ */
25
+ export declare const timeline: (serverId: Static.Server, characterId: string, params?: Params.ITimeLine) => Promise<Model.DnfResponse<Model.Char.Timeline>>;
26
+ /**
27
+ * 캐릭터 ID를 입력하여 해당 캐릭터의 능력치 정보를 검색합니다.
28
+ *
29
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
30
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
31
+ */
32
+ export declare const status: (serverId: Static.Server, characterId: string) => Promise<Model.DnfResponse<Model.Char.CharacterStatus>>;
@@ -0,0 +1,29 @@
1
+ import { Static } from "../util";
2
+ /**
3
+ * 해당 캐릭터가 장착한 장비 정보를 받아옵니다.
4
+ *
5
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
6
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
7
+ */
8
+ export declare const equipment: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
9
+ /**
10
+ * 해당 캐릭터가 장착한 아바타 정보를 받아옵니다.
11
+ *
12
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
13
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
14
+ */
15
+ export declare const avatar: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
16
+ /**
17
+ * 해당 캐릭터가 장착한 크리쳐 정보를 받아옵니다.
18
+ *
19
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
20
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
21
+ */
22
+ export declare const creature: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
23
+ /**
24
+ * 해당 캐릭터가 장착한 휘장 정보를 받아옵니다.
25
+ *
26
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
27
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
28
+ */
29
+ export declare const flag: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
@@ -0,0 +1,29 @@
1
+ import { Static } from "../util";
2
+ /**
3
+ * 아이템 및 장비를 통한 스킬 강화 제외 입니다.
4
+ *
5
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
6
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
7
+ */
8
+ export declare const style: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
9
+ /**
10
+ * 캐릭터 '버프 스킬 강화 장착 장비'(스위칭) 를 조회합니다.
11
+ *
12
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
13
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
14
+ */
15
+ export declare const equipment: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
16
+ /**
17
+ * 캐릭터 '버프 스킬 강화 장착 아바타'(스위칭) 를 조회합니다.
18
+ *
19
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
20
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
21
+ */
22
+ export declare const avatar: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
23
+ /**
24
+ * 캐릭터 '버프 스킬 강화 장착 크리쳐'(스위칭) 를 조회합니다.
25
+ *
26
+ * @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
27
+ * @param {string} characterId 검색할 캐릭터의 ID입니다.
28
+ */
29
+ export declare const creature: (serverId: Static.Server, characterId: string) => Promise<import("../model").DnfResponse<unknown>>;
@@ -0,0 +1,8 @@
1
+ import * as Action from "./auction";
2
+ import * as Characters from "./characters";
3
+ import * as Equip from "./characters.equip";
4
+ import * as Skill from "./characters.skill";
5
+ import * as Item from "./items";
6
+ import * as Server from "./server";
7
+ import * as SetItem from "./setitems";
8
+ export { Action, Equip, Skill, Characters, Item, SetItem, Server };
@@ -0,0 +1,21 @@
1
+ import type * as Model from "../model";
2
+ import { type Params } from "../util";
3
+ /**
4
+ * 현재 인게임에서 획득 가능한 아이템의 경우만 검색 가능합니다.
5
+ *
6
+ * @param {string} itemName 검색할 아이템의 명칭
7
+ * @param {string} params 선택적 요청변수의 Object입니다.
8
+ */
9
+ export declare const item: (itemName: string, params?: Params.IItem) => Promise<Model.DnfResponse<Model.Rows<Model.Item.Item>>>;
10
+ /**
11
+ * 해당하는 아이템의 상세정보를 요청합니다.
12
+ *
13
+ * @param {string} itemId 검색할 아이템의 ID
14
+ */
15
+ export declare const detail: (itemId: string) => Promise<Model.DnfResponse<Model.Item.Detail>>;
16
+ /**
17
+ * 26. 아이템 상점 판매 정보 조회
18
+ * 인게임 백과사전 기준의 상점 판매 95레벨 에픽, 100레벨 이상 유니크, 레전더리, 에픽 장비가 조회 가능 합니다.
19
+ *
20
+ * @param {string} itemId 검색할 아이템의 ID
21
+ */
@@ -0,0 +1,2 @@
1
+ import type * as Model from "../model";
2
+ export declare const List: () => Promise<Model.DnfResponse<Model.Server[]>>;
@@ -0,0 +1,15 @@
1
+ import type * as Model from "../model";
2
+ import { type Params } from "../util";
3
+ /**
4
+ * 세트 아이템 정보를 세트의 이름으로 검색합니다.
5
+ *
6
+ * @param {string} setItemName 세트 아이템의 이름입니다.
7
+ * @param {object} params 선택적 요청변수의 Object입니다.
8
+ */
9
+ export declare const setitem: (setItemName: string, params?: Params.ISetItem) => Promise<Model.DnfResponse<Model.SetItem.SetItem[]>>;
10
+ /**
11
+ * 세트 ID로 세트 아이템 정보를 받아옵니다.
12
+ *
13
+ * @param {string} setItemId 세트 아이템의 ID입니다.
14
+ */
15
+ export declare const detail: (setItemId: string) => Promise<Model.DnfResponse<Model.SetItem.Detail>>;
@@ -0,0 +1,14 @@
1
+ import * as Request from "./api";
2
+ import * as Model from "./model/index";
3
+ import * as Util from "./util";
4
+ import Config from "./util/config";
5
+ import * as Params from "./util/params";
6
+ import * as Query from "./util/query";
7
+ import * as Static from "./util/static";
8
+ export default class DnfApi {
9
+ static Util: typeof Util;
10
+ static Request: typeof Request;
11
+ }
12
+ declare const ServerNames: typeof Util.Static.Server;
13
+ declare const RarityNames: typeof Util.Static.Rarity;
14
+ export { Request as Api, Request, Config, Static, ServerNames, RarityNames, Query, Params, Model, };
@@ -0,0 +1,84 @@
1
+ import type { Static } from "../util";
2
+ import type { NameValue } from "./";
3
+ export type Character = {
4
+ serverId: Static.Server;
5
+ characterId: string;
6
+ characterName: string;
7
+ level: number;
8
+ jobId: string;
9
+ jobGrowId: string;
10
+ jobName: string;
11
+ jobGrowName: string;
12
+ fame: number;
13
+ };
14
+ export type Info = {
15
+ serverId: Static.Server;
16
+ characterId: string;
17
+ characterName: string;
18
+ level: number;
19
+ jobId: string;
20
+ jobGrowId: string;
21
+ jobName: string;
22
+ jobGrowName: string;
23
+ fame: number;
24
+ adventureName: string;
25
+ guildId: string | null;
26
+ guildName: string | null;
27
+ };
28
+ export type Timeline = {
29
+ serverId: Static.Server;
30
+ characterId: string;
31
+ characterName: string;
32
+ level: number;
33
+ jobId: string;
34
+ jobGrowId: string;
35
+ jobName: string;
36
+ jobGrowName: string;
37
+ adventureName: string;
38
+ guildId: string;
39
+ guildName: string;
40
+ timeline: {
41
+ date: {
42
+ start: Date;
43
+ end: Date;
44
+ };
45
+ next: string;
46
+ rows: TimeLineRow[];
47
+ };
48
+ };
49
+ export type TimeLineRow = {
50
+ code: number;
51
+ name: string;
52
+ date: string;
53
+ data: TimeLineRowData;
54
+ };
55
+ export type TimeLineRowData = {
56
+ itemId: string;
57
+ itemName: string;
58
+ itemRarity: Static.Rarity;
59
+ channelName: string;
60
+ channelNo: number;
61
+ dungeonName: string;
62
+ mistGear: boolean;
63
+ };
64
+ export type CharacterStatus = {
65
+ serverId: Static.Server;
66
+ characterId: string;
67
+ characterName: string;
68
+ level: number;
69
+ jobId: string;
70
+ jobGrowId: string;
71
+ jobName: string;
72
+ jobGrowName: string;
73
+ fame: number;
74
+ adventureName: string;
75
+ guildId: string | null;
76
+ guildName: string | null;
77
+ buff: Buff[];
78
+ status: NameValue[];
79
+ };
80
+ export type Buff = {
81
+ name: string;
82
+ level?: number;
83
+ status: NameValue[];
84
+ };
@@ -0,0 +1,76 @@
1
+ import * as Char from "./character";
2
+ import * as Item from "./item";
3
+ import * as SetItem from "./setitem";
4
+ export { Char, Item, SetItem };
5
+ export type DnfErrorResponse = {
6
+ url: string;
7
+ status: number;
8
+ statusText: string;
9
+ code: string;
10
+ message: string;
11
+ };
12
+ export type DnfSuccess<T> = {
13
+ data: T;
14
+ error?: never;
15
+ };
16
+ export type DnfError = {
17
+ data?: never;
18
+ error: DnfErrorResponse;
19
+ };
20
+ export type DnfResponse<T> = DnfSuccess<T> | DnfError;
21
+ export type Auction = {
22
+ auctionNo: number;
23
+ regDate: Date;
24
+ expireDate: Date;
25
+ itemId: string;
26
+ itemName: string;
27
+ itemAvailableLevel: number;
28
+ itemRarity: string;
29
+ itemTypeId: string;
30
+ itemType: string;
31
+ itemTypeDetailId: string;
32
+ itemTypeDetail: string;
33
+ refine: number;
34
+ reinforce: number;
35
+ amplificationName: string;
36
+ fame: number;
37
+ count: number;
38
+ regCount: number;
39
+ price: number;
40
+ currentPrice: number;
41
+ unitPrice: number;
42
+ averagePrice: number;
43
+ upgrade?: number;
44
+ upgradeMax?: number;
45
+ };
46
+ export type AuctionSolid = {
47
+ soldDate: string;
48
+ itemId: string;
49
+ itemName: string;
50
+ itemAvailableLevel: number;
51
+ itemRarity: string;
52
+ itemTypeId: string;
53
+ itemType: string;
54
+ itemTypeDetailId: string;
55
+ itemTypeDetail: string;
56
+ refine: number;
57
+ reinforce: number;
58
+ amplificationName: string | null;
59
+ fame: number;
60
+ count: number;
61
+ price: number;
62
+ unitPrice: number;
63
+ upgrade?: number;
64
+ upgradeMax?: number;
65
+ };
66
+ export type Rows<T> = {
67
+ rows: T[];
68
+ };
69
+ export type Server = {
70
+ serverId: string;
71
+ serverName: string;
72
+ };
73
+ export type NameValue = {
74
+ name: string;
75
+ value: string | number;
76
+ };
@@ -0,0 +1,90 @@
1
+ import type * as Static from "../util/static";
2
+ import type { NameValue } from "./";
3
+ export declare enum ItemDetailKind {
4
+ Material = "material",
5
+ Equip = "equip"
6
+ }
7
+ export type Item = {
8
+ itemId: string;
9
+ itemName: string;
10
+ itemRarity: Static.Rarity;
11
+ itemType: string;
12
+ itemTypeDetail: string;
13
+ itemAvailableLevel: number;
14
+ };
15
+ export type Detail = MaterialDetail | EquipDetail;
16
+ export type MaterialDetail = {
17
+ kind: ItemDetailKind.Material;
18
+ itemId: string;
19
+ itemName: string;
20
+ itemRarity: string;
21
+ itemTypeId: string;
22
+ itemType: string;
23
+ itemTypeDetailId: string;
24
+ itemTypeDetail: string;
25
+ itemAvailableLevel: number;
26
+ itemExplain: string;
27
+ itemExplainDetail: string;
28
+ itemFlavorText: string;
29
+ fame: number;
30
+ setItemId: string | null;
31
+ setItemName: string | null;
32
+ obtainInfo: ObtainInfo;
33
+ };
34
+ export type EquipDetail = {
35
+ kind: ItemDetailKind.Equip;
36
+ itemId: string;
37
+ itemName: string;
38
+ itemRarity: string;
39
+ itemTypeId: string;
40
+ itemType: string;
41
+ itemTypeDetailId: string;
42
+ itemTypeDetail: string;
43
+ itemAvailableLevel: number;
44
+ itemExplain: string;
45
+ itemExplainDetail: string;
46
+ itemFlavorText: string;
47
+ fame: number;
48
+ setItemId: string | null;
49
+ setItemName: string | null;
50
+ itemStatus: NameValue[];
51
+ tune: Tune;
52
+ itemBuff: ItemBuff;
53
+ hashtag: string[];
54
+ obtainInfo: ObtainInfoDetail;
55
+ };
56
+ export type Tune = {
57
+ level: number;
58
+ setPoint: number;
59
+ };
60
+ export type ItemBuff = {
61
+ explain: string;
62
+ explainDetail: string;
63
+ reinforceSkill: any[];
64
+ status: any | null;
65
+ };
66
+ export type ObtainInfo = {
67
+ dungeon: string | null;
68
+ shop: ShopInfo[];
69
+ };
70
+ export type ObtainInfoDetail = {
71
+ dungeon: Dungeon[];
72
+ shop: ShopDetail[];
73
+ };
74
+ export type Dungeon = {
75
+ type: string;
76
+ rows: DungeonRow[];
77
+ };
78
+ export type DungeonRow = {
79
+ name: string;
80
+ };
81
+ export type ShopInfo = {
82
+ type: string;
83
+ };
84
+ export type ShopDetail = {
85
+ rows: ShopRow[];
86
+ };
87
+ export type ShopRow = {
88
+ name: string;
89
+ details: string[];
90
+ };
@@ -0,0 +1,30 @@
1
+ export type SetItem = {
2
+ setItemId: string;
3
+ setItemName: string;
4
+ };
5
+ export type Detail = {
6
+ setItemId: string;
7
+ setItemName: string;
8
+ setItems: [
9
+ {
10
+ slotId: string;
11
+ slotName: string;
12
+ itemId: string;
13
+ itemName: string;
14
+ itemRarity: string;
15
+ }
16
+ ];
17
+ setItemOption: [
18
+ {
19
+ optionNo: number;
20
+ explain: string;
21
+ detailExplain: string;
22
+ status: [
23
+ {
24
+ name: string;
25
+ value: number;
26
+ }
27
+ ];
28
+ }
29
+ ];
30
+ };
@@ -0,0 +1,11 @@
1
+ export interface IConfig {
2
+ key: string | undefined;
3
+ hideOnErrorApiKey: boolean;
4
+ hideKeyText: string;
5
+ timeout: number;
6
+ returnJSON: boolean;
7
+ responseHeader: boolean;
8
+ showURL: boolean;
9
+ }
10
+ declare let defaultConfig: IConfig;
11
+ export default defaultConfig;
@@ -0,0 +1,5 @@
1
+ import Config from "./config";
2
+ import * as Params from "./params";
3
+ import Query from "./query";
4
+ import * as Static from "./static";
5
+ export { Config, Query, Static, Params };
@@ -0,0 +1,75 @@
1
+ import type * as Static from "./static";
2
+ export interface QueryOptions<T = any> {
3
+ base: string;
4
+ params?: T;
5
+ }
6
+ export interface ICharParams {
7
+ characterName?: string;
8
+ jobId?: string;
9
+ jobGrowId?: string;
10
+ isAllJobGrow?: boolean;
11
+ wordType?: Static.CharactersWordType;
12
+ limit?: number;
13
+ }
14
+ export interface ITimeLine {
15
+ serverId?: Static.Server;
16
+ characterId?: string;
17
+ startDate?: Date;
18
+ endDate?: Date;
19
+ limit?: number;
20
+ code?: string[];
21
+ next?: string;
22
+ }
23
+ export interface IAuction {
24
+ limit?: number;
25
+ sort?: IAuctionSort;
26
+ itemId?: string;
27
+ itemName?: string;
28
+ wordType?: Static.AuctionWordType;
29
+ wordShort?: boolean;
30
+ q?: IAuctionQuery;
31
+ }
32
+ export interface IAuctionSort {
33
+ unitPrice?: Static.Sort;
34
+ reinforce?: Static.Sort;
35
+ auctionNo?: Static.Sort;
36
+ }
37
+ export interface IAuctionQuery {
38
+ minLevel?: number;
39
+ maxLevel?: number;
40
+ raity?: Static.Rarity;
41
+ reinforceTypeId: Static.reinforceType;
42
+ minReinforce?: number;
43
+ maxReinforce?: number;
44
+ minRefine?: number;
45
+ maxRefine?: number;
46
+ minFame?: number;
47
+ maxFame?: number;
48
+ }
49
+ export interface IActionSoldOption {
50
+ limit?: number;
51
+ wordType?: Static.AuctionWordType;
52
+ wordShort?: boolean;
53
+ itemId?: string;
54
+ itemName?: string;
55
+ }
56
+ export interface IItem {
57
+ limit?: number;
58
+ itemName?: string;
59
+ hashtag?: string[];
60
+ wordType?: Static.AuctionWordType;
61
+ q?: IItemQuery;
62
+ }
63
+ export interface IItemQuery {
64
+ minLevel?: number;
65
+ maxLevel?: number;
66
+ rarity?: Static.Rarity;
67
+ }
68
+ export interface ISetItem {
69
+ setItemName?: string;
70
+ limit?: number;
71
+ wordType?: Static.AuctionWordType;
72
+ }
73
+ export interface ISkill {
74
+ jobGrowId: string;
75
+ }
@@ -0,0 +1,14 @@
1
+ import type * as Model from "../model";
2
+ export default class Request {
3
+ static UriBuilder(...args: any[]): string;
4
+ static QueryBuilder(query: string[] | number[]): string;
5
+ /**
6
+ * 던전앤파이터 API 서버에 응답을 요청하는 함수 입니다.
7
+ * 해당 함수를 직접 호출 하는것을 권장하지 않습니다.
8
+ *
9
+ * @param {object} opt (요청을 보낼 Parameter값)
10
+ * @returns
11
+ */
12
+ static Request<T>(opt?: any, method?: "GET" | "POST"): Promise<Model.DnfResponse<T>>;
13
+ static makeItemQuery(query: any): string;
14
+ }
@@ -0,0 +1,49 @@
1
+ export declare enum Server {
2
+ Cain = "cain",
3
+ Diregie = "diregie",
4
+ Siroco = "siroco",
5
+ Prey = "prey",
6
+ Casillas = "casillas",
7
+ Hilder = "hilder",
8
+ Anton = "anton",
9
+ Bakal = "bakal"
10
+ }
11
+ export declare enum Sort {
12
+ Asc = "asc",
13
+ Desc = "desc"
14
+ }
15
+ export declare enum Rarity {
16
+ Common = "\uCEE4\uBA3C",
17
+ Uncommon = "\uC5B8\uCEE4\uBA3C",
18
+ Rare = "\uB808\uC5B4",
19
+ Unique = "\uC720\uB2C8\uD06C",
20
+ Eqic = "\uC5D0\uD53D",
21
+ Chronicle = "\uD06C\uB85C\uB2C8\uD074",
22
+ Legendary = "\uB808\uC804\uB354\uB9AC"
23
+ }
24
+ export declare enum AuctionWordType {
25
+ Match = "match",
26
+ Front = "front",
27
+ Full = "full"
28
+ }
29
+ export declare enum WordType {
30
+ Match = "match",
31
+ Front = "front",
32
+ Full = "full"
33
+ }
34
+ export declare enum CharactersWordType {
35
+ Match = "match",
36
+ Full = "full"
37
+ }
38
+ export declare enum BaseUri {
39
+ Servers = "df/servers",
40
+ Auction = "df/auction",
41
+ AuctionSold = "df/auction-sold",
42
+ Item = "df/items",
43
+ SetItem = "df/setitems"
44
+ }
45
+ export declare enum reinforceType {
46
+ reinforce = "\uAC15\uD654",
47
+ minRefine = "\uC99D\uD3ED",
48
+ modify = "\uAC1C\uC870"
49
+ }
package/dist/test.d.ts ADDED
@@ -0,0 +1 @@
1
+ import "dotenv/config";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dnf-api",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "던전 앤 파이터 API",
5
- "main": "./dist/src/index.js",
5
+ "main": "./dist/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "dependencies": {
8
8
  "@types/bun": "1.1.6",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "scripts": {
21
21
  "dev": "bun --watch src/index.ts",
22
- "bundle": "bun build src/index.ts --minify --target=bun --outfile dist/index.js",
22
+ "bundle": "tsc --declaration --emitDeclarationOnly --outDir dist && bun build src/index.ts --minify --target=bun --outfile dist/index.js",
23
23
  "test:dev": "bun --watch test.ts",
24
24
  "test": "jest"
25
25
  },
package/src/util/query.ts CHANGED
@@ -28,7 +28,7 @@ const sender = async <T>(path: string, method: "GET" | "POST", query: any) => {
28
28
  };
29
29
  const showUrl = (url: string): string => {
30
30
  if (Util.Config.key) {
31
- return url.replace(Util.Config.key, Util.Config.hideKeyText);
31
+ return url?.replace(Util.Config.key, Util.Config.hideKeyText);
32
32
  } else {
33
33
  return url;
34
34
  }