maplestory-openapi 3.9.0 → 3.11.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 +2 -0
- package/dist/cjs/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/cjs/_virtual/index.js_commonjs-exports3.js +2 -2
- package/dist/cjs/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.js +2566 -0
- package/dist/cjs/maplestory/api/kms/dto/battlePractice/battlePracticeReplayId.js +41 -0
- package/dist/cjs/maplestory/api/kms/dto/battlePractice/battlePracticeResult.js +101 -0
- package/dist/cjs/maplestory/api/kms/dto/battlePractice/battlePracticeSkillTimeline.js +61 -0
- package/dist/cjs/maplestory/api/kms/dto/character/characterHexaMatrix.js +6 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +92 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterPetEquipment.js +223 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterVMatrix.js +50 -1
- package/dist/cjs/maplestory/api/kms/dto/scheduler/schedulerCharacterState.js +177 -0
- package/dist/cjs/maplestory/api/kms/dto/union/unionRaider.js +35 -1
- package/dist/cjs/maplestory/api/kms/kms.js +76 -0
- package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +118 -14
- package/dist/cjs/maplestory/api/kms/mapleStoryFriendsApi.js +1 -1
- package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +1 -1
- package/dist/cjs/maplestory/api/tms/dto/character/characterFamiliar.js +156 -0
- package/dist/cjs/maplestory/api/tms/dto/character/characterPetEquipment.js +45 -1
- package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +33 -1
- package/dist/cjs/maplestory/api/tms/tms.js +6 -0
- package/dist/cjs/node_modules/base64-js/index.js +1 -1
- package/dist/cjs/node_modules/buffer/index.js +2 -2
- package/dist/cjs/node_modules/ieee754/index.js +1 -1
- package/dist/esm/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/esm/_virtual/index.js_commonjs-exports3.js +2 -2
- package/dist/esm/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.js +2506 -0
- package/dist/esm/maplestory/api/kms/dto/battlePractice/battlePracticeReplayId.js +36 -0
- package/dist/esm/maplestory/api/kms/dto/battlePractice/battlePracticeResult.js +96 -0
- package/dist/esm/maplestory/api/kms/dto/battlePractice/battlePracticeSkillTimeline.js +56 -0
- package/dist/esm/maplestory/api/kms/dto/character/characterHexaMatrix.js +6 -1
- package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +92 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterPetEquipment.js +223 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterVMatrix.js +50 -2
- package/dist/esm/maplestory/api/kms/dto/scheduler/schedulerCharacterState.js +170 -0
- package/dist/esm/maplestory/api/kms/dto/union/unionRaider.js +35 -2
- package/dist/esm/maplestory/api/kms/kms.js +9 -4
- package/dist/esm/maplestory/api/kms/mapleStoryApi.js +118 -14
- package/dist/esm/maplestory/api/kms/mapleStoryFriendsApi.js +1 -1
- package/dist/esm/maplestory/api/msea/mapleStoryApi.js +1 -1
- package/dist/esm/maplestory/api/tms/dto/character/characterFamiliar.js +149 -0
- package/dist/esm/maplestory/api/tms/dto/character/characterPetEquipment.js +45 -2
- package/dist/esm/maplestory/api/tms/mapleStoryApi.js +33 -1
- package/dist/esm/maplestory/api/tms/tms.js +2 -1
- package/dist/esm/node_modules/base64-js/index.js +2 -2
- package/dist/esm/node_modules/buffer/index.js +2 -2
- package/dist/esm/node_modules/ieee754/index.js +2 -2
- package/package.json +6 -5
- package/types/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.d.ts +1959 -0
- package/types/maplestory/api/kms/dto/battlePractice/battlePracticeReplayId.d.ts +29 -0
- package/types/maplestory/api/kms/dto/battlePractice/battlePracticeResult.d.ts +77 -0
- package/types/maplestory/api/kms/dto/battlePractice/battlePracticeSkillTimeline.d.ts +45 -0
- package/types/maplestory/api/kms/dto/character/characterHexaMatrix.d.ts +4 -0
- package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +63 -1
- package/types/maplestory/api/kms/dto/character/characterPetEquipment.d.ts +163 -1
- package/types/maplestory/api/kms/dto/character/characterVMatrix.d.ts +39 -1
- package/types/maplestory/api/kms/dto/scheduler/schedulerCharacterState.d.ts +137 -0
- package/types/maplestory/api/kms/dto/union/unionRaider.d.ts +27 -1
- package/types/maplestory/api/kms/index.d.ts +5 -0
- package/types/maplestory/api/kms/mapleStoryApi.d.ts +57 -8
- package/types/maplestory/api/kms/mapleStoryFriendsApi.d.ts +2 -2
- package/types/maplestory/api/kms/response/battlePractice/battlePracticeCharacterInfoBody.d.ts +518 -0
- package/types/maplestory/api/kms/response/battlePractice/battlePracticeReplayIdBody.d.ts +8 -0
- package/types/maplestory/api/kms/response/battlePractice/battlePracticeResultBody.d.ts +20 -0
- package/types/maplestory/api/kms/response/battlePractice/battlePracticeSkillTimelineBody.d.ts +12 -0
- package/types/maplestory/api/kms/response/character/characterHexaMatrixBody.d.ts +1 -0
- package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +15 -0
- package/types/maplestory/api/kms/response/character/characterPetEquipmentBody.d.ts +41 -0
- package/types/maplestory/api/kms/response/character/characterVMatrixBody.d.ts +11 -1
- package/types/maplestory/api/kms/response/scheduler/schedulerCharacterStateBody.d.ts +36 -0
- package/types/maplestory/api/kms/response/union/unionRaiderBody.d.ts +7 -0
- package/types/maplestory/api/tms/dto/character/characterFamiliar.d.ts +117 -0
- package/types/maplestory/api/tms/dto/character/characterPetEquipment.d.ts +35 -1
- package/types/maplestory/api/tms/index.d.ts +1 -0
- package/types/maplestory/api/tms/mapleStoryApi.d.ts +12 -0
- package/types/maplestory/api/tms/response/character/characterFamiliarBody.d.ts +31 -0
- package/types/maplestory/api/tms/response/character/characterPetEquipmentBody.d.ts +9 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 萌獸 資訊
|
|
3
|
+
*/
|
|
4
|
+
class CharacterFamiliarDto {
|
|
5
|
+
/**
|
|
6
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
7
|
+
*/
|
|
8
|
+
date;
|
|
9
|
+
/**
|
|
10
|
+
* 萌獸 鏈路插槽資訊
|
|
11
|
+
*/
|
|
12
|
+
familiarLinkSlot;
|
|
13
|
+
/**
|
|
14
|
+
* 萌獸 細節
|
|
15
|
+
*/
|
|
16
|
+
familiarInfo;
|
|
17
|
+
constructor(obj) {
|
|
18
|
+
const { date, familiar_link_slot, familiar_info } = obj;
|
|
19
|
+
this.date = date ? new Date(date) : null;
|
|
20
|
+
this.familiarLinkSlot = familiar_link_slot.map((x) => new CharacterFamiliarLinkSlotDto(x));
|
|
21
|
+
this.familiarInfo = familiar_info.map((x) => new CharacterFamiliarInfoDto(x));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 萌獸 鏈路插槽資訊
|
|
26
|
+
*/
|
|
27
|
+
class CharacterFamiliarLinkSlotDto {
|
|
28
|
+
/**
|
|
29
|
+
* 插槽標識符 (1~3, vip)
|
|
30
|
+
*/
|
|
31
|
+
slotId;
|
|
32
|
+
/**
|
|
33
|
+
* 連結的 萌獸 名稱 (如果插槽中沒有任何關聯,則為 null)
|
|
34
|
+
*/
|
|
35
|
+
familiarName;
|
|
36
|
+
/**
|
|
37
|
+
* 已啟用還是未啟用 (true, false)
|
|
38
|
+
*/
|
|
39
|
+
activeFlag;
|
|
40
|
+
/**
|
|
41
|
+
* 截止日期
|
|
42
|
+
*/
|
|
43
|
+
expireDate;
|
|
44
|
+
constructor(obj) {
|
|
45
|
+
const { slot_id, familiar_name, active_flag, expire_date } = obj;
|
|
46
|
+
this.slotId = slot_id;
|
|
47
|
+
this.familiarName = familiar_name;
|
|
48
|
+
this.activeFlag = active_flag;
|
|
49
|
+
this.expireDate = expire_date ? new Date(expire_date) : null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 萌獸 細節
|
|
54
|
+
*/
|
|
55
|
+
class CharacterFamiliarInfoDto {
|
|
56
|
+
/**
|
|
57
|
+
* 萌獸 名稱
|
|
58
|
+
*/
|
|
59
|
+
familiarName;
|
|
60
|
+
/**
|
|
61
|
+
* 萌獸 暱稱
|
|
62
|
+
*/
|
|
63
|
+
familiarNickname;
|
|
64
|
+
/**
|
|
65
|
+
* 特別與否
|
|
66
|
+
*/
|
|
67
|
+
familiarSpecialFlag;
|
|
68
|
+
/**
|
|
69
|
+
* 萌獸 情況
|
|
70
|
+
*/
|
|
71
|
+
familiarState;
|
|
72
|
+
/**
|
|
73
|
+
* 等級
|
|
74
|
+
*/
|
|
75
|
+
familiarLevel;
|
|
76
|
+
/**
|
|
77
|
+
* 經驗
|
|
78
|
+
*/
|
|
79
|
+
familiarExp;
|
|
80
|
+
/**
|
|
81
|
+
* 具備的技能
|
|
82
|
+
*/
|
|
83
|
+
skillName;
|
|
84
|
+
/**
|
|
85
|
+
* 選項等級
|
|
86
|
+
*/
|
|
87
|
+
optionLevel;
|
|
88
|
+
/**
|
|
89
|
+
* 選項訊息
|
|
90
|
+
*/
|
|
91
|
+
option;
|
|
92
|
+
/**
|
|
93
|
+
* 等級
|
|
94
|
+
*/
|
|
95
|
+
familiarGrade;
|
|
96
|
+
/**
|
|
97
|
+
* 外觀名稱
|
|
98
|
+
*/
|
|
99
|
+
lookName;
|
|
100
|
+
/**
|
|
101
|
+
* 當前是否已被召喚
|
|
102
|
+
*/
|
|
103
|
+
summonedFlag;
|
|
104
|
+
/**
|
|
105
|
+
* 連結槽索引 (1~3, vip, not link)
|
|
106
|
+
*/
|
|
107
|
+
slotId;
|
|
108
|
+
constructor(obj) {
|
|
109
|
+
const { familiar_name, familiar_nickname, familiar_special_flag, familiar_state, familiar_level, familiar_exp, skill_name, option_level, option, familiar_grade, look_name, summoned_flag, slot_id, } = obj;
|
|
110
|
+
this.familiarName = familiar_name;
|
|
111
|
+
this.familiarNickname = familiar_nickname;
|
|
112
|
+
this.familiarSpecialFlag = familiar_special_flag;
|
|
113
|
+
this.familiarState = familiar_state;
|
|
114
|
+
this.familiarLevel = familiar_level;
|
|
115
|
+
this.familiarExp = familiar_exp;
|
|
116
|
+
this.skillName = skill_name;
|
|
117
|
+
this.optionLevel = option_level;
|
|
118
|
+
this.option = option.map((x) => new CharacterFamiliarInfoOptionDto(x));
|
|
119
|
+
this.familiarGrade = familiar_grade;
|
|
120
|
+
this.lookName = look_name;
|
|
121
|
+
this.summonedFlag = summoned_flag;
|
|
122
|
+
this.slotId = slot_id;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 選項訊息
|
|
127
|
+
*/
|
|
128
|
+
class CharacterFamiliarInfoOptionDto {
|
|
129
|
+
/**
|
|
130
|
+
* 選項號
|
|
131
|
+
*/
|
|
132
|
+
optionNo;
|
|
133
|
+
/**
|
|
134
|
+
* 選項名稱
|
|
135
|
+
*/
|
|
136
|
+
optionName;
|
|
137
|
+
/**
|
|
138
|
+
* 選擇權價值
|
|
139
|
+
*/
|
|
140
|
+
optionValue;
|
|
141
|
+
constructor(obj) {
|
|
142
|
+
const { option_no, option_name, option_value } = obj;
|
|
143
|
+
this.optionNo = option_no;
|
|
144
|
+
this.optionName = option_name;
|
|
145
|
+
this.optionValue = option_value;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { CharacterFamiliarDto, CharacterFamiliarInfoDto, CharacterFamiliarInfoOptionDto, CharacterFamiliarLinkSlotDto };
|
|
@@ -56,6 +56,10 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
56
56
|
* 寵物 1 外型圖示
|
|
57
57
|
*/
|
|
58
58
|
pet1AppearanceIcon;
|
|
59
|
+
/**
|
|
60
|
+
* 寵物1 潛在的
|
|
61
|
+
*/
|
|
62
|
+
pet1Potential;
|
|
59
63
|
/**
|
|
60
64
|
* 寵物 2 名稱
|
|
61
65
|
*/
|
|
@@ -104,6 +108,10 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
104
108
|
* 寵物 2 外型圖示
|
|
105
109
|
*/
|
|
106
110
|
pet2AppearanceIcon;
|
|
111
|
+
/**
|
|
112
|
+
* 寵物2 潛在的
|
|
113
|
+
*/
|
|
114
|
+
pet2Potential;
|
|
107
115
|
/**
|
|
108
116
|
* 寵物 3 名稱
|
|
109
117
|
*/
|
|
@@ -152,9 +160,13 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
152
160
|
* 寵物 3 外型圖示
|
|
153
161
|
*/
|
|
154
162
|
pet3AppearanceIcon;
|
|
163
|
+
/**
|
|
164
|
+
* 寵物3 潛在的
|
|
165
|
+
*/
|
|
166
|
+
pet3Potential;
|
|
155
167
|
constructor(obj) {
|
|
156
168
|
super();
|
|
157
|
-
const { date, pet_1_name, pet_1_nickname, pet_1_icon, pet_1_description, pet_1_equipment, pet_1_auto_skill, pet_1_pet_type, pet_1_skill, pet_1_date_expire, pet_1_appearance, pet_1_appearance_icon, pet_2_name, pet_2_nickname, pet_2_icon, pet_2_description, pet_2_equipment, pet_2_auto_skill, pet_2_pet_type, pet_2_skill, pet_2_date_expire, pet_2_appearance, pet_2_appearance_icon, pet_3_name, pet_3_nickname, pet_3_icon, pet_3_description, pet_3_equipment, pet_3_auto_skill, pet_3_pet_type, pet_3_skill, pet_3_date_expire, pet_3_appearance, pet_3_appearance_icon, } = obj;
|
|
169
|
+
const { date, pet_1_name, pet_1_nickname, pet_1_icon, pet_1_description, pet_1_equipment, pet_1_auto_skill, pet_1_pet_type, pet_1_skill, pet_1_date_expire, pet_1_appearance, pet_1_appearance_icon, pet_1_potential, pet_2_name, pet_2_nickname, pet_2_icon, pet_2_description, pet_2_equipment, pet_2_auto_skill, pet_2_pet_type, pet_2_skill, pet_2_date_expire, pet_2_appearance, pet_2_appearance_icon, pet_2_potential, pet_3_name, pet_3_nickname, pet_3_icon, pet_3_description, pet_3_equipment, pet_3_auto_skill, pet_3_pet_type, pet_3_skill, pet_3_date_expire, pet_3_appearance, pet_3_appearance_icon, pet_3_potential, } = obj;
|
|
158
170
|
this.date = date ? new Date(date) : null;
|
|
159
171
|
this.pet1Name = pet_1_name;
|
|
160
172
|
this.pet1Nickname = pet_1_nickname;
|
|
@@ -170,6 +182,7 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
170
182
|
this.pet1Skill = pet_1_skill;
|
|
171
183
|
this.pet1Appearance = pet_1_appearance;
|
|
172
184
|
this.pet1AppearanceIcon = pet_1_appearance_icon;
|
|
185
|
+
this.pet1Potential = pet_1_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
173
186
|
this.pet2Name = pet_2_name;
|
|
174
187
|
this.pet2Nickname = pet_2_nickname;
|
|
175
188
|
this.pet2Icon = pet_2_icon;
|
|
@@ -184,6 +197,7 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
184
197
|
this.pet2Skill = pet_2_skill;
|
|
185
198
|
this.pet2Appearance = pet_2_appearance;
|
|
186
199
|
this.pet2AppearanceIcon = pet_2_appearance_icon;
|
|
200
|
+
this.pet2Potential = pet_2_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
187
201
|
this.pet3Name = pet_3_name;
|
|
188
202
|
this.pet3Nickname = pet_3_nickname;
|
|
189
203
|
this.pet3Icon = pet_3_icon;
|
|
@@ -198,6 +212,7 @@ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
|
|
|
198
212
|
this.pet3Skill = pet_3_skill;
|
|
199
213
|
this.pet3Appearance = pet_3_appearance;
|
|
200
214
|
this.pet3AppearanceIcon = pet_3_appearance_icon;
|
|
215
|
+
this.pet3Potential = pet_3_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
201
216
|
if (pet_1_date_expire === 'expired') {
|
|
202
217
|
this.pet1Expired = true;
|
|
203
218
|
}
|
|
@@ -321,5 +336,33 @@ class CharacterPetEquipmentItemDto extends CharacterPetEquipmentItemDto$1 {
|
|
|
321
336
|
this.itemShapeIcon = item_shape_icon;
|
|
322
337
|
}
|
|
323
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* 寵物 潛在的
|
|
341
|
+
*/
|
|
342
|
+
class CharacterPetEquipmentPotentialDto {
|
|
343
|
+
/**
|
|
344
|
+
* 潛在的 步 (1~3, 0:停用)
|
|
345
|
+
*/
|
|
346
|
+
potentialStep;
|
|
347
|
+
/**
|
|
348
|
+
* 潛在的 類型
|
|
349
|
+
*/
|
|
350
|
+
potentialType;
|
|
351
|
+
/**
|
|
352
|
+
* 潛在的 增加 (對於攻擊力/魔法攻擊力以外的其他潛在能力類型,百分比)
|
|
353
|
+
*/
|
|
354
|
+
potentialIncrease1;
|
|
355
|
+
/**
|
|
356
|
+
* 潛在的 增加 2 (如果潛在能力類型為攻擊力/魔法攻擊力,則攻擊力分配給 potential_increase_1,魔法攻擊力分配給 potential_increase_2;如果潛在能力類型為最大生命值/最大魔法值,則最大生命值分配給 potential_increase_1,最大魔法值分配給 potential_increase_2。)
|
|
357
|
+
*/
|
|
358
|
+
potentialIncrease2;
|
|
359
|
+
constructor(obj) {
|
|
360
|
+
const { potential_step, potential_type, potential_increase1, potential_increase2, } = obj;
|
|
361
|
+
this.potentialStep = potential_step;
|
|
362
|
+
this.potentialType = potential_type;
|
|
363
|
+
this.potentialIncrease1 = potential_increase1;
|
|
364
|
+
this.potentialIncrease2 = potential_increase2;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
324
367
|
|
|
325
|
-
export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto };
|
|
368
|
+
export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto, CharacterPetEquipmentPotentialDto };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import '../../../node_modules/buffer/index.js';
|
|
3
|
+
import { removeQuery } from '../common/lib.js';
|
|
3
4
|
import { CharacterDto } from './dto/character/character.js';
|
|
4
5
|
import { CharacterAbilityDto } from './dto/character/characterAbility.js';
|
|
5
6
|
import { CharacterAndroidEquipmentDto } from './dto/character/characterAndroidEquipment.js';
|
|
@@ -7,6 +8,7 @@ import { CharacterBasicDto } from './dto/character/characterBasic.js';
|
|
|
7
8
|
import { CharacterBeautyEquipmentDto } from './dto/character/characterBeautyEquipment.js';
|
|
8
9
|
import { CharacterCashItemEquipmentDto } from './dto/character/characterCashItemEquipment.js';
|
|
9
10
|
import { CharacterDojangDto } from './dto/character/characterDojang.js';
|
|
11
|
+
import { CharacterFamiliarDto } from './dto/character/characterFamiliar.js';
|
|
10
12
|
import { CharacterHexaMatrixDto } from './dto/character/characterHexaMatrix.js';
|
|
11
13
|
import { CharacterHexaMatrixStatDto } from './dto/character/characterHexaMatrixStat.js';
|
|
12
14
|
import { CharacterHyperStatDto } from './dto/character/characterHyperStat.js';
|
|
@@ -29,7 +31,6 @@ import { UnionChampionDto } from './dto/union/unionChampion.js';
|
|
|
29
31
|
import { UnionRaiderDto } from './dto/union/unionRaider.js';
|
|
30
32
|
import { CharacterImageAction, CharacterImageEmotion, CharacterImageWeaponMotion } from '../common/enum/characterImage.js';
|
|
31
33
|
import { MapleStoryApi as MapleStoryApi$1 } from '../common/mapleStoryApi.js';
|
|
32
|
-
import { removeQuery } from '../common/lib.js';
|
|
33
34
|
import { __exports as buffer } from '../../../_virtual/index.js_commonjs-exports.js';
|
|
34
35
|
|
|
35
36
|
/**
|
|
@@ -717,6 +718,37 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
717
718
|
}
|
|
718
719
|
return new CharacterDojangDto(data);
|
|
719
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
* 檢視萌獸資訊。
|
|
723
|
+
* - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
|
|
724
|
+
* - 您可以從 2025 年 10 月 15 日起搜尋資料。
|
|
725
|
+
* - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
|
|
726
|
+
* - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
|
|
727
|
+
* - 此 API 提供來自楓之谷台灣的資料。
|
|
728
|
+
* @param ocid 角色辨識器
|
|
729
|
+
* @param dateOptions 要搜尋的日期 (TST)
|
|
730
|
+
*/
|
|
731
|
+
async getCharacterFamiliar(ocid, dateOptions) {
|
|
732
|
+
const path = `${this.subUrl}/v1/character/familiar`;
|
|
733
|
+
const date = dateOptions
|
|
734
|
+
? this.toDateString(dateOptions, {
|
|
735
|
+
year: 2025,
|
|
736
|
+
month: 10,
|
|
737
|
+
day: 15,
|
|
738
|
+
})
|
|
739
|
+
: undefined;
|
|
740
|
+
const query = {
|
|
741
|
+
ocid: ocid,
|
|
742
|
+
date: date,
|
|
743
|
+
};
|
|
744
|
+
const { data } = await this.client.get(path, {
|
|
745
|
+
params: query,
|
|
746
|
+
});
|
|
747
|
+
if (this.isEmptyResponse(data)) {
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
750
|
+
return new CharacterFamiliarDto(data);
|
|
751
|
+
}
|
|
720
752
|
//#endregion
|
|
721
753
|
//#region 檢視聯盟資訊
|
|
722
754
|
/**
|
|
@@ -6,13 +6,14 @@ export { CharacterBasicDto } from './dto/character/characterBasic.js';
|
|
|
6
6
|
export { CharacterBeautyEquipmentDto, CharacterBeautyEquipmentFaceDto, CharacterBeautyEquipmentHairDto, CharacterBeautyEquipmentSkinDto } from './dto/character/characterBeautyEquipment.js';
|
|
7
7
|
export { CharacterCashItemEquipmentColoringPrismDto, CharacterCashItemEquipmentDto, CharacterCashItemEquipmentOptionDto, CharacterCashItemEquipmentPresetDto } from './dto/character/characterCashItemEquipment.js';
|
|
8
8
|
export { CharacterDojangDto } from './dto/character/characterDojang.js';
|
|
9
|
+
export { CharacterFamiliarDto, CharacterFamiliarInfoDto, CharacterFamiliarInfoOptionDto, CharacterFamiliarLinkSlotDto } from './dto/character/characterFamiliar.js';
|
|
9
10
|
export { CharacterHexaMatrixDto, CharacterHexaMatrixEquipmentDto, CharacterHexaMatrixEquipmentLinkedSkillDto } from './dto/character/characterHexaMatrix.js';
|
|
10
11
|
export { CharacterHexaMatrixStatCoreDto, CharacterHexaMatrixStatDto } from './dto/character/characterHexaMatrixStat.js';
|
|
11
12
|
export { CharacterHyperStatDto, CharacterHyperStatPresetDto } from './dto/character/characterHyperStat.js';
|
|
12
13
|
export { CharacterImageDto } from './dto/character/characterImage.js';
|
|
13
14
|
export { CharacterItemEquipmentAddOptionDto, CharacterItemEquipmentBaseOptionDto, CharacterItemEquipmentDragonInfoDto, CharacterItemEquipmentDto, CharacterItemEquipmentEtcOptionDto, CharacterItemEquipmentExceptionalOptionDto, CharacterItemEquipmentInfoDto, CharacterItemEquipmentMechanicInfoDto, CharacterItemEquipmentMedalShapeDto, CharacterItemEquipmentStarforceOptionDto, CharacterItemEquipmentTitleDto, CharacterItemEquipmentTotalOptionDto } from './dto/character/characterItemEquipment.js';
|
|
14
15
|
export { CharacterLinkSkillDto, CharacterLinkSkillInfoDto } from './dto/character/characterLinkSkill.js';
|
|
15
|
-
export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto } from './dto/character/characterPetEquipment.js';
|
|
16
|
+
export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto, CharacterPetEquipmentPotentialDto } from './dto/character/characterPetEquipment.js';
|
|
16
17
|
export { CharacterPopularityDto } from './dto/character/characterPopularity.js';
|
|
17
18
|
export { CharacterPropensityDto } from './dto/character/characterPropensity.js';
|
|
18
19
|
export { CharacterSetEffectDto, CharacterSetEffectInfoDto, CharacterSetEffectOptionFullDto, CharacterSetEffectSetDto } from './dto/character/characterSetEffect.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-
|
|
2
|
-
export { __exports as default } from '../../_virtual/index.js_commonjs-
|
|
1
|
+
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
2
|
+
export { __exports as default } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
3
3
|
|
|
4
4
|
base64Js.byteLength = byteLength;
|
|
5
5
|
base64Js.toByteArray = toByteArray;
|
|
@@ -2,8 +2,8 @@ import { __exports as buffer } from '../../_virtual/index.js_commonjs-exports.js
|
|
|
2
2
|
export { __exports as default } from '../../_virtual/index.js_commonjs-exports.js';
|
|
3
3
|
import '../base64-js/index.js';
|
|
4
4
|
import '../ieee754/index.js';
|
|
5
|
-
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-
|
|
6
|
-
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-
|
|
5
|
+
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
6
|
+
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
9
|
* The buffer module from node.js, for the browser.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-
|
|
2
|
-
export { __exports as default } from '../../_virtual/index.js_commonjs-
|
|
1
|
+
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
2
|
+
export { __exports as default } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
3
3
|
|
|
4
4
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maplestory-openapi",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maplestory",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"types"
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "rollup -c",
|
|
56
|
+
"build": "rollup -c && tsc -p tsconfig.build.json --emitDeclarationOnly --rootDir src --outDir types",
|
|
57
57
|
"js_sample": "node sample/js_sample.js",
|
|
58
58
|
"lint": "eslint ./src/** --fix",
|
|
59
59
|
"format": "prettier --write ./**/*.{ts,js}",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-commonjs": "^21.1.0",
|
|
72
72
|
"@rollup/plugin-node-resolve": "13.1.3",
|
|
73
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
73
74
|
"@types/jest": "^29.5.12",
|
|
74
75
|
"@types/xml2js": "^0.4.14",
|
|
75
76
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
@@ -86,11 +87,11 @@
|
|
|
86
87
|
"prettier": "^3.1.1",
|
|
87
88
|
"rollup": "2.66.1",
|
|
88
89
|
"rollup-plugin-terser": "7.0.2",
|
|
89
|
-
"
|
|
90
|
-
"ts-jest": "^29.1.4",
|
|
90
|
+
"ts-jest": "^29.4.11",
|
|
91
91
|
"ts-node": "^10.9.1",
|
|
92
|
+
"tslib": "^2.8.1",
|
|
92
93
|
"tsm": "2.2.1",
|
|
93
|
-
"typescript": "^
|
|
94
|
+
"typescript": "^6.0.3"
|
|
94
95
|
},
|
|
95
96
|
"engines": {
|
|
96
97
|
"node": ">=12"
|