dnf-api 0.5.22 → 0.6.1
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/LICENSE +21 -21
- package/README.md +313 -313
- package/bun.lockb +0 -0
- package/dist/index.js +22 -35
- package/jest.config.js +12 -12
- package/package.json +37 -41
- package/src/api/auction.ts +67 -61
- package/src/api/characters.equip.ts +81 -53
- package/src/api/characters.skill.ts +52 -52
- package/src/api/characters.ts +91 -60
- package/src/api/index.ts +9 -9
- package/src/api/items.ts +27 -9
- package/src/api/server.ts +9 -9
- package/src/api/setitems.ts +34 -29
- package/src/index.ts +29 -18
- package/src/model/character.ts +51 -3
- package/src/model/index.ts +86 -62
- package/src/model/item.ts +74 -22
- package/src/model/setitem.ts +31 -31
- package/src/util/config.ts +20 -19
- package/src/util/index.ts +6 -6
- package/src/util/params.ts +14 -5
- package/src/util/query.ts +103 -109
- package/src/util/static.ts +51 -45
- package/dist/api/auction.d.ts +0 -24
- package/dist/api/auction.js +0 -58
- package/dist/api/characters.d.ts +0 -32
- package/dist/api/characters.equip.d.ts +0 -29
- package/dist/api/characters.equip.js +0 -51
- package/dist/api/characters.js +0 -58
- package/dist/api/characters.skill.d.ts +0 -29
- package/dist/api/characters.skill.js +0 -51
- package/dist/api/index.d.ts +0 -8
- package/dist/api/index.js +0 -23
- package/dist/api/items.d.ts +0 -15
- package/dist/api/items.js +0 -40
- package/dist/api/server.d.ts +0 -2
- package/dist/api/server.js +0 -9
- package/dist/api/setitems.d.ts +0 -15
- package/dist/api/setitems.js +0 -28
- package/dist/index.d.ts +0 -14
- package/dist/model/character.d.ts +0 -41
- package/dist/model/character.js +0 -2
- package/dist/model/index.d.ts +0 -56
- package/dist/model/index.js +0 -15
- package/dist/model/item.d.ts +0 -45
- package/dist/model/item.js +0 -2
- package/dist/model/setitem.d.ts +0 -24
- package/dist/model/setitem.js +0 -2
- package/dist/util/config.d.ts +0 -11
- package/dist/util/config.js +0 -12
- package/dist/util/index.d.ts +0 -5
- package/dist/util/index.js +0 -20
- package/dist/util/params.d.ts +0 -67
- package/dist/util/params.js +0 -2
- package/dist/util/query.d.ts +0 -14
- package/dist/util/query.js +0 -132
- package/dist/util/static.d.ts +0 -44
- package/dist/util/static.js +0 -53
- package/src/index.tmp.js +0 -48
package/src/util/static.ts
CHANGED
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
export 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 enum Sort {
|
|
12
|
-
Asc = "asc",
|
|
13
|
-
Desc = "desc",
|
|
14
|
-
}
|
|
15
|
-
export enum Rarity {
|
|
16
|
-
Common = "커먼",
|
|
17
|
-
Uncommon = "언커먼",
|
|
18
|
-
Rare = "레어",
|
|
19
|
-
Unique = "유니크",
|
|
20
|
-
Eqic = "에픽",
|
|
21
|
-
Chronicle = "크로니클",
|
|
22
|
-
Legendary = "레전더리",
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export enum AuctionWordType {
|
|
26
|
-
Match = "match",
|
|
27
|
-
Front = "front",
|
|
28
|
-
Full = "full",
|
|
29
|
-
}
|
|
30
|
-
export enum WordType {
|
|
31
|
-
Match = "match",
|
|
32
|
-
Front = "front",
|
|
33
|
-
Full = "full",
|
|
34
|
-
}
|
|
35
|
-
export enum CharactersWordType {
|
|
36
|
-
Match = "match",
|
|
37
|
-
Full = "full",
|
|
38
|
-
}
|
|
39
|
-
export enum BaseUri {
|
|
40
|
-
Servers = "df/servers",
|
|
41
|
-
Auction = "df/auction",
|
|
42
|
-
AuctionSold = "df/auction-sold",
|
|
43
|
-
Item = "df/items",
|
|
44
|
-
SetItem = "df/setitems",
|
|
45
|
-
}
|
|
1
|
+
export 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 enum Sort {
|
|
12
|
+
Asc = "asc",
|
|
13
|
+
Desc = "desc",
|
|
14
|
+
}
|
|
15
|
+
export enum Rarity {
|
|
16
|
+
Common = "커먼",
|
|
17
|
+
Uncommon = "언커먼",
|
|
18
|
+
Rare = "레어",
|
|
19
|
+
Unique = "유니크",
|
|
20
|
+
Eqic = "에픽",
|
|
21
|
+
Chronicle = "크로니클",
|
|
22
|
+
Legendary = "레전더리",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum AuctionWordType {
|
|
26
|
+
Match = "match",
|
|
27
|
+
Front = "front",
|
|
28
|
+
Full = "full",
|
|
29
|
+
}
|
|
30
|
+
export enum WordType {
|
|
31
|
+
Match = "match",
|
|
32
|
+
Front = "front",
|
|
33
|
+
Full = "full",
|
|
34
|
+
}
|
|
35
|
+
export enum CharactersWordType {
|
|
36
|
+
Match = "match",
|
|
37
|
+
Full = "full",
|
|
38
|
+
}
|
|
39
|
+
export enum BaseUri {
|
|
40
|
+
Servers = "df/servers",
|
|
41
|
+
Auction = "df/auction",
|
|
42
|
+
AuctionSold = "df/auction-sold",
|
|
43
|
+
Item = "df/items",
|
|
44
|
+
SetItem = "df/setitems",
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export enum reinforceType {
|
|
48
|
+
reinforce = "강화",
|
|
49
|
+
minRefine = "증폭",
|
|
50
|
+
modify = "개조",
|
|
51
|
+
}
|
package/dist/api/auction.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Params } from "../util";
|
|
2
|
-
import * as Model from "../model";
|
|
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.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.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.AuctionSolid[]>>;
|
|
24
|
-
export declare const auctionSoldId: (itemId: string, params?: Params.IActionSoldOption) => Promise<Model.DnfResponse<Model.AuctionSolid[]>>;
|
package/dist/api/auction.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
/**
|
|
5
|
-
* 경매장에 등록된 아이템을 "아이템 이름"을 기준으로 받아옵니다
|
|
6
|
-
*
|
|
7
|
-
* @param {string} itemName 검색할 아이템의 이름입니다.
|
|
8
|
-
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
9
|
-
*/
|
|
10
|
-
exports.itemName = (itemName, params = {}) => {
|
|
11
|
-
params.itemName = itemName;
|
|
12
|
-
let opt = {
|
|
13
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Auction),
|
|
14
|
-
params,
|
|
15
|
-
};
|
|
16
|
-
return util_1.Query.Request(opt);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 경매장에 등록된 아이템을 "아이템 아이디"을 기준으로 받아옵니다
|
|
20
|
-
*
|
|
21
|
-
* @param {string} itemID 검색할 아이템의 ID입니다.
|
|
22
|
-
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
23
|
-
*/
|
|
24
|
-
exports.itemId = (itemId, params = {}) => {
|
|
25
|
-
params.itemId = itemId;
|
|
26
|
-
let opt = {
|
|
27
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Auction),
|
|
28
|
-
params: params,
|
|
29
|
-
};
|
|
30
|
-
return util_1.Query.Request(opt);
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* 경매장에 등록된 경매장번호로 받아옵니다.
|
|
34
|
-
*
|
|
35
|
-
* @param {Number} auctionNo 검색할 경매장 번호입니다.
|
|
36
|
-
*/
|
|
37
|
-
exports.no = (auctionNo) => {
|
|
38
|
-
let opt = {
|
|
39
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Auction, auctionNo),
|
|
40
|
-
};
|
|
41
|
-
return util_1.Query.Request(opt);
|
|
42
|
-
};
|
|
43
|
-
exports.auctionSoldName = (itemName, params = {}) => {
|
|
44
|
-
params.itemName = itemName;
|
|
45
|
-
let opt = {
|
|
46
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.AuctionSold),
|
|
47
|
-
params,
|
|
48
|
-
};
|
|
49
|
-
return util_1.Query.Request(opt);
|
|
50
|
-
};
|
|
51
|
-
exports.auctionSoldId = (itemId, params = {}) => {
|
|
52
|
-
params.itemId = itemId;
|
|
53
|
-
let opt = {
|
|
54
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.AuctionSold),
|
|
55
|
-
params,
|
|
56
|
-
};
|
|
57
|
-
return util_1.Query.Request(opt);
|
|
58
|
-
};
|
package/dist/api/characters.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Static, Params } from "../util";
|
|
2
|
-
import * as Model from "../model";
|
|
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.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.ICharParams) => 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<unknown>>;
|
|
@@ -1,29 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
/**
|
|
5
|
-
* 해당 캐릭터가 장착한 장비 정보를 받아옵니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
8
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
9
|
-
*/
|
|
10
|
-
exports.equipment = (serverId, characterId) => {
|
|
11
|
-
let opt = {
|
|
12
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "equip", "equipment"),
|
|
13
|
-
};
|
|
14
|
-
return util_1.Query.Request(opt);
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* 해당 캐릭터가 장착한 아바타 정보를 받아옵니다.
|
|
18
|
-
*
|
|
19
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
20
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
21
|
-
*/
|
|
22
|
-
exports.avatar = (serverId, characterId) => {
|
|
23
|
-
let opt = {
|
|
24
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "equip", "avatar"),
|
|
25
|
-
};
|
|
26
|
-
return util_1.Query.Request(opt);
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* 해당 캐릭터가 장착한 크리쳐 정보를 받아옵니다.
|
|
30
|
-
*
|
|
31
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
32
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
33
|
-
*/
|
|
34
|
-
exports.creature = (serverId, characterId) => {
|
|
35
|
-
let opt = {
|
|
36
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "equip", "creature"),
|
|
37
|
-
};
|
|
38
|
-
return util_1.Query.Request(opt);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* 해당 캐릭터가 장착한 휘장 정보를 받아옵니다.
|
|
42
|
-
*
|
|
43
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
44
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
45
|
-
*/
|
|
46
|
-
exports.flag = (serverId, characterId) => {
|
|
47
|
-
let opt = {
|
|
48
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "equip", "flag"),
|
|
49
|
-
};
|
|
50
|
-
return util_1.Query.Request(opt);
|
|
51
|
-
};
|
package/dist/api/characters.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
/**
|
|
5
|
-
* 서버 이름과 캐릭터 닉네임을 입력하여 해당 캐릭터를 검색합니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {Static.Server} [serverId=""] 캐릭터가 존재하는 서버의 이름입니다.
|
|
8
|
-
* @param {string} [characterName=""] 검색할 캐릭터의 이름입니다.
|
|
9
|
-
* @param {object} [params={}] 선택적 요청변수의 Object입니다.
|
|
10
|
-
*/
|
|
11
|
-
exports.characterName = (serverId, characterName, params = {}) => {
|
|
12
|
-
if (params === undefined)
|
|
13
|
-
params = {};
|
|
14
|
-
params.characterName = characterName;
|
|
15
|
-
let opt = {
|
|
16
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters"),
|
|
17
|
-
params: params,
|
|
18
|
-
};
|
|
19
|
-
return util_1.Query.Request(opt);
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* 캐릭터 ID를 입력하여 해당 캐릭터 정보를 받아옵니다
|
|
23
|
-
*
|
|
24
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
25
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
26
|
-
*/
|
|
27
|
-
exports.characterId = (serverId, characterId) => {
|
|
28
|
-
let opt = {
|
|
29
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId),
|
|
30
|
-
};
|
|
31
|
-
return util_1.Query.Request(opt);
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* 캐릭터 ID를 입력하여 해당 캐릭터의 타임라인 정보를 검색합니다.
|
|
35
|
-
*
|
|
36
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
37
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
38
|
-
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
39
|
-
*/
|
|
40
|
-
exports.timeline = (serverId, characterId, params = {}) => {
|
|
41
|
-
let opt = {
|
|
42
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "timeline"),
|
|
43
|
-
params: params,
|
|
44
|
-
};
|
|
45
|
-
return util_1.Query.Request(opt);
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* 캐릭터 ID를 입력하여 해당 캐릭터의 능력치 정보를 검색합니다.
|
|
49
|
-
*
|
|
50
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
51
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
52
|
-
*/
|
|
53
|
-
exports.status = (serverId, characterId) => {
|
|
54
|
-
let opt = {
|
|
55
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "status"),
|
|
56
|
-
};
|
|
57
|
-
return util_1.Query.Request(opt);
|
|
58
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
/**
|
|
5
|
-
* 아이템 및 장비를 통한 스킬 강화 제외 입니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
8
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
9
|
-
*/
|
|
10
|
-
exports.style = (serverId, characterId) => {
|
|
11
|
-
let opt = {
|
|
12
|
-
base: `${util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "skill", "style")}`,
|
|
13
|
-
};
|
|
14
|
-
return util_1.Query.Request(opt);
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* 캐릭터 '버프 스킬 강화 장착 장비'(스위칭) 를 조회합니다.
|
|
18
|
-
*
|
|
19
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
20
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
21
|
-
*/
|
|
22
|
-
exports.equipment = (serverId, characterId) => {
|
|
23
|
-
let opt = {
|
|
24
|
-
base: `${util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "skill", "buff", "equip", "equipment")}`,
|
|
25
|
-
};
|
|
26
|
-
return util_1.Query.Request(opt);
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* 캐릭터 '버프 스킬 강화 장착 아바타'(스위칭) 를 조회합니다.
|
|
30
|
-
*
|
|
31
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
32
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
33
|
-
*/
|
|
34
|
-
exports.avatar = (serverId, characterId) => {
|
|
35
|
-
let opt = {
|
|
36
|
-
base: `${util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "skill", "buff", "equip", "avatar")}`,
|
|
37
|
-
};
|
|
38
|
-
return util_1.Query.Request(opt);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* 캐릭터 '버프 스킬 강화 장착 크리쳐'(스위칭) 를 조회합니다.
|
|
42
|
-
*
|
|
43
|
-
* @param {Static.Server} serverId 캐릭터가 존재하는 서버의 이름입니다.
|
|
44
|
-
* @param {string} characterId 검색할 캐릭터의 ID입니다.
|
|
45
|
-
*/
|
|
46
|
-
exports.creature = (serverId, characterId) => {
|
|
47
|
-
let opt = {
|
|
48
|
-
base: `${util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers, serverId, "characters", characterId, "skill", "buff", "equip", "creature")}`,
|
|
49
|
-
};
|
|
50
|
-
return util_1.Query.Request(opt);
|
|
51
|
-
};
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Action from "./auction";
|
|
2
|
-
import * as Equip from "./characters.equip";
|
|
3
|
-
import * as Skill from "./characters.skill";
|
|
4
|
-
import * as Characters from "./characters";
|
|
5
|
-
import * as Item from "./items";
|
|
6
|
-
import * as SetItem from "./setitems";
|
|
7
|
-
import * as Server from "./server";
|
|
8
|
-
export { Action, Equip, Skill, Characters, Item, SetItem, Server };
|
package/dist/api/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const Action = __importStar(require("./auction"));
|
|
11
|
-
exports.Action = Action;
|
|
12
|
-
const Equip = __importStar(require("./characters.equip"));
|
|
13
|
-
exports.Equip = Equip;
|
|
14
|
-
const Skill = __importStar(require("./characters.skill"));
|
|
15
|
-
exports.Skill = Skill;
|
|
16
|
-
const Characters = __importStar(require("./characters"));
|
|
17
|
-
exports.Characters = Characters;
|
|
18
|
-
const Item = __importStar(require("./items"));
|
|
19
|
-
exports.Item = Item;
|
|
20
|
-
const SetItem = __importStar(require("./setitems"));
|
|
21
|
-
exports.SetItem = SetItem;
|
|
22
|
-
const Server = __importStar(require("./server"));
|
|
23
|
-
exports.Server = Server;
|
package/dist/api/items.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Params } from "../util";
|
|
2
|
-
import * as Model from "../model";
|
|
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.Item.Item[]>>;
|
|
10
|
-
/**
|
|
11
|
-
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
12
|
-
*
|
|
13
|
-
* @param {string} itemId 검색할 아이템의 ID
|
|
14
|
-
*/
|
|
15
|
-
export declare const detail: (itemId: string) => Promise<Model.DnfResponse<Model.Item.Detail>>;
|
package/dist/api/items.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("../util");
|
|
13
|
-
/**
|
|
14
|
-
* 현재 인게임에서 획득 가능한 아이템의 경우만 검색 가능합니다.
|
|
15
|
-
*
|
|
16
|
-
* @param {string} itemName 검색할 아이템의 명칭
|
|
17
|
-
* @param {string} params 선택적 요청변수의 Object입니다.
|
|
18
|
-
*/
|
|
19
|
-
exports.item = (itemName, params = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
-
// if (params === undefined) params = {};
|
|
21
|
-
params.itemName = itemName;
|
|
22
|
-
// if (query) params.q = Query.makeItemQuery(query);
|
|
23
|
-
//let querystring =
|
|
24
|
-
let opt = {
|
|
25
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Item),
|
|
26
|
-
params: params,
|
|
27
|
-
};
|
|
28
|
-
return yield util_1.Query.Request(opt);
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* 해당하는 아이템의 상세정보를 요청합니다.
|
|
32
|
-
*
|
|
33
|
-
* @param {string} itemId 검색할 아이템의 ID
|
|
34
|
-
*/
|
|
35
|
-
exports.detail = (itemId) => {
|
|
36
|
-
let opt = {
|
|
37
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Item, itemId),
|
|
38
|
-
};
|
|
39
|
-
return util_1.Query.Request(opt);
|
|
40
|
-
};
|
package/dist/api/server.d.ts
DELETED
package/dist/api/server.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
exports.List = () => {
|
|
5
|
-
let opt = {
|
|
6
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.Servers),
|
|
7
|
-
};
|
|
8
|
-
return util_1.Query.Request(opt);
|
|
9
|
-
};
|
package/dist/api/setitems.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Params } from "../util";
|
|
2
|
-
import * as Model from "../model";
|
|
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>>;
|
package/dist/api/setitems.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../util");
|
|
4
|
-
/**
|
|
5
|
-
* 세트 아이템 정보를 세트의 이름으로 검색합니다.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} setItemName 세트 아이템의 이름입니다.
|
|
8
|
-
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
9
|
-
*/
|
|
10
|
-
exports.setitem = (setItemName, params = {}) => {
|
|
11
|
-
params.setItemName = setItemName;
|
|
12
|
-
let opt = {
|
|
13
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.SetItem),
|
|
14
|
-
params: params,
|
|
15
|
-
};
|
|
16
|
-
return util_1.Query.Request(opt);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 세트 ID로 세트 아이템 정보를 받아옵니다.
|
|
20
|
-
*
|
|
21
|
-
* @param {string} setItemId 세트 아이템의 ID입니다.
|
|
22
|
-
*/
|
|
23
|
-
exports.detail = (setItemId) => {
|
|
24
|
-
let opt = {
|
|
25
|
-
base: util_1.Query.UriBuilder(util_1.Static.BaseUri.SetItem, setItemId),
|
|
26
|
-
};
|
|
27
|
-
return util_1.Query.Request(opt);
|
|
28
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as Request from "./api";
|
|
2
|
-
import * as Util from "./util";
|
|
3
|
-
import * as Model from "./model/index";
|
|
4
|
-
import * as Params from "./util/params";
|
|
5
|
-
import Config from "./util/config";
|
|
6
|
-
import * as Static from "./util/static";
|
|
7
|
-
import * as Query from "./util/query";
|
|
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 };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare type Character = {
|
|
2
|
-
characterId: string;
|
|
3
|
-
characterName: string;
|
|
4
|
-
level: number;
|
|
5
|
-
jobId: string;
|
|
6
|
-
jobGrowId: string;
|
|
7
|
-
jobName: string;
|
|
8
|
-
jobGrowName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type Info = {
|
|
11
|
-
characterId: string;
|
|
12
|
-
characterName: string;
|
|
13
|
-
level: number;
|
|
14
|
-
jobId: string;
|
|
15
|
-
jobGrowId: string;
|
|
16
|
-
jobName: string;
|
|
17
|
-
jobGrowName: string;
|
|
18
|
-
adventureName: string;
|
|
19
|
-
guildId: string;
|
|
20
|
-
guildName: string;
|
|
21
|
-
};
|
|
22
|
-
export declare type Timeline = {
|
|
23
|
-
characterId: string;
|
|
24
|
-
characterName: string;
|
|
25
|
-
level: number;
|
|
26
|
-
jobId: string;
|
|
27
|
-
jobGrowId: string;
|
|
28
|
-
jobName: string;
|
|
29
|
-
jobGrowName: string;
|
|
30
|
-
adventureName: string;
|
|
31
|
-
guildId: string;
|
|
32
|
-
guildName: string;
|
|
33
|
-
timeline: {
|
|
34
|
-
date: {
|
|
35
|
-
start: Date;
|
|
36
|
-
end: Date;
|
|
37
|
-
};
|
|
38
|
-
next: string;
|
|
39
|
-
rows: any[];
|
|
40
|
-
};
|
|
41
|
-
};
|
package/dist/model/character.js
DELETED