dnf-api 1.1.0 → 2.0.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/README.md +267 -41
- package/bun.lockb +0 -0
- package/dist/api/auction.d.ts +19 -5
- package/dist/api/avatar-market.d.ts +34 -0
- package/dist/api/characters.d.ts +17 -8
- package/dist/api/characters.equip.d.ts +15 -8
- package/dist/api/characters.skill.d.ts +8 -8
- package/dist/api/index.d.ts +3 -1
- package/dist/api/items.d.ts +6 -0
- package/dist/api/jobs.d.ts +20 -0
- package/dist/api/multi.d.ts +19 -2
- package/dist/api/server.d.ts +1 -1
- package/dist/index.d.ts +7 -14
- package/dist/index.js +14 -14
- package/dist/model/auction.d.ts +47 -0
- package/dist/model/avatar-market.d.ts +62 -0
- package/dist/model/character.d.ts +38 -5
- package/dist/model/index.d.ts +4 -48
- package/dist/model/item.d.ts +29 -1
- package/dist/model/job.d.ts +59 -0
- package/dist/src/api/auction.d.ts +5 -5
- package/dist/src/api/multi.d.ts +2 -2
- package/dist/src/index.d.ts +7 -14
- package/dist/src/model/auction.d.ts +47 -0
- package/dist/src/model/index.d.ts +2 -48
- package/dist/util/params.d.ts +57 -13
- package/dist/util/static.d.ts +26 -13
- package/package.json +42 -42
- package/src/api/auction.ts +104 -67
- package/src/api/avatar-market.ts +77 -0
- package/src/api/characters.equip.ts +104 -81
- package/src/api/characters.skill.ts +86 -86
- package/src/api/characters.ts +114 -91
- package/src/api/index.ts +23 -10
- package/src/api/items.ts +60 -49
- package/src/api/jobs.ts +40 -0
- package/src/api/multi.ts +52 -17
- package/src/api/server.ts +9 -9
- package/src/api/setitems.ts +29 -29
- package/src/index.ts +28 -35
- package/src/model/auction.ts +48 -0
- package/src/model/avatar-market.ts +70 -0
- package/src/model/character.ts +134 -98
- package/src/model/index.ts +49 -95
- package/src/model/item.ts +149 -117
- package/src/model/job.ts +65 -0
- package/src/model/setitem.ts +33 -33
- package/src/util/config.ts +43 -43
- package/src/util/index.ts +17 -17
- package/src/util/params.ts +144 -95
- package/src/util/query.ts +147 -144
- package/src/util/queue.ts +104 -104
- package/src/util/request-helper.ts +19 -19
- package/src/util/static.ts +72 -52
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.
|
|
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.
|
|
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,35 +1,28 @@
|
|
|
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
|
-
|
|
29
|
-
serverNames,
|
|
30
|
-
rarityNames,
|
|
31
|
-
query,
|
|
32
|
-
params,
|
|
33
|
-
model,
|
|
34
|
-
};
|
|
35
|
-
export default dnf;
|
|
1
|
+
import * as request from "./api";
|
|
2
|
+
import * as model from "./model/index";
|
|
3
|
+
import * as util from "./util";
|
|
4
|
+
|
|
5
|
+
import config from "./util/config";
|
|
6
|
+
import * as params from "./util/params";
|
|
7
|
+
import * as query from "./util/query";
|
|
8
|
+
import * as staticUtil from "./util/static";
|
|
9
|
+
|
|
10
|
+
export default class DnfApi {
|
|
11
|
+
util = util;
|
|
12
|
+
request = request;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const ServerNames = staticUtil.Server;
|
|
16
|
+
const RarityNames = staticUtil.Rarity;
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
request as api,
|
|
20
|
+
request,
|
|
21
|
+
config,
|
|
22
|
+
staticUtil,
|
|
23
|
+
ServerNames,
|
|
24
|
+
RarityNames,
|
|
25
|
+
query,
|
|
26
|
+
params,
|
|
27
|
+
model,
|
|
28
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** 경매장 아이템 인터페이스 */
|
|
2
|
+
export interface IAuction {
|
|
3
|
+
auctionNo: number;
|
|
4
|
+
regDate: Date;
|
|
5
|
+
expireDate: Date;
|
|
6
|
+
itemId: string;
|
|
7
|
+
itemName: string;
|
|
8
|
+
itemAvailableLevel: number;
|
|
9
|
+
itemRarity: string;
|
|
10
|
+
itemTypeId: string;
|
|
11
|
+
itemType: string;
|
|
12
|
+
itemTypeDetailId: string;
|
|
13
|
+
itemTypeDetail: string;
|
|
14
|
+
refine: number;
|
|
15
|
+
reinforce: number;
|
|
16
|
+
amplificationName: string;
|
|
17
|
+
fame: number;
|
|
18
|
+
count: number;
|
|
19
|
+
regCount: number;
|
|
20
|
+
price: number;
|
|
21
|
+
currentPrice: number;
|
|
22
|
+
unitPrice: number;
|
|
23
|
+
averagePrice: number;
|
|
24
|
+
upgrade?: number;
|
|
25
|
+
upgradeMax?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 판매 완료 아이템 인터페이스 */
|
|
29
|
+
export interface IAuctionSolid {
|
|
30
|
+
soldDate: string;
|
|
31
|
+
itemId: string;
|
|
32
|
+
itemName: string;
|
|
33
|
+
itemAvailableLevel: number;
|
|
34
|
+
itemRarity: string;
|
|
35
|
+
itemTypeId: string;
|
|
36
|
+
itemType: string;
|
|
37
|
+
itemTypeDetailId: string;
|
|
38
|
+
itemTypeDetail: string;
|
|
39
|
+
refine: number;
|
|
40
|
+
reinforce: number;
|
|
41
|
+
amplificationName: string | null;
|
|
42
|
+
fame: number;
|
|
43
|
+
count: number;
|
|
44
|
+
price: number;
|
|
45
|
+
unitPrice: number;
|
|
46
|
+
upgrade?: number;
|
|
47
|
+
upgradeMax?: number;
|
|
48
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** 아바타 마켓 상품 검색 결과 인터페이스 */
|
|
2
|
+
export interface ISale {
|
|
3
|
+
goodsNo: number;
|
|
4
|
+
sellerId: string;
|
|
5
|
+
sellerName: string;
|
|
6
|
+
title: string;
|
|
7
|
+
price: number;
|
|
8
|
+
registDate: string;
|
|
9
|
+
hashtag: string[];
|
|
10
|
+
avatarCount: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** 아바타 마켓 상품 상세 인터페이스 */
|
|
14
|
+
export interface ISaleDetail extends ISale {
|
|
15
|
+
avatar: IAvatarItem[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** 아바타 아이템 인터페이스 */
|
|
19
|
+
export interface IAvatarItem {
|
|
20
|
+
slotId: string;
|
|
21
|
+
slotName: string;
|
|
22
|
+
itemId: string;
|
|
23
|
+
itemName: string;
|
|
24
|
+
itemRarity: string;
|
|
25
|
+
clone: ICloneAvatar;
|
|
26
|
+
optionAbility: string | null;
|
|
27
|
+
emblems: IEmblem[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** 클론 아바타 인터페이스 */
|
|
31
|
+
export interface ICloneAvatar {
|
|
32
|
+
itemId: string | null;
|
|
33
|
+
itemName: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** 엠블렘 인터페이스 */
|
|
37
|
+
export interface IEmblem {
|
|
38
|
+
slotNo: number;
|
|
39
|
+
slotColor: string;
|
|
40
|
+
itemName: string;
|
|
41
|
+
itemRarity: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** 아바타 마켓 시세 검색 결과 인터페이스 */
|
|
45
|
+
export interface ISold {
|
|
46
|
+
goodsNo: number;
|
|
47
|
+
sellerId: string;
|
|
48
|
+
sellerName: string;
|
|
49
|
+
title: string;
|
|
50
|
+
price: number;
|
|
51
|
+
soldDate: string;
|
|
52
|
+
hashtag: string[];
|
|
53
|
+
avatarCount: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** 아바타 마켓 시세 상세 인터페이스 */
|
|
57
|
+
export interface ISoldDetail extends ISold {
|
|
58
|
+
avatar: IAvatarItem[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** 해시태그 조회 결과 인터페이스 */
|
|
62
|
+
export interface IHashtag {
|
|
63
|
+
hashtag: IHashtagItem[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** 해시태그 아이템 인터페이스 */
|
|
67
|
+
export interface IHashtagItem {
|
|
68
|
+
hashtagType: string;
|
|
69
|
+
name: string;
|
|
70
|
+
}
|
package/src/model/character.ts
CHANGED
|
@@ -1,98 +1,134 @@
|
|
|
1
|
-
import type { staticUtil } from "../util";
|
|
2
|
-
import type { INameValue } from "./";
|
|
3
|
-
|
|
4
|
-
/** 캐릭터 정보 인터페이스 */
|
|
5
|
-
export interface ICharacter {
|
|
6
|
-
serverId: staticUtil.
|
|
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.
|
|
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.
|
|
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.
|
|
69
|
-
channelName: string;
|
|
70
|
-
channelNo: number;
|
|
71
|
-
dungeonName: string;
|
|
72
|
-
mistGear: boolean;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** 캐릭터 상태 인터페이스 */
|
|
76
|
-
export interface ICharacterStatus {
|
|
77
|
-
serverId: staticUtil.
|
|
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
|
+
}
|
|
99
|
+
|
|
100
|
+
/** 캐릭터 명성 검색 결과 인터페이스 */
|
|
101
|
+
export interface ICharacterFame {
|
|
102
|
+
serverId: staticUtil.Server;
|
|
103
|
+
characterId: string;
|
|
104
|
+
characterName: string;
|
|
105
|
+
level: number;
|
|
106
|
+
jobId: string;
|
|
107
|
+
jobGrowId: string;
|
|
108
|
+
jobName: string;
|
|
109
|
+
jobGrowName: string;
|
|
110
|
+
fame: number;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** 안개 융화 정보 인터페이스 */
|
|
114
|
+
export interface IMistAssimilation {
|
|
115
|
+
serverId: staticUtil.Server;
|
|
116
|
+
characterId: string;
|
|
117
|
+
characterName: string;
|
|
118
|
+
level: number;
|
|
119
|
+
jobId: string;
|
|
120
|
+
jobGrowId: string;
|
|
121
|
+
jobName: string;
|
|
122
|
+
jobGrowName: string;
|
|
123
|
+
mistAssimilation: {
|
|
124
|
+
level: number;
|
|
125
|
+
expRate: number;
|
|
126
|
+
status: IMistStatus[];
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** 안개 융화 상태 인터페이스 */
|
|
131
|
+
export interface IMistStatus {
|
|
132
|
+
name: string;
|
|
133
|
+
value: number;
|
|
134
|
+
}
|
package/src/model/index.ts
CHANGED
|
@@ -1,95 +1,49 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
}
|
|
1
|
+
import * as auction from "./auction";
|
|
2
|
+
import * as avatarMarket from "./avatar-market";
|
|
3
|
+
import * as char from "./character";
|
|
4
|
+
import * as item from "./item";
|
|
5
|
+
import * as job from "./job";
|
|
6
|
+
import * as setItem from "./setitem";
|
|
7
|
+
|
|
8
|
+
export { char, item, setItem, auction, avatarMarket, job };
|
|
9
|
+
|
|
10
|
+
/** 에러 응답 인터페이스 */
|
|
11
|
+
export interface IDnfErrorResponse {
|
|
12
|
+
url: string;
|
|
13
|
+
status: number;
|
|
14
|
+
statusText: string;
|
|
15
|
+
code: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** 성공 응답 인터페이스 */
|
|
20
|
+
export interface IDnfSuccess<T> {
|
|
21
|
+
data: T;
|
|
22
|
+
error?: never;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 에러 정보 인터페이스 */
|
|
26
|
+
export interface IDnfError {
|
|
27
|
+
data?: never;
|
|
28
|
+
error: IDnfErrorResponse;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** 응답 타입(합성 타입) */
|
|
32
|
+
export type IDnfResponse<T> = IDnfSuccess<T> | IDnfError;
|
|
33
|
+
|
|
34
|
+
/** 행 배열 인터페이스 */
|
|
35
|
+
export interface IRows<T> {
|
|
36
|
+
rows: T[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** 서버 정보 인터페이스 */
|
|
40
|
+
export interface IServer {
|
|
41
|
+
serverId: string;
|
|
42
|
+
serverName: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** 이름-값 쌍 인터페이스 */
|
|
46
|
+
export interface INameValue {
|
|
47
|
+
name: string;
|
|
48
|
+
value: string | number;
|
|
49
|
+
}
|