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,156 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 萌獸 資訊
|
|
7
|
+
*/
|
|
8
|
+
class CharacterFamiliarDto {
|
|
9
|
+
/**
|
|
10
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
11
|
+
*/
|
|
12
|
+
date;
|
|
13
|
+
/**
|
|
14
|
+
* 萌獸 鏈路插槽資訊
|
|
15
|
+
*/
|
|
16
|
+
familiarLinkSlot;
|
|
17
|
+
/**
|
|
18
|
+
* 萌獸 細節
|
|
19
|
+
*/
|
|
20
|
+
familiarInfo;
|
|
21
|
+
constructor(obj) {
|
|
22
|
+
const { date, familiar_link_slot, familiar_info } = obj;
|
|
23
|
+
this.date = date ? new Date(date) : null;
|
|
24
|
+
this.familiarLinkSlot = familiar_link_slot.map((x) => new CharacterFamiliarLinkSlotDto(x));
|
|
25
|
+
this.familiarInfo = familiar_info.map((x) => new CharacterFamiliarInfoDto(x));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 萌獸 鏈路插槽資訊
|
|
30
|
+
*/
|
|
31
|
+
class CharacterFamiliarLinkSlotDto {
|
|
32
|
+
/**
|
|
33
|
+
* 插槽標識符 (1~3, vip)
|
|
34
|
+
*/
|
|
35
|
+
slotId;
|
|
36
|
+
/**
|
|
37
|
+
* 連結的 萌獸 名稱 (如果插槽中沒有任何關聯,則為 null)
|
|
38
|
+
*/
|
|
39
|
+
familiarName;
|
|
40
|
+
/**
|
|
41
|
+
* 已啟用還是未啟用 (true, false)
|
|
42
|
+
*/
|
|
43
|
+
activeFlag;
|
|
44
|
+
/**
|
|
45
|
+
* 截止日期
|
|
46
|
+
*/
|
|
47
|
+
expireDate;
|
|
48
|
+
constructor(obj) {
|
|
49
|
+
const { slot_id, familiar_name, active_flag, expire_date } = obj;
|
|
50
|
+
this.slotId = slot_id;
|
|
51
|
+
this.familiarName = familiar_name;
|
|
52
|
+
this.activeFlag = active_flag;
|
|
53
|
+
this.expireDate = expire_date ? new Date(expire_date) : null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 萌獸 細節
|
|
58
|
+
*/
|
|
59
|
+
class CharacterFamiliarInfoDto {
|
|
60
|
+
/**
|
|
61
|
+
* 萌獸 名稱
|
|
62
|
+
*/
|
|
63
|
+
familiarName;
|
|
64
|
+
/**
|
|
65
|
+
* 萌獸 暱稱
|
|
66
|
+
*/
|
|
67
|
+
familiarNickname;
|
|
68
|
+
/**
|
|
69
|
+
* 特別與否
|
|
70
|
+
*/
|
|
71
|
+
familiarSpecialFlag;
|
|
72
|
+
/**
|
|
73
|
+
* 萌獸 情況
|
|
74
|
+
*/
|
|
75
|
+
familiarState;
|
|
76
|
+
/**
|
|
77
|
+
* 等級
|
|
78
|
+
*/
|
|
79
|
+
familiarLevel;
|
|
80
|
+
/**
|
|
81
|
+
* 經驗
|
|
82
|
+
*/
|
|
83
|
+
familiarExp;
|
|
84
|
+
/**
|
|
85
|
+
* 具備的技能
|
|
86
|
+
*/
|
|
87
|
+
skillName;
|
|
88
|
+
/**
|
|
89
|
+
* 選項等級
|
|
90
|
+
*/
|
|
91
|
+
optionLevel;
|
|
92
|
+
/**
|
|
93
|
+
* 選項訊息
|
|
94
|
+
*/
|
|
95
|
+
option;
|
|
96
|
+
/**
|
|
97
|
+
* 等級
|
|
98
|
+
*/
|
|
99
|
+
familiarGrade;
|
|
100
|
+
/**
|
|
101
|
+
* 外觀名稱
|
|
102
|
+
*/
|
|
103
|
+
lookName;
|
|
104
|
+
/**
|
|
105
|
+
* 當前是否已被召喚
|
|
106
|
+
*/
|
|
107
|
+
summonedFlag;
|
|
108
|
+
/**
|
|
109
|
+
* 連結槽索引 (1~3, vip, not link)
|
|
110
|
+
*/
|
|
111
|
+
slotId;
|
|
112
|
+
constructor(obj) {
|
|
113
|
+
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;
|
|
114
|
+
this.familiarName = familiar_name;
|
|
115
|
+
this.familiarNickname = familiar_nickname;
|
|
116
|
+
this.familiarSpecialFlag = familiar_special_flag;
|
|
117
|
+
this.familiarState = familiar_state;
|
|
118
|
+
this.familiarLevel = familiar_level;
|
|
119
|
+
this.familiarExp = familiar_exp;
|
|
120
|
+
this.skillName = skill_name;
|
|
121
|
+
this.optionLevel = option_level;
|
|
122
|
+
this.option = option.map((x) => new CharacterFamiliarInfoOptionDto(x));
|
|
123
|
+
this.familiarGrade = familiar_grade;
|
|
124
|
+
this.lookName = look_name;
|
|
125
|
+
this.summonedFlag = summoned_flag;
|
|
126
|
+
this.slotId = slot_id;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 選項訊息
|
|
131
|
+
*/
|
|
132
|
+
class CharacterFamiliarInfoOptionDto {
|
|
133
|
+
/**
|
|
134
|
+
* 選項號
|
|
135
|
+
*/
|
|
136
|
+
optionNo;
|
|
137
|
+
/**
|
|
138
|
+
* 選項名稱
|
|
139
|
+
*/
|
|
140
|
+
optionName;
|
|
141
|
+
/**
|
|
142
|
+
* 選擇權價值
|
|
143
|
+
*/
|
|
144
|
+
optionValue;
|
|
145
|
+
constructor(obj) {
|
|
146
|
+
const { option_no, option_name, option_value } = obj;
|
|
147
|
+
this.optionNo = option_no;
|
|
148
|
+
this.optionName = option_name;
|
|
149
|
+
this.optionValue = option_value;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
exports.CharacterFamiliarDto = CharacterFamiliarDto;
|
|
154
|
+
exports.CharacterFamiliarInfoDto = CharacterFamiliarInfoDto;
|
|
155
|
+
exports.CharacterFamiliarInfoOptionDto = CharacterFamiliarInfoOptionDto;
|
|
156
|
+
exports.CharacterFamiliarLinkSlotDto = CharacterFamiliarLinkSlotDto;
|
|
@@ -60,6 +60,10 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
60
60
|
* 寵物 1 外型圖示
|
|
61
61
|
*/
|
|
62
62
|
pet1AppearanceIcon;
|
|
63
|
+
/**
|
|
64
|
+
* 寵物1 潛在的
|
|
65
|
+
*/
|
|
66
|
+
pet1Potential;
|
|
63
67
|
/**
|
|
64
68
|
* 寵物 2 名稱
|
|
65
69
|
*/
|
|
@@ -108,6 +112,10 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
108
112
|
* 寵物 2 外型圖示
|
|
109
113
|
*/
|
|
110
114
|
pet2AppearanceIcon;
|
|
115
|
+
/**
|
|
116
|
+
* 寵物2 潛在的
|
|
117
|
+
*/
|
|
118
|
+
pet2Potential;
|
|
111
119
|
/**
|
|
112
120
|
* 寵物 3 名稱
|
|
113
121
|
*/
|
|
@@ -156,9 +164,13 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
156
164
|
* 寵物 3 外型圖示
|
|
157
165
|
*/
|
|
158
166
|
pet3AppearanceIcon;
|
|
167
|
+
/**
|
|
168
|
+
* 寵物3 潛在的
|
|
169
|
+
*/
|
|
170
|
+
pet3Potential;
|
|
159
171
|
constructor(obj) {
|
|
160
172
|
super();
|
|
161
|
-
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;
|
|
173
|
+
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;
|
|
162
174
|
this.date = date ? new Date(date) : null;
|
|
163
175
|
this.pet1Name = pet_1_name;
|
|
164
176
|
this.pet1Nickname = pet_1_nickname;
|
|
@@ -174,6 +186,7 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
174
186
|
this.pet1Skill = pet_1_skill;
|
|
175
187
|
this.pet1Appearance = pet_1_appearance;
|
|
176
188
|
this.pet1AppearanceIcon = pet_1_appearance_icon;
|
|
189
|
+
this.pet1Potential = pet_1_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
177
190
|
this.pet2Name = pet_2_name;
|
|
178
191
|
this.pet2Nickname = pet_2_nickname;
|
|
179
192
|
this.pet2Icon = pet_2_icon;
|
|
@@ -188,6 +201,7 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
188
201
|
this.pet2Skill = pet_2_skill;
|
|
189
202
|
this.pet2Appearance = pet_2_appearance;
|
|
190
203
|
this.pet2AppearanceIcon = pet_2_appearance_icon;
|
|
204
|
+
this.pet2Potential = pet_2_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
191
205
|
this.pet3Name = pet_3_name;
|
|
192
206
|
this.pet3Nickname = pet_3_nickname;
|
|
193
207
|
this.pet3Icon = pet_3_icon;
|
|
@@ -202,6 +216,7 @@ class CharacterPetEquipmentDto extends characterPetEquipment.CharacterPetEquipme
|
|
|
202
216
|
this.pet3Skill = pet_3_skill;
|
|
203
217
|
this.pet3Appearance = pet_3_appearance;
|
|
204
218
|
this.pet3AppearanceIcon = pet_3_appearance_icon;
|
|
219
|
+
this.pet3Potential = pet_3_potential.map((potential) => new CharacterPetEquipmentPotentialDto(potential));
|
|
205
220
|
if (pet_1_date_expire === 'expired') {
|
|
206
221
|
this.pet1Expired = true;
|
|
207
222
|
}
|
|
@@ -325,8 +340,37 @@ class CharacterPetEquipmentItemDto extends characterPetEquipment.CharacterPetEqu
|
|
|
325
340
|
this.itemShapeIcon = item_shape_icon;
|
|
326
341
|
}
|
|
327
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* 寵物 潛在的
|
|
345
|
+
*/
|
|
346
|
+
class CharacterPetEquipmentPotentialDto {
|
|
347
|
+
/**
|
|
348
|
+
* 潛在的 步 (1~3, 0:停用)
|
|
349
|
+
*/
|
|
350
|
+
potentialStep;
|
|
351
|
+
/**
|
|
352
|
+
* 潛在的 類型
|
|
353
|
+
*/
|
|
354
|
+
potentialType;
|
|
355
|
+
/**
|
|
356
|
+
* 潛在的 增加 (對於攻擊力/魔法攻擊力以外的其他潛在能力類型,百分比)
|
|
357
|
+
*/
|
|
358
|
+
potentialIncrease1;
|
|
359
|
+
/**
|
|
360
|
+
* 潛在的 增加 2 (如果潛在能力類型為攻擊力/魔法攻擊力,則攻擊力分配給 potential_increase_1,魔法攻擊力分配給 potential_increase_2;如果潛在能力類型為最大生命值/最大魔法值,則最大生命值分配給 potential_increase_1,最大魔法值分配給 potential_increase_2。)
|
|
361
|
+
*/
|
|
362
|
+
potentialIncrease2;
|
|
363
|
+
constructor(obj) {
|
|
364
|
+
const { potential_step, potential_type, potential_increase1, potential_increase2, } = obj;
|
|
365
|
+
this.potentialStep = potential_step;
|
|
366
|
+
this.potentialType = potential_type;
|
|
367
|
+
this.potentialIncrease1 = potential_increase1;
|
|
368
|
+
this.potentialIncrease2 = potential_increase2;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
328
371
|
|
|
329
372
|
exports.CharacterPetEquipmentAutoSkillDto = CharacterPetEquipmentAutoSkillDto;
|
|
330
373
|
exports.CharacterPetEquipmentDto = CharacterPetEquipmentDto;
|
|
331
374
|
exports.CharacterPetEquipmentItemDto = CharacterPetEquipmentItemDto;
|
|
332
375
|
exports.CharacterPetEquipmentItemOptionDto = CharacterPetEquipmentItemOptionDto;
|
|
376
|
+
exports.CharacterPetEquipmentPotentialDto = CharacterPetEquipmentPotentialDto;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var axios = require('axios');
|
|
6
6
|
require('../../../node_modules/buffer/index.js');
|
|
7
|
+
var lib = require('../common/lib.js');
|
|
7
8
|
var character = require('./dto/character/character.js');
|
|
8
9
|
var characterAbility = require('./dto/character/characterAbility.js');
|
|
9
10
|
var characterAndroidEquipment = require('./dto/character/characterAndroidEquipment.js');
|
|
@@ -11,6 +12,7 @@ var characterBasic = require('./dto/character/characterBasic.js');
|
|
|
11
12
|
var characterBeautyEquipment = require('./dto/character/characterBeautyEquipment.js');
|
|
12
13
|
var characterCashItemEquipment = require('./dto/character/characterCashItemEquipment.js');
|
|
13
14
|
var characterDojang = require('./dto/character/characterDojang.js');
|
|
15
|
+
var characterFamiliar = require('./dto/character/characterFamiliar.js');
|
|
14
16
|
var characterHexaMatrix = require('./dto/character/characterHexaMatrix.js');
|
|
15
17
|
var characterHexaMatrixStat = require('./dto/character/characterHexaMatrixStat.js');
|
|
16
18
|
var characterHyperStat = require('./dto/character/characterHyperStat.js');
|
|
@@ -33,7 +35,6 @@ var unionChampion = require('./dto/union/unionChampion.js');
|
|
|
33
35
|
var unionRaider = require('./dto/union/unionRaider.js');
|
|
34
36
|
var characterImage = require('../common/enum/characterImage.js');
|
|
35
37
|
var mapleStoryApi = require('../common/mapleStoryApi.js');
|
|
36
|
-
var lib = require('../common/lib.js');
|
|
37
38
|
var index = require('../../../_virtual/index.js_commonjs-exports.js');
|
|
38
39
|
|
|
39
40
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -725,6 +726,37 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
|
|
|
725
726
|
}
|
|
726
727
|
return new characterDojang.CharacterDojangDto(data);
|
|
727
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* 檢視萌獸資訊。
|
|
731
|
+
* - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
|
|
732
|
+
* - 您可以從 2025 年 10 月 15 日起搜尋資料。
|
|
733
|
+
* - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
|
|
734
|
+
* - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
|
|
735
|
+
* - 此 API 提供來自楓之谷台灣的資料。
|
|
736
|
+
* @param ocid 角色辨識器
|
|
737
|
+
* @param dateOptions 要搜尋的日期 (TST)
|
|
738
|
+
*/
|
|
739
|
+
async getCharacterFamiliar(ocid, dateOptions) {
|
|
740
|
+
const path = `${this.subUrl}/v1/character/familiar`;
|
|
741
|
+
const date = dateOptions
|
|
742
|
+
? this.toDateString(dateOptions, {
|
|
743
|
+
year: 2025,
|
|
744
|
+
month: 10,
|
|
745
|
+
day: 15,
|
|
746
|
+
})
|
|
747
|
+
: undefined;
|
|
748
|
+
const query = {
|
|
749
|
+
ocid: ocid,
|
|
750
|
+
date: date,
|
|
751
|
+
};
|
|
752
|
+
const { data } = await this.client.get(path, {
|
|
753
|
+
params: query,
|
|
754
|
+
});
|
|
755
|
+
if (this.isEmptyResponse(data)) {
|
|
756
|
+
return null;
|
|
757
|
+
}
|
|
758
|
+
return new characterFamiliar.CharacterFamiliarDto(data);
|
|
759
|
+
}
|
|
728
760
|
//#endregion
|
|
729
761
|
//#region 檢視聯盟資訊
|
|
730
762
|
/**
|
|
@@ -10,6 +10,7 @@ var characterBasic = require('./dto/character/characterBasic.js');
|
|
|
10
10
|
var characterBeautyEquipment = require('./dto/character/characterBeautyEquipment.js');
|
|
11
11
|
var characterCashItemEquipment = require('./dto/character/characterCashItemEquipment.js');
|
|
12
12
|
var characterDojang = require('./dto/character/characterDojang.js');
|
|
13
|
+
var characterFamiliar = require('./dto/character/characterFamiliar.js');
|
|
13
14
|
var characterHexaMatrix = require('./dto/character/characterHexaMatrix.js');
|
|
14
15
|
var characterHexaMatrixStat = require('./dto/character/characterHexaMatrixStat.js');
|
|
15
16
|
var characterHyperStat = require('./dto/character/characterHyperStat.js');
|
|
@@ -56,6 +57,10 @@ exports.CharacterCashItemEquipmentDto = characterCashItemEquipment.CharacterCash
|
|
|
56
57
|
exports.CharacterCashItemEquipmentOptionDto = characterCashItemEquipment.CharacterCashItemEquipmentOptionDto;
|
|
57
58
|
exports.CharacterCashItemEquipmentPresetDto = characterCashItemEquipment.CharacterCashItemEquipmentPresetDto;
|
|
58
59
|
exports.CharacterDojangDto = characterDojang.CharacterDojangDto;
|
|
60
|
+
exports.CharacterFamiliarDto = characterFamiliar.CharacterFamiliarDto;
|
|
61
|
+
exports.CharacterFamiliarInfoDto = characterFamiliar.CharacterFamiliarInfoDto;
|
|
62
|
+
exports.CharacterFamiliarInfoOptionDto = characterFamiliar.CharacterFamiliarInfoOptionDto;
|
|
63
|
+
exports.CharacterFamiliarLinkSlotDto = characterFamiliar.CharacterFamiliarLinkSlotDto;
|
|
59
64
|
exports.CharacterHexaMatrixDto = characterHexaMatrix.CharacterHexaMatrixDto;
|
|
60
65
|
exports.CharacterHexaMatrixEquipmentDto = characterHexaMatrix.CharacterHexaMatrixEquipmentDto;
|
|
61
66
|
exports.CharacterHexaMatrixEquipmentLinkedSkillDto = characterHexaMatrix.CharacterHexaMatrixEquipmentLinkedSkillDto;
|
|
@@ -82,6 +87,7 @@ exports.CharacterPetEquipmentAutoSkillDto = characterPetEquipment.CharacterPetEq
|
|
|
82
87
|
exports.CharacterPetEquipmentDto = characterPetEquipment.CharacterPetEquipmentDto;
|
|
83
88
|
exports.CharacterPetEquipmentItemDto = characterPetEquipment.CharacterPetEquipmentItemDto;
|
|
84
89
|
exports.CharacterPetEquipmentItemOptionDto = characterPetEquipment.CharacterPetEquipmentItemOptionDto;
|
|
90
|
+
exports.CharacterPetEquipmentPotentialDto = characterPetEquipment.CharacterPetEquipmentPotentialDto;
|
|
85
91
|
exports.CharacterPopularityDto = characterPopularity.CharacterPopularityDto;
|
|
86
92
|
exports.CharacterPropensityDto = characterPropensity.CharacterPropensityDto;
|
|
87
93
|
exports.CharacterSetEffectDto = characterSetEffect.CharacterSetEffectDto;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var index = require('../../_virtual/index.js_commonjs-exports.js');
|
|
4
4
|
require('../base64-js/index.js');
|
|
5
5
|
require('../ieee754/index.js');
|
|
6
|
-
var index$1 = require('../../_virtual/index.js_commonjs-
|
|
7
|
-
var index$2 = require('../../_virtual/index.js_commonjs-
|
|
6
|
+
var index$1 = require('../../_virtual/index.js_commonjs-exports2.js');
|
|
7
|
+
var index$2 = require('../../_virtual/index.js_commonjs-exports3.js');
|
|
8
8
|
|
|
9
9
|
/*!
|
|
10
10
|
* The buffer module from node.js, for the browser.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var base64Js = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { base64Js as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ieee754 = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { ieee754 as __exports };
|