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
|
@@ -2,7 +2,7 @@ import type { staticUtil } from "../util";
|
|
|
2
2
|
import type { INameValue } from "./";
|
|
3
3
|
/** 캐릭터 정보 인터페이스 */
|
|
4
4
|
export interface ICharacter {
|
|
5
|
-
serverId: staticUtil.
|
|
5
|
+
serverId: staticUtil.Server;
|
|
6
6
|
characterId: string;
|
|
7
7
|
characterName: string;
|
|
8
8
|
level: number;
|
|
@@ -14,7 +14,7 @@ export interface ICharacter {
|
|
|
14
14
|
}
|
|
15
15
|
/** 캐릭터 상세 정보 인터페이스 */
|
|
16
16
|
export interface IInfo {
|
|
17
|
-
serverId: staticUtil.
|
|
17
|
+
serverId: staticUtil.Server;
|
|
18
18
|
characterId: string;
|
|
19
19
|
characterName: string;
|
|
20
20
|
level: number;
|
|
@@ -29,7 +29,7 @@ export interface IInfo {
|
|
|
29
29
|
}
|
|
30
30
|
/** 캐릭터 타임라인 인터페이스 */
|
|
31
31
|
export interface ITimeline {
|
|
32
|
-
serverId: staticUtil.
|
|
32
|
+
serverId: staticUtil.Server;
|
|
33
33
|
characterId: string;
|
|
34
34
|
characterName: string;
|
|
35
35
|
level: number;
|
|
@@ -60,7 +60,7 @@ export interface ITimeLineRow {
|
|
|
60
60
|
export interface ITimeLineRowData {
|
|
61
61
|
itemId: string;
|
|
62
62
|
itemName: string;
|
|
63
|
-
itemRarity: staticUtil.
|
|
63
|
+
itemRarity: staticUtil.Rarity;
|
|
64
64
|
channelName: string;
|
|
65
65
|
channelNo: number;
|
|
66
66
|
dungeonName: string;
|
|
@@ -68,7 +68,7 @@ export interface ITimeLineRowData {
|
|
|
68
68
|
}
|
|
69
69
|
/** 캐릭터 상태 인터페이스 */
|
|
70
70
|
export interface ICharacterStatus {
|
|
71
|
-
serverId: staticUtil.
|
|
71
|
+
serverId: staticUtil.Server;
|
|
72
72
|
characterId: string;
|
|
73
73
|
characterName: string;
|
|
74
74
|
level: number;
|
|
@@ -89,3 +89,36 @@ export interface IBuff {
|
|
|
89
89
|
level?: number;
|
|
90
90
|
status: INameValue[];
|
|
91
91
|
}
|
|
92
|
+
/** 캐릭터 명성 검색 결과 인터페이스 */
|
|
93
|
+
export interface ICharacterFame {
|
|
94
|
+
serverId: staticUtil.Server;
|
|
95
|
+
characterId: string;
|
|
96
|
+
characterName: string;
|
|
97
|
+
level: number;
|
|
98
|
+
jobId: string;
|
|
99
|
+
jobGrowId: string;
|
|
100
|
+
jobName: string;
|
|
101
|
+
jobGrowName: string;
|
|
102
|
+
fame: number;
|
|
103
|
+
}
|
|
104
|
+
/** 안개 융화 정보 인터페이스 */
|
|
105
|
+
export interface IMistAssimilation {
|
|
106
|
+
serverId: staticUtil.Server;
|
|
107
|
+
characterId: string;
|
|
108
|
+
characterName: string;
|
|
109
|
+
level: number;
|
|
110
|
+
jobId: string;
|
|
111
|
+
jobGrowId: string;
|
|
112
|
+
jobName: string;
|
|
113
|
+
jobGrowName: string;
|
|
114
|
+
mistAssimilation: {
|
|
115
|
+
level: number;
|
|
116
|
+
expRate: number;
|
|
117
|
+
status: IMistStatus[];
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/** 안개 융화 상태 인터페이스 */
|
|
121
|
+
export interface IMistStatus {
|
|
122
|
+
name: string;
|
|
123
|
+
value: number;
|
|
124
|
+
}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import * as auction from "./auction";
|
|
2
|
+
import * as avatarMarket from "./avatar-market";
|
|
1
3
|
import * as char from "./character";
|
|
2
4
|
import * as item from "./item";
|
|
5
|
+
import * as job from "./job";
|
|
3
6
|
import * as setItem from "./setitem";
|
|
4
|
-
export { char, item, setItem };
|
|
7
|
+
export { char, item, setItem, auction, avatarMarket, job };
|
|
5
8
|
/** 에러 응답 인터페이스 */
|
|
6
9
|
export interface IDnfErrorResponse {
|
|
7
10
|
url: string;
|
|
@@ -22,53 +25,6 @@ export interface IDnfError {
|
|
|
22
25
|
}
|
|
23
26
|
/** 응답 타입(합성 타입) */
|
|
24
27
|
export type IDnfResponse<T> = IDnfSuccess<T> | IDnfError;
|
|
25
|
-
/** 경매장 아이템 인터페이스 */
|
|
26
|
-
export interface IAuction {
|
|
27
|
-
auctionNo: number;
|
|
28
|
-
regDate: Date;
|
|
29
|
-
expireDate: Date;
|
|
30
|
-
itemId: string;
|
|
31
|
-
itemName: string;
|
|
32
|
-
itemAvailableLevel: number;
|
|
33
|
-
itemRarity: string;
|
|
34
|
-
itemTypeId: string;
|
|
35
|
-
itemType: string;
|
|
36
|
-
itemTypeDetailId: string;
|
|
37
|
-
itemTypeDetail: string;
|
|
38
|
-
refine: number;
|
|
39
|
-
reinforce: number;
|
|
40
|
-
amplificationName: string;
|
|
41
|
-
fame: number;
|
|
42
|
-
count: number;
|
|
43
|
-
regCount: number;
|
|
44
|
-
price: number;
|
|
45
|
-
currentPrice: number;
|
|
46
|
-
unitPrice: number;
|
|
47
|
-
averagePrice: number;
|
|
48
|
-
upgrade?: number;
|
|
49
|
-
upgradeMax?: number;
|
|
50
|
-
}
|
|
51
|
-
/** 판매 완료 아이템 인터페이스 */
|
|
52
|
-
export interface IAuctionSolid {
|
|
53
|
-
soldDate: string;
|
|
54
|
-
itemId: string;
|
|
55
|
-
itemName: string;
|
|
56
|
-
itemAvailableLevel: number;
|
|
57
|
-
itemRarity: string;
|
|
58
|
-
itemTypeId: string;
|
|
59
|
-
itemType: string;
|
|
60
|
-
itemTypeDetailId: string;
|
|
61
|
-
itemTypeDetail: string;
|
|
62
|
-
refine: number;
|
|
63
|
-
reinforce: number;
|
|
64
|
-
amplificationName: string | null;
|
|
65
|
-
fame: number;
|
|
66
|
-
count: number;
|
|
67
|
-
price: number;
|
|
68
|
-
unitPrice: number;
|
|
69
|
-
upgrade?: number;
|
|
70
|
-
upgradeMax?: number;
|
|
71
|
-
}
|
|
72
28
|
/** 행 배열 인터페이스 */
|
|
73
29
|
export interface IRows<T> {
|
|
74
30
|
rows: T[];
|
package/dist/model/item.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum ItemDetailKind {
|
|
|
8
8
|
export interface IItem {
|
|
9
9
|
itemId: string;
|
|
10
10
|
itemName: string;
|
|
11
|
-
itemRarity: Static.
|
|
11
|
+
itemRarity: Static.Rarity;
|
|
12
12
|
itemType: string;
|
|
13
13
|
itemTypeDetail: string;
|
|
14
14
|
itemAvailableLevel: number;
|
|
@@ -101,3 +101,31 @@ export interface IShopRow {
|
|
|
101
101
|
name: string;
|
|
102
102
|
details: string[];
|
|
103
103
|
}
|
|
104
|
+
/** 아이템 상점 판매 정보 인터페이스 */
|
|
105
|
+
export interface IShop {
|
|
106
|
+
itemId: string;
|
|
107
|
+
itemName: string;
|
|
108
|
+
itemRarity: string;
|
|
109
|
+
itemTypeId: string;
|
|
110
|
+
itemType: string;
|
|
111
|
+
itemTypeDetailId: string;
|
|
112
|
+
itemTypeDetail: string;
|
|
113
|
+
shopInfo: IShopSaleInfo[];
|
|
114
|
+
}
|
|
115
|
+
/** 상점 판매 상세 정보 인터페이스 */
|
|
116
|
+
export interface IShopSaleInfo {
|
|
117
|
+
shopName: string;
|
|
118
|
+
npcName: string;
|
|
119
|
+
cost: IShopCost[];
|
|
120
|
+
}
|
|
121
|
+
/** 상점 비용 인터페이스 */
|
|
122
|
+
export interface IShopCost {
|
|
123
|
+
type: string;
|
|
124
|
+
itemId?: string;
|
|
125
|
+
itemName?: string;
|
|
126
|
+
value: number;
|
|
127
|
+
}
|
|
128
|
+
/** 아이템 해시태그 목록 인터페이스 */
|
|
129
|
+
export interface IHashtag {
|
|
130
|
+
hashtag: string[];
|
|
131
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** 직업 정보 인터페이스 */
|
|
2
|
+
export interface IJob {
|
|
3
|
+
jobId: string;
|
|
4
|
+
jobName: string;
|
|
5
|
+
rows: IJobGrow[];
|
|
6
|
+
}
|
|
7
|
+
/** 전직 정보 인터페이스 */
|
|
8
|
+
export interface IJobGrow {
|
|
9
|
+
jobGrowId: string;
|
|
10
|
+
jobGrowName: string;
|
|
11
|
+
next?: IJobGrow;
|
|
12
|
+
}
|
|
13
|
+
/** 스킬 리스트 인터페이스 */
|
|
14
|
+
export interface ISkillList {
|
|
15
|
+
jobId: string;
|
|
16
|
+
jobName: string;
|
|
17
|
+
jobGrowId: string;
|
|
18
|
+
jobGrowName: string;
|
|
19
|
+
skills: ISkill[];
|
|
20
|
+
}
|
|
21
|
+
/** 스킬 기본 정보 인터페이스 */
|
|
22
|
+
export interface ISkill {
|
|
23
|
+
skillId: string;
|
|
24
|
+
skillName: string;
|
|
25
|
+
requiredLevel: number;
|
|
26
|
+
type: string;
|
|
27
|
+
costType: string;
|
|
28
|
+
}
|
|
29
|
+
/** 스킬 상세 정보 인터페이스 */
|
|
30
|
+
export interface ISkillDetail {
|
|
31
|
+
jobId: string;
|
|
32
|
+
jobName: string;
|
|
33
|
+
skillId: string;
|
|
34
|
+
skillName: string;
|
|
35
|
+
requiredLevel: number;
|
|
36
|
+
type: string;
|
|
37
|
+
costType: string;
|
|
38
|
+
desc: string;
|
|
39
|
+
descDetail: string;
|
|
40
|
+
consumeMp: number;
|
|
41
|
+
consumeItem: IConsumeItem | null;
|
|
42
|
+
cooldownTime: number;
|
|
43
|
+
levelInfo: ISkillLevelInfo[];
|
|
44
|
+
}
|
|
45
|
+
/** 스킬 소비 아이템 인터페이스 */
|
|
46
|
+
export interface IConsumeItem {
|
|
47
|
+
itemId: string;
|
|
48
|
+
itemName: string;
|
|
49
|
+
value: number;
|
|
50
|
+
}
|
|
51
|
+
/** 스킬 레벨 정보 인터페이스 */
|
|
52
|
+
export interface ISkillLevelInfo {
|
|
53
|
+
level: number;
|
|
54
|
+
requiredLevel: number;
|
|
55
|
+
consumeMp: number;
|
|
56
|
+
cooldownTime: number;
|
|
57
|
+
desc: string;
|
|
58
|
+
descDetail: string;
|
|
59
|
+
}
|
|
@@ -6,19 +6,19 @@ import { type params } from "../util";
|
|
|
6
6
|
* @param {string} itemName 검색할 아이템의 이름입니다.
|
|
7
7
|
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
8
8
|
*/
|
|
9
|
-
export declare const itemName: (itemName: string, params?: params.IAuction) => Promise<model.IDnfResponse<model.IRows<model.IAuction>>>;
|
|
9
|
+
export declare const itemName: (itemName: string, params?: params.IAuction) => Promise<model.IDnfResponse<model.IRows<model.auction.IAuction>>>;
|
|
10
10
|
/**
|
|
11
11
|
* 경매장에 등록된 아이템을 "아이템 아이디"을 기준으로 받아옵니다
|
|
12
12
|
*
|
|
13
13
|
* @param {string} itemID 검색할 아이템의 ID입니다.
|
|
14
14
|
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
15
15
|
*/
|
|
16
|
-
export declare const itemId: (itemId: string, params?: params.IAuction) => Promise<model.IDnfResponse<model.IRows<model.IAuction>>>;
|
|
16
|
+
export declare const itemId: (itemId: string, params?: params.IAuction) => Promise<model.IDnfResponse<model.IRows<model.auction.IAuction>>>;
|
|
17
17
|
/**
|
|
18
18
|
* 경매장에 등록된 경매장번호로 받아옵니다.
|
|
19
19
|
*
|
|
20
20
|
* @param {Number} auctionNo 검색할 경매장 번호입니다.
|
|
21
21
|
*/
|
|
22
|
-
export declare const no: (auctionNo: number) => Promise<model.IDnfResponse<model.IAuction>>;
|
|
23
|
-
export declare const auctionSoldName: (itemName: string, params?: params.IActionSoldOption) => Promise<model.IDnfResponse<model.IRows<model.IAuctionSolid>>>;
|
|
24
|
-
export declare const auctionSoldId: (itemId: string, params?: params.IActionSoldOption) => Promise<model.IDnfResponse<model.IRows<model.IAuctionSolid>>>;
|
|
22
|
+
export declare const no: (auctionNo: number) => Promise<model.IDnfResponse<model.auction.IAuction>>;
|
|
23
|
+
export declare const auctionSoldName: (itemName: string, params?: params.IActionSoldOption) => Promise<model.IDnfResponse<model.IRows<model.auction.IAuctionSolid>>>;
|
|
24
|
+
export declare const auctionSoldId: (itemId: string, params?: params.IActionSoldOption) => Promise<model.IDnfResponse<model.IRows<model.auction.IAuctionSolid>>>;
|
package/dist/src/api/multi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as model from "../model";
|
|
2
2
|
/**
|
|
3
3
|
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
4
4
|
*
|
|
5
5
|
* @param {string} itemId 검색할 아이템의 ID
|
|
6
6
|
*/
|
|
7
|
-
export declare const items: (itemIdList: string[]) => Promise<
|
|
7
|
+
export declare const items: (itemIdList: string[]) => Promise<model.IDnfResponse<model.IRows<model.item.IDetail>>>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import * as request from "./api";
|
|
2
2
|
import * as model from "./model/index";
|
|
3
|
+
import * as util from "./util";
|
|
3
4
|
import config from "./util/config";
|
|
4
5
|
import * as params from "./util/params";
|
|
5
6
|
import * as query from "./util/query";
|
|
6
7
|
import * as staticUtil from "./util/static";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const dnf: {
|
|
10
|
-
api: typeof request;
|
|
8
|
+
export default class DnfApi {
|
|
9
|
+
util: typeof util;
|
|
11
10
|
request: typeof request;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
query: typeof query;
|
|
17
|
-
params: typeof params;
|
|
18
|
-
model: typeof model;
|
|
19
|
-
};
|
|
20
|
-
export { request as api, request, config, staticUtil, serverNames, rarityNames, query, params, model, };
|
|
21
|
-
export default dnf;
|
|
11
|
+
}
|
|
12
|
+
declare const ServerNames: typeof util.staticUtil.server;
|
|
13
|
+
declare const RarityNames: typeof util.staticUtil.rarity;
|
|
14
|
+
export { request as api, request, config, staticUtil, ServerNames, RarityNames, query, params, model, };
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
export interface IAuctionSolid {
|
|
29
|
+
soldDate: string;
|
|
30
|
+
itemId: string;
|
|
31
|
+
itemName: string;
|
|
32
|
+
itemAvailableLevel: number;
|
|
33
|
+
itemRarity: string;
|
|
34
|
+
itemTypeId: string;
|
|
35
|
+
itemType: string;
|
|
36
|
+
itemTypeDetailId: string;
|
|
37
|
+
itemTypeDetail: string;
|
|
38
|
+
refine: number;
|
|
39
|
+
reinforce: number;
|
|
40
|
+
amplificationName: string | null;
|
|
41
|
+
fame: number;
|
|
42
|
+
count: number;
|
|
43
|
+
price: number;
|
|
44
|
+
unitPrice: number;
|
|
45
|
+
upgrade?: number;
|
|
46
|
+
upgradeMax?: number;
|
|
47
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as auction from "./auction";
|
|
1
2
|
import * as char from "./character";
|
|
2
3
|
import * as item from "./item";
|
|
3
4
|
import * as setItem from "./setitem";
|
|
4
|
-
export { char, item, setItem };
|
|
5
|
+
export { char, item, setItem, auction };
|
|
5
6
|
/** 에러 응답 인터페이스 */
|
|
6
7
|
export interface IDnfErrorResponse {
|
|
7
8
|
url: string;
|
|
@@ -22,53 +23,6 @@ export interface IDnfError {
|
|
|
22
23
|
}
|
|
23
24
|
/** 응답 타입(합성 타입) */
|
|
24
25
|
export type IDnfResponse<T> = IDnfSuccess<T> | IDnfError;
|
|
25
|
-
/** 경매장 아이템 인터페이스 */
|
|
26
|
-
export interface IAuction {
|
|
27
|
-
auctionNo: number;
|
|
28
|
-
regDate: Date;
|
|
29
|
-
expireDate: Date;
|
|
30
|
-
itemId: string;
|
|
31
|
-
itemName: string;
|
|
32
|
-
itemAvailableLevel: number;
|
|
33
|
-
itemRarity: string;
|
|
34
|
-
itemTypeId: string;
|
|
35
|
-
itemType: string;
|
|
36
|
-
itemTypeDetailId: string;
|
|
37
|
-
itemTypeDetail: string;
|
|
38
|
-
refine: number;
|
|
39
|
-
reinforce: number;
|
|
40
|
-
amplificationName: string;
|
|
41
|
-
fame: number;
|
|
42
|
-
count: number;
|
|
43
|
-
regCount: number;
|
|
44
|
-
price: number;
|
|
45
|
-
currentPrice: number;
|
|
46
|
-
unitPrice: number;
|
|
47
|
-
averagePrice: number;
|
|
48
|
-
upgrade?: number;
|
|
49
|
-
upgradeMax?: number;
|
|
50
|
-
}
|
|
51
|
-
/** 판매 완료 아이템 인터페이스 */
|
|
52
|
-
export interface IAuctionSolid {
|
|
53
|
-
soldDate: string;
|
|
54
|
-
itemId: string;
|
|
55
|
-
itemName: string;
|
|
56
|
-
itemAvailableLevel: number;
|
|
57
|
-
itemRarity: string;
|
|
58
|
-
itemTypeId: string;
|
|
59
|
-
itemType: string;
|
|
60
|
-
itemTypeDetailId: string;
|
|
61
|
-
itemTypeDetail: string;
|
|
62
|
-
refine: number;
|
|
63
|
-
reinforce: number;
|
|
64
|
-
amplificationName: string | null;
|
|
65
|
-
fame: number;
|
|
66
|
-
count: number;
|
|
67
|
-
price: number;
|
|
68
|
-
unitPrice: number;
|
|
69
|
-
upgrade?: number;
|
|
70
|
-
upgradeMax?: number;
|
|
71
|
-
}
|
|
72
26
|
/** 행 배열 인터페이스 */
|
|
73
27
|
export interface IRows<T> {
|
|
74
28
|
rows: T[];
|
package/dist/util/params.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export interface ICharParams extends BaseParams {
|
|
|
12
12
|
jobId?: string;
|
|
13
13
|
jobGrowId?: string;
|
|
14
14
|
isAllJobGrow?: boolean;
|
|
15
|
-
wordType?: staticUtil.
|
|
15
|
+
wordType?: staticUtil.CharactersWordType;
|
|
16
16
|
limit?: number;
|
|
17
17
|
}
|
|
18
18
|
export interface ITimeLine extends BaseParams {
|
|
19
|
-
serverId?: staticUtil.
|
|
19
|
+
serverId?: staticUtil.Server;
|
|
20
20
|
characterId?: string;
|
|
21
21
|
startDate?: Date;
|
|
22
22
|
endDate?: Date;
|
|
@@ -29,20 +29,20 @@ export interface IAuction extends BaseParams {
|
|
|
29
29
|
sort?: IAuctionSort;
|
|
30
30
|
itemId?: string;
|
|
31
31
|
itemName?: string;
|
|
32
|
-
wordType?: staticUtil.
|
|
32
|
+
wordType?: staticUtil.AuctionWordType;
|
|
33
33
|
wordShort?: boolean;
|
|
34
34
|
q?: IAuctionQuery;
|
|
35
35
|
}
|
|
36
36
|
export interface IAuctionSort {
|
|
37
|
-
unitPrice?: staticUtil.
|
|
38
|
-
reinforce?: staticUtil.
|
|
39
|
-
auctionNo?: staticUtil.
|
|
37
|
+
unitPrice?: staticUtil.Sort;
|
|
38
|
+
reinforce?: staticUtil.Sort;
|
|
39
|
+
auctionNo?: staticUtil.Sort;
|
|
40
40
|
}
|
|
41
41
|
export interface IAuctionQuery {
|
|
42
42
|
minLevel?: number;
|
|
43
43
|
maxLevel?: number;
|
|
44
|
-
|
|
45
|
-
reinforceTypeId: staticUtil.
|
|
44
|
+
rarity?: staticUtil.Rarity;
|
|
45
|
+
reinforceTypeId: staticUtil.ReinforceType;
|
|
46
46
|
minReinforce?: number;
|
|
47
47
|
maxReinforce?: number;
|
|
48
48
|
minRefine?: number;
|
|
@@ -50,9 +50,9 @@ export interface IAuctionQuery {
|
|
|
50
50
|
minFame?: number;
|
|
51
51
|
maxFame?: number;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface IAuctionSoldOption extends BaseParams {
|
|
54
54
|
limit?: number;
|
|
55
|
-
wordType?: staticUtil.
|
|
55
|
+
wordType?: staticUtil.AuctionWordType;
|
|
56
56
|
wordShort?: boolean;
|
|
57
57
|
itemId?: string;
|
|
58
58
|
itemName?: string;
|
|
@@ -62,19 +62,63 @@ export interface IItem extends BaseParams {
|
|
|
62
62
|
limit?: number;
|
|
63
63
|
itemName?: string;
|
|
64
64
|
hashtag?: string[];
|
|
65
|
-
wordType?: staticUtil.
|
|
65
|
+
wordType?: staticUtil.AuctionWordType;
|
|
66
66
|
q?: IItemQuery;
|
|
67
67
|
}
|
|
68
68
|
export interface IItemQuery {
|
|
69
69
|
minLevel?: number;
|
|
70
70
|
maxLevel?: number;
|
|
71
|
-
rarity?: staticUtil.
|
|
71
|
+
rarity?: staticUtil.Rarity;
|
|
72
72
|
}
|
|
73
73
|
export interface ISetItem extends BaseParams {
|
|
74
74
|
setItemName?: string;
|
|
75
75
|
limit?: number;
|
|
76
|
-
wordType?: staticUtil.
|
|
76
|
+
wordType?: staticUtil.AuctionWordType;
|
|
77
77
|
}
|
|
78
78
|
export interface ISkill extends BaseParams {
|
|
79
79
|
jobGrowId: string;
|
|
80
80
|
}
|
|
81
|
+
/** 캐릭터 명성 검색 파라미터 */
|
|
82
|
+
export interface ICharactersFame extends BaseParams {
|
|
83
|
+
minFame?: number;
|
|
84
|
+
maxFame?: number;
|
|
85
|
+
jobId?: string;
|
|
86
|
+
jobGrowId?: string;
|
|
87
|
+
isAllJobGrow?: boolean;
|
|
88
|
+
isBuff?: boolean;
|
|
89
|
+
limit?: number;
|
|
90
|
+
}
|
|
91
|
+
/** 아바타 마켓 상품 검색 파라미터 */
|
|
92
|
+
export interface IAvatarMarketSale extends BaseParams {
|
|
93
|
+
limit?: number;
|
|
94
|
+
sort?: IAvatarMarketSort;
|
|
95
|
+
hashtag?: string[];
|
|
96
|
+
title?: string;
|
|
97
|
+
wordType?: staticUtil.WordType;
|
|
98
|
+
q?: IAvatarMarketQuery;
|
|
99
|
+
}
|
|
100
|
+
/** 아바타 마켓 시세 검색 파라미터 */
|
|
101
|
+
export interface IAvatarMarketSold extends BaseParams {
|
|
102
|
+
limit?: number;
|
|
103
|
+
sort?: IAvatarMarketSort;
|
|
104
|
+
hashtag?: string[];
|
|
105
|
+
title?: string;
|
|
106
|
+
wordType?: staticUtil.WordType;
|
|
107
|
+
q?: IAvatarMarketQuery;
|
|
108
|
+
}
|
|
109
|
+
/** 아바타 마켓 정렬 옵션 */
|
|
110
|
+
export interface IAvatarMarketSort {
|
|
111
|
+
price?: staticUtil.Sort;
|
|
112
|
+
goodsNo?: staticUtil.Sort;
|
|
113
|
+
}
|
|
114
|
+
/** 아바타 마켓 검색 쿼리 */
|
|
115
|
+
export interface IAvatarMarketQuery {
|
|
116
|
+
jobId?: string;
|
|
117
|
+
emblemCode?: number;
|
|
118
|
+
avatarSet?: boolean;
|
|
119
|
+
avatarRarity?: staticUtil.AvatarRarity;
|
|
120
|
+
minPrice?: number;
|
|
121
|
+
maxPrice?: number;
|
|
122
|
+
minAvatarCount?: number;
|
|
123
|
+
maxAvatarCount?: number;
|
|
124
|
+
}
|
package/dist/util/static.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum Server {
|
|
2
2
|
Cain = "cain",
|
|
3
3
|
Diregie = "diregie",
|
|
4
4
|
Siroco = "siroco",
|
|
@@ -8,43 +8,56 @@ export declare enum server {
|
|
|
8
8
|
Anton = "anton",
|
|
9
9
|
Bakal = "bakal"
|
|
10
10
|
}
|
|
11
|
-
export declare enum
|
|
11
|
+
export declare enum Sort {
|
|
12
12
|
Asc = "asc",
|
|
13
13
|
Desc = "desc"
|
|
14
14
|
}
|
|
15
|
-
export declare enum
|
|
15
|
+
export declare enum Rarity {
|
|
16
16
|
Common = "\uCEE4\uBA3C",
|
|
17
17
|
Uncommon = "\uC5B8\uCEE4\uBA3C",
|
|
18
18
|
Rare = "\uB808\uC5B4",
|
|
19
19
|
Unique = "\uC720\uB2C8\uD06C",
|
|
20
|
-
|
|
20
|
+
Epic = "\uC5D0\uD53D",
|
|
21
21
|
Chronicle = "\uD06C\uB85C\uB2C8\uD074",
|
|
22
22
|
Legendary = "\uB808\uC804\uB354\uB9AC"
|
|
23
23
|
}
|
|
24
|
-
export declare enum
|
|
24
|
+
export declare enum AuctionWordType {
|
|
25
25
|
Match = "match",
|
|
26
26
|
Front = "front",
|
|
27
27
|
Full = "full"
|
|
28
28
|
}
|
|
29
|
-
export declare enum
|
|
29
|
+
export declare enum WordType {
|
|
30
30
|
Match = "match",
|
|
31
31
|
Front = "front",
|
|
32
32
|
Full = "full"
|
|
33
33
|
}
|
|
34
|
-
export declare enum
|
|
34
|
+
export declare enum CharactersWordType {
|
|
35
35
|
Match = "match",
|
|
36
36
|
Full = "full"
|
|
37
37
|
}
|
|
38
|
-
export declare enum
|
|
38
|
+
export declare enum BaseUri {
|
|
39
39
|
Servers = "df/servers",
|
|
40
40
|
Auction = "df/auction",
|
|
41
41
|
AuctionSold = "df/auction-sold",
|
|
42
|
+
AvatarMarket = "df/avatar-market",
|
|
42
43
|
Item = "df/items",
|
|
44
|
+
ItemHashtag = "df/item-hashtag",
|
|
43
45
|
SetItem = "df/setitems",
|
|
44
|
-
Multi = "df/multi"
|
|
46
|
+
Multi = "df/multi",
|
|
47
|
+
Jobs = "df/jobs",
|
|
48
|
+
Skills = "df/skills"
|
|
45
49
|
}
|
|
46
|
-
export declare enum
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
export declare enum ReinforceType {
|
|
51
|
+
Reinforce = "\uAC15\uD654",
|
|
52
|
+
Amplify = "\uC99D\uD3ED",
|
|
53
|
+
Modify = "\uAC1C\uC870"
|
|
54
|
+
}
|
|
55
|
+
export declare enum HashtagType {
|
|
56
|
+
Category = "category",
|
|
57
|
+
Mood = "mood"
|
|
58
|
+
}
|
|
59
|
+
export declare enum AvatarRarity {
|
|
60
|
+
Premium = "\uC0C1\uAE09",
|
|
61
|
+
Rare = "\uB808\uC5B4",
|
|
62
|
+
Mixed = "\uD63C\uD569"
|
|
50
63
|
}
|