dnf-api 1.1.1 → 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.
@@ -0,0 +1,65 @@
1
+ /** 직업 정보 인터페이스 */
2
+ export interface IJob {
3
+ jobId: string;
4
+ jobName: string;
5
+ rows: IJobGrow[];
6
+ }
7
+
8
+ /** 전직 정보 인터페이스 */
9
+ export interface IJobGrow {
10
+ jobGrowId: string;
11
+ jobGrowName: string;
12
+ next?: IJobGrow;
13
+ }
14
+
15
+ /** 스킬 리스트 인터페이스 */
16
+ export interface ISkillList {
17
+ jobId: string;
18
+ jobName: string;
19
+ jobGrowId: string;
20
+ jobGrowName: string;
21
+ skills: ISkill[];
22
+ }
23
+
24
+ /** 스킬 기본 정보 인터페이스 */
25
+ export interface ISkill {
26
+ skillId: string;
27
+ skillName: string;
28
+ requiredLevel: number;
29
+ type: string;
30
+ costType: string;
31
+ }
32
+
33
+ /** 스킬 상세 정보 인터페이스 */
34
+ export interface ISkillDetail {
35
+ jobId: string;
36
+ jobName: string;
37
+ skillId: string;
38
+ skillName: string;
39
+ requiredLevel: number;
40
+ type: string;
41
+ costType: string;
42
+ desc: string;
43
+ descDetail: string;
44
+ consumeMp: number;
45
+ consumeItem: IConsumeItem | null;
46
+ cooldownTime: number;
47
+ levelInfo: ISkillLevelInfo[];
48
+ }
49
+
50
+ /** 스킬 소비 아이템 인터페이스 */
51
+ export interface IConsumeItem {
52
+ itemId: string;
53
+ itemName: string;
54
+ value: number;
55
+ }
56
+
57
+ /** 스킬 레벨 정보 인터페이스 */
58
+ export interface ISkillLevelInfo {
59
+ level: number;
60
+ requiredLevel: number;
61
+ consumeMp: number;
62
+ cooldownTime: number;
63
+ desc: string;
64
+ descDetail: string;
65
+ }
@@ -18,12 +18,12 @@ export interface ICharParams extends BaseParams {
18
18
  jobId?: string;
19
19
  jobGrowId?: string;
20
20
  isAllJobGrow?: boolean;
21
- wordType?: staticUtil.charactersWordType;
21
+ wordType?: staticUtil.CharactersWordType;
22
22
  limit?: number;
23
23
  }
24
24
 
25
25
  export interface ITimeLine extends BaseParams {
26
- serverId?: staticUtil.server;
26
+ serverId?: staticUtil.Server;
27
27
  characterId?: string;
28
28
  startDate?: Date;
29
29
  endDate?: Date;
@@ -37,22 +37,22 @@ export interface IAuction extends BaseParams {
37
37
  sort?: IAuctionSort;
38
38
  itemId?: string;
39
39
  itemName?: string;
40
- wordType?: staticUtil.auctionWordType;
40
+ wordType?: staticUtil.AuctionWordType;
41
41
  wordShort?: boolean;
42
42
  q?: IAuctionQuery;
43
43
  }
44
44
 
45
45
  export interface IAuctionSort {
46
- unitPrice?: staticUtil.sort;
47
- reinforce?: staticUtil.sort;
48
- auctionNo?: staticUtil.sort;
46
+ unitPrice?: staticUtil.Sort;
47
+ reinforce?: staticUtil.Sort;
48
+ auctionNo?: staticUtil.Sort;
49
49
  }
50
50
 
51
51
  export interface IAuctionQuery {
52
52
  minLevel?: number;
53
53
  maxLevel?: number;
54
- raity?: staticUtil.rarity;
55
- reinforceTypeId: staticUtil.reinforceType;
54
+ rarity?: staticUtil.Rarity;
55
+ reinforceTypeId: staticUtil.ReinforceType;
56
56
  minReinforce?: number;
57
57
  maxReinforce?: number;
58
58
  minRefine?: number;
@@ -61,9 +61,9 @@ export interface IAuctionQuery {
61
61
  maxFame?: number;
62
62
  }
63
63
 
64
- export interface IActionSoldOption extends BaseParams {
64
+ export interface IAuctionSoldOption extends BaseParams {
65
65
  limit?: number;
66
- wordType?: staticUtil.auctionWordType;
66
+ wordType?: staticUtil.AuctionWordType;
67
67
  wordShort?: boolean;
68
68
  itemId?: string;
69
69
  itemName?: string;
@@ -74,22 +74,71 @@ export interface IItem extends BaseParams {
74
74
  limit?: number;
75
75
  itemName?: string;
76
76
  hashtag?: string[];
77
- wordType?: staticUtil.auctionWordType;
77
+ wordType?: staticUtil.AuctionWordType;
78
78
  q?: IItemQuery;
79
79
  }
80
80
 
81
81
  export interface IItemQuery {
82
82
  minLevel?: number;
83
83
  maxLevel?: number;
84
- rarity?: staticUtil.rarity;
84
+ rarity?: staticUtil.Rarity;
85
85
  }
86
86
 
87
87
  export interface ISetItem extends BaseParams {
88
88
  setItemName?: string;
89
89
  limit?: number;
90
- wordType?: staticUtil.auctionWordType;
90
+ wordType?: staticUtil.AuctionWordType;
91
91
  }
92
92
 
93
93
  export interface ISkill extends BaseParams {
94
94
  jobGrowId: string;
95
95
  }
96
+
97
+ /** 캐릭터 명성 검색 파라미터 */
98
+ export interface ICharactersFame extends BaseParams {
99
+ minFame?: number;
100
+ maxFame?: number;
101
+ jobId?: string;
102
+ jobGrowId?: string;
103
+ isAllJobGrow?: boolean;
104
+ isBuff?: boolean;
105
+ limit?: number;
106
+ }
107
+
108
+ /** 아바타 마켓 상품 검색 파라미터 */
109
+ export interface IAvatarMarketSale extends BaseParams {
110
+ limit?: number;
111
+ sort?: IAvatarMarketSort;
112
+ hashtag?: string[];
113
+ title?: string;
114
+ wordType?: staticUtil.WordType;
115
+ q?: IAvatarMarketQuery;
116
+ }
117
+
118
+ /** 아바타 마켓 시세 검색 파라미터 */
119
+ export interface IAvatarMarketSold extends BaseParams {
120
+ limit?: number;
121
+ sort?: IAvatarMarketSort;
122
+ hashtag?: string[];
123
+ title?: string;
124
+ wordType?: staticUtil.WordType;
125
+ q?: IAvatarMarketQuery;
126
+ }
127
+
128
+ /** 아바타 마켓 정렬 옵션 */
129
+ export interface IAvatarMarketSort {
130
+ price?: staticUtil.Sort;
131
+ goodsNo?: staticUtil.Sort;
132
+ }
133
+
134
+ /** 아바타 마켓 검색 쿼리 */
135
+ export interface IAvatarMarketQuery {
136
+ jobId?: string;
137
+ emblemCode?: number;
138
+ avatarSet?: boolean;
139
+ avatarRarity?: staticUtil.AvatarRarity;
140
+ minPrice?: number;
141
+ maxPrice?: number;
142
+ minAvatarCount?: number;
143
+ maxAvatarCount?: number;
144
+ }
@@ -1,4 +1,4 @@
1
- export enum server {
1
+ export enum Server {
2
2
  Cain = "cain",
3
3
  Diregie = "diregie",
4
4
  Siroco = "siroco",
@@ -8,45 +8,65 @@ export enum server {
8
8
  Anton = "anton",
9
9
  Bakal = "bakal",
10
10
  }
11
- export enum sort {
11
+
12
+ export enum Sort {
12
13
  Asc = "asc",
13
14
  Desc = "desc",
14
15
  }
15
- export enum rarity {
16
+
17
+ export enum Rarity {
16
18
  Common = "커먼",
17
19
  Uncommon = "언커먼",
18
20
  Rare = "레어",
19
21
  Unique = "유니크",
20
- Eqic = "에픽",
22
+ Epic = "에픽",
21
23
  Chronicle = "크로니클",
22
24
  Legendary = "레전더리",
23
25
  }
24
26
 
25
- export enum auctionWordType {
27
+ export enum AuctionWordType {
26
28
  Match = "match",
27
29
  Front = "front",
28
30
  Full = "full",
29
31
  }
30
- export enum wordType {
32
+
33
+ export enum WordType {
31
34
  Match = "match",
32
35
  Front = "front",
33
36
  Full = "full",
34
37
  }
35
- export enum charactersWordType {
38
+
39
+ export enum CharactersWordType {
36
40
  Match = "match",
37
41
  Full = "full",
38
42
  }
39
- export enum baseUri {
43
+
44
+ export enum BaseUri {
40
45
  Servers = "df/servers",
41
46
  Auction = "df/auction",
42
47
  AuctionSold = "df/auction-sold",
48
+ AvatarMarket = "df/avatar-market",
43
49
  Item = "df/items",
50
+ ItemHashtag = "df/item-hashtag",
44
51
  SetItem = "df/setitems",
45
52
  Multi = "df/multi",
53
+ Jobs = "df/jobs",
54
+ Skills = "df/skills",
46
55
  }
47
56
 
48
- export enum reinforceType {
49
- reinforce = "강화",
50
- minRefine = "증폭",
51
- modify = "개조",
57
+ export enum ReinforceType {
58
+ Reinforce = "강화",
59
+ Amplify = "증폭",
60
+ Modify = "개조",
61
+ }
62
+
63
+ export enum HashtagType {
64
+ Category = "category",
65
+ Mood = "mood",
66
+ }
67
+
68
+ export enum AvatarRarity {
69
+ Premium = "상급",
70
+ Rare = "레어",
71
+ Mixed = "혼합",
52
72
  }