dnf-api 1.0.0 → 1.0.2
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/index.js +8 -8
- package/dist/src/api/items.d.ts +2 -2
- package/package.json +39 -39
- package/src/api/characters.ts +2 -2
- package/src/api/items.ts +49 -49
- package/src/api/server.ts +1 -1
- package/src/api/setitems.ts +2 -7
- package/src/model/character.ts +98 -98
- package/src/model/item.ts +117 -117
- package/src/util/params.ts +81 -81
- package/src/util/query.ts +93 -103
package/src/api/setitems.ts
CHANGED
|
@@ -7,10 +7,7 @@ import { type params, query, staticUtil } from "../util";
|
|
|
7
7
|
* @param {string} setItemName 세트 아이템의 이름입니다.
|
|
8
8
|
* @param {object} params 선택적 요청변수의 Object입니다.
|
|
9
9
|
*/
|
|
10
|
-
export const setitem = (
|
|
11
|
-
setItemName: string,
|
|
12
|
-
params: params.ISetItem = {}
|
|
13
|
-
): Promise<Model.IDnfResponse<Model.setItem.ISetItem[]>> => {
|
|
10
|
+
export const setitem = (setItemName: string, params: params.ISetItem = {}) => {
|
|
14
11
|
params.setItemName = setItemName;
|
|
15
12
|
const opt = {
|
|
16
13
|
base: query.UriBuilder(staticUtil.baseUri.SetItem),
|
|
@@ -24,9 +21,7 @@ export const setitem = (
|
|
|
24
21
|
*
|
|
25
22
|
* @param {string} setItemId 세트 아이템의 ID입니다.
|
|
26
23
|
*/
|
|
27
|
-
export const detail = (
|
|
28
|
-
setItemId: string
|
|
29
|
-
): Promise<Model.IDnfResponse<Model.setItem.IDetail>> => {
|
|
24
|
+
export const detail = (setItemId: string) => {
|
|
30
25
|
const opt = {
|
|
31
26
|
base: query.UriBuilder(staticUtil.baseUri.SetItem, setItemId),
|
|
32
27
|
};
|
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/item.ts
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import type * as Static from "../util/static";
|
|
2
|
-
import type { INameValue } from "./";
|
|
3
|
-
|
|
4
|
-
export enum ItemDetailKind {
|
|
5
|
-
Material = "material",
|
|
6
|
-
Equip = "equip",
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/** 아이템 인터페이스 */
|
|
10
|
-
export interface IItem {
|
|
11
|
-
itemId: string;
|
|
12
|
-
itemName: string;
|
|
13
|
-
itemRarity: Static.rarity;
|
|
14
|
-
itemType: string;
|
|
15
|
-
itemTypeDetail: string;
|
|
16
|
-
itemAvailableLevel: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/** 아이템 상세 인터페이스(합성 타입) */
|
|
20
|
-
export type IDetail = IMaterialDetail | IEquipDetail;
|
|
21
|
-
|
|
22
|
-
/** 재료 아이템 상세 인터페이스 */
|
|
23
|
-
export interface IMaterialDetail {
|
|
24
|
-
kind: ItemDetailKind.Material;
|
|
25
|
-
itemId: string;
|
|
26
|
-
itemName: string;
|
|
27
|
-
itemRarity: string;
|
|
28
|
-
itemTypeId: string;
|
|
29
|
-
itemType: string;
|
|
30
|
-
itemTypeDetailId: string;
|
|
31
|
-
itemTypeDetail: string;
|
|
32
|
-
itemAvailableLevel: number;
|
|
33
|
-
itemExplain: string;
|
|
34
|
-
itemExplainDetail: string;
|
|
35
|
-
itemFlavorText: string;
|
|
36
|
-
fame: number;
|
|
37
|
-
setItemId: string | null;
|
|
38
|
-
setItemName: string | null;
|
|
39
|
-
obtainInfo: IObtainInfo;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** 장비 아이템 상세 인터페이스 */
|
|
43
|
-
export interface IEquipDetail {
|
|
44
|
-
kind: ItemDetailKind.Equip;
|
|
45
|
-
itemId: string;
|
|
46
|
-
itemName: string;
|
|
47
|
-
itemRarity: string;
|
|
48
|
-
itemTypeId: string;
|
|
49
|
-
itemType: string;
|
|
50
|
-
itemTypeDetailId: string;
|
|
51
|
-
itemTypeDetail: string;
|
|
52
|
-
itemAvailableLevel: number;
|
|
53
|
-
itemExplain: string;
|
|
54
|
-
itemExplainDetail: string;
|
|
55
|
-
itemFlavorText: string;
|
|
56
|
-
fame: number;
|
|
57
|
-
setItemId: string | null;
|
|
58
|
-
setItemName: string | null;
|
|
59
|
-
itemStatus: INameValue[];
|
|
60
|
-
tune: ITune;
|
|
61
|
-
itemBuff: IItemBuff;
|
|
62
|
-
hashtag: string[];
|
|
63
|
-
obtainInfo: IObtainInfoDetail;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** 튠 정보 인터페이스 */
|
|
67
|
-
export interface ITune {
|
|
68
|
-
level: number;
|
|
69
|
-
setPoint: number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** 아이템 버프 인터페이스 */
|
|
73
|
-
export interface IItemBuff {
|
|
74
|
-
explain: string;
|
|
75
|
-
explainDetail: string;
|
|
76
|
-
reinforceSkill: any[];
|
|
77
|
-
status: any | null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** 획득 정보 인터페이스 */
|
|
81
|
-
export interface IObtainInfo {
|
|
82
|
-
dungeon: string | null;
|
|
83
|
-
shop: IShopInfo[];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** 획득 상세 정보 인터페이스 */
|
|
87
|
-
export interface IObtainInfoDetail {
|
|
88
|
-
dungeon: IDungeon[];
|
|
89
|
-
shop: IShopDetail[];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** 던전 정보 인터페이스 */
|
|
93
|
-
export interface IDungeon {
|
|
94
|
-
type: string;
|
|
95
|
-
rows: IDungeonRow[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** 던전 행 인터페이스 */
|
|
99
|
-
export interface IDungeonRow {
|
|
100
|
-
name: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** 상점 정보 인터페이스 */
|
|
104
|
-
export interface IShopInfo {
|
|
105
|
-
type: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/** 상점 상세 정보 인터페이스 */
|
|
109
|
-
export interface IShopDetail {
|
|
110
|
-
rows: IShopRow[];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** 상점 행 인터페이스 */
|
|
114
|
-
export interface IShopRow {
|
|
115
|
-
name: string;
|
|
116
|
-
details: string[];
|
|
117
|
-
}
|
|
1
|
+
import type * as Static from "../util/static";
|
|
2
|
+
import type { INameValue } from "./";
|
|
3
|
+
|
|
4
|
+
export enum ItemDetailKind {
|
|
5
|
+
Material = "material",
|
|
6
|
+
Equip = "equip",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** 아이템 인터페이스 */
|
|
10
|
+
export interface IItem {
|
|
11
|
+
itemId: string;
|
|
12
|
+
itemName: string;
|
|
13
|
+
itemRarity: Static.rarity;
|
|
14
|
+
itemType: string;
|
|
15
|
+
itemTypeDetail: string;
|
|
16
|
+
itemAvailableLevel: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** 아이템 상세 인터페이스(합성 타입) */
|
|
20
|
+
export type IDetail = IMaterialDetail | IEquipDetail;
|
|
21
|
+
|
|
22
|
+
/** 재료 아이템 상세 인터페이스 */
|
|
23
|
+
export interface IMaterialDetail {
|
|
24
|
+
kind: ItemDetailKind.Material;
|
|
25
|
+
itemId: string;
|
|
26
|
+
itemName: string;
|
|
27
|
+
itemRarity: string;
|
|
28
|
+
itemTypeId: string;
|
|
29
|
+
itemType: string;
|
|
30
|
+
itemTypeDetailId: string;
|
|
31
|
+
itemTypeDetail: string;
|
|
32
|
+
itemAvailableLevel: number;
|
|
33
|
+
itemExplain: string;
|
|
34
|
+
itemExplainDetail: string;
|
|
35
|
+
itemFlavorText: string;
|
|
36
|
+
fame: number;
|
|
37
|
+
setItemId: string | null;
|
|
38
|
+
setItemName: string | null;
|
|
39
|
+
obtainInfo: IObtainInfo;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** 장비 아이템 상세 인터페이스 */
|
|
43
|
+
export interface IEquipDetail {
|
|
44
|
+
kind: ItemDetailKind.Equip;
|
|
45
|
+
itemId: string;
|
|
46
|
+
itemName: string;
|
|
47
|
+
itemRarity: string;
|
|
48
|
+
itemTypeId: string;
|
|
49
|
+
itemType: string;
|
|
50
|
+
itemTypeDetailId: string;
|
|
51
|
+
itemTypeDetail: string;
|
|
52
|
+
itemAvailableLevel: number;
|
|
53
|
+
itemExplain: string;
|
|
54
|
+
itemExplainDetail: string;
|
|
55
|
+
itemFlavorText: string;
|
|
56
|
+
fame: number;
|
|
57
|
+
setItemId: string | null;
|
|
58
|
+
setItemName: string | null;
|
|
59
|
+
itemStatus: INameValue[];
|
|
60
|
+
tune: ITune;
|
|
61
|
+
itemBuff: IItemBuff;
|
|
62
|
+
hashtag: string[];
|
|
63
|
+
obtainInfo: IObtainInfoDetail;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** 튠 정보 인터페이스 */
|
|
67
|
+
export interface ITune {
|
|
68
|
+
level: number;
|
|
69
|
+
setPoint: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** 아이템 버프 인터페이스 */
|
|
73
|
+
export interface IItemBuff {
|
|
74
|
+
explain: string;
|
|
75
|
+
explainDetail: string;
|
|
76
|
+
reinforceSkill: any[];
|
|
77
|
+
status: any | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** 획득 정보 인터페이스 */
|
|
81
|
+
export interface IObtainInfo {
|
|
82
|
+
dungeon: string | null;
|
|
83
|
+
shop: IShopInfo[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** 획득 상세 정보 인터페이스 */
|
|
87
|
+
export interface IObtainInfoDetail {
|
|
88
|
+
dungeon: IDungeon[];
|
|
89
|
+
shop: IShopDetail[];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** 던전 정보 인터페이스 */
|
|
93
|
+
export interface IDungeon {
|
|
94
|
+
type: string;
|
|
95
|
+
rows: IDungeonRow[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** 던전 행 인터페이스 */
|
|
99
|
+
export interface IDungeonRow {
|
|
100
|
+
name: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** 상점 정보 인터페이스 */
|
|
104
|
+
export interface IShopInfo {
|
|
105
|
+
type: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** 상점 상세 정보 인터페이스 */
|
|
109
|
+
export interface IShopDetail {
|
|
110
|
+
rows: IShopRow[];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** 상점 행 인터페이스 */
|
|
114
|
+
export interface IShopRow {
|
|
115
|
+
name: string;
|
|
116
|
+
details: string[];
|
|
117
|
+
}
|
package/src/util/params.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import type * as staticUtil from "./static";
|
|
2
|
-
export interface QueryOptions<T = any> {
|
|
3
|
-
base: string;
|
|
4
|
-
params?: T;
|
|
5
|
-
}
|
|
6
|
-
export interface ICharParams {
|
|
7
|
-
characterName?: string;
|
|
8
|
-
jobId?: string;
|
|
9
|
-
jobGrowId?: string;
|
|
10
|
-
isAllJobGrow?: boolean;
|
|
11
|
-
wordType?: staticUtil.charactersWordType;
|
|
12
|
-
limit?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface ITimeLine {
|
|
16
|
-
serverId?: staticUtil.server;
|
|
17
|
-
characterId?: string;
|
|
18
|
-
startDate?: Date;
|
|
19
|
-
endDate?: Date;
|
|
20
|
-
limit?: number;
|
|
21
|
-
code?: string[];
|
|
22
|
-
next?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IAuction {
|
|
26
|
-
limit?: number;
|
|
27
|
-
sort?: IAuctionSort;
|
|
28
|
-
itemId?: string;
|
|
29
|
-
itemName?: string;
|
|
30
|
-
wordType?: staticUtil.auctionWordType;
|
|
31
|
-
wordShort?: boolean;
|
|
32
|
-
q?: IAuctionQuery;
|
|
33
|
-
}
|
|
34
|
-
export interface IAuctionSort {
|
|
35
|
-
unitPrice?: staticUtil.sort;
|
|
36
|
-
reinforce?: staticUtil.sort;
|
|
37
|
-
auctionNo?: staticUtil.sort;
|
|
38
|
-
}
|
|
39
|
-
export interface IAuctionQuery {
|
|
40
|
-
minLevel?: number;
|
|
41
|
-
maxLevel?: number;
|
|
42
|
-
raity?: staticUtil.rarity;
|
|
43
|
-
reinforceTypeId: staticUtil.reinforceType;
|
|
44
|
-
minReinforce?: number;
|
|
45
|
-
maxReinforce?: number;
|
|
46
|
-
minRefine?: number;
|
|
47
|
-
maxRefine?: number;
|
|
48
|
-
minFame?: number;
|
|
49
|
-
maxFame?: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface IActionSoldOption {
|
|
53
|
-
limit?: number;
|
|
54
|
-
wordType?: staticUtil.auctionWordType;
|
|
55
|
-
wordShort?: boolean;
|
|
56
|
-
itemId?: string;
|
|
57
|
-
itemName?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface IItem {
|
|
61
|
-
limit?: number;
|
|
62
|
-
itemName?: string;
|
|
63
|
-
hashtag?: string[];
|
|
64
|
-
wordType?: staticUtil.auctionWordType;
|
|
65
|
-
q?: IItemQuery;
|
|
66
|
-
}
|
|
67
|
-
export interface IItemQuery {
|
|
68
|
-
minLevel?: number;
|
|
69
|
-
maxLevel?: number;
|
|
70
|
-
rarity?: staticUtil.rarity;
|
|
71
|
-
// trade?: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface ISetItem {
|
|
75
|
-
setItemName?: string;
|
|
76
|
-
limit?: number;
|
|
77
|
-
wordType?: staticUtil.auctionWordType;
|
|
78
|
-
}
|
|
79
|
-
export interface ISkill {
|
|
80
|
-
jobGrowId: string;
|
|
81
|
-
}
|
|
1
|
+
import type * as staticUtil from "./static";
|
|
2
|
+
export interface QueryOptions<T = any> {
|
|
3
|
+
base: string;
|
|
4
|
+
params?: T;
|
|
5
|
+
}
|
|
6
|
+
export interface ICharParams {
|
|
7
|
+
characterName?: string;
|
|
8
|
+
jobId?: string;
|
|
9
|
+
jobGrowId?: string;
|
|
10
|
+
isAllJobGrow?: boolean;
|
|
11
|
+
wordType?: staticUtil.charactersWordType;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ITimeLine {
|
|
16
|
+
serverId?: staticUtil.server;
|
|
17
|
+
characterId?: string;
|
|
18
|
+
startDate?: Date;
|
|
19
|
+
endDate?: Date;
|
|
20
|
+
limit?: number;
|
|
21
|
+
code?: string[];
|
|
22
|
+
next?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IAuction {
|
|
26
|
+
limit?: number;
|
|
27
|
+
sort?: IAuctionSort;
|
|
28
|
+
itemId?: string;
|
|
29
|
+
itemName?: string;
|
|
30
|
+
wordType?: staticUtil.auctionWordType;
|
|
31
|
+
wordShort?: boolean;
|
|
32
|
+
q?: IAuctionQuery;
|
|
33
|
+
}
|
|
34
|
+
export interface IAuctionSort {
|
|
35
|
+
unitPrice?: staticUtil.sort;
|
|
36
|
+
reinforce?: staticUtil.sort;
|
|
37
|
+
auctionNo?: staticUtil.sort;
|
|
38
|
+
}
|
|
39
|
+
export interface IAuctionQuery {
|
|
40
|
+
minLevel?: number;
|
|
41
|
+
maxLevel?: number;
|
|
42
|
+
raity?: staticUtil.rarity;
|
|
43
|
+
reinforceTypeId: staticUtil.reinforceType;
|
|
44
|
+
minReinforce?: number;
|
|
45
|
+
maxReinforce?: number;
|
|
46
|
+
minRefine?: number;
|
|
47
|
+
maxRefine?: number;
|
|
48
|
+
minFame?: number;
|
|
49
|
+
maxFame?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface IActionSoldOption {
|
|
53
|
+
limit?: number;
|
|
54
|
+
wordType?: staticUtil.auctionWordType;
|
|
55
|
+
wordShort?: boolean;
|
|
56
|
+
itemId?: string;
|
|
57
|
+
itemName?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IItem {
|
|
61
|
+
limit?: number;
|
|
62
|
+
itemName?: string;
|
|
63
|
+
hashtag?: string[];
|
|
64
|
+
wordType?: staticUtil.auctionWordType;
|
|
65
|
+
q?: IItemQuery;
|
|
66
|
+
}
|
|
67
|
+
export interface IItemQuery {
|
|
68
|
+
minLevel?: number;
|
|
69
|
+
maxLevel?: number;
|
|
70
|
+
rarity?: staticUtil.rarity;
|
|
71
|
+
// trade?: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ISetItem {
|
|
75
|
+
setItemName?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
wordType?: staticUtil.auctionWordType;
|
|
78
|
+
}
|
|
79
|
+
export interface ISkill {
|
|
80
|
+
jobGrowId: string;
|
|
81
|
+
}
|