maplestory-openapi 3.9.0 → 3.10.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 +1 -0
- package/dist/cjs/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.js +2370 -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/kms.js +66 -0
- package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +80 -0
- package/dist/esm/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.js +2311 -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/kms.js +4 -0
- package/dist/esm/maplestory/api/kms/mapleStoryApi.js +80 -0
- package/package.json +4 -3
- package/types/maplestory/api/kms/dto/battlePractice/battlePracticeCharacterInfo.d.ts +1817 -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/index.d.ts +4 -0
- package/types/maplestory/api/kms/mapleStoryApi.d.ts +41 -0
- package/types/maplestory/api/kms/response/battlePractice/battlePracticeCharacterInfoBody.d.ts +482 -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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 연무장 리플레이 식별자 목록
|
|
7
|
+
*/
|
|
8
|
+
class BattlePracticeReplayIdDto {
|
|
9
|
+
/**
|
|
10
|
+
* 리플레이 목록
|
|
11
|
+
*/
|
|
12
|
+
replayList;
|
|
13
|
+
constructor(obj) {
|
|
14
|
+
this.replayList = obj.replay_list.map((r) => new BattlePracticeReplayIdInfoDto(r));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 연무장 리플레이 식별자 상세 정보
|
|
19
|
+
*/
|
|
20
|
+
class BattlePracticeReplayIdInfoDto {
|
|
21
|
+
/**
|
|
22
|
+
* 기간 번호 (연무장 초기화 시마다 1씩 증가됩니다.)
|
|
23
|
+
*/
|
|
24
|
+
periodNo;
|
|
25
|
+
/**
|
|
26
|
+
* 리플레이 등록 일시 (KST)
|
|
27
|
+
*/
|
|
28
|
+
registerDate;
|
|
29
|
+
/**
|
|
30
|
+
* 연무장 리플레이 고유 식별자
|
|
31
|
+
*/
|
|
32
|
+
replayId;
|
|
33
|
+
constructor(obj) {
|
|
34
|
+
this.periodNo = obj.period_no;
|
|
35
|
+
this.registerDate = new Date(obj.register_date);
|
|
36
|
+
this.replayId = obj.replay_id;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.BattlePracticeReplayIdDto = BattlePracticeReplayIdDto;
|
|
41
|
+
exports.BattlePracticeReplayIdInfoDto = BattlePracticeReplayIdInfoDto;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 연무장 측정 결과 정보
|
|
7
|
+
*/
|
|
8
|
+
class BattlePracticeResultDto {
|
|
9
|
+
/**
|
|
10
|
+
* 리플레이 등록 일시 (KST)
|
|
11
|
+
*/
|
|
12
|
+
registerDate;
|
|
13
|
+
/**
|
|
14
|
+
* 총 연무 시간 (ms)
|
|
15
|
+
*/
|
|
16
|
+
totalPlayTime;
|
|
17
|
+
/**
|
|
18
|
+
* 총합 데미지
|
|
19
|
+
*/
|
|
20
|
+
totalDamage;
|
|
21
|
+
/**
|
|
22
|
+
* 초당 평균 데미지
|
|
23
|
+
*/
|
|
24
|
+
totalDps;
|
|
25
|
+
/**
|
|
26
|
+
* 종료 타입 (1:자동 종료, 2:수동 종료, 3:시간 초과, 9:기타 종료)
|
|
27
|
+
*/
|
|
28
|
+
endType;
|
|
29
|
+
/**
|
|
30
|
+
* 리플레이 추천 수
|
|
31
|
+
*/
|
|
32
|
+
likeCount;
|
|
33
|
+
/**
|
|
34
|
+
* 스킬 단위 전투 분석 정보
|
|
35
|
+
*/
|
|
36
|
+
skillStatistic;
|
|
37
|
+
constructor(obj) {
|
|
38
|
+
this.registerDate = new Date(obj.register_date);
|
|
39
|
+
this.totalPlayTime = obj.total_play_time;
|
|
40
|
+
this.totalDamage = obj.total_damage;
|
|
41
|
+
this.totalDps = obj.total_dps;
|
|
42
|
+
this.endType = obj.end_type;
|
|
43
|
+
this.likeCount = obj.like_count;
|
|
44
|
+
this.skillStatistic = obj.skill_statistic.map((s) => new BattlePracticeSkillStatisticDto(s));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 연무장 스킬 단위 전투 분석 정보
|
|
49
|
+
*/
|
|
50
|
+
class BattlePracticeSkillStatisticDto {
|
|
51
|
+
/**
|
|
52
|
+
* 스킬 명
|
|
53
|
+
*/
|
|
54
|
+
skillName;
|
|
55
|
+
/**
|
|
56
|
+
* 누적 데미지
|
|
57
|
+
*/
|
|
58
|
+
damage;
|
|
59
|
+
/**
|
|
60
|
+
* 데미지 점유율
|
|
61
|
+
*/
|
|
62
|
+
damagePercent;
|
|
63
|
+
/**
|
|
64
|
+
* 초당 평균 데미지
|
|
65
|
+
*/
|
|
66
|
+
dps;
|
|
67
|
+
/**
|
|
68
|
+
* 사용 횟수
|
|
69
|
+
*/
|
|
70
|
+
useCount;
|
|
71
|
+
/**
|
|
72
|
+
* 1회당 평균 데미지
|
|
73
|
+
*/
|
|
74
|
+
damagePerUse;
|
|
75
|
+
/**
|
|
76
|
+
* 공격 횟수
|
|
77
|
+
*/
|
|
78
|
+
attackCount;
|
|
79
|
+
/**
|
|
80
|
+
* 최대 데미지 (1타)
|
|
81
|
+
*/
|
|
82
|
+
maxDamage;
|
|
83
|
+
/**
|
|
84
|
+
* 최소 데미지 (1타)
|
|
85
|
+
*/
|
|
86
|
+
minDamage;
|
|
87
|
+
constructor(obj) {
|
|
88
|
+
this.skillName = obj.skill_name;
|
|
89
|
+
this.damage = obj.damage;
|
|
90
|
+
this.damagePercent = obj.damage_percent;
|
|
91
|
+
this.dps = obj.dps;
|
|
92
|
+
this.useCount = obj.use_count;
|
|
93
|
+
this.damagePerUse = obj.damage_per_use;
|
|
94
|
+
this.attackCount = obj.attack_count;
|
|
95
|
+
this.maxDamage = obj.max_damage;
|
|
96
|
+
this.minDamage = obj.min_damage;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
exports.BattlePracticeResultDto = BattlePracticeResultDto;
|
|
101
|
+
exports.BattlePracticeSkillStatisticDto = BattlePracticeSkillStatisticDto;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 연무장 스킬 사용 내역
|
|
7
|
+
*/
|
|
8
|
+
class BattlePracticeSkillTimelineDto {
|
|
9
|
+
/**
|
|
10
|
+
* 조회된 페이지 번호
|
|
11
|
+
*/
|
|
12
|
+
pageNo;
|
|
13
|
+
/**
|
|
14
|
+
* 전체 페이지 번호
|
|
15
|
+
*/
|
|
16
|
+
totalPageNo;
|
|
17
|
+
/**
|
|
18
|
+
* 스킬 타임라인 정보
|
|
19
|
+
*/
|
|
20
|
+
skillTimeline;
|
|
21
|
+
constructor(obj) {
|
|
22
|
+
this.pageNo = obj.page_no;
|
|
23
|
+
this.totalPageNo = obj.total_page_no;
|
|
24
|
+
this.skillTimeline = obj.skill_timeline.map((event) => new BattlePracticeSkillTimelineEventDto(event));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 연무장 스킬 타임라인
|
|
29
|
+
*/
|
|
30
|
+
class BattlePracticeSkillTimelineEventDto {
|
|
31
|
+
/**
|
|
32
|
+
* 연무 시작 후 경과 시간 (ms)
|
|
33
|
+
*/
|
|
34
|
+
elapseTime;
|
|
35
|
+
/**
|
|
36
|
+
* 사용한 스킬 명
|
|
37
|
+
*/
|
|
38
|
+
skillName;
|
|
39
|
+
/**
|
|
40
|
+
* 헥사 스킬 특성 여부 (0:그 외 스킬, 1:오리진 스킬, 2:어센트 스킬)
|
|
41
|
+
*/
|
|
42
|
+
hexaSkillSpecificityFlag;
|
|
43
|
+
/**
|
|
44
|
+
* 시퀀스 명
|
|
45
|
+
*/
|
|
46
|
+
sequenceName;
|
|
47
|
+
/**
|
|
48
|
+
* 시퀀스 키
|
|
49
|
+
*/
|
|
50
|
+
sequenceKey;
|
|
51
|
+
constructor(obj) {
|
|
52
|
+
this.elapseTime = obj.elapse_time;
|
|
53
|
+
this.skillName = obj.skill_name;
|
|
54
|
+
this.hexaSkillSpecificityFlag = obj.hexa_skill_specificity_flag;
|
|
55
|
+
this.sequenceName = obj.sequence_name;
|
|
56
|
+
this.sequenceKey = obj.sequence_key;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
exports.BattlePracticeSkillTimelineDto = BattlePracticeSkillTimelineDto;
|
|
61
|
+
exports.BattlePracticeSkillTimelineEventDto = BattlePracticeSkillTimelineEventDto;
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var mapleStoryApi = require('./mapleStoryApi.js');
|
|
6
6
|
var mapleStoryFriendsApi = require('./mapleStoryFriendsApi.js');
|
|
7
|
+
var battlePracticeCharacterInfo = require('./dto/battlePractice/battlePracticeCharacterInfo.js');
|
|
8
|
+
var battlePracticeReplayId = require('./dto/battlePractice/battlePracticeReplayId.js');
|
|
9
|
+
var battlePracticeResult = require('./dto/battlePractice/battlePracticeResult.js');
|
|
10
|
+
var battlePracticeSkillTimeline = require('./dto/battlePractice/battlePracticeSkillTimeline.js');
|
|
7
11
|
var character = require('./dto/character/character.js');
|
|
8
12
|
var characterAbility = require('./dto/character/characterAbility.js');
|
|
9
13
|
var characterAndroidEquipment = require('./dto/character/characterAndroidEquipment.js');
|
|
@@ -59,6 +63,68 @@ var inspectionInfo = require('./dto/inspectionInfo.js');
|
|
|
59
63
|
|
|
60
64
|
exports.MapleStoryApi = mapleStoryApi.MapleStoryApi;
|
|
61
65
|
exports.MapleStoryFriendsApi = mapleStoryFriendsApi.MapleStoryFriendsApi;
|
|
66
|
+
exports.BattlePracticeCharacterAbilityInfoDto = battlePracticeCharacterInfo.BattlePracticeCharacterAbilityInfoDto;
|
|
67
|
+
exports.BattlePracticeCharacterAbilityObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterAbilityObjectDto;
|
|
68
|
+
exports.BattlePracticeCharacterBasicDto = battlePracticeCharacterInfo.BattlePracticeCharacterBasicDto;
|
|
69
|
+
exports.BattlePracticeCharacterBasicStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterBasicStatDto;
|
|
70
|
+
exports.BattlePracticeCharacterCashItemEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterCashItemEquipmentDto;
|
|
71
|
+
exports.BattlePracticeCharacterCashItemObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterCashItemObjectDto;
|
|
72
|
+
exports.BattlePracticeCharacterCashItemOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterCashItemOptionDto;
|
|
73
|
+
exports.BattlePracticeCharacterFinalStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterFinalStatDto;
|
|
74
|
+
exports.BattlePracticeCharacterHexaCoreEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaCoreEquipmentDto;
|
|
75
|
+
exports.BattlePracticeCharacterHexaCoreObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaCoreObjectDto;
|
|
76
|
+
exports.BattlePracticeCharacterHexaLinkedSkillDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaLinkedSkillDto;
|
|
77
|
+
exports.BattlePracticeCharacterHexaMatrixObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaMatrixObjectDto;
|
|
78
|
+
exports.BattlePracticeCharacterHexaMatrixStatObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaMatrixStatObjectDto;
|
|
79
|
+
exports.BattlePracticeCharacterHexaStatCoreDto = battlePracticeCharacterInfo.BattlePracticeCharacterHexaStatCoreDto;
|
|
80
|
+
exports.BattlePracticeCharacterHyperStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterHyperStatDto;
|
|
81
|
+
exports.BattlePracticeCharacterHyperStatObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterHyperStatObjectDto;
|
|
82
|
+
exports.BattlePracticeCharacterInfoDto = battlePracticeCharacterInfo.BattlePracticeCharacterInfoDto;
|
|
83
|
+
exports.BattlePracticeCharacterItemAddOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemAddOptionDto;
|
|
84
|
+
exports.BattlePracticeCharacterItemBaseOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemBaseOptionDto;
|
|
85
|
+
exports.BattlePracticeCharacterItemDragonEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemDragonEquipmentDto;
|
|
86
|
+
exports.BattlePracticeCharacterItemEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemEquipmentDto;
|
|
87
|
+
exports.BattlePracticeCharacterItemEquipmentObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemEquipmentObjectDto;
|
|
88
|
+
exports.BattlePracticeCharacterItemEtcOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemEtcOptionDto;
|
|
89
|
+
exports.BattlePracticeCharacterItemExceptionalOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemExceptionalOptionDto;
|
|
90
|
+
exports.BattlePracticeCharacterItemMechanicEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemMechanicEquipmentDto;
|
|
91
|
+
exports.BattlePracticeCharacterItemObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemObjectDto;
|
|
92
|
+
exports.BattlePracticeCharacterItemStarforceOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemStarforceOptionDto;
|
|
93
|
+
exports.BattlePracticeCharacterItemTitleDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemTitleDto;
|
|
94
|
+
exports.BattlePracticeCharacterItemTotalOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterItemTotalOptionDto;
|
|
95
|
+
exports.BattlePracticeCharacterLinkSkillObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterLinkSkillObjectDto;
|
|
96
|
+
exports.BattlePracticeCharacterOtherStatDetailDto = battlePracticeCharacterInfo.BattlePracticeCharacterOtherStatDetailDto;
|
|
97
|
+
exports.BattlePracticeCharacterOtherStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterOtherStatDto;
|
|
98
|
+
exports.BattlePracticeCharacterOtherStatInfoDto = battlePracticeCharacterInfo.BattlePracticeCharacterOtherStatInfoDto;
|
|
99
|
+
exports.BattlePracticeCharacterPetAutoSkillDto = battlePracticeCharacterInfo.BattlePracticeCharacterPetAutoSkillDto;
|
|
100
|
+
exports.BattlePracticeCharacterPetEquipmentDto = battlePracticeCharacterInfo.BattlePracticeCharacterPetEquipmentDto;
|
|
101
|
+
exports.BattlePracticeCharacterPetEquipmentItemOptionDto = battlePracticeCharacterInfo.BattlePracticeCharacterPetEquipmentItemOptionDto;
|
|
102
|
+
exports.BattlePracticeCharacterPetObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterPetObjectDto;
|
|
103
|
+
exports.BattlePracticeCharacterPropensityDto = battlePracticeCharacterInfo.BattlePracticeCharacterPropensityDto;
|
|
104
|
+
exports.BattlePracticeCharacterRingReserveSkillObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterRingReserveSkillObjectDto;
|
|
105
|
+
exports.BattlePracticeCharacterSetEffectDto = battlePracticeCharacterInfo.BattlePracticeCharacterSetEffectDto;
|
|
106
|
+
exports.BattlePracticeCharacterSetEffectInfoDto = battlePracticeCharacterInfo.BattlePracticeCharacterSetEffectInfoDto;
|
|
107
|
+
exports.BattlePracticeCharacterSetEffectObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterSetEffectObjectDto;
|
|
108
|
+
exports.BattlePracticeCharacterSkillInfoDto = battlePracticeCharacterInfo.BattlePracticeCharacterSkillInfoDto;
|
|
109
|
+
exports.BattlePracticeCharacterSkillObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterSkillObjectDto;
|
|
110
|
+
exports.BattlePracticeCharacterStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterStatDto;
|
|
111
|
+
exports.BattlePracticeCharacterSymbolDto = battlePracticeCharacterInfo.BattlePracticeCharacterSymbolDto;
|
|
112
|
+
exports.BattlePracticeCharacterSymbolStatDto = battlePracticeCharacterInfo.BattlePracticeCharacterSymbolStatDto;
|
|
113
|
+
exports.BattlePracticeCharacterVCoreDto = battlePracticeCharacterInfo.BattlePracticeCharacterVCoreDto;
|
|
114
|
+
exports.BattlePracticeCharacterVMatrixObjectDto = battlePracticeCharacterInfo.BattlePracticeCharacterVMatrixObjectDto;
|
|
115
|
+
exports.BattlePracticeGuildObjectDto = battlePracticeCharacterInfo.BattlePracticeGuildObjectDto;
|
|
116
|
+
exports.BattlePracticeGuildSkillDto = battlePracticeCharacterInfo.BattlePracticeGuildSkillDto;
|
|
117
|
+
exports.BattlePracticeUnionArtifactEffectDto = battlePracticeCharacterInfo.BattlePracticeUnionArtifactEffectDto;
|
|
118
|
+
exports.BattlePracticeUnionArtifactObjectDto = battlePracticeCharacterInfo.BattlePracticeUnionArtifactObjectDto;
|
|
119
|
+
exports.BattlePracticeUnionChampionBadgeDto = battlePracticeCharacterInfo.BattlePracticeUnionChampionBadgeDto;
|
|
120
|
+
exports.BattlePracticeUnionChampionObjectDto = battlePracticeCharacterInfo.BattlePracticeUnionChampionObjectDto;
|
|
121
|
+
exports.BattlePracticeUnionRaiderObjectDto = battlePracticeCharacterInfo.BattlePracticeUnionRaiderObjectDto;
|
|
122
|
+
exports.BattlePracticeReplayIdDto = battlePracticeReplayId.BattlePracticeReplayIdDto;
|
|
123
|
+
exports.BattlePracticeReplayIdInfoDto = battlePracticeReplayId.BattlePracticeReplayIdInfoDto;
|
|
124
|
+
exports.BattlePracticeResultDto = battlePracticeResult.BattlePracticeResultDto;
|
|
125
|
+
exports.BattlePracticeSkillStatisticDto = battlePracticeResult.BattlePracticeSkillStatisticDto;
|
|
126
|
+
exports.BattlePracticeSkillTimelineDto = battlePracticeSkillTimeline.BattlePracticeSkillTimelineDto;
|
|
127
|
+
exports.BattlePracticeSkillTimelineEventDto = battlePracticeSkillTimeline.BattlePracticeSkillTimelineEventDto;
|
|
62
128
|
exports.CharacterDto = character.CharacterDto;
|
|
63
129
|
exports.CharacterAbilityDto = characterAbility.CharacterAbilityDto;
|
|
64
130
|
exports.CharacterAbilityInfoDto = characterAbility.CharacterAbilityInfoDto;
|
|
@@ -5,6 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var axios = require('axios');
|
|
6
6
|
require('../../../node_modules/buffer/index.js');
|
|
7
7
|
var xml2js = require('xml2js');
|
|
8
|
+
var battlePracticeCharacterInfo = require('./dto/battlePractice/battlePracticeCharacterInfo.js');
|
|
9
|
+
var battlePracticeReplayId = require('./dto/battlePractice/battlePracticeReplayId.js');
|
|
10
|
+
var battlePracticeResult = require('./dto/battlePractice/battlePracticeResult.js');
|
|
11
|
+
var battlePracticeSkillTimeline = require('./dto/battlePractice/battlePracticeSkillTimeline.js');
|
|
8
12
|
var character = require('./dto/character/character.js');
|
|
9
13
|
var characterAbility = require('./dto/character/characterAbility.js');
|
|
10
14
|
var characterAndroidEquipment = require('./dto/character/characterAndroidEquipment.js');
|
|
@@ -1079,6 +1083,82 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
|
|
|
1079
1083
|
}
|
|
1080
1084
|
return new guildBasic.GuildBasicDto(data);
|
|
1081
1085
|
}
|
|
1086
|
+
//#endregion
|
|
1087
|
+
//#region 연무장 정보 조회
|
|
1088
|
+
/**
|
|
1089
|
+
* 캐릭터의 연무장 리플레이 식별자를 조회합니다. 리플레이를 등록한 캐릭터에 대해서만 조회가 가능합니다.
|
|
1090
|
+
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
1091
|
+
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
1092
|
+
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
1093
|
+
*
|
|
1094
|
+
* @param ocid 캐릭터 식별자
|
|
1095
|
+
*/
|
|
1096
|
+
async getBattlePracticeReplayId(ocid) {
|
|
1097
|
+
const path = `${this.subUrl}/v1/battle-practice/replay-id`;
|
|
1098
|
+
const query = {
|
|
1099
|
+
ocid: ocid,
|
|
1100
|
+
};
|
|
1101
|
+
const { data } = await this.client.get(path, {
|
|
1102
|
+
params: query,
|
|
1103
|
+
});
|
|
1104
|
+
return new battlePracticeReplayId.BattlePracticeReplayIdDto(data);
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* 연무장 측정 결과 정보를 조회합니다.
|
|
1108
|
+
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
1109
|
+
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
1110
|
+
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
1111
|
+
*
|
|
1112
|
+
* @param replayId 연무장 리플레이 고유 식별자
|
|
1113
|
+
*/
|
|
1114
|
+
async getBattlePracticeResult(replayId) {
|
|
1115
|
+
const path = `${this.subUrl}/v1/battle-practice/result`;
|
|
1116
|
+
const query = {
|
|
1117
|
+
replay_id: replayId,
|
|
1118
|
+
};
|
|
1119
|
+
const { data } = await this.client.get(path, {
|
|
1120
|
+
params: query,
|
|
1121
|
+
});
|
|
1122
|
+
return new battlePracticeResult.BattlePracticeResultDto(data);
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* 연무장 진행 간 스킬 사용 내역을 조회합니다.
|
|
1126
|
+
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
1127
|
+
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
1128
|
+
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
1129
|
+
*
|
|
1130
|
+
* @param replayId 연무장 리플레이 고유 식별자
|
|
1131
|
+
* @param pageNo 페이지 번호 (미입력 시 1페이지 조회)
|
|
1132
|
+
*/
|
|
1133
|
+
async getBattlePracticeSkillTimeline(replayId, pageNo) {
|
|
1134
|
+
const path = `${this.subUrl}/v1/battle-practice/skill-timeline`;
|
|
1135
|
+
const query = {
|
|
1136
|
+
replay_id: replayId,
|
|
1137
|
+
page_no: pageNo,
|
|
1138
|
+
};
|
|
1139
|
+
const { data } = await this.client.get(path, {
|
|
1140
|
+
params: query,
|
|
1141
|
+
});
|
|
1142
|
+
return new battlePracticeSkillTimeline.BattlePracticeSkillTimelineDto(data);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* 연무장 입장 시의 캐릭터 능력치 관련 정보를 조회합니다.
|
|
1146
|
+
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
1147
|
+
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
1148
|
+
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
1149
|
+
*
|
|
1150
|
+
* @param replayId 연무장 리플레이 고유 식별자
|
|
1151
|
+
*/
|
|
1152
|
+
async getBattlePracticeCharacterInfo(replayId) {
|
|
1153
|
+
const path = `${this.subUrl}/v1/battle-practice/character-info`;
|
|
1154
|
+
const query = {
|
|
1155
|
+
replay_id: replayId,
|
|
1156
|
+
};
|
|
1157
|
+
const { data } = await this.client.get(path, {
|
|
1158
|
+
params: query,
|
|
1159
|
+
});
|
|
1160
|
+
return new battlePracticeCharacterInfo.BattlePracticeCharacterInfoDto(data);
|
|
1161
|
+
}
|
|
1082
1162
|
async getStarforceHistory(count, parameter) {
|
|
1083
1163
|
const path = `${this.subUrl}/v1/history/starforce`;
|
|
1084
1164
|
const query = {
|