dnf-api 1.0.7 → 1.1.0
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.
- package/dist/api/auction.d.ts +24 -0
- package/dist/api/characters.d.ts +32 -0
- package/dist/api/characters.equip.d.ts +29 -0
- package/dist/api/characters.skill.d.ts +29 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/items.d.ts +21 -0
- package/dist/api/multi.d.ts +7 -0
- package/dist/api/server.d.ts +2 -0
- package/dist/api/setitems.d.ts +15 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +19 -19
- package/dist/model/character.d.ts +91 -0
- package/dist/{src/model/auction.d.ts → model/index.d.ts} +38 -0
- package/dist/model/item.d.ts +103 -0
- package/dist/model/setitem.d.ts +32 -0
- package/dist/src/api/auction.d.ts +24 -24
- package/dist/src/api/characters.d.ts +32 -32
- package/dist/src/api/characters.equip.d.ts +29 -29
- package/dist/src/api/characters.skill.d.ts +29 -29
- package/dist/src/api/index.d.ts +9 -9
- package/dist/src/api/items.d.ts +21 -21
- package/dist/src/api/multi.d.ts +7 -7
- package/dist/src/api/server.d.ts +2 -2
- package/dist/src/api/setitems.d.ts +15 -15
- package/dist/src/index.d.ts +21 -14
- package/dist/src/model/character.d.ts +91 -91
- package/dist/src/model/index.d.ts +85 -39
- package/dist/src/model/item.d.ts +103 -103
- package/dist/src/model/setitem.d.ts +32 -32
- package/dist/src/util/config.d.ts +11 -11
- package/dist/src/util/index.d.ts +5 -5
- package/dist/src/util/params.d.ts +76 -76
- package/dist/src/util/query.d.ts +14 -14
- package/dist/src/util/static.d.ts +50 -50
- package/dist/util/config.d.ts +21 -0
- package/dist/util/index.d.ts +7 -0
- package/dist/util/params.d.ts +80 -0
- package/dist/util/query.d.ts +39 -0
- package/dist/util/queue.d.ts +31 -0
- package/dist/util/request-helper.d.ts +9 -0
- package/dist/util/static.d.ts +50 -0
- package/package.json +42 -39
- package/src/api/auction.ts +67 -67
- package/src/api/characters.equip.ts +81 -81
- package/src/api/characters.skill.ts +86 -86
- package/src/api/characters.ts +91 -91
- package/src/api/index.ts +10 -10
- package/src/api/items.ts +49 -49
- package/src/api/multi.ts +17 -17
- package/src/api/server.ts +9 -9
- package/src/api/setitems.ts +29 -29
- package/src/index.ts +35 -28
- package/src/model/character.ts +98 -98
- package/src/model/index.ts +95 -47
- package/src/model/item.ts +117 -117
- package/src/model/setitem.ts +33 -33
- package/src/util/config.ts +43 -20
- package/src/util/index.ts +17 -6
- package/src/util/params.ts +95 -82
- package/src/util/query.ts +144 -95
- package/src/util/queue.ts +104 -0
- package/src/util/request-helper.ts +19 -0
- package/src/util/static.ts +52 -52
- package/bun.lockb +0 -0
- package/dist/test.d.ts +0 -1
- package/src/model/auction.ts +0 -48
package/src/api/items.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import type * as model from "../model";
|
|
2
|
-
import { type params, query, staticUtil } from "../util";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 현재 인게임에서 획득 가능한 아이템의 경우만 검색 가능합니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} itemName 검색할 아이템의 명칭
|
|
8
|
-
* @param {string} params 선택적 요청변수의 Object입니다.
|
|
9
|
-
*/
|
|
10
|
-
export const item = async (itemName: string, params: params.IItem = {}) => {
|
|
11
|
-
// if (params === undefined) params = {};
|
|
12
|
-
params.itemName = itemName;
|
|
13
|
-
// if (query) params.q = query.makeItemQuery(query);
|
|
14
|
-
//let querystring =
|
|
15
|
-
const opt = {
|
|
16
|
-
base: query.UriBuilder(staticUtil.baseUri.Item),
|
|
17
|
-
params: {
|
|
18
|
-
...params,
|
|
19
|
-
...(params.hashtag
|
|
20
|
-
? { hashtag: query.QueryBuilder(params.hashtag ?? []) }
|
|
21
|
-
: {}),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
return await query.Request<model.item.IItem>(opt);
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
28
|
-
*
|
|
29
|
-
* @param {string} itemId 검색할 아이템의 ID
|
|
30
|
-
*/
|
|
31
|
-
export const detail = (itemId: string) => {
|
|
32
|
-
const opt = {
|
|
33
|
-
base: query.UriBuilder(staticUtil.baseUri.Item, itemId),
|
|
34
|
-
};
|
|
35
|
-
return query.Request<model.item.IDetail>(opt);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* 26. 아이템 상점 판매 정보 조회
|
|
40
|
-
* 인게임 백과사전 기준의 상점 판매 95레벨 에픽, 100레벨 이상 유니크, 레전더리, 에픽 장비가 조회 가능 합니다.
|
|
41
|
-
*
|
|
42
|
-
* @param {string} itemId 검색할 아이템의 ID
|
|
43
|
-
*/
|
|
44
|
-
// export const shop = (itemId: string) => {
|
|
45
|
-
// const opt = {
|
|
46
|
-
// base: query.UriBuilder(staticUtil.BaseUri.Item, itemId),
|
|
47
|
-
// };
|
|
48
|
-
// return query.Request<model.item.detail>(opt);
|
|
49
|
-
// };
|
|
1
|
+
import type * as model from "../model";
|
|
2
|
+
import { type params, query, staticUtil } from "../util";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 현재 인게임에서 획득 가능한 아이템의 경우만 검색 가능합니다.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} itemName 검색할 아이템의 명칭
|
|
8
|
+
* @param {string} params 선택적 요청변수의 Object입니다.
|
|
9
|
+
*/
|
|
10
|
+
export const item = async (itemName: string, params: params.IItem = {}) => {
|
|
11
|
+
// if (params === undefined) params = {};
|
|
12
|
+
params.itemName = itemName;
|
|
13
|
+
// if (query) params.q = query.makeItemQuery(query);
|
|
14
|
+
//let querystring =
|
|
15
|
+
const opt = {
|
|
16
|
+
base: query.UriBuilder(staticUtil.baseUri.Item),
|
|
17
|
+
params: {
|
|
18
|
+
...params,
|
|
19
|
+
...(params.hashtag
|
|
20
|
+
? { hashtag: query.QueryBuilder(params.hashtag ?? []) }
|
|
21
|
+
: {}),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
return await query.Request<model.item.IItem>(opt);
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} itemId 검색할 아이템의 ID
|
|
30
|
+
*/
|
|
31
|
+
export const detail = (itemId: string) => {
|
|
32
|
+
const opt = {
|
|
33
|
+
base: query.UriBuilder(staticUtil.baseUri.Item, itemId),
|
|
34
|
+
};
|
|
35
|
+
return query.Request<model.item.IDetail>(opt);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 26. 아이템 상점 판매 정보 조회
|
|
40
|
+
* 인게임 백과사전 기준의 상점 판매 95레벨 에픽, 100레벨 이상 유니크, 레전더리, 에픽 장비가 조회 가능 합니다.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} itemId 검색할 아이템의 ID
|
|
43
|
+
*/
|
|
44
|
+
// export const shop = (itemId: string) => {
|
|
45
|
+
// const opt = {
|
|
46
|
+
// base: query.UriBuilder(staticUtil.BaseUri.Item, itemId),
|
|
47
|
+
// };
|
|
48
|
+
// return query.Request<model.item.detail>(opt);
|
|
49
|
+
// };
|
package/src/api/multi.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
import { type params, query, staticUtil } from "../util";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} itemId 검색할 아이템의 ID
|
|
8
|
-
*/
|
|
9
|
-
export const items = (itemIdList: string[]) => {
|
|
10
|
-
const opt = {
|
|
11
|
-
base: query.UriBuilder(staticUtil.baseUri.Multi, "items"),
|
|
12
|
-
params: {
|
|
13
|
-
itemIds: itemIdList.join(","),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
return query.Request<
|
|
17
|
-
};
|
|
1
|
+
import type * as Model from "../model";
|
|
2
|
+
import { type params, query, staticUtil } from "../util";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} itemId 검색할 아이템의 ID
|
|
8
|
+
*/
|
|
9
|
+
export const items = (itemIdList: string[]) => {
|
|
10
|
+
const opt = {
|
|
11
|
+
base: query.UriBuilder(staticUtil.baseUri.Multi, "items"),
|
|
12
|
+
params: {
|
|
13
|
+
itemIds: itemIdList.join(","),
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
return query.Request<Model.item.IDetail[]>(opt);
|
|
17
|
+
};
|
package/src/api/server.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type * as Model from "../model";
|
|
2
|
-
import { query, staticUtil } from "../util";
|
|
3
|
-
|
|
4
|
-
export const List = () => {
|
|
5
|
-
const opt = {
|
|
6
|
-
base: query.UriBuilder(staticUtil.baseUri.Servers),
|
|
7
|
-
};
|
|
8
|
-
return query.Request<Model.IServer[]>(opt);
|
|
9
|
-
};
|
|
1
|
+
import type * as Model from "../model";
|
|
2
|
+
import { query, staticUtil } from "../util";
|
|
3
|
+
|
|
4
|
+
export const List = () => {
|
|
5
|
+
const opt = {
|
|
6
|
+
base: query.UriBuilder(staticUtil.baseUri.Servers),
|
|
7
|
+
};
|
|
8
|
+
return query.Request<Model.IServer[]>(opt);
|
|
9
|
+
};
|
package/src/api/setitems.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type * as Model from "../model";
|
|
2
|
-
import { type params, query, staticUtil } from "../util";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 세트 아이템 정보를 세트의 이름으로 검색합니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} setItemName 세트 아이템의 이름입니다.
|
|
8
|
-
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
9
|
-
*/
|
|
10
|
-
export const setitem = (setItemName: string, params: params.ISetItem = {}) => {
|
|
11
|
-
params.setItemName = setItemName;
|
|
12
|
-
const opt = {
|
|
13
|
-
base: query.UriBuilder(staticUtil.baseUri.SetItem),
|
|
14
|
-
params: params,
|
|
15
|
-
};
|
|
16
|
-
return query.Request<Model.setItem.ISetItem[]>(opt);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 세트 ID로 세트 아이템 정보를 받아옵니다.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} setItemId 세트 아이템의 ID입니다.
|
|
23
|
-
*/
|
|
24
|
-
export const detail = (setItemId: string) => {
|
|
25
|
-
const opt = {
|
|
26
|
-
base: query.UriBuilder(staticUtil.baseUri.SetItem, setItemId),
|
|
27
|
-
};
|
|
28
|
-
return query.Request<Model.setItem.IDetail>(opt);
|
|
29
|
-
};
|
|
1
|
+
import type * as Model from "../model";
|
|
2
|
+
import { type params, query, staticUtil } from "../util";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 세트 아이템 정보를 세트의 이름으로 검색합니다.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} setItemName 세트 아이템의 이름입니다.
|
|
8
|
+
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
9
|
+
*/
|
|
10
|
+
export const setitem = (setItemName: string, params: params.ISetItem = {}) => {
|
|
11
|
+
params.setItemName = setItemName;
|
|
12
|
+
const opt = {
|
|
13
|
+
base: query.UriBuilder(staticUtil.baseUri.SetItem),
|
|
14
|
+
params: params,
|
|
15
|
+
};
|
|
16
|
+
return query.Request<Model.setItem.ISetItem[]>(opt);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 세트 ID로 세트 아이템 정보를 받아옵니다.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} setItemId 세트 아이템의 ID입니다.
|
|
23
|
+
*/
|
|
24
|
+
export const detail = (setItemId: string) => {
|
|
25
|
+
const opt = {
|
|
26
|
+
base: query.UriBuilder(staticUtil.baseUri.SetItem, setItemId),
|
|
27
|
+
};
|
|
28
|
+
return query.Request<Model.setItem.IDetail>(opt);
|
|
29
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import * as request from "./api";
|
|
2
|
-
import * as model from "./model/index";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import * as request from "./api";
|
|
2
|
+
import * as model from "./model/index";
|
|
3
|
+
|
|
4
|
+
import config from "./util/config";
|
|
5
|
+
import * as params from "./util/params";
|
|
6
|
+
import * as query from "./util/query";
|
|
7
|
+
import * as staticUtil from "./util/static";
|
|
8
|
+
|
|
9
|
+
const serverNames = staticUtil.server;
|
|
10
|
+
const rarityNames = staticUtil.rarity;
|
|
11
|
+
|
|
12
|
+
const dnf = {
|
|
13
|
+
api: request,
|
|
14
|
+
request,
|
|
15
|
+
config,
|
|
16
|
+
staticUtil,
|
|
17
|
+
serverNames,
|
|
18
|
+
rarityNames,
|
|
19
|
+
query,
|
|
20
|
+
params,
|
|
21
|
+
model,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
request as api,
|
|
26
|
+
request,
|
|
27
|
+
config,
|
|
28
|
+
staticUtil,
|
|
29
|
+
serverNames,
|
|
30
|
+
rarityNames,
|
|
31
|
+
query,
|
|
32
|
+
params,
|
|
33
|
+
model,
|
|
34
|
+
};
|
|
35
|
+
export default dnf;
|
package/src/model/character.ts
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import type { staticUtil } from "../util";
|
|
2
|
-
import type { INameValue } from "./";
|
|
3
|
-
|
|
4
|
-
/** 캐릭터 정보 인터페이스 */
|
|
5
|
-
export interface ICharacter {
|
|
6
|
-
serverId: staticUtil.server;
|
|
7
|
-
characterId: string;
|
|
8
|
-
characterName: string;
|
|
9
|
-
level: number;
|
|
10
|
-
jobId: string;
|
|
11
|
-
jobGrowId: string;
|
|
12
|
-
jobName: string;
|
|
13
|
-
jobGrowName: string;
|
|
14
|
-
fame: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** 캐릭터 상세 정보 인터페이스 */
|
|
18
|
-
export interface IInfo {
|
|
19
|
-
serverId: staticUtil.server;
|
|
20
|
-
characterId: string;
|
|
21
|
-
characterName: string;
|
|
22
|
-
level: number;
|
|
23
|
-
jobId: string;
|
|
24
|
-
jobGrowId: string;
|
|
25
|
-
jobName: string;
|
|
26
|
-
jobGrowName: string;
|
|
27
|
-
fame: number;
|
|
28
|
-
adventureName: string;
|
|
29
|
-
guildId: string | null;
|
|
30
|
-
guildName: string | null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** 캐릭터 타임라인 인터페이스 */
|
|
34
|
-
export interface ITimeline {
|
|
35
|
-
serverId: staticUtil.server;
|
|
36
|
-
characterId: string;
|
|
37
|
-
characterName: string;
|
|
38
|
-
level: number;
|
|
39
|
-
jobId: string;
|
|
40
|
-
jobGrowId: string;
|
|
41
|
-
jobName: string;
|
|
42
|
-
jobGrowName: string;
|
|
43
|
-
adventureName: string;
|
|
44
|
-
guildId: string;
|
|
45
|
-
guildName: string;
|
|
46
|
-
timeline: {
|
|
47
|
-
date: {
|
|
48
|
-
start: Date;
|
|
49
|
-
end: Date;
|
|
50
|
-
};
|
|
51
|
-
next: string;
|
|
52
|
-
rows: ITimeLineRow[];
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** 타임라인 행 인터페이스 */
|
|
57
|
-
export interface ITimeLineRow {
|
|
58
|
-
code: number;
|
|
59
|
-
name: string;
|
|
60
|
-
date: string;
|
|
61
|
-
data: ITimeLineRowData;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** 타임라인 행 데이터 인터페이스 */
|
|
65
|
-
export interface ITimeLineRowData {
|
|
66
|
-
itemId: string;
|
|
67
|
-
itemName: string;
|
|
68
|
-
itemRarity: staticUtil.rarity;
|
|
69
|
-
channelName: string;
|
|
70
|
-
channelNo: number;
|
|
71
|
-
dungeonName: string;
|
|
72
|
-
mistGear: boolean;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** 캐릭터 상태 인터페이스 */
|
|
76
|
-
export interface ICharacterStatus {
|
|
77
|
-
serverId: staticUtil.server;
|
|
78
|
-
characterId: string;
|
|
79
|
-
characterName: string;
|
|
80
|
-
level: number;
|
|
81
|
-
jobId: string;
|
|
82
|
-
jobGrowId: string;
|
|
83
|
-
jobName: string;
|
|
84
|
-
jobGrowName: string;
|
|
85
|
-
fame: number;
|
|
86
|
-
adventureName: string;
|
|
87
|
-
guildId: string | null;
|
|
88
|
-
guildName: string | null;
|
|
89
|
-
buff: IBuff[];
|
|
90
|
-
status: INameValue[];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/** 버프 정보 인터페이스 */
|
|
94
|
-
export interface IBuff {
|
|
95
|
-
name: string;
|
|
96
|
-
level?: number;
|
|
97
|
-
status: INameValue[];
|
|
98
|
-
}
|
|
1
|
+
import type { staticUtil } from "../util";
|
|
2
|
+
import type { INameValue } from "./";
|
|
3
|
+
|
|
4
|
+
/** 캐릭터 정보 인터페이스 */
|
|
5
|
+
export interface ICharacter {
|
|
6
|
+
serverId: staticUtil.server;
|
|
7
|
+
characterId: string;
|
|
8
|
+
characterName: string;
|
|
9
|
+
level: number;
|
|
10
|
+
jobId: string;
|
|
11
|
+
jobGrowId: string;
|
|
12
|
+
jobName: string;
|
|
13
|
+
jobGrowName: string;
|
|
14
|
+
fame: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** 캐릭터 상세 정보 인터페이스 */
|
|
18
|
+
export interface IInfo {
|
|
19
|
+
serverId: staticUtil.server;
|
|
20
|
+
characterId: string;
|
|
21
|
+
characterName: string;
|
|
22
|
+
level: number;
|
|
23
|
+
jobId: string;
|
|
24
|
+
jobGrowId: string;
|
|
25
|
+
jobName: string;
|
|
26
|
+
jobGrowName: string;
|
|
27
|
+
fame: number;
|
|
28
|
+
adventureName: string;
|
|
29
|
+
guildId: string | null;
|
|
30
|
+
guildName: string | null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** 캐릭터 타임라인 인터페이스 */
|
|
34
|
+
export interface ITimeline {
|
|
35
|
+
serverId: staticUtil.server;
|
|
36
|
+
characterId: string;
|
|
37
|
+
characterName: string;
|
|
38
|
+
level: number;
|
|
39
|
+
jobId: string;
|
|
40
|
+
jobGrowId: string;
|
|
41
|
+
jobName: string;
|
|
42
|
+
jobGrowName: string;
|
|
43
|
+
adventureName: string;
|
|
44
|
+
guildId: string;
|
|
45
|
+
guildName: string;
|
|
46
|
+
timeline: {
|
|
47
|
+
date: {
|
|
48
|
+
start: Date;
|
|
49
|
+
end: Date;
|
|
50
|
+
};
|
|
51
|
+
next: string;
|
|
52
|
+
rows: ITimeLineRow[];
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** 타임라인 행 인터페이스 */
|
|
57
|
+
export interface ITimeLineRow {
|
|
58
|
+
code: number;
|
|
59
|
+
name: string;
|
|
60
|
+
date: string;
|
|
61
|
+
data: ITimeLineRowData;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** 타임라인 행 데이터 인터페이스 */
|
|
65
|
+
export interface ITimeLineRowData {
|
|
66
|
+
itemId: string;
|
|
67
|
+
itemName: string;
|
|
68
|
+
itemRarity: staticUtil.rarity;
|
|
69
|
+
channelName: string;
|
|
70
|
+
channelNo: number;
|
|
71
|
+
dungeonName: string;
|
|
72
|
+
mistGear: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** 캐릭터 상태 인터페이스 */
|
|
76
|
+
export interface ICharacterStatus {
|
|
77
|
+
serverId: staticUtil.server;
|
|
78
|
+
characterId: string;
|
|
79
|
+
characterName: string;
|
|
80
|
+
level: number;
|
|
81
|
+
jobId: string;
|
|
82
|
+
jobGrowId: string;
|
|
83
|
+
jobName: string;
|
|
84
|
+
jobGrowName: string;
|
|
85
|
+
fame: number;
|
|
86
|
+
adventureName: string;
|
|
87
|
+
guildId: string | null;
|
|
88
|
+
guildName: string | null;
|
|
89
|
+
buff: IBuff[];
|
|
90
|
+
status: INameValue[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** 버프 정보 인터페이스 */
|
|
94
|
+
export interface IBuff {
|
|
95
|
+
name: string;
|
|
96
|
+
level?: number;
|
|
97
|
+
status: INameValue[];
|
|
98
|
+
}
|
package/src/model/index.ts
CHANGED
|
@@ -1,47 +1,95 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
import * as char from "./character";
|
|
2
|
+
import * as item from "./item";
|
|
3
|
+
import * as setItem from "./setitem";
|
|
4
|
+
|
|
5
|
+
export { char, item, setItem };
|
|
6
|
+
|
|
7
|
+
/** 에러 응답 인터페이스 */
|
|
8
|
+
export interface IDnfErrorResponse {
|
|
9
|
+
url: string;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
code: string;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** 성공 응답 인터페이스 */
|
|
17
|
+
export interface IDnfSuccess<T> {
|
|
18
|
+
data: T;
|
|
19
|
+
error?: never;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** 에러 정보 인터페이스 */
|
|
23
|
+
export interface IDnfError {
|
|
24
|
+
data?: never;
|
|
25
|
+
error: IDnfErrorResponse;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 응답 타입(합성 타입) */
|
|
29
|
+
export type IDnfResponse<T> = IDnfSuccess<T> | IDnfError;
|
|
30
|
+
|
|
31
|
+
/** 경매장 아이템 인터페이스 */
|
|
32
|
+
export interface IAuction {
|
|
33
|
+
auctionNo: number;
|
|
34
|
+
regDate: Date;
|
|
35
|
+
expireDate: Date;
|
|
36
|
+
itemId: string;
|
|
37
|
+
itemName: string;
|
|
38
|
+
itemAvailableLevel: number;
|
|
39
|
+
itemRarity: string;
|
|
40
|
+
itemTypeId: string;
|
|
41
|
+
itemType: string;
|
|
42
|
+
itemTypeDetailId: string;
|
|
43
|
+
itemTypeDetail: string;
|
|
44
|
+
refine: number;
|
|
45
|
+
reinforce: number;
|
|
46
|
+
amplificationName: string;
|
|
47
|
+
fame: number;
|
|
48
|
+
count: number;
|
|
49
|
+
regCount: number;
|
|
50
|
+
price: number;
|
|
51
|
+
currentPrice: number;
|
|
52
|
+
unitPrice: number;
|
|
53
|
+
averagePrice: number;
|
|
54
|
+
upgrade?: number;
|
|
55
|
+
upgradeMax?: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** 판매 완료 아이템 인터페이스 */
|
|
59
|
+
export interface IAuctionSolid {
|
|
60
|
+
soldDate: string;
|
|
61
|
+
itemId: string;
|
|
62
|
+
itemName: string;
|
|
63
|
+
itemAvailableLevel: number;
|
|
64
|
+
itemRarity: string;
|
|
65
|
+
itemTypeId: string;
|
|
66
|
+
itemType: string;
|
|
67
|
+
itemTypeDetailId: string;
|
|
68
|
+
itemTypeDetail: string;
|
|
69
|
+
refine: number;
|
|
70
|
+
reinforce: number;
|
|
71
|
+
amplificationName: string | null;
|
|
72
|
+
fame: number;
|
|
73
|
+
count: number;
|
|
74
|
+
price: number;
|
|
75
|
+
unitPrice: number;
|
|
76
|
+
upgrade?: number;
|
|
77
|
+
upgradeMax?: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** 행 배열 인터페이스 */
|
|
81
|
+
export interface IRows<T> {
|
|
82
|
+
rows: T[];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** 서버 정보 인터페이스 */
|
|
86
|
+
export interface IServer {
|
|
87
|
+
serverId: string;
|
|
88
|
+
serverName: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** 이름-값 쌍 인터페이스 */
|
|
92
|
+
export interface INameValue {
|
|
93
|
+
name: string;
|
|
94
|
+
value: string | number;
|
|
95
|
+
}
|