maplestory-openapi 3.0.0 → 3.2.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.
Files changed (49) hide show
  1. package/dist/cjs/maplestory/api/common/dto/character/characterBasic.js +0 -3
  2. package/dist/cjs/maplestory/api/kms/dto/character/characterAndroidEquipment.js +41 -3
  3. package/dist/cjs/maplestory/api/kms/dto/character/characterBasic.js +4 -10
  4. package/dist/cjs/maplestory/api/kms/dto/character/characterBeautyEquipment.js +24 -2
  5. package/dist/cjs/maplestory/api/kms/dto/character/characterCashItemEquipment.js +12 -1
  6. package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +36 -3
  7. package/dist/cjs/maplestory/api/kms/dto/user/achievement.js +57 -0
  8. package/dist/cjs/maplestory/api/kms/dto/{character → user}/characterList.js +3 -8
  9. package/dist/cjs/maplestory/api/kms/kms.js +8 -4
  10. package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +28 -13
  11. package/dist/cjs/maplestory/api/msea/dto/character/characterAndroidEquipment.js +6 -1
  12. package/dist/cjs/maplestory/api/msea/dto/character/characterBasic.js +1 -1
  13. package/dist/esm/maplestory/api/common/dto/character/characterBasic.js +0 -3
  14. package/dist/esm/maplestory/api/kms/dto/character/characterAndroidEquipment.js +41 -3
  15. package/dist/esm/maplestory/api/kms/dto/character/characterBasic.js +4 -10
  16. package/dist/esm/maplestory/api/kms/dto/character/characterBeautyEquipment.js +24 -2
  17. package/dist/esm/maplestory/api/kms/dto/character/characterCashItemEquipment.js +12 -1
  18. package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +36 -3
  19. package/dist/esm/maplestory/api/kms/dto/user/achievement.js +51 -0
  20. package/dist/esm/maplestory/api/kms/dto/{character → user}/characterList.js +3 -8
  21. package/dist/esm/maplestory/api/kms/kms.js +2 -1
  22. package/dist/esm/maplestory/api/kms/mapleStoryApi.js +28 -13
  23. package/dist/esm/maplestory/api/msea/dto/character/characterAndroidEquipment.js +6 -1
  24. package/dist/esm/maplestory/api/msea/dto/character/characterBasic.js +1 -1
  25. package/dist/index.min.js +1 -1
  26. package/package.json +1 -1
  27. package/types/maplestory/api/common/dto/character/characterAndroidEquipment.d.ts +1 -0
  28. package/types/maplestory/api/common/dto/character/characterBasic.d.ts +0 -2
  29. package/types/maplestory/api/kms/dto/character/characterAndroidEquipment.d.ts +28 -0
  30. package/types/maplestory/api/kms/dto/character/characterBasic.d.ts +2 -6
  31. package/types/maplestory/api/kms/dto/character/characterBeautyEquipment.d.ts +16 -0
  32. package/types/maplestory/api/kms/dto/character/characterCashItemEquipment.d.ts +8 -0
  33. package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +24 -0
  34. package/types/maplestory/api/kms/dto/user/achievement.d.ts +39 -0
  35. package/types/maplestory/api/kms/dto/{character → user}/characterList.d.ts +4 -5
  36. package/types/maplestory/api/kms/index.d.ts +2 -1
  37. package/types/maplestory/api/kms/mapleStoryApi.d.ts +17 -8
  38. package/types/maplestory/api/kms/response/character/characterAndroidEquipmentBody.d.ts +4 -0
  39. package/types/maplestory/api/kms/response/character/characterBasicBody.d.ts +1 -1
  40. package/types/maplestory/api/kms/response/character/characterBeautyEquipmentBody.d.ts +2 -0
  41. package/types/maplestory/api/kms/response/character/characterCashItemEquipmentBody.d.ts +1 -0
  42. package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
  43. package/types/maplestory/api/kms/response/user/achievementBody.d.ts +11 -0
  44. package/types/maplestory/api/msea/dto/character/characterAndroidEquipment.d.ts +4 -0
  45. package/types/maplestory/api/msea/response/character/characterAndroidEquipmentBody.d.ts +1 -0
  46. package/dist/cjs/maplestory/api/common/dto/character/characterList.js +0 -14
  47. package/dist/esm/maplestory/api/common/dto/character/characterList.js +0 -8
  48. package/types/maplestory/api/common/dto/character/characterList.d.ts +0 -14
  49. /package/types/maplestory/api/kms/response/{character → user}/characterListBody.d.ts +0 -0
@@ -6,9 +6,6 @@ class CharacterBasicDto {
6
6
  get isAccessFlag() {
7
7
  return this.accessFlag === 'true';
8
8
  }
9
- get isLiberationQuestClearFlag() {
10
- return this.liberationQuestClearFlag === 'true';
11
- }
12
9
  }
13
10
 
14
11
  exports.CharacterBasicDto = CharacterBasicDto;
@@ -135,13 +135,24 @@ class CharacterAndroidEquipmentFaceDto extends characterAndroidEquipment.Charact
135
135
  * 안드로이드 성형 믹스 컬러의 염색 비율
136
136
  */
137
137
  mixRate;
138
+ /**
139
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
140
+ */
141
+ freestyleFlag;
138
142
  constructor(obj) {
139
143
  super();
140
- const { face_name, base_color, mix_color, mix_rate } = obj;
144
+ const { face_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
141
145
  this.faceName = face_name;
142
146
  this.baseColor = base_color;
143
147
  this.mixColor = mix_color;
144
148
  this.mixRate = mix_rate;
149
+ this.freestyleFlag = freestyle_flag;
150
+ }
151
+ /**
152
+ * 프리스타일 쿠폰 적용 여부
153
+ */
154
+ get isFreestyleFlag() {
155
+ return this.freestyleFlag === '1';
145
156
  }
146
157
  }
147
158
  /**
@@ -164,13 +175,24 @@ class CharacterAndroidEquipmentHairDto extends characterAndroidEquipment.Charact
164
175
  * 안드로이드 헤어 믹스 컬러의 염색 비율
165
176
  */
166
177
  mixRate;
178
+ /**
179
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
180
+ */
181
+ freestyleFlag;
167
182
  constructor(obj) {
168
183
  super();
169
- const { hair_name, base_color, mix_color, mix_rate } = obj;
184
+ const { hair_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
170
185
  this.hairName = hair_name;
171
186
  this.baseColor = base_color;
172
187
  this.mixColor = mix_color;
173
188
  this.mixRate = mix_rate;
189
+ this.freestyleFlag = freestyle_flag;
190
+ }
191
+ /**
192
+ * 프리스타일 쿠폰 적용 여부
193
+ */
194
+ get isFreestyleFlag() {
195
+ return this.freestyleFlag === '1';
174
196
  }
175
197
  }
176
198
  /**
@@ -378,9 +400,17 @@ class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.Cha
378
400
  * 안드로이드 캐시 아이템 컬러링프리즘 정보
379
401
  */
380
402
  cashItemColoringPrism;
403
+ /**
404
+ * 아이템 장착 가능 성별
405
+ */
406
+ androidItemGender;
407
+ /**
408
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
409
+ */
410
+ freestyleFlag;
381
411
  constructor(obj) {
382
412
  super();
383
- const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, } = obj;
413
+ const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, android_item_gender, freestyle_flag, } = obj;
384
414
  this.cashItemEquipmentPart = cash_item_equipment_part;
385
415
  this.cashItemEquipmentSlot = cash_item_equipment_slot;
386
416
  this.cashItemName = cash_item_name;
@@ -391,6 +421,8 @@ class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.Cha
391
421
  this.cashItemColoringPrism = cash_item_coloring_prism
392
422
  ? new CharacterAndroidCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
393
423
  : null;
424
+ this.androidItemGender = android_item_gender;
425
+ this.freestyleFlag = freestyle_flag;
394
426
  if (date_expire === 'expired') {
395
427
  this.isExpired = true;
396
428
  }
@@ -406,6 +438,12 @@ class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.Cha
406
438
  : null;
407
439
  }
408
440
  }
441
+ /**
442
+ * 프리스타일 쿠폰 적용 여부
443
+ */
444
+ get isFreestyleFlag() {
445
+ return this.freestyleFlag === '1';
446
+ }
409
447
  }
410
448
 
411
449
  exports.CharacterAndroidCashItemEquipmentColoringPrismDto = CharacterAndroidCashItemEquipmentColoringPrismDto;
@@ -61,12 +61,12 @@ class CharacterBasicDto extends characterBasic.CharacterBasicDto {
61
61
  */
62
62
  accessFlag;
63
63
  /**
64
- * 해방 퀘스트 완료 여부
64
+ * 해방 퀘스트 완료 여부 (0:미완료, 1:제네시스 무기 해방, 2:데스티니 무기 1차 해방)
65
65
  */
66
- liberationQuestClearFlag;
66
+ liberationQuestClear;
67
67
  constructor(obj) {
68
68
  super();
69
- const { date, character_name, world_name, character_gender, character_class, character_class_level, character_level, character_exp, character_exp_rate, character_guild_name, character_image, character_date_create, access_flag, liberation_quest_clear_flag, } = obj;
69
+ const { date, character_name, world_name, character_gender, character_class, character_class_level, character_level, character_exp, character_exp_rate, character_guild_name, character_image, character_date_create, access_flag, liberation_quest_clear, } = obj;
70
70
  this.date = date ? new Date(date) : null;
71
71
  this.characterName = character_name;
72
72
  this.worldName = world_name;
@@ -80,7 +80,7 @@ class CharacterBasicDto extends characterBasic.CharacterBasicDto {
80
80
  this.characterImage = character_image;
81
81
  this.characterDateCreate = new Date(character_date_create);
82
82
  this.accessFlag = access_flag;
83
- this.liberationQuestClearFlag = liberation_quest_clear_flag;
83
+ this.liberationQuestClear = liberation_quest_clear;
84
84
  }
85
85
  /**
86
86
  * 최근 7일간 접속 여부
@@ -88,12 +88,6 @@ class CharacterBasicDto extends characterBasic.CharacterBasicDto {
88
88
  get isAccessFlag() {
89
89
  return super.isAccessFlag;
90
90
  }
91
- /**
92
- * 해방 퀘스트 완료 여부
93
- */
94
- get isLiberationQuestClearFlag() {
95
- return super.isLiberationQuestClearFlag;
96
- }
97
91
  }
98
92
 
99
93
  exports.CharacterBasicDto = CharacterBasicDto;
@@ -93,13 +93,24 @@ class CharacterBeautyEquipmentFaceDto extends characterBeautyEquipment.Character
93
93
  * 성형 믹스 컬러의 염색 비율
94
94
  */
95
95
  mixRate;
96
+ /**
97
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
98
+ */
99
+ freestyleFlag;
96
100
  constructor(obj) {
97
101
  super();
98
- const { face_name, base_color, mix_color, mix_rate } = obj;
102
+ const { face_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
99
103
  this.faceName = face_name;
100
104
  this.baseColor = base_color;
101
105
  this.mixColor = mix_color;
102
106
  this.mixRate = mix_rate;
107
+ this.freestyleFlag = freestyle_flag;
108
+ }
109
+ /**
110
+ * 프리스타일 쿠폰 적용 여부
111
+ */
112
+ get isFreestyleFlag() {
113
+ return this.freestyleFlag === '1';
103
114
  }
104
115
  }
105
116
  /**
@@ -122,13 +133,24 @@ class CharacterBeautyEquipmentHairDto extends characterBeautyEquipment.Character
122
133
  * 헤어 믹스 컬러의 염색 비율
123
134
  */
124
135
  mixRate;
136
+ /**
137
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
138
+ */
139
+ freestyleFlag;
125
140
  constructor(obj) {
126
141
  super();
127
- const { hair_name, base_color, mix_color, mix_rate } = obj;
142
+ const { hair_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
128
143
  this.hairName = hair_name;
129
144
  this.baseColor = base_color;
130
145
  this.mixColor = mix_color;
131
146
  this.mixRate = mix_rate;
147
+ this.freestyleFlag = freestyle_flag;
148
+ }
149
+ /**
150
+ * 프리스타일 쿠폰 적용 여부
151
+ */
152
+ get isFreestyleFlag() {
153
+ return this.freestyleFlag === '1';
132
154
  }
133
155
  }
134
156
  /**
@@ -190,9 +190,13 @@ class CharacterCashItemEquipmentPresetDto extends characterCashItemEquipment.Cha
190
190
  * 스킬명
191
191
  */
192
192
  skills;
193
+ /**
194
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
195
+ */
196
+ freestyleFlag;
193
197
  constructor(obj) {
194
198
  super();
195
- const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, skills, } = obj;
199
+ const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, skills, freestyle_flag, } = obj;
196
200
  this.cashItemEquipmentPart = cash_item_equipment_part;
197
201
  this.cashItemEquipmentSlot = cash_item_equipment_slot;
198
202
  this.cashItemName = cash_item_name;
@@ -205,6 +209,7 @@ class CharacterCashItemEquipmentPresetDto extends characterCashItemEquipment.Cha
205
209
  : null;
206
210
  this.itemGender = item_gender;
207
211
  this.skills = skills;
212
+ this.freestyleFlag = freestyle_flag;
208
213
  if (date_expire === 'expired') {
209
214
  this.isExpired = true;
210
215
  }
@@ -220,6 +225,12 @@ class CharacterCashItemEquipmentPresetDto extends characterCashItemEquipment.Cha
220
225
  : null;
221
226
  }
222
227
  }
228
+ /**
229
+ * 프리스타일 쿠폰 적용 여부
230
+ */
231
+ get isFreestyleFlag() {
232
+ return this.freestyleFlag === '1';
233
+ }
223
234
  }
224
235
 
225
236
  exports.CharacterCashItemEquipmentColoringPrismDto = CharacterCashItemEquipmentColoringPrismDto;
@@ -764,9 +764,13 @@ class CharacterItemEquipmentDragonInfoDto extends characterItemEquipment.Charact
764
764
  * 장비 유효 기간 만료 여부
765
765
  */
766
766
  isExpired = null;
767
+ /**
768
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
769
+ */
770
+ freestyleFlag;
767
771
  constructor(obj) {
768
772
  super();
769
- const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, } = obj;
773
+ const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, freestyle_flag, } = obj;
770
774
  this.itemEquipmentPart = item_equipment_part;
771
775
  this.itemEquipmentSlot = item_equipment_slot;
772
776
  this.itemName = item_name;
@@ -794,6 +798,7 @@ class CharacterItemEquipmentDragonInfoDto extends characterItemEquipment.Charact
794
798
  this.starforceScrollFlag = starforce_scroll_flag;
795
799
  this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
796
800
  this.specialRingLevel = special_ring_level;
801
+ this.freestyleFlag = freestyle_flag;
797
802
  if (date_expire === 'expired') {
798
803
  this.isExpired = true;
799
804
  }
@@ -801,6 +806,12 @@ class CharacterItemEquipmentDragonInfoDto extends characterItemEquipment.Charact
801
806
  this.dateExpire = date_expire ? new Date(date_expire) : null;
802
807
  }
803
808
  }
809
+ /**
810
+ * 프리스타일 쿠폰 적용 여부
811
+ */
812
+ get isFreestyleFlag() {
813
+ return this.freestyleFlag === '1';
814
+ }
804
815
  }
805
816
  /**
806
817
  * 메카닉 장비 정보
@@ -922,9 +933,13 @@ class CharacterItemEquipmentMechanicInfoDto extends characterItemEquipment.Chara
922
933
  * 장비 유효 기간 만료 여부
923
934
  */
924
935
  isExpired = null;
936
+ /**
937
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
938
+ */
939
+ freestyleFlag;
925
940
  constructor(obj) {
926
941
  super();
927
- const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, } = obj;
942
+ const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, freestyle_flag, } = obj;
928
943
  this.itemEquipmentPart = item_equipment_part;
929
944
  this.itemEquipmentSlot = item_equipment_slot;
930
945
  this.itemName = item_name;
@@ -952,6 +967,7 @@ class CharacterItemEquipmentMechanicInfoDto extends characterItemEquipment.Chara
952
967
  this.starforceScrollFlag = starforce_scroll_flag;
953
968
  this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
954
969
  this.specialRingLevel = special_ring_level;
970
+ this.freestyleFlag = freestyle_flag;
955
971
  if (date_expire === 'expired') {
956
972
  this.isExpired = true;
957
973
  }
@@ -959,6 +975,12 @@ class CharacterItemEquipmentMechanicInfoDto extends characterItemEquipment.Chara
959
975
  this.dateExpire = date_expire ? new Date(date_expire) : null;
960
976
  }
961
977
  }
978
+ /**
979
+ * 프리스타일 쿠폰 적용 여부
980
+ */
981
+ get isFreestyleFlag() {
982
+ return this.freestyleFlag === '1';
983
+ }
962
984
  }
963
985
  /**
964
986
  * 캐릭터 장비 아이템 상세 정보
@@ -1112,9 +1134,13 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1112
1134
  * 장비 유효 기간 만료 여부
1113
1135
  */
1114
1136
  isExpired = null;
1137
+ /**
1138
+ * 프리스타일 쿠폰 적용 여부 (0:미적용, 1:적용)
1139
+ */
1140
+ freestyleFlag;
1115
1141
  constructor(obj) {
1116
1142
  super();
1117
- const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, potential_option_grade, additional_potential_option_grade, potential_option_1, potential_option_2, potential_option_3, additional_potential_option_1, additional_potential_option_2, additional_potential_option_3, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, } = obj;
1143
+ const { item_equipment_part, item_equipment_slot, item_name, item_icon, item_description, item_shape_name, item_shape_icon, item_gender, item_total_option, item_base_option, potential_option_grade, additional_potential_option_grade, potential_option_1, potential_option_2, potential_option_3, additional_potential_option_1, additional_potential_option_2, additional_potential_option_3, equipment_level_increase, item_exceptional_option, item_add_option, growth_exp, growth_level, scroll_upgrade, cuttable_count, golden_hammer_flag, scroll_resilience_count, scroll_upgradeable_count, soul_name, soul_option, item_etc_option, starforce, starforce_scroll_flag, item_starforce_option, special_ring_level, date_expire, freestyle_flag, } = obj;
1118
1144
  this.itemEquipmentPart = item_equipment_part;
1119
1145
  this.itemEquipmentSlot = item_equipment_slot;
1120
1146
  this.itemName = item_name;
@@ -1150,6 +1176,7 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1150
1176
  this.starforceScrollFlag = starforce_scroll_flag;
1151
1177
  this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
1152
1178
  this.specialRingLevel = special_ring_level;
1179
+ this.freestyleFlag = freestyle_flag;
1153
1180
  if (date_expire === 'expired') {
1154
1181
  this.isExpired = true;
1155
1182
  }
@@ -1157,6 +1184,12 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1157
1184
  this.dateExpire = date_expire ? new Date(date_expire) : null;
1158
1185
  }
1159
1186
  }
1187
+ /**
1188
+ * 프리스타일 쿠폰 적용 여부
1189
+ */
1190
+ get isFreestyleFlag() {
1191
+ return this.freestyleFlag === '1';
1192
+ }
1160
1193
  }
1161
1194
 
1162
1195
  exports.CharacterItemEquipmentAddOptionDto = CharacterItemEquipmentAddOptionDto;
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /**
6
+ * 계정의 업적 목록
7
+ */
8
+ class AchievementDto {
9
+ /**
10
+ * 메이플스토리 계정 목록
11
+ */
12
+ accountList;
13
+ constructor(obj) {
14
+ const { account_list } = obj;
15
+ this.accountList = account_list.map((account) => new AchievementAccountListDto(account));
16
+ }
17
+ }
18
+ /**
19
+ * 메이플스토리 계정
20
+ */
21
+ class AchievementAccountListDto {
22
+ /**
23
+ * 메이플스토리 계정 식별자
24
+ */
25
+ accountId;
26
+ /**
27
+ * 달성 업적 정보
28
+ */
29
+ achievementAchieve;
30
+ constructor(obj) {
31
+ const { account_id, achievement_achieve } = obj;
32
+ this.accountId = account_id;
33
+ this.achievementAchieve = achievement_achieve.map((achieve) => new AchievementAchieveDto(achieve));
34
+ }
35
+ }
36
+ /**
37
+ * 달성 업적 정보
38
+ */
39
+ class AchievementAchieveDto {
40
+ /**
41
+ * 업적 명
42
+ */
43
+ achievementName;
44
+ /**
45
+ * 업적 설명
46
+ */
47
+ achievementDescription;
48
+ constructor(obj) {
49
+ const { achievement_name, achievement_description } = obj;
50
+ this.achievementName = achievement_name;
51
+ this.achievementDescription = achievement_description;
52
+ }
53
+ }
54
+
55
+ exports.AchievementAccountListDto = AchievementAccountListDto;
56
+ exports.AchievementAchieveDto = AchievementAchieveDto;
57
+ exports.AchievementDto = AchievementDto;
@@ -2,18 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var characterList = require('../../../common/dto/character/characterList.js');
6
-
7
5
  /**
8
6
  * 계정의 보유 캐릭터 목록
9
7
  */
10
- class CharacterListDto extends characterList.CharacterListDto {
8
+ class CharacterListDto {
11
9
  /**
12
10
  * 메이플스토리 계정 목록
13
11
  */
14
12
  accountList;
15
13
  constructor(obj) {
16
- super();
17
14
  const { account_list } = obj;
18
15
  this.accountList = account_list.map((account) => new CharacterListAccountDto(account));
19
16
  }
@@ -21,7 +18,7 @@ class CharacterListDto extends characterList.CharacterListDto {
21
18
  /**
22
19
  * 캐릭터 정보
23
20
  */
24
- class CharacterListAccountCharacterDto extends characterList.CharacterListAccountCharacterDto {
21
+ class CharacterListAccountCharacterDto {
25
22
  /**
26
23
  * 캐릭터 식별자
27
24
  */
@@ -43,7 +40,6 @@ class CharacterListAccountCharacterDto extends characterList.CharacterListAccoun
43
40
  */
44
41
  characterLevel;
45
42
  constructor(obj) {
46
- super();
47
43
  const { ocid, character_name, world_name, character_class, character_level, } = obj;
48
44
  this.ocid = ocid;
49
45
  this.characterName = character_name;
@@ -55,7 +51,7 @@ class CharacterListAccountCharacterDto extends characterList.CharacterListAccoun
55
51
  /**
56
52
  * 메이플스토리 계정
57
53
  */
58
- class CharacterListAccountDto extends characterList.CharacterListAccountDto {
54
+ class CharacterListAccountDto {
59
55
  /**
60
56
  * 메이플스토리 계정 식별자
61
57
  */
@@ -65,7 +61,6 @@ class CharacterListAccountDto extends characterList.CharacterListAccountDto {
65
61
  */
66
62
  characterList;
67
63
  constructor(obj) {
68
- super();
69
64
  const { account_id, character_list } = obj;
70
65
  this.accountId = account_id;
71
66
  this.characterList = character_list.map((character) => new CharacterListAccountCharacterDto(character));
@@ -16,7 +16,6 @@ var characterHyperStat = require('./dto/character/characterHyperStat.js');
16
16
  var characterImage = require('./dto/character/characterImage.js');
17
17
  var characterItemEquipment = require('./dto/character/characterItemEquipment.js');
18
18
  var characterLinkSkill = require('./dto/character/characterLinkSkill.js');
19
- var characterList = require('./dto/character/characterList.js');
20
19
  var characterPetEquipment = require('./dto/character/characterPetEquipment.js');
21
20
  var characterPopularity = require('./dto/character/characterPopularity.js');
22
21
  var characterPropensity = require('./dto/character/characterPropensity.js');
@@ -48,6 +47,8 @@ var union = require('./dto/union/union.js');
48
47
  var unionArtifact = require('./dto/union/unionArtifact.js');
49
48
  var unionChampion = require('./dto/union/unionChampion.js');
50
49
  var unionRaider = require('./dto/union/unionRaider.js');
50
+ var achievement = require('./dto/user/achievement.js');
51
+ var characterList = require('./dto/user/characterList.js');
51
52
  var inspectionInfo = require('./dto/inspectionInfo.js');
52
53
 
53
54
 
@@ -97,9 +98,6 @@ exports.CharacterItemEquipmentTitleDto = characterItemEquipment.CharacterItemEqu
97
98
  exports.CharacterItemEquipmentTotalOptionDto = characterItemEquipment.CharacterItemEquipmentTotalOptionDto;
98
99
  exports.CharacterLinkSkillDto = characterLinkSkill.CharacterLinkSkillDto;
99
100
  exports.CharacterLinkSkillInfoDto = characterLinkSkill.CharacterLinkSkillInfoDto;
100
- exports.CharacterListAccountCharacterDto = characterList.CharacterListAccountCharacterDto;
101
- exports.CharacterListAccountDto = characterList.CharacterListAccountDto;
102
- exports.CharacterListDto = characterList.CharacterListDto;
103
101
  exports.CharacterPetEquipmentAutoSkillDto = characterPetEquipment.CharacterPetEquipmentAutoSkillDto;
104
102
  exports.CharacterPetEquipmentDto = characterPetEquipment.CharacterPetEquipmentDto;
105
103
  exports.CharacterPetEquipmentItemDto = characterPetEquipment.CharacterPetEquipmentItemDto;
@@ -167,4 +165,10 @@ exports.UnionRaiderBlockPositionDto = unionRaider.UnionRaiderBlockPositionDto;
167
165
  exports.UnionRaiderDto = unionRaider.UnionRaiderDto;
168
166
  exports.UnionRaiderInnerStatDto = unionRaider.UnionRaiderInnerStatDto;
169
167
  exports.UnionRaiderPresetDto = unionRaider.UnionRaiderPresetDto;
168
+ exports.AchievementAccountListDto = achievement.AchievementAccountListDto;
169
+ exports.AchievementAchieveDto = achievement.AchievementAchieveDto;
170
+ exports.AchievementDto = achievement.AchievementDto;
171
+ exports.CharacterListAccountCharacterDto = characterList.CharacterListAccountCharacterDto;
172
+ exports.CharacterListAccountDto = characterList.CharacterListAccountDto;
173
+ exports.CharacterListDto = characterList.CharacterListDto;
170
174
  exports.InspectionInfoDto = inspectionInfo.InspectionInfoDto;
@@ -18,7 +18,6 @@ var characterHyperStat = require('./dto/character/characterHyperStat.js');
18
18
  var characterImage$1 = require('./dto/character/characterImage.js');
19
19
  var characterItemEquipment = require('./dto/character/characterItemEquipment.js');
20
20
  var characterLinkSkill = require('./dto/character/characterLinkSkill.js');
21
- var characterList = require('./dto/character/characterList.js');
22
21
  var characterPetEquipment = require('./dto/character/characterPetEquipment.js');
23
22
  var characterPopularity = require('./dto/character/characterPopularity.js');
24
23
  var characterPropensity = require('./dto/character/characterPropensity.js');
@@ -51,6 +50,8 @@ var union = require('./dto/union/union.js');
51
50
  var unionArtifact = require('./dto/union/unionArtifact.js');
52
51
  var unionChampion = require('./dto/union/unionChampion.js');
53
52
  var unionRaider = require('./dto/union/unionRaider.js');
53
+ var achievement = require('./dto/user/achievement.js');
54
+ var characterList = require('./dto/user/characterList.js');
54
55
  var characterImage = require('../common/enum/characterImage.js');
55
56
  var mapleStoryApi = require('../common/mapleStoryApi.js');
56
57
  var index = require('../../../_virtual/index.js_commonjs-exports.js');
@@ -70,6 +71,32 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
70
71
  constructor(apiKey) {
71
72
  super(apiKey);
72
73
  }
74
+ //#region 계정 정보 조회
75
+ /**
76
+ * 계정의 보유 캐릭터 목록을 조회합니다.
77
+ * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
78
+ * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
79
+ * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
80
+ * - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
81
+ */
82
+ async getCharacterList() {
83
+ const path = `${this.subUrl}/v1/character/list`;
84
+ const { data } = await this.client.get(path);
85
+ return new characterList.CharacterListDto(data);
86
+ }
87
+ /**
88
+ * 계정의 업적 정보를 조회합니다.
89
+ * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
90
+ * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
91
+ * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
92
+ * - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
93
+ */
94
+ async getAchievement() {
95
+ const path = `${this.subUrl}/v1/user/achievement`;
96
+ const { data } = await this.client.get(path);
97
+ return new achievement.AchievementDto(data);
98
+ }
99
+ //#endregin
73
100
  //#region 캐릭터 정보 조회
74
101
  /**
75
102
  * 캐릭터 식별자(ocid)를 조회합니다.
@@ -90,18 +117,6 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
90
117
  });
91
118
  return new character.CharacterDto(data);
92
119
  }
93
- /**
94
- * 계정의 보유 캐릭터 목록을 조회합니다.
95
- * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
96
- * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
97
- * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
98
- * - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
99
- */
100
- async getCharacterList() {
101
- const path = `${this.subUrl}/v1/character/list`;
102
- const { data } = await this.client.get(path);
103
- return new characterList.CharacterListDto(data);
104
- }
105
120
  /**
106
121
  * 기본 정보를 조회합니다.
107
122
  * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
@@ -379,9 +379,13 @@ class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.Cha
379
379
  * Android cash item coloring prism information
380
380
  */
381
381
  cashItemColoringPrism;
382
+ /**
383
+ * Gender compatibility for item equipment
384
+ */
385
+ androidItemGender;
382
386
  constructor(obj) {
383
387
  super();
384
- const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, } = obj;
388
+ const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, android_item_gender, } = obj;
385
389
  this.cashItemEquipmentPart = cash_item_equipment_part;
386
390
  this.cashItemEquipmentSlot = cash_item_equipment_slot;
387
391
  this.cashItemName = cash_item_name;
@@ -392,6 +396,7 @@ class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.Cha
392
396
  this.cashItemColoringPrism = cash_item_coloring_prism
393
397
  ? new CharacterAndroidCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
394
398
  : null;
399
+ this.androidItemGender = android_item_gender;
395
400
  if (date_expire === 'expired') {
396
401
  this.isExpired = true;
397
402
  }
@@ -92,7 +92,7 @@ class CharacterBasicDto extends characterBasic.CharacterBasicDto {
92
92
  * Liberation quest completion status
93
93
  */
94
94
  get isLiberationQuestClearFlag() {
95
- return super.isLiberationQuestClearFlag;
95
+ return this.liberationQuestClearFlag === 'true';
96
96
  }
97
97
  }
98
98
 
@@ -2,9 +2,6 @@ class CharacterBasicDto {
2
2
  get isAccessFlag() {
3
3
  return this.accessFlag === 'true';
4
4
  }
5
- get isLiberationQuestClearFlag() {
6
- return this.liberationQuestClearFlag === 'true';
7
- }
8
5
  }
9
6
 
10
7
  export { CharacterBasicDto };